/* Read Herring — shared look for splash, TV and phones. A night harbour:
   deep navy water, rope-cream paper, and the herring's red. The six inks
   carry the game, so the chrome stays out of their way. */
:root {
  --sea: #0b1d2e; --sea2: #10283f; --sea3: #173856; --deep: #06111c;
  --ink: #f4ecd8; --dim: #8fa6bb; --rope: #d9c69a; --red: #e23b3b; --red2: #b3202a;
  --good: #3ddc6a; --bad: #ff4d4d; --hot: #ff9a2e;
  --display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body {
  color: var(--ink); font: 600 16px/1.4 var(--body);
  background: var(--sea) radial-gradient(ellipse at 50% 0%, var(--sea3), var(--sea) 70%) fixed;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; }
h1 { color: var(--red); font-size: 48px; line-height: 1; text-shadow: 3px 3px 0 var(--deep); }
h2 { color: var(--rope); font-size: 24px; }
button { background: var(--sea3); border: 2px solid #2b5578; color: var(--ink); padding: 10px 14px;
  border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
button.primary { background: var(--red); border-color: var(--red); color: #fff; }
button:disabled { opacity: .35; cursor: default; }
select, input { font: inherit; padding: 8px; border-radius: 8px; background: var(--sea2); color: var(--ink); border: 2px solid #2b5578; }
.muted { color: var(--dim); } .small { font-size: 13px; }
.tagg { color: var(--dim); font-size: 13px; margin-left: 6px; }
.good { color: var(--good); } .bad { color: var(--bad); }
.av { border-radius: 50%; vertical-align: middle; margin-right: 4px; }

#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140px); background: var(--rope);
  color: var(--deep); padding: 10px 18px; border-radius: 10px; transition: transform .25s; z-index: 50; max-width: 92vw; font-weight: 800; }
#toast.show { transform: translateX(-50%) translateY(0); }
#conn { position: fixed; top: 8px; right: 8px; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 8px;
  font-size: 13px; display: none; z-index: 60; }
#conn.show { display: block; }

/* ---- kit phone shell: join + lobby ---------------------------------------- */
.join, .lobbyv { max-width: 480px; margin: 0 auto; padding: 28px 18px; display: grid; gap: 14px; }
.join input { font-size: 20px; padding: 12px; }
.join button, .lobbyv button { font-size: 18px; padding: 14px; }
.hint { color: var(--dim); }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.seat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px;
  background: #00000030; border-radius: 10px; margin: 4px 0; }

/* ---- the prompt and its four options ------------------------------------- */
.prompt { font-family: var(--display); line-height: 1.1; text-align: center; color: var(--ink); }
.prompt .key { font-weight: 400; letter-spacing: 1px; text-shadow: 2px 2px 0 var(--deep); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--deep); border: 3px solid #23415e; border-radius: 16px; padding: 14px 6px; min-height: 96px;
  font-family: var(--display); font-weight: 400; transition: transform .08s; }
button.opt:active { transform: scale(.96); }
.opt .w { font-size: 26px; letter-spacing: 1px; white-space: nowrap; text-align: center; line-height: 1.05; }
.opt .w.l { font-size: 22px; } .opt .w.xl { font-size: 19px; letter-spacing: .5px; }
.opt .em { font-size: 44px; line-height: 1; }
.opt.right { border-color: var(--good); box-shadow: 0 0 0 3px var(--good), 0 0 22px #3ddc6a88; }
.opt.wrong { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad); animation: shake .35s; }
.opt.herring { position: relative; }
.opt.herring::after { content: "🐟 herring"; position: absolute; top: -10px; right: -6px; background: var(--red); color: #fff;
  font: 800 11px var(--body); padding: 2px 7px; border-radius: 99px; transform: rotate(6deg); }
@keyframes shake { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }

/* ---- the herring ------------------------------------------------------------ */
.fish { display: block; overflow: visible; filter: drop-shadow(0 6px 10px #0008); }
.fish.lit .spark { animation: spark .18s infinite alternate; transform-origin: 113px 6px; }
@keyframes spark { from { transform: scale(.7); opacity: .7 } to { transform: scale(1.3); opacity: 1 } }
.fish.h1 { animation: wob 1s infinite; }
.fish.h2 { animation: wob .45s infinite; filter: drop-shadow(0 0 12px #ff9a2e88); }
.fish.h3 { animation: wob .18s infinite; filter: drop-shadow(0 0 22px #ff4d4dcc); }
@keyframes wob { 25% { transform: rotate(-4deg) } 75% { transform: rotate(4deg) } }

.hearts { display: inline-flex; gap: 2px; letter-spacing: 0; }
.hearts i { font-style: normal; color: #ffffff26; }
.hearts i.on { color: var(--red); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .78em;
  font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: #ffffff1a; color: var(--ink); white-space: nowrap; }
.badge.out { background: #000; color: var(--dim); }
.badge.hold { background: var(--red); color: #fff; }

.boom { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 40;
  pointer-events: none; background: radial-gradient(circle, #ffd93bdd 0, #ff9a2ecc 22%, #e23b3b99 45%, transparent 70%); animation: blast .6s ease-out; }
.boom .word { font-family: var(--display); font-size: 120px; color: #fff; -webkit-text-stroke: 4px var(--deep); text-shadow: 6px 6px 0 var(--deep); transform: rotate(-6deg); }
@keyframes blast { from { transform: scale(.2); opacity: 0 } 60% { transform: scale(1.1); opacity: 1 } }

/* ---- phone screens (shared by the table phone and solo) ------------------- */
  body { transition: background-color .4s; }
  body[data-heat="1"] { background: #2a2414 radial-gradient(ellipse at 50% 0%, #4a3a12, #1d1a10 70%) fixed; }
  body[data-heat="2"] { background: #3a1e0c radial-gradient(ellipse at 50% 0%, #7a3a0c, #2a140a 70%) fixed; }
  body[data-heat="3"] { background: #4a0c0c radial-gradient(ellipse at 50% 0%, #a01818, #3a0808 70%) fixed; animation: throb .3s infinite alternate; }
  @keyframes throb { to { filter: brightness(1.18); } }
  .screen { max-width: 520px; margin: 0 auto; padding: 12px 14px 28px; display: flex; flex-direction: column; gap: 14px; }
  .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--dim); }
  .bar .brand { font-family: var(--display); color: var(--red); font-size: 20px; }
  .bar .code { font-family: var(--display); letter-spacing: 3px; color: var(--rope); font-size: 18px; }
  .card { background: #00000030; border-radius: 14px; padding: 6px; }
  .seat-row.gone { opacity: .5; }
  .btncol { display: grid; gap: 10px; } .btncol button { font-size: 18px; padding: 14px; }
  .waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 10px 0; }
  .who { font-size: 22px; } .who b { color: var(--rope); }
  .peek { width: 100%; opacity: .85; display: grid; gap: 10px; }
  .peek .prompt { font-size: 22px; }
  .peek .opt { min-height: 60px; padding: 8px 4px; } .peek .opt .w { font-size: 18px; } .peek .opt .em { font-size: 26px; }
  .mine { text-align: center; font-weight: 800; }
  .heck { justify-content: center; } .heck button { font-size: 15px; padding: 8px 12px; }
  .holding { min-height: 100svh; justify-content: flex-start; padding-top: 16px; }
  .hold-top { display: flex; align-items: center; gap: 14px; font-size: 18px; line-height: 1.2; }
  .hold-top b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .5px; }
  .holding .prompt { font-size: 34px; margin: 6px 0 4px; }
  .holding .opt { min-height: 23svh; } .holding .opt .w { font-size: 30px; }
  .holding .opt .w.l { font-size: 25px; } .holding .opt .w.xl { font-size: 21px; }
  .holding .opt.pic .w { font-size: 22px; } .holding .opt.pic .w.xl { font-size: 18px; }
  .holding .opt .em { font-size: 64px; }
  .peek .opt .w.l, .peek .opt .w.xl { font-size: 14px; }
  .opt.sent { opacity: .6; }
  .wrongbar { background: var(--bad); color: #fff; font-weight: 900; text-align: center; padding: 8px; border-radius: 10px; animation: shake .35s; }
  .targets { display: grid; gap: 12px; margin-top: 8px; }
  .target { display: flex; justify-content: space-between; align-items: center; font-size: 26px; padding: 20px 18px;
    font-family: var(--display); font-weight: 400; background: var(--sea3); border-color: var(--rope); }
  .bigword { font-family: var(--display); font-size: 40px; text-align: center; line-height: 1.05; color: var(--rope); }
  .bigword.bad { color: var(--bad); } .bigword.good { color: var(--good); }
