:root {
  --cobalt: #2B3FE0;
  --cobalt-deep: #1C2AA8;
  --ink: #1B1446;
  --sun: #FFD43B;
  --pink: #FF3D7F;
  --mint: #3DE0A8;
  --paper: #FFFFFF;
  --display: 'Bangers', Impact, sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', cursive;
  --shadow: 5px 5px 0 var(--ink);
}

* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font: 400 19px/1.35 var(--hand);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .09) 1.4px, transparent 1.7px) 0 0 / 16px 16px,
    radial-gradient(ellipse at 50% -10%, #4458F5 0%, var(--cobalt) 45%, var(--cobalt-deep) 100%) fixed;
  background-color: var(--cobalt);
  overflow-x: hidden;
}
main { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px }
p { margin: 6px 0 }
img, svg { display: block }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .03em; line-height: 1; margin: 0 }
h2 {
  font-size: 40px;
  margin: 22px 0 10px;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
h3 { font-size: 30px; color: var(--ink) }
.quiet { color: rgba(255, 255, 255, .8) }
.small { font-size: 15px }
.center { text-align: center }
.lead { font-size: 23px }

/* ---------- Buttons ---------- */
.btn {
  font: 700 21px/1 var(--hand);
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 13px 20px 10px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
  touch-action: manipulation;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink) }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink) }
.btn:disabled { opacity: .5; cursor: not-allowed }
.btn.go { background: var(--sun) }
.btn.big { display: block; width: 100%; font-size: 26px; padding: 17px 20px 14px; margin-top: 18px }
.btn.slim { font-size: 17px; padding: 8px 12px 6px; box-shadow: 3px 3px 0 var(--ink) }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px }
.row .btn.go { margin-left: auto }

.mute {
  position: fixed; top: 12px; right: 12px; z-index: 30;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer; padding: 0;
}
.mute svg { width: 24px; height: 24px }

/* ---------- Paper ---------- */
.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transform: rotate(var(--tilt, 0deg));
}
.taped { padding: 8px }
.taped::before, .taped::after {
  content: '';
  position: absolute; z-index: 2; top: -13px; left: 16px;
  width: 86px; height: 26px;
  background: rgba(255, 240, 170, .78);
  border: 1px solid rgba(27, 20, 70, .15);
  transform: rotate(-6deg);
}
.taped::after { left: auto; right: 16px; transform: rotate(5deg) }
.lined {
  padding: 8px 14px 8px 54px;
  background: repeating-linear-gradient(transparent 0 40px, #C9D4FF 40px 42px) 0 6px, var(--paper);
}
.lined::before { content: ''; position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; background: #FF9DB8 }
.sticky {
  position: relative;
  background: var(--sun);
  color: var(--ink);
  padding: 12px 16px 14px;
  border-radius: 2px 2px 16px 2px;
  box-shadow: 3px 7px 0 rgba(27, 20, 70, .4);
  transform: rotate(var(--tilt, -1.5deg));
}
.bubble {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 14px 20px;
  font-size: 27px;
  line-height: 1.2;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
}
.bubble::after {
  content: '';
  position: absolute; left: 30px; bottom: -14px;
  width: 22px; height: 22px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) skew(12deg, 12deg);
}
.field {
  display: block; width: 100%;
  font: 400 28px/1.3 var(--hand);
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 4px 2px;
  outline: none;
}
.field::placeholder { color: rgba(27, 20, 70, .38) }
.art { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; border-radius: 3px; user-select: none }
.art.blank { display: grid; place-items: center; color: rgba(27, 20, 70, .45); font-size: 22px }
.said { font-size: 26px; line-height: 1.2 }

/* ---------- Avatars ---------- */
.av { width: 64px; height: 73px; flex: none; overflow: visible }
.av.xs { width: 26px; height: 30px }
.av.sm { width: 36px; height: 41px }
.av.lg { width: 110px; height: 126px }
.av .disguise { animation: drop-on .6s cubic-bezier(.3, 1.6, .5, 1) both }
@keyframes drop-on { from { transform: translateY(-70px); opacity: 0 } }

/* ---------- Hero / lobby ---------- */
.hero { display: grid; justify-items: center; text-align: center; margin: 10px 0 22px }
.mascot { width: min(230px, 58vw); height: auto; filter: url(#boil) }
.mascot .pupils { animation: shifty 5s ease-in-out infinite }
@keyframes shifty { 0%, 38%, 100% { transform: none } 44%, 64% { transform: translateX(-5px) } 70%, 90% { transform: translateX(4px) } }
.logo {
  font: 400 clamp(88px, 24vw, 156px)/.82 var(--display);
  letter-spacing: .02em;
  color: var(--sun);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-4deg);
  margin: -6px 0 10px;
}
.tagline { font-size: 24px; max-width: 26ch }

.party-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px }
.party { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px }
.slot { display: grid; justify-items: center; gap: 2px; font-weight: 700; font-size: 17px; text-align: center; min-width: 0 }
.slot .name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.slot.away { opacity: .4 }
.slot.new .av { animation: pop-in .6s cubic-bezier(.3, 1.8, .5, 1) both }
.slot .empty { width: 60px; height: 60px; margin: 7px 0 6px; border: 3px dashed #BDB8DA; border-radius: 50% }
.slot .muted-name { color: #9A95BD; font-weight: 400 }
.tag { display: inline-block; font-size: 13px; line-height: 1.4; background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; padding: 0 7px }
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding-top: 12px; border-top: 2px dashed #D8D4EE; font-size: 17px }
.invite code { font: 700 17px var(--hand); background: #EEF1FF; padding: 2px 8px; border-radius: 6px; overflow-wrap: anywhere }
.code { font: 400 1.5em/1 var(--display); letter-spacing: .12em; color: var(--sun); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink) }
.invite .code { font-size: 30px }
.or { display: flex; align-items: center; gap: 14px; margin: 26px 0 12px; font-size: 18px; color: rgba(255, 255, 255, .8) }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: rgba(255, 255, 255, .3) }
.join-code { display: flex; gap: 12px; align-items: stretch }
.code-field {
  flex: 1; min-width: 0;
  font: 400 34px/1 var(--display); letter-spacing: .35em; text-transform: uppercase;
  color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 16px 6px; outline: none;
}
.code-field::placeholder { color: rgba(27, 20, 70, .3) }
a { color: #fff; text-underline-offset: 3px }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px 16px; margin-top: 30px }
.howto .sticky { font-size: 17px; line-height: 1.3 }
.howto .sticky:nth-child(even) { --tilt: 1.4deg; background: #FFF3B0 }
.howto b { display: block; font: 400 30px/1 var(--display); letter-spacing: .03em; margin-bottom: 4px }
.footnote { margin-top: 18px; text-align: center; font-size: 17px }

/* ---------- Round HUD ---------- */
.hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 56px 16px 0; min-height: 64px }
.beads { display: flex; align-items: center }
.bead { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255, 255, 255, .3) }
.bead + .bead { margin-left: 14px; position: relative }
.bead + .bead::before { content: ''; position: absolute; right: 100%; top: 50%; width: 17px; height: 3px; margin-top: -1.5px; background: var(--ink) }
.bead.done { background: var(--sun) }
.bead.now { background: var(--pink); animation: throb 1s ease-in-out infinite }
.role { font: 700 16px/1 var(--hand); padding: 7px 12px 5px; border: 3px solid var(--ink); border-radius: 99px; background: var(--paper); color: var(--ink); white-space: nowrap }
.role.sab { background: var(--pink); color: #fff }
.timer { position: relative; width: 64px; height: 64px; flex: none }
.timer::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--ink) }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg) }
.timer circle { fill: none; stroke-width: 8 }
.timer .track { stroke: rgba(27, 20, 70, .55) }
.timer .fill { stroke: var(--sun); stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset .3s linear }
.timer .num { position: absolute; inset: 0; display: grid; place-items: center; font: 400 26px/1 var(--display); color: #fff; padding-top: 2px }
.timer.hurry { animation: throb .5s ease-in-out infinite }
.timer.hurry .fill { stroke: var(--pink) }
@keyframes throb { 50% { transform: scale(1.12) } }

/* ---------- Chain steps ---------- */
.step-title { margin-top: 4px }
.prompt-note { margin: 4px 0 26px }
.prompt-note .small { opacity: .7 }
.prompt { font-size: 30px; line-height: 1.15; font-weight: 700 }
.fit { width: min(100%, max(280px, calc((100vh - 380px) * 4 / 3))); margin-inline: auto }
.board { display: block; width: 100%; aspect-ratio: 4 / 3; touch-action: none; cursor: crosshair; border-radius: 3px; background: #fff }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin: 20px 0 6px }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px }
.swatch {
  width: 34px; height: 34px; padding: 0;
  border-radius: 50%; border: 3px solid var(--ink);
  background: var(--c); box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer; transition: transform .15s cubic-bezier(.3, 1.8, .5, 1);
}
.swatch.sel { transform: translateY(-6px) scale(1.2) }
.brushes { display: flex; gap: 8px }
.size {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 2px 2px 0 var(--ink); cursor: pointer;
}
.size i { display: block; background: var(--ink); border-radius: 50% }
.size.sel { background: var(--sun) }
.answer { margin: 30px 0 0 }

.secret-box { margin-top: 20px; padding: 12px 16px 14px; background: rgba(27, 20, 70, .55); border: 3px dashed var(--pink); border-radius: 18px }
.secret-title { font-weight: 700; font-size: 20px }
.secret-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 8px }
.secret {
  font: 400 26px/1 var(--display); letter-spacing: .04em;
  color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 14px 5px; cursor: pointer;
  transition: transform .15s cubic-bezier(.3, 1.8, .5, 1);
}
.secret.sel { color: #fff; background: var(--pink); transform: rotate(-3deg) scale(1.08) }
.secret-box small { font-size: 15px; opacity: .85 }
.lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; font-size: 17px }
.btn.sel { color: #fff; background: var(--ink) }
.twist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; padding: 10px 14px; border-radius: 16px; background: rgba(18, 14, 60, .45); border: 3px solid transparent }
.twist > div { flex: 1 1 200px }
.twist.hit { border-color: var(--mint) }
.secret-word { font: 400 26px/1 var(--display); letter-spacing: .04em; color: var(--sun) }
.twist-tag { padding: 5px 10px 2px; font: 400 22px/1 var(--display); letter-spacing: .05em; color: var(--pink); border: 3px solid var(--pink); border-radius: 8px }
.twist.hit .twist-tag { color: var(--mint); border-color: var(--mint) }

.hold { display: grid; justify-items: center; text-align: center; padding-top: 0 }
.dangle { width: 104px; height: auto; transform-origin: 50% 0; animation: swing 2.6s ease-in-out infinite }
@keyframes swing { 0%, 100% { transform: rotate(7deg) } 50% { transform: rotate(-7deg) } }
.pending { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 12px 0 }
.pending figure { margin: 0; display: grid; justify-items: center; font-size: 16px }
.pending .av { animation: scribbling .5s ease-in-out infinite alternate }
.pending figure:nth-child(2n) .av { animation-delay: -.25s }
@keyframes scribbling { to { transform: rotate(7deg) translateY(-3px) } }
.tip { max-width: 34ch; margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, .78) }

/* ---------- Trial ---------- */
.case-title { margin-top: 2px }
.case { display: flex; flex-direction: column; padding-bottom: 190px }
.coil { width: 34px; height: auto; margin: 4px auto }
.step { position: relative }
.step .who { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; font-size: 18px }
.step.now > .sheet, .step.now > .bubble { box-shadow: 0 0 0 5px var(--sun), 8px 8px 0 var(--ink) }
.step.enter { animation: drop-in .6s cubic-bezier(.2, 1.4, .4, 1) both }
@keyframes drop-in { from { opacity: 0; transform: translateY(-46px) rotate(-5deg) scale(.92) } }
.objected-tag {
  position: absolute; z-index: 3; top: 22px; right: -6px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px 2px 12px;
  font: 400 22px/1 var(--display); letter-spacing: .04em;
  color: #fff; background: var(--pink);
  border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(6deg);
}
.objected-tag.enter { animation: stamp-in .4s cubic-bezier(.2, 1.6, .4, 1) both }
@keyframes stamp-in { from { transform: rotate(6deg) scale(3); opacity: 0 } }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; gap: 10px;
  padding: 34px max(16px, calc(50vw - 364px)) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(28, 42, 168, 0), rgba(28, 42, 168, .94) 40%);
  pointer-events: none;
}
.dock > * { pointer-events: auto }
.dock .btn.big { margin-top: 0 }
.object-btn {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  font: 400 38px/1 var(--display); letter-spacing: .05em;
  color: #fff; background: var(--pink);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
  border: 3px solid var(--ink); border-radius: 18px;
  padding: 14px 16px 10px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.object-btn small { font: 700 16px var(--hand); -webkit-text-stroke: 0; letter-spacing: 0; opacity: .9 }
.object-btn:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink) }
.object-btn:disabled { background: #8E6FA8; cursor: not-allowed; opacity: .75 }

/* ---------- Objection overlay ---------- */
#overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow: hidden }
#overlay.out { animation: fade-out .25s forwards }
@keyframes fade-out { to { opacity: 0 } }
@keyframes fade-in { from { opacity: 0 } }
.flash { position: absolute; inset: 0; z-index: 3; background: #fff; animation: fade-out .35s ease-out forwards; pointer-events: none }
.rays { position: absolute; inset: -60%; background: repeating-conic-gradient(var(--sun) 0 5deg, #FFF6CF 5deg 11deg); animation: spin 9s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
.burst { position: relative; width: min(94vw, 760px); animation: slam .55s cubic-bezier(.2, 1.5, .4, 1) both }
.burst svg { width: 100%; height: auto; filter: drop-shadow(10px 10px 0 var(--ink)) }
.burst .word {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 clamp(52px, 13vw, 118px)/1 var(--display); letter-spacing: .03em;
  color: var(--sun); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-6deg);
}
@keyframes slam { from { transform: scale(3) rotate(12deg); opacity: 0 } 55% { transform: scale(.9) rotate(-4deg); opacity: 1 } to { transform: rotate(-3deg) } }
.by {
  position: absolute; bottom: 12vh;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 22px 4px 10px;
  font: 700 26px var(--hand); color: #fff; background: var(--ink); border-radius: 99px;
  animation: rise .4s .25s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes rise { from { transform: translateY(40px); opacity: 0 } }
.shake { animation: shake .5s }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px) }
  20%, 80% { transform: translate(5px, -3px) }
  30%, 50%, 70% { transform: translate(-10px, 4px) rotate(-.5deg) }
  40%, 60% { transform: translate(10px, -4px) rotate(.5deg) }
}

/* ---------- Role card ---------- */
.backdrop { position: absolute; inset: 0; background: rgba(18, 14, 60, .82); animation: fade-in .25s }
.role-card {
  position: relative;
  display: grid; justify-items: center; gap: 6px;
  width: min(88vw, 420px); padding: 26px 24px 22px;
  text-align: center; color: var(--ink); background: var(--paper);
  border: 4px solid var(--ink); border-radius: 24px;
  box-shadow: 9px 9px 0 var(--ink);
  animation: flip-in .75s cubic-bezier(.2, 1.3, .4, 1) both;
}
.role-card.sab { background: var(--pink); color: #fff }
.role-card h3 { font-size: 46px; color: inherit; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; margin-top: 6px }
.role-card.sab h3 { text-shadow: 3px 3px 0 var(--ink) }
.role-card p { font-size: 20px; margin: 0 0 10px }
@keyframes flip-in { from { transform: perspective(900px) rotateY(120deg) scale(.6); opacity: 0 } }

/* ---------- Lineup / verdict ---------- */
.lineup {
  position: relative; isolation: isolate;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px;
  padding: 26px 10px 14px;
  border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: var(--shadow);
  background: repeating-linear-gradient(to bottom, #2A2470 0 32px, rgba(255, 255, 255, .45) 32px 34px), #2A2470;
}
.suspect {
  position: relative;
  display: grid; justify-items: center; gap: 6px;
  width: 92px; padding: 6px 2px;
  font: inherit; color: #fff; background: none; border: 0;
  cursor: pointer;
}
.suspect .av { width: 76px; height: 87px; transition: transform .18s cubic-bezier(.3, 1.8, .5, 1) }
.suspect:hover:not(:disabled) .av { transform: translateY(-5px) rotate(-4deg) }
.suspect:disabled { cursor: default }
.suspect.me { opacity: .65 }
.suspect::before {
  content: ''; position: absolute; z-index: -1; inset: -16px -6px 20px;
  background: radial-gradient(closest-side, rgba(255, 244, 180, .85), rgba(255, 244, 180, 0));
  opacity: 0; transition: opacity .12s;
}
.suspect.lit::before { opacity: 1 }
.suspect.lit .av { transform: scale(1.1) }
.placard { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 16px/1.3 var(--hand); background: var(--ink); border: 2px solid #fff; border-radius: 4px; padding: 1px 8px }
.voted { position: absolute; top: 0; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; font: 700 16px/1 var(--hand); color: var(--ink); background: var(--mint); border: 2px solid var(--ink); border-radius: 50% }
.accused {
  position: absolute; top: 34%; left: 50%; z-index: 2;
  padding: 3px 8px 0;
  font: 400 24px/1 var(--display); letter-spacing: .05em;
  color: var(--pink); background: rgba(255, 255, 255, .94);
  border: 4px solid var(--pink); border-radius: 6px;
  transform: translate(-50%, -50%) rotate(-14deg);
  pointer-events: none;
}
.accused.enter { animation: accuse .4s cubic-bezier(.2, 1.6, .4, 1) both }
@keyframes accuse { from { transform: translate(-50%, -50%) rotate(-14deg) scale(3); opacity: 0 } }
.vote-count { margin-top: 14px; text-align: center; font-size: 20px }
.exhibits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 18px; padding-top: 10px }
.polaroid { position: relative; margin: 0; padding: 10px 10px 12px; color: var(--ink); background: var(--paper); box-shadow: 4px 6px 0 rgba(18, 14, 60, .55); transform: rotate(var(--tilt, 0deg)) }
.polaroid::before {
  content: ''; position: absolute; top: -9px; left: 50%;
  width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FF9DBC, var(--pink) 55%, #A3124A);
  box-shadow: 1px 2px 0 var(--ink);
}
.polaroid .said { min-height: 120px; display: grid; place-items: center; text-align: center; padding: 8px }
.polaroid figcaption { margin-top: 8px; font-size: 16px; line-height: 1.25 }
.polaroid figcaption span { color: #C2185B }

/* ---------- Reveal ---------- */
.verdict-name {
  margin: 18px 0 4px; text-align: center;
  font: 400 clamp(64px, 17vw, 128px)/.9 var(--display); letter-spacing: .03em;
  color: var(--sun); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  animation: slam .55s cubic-bezier(.2, 1.5, .4, 1) both;
}
.result {
  display: block; width: fit-content; margin: 8px auto 4px;
  padding: 6px 18px 2px;
  font: 400 42px/1 var(--display); letter-spacing: .05em;
  border: 5px solid; border-radius: 10px;
  background: rgba(18, 14, 60, .55);
  transform: rotate(-5deg);
  animation: result-in .45s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes result-in { from { transform: rotate(-5deg) scale(3); opacity: 0 } }
.result.caught { color: var(--mint); border-color: var(--mint) }
.result.escaped { color: var(--pink); border-color: var(--pink) }
.summary { text-align: center; font-size: 22px; margin-bottom: 8px }
.later { animation: fade-in .6s both }
.scores { display: grid; gap: 8px; margin-top: 8px }
.score-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px 14px; border-radius: 16px;
  background: rgba(18, 14, 60, .45);
  animation: rise .5s var(--d, 0s) cubic-bezier(.2, 1.4, .4, 1) both;
}
.score-row .name { font-weight: 700; font-size: 20px }
.score-row .why { font-size: 15px; opacity: .8; margin-left: 6px; font-weight: 400 }
.bar { height: 12px; margin-top: 4px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden }
.bar i { display: block; height: 100%; width: calc(var(--w) * 1%); border-radius: 99px; background: var(--sun); animation: grow 1s calc(var(--d, 0s) + .2s) cubic-bezier(.2, 1, .3, 1) both }
@keyframes grow { from { width: 0 } }
.score-num { display: flex; align-items: center; gap: 10px; font: 400 32px/1 var(--display) }
.plus { color: var(--mint); font-size: 24px; animation: pop-in .5s calc(var(--d, 0s) + .5s) cubic-bezier(.3, 1.8, .5, 1) both }
@keyframes pop-in { from { transform: scale(0); opacity: 0 } }
.winner { margin: 26px 0 0; text-align: center; font-size: clamp(44px, 11vw, 72px); color: var(--sun) }
.chain-strip { margin-top: 16px }
.chain-strip .who { display: flex; align-items: center; gap: 8px; font-weight: 700 }
.strip { display: flex; gap: 30px; overflow-x: auto; padding: 12px 12px 22px 4px; scroll-snap-type: x mandatory }
.mini {
  position: relative; flex: 0 0 188px; scroll-snap-align: start;
  padding: 8px; color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink);
}
.mini .by-line {
  display: flex; align-items: center; gap: 6px;
  margin: -8px -8px 8px; padding: 4px 10px 3px 6px;
  font-size: 16px; font-weight: 700; color: #fff; background: var(--ink);
  border-radius: 4px 4px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini.sabo .by-line { background: var(--pink) }
/* Arrow between steps: shows the order things were passed on. */
.mini + .mini::before {
  content: '';
  position: absolute; left: -26px; top: 50%;
  width: 20px; height: 20px; margin-top: -10px;
  background: var(--sun);
  clip-path: polygon(0 25%, 55% 25%, 55% 0, 100% 50%, 55% 100%, 55% 75%, 0 75%);
}
.mini .said { min-height: 132px; display: grid; place-items: center; text-align: center; font-size: 19px }
.mini.sabo { box-shadow: 0 0 0 4px var(--pink), 3px 3px 0 var(--ink) }
.sabo-stamp {
  position: absolute; right: -8px; bottom: -10px; z-index: 2;
  padding: 3px 8px 0;
  font: 400 26px/1 var(--display); letter-spacing: .05em;
  color: var(--pink); background: rgba(255, 255, 255, .9);
  border: 4px solid var(--pink); border-radius: 6px;
  transform: rotate(-10deg);
}

/* ---------- Misc ---------- */
#toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 50;
  max-width: calc(100% - 32px); padding: 10px 18px 8px;
  font-weight: 700; color: var(--ink); background: var(--sun);
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  transform: translateX(-50%);
  animation: toast-in .35s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes toast-in { from { transform: translate(-50%, 30px); opacity: 0 } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none }

@media (max-width: 520px) {
  body { font-size: 18px }
  h2 { font-size: 32px }
  .party { gap: 10px 2px }
  .slot .av { width: 46px; height: 53px }
  .suspect { width: 78px }
  .suspect .av { width: 62px; height: 71px }
  .object-btn { font-size: 32px }
  .prompt { font-size: 26px }
  .swatches { gap: 5px }
  .swatch { width: 28px; height: 28px }
  .mute { top: 8px; right: 8px; width: 38px; height: 38px }
  .hud { margin-right: 42px }
}

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