/* CUW AI Lab display — 1920×1080 design stage, scaled to the screen by app.js (--s). */
:root {
  --navy-deep: #00121f;
  --navy: #002641;
  --blue: #005596;
  --sky: #90b9e2;
  --gold: #faa634;
  --white: #ffffff;
  --ink: rgba(255, 255, 255, 0.94);
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.5);
  --line: rgba(144, 185, 226, 0.18);
  --mc: #faa634;            /* active model color (theater) */
  --s: 1;
  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; width: 100%; height: 100%; overflow: hidden;
  background: #000a14; color: var(--ink); cursor: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px; overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--s));
  transform-origin: 50% 50%;
  font-family: var(--body);
  background:
    radial-gradient(1200px 700px at 12% -12%, rgba(0, 85, 150, 0.62), transparent 62%),
    radial-gradient(900px 600px at 104% 112%, rgba(0, 85, 150, 0.42), transparent 60%),
    linear-gradient(180deg, #001b30 0%, var(--navy-deep) 100%);
}
#lake { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; opacity: 0.9; }

/* ---------- header ---------- */
.top {
  position: absolute; left: 40px; right: 40px; top: 10px; height: 92px;
  display: flex; align-items: center; gap: 36px;
}
.brand { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.logo { height: 70px; width: auto; display: block; }
.rule { width: 2px; height: 62px; background: linear-gradient(180deg, transparent, var(--sky), transparent); opacity: 0.6; }
.wordmark .lab {
  font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1;
  letter-spacing: 0.04em; color: var(--white); white-space: nowrap;
}
.wordmark .sub { font-size: 23px; color: var(--sky); margin-top: 6px; letter-spacing: 0.01em; }
.status { display: flex; align-items: center; gap: 26px; }
.live { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--white); }
.live .dot {
  width: 18px; height: 18px; border-radius: 50%; background: #ff4d5e;
  box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.7); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.65); } 80%, 100% { box-shadow: 0 0 0 18px rgba(255, 77, 94, 0); } }
.reconnect { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); opacity: 0.6; }
.clock { font-family: var(--display); font-weight: 600; font-size: 40px; font-variant-numeric: tabular-nums; color: var(--white); min-width: 150px; text-align: right; }
.cta {
  background: var(--gold); color: var(--navy); border-radius: 18px; padding: 12px 26px 12px;
  box-shadow: 0 10px 40px rgba(250, 166, 52, 0.28);
}
.cta-q { font-size: 21px; font-weight: 500; line-height: 1.1; }
.cta-a { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: 0.01em; }

/* ---------- main stage ---------- */
.main {
  position: absolute; left: 40px; right: 40px; top: 112px; height: 610px;
  display: grid; grid-template-columns: 1fr 640px; gap: 16px;
  transition: opacity 700ms ease;
}
.main.away, .machines.away { opacity: 0; }

/* theater */
.theater {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(160deg, rgba(0, 38, 65, 0.86), rgba(0, 24, 42, 0.86));
  border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: auto auto auto minmax(0, 1fr);
  column-gap: 30px; padding: 24px 28px 24px 40px;
}
.theater::before { /* the model rail */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--mc);
  transition: background 600ms ease;
}
.th-glow {
  position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(600px 420px at 18% 30%, var(--mc), transparent 70%);
  opacity: 0.13; transition: background 900ms ease;
}
.th-head { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; min-width: 0; }
.chip {
  display: inline-flex; align-items: baseline; gap: 14px; padding: 10px 22px 11px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--mc) 20%, transparent); border: 2px solid var(--mc);
  white-space: nowrap; flex: none; max-width: 100%; overflow: hidden; transition: border-color 600ms ease, background 600ms ease;
}
.chip-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--mc); align-self: center; box-shadow: 0 0 14px var(--mc); }
.chip-name { font-family: var(--display); font-weight: 800; font-size: 31px; color: var(--white); }
.chip-host { font-size: 23px; color: var(--ink-2); }
.format { font-family: var(--display); font-weight: 700; font-size: 25px; color: var(--mc); white-space: nowrap; margin-right: 16px; transition: color 600ms ease; }
.th-when { flex: 1; min-width: 0; text-align: right; font-size: 21px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic { grid-column: 1; margin-top: 14px; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; min-height: 28px; }
.topic-src { color: var(--sky); font-weight: 500; margin-right: 12px; }
.topic-title { color: var(--ink-2); }
.prompt {
  grid-column: 1; margin-top: 14px; position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 140px; transition: max-height 600ms ease, opacity 500ms ease, margin 600ms ease, padding 600ms ease;
}
.prompt.collapsed { max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; }
.prompt-label {
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy);
  background: var(--sky); border-radius: 10px; padding: 4px 12px; margin-top: 2px;
}
.prompt-text {
  font-size: 27px; line-height: 1.32; color: var(--ink); min-height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prompt-text.typing::after { content: "▍"; color: var(--sky); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stream-wrap { grid-column: 1; grid-row: 4; margin-top: 16px; position: relative; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.stream {
  position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; gap: 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 34px, #000 100%);
}
.stream.at-top { -webkit-mask-image: none; mask-image: none; }
.stream-inner {
  flex: 1; min-width: 0; font-size: 33px; line-height: 1.38; color: var(--white);
  white-space: pre-wrap; overflow-wrap: anywhere; transform: translateY(0); transition: transform 320ms ease-out;
  align-self: flex-start;
}
.stream-inner .cursor { display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.16em; margin-left: 2px; background: var(--mc); animation: blink 0.8s steps(1) infinite; }
.vision-img { width: 300px; height: 300px; object-fit: cover; border-radius: 16px; border: 2px solid var(--mc); flex: none; align-self: flex-start; }

/* code */
.stream-inner.code { font-family: var(--mono); font-size: 25px; line-height: 1.42; white-space: normal; counter-reset: ln; }
.code .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 64px; position: relative; }
.code .ln::before {
  counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 44px; text-align: right;
  color: rgba(144, 185, 226, 0.45); font-size: 21px;
}
.code .k { color: #ff9fbf; font-weight: 600; }
.code .s { color: #b9e88a; }
.code .c { color: rgba(144, 185, 226, 0.75); }
.code .n { color: #ffcf7a; }
.code .f { color: #7fd8ff; }

/* quiz */
.quiz-q { font-family: var(--display); font-weight: 700; font-size: 31px; line-height: 1.28; color: var(--white); margin-bottom: 14px; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.quiz-c { display: flex; align-items: center; gap: 14px; font-size: 27px; line-height: 1.22; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); transition: background 500ms ease, color 500ms ease; }
.quiz-c b { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 24px; background: rgba(255, 255, 255, 0.12); }
.quiz-c.right { background: color-mix(in srgb, var(--mc) 30%, transparent); }
.quiz-c.right b { background: var(--mc); color: var(--navy); }
.quiz-c.dim { color: var(--ink-3); }
.quiz-why { font-size: 25px; line-height: 1.32; color: var(--ink-2); margin-top: 12px; opacity: 0; transition: opacity 600ms ease; }
.quiz-why.show { opacity: 1; }
.quiz-timer { font-size: 23px; color: var(--sky); margin-top: 10px; }

/* thinking (reasoning models) */
.think { flex: none; max-height: 196px; display: flex; flex-direction: column; border-radius: 14px; background: rgba(183, 148, 244, 0.08); border: 1px dashed color-mix(in srgb, var(--mc) 55%, transparent); padding: 10px 16px; }
.think.small { max-height: 120px; }
.think-head { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 23px; color: var(--mc); }
.ff { background: var(--mc); color: var(--navy); border-radius: 8px; padding: 2px 10px; font-size: 21px; }
.think-tok { margin-left: auto; font-family: var(--body); font-weight: 400; color: var(--ink-3); font-size: 21px; font-variant-numeric: tabular-nums; }
.think-body { position: relative; overflow: hidden; flex: 1; min-height: 0; margin-top: 6px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30px); mask-image: linear-gradient(180deg, transparent 0, #000 30px); }
.think-text { font-size: 22px; line-height: 1.38; color: var(--ink-3); white-space: pre-wrap; transition: transform 250ms ease-out; }

.shimmer { display: flex; gap: 14px; align-items: center; height: 46px; }
.shimmer span { width: 18px; height: 18px; border-radius: 50%; background: var(--mc); animation: bob 1s ease-in-out infinite; }
.shimmer span:nth-child(2) { animation-delay: 0.15s; } .shimmer span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-12px); opacity: 1; } }

/* side column: speed + spotlight */
.th-foot { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-direction: column; gap: 18px; position: relative; min-height: 0; }
.speed { padding: 4px 0 0; }
.speed-num { font-family: var(--display); font-weight: 800; font-size: 118px; line-height: 0.95; color: var(--mc); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; transition: color 600ms ease; text-shadow: 0 0 40px color-mix(in srgb, var(--mc) 35%, transparent); }
.speed-label { font-size: 23px; color: var(--ink-2); margin-top: 2px; }
.mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 14px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-row { display: flex; flex-direction: column; }
.mini-v { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-l { font-size: 18px; color: var(--ink-3); line-height: 1.2; }
.spot { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.spot-tag { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--mc); line-height: 1.15; }
.spot-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { font-size: 21px; padding: 4px 11px; border-radius: 9px; background: rgba(255, 255, 255, 0.09); color: var(--ink); white-space: nowrap; }
.fact b { font-family: var(--display); font-weight: 700; }
.spot-uses { font-size: 21px; line-height: 1.35; color: var(--ink-2); }
.spot-uses div::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mc); margin-right: 10px; vertical-align: 3px; }
.spot-ask { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--white); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* studio */
.studio { position: relative; display: flex; flex-direction: column; min-height: 0; }
.st-head { display: flex; align-items: baseline; justify-content: space-between; height: 40px; }
.st-title { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--white); }
.st-where { font-size: 22px; color: var(--sky); }
.screen {
  position: relative; width: 640px; height: 352px; margin-top: 6px; border-radius: 18px; overflow: hidden;
  background: #000814; border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(252, 129, 129, 0.15);
}
.screen video, .screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.screen video.on, .screen .poster.on { opacity: 1; }
.screen .poster.on { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.12) translate(-2%, -1%); } }
.plate {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 10, 20, 0.92) 55%);
}
.plate-title { font-family: var(--display); font-weight: 700; font-size: 29px; color: var(--white); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-meta { font-size: 19px; color: var(--sky); margin-top: 6px; line-height: 1.3; }
.soon { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 40px; gap: 14px;
  background: radial-gradient(400px 260px at 50% 40%, rgba(252, 129, 129, 0.18), transparent 70%); }
.soon-film { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.soon-film span { width: 54px; height: 36px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.35); animation: frame 2.4s ease-in-out infinite; }
.soon-film span:nth-child(2) { animation-delay: 0.2s; } .soon-film span:nth-child(3) { animation-delay: 0.4s; }
.soon-film span:nth-child(4) { animation-delay: 0.6s; } .soon-film span:nth-child(5) { animation-delay: 0.8s; }
@keyframes frame { 0%, 100% { background: transparent; } 40% { background: rgba(252, 129, 129, 0.55); } }
.soon-t { font-family: var(--display); font-weight: 700; font-size: 32px; }
.soon-s { font-size: 23px; color: var(--ink-2); line-height: 1.35; max-width: 470px; margin: 0 auto; }

.st-below { margin-top: 12px; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px; border-radius: 18px; background: rgba(0, 22, 40, 0.9); border: 1px solid var(--line); }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px; border-radius: 14px; min-width: 0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 600ms ease, border-color 600ms ease, opacity 600ms ease; opacity: 0.66;
}
.step.lit { opacity: 1; background: color-mix(in srgb, var(--sc, var(--sky)) 18%, transparent); border-color: var(--sc, var(--sky)); }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--sc, var(--sky)); color: var(--navy); }
.step-m { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--white); white-space: nowrap; }
.step-v { font-size: 19px; line-height: 1.2; color: var(--white); margin-top: 2px; white-space: nowrap; }
.step-h { font-size: 18px; color: var(--ink-2); margin-top: 1px; white-space: nowrap; }
.said { margin-top: 10px; padding: 0 6px; min-height: 0; flex: 1; overflow: hidden; }
.said-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 23px; line-height: 1.34; color: var(--ink); transition: opacity 600ms ease; }
.said-text .who { color: var(--sc, #b794f4); font-weight: 700; }
.said.dim .said-text { opacity: 0.35; }

/* ---------- machines ---------- */
.machines {
  position: absolute; left: 40px; right: 40px; top: 734px; height: 216px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; transition: opacity 700ms ease;
}
.tile {
  position: relative; overflow: hidden; border-radius: 20px; padding: 16px 20px 14px 22px;
  background: linear-gradient(180deg, rgba(0, 85, 150, 0.26), rgba(0, 30, 52, 0.75));
  border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 14px;
}
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hc, var(--sky)); opacity: 0.9; }
.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; opacity: 0.3; pointer-events: none; }
.tile-left { position: relative; min-width: 0; display: flex; flex-direction: column; }
.tile-name { display: flex; align-items: center; gap: 12px; }
.tn { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1.05; color: var(--white); }
.tile-live { font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; background: #e0283c; border-radius: 6px; padding: 3px 8px; letter-spacing: 0.04em; animation: livefade 1.6s ease-in-out infinite; }
@keyframes livefade { 50% { opacity: 0.65; } }
.tile-off { font-size: 18px; color: var(--ink-3); border: 1px solid var(--ink-3); border-radius: 6px; padding: 2px 8px; }
.tile-role { font-size: 22px; color: var(--hc, var(--sky)); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tile-hw { font-size: 19px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-status { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 22px; color: var(--white); white-space: nowrap; overflow: hidden; }
.ts-text { overflow: hidden; text-overflow: ellipsis; }
.ts-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 10px #3ddc97; }
.mem { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.mem-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mem-l { font-size: 18px; color: var(--ink-2); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.mem-l b { font-family: var(--display); font-weight: 700; color: var(--white); font-size: 19px; }
.bar-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bar-v { font-size: 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: pre; }
.bar { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--hc, var(--sky)), #fff); transform-origin: left; }
.tile-right { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.gauge { display: flex; flex-direction: column; align-items: center; width: 118px; }
.gauge svg { width: 118px; height: 118px; display: block; }
.gauge .g-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 12; }
.gauge .g-fg { fill: none; stroke: var(--hc, var(--sky)); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--hc, var(--sky))); }
.gauge .g-num { font-family: var(--display); font-weight: 800; font-size: 34px; fill: #fff; text-anchor: middle; font-variant-numeric: tabular-nums; }
.gauge .g-lab { font-size: 17px; fill: rgba(255, 255, 255, 0.65); text-anchor: middle; }
.g-meta { display: flex; gap: 10px; font-size: 19px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.g-meta b { color: var(--white); font-weight: 700; font-family: var(--display); }

/* ---------- models scene ---------- */
.models-scene { position: absolute; left: 40px; right: 40px; top: 112px; height: 838px; display: flex; flex-direction: column; gap: 16px; animation: sceneIn 900ms ease both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; }
.ms-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 50px; color: var(--white); letter-spacing: -0.01em; }
.ms-cta { font-size: 27px; color: var(--ink-2); }
.ms-cta b { color: var(--gold); font-family: var(--display); }
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.num { padding: 12px 18px; border-radius: 16px; background: rgba(0, 85, 150, 0.28); border: 1px solid var(--line); }
.num-v { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.05; color: var(--white); font-variant-numeric: tabular-nums; }
.num-l { font-size: 21px; color: var(--sky); margin-top: 2px; }
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 14px; }
.card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px 20px 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 16%, rgba(0, 38, 65, 0.9)), rgba(0, 24, 42, 0.92));
  border: 1px solid color-mix(in srgb, var(--cc) 40%, transparent);
  display: flex; flex-direction: column; animation: cardIn 700ms ease both;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--cc); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card-name { font-family: var(--display); font-weight: 800; font-size: 29px; line-height: 1.1; color: var(--white); }
.card-sub { font-size: 20px; color: var(--ink-2); margin-top: 4px; }
.card-sub b { color: var(--cc); font-weight: 500; }
.card-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; margin-top: 12px; }
.cs-v { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--cc); line-height: 1.05; white-space: nowrap; }
.cs-l { font-size: 18px; color: var(--ink-3); }
.card-uses { margin-top: 12px; font-size: 21px; line-height: 1.32; color: var(--ink); }
.card-uses div::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); margin-right: 10px; vertical-align: 3px; }
.card-ask { margin-top: auto; padding-top: 10px; font-size: 20px; line-height: 1.3; color: var(--white); font-weight: 700; }
.card.you { --cc: var(--gold); justify-content: center; text-align: left; }
.card.you .you-t { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.15; }
.card.you .you-e { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--gold); margin-top: 16px; }
.card.you .you-s { font-size: 22px; color: var(--ink-2); margin-top: 10px; line-height: 1.35; }

/* ---------- ticker + footnote ---------- */
.ticker {
  position: absolute; left: 0; right: 0; top: 964px; height: 58px; overflow: hidden;
  background: rgba(0, 12, 24, 0.82); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent);
}
.tick-track { position: absolute; top: 0; left: 0; height: 58px; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.tick-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 44px 0 0; }
.pill { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 7px; color: var(--navy); }
.pill.ai { background: var(--sky); }
.pill.faith { background: var(--gold); }
.tick-h { font-size: 26px; color: var(--white); }
.tick-s { font-size: 21px; color: var(--sky); }
.tick-sep { width: 7px; height: 7px; border-radius: 50%; background: rgba(144, 185, 226, 0.5); margin-left: 30px; }
.foot { position: absolute; left: 40px; right: 40px; top: 1032px; height: 30px; font-size: 16px; line-height: 30px; color: rgba(255, 255, 255, 0.42); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (prefers-reduced-motion: reduce) {
  .live .dot, .tile-live, .soon-film span, .screen .poster.on { animation: none; }
}

/* screenshots only (?shot=1) */
.shot *, .shot *::before, .shot *::after { transition: none !important; }

/* Older TV browsers without color-mix(): plain fallbacks */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .chip { background: rgba(255, 255, 255, 0.08); }
  .quiz-c.right { background: rgba(255, 255, 255, 0.18); }
  .think { border-color: rgba(255, 255, 255, 0.25); }
  .speed-num { text-shadow: none; }
  .step.lit { background: rgba(255, 255, 255, 0.12); }
  .card { background: linear-gradient(180deg, rgba(0, 48, 82, 0.92), rgba(0, 24, 42, 0.92)); border-color: rgba(144, 185, 226, 0.25); }
}
