/* Canyon Flight: what only the canyon has. The rest comes from /rooms/room.css. */

/* the score: big, white, with a dark edge, and a little jump with each point */
.fb-score { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s; }
.fb-score.on { opacity: 1; }
.fb-score strong { display: block; font: 900 56px/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em;
  -webkit-text-stroke: 2px #2a1d10; paint-order: stroke fill; text-shadow: 0 3px 0 #2a1d10, 0 6px 14px #0006; }
.fb-score.pop strong { animation: fbpop .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fbpop { 0% { transform: scale(1); } 40% { transform: scale(1.28) translateY(-4px); } 100% { transform: scale(1); } }
@media (max-width: 760px) { .fb-score { top: calc(70px + env(safe-area-inset-top, 0px)); } .fb-score strong { font-size: 48px; } }

/* getting ready: before the first flap */
.fb-ready { position: absolute; left: 50%; top: 17%; transform: translateX(-50%); z-index: 3; pointer-events: none; display: grid; justify-items: center; gap: 14px; text-align: center; }
.fb-ready[hidden] { display: none; }
.fb-ready strong { font: 400 46px/1 var(--serif, var(--gu-serif)); color: #fff8e6; letter-spacing: .02em; text-shadow: 0 2px 0 #6b3d12, 0 4px 18px #0007; white-space: nowrap; }
.fb-ready small { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px #000a; white-space: nowrap; }
.fb-tap { position: relative; width: 56px; height: 56px; }
.fb-tap i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fffb; animation: fbtap 1.1s ease-out infinite; }
.fb-tap b { position: absolute; left: 21px; top: 21px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0006; animation: fbdot 1.1s ease-in-out infinite; }
@keyframes fbtap { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes fbdot { 0%, 100% { transform: scale(1); } 20% { transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .fb-tap i, .fb-tap b, .fb-score.pop strong { animation: none; } }

/* a white flash when the bird hits something */
.fb-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #fff; opacity: 0; }
.fb-flash.go { animation: fbflash .32s ease-out; }
@keyframes fbflash { 0% { opacity: var(--flash, .8); } 100% { opacity: 0; } }

.fb-pause { position: absolute; z-index: 4; top: calc(14px + env(safe-area-inset-top, 0px)); left: calc(50% + 150px); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #0003; background: #fffd; color: #2b2a33; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px #0003; }
.fb-pause:hover { background: #fff; }
.fb-pause[hidden] { display: none; }
@media (max-width: 760px) { .fb-pause { top: calc(68px + env(safe-area-inset-top, 0px)); left: auto; right: 14px; } }

.fb-paused { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(20, 18, 24, .45); backdrop-filter: blur(2px); }
.fb-paused[hidden] { display: none; }
.fb-paused strong { font: 400 48px/1 var(--serif, var(--gu-serif)); color: #fff; text-shadow: 0 2px 12px #000; }

.fb-medal { padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(217,178,107,.4); color: #f1d59a; font-size: 12px; }

/* the shop */
.swatch-bird { min-height: 90px; height: 100%; display: grid; place-items: center; background: linear-gradient(#4f86c9, #f2c79a); }
.swatch-bird b { position: relative; width: 46px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 62% 70%, var(--breast) 0 30%, transparent 31%), radial-gradient(circle at 40% 30%, #fff5, var(--body) 55%); box-shadow: 0 4px 8px #0004; }
.swatch-bird.glow b { box-shadow: 0 0 18px var(--body), 0 4px 8px #0004; }
.swatch-bird .eye { position: absolute; right: 8px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 65% 50%, #111 0 32%, #fff 34%); }
.swatch-bird .beak { position: absolute; right: -9px; top: 14px; width: 0; height: 0; border-left: 12px solid var(--beak); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.swatch-bird .wing { position: absolute; left: 6px; top: 13px; width: 20px; height: 11px; border-radius: 50%; background: var(--wing); transform: rotate(-12deg); }
.swatch-pipes { min-height: 90px; height: 100%; position: relative; background: linear-gradient(#4f86c9, #f2c79a); overflow: hidden; }
.swatch-pipes i { position: absolute; left: calc(50% - 15px); width: 30px; background: linear-gradient(90deg, #0004, transparent 30%, #fff3 45%, transparent 60%, #0003), var(--pipe); }
.swatch-pipes i:before { content: ""; position: absolute; left: -4px; right: -4px; height: 12px; background: linear-gradient(90deg, #0004, transparent 30%, #fff3 45%, transparent 60%, #0003), var(--rim); border-radius: 3px; }
.swatch-pipes .up { top: 0; height: 30%; }
.swatch-pipes .up:before { bottom: 0; }
.swatch-pipes .down { bottom: 0; height: 34%; }
.swatch-pipes .down:before { top: 0; }
.swatch-pipes.glow i { box-shadow: 0 0 14px var(--pipe); }
/* stone pillars: stacked blocks under a broad capstone */
.swatch-pipes.stone i { background: repeating-linear-gradient(0deg, transparent 0 13px, #0004 13px 15px), linear-gradient(90deg, #0003, transparent 25%, #fff2 50%, transparent 75%, #0003), var(--pipe); }
.swatch-pipes.stone i:before { border-radius: 1px; left: -5px; right: -5px; height: 10px; background: linear-gradient(#fff3, #0002), var(--rim); }
.swatch-sky { min-height: 90px; height: 100%; position: relative; overflow: hidden; background: linear-gradient(var(--top), var(--low)); }
.swatch-sky i { position: absolute; left: -6%; right: -6%; bottom: 14px; height: 44px; background: var(--hills); clip-path: polygon(0 100%, 0 35%, 8% 30%, 14% 0, 38% 0, 44% 45%, 56% 50%, 62% 18%, 84% 14%, 90% 40%, 100% 45%, 100% 100%); }
.swatch-sky:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--ground); }
.swatch-sky.stars { background: radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 45% 12%, #fff 0 1px, transparent 2px), linear-gradient(var(--top), var(--low)); }
