/* Whose Zap Is It Anyway? — a comedy stage on a ship.
   Navy sea, brass portholes and trim, rope, a lit marquee, red stage curtains,
   a wooden deck, and jokes on comedians' index cards. */
:root {
  --sea: #0a1628;
  --sea2: #10213d;
  --panel: #13274a;
  --panel2: #0e1e3a;
  --brass: #d6a84c;
  --brass-hi: #f5d27a;
  --brass-lo: #8a6423;
  --rope: #c9a56a;
  --rope-dk: #8a6a3b;
  --wood: #6b4226;
  --wood-dk: #3d2413;
  --curtain: #8e1b2c;
  --curtain-dk: #4f0c17;
  --cream: #fff6e2;
  --ink: #1d1a17;
  --text: #f6efe0;
  --muted: #a9b6cf;
  --zap: #f7931a;
  --ok: #3ddc84;
  --warn: #ffb020;
  --bad: #ff5a6e;
  --radius: 14px;
  --sign: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(245, 210, 122, .10), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 110%, #16335e, transparent 60%),
    var(--sea);
  min-height: 100vh;
}
html.transparent, html.transparent body { background: transparent !important; }
[hidden] { display: none !important; }
a { color: var(--brass-hi); }
code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-family: var(--sign); font-weight: 400; letter-spacing: .01em; }
h1 { color: var(--brass-hi); }
h2 small, h3 small { font-family: system-ui, sans-serif; font-weight: 400; }

/* brass buttons, rope, portholes */
.btn { appearance: none; border: 1px solid #2c4675; background: var(--panel2); color: var(--text); padding: .6em 1em; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4em; white-space: nowrap; }
.btn:hover { border-color: var(--brass); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); border-color: var(--brass-lo); color: #2a1a02; text-shadow: 0 1px 0 rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 #5a3f10; }
.btn.danger { background: #3d0f19; border-color: var(--bad); color: #ffd0d7; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: .85em 1em; font-size: 1.05em; margin: 4px 0; }
.btn.small { padding: .3em .7em; font-size: .85em; }
.btn.zap { background: linear-gradient(180deg, #ffbf5e, var(--zap)); border-color: #b86200; color: #231000; padding: .4em .8em; }
button.link { background: none; border: 0; color: var(--brass-hi); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; padding: 0; }
input, textarea, select { font: inherit; color: var(--text); background: #08132a; border: 1px solid #2c4675; border-radius: 10px; padding: .55em .7em; min-width: 0; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
textarea { resize: vertical; }
.row { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; }
.check { display: flex; align-items: center; gap: .5em; }
.check input { width: auto; }
details summary { cursor: pointer; color: var(--muted); margin: .5em 0; }
.rope { height: 9px; border-radius: 9px; background: repeating-linear-gradient(-45deg, var(--rope) 0 6px, var(--rope-dk) 6px 9px, var(--rope) 9px 12px); box-shadow: inset 0 -1px 2px rgba(0,0,0,.4); }

/* panels: navy with a brass edge and rivets in the corners */
.card {
  position: relative;
  background:
    radial-gradient(circle at 10px 10px, var(--brass) 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--brass) 2px, transparent 3px),
    radial-gradient(circle at 10px calc(100% - 10px), var(--brass) 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--brass) 2px, transparent 3px),
    linear-gradient(170deg, var(--panel), var(--panel2));
  border: 2px solid var(--brass-lo);
  box-shadow: inset 0 0 0 1px rgba(245, 210, 122, .18), 0 10px 30px rgba(0,0,0,.35);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0;
}
.brand { font-family: var(--sign); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--brass-hi); }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: #1f3a66; font-weight: 700; font-size: 13px; vertical-align: middle; box-shadow: 0 0 0 2px var(--brass), 0 0 0 3px var(--brass-lo); }
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; box-shadow: 0 0 0 4px var(--brass), 0 0 0 6px var(--brass-lo); }
.badge { display: inline-block; font-size: .72em; padding: .1em .55em; border-radius: 99px; border: 1px solid currentColor; font-weight: 700; vertical-align: middle; font-family: system-ui, sans-serif; }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); }
.meme { display: block; max-width: 100%; max-height: 420px; border-radius: 8px; margin: 6px auto; object-fit: contain; background: #000; box-shadow: 0 0 0 3px var(--brass), 0 0 0 5px var(--brass-lo); }
.joke { white-space: pre-wrap; margin: .3em 0; font-size: 1.05em; }
.qr { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 0 0 4px var(--brass), 0 0 0 6px var(--brass-lo); }

#toasts { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(92vw, 420px); }
.toast { background: var(--panel); border: 2px solid var(--brass-lo); padding: .7em 1em; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.45); transition: opacity .4s, transform .4s; }
.toast.error { border-color: var(--bad); } .toast.ok { border-color: var(--ok); }
.toast.out { opacity: 0; transform: translateY(10px); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal-card { background: var(--panel); border: 2px solid var(--brass); border-radius: var(--radius); padding: 20px; width: min(100%, 420px); display: grid; gap: 8px; }
body.offline::before { content: "Reconnecting…"; position: fixed; top: 0; left: 0; right: 0; background: var(--warn); color: #000; text-align: center; font-weight: 700; z-index: 60; padding: 2px; }

/* ───────── play page (desktop first, works on phones) ───────── */
.play-page main { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; }
.play-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: linear-gradient(180deg, var(--wood), var(--wood-dk)); border-bottom: 4px solid var(--brass-lo); position: sticky; top: 0; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.play-head .brand { flex: 1; min-width: 0; font-size: 1.2em; text-shadow: 0 2px 0 #000; }
#who { display: flex; align-items: center; gap: 8px; font-size: .9em; max-width: 40%; overflow: hidden; white-space: nowrap; }
#who span { overflow: hidden; text-overflow: ellipsis; }

.login-hero { text-align: center; max-width: 720px; margin: 28px auto 8px; }
.hero-porthole { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 48px; background: radial-gradient(circle at 35% 30%, #2a5aa0, #0b1d3d 70%); box-shadow: 0 0 0 8px var(--brass), 0 0 0 11px var(--brass-lo), 0 10px 30px rgba(0,0,0,.5), inset 0 0 20px rgba(0,0,0,.6); }
.login-hero h1 { font-size: 2.4em; }
.login-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.login-options .opt { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.login-options .opt h3 { margin: 0; color: var(--brass-hi); }
.connect-box { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 6px 0; }
.opt .qr { align-self: center; }
@media (max-width: 860px) { .login-options { grid-template-columns: minmax(0, 1fr); } }

.status-bar { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; }
.status-bar #game { font-family: var(--sign); color: var(--brass-hi); font-size: 1.15em; }
.status-bar #phase { flex: 1; color: var(--muted); text-align: right; font-weight: 600; }
#clock { font-variant-numeric: tabular-nums; font-weight: 900; font-size: 1.6em; min-width: 2.6em; text-align: right; }
#clock.urgent { color: var(--bad); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .5; } }
.prompt-card { text-align: center; background: radial-gradient(ellipse at top, rgba(245,210,122,.18), transparent 70%), linear-gradient(170deg, var(--panel), var(--panel2)); }
.prompt-card .blurb { color: var(--muted); }
.prompt-card .prompt { font-family: var(--sign); font-size: 1.9em; color: var(--brass-hi); margin-top: 6px; line-height: 1.2; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.main-grid .card:first-child { margin-top: 12px; }
@media (max-width: 860px) { .main-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .col-b { order: -1; } }
.img-pick { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
#entry-box textarea { margin: 6px 0; background: var(--cream); color: var(--ink); border: 0; box-shadow: inset 0 3px 0 #e2574c; font-size: 1.05em; }
.my-sats { font-weight: 800; color: var(--zap); }
.feed-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 6px; }
.feed-head h3 { margin: 0; }
.amounts { display: flex; gap: 5px; flex-wrap: wrap; }
.chip-btn { appearance: none; border: 1px solid #2c4675; background: #08132a; color: var(--text); border-radius: 99px; padding: .3em .7em; font: inherit; font-size: .85em; font-weight: 700; cursor: pointer; }
.chip-btn.on { background: var(--zap); border-color: var(--zap); color: #1f1000; }
/* entries in the feed: jokes on index cards */
.entry { color: var(--ink); background: repeating-linear-gradient(180deg, var(--cream) 0 27px, #c9dbf5 27px 28px) 0 34px / 100% calc(100% - 34px) no-repeat, var(--cream); border-radius: 6px; padding: 12px 14px 10px; margin: 10px 0; box-shadow: inset 0 3px 0 #e2574c, 0 4px 14px rgba(0,0,0,.35); transform: rotate(-.3deg); }
.entry:nth-child(even) { transform: rotate(.35deg); }
.entry .joke { font-size: 1.08em; font-weight: 600; line-height: 28px; }
.entry.lead { box-shadow: inset 0 3px 0 #e2574c, 0 0 0 3px var(--brass), 0 6px 20px rgba(245,210,122,.35); }
.entry footer { display: flex; align-items: center; gap: 8px; font-size: .9em; margin-top: 6px; }
.entry .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b4436; font-weight: 600; }
.entry .sats { color: #b35900; font-weight: 900; white-space: nowrap; }
.entry .muted { color: #6b6250; }
.results-card { text-align: center; border-color: var(--brass); }
.results-card .belt { width: 130px; }
.results-card .joke { font-size: 1.3em; font-weight: 700; }
.warn-card { border-color: var(--warn); }

/* ───────── host page ───────── */
.host-page [data-auth-show] { display: none; }
.host-page[data-auth="no"] [data-auth-show="no"], .host-page[data-auth="yes"] [data-auth-show="yes"] { display: block; }
.host-main, .login-card { max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; }
.login-card { margin-top: 24px; }
.host-page .play-head .brand { flex: 1; }
.sticky { position: sticky; top: 64px; z-index: 5; }
.host-status { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 10px; }
.host-status small { display: block; color: var(--muted); }
.host-status b { font-size: 1.25em; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .9em; }
.host-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
@media (max-width: 960px) { .host-cols { grid-template-columns: 1fr; } }
.round-card { border: 1px solid #2c4675; border-radius: 12px; padding: 12px; margin-bottom: 10px; display: grid; gap: 8px; background: rgba(0,0,0,.2); }
.round-card.current { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.round-card.next:not(.current) { border-color: #4a73b8; }
.round-card.done { opacity: .55; }
.round-top { display: flex; gap: 8px; align-items: center; }
.r-title { font-family: var(--sign); font-size: 1.05em; color: var(--brass-hi); }
.prompt-label { display: grid; gap: 4px; font-size: .85em; color: var(--muted); }
.r-prompt { font-size: 1.05rem; color: var(--ink); background: var(--cream); border-color: var(--brass); }
.round-opts { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85em; color: var(--muted); align-items: center; }
.round-opts label { display: flex; align-items: center; gap: 4px; }
.round-opts input[type=checkbox] { width: auto; }
.round-opts input[type=number] { width: 4.5em; padding: .25em .4em; }
.h-entry { display: flex; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); padding: 10px 0; }
.h-entry .meme { width: 140px; max-height: 140px; margin: 0; flex: none; }
.h-entry .h-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.h-entry.pending { background: rgba(255,176,32,.08); border-radius: 8px; padding: 10px; }
.h-entry.hidden { opacity: .5; }
.status-pending { color: var(--warn); font-weight: 700; } .status-hidden { color: var(--bad); }
.zappers { margin: 4px 0; padding-left: 18px; font-size: .85em; }
.zappers li.voided { text-decoration: line-through; opacity: .6; }
.sugs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; }
.settings label { display: grid; gap: 4px; font-size: .9em; color: var(--muted); }
.settings label.check { display: flex; }
.settings .wide { grid-column: 1 / -1; }
.demo-only { display: none; }
body.demo .demo-only { display: block; }

/* ───────── board (OBS 1920x1080): a comedy stage on a ship ───────── */
.board-page { height: 100vh; overflow: hidden; display: flex; flex-direction: column; font-size: clamp(11px, min(1.2vw, 2.1vh), 24px); position: relative;
  background:
    radial-gradient(ellipse 38% 55% at 50% -5%, rgba(255, 236, 180, .22), transparent 70%),
    radial-gradient(ellipse 90% 50% at 50% 115%, #1b3f73, transparent 65%),
    var(--sea); }
.curtain { position: absolute; top: 0; bottom: 0; width: 2.6vw; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--curtain-dk) 0, var(--curtain) .5vw, #b3283d .75vw, var(--curtain) 1vw, var(--curtain-dk) 1.3vw);
  box-shadow: 0 0 30px rgba(0,0,0,.6); }
.curtain.left { left: 0; border-bottom-right-radius: 60% 12%; }
.curtain.right { right: 0; border-bottom-left-radius: 60% 12%; }
.board-page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2.2em; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0, #b3283d, var(--curtain) 60%, var(--curtain-dk));
  -webkit-mask: radial-gradient(circle at 50% 0, #000 70%, transparent 71%) 0 0 / 4em 2.2em repeat-x;
          mask: radial-gradient(circle at 50% 0, #000 70%, transparent 71%) 0 0 / 4em 2.2em repeat-x; }
.board-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em; padding: 2.2em 5vw .2em 4vw; position: relative; z-index: 2; }
.marquee { justify-self: start; position: relative; padding: .45em 1.1em .5em; border-radius: 12px;
  background: linear-gradient(180deg, #2a1608, #150a03);
  box-shadow: 0 0 0 3px var(--brass), 0 0 0 5px var(--brass-lo), 0 8px 26px rgba(0,0,0,.6); }
.marquee::before { content: ""; position: absolute; inset: 5px; border-radius: 8px; pointer-events: none;
  background:
    radial-gradient(circle, #fff5c2 0 2.2px, #ffcf4a 2.8px, transparent 4px) 0 0 / 14px 14px repeat-x,
    radial-gradient(circle, #fff5c2 0 2.2px, #ffcf4a 2.8px, transparent 4px) 0 100% / 14px 14px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255, 207, 74, .9)); animation: bulbs 1.2s steps(2) infinite; }
@keyframes bulbs { 50% { background-position: 7px 0, 7px 100%; } }
.board-head .brand { font-size: 1.55em; line-height: 1.1; padding-top: .35em; text-shadow: 0 0 18px rgba(245,210,122,.45), 0 2px 0 #000; }
.tagline { color: var(--rope); font-size: .75em; letter-spacing: .06em; padding-bottom: .4em; }
.board-head .status { text-align: center; }
#game { font-family: var(--sign); font-size: 1.1em; color: var(--brass-hi); }
.board-page #clock { font-size: 2.7em; line-height: 1.05; text-align: center; min-height: 1em; font-family: var(--sign); font-weight: 400; }
.board-page #phase { color: var(--muted); font-weight: 700; }
.total-box { justify-self: end; text-align: center; width: 7.4em; height: 7.4em; border-radius: 50%; display: grid; place-content: center;
  background: radial-gradient(circle at 35% 30%, #234c8a, #0b1d3d 70%);
  box-shadow: 0 0 0 .35em var(--brass), 0 0 0 .5em var(--brass-lo), inset 0 0 1.2em rgba(0,0,0,.7), 0 8px 24px rgba(0,0,0,.5); }
.total-box > small { color: var(--rope); text-transform: uppercase; letter-spacing: .08em; font-size: .6em; }
.total-box div { font-size: 1.35em; font-weight: 900; color: #ffc25e; font-variant-numeric: tabular-nums; line-height: 1.1; }
.total-box div small { display: block; font-size: .5em; color: var(--muted); font-weight: 600; }
#prompt { text-align: center; padding: 0 5vw .5em; position: relative; z-index: 2; }
#prompt small { display: block; color: var(--rope); font-size: .85em; }
#prompt div { font-family: var(--sign); font-size: 2.1em; color: var(--cream); line-height: 1.15; text-shadow: 0 0 24px rgba(255,236,180,.35), 0 2px 0 #000; }
#stage { flex: 1; min-height: 0; padding: .3em 4vw; position: relative; z-index: 2; }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .9em; height: 100%; }
.wall.n1 { grid-template-columns: minmax(0, 32em); justify-content: center; }
.wall.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wall.n1, .wall.n2, .wall.n3, .wall.n4 { grid-template-rows: minmax(0, 1fr); }
.wall.n5, .wall.n6, .wall.n7, .wall.n8 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.wall.n9, .wall.n10, .wall.n11, .wall.n12 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
/* board entries: jokes on index cards, memes in brass frames */
.board-page .card { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: .35em; padding: .8em 1em .6em; min-height: 0; overflow: hidden;
  color: var(--ink); border: 0; border-radius: 6px;
  background: repeating-linear-gradient(180deg, var(--cream) 0 1.55em, #c9dbf5 1.55em calc(1.55em + 1px)) 0 1.9em / 100% calc(100% - 1.9em) no-repeat, var(--cream);
  box-shadow: inset 0 .2em 0 #e2574c, 0 .5em 1.4em rgba(0,0,0,.5); }
.board-page .card:nth-child(odd) { transform: rotate(-.6deg); }
.board-page .card:nth-child(even) { transform: rotate(.5deg); }
.board-page .card.fresh { animation: drop .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes drop { from { transform: translateY(-40px) rotate(-6deg) scale(.9); opacity: 0; } }
.board-page .card.lead { box-shadow: inset 0 .2em 0 #e2574c, 0 0 0 .22em var(--brass), 0 0 0 .34em var(--brass-lo), 0 0 2.4em rgba(255, 210, 122, .45); }
.board-page .card .meme { flex: 1 1 auto; min-height: 0; max-height: 100%; width: 100%; margin: 0 0 .2em; background: transparent; box-shadow: none; border-radius: 4px; }
.board-page .card:has(.meme) { background: linear-gradient(170deg, #1b3563, #0d1d3b); color: var(--text); box-shadow: 0 0 0 .22em var(--brass), 0 0 0 .34em var(--brass-lo), 0 .5em 1.4em rgba(0,0,0,.5); }
.board-page .card:has(.meme).lead { box-shadow: 0 0 0 .3em var(--brass-hi), 0 0 0 .45em var(--brass-lo), 0 0 2.4em rgba(255, 210, 122, .55); }
.board-page .card .joke { margin: 0; font-weight: 700; overflow: hidden; line-height: 1.55em; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; }
.joke.t-xl { font-size: 1.45em; } .joke.t-lg { font-size: 1.2em; } .joke.t-md { font-size: 1.02em; } .joke.t-sm { font-size: .88em; }
.board-page .card footer { display: flex; align-items: center; gap: .5em; margin-top: auto; font-size: .9em; }
.board-page .card .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b4436; font-weight: 700; }
.board-page .card:has(.meme) .who { color: var(--muted); }
.board-page .card .sats { color: #b35900; font-weight: 900; font-size: 1.15em; }
.board-page .card:has(.meme) .sats { color: #ffc25e; }
.crown { position: absolute; top: -.15em; right: .25em; font-size: 1.6em; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.more { position: absolute; bottom: -.3em; right: 4.5vw; color: var(--muted); font-size: .85em; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.waiting { height: 100%; display: grid; place-content: center; text-align: center; font-size: 1.5em; }
.big-emoji { font-size: 3em; }
.results { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.8em; height: 100%; }
.winner { display: grid; grid-template-rows: auto 1fr; min-height: 0; gap: .3em; }
.winner-label { font-family: var(--sign); font-size: 2em; color: var(--brass-hi); text-align: center; text-shadow: 0 0 20px rgba(245,210,122,.5); }
.board-page .card.big { font-size: 1.35em; animation: pop .6s cubic-bezier(.2,1.4,.4,1); transform: none; }
.runners { display: grid; gap: .7em; align-content: start; min-height: 0; overflow: hidden; }
.runners h3 { color: var(--brass-hi); margin: 0; }
.runners .card { max-height: none; flex-direction: row; align-items: center; gap: .8em; padding: .6em .9em; }
.runners .card .joke { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .95em; line-height: 1.4em; flex: 1; }
.runners .card .meme { width: 4.5em; height: 4.5em; flex: none; margin: 0; }
.runners .card footer { margin: 0; flex-direction: column; align-items: flex-end; gap: .1em; width: 9em; flex: none; }
.runners .card footer .avatar { display: none; }
.round-total { color: var(--muted); }
.lobby { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2em; height: 100%; align-items: center; }
.lobby h1 { font-size: 3em; text-shadow: 0 0 24px rgba(245,210,122,.4), 0 3px 0 #000; }
.lobby .how { font-size: 1.3em; }
.lobby h3 { color: var(--brass-hi); }
.lineup { font-size: 1.15em; display: grid; gap: .45em; padding-left: 1.2em; }
.lineup b { font-family: var(--sign); font-weight: 400; color: var(--cream); }
.lineup span { color: var(--muted); }
.belt-line { display: flex; align-items: center; gap: .6em; font-size: 1.2em; margin-top: 1em; }
.belt-line img { width: 3em; }
.lobby-right { text-align: center; }
.qr-big { width: 12em; height: 12em; background: #fff; border-radius: 12px; padding: .6em; box-shadow: 0 0 0 .45em var(--brass), 0 0 0 .65em var(--brass-lo), 0 10px 30px rgba(0,0,0,.5); }
.lobby-right .url { font-size: 1.4em; font-weight: 800; color: #ffc25e; margin: .6em 0 .8em; }
.lobby-right .sugs { text-align: left; font-size: 1.05em; }
.lobby-right .sugs li { background: var(--cream); color: var(--ink); border-radius: 4px; padding: .3em .6em; box-shadow: inset 0 .15em 0 #e2574c; }
.lobby-right .sugs small { color: #6b6250; }
.final { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2em; height: 100%; align-items: center; }
.champ { text-align: center; animation: pop .7s cubic-bezier(.2,1.4,.4,1); }
.champ .belt { width: 14em; filter: drop-shadow(0 0 30px rgba(255,210,122,.45)); }
.champ-label { color: var(--rope); text-transform: uppercase; letter-spacing: .15em; }
.champ-name { font-family: var(--sign); font-size: 2.6em; color: var(--brass-hi); display: flex; align-items: center; justify-content: center; gap: .35em; }
.champ-sats { font-size: 1.4em; color: #ffc25e; font-weight: 800; }
.prize { font-size: 1.2em; color: var(--ok); }
.standings { font-size: 1.2em; display: grid; gap: .55em; list-style: none; padding: 0; }
.standings span { color: #ffc25e; }
/* the deck */
.board-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5em; align-items: center; padding: .7em 4vw .8em; position: relative; z-index: 2;
  background: repeating-linear-gradient(180deg, #7a4b2a 0 1.3em, #5b371d 1.3em 1.38em), var(--wood);
  border-top: .35em solid var(--brass-lo); box-shadow: 0 -8px 24px rgba(0,0,0,.45); }
.board-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -.35em; height: .35em; background: repeating-linear-gradient(-45deg, var(--rope) 0 6px, var(--rope-dk) 6px 9px, var(--rope) 9px 12px); }
.join { display: flex; align-items: center; gap: .7em; background: rgba(0,0,0,.45); border: 2px solid var(--brass-lo); border-radius: 12px; padding: .4em .8em .4em .4em; }
#qr { width: 4.8em; height: 4.8em; background: #fff; border-radius: 8px; padding: 3px; }
.join-title { font-family: var(--sign); color: var(--brass-hi); }
#url { color: #ffc25e; font-weight: 700; }
#standings { display: flex; gap: 1.2em; flex-wrap: wrap; align-items: center; text-shadow: 0 1px 2px #000; }
#standings b { font-family: var(--sign); font-weight: 400; color: var(--brass-hi); }
#standings em { color: #ffc25e; font-style: normal; font-weight: 800; }
#top-zapper { color: var(--cream); text-align: right; text-shadow: 0 1px 2px #000; }
body.board-page[data-phase="lobby"] .board-foot .join { visibility: hidden; }
.board-page .card.lead .joke { padding-right: 1.6em; }

/* AI brief */
.brief-card { border-color: var(--brass); }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brief-head h3 { margin: 0; }
#brief-text { font-family: ui-monospace, Menlo, monospace; font-size: .8em; line-height: 1.45; background: #08132a; color: var(--text); margin-top: 6px; }
.prompt-card .scene { margin: 8px auto 0; max-width: 60ch; color: var(--cream); font-size: 1.05em; }
#prompt .scene { margin: .3em auto 0; max-width: 62em; font-size: 1.05em; color: var(--cream); line-height: 1.35; text-shadow: 0 1px 2px #000; }
.brief-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.round-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.round-card textarea { font-size: .9em; }
.round-opts select { width: auto; padding: .25em .4em; }
.ai-preview { white-space: pre-wrap; font-size: .78em; background: #08132a; padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; }

/* ───── relay-first version: shared pieces ───── */
.hat-card { background: var(--cream); color: var(--ink); border-radius: 8px; padding: .7em 1em; font-family: var(--sign); font-size: 1.4em; line-height: 1.3; box-shadow: inset 0 .2em 0 #e2574c, 0 .6em 1.6em rgba(0,0,0,.45); text-align: center; }
.hat-card.small { font-size: 1.05em; margin: 8px 0 12px; }
.hat-card .blank { display: inline-block; min-width: 4.5em; border-bottom: .12em solid var(--ink); color: #9a7b4f; font-family: system-ui, sans-serif; font-size: .7em; font-style: italic; padding: 0 .3em; }
.hat-card .fill { color: #b3261e; text-decoration: underline; text-decoration-thickness: .08em; }
.now-card { border-color: var(--brass); }
.now-card .prompt { font-family: var(--sign); font-size: 1.5em; color: var(--brass-hi); text-align: center; margin: .2em 0 .6em; }
.now-card .prop-img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 0 0 3px var(--brass), 0 0 0 5px var(--brass-lo); }
.now-card textarea { margin: 8px 0; background: var(--cream); color: var(--ink); border: 0; box-shadow: inset 0 3px 0 #e2574c; font-size: 1.05em; }
.now-card .belt { width: 120px; display: block; margin: 0 auto; }
.now-card h2 { text-align: center; }
.brief { background: #08132a; border: 1px dashed var(--brass-lo); border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brief pre { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .85em; margin: 8px 0 4px; color: var(--text); }
.blank-row { display: grid; gap: 4px; margin: 8px 0; }
.blank-row > span { font-weight: 700; color: var(--brass-hi); }
.blank-row .row input { flex: 1 1 8em; }
.spin-btn { font-size: 1.4em; padding: 1em; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.03); box-shadow: 0 0 30px rgba(255,210,122,.6); } }
.mine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 10px; padding-top: 6px; }
.big-joke { font-size: 1.3em; font-weight: 700; text-align: center; background: var(--cream); color: var(--ink); border-radius: 6px; padding: 12px; }
.now-card p { margin: .4em 0; }

/* host */
.card-preview { font-family: var(--sign); color: var(--cream); font-size: 1.05em; }
.tpl { font-size: .95em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.chip-label { font-weight: 700; color: var(--brass-hi); margin-right: 4px; }
.chip { appearance: none; border: 1px solid #2c4675; background: var(--cream); color: var(--ink); border-radius: 99px; padding: .3em .8em; font: inherit; font-weight: 700; cursor: pointer; }
.chip small { color: #8a6a3b; }
.chip.on { background: var(--brass); border-color: var(--brass-lo); box-shadow: 0 0 0 2px var(--brass-hi); }
.chips .own-fill { width: 10em; padding: .3em .6em; }
.prop-pick { display: flex; gap: 10px; align-items: center; }
.prop-pick img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; background: #fff; }

/* board: suggestions */
.suggest { display: grid; grid-template-rows: auto 1fr; gap: 1em; height: 100%; }
.suggest-cta { text-align: center; font-family: var(--sign); font-size: 1.6em; color: var(--brass-hi); margin: 0; }
.board-page .hat-card { font-size: 2.4em; max-width: 26em; margin: 0 auto; }
.clouds { display: grid; gap: 1.2em; min-height: 0; }
.clouds.n2 { grid-template-columns: 1fr 1fr; }
.clouds.n3 { grid-template-columns: 1fr 1fr 1fr; }
.cloud { background: rgba(0,0,0,.25); border: 2px solid var(--brass-lo); border-radius: 14px; padding: .6em .9em; overflow: hidden; }
.cloud h3 { color: var(--brass-hi); margin: 0 0 .3em; }
.cloud .words { display: flex; flex-wrap: wrap; gap: .3em .7em; align-items: baseline; }
.cloud .word { font-weight: 800; color: var(--cream); animation: pop .4s ease-out; }
.cloud .word small { color: #ffc25e; font-size: .6em; }

/* board: prop wheel */
.wheel { height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: .6em; }
.reel-window { width: 23em; height: 23em; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 .4em var(--brass), 0 0 0 .6em var(--brass-lo), 0 20px 50px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.35); position: relative; }
.reel { display: flex; flex-direction: column; }
.reel img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.reel.drift { animation: drift 1.2s linear infinite; }
@keyframes drift { to { transform: translateY(-50%); } }
.wheel.done .reel-window { box-shadow: 0 0 0 .4em var(--brass-hi), 0 0 0 .6em var(--brass-lo), 0 0 60px rgba(255,210,122,.6); }
.wheel-cta { font-size: 1.4em; margin: 0; text-align: center; }
.wheel-cta.landed { font-family: var(--sign); color: var(--brass-hi); font-size: 1.8em; }

/* board: prop game layout */
.prop-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.4em; height: 100%; min-height: 0; }
.prop-frame { background: #fff; border-radius: 12px; box-shadow: 0 0 0 .3em var(--brass), 0 0 0 .45em var(--brass-lo), 0 12px 30px rgba(0,0,0,.5); display: grid; place-items: center; min-height: 0; overflow: hidden; }
.prop-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prop-side { min-height: 0; position: relative; }
.wall.side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall.side.n1 { grid-template-columns: minmax(0, 1fr); }
.wall.side.n1, .wall.side.n2 { grid-template-rows: minmax(0, 1fr); }
.wall.side.n3, .wall.side.n4 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.wall.side.n5, .wall.side.n6 { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.result-prop { max-height: 9em; margin: 0 auto .4em; display: block; background: #fff; border-radius: 8px; box-shadow: 0 0 0 3px var(--brass); }

#top-zapper { display: flex; align-items: center; gap: .5em; justify-content: flex-end; }
#top-zapper img { width: 2.2em; height: 2.2em; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.25), rgba(255,255,255,.05) 70%); }
.patron { display: flex; align-items: center; justify-content: center; gap: .6em; margin-top: .6em; font-size: 1.05em; }
.patron img { width: 3em; height: 3em; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.25), rgba(255,255,255,.05) 70%); }

/* ───── round 2 of fixes: big funny text, how-to, wheel on phones ───── */
.howto-card summary { cursor: pointer; list-style: none; }
.howto-card summary::-webkit-details-marker { display: none; }
.howto-card summary h2 { display: inline; margin: 0; }

.howto { margin: 12px 0 6px; padding-left: 1.3em; display: grid; gap: 8px; font-size: 1.02em; }
.login { margin: 12px 0; }
.login-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.login-head h2 { margin: 0; }
.spots { text-align: center; font-weight: 800; color: var(--brass-hi); }
.now-card .prompt { font-size: clamp(1.6em, 4.5vw, 2.4em); line-height: 1.15; }
.now-card .prop-img.small { max-height: 180px; }
.entry .joke { font-size: clamp(1.15em, 2.6vw, 1.45em); font-weight: 700; line-height: 1.45; }
.runner { font-size: 1.05em; background: var(--cream); color: var(--ink); border-radius: 6px; padding: 8px 10px; }
.runner small { color: #6b6250; }
.big-joke { font-size: clamp(1.4em, 4vw, 2em) !important; }
.now-wheel .reel-window { width: min(78vw, 320px); height: min(78vw, 320px); margin: 0 auto; }
.now-wheel .wheel { height: auto; }
.now-wheel .wheel-cta { font-size: 1.05em; }
.now-wheel .wheel-cta.landed { font-size: 1.3em; }
.now-cloud { margin-top: 10px; display: grid; gap: 6px; }
.cloud-mini .word { display: inline-block; background: var(--cream); color: var(--ink); border-radius: 99px; padding: 2px 10px; margin: 2px; font-weight: 700; }
/* board: the jokes are the show. Few entries (max 4) means they can be huge. */
.board-page #prompt div { font-size: 2.6em; }
.board-page .joke.t-xl { font-size: 2.6em; } .board-page .joke.t-lg { font-size: 2.1em; } .board-page .joke.t-md { font-size: 1.7em; } .board-page .joke.t-sm { font-size: 1.35em; }
.board-page .card { padding: 1em 1.3em .8em; }
.wall.n1 { grid-template-columns: minmax(0, 46em); }
.board-page .card.big { font-size: 1.1em; }
.board-page .card.big .joke { font-size: 2.6em; }
.runners .card .joke { font-size: 1.2em; }

/* up to four entries: a big 2x2 */
.wall.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
.wall.n3, .wall.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.wall.side.n3, .wall.side.n4 { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--rows, 4), minmax(0, 1fr)); }

@media (max-width: 600px) {
  .status-bar { flex-wrap: wrap; gap: 4px 10px; }
  .status-bar #game { flex: 1 1 100%; font-size: 1.05em; }
  .status-bar #phase { text-align: left; font-size: .9em; }
  .howto-card summary h2 { font-size: 1.2em; }
  .play-head .brand { font-size: 1em; }
}

.login .quick { margin-top: 16px; }
.login .quick .row input { flex: 1 1 12em; }
.debug-log { position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 40vh; overflow: auto; background: rgba(0,0,0,.85); color: #9f9; font-size: 11px; padding: 8px; border-radius: 8px; z-index: 70; white-space: pre-wrap; }

/* Get aboard: the three steps */
.aboard h3 { margin: 0 0 4px; }
.aboard .steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.aboard .step { display: flex; gap: 12px; align-items: flex-start; }
.aboard .step .num { flex: none; width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brass); color: var(--ink); }
.aboard .step.done .num { background: var(--ok); color: var(--ink); }
.aboard .step p { margin: 4px 0; }
.aboard .step .row input { flex: 1 1 12em; }
.aboard.complete .steps.compact { gap: 4px; margin-top: 6px; }
.aboard.complete .step .num { width: 1.5em; height: 1.5em; font-size: .85em; }
.aboard .aboard-done { margin: 0; font-weight: 700; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.howto-card summary h2 { display: inline; }
.howto-card summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.howto-toggle { flex: none; font-weight: 800; font-size: 1.05em; padding: 8px 16px; border-radius: 999px; background: var(--brass); color: var(--ink); box-shadow: 0 3px 0 var(--brass-lo); }
.howto-card summary:hover .howto-toggle { background: var(--brass-hi); }
.howto-card[open] .when-closed, .howto-card:not([open]) .when-open { display: none; }
.howto-card .pitch { font-size: 1.1em; line-height: 1.45; margin: 10px 0; }

/* The cast, the scoreboard, winners */
.cast-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.seat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: .92em; }
.seat.taken { background: var(--panel2); border: 2px solid var(--brass); }
.seat.taken.me { border-color: var(--ok); }
.seat.open { border: 2px dashed var(--rope-dk); color: var(--muted); }
.scoreboard { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: linear-gradient(180deg, var(--wood), var(--wood-dk)); border: 2px solid var(--brass-lo); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.scoreboard .sb-title { font-family: var(--sign); color: var(--brass-hi); margin-right: 4px; }
.scoreboard .sb-row { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(0,0,0,.25); white-space: nowrap; }
.scoreboard .sb-row b { color: var(--brass-hi); }
.scoreboard .sb-row .sats { color: var(--zap); font-weight: 800; }
.scoreboard .sb-row.lead { outline: 2px solid var(--brass-hi); }
.scoreboard .sb-row.me { background: rgba(61,220,132,.18); }
.winner-burst { position: relative; text-align: center; animation: winner-pop .7s cubic-bezier(.2,1.6,.4,1) both; }
.winner-burst h2 { animation: winner-glow 1.6s ease-in-out infinite alternate; }
@keyframes winner-pop { from { transform: scale(.6) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes winner-glow { from { text-shadow: 0 0 0 transparent; } to { text-shadow: 0 0 18px rgba(245,210,122,.8); } }
.confetti { position: absolute; inset: -20px 0 auto; height: 0; pointer-events: none; overflow: visible; }
.confetti i { position: absolute; top: 0; font-style: normal; line-height: 1; opacity: 0; animation: confetti-fall 3s ease-in forwards; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translateY(-10px) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(380px) rotate(400deg); } }
@media (prefers-reduced-motion: reduce) { .winner-burst, .winner-burst h2, .confetti i { animation: none; } .confetti { display: none; } }

/* A little more nautical: waves along the bottom, a ship's wheel in the corner, rope under the bar */
body:not(.board-page)::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none; z-index: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='46' viewBox='0 0 120 46'%3E%3Cpath d='M0 20 Q15 8 30 20 T60 20 T90 20 T120 20 V46 H0Z' fill='%2316335e'/%3E%3Cpath d='M0 30 Q15 20 30 30 T60 30 T90 30 T120 30 V46 H0Z' fill='%230e2547'/%3E%3C/svg%3E") repeat-x bottom / 120px 46px;
  animation: waves 14s linear infinite;
}
@keyframes waves { to { background-position-x: 120px; } }
body:not(.board-page) > main::before {
  content: ""; position: fixed; right: -60px; bottom: -60px; width: 260px; height: 260px; pointer-events: none; z-index: 0; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cg fill='none' stroke='%23d6a84c' stroke-width='5'%3E%3Ccircle r='30'/%3E%3Ccircle r='9'/%3E%3Cpath d='M0-48V48M-48 0H48M-34-34L34 34M34-34L-34 34'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
body:not(.board-page) .app, body:not(.board-page) main { position: relative; z-index: 1; }
.status-bar { padding-bottom: 8px; background: repeating-linear-gradient(-45deg, var(--rope) 0 6px, var(--rope-dk) 6px 9px, var(--rope) 9px 12px) bottom / 100% 4px no-repeat; }
@media (prefers-reduced-motion: reduce) { body:not(.board-page)::after { animation: none; } }

/* Get aboard: head counts and the two ways in */
.headcount { display: flex; gap: 12px; margin-bottom: 12px; }
.headcount .hc { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; background: var(--panel2); border: 2px solid var(--brass-lo); }
.headcount .n { display: block; font-family: var(--sign); font-size: 2.6em; line-height: 1.05; color: var(--brass-hi); }
.headcount .n small { font-size: .5em; color: var(--muted); }
.headcount .l { font-size: .9em; color: var(--muted); font-weight: 700; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path { padding: 12px; border-radius: 10px; border: 2px dashed var(--rope-dk); }
.path.joined { border-style: solid; border-color: var(--ok); }
.path h4 { margin: 0 0 4px; font-size: 1.1em; }
.path-more { margin-top: 10px; }
.path-more summary { cursor: pointer; font-weight: 700; color: var(--brass-hi); }
.watch-note { margin: 10px 0 0; text-align: center; color: var(--muted); }
.two-ways { display: grid; gap: 8px; margin: 10px 0; }
.two-ways > div { padding: 10px 12px; border-radius: 10px; background: var(--panel2); border-left: 4px solid var(--brass); font-size: 1.05em; }

/* The big mute button: always in the top corner */
.mute-btn { position: fixed; top: 10px; right: 10px; z-index: 100; font-size: 1.6em; font-weight: 800; padding: 10px 16px; border-radius: 14px; border: 3px solid var(--brass); background: var(--panel); color: var(--text); cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.mute-btn.off { background: var(--curtain); border-color: var(--brass-hi); }
.host-page .mute-btn { font-size: 1.3em; }
.host-page .play-head { padding-right: 190px; }
.sound-on { position: fixed; top: 10px; right: 100px; z-index: 100; }
.board-sb { justify-content: center; margin: .4em 5vw 0; position: relative; z-index: 2; font-size: 1.15em; }
.board-hc { max-width: 520px; margin: 1em 0; }
.board-page .mute-btn { right: auto; left: 6px; top: 4px; font-size: 1.1em; padding: 4px 9px; border-width: 2px; }
.lobby-right .headcount { max-width: 26em; margin: .2em auto .6em; }
.lobby-right .cast-row { justify-content: center; }
.path-more summary { list-style: none; display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--brass); color: var(--ink); box-shadow: 0 3px 0 var(--brass-lo); }
.path-more summary::-webkit-details-marker { display: none; }
.path-more summary::before { content: "▼ "; }
.path-more[open] summary::before { content: "▲ "; }

/* Wheel of Props on the board: cartoon on top, captions directly beneath it */
.prop-stack { display: grid; grid-template-rows: minmax(0, .85fr) minmax(0, 1.15fr); gap: .7em; height: 100%; min-height: 0; justify-items: center; }
.prop-stack .prop-frame { height: 100%; aspect-ratio: 4 / 3; max-width: 100%; }
.caption-list { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .35em 1.2em; min-height: 0; overflow: hidden; }
.caption-list.n1, .caption-list.n2 { grid-template-columns: minmax(0, 1fr); max-width: 70%; margin: 0 auto; }
.caption-list.waiting-caps { display: grid; place-items: center; color: var(--muted); font-size: 1.3em; }
.caption { display: flex; align-items: center; gap: .8em; padding: .25em .7em; border-radius: 6px; background: var(--cream); color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.caption .cap-text { flex: 1; margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.25em; line-height: 1.25; text-align: center; }
.caption .cap-meta { flex: none; font-size: .75em; font-weight: 700; color: #6b6250; white-space: nowrap; }
.caption.lead { box-shadow: 0 0 0 3px var(--brass-hi), 0 4px 14px rgba(245,210,122,.4); }
.caption.fresh { animation: winner-pop .5s ease both; }
.caption-list.n1 .cap-text, .caption-list.n2 .cap-text { font-size: 1.6em; }
.caption.sm .cap-text { font-size: 1.05em; }
.caption.xs .cap-text { font-size: .9em; }
.feed-prop { display: block; width: 100%; border-radius: 10px; margin: 6px 0 4px; }
.play-page .entry .joke:only-child { margin: 0; }

/* Phones: nothing may be wider than the screen (sideways drift makes iOS scroll-zoom), long
   words wrap, and a double tap doesn't zoom (pinch still does). */
html, body { overflow-x: clip; }
body { touch-action: manipulation; }
.card, .entry, .brief, .joke, .prompt { overflow-wrap: anywhere; }
.main-grid > *, .login-options > * { min-width: 0; }
.connect-box > * { max-width: 100%; }
.btn { max-width: 100%; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }
.copy-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.copy-sheet .card { width: min(520px, 100%); margin: 0; }
.copy-sheet textarea { font-size: 16px; margin: 8px 0; }
.brief .brief-step { margin: 10px 0 4px; }
.brief .brief-step:first-child { margin-top: 0; }
.zap-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 150; padding: 12px 14px; border-radius: 12px; background: var(--zap); color: #1d1a17; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.5); animation: winner-pop .4s ease both; }
.zap-banner b { font-weight: 800; }

/* Prop results: big cartoon, the winning caption right under it, runners-up as captions */
.prop-results { grid-template-columns: 1.25fr 1fr; }
.prop-results .winner { grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; }
.prop-results .prop-frame { height: 100%; aspect-ratio: 4 / 3; max-width: 100%; min-height: 0; }
.prop-results .win-cap { width: 100%; max-width: none; overflow: visible; }
.prop-results .win-cap .caption { padding: .45em .9em; }
.prop-results .win-cap .cap-text { font-size: 1.7em; }
.prop-results .win-cap .caption.sm .cap-text { font-size: 1.4em; }
.prop-results .win-cap .caption.xs .cap-text { font-size: 1.15em; }
.prop-results .runners { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.prop-results .runner-caps { grid-template-columns: minmax(0, 1fr); max-width: none; height: 100%; }
/* Keep the marquee text clear of the bulb rows at any board size (bulbs are 14px tall, 5px in). */
.marquee { padding: calc(19px + .2em) 1.1em calc(19px + .15em); }
.board-head .brand { padding-top: 0; }
.tagline { padding-bottom: 0; margin-top: .15em; }
