/* The Epicoverse. Flat colour, ink outlines, hard shadows. */

:root {
  --paper: #fff4e8;
  --surface: #ffffff;
  --surface-2: #ffe9d6;
  --ink: #14101a;
  --ink-soft: #4a4152;
  --pink: #ff3d8b;
  --pink-ink: #14101a;
  --yellow: #ffd23f;
  --blue: #3a5bff;
  --mint: #22c993;
  --red: #e5383b;
  --line: var(--ink);
  --shadow-c: var(--ink);

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --bw: 3px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 4px 4px 0 var(--shadow-c);
  --shadow-lg: 6px 6px 0 var(--shadow-c);
  --gutter: var(--s4);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #110e15;
    --surface: #1d1823;
    --surface-2: #2a2332;
    --ink: #fff4e8;
    --ink-soft: #d9cfe0;
    --line: #fff4e8;
    --shadow-c: #000000;
    --pink-ink: #14101a;
    color-scheme: dark;
  }
}

@media (min-width: 720px) {
  :root { --gutter: var(--s5); }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--gutter);
  border-bottom: var(--bw) solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wordmark {
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.wordmark span { color: var(--pink); }

.topbar-right { display: flex; align-items: center; gap: var(--s3); }
.topbar .chip { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar { padding: var(--s3); gap: var(--s2); }
  .wordmark { font-size: 16px; }
  .topbar-right { gap: var(--s2); }
}
@media (min-width: 720px) { .wordmark { font-size: 20px; } }

.online {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.online::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--line);
}
.online.off::before { background: var(--red); }

/* ---------- buttons and inputs ---------- */

.btn {
  --bg: var(--surface);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transform: translate(0, 0);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow-c); }
.btn:focus-visible, .chip:focus-visible, .input:focus-visible, .swatch:focus-visible, .tool:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.btn[disabled] { cursor: not-allowed; opacity: 1; background: var(--surface-2); color: var(--ink-soft); box-shadow: none; transform: none; }

.btn-pink { --bg: var(--pink); --fg: var(--pink-ink); }
.btn-yellow { --bg: var(--yellow); --fg: #14101a; }
.btn-blue { --bg: var(--blue); --fg: #ffffff; }
.btn-mint { --bg: var(--mint); --fg: #14101a; }
.btn-big { min-height: 60px; font-size: 19px; padding: var(--s4) var(--s6); }
.btn-sm { min-height: 36px; padding: var(--s1) var(--s3); font-size: 14px; box-shadow: 3px 3px 0 var(--shadow-c); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--shadow-c); }
.btn-block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--s1) var(--s3);
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

.input {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 700;
  font-size: 16px;
}
.input::placeholder { color: var(--ink-soft); font-weight: 600; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.4; }

.label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s2);
}

.panel {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.kicker {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- home ---------- */

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  display: grid;
  gap: var(--s7);
  padding: var(--s7) 0 var(--s8);
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding: var(--s8) 0 var(--s9); }
}

.hero h1 {
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.hero h1 .hl {
  background: var(--yellow);
  color: #14101a;
  padding: 0 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-copy { display: grid; gap: var(--s5); }
.hero-copy .lede { font-size: 19px; max-width: 34ch; font-weight: 600; color: var(--ink-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: stretch; }
.join-form { display: flex; gap: var(--s3); flex: 1 1 260px; max-width: 360px; }
.join-form .input { text-transform: uppercase; letter-spacing: 0.2em; font-weight: 900; min-height: 60px; }
.join-form .input::placeholder { letter-spacing: 0.08em; text-transform: none; }

.profile-card {
  padding: var(--s5);
  display: grid;
  gap: var(--s5);
  background: var(--pink);
  color: #14101a;
  transform: rotate(1.5deg);
}
.profile-card .label { color: #14101a; }
.profile-card .input { background: #fff4e8; color: #14101a; border-color: #14101a; }
.profile-card .input::placeholder { color: #4a4152; }
.profile-top { display: flex; gap: var(--s5); align-items: center; }
.profile-avatar {
  width: 128px; height: 128px; flex: none;
  background: #fff4e8;
  border: var(--bw) solid #14101a;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.profile-avatar svg { width: 104px; height: 104px; }
.part-pickers { display: grid; gap: var(--s2); flex: 1; min-width: 0; }
.part-row {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: var(--s2);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}
.arrow {
  width: 36px; height: 36px;
  border: 2px solid #14101a;
  border-radius: 8px;
  background: #fff4e8;
  color: #14101a;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.arrow:hover { background: var(--yellow); }
.arrow svg { width: 14px; height: 14px; }

.section { padding: var(--s8) 0; border-top: var(--bw) solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 5vw, 56px); }
.section-head p { max-width: 40ch; color: var(--ink-soft); font-weight: 600; }

.game-rows { display: grid; gap: var(--s5); }
.game-row {
  display: grid;
  gap: var(--s5);
  padding: var(--s5);
  align-items: center;
}
@media (min-width: 760px) {
  .game-row { grid-template-columns: 80px 1fr 220px; padding: var(--s5) var(--s6); }
}
.game-row .num { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.game-row h3 { font-size: 32px; margin-bottom: var(--s2); }
.game-row p { color: var(--ink-soft); font-weight: 600; max-width: 52ch; }
.game-row .meta { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 2px var(--s2);
  border-radius: 6px;
  background: var(--surface-2);
  border: 2px solid var(--line);
}
.game-art {
  height: 140px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.game-art svg { width: 100%; height: 100%; }
.art-pink { background: var(--pink); }
.art-yellow { background: var(--yellow); }
.art-blue { background: var(--blue); }

.rooms-list { display: grid; gap: var(--s3); }
.room-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  flex-wrap: wrap;
}
.room-row .code { font-weight: 900; font-size: 24px; letter-spacing: 0.12em; min-width: 96px; }
.room-row .info { flex: 1; min-width: 160px; font-weight: 600; color: var(--ink-soft); }
.room-row .info strong { color: var(--ink); }
.empty {
  padding: var(--s6);
  border: var(--bw) dashed var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  color: var(--ink-soft);
}

.footer {
  padding: var(--s6) 0 var(--s7);
  border-top: var(--bw) solid var(--line);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ---------- room ---------- */

.room {
  display: grid;
  gap: var(--s4);
  padding: var(--s4) var(--gutter) var(--s6);
  max-width: 1440px;
  margin: 0 auto;
}

.room-head {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.room-code {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s4);
  background: var(--yellow);
  color: #14101a;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.room-code small { font-size: 12px; letter-spacing: 0.06em; font-weight: 800; text-transform: uppercase; }
.room-code:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-c); }
.room-head .spacer { flex: 1; }
.room-head .status { font-weight: 800; font-size: 18px; }

.room-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'stage' 'chat' 'players';
}
@media (min-width: 1000px) {
  .room-grid {
    grid-template-columns: 230px minmax(0, 1fr) 300px;
    grid-template-areas: 'players stage chat';
    align-items: start;
  }
}
.area-players { grid-area: players; }
.area-stage { grid-area: stage; min-width: 0; }
.area-chat { grid-area: chat; }

.side-title {
  padding: var(--s3) var(--s4);
  border-bottom: var(--bw) solid var(--line);
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}

.players { list-style: none; margin: 0; padding: var(--s2); display: grid; gap: var(--s1); }
.player {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s2);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
}
.player.me { background: var(--surface-2); }
.player.active { border-color: var(--line); background: var(--yellow); color: #14101a; }
.player.done { background: var(--mint); color: #14101a; }
.player.offline { opacity: 0.55; }
.player .av svg { width: 40px; height: 40px; display: block; }
.player .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .sub { font-size: 12px; font-weight: 700; color: inherit; opacity: 0.8; }
.player .pts { font-weight: 900; font-size: 15px; }
.player .kick {
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  cursor: pointer;
}
.player .kick:hover { background: var(--red); color: #fff; }

/* chat */
.chat-panel { display: flex; flex-direction: column; height: 360px; }
@media (min-width: 1000px) { .chat-panel { height: calc(100vh - 170px); min-height: 420px; position: sticky; top: 86px; } }
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  overscroll-behavior: contain;
}
.msg { font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.msg b { font-weight: 800; }
.msg.system { color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.msg.correct { background: var(--mint); color: #14101a; font-weight: 800; padding: var(--s1) var(--s2); border-radius: 6px; }
.msg.close { background: var(--yellow); color: #14101a; font-weight: 800; padding: var(--s1) var(--s2); border-radius: 6px; }
.msg.insider { color: var(--mint); }
@media (prefers-color-scheme: light) { .msg.insider { color: #0b7a57; } }
.chat-form { display: flex; gap: var(--s2); padding: var(--s3); border-top: var(--bw) solid var(--line); }
.chat-form .input { min-height: 44px; font-size: 15px; }
.chat-form .btn { min-height: 44px; padding: var(--s2) var(--s4); }

/* stage */
.stage { padding: var(--s5); display: grid; gap: var(--s5); }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.stage-head h2 { font-size: clamp(26px, 3.4vw, 40px); }

.lobby-games { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .lobby-games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick {
  text-align: left;
  padding: var(--s4);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  gap: var(--s1);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.pick strong { font-size: 19px; font-weight: 900; }
.pick span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pick:not([disabled]):hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.pick[disabled] { cursor: default; }
.pick.on { background: var(--pink); color: #14101a; box-shadow: var(--shadow); }
.pick.on span { color: #14101a; }

.settings { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } .settings .full { grid-column: 1 / -1; } }
.check { display: flex; gap: var(--s2); align-items: center; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); }
.hint-text { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: var(--s1); }

.lobby-foot { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.lobby-foot p { font-weight: 700; color: var(--ink-soft); }

.timer {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 48px;
  padding: 0 var(--s3);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 900;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.timer.low { background: var(--red); color: #fff; }

/* drawing board */
.board { display: grid; gap: var(--s3); }
.canvas-wrap {
  position: relative;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 4 / 3;
}
.canvas-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.canvas-wrap.can-draw canvas { cursor: crosshair; }
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--s5);
  background: rgba(20, 16, 26, 0.82);
  color: #fff4e8;
  text-align: center;
}
.overlay-inner { display: grid; gap: var(--s4); justify-items: center; max-width: 520px; }
.overlay h3 { font-size: clamp(24px, 4vw, 40px); }
.overlay .choices { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.overlay .btn { --shadow-c: #000; }

.tools { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s1); }
.swatch {
  width: 28px; height: 28px;
  border: 2px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
.swatch.on { outline: 3px solid var(--line); outline-offset: 2px; }
.tool-group { display: flex; gap: var(--s1); }
.tool {
  min-height: 36px;
  padding: var(--s1) var(--s3);
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
}
.tool.on { background: var(--ink); color: var(--paper); }
.tool .dot { display: inline-block; background: currentColor; border-radius: 50%; }

.hint-word {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.hint-word small { display: block; font-size: 12px; letter-spacing: 0.08em; font-weight: 800; color: var(--ink-soft); }

.scores { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); width: 100%; max-width: 360px; }
.scores li { display: flex; justify-content: space-between; gap: var(--s4); font-weight: 800; }
.scores .plus { color: var(--mint); }

/* podium */
.podium { display: flex; justify-content: center; align-items: end; gap: var(--s3); padding-top: var(--s5); }
.podium .spot { display: grid; justify-items: center; gap: var(--s2); width: 120px; }
.podium .spot svg { width: 64px; height: 64px; }
.podium .block {
  width: 100%;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  color: #14101a;
}
.podium .p1 .block { height: 140px; background: var(--yellow); }
.podium .p2 .block { height: 100px; background: var(--pink); }
.podium .p3 .block { height: 70px; background: var(--blue); color: #fff; }
.podium .who { font-weight: 800; text-align: center; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.podium .who small { display: block; font-weight: 700; color: var(--ink-soft); }
.end-actions { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }

/* telephone */
.prompt-card {
  padding: var(--s5);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: #14101a;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
}
.prompt-img { border: var(--bw) solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.prompt-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.write-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.write-row .input { flex: 1 1 260px; font-size: 18px; min-height: 60px; }
.waiting { display: grid; gap: var(--s4); justify-items: center; text-align: center; padding: var(--s6) 0; }
.waiting h3 { font-size: 28px; }
.progress-dots { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; }
.progress-dots svg { width: 36px; height: 36px; }
.progress-dots .pending { opacity: 0.35; }

.album { display: grid; gap: var(--s5); }
.album-entry { display: grid; gap: var(--s2); max-width: 640px; }
.album-entry:nth-child(even) { justify-self: end; }
.album-entry .by { display: flex; gap: var(--s2); align-items: center; font-weight: 800; font-size: 14px; }
.album-entry .by svg { width: 28px; height: 28px; }
.bubble {
  padding: var(--s4) var(--s5);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 22px;
  font-weight: 800;
}
.album-entry .prompt-img { box-shadow: var(--shadow); }
.blank { font-style: normal; color: var(--ink-soft); }
.reveal-controls { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.reactions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.summary { display: grid; gap: var(--s3); }
.summary li { list-style: none; }
.summary-row { padding: var(--s4); display: grid; gap: var(--s1); }
.summary-row .from { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.summary-row .arrow-line { font-weight: 900; font-size: 18px; }

/* most likely to */
.question {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.question small { display: block; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s2); }
.vote-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.vote {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s3);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.vote svg { width: 64px; height: 64px; }
.vote:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.vote.on { background: var(--pink); color: #14101a; box-shadow: var(--shadow); }
.vote span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars { display: grid; gap: var(--s3); }
.bar-row { display: grid; grid-template-columns: 48px 1fr; gap: var(--s3); align-items: center; }
.bar-row svg { width: 48px; height: 48px; }
.bar-track { display: grid; gap: var(--s1); }
.bar-label { display: flex; justify-content: space-between; font-weight: 800; }
.bar {
  height: 24px;
  border: var(--bw) solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar i { display: block; height: 100%; background: var(--blue); transition: width 0.4s ease; }
.bar-row.win .bar i { background: var(--pink); }
.voters { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.winner-callout { font-size: clamp(22px, 3vw, 32px); font-weight: 900; }
.winner-callout mark { background: var(--yellow); color: #14101a; padding: 0 var(--s1); border-radius: 4px; }
.awards { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.award { padding: var(--s4); display: grid; gap: var(--s2); }
.award .who { display: flex; gap: var(--s3); align-items: center; font-weight: 900; font-size: 18px; }
.award .who svg { width: 44px; height: 44px; }
.award ul { margin: 0; padding-left: var(--s5); font-weight: 600; font-size: 14px; }

/* toasts and floating reactions */
.toasts {
  position: fixed;
  left: 50%;
  bottom: var(--s5);
  transform: translateX(-50%);
  display: grid;
  gap: var(--s2);
  z-index: 50;
  width: min(420px, calc(100vw - 32px));
}
.toast {
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--pink);
  animation: pop 0.18s ease-out;
}
@keyframes pop {
  from { transform: translateY(8px) scale(0.96); }
  to { transform: none; }
}
.floaty {
  position: fixed;
  bottom: 80px;
  z-index: 40;
  padding: var(--s2) var(--s3);
  background: var(--yellow);
  color: #14101a;
  border: var(--bw) solid #14101a;
  border-radius: 999px;
  font-weight: 900;
  pointer-events: none;
  animation: floatup 2.4s ease-out forwards;
}
@keyframes floatup {
  0% { transform: translateY(0) rotate(-4deg); }
  100% { transform: translateY(-60vh) rotate(6deg); opacity: 0; }
}

.shake { animation: shake 0.35s ease; }
@keyframes shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
