/* Startup Frenzy phone client.
   The look follows the game: ink and warm paper, one loud accent at a time (acid lime, hot pink,
   ultraviolet, cyan), Anton headlines, hard ink shadows, stickers at an angle. Rules, numbers and
   buttons stay straight and calm; only the decoration tilts.
   Palette and type: Cards/collage/recipes.json, Cards/gallery.html, Runtime/StartScreen.cs. */

@font-face { font-family: "Anton"; src: url(/cards/fonts/Anton-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo Narrow"; font-weight: 400; src: url(/cards/fonts/ArchivoNarrow-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo Narrow"; font-weight: 700; src: url(/cards/fonts/ArchivoNarrow-Bold.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Serif Display"; font-style: italic; src: url(/cards/fonts/DMSerifDisplay-Italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Space Mono"; font-weight: 700; src: url(/cards/fonts/SpaceMono-Bold.woff2) format("woff2"); font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #181414;
  --ink-2: #241e25;
  --ink-3: #352c37;
  --paper: #F6F1E6;
  --paper-2: #E9E1CF;
  --white: #FFFEFA;
  --line: #cfc7b4;
  --muted: #6b6573;
  --muted-on-ink: #b3aab9;
  --lime: #E6F02A;
  --lime-soft: #D6F35B;
  --pink: #FF2E88;
  --cyan: #19C9E8;
  --purple: #6544EE;
  --orange: #FF6A13;
  --red: #E8272A;
  --display: "Anton", "Arial Narrow", Impact, "Haettenschweiler", sans-serif;
  --body: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad-l: max(12px, env(safe-area-inset-left));
  --pad-r: max(12px, env(safe-area-inset-right));
  --hard: 0 4px 0 #000;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { height: 100%; background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* The card backs' ink-and-halftone field. Loud behind the join card, quiet behind the game. */
body {
  --dot: rgba(255, 46, 136, .5);
  margin: 0; height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  background: radial-gradient(circle, var(--dot) 1.6px, transparent 2px) 0 0 / 15px 15px, var(--ink);
  color: var(--paper);
  font: 400 17px/1.3 var(--body);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
body[data-screen="game"] { --dot: rgba(255, 46, 136, .13); }
body[data-screen="lobby"] { --dot: rgba(255, 46, 136, .3); }

button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; margin: 0; }
button:disabled { cursor: default; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
img { display: block; }

.screen { flex: 1 1 auto; min-height: 0; position: relative; }

/* ---------------------------------------------------------------- shared pieces */

.btn {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px;
  width: 100%; min-height: 52px; padding: 8px 16px;
  border: 2.5px solid var(--ink); border-radius: 12px;
  font: 400 20px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; text-align: center;
  box-shadow: var(--hard);
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn small { font: 400 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; opacity: .85; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-paper { background: var(--white); color: var(--ink); }
.btn-danger { background: var(--white); color: #b0151a; border-color: #b0151a; box-shadow: 0 4px 0 #b0151a; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: none; }
.btn-ghost:active:not(:disabled) { background: #ffffff1c; box-shadow: none; }
.btn-link { background: none; border-color: transparent; box-shadow: none; color: var(--muted); font: 700 16px var(--body); text-transform: none; text-decoration: underline; min-height: 44px; }
.btn-small { min-height: 44px; font-size: 16px; width: auto; padding-inline: 20px; }
.btn.is-sending { position: relative; color: transparent; }
.btn.is-sending > * { visibility: hidden; }
.btn.is-sending::after, .opt.is-sending::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.paper {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 16px; box-shadow: 7px 9px 0 rgba(0, 0, 0, .5);
}
.paper::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 6px; background: var(--lime);
}

.tag {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 6px 1px;
  font: 700 10px/1.3 var(--mono); letter-spacing: .08em; border-radius: 4px;
  background: var(--ink); color: var(--paper); white-space: nowrap;
}
.tag-you { background: var(--purple); color: #fff; }
.tag-bot { background: var(--ink-3); color: var(--paper); }
.tag-off { background: var(--red); color: #fff; }
.tag-turn { background: var(--lime); color: var(--ink); }
.tag-profit { background: #1f8f4e; color: #fff; }

.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px 2px 7px; border-radius: 999px;
  font: 700 13px/1.25 var(--body); background: var(--paper-2); color: var(--ink); white-space: nowrap;
  border: 1.5px solid var(--ink);
}
.chip i { font: 700 9.5px/1.5 var(--mono); font-style: normal; letter-spacing: .06em; padding: 1px 6px 0; border-radius: 999px; background: var(--ink); color: var(--paper); }
.chip.heat-none { padding-right: 7px; }
.chip.heat-fire { background: var(--orange); }
.chip.heat-fire i { background: var(--ink); color: #ffd9a8; }
.chip.heat-hot { background: var(--lime); }
.chip.heat-meh { background: #a8e6ee; }
.chip.heat-dead { background: #cfcac0; color: #45414b; }
.chip.heat-dead i { background: #5b5661; }

.dots { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.medal {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--seat, var(--paper-2)); color: var(--ink); border: 2.5px solid var(--ink);
  font: 400 17px/1 var(--display);
}

.banner {
  flex: none; padding: calc(7px + env(safe-area-inset-top)) var(--pad-r) 7px var(--pad-l); text-align: center;
  font: 700 13px/1.3 var(--mono); letter-spacing: .02em; background: var(--pink); color: #fff;
}
.banner-stop { background: var(--red); }
.banner-calm { background: var(--purple); }
/* The round end's Market Wrap, in ticker form: the table's own words, so they are given room to run. */
.banner-ticker { font-size: 11px; line-height: 1.35; letter-spacing: .04em; }

.toast {
  position: fixed; left: 50%; bottom: calc(136px + env(safe-area-inset-bottom)); transform: translateX(-50%) rotate(-1deg);
  z-index: 60; max-width: min(92vw, 420px); width: max-content; padding: 10px 14px; pointer-events: none;
  background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px;
  box-shadow: 4px 5px 0 var(--pink); font: 700 16px/1.25 var(--body); text-align: center;
  animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(8px) rotate(-1deg); } }

.noscript { position: fixed; inset: auto 0 0; padding: 16px; background: var(--red); color: #fff; text-align: center; }

/* The Front Page the TV is printing, on this phone too (Documentation/145-front-page-on-the-phone.md):
   one sheet of newsprint over whatever this phone was looking at, for the hold the screen sent, and a tap
   anywhere on it hands the phone back. The words are the screen's own; only the paper is drawn here. */
.front {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) var(--pad-r) calc(16px + env(safe-area-inset-bottom)) var(--pad-l);
  background: rgba(12, 9, 12, .82);
}
.front-sheet {
  width: min(100%, 520px); max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 16px 12px; background: var(--paper); color: var(--ink); border-radius: 6px;
  box-shadow: 8px 14px 0 rgba(0, 0, 0, .36); animation: press .42s ease-out;
}
@keyframes press { from { opacity: 0; transform: translateY(54px) rotate(-6deg); } }
.front-mast {
  margin: 0 0 6px; padding-bottom: 6px; border-bottom: 3px solid var(--ink);
  font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere;
}
.front-top { display: flex; gap: 14px; align-items: flex-start; }
/* No face on a sheet about no founder: the words take the whole column rather than leaving a gap. */
.front-face {
  flex: 0 0 76px; display: grid; gap: 4px; justify-items: center; padding: 8px 4px;
  border: 3px solid var(--ink); background: var(--seat, var(--white));
}
.front-face b { font: 400 34px/1 var(--display); }
.front-face small { font: 700 9px/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; text-align: center; }
.front-words { flex: 1; min-width: 0; display: grid; gap: 6px; }
.front-kicker { margin: 0; font: 700 10.5px/1.3 var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.front-kicker b { color: #c4125f; }
.front-headline { margin: 0; font: 400 28px/1.02 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.front-deck { margin: 0; font: 400 16px/1.3 var(--body); overflow-wrap: anywhere; }
.front-quote {
  margin: 2px 0 0; padding-left: 10px; border-left: 4px solid var(--seat, var(--ink));
  font: italic 400 17px/1.3 var(--serif); overflow-wrap: anywhere;
}
.front-chip { margin: 2px 0 0; }
.front-chip span {
  display: inline-block; padding: 4px 12px 3px; border-radius: 13px; background: var(--seat, var(--lime));
  font: 700 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.front-filing {
  margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--line);
  font: 700 9.5px/1.3 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; overflow-wrap: anywhere;
}
.front-sheet[data-mine="1"] { box-shadow: 0 0 0 4px var(--pink), 8px 14px 0 rgba(0, 0, 0, .36); }
.front-skip { margin-top: 10px; }
@media (max-width: 380px) {
  .front-top { gap: 10px; }
  .front-face { flex-basis: 62px; }
  .front-headline { font-size: 24px; }
}

/* A press clipping on this phone (Documentation/159-phone-clippings.md): the phone size of the printed
   clipping template (Documentation/103-press-layouts.md) — the picture band across the top and the story
   under it — opened off a headline the ticker is running, and the two-party VS clipping for a story about
   two founders. Every word is the screen's own; only the paper is drawn here.

   Nothing in the story column may run wider than the column, at 390 design px or narrower: the printed
   template refuses a block that will not fit rather than printing off the edge, and the way that holds here
   is that every block wraps (`overflow-wrap: anywhere`) and no row of the band can push the column out. */
.clipping {
  position: fixed; inset: 0; z-index: 72; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) var(--pad-r) calc(16px + env(safe-area-inset-bottom)) var(--pad-l);
  background: rgba(12, 9, 12, .82);
}
.clip-paper { width: min(100%, 520px); max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.clip-sheet {
  padding: 12px 16px; background: var(--paper); color: var(--ink); border-radius: 6px;
  box-shadow: 8px 14px 0 rgba(0, 0, 0, .36);
}
/* The picture band: across the top, as the phone and share sizes of the template run it. */
.clip-band {
  display: flex; gap: 10px; align-items: stretch; justify-content: flex-start;
  margin: 0 0 10px; padding-bottom: 10px; border-bottom: 3px solid var(--ink);
}
.clip-face {
  flex: 1 1 0; min-width: 0; display: grid; gap: 4px; justify-items: center; padding: 8px 4px;
  border: 3px solid var(--ink); background: var(--seat, var(--white));
}
.clip-face b { font: 400 32px/1 var(--display); }
.clip-face small {
  font: 700 9px/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  overflow-wrap: anywhere; text-align: center;
}
/* A clipping about one founder keeps the band a band: one face, not a stripe across the sheet. */
.clip-sheet[data-vs="0"] .clip-face { flex: 0 1 50%; }
.clip-mark {
  flex: 0 0 auto; align-self: center; padding: 3px 7px; background: var(--ink); color: var(--paper);
  font: 400 20px/1 var(--display); letter-spacing: .04em;
}
.clip-kicker {
  margin: 0 0 4px; font: 700 10.5px/1.3 var(--mono); letter-spacing: .12em; color: var(--muted);
  text-transform: uppercase; overflow-wrap: anywhere;
}
.clip-headline { margin: 0; font: 400 27px/1.02 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.clip-deck { margin: 7px 0 0; font: 400 16px/1.3 var(--body); overflow-wrap: anywhere; }
.clip-chip { margin: 9px 0 0; }
.clip-chip span {
  display: inline-block; max-width: 100%; padding: 4px 12px 3px; border-radius: 13px;
  background: var(--seat, var(--lime)); font: 700 12px/1.2 var(--mono); letter-spacing: .06em;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.clip-footer {
  margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--line);
  font: 700 9.5px/1.3 var(--mono); letter-spacing: .08em; color: var(--muted);
  text-transform: uppercase; overflow-wrap: anywhere;
}
.clip-done { margin-top: 10px; width: 100%; }
@media (max-width: 380px) {
  .clip-band { gap: 8px; }
  .clip-headline { font-size: 24px; }
}
/* The clipping inside the quote sheet is the paper the founder's line will run on, not a sheet of its own. */
.quote-pick .clip-sheet { padding: 10px 12px; box-shadow: 4px 7px 0 rgba(0, 0, 0, .28); }

/* ---------------------------------------------------------------- join */

.join {
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(18px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) calc(58px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}
.stage { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tape {
  position: absolute; left: -10%; right: -10%; bottom: 128px; height: 38px; transform: rotate(-7deg);
  background: repeating-linear-gradient(-45deg, var(--lime) 0 22px, var(--ink) 22px 44px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, .4);
}
.cut { position: absolute; background: center / contain no-repeat; filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .45)); }
.cut-a { width: 140px; height: 62px; right: -34px; top: 118px; transform: rotate(11deg); background-image: url(/cards/industry/IDE-004.png); }
.cut-b { width: 170px; height: 76px; left: -40px; bottom: 150px; transform: rotate(-9deg); background-image: url(/cards/industry/IDE-006.png); }
.stick {
  position: absolute; padding: 4px 12px; font: 400 22px/1.1 var(--display); letter-spacing: .02em; white-space: nowrap;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, .45); border-radius: 4px;
}
.stick-a { right: -10px; bottom: 76px; transform: rotate(-8deg); background: var(--pink); color: #fff; }
.stamp {
  position: absolute; padding: 3px 10px; font: 400 20px/1.1 var(--display); letter-spacing: .08em; white-space: nowrap;
  border: 3px solid currentColor; border-radius: 6px; opacity: .9;
}
.stamp-a { left: 14px; bottom: 62px; transform: rotate(6deg); color: var(--cyan); }

.mast { position: relative; text-align: center; margin: 6px 0 20px; }
.title {
  font: 400 clamp(52px, 18.5vw, 92px)/.92 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--white);
  text-shadow: -3px 0 var(--cyan), 3px 0 var(--pink); max-width: 6.2em; margin: 0 auto;
}
.tagline {
  display: inline-block; margin-top: 10px; padding: 6px 14px; transform: rotate(-2.5deg);
  background: var(--lime); color: var(--ink); font: 400 clamp(15px, 4.6vw, 20px)/1.1 var(--display); letter-spacing: .04em;
  border-radius: 4px; box-shadow: 3px 4px 0 rgba(0, 0, 0, .45);
}

.join-card { width: 100%; max-width: 400px; padding: 24px 20px 18px; display: flex; flex-direction: column; }
.join-card h2 { font: 400 28px/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.join-card label { font: 700 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.join-card input {
  width: 100%; height: 54px; margin-bottom: 14px; padding: 0 14px;
  background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px;
  font: 700 20px/1 var(--body); outline-offset: 2px;
}
.join-card input::placeholder { color: #b9b2a6; font-weight: 400; }
.join-card .code-input {
  height: 68px; text-align: center; text-transform: uppercase; padding: 0 0 0 .35em;
  font: 700 36px/1 var(--mono); letter-spacing: .35em;
}
.join-card .code-input::placeholder { letter-spacing: .35em; font-weight: 700; color: #ddd6c8; }
.join-msg {
  margin: -2px 0 12px; padding: 8px 10px; border-left: 5px solid var(--pink); background: #ffe3ef; color: #7a0c3c;
  font: 700 16px/1.25 var(--body); border-radius: 0 8px 8px 0;
}
.join-card .btn-primary { min-height: 60px; font-size: 26px; }
.fine { margin-top: 12px; text-align: center; font: italic 400 15px/1.3 var(--serif); color: var(--muted); }
.fine + .fine { margin-top: 6px; }
.fine a { color: inherit; }

.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom); background: var(--ink); border-top: 2px solid var(--lime);
}
.ticker-run { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker-run span, .ticker-run .ticker-line {
  padding: 0 18px; font: 700 13px/34px var(--mono); letter-spacing: .06em; color: var(--lime);
  white-space: nowrap; text-transform: uppercase;
}
/* A line the screen sent a clipping for opens it (Documentation/159-phone-clippings.md); a line it sent
   as text alone stays a plain span, which is the ticker this phone has always run. */
.ticker-line {
  border: 0; background: none; cursor: pointer; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 4px; -webkit-tap-highlight-color: transparent;
}
.ticker-line:active { color: var(--white); }
.ticker-run > :nth-child(3n) { color: var(--pink); }
.ticker-run > :nth-child(4n) { color: var(--cyan); }
@keyframes ticker { to { transform: translateX(-50%); } }
/* The ticker belongs to the join screen. It also runs under the lobby — where a phone that arrives
   during play waits for its hand — but only once there are headlines to run (main.js sets data-press),
   so a room still in its lobby is not given a scroller over its own Leave button. */
body[data-screen="game"] .ticker,
body[data-screen="lobby"]:not([data-press="on"]) .ticker { display: none; }
body[data-screen="lobby"][data-press="on"] .lobby { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- lobby */

.lobby {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.lobby > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.lobby-mast { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.wordmark { font: 400 24px/1 var(--display); letter-spacing: .02em; color: var(--white); text-shadow: -2px 0 var(--cyan), 2px 0 var(--pink); }
.code-sticker {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 4px 3px 12px; transform: rotate(2deg);
  background: var(--lime); color: var(--ink); border-radius: 6px; box-shadow: 3px 4px 0 rgba(0, 0, 0, .5);
  font: 700 26px/1.1 var(--mono); letter-spacing: .2em;
}
.code-sticker small { font: 700 10px/1 var(--mono); letter-spacing: .1em; }
.lobby-card { padding: 24px 20px 20px; }
.lobby-name { font: 400 clamp(34px, 11vw, 52px)/.98 var(--display); text-transform: uppercase; overflow-wrap: anywhere; margin: 4px 0 12px; }
.seat-sticker {
  display: inline-block; padding: 5px 12px 4px; transform: rotate(-2deg); border-radius: 5px;
  background: var(--seat); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 400 20px/1 var(--display); letter-spacing: .05em;
}
.seat-audience { background: var(--paper-2); }
.lobby-note { margin-top: 16px; font: italic 400 20px/1.25 var(--serif); color: #3b3542; }
.lobby-note .dots { color: var(--purple); }
.lobby-list { margin-top: 26px; }
.roster { display: grid; gap: 8px; }
.roster li {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px;
  background: var(--ink-2); border: 2px solid var(--ink-3); border-left: 7px solid var(--seat); border-radius: 10px;
}
.roster li.is-audience { opacity: .82; }
.roster-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 19px; }
.roster-seat { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-ink); white-space: nowrap; }
.lobby-foot { margin-top: 26px; display: flex; justify-content: center; }

/* ---------------------------------------------------------------- game shell */

.game { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.g-head {
  background: var(--ink); border-bottom: 2px solid var(--ink-3);
  padding: calc(4px + env(safe-area-inset-top)) var(--pad-r) 8px var(--pad-l);
}
body:has(.banner:not([hidden])) .g-head { padding-top: 4px; }
.g-main {
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 12px var(--pad-r) 28px var(--pad-l);
}
.g-dock {
  background: var(--ink); border-top: 2px solid var(--ink-3);
  padding: 8px var(--pad-r) calc(6px + env(safe-area-inset-bottom)) var(--pad-l);
  display: grid; gap: 8px;
}

/* header */
.hd-top { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.hd-round { display: flex; align-items: baseline; gap: 2px; flex: none; white-space: nowrap; }
.hd-round b { font: 400 19px/1 var(--display); letter-spacing: .03em; }
.hd-round i { font: 700 12px/1 var(--mono); font-style: normal; color: var(--muted-on-ink); }
.hd-phase {
  margin-left: 8px; padding: 3px 7px 2px; border-radius: 4px; background: var(--purple); color: #fff;
  font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
/* Spotlight games (a playtest deal): one thin tag under the round line, the same words as the TV's. */
.hd-spot {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 4px 8px 3px; border: 0; border-radius: 4px;
  background: var(--yellow, #ffd23f); color: var(--ink); text-align: left; cursor: pointer;
}
.hd-spot b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11px/1.3 var(--mono); letter-spacing: .1em; }
.hd-spot i { margin-left: auto; flex: none; font: 700 9.5px/1.3 var(--mono); font-style: normal; letter-spacing: .08em; opacity: .7; }
.over-spot { margin-top: 0; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink); background: var(--yellow, #ffd23f); padding: 4px 8px 3px; border-radius: 4px; }
.sheet-spot b { font-style: normal; font: 700 12px/1.3 var(--mono); letter-spacing: .08em; }
.hd-turn {
  margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 15px/1.2 var(--body); color: var(--muted-on-ink); text-align: right;
}
.hd-turn.mine {
  overflow: visible; padding: 4px 10px 3px; transform: rotate(-2deg); border-radius: 4px;
  background: var(--lime); color: var(--ink); font: 400 17px/1 var(--display); letter-spacing: .04em;
  box-shadow: 2px 3px 0 #000;
}
.hd-turn.over { color: var(--pink); font: 400 17px/1 var(--display); letter-spacing: .04em; }
.icon-btn {
  flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; background: none;
  font: 700 22px/1 var(--mono); letter-spacing: -.1em; color: var(--paper);
}
.icon-btn:active { background: #ffffff22; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 2px; }
.stat { display: grid; gap: 1px; padding: 5px 9px 2px; border-radius: 8px; background: var(--paper); color: var(--ink); min-width: 0; overflow: hidden; }
.stat span { font: 700 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.stat b { font: 400 23px/1.1 var(--display); white-space: nowrap; }
.stat b i { font: 700 11px/1 var(--mono); font-style: normal; color: var(--muted); margin-left: 1px; }
.stat-wealth { background: var(--lime); }
.stat-wealth span, .stat-wealth b i { color: #4b5200; }
/* P32 press Hype (Documentation/102-press-hype.md): a fourth career-tier number, so the strip runs four across. */
.stats-hype { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-hype .stat { padding: 5px 7px 2px; }
.stats-hype .stat b { font-size: 20px; }
.stat-hype { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-3); }

.co { margin-top: 6px; padding: 6px 9px; border-radius: 8px; background: var(--ink-2); border: 1.5px solid var(--ink-3); }
.co-name { display: flex; align-items: center; min-width: 0; }
.co-name b { font: 400 18px/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Rename your own company: small and quiet at the end of the name, still a 32px tap target that does not grow the strip. */
.co-rename {
  margin: -6px 0 -6px auto; flex: none; min-height: 32px; padding: 0 10px; border: 1.5px solid var(--ink-3); border-radius: 999px;
  background: none; color: var(--muted-on-ink); font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.co-rename:active { background: #ffffff22; }
.co-rename:disabled { opacity: .45; }
.co-name:has(.co-rename) { gap: 6px; }
.co-name:has(.co-rename) .tag { margin-left: 0; }
.rename-form { margin-top: 6px; }
.co-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 4px; }
.co-none { font: italic 400 16px/1.3 var(--serif); color: var(--muted-on-ink); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.nums { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; font: 700 10.5px/1.3 var(--mono); letter-spacing: .05em; color: var(--muted-on-ink); white-space: nowrap; }
.nums b { font: 400 16px/1 var(--display); color: var(--paper); letter-spacing: .02em; margin-left: 1px; }

/* P18: the investors on the table in front of you (the hand tab), and under each founder. */
.board { margin-bottom: 18px; padding: 10px 10px 8px; border-radius: 12px; background: var(--ink-2); border: 2px solid var(--ink-3); }
.board .zone-title { margin-bottom: 8px; }
.board .zone-title i { background: var(--pink); color: #fff; }
.board .thumbs { gap: 8px; margin-top: 0; }
.board .thumb { width: 64px; }
.empty-board { padding: 10px 8px; font-size: 15px; border-style: dashed; }
.board-row small { color: var(--pink); }
.jail { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 4px; background: var(--orange); color: var(--ink); font: 700 11px/1.4 var(--mono); letter-spacing: .04em; }

/* dock */
.btn-phase { min-height: 58px; font-size: 22px; }
.btn-phase b { font-weight: 400; }
.btn-phase small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tab {
  position: relative; min-height: 48px; padding: 4px 2px; border: 0; border-radius: 10px; background: none;
  font: 400 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-ink);
}
.tab i {
  display: inline-block; min-width: 20px; margin-left: 4px; padding: 3px 5px 2px; border-radius: 999px; vertical-align: 1px;
  background: var(--ink-3); color: var(--paper); font: 700 11px/1 var(--mono); font-style: normal; letter-spacing: 0;
}
.tab.is-on { background: var(--paper); color: var(--ink); }
.tab.is-on i { background: var(--ink); color: var(--paper); }
.tab:active:not(.is-on) { background: #ffffff1c; }

/* ---------------------------------------------------------------- the decision */

.fire {
  display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 44px; margin-bottom: 12px; padding: 8px 12px; text-align: left;
  border: 0; border-radius: 10px; background: var(--orange); color: var(--ink);
}
.fire b { flex: none; font: 400 15px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.fire span { font: 700 15px/1.2 var(--body); }

.now { position: relative; border-radius: 16px; padding: 18px 14px 16px; margin-bottom: 18px; }
.now-kicker { font: 700 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.prompt { font: 400 26px/1.04 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; margin: 5px 0 0; }
.now-mine, .now-over { background: var(--paper); color: var(--ink); box-shadow: 6px 8px 0 rgba(0, 0, 0, .5); }
.now-mine::before, .now-over::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 6px; background: var(--lime); }
.now-over::before { background: var(--pink); }
.now-mine .now-kicker { color: var(--purple); }
.now-over .now-kicker { color: #c4125f; }

.now-wait { background: var(--ink-2); border: 2px dashed #5a4d5e; }
.now-wait .now-kicker { color: var(--cyan); display: flex; align-items: center; }
.now-wait .prompt { font-size: 34px; }
.wait-prompt { margin-top: 6px; color: var(--muted-on-ink); font-size: 16px; }
.latest { margin-top: 12px; display: grid; gap: 6px; }
.latest li { padding-left: 12px; border-left: 3px solid var(--pink); font: italic 400 17px/1.25 var(--serif); color: var(--paper); overflow-wrap: anywhere; }
.now-wait .btn { margin-top: 16px; }
.hint-line { margin-top: 10px; font: italic 400 15px/1.3 var(--serif); color: var(--muted); }
.now-wait .hint-line { color: var(--muted-on-ink); text-align: center; }
.locked-note { margin-top: 10px; font: 700 14px/1.3 var(--mono); color: #b0151a; }

.group { margin: 16px 0 0; font: 700 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; gap: 10px; margin-top: 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 9px 12px; text-align: left;
  background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: var(--hard);
  transition: transform .06s ease, box-shadow .06s ease;
}
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.opt:disabled { opacity: .5; box-shadow: none; }
.opt.is-sending > * { visibility: hidden; }
.opt-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.opt-text b { font: 400 19px/1.08 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.opt-text small { font: 400 14.5px/1.25 var(--body); color: #4a4452; }
.opt-art { flex: none; width: 52px; height: 52px; object-fit: contain; }
/* An exit route the founder cannot take yet: ghosted, not tappable, with what it still needs. */
.opt-locked { cursor: not-allowed; background: var(--paper-2); border-style: dashed; box-shadow: none; }
.opt-locked .opt-art { opacity: .4; filter: grayscale(1); }
.opt-locked .opt-text b { color: var(--muted); }
.opt-needs { justify-self: start; padding: 2px 6px; background: var(--ink); color: var(--paper); font: 700 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.opt-locked small { color: var(--muted); }
.group-note { margin-left: 6px; color: var(--muted); letter-spacing: .06em; }
.opt-ideas { flex: none; display: grid; gap: 2px; width: 74px; }
.opt-idea { width: 74px; height: 32px; object-fit: contain; }
.opt-found.is-picked { background: var(--lime-soft); box-shadow: 0 4px 0 var(--purple); border-color: var(--purple); }
.found-form { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--paper-2); display: grid; gap: 8px; }
.found-form label { font: 700 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.found-form input {
  width: 100%; height: 54px; padding: 0 12px; background: var(--white); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 10px; font: 400 24px/1 var(--display); letter-spacing: .02em;
}
.hints { display: grid; gap: 8px; margin-top: 12px; }
.hint {
  min-height: 44px; padding: 8px 12px; text-align: left; border: 2px dashed var(--ink); border-radius: 10px; background: none;
  color: var(--ink); font: 700 16px/1.2 var(--body);
}
.hint::after { content: "  ↓"; }

.optcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin-top: 12px; align-items: start; }
.optcard { display: grid; gap: 8px; align-content: start; }
.btn-choose { min-height: 48px; font-size: 16px; background: var(--lime); color: var(--ink); padding: 6px 8px; }

/* final scores */
.scores { display: grid; gap: 8px; margin-top: 14px; }
.score { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--white); border: 2px solid var(--line); }
.score.is-top { background: var(--lime); border-color: var(--ink); box-shadow: var(--hard); }
.score.is-me:not(.is-top) { border-color: var(--purple); }
.score-rank { flex: none; width: 20px; font: 400 24px/1 var(--display); text-align: center; }
.score-who { flex: 1; min-width: 0; display: grid; }
.score-who b { font: 400 20px/1.1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.score-who small { font: 400 14px/1.2 var(--body); color: #4a4452; overflow-wrap: anywhere; }
.score-total { flex: none; font: 400 32px/1 var(--display); }

/* the Year in Review cover (Documentation/117-year-in-review-cover.md): the founder's own, and the
   button that saves the 1080 x 1350 picture of it to this phone */
.cover { margin-top: 16px; padding: 14px; border: 3px solid var(--ink); background: var(--seat, var(--white)); box-shadow: var(--hard); }
.cover-kicker { font: 700 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.cover-headline { margin-top: 6px; font: 400 26px/1.02 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.cover-verdict { margin-top: 8px; font: italic 400 16px/1.3 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.cover-verdict b { font: 400 18px/1.2 var(--display); font-style: normal; text-transform: uppercase; }
.cover .btn { margin-top: 12px; width: 100%; }
.cover .hint-line { color: #3d3730; }
.cover .hint-line.is-warn { color: #b0151a; font-style: normal; }
.cover-shot { display: block; margin-top: 12px; border: 2px solid var(--ink); }
.cover-shot img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- cards */

.zone { margin-bottom: 22px; }
.zone-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font: 400 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--paper);
}
.zone-title::after { content: ""; flex: 1; height: 2px; background: var(--ink-3); }
.zone-title i { padding: 3px 7px 2px; border-radius: 999px; background: var(--ink-3); font: 700 12px/1 var(--mono); font-style: normal; letter-spacing: 0; }
.empty { padding: 18px 12px; border: 2px dashed var(--ink-3); border-radius: 12px; text-align: center; font: italic 400 17px/1.3 var(--serif); color: var(--muted-on-ink); }
.deck-line { margin: 10px 0 20px; font: 700 12px/1.4 var(--mono); letter-spacing: .03em; color: var(--muted-on-ink); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; align-items: start; }
.cards-market { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.card-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: 8px; }
.card-btn:active .face { transform: scale(.97); }
.card-btn.can .face { outline: 3px solid var(--lime); outline-offset: 1px; }
.cards:has(.can) .card-btn:not(.can) .face, .card-btn.cannot .face { opacity: .6; }
.flag {
  position: absolute; left: -4px; bottom: -9px; z-index: 1; padding: 3px 8px 2px; transform: rotate(-4deg); border-radius: 3px;
  background: var(--lime); color: var(--ink); font: 400 14px/1.1 var(--display); letter-spacing: .08em; box-shadow: 2px 2px 0 #000;
}
.flag-inline { position: static; transform: rotate(-3deg); }
/* P18: a Funding card whose heat gate is not met yet. */
.card-btn.gated .face { opacity: .6; }
.need {
  position: absolute; left: -3px; top: 42%; padding: 3px 7px 2px; transform: rotate(-4deg); border-radius: 3px;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--paper);
  font: 700 10px/1.2 var(--mono); letter-spacing: .06em; white-space: nowrap; box-shadow: 2px 2px 0 #000;
}
/* A price that differs from the printed one: a sticker over the card's cost corner. */
.price-stick {
  position: absolute; top: -3px; right: -3px; display: inline-flex; align-items: baseline; justify-content: center; gap: 5px;
  min-width: 72px; min-height: 42px; padding: 6px 8px 5px; transform: rotate(4deg); border-radius: 5px; border: 2px solid var(--ink);
  color: var(--ink); font-family: var(--mono); box-shadow: 2px 3px 0 #000; pointer-events: none;
}
.price-stick b { font: 700 19px/1 var(--mono); }
.price-stick s { font: 700 11px/1 var(--mono); text-decoration-thickness: 2px; opacity: .8; }
.slot-empty { aspect-ratio: 5 / 7; display: grid; place-items: center; border: 2px dashed var(--ink-3); border-radius: 10px; font: 700 12px var(--mono); color: var(--muted-on-ink); }
.mkt-cap { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; margin-top: 8px; }
.mkt-no { font: 700 11px/1.2 var(--mono); color: var(--muted-on-ink); text-transform: uppercase; }
.price { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 9px 1px; border-radius: 6px; background: var(--paper); color: var(--ink); font-family: var(--mono); }
.price b { font: 700 19px/1.2 var(--mono); }
.price s { font: 700 13px/1 var(--mono); color: var(--muted); text-decoration-thickness: 2px; }
/* Less than printed is green, more is red: the same on the card's sticker and in the opened card. */
.price-down { background: #2ED46A; }
.price-up { background: var(--red); color: #fff; }
.price-up s { color: #ffd0d0; }
.price-big b { font-size: 28px; }
.price-big s { font-size: 17px; }

/* A card face: the printed art over a card drawn from the catalog's words. */
.face {
  display: block; position: relative; aspect-ratio: 5 / 7; width: 100%; container-type: inline-size;
  border-radius: 9px; overflow: hidden; background: var(--paper); box-shadow: 0 3px 0 #000, 0 8px 14px -6px #000;
  transition: transform .08s ease;
  --acc: var(--paper-2);
}
/* The corner scales with the card itself (cqw here would read the nearest outer container, or the viewport,
   and turns wide cards into ovals): 6.4% of the width across, the same length down a 5:7 card. */
.face { border-radius: 6.4% / 4.57%; }
.face-employee { --acc: var(--cyan); }
.face-customer { --acc: #8FE22B; }
.face-funding { --acc: var(--pink); }
.face-action { --acc: var(--lime); }
.face-instant { --acc: #8B5CFF; }
.face-tbd { --acc: var(--orange); }
.face-starter { --acc: var(--paper-2); }
.face-distraction { --acc: #B8B2A4; }
.face-news { --acc: var(--red); }
.face-objective, .face-back { --acc: var(--pink); }
.face-idea { --acc: var(--purple); }
.face-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face.has-art { background: none; }
.face.has-art .face-drawn { visibility: hidden; }
.face-drawn {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2.2cqw; padding: 5cqw;
  background: var(--paper); color: var(--ink); border-top: 4cqw solid var(--acc); overflow: hidden;
}
.face-drawn::before {
  content: ""; order: 3; flex: 1 1 0; min-height: 6cqw;
  background: radial-gradient(#18141440 1.2cqw, transparent 1.4cqw) 0 0 / 5cqw 5cqw, var(--acc);
}
.face-kicker { order: 1; font: 700 4.6cqw/1.2 var(--mono); letter-spacing: .1em; padding-right: 22cqw; text-transform: uppercase; }
.face-name { order: 2; font: 400 11cqw/.96 var(--display); text-transform: uppercase; padding-right: 22cqw; overflow-wrap: anywhere; }
.face-cost { position: absolute; top: 3cqw; right: 4cqw; width: 19cqw; height: 19cqw; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 9cqw/1 var(--mono); }
.face-rules { order: 4; padding: 4cqw; background: var(--ink); color: var(--paper); font: 700 5.6cqw/1.22 var(--body); max-height: 58%; overflow: hidden; }
.face-rules:empty { display: none; }
.face-id { order: 5; font: 700 3.6cqw/1 var(--mono); letter-spacing: .1em; opacity: .6; text-align: right; }
.face-objective .face-drawn, .face-back .face-drawn, .face-idea .face-drawn { background: var(--ink); color: var(--paper); border-top-color: var(--acc); }
.face-objective .face-drawn::before, .face-back .face-drawn::before { background: radial-gradient(var(--pink) 1cqw, transparent 1.2cqw) 0 0 / 5cqw 5cqw; }
.face-objective .face-rules, .face-idea .face-rules { background: var(--paper); color: var(--ink); }
.face-objective .face-name, .face-idea .face-name, .face-back .face-name { padding-right: 0; }
.face-back .face-name { font-size: 20cqw; text-shadow: -1cqw 0 var(--cyan), 1cqw 0 var(--pink); }

/* secret objective */
.secret {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; min-height: 64px; padding: 12px; text-align: left;
  background: var(--ink-2); border: 2px dashed #5a4d5e; border-radius: 14px; color: var(--paper);
}
.secret.is-open { grid-template-columns: 120px minmax(0, 1fr); align-items: start; border-style: solid; border-color: var(--pink); }
.secret-text { display: grid; gap: 5px; }
.secret-text b { font: 400 22px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.secret-text span { font-size: 16px; line-height: 1.25; color: var(--muted-on-ink); }
.secret.is-open .secret-text span { color: var(--paper); }
.secret-text i { font: 700 12px/1.3 var(--mono); font-style: normal; color: var(--lime); }
.secret-text small { font: 700 11px/1.3 var(--mono); color: var(--muted-on-ink); letter-spacing: .06em; text-transform: uppercase; }

/* ---------------------------------------------------------------- table */

.founders { display: grid; gap: 10px; }
.founder { padding: 10px 12px; border-radius: 12px; background: var(--ink-2); border: 2px solid var(--ink-3); border-left: 7px solid var(--seat); }
.founder.is-active { border-color: var(--lime); border-left-color: var(--seat); }
.founder-top { display: flex; align-items: center; gap: 10px; }
.founder-name { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.founder-name b { font: 400 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.founder-wealth { flex: none; display: grid; justify-items: end; }
.founder-wealth b { font: 400 26px/1 var(--display); color: var(--lime); }
.founder-wealth small { font: 700 9.5px/1.2 var(--mono); letter-spacing: .1em; color: var(--muted-on-ink); }
.founder-nums { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 8px; font: 700 10.5px/1.5 var(--mono); letter-spacing: .05em; color: var(--muted-on-ink); }
.founder-nums b { font: 400 15px/1 var(--display); color: var(--paper); margin-left: 1px; }
.founder-co { margin-top: 8px; padding-top: 8px; border-top: 1.5px solid var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.founder-co > b { font: 400 16px/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.founder-co .tag { margin-left: 0; }
.founder-co-none { font: italic 400 15px var(--serif); color: var(--muted-on-ink); }
.played { margin-top: 8px; }
.played small { font: 700 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-ink); }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.thumb { width: 52px; }
.thumb .face { box-shadow: 0 2px 0 #000; }

.industries { display: grid; gap: 6px; }
.industry {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 10px; text-align: left;
  background: var(--ink-2); border: 2px solid var(--ink-3); border-radius: 10px; color: var(--paper);
}
.industry.heat-row-fire { border-color: var(--orange); }
.industry.heat-row-hot { border-color: #8f9619; }
.industry.heat-row-dead { opacity: .75; }
.industry-art { flex: none; width: 68px; height: 30px; object-fit: contain; }
.industry-name { flex: 1; min-width: 0; }
.industry-name b { font: 400 18px/1.15 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.industry-name small { display: block; margin-top: 2px; font: 400 14px/1.2 var(--body); color: var(--muted-on-ink); }
.industry .chip { padding: 2px; border: 0; background: none; }
.industry .chip i { font-size: 10.5px; padding: 3px 8px 2px; }
.industry .chip.heat-fire i { background: var(--orange); color: var(--ink); }
.industry .chip.heat-hot i { background: var(--lime); color: var(--ink); }
.industry .chip.heat-meh i { background: #a8e6ee; color: var(--ink); }
.industry .chip.heat-dead i { background: #5b5661; color: var(--paper); }
.deadpool { display: grid; gap: 6px; }
.deadpool li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 10px; background: var(--ink-2); }
.deadpool b { font: 400 16px/1.1 var(--display); text-transform: uppercase; }

.log { display: grid; gap: 8px; counter-reset: none; }
.log li { padding: 8px 10px 8px 12px; border-left: 3px solid var(--ink-3); background: var(--ink-2); border-radius: 0 8px 8px 0; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.log li.is-new { border-left-color: var(--pink); }
.log li b, .latest li b { font: 700 11px/1.4 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); display: block; }
.latest li span { font-style: normal; font-family: var(--body); font-weight: 700; }

/* ---------------------------------------------------------------- sheet */

.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 560px; padding: 0; border: 0;
  max-height: calc(100dvh - 20px - env(safe-area-inset-top));
  background: var(--paper); color: var(--ink); border-radius: 20px 20px 0 0; overflow: hidden;
  box-shadow: 0 -6px 0 var(--lime);
}
.sheet[open] { display: flex; flex-direction: column; animation: rise .2s ease-out; }
.sheet::backdrop { background: rgba(12, 9, 12, .8); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 18px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.sheet-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--white); color: var(--ink); font: 700 26px/1 var(--body); display: grid; place-items: center; padding: 0 0 3px;
}
.sheet-face { width: min(74%, 310px, calc((100dvh - 340px) * 5 / 7)); min-width: 150px; margin: 0 auto 14px; }
.sheet-face .face { box-shadow: 0 4px 0 #000, 0 14px 22px -10px #000; }
.sheet-kicker { font: 700 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--purple); padding-right: 48px; }
.sheet-title { font: 400 28px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 3px 0 8px; overflow-wrap: anywhere; }
.sheet-title.code { font: 700 40px/1.1 var(--mono); letter-spacing: .2em; }
.sheet-text { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.sheet-note { font: italic 400 16px/1.3 var(--serif); color: var(--muted); margin-bottom: 10px; }
.sheet-preview { margin: 0 0 12px; padding: 8px 10px; border-left: 4px solid var(--ink, #1d1b16); background: rgba(0,0,0,.04); border-radius: 0 8px 8px 0; font: 400 15px/1.35 var(--body); }
.sheet-preview b { display: block; font: 700 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.sheet-preview p { margin: 2px 0; }
.sheet-preview .preview-now { font-weight: 700; font-size: 17px; }
.sheet-preview .preview-maybe { font-style: italic; color: var(--muted); }
/* The analyst line about a card nobody has played (Documentation/122-phone-card-rumour.md): the paper's own
   serif on its own paper strip, the cards' flavour face. Deliberately nothing like the preview band above it —
   no ink panel, no capitals — because the one thing it must never read as is a promise about what the card does. */
.sheet-rumor {
  margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #b9a981; background: #f3eddd; border-radius: 0 8px 8px 0;
  font: italic 400 16px/1.32 var(--serif); color: #4a4236; overflow-wrap: anywhere;
}
.sheet-need { font: 700 15px/1.3 var(--body); color: #7a0c3c; padding: 6px 10px; border-left: 4px solid var(--pink); background: #ffe3ef; border-radius: 0 8px 8px 0; }
.sheet-price { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sheet-why { flex: 1; font-size: 15.5px; line-height: 1.3; color: #3b3542; padding-top: 4px; }
.sheet-why ul { display: grid; gap: 2px; }
.sheet-actions { display: grid; gap: 10px; margin-top: 6px; }
.sheet-actions:empty { display: none; }
.sheet-menu { padding-top: 4px; }

/* ---------------------------------------------------------------- P21: poach, Deadpool, News, deals, the ceremony */

/* Earnout deals and Bridge Round debt, under the company */
.deals { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.deal { display: inline-block; padding: 2px 7px; border-radius: 4px; font: 700 11px/1.4 var(--mono); letter-spacing: .03em; overflow-wrap: anywhere; }
.deal-earnout { background: var(--cyan); color: var(--ink); }
.deal-debt { background: var(--red); color: #fff; }
.co-none .deals { flex-basis: 100%; font-style: normal; }

/* The poach reveal, over the panel */
.reveal {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center;
  margin-bottom: 14px; padding: 14px; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 4px var(--pink), 6px 8px 0 rgba(0, 0, 0, .5); animation: rise .2s ease-out;
}
.reveal-won { box-shadow: 0 0 0 4px var(--lime), 6px 8px 0 rgba(0, 0, 0, .5); }
.reveal .now-kicker { color: #c4125f; }
.reveal-won .now-kicker { color: var(--purple); }
.reveal-title { font: 400 24px/1.05 var(--display); text-transform: uppercase; margin: 4px 0 6px; overflow-wrap: anywhere; }
.reveal-note { font: italic 400 15px/1.3 var(--serif); color: var(--muted); margin-bottom: 8px; }
.reveal-face .face { transform: rotate(-3deg); }

/* The quote the paper wants (Documentation/96-phone-quotes.md): the strip above the decision, the ring, and the
   sheet with this founder's own three lines. The strip never covers what the table is waiting on. */
@property --quote-turn { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.quote-strip {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; padding: 10px 12px; text-align: left;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 0 0 4px var(--cyan), 5px 7px 0 rgba(0, 0, 0, .5); animation: rise .2s ease-out;
}
.quote-strip:active { transform: translateY(3px); }
.quote-strip .now-kicker { color: #0b7f98; }
.quote-strip-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.quote-head { font: 400 20px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.quote-strip small { font: 400 14px/1.2 var(--body); color: #4a4452; }
.quote-ring { position: relative; flex: none; width: 40px; height: 40px; }
.quote-ring i {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--cyan) var(--quote-turn), rgba(24, 20, 20, .16) 0);
  mask: radial-gradient(circle, transparent 11px, #000 12px);
  -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px);
  animation: quote-ring var(--quote-ms, 6000ms) linear forwards;
}
.quote-ring b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 15px/1 var(--mono); color: var(--ink);
}
@keyframes quote-ring { from { --quote-turn: 360deg; } to { --quote-turn: 0deg; } }
@media (prefers-reduced-motion: reduce) { .quote-ring i { animation: none; } }
.quote-pick .quote-ring b { color: var(--ink); }
.quote-ring-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.quote-ring-row small { font: 700 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--muted); }
.quote-options { display: grid; gap: 10px; }
.quote-option {
  width: 100%; padding: 12px 14px; text-align: left;
  background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); border-left: 9px solid var(--cyan);
  border-radius: 12px; box-shadow: var(--hard); font: italic 400 18px/1.25 var(--serif); overflow-wrap: anywhere;
}
.quote-option:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.quote-nothing { border-left-color: var(--muted); font: 700 16px/1.25 var(--body); text-transform: uppercase; letter-spacing: .04em; }

/* Poach: pick a rival from their plates */
.plates { display: grid; gap: 10px; margin-top: 12px; }
.plate {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 9px 12px; text-align: left;
  background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); border-left: 9px solid var(--seat); border-radius: 12px; box-shadow: var(--hard);
}
.plate:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.plate:disabled { opacity: .5; box-shadow: none; }
.plate.is-sending > * { visibility: hidden; }
.plate .medal { width: 42px; height: 42px; font-size: 21px; }
.plate-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.plate-text > b { font: 400 21px/1.08 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.plate-text small { font: 400 15px/1.2 var(--body); color: #4a4452; overflow-wrap: anywhere; }
.plate-nums { font: 700 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.plate-nums b { font: 400 16px/1 var(--display); color: var(--ink); }

/* Poach: a fan of face-down cards */
.fan { display: flex; justify-content: center; padding: 18px 8px 8px; margin-top: 8px; }
.fan-card {
  --spread: calc((var(--i) - (var(--n) - 1) / 2));
  position: relative; flex: 0 1 112px; min-width: 0; margin: 0 -14px; padding: 0; border: 0; background: none;
  transform: rotate(calc(var(--spread) * 7deg)) translateY(calc(var(--spread) * var(--spread) * 4px));
  transform-origin: 50% 120%; transition: transform .1s ease;
}
.fan-card:hover:not(:disabled), .fan-card:focus-visible { transform: rotate(calc(var(--spread) * 7deg)) translateY(-12px); z-index: 2; }
.fan-card:disabled { opacity: .55; }
.fan-card .face { outline: 3px solid var(--lime); outline-offset: 1px; }
.fan-no {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); min-width: 30px; padding: 3px 7px 2px; border-radius: 999px;
  background: var(--lime); color: var(--ink); border: 2px solid var(--ink); font: 400 17px/1 var(--display);
}

/* The Deadpool: a company as a card, and the list on the table */
.dp-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 10px; margin-top: 12px; }
.dp-option { display: grid; gap: 8px; align-content: start; }
.dp-note { font: 400 13.5px/1.25 var(--body); color: #4a4452; }
.co-tile {
  display: grid; gap: 6px; align-content: start; aspect-ratio: 5 / 7; padding: 10px; border-radius: 9px; overflow: hidden;
  background: var(--ink); color: var(--paper); border: 3px solid var(--ink); box-shadow: 0 3px 0 #000, inset 0 0 0 2px #5a4d5e;
}
.co-tile-kicker { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 700 10px/1.2 var(--mono); letter-spacing: .12em; color: var(--muted-on-ink); }
.co-tile-cost { padding: 3px 7px 2px; border-radius: 5px; background: var(--lime); color: var(--ink); font: 400 16px/1 var(--display); letter-spacing: .02em; transform: rotate(3deg); white-space: nowrap; }
.co-tile-name { font: 400 22px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.co-tile-ideas { display: grid; gap: 4px; }
.co-tile-idea { display: flex; align-items: center; gap: 6px; min-width: 0; }
.co-tile-idea small { font: 700 13px/1.1 var(--body); overflow-wrap: anywhere; }
.co-tile-art { flex: none; width: 54px; height: 24px; object-fit: contain; }
.co-tile-nums { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2px 10px; font: 700 10px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted-on-ink); }
.co-tile-nums b { font: 400 20px/1 var(--display); color: var(--lime); margin-left: 2px; }
.deadpool li { display: grid; gap: 6px; }
.dp-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.dp-value { font: 700 10.5px/1.4 var(--mono); letter-spacing: .05em; color: var(--muted-on-ink); }
.dp-value b { font: 400 18px/1 var(--display); color: var(--lime); margin-left: 3px; }
.dp-right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dp-right small { font: italic 400 15px/1.3 var(--serif); color: var(--muted-on-ink); }
.dp-right .tag { margin-left: 0; }
.tag-right { background: var(--cyan); color: var(--ink); }

/* Breaking News and Market Disruption */
.news {
  display: flex; gap: 12px; align-items: center; width: 100%; margin-bottom: 12px; padding: 10px 12px; text-align: left;
  border: 2.5px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: var(--hard);
}
.news-up { background: #eaf9c8; }
.news-down { background: #ffe3ef; }
.news-disruption { background: #e3dcff; }
.news-event { background: #fff3b0; }
.news-event .move { margin-top: 2px; }
.news-face { flex: none; width: 64px; }
.news-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.news-kicker { font: 700 10.5px/1.3 var(--mono); letter-spacing: .1em; color: var(--purple); }
.news-down .news-kicker { color: #b0151a; }
.news-name { font: 400 19px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.news-more { font: italic 400 14px/1.2 var(--serif); color: var(--muted); }
.news-list .news { margin-bottom: 8px; }
.move { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.move-art { flex: none; width: 58px; height: 26px; object-fit: contain; }
.move-name { font: 700 15px/1.2 var(--body); }
.move-name i { font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; padding: 2px 5px 1px; border-radius: 4px; background: var(--ink); color: var(--paper); }
.move-heat { display: inline-flex; align-items: center; gap: 4px; }
.move-heat .chip { padding: 2px; }
.move-arrow { font-size: 13px; color: var(--muted); }
.move-arrow.is-up { color: #1f8f4e; }
.move-arrow.is-down { color: var(--red); }

/* Breaking News just revealed, over the panel: the card, the move and every founder it hit */
.news-reveal { align-items: start; }
.news-reveal-good { box-shadow: 0 0 0 4px var(--lime), 6px 8px 0 rgba(0, 0, 0, .5); }
.news-reveal-good .now-kicker { color: var(--purple); }
.news-reveal .reveal-face { padding: 0; border: 0; background: none; }
/* P26 market events: a yellow ring, the stamps in a row, and a Market Correction's six new cards */
.news-reveal-event { box-shadow: 0 0 0 4px #ffd60a, 6px 8px 0 rgba(0, 0, 0, .5); }
.event-stamps { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 2px 0 8px; }
.event-market { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0 0 8px; }
.event-card { min-width: 0; }
.news-reveal .move { margin-bottom: 6px; }
.news-stamp { display: inline-block; padding: 3px 8px 2px; border-radius: 4px; font: 400 15px/1.1 var(--display); letter-spacing: .03em; transform: rotate(-3deg); }
.news-stamp-value { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); }
.news-stamp-runway { background: var(--ink); color: var(--paper); }
.news-hits { list-style: none; display: grid; gap: 4px; margin: 0 0 10px; padding: 0; }
.news-hits li { display: flex; align-items: center; gap: 7px; padding: 3px 8px 3px 4px; border-radius: 6px; background: var(--paper-2, #ece5d3); border-left: 5px solid var(--seat); }
.news-hits b { font: 700 14px/1.2 var(--body); }
.news-hits small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 10.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); }

/* Who is in an industry: a seat-coloured initial per founder, yours ringed */
.owners { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 4px; }
.owner {
  flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--seat, var(--paper-2)); color: var(--ink); border: 1.5px solid var(--ink); font: 400 11px/1 var(--display);
}
.owner.is-you { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--purple); }
.industry-name .owners { margin-left: 6px; }

/* The ceremony's breakdown */
.over-note { margin-top: -4px; font: italic 400 16px/1.3 var(--serif); color: var(--muted); }
.score-parts { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font: 700 10.5px/1.4 var(--mono); letter-spacing: .05em; color: #4a4452; }
.score-parts b { font: 400 15px/1 var(--display); color: var(--ink); margin-left: 2px; }
.score-parts .is-met b { color: #1f8f4e; }
.score-parts .is-missed b { color: #8b8494; }
.score-objective { font-style: italic; }
.score-total { display: grid; justify-items: end; }
.score-total small { font: 700 9px/1.2 var(--mono); letter-spacing: .1em; color: var(--muted); }
.tag-win { background: var(--pink); color: #fff; }
.score.is-top .tag-win { background: var(--ink); color: var(--lime); }

/* ---------------------------------------------------------------- wider and shorter screens */

/* Tablets and big phones held upright: more columns, a centred column of reading width. */
@media (min-width: 600px) {
  .g-head > *, .g-main > *, .g-dock > * { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .cards-market { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .optcards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .opts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .prompt { font-size: 32px; }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* A phone on its side: the status and the buttons move to a column on the left, the cards get the rest. */
@media (orientation: landscape) and (max-height: 540px) {
  .game {
    grid-template-columns: minmax(250px, 34%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "head main" "dock main";
  }
  .g-head { grid-area: head; border-bottom: 0; padding-right: 10px; }
  .g-dock { grid-area: dock; align-self: end; border-top: 0; padding-right: 10px; }
  .g-main { grid-area: main; border-left: 2px solid var(--ink-3); padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .g-head > *, .g-dock > * { max-width: none; }
  .hd-top { flex-wrap: wrap; row-gap: 0; }
  .hd-round { order: 1; flex: 1; }
  .icon-btn { order: 2; }
  .hd-turn { order: 3; flex-basis: 100%; margin: 0 0 6px; text-align: left; }
  .hd-turn.mine { flex-basis: auto; margin-right: auto; }
  .btn-phase { min-height: 50px; font-size: 19px; }
  .tab { min-height: 44px; font-size: 13px; }
  .stat b { font-size: 20px; }
  .toast { bottom: calc(14px + env(safe-area-inset-bottom)); left: 67%; }

  .sheet { inset: 0; margin: auto; max-width: min(760px, 94vw); max-height: calc(100dvh - 16px); border-radius: 18px; box-shadow: 0 0 0 4px var(--lime); }
  .sheet-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
  .sheet-face { width: calc((100dvh - 70px) * 5 / 7); max-width: 40vw; margin: 0; }

  .join { padding-top: calc(10px + env(safe-area-inset-top)); flex-direction: row; justify-content: center; align-items: center; gap: 28px; }
  .join .mast { margin: 0; flex: 0 1 300px; }
  .title { font-size: clamp(44px, 9vw, 72px); }
  .join-card { padding: 18px 18px 12px; }
  .join-card h2, .fine { display: none; }
  .join-card input { height: 46px; margin-bottom: 8px; }
  .join-card .code-input { height: 52px; font-size: 28px; }
  .join-card .btn-primary { min-height: 50px; font-size: 22px; }
  .lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-content: start; }
  .lobby > * { max-width: none; margin: 0; }
  .lobby-mast, .lobby-foot { grid-column: 1 / -1; }
  .lobby-mast { margin-bottom: 12px; }
  .lobby-list { margin-top: 0; }
  .lobby-foot { margin-top: 16px; }
}

/* An iPad on its side (1180x820, 1024x768): two columns, the decision beside the hand. */
@media (orientation: landscape) and (min-width: 960px) and (min-height: 600px) {
  .g-head > *, .g-dock > * { max-width: 1240px; }
  .g-main {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 24px; align-items: start;
    padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right));
  }
  .g-main > * { max-width: none; margin: 0; min-width: 0; }
  #g-now:empty { display: none; }
  #g-now:empty + #g-tab { grid-column: 1 / -1; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* A short phone held upright: the same screen with less air, so the answers stay in view. */
@media (orientation: portrait) and (max-height: 700px) {
  .hd-top { min-height: 40px; }
  .co { margin-top: 5px; padding: 5px 9px; }
  .g-main { padding-top: 10px; }
  .fire { margin-bottom: 10px; padding: 6px 12px; }
  .fire span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .news { padding: 6px 10px; margin-bottom: 10px; gap: 10px; }
  .news-face { width: 38px; }
  .news-name { font-size: 16px; }
  .move-art { width: 44px; height: 20px; }
  .deal { font-size: 10px; padding: 1px 6px; }
  .reveal { grid-template-columns: 72px minmax(0, 1fr); padding: 10px; }
  .reveal-title { font-size: 20px; }
  .now { padding: 15px 12px 14px; margin-bottom: 16px; }
  .prompt { font-size: 23px; }
  .now-wait .prompt { font-size: 30px; }
  .opts { gap: 9px; margin-top: 10px; }
  .opt { min-height: 58px; padding: 7px 10px; }
  .btn-phase { min-height: 50px; font-size: 20px; }
  .btn-phase small { display: none; }
  .tab { min-height: 44px; }
  .g-dock { gap: 6px; padding-top: 6px; }
  .toast { bottom: calc(118px + env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  .hd-phase { margin-left: 5px; }
  .stat { padding-inline: 7px; }
  .stat b { font-size: 21px; }
  .prompt { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dots i { opacity: .7; }
}

/* The founder's mugshot in the lobby: optional, one photo, and the host prints it. */
.mugshot { margin-top: 14px; border-top: 4px solid var(--seat, var(--ink)); }
.mugshot .deck-line { margin: 6px 0 12px; }
.mugshot-take { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
