/* Sunday-comics autumn theme: flat colors, hand-inked outlines, a lavender-to-gold evening sky,
   white "tablecloth" cards and hand-lettered type. Background art: scripts/make-scene.py. */
@font-face {
  font-family: "Luckiest Guy";
  src: url("/fonts/luckiest-guy.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("/fonts/patrick-hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* ink and paper */
  --ink: #1b1b1b;
  --cloth: #fffdf6;
  --muted: #5d5650;
  /* evening sky */
  --dusk: #5f5596;
  --lavender: #9a74a6;
  --peach: #e5a07a;
  --gold: #f6c766;
  --moon: #fde23a;
  /* autumn colors (also the four answer-tile colors) */
  --pumpkin: #e57d26;
  --berry: #c8452d;
  --night: #1f5fa6;
  --grass: #6f9a2e;
  --sunny: #f6c624;
  /* lines and shapes */
  --line: 3.5px solid var(--ink);
  --hand: 18px 6px 16px 7px / 7px 16px 6px 18px; /* slightly uneven corners, like inked by hand */
  --hand-sm: 12px 5px 11px 6px / 6px 11px 5px 12px;
  --lift: 4px 5px 0 var(--ink);
  --title: "Luckiest Guy", "Comic Sans MS", "Chalkboard SE", cursive;
  --text: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Crect width='40' height='20' fill='%23f6c624'/%3E%3Cpath d='M0 6 10 15 20 6 30 15 40 6' fill='none' stroke='%231b1b1b' stroke-width='4'/%3E%3C/svg%3E");
  font-family: var(--text);
  font-size: 19px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--dusk);
}

/* The comic scene behind everything. A fixed layer, since phones ignore fixed backgrounds. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--dusk) url("/images/scene.svg") center bottom / cover no-repeat;
}

main { position: relative; z-index: 1; }

/* ---------- falling leaves ---------- */
.leaves { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.leaf {
  position: absolute;
  top: -60px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: center / contain no-repeat;
  animation:
    leaf-fall var(--fall) linear var(--delay) infinite,
    leaf-sway var(--sway) ease-in-out var(--delay) infinite alternate;
}
@keyframes leaf-fall { to { translate: var(--drift) calc(100vh + 120px); } }
@keyframes leaf-sway { from { rotate: -40deg; } to { rotate: 40deg; } }
.leaf-0 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23e8892b' stroke='%231b1b1b' stroke-width='5' stroke-linejoin='round' d='M50 4 58 26 74 16 70 38 92 34 80 52 94 60 70 66 74 80 54 72 52 96 48 96 46 72 26 80 30 66 6 60 20 52 8 34 30 38 26 16 42 26Z'/%3E%3C/svg%3E"); }
.leaf-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23c8452d' stroke='%231b1b1b' stroke-width='5' stroke-linejoin='round' d='M50 4 58 26 74 16 70 38 92 34 80 52 94 60 70 66 74 80 54 72 52 96 48 96 46 72 26 80 30 66 6 60 20 52 8 34 30 38 26 16 42 26Z'/%3E%3C/svg%3E"); }
.leaf-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23f2b130' stroke='%231b1b1b' stroke-width='5' d='M50 6C78 22 88 52 50 94 12 52 22 22 50 6Z'/%3E%3Cpath stroke='%231b1b1b' stroke-width='4' d='M50 14V96'/%3E%3C/svg%3E"); }
.leaf-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23d9692a' stroke='%231b1b1b' stroke-width='5' d='M50 6C78 22 88 52 50 94 12 52 22 22 50 6Z'/%3E%3Cpath stroke='%231b1b1b' stroke-width='4' d='M50 14V96'/%3E%3C/svg%3E"); }

/* ---------- comic panels: white tablecloth cards with inked edges ---------- */
.card, .q-header, .vote-head, .joined-card, .answers-in, .wait, .place, .me-bar {
  background: var(--cloth);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--hand);
  box-shadow: var(--lift);
}
.card { position: relative; padding: 42px 28px 28px; }
.q-header, .vote-head, .joined-card { position: relative; }
/* zigzag trim across the top of the main panels */
.card::before, .q-header::before, .vote-head::before, .joined-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 20px;
  background: var(--zigzag) repeat-x left center / 40px 20px;
  border-bottom: var(--line);
  border-radius: 15px 3px 0 0 / 4px 13px 0 0;
}

.narrow { width: min(430px, calc(100vw - 32px)); margin: 0 auto; }
.center { text-align: center; }
.center-page { display: grid; place-items: center; padding: 16px; }
.center-page .card, .player form.card { text-align: center; }
.stack { display: grid; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.error { color: var(--berry); margin: 0; font-size: 1.1rem; }

/* ---------- lettering ---------- */
.logo, .q-text, .game-code, .timer, .mini-timer, .winner-line, .points, .wait h2, .outcome h2,
.answers-in strong, .bar-count, .player-count, .quiz-badge, .subtitle, .chip, .tile, .bar-name,
.place, .me-bar, .vote-btn, .btn, .picker-q, .intro-label, .intro-text, .intro-count {
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.logo {
  margin: 0 0 6px;
  font-size: 2.7rem;
  color: var(--sunny);
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--ink);
  rotate: -2deg;
}
.small-logo { font-size: 2.1rem; }
.subtitle {
  display: table;
  margin: 6px 0 2px;
  padding: 7px 16px 3px;
  font-size: 1.35rem;
  background: var(--cloth);
  border: var(--line);
  border-radius: var(--hand-sm);
  rotate: 1.5deg;
}
.tagline { display: table; margin: 10px 0 0; font-size: 1.35rem; color: var(--cloth); text-shadow: 0 2px 0 var(--ink), 0 0 6px rgba(27, 27, 27, 0.6); }
.card .subtitle, .card .tagline { margin-inline: auto; }
.card .tagline { color: var(--muted); text-shadow: none; }
.lobby-side .subtitle { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.lobby-side .tagline { font-size: clamp(1.25rem, 1.9vw, 1.7rem); margin-bottom: 16px; }

/* ---------- buttons: flat color, inked, thicker bottom line like a pressed key ---------- */
.btn {
  display: inline-block;
  padding: 10px 24px 7px;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cloth);
  border: var(--line);
  border-bottom-width: 7px;
  border-radius: var(--hand-sm);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.08s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px) rotate(-1deg); }
.btn:active:not(:disabled) { transform: translateY(3px); border-bottom-width: 4px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: auto; }
.btn.big { width: 100%; padding: 14px 16px 10px; font-size: 1.35rem; background: var(--pumpkin); color: var(--cloth); }
.btn.secondary { background: var(--night); color: var(--cloth); }
.btn.big, .btn.secondary { -webkit-text-stroke: 1.2px var(--ink); paint-order: stroke fill; }
.btn.ghost { background: var(--cloth); }
.corner { position: fixed; bottom: 14px; left: 14px; z-index: 5; padding: 6px 14px 3px; font-size: 0.9rem; border-bottom-width: 5px; }
.corner-2 { left: 136px; }
.small-btn { margin-top: 14px; padding: 6px 16px 3px; font-size: 0.95rem; }

.input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--text);
  font-size: 1.35rem;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: var(--line);
  border-radius: var(--hand-sm);
}
.input:focus { outline: 3px dashed var(--night); outline-offset: 3px; }
.code-input { text-transform: uppercase; letter-spacing: 0.3em; font-family: var(--title); }

.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 18px 0 12px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 3px dotted var(--ink); opacity: 0.35; }
main.card > .btn.big { margin-top: 16px; }

.picker { margin-top: 16px; }
.picker-q { margin: 0 0 12px; font-size: 1.3rem; }
.picker-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn.big.pick { padding: 18px 8px 13px; font-size: 1.5rem; }
.btn.big.pick:nth-child(1) { background: var(--berry); rotate: -2deg; }
.btn.big.pick:nth-child(2) { background: var(--night); rotate: 2deg; }

.offline, .toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 6px 16px;
  font-size: 1.1rem;
  background: var(--cloth);
  border: var(--line);
  border-radius: 999px;
}
.offline { top: 12px; }
.toast { bottom: 20px; }

/* the four answer colors */
.rust { background: var(--berry); }
.pumpkin { background: var(--pumpkin); }
.mustard { background: var(--night); }
.olive { background: var(--grass); }

/* ---------- big screen ---------- */
.host main { min-height: 100vh; padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px) 120px; }

.mascot { position: fixed; right: clamp(8px, 2vw, 32px); bottom: 4px; width: clamp(130px, 13vw, 200px); z-index: 2; pointer-events: none; }

.lobby {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
}
.join-panel { text-align: center; rotate: -1.5deg; }
.join-panel p { margin: 6px 0; font-size: 1.15rem; }
.join-panel .muted { color: var(--muted); }
.qr { padding: 6px; background: #fff; border: var(--line); border-radius: var(--hand-sm); }
.qr svg { display: block; width: 100%; height: auto; }
.join-panel .game-code { font-size: 2.8rem; letter-spacing: 0.15em; color: var(--berry); }
.lobby-side .logo { font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1; }
.quiz-badge {
  display: table;
  margin: 8px 0 4px;
  padding: 7px 16px 3px;
  font-size: 1.3rem;
  color: var(--cloth);
  background: var(--night);
  border: var(--line);
  border-radius: var(--hand-sm);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  rotate: -1.5deg;
}

.joined-card { padding: 34px 20px 20px; margin: 14px 0 22px; max-width: 760px; }
.player-count { margin: 0 0 14px; font-size: 1.4rem; }
.joined-empty { margin: 0; font-size: 1.35rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 5px 12px;
  font-size: 1.3rem;
  background: var(--sunny);
  border: var(--line);
  border-radius: var(--hand-sm);
  animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.6, 1);
}
.chip:nth-child(3n + 2) { background: #f9d9a8; }
.chip:nth-child(3n) { background: #cfe3a8; }
.chip:nth-child(odd) { rotate: -2deg; }
.chip:nth-child(even) { rotate: 2deg; }
.chip::before { content: "🍂"; }
.chip.away { opacity: 0.45; }
.lobby-side .btn.big { max-width: 420px; background: var(--grass); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }

.question, .results, .final { display: grid; gap: clamp(16px, 2.2vw, 26px); max-width: 1400px; margin: 0 auto; }
.q-header { padding: 32px 28px 14px; text-align: center; }
.q-count { font-size: 1.1rem; color: var(--muted); }
.q-text { margin: 2px 0 0; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.1; }

.q-middle { display: grid; grid-template-columns: 1fr minmax(0, 3fr) 1fr; align-items: center; gap: 20px; }
.timer {
  justify-self: center;
  display: grid;
  place-items: center;
  width: clamp(84px, 9vw, 140px);
  aspect-ratio: 1;
  padding-top: 0.12em;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  background: var(--moon);
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--lift);
}
.timer.urgent { background: var(--berry); color: var(--cloth); animation: wobble 0.5s infinite alternate; }
@keyframes wobble { from { transform: rotate(-6deg) scale(1.04); } to { transform: rotate(6deg) scale(1.1); } }
.q-image {
  justify-self: center;
  width: 100%;
  max-height: 42vh;
  object-fit: cover;
  background: #fff;
  border: 8px solid var(--cloth);
  outline: var(--line);
  border-radius: 6px;
  box-shadow: 7px 8px 0 var(--ink);
  rotate: -1.5deg;
}
.q-image.empty { aspect-ratio: 16 / 9; }
.answers-in { justify-self: center; display: grid; padding: 10px 18px 8px; text-align: center; font-size: 1.15rem; rotate: 2deg; }
.answers-in strong { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--night); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 20px 12px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--cloth);
  border: var(--line);
  border-radius: var(--hand-sm);
  box-shadow: var(--lift);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}
.tile:nth-child(odd) { rotate: -1deg; }
.tile:nth-child(even) { rotate: 1deg; }
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shape { font-size: 1.2em; line-height: 1; -webkit-text-stroke: 0; }
.skip { justify-self: center; }

.winner-line {
  margin: 0;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--cloth);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.winner-line strong {
  display: inline-block;
  margin-left: 8px;
  padding: 8px 20px 4px;
  color: var(--ink);
  background: var(--moon);
  border: var(--line);
  border-radius: var(--hand-sm);
  box-shadow: var(--lift);
  -webkit-text-stroke: 0;
  text-shadow: none;
  rotate: -3deg;
}
.bars { display: flex; justify-content: center; align-items: flex-end; gap: 18px; min-height: 38vh; margin: 0; padding: 0; overflow-x: auto; list-style: none; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 8px; flex: 0 0 auto; width: 120px; height: 38vh; padding: 0 6px 6px 0; opacity: 0.5; }
.bar-col.win { opacity: 1; }
.bar-count { font-size: 1.9rem; color: var(--cloth); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.bar-track { display: flex; align-items: flex-end; width: 100%; }
.bar { width: 100%; min-height: 8px; border: var(--line); border-radius: 12px 5px 0 0 / 5px 12px 0 0; box-shadow: 3px 3px 0 var(--ink); transition: height 0.6s cubic-bezier(0.3, 1.4, 0.6, 1); }
.bar-name { max-width: 100%; padding: 4px 12px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--cloth); border: var(--line); border-radius: var(--hand-sm); }
.btn.big.next { justify-self: center; width: auto; padding-inline: 40px; background: var(--grass); }

.final { max-width: 760px; justify-items: center; text-align: center; }
.final .logo { font-size: clamp(3rem, 6vw, 4.6rem); }
.leaderboard { display: grid; gap: 14px; width: 100%; margin: 0; padding: 0; list-style: none; }
.place { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 12px 20px 8px; font-size: 1.4rem; }
.place:nth-child(odd) { rotate: -0.6deg; }
.place:nth-child(even) { rotate: 0.6deg; }
.place.p1 { background: var(--moon); font-size: 1.9rem; }
.place.p2 { background: #dfe6ee; }
.place.p3 { background: #f2b27a; }
.lb-name { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }

/* Read-the-question moment: the question fills the big screen in a comic speech balloon */
.intro {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(14px, 2.5vh, 28px);
  padding: 40px clamp(20px, 6vw, 90px);
  text-align: center;
  background: linear-gradient(180deg, var(--dusk) 0%, var(--lavender) 40%, var(--peach) 72%, var(--gold) 100%);
  animation: intro-in 0.45s cubic-bezier(0.3, 1.4, 0.6, 1);
}
.intro-label { margin: 0; padding: 8px 24px 4px; font-size: clamp(1.2rem, 2.4vw, 2rem); background: var(--sunny); border: var(--line); border-radius: var(--hand-sm); rotate: -2deg; }
.intro-text {
  position: relative;
  max-width: 20ch;
  margin: 0 0 22px;
  padding: clamp(24px, 4vh, 44px) clamp(28px, 4vw, 56px);
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.05;
  background: var(--cloth);
  border: 5px solid var(--ink);
  border-radius: 48% 52% 50% 50% / 46% 50% 50% 54%; /* speech balloon */
  animation: intro-text 0.7s 0.1s both cubic-bezier(0.3, 1.5, 0.5, 1);
}
.intro-text::after { /* balloon tail */
  content: "";
  position: absolute;
  bottom: -34px;
  left: 30%;
  width: 46px;
  height: 46px;
  background: var(--cloth);
  border-right: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  transform: skewX(-25deg) rotate(35deg);
}
.intro-count { display: grid; place-items: center; width: clamp(70px, 8vw, 110px); aspect-ratio: 1; padding-top: 0.1em; font-size: clamp(2rem, 4vw, 3.2rem); background: var(--moon); border: 4px solid var(--ink); border-radius: 50%; }
.intro-bar { width: min(640px, 80vw); height: 22px; overflow: hidden; background: var(--cloth); border: var(--line); border-radius: 999px; }
.intro-bar-fill { height: 100%; background: var(--pumpkin); transform-origin: left; animation: intro-bar linear forwards; }
.intro-hint { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ink); }
@keyframes intro-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes intro-text { from { opacity: 0; transform: scale(0.4) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes intro-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 760px) {
  .lobby { grid-template-columns: 1fr; }
  .q-middle { grid-template-columns: 1fr 1fr; }
  .q-middle .q-image { grid-column: 1 / -1; grid-row: 1; }
  .mascot { display: none; }
  .host main { padding-bottom: 72px; }
}

/* ---------- phone ---------- */
.player main { display: flex; flex-direction: column; min-height: 100vh; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.player main > .card { margin: auto; }
.me-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 4px 16px; font-size: 1.2rem; }
.me-right { display: flex; align-items: center; gap: 8px; }
.sound-btn { padding: 4px 6px; font-size: 1.05rem; line-height: 1; cursor: pointer; background: var(--cloth); border: var(--line); border-radius: var(--hand-sm); }
.me-score { padding: 2px 12px 0; background: var(--moon); border: var(--line); border-radius: var(--hand-sm); }

.wait, .outcome { width: 100%; margin: auto; padding: 24px; text-align: center; font-size: 1.25rem; }
.wait h2, .outcome h2 { margin: 0 0 8px; font-size: 2.4rem; }
.wait h2 { color: var(--cloth); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.outcome { color: var(--cloth); border: var(--line); border-radius: var(--hand); box-shadow: var(--lift); rotate: -1deg; }
.outcome h2, .outcome .points { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.outcome.win { background: var(--grass); }
.outcome.lose { background: var(--berry); }
.outcome.final-me { background: var(--cloth); color: var(--ink); }
.outcome.final-me .points { color: var(--sunny); text-shadow: 3px 3px 0 var(--ink); }
.points { margin: 8px 0; font-size: 3.4rem; }
.look-up-eyes { font-size: 3.4rem; line-height: 1; animation: look-up 0.9s ease-in-out infinite alternate; }
@keyframes look-up { from { transform: translateY(4px); } to { transform: translateY(-8px); } }

/* joining on a phone: the name card and the "You're in!" card are golden */
.player form.card, .player .wait { background: linear-gradient(170deg, var(--moon) 0%, var(--gold) 100%); }
.player form.card .muted, .player .wait .muted { color: var(--ink); }

.vote { display: grid; gap: 14px; padding-top: 16px; }
.vote-head { display: flex; align-items: center; gap: 12px; padding: 30px 12px 10px 16px; }
.vote-q { flex: 1; margin: 0; font-size: 1.45rem; line-height: 1.15; }
.mini-timer { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; padding-top: 0.12em; font-size: 1.5rem; background: var(--moon); border: var(--line); border-radius: 50%; }
.vote-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.vote-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px 12px;
  font-size: 1.45rem;
  text-align: left;
  color: var(--cloth);
  border: var(--line);
  border-bottom-width: 7px;
  border-radius: var(--hand-sm);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  cursor: pointer;
  transition: transform 0.08s;
}
.vote-btn:active { transform: translateY(3px); border-bottom-width: 4px; }
.vote-btn span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-btn.picked { outline: 4px dashed var(--ink); outline-offset: 4px; rotate: -1deg; }
.vote-btn.dim { opacity: 0.45; }
.check { font-size: 1.5rem; }
.vote > .muted { margin: 0; padding: 6px 12px; font-size: 1.15rem; text-align: center; color: var(--ink); background: var(--cloth); border: var(--line); border-radius: var(--hand-sm); }

@media (prefers-reduced-motion: reduce) {
  .leaves { display: none; }
  .chip, .timer.urgent, .intro, .intro-text, .look-up-eyes { animation: none; }
}
