/* snapshotplay.com. The colours are the join page's (public/join/index.html),
   so a visitor moving between them sees one site. Light only, like the join
   and delete-account pages. */

:root {
  --canvas: #F6F1EA;
  --surface: #FFFFFF;
  --ink: #1B1416;
  --ink-secondary: #3A2E2E;
  --muted: #4D4344;
  --maroon: #7C1224;
  --maroon-dark: #5E0D1B;
  --fill: #E6DDD2;
  --stroke: #948981;
  color-scheme: light;
}

* { box-sizing: border-box; }

/* `hidden` always wins, even over a class that sets display (a .button
   is inline-flex): the scripts hide and show buttons with it. */
[hidden] { display: none !important; }

html, body { margin: 0; background: var(--canvas); color: var(--ink); }

body {
  font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--maroon); text-underline-offset: 2px; }
a:hover { color: var(--maroon-dark); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.3px; }
h1 { font-size: 34px; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 32px 0 10px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin: 0 0 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.page { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 12px 16px; z-index: 10; }

/* Header and footer ---------------------------------------------------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--fill); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 800; font-size: 21px; color: var(--maroon); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--maroon); text-decoration: underline; }

.site-footer { background: var(--surface); border-top: 1px solid var(--fill); padding: 24px 0 32px; font-size: 16px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-secondary); }

/* Shared pieces --------------------------------------------------------- */

.lead { font-size: 20px; color: var(--ink-secondary); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.note { color: var(--muted); font-size: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 20px; margin: 20px 0; }
.card h2 { margin-top: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; min-width: 48px; padding: 12px 22px;
  border-radius: 16px; border: 2px solid var(--ink); background: var(--surface);
  color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.button:hover { background: var(--fill); color: var(--ink); }
.button.primary { background: var(--maroon); border-color: var(--maroon); color: #FFFFFF; }
.button.primary:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #FFFFFF; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.stores .note { margin: 0; flex-basis: 100%; }

/* Home ------------------------------------------------------------------- */

.hero { background: var(--surface); border-bottom: 1px solid var(--fill); }
.hero-row { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; align-items: center; }
.hero h1 { font-size: 38px; }
.hero-art { justify-self: center; max-width: 360px; width: 100%; }

.band { padding-top: 16px; padding-bottom: 8px; }
.band.last { padding-bottom: 56px; }
.steps li, .rules li { padding-left: 4px; }
.columns { display: grid; gap: 0 20px; }
.columns .card { margin: 12px 0; }

/* Snapshot Capture --------------------------------------------------------- */

.game { display: grid; gap: 24px; }
.game-card { max-width: 280px; justify-self: center; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 24px 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* Legal pages: long text, read on a phone. ------------------------------- */

.legal h2 { font-size: 22px; }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px; border: 1px solid var(--fill); }
.legal th { background: var(--surface); }
.legal p, .legal li { overflow-wrap: anywhere; }

/* Wider screens ------------------------------------------------------------ */

@media (min-width: 760px) {
  h1 { font-size: 40px; }
  .hero h1 { font-size: 48px; }
  .hero-row { grid-template-columns: 1.2fr 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 440px; }
  .columns { grid-template-columns: repeat(3, 1fr); }
  .game { grid-template-columns: 280px 1fr; align-items: start; }
}

/* Signing in (Trello #50) ----------------------------------------------- */

.narrow { max-width: 520px; }
form { margin: 8px 0 24px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 700; margin: 0 0 6px; }
.field .hint { margin: -2px 0 6px; font-size: 16px; color: var(--muted); }
.field input {
  display: block; width: 100%; min-height: 52px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--stroke); border-radius: 12px;
}
.field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--maroon); }
.field .error { margin: 6px 0 0; color: var(--maroon); font-weight: 600; }
.cf-turnstile { margin: 4px 0 18px; min-height: 65px; }

.button.wide { display: flex; width: 100%; }
button.button { font-family: inherit; cursor: pointer; }
button.button[disabled] { opacity: 0.6; cursor: progress; }

.notice { background: var(--surface); border-left: 6px solid var(--ink); border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; }
.notice.problem { border-left-color: var(--maroon); color: var(--maroon); font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.links a { display: inline-flex; align-items: center; min-height: 48px; }

.face .camera { background: var(--ink); border-radius: 20px; overflow: hidden; margin: 20px 0 12px; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.face .camera:has(> :not([hidden])) { display: grid; }
.face .camera video, .face .camera img { width: 100%; height: 100%; object-fit: cover; }
/* A selfie preview reads like a mirror; the photo itself is not flipped. */
.face .camera video { transform: scaleX(-1); }
.face .status { min-height: 1.5em; font-weight: 600; }
.face .actions { display: grid; gap: 12px; margin: 12px 0 20px; }

/* Your account (Trello #51) --------------------------------------------- */

.profile { display: flex; align-items: center; gap: 16px; margin: 0 0 8px; }
.profile h1 { margin-bottom: 4px; }
.profile .lead { margin: 0; }
.face-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--fill); flex: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin: 0 0 12px; }
.stats div { background: var(--canvas); border-radius: 14px; padding: 12px; text-align: center; }
.stats dt { font-size: 15px; color: var(--muted); font-weight: 600; }
.stats dd { margin: 4px 0 0; font-size: 32px; font-weight: 800; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; }
.details dt { font-weight: 700; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.people { list-style: none; padding: 0; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: 14px; padding: 10px 10px 10px 16px; margin: 0 0 10px; }
.people form { margin: 0; }
a.danger { color: var(--maroon); font-weight: 700; }
.button.danger { background: var(--maroon); border-color: var(--maroon); color: #FFFFFF; }
.button.danger:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #FFFFFF; }
form + .button.wide { margin-top: 12px; }
.nowrap { white-space: nowrap; }

/* Photos (Trello #52): albums down the left, photos wide on the right,
   after Apple Photos (Cameron, 2026-10-05). On a phone the albums fold behind
   a button above the photos. ------------------------------------------------ */

.photos-shell { max-width: 1440px; margin: 0 auto; padding: 20px 16px 56px; }
.photos-layout { display: grid; gap: 16px; }
.photo-aside { display: grid; gap: 12px; align-content: start; min-width: 0; }
.games-toggle { justify-self: start; min-height: 48px; padding: 8px 18px; font-size: 17px; }

/* Search (Trello #71): one line, above the games, on a phone too. */
.snapshot-search { display: flex; gap: 8px; }
.snapshot-search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 8px 14px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--fill); border-radius: 12px;
}
.snapshot-search input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--maroon); }
.snapshot-search .button { min-width: 48px; min-height: 48px; padding: 0 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-games { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 8px; max-width: 760px; }
.search-games a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 8px 14px; background: var(--surface); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.search-games a:hover { background: var(--fill); }
.search-games img, .search-games .sidebar-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }

.photo-sidebar { background: var(--surface); border-radius: 20px; padding: 14px 10px; }
.photo-sidebar.folded { display: none; }
.photo-sidebar ul { list-style: none; padding: 0; margin: 0 0 10px; }
.photo-sidebar li { margin: 0; }
.sidebar-heading { margin: 6px 10px 6px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.photo-sidebar a {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 10px; border-radius: 12px; color: var(--ink); text-decoration: none;
}
.photo-sidebar a:hover { background: var(--canvas); }
.photo-sidebar a[aria-current="page"] { background: var(--fill); font-weight: 700; }
.sidebar-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--canvas); color: var(--maroon); font-size: 20px; }
.sidebar-cover { display: block; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--fill); }
.sidebar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.photo-sidebar .note { margin: 0 10px 10px; }

.photo-main { min-width: 0; }
.photo-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin: 0 0 6px; }
.photo-header h1 { margin: 0; }
.photo-sub { margin: 4px 0 0; color: var(--ink-secondary); font-weight: 600; }
.zoom { display: flex; gap: 6px; }
.zoom-button { min-width: 48px; min-height: 48px; padding: 0; font-size: 24px; }
.zoom-button[disabled] { opacity: 0.4; cursor: default; }

.photo-grid { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile, 170px), 1fr)); gap: 12px; }
.photo-grid li { margin: 0; }
.photo-grid a { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: 14px; overflow: hidden; }
.photo-grid a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.photo-grid img, .photo-grid .photo-placeholder { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-grid.small-tiles .photo-caption { display: none; }
/* After the rule above that makes every tile a block, so the words sit in the middle. */
.photo-grid .photo-placeholder { display: grid; place-items: center; }
.photo-placeholder { display: grid; place-items: center; background: var(--fill); color: var(--muted); font-weight: 700; text-align: center; padding: 8px; }
.photo-placeholder.large { aspect-ratio: 4 / 3; font-size: 22px; border-radius: 20px; }
.photo-caption { display: block; padding: 8px 10px; font-size: 15px; line-height: 1.3; }

.photo-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.pager-back { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.pager-position { color: var(--muted); }
.pager-steps { display: flex; gap: 8px; margin-left: auto; }
.pager-steps .button { min-height: 48px; padding: 8px 16px; font-size: 17px; }

.photo-detail { display: grid; gap: 20px; }
.photo-frame { margin: 0; }
.photo-frame img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: 20px; background: var(--ink); }
.photo-title { font-size: 24px; margin: 0 0 4px; }
.photo-side .note { margin-top: 0; }
.photo-actions { display: grid; gap: 12px; margin: 16px 0 20px; }
.photo-actions .button { width: 100%; }
.photo-actions .status { margin: 0; font-weight: 600; min-height: 1.5em; }
.action-list p { margin: 0; }
.action-list a { display: flex; align-items: center; min-height: 48px; }
.choices { border: 0; padding: 0; margin: 0 0 16px; }
.choices legend { font-weight: 700; margin-bottom: 8px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; margin: 0 0 8px; background: var(--surface); border: 2px solid var(--fill); border-radius: 12px; cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--maroon); }
.choice:has(input:checked) { border-color: var(--maroon); }

/* Past games and a game's result (Trello #53), after the app's past game:
   when and who hosted, how it ended, Watch the recap, the standings. */
.game-header { margin: 0 0 8px; }
.game-header h1 { margin: 0; }
.game-sub { margin: 0 0 4px; color: var(--muted); font-weight: 600; }
.game-headline { margin: 6px 0 0; font-size: 26px; font-weight: 800; color: var(--maroon); }
.recap-button { margin: 16px 0 4px; min-height: 52px; padding: 10px 22px; font-size: 18px; gap: 10px; }
.game-header + h2, .standings + .photo-header h2 { margin-top: 28px; }
.photo-header h2 { margin: 28px 0 0; }

.standings { list-style: none; padding: 0; margin: 0 0 8px; background: var(--surface); border-radius: 20px; overflow: hidden; max-width: 720px; }
.standings li { display: grid; grid-template-columns: 24px 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 12px 16px; border-top: 1px solid #EFE8DF; }
.standings li:first-child { border-top: 0; }
.standings li.me { background: #FFF4D6; }
.standing-rank { text-align: right; font-weight: 700; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-weight: 700; font-size: 18px; }
.standing-who { display: flex; flex-direction: column; min-width: 0; }
.standing-name { font-weight: 700; overflow-wrap: anywhere; }
.standing-name.out { text-decoration: line-through; color: var(--muted); }
.standing-state { font-size: 15px; color: var(--muted); }
.standing-state.won { color: var(--maroon); font-weight: 700; }
.standing-captures { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Play my journey (Trello #66): the button, then Order as a segmented control. */
.journey { display: grid; gap: 10px; justify-items: start; margin: 14px 0 18px; }
.journey-play { min-height: 52px; padding: 10px 22px; font-size: 18px; gap: 10px; }
.journey-order { display: inline-flex; flex-wrap: wrap; gap: 0; border: 0; padding: 0; margin: 0; }
.journey-order legend { float: left; width: 100%; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.journey-order label {
  position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 8px 14px; margin: 0 -2px 0 0;
  background: var(--surface); border: 2px solid var(--fill); cursor: pointer; font-size: 16px; font-weight: 600; white-space: nowrap;
}
.journey-order label:first-of-type { border-radius: 12px 0 0 12px; }
.journey-order label:last-of-type { border-radius: 0 12px 12px 0; }
.journey-order label:has(input:checked) { background: var(--maroon); border-color: var(--maroon); color: #fff; z-index: 1; }
.journey-order label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; z-index: 2; }
/* A segmented control, as in the app: the radio stays for the keyboard and
   screen readers, and the filled segment shows the choice. */
.journey-order input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
@media (max-width: 420px) { .journey-order label { padding: 8px 11px; font-size: 15px; } }

.past-games { list-style: none; padding: 0; margin: 12px 0 24px; background: var(--surface); border-radius: 20px; overflow: hidden; max-width: 760px; }
.past-games li { margin: 0; border-top: 1px solid #EFE8DF; }
.past-games li:first-child { border-top: 0; }
.past-games a { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px; color: var(--ink); text-decoration: none; }
.past-games a:hover { background: var(--canvas); }
.past-covers { position: relative; flex: 0 0 72px; height: 60px; }
.past-covers img, .past-cover-blank { position: absolute; top: 4px; width: 40px; height: 46px; border-radius: 3px; object-fit: cover; background: var(--fill); border: 3px solid #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12); box-sizing: content-box; }
.past-covers > :first-child { left: 0; transform: rotate(-6deg); }
.past-covers > :nth-child(2) { left: 18px; transform: rotate(4deg); }
.past-words { display: flex; flex-direction: column; min-width: 0; }
.past-name { font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.past-sub { color: var(--muted); font-size: 16px; }

@media (min-width: 900px) {
  .photos-shell { padding: 28px 24px 64px; }
  .photos-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
  /* The search box and the sidebar stay in view together; the sidebar scrolls inside. */
  .photo-aside { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
  .photo-sidebar { min-height: 0; overflow-y: auto; }
  .photo-detail { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; }
  .photo-side { position: sticky; top: 16px; }
}


/* Watch a game from a computer (Trello #55): the captures, newest first, and
   the standings side by side on a computer; Full screen makes the board big
   enough to read across a room on a TV. ---------------------------------- */

.watch-code { font: 800 40px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 6px; margin: 0 0 16px; word-break: break-all; }
.watch-shell { max-width: 1280px; margin: 0 auto; padding: 20px 16px 56px; }
.watch-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.watch-tools .button { min-height: 48px; padding: 8px 18px; font-size: 17px; }
.watch-status { margin: 0 0 12px; font-weight: 600; color: var(--maroon); }
.watch-status:empty { margin: 0; }
.watch-header { margin: 0 0 8px; position: relative; }
.watch-header h1 { margin: 0; overflow-wrap: anywhere; }
.watch-headline { margin: 6px 0 0; font-size: 24px; font-weight: 800; color: var(--ink-secondary); }
.watch-headline.over { color: var(--maroon); }
.watch-exit { position: absolute; top: 0; right: 0; min-height: 48px; padding: 8px 18px; font-size: 17px; }
.watch-columns { display: grid; gap: 8px 32px; }
.watch-columns h2 { margin: 24px 0 10px; }
.watch-standings .standings { max-width: none; }
.watch-captures { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.watch-captures li { margin: 0; background: var(--surface); border-radius: 14px; overflow: hidden; }
.watch-captures img, .watch-captures .photo-placeholder { display: grid; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.watch-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin: 0; padding: 8px 12px 10px; }
.watch-line { font-weight: 700; overflow-wrap: anywhere; }
.watch-time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.watch-leave { margin: 28px 0 0; }
.watch-leave .note { margin: 8px 0 0; }

@media (min-width: 900px) {
  .watch-columns { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; }
  .watch-standings { position: sticky; top: 16px; }
}

/* The TV board: dark, large type, the newest capture big. It is the
   Fullscreen API's element, or fills the window where there is none. */
.watch-board.tv {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto; margin: 0;
  padding: 32px clamp(16px, 3vw, 48px); background: #120D0E; color: #FFFFFF; font-size: clamp(18px, 1.6vw, 28px);
}
html.watch-tv { overflow: hidden; }
.watch-board.tv h1 { font-size: clamp(36px, 4vw, 72px); color: #FFFFFF; padding-right: 180px; }
.watch-board.tv h2 { color: #F1D9A6; font-size: clamp(22px, 2vw, 36px); }
.watch-board.tv .game-sub { color: #DCD2C6; }
.watch-board.tv .watch-headline { color: #F1D9A6; font-size: clamp(24px, 2.4vw, 44px); }
.watch-board.tv .note { color: #DCD2C6; }
.watch-board.tv .watch-exit { background: #FFFFFF; }
.watch-board.tv .watch-columns { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 clamp(24px, 3vw, 56px); }
.watch-board.tv .watch-captures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.watch-board.tv .watch-captures li { background: #2A2022; color: #FFFFFF; }
.watch-board.tv .watch-captures li:first-child { grid-column: 1 / -1; }
.watch-board.tv .watch-captures li:first-child img, .watch-board.tv .watch-captures li:first-child .photo-placeholder { aspect-ratio: 16 / 9; object-fit: contain; background: #000000; }
.watch-board.tv .watch-captures li:first-child .watch-line { font-size: 1.6em; }
.watch-board.tv .watch-captures li:nth-child(n+8) { display: none; }
.watch-board.tv .watch-time { color: #DCD2C6; font-size: 0.8em; }
.watch-board.tv .standings { background: #2A2022; }
.watch-board.tv .standings li { border-top-color: #3A2E2E; grid-template-columns: 1.4em 2.6em minmax(0, 1fr) auto; }
.watch-board.tv .standings li.me { background: #3A2E2E; }
.watch-board.tv .avatar { width: 2.6em; height: 2.6em; font-size: 0.9em; }
.watch-board.tv .standing-rank, .watch-board.tv .standing-state, .watch-board.tv .standing-name.out { color: #DCD2C6; }
.watch-board.tv .standing-state.won { color: #F1D9A6; }
.watch-board.tv .standing-state { font-size: 0.8em; }
.watch-board.tv .standing-captures { font-size: 1.4em; }
@media (max-width: 760px) {
  .watch-board.tv .watch-columns { grid-template-columns: 1fr; }
  .watch-board.tv h1 { padding-right: 0; padding-top: 56px; }
}

/* Host a game from a computer (Trello #54): the lobby and the control room,
   the main column and a side column on a computer, one column on a phone.
   The full-screen QR fills a projector or a TV. ----------------------------- */

.host-shell { max-width: 1180px; margin: 0 auto; padding: 20px 16px 56px; }
.host-header { margin: 0 0 8px; }
.host-header h1 { margin: 0; overflow-wrap: anywhere; }
.host-tag { display: inline-block; padding: 0 10px; border-radius: 999px; background: #F6DDE1; color: var(--maroon); font-size: 14px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.host-headline { margin: 6px 0 12px; font-size: 22px; font-weight: 800; color: var(--ink-secondary); }
.host-columns { display: grid; gap: 0 28px; }
.host-main, .host-side { min-width: 0; }
.host-side > .actions-row { margin-top: 20px; }

.invite-code { display: grid; gap: 16px; align-items: center; }
.invite-qr { width: min(240px, 100%); }
.qr { display: block; width: 100%; height: auto; }
.invite-words .note { margin: 0; }
.game-code { margin: 0 0 8px; font: 800 44px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 6px; overflow-wrap: anywhere; }
.invite-link { margin: 16px 0 12px; overflow-wrap: anywhere; }
.invite-link .eyebrow { display: block; margin: 0 0 2px; }
.invite-link a { font-weight: 700; }

.countdown { margin: 0; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown-when { margin: 6px 0 4px; font-weight: 600; }
.schedule-none { margin: 0 0 8px; }
.schedule-change { margin: 12px 0 0; }
.schedule-change summary { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--maroon); cursor: pointer; }
.schedule-change form { margin: 12px 0 0; }

.joined-count { margin: 0 0 10px; }
.people.joined li { background: var(--canvas); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.person .avatar { flex: none; width: 40px; height: 40px; font-size: 16px; }
.button.small { min-height: 48px; padding: 8px 16px; font-size: 17px; border-radius: 12px; }
.start-game { margin: 20px 0 8px; }
.start-game .note { margin: 8px 0 0; }
.cancel-game, .end-game { margin: 24px 0 0; }
.cancel-game .note, .end-game .note { margin: 8px 0 0; }

.host-stats { max-width: 520px; }
.host-stats div { background: var(--surface); }
/* A button beside a one-button form lines up with it, rather than stretching to the form's margins. */
.actions-row { align-items: center; }
.actions-row > form { margin: 0; }
.host-stats .of { font-size: 20px; color: var(--muted); font-weight: 700; }
.reported { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reported li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; margin: 0; padding: 12px; background: var(--canvas); border-radius: 16px; }
.reported img, .reported .photo-placeholder { width: 120px; height: 140px; object-fit: cover; border-radius: 8px; }
.reported-line { margin: 0; font-weight: 700; font-size: 20px; }
.reported-words .note { margin: 2px 0 10px; }
.reported .actions-row { margin: 0; }
.reported form { margin: 0; }
.latest { display: flex; align-items: center; gap: 16px; }
.latest img, .latest .photo-placeholder { width: 140px; height: 160px; object-fit: cover; border-radius: 8px; flex: none; }
.latest-line { margin: 0; font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.host-standings { max-width: none; }
.host-standings li { grid-template-columns: 24px 48px minmax(0, 1fr) auto auto; }
.standing-remove { margin: 0; }
.tv-code { margin: 4px 0 12px; font: 800 36px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 4px; }

/* The Host a game page: the games you host, and the form. */
.hosting { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hosting li { margin: 0; }
.hosting a { display: flex; flex-direction: column; min-height: 56px; justify-content: center; padding: 10px 14px; background: var(--canvas); border-radius: 14px; color: var(--ink); text-decoration: none; }
.hosting a:hover { background: var(--fill); }
.hosting-name { font-weight: 700; overflow-wrap: anywhere; }
.hosting-sub { color: var(--muted); font-size: 16px; }
fieldset.choice { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.choice legend { font-weight: 700; margin: 0 0 6px; padding: 0; }
label.radio, label.check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 12px; margin: 0 0 8px; border: 2px solid var(--fill); border-radius: 12px; cursor: pointer; font-weight: 600; }
label.radio input, label.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--maroon); }
label.radio:has(input:checked), label.check:has(input:checked) { border-color: var(--maroon); background: #FBF3F4; }
.hint-inline { display: block; font-weight: 400; font-size: 16px; color: var(--muted); }
.field input[type="datetime-local"] { max-width: 320px; }
.rule { margin: 0 0 18px; }
.token-line { font-weight: 600; }
.notice.attention { border-left-color: #C79A2B; background: #FFF4D6; }
.notice.attention p { margin: 0; }

/* The full-screen QR: white, the QR as big as the screen allows. */
.projector {
  position: fixed; inset: 0; z-index: 30; overflow: auto; background: #FFFFFF; color: #000000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5vh; padding: 24px; text-align: center;
}
html.host-projecting { overflow: hidden; }
.projector-close { position: absolute; top: 16px; right: 16px; }
.projector-name { margin: 0; font-size: clamp(28px, 4.5vw, 72px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; max-width: 90vw; }
.projector-qr { width: min(62vh, 80vw); }
.projector-code { margin: 0; font: 800 clamp(40px, 7vw, 120px)/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.15em; }
.projector-hint { margin: 0; font-size: clamp(18px, 2.2vw, 36px); font-weight: 600; }
.projector-count { margin: 0; font-size: clamp(20px, 2.6vw, 40px); font-weight: 800; color: var(--maroon); }

@media (min-width: 640px) {
  .invite-code { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .host-columns { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; }
}
@media (max-width: 420px) {
  .game-code { font-size: 36px; letter-spacing: 4px; }
  .reported li { grid-template-columns: 1fr; }
  .reported img, .reported .photo-placeholder { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .host-standings li { grid-template-columns: 20px 40px minmax(0, 1fr) auto; }
  .host-standings .standing-remove { grid-column: 3 / -1; }
}
