/* Shared screen: a fixed 1920×1080 stage scaled to fit any TV/laptop. */
html, body { overflow: hidden; background: #2a2420; }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; overflow: clip; /* clip: the overhanging band must never scroll the stage */
  transform-origin: center center; transform: translate(-50%, -50%);
  background-color: var(--paper);
  background-image: inherit;
  border-radius: 28px;
  box-shadow: none;
  --cat: var(--purple);
}
body { background-image: none; }
#stage { background-image: var(--halftone); background-size: 22px 22px; }
#stage::after { content: ""; position: absolute; inset: 0; border: 14px solid var(--ink); border-radius: 28px; pointer-events: none; z-index: 16; } /* comic page frame */

#room { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s; }
#room .l { fill: none; stroke: var(--line); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
#room .f { fill: rgba(255, 255, 255, .35); }

/* slanted colour band across the lower third */
#band {
  position: absolute; left: -40px; right: -40px; bottom: -10px; height: 360px;
  background: var(--cat);
  clip-path: polygon(0 26%, 100% 6%, 100% 100%, 0 100%);
  transition: background-color .45s ease, height .5s cubic-bezier(.2, 1.3, .4, 1), clip-path .5s;
  box-shadow: inset 0 14px 0 rgba(0, 0, 0, .08);
}
#band::after { /* halftone on the band */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, .16) 22%, transparent 24%); background-size: 22px 22px;
}
#stage.full #band::after { /* speed burst behind full-screen moments */
  background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .14) 0 6deg, transparent 6deg 15deg), radial-gradient(rgba(0, 0, 0, .14) 22%, transparent 24%);
  background-size: auto, 22px 22px;
}
#stage.full #band { height: 1100px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
#stage.full #room { opacity: 0; }
#stage.noband #band { height: 0; }

#scene { position: absolute; inset: 0; }

/* HUD */
#hud { position: absolute; top: 26px; left: 34px; right: 34px; display: flex; gap: 18px; align-items: center; pointer-events: none; z-index: 5; }
#hud-code { background: #fff; border: 5px solid var(--ink); border-radius: 8px; padding: 6px 16px; font-family: var(--display); font-size: 30px; display: flex; gap: 12px; align-items: baseline; box-shadow: var(--shadow); }
#hud-code span { font-size: 26px; color: var(--ink-soft); font-family: var(--body); }
#hud-round { font-family: var(--display); font-size: 30px; background: var(--comic-yellow); color: var(--ink); border: 5px solid var(--ink); padding: 4px 18px 8px; border-radius: 8px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
#hud-chances { display: flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 26px; margin-inline-start: auto; }
#hud-chances .tok { width: 46px; height: 46px; display: inline-block; }
#hud-chances .tok.used { opacity: .22; filter: grayscale(1); }

/* fuse timer (burns from right to left in RTL) */
#fuse { position: absolute; left: 280px; /* clear of the corner controls */ right: 60px; bottom: 34px; height: 30px; z-index: 6; }
#fuse .cord { position: absolute; left: 0; top: 13px; height: 6px; width: 100%; border-radius: 3px; background: repeating-linear-gradient(90deg, #3a2a1c 0 14px, #6d4c2f 14px 22px); transform-origin: left center; }
#fuse .spark { position: absolute; top: -6px; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, #ffe066 30%, #ff8a00 52%, rgba(255, 80, 0, 0) 72%); animation: flicker .12s infinite alternate; }
#fuse.hot .spark { animation: flicker .06s infinite alternate; transform: scale(1.35); }
@keyframes flicker { from { opacity: .75; } to { opacity: 1; } }

#controls { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 8px; opacity: .25; transition: opacity .2s; z-index: 20; }
#controls:hover { opacity: 1; }
#controls button { width: 54px; height: 54px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; font-size: 24px; cursor: pointer; }
#conn { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 56px; background: rgba(246, 239, 226, .92); z-index: 30; }

/* ---------- reusable scene pieces ---------- */
.ribbon {
  position: absolute; right: 0; display: flex; align-items: center; gap: 22px;
  background: var(--comic-yellow); color: var(--ink); padding: 16px 70px 24px 140px;
  font-family: var(--display); font-size: 74px; line-height: 1;
  border: 8px solid var(--ink); border-right: 0; border-radius: 8px 0 0 8px;
  box-shadow: 10px 11px 0 rgba(0, 0, 0, .35);
  animation: slideR .5s cubic-bezier(.2, 1.2, .4, 1) both;
}
.ribbon .sub { display: block; font-family: var(--body); font-weight: 600; font-size: 28px; opacity: .9; margin-top: 10px; }
.ribbon .accent { color: #fff; -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; }
.arrowhook { position: absolute; width: 150px; height: 150px; }

.bigring { position: absolute; width: 380px; height: 380px; border-width: 10px; animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.bigring.left { left: 140px; }

.huge { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); color: #fff; -webkit-text-stroke: 18px var(--ink); paint-order: stroke fill; text-shadow: 12px 14px 0 rgba(0, 0, 0, .35); }
.huge .n { font-size: 520px; line-height: 1; animation: slam .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.huge .go { font-size: 170px; line-height: 1.15; max-width: 1700px; text-align: center; animation: slam .4s both, shake .35s .4s infinite; }

/* the ready / writing countdown: outlined so it reads in every category colour */
.ghostnum { position: absolute; top: 70px; left: 640px; font-family: var(--display); font-size: 170px; color: #fff; -webkit-text-stroke: 16px var(--ink); paint-order: stroke fill; line-height: 1; }

.explode {
  position: absolute; display: grid; place-items: center; color: #fff; font-family: var(--display);
  background: var(--ink); padding: 40px 90px;
  clip-path: polygon(50% 0, 60% 18%, 82% 4%, 78% 28%, 100% 30%, 84% 50%, 100% 70%, 78% 72%, 84% 96%, 60% 82%, 50% 100%, 40% 82%, 16% 96%, 22% 72%, 0 70%, 16% 50%, 0 30%, 22% 28%, 18% 4%, 40% 18%);
  animation: pop .45s cubic-bezier(.2, 1.5, .4, 1) both;
}

.card {
  position: absolute; background: #fffaf0; border: 8px solid var(--ink); border-radius: 8px;
  box-shadow: 14px 16px 0 rgba(0, 0, 0, .35); padding: 34px 48px;
}
.eyebrow { font-family: var(--display); color: var(--cat); font-size: 64px; line-height: 1.15; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; } /* outline: mustard/orange/green fail contrast on paper */
.tasktext { font-family: var(--display); font-size: 70px; line-height: 1.25; margin-top: 18px; }
.face-ref { display: block; max-height: 420px; max-width: 100%; margin: 18px auto 0; border: 6px solid var(--ink); border-radius: 18px; animation: rise .4s both; }
.face-ref.small { float: left; max-height: 110px; margin: 0 16px 0 0; border-width: 4px; } /* fits beside the text, above the debate ribbon */
.card:has(> .face-ref.small) { display: flow-root; }

/* player name tags on the band */
.ptag { position: absolute; display: flex; flex-direction: column; align-items: center; width: 220px; animation: drop .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.ptag .ring { width: 150px; height: 150px; border-width: 6px; }
.ptag .tag { font-size: 40px; margin-top: -14px; transform: rotate(var(--r, -3deg)); max-width: 244px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptag .tag.long { font-size: 31px; padding-inline: .5em; } /* 9-12 letter names fit without an ellipsis */
.ptag.off { opacity: .4; filter: grayscale(1); }
.ptag .badge { position: absolute; top: -18px; left: 8px; width: 84px; height: 84px; display: grid; place-items: center; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.ptag .badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ptag .badge b { position: relative; z-index: 2; margin: -18px 0 0 -16px; font-family: var(--display); font-size: 36px; color: var(--ink); } /* sits in the lens */
.ptag .tick { position: absolute; top: 4px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--green); border: 4px solid var(--ink); color: #fff; font-size: 34px; display: grid; place-items: center; animation: pop .3s both; }
.ptag .stamp { position: absolute; top: 40px; font-family: var(--display); font-size: 52px; color: var(--green); border: 6px solid var(--green); padding: 0 18px; border-radius: 10px; background: rgba(255, 255, 255, .85); transform: rotate(-14deg); animation: slam .35s both; }
.ptag .answer { margin-top: 10px; background: #fffbe8; border: 3px solid var(--ink); border-radius: 10px; padding: 6px 14px; font-family: var(--display); font-size: 32px; max-width: 280px; text-align: center; transform: rotate(1.5deg); }
.ptag.host .tag::after { content: ' ★'; color: var(--mustard); }

.faker-peek { position: absolute; width: 520px; bottom: 120px; left: 0; right: 0; margin: 0 auto; animation: rise .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.caption { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--display); color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 6px 7px 0 rgba(0, 0, 0, .3); }

.cage { position: absolute; inset: -6% -4% -2%; pointer-events: none; animation: drop .5s cubic-bezier(.3, 1.6, .5, 1) both; }

/* caught variants (display.js caughtScene): wanted poster, mugshot, spotlight */
.wanted { position: absolute; left: 50%; top: 60px; width: 600px; height: 820px; margin-left: -300px; box-sizing: border-box; padding: 6px 40px 0; background: #f1dcab; border: 8px solid var(--ink); border-radius: 10px; box-shadow: 14px 16px 0 rgba(0, 0, 0, .35); text-align: center; transform: rotate(-3deg); animation: posterIn .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.wanted b { display: block; font-family: var(--display); font-weight: 400; font-size: 130px; line-height: 1.15; color: #6b3a1c; }
.wanted .wp { height: 440px; border: 6px solid var(--ink); background: #fffaf0; overflow: hidden; }
.wanted .wn { display: block; font-family: var(--display); font-size: 72px; margin-top: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp { position: absolute; left: 50%; top: 46%; font-style: normal; font-family: var(--display); font-size: 150px; line-height: 1.2; color: var(--red); border: 12px solid var(--red); border-radius: 24px; padding: 0 40px; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) rotate(-18deg); animation: stamp .3s .9s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes posterIn { 0% { transform: translateY(-130%) rotate(-25deg); } 100% { transform: translateY(0) rotate(-3deg); } }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg) scale(2.6); } 100% { opacity: .92; transform: translate(-50%, -50%) rotate(-18deg) scale(1); } }

.mug { position: absolute; inset: 0; background: #3d4a57; overflow: hidden; }
.mug > i { position: absolute; left: 0; right: 0; border-top: 5px solid rgba(255, 255, 255, .5); font: 600 34px var(--body); font-style: normal; color: rgba(255, 255, 255, .65); padding: 6px 60px; text-align: left; }
.mug-av { position: absolute; left: 50%; top: 150px; width: 560px; height: 620px; margin-left: -280px; }
.mug-board { position: absolute; left: 50%; bottom: 70px; width: 600px; margin-left: -300px; box-sizing: border-box; padding: 10px 20px 16px; background: var(--ink); color: #fff; border: 8px solid #fff; border-radius: 14px; font-family: var(--display); font-size: 60px; line-height: 1.1; text-align: center; animation: rise .4s .3s both; }
.mug-board small { display: block; font-size: 84px; color: var(--comic-yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: flash 1.2s .7s both; }
@keyframes flash { 0%, 100% { opacity: 0; } 5% { opacity: .9; } 30% { opacity: 0; } 58% { opacity: .8; } 82% { opacity: 0; } }

.spot { position: absolute; inset: 0; overflow: hidden; }
.spot-av { position: absolute; left: 50%; top: 110px; width: 520px; height: 620px; margin-left: -260px; }
.beam { position: absolute; left: 50%; top: 420px; width: 660px; height: 660px; margin: -330px 0 0 -330px; border-radius: 50%; box-shadow: 0 0 0 4000px rgba(12, 10, 8, .9), inset 0 0 90px 30px rgba(12, 10, 8, .55); animation: sweep 1.3s cubic-bezier(.5, 0, .3, 1) both; }
@keyframes sweep { 0% { transform: translateX(-760px); } 40% { transform: translateX(620px); } 75% { transform: translateX(-180px); } 100% { transform: translateX(0); } }
.siren { position: absolute; top: 0; bottom: 0; width: 300px; opacity: 0; animation: siren .5s 1.3s infinite alternate; }
.siren.l { left: 0; background: linear-gradient(90deg, rgba(214, 48, 58, .8), transparent); }
.siren.r { right: 0; background: linear-gradient(-90deg, rgba(31, 138, 216, .8), transparent); animation-delay: 1.55s; }
@keyframes siren { to { opacity: 1; } }
.caption.late { animation: rise .4s 1.3s both; }
@media (prefers-reduced-motion: reduce) { .flash, .siren { display: none; } .beam, .wanted, .stamp, .caption.late { animation-duration: .01s; animation-delay: 0s; } }

/* lobby */
.logo { position: absolute; top: 90px; right: 110px; font-family: var(--display); font-size: 170px; line-height: .9; transform: rotate(-3deg); color: #fff; -webkit-text-stroke: 14px var(--ink); paint-order: stroke fill; text-shadow: 12px 14px 0 rgba(0, 0, 0, .35); }
.logo .q { color: var(--red); display: inline-block; transform: rotate(-10deg) translateY(-8px); }
.logo small { display: table; font-size: 44px; color: var(--ink); font-family: var(--display); -webkit-text-stroke: 0; text-shadow: none; background: var(--comic-yellow); border: 7px solid var(--ink); border-radius: 8px; padding: 4px 26px 12px; margin-top: 26px; box-shadow: 8px 9px 0 rgba(0, 0, 0, .3); transform: rotate(2deg); }
.joincard { position: absolute; top: 80px; left: 110px; width: 640px; text-align: center; transform: rotate(1.5deg); }
.joincard .lbl { font-size: 30px; color: var(--ink-soft); font-weight: 700; }
.joincard .code { font-family: var(--display); font-size: 132px; letter-spacing: 10px; margin: 6px -10px 4px 0; /* sized so WWWW, the widest code, stays inside the card */ white-space: nowrap; line-height: 1; direction: ltr; }
.joincard .qr { width: 220px; height: 220px; margin: 8px auto; background: #fff; }
.joincard .qr img, .joincard .qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
.joincard .url { font-size: 34px; direction: ltr; font-weight: 700; overflow-wrap: anywhere; line-height: 1.2; }
.lobby-status { position: absolute; top: 470px; right: 120px; font-size: 36px; font-weight: 700; color: var(--ink-soft); max-width: 900px; line-height: 1.5; }
.lobby-status b { color: var(--ink); }
.slot { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 5px dashed rgba(0, 0, 0, .28); }

/* tutorial panels */
.tut { position: absolute; top: 150px; right: 140px; left: 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; animation: rise .5s both; }
.tut h2 { font-family: var(--display); font-size: 92px; margin: 0; line-height: 1.05; -webkit-text-stroke: 12px var(--ink); paint-order: stroke fill; text-shadow: 8px 9px 0 rgba(0, 0, 0, .3); }
.tut p { font-size: 40px; line-height: 1.55; font-weight: 600; margin: 18px 0 0; }
.tut .pic { position: relative; height: 520px; }
.dots { position: absolute; bottom: 60px; left: 0; right: 0; display: flex; gap: 14px; justify-content: center; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 4px solid #fff; }
.dots i.on { background: #fff; }

/* category chooser cards on screen */
.catcards { position: absolute; left: 120px; right: 120px; top: 560px; display: flex; gap: 26px; justify-content: center; }
.catcard { width: 260px; height: 300px; background: #fffaf0; border: 8px solid var(--ink); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 18px; box-shadow: var(--shadow); animation: drop .5s both; }
.catcard .ring { width: 170px; height: 170px; border-color: var(--c); margin-bottom: 12px; }
.catcard b { font-family: var(--display); font-size: 44px; color: var(--c); -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; }
.catcard.used { opacity: .25; filter: grayscale(1); }

/* recap */
.recap { position: absolute; top: 110px; left: 110px; right: 110px; bottom: 120px; }
.recap .row { display: flex; gap: 22px; align-items: baseline; font-size: 36px; margin-bottom: 18px; animation: rise .4s both; }
.recap .row .k { font-family: var(--display); color: var(--cat); white-space: nowrap; }
.recap .row .res { margin-inline-start: auto; font-family: var(--display); white-space: nowrap; }
.recap .people { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 36px; }
.recap .person { text-align: center; width: 200px; animation: rise .5s both; }
.recap .person .ring { width: 120px; height: 120px; margin: 0 auto; border-width: 5px; }
.recap .person .nm { font-family: var(--display); font-size: 34px; color: #fff; margin-top: 4px; }
.recap .person .marks { font-size: 34px; color: #fff; letter-spacing: 6px; direction: ltr; }
.recap .person .gain { font-family: var(--display); font-size: 46px; color: #fff; text-shadow: 3px 3px 0 rgba(0, 0, 0, .3); animation: pop .5s 1s both; }
.recap .person.isfaker .nm::after { content: 'المدسوس'; display: block; color: var(--comic-yellow); } /* yellow: ink on the ink outline was a black smear */
.recap .legend { position: absolute; bottom: -84px; left: 50%; transform: translateX(-50%); width: max-content; font-size: 30px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: 4px 28px 8px; }

/* scoreboard */
.scores { position: absolute; top: 300px; left: 160px; right: 160px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 30px; }
.blob { display: flex; flex-direction: column; align-items: center; animation: rise .5s both; }
.blob .ring { width: 130px; height: 130px; border-width: 5px; }
.blob .nm { font-family: var(--display); font-size: 40px; margin-top: -10px; }
.blob .pts { background: var(--comic-yellow); color: var(--ink); border: 6px solid var(--ink); box-shadow: var(--shadow); font-family: var(--display); font-size: 50px; padding: 0 26px 6px; border-radius: 50%; margin-top: 4px; min-width: 150px; text-align: center; }
.blob .rank { font-family: var(--display); font-size: 34px; color: var(--ink-soft); }

/* white names on the band get an ink outline so they read like comic lettering */
.recap .person .nm, .recap .person .gain, .blob .nm, .blob .rank, .award .who span, .mystery-wrap .mq { -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }

/* final answers */
.answers { position: absolute; top: 400px; left: 100px; right: 100px; display: flex; flex-wrap: wrap; gap: 26px 30px; justify-content: center; }

/* winner */
.trophy { position: absolute; top: 120px; left: 0; right: 0; margin: 0 auto; width: 260px; animation: pop .7s both; }
.banner { position: absolute; top: 360px; left: 0; right: 0; margin: 0 auto; width: max-content; background: var(--orange); color: #fff; font-family: var(--display); font-size: 80px; padding: 8px 120px 14px; clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); animation: pop .6s .3s both; }
.awards { position: absolute; bottom: 70px; /* room for two rows of standings above */ left: 0; right: 0; display: flex; justify-content: center; gap: 120px; }
.award { text-align: center; animation: rise .6s both; }
.award .rib { display: inline-block; background: var(--c); color: #fff; font-family: var(--display); font-size: 40px; padding: 6px 40px 10px; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%); }
.award .who { display: flex; gap: 14px; justify-content: center; margin-top: 10px; }
.award .who .ring { width: 110px; height: 110px; border-width: 5px; }
.award .who span { display: block; font-family: var(--display); font-size: 34px; color: #fff; }
/* everyone's final place, between the winner banner and the awards */
.standings { position: absolute; top: 600px; left: 110px; right: 110px; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; animation: rise .6s .5s both; }
.standings div { display: flex; align-items: baseline; gap: 10px; background: #fffaf0; border: 4px solid var(--ink); border-radius: 8px; padding: 0 14px 4px; font-family: var(--display); font-size: 32px; box-shadow: 4px 5px 0 var(--ink); }
.standings i { font-style: normal; color: var(--ink-soft); }
.standings span { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standings b { font-weight: 400; color: var(--purple); }

/* setup + pause overlays */
#setup { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(246, 239, 226, .9); z-index: 25; }
#setup.hidden { display: none; }
.setup-card { width: 980px; text-align: center; background: #fffaf0; border: 10px solid var(--ink); border-radius: 8px; padding: 56px 70px 48px; box-shadow: 16px 18px 0 rgba(0, 0, 0, .35); transform: rotate(-1deg); }
.setup-card p { font-size: 34px; line-height: 1.6; font-weight: 600; margin: 18px 0; }
.logo-sm { font-family: var(--display); font-size: 120px; line-height: 1; }
.logo-sm span { color: var(--red); display: inline-block; transform: rotate(-10deg); }
.setup-actions { display: flex; gap: 26px; justify-content: center; margin-top: 26px; }
.setup-actions .btn { font-size: 46px; padding: 18px 46px; min-height: 0; }
.setup-hint { font-size: 26px !important; color: var(--ink-soft); }
.setup-error { color: var(--red); min-height: 1em; }
#paused { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27, 23, 20, .55); z-index: 22; }
#paused.hidden { display: none; }
.paused-card { background: #fffaf0; border: 10px solid var(--ink); border-radius: 8px; box-shadow: 16px 18px 0 rgba(0, 0, 0, .35); padding: 40px 80px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.paused-card b { font-family: var(--display); font-size: 96px; }
.paused-card span { font-size: 34px; font-weight: 600; color: var(--ink-soft); }

/* six-person cast (Shared/art/cast) */
.host-pose { position: absolute; left: 90px; bottom: 40px; width: 460px; height: 760px; animation: rise .55s cubic-bezier(.2, 1.3, .4, 1) both; pointer-events: none; }
.host-pose img.pose { filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, .18)); }
.iconbox { width: 170px; height: 170px; margin-bottom: 12px; border: 5px solid var(--c); border-radius: 22px; overflow: hidden; background: #fff; }
.iconbox img.caticon { width: 100%; height: 100%; object-fit: cover; }
.tut .pic { display: grid; place-items: center; }
.tut .pic img.scene { width: 100%; height: 100%; object-fit: contain; border: 6px solid var(--ink); border-radius: 26px; background: #fffaf0; box-shadow: var(--shadow); box-sizing: border-box; }
.caged { position: relative; width: 420px; height: 520px; margin: auto; }
.tut .pic .caged { width: 420px; height: 520px; }
.caged .cage { inset: -4% -6% -2%; }
.faker-peek { height: 560px; }
.faker-peek .got-away { animation: wobble 1.4s infinite; }
.av-full { display: block; width: 100%; height: 100%; }
.caged img.av-full { height: 80%; margin-top: 20%; }
.av-full.caught { animation: shake .4s 4; }
.accused-avatar { width: 300px; height: 300px; margin: 0 auto; }
.mystery-wrap { position: relative; width: 100%; height: 100%; }
.mystery-wrap .mq { position: absolute; top: 2%; left: 84%; /* beside the hat, clear of the eyes */ font-family: var(--display); font-size: 160px; color: #fff; -webkit-text-stroke: 4px var(--ink); text-shadow: 6px 7px 0 rgba(0, 0, 0, .25); animation: wobble 1.8s infinite; }
.recap .person .ring.fk { border-color: var(--red); box-shadow: 0 0 0 6px var(--red), var(--shadow); }
.host-pose.above-tags { top: 90px; bottom: auto; height: 520px; width: 360px; left: 130px; }

/* ---------- comic intro (Shared/intro-show.js) ----------
   All motion comes from the script (time-driven, seekable); CSS only sets the look. */
.cx { position: absolute; inset: 0; overflow: hidden; background: var(--ink); direction: ltr; }
.cx-page { position: absolute; inset: 0; background-image: radial-gradient(rgba(0, 0, 0, .14) 22%, transparent 24%); background-size: 22px 22px; will-change: transform; }
.cx-page.burst { background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .16) 0 6deg, transparent 6deg 15deg); }
.cx-panel { position: absolute; overflow: hidden; background: #fffaf0; border: 12px solid var(--ink); border-radius: 6px; box-shadow: 16px 18px 0 rgba(0, 0, 0, .35); will-change: transform; }
.cx-art { position: absolute; inset: 0; will-change: transform; }
.cx-art img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; }
.cx-fx { position: absolute; left: 0; top: 0; font-family: var(--display); line-height: 1; white-space: nowrap; direction: rtl; color: #f6d77d; -webkit-text-stroke: 12px var(--ink); paint-order: stroke fill; text-shadow: 10px 11px 0 rgba(0, 0, 0, .35); opacity: 0; will-change: transform; }
.cx-fx.red { color: #ff5a5f; }
.cx-fx.num { color: #fff; -webkit-text-stroke: 18px var(--ink); }
.cx-fx.bubble { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; background: #fff; border: 8px solid var(--ink); border-radius: 50%; padding: 30px 60px 46px; box-shadow: 10px 11px 0 rgba(0, 0, 0, .3); }
.cx-fx.bubble::after { content: ""; position: absolute; left: 30%; bottom: -46px; border: 26px solid transparent; border-top: 40px solid var(--ink); }
.cx-fx.card { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; background: #fffaf0; border: 8px solid var(--ink); border-radius: 18px; padding: 18px 46px 28px; box-shadow: 12px 13px 0 rgba(0, 0, 0, .35); white-space: nowrap; }
.cx-fx.card.tv { white-space: normal; width: 25%; text-align: center; border: 0; box-shadow: none; background: transparent; padding: 0; line-height: 1.25; }
.cx-fx.tag { -webkit-text-stroke: 0; text-shadow: none; color: #fff; border: 7px solid var(--ink); border-radius: 999px; padding: 6px 30px 14px; box-shadow: 8px 9px 0 rgba(0, 0, 0, .3); }
.cx-fx.tag.yes { background: #2fae4a; }
.cx-fx.tag.no { background: #d6303a; }
.cx-fx.check { color: #2fae4a; -webkit-text-stroke: 14px #fff; text-shadow: 6px 7px 0 rgba(0, 0, 0, .35); font-family: var(--body); font-weight: 700; }
.cx-fx.label { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; background: #f6d77d; border: 7px solid var(--ink); border-radius: 12px; padding: 4px 26px 14px; box-shadow: 8px 9px 0 rgba(0, 0, 0, .3); }
.cx-fx.mark { color: #fff; -webkit-text-stroke: 12px var(--ink); }
.cx-fx.stamp { color: #2fae4a; -webkit-text-stroke: 0; text-shadow: none; border: 12px solid currentColor; border-radius: 22px; padding: 14px 40px 26px; background: rgba(255, 255, 255, .9); }
.cx-hats { position: absolute; top: 40px; left: 50%; display: flex; align-items: center; gap: 16px; background: #fffaf0; border: 7px solid var(--ink); border-radius: 22px; padding: 6px 26px 8px; box-shadow: 10px 11px 0 rgba(0, 0, 0, .35); direction: rtl; opacity: 0; }
.cx-hats b { font-family: var(--display); font-size: 54px; margin-left: 8px; }
.cx-hats i { display: block; width: 90px; height: 90px; }
.cx-hats i svg { width: 100%; height: 100%; }
.cx-logo { position: absolute; left: 50%; top: 40px; font-family: var(--display); font-size: 200px; line-height: .9; color: #fff; -webkit-text-stroke: 14px var(--ink); paint-order: stroke fill; text-align: center; white-space: nowrap; direction: rtl; transform-origin: 50% 60%; text-shadow: 12px 14px 0 rgba(0, 0, 0, .35); opacity: 0; }
.cx-logo b { color: #ff5a5f; display: inline-block; font-weight: inherit; }
.cx-logo.end { top: 50%; font-size: 260px; }
.cx-logo.end small { display: table; margin: 30px auto 0; font-size: 64px; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; background: #f6d77d; border: 7px solid var(--ink); border-radius: 12px; padding: 8px 36px 16px; }
.cx-cap { position: absolute; left: 50%; bottom: 54px; width: max-content; max-width: 1640px; text-align: center; background: #f6d77d; color: var(--ink); border: 8px solid var(--ink); border-radius: 6px; box-shadow: 10px 11px 0 rgba(0, 0, 0, .35); font-family: var(--display); font-size: 62px; line-height: 1.2; padding: 12px 46px 20px; direction: rtl; opacity: 0; transform-origin: 50% 100%; }
.cx-dots { position: absolute; bottom: 16px; right: 36px; display: flex; gap: 10px; }
.cx-dots i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; background: transparent; }
.cx-dots i.on { background: #fff; }
.cx-skip { position: absolute; top: 18px; left: 24px; font-size: 26px; font-weight: 700; background: rgba(255, 255, 255, .92); color: var(--ink); padding: 6px 16px; border-radius: 10px; border: 3px solid var(--ink); direction: rtl; z-index: 2; }
/* Keep the conversation cue and timer readable above the people and answers. */
.debate-clock { position: absolute; top: 492px; inset-inline: 120px; text-align: center; font-family: var(--display); font-size: 50px; line-height: 1.1; color: var(--ink); }
/* discussion: the task alone, big and centred above the people */
.debate-big { position: absolute; top: 100px; height: 500px; inset-inline: 170px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px; }
.debate-big .card { position: relative; width: 100%; box-sizing: border-box; text-align: center; padding: 30px 60px 40px; animation: slam .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.debate-big .eyebrow { font-size: 64px; color: var(--red); }
.debate-big .tasktext { font-size: 84px; line-height: 1.2; margin-top: 6px; }
.debate-big .face-ref { max-height: 190px; margin: 0 auto 10px; }
.debate-big .debate-clock { position: static; font-size: 46px; }
/* voting: a short cue, plus a line only when there is news (agreement, what blocks it) */
.vote-now { position: absolute; top: 300px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--ink); color: #fff; font-family: var(--display); font-size: 72px; line-height: 1.2; padding: 6px 46px 12px; border-radius: 14px; box-shadow: var(--shadow); white-space: nowrap; }
.vote-status { position: absolute; top: 420px; inset-inline: 160px; text-align: center; font-family: var(--body); font-weight: 700; font-size: 34px; color: var(--ink); }
/* ---------- comic scene transitions (display.js wipe()) ----------
   The new scene is already built underneath; a comic panel covers the cut with a
   sound-effect word, then gets out of the way in one of four styles. */
@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }
#wipe { position: absolute; inset: 0; z-index: 15; pointer-events: none; perspective: 2600px; overflow: hidden; }
#wipe i { position: absolute; inset: 0; display: block; background-color: var(--cat); background-image: var(--halftone), repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .16) 0 6deg, transparent 6deg 15deg); background-size: 22px 22px, auto; box-shadow: inset 0 0 0 14px var(--ink); animation: .46s .3s cubic-bezier(.55, 0, .7, .2) forwards; }
/* iris: a hole opens from the middle */
#wipe.iris i { -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px)); mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px)); animation-name: wipeIris; }
@keyframes wipeIris { to { --hole: 1200px; } }
/* slice: cut diagonally, halves fly apart */
#wipe.slice i:nth-of-type(1) { clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%); animation-name: wipeUp; }
#wipe.slice i:nth-of-type(2) { clip-path: polygon(0 62%, 100% 38%, 100% 100%, 0 100%); animation-name: wipeDown; }
@keyframes wipeUp { to { transform: translate(-12%, -75%) rotate(-6deg); } }
@keyframes wipeDown { to { transform: translate(12%, 75%) rotate(6deg); } }
/* flip: the page turns on its right-hand spine, like an Arabic comic */
#wipe.flip i { transform-origin: 100% 50%; backface-visibility: hidden; animation-name: wipeFlip; animation-duration: .55s; }
@keyframes wipeFlip { to { transform: rotateY(100deg); filter: brightness(.55); } }
/* strips: four panels drop off the page one after another */
#wipe.strips i { right: auto; width: calc(25% + 4px); transform-origin: 50% 0; animation-name: wipeFall; }
#wipe.strips i:nth-of-type(1) { left: 75%; }
#wipe.strips i:nth-of-type(2) { left: 50%; animation-delay: .36s; --tilt: -9deg; }
#wipe.strips i:nth-of-type(3) { left: 25%; animation-delay: .42s; }
#wipe.strips i:nth-of-type(4) { left: 0; animation-delay: .48s; --tilt: -9deg; }
@keyframes wipeFall { to { transform: translateY(120%) rotate(var(--tilt, 9deg)); } }

/* ---------- sound settings panel (⚙) ---------- */
#prefs { position: absolute; inset: 0; z-index: 27; display: grid; place-items: center; background: rgba(27, 23, 20, .55); }
#prefs.hidden { display: none; }
.prefs-card { width: 900px; background: #fffaf0; border: 10px solid var(--ink); border-radius: 8px; box-shadow: 16px 18px 0 rgba(0, 0, 0, .35); padding: 40px 56px 44px; transform: rotate(-1deg); }
.prefs-card h2 { font-family: var(--display); font-size: 78px; margin: 0 0 18px; line-height: 1; }
.prefs-row { display: grid; grid-template-columns: 260px 1fr 90px; align-items: center; gap: 24px; font-size: 38px; font-weight: 700; margin: 22px 0; }
.prefs-row output { font-family: var(--display); font-size: 40px; text-align: center; background: var(--comic-yellow); border: 5px solid var(--ink); border-radius: 8px; padding: 0 6px 4px; }
.prefs-mute { display: flex; align-items: center; gap: 18px; font-size: 40px; font-weight: 700; margin-bottom: 10px; }
.prefs-mute input { width: 46px; height: 46px; accent-color: var(--red); }
.prefs-hint { font-size: 28px; color: var(--ink-soft); margin: 18px 0 26px; }
.prefs-card .btn { font-size: 44px; padding: 14px 60px; }
#prefs.muted .prefs-row { opacity: .4; }
/* chunky comic slider */
#prefs input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: #fff; border: 5px solid var(--ink); border-radius: 999px; direction: ltr; }
#prefs input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 54px; height: 54px; border-radius: 50%; background: var(--red); border: 6px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); cursor: pointer; }
#prefs input[type=range]::-moz-range-thumb { width: 44px; height: 44px; border-radius: 50%; background: var(--red); border: 6px solid var(--ink); cursor: pointer; }
#prefs input[type=range]:focus-visible { outline: 6px solid var(--blue); outline-offset: 6px; }
#tap-sound { position: absolute; top: 120px; left: 50%; transform: translateX(-50%) rotate(-1.5deg); z-index: 21; background: var(--comic-yellow); border: 6px solid var(--ink); border-radius: 8px; box-shadow: 8px 9px 0 rgba(0, 0, 0, .3); padding: 10px 34px 16px; font-family: var(--display); font-size: 42px; white-space: nowrap; }
#tap-sound.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
