/* ---- buzzer.css ---- */
/* ---------- fastest fin: the buzzer on the phone, the buzzer's fish on the big screen ---------- */
.buzzer-btn {
  width: min(100%, 62vh);
  aspect-ratio: 1;
  margin: auto;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: var(--coral);
  border: var(--border);
  box-shadow: var(--shadow), inset 0 -14px 0 rgba(0, 0, 0, 0.16);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.06s, box-shadow 0.06s;
}
.buzzer-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink), inset 0 4px 0 rgba(0, 0, 0, 0.16); }
.buzzer-btn:disabled { opacity: 0.6; cursor: default; }
.buzzer-up { display: grid; place-items: center; }
.buzzer-locked { justify-content: center; }

/* ---- caption.css ---- */
/* ---- Caption this ---- */
.caption__stage { display: grid; justify-items: center; gap: 0.6rem; }
.qimg.caption__img { max-height: 45vh; }
.qimg.caption__img--small { max-height: 24vh; }
.caption__pic { display: block; width: 100%; max-height: 38vh; object-fit: contain; background: #fff; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* ---- cheer.css ---- */
/* ---------- cheer-off: a bar per fish on the big screen, a level meter on the phone ---------- */
.cheer-bars { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: clamp(8px, 1.4vw, 22px); flex: 1; width: 100%; }
.cheer-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; width: clamp(64px, 8vw, 110px); }
.cheer-bar__fish { display: grid; place-items: center; }
.cheer-bar__tube {
  position: relative;
  width: 100%;
  height: clamp(140px, 30vh, 340px);
  background: var(--paper);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cheer-bar__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--level, 0) * 100%);
  background: var(--pink);
  border-top: 2.5px solid var(--ink);
  transition: height 0.1s linear;
}
.cheer-bar.is-loudest .cheer-bar__fill { background: var(--sun); }
.cheer-bar.is-loudest .av { filter: drop-shadow(0 0 10px var(--sun)); }
.cheer-bar--nomic .cheer-bar__tube { background: repeating-linear-gradient(45deg, #eee 0 8px, var(--paper) 8px 16px); }
.cheer-bar__pct { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font: 700 1rem var(--mono); color: var(--ink); }
.cheer-bar .name-chip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; padding: 0.2em 0.6em; cursor: default; }

.cheer-meter {
  position: relative;
  flex: 1;
  min-height: 38vh;
  width: 100%;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cheer-meter__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(var(--sun), var(--pink));
  border-top: 3px solid var(--ink);
  transition: height 0.1s linear;
}

/* ---- closest.css ---- */
/* ---------- closest guess: the number line on the big screen, the steppers on the phone ---------- */
.closest-line { width: min(1200px, 100%); margin: 0 auto; padding: 0 70px; }
.closest-line__lanes { position: relative; height: calc(var(--lanes, 1) * 100px); }
.closest-fish {
  position: absolute;
  left: var(--x);
  bottom: calc(var(--lane, 0) * 100px);
  width: 130px;
  margin-left: -65px;
  display: grid;
  justify-items: center;
  gap: 3px;
}
.closest-fish .av { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.25)); }
.closest-fish .name-chip { display: block; max-width: 130px; padding: 0.2em 0.65em; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
.closest-fish.is-top .name-chip { background: var(--sun); }
.closest-fish__val { font: 700 0.8rem var(--mono); color: var(--paper); text-shadow: 2px 2px 0 var(--ink); }
.closest-line__track { position: relative; height: 18px; margin-top: 10px; background: var(--paper); border: var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); }
.closest-line__dot { position: absolute; left: var(--x); top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--sea-1); }
.closest-line__answer {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--sun);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.closest-line__mark { position: absolute; left: clamp(90px, var(--x), calc(100% - 90px)); top: 100%; margin-top: 12px; transform: translateX(-50%); white-space: nowrap; }
.closest-line__ends { display: flex; justify-content: space-between; margin-top: 48px; font: 700 1rem var(--mono); text-shadow: 2px 2px 0 var(--ink); }

/* phone: a big minus and plus either side of the number */
.closest-steppers { display: grid; grid-template-columns: 72px 1fr 72px; gap: 0.5rem; align-items: stretch; }
.closest-step { min-height: 64px; padding: 0.4em 0.3em; flex-direction: column; gap: 0; line-height: 1; }
.closest-step b { font-size: 1.5rem; line-height: 1; }
.closest-step small { font: 700 0.7rem var(--mono); color: #555; }

/* ---- crowd.css ---- */
/* ---- everyone asks ---- */
/* the "asked by" fish in the quiz header on the big screen */
.crowd-asked { display: inline-flex; align-items: center; gap: 0.5rem; }

/* the phone editor: four answer rows, each with its shape as the "this one is right" button */
.crowd-editor textarea.input { min-height: 72px; resize: none; font-family: var(--display); font-weight: 600; }
.crowd-opt { --c: var(--coral); --deep: #d8512f; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: center; }
.crowd-opt[data-i='1'] { --c: var(--sun); --deep: #d9a800; }
.crowd-opt[data-i='2'] { --c: var(--kelp); --deep: #178f72; }
.crowd-opt[data-i='3'] { --c: var(--water); --deep: var(--sea-1); }
.crowd-opt__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--c);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.crowd-opt__mark .shape { width: 2em; height: 2em; }
.crowd-opt__mark.is-on { outline: 4px solid var(--sun); outline-offset: 3px; }
.crowd-opt__mark.is-on .shape { background: var(--sun); }
.crowd-opt__mark:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---- herd.css ---- */
/* ---------- odd one out: the answer groups on the big screen ---------- */
.herd-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; width: min(1200px, 100%); margin: 0 auto; }
.herd-group { padding: 0.9rem 1rem; display: grid; gap: 0.6rem; align-content: start; }
.herd-group__head { display: flex; align-items: center; gap: 0.6rem; }
.herd-group__text { margin: 0; flex: 1; font: 600 clamp(1.1rem, 2vw, 1.6rem) var(--display); line-height: 1.2; overflow-wrap: anywhere; }
.herd-group.is-unique { background: var(--sun); box-shadow: var(--shadow), 0 0 0 5px var(--sun); }
.herd-group.is-shared { opacity: 0.7; }
.herd-group.is-shared .herd-group__text { color: #555; text-decoration: line-through; text-decoration-thickness: 3px; }
.herd-group__fish { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.herd-fish { display: grid; justify-items: center; gap: 1px; width: 64px; }
.herd-fish small { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.72rem var(--display); color: #333; }

/* ---- impostor.css ---- */
/* ---- the impostor: speaking order and the vote bars on the big screen ---- */
.impostor-order { list-style: none; margin: 0 auto; padding: 0.6rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 1.8vw, 24px); width: min(1100px, 100%); }
.impostor-order__item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.8rem 1rem 0.7rem;
  min-width: 128px;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.impostor-order__n {
  position: absolute;
  top: -12px;
  left: -10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  font: 700 1rem var(--display);
}
.impostor-order__name { font: 600 1rem var(--display); max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.impostor-bars { list-style: none; margin: 0 auto; padding: 0; width: min(900px, 100%); display: grid; gap: 0.55rem; }
.impostor-bars__row {
  display: grid;
  grid-template-columns: auto minmax(9em, auto) 1fr 2.5rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.impostor-bars__name { display: flex; align-items: center; gap: 0.5rem; font: 600 1.1rem var(--display); }
.impostor-bars__bar { height: 22px; background: var(--water); border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.impostor-bars__bar i { display: block; height: 100%; background: var(--coral); transform-origin: left; animation: impostor-grow 0.6s cubic-bezier(0.2, 1, 0.3, 1) both; }
@keyframes impostor-grow { from { transform: scaleX(0); } }
.impostor-bars__n { font: 700 1.3rem var(--mono); text-align: right; }
/* the unmasking lands a beat after the bars */
.impostor-bars__row.is-impostor { animation: impostor-unmask 0.5s 1.6s both; }
@keyframes impostor-unmask { to { background: var(--coral); } }
.impostor-bars__tag { animation: impostor-tag 0.4s 1.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes impostor-tag { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- letters.css ---- */
/* ---- Category letter ---- */
/* the letter itself: the one thing on this screen that is allowed to be huge */
.letters__big { margin: 0; font: 700 clamp(4rem, 14vw, 11rem) var(--display); line-height: 1; }
.letters__big--phone { text-align: center; color: var(--paper); text-shadow: 4px 4px 0 var(--ink); font-size: clamp(4.5rem, 30vw, 7.5rem); }
.letters__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
/* the reveal: one row per category, everyone's answer as a chip beside their fish */
.letters__board { display: grid; gap: 0.6rem; width: min(1200px, 100%); margin: 0 auto; }
.letters__row { display: grid; grid-template-columns: minmax(150px, 260px) 1fr; gap: 0.8rem; align-items: center; padding: 0.7rem 1rem; }
.letters__row:not(.is-open) { opacity: 0.55; }
.letters__cat { font: 600 clamp(1.05rem, 1.8vw, 1.4rem) var(--display); }
.letters__answers { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.letters__chip { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.7em 0.2em 0.25em; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; font: 600 1rem var(--display); }
.letters__chip.is-unique { background: var(--sun); }
.letters__chip.is-dupe .letters__text { text-decoration: line-through; }
.letters__chip.is-bad, .letters__chip.is-blank { opacity: 0.45; }
.letters__x { color: #d8512f; }
.letters__g { font-family: var(--mono); }
/* the phone: the answer boxes sit on a card so the labels read on any depth of water */
.letters__form { display: grid; gap: 0.7rem; padding: 1rem; }
.pickrow.letters__r--unique { background: var(--sun); }
.pickrow.letters__r--shared { background: #ffe3dc; }
.pickrow.letters__r--invalid, .pickrow.letters__r--blank { opacity: 0.6; }

/* ---- majority.css ---- */
/* ---------- majority wins: the fish under each option on the big screen ---------- */
.majority-board { flex: none; align-content: start; }
.majority-opt { display: grid; gap: 0.5rem; }
.majority-opt .tile { cursor: default; }
.majority-opt__fish { display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; align-items: flex-start; min-height: 40px; padding: 0 0.4rem; }
.majority-fish { display: grid; justify-items: center; gap: 1px; width: 64px; }
.majority-fish .av { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.25)); }
.majority-fish small { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.7rem var(--display); color: var(--paper); text-shadow: 1px 1px 0 var(--ink); }
.majority-opt__nobody { font-weight: 600; opacity: 0.6; text-shadow: 1px 1px 0 var(--ink); }

/* ---- order.css ---- */
/* ---------- put in order: sortable rows on the phone, right-slot bars on the big screen ---------- */
.order-list { display: grid; gap: 0.45rem; }
.order-row {
  display: grid;
  grid-template-columns: 2rem 1fr 52px 52px;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font: 600 1rem var(--display);
}
.order-row__text { overflow-wrap: anywhere; }
.order-row__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--sun);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  font: 700 1.3rem var(--display);
  cursor: pointer;
}
.order-row__btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.order-row__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.order-row--static { grid-template-columns: 2rem 1fr; }
.order-row.is-right { background: var(--kelp); }
.order-row.is-right .pickrow__badge { background: var(--paper); }
.order-row.is-wrong { background: #ffe3dc; }
.order-row.is-wrong .pickrow__badge { background: var(--coral); }
.order-pct { flex: 1; min-width: 80px; height: 14px; background: #eef2fb; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.order-pct i { display: block; height: 100%; background: var(--kelp); }

/* ---- photo.css ---- */
/* ---- Photo hunt ---- */
.photo__hide { display: none !important; }
/* thumbnails popping in on the big screen during the hunt */
.photo__strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; min-height: 76px; }
.photo__strip img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-sm); }
/* the gallery reuses the album cards; the winner lights up */
.photo__shot { margin: 0; }
.albumcard.photo__shot.is-winner { background: var(--sun); box-shadow: var(--shadow), 0 0 0 5px var(--sun); }
/* the phone: preview before sending, and your own shot on the result card */
.photo__preview img { display: block; width: 100%; max-height: 42vh; object-fit: contain; background: #fff; border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.photo__mine { width: 140px; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; }

/* ---- quiz.css ---- */
/* quiz: picture answers, tap-the-picture, closest number */
.tile--img { flex-direction: column; align-items: stretch; padding: 0.6em; gap: 0.4em; }
.tile--img .shape { position: absolute; top: 10px; left: 10px; z-index: 1; }
.tile--img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; }
.tile--img > span:not(.shape):not(.tile__check):not(.tile__count) { text-align: center; }
.tile--img > span:empty { display: none; }
.tile--img .tile__check, .tile--img .tile__count { position: absolute; top: 10px; right: 10px; margin: 0; }
.board--pics .tile { min-height: 0; }
.tiles--pics .tile { min-height: 0; }

.spot { position: relative; display: inline-block; max-width: 100%; margin: 0 auto; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #fff; touch-action: manipulation; cursor: crosshair; line-height: 0; }
.spot img { display: block; max-width: 100%; max-height: 52vh; user-select: none; -webkit-user-select: none; }
.spot--host { align-self: center; }
.spot--host img { max-height: 48vh; }
.spot--mini { width: 100%; cursor: default; }
.spot--mini img { max-height: 30vh; width: 100%; object-fit: contain; }
.spot__ring { position: absolute; width: calc(var(--r, 12%) * 2); aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px solid var(--sun); border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink); pointer-events: none; animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); }
.spot__tap { position: absolute; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.35)); animation: pop 0.3s cubic-bezier(0.2, 1.6, 0.4, 1); }
.spot__tap.is-right { filter: drop-shadow(0 0 0 var(--sun)) drop-shadow(0 0 6px var(--sun)); }
.spot__tap .av { width: 34px; }
.typed__item .who__av { margin-right: 0.2em; }

/* the hub editor */
.imgfield { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem; align-items: center; }
.imgfield__thumb { width: 54px; height: 40px; object-fit: cover; border: 2.5px solid var(--ink); border-radius: 8px; background: #fff; }
.imgfield__thumb--empty { display: block; background: repeating-linear-gradient(-45deg, #eef2fb 0 6px, #fff 6px 12px); }
.opt { display: grid; gap: 0.4rem; }
.opt__row { display: flex; align-items: center; gap: 0.6rem; }
.spotpick { position: relative; display: inline-block; max-width: 100%; border: var(--border); border-radius: 12px; overflow: hidden; cursor: crosshair; line-height: 0; background: #fff; }
.spotpick img { display: block; max-width: 100%; max-height: 420px; }
.spotpick__ring { position: absolute; width: calc(var(--r, 12%) * 2); aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px solid var(--sun); border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink); pointer-events: none; }

/* ---- reveal.css ---- */
/* ---------- picture reveal: the sharpening picture, then the answer beside it ---------- */
.reveal__frame { flex: 1; display: grid; place-items: center; min-height: 0; }
/* the picture keeps its own shape inside the space it is given */
.reveal__pic {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1200px, 100%);
  max-height: 62vh;
  background: #fff;
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.reveal__oops { margin: 0; text-align: center; font: 600 1.2rem var(--display); text-shadow: 2px 2px 0 var(--ink); }
.reveal__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(12px, 1.8vw, 24px);
  align-items: start;
  justify-items: center;
  flex: 1;
  width: min(1400px, 100%);
  margin: 0 auto;
}
@media (max-width: 860px) { .reveal__stage { grid-template-columns: 1fr; } }
.reveal__side { display: grid; gap: 0.8rem; width: 100%; }
.reveal__side .qcard { padding: 1rem; }
.reveal__panel { padding: 0.8rem 1rem; display: grid; gap: 0.5rem; align-content: start; }
.reveal__panel .mono-label { color: var(--sea-2); }
.reveal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.reveal__got { display: flex; align-items: center; gap: 0.5rem; }
.reveal__feed li { padding: 0.35rem 0.6rem; background: #eef2fb; border: 2px solid var(--ink); border-radius: 10px; font-size: 0.95rem; }
.reveal__none { color: #666; font-size: 0.9rem; }

/* the phone */
.reveal__hint { margin: 0; font-size: 0.9rem; font-weight: 600; color: #555; }
.reveal__phone-pic { width: 100%; max-height: 36vh; object-fit: contain; background: #fff; border: var(--border); border-radius: 12px; }

/* ---- sketchguess.css ---- */
/* ---------- sketch and guess: the live drawing with the guesses beside it ---------- */
.sketchguess__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(12px, 1.8vw, 24px);
  align-items: start;
  justify-items: center;
  flex: 1;
  width: min(1400px, 100%);
  margin: 0 auto;
}
@media (max-width: 860px) { .sketchguess__stage { grid-template-columns: 1fr; } }
/* the drawing, same look as a doodle album picture; keeps its 4:3 shape inside the column */
.sketchguess__canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62vh;
  background: #fff;
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.sketchguess__side { display: grid; gap: 0.8rem; width: 100%; }
.sketchguess__panel { padding: 0.8rem 1rem; display: grid; gap: 0.5rem; align-content: start; }
.sketchguess__panel .mono-label { color: var(--sea-2); }
.sketchguess__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.sketchguess__got { display: flex; align-items: center; gap: 0.5rem; }
.sketchguess__feed li { padding: 0.35rem 0.6rem; background: #eef2fb; border: 2px solid var(--ink); border-radius: 10px; font-size: 0.95rem; }
.sketchguess__none { color: #666; font-size: 0.9rem; }
.sketchguess__artist { margin: 0; font-size: 0.95rem; font-weight: 600; color: #444; }

/* the phone: the artist's tally and a guesser's own misses */
.sketchguess__hint { margin: 0; font-size: 0.9rem; font-weight: 600; color: #555; }
.sketchguess__mine { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sketchguess__mine:empty { display: none; }
.sketchguess__mine li {
  padding: 0.25em 0.7em;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.8;
}

/* ---- tap.css ---- */
/* ---------- tap race: the track on the big screen, the tap button on the phone ---------- */
.tap-track {
  position: relative;
  display: grid;
  gap: 4px;
  flex: 1;
  align-content: center;
  width: min(1300px, 100%);
  margin: 0 auto;
  padding: 16px 120px 16px 40px;
  overflow: hidden;
}
.tap-track__finish {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 106px;
  width: 14px;
  background: repeating-linear-gradient(0deg, var(--ink) 0 10px, var(--paper) 10px 20px);
  border-left: 2.5px solid var(--ink);
  border-right: 2.5px solid var(--ink);
}
/* lanes share the height; thin dashed water between them */
.tap-lane { position: relative; height: clamp(30px, calc((100vh - 320px) / var(--n, 6)), 84px); border-bottom: 2px dashed rgba(0, 0, 0, 0.15); }
.tap-lane:last-child { border-bottom: 0; }
.tap-lane__fish {
  position: absolute;
  top: 50%;
  left: calc(var(--x, 0) * (100% - var(--fish, 56px)));
  width: var(--fish, 56px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: left 0.15s linear;
}
.tap-lane__fish .name-chip { font-size: 0.75rem; padding: 0.15em 0.55em; white-space: nowrap; cursor: default; box-shadow: none; }
.tap-lane__count {
  position: absolute;
  right: -110px;
  top: 50%;
  width: 100px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font: 700 1.1rem var(--mono);
}
.tap-lane__flag { white-space: nowrap; }
.tap-lane.is-flag .av { filter: drop-shadow(0 0 8px var(--sun)); }

.tap-btn {
  width: min(100%, 58vh);
  aspect-ratio: 1;
  margin: auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: 50%;
  background: var(--sun);
  border: var(--border);
  box-shadow: var(--shadow), inset 0 -14px 0 rgba(0, 0, 0, 0.14);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tap-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink), inset 0 3px 0 rgba(0, 0, 0, 0.14); }

/* ---- tilt.css ---- */
/* ---------- tilt to steer: the river on the big screen, the small river and slider on the phone ---------- */
.tilt-river {
  position: relative;
  flex: 1;
  min-height: 46vh;
  width: 100%;
  background: linear-gradient(var(--sea-0), var(--sea-2));
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* x 0..1 maps to 6%..94% so nothing is clipped at the banks */
.tilt-ring {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: calc(6% + var(--x, 0.5) * 88%);
  width: 14%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 210, 31, 0.22);
  border: 4px solid var(--sun);
  box-shadow: 0 0 24px 6px rgba(255, 210, 31, 0.55), inset 0 0 24px rgba(255, 210, 31, 0.5);
  transition: left 0.1s linear;
}
.tilt-fish {
  position: absolute;
  top: calc(12% + var(--lane, 0.5) * 70%);
  left: calc(6% + var(--x, 0.5) * 88%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0.85;
  transition: left 0.1s linear, opacity 0.2s;
}
.tilt-fish.is-in { opacity: 1; }
.tilt-fish.is-in .av { filter: drop-shadow(0 0 10px var(--sun)) drop-shadow(0 0 18px var(--sun)); }
.tilt-fish--off { opacity: 0.4; filter: saturate(0.4); }
.tilt-fish .name-chip { font-size: 0.8rem; padding: 0.2em 0.6em; white-space: nowrap; cursor: default; }
.tilt-fish__ticks { white-space: nowrap; }

.tilt-bar {
  position: relative;
  width: 100%;
  height: 76px;
  background: linear-gradient(var(--sea-0), var(--sea-2));
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tilt-bar__ring {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(8% + var(--x, 0.5) * 84%);
  width: 13.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 210, 31, 0.25);
  border: 3px solid var(--sun);
  box-shadow: 0 0 14px rgba(255, 210, 31, 0.7);
}
.tilt-bar__fish { position: absolute; top: 50%; left: calc(8% + var(--x, 0.5) * 84%); transform: translate(-50%, -50%); display: grid; place-items: center; }
.tilt-bar__fish.is-in .av { filter: drop-shadow(0 0 8px var(--sun)); }
.tilt-slider { width: 100%; height: 56px; margin: 0; accent-color: var(--sun); touch-action: none; }

/* ---- truths.css ---- */
/* ---- two truths and a lie ---- */
/* the reveal on the big screen */
.truths-stmt.is-lie { background: var(--coral); box-shadow: var(--shadow), 0 0 0 5px var(--coral); }
.truths-stmt.is-lie .answer__n { background: var(--paper); }
.truths-stmt.is-true { background: var(--paper); }
.truths-stmt.is-true .answer__n { background: var(--kelp); }

/* the phone editor: a statement with a Lie toggle beside it */
.truths-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: stretch; }
.truths-lie {
  padding: 0 1em;
  min-width: 4.2em;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font: 700 1rem var(--display);
  cursor: pointer;
}
.truths-lie.is-on { background: var(--coral); }
.truths-lie:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---- whosaid.css ---- */
/* ---- who said it: the prompt above, the answer in the big card ---- */
.whosaid-prompt { margin: 0; font: 600 clamp(1.05rem, 1.8vw, 1.5rem) var(--display); line-height: 1.25; }
.whosaid-answer { min-height: 30vh; }
.whosaid-answer__who { display: grid; justify-items: center; gap: 0.4rem; }
