@font-face { font-family: 'Lilita One'; src: url(fonts/lilita-one-latin-400-normal.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Nunito'; font-weight: 900; src: url(fonts/nunito-latin-900-normal.woff2) format('woff2'); }
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #1b1035; overflow: hidden; font-family: 'Nunito', system-ui, sans-serif; }
body { display: flex; align-items: center; justify-content: center; }
#frame { position: relative; height: 100vh; aspect-ratio: 9 / 16; max-width: 100vw; overflow: hidden; background: #ffd9e8; container-type: size; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
#hud { position: absolute; inset: 0; pointer-events: none; color: #fff; }
body.noui #hud, body.noui #help, body.capture #help { display: none; }
body.film #turn, body.film #tallies { display: none; }
#turn { position: absolute; top: 2.2cqh; left: 50%; transform: translateX(-50%); font-family: 'Lilita One', sans-serif; font-size: 3cqh; padding: .8cqh 3cqh; border-radius: 99px; border: .4cqh solid #fff; background: #2b7bff; box-shadow: 0 .6cqh 0 #1546a8; white-space: nowrap; }
#turn.them { background: #ff2d4f; box-shadow: 0 .6cqh 0 #7d0620; }
#tallies { position: absolute; top: 9cqh; left: 3cqw; right: 3cqw; display: flex; justify-content: space-between; font-family: 'Lilita One', sans-serif; font-size: 1.9cqh; }
#tallies > div { background: rgba(27,16,53,.6); border: .3cqh solid #fff; border-radius: 1.4cqh; padding: .5cqh 1.2cqh; }
#streak { position: absolute; left: 50%; top: 14.5cqh; transform: translateX(-50%); font-family: 'Lilita One', sans-serif; font-size: 3.4cqh; color: #fff; background: linear-gradient(90deg, #ff9d1c, #ff2d4f); border: .4cqh solid #fff; border-radius: 99px; padding: .5cqh 2.4cqh; box-shadow: 0 .6cqh 0 #7d0620; white-space: nowrap; z-index: 9; }
#streak.us { background: linear-gradient(90deg, #2bd9ff, #2b7bff); box-shadow: 0 .6cqh 0 #1546a8; }
#streak.pop { animation: pop .25s cubic-bezier(.3,2,.5,1); }
@keyframes pop { 0% { transform: translateX(-50%) scale(1.5) rotate(-6deg) } 100% { transform: translateX(-50%) scale(1) } }
#clock { position: absolute; left: 50%; bottom: 7cqh; width: 13cqh; height: 13cqh; margin-left: -6.5cqh; z-index: 12; }
#clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#clock .bg { fill: rgba(27,16,53,.75); stroke: rgba(255,255,255,.3); stroke-width: 8; }
#clock .fg { fill: none; stroke: #ffe14d; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 276.5; }
#clock.red .fg { stroke: #ff2d4f; }
#clock span { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Lilita One', sans-serif; font-size: 6cqh; color: #fff; }
#clock.red span { color: #ff6b84; animation: tickPulse .5s ease-in-out infinite; }
@keyframes tickPulse { 50% { transform: scale(1.15) } }

#scope { position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0 38cqw, rgba(10,8,20,.94) 38.4cqw); transition: none; }
#scope.on { opacity: 1; }
#scope .ch { position: absolute; background: rgba(20,20,30,.85); }
#scope .ch.h { left: 12cqw; right: 12cqw; top: 50%; height: .35cqh; margin-top: -.17cqh; }
#scope .ch.v { top: calc(50% - 38cqw); bottom: calc(50% - 38cqw); left: 50%; width: .35cqh; margin-left: -.17cqh; }
#scope .dot { position: absolute; left: 50%; top: 50%; width: 1.4cqh; height: 1.4cqh; margin: -.7cqh; border-radius: 50%; background: #ff2d4f; box-shadow: 0 0 1.4cqh #ff2d4f; }
#scope .ring { position: absolute; left: 50%; top: 50%; width: 76.8cqw; height: 76.8cqw; margin: -38.4cqw; border-radius: 50%; border: 1.2cqh solid #2b2f3a; box-shadow: inset 0 0 0 .5cqh #ff9d1c; }

#help { position: absolute; left: 0; right: 0; bottom: 0; padding: .6cqh 1cqh; background: rgba(0,0,0,.45); color: #fff; font-size: 1.2cqh; line-height: 1.4; text-align: center; z-index: 5; }
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
#flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 30; }
#flash.on { animation: flash .3s ease-out; }
@keyframes flash { 0% { opacity: .85 } 100% { opacity: 0 } }
#slam { position: absolute; left: 0; right: 0; top: 40cqh; text-align: center; pointer-events: none; z-index: 31; font-family: 'Lilita One', sans-serif; font-size: 7.6cqh; line-height: 1; color: #ffe14d; -webkit-text-stroke: .55cqh #1b1035; paint-order: stroke fill; text-shadow: 0 1cqh 0 #1b1035; opacity: 0; white-space: pre-line; }
#slam.on { animation: slam 1.5s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes slam { 0% { opacity: 0; transform: scale(3) rotate(-8deg) } 15% { opacity: 1; transform: scale(1) rotate(-4deg) } 82% { opacity: 1; transform: scale(1.04) rotate(-4deg) } 100% { opacity: 0; transform: scale(.9) rotate(-4deg) } }
#banner { position: absolute; left: 0; right: 0; top: 56cqh; text-align: center; pointer-events: none; z-index: 31; opacity: 0; }
#banner .b { display: inline-block; font-family: 'Lilita One', sans-serif; font-size: 5cqh; color: #fff; padding: 1.2cqh 3.4cqh; border: .5cqh solid #fff; border-radius: 2cqh; transform: rotate(-4deg); }
#banner.on { animation: slam 1.6s cubic-bezier(.2,1.6,.4,1) forwards; }
#cap { white-space: pre-line; position: absolute; top: 4.5cqh; left: 2cqw; right: 2cqw; text-align: center; z-index: 32; pointer-events: none; font-family: 'Lilita One', sans-serif; font-size: 5.4cqh; line-height: 1.05; color: #fff; -webkit-text-stroke: .5cqh #1b1035; paint-order: stroke fill; text-shadow: 0 .8cqh 0 #1b1035; opacity: 0; }
#cap.on { animation: capIn .35s cubic-bezier(.2,1.7,.45,1) forwards; }
@keyframes capIn { 0% { opacity: 0; transform: scale(.4) rotate(-6deg) } 100% { opacity: 1; transform: scale(1) rotate(-2deg) } }
.pop { position: absolute; transform: translate(-50%, -50%); font-family: 'Lilita One', sans-serif; font-size: 4.6cqh; color: #fff; -webkit-text-stroke: .45cqh #1b1035; paint-order: stroke fill; text-shadow: 0 .5cqh 0 #1b1035; animation: popUp 1s ease-out forwards; white-space: nowrap; z-index: 22; }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4) } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) } 100% { opacity: 0; transform: translate(-50%, -170%) scale(1) } }

.rays { position: absolute; left: 50%; top: 42%; width: 220cqh; height: 220cqh; margin: -110cqh 0 0 -110cqh; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.16) 0deg 9deg, rgba(255,255,255,0) 9deg 18deg); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
#endcard { position: absolute; inset: 0; z-index: 40; overflow: hidden; background: radial-gradient(circle at 50% 42%, #ffd23f 0%, #ff9d1c 32%, #ff2d6a 64%, #4b1a8f 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
#endcard .plate { position: relative; width: 92%; padding: 3cqh 3cqw; background: radial-gradient(ellipse at 50% 50%, #2b2f3a, #12101e); border: .6cqh solid #1b1035; border-radius: 3cqh; box-shadow: 0 1.2cqh 0 #1b1035, 0 0 6cqh rgba(255,157,28,.6); }
#endcard .plate img { display: block; width: 100%; }
#endcard.play .plate { animation: plateIn .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes plateIn { 0% { transform: scale(2.2) rotate(-10deg); opacity: 0 } 100% { transform: rotate(-3deg); opacity: 1 } }
#endcard .feat { position: relative; margin-top: 4.5cqh; font-family: 'Lilita One', sans-serif; font-size: 3.2cqh; color: #1b1035; background: #ffe14d; border: .4cqh solid #1b1035; padding: 1cqh 2.6cqh; border-radius: 99px; box-shadow: 0 .7cqh 0 #1b1035; transform: rotate(-2deg); }
#endcard .cta { position: relative; margin-top: 2.4cqh; font-family: 'Lilita One', sans-serif; font-size: 4cqh; color: #fff; background: #1b1035; border: .45cqh solid #fff; padding: 1.2cqh 3cqh; border-radius: 99px; box-shadow: 0 .8cqh 0 rgba(0,0,0,.35); animation: cta 1s ease-in-out infinite; }
@keyframes cta { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.07) } }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: #ffd9e8; font-family: 'Lilita One', sans-serif; font-size: 3cqh; color: #ff2d6a; z-index: 50; }
