/* Dead Wrong: Best Jest's horror twin. Same layout and components, a different
   night out: aged hotel-registry paper over a dark, wet basement, blood-red
   primary buttons, tarnished brass, Creepster for headlines and a typewriter
   for the Concierge. Everything here applies under body.theme-horror (or to
   the Dead Wrong screens, which only exist in that theme). */

body.theme-horror {
  --club: #060405;
  --night: #120909;
  --plum: #2a1212;
  --ink: #24150f;
  --ink-2: #4b3227;
  --muted: #8a7062;
  --paper: #efe3c9;
  --paper-2: #e2d1ae;
  --line: #d3bf98;
  --press: #9c8360;
  --pink: #c9162f;
  --pink-d: #7c0b1b;
  --gold: #e3bd67;
  --gold-d: #946a1f;
  --cyan: #8fe8d2;
  --accent: #9b1529;
  --accent-d: #5a0a15;
  --green: #5a9e3c;
  --green-d: #2f6420;
  --red: #dc2338;
  --red-d: #8a0e1e;
  --glass: rgba(239, 227, 201, 0.97);
  --glass-dark: rgba(12, 6, 6, 0.84);
  --glass-line: rgba(255, 205, 190, 0.13);
  --display: 'Creepster', 'Luckiest Guy', var(--font);
  --type: 'Special Elite', 'Courier New', ui-monospace, monospace;
  --paper-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .14 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grime: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.55);
}
html:has(body.theme-horror), body.theme-horror { background: var(--club); }
body.theme-horror ::selection { background: rgba(201, 22, 47, 0.35); }

/* the 2D fallback when there's no 3D stage */
body.theme-horror.no3d {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(160, 10, 30, 0.38), transparent 55%),
    radial-gradient(ellipse at 15% 110%, rgba(60, 120, 100, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 110%, rgba(90, 20, 40, 0.3), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 64px),
    #0b0606;
}

/* ---------------------------------------------------------------- loader */
#loader .dw-logo { display: none; }
body.theme-horror #loader { background: radial-gradient(ellipse at 50% 40%, #2a0b0e, #050304 70%); }
body.theme-horror #loader .bj-logo { display: none; }
body.theme-horror #loader .dw-logo { display: flex; }

/* ---------------------------------------------------------------- the logo */
.dw-logo { position: relative; display: flex; flex-direction: column; align-items: center; font-family: 'Creepster', var(--display); line-height: 0.84; font-size: clamp(50px, 11vw, 96px); letter-spacing: 0.04em; user-select: none; }
.dw-logo.big { font-size: clamp(56px, 12.5vw, 108px); }
#loader .dw-logo { font-size: clamp(48px, 12vw, 96px); }
.dw-logo .l1 { color: #f1e7d2; text-shadow: 0 0 2px #fff, 0 0 22px rgba(255, 230, 200, 0.35), 0 5px 0 #3a2a22, 0 10px 26px rgba(0, 0, 0, 0.7); transform: rotate(-2deg); }
.dw-logo .l2 { position: relative; color: #d11a2f; text-shadow: 0 0 20px rgba(220, 20, 40, 0.65), 0 5px 0 #4a050d, 0 12px 28px rgba(0, 0, 0, 0.75); transform: rotate(1.5deg) translateX(0.18em); }
.dw-logo em { position: absolute; right: -0.4em; top: -0.2em; font-style: normal; font-family: var(--font); font-weight: 900; font-size: clamp(12px, 2.4vw, 17px); letter-spacing: 0; padding: 4px 8px; border-radius: 8px; background: #1a0b0b; color: #ff5b6b; border: 1px solid rgba(255, 80, 90, 0.5); transform: rotate(8deg); }
body.theme-horror .t-title .tagline { font-family: var(--type); letter-spacing: 0.04em; color: #e8d9be; }

.t-title .title-top { display: flex; flex-direction: column; align-items: center; }

/* ---------------------------------------------------------------- shared components, rethemed */
body.theme-horror .btn {
  --b1: #f1e6cd; --b2: #dcc9a4; --lip: #7e6643; --glow: rgba(0, 0, 0, 0.45); --fg: var(--ink);
  border-radius: 14px;
  background-image: var(--paper-bg), linear-gradient(180deg, var(--b1), var(--b2));
}
body.theme-horror .btn-green, body.theme-horror .btn-blood, .btn-blood {
  --b1: #d8283f; --b2: #92101f; --lip: #45060d; --glow: rgba(200, 20, 40, 0.4); --fg: #fff3ea;
  text-shadow: 0 1px 0 rgba(40, 0, 0, 0.5);
}
.btn-blood { position: relative; background: linear-gradient(180deg, var(--b1), var(--b2)); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255, 200, 200, 0.35), 0 4px 0 var(--lip), 0 10px 22px var(--glow); }
body.theme-horror .btn-green.ready, body.theme-horror .start-btn.ready { animation: heartbeat 1.6s infinite; }
@keyframes heartbeat { 0%, 30%, 100% { transform: scale(1); } 10% { transform: scale(1.03); } 20% { transform: scale(0.995); } }
body.theme-horror .btn-accent { --b1: #3b6f62; --b2: #1f4a40; --lip: #0d2520; --glow: rgba(60, 160, 130, 0.35); --fg: #e8fff8; }
body.theme-horror .btn-orange { --b1: #d79a35; --b2: #9c6414; --lip: #4a2c06; --fg: #fff6e6; }
body.theme-horror .btn-red-soft { --b1: #2b1213; --b2: #1a0909; --lip: #000; --fg: #ff9aa4; border: 1px solid rgba(255, 90, 100, 0.22); background-image: linear-gradient(180deg, var(--b1), var(--b2)); }
body.theme-horror .btn.ghost { --b1: rgba(255, 255, 255, 0.07); --b2: rgba(255, 255, 255, 0.03); --fg: #f2e6d6; background-image: linear-gradient(180deg, var(--b1), var(--b2)); }
body.theme-horror .round-btn { background: var(--paper-bg), linear-gradient(180deg, #f1e6cd, #d9c59f); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #6d5634, 0 10px 20px rgba(0, 0, 0, 0.55); }
body.theme-horror .card, body.theme-horror .sheet-card, body.theme-horror .lobby-bottom, body.theme-horror .pick-panel {
  background: var(--paper-bg), radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.35), transparent 60%), linear-gradient(180deg, #f1e6cd, #e2d0ab);
  border-radius: 18px; border: 1px solid rgba(80, 50, 30, 0.35);
  box-shadow: inset 0 0 40px rgba(110, 70, 30, 0.22), var(--shadow-lg);
}
body.theme-horror .sheet { background: rgba(4, 0, 0, 0.66); }
body.theme-horror .sheet-card h3, body.theme-horror .menu-title { font-family: var(--display); letter-spacing: 0.06em; font-weight: 400; }
body.theme-horror .sheet-card h3 { color: var(--pink-d); font-size: 30px; }
body.theme-horror .set-row { border-top-color: rgba(90, 60, 30, 0.18); }
body.theme-horror .seg { background: rgba(90, 60, 30, 0.14); }
body.theme-horror .seg button.on { background: #fbf4e4; color: var(--red-d); }
body.theme-horror .switch { background: rgba(90, 60, 30, 0.25); }
body.theme-horror .switch.on { background: linear-gradient(180deg, #d8283f, #8e0f1f); }
body.theme-horror .pill { background: rgba(90, 60, 30, 0.14); }
body.theme-horror .pill.danger { background: rgba(200, 20, 40, 0.12); }
body.theme-horror .here-card { background: linear-gradient(180deg, #2a0f12, #150708); box-shadow: inset 0 0 0 1px rgba(255, 90, 100, 0.2); }
body.theme-horror .btn.tile .ic, body.theme-horror .set-row > span .ic { color: var(--red); }
body.theme-horror .btn.tile.tile-go { --b1: #d8283f; --b2: #92101f; --lip: #45060d; --fg: #fff; }

/* menus over the hotel */
body.theme-horror .screen.clear { background: linear-gradient(180deg, rgba(5, 2, 2, 0.75), rgba(5, 2, 2, 0) 26%, rgba(5, 2, 2, 0) 50%, rgba(5, 2, 2, 0.82)); }
body.theme-horror .screen.clear .menu-title { color: #f1e7d2; font-size: clamp(30px, 6vw, 44px); text-shadow: 0 0 16px rgba(220, 20, 40, 0.5), 0 3px 0 #2a0508; }
body.theme-horror .steps { background: rgba(10, 4, 4, 0.7); }
body.theme-horror .steps li.on { background: rgba(200, 20, 40, 0.25); }
body.theme-horror .steps li.on i { background: var(--red); box-shadow: 0 0 12px rgba(220, 20, 40, 0.7); }
body.theme-horror .mega-host { --shade: #3a0408; background: var(--grime), linear-gradient(135deg, #a3172a 0%, #5e0a15 60%, #33050b 100%); }
body.theme-horror .mega-join { --shade: #0b2721; background: var(--grime), linear-gradient(135deg, #2f6e60 0%, #17443b 55%, #0d2a24 100%); }
body.theme-horror .mega { border-radius: 20px; }
body.theme-horror .mega-art { background: radial-gradient(circle at 50% 30%, #fff8ec 0%, #e8dcc2 55%, color-mix(in srgb, var(--pc, #fff) 30%, #cbb98f) 100%); }
body.theme-horror .rejoin-card { background: rgba(14, 6, 6, 0.85); border-color: rgba(220, 40, 60, 0.6); }
body.theme-horror .rj-text b { color: var(--gold); }
body.theme-horror .join-form input { background: #fbf5e7; border-color: rgba(90, 60, 30, 0.3); }
body.theme-horror .join-form input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 20, 40, 0.2); }
body.theme-horror .join-code { color: var(--red-d); background: repeating-linear-gradient(90deg, #fbf5e7 0 calc(25% - 3px), #eadcc0 calc(25% - 3px) 25%); }
body.theme-horror .join-code::placeholder { color: #d6c6a6; }
.host-game { margin: 0 0 8px; text-align: center; font-family: var(--type); color: #f0d2c8; letter-spacing: 0.06em; text-shadow: 0 2px 8px #000; }

/* character select */
body.theme-horror .animal-card { background: var(--paper-bg), linear-gradient(180deg, #f6ecd6, #e4d3b0); border-radius: 16px; }
body.theme-horror .ac-art { background: radial-gradient(circle at 50% 35%, #fffaf0 0%, color-mix(in srgb, var(--pc) 18%, #efe3c9) 70%, color-mix(in srgb, var(--pc) 35%, #c9b48b) 100%); }
body.theme-horror .pick-sel b { font-family: var(--display); letter-spacing: 0.05em; }

/* lobby: the key cabinet behind the front desk */
body.theme-horror .room-card {
  background: var(--grime), linear-gradient(180deg, rgba(48, 22, 16, 0.92), rgba(24, 10, 8, 0.94));
  border: 2px solid rgba(214, 170, 90, 0.55);
  box-shadow: inset 0 0 0 5px rgba(20, 8, 6, 0.9), inset 0 0 0 6px rgba(214, 170, 90, 0.22), 0 0 50px rgba(160, 20, 30, 0.25), var(--shadow-lg);
}
body.theme-horror .room-card .room-big { font-family: var(--display); color: var(--gold); text-shadow: 0 0 18px rgba(227, 189, 103, 0.45), 0 4px 0 #4a3008; letter-spacing: 0.2em; }
body.theme-horror .rc-qr { box-shadow: 0 0 0 3px rgba(214, 170, 90, 0.6); }
body.theme-horror .lr-card { background: var(--paper-bg), linear-gradient(180deg, #f6ecd6, #e4d3b0); border-radius: 14px; }
body.theme-horror .ls-role b { color: var(--red-d); }
body.theme-horror .spice-tag { background: rgba(90, 60, 30, 0.14); }
body.theme-horror .spice-tag.spicy { background: rgba(200, 20, 40, 0.14); color: var(--red-d); }
body.theme-horror .seat { background: radial-gradient(circle at 50% 35%, #fff8ec, color-mix(in srgb, var(--pc, #fff) 25%, #e8dcc2)); box-shadow: 0 0 0 2px rgba(214, 170, 90, 0.7); }

/* show bar, chips, tags, toast */
body.theme-horror .showbar, body.theme-horror .code-chip, body.theme-horror .aud-chip { background: rgba(10, 4, 4, 0.82); border-color: rgba(255, 110, 110, 0.16); }
body.theme-horror .sb-title { font-family: var(--display); letter-spacing: 0.06em; color: #efe1c6; font-size: 21px; }
body.theme-horror .showbar.final .sb-title { color: #ff5466; }
body.theme-horror .sb-ring { stroke: #e3bd67; }
body.theme-horror .sb-time.urgent .sb-ring { stroke: #ff2b43; }
body.theme-horror .pip.on { background: linear-gradient(180deg, #ff4a5e, #a3111f); color: #fff; box-shadow: 0 0 14px rgba(255, 40, 60, 0.6); }
body.theme-horror .pip.done { background: rgba(227, 189, 103, 0.28); color: #f3e2bb; }
body.theme-horror .pip.fin.on { background: linear-gradient(180deg, #74f0c9, #1f8f6f); color: #062018; box-shadow: 0 0 14px rgba(110, 240, 200, 0.55); }
.pip.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; margin: 7px 0; border-radius: 50%; }
.pip.dot.on { width: 12px; height: 12px; margin: 6px 1px; }
body.theme-horror .hud-main::before { background: linear-gradient(180deg, rgba(5, 1, 2, 0.8) 0%, rgba(5, 1, 2, 0.55) 34%, rgba(5, 1, 2, 0) 60%); }
body.theme-horror .tag-name { background: var(--paper-bg), linear-gradient(180deg, #f6ecd6, #e4d3b0); border-radius: 8px; }
body.theme-horror .tag.ghost .tag-name { background: linear-gradient(180deg, rgba(190, 255, 240, 0.85), rgba(120, 210, 190, 0.8)); color: #0b2a24; box-shadow: 0 0 14px rgba(140, 255, 220, 0.6); }
body.theme-horror .toast { background: rgba(14, 5, 6, 0.92); border-color: rgba(255, 80, 90, 0.35); font-family: var(--type); letter-spacing: 0.02em; }
body.theme-horror .name-tag { background: var(--paper-bg), linear-gradient(180deg, #f6ecd6, #e4d3b0); }
body.theme-horror .pt { background: radial-gradient(circle at 50% 35%, #fff8ec, color-mix(in srgb, var(--pc, #d9c8a8) 26%, #e8dcc2)); }
body.theme-horror .tips { color: var(--ink-2); }
body.theme-horror .sheet-sub, body.theme-horror .set-row > span small, body.theme-horror .set-note { color: var(--muted); }
body.theme-horror .pause-card { background: var(--paper-bg), linear-gradient(180deg, #f1e6cd, #e2d0ab); }
body.theme-horror .pause-title { font-family: var(--display); color: var(--red-d); letter-spacing: 0.06em; }

/* a full-screen flash for deaths */
.flash-veil { position: absolute; inset: 0; pointer-events: none !important; opacity: 0; z-index: 3; }
.flash-veil.red { background: radial-gradient(ellipse at 50% 50%, rgba(255, 20, 40, 0.15), rgba(160, 0, 15, 0.65)); }
.flash-veil.go { animation: flashveil 1.1s ease-out; }
@keyframes flashveil { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }

/* ================================================================ Dead Wrong screens */

.dw-card {
  position: relative; width: min(760px, 100%); padding: 18px 20px 20px; border-radius: 18px; color: var(--ink);
  background: var(--paper-bg), radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, 0.4), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(120, 60, 30, 0.18), transparent 60%), linear-gradient(180deg, #f2e7ce, #e1cfaa);
  border: 1px solid rgba(80, 50, 30, 0.4);
  box-shadow: inset 0 0 50px rgba(110, 70, 30, 0.25), 0 3px 0 rgba(60, 35, 15, 0.6), var(--shadow-lg);
  animation: dwin 0.5s cubic-bezier(0.2, 1, 0.3, 1) both;
}
@keyframes dwin { from { opacity: 0; transform: translateY(14px) rotate(-0.6deg) scale(0.98); } }
/* the Killing Floor gets the dark iron cards */
.dw-fcard, .dw-floorcard, .dw-card.dark {
  color: #f1e5d0;
  background: var(--grime), radial-gradient(ellipse at 50% -20%, rgba(170, 20, 35, 0.35), transparent 60%), linear-gradient(180deg, #1d0e0e, #0e0607);
  border: 1px solid rgba(255, 90, 100, 0.22);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6), var(--shadow-lg);
}
.dw-fcard.wide { width: min(1100px, 100%); }
.dw-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 6px; font-family: var(--type); font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; background: #1b0d0d; color: var(--gold); }
.dw-kicker.red { background: #8e0f1f; color: #fff1e8; box-shadow: 0 0 18px rgba(200, 20, 40, 0.45); }
.dw-hint { margin: 10px 0 0; text-align: center; font-size: 15px; color: inherit; opacity: 0.78; min-height: 1.2em; }

/* the Concierge's line */
.dw-say { display: flex; align-items: center; gap: 12px; width: min(760px, 100%); margin-top: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(8, 3, 3, 0.86); border: 1px solid rgba(255, 110, 110, 0.18); box-shadow: var(--shadow-md); color: #f3e6d0; animation: rise 0.5s 0.15s both; }
.dw-say-mask { flex: none; width: 48px; height: 48px; filter: drop-shadow(0 0 10px rgba(255, 40, 40, 0.35)); animation: maskbob 3.2s ease-in-out infinite; }
.mask-ic { width: 100%; height: 100%; display: block; }
@keyframes maskbob { 50% { transform: translateY(-3px) rotate(-4deg); } }
.dw-say-text { margin: 0; font-family: var(--type); font-size: clamp(15px, 2.1vw, 19px); line-height: 1.35; min-height: 1.35em; }
.dw-say-text::after { content: '▍'; animation: blink 1s steps(2) infinite; color: #ff4a5c; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- intro: the guest keys */
.dw-intro { justify-content: space-between; padding-bottom: calc(18px + var(--sb)); }
.dw-intro .dw-logo { margin-top: 2vh; opacity: 0; }
.dw-intro.go .dw-logo { opacity: 1; animation: slam 0.8s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.dw-sub { color: #efe1c6; font-family: var(--type); font-size: 16px; text-transform: uppercase; letter-spacing: 0.24em; opacity: 0; text-shadow: 0 2px 8px #000; }
.dw-intro.go .dw-sub { animation: rise 0.6s 0.6s both; opacity: 1; }
.dw-intro .dw-say { opacity: 0; }
.dw-intro.go .dw-say { opacity: 1; }
.dw-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 980px; }
.dw-key { display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(-40px) rotate(-12deg); transform-origin: 50% 0; transition: all 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.dw-key.in { opacity: 1; transform: none; animation: swing 3.5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.4s); }
@keyframes swing { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
.dk-ring { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #c9a25a; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); margin-bottom: -4px; z-index: 1; }
.dk-tag { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px 10px; min-width: 88px; border-radius: 10px 10px 34px 34px; background: var(--paper-bg), linear-gradient(180deg, #efe1c3, #d8c296); border: 2px solid #8c6a34; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), inset 0 0 14px rgba(120, 80, 30, 0.3); color: var(--ink); }
.dk-tag .pt { width: 54px; height: 54px; }
.dk-tag b { font-size: 14px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-tag small { font-family: var(--type); font-size: 11px; color: #7c1020; letter-spacing: 0.08em; }

/* ---- question number */
.dw-qcard { text-align: center; width: min(460px, 100%); transform: rotate(-1deg); }
.dw-qnum { font-family: var(--display); font-size: clamp(90px, 18vw, 150px); line-height: 0.9; color: #9e1226; text-shadow: 0 4px 0 rgba(60, 10, 10, 0.35); }
.dw-qnum small { font-size: 0.32em; color: var(--ink-2); margin-left: 4px; }
.dw-cat { display: inline-block; margin-top: 6px; padding: 6px 16px; border-radius: 6px; background: #1b0d0d; color: #f3e2bb; font-family: var(--type); font-size: clamp(16px, 2.6vw, 22px); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(1deg); }
.dw-cat.small { font-size: 12px; padding: 3px 10px; transform: none; }

/* ---- the question */
.dw-question { justify-content: flex-start; }
.dw-qbox { width: min(980px, 100%); }
.dw-qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dw-qcount { font-family: var(--type); font-size: 13px; color: var(--ink-2); letter-spacing: 0.06em; }
.dw-qhead .dw-mestat { margin-left: auto; margin-right: 8px; }
.dw-mestat { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(80, 50, 30, 0.14); font-size: 13px; font-variant-numeric: tabular-nums; color: #2f6420; }
.dw-mestat.ghost { color: #1f6f5c; background: rgba(60, 180, 150, 0.16); }
.dw-aud { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-family: var(--type); white-space: nowrap; }
.tag-money { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(10, 4, 4, 0.75); color: #b9f0a0; font-variant-numeric: tabular-nums; }
.dw-fcard .dw-qcount, .dw-scard .dw-qcount { color: inherit; opacity: 0.7; }
.dw-qtext { margin: 4px 0 14px; font-size: clamp(21px, 3.4vw, 36px); line-height: 1.18; font-weight: 900; color: var(--ink); text-wrap: balance; }
.dw-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dw-opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; border-radius: 12px; text-align: left;
  background: linear-gradient(180deg, #2a1514, #170a0a); color: #f6ead6; border: 1px solid rgba(255, 140, 120, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 220, 200, 0.12), 0 4px 0 #050202, 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, opacity 0.3s, box-shadow 0.25s, background 0.3s; animation: optin 0.45s calc(var(--k) * 0.08s) both;
}
@keyframes optin { from { opacity: 0; transform: translateY(10px); } }
.dw-opts.pickable .dw-opt:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 #050202; }
@media (hover: hover) { .dw-opts.pickable .dw-opt:not(:disabled):hover { box-shadow: 0 0 0 3px rgba(220, 30, 50, 0.6), 0 4px 0 #050202, 0 10px 24px rgba(0, 0, 0, 0.4); } }
.dw-letter { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; background: #ead9b5; color: #6e0b18; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.dw-otext { flex: 1; font-size: clamp(17px, 2.2vw, 22px); font-weight: 900; line-height: 1.15; }
.dw-opt.picked { background: linear-gradient(180deg, #b01a2e, #6e0b18); box-shadow: 0 0 0 3px #ffd8c8, 0 4px 0 #2a0408, 0 0 30px rgba(220, 30, 50, 0.5); }
.dw-opt.dim { opacity: 0.38; }
.dw-opt:disabled { cursor: default; }
.dw-opt.correct { opacity: 1; background: linear-gradient(180deg, #4f9c36, #2a611c); box-shadow: 0 0 0 3px #d9ffc4, 0 4px 0 #0f2a09, 0 0 36px rgba(120, 230, 90, 0.55); animation: pulse 0.6s 2; }
.dw-opt.correct .dw-letter { background: #e9ffd9; color: #23511a; }
.dw-opt.correct .dw-letter::before { content: '✓'; }
.dw-opt.correct .dw-letter { font-size: 0; }
.dw-opt.correct .dw-letter::before { font-size: 22px; font-family: var(--font); }
.dw-opt.wrong { opacity: 0.8; background: linear-gradient(180deg, #3a0c12, #1d0508); }
.dw-opt.wrong .dw-otext { text-decoration: line-through; text-decoration-color: rgba(255, 60, 80, 0.85); text-decoration-thickness: 3px; }
.dw-who { display: flex; flex: none; }
.dw-faces { display: inline-flex; align-items: center; }
.dw-face { display: inline-flex; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--pc, #fff); background: #fff; }
.dw-face:first-child { margin-left: 0; }
.dw-face .pt { width: 28px; height: 28px; }
.dw-face.ghosted { opacity: 0.55; filter: saturate(0.2) brightness(1.2) hue-rotate(120deg); }
.dw-qnote { margin: 12px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.dw-locked { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px 14px; border-radius: 12px; background: rgba(8, 3, 3, 0.8); color: #efe1c6; font-family: var(--type); font-size: 14px; min-height: 40px; }
.dw-verdict { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; padding: 8px 22px; border-radius: 12px; font-family: var(--display); font-size: clamp(30px, 6vw, 44px); letter-spacing: 0.05em; opacity: 0; transform: scale(0.8); }
.dw-reveal.shown .dw-verdict { animation: slam 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) both; opacity: 1; transform: none; }
.dw-verdict span { font-family: var(--type); font-size: 17px; letter-spacing: 0.04em; }
.dw-verdict.good { background: linear-gradient(180deg, #4f9c36, #2a611c); color: #f2ffe9; box-shadow: 0 0 30px rgba(120, 230, 90, 0.4); }
.dw-verdict.bad { background: linear-gradient(180deg, #b01a2e, #5e0814); color: #fff0e8; box-shadow: 0 0 30px rgba(220, 30, 50, 0.5); }
.dw-floorcall { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; background: rgba(8, 3, 3, 0.88); color: #f3e6d0; animation: rise 0.45s both; width: min(760px, 100%); }
.dw-floorcall.doom { border: 1px solid rgba(255, 60, 80, 0.45); box-shadow: 0 0 40px rgba(200, 20, 40, 0.35); }
.dw-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dw-you { margin: 0; font-family: var(--display); font-size: 26px; color: #ff4a5c; letter-spacing: 0.05em; animation: pulse 0.9s infinite; }
.dw-safe { margin: 0; font-family: var(--type); font-size: 17px; }
.pchip.ghosted { opacity: 0.7; filter: saturate(0.3); }

/* ---- Killing Floor intro */
.dw-floorcard { text-align: center; width: min(720px, 100%); }
.dw-floor-ic { font-size: clamp(54px, 10vw, 80px); line-height: 1; margin: 10px 0 2px; filter: drop-shadow(0 0 18px rgba(255, 60, 60, 0.5)); animation: slam 0.6s 0.2s both; }
.dw-floor-name { font-family: var(--display); font-size: clamp(42px, 8vw, 74px); line-height: 0.95; letter-spacing: 0.05em; color: #ff3d52; text-shadow: 0 0 24px rgba(255, 30, 50, 0.55), 0 4px 0 #3a0409; animation: slam 0.6s 0.35s both; }
.dw-floor-blurb { margin: 8px auto 0; max-width: 560px; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.35; color: #ecdcc4; }
.dw-victims { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px 0 6px; }
.dw-victim { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: shiver 0.35s infinite; }
.dw-victim:nth-child(2n) { animation-delay: -0.17s; }
@keyframes shiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.2px) rotate(-0.6deg); } 75% { transform: translateX(1.2px) rotate(0.6deg); } }
.dw-victim .pt { box-shadow: 0 0 0 3px var(--pc), 0 0 18px rgba(255, 40, 60, 0.55); }
.dw-victim b { font-size: 14px; }
.dw-role { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 16px; line-height: 1.35; }
.dw-role.victim { background: rgba(200, 20, 40, 0.25); border: 1px solid rgba(255, 70, 90, 0.45); }
.dw-role.victim b { color: #ff7383; }
.dw-role.helper b { color: #9ff0a8; }
.dw-rules { text-align: left; margin: 12px auto 0; padding-left: 22px; max-width: 600px; font-size: clamp(15px, 2vw, 18px); line-height: 1.4; color: #ecdcc4; }
.dw-rules li { margin: 4px 0; }
.dw-rules b { color: #ffd7a0; }
.dw-revived { margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #9ff0d4; }

/* ---- Killing Floor play: shared */
.dw-floor { justify-content: flex-start; }
.dw-fcard { width: min(760px, 100%); }
.dw-fhead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dw-fhead-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: rgba(200, 20, 40, 0.22); border: 1px solid rgba(255, 80, 90, 0.35); }
.dw-fhead b { display: block; font-family: var(--display); font-size: clamp(26px, 4vw, 34px); font-weight: 400; letter-spacing: 0.05em; line-height: 1; color: #ff4a5c; }
.dw-fhead small { display: block; margin-top: 3px; font-size: 14px; opacity: 0.8; }
.dw-prompt { padding: 12px 16px; border-radius: 12px; background: var(--paper-bg), linear-gradient(180deg, #f0e3c6, #dfcba3); color: var(--ink); font-size: clamp(18px, 2.6vw, 24px); font-weight: 900; line-height: 1.22; text-align: center; box-shadow: inset 0 0 20px rgba(110, 70, 30, 0.25); }
.dw-prompt.small { font-size: clamp(16px, 2vw, 19px); margin-bottom: 10px; }
.dw-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-family: var(--type); font-size: 13px; opacity: 0.85; }
.dw-wait.done { color: #9ff0a8; }
.dw-actions { display: flex; justify-content: center; margin-top: 12px; }
.dw-actions .btn { min-width: 220px; }
.dw-sent { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; margin-top: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-align: center; animation: popin 0.4s both; }
.dw-sent b { font-family: var(--display); font-size: 32px; font-weight: 400; letter-spacing: 0.05em; color: #f3e2bb; }
.dw-watchart { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; font-size: 44px; text-align: center; }
.dw-watchart span { font-size: 16px; opacity: 0.85; max-width: 420px; }
.dw-voted { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-family: var(--type); font-size: 13px; opacity: 0.85; min-height: 30px; }

/* ---- Poison Chalices */
.dw-cups { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(6px, 1.5vw, 14px); margin: 6px 0; }
.dw-cup { position: relative; display: flex; flex-direction: column; align-items: center; width: clamp(66px, 11vw, 96px); padding: 6px 4px 4px; border-radius: 12px; transition: transform 0.2s, opacity 0.3s; animation: optin 0.5s calc(var(--i, 0) * 0.05s) both; }
.cup-art { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); transition: filter 0.3s; }
.chalice { width: 100%; height: auto; display: block; }
.cup-n { font-family: var(--display); font-size: 20px; color: #e3bd67; letter-spacing: 0.04em; }
.cup-mark { position: absolute; top: -6px; right: 0; font-size: 26px; filter: drop-shadow(0 2px 4px #000); }
.dw-cups.pickable .dw-cup:not(:disabled) { cursor: pointer; }
@media (hover: hover) { .dw-cups.pickable .dw-cup:not(:disabled):hover { transform: translateY(-6px); } .dw-cups.pickable .dw-cup:not(:disabled):hover .cup-art { filter: drop-shadow(0 0 14px rgba(255, 200, 100, 0.6)); } }
.dw-cup.picked { transform: translateY(-8px) scale(1.06); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 2px rgba(255, 200, 120, 0.6); }
.dw-cups.helper .dw-cup.picked { box-shadow: 0 0 0 2px rgba(140, 255, 120, 0.7), 0 0 30px rgba(120, 255, 90, 0.35); }
.dw-cup.dim { opacity: 0.45; }
.dw-cup.poisoned .cup-art { filter: drop-shadow(0 0 16px rgba(120, 255, 90, 0.7)) hue-rotate(60deg) saturate(0.7); }
.dw-cup.poisoned .wine { fill: #3c8a1a; }
.dw-cup.drunk { transform: translateY(-6px); }
.dw-cups.result .dw-cup { animation-duration: 0.3s; }
.cup-by { min-height: 28px; }
.dw-res-sub { margin: 6px 0 0; text-align: center; font-size: 14px; opacity: 0.8; }

/* ---- Dead Reckoning */
.dw-mathbox { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 14px; background: var(--paper-bg), linear-gradient(180deg, #f0e3c6, #dfcba3); color: var(--ink); }
.dw-mathbox.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.dw-count { font-family: var(--display); font-size: clamp(48px, 10vw, 80px); color: #9e1226; line-height: 1; }
.dw-sum { display: flex; align-items: baseline; gap: 12px; font-size: clamp(40px, 8vw, 64px); font-weight: 900; font-variant-numeric: tabular-nums; }
.sum-eq { opacity: 0.6; }
.sum-a { min-width: 2.2ch; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.6); color: #8e0f1f; text-align: center; box-shadow: inset 0 2px 6px rgba(60, 30, 10, 0.2); }
.dw-mprog { display: flex; align-items: center; gap: 5px; }
.dw-mprog i { width: 18px; height: 18px; border-radius: 50%; background: rgba(80, 50, 30, 0.2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
.dw-mprog i.on { background: radial-gradient(circle at 40% 35%, #8fe06a, #3a7d26); }
.dw-mprog span { margin-left: 6px; font-family: var(--type); font-size: 15px; }
.dw-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px auto 0; width: min(360px, 100%); }
.kp-key { min-height: 56px; border-radius: 12px; font-size: 26px; font-weight: 900; color: #f6ead6; background: linear-gradient(180deg, #33201c, #1b0e0d); border: 1px solid rgba(255, 180, 150, 0.15); box-shadow: 0 4px 0 #050202; touch-action: manipulation; }
.kp-key.down { transform: translateY(3px); box-shadow: 0 1px 0 #050202; background: linear-gradient(180deg, #4a2a24, #2a1513); }
.kp-ok { grid-column: 1 / -1; font-size: 20px; background: linear-gradient(180deg, #d8283f, #92101f); box-shadow: 0 4px 0 #45060d; }
.dw-race { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.race-row { display: flex; align-items: center; gap: 10px; }
.race-who { display: flex; align-items: center; gap: 6px; width: 140px; flex: none; }
.race-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-bar { flex: 1; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.race-bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #8e0f1f, #ff4a5c); transition: width 0.4s; }
.race-n { font-family: var(--type); font-size: 14px; width: 44px; text-align: right; }

/* ---- drawing pad (ProcreNate's Ink pen) */
.sketch { display: flex; flex-direction: column; gap: 10px; }
.sk-frame { position: relative; width: min(100%, 62vh, 520px); aspect-ratio: 1; margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px #3a2416, 0 0 0 5px #b38a4a, 0 14px 30px rgba(0, 0, 0, 0.6); touch-action: none; }
.sk-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.sk-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--type); color: rgba(60, 35, 20, 0.35); font-size: 20px; letter-spacing: 0.1em; transition: opacity 0.3s; }
.sketch.drawn .sk-hint { opacity: 0; }
.sk-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sk-group { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.sk-btn { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #f1e5d0; }
.sk-btn .ic { width: 22px; height: 22px; }
.sk-btn.on { background: #ead9b5; color: #5a0a15; }
.sk-size { width: 34px; height: 42px; display: grid; place-items: center; border-radius: 10px; }
.sk-size i { width: var(--d); height: var(--d); border-radius: 50%; background: #f1e5d0; }
.sk-size.on { background: rgba(255, 255, 255, 0.16); }
.sk-ink-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.15); margin: 0 2px; }
.sk-ink-btn.on { box-shadow: 0 0 0 3px #f1e5d0, 0 0 12px rgba(255, 255, 255, 0.4); transform: scale(1.1); }
.dw-draw.drawing .dw-fcard { width: min(620px, 100%); }
.dw-secret { display: flex; flex-direction: column; align-items: center; margin: -2px 0 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 200, 120, 0.4); }
.dw-secret small { font-family: var(--type); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.75; }
.dw-secret b { font-family: var(--display); font-size: clamp(26px, 5vw, 36px); font-weight: 400; letter-spacing: 0.05em; color: #ffd7a0; }
.dw-draw .dw-prompt { margin-bottom: 10px; }
.dw-art { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #e9dcc0; box-shadow: 0 0 0 2px #3a2416, 0 0 0 4px #b38a4a; }
.dw-art.blank { display: grid; place-items: center; text-align: center; font-family: var(--type); color: rgba(60, 35, 20, 0.6); font-size: 14px; }

/* ---- Last Words */
.dw-words textarea { width: 100%; border-radius: 12px; border: 2px solid rgba(255, 200, 160, 0.25); background: #fbf5e7; color: var(--ink); font-size: 20px; padding: 12px 14px; resize: none; }
.dw-words .wc-input { position: relative; margin-top: 10px; }
.dw-words .wc-left { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--muted); }
.dw-words .wc-left.low { color: var(--red); }
.dw-lw { display: grid; place-items: center; min-height: 120px; padding: 16px; border-radius: 10px; font-family: var(--type); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.3; color: var(--ink); background: var(--paper-bg), linear-gradient(180deg, #f0e3c6, #dfcba3); text-align: center; text-wrap: balance; }

/* ---- Ouija */
.ouija { width: 100%; display: flex; justify-content: center; }
.oj-board { position: relative; width: min(100%, 700px); aspect-ratio: 1.55; border-radius: 26px; overflow: hidden; color: #2a160c; font-family: 'Special Elite', var(--type);
  background: var(--paper-bg), radial-gradient(ellipse at 50% 40%, #e9c98c 0%, #c9a05e 55%, #8d6331 100%);
  box-shadow: inset 0 0 0 6px #4a2a14, inset 0 0 0 9px #b8894a, inset 0 0 60px rgba(60, 25, 5, 0.6), 0 20px 40px rgba(0, 0, 0, 0.6); }
.oj-l { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot)); font-family: 'Creepster', var(--display); font-size: clamp(17px, 4.1vw, 42px); line-height: 1; color: #2a140a; text-shadow: 0 1px 0 rgba(255, 230, 180, 0.5); transition: color 0.25s, text-shadow 0.25s; }
.oj-l.on { color: #fff3c4; text-shadow: 0 0 12px #ffcf4a, 0 0 28px #ff7a1a, 0 0 4px #fff; }
.oj-yes, .oj-no { position: absolute; top: 7%; font-family: 'Creepster', var(--display); font-size: clamp(22px, 4vw, 36px); }
.oj-yes { left: 9%; }
.oj-no { right: 10%; }
.oj-sun, .oj-moon { position: absolute; top: 4%; font-size: clamp(24px, 4vw, 40px); opacity: 0.85; }
.oj-sun { left: 26%; }
.oj-moon { right: 27%; }
.oj-nums { position: absolute; left: 50%; top: 79%; transform: translateX(-50%); font-size: clamp(14px, 2.4vw, 22px); letter-spacing: 0.3em; white-space: nowrap; }
.oj-bye { position: absolute; left: 50%; top: 89%; transform: translateX(-50%); font-family: 'Creepster', var(--display); font-size: clamp(18px, 3vw, 28px); letter-spacing: 0.1em; }
.oj-planchette { position: absolute; z-index: 2; width: clamp(56px, 11vw, 100px); height: clamp(66px, 13vw, 118px); transform: translate(-50%, -50%); transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), top 0.5s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.55)); }
.oj-planchette::before { content: ''; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 62%, 86% 100%, 14% 100%, 0 62%); background: linear-gradient(180deg, #f7ead0, #c9a36a); }
.oj-planchette i { position: absolute; left: 50%; top: 52%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 245, 220, 0.25); box-shadow: inset 0 0 0 3px #6a4320, inset 0 0 10px rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
.oj-planchette.pause { animation: ojshake 0.4s; }
@keyframes ojshake { 25% { transform: translate(-48%, -50%) rotate(4deg); } 75% { transform: translate(-52%, -50%) rotate(-4deg); } }
.oj-spelled { margin-top: 10px; text-align: center; font-family: var(--type); font-size: 20px; letter-spacing: 0.3em; color: #ffd7a0; min-height: 1.4em; }
.oj-input { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 10px 0; }
.oj-type { width: min(100%, 520px); padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(255, 200, 120, 0.35); background: #fbf5e7; color: #4a1a08; font-family: 'Special Elite', var(--type); font-size: clamp(24px, 5vw, 36px); text-align: center; letter-spacing: 0.18em; text-transform: uppercase; }
.oj-type:focus { outline: none; border-color: #ffcf4a; box-shadow: 0 0 0 4px rgba(255, 200, 80, 0.25); }
.oj-input small { font-family: var(--type); opacity: 0.75; }
.oj-word { font-family: 'Special Elite', var(--type) !important; letter-spacing: 0.16em; }

/* ---- Body Count */
.dw-numbox { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 12px auto 0; padding: 10px 18px; border-radius: 14px; background: #fbf5e7; color: #7c0b1b; width: min(360px, 100%); box-shadow: inset 0 2px 8px rgba(60, 30, 10, 0.25); }
.num-val { font-size: clamp(40px, 8vw, 60px); font-weight: 900; font-variant-numeric: tabular-nums; }
.num-unit { font-family: var(--type); font-size: 18px; color: var(--ink-2); }
.dw-numbox.locked { box-shadow: 0 0 0 3px #9ff0a8, inset 0 2px 8px rgba(60, 30, 10, 0.25); }
.dw-answer { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 8px; }
.dw-answer small { font-family: var(--type); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.75; }
.dw-answer b { font-size: clamp(36px, 7vw, 56px); font-weight: 900; color: #ffd7a0; line-height: 1.05; }
.dw-answer b span { font-size: 0.4em; font-family: var(--type); }
.dw-answer em { font-family: var(--type); font-style: normal; font-size: 14px; opacity: 0.85; }

/* ---- The Pendulum */
.pend-stage { position: relative; height: min(46vh, 380px); border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 150, 0.12), transparent 60%), linear-gradient(180deg, #120808, #060303); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8); touch-action: manipulation; }
.pend-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.pend-msg { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--type); font-size: 18px; color: #ffd7a0; text-shadow: 0 2px 6px #000; }
.pend-scores { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pend-pips { display: inline-flex; gap: 6px; }
.pend-pips i { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.pend-pips i.hit { background: radial-gradient(circle at 40% 35%, #a6ff86, #3a7d26); box-shadow: 0 0 10px rgba(140, 255, 100, 0.5); }
.pend-pips i.miss { background: radial-gradient(circle at 40% 35%, #ff7a86, #8e0f1f); box-shadow: 0 0 10px rgba(255, 60, 80, 0.5); }

/* ---- voting on tattoos and last words */
.dw-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 44%), 1fr)); gap: 12px; }
.dw-entries.single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.dw-entry { position: relative; display: flex; flex-direction: column; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); transition: transform 0.18s, box-shadow 0.25s, opacity 0.3s; animation: optin 0.45s calc(var(--i) * 0.08s) both; }
.dw-entry:disabled { cursor: default; }
.dw-entries.pickable .dw-entry { cursor: pointer; }
@media (hover: hover) { .dw-entries.pickable .dw-entry:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px rgba(255, 70, 90, 0.5); } }
.dw-entry.picked { box-shadow: 0 0 0 3px #ffd8c8, 0 0 30px rgba(220, 30, 50, 0.5); background: rgba(200, 20, 40, 0.2); }
.dw-entry.dim { opacity: 0.5; }
.dw-entry-n { position: absolute; z-index: 2; top: -8px; left: -8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ead9b5; color: #6e0b18; font-family: var(--display); font-size: 20px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); }
.dw-entry-n:empty { display: none; }
.dw-spare { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.dw-spare .btn { min-width: 150px; }
.dw-spare .btn.picked { box-shadow: 0 0 0 3px #fff, 0 4px 0 var(--lip), 0 0 30px var(--glow); }
.dw-spare .btn.dim { opacity: 0.45; }

/* ---- séance guessing */
.dw-guess-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.dw-gcard { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.dw-gart { width: 100%; }
.dw-gopts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dw-gopts.view { grid-template-columns: 1fr; gap: 2px; font-size: 14px; opacity: 0.85; }
.dw-gopt { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 10px; border-radius: 10px; text-align: left; font-weight: 900; font-size: 15px; line-height: 1.1; color: #f6ead6; background: linear-gradient(180deg, #33201c, #1b0e0d); box-shadow: 0 3px 0 #050202; }
.dw-gopt i { font-style: normal; font-family: var(--display); color: #e3bd67; }
.dw-gopt.picked { background: linear-gradient(180deg, #b01a2e, #6e0b18); box-shadow: 0 0 0 2px #ffd8c8; }
.dw-gopt.dim { opacity: 0.4; }
.dw-guess-one { width: min(460px, 100%); margin: 0 auto; }
.dw-gcount { text-align: center; font-family: var(--type); font-size: 13px; opacity: 0.75; margin-bottom: 6px; }
.dw-gby { display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* ---- the verdict */
.dw-res-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dw-res { display: grid; grid-template-columns: minmax(120px, 170px) 1fr auto; grid-template-areas: 'who what verdict' 'line line line'; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); opacity: 0.25; transform: scale(0.98); transition: all 0.45s; }
.dw-res.in { opacity: 1; transform: none; box-shadow: 0 0 0 2px rgba(255, 220, 160, 0.35); }
.dw-res-who { grid-area: who; display: flex; align-items: center; gap: 8px; }
.dw-res-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-res-what { grid-area: what; display: flex; flex-direction: column; font-size: 16px; line-height: 1.25; }
.dw-res-what small { font-family: var(--type); font-size: 13px; opacity: 0.8; }
.dw-res-art { grid-area: what; width: 92px; justify-self: start; }
.dw-res:has(.dw-res-art) .dw-res-what { grid-area: auto; }
.dw-res:has(.dw-res-art) { grid-template-columns: minmax(110px, 160px) 92px 1fr auto; grid-template-areas: 'who art what verdict' 'line line line line'; }
.dw-res:has(.dw-res-art) .dw-res-art { grid-area: art; }
.dw-res:has(.dw-res-art) .dw-res-what { grid-area: what; }
.dw-res-verdict { grid-area: verdict; font-family: var(--display); font-size: clamp(26px, 4.6vw, 40px); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.4); min-width: 90px; text-align: right; }
.dw-res.lives .dw-res-verdict { color: #9ff0a8; text-shadow: 0 0 18px rgba(140, 255, 120, 0.45); animation: slam 0.5s both; }
.dw-res.dead { background: rgba(170, 10, 25, 0.28); box-shadow: 0 0 0 2px rgba(255, 60, 80, 0.6), 0 0 34px rgba(220, 20, 40, 0.35); }
.dw-res.dead .dw-res-verdict { color: #ff3d52; text-shadow: 0 0 22px rgba(255, 30, 50, 0.7); animation: slam 0.5s both; }
.dw-res.dead .dw-res-who .pt { filter: grayscale(1) brightness(0.8); }
.dw-res-line { grid-area: line; font-family: var(--type); font-size: 14px; opacity: 0.85; min-height: 0; }
.dw-res-line:empty { display: none; }
.dw-res-note { margin: 8px 0 0; text-align: center; font-size: 13px; opacity: 0.75; min-height: 0; }
.dw-res-note:empty { display: none; }
.dw-art.tattoo.small, .dw-art.small { width: 92px; }

/* ---- the final sprint: the hallway */
.dw-sprint { justify-content: flex-start; }
.dw-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; width: min(1100px, 100%); padding: 8px 8px 8px 40px; margin-bottom: 10px; border-radius: 14px; background: var(--grime), linear-gradient(180deg, rgba(30, 12, 12, 0.9), rgba(12, 5, 5, 0.94)); border: 1px solid rgba(255, 110, 110, 0.18); box-shadow: var(--shadow-md); }
.tr-killer { position: absolute; left: 4px; top: 50%; width: 34px; height: 34px; transform: translateY(-50%); filter: drop-shadow(0 0 10px rgba(255, 30, 40, 0.6)); animation: maskbob 1.6s ease-in-out infinite; }
.tr-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 74px; padding: 4px 2px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(120, 30, 30, 0.22) 0 10px, rgba(60, 15, 15, 0.22) 10px 20px); }
.tr-cell.start { background: rgba(255, 255, 255, 0.05); }
.tr-cell.exit { background: linear-gradient(180deg, rgba(120, 255, 200, 0.25), rgba(30, 120, 90, 0.2)); box-shadow: inset 0 0 0 2px rgba(140, 255, 210, 0.5), 0 0 24px rgba(120, 255, 200, 0.3); }
.tr-lbl { font-family: var(--type); font-size: 11px; color: rgba(255, 230, 210, 0.55); }
.tr-door { font-family: var(--display); font-size: 17px; letter-spacing: 0.08em; color: #b9ffe6; text-shadow: 0 0 10px rgba(120, 255, 200, 0.8); }
.tr-ppl { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; margin-top: 2px; }
.tr-tok { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--pc); background: #fff; animation: popin 0.35s both; }
.tr-tok .pt { width: 30px; height: 30px; }
.tr-tok.me { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pc), 0 0 14px rgba(255, 255, 255, 0.5); }
.tr-tok.ghost { opacity: 0.6; filter: saturate(0.2) brightness(1.25) hue-rotate(120deg); box-shadow: 0 0 0 2px #8fe8d2, 0 0 12px rgba(140, 255, 220, 0.6); animation: ghostbob 2.2s ease-in-out infinite; }
@keyframes ghostbob { 50% { transform: translateY(-3px); } }
.dw-scard { width: min(820px, 100%); color: #f1e5d0; background: var(--grime), linear-gradient(180deg, #1d0e0e, #0e0607); border: 1px solid rgba(255, 90, 100, 0.22); }
.dw-scat { margin: 2px 0 12px; text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 46px); line-height: 1.05; letter-spacing: 0.04em; color: #ffd7a0; text-wrap: balance; }
.dw-sitems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dw-sitem { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 10px; border-radius: 14px; text-align: center; font-size: clamp(17px, 2.4vw, 23px); font-weight: 900; line-height: 1.12; color: var(--ink); background: var(--paper-bg), linear-gradient(180deg, #f2e7ce, #dcc9a2); box-shadow: 0 4px 0 #3a2416, 0 10px 18px rgba(0, 0, 0, 0.45); transition: transform 0.15s, box-shadow 0.2s, opacity 0.3s; }
.dw-sitems.pickable .dw-sitem:not(:disabled) { cursor: pointer; }
.dw-sitem:active:not(:disabled) { transform: translateY(3px); }
.dw-sitem.on { background: linear-gradient(180deg, #4f9c36, #2a611c); color: #f2ffe9; box-shadow: 0 0 0 3px #d9ffc4, 0 4px 0 #0f2a09, 0 0 26px rgba(120, 230, 90, 0.45); }
.dw-scheck { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 18px; opacity: 0; }
.dw-sitem.on .dw-scheck { opacity: 1; }
.dw-sitem.blocked { color: transparent; background: linear-gradient(180deg, #2a1514, #120707); }
.dw-sitem.blocked span { filter: blur(8px); color: #f1e5d0; }
.dw-sitem.blocked em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 10px; font-style: normal; font-family: var(--type); font-size: clamp(11px, 1.4vw, 14px); line-height: 1.15; text-align: left; color: #ff8a96; background: radial-gradient(circle, rgba(0, 0, 0, 0.6), transparent 75%); }
.dw-sitem.blocked em::before { content: '🖐'; flex: none; font-size: clamp(20px, 2.6vw, 30px); }
.dw-sitem.yes { background: linear-gradient(180deg, #4f9c36, #2a611c); color: #f2ffe9; }
.dw-sitem.no { background: linear-gradient(180deg, #5a0c16, #2a0509); color: #ffd6da; }
.dw-sprint:not(.shown) .dw-sitem.yes, .dw-sprint:not(.shown) .dw-sitem.no { background: var(--paper-bg), linear-gradient(180deg, #f2e7ce, #dcc9a2); color: var(--ink); }
.dw-sprint:not(.shown) .dw-mark { opacity: 0; }
.dw-mark { position: absolute; top: 4px; right: 8px; font-style: normal; font-size: 22px; transition: opacity 0.3s; }
.dw-sitem .dw-who { margin-top: 4px; }
.dw-moves { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; min-height: 30px; }
.dw-move { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 15px; animation: popin 0.35s both; }
.dw-move.up b { color: #9ff0a8; }
.dw-move.down b { color: #ff7383; }
.dw-events { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dw-event { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-family: var(--type); font-size: 17px; animation: slam 0.6s both; }
.dw-event.swap { background: rgba(120, 255, 200, 0.14); border: 1px solid rgba(140, 255, 210, 0.45); }
.dw-event.escape { background: rgba(255, 220, 140, 0.16); border: 1px solid rgba(255, 220, 140, 0.55); color: #ffe2a8; }
.dw-trackslot { width: min(1100px, 100%); }

/* ---- winner + end */
.dw-wcard { text-align: center; width: min(520px, 100%); }
.dw-wface { display: flex; justify-content: center; margin: 12px 0 4px; }
.dw-wface .pt { box-shadow: 0 0 0 6px #fff8ea, 0 0 0 9px #3a7d26, 0 0 50px rgba(140, 255, 120, 0.5); }
.dw-wname { font-family: var(--display); font-size: clamp(44px, 9vw, 80px); line-height: 1; letter-spacing: 0.04em; color: #2f6420; }
.dw-wsub { margin: 4px 0 0; font-family: var(--type); font-size: 17px; color: var(--ink-2); }
.dw-endcard { width: min(760px, 100%); }
.dw-endtitle { margin: 8px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 6vw, 52px); letter-spacing: 0.04em; color: #8e0f1f; line-height: 1; }
.dw-standings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dw-standings li { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.35); box-shadow: inset 4px 0 0 var(--pc); }
.dw-standings li.win { background: rgba(110, 200, 80, 0.3); box-shadow: inset 4px 0 0 #3a7d26, 0 0 0 2px rgba(60, 125, 38, 0.4); }
.dw-standings li.dead { opacity: 0.8; }
.dw-standings li.dead .pt { filter: grayscale(0.7); }
.sl-rank { width: 30px; text-align: center; font-size: 20px; }
.sl-name { flex: 1; display: flex; flex-direction: column; font-size: 17px; min-width: 0; }
.sl-name small { font-family: var(--type); font-size: 12px; color: var(--ink-2); font-weight: 400; }
.sl-money { font-variant-numeric: tabular-nums; font-size: 17px; color: #2f6420; }
.dw-endcard .aw-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.dw-endcard .award { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 12px; background: rgba(80, 50, 30, 0.12); text-align: center; }
.dw-endcard .aw-ic { font-size: 26px; }
.dw-endcard .award small { font-size: 12px; color: var(--ink-2); }
.dw-endcard .end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.dw-winner .dw-wcard { animation: slam 0.7s 0.3s both; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 700px) {
  .dw-opts { grid-template-columns: 1fr; gap: 8px; }
  .dw-opt { min-height: 54px; }
  .dw-letter { width: 32px; height: 32px; font-size: 19px; }
  .dw-card { padding: 14px 14px 16px; border-radius: 16px; }
  .dw-qtext { margin-bottom: 10px; }
  .dw-sitems { gap: 6px; }
  .dw-sitem { min-height: 84px; padding: 8px 6px; font-size: 16px; }
  .dw-track { padding: 6px 6px 6px 30px; gap: 2px; }
  .tr-killer { width: 26px; height: 26px; }
  .tr-cell { min-height: 58px; }
  .tr-tok .pt { width: 22px; height: 22px; }
  .tr-door { font-size: 13px; }
  .tr-lbl { font-size: 9px; }
  .dw-res { grid-template-columns: 1fr auto; grid-template-areas: 'who verdict' 'what what' 'line line'; }
  .dw-res:has(.dw-res-art) { grid-template-columns: 72px 1fr auto; grid-template-areas: 'art who verdict' 'art what what' 'line line line'; }
  .dw-res-art, .dw-art.small, .dw-art.tattoo.small { width: 72px; }
  .race-who { width: 100px; }
  .dw-say { padding: 8px 12px 8px 8px; }
  .dw-say-mask { width: 38px; height: 38px; }
  .dw-entries { grid-template-columns: 1fr 1fr; }
  .dw-entries.n1 { grid-template-columns: 1fr; }
  .oj-board { aspect-ratio: 1.3; }
  .dk-tag { min-width: 72px; padding: 6px 8px 8px; }
  .dk-tag .pt { width: 42px; height: 42px; }
  .dw-keys { gap: 8px; }
  .dw-floor-blurb { font-size: 15px; }
  .sk-ink-btn { width: 26px; height: 26px; }
  .sk-btn { width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .dw-sitems { grid-template-columns: 1fr; }
  .dw-sitem { min-height: 56px; flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-key.in, .dw-victim, .dw-say-mask, .tr-killer { animation: none !important; }
}
