/* OwleryWorks Live -- the stream.
 *
 * Dark by default, because it is a broadcast watched the way a game stream
 * is; light when the viewer's system or the viewer says so (the themes are
 * the tokens below).
 *
 * The website's Content-Security-Policy refuses inline styles, so everything
 * is here. The only styles set from script are widths and positions through
 * the CSSOM (element.style.width), which that policy allows.
 */

/* ── the themes ──────────────────────────────────────────────────────
 * Dark is the broadcast; light is the same page for a bright room. The
 * viewer's system decides unless they chose on the page (data-theme on
 * <html>, set by theme.js before the first paint). The stage is a screen,
 * so it keeps the dark palette in both -- a video player on a white page.
 */
:root, .stage-frame {
  --bg: #0b0d17; --bg2: #0f1222; --panel: #141830; --panel2: #1b2040; --line: #262c52;
  --text: #eceefb; --dim: #9097c2; --faint: #5d6490;
  --accent: #8b6cff; --accent2: #3cc9ff; --live: #ff3b5c; --gold: #ffc940;
  --green: #3ddc84; --red: #ff5a6e; --amber: #ffab40;
  --sunk: rgba(0, 0, 0, 0.3); --sunk2: rgba(0, 0, 0, 0.5); --track: rgba(255, 255, 255, 0.08);
  --hover-faint: rgba(255, 255, 255, 0.02); --chip: #2a2f55; --hover: #262c55; --accent-line: #3a3380;
  --topbar: rgba(11, 13, 23, 0.86); --season1: #231a52; --season2: #16264a;
  --boss-bg: #2a1424; --boss-line: #5a2638; --clip1: #1f1a44; --clip2: #121630;
  --toast: #1d2248; --glow1: #20184a; --glow2: #0d2b44; --silver: #c9d1e8;
  color-scheme: dark;
}
:root {
  --radius: 14px;
  --gutter: 16px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { 
    --bg: #f5f6fb; --bg2: #ffffff; --panel: #ffffff; --panel2: #eceef8; --line: #dde0ee;
    --text: #151936; --dim: #545b85; --faint: #8990b2;
    --accent: #6a4cf0; --accent2: #0b87bd; --live: #e0213f; --gold: #d99a00;
    --green: #129a58; --red: #d6334c; --amber: #c7730a;
    --sunk: rgba(30, 36, 80, 0.04); --sunk2: rgba(30, 36, 80, 0.07); --track: rgba(21, 25, 54, 0.09);
    --hover-faint: rgba(21, 25, 54, 0.03); --chip: #e5e7f3; --hover: #e1e4f3; --accent-line: #cfc4ff;
    --topbar: rgba(245, 246, 251, 0.88); --season1: #efe9ff; --season2: #e3f1ff;
    --boss-bg: #fff0f2; --boss-line: #f3c2cb; --clip1: #f1edff; --clip2: #ffffff;
    --toast: #ffffff; --glow1: #e7e1ff; --glow2: #dcefff; --silver: #8e97b5;
    color-scheme: light;
   }
}
:root[data-theme="light"] { 
    --bg: #f5f6fb; --bg2: #ffffff; --panel: #ffffff; --panel2: #eceef8; --line: #dde0ee;
    --text: #151936; --dim: #545b85; --faint: #8990b2;
    --accent: #6a4cf0; --accent2: #0b87bd; --live: #e0213f; --gold: #d99a00;
    --green: #129a58; --red: #d6334c; --amber: #c7730a;
    --sunk: rgba(30, 36, 80, 0.04); --sunk2: rgba(30, 36, 80, 0.07); --track: rgba(21, 25, 54, 0.09);
    --hover-faint: rgba(21, 25, 54, 0.03); --chip: #e5e7f3; --hover: #e1e4f3; --accent-line: #cfc4ff;
    --topbar: rgba(245, 246, 251, 0.88); --season1: #efe9ff; --season2: #e3f1ff;
    --boss-bg: #fff0f2; --boss-line: #f3c2cb; --clip1: #f1edff; --clip2: #ffffff;
    --toast: #ffffff; --glow1: #e7e1ff; --glow2: #dcefff; --silver: #8e97b5;
    color-scheme: light;
   }
.stage-frame { color: var(--text); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow1) 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 0%, var(--glow2) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 0.95rem/1.45 var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
h2 { margin: 0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; }
/* `hidden` means hidden, whatever display a class gives the element: the
   season box drew as an empty bar on a company with no season. */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ── the top bar ─────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px var(--gutter);
  background: var(--topbar);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.brand b { letter-spacing: 0.01em; }
.brand-sub { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.18em; }
/* The company's own mark, byte-identical to the website's
   owlery-mark-amber.svg: navy on its amber tile, which reads on both themes. */
.owl { width: 30px; height: 30px; border-radius: 8px; display: block; flex: none; }

.onair {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; background: var(--chip); color: var(--dim);
}
.onair i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.onair[data-mode="live"] { background: var(--live); color: #fff; }
.onair[data-mode="live"] i { animation: pulse 1.4s ease-in-out infinite; background: #fff; }
.onair[data-mode="replay"] { background: var(--amber); color: #1a1100; }
.onair[data-mode="offair"] { background: var(--chip); color: var(--dim); }
.company { color: var(--dim); font-size: 0.85rem; }
.company b { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.viewers { color: var(--dim); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.viewers::before { content: "●"; color: var(--live); margin-right: 6px; font-size: 0.7rem; vertical-align: 1px; }

.btn {
  border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 700;
  background: var(--panel2); color: var(--text); transition: transform 0.12s, background 0.2s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(0.97); }
.btn-share { background: linear-gradient(135deg, var(--accent), #5b3df0); color: #fff; }
.btn-share:hover { background: linear-gradient(135deg, #9c80ff, #6a4ef7); }
.icon-btn {
  border: 0; background: var(--panel2); border-radius: 10px; width: 38px; height: 38px;
  cursor: pointer; display: inline-grid; place-items: center; font-size: 1rem;
}
.icon-btn:hover { background: var(--hover); }
.mode-btn {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text); border-radius: 10px;
  height: 38px; padding: 0 12px; cursor: pointer; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em;
}
.mode-btn:hover { background: var(--hover); }
.mode-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
#soundBtn .snd-on { display: none; }
#soundBtn[aria-pressed="true"] .snd-on { display: inline; }
#soundBtn[aria-pressed="true"] .snd-off { display: none; }

/* ── the season: an XP bar across the top ────────────────────────────── */
.season {
  margin: 12px var(--gutter) 0; padding: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--season1) 0%, var(--season2) 100%);
  border: 1px solid var(--accent-line);
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center;
}
.season-tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.season-title { font-size: 1.15rem; font-weight: 800; }
.season-blurb { color: var(--dim); font-size: 0.85rem; }
.season-when { text-align: right; color: var(--dim); font-size: 0.82rem; white-space: nowrap; }
.season-when b { display: block; color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.xp { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.xp-bar { flex: 1; height: 12px; border-radius: 99px; background: var(--sunk); overflow: hidden; position: relative; }
.xp-bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), #ff8a3d);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent);
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.xp-bar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite;
}
.xp-label { font-size: 0.8rem; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.recap { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.recap div { background: var(--sunk); border-radius: 10px; padding: 6px 12px; min-width: 88px; }
.recap b { display: block; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.recap span { color: var(--dim); font-size: 0.75rem; }

/* ── the layout ─────────────────────────────────────────────────────── */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px;
  padding: 16px var(--gutter) 8px; max-width: 1480px; margin: 0 auto;
}
.col-main, .col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* On one column the stream comes first and the vote right under it. */
@media (max-width: 1080px) {
  .layout { display: flex; flex-direction: column; }
  .col-main, .col-side { display: contents; }
  .col-main > .panel { order: 5; }
  .col-main > .stage { order: 1; }
  .col-main > .design-vote, .col-side > .vote { order: 2; }
  .col-main > .boss { order: 3; }
  .col-side > .feed { order: 4; }
  .col-side > .board { order: 6; }
  .col-main > .deep { order: 9; }
  .season { grid-template-columns: 1fr auto; }
  .season-blurb { grid-column: 1 / -1; }
}

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  min-width: 0;
}
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-head .hint { color: var(--faint); font-size: 0.78rem; }
.empty { color: var(--faint); font-size: 0.88rem; padding: 6px 0; }

/* ── the stage ──────────────────────────────────────────────────────── */
.stage { min-width: 0; outline: none; scroll-margin-top: 72px; }
.stage-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; min-height: 300px;
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0.2), rgba(8, 10, 20, 0.85)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    #0a0c1a;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px var(--sunk2), inset 0 0 120px color-mix(in srgb, var(--accent) 8%, transparent);
}
/* On a phone the stage grows with what is on it rather than squeezing it
   into 16:9: the terminal, then the screenshot at its own proportions. */
@media (max-width: 700px) {
  .stage .stage-frame { aspect-ratio: auto; min-height: 0; }
  .stage-frame > .stage-body { position: relative; inset: auto; min-height: 360px; }
  .stage-frame .onstage .monitor { aspect-ratio: 16 / 10; }
  .stage-frame .onstage .term { max-height: 12em; }
  .stage-frame .pip { position: relative; right: auto; bottom: auto; max-width: none; margin: 0 18px 16px; }
}
.stage-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.badge {
  font-weight: 900; font-size: 0.7rem; letter-spacing: 0.16em; padding: 4px 9px; border-radius: 5px;
  background: var(--live); color: #fff;
}
.badge.replay { background: var(--amber); color: #1a1100; }
.badge.quiet { background: var(--chip); color: var(--dim); }
.stage-where { color: var(--dim); font-size: 0.8rem; background: var(--sunk2); padding: 4px 9px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.stage-body { position: absolute; inset: 0; padding: 52px 18px 16px; display: grid; }

/* on air: a desk at work */
.onstage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
@media (max-width: 700px) { .onstage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } }
.player-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.who-text { min-width: 0; }
.who-name { font-size: 1.35rem; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.who-sub { color: var(--dim); font-size: 0.82rem; overflow-wrap: anywhere; }
.task-title { font-size: 0.95rem; color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 6px; overflow-wrap: anywhere; }
.doing { font-size: 1.6rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.doing small { display: block; font-size: 0.9rem; color: var(--dim); font-weight: 600; font-family: var(--mono); margin-top: 4px; overflow-wrap: anywhere; }
.doing.flash { animation: pop 0.35s ease-out; transform-origin: left center; }
.combo { display: flex; gap: 14px; align-items: baseline; }
.combo b { font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent2); text-shadow: 0 0 18px color-mix(in srgb, var(--accent2) 50%, transparent); }
.combo span { color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.combo .bump { animation: pop 0.3s ease-out; }
.term {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: #b6bce6;
  background: var(--sunk2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; overflow: hidden; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end;
}
.term div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term div:last-child { color: #fff; }
.term div:last-child::after { content: "▌"; animation: blink 1s steps(1) infinite; margin-left: 2px; color: var(--accent2); }
.term .ok { color: var(--green); } .term .bad { color: var(--red); }
.monitor {
  border-radius: 10px; overflow: hidden; background: #05060c; border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 0; position: relative; cursor: zoom-in;
}
.monitor img { width: 100%; height: 100%; object-fit: contain; display: block; }
.monitor .cap { position: absolute; left: 8px; bottom: 8px; font-size: 0.72rem; background: var(--sunk2); padding: 3px 8px; border-radius: 5px; color: var(--dim); }
.monitor.none { cursor: default; color: var(--faint); font-size: 0.85rem; text-align: center; padding: 12px; }
.pip { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(10, 12, 26, 0.9); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 0.78rem; max-width: 46%; display: flex; gap: 8px; align-items: center; }
.pip .avatar { width: 28px; height: 28px; font-size: 0.7rem; border-radius: 8px; }
.pip div { min-width: 0; } .pip div > b, .pip div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pip div > span { color: var(--dim); }

/* quiet: the intermission card */
.quiet { display: grid; place-items: center; text-align: center; gap: 10px; align-content: center; }
.quiet h3 { margin: 0; font-size: 1.7rem; font-weight: 900; }
.quiet p { margin: 0; color: var(--dim); max-width: 36ch; }
.quiet .big-clock { font-size: 3rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold); }
.quiet .orbit { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 2.4s linear infinite; }

/* replay: the time-lapse player */
.replay { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; min-height: 0; }
.replay-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.replay-head b { font-size: 1.2rem; font-weight: 900; overflow-wrap: anywhere; }
.replay-head span { color: var(--dim); font-size: 0.82rem; }
.replay-frame { display: grid; align-content: center; gap: 10px; min-height: 0; }
.replay-frame .doing { font-size: 1.5rem; }
.replay-frame .term { max-height: 9.5em; opacity: 0.85; }
.replay-frame .term div:last-child::after { content: none; }
.replay-controls { display: flex; align-items: center; gap: 10px; }
.scrub { flex: 1; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; cursor: pointer; }
.scrub i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 0.4s linear; }
.chip-btn { border: 1px solid var(--line); background: var(--sunk); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 0.8rem; font-weight: 700; }
.chip-btn:hover { background: var(--panel2); }
.chip-btn[aria-pressed="true"] { background: var(--amber); color: #1a1100; border-color: var(--amber); }

/* the build track: a level map */
.stage-foot { margin-top: 10px; }
.track { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.track:empty { display: none; }
.track-name { font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin: 2px 2px 0; }
.track-name:empty { display: none; }
.node { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; }
.node i {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg);
  display: grid; place-items: center; font-style: normal; font-size: 0.6rem; font-weight: 900;
}
.node span { font-size: 0.68rem; color: var(--faint); white-space: nowrap; }
.node.done i { background: var(--green); border-color: var(--green); color: #04220f; }
.node.done span { color: var(--dim); }
.node.dispatched i { background: var(--accent); border-color: var(--text); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); animation: pulse 1.6s ease-in-out infinite; }
.node.dispatched span { color: var(--text); font-weight: 800; }
.node.failed i { background: var(--red); border-color: var(--red); }
.link { flex: none; width: 22px; height: 2px; background: var(--line); margin-bottom: 18px; }
.link.done { background: var(--green); }

/* ── the moment banner and confetti ─────────────────────────────────── */
.banner {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 5;
  padding: 18px 20px; text-align: center; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(12, 10, 30, 0.94) 12%, rgba(12, 10, 30, 0.94) 88%, transparent);
  border-top: 2px solid var(--tier, var(--accent)); border-bottom: 2px solid var(--tier, var(--accent));
  animation: bannerIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.banner.out { animation: bannerOut 0.4s ease-in forwards; }
.banner .kicker { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tier, var(--accent)); }
.banner .line { font-size: clamp(1.3rem, 3.4vw, 2.3rem); font-weight: 900; line-height: 1.1; margin-top: 4px; overflow-wrap: anywhere; }
.banner .sub { color: var(--dim); font-size: 0.9rem; margin-top: 4px; }
.banner[data-tier="legendary"] { --tier: var(--gold); }
.banner[data-tier="epic"] { --tier: var(--accent); }
.banner[data-tier="win"] { --tier: var(--green); }
.banner[data-tier="hit"] { --tier: var(--red); }
.banner[data-tier="info"] { --tier: var(--accent2); }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.4s cubic-bezier(0.3, 0.6, 0.5, 1) forwards; }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.floaters span { position: absolute; bottom: -30px; font-size: 1.8rem; animation: float 3.2s ease-out forwards; }

/* ── the review as a boss fight ─────────────────────────────────────── */
.boss { border-color: var(--boss-line); background: linear-gradient(180deg, var(--boss-bg) 0%, var(--bg2) 100%); }
.boss h2 { color: var(--red); }
.boss-arena { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 16px; align-items: center; }
@media (max-width: 700px) { .boss-arena { grid-template-columns: 1fr; } .vs { display: none; } }
.hero-side { display: flex; gap: 10px; align-items: center; min-width: 0; }
.hero-side b { display: block; overflow-wrap: anywhere; }
.hero-side span { color: var(--dim); font-size: 0.8rem; font-family: var(--mono); overflow-wrap: anywhere; }
.hearts { margin-top: 4px; font-size: 0.95rem; letter-spacing: 2px; }
.hearts .lost { opacity: 0.25; filter: grayscale(1); }
.vs { font-weight: 900; font-size: 1.4rem; color: var(--red); font-style: italic; }
.panelists { display: flex; flex-wrap: wrap; gap: 8px; }
.seat {
  background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px;
  display: flex; flex-direction: column; min-width: 96px;
}
.seat b { font-size: 0.82rem; text-transform: capitalize; }
.seat span { font-size: 0.72rem; color: var(--dim); }
.seat.hit { border-color: var(--red); box-shadow: 0 0 12px color-mix(in srgb, var(--red) 35%, transparent); }
.seat.clear { border-color: var(--green); }
.boss-state { margin-top: 10px; font-size: 0.88rem; color: var(--dim); }
.boss-state b { color: var(--text); }

/* call it: the viewer's prediction on the round, scored in the browser */
.call { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); border: 1px dashed var(--boss-line); }
.call-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.call-head b { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.call-record { font-size: 0.75rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.call-q { margin: 6px 0 8px; font-weight: 800; }
.call-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.call-opt {
  flex: 1; min-width: 120px; border: 1px solid var(--line); background: var(--panel2); border-radius: 10px;
  padding: 9px 12px; cursor: pointer; font-weight: 800; transition: border-color 0.2s, transform 0.12s;
}
.call-opt:hover { border-color: var(--gold); }
.call-opt:active { transform: scale(0.97); }
.call-opt.mine { background: var(--gold); border-color: var(--gold); color: #1a1100; }
.call-note { margin: 8px 0 0; font-size: 0.76rem; color: var(--faint); }

/* ── the vote ───────────────────────────────────────────────────────── */
.vote { border-color: var(--accent-line); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent), 0 10px 40px color-mix(in srgb, var(--accent) 12%, transparent); }
.vote h2 { color: var(--accent); }
.poll + .poll { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.poll-top { display: flex; gap: 12px; align-items: center; }
.poll-q { font-weight: 800; font-size: 1.05rem; line-height: 1.25; flex: 1; overflow-wrap: anywhere; }
.ring { width: 64px; height: 64px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--track); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring.hurry .fg { stroke: var(--red); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.ring.hurry b { color: var(--red); animation: pulse 1s ease-in-out infinite; }
.poll-status { color: var(--dim); font-size: 0.85rem; margin: 6px 0 2px; }
.poll-status b { color: var(--gold); }
.options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.opt {
  position: relative; text-align: left; width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: var(--sunk); padding: 10px 12px 10px 48px; cursor: pointer; overflow: hidden;
  transition: border-color 0.2s, transform 0.12s;
}
.opt:not(:disabled):hover { border-color: var(--accent); }
.opt:not(:disabled):active { transform: scale(0.985); }
.opt:disabled { cursor: default; }
.opt .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 0; }
.opt > *:not(.fill) { position: relative; z-index: 1; }
.opt .key {
  position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 900; background: var(--panel2); font-size: 0.85rem;
}
.opt .t { display: block; font-weight: 800; overflow-wrap: anywhere; }
.opt .p { display: block; color: var(--dim); font-size: 0.82rem; margin-top: 2px; overflow-wrap: anywhere; }
.opt .kind { display: inline-block; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--accent2); margin-bottom: 2px; }
.opt .n { display: block; font-size: 0.78rem; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--text); }
.opt.mine { border-color: var(--accent2); }
.opt.mine .key { background: var(--accent2); color: #001a26; }
.opt.won { border-color: var(--gold); box-shadow: 0 0 20px color-mix(in srgb, var(--gold) 25%, transparent); }
.opt.won .key { background: var(--gold); color: #1a1100; }
.platforms { margin-top: 12px; }
.platforms-q { font-weight: 800; font-size: 0.85rem; margin-bottom: 6px; }
.platforms-row { display: flex; gap: 8px; }
.platform { position: relative; overflow: hidden; flex: 1 1 0; min-height: 44px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); color: inherit; font: inherit; cursor: pointer; }
.platform:not(:disabled):hover { border-color: var(--accent); }
.platform:disabled { cursor: default; }
.platform .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.platform > *:not(.fill) { position: relative; z-index: 1; }
.platform .name { font-weight: 800; }
.platform .n { font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.platform.mine { border-color: var(--accent2); }
.platform.won { border-color: var(--gold); }
.platforms-note { color: var(--dim); font-size: 0.78rem; margin-top: 6px; }
.opt.won .fill { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 30%, transparent), color-mix(in srgb, var(--gold) 8%, transparent)); }
.opt.voted { animation: pop 0.35s ease-out; }
.share-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); align-items: center; }
.share-row .lbl { color: var(--dim); font-size: 0.8rem; margin-right: 4px; }
.share-row a, .share-row button {
  border: 1px solid var(--line); background: var(--sunk); color: var(--text); border-radius: 9px;
  padding: 6px 11px; font-size: 0.82rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.share-row a:hover, .share-row button:hover { border-color: var(--accent); }
.share-note { color: var(--green); font-size: 0.8rem; min-height: 1em; margin-top: 6px; }

/* a design vote: three pictures, big enough to judge */
.design-vote { border-color: var(--accent-line); }
.design-vote h2 { color: var(--accent); }
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .looks { grid-template-columns: 1fr; } }
.look { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--sunk); display: flex; flex-direction: column; }
.look.mine { border-color: var(--accent2); }
.look.won { border-color: var(--gold); box-shadow: 0 0 24px color-mix(in srgb, var(--gold) 30%, transparent); }
.look img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #05060c; cursor: zoom-in; }
.look-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.look-body b { font-size: 1rem; overflow-wrap: anywhere; }
.look-body p { margin: 0; color: var(--dim); font-size: 0.82rem; flex: 1; overflow-wrap: anywhere; }
.look .bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.look .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.look.won .bar i { background: var(--gold); }
.look-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.look-foot span { font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pick { border: 0; border-radius: 9px; padding: 7px 14px; font-weight: 800; cursor: pointer; background: var(--accent); color: #fff; }
.pick:disabled { background: var(--panel2); color: var(--dim); cursor: default; }

/* ── the play-by-play and reactions ─────────────────────────────────── */
.feed { display: flex; flex-direction: column; }
.feed-filters { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.ff {
  border: 1px solid var(--line); background: var(--sunk); color: var(--dim); border-radius: 99px;
  padding: 3px 10px; font-size: 0.74rem; font-weight: 700; cursor: pointer;
}
.ff:hover { border-color: var(--accent); }
.ff.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ff.who-ff.on { background: var(--gold); border-color: var(--gold); color: #1a1100; }
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 1080px) { .feed-list { max-height: 320px; } }
.feed-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 5px 6px; border-radius: 8px; font-size: 0.84rem; }
.feed-list li.new { animation: slideIn 0.35s ease-out; }
.feed-list li.big { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.feed-list li.bad { background: color-mix(in srgb, var(--red) 6%, transparent); }
.feed-list .ic { text-align: center; }
.feed-list .who { display: inline; border: 0; background: none; padding: 0; margin-right: 0.3em; cursor: pointer; font: inherit; font-weight: 800; }
.feed-list .who:hover { text-decoration: underline; }
.feed-list .msg { min-width: 0; overflow-wrap: anywhere; }
.feed-list .msg em { font-style: normal; color: var(--dim); }
.feed-list time { color: var(--faint); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.react { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.hype { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.hype-bar { flex: 1; height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; }
.hype-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent), var(--live)); transition: width 0.6s ease-out; }
.react-btns { display: flex; gap: 6px; justify-content: space-between; }
.react-btns button {
  flex: 1; border: 1px solid var(--line); background: var(--sunk); border-radius: 10px;
  font-size: 1.25rem; padding: 6px 0; cursor: pointer; transition: transform 0.1s;
}
.react-btns button:hover { border-color: var(--accent); }
.react-btns button:active { transform: scale(0.9); }

/* ── avatars, the squad and the leaderboard ─────────────────────────── */
.avatar {
  width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 1rem; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, #3a2a9a));
  box-shadow: 0 6px 20px var(--sunk);
}
.avatar.busy::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.avatar.sm { width: 34px; height: 34px; font-size: 0.72rem; border-radius: 10px; }
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.member {
  position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; gap: 10px;
  background: var(--sunk); min-width: 0; align-items: flex-start;
}
.member.busy { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.member.followed { border-color: var(--gold); }
.member .m-text { min-width: 0; flex: 1; }
.member b { display: block; font-size: 0.9rem; overflow-wrap: anywhere; }
.member .m-sub { font-size: 0.72rem; color: var(--faint); font-family: var(--mono); overflow-wrap: anywhere; }
.member .m-now { font-size: 0.8rem; color: var(--dim); margin-top: 3px; overflow-wrap: anywhere; }
.member .star { position: absolute; top: 6px; right: 6px; border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--faint); padding: 2px; }
.member .star[aria-pressed="true"] { color: var(--gold); }
.leaders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leaders li { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.leaders .rank { font-weight: 900; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.leaders li:nth-child(1) .rank { color: var(--gold); }
.leaders li:nth-child(2) .rank { color: var(--silver); }
.leaders li:nth-child(3) .rank { color: #d99a6c; }
.leaders .nm { min-width: 0; }
.leaders .nm b { display: block; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders .nm span { font-size: 0.72rem; color: var(--faint); }
.leaders .pts { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent2); }

/* ── the highlight reel ─────────────────────────────────────────────── */
.reel { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.clip {
  flex: none; width: 220px; scroll-snap-align: start; text-align: left; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; background: linear-gradient(160deg, var(--clip1), var(--clip2));
  cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 118px;
}
.clip:hover { border-color: var(--accent); }
.clip[disabled] { cursor: default; }
.clip .ck { font-size: 0.64rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.clip b { font-size: 0.92rem; line-height: 1.25; overflow-wrap: anywhere; }
.clip time { font-size: 0.72rem; color: var(--faint); margin-top: auto; }
.clip .play { font-size: 0.72rem; color: var(--accent2); font-weight: 800; }
.clip[data-tier="legendary"] .ck { color: var(--gold); }
.clip[data-tier="epic"] .ck { color: var(--accent); }
.clip[data-tier="win"] .ck { color: var(--green); }
.clip[data-tier="info"] .ck { color: var(--accent2); }

/* ── the arcade ─────────────────────────────────────────────────────── */
.arcade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cart { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--sunk); display: flex; flex-direction: column; }
.cart .shot { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--clip1), var(--clip2)); display: grid; place-items: center; overflow: hidden; }
.cart .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart .shot span { font-size: 2rem; font-weight: 900; color: rgba(255, 255, 255, 0.25); }
.cart-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cart-body b { overflow-wrap: anywhere; }
.cart-body p { margin: 0; color: var(--dim); font-size: 0.8rem; flex: 1; overflow-wrap: anywhere; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.stage-pill { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; padding: 3px 7px; border-radius: 5px; background: var(--panel2); color: var(--dim); }
.stage-pill.deployed, .stage-pill.passed { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.stage-pill.testing, .stage-pill.building { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.stage-pill.failed { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.play-btn { border: 0; border-radius: 9px; padding: 7px 14px; font-weight: 900; cursor: pointer; background: var(--green); color: #04220f; }
.play-btn::before { content: "▶ "; }
.how-btn { border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; font-weight: 800; cursor: pointer; background: transparent; color: var(--accent2); margin-top: 6px; align-self: flex-start; }
.how-btn::before { content: "⏪ "; }
.arch-btn::before { content: "▦ "; }
.modal-note a, .library-note a { color: var(--accent2); font-weight: 700; }
.library-note { font-size: 0.85rem; }
.modal-body img[src*="architecture.svg"] { background: #fff; padding: 12px; }
/* A diagram is drawn about 1200 px wide, and shrunk to a phone's width its
   words are four pixels high: the picture meant to show how much is in an app
   becomes a grey smudge. Below 900 px it keeps a size its words can be read
   at and its own box scrolls sideways under it, inside the dialog, never the
   page. */
@media (max-width: 900px) {
  .modal-body:has(img[src*="architecture.svg"]) { overflow-x: auto; }
  .modal-body:has(img[src*="architecture.svg"])::before { content: "Swipe sideways to see all of it."; display: block; margin-bottom: 8px; color: var(--dim); font-size: 0.8rem; }
  .modal-body img[src*="architecture.svg"] { width: 900px; max-width: none; }
}
a.how-btn, a.play-btn { text-decoration: none; display: inline-block; }

/* ── the library (/apps/): every app the stream made ───────────────── */
.library-page { max-width: 1100px; margin: 0 auto; padding: 16px; }
.library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 8px 0 18px; }
.library-head h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; }
.library-head p { margin: 4px 0 0; color: var(--dim); max-width: 46rem; }
.library-head a { color: var(--accent2); font-weight: 800; }
.shelf { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shelf .cart-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shelf .cart-actions .how-btn { margin-top: 0; }

/* ── look around: the company's own tabs ────────────────────────────── */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; cursor: pointer; color: var(--dim); font-weight: 700; font-size: 0.85rem; }
.tabs button[aria-selected="true"] { background: var(--panel2); color: var(--text); }
.tabs .n { font-size: 0.7rem; color: var(--faint); margin-left: 4px; }
.rows { display: flex; flex-direction: column; }
.row { border-top: 1px solid var(--line); padding: 8px 4px; cursor: pointer; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--hover-faint); }
.row-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.row-head b { overflow-wrap: anywhere; }
.row-more { padding: 6px 0 2px 12px; cursor: default; font-size: 0.82rem; color: var(--dim); display: flex; flex-direction: column; gap: 2px; }
.row-more .mono { font-family: var(--mono); font-size: 0.76rem; }
.chip { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--panel2); color: var(--dim); }
.chip.working, .chip.running, .chip.reviewing, .chip.open, .chip.in_review, .chip.leased, .chip.dispatched { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.chip.done, .chip.approved, .chip.passed, .chip.landed, .chip.enacted { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.chip.failed, .chip.blocker, .chip.escalated, .chip.stuck, .chip.changes_requested { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.dimtxt { color: var(--dim); font-size: 0.82rem; }
.mono { font-family: var(--mono); }

/* ── toasts, dialogs, footer ────────────────────────────────────────── */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--toast); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px; font-size: 0.86rem; box-shadow: 0 10px 30px var(--sunk2); animation: slideIn 0.3s ease-out; }
.toast b { color: var(--gold); display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.modal {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text);
  padding: 0; width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
}
.modal::backdrop { background: rgba(3, 4, 10, 0.78); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.modal-note { margin: 8px 16px 0; color: var(--dim); font-size: 0.8rem; }
.modal-body { padding: 12px 16px 16px; }
.help-body { font-size: 0.9rem; max-width: 60rem; }
.help-body p { margin: 0 0 10px; color: var(--dim); }
.help-body dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.help-body dt { font-weight: 800; }
.help-body dd { margin: 0; color: var(--dim); }
.help-body dd b { color: var(--text); }
.help-foot { margin-top: 12px; font-size: 0.8rem; }
@media (max-width: 560px) { .help-body dl { grid-template-columns: 1fr; gap: 2px; } .help-body dd { margin-bottom: 8px; } }
.modal-body iframe { display: block; width: 100%; height: min(72vh, 760px); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.modal-body img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* ── a tour: an Android app as its walk on a phone saw it (tour.js) ───── */
.tour { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; outline: none; }
.tour-phone {
  border: 10px solid #000; border-radius: 28px; background: #000; overflow: hidden;
  aspect-ratio: 9 / 20; max-height: min(70vh, 720px); display: grid; place-items: center; touch-action: pan-y;
}
.modal-body .tour-phone img, .tour-phone video { width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block; }
.tour-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tour-caption { margin: 0; font-weight: 700; }
.tour-nav { display: flex; align-items: center; gap: 10px; }
.tour-count { color: var(--dim); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.tour-head { margin: 6px 0 0; color: var(--dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tour-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tour-thumb {
  flex: none; width: 64px; padding: 0; border: 2px solid var(--line); border-radius: 8px; background: none;
  cursor: pointer; overflow: hidden; color: var(--dim); font: inherit; font-size: 0.7rem;
}
.tour-thumb[aria-current="true"] { border-color: var(--accent); }
.modal-body .tour-thumb img { width: 100%; height: auto; border-radius: 0; }
.tour-ways .tour-thumb { width: 84px; }
.tour-thumb span { display: block; padding: 2px 0; }
.tour-side .play-btn { align-self: flex-start; }
.tour-phone.tour-live { aspect-ratio: auto; height: min(78vh, 820px); max-height: none; border-width: 0; border-radius: 12px; background: transparent; }
.tour-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.tour-use:disabled { opacity: 0.55; cursor: default; }
@media (max-width: 700px) {
  .tour { grid-template-columns: 1fr; }
  .tour-phone { max-height: 60vh; width: min(100%, 300px); margin: 0 auto; }
}
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding: 14px var(--gutter) 24px; color: var(--faint); font-size: 0.76rem; max-width: 1480px; margin: 0 auto; }

/* ── motion ─────────────────────────────────────────────────────────── */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes pop { 0% { transform: scale(0.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-50%) scaleY(0.2); } to { opacity: 1; transform: translateY(-50%) scaleY(1); } }
@keyframes bannerOut { to { opacity: 0; transform: translateY(-50%) scaleY(0.2); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.9; } }
@keyframes float { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1.1); } 100% { transform: translateY(-360px) scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .confetti, .floaters { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 12px; }
  .top { gap: 8px; }
  .company { order: 5; width: 100%; font-size: 0.8rem; }
  .brand-sub { display: none; }
  .doing { font-size: 1.25rem; }
  .who-name { font-size: 1.1rem; }
  .avatar { width: 44px; height: 44px; }
  .season { margin-top: 10px; padding: 10px 12px; gap: 4px 12px; }
  .season-blurb { display: none; }
  .season-when { text-align: right; }
  .season-when b { font-size: 0.95rem; }
  /* the recap is for the end of a season; mid-season a phone gets the bar */
  .season[data-state="running"] .recap { display: none; }
}

/* the on-air pill when nothing has arrived for a minute: not off air, not live */
.onair[data-mode="silent"] { opacity: .85; }
.onair[data-mode="silent"] i { background: #d08a00; animation: none; }

/* ── simple: the stream, the vote, the play-by-play and the arcade ─────
 * One column, the game folded away, and nothing that moves on its own: a
 * viewer who wants to know what the company is doing without being played
 * to. Chosen on the page or by /live/?mode=simple, applied before the first
 * paint by theme.js. Everything the mode hides is still drawn to its state,
 * so switching back costs nothing and the page's one state stays one. */
html[data-mode="simple"] body { background: var(--bg); }
html[data-mode="simple"] .layout { display: flex; flex-direction: column; max-width: 960px; }
html[data-mode="simple"] .col-main, html[data-mode="simple"] .col-side { display: contents; }
html[data-mode="simple"] .col-main > .stage { order: 1; }
html[data-mode="simple"] .col-main > .design-vote, html[data-mode="simple"] .col-side > .vote { order: 2; }
html[data-mode="simple"] .col-side > .feed { order: 3; }
html[data-mode="simple"] .col-main > .arcade-panel { order: 4; }
html[data-mode="simple"] .boss, html[data-mode="simple"] .reel-panel, html[data-mode="simple"] .squad-panel,
html[data-mode="simple"] .deep, html[data-mode="simple"] .board, html[data-mode="simple"] .react,
html[data-mode="simple"] .pip, html[data-mode="simple"] .confetti, html[data-mode="simple"] .floaters,
html[data-mode="simple"] .recap, html[data-mode="simple"] #soundBtn, html[data-mode="simple"] .viewers { display: none !important; }
html[data-mode="simple"] .stage-frame { box-shadow: none; aspect-ratio: auto; min-height: 0; }
html[data-mode="simple"] .stage-frame > .stage-body { position: relative; inset: auto; min-height: 320px; }
html[data-mode="simple"] .onstage .monitor { aspect-ratio: 16 / 10; }
html[data-mode="simple"] .onstage .term { max-height: 12em; }
html[data-mode="simple"] .vote { box-shadow: none; }
html[data-mode="simple"] .panel { background: var(--panel); }
html[data-mode="simple"] .banner { animation: none; background: rgba(12, 10, 30, 0.94); }
html[data-mode="simple"] .banner.out { animation: none; opacity: 0; transition: opacity 0.3s; }
html[data-mode="simple"] .onair i, html[data-mode="simple"] .node.dispatched i, html[data-mode="simple"] .term div:last-child::after,
html[data-mode="simple"] .xp-bar i::after, html[data-mode="simple"] .quiet .orbit, html[data-mode="simple"] .doing.flash,
html[data-mode="simple"] .combo .bump, html[data-mode="simple"] .ring.hurry b, html[data-mode="simple"] .feed-list li.new,
html[data-mode="simple"] .opt.voted, html[data-mode="simple"] .toast { animation: none; }
html[data-mode="simple"] .term div:last-child::after { content: none; }
html[data-mode="simple"] .quiet .orbit { border-top-color: var(--line); }
