/* Bluffr: printed like a two-colour risograph zine. Flat inks, hard offsets, paper grain. No gradients, no glow. */
:root {
  --paper: #f3eee3; --paper2: #fbf8f1; --ink: #1f3fa0; --pink: #ff48b0; --yellow: #ffe14d; --dim: #5a6aa8;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, "Courier New", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 500 16px/1.4 var(--display); overflow-x: hidden; }
/* paper grain over everything */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .5; mix-blend-mode: multiply;
  background-image: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12  0 0 0 0 .2  0 0 0 0 .5  0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
.blob { overflow: visible; }
.scene { display: none; }
.blob .ink2 { mix-blend-mode: multiply; }

/* misregistered type: the pink plate printed a little off the blue one */
.ink { position: relative; display: inline-block; isolation: isolate; }
.ink::before { content: attr(data-text); position: absolute; left: .045em; top: .035em; color: var(--pink); z-index: -1; mix-blend-mode: multiply; }

/* ---------- pieces ---------- */
.btn { position: relative; border: 3px solid var(--ink); border-radius: 0; padding: 12px 16px 10px; background: var(--paper2); color: var(--ink);
  font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; box-shadow: 5px 5px 0 var(--pink); transition: transform .08s, box-shadow .08s; text-align: left; }
.btn small { display: block; font: 400 12px/1.3 var(--mono); text-transform: none; letter-spacing: 0; margin-top: 4px; opacity: .85; }
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--pink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.pink { background: var(--pink); box-shadow: 5px 5px 0 var(--ink); }
.btn.pink:hover:not(:disabled) { box-shadow: 7px 7px 0 var(--ink); }
.btn.pink:active:not(:disabled) { box-shadow: 2px 2px 0 var(--ink); }
.btn.yellow { background: var(--yellow); }
.btn.on { background: var(--ink); color: var(--paper); }
.btn.big { font-size: 30px; padding: 14px 28px 12px; }
.link { background: none; border: 0; padding: 4px 2px; font: 700 13px var(--mono); text-transform: uppercase; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--pink); position: relative; }
.link:hover { background: var(--yellow); }
input { background: var(--paper2); border: 3px solid var(--ink); border-radius: 0; padding: 11px 12px; font: 700 18px var(--mono); min-width: 0; color: var(--ink); }
input::placeholder { color: #9aa4cf; }
input:focus { outline: none; box-shadow: 4px 4px 0 var(--yellow); }
.join { display: flex; gap: 12px; }
.join input { flex: 1; }
.lab, .k, .optLab { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* a sheet of paper with a halftone shadow printed off to the side */
.sheet { position: relative; background: var(--paper2); border: 3px solid var(--ink); isolation: isolate; }
.sheet::before { content: ""; position: absolute; inset: 0; background: var(--paper2); z-index: -1; }
.sheet::after { content: ""; position: absolute; inset: -3px; transform: translate(10px, 10px); z-index: -2; mix-blend-mode: multiply;
  background: radial-gradient(var(--pink) 1.3px, transparent 1.6px) 0 0 / 7px 7px; }
.tape { position: absolute; top: -16px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 225, 77, .75); mix-blend-mode: multiply; }

/* ---------- home ---------- */
#home { max-width: 980px; margin: 0 auto; padding: 14px 22px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.topnav { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.issue { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.spacer { flex: 1; }
.hero { position: relative; text-align: center; padding-top: 6px; }
.logo { margin: 0; background: none; border: 0; padding: 0; color: var(--ink); }
.logo .ink { font: 800 clamp(64px, 22vw, 230px)/.8 var(--display); letter-spacing: -.055em; transform: rotate(-2deg); }
.hero .mask { position: absolute; width: clamp(70px, 13vw, 130px); top: 2%; right: 8%; transform: rotate(14deg); }
.tag { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 0; font: 700 clamp(16px, 2.6vw, 22px) var(--mono); text-transform: uppercase; }
.tag span { background: var(--yellow); padding: 2px 8px; mix-blend-mode: multiply; }
.tag span:nth-child(2) { transform: rotate(1.5deg); background: none; border: 3px solid var(--ink); }
.tag span:nth-child(3) { transform: rotate(-1deg); }

.start { justify-self: center; width: 100%; max-width: 460px; padding: 22px 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; transform: rotate(.6deg); }
.me { display: flex; align-items: center; justify-content: center; gap: 10px; }
.meAv { width: 150px; height: 160px; }
.meAv .blob { width: 100%; height: 100%; }
.arrow { width: 44px; height: 44px; border: 3px solid var(--ink); background: var(--paper2); font: 800 22px var(--display); color: var(--ink); box-shadow: 3px 3px 0 var(--pink); }
.arrow:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.hatName { text-align: center; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .15em; margin-top: -8px; }
.swatches { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 26px; height: 26px; border: 3px solid var(--ink); background: var(--c); border-radius: 50%; mix-blend-mode: multiply; }
.swatches button[aria-checked="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 6px 0 4px; }
.btns .wide { grid-column: 1 / -1; font-size: 34px; padding: 16px 18px 12px; }
#code { text-transform: uppercase; letter-spacing: .4em; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 3px solid var(--ink); margin-top: 26px; background: var(--paper2); }
.sectionHead { grid-column: 1 / -1; margin: 0; padding: 8px 14px 6px; border-bottom: 3px solid var(--ink); font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: -.03em; background: var(--yellow); }
.step { position: relative; padding: 14px 14px 16px; border-right: 3px solid var(--ink); }
.step:last-child { border-right: 0; }
.step .num { font: 700 13px var(--mono); }
.step .art { height: 100px; display: flex; justify-content: center; align-items: flex-end; }
.step .art .blob { width: 64px; height: 72px; }
.step .art .mini { position: relative; }
.step .art .say { position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: var(--paper2); border: 2px solid var(--ink); font: 700 11px var(--mono); padding: 1px 6px; white-space: nowrap; text-transform: uppercase; }
.step h3 { margin: 8px 0 4px; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 14px; }
.step b { background: var(--pink); color: var(--ink); padding: 0 3px; }
footer { font: 400 12px var(--mono); text-align: center; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .step { padding: 12px 10px 14px; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 13px; }
  .step .art .blob { width: 52px; height: 58px; }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(2), .step:nth-child(3) { border-bottom: 3px solid var(--ink); }
}

/* ---------- room ---------- */
#room { max-width: 1240px; margin: 0 auto; padding: 10px 22px 30px; }
.bar { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; }
.logo.small .ink { font-size: 40px; transform: rotate(-3deg); }
.status { flex: 1; text-align: center; min-width: 0; }
#bannerText { font: 800 clamp(20px, 3.2vw, 32px)/1 var(--display); text-transform: uppercase; letter-spacing: -.03em; }
.pips { display: flex; justify-content: center; gap: 5px; margin-bottom: 6px; min-height: 10px; font: 700 11px var(--mono); }
.pips i { width: 22px; height: 10px; border: 2px solid var(--ink); }
.pips i.done { background: var(--ink); }
.pips i.now { background: var(--pink); }
.clock { position: relative; width: 50px; height: 50px; flex: none; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 6; }
.clock .track { stroke: var(--ink); stroke-dasharray: 2 3; stroke-width: 2; }
.clock .run { stroke: var(--ink); stroke-dasharray: 100.5; transition: stroke-dashoffset .25s linear; }
.clock b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 17px var(--mono); }
.clock.hurry .run { stroke: var(--pink); }
.clock.hurry b { background: var(--pink); border-radius: 50%; margin: 9px; animation: shake .25s infinite; }
.chatBtn { display: none !important; }
.chatBtn i { position: absolute; top: 0; right: -10px; width: 10px; height: 10px; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.main { display: grid; gap: 22px; min-width: 0; }
.main > :empty { display: none; }

/* seats around the table */
.stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 54px 10px; padding: 58px 6px 14px; border-bottom: 3px dashed var(--ink); }
.seat { position: relative; width: 112px; display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.seat .av { width: 94px; height: 102px; position: relative; }
.seat .av .blob { width: 100%; height: 100%; }
.seat.enter .av { animation: plop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.seat .plate { margin-top: -8px; max-width: 110px; padding: 2px 8px; font: 800 15px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1;
  background: rgba(255, 225, 77, .8); transform: rotate(-2deg); text-transform: uppercase; letter-spacing: -.01em; }
.seat:nth-child(even) .plate { transform: rotate(2deg); }
.seat.me .plate { background: var(--ink); color: var(--paper); }
.seat .sub { font: 400 11px var(--mono); min-height: 15px; display: flex; gap: 6px; align-items: center; margin-top: 3px; text-transform: uppercase; }
.seat .past { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 4px; }
.seat .past span { font: 700 11px var(--mono); padding: 0 5px; border: 1.5px solid var(--ink); text-transform: lowercase; opacity: .75; }
.bubble { position: absolute; bottom: calc(100% - 6px); left: 50%; transform: translateX(-50%) rotate(-2deg); z-index: 3; max-width: 160px;
  background: var(--paper2); border: 3px solid var(--ink); padding: 3px 10px 2px; font: 700 17px/1.2 var(--mono); text-transform: lowercase; white-space: nowrap; box-shadow: 4px 4px 0 var(--pink); }
.seat:nth-child(even) .bubble { transform: translateX(-50%) rotate(2deg); }
.bubble::after { content: ""; position: absolute; left: 22px; bottom: -13px; border: 10px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.bubble.pop { animation: slap .35s cubic-bezier(.3, 1.7, .5, 1) both; }
.bubble.dots b { display: inline-block; animation: dot 1s infinite; }
.bubble.dots b:nth-child(2) { animation-delay: .15s; } .bubble.dots b:nth-child(3) { animation-delay: .3s; }
.bubble.skip { color: var(--dim); box-shadow: none; border-style: dashed; }
.talk { position: absolute; top: 4px; left: 72%; z-index: 4; max-width: 140px; background: var(--pink); color: var(--ink); padding: 2px 7px; font: 700 11px/1.25 var(--mono); transform: rotate(4deg); mix-blend-mode: multiply; animation: talk .25s both; }
.seat.turn .av::before { content: ""; position: absolute; inset: -6px -10px 0; border: 3px solid var(--pink); border-radius: 50% 46% 52% 48%; transform: rotate(-6deg); animation: wobble 1.2s ease-in-out infinite; }
.seat.turn .av .blob { animation: nod 1s ease-in-out infinite; }
.seat .blob .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; animation-delay: var(--blink, 0s); }
.seat.out .av { opacity: .45; }
.seat.out .av::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 4px; background: var(--pink); transform: rotate(-24deg); }
.seat.out .plate { text-decoration: line-through; text-decoration-thickness: 3px; background: none; }
.seat.away .av { opacity: .5; }
.seat.votable { cursor: pointer; }
.seat.votable .av::after { content: "vote out?"; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-4deg); font: 700 12px var(--mono); background: var(--ink); color: var(--paper); padding: 1px 6px; opacity: 0; white-space: nowrap; }
.seat.votable:hover .av::after { opacity: 1; }
.seat.votable:hover .av .blob { transform: translateY(-4px); }
.seat.picked .av::before { content: ""; position: absolute; inset: -8px -12px -2px; border: 4px solid var(--pink); border-radius: 48% 52% 45% 55%; transform: rotate(8deg); }
.seat.picked .av::after { content: "my vote"; opacity: 1; background: var(--pink); color: var(--ink); }
.seat .check { position: absolute; top: 4px; right: 2px; font: 700 12px var(--mono); background: var(--ink); color: var(--paper); padding: 0 4px; transform: rotate(6deg); }
.seat .tokens { display: flex; gap: 3px; justify-content: center; margin-top: 4px; flex-wrap: wrap; max-width: 100px; }
.seat .tokens i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--ink); background: var(--c); mix-blend-mode: multiply; animation: plop .35s both; animation-delay: calc(var(--n) * .1s); }
.seat.bluffr .plate { background: var(--pink); }
.seat .crown { position: absolute; top: -20px; font: 700 10px var(--mono); text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 0 5px; transform: rotate(-6deg); }
.seat .kick { position: absolute; top: 0; right: 4px; width: 22px; height: 22px; border: 2px solid var(--ink); background: var(--paper2); color: var(--ink); font: 700 12px/1 var(--mono); padding: 0; z-index: 4; }
.seat .kick:hover { background: var(--pink); }
.seat.empty .av { display: grid; place-items: center; border: 3px dashed var(--ink); border-radius: 50%; width: 76px; height: 76px; margin: 12px 8px 6px; font: 800 30px var(--display); opacity: .5; }
.seat.empty:hover .av { opacity: 1; background: var(--yellow); }

/* your card, and what to do now */
.desk { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.card { position: relative; width: 200px; min-height: 124px; border: 3px solid var(--ink); padding: 12px 14px; transform: rotate(-2.5deg); display: grid; align-content: center; gap: 4px; text-align: left;
  background: var(--paper2) repeating-linear-gradient(transparent 0 23px, rgba(31, 63, 160, .18) 23px 24px); box-shadow: 6px 6px 0 var(--yellow); }
.card::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; border-left: 2px solid rgba(255, 72, 176, .55); }
.card .w { font: 800 32px/1 var(--display); text-transform: uppercase; letter-spacing: -.03em; overflow-wrap: anywhere; padding-left: 14px; }
.card .k { padding-left: 14px; }
.card.bluffr { background: var(--pink); box-shadow: 6px 6px 0 var(--ink); }
.card.bluffr::before { display: none; }
.card .m { width: 64px; margin-left: 12px; }
.card.watch { background: var(--paper2); }
.act { flex: 1; min-width: min(300px, 100%); max-width: 540px; display: grid; gap: 12px; }
.act .hint { font: 400 14px/1.45 var(--mono); }
.act .hint b { background: var(--yellow); font-weight: 700; padding: 0 3px; }
.act .hint.loud { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
.clue { display: flex; gap: 0; border: 3px solid var(--ink); background: var(--paper2); box-shadow: 6px 6px 0 var(--pink); animation: nudge 2s ease-in-out infinite; }
.clue input { flex: 1; border: 0; font-size: 24px; text-transform: lowercase; background: transparent; }
.clue input:focus { box-shadow: none; }
.clue .btn { box-shadow: none; border-width: 0 0 0 3px; background: var(--yellow); }
.clue .btn:hover { transform: none; box-shadow: none; background: var(--pink); }
.act .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* the 16 words */
.board { display: grid; grid-template-columns: repeat(4, 1fr); border: 3px solid var(--ink); background: var(--paper2); }
.board .head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 6px 12px 4px; border-bottom: 3px solid var(--ink); font: 800 22px var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.board .head small { font: 400 12px var(--mono); text-transform: none; }
.tile { border: 0; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 14px 4px 12px; text-align: center; font: 700 clamp(12px, 2.1vw, 17px)/1.1 var(--display); background: none; color: var(--ink); overflow-wrap: anywhere; animation: fadeup .3s both; animation-delay: calc(var(--i) * 20ms); position: relative; }
.tile:nth-child(4n + 1) { border-right: 0; }
.tile:nth-last-child(-n + 4) { border-bottom: 0; }
.tile.secret span { background: var(--yellow); padding: 1px 4px; box-shadow: 3px 3px 0 var(--pink); mix-blend-mode: multiply; }
.tile.wrong span { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 4px; }
button.tile { cursor: pointer; }
button.tile:hover { background: var(--pink); }
.board.guessing { box-shadow: 8px 8px 0 var(--pink); }

/* lobby */
#lobby { display: grid; gap: 18px; justify-items: center; text-align: center; order: 2; }
.ticket { display: flex; align-items: center; gap: 20px; padding: 10px 18px; border: 3px dashed var(--ink); background: var(--paper2); transform: rotate(-1deg); }
.ticket .code { font: 700 46px/1 var(--mono); letter-spacing: .25em; }
.opts { display: grid; gap: 8px; width: 100%; max-width: 680px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chips button { background: var(--paper2); border: 2px solid var(--ink); padding: 5px 10px; font: 700 13px var(--mono); text-transform: uppercase; color: var(--ink); }
.chips button:hover { background: var(--yellow); }
.chips button.on { background: var(--ink); color: var(--paper); }
.waiting { font: 400 14px var(--mono); }
.waiting .dots b { animation: dot 1s infinite; display: inline-block; }
.waiting .dots b:nth-child(2) { animation-delay: .15s; } .waiting .dots b:nth-child(3) { animation-delay: .3s; }

/* chat */
aside { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--paper2); border: 3px solid var(--ink); padding: 12px; max-height: calc(100vh - 110px); }
.chatHead { display: flex; justify-content: space-between; align-items: baseline; font: 800 22px var(--display); text-transform: uppercase; letter-spacing: -.02em; border-bottom: 3px solid var(--ink); padding-bottom: 6px; }
.chatHead .link { display: none; }
#chat { flex: 1; min-height: 220px; max-height: 440px; overflow-y: auto; font: 400 13px/1.4 var(--mono); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 7px; }
#chat .msg { display: flex; gap: 6px; align-items: flex-start; }
#chat .msg .blob { width: 26px; height: 28px; flex: none; }
#chat .msg b { font-weight: 700; text-transform: uppercase; margin-right: 4px; }
#chat .msg b::after { content: ":"; }
#chat .sys { font-size: 11px; text-transform: uppercase; opacity: .7; text-align: center; }
.quickChat { display: flex; flex-wrap: wrap; gap: 4px; }
.quickChat button { background: none; border: 1.5px solid var(--ink); padding: 2px 7px; font: 700 11px var(--mono); color: var(--ink); text-transform: lowercase; }
.quickChat button:hover { background: var(--yellow); }
#chatForm input { font-size: 14px; padding: 8px 10px; }
#chatForm .btn { font-size: 16px; padding: 8px 12px 6px; box-shadow: 3px 3px 0 var(--pink); }

/* big moments */
#moment { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(243, 238, 227, .93); animation: fade .2s both; overflow-y: auto; }
.flip { perspective: 1100px; width: min(340px, 86vw); height: 440px; }
.flip .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip .9s .3s cubic-bezier(.4, 1.4, .5, 1) both; }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; border: 4px solid var(--ink); display: grid; place-content: center; justify-items: center; gap: 10px; padding: 26px; text-align: center; }
.flip .back { background: var(--paper2) radial-gradient(var(--pink) 2px, transparent 2.4px) 0 0 / 11px 11px; }
.flip .back .m { width: 170px; background: var(--paper2); padding: 14px; border: 3px solid var(--ink); }
.flip .front { transform: rotateY(180deg); background: var(--paper2); box-shadow: 10px 10px 0 var(--yellow); }
.flip .front.bluffr { background: var(--pink); box-shadow: 10px 10px 0 var(--ink); }
.flip .w { font: 800 60px/.9 var(--display); text-transform: uppercase; letter-spacing: -.05em; overflow-wrap: anywhere; }
.flip .p { font: 400 14px/1.45 var(--mono); max-width: 260px; }
.flip .big { width: 140px; height: 150px; }
.flip .topic { font: 700 13px var(--mono); text-transform: uppercase; border: 2px solid var(--ink); padding: 1px 8px; }

.verdict { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 560px; }
.verdict .who { position: relative; width: 200px; height: 210px; }
.verdict .who .blob { width: 100%; height: 100%; animation: plop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.stamp { position: absolute; left: 50%; top: 54%; font: 800 46px/1 var(--display); padding: 6px 14px 2px; border: 6px solid currentColor; letter-spacing: -.02em; white-space: nowrap; text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-12deg); animation: stamp .35s .5s cubic-bezier(.3, 1.6, .5, 1) both; mix-blend-mode: multiply; filter: url(#roughStamp); }
.stamp.yes { color: var(--pink); } .stamp.no { color: var(--ink); }
.verdict h2 { margin: 4px 0 0; font: 800 clamp(30px, 6vw, 52px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.04em; }
.verdict p { margin: 0; font: 400 14px var(--mono); }
.verdict .row { display: flex; }
.verdict .row .blob { width: 70px; height: 76px; }

.final { width: min(600px, 94vw); display: grid; gap: 14px; padding: 24px 22px 26px; animation: plop .4s cubic-bezier(.3, 1.4, .5, 1) both; }
.final .head .ink { font: 800 clamp(44px, 10vw, 76px)/.85 var(--display); text-transform: uppercase; letter-spacing: -.05em; }
.final .you { font: 700 14px var(--mono); text-transform: uppercase; }
.final .you span { background: var(--yellow); padding: 2px 6px; }
.final .you.lose span { background: var(--pink); }
.final .reveal { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.final .reveal .who { display: grid; justify-items: center; font: 700 12px var(--mono); text-transform: uppercase; }
.final .reveal .blob { width: 100px; height: 108px; }
.final .reveal .card { transform: rotate(3deg); }
.final .why { font: 400 14px var(--mono); }
.scores { display: grid; border: 3px solid var(--ink); }
.scores .r { display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 6px; border-bottom: 1.5px solid var(--ink); animation: fadeup .3s both; animation-delay: calc(var(--i) * 70ms + .25s); }
.scores .r:last-child { border-bottom: 0; }
.scores .r .blob { width: 32px; height: 34px; }
.scores .r .n { flex: 1; font: 800 17px var(--display); text-transform: uppercase; }
.scores .r .plus { font: 700 14px var(--mono); background: var(--yellow); padding: 0 4px; }
.scores .r .tot { font: 700 20px var(--mono); min-width: 36px; text-align: right; }
.scores .r.mine { background: rgba(255, 72, 176, .25); }
.final .row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.final .close { position: absolute; top: 10px; right: 12px; }
.peek { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 15; }

/* effects */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
#fx i { position: absolute; top: -20px; width: 12px; height: 7px; mix-blend-mode: multiply; animation: confetti linear forwards; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(-1deg); background: var(--ink); color: var(--paper); padding: 10px 16px; font: 700 14px var(--mono); max-width: 92vw; z-index: 50; box-shadow: 5px 5px 0 var(--pink); }

@keyframes plop { from { transform: scale(.3) rotate(-10deg); opacity: 0; } }
@keyframes slap { from { transform: translateX(-50%) scale(1.8) rotate(-8deg); opacity: 0; } }
@keyframes talk { from { transform: scale(.4) rotate(10deg); opacity: 0; } }
@keyframes nod { 50% { transform: rotate(-4deg) translateY(-3px); } }
@keyframes wobble { 50% { transform: rotate(6deg) scale(1.04); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes nudge { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-.6deg); } }
@keyframes shake { 50% { transform: translateX(1px) rotate(4deg); } }
@keyframes flip { from { transform: rotateY(0) rotate(-3deg); } to { transform: rotateY(180deg) rotate(2deg); } }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-12deg) scale(2.6); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeup { from { transform: translateY(8px); opacity: 0; } }
@keyframes confetti { to { transform: translate(var(--x), 110vh) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* smaller screens: chat becomes a drawer */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .chatBtn { display: inline-block !important; }
  aside { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; top: auto; max-height: 72vh; transform: translateY(120%); transition: transform .25s; box-shadow: 8px 8px 0 var(--pink); }
  aside.open { transform: none; }
  .chatHead .link { display: inline-block; }
  #chat { min-height: 160px; max-height: 44vh; }
}
@media (max-width: 560px) {
  #home { padding: 10px 14px 30px; }
  #room { padding: 8px 10px 20px; }
  .bar { gap: 8px; }
  .logo.small .ink { font-size: 28px; }
  #bannerText { font-size: 17px; }
  #sound, #music { display: none; }
  .clock { width: 42px; height: 42px; }
  .stage { gap: 46px 2px; padding: 50px 0 10px; }
  .seat { width: 84px; }
  .seat .av { width: 72px; height: 78px; }
  .seat .plate { font-size: 12px; max-width: 82px; padding: 1px 5px; }
  .bubble { font-size: 14px; padding: 2px 6px 1px; max-width: 110px; }
  .talk { left: 50%; max-width: 96px; font-size: 10px; }
  .tile { padding: 11px 2px 9px; }
  .card { width: 160px; min-height: 100px; }
  .card .w { font-size: 24px; }
  .desk .act { flex-basis: 100%; min-width: 0; }
  .clue input { font-size: 19px; }
  .btns .wide { font-size: 28px; }
  .start { padding: 20px 16px; }
  .btns { gap: 10px; }
  .btns .btn:not(.wide) { font-size: 18px; padding: 10px 10px 8px; }
  .hero .mask { right: 2%; top: -10%; width: 60px; }
  .topnav { gap: 8px; }
  .issue { font-size: 10px; letter-spacing: .04em; }
  .tag { font-size: 13px; }
  .flip { height: 400px; }
  .flip .w { font-size: 48px; }
}
