/*
 * FOR-118 V2 — "Espelho Celeste" broadcast canvas (1920x1080, 16:9).
 * Original styles, system fonts only, no remote resources.
 * Text floor: 24px at 1080p (secondary), 32px+ for primary data, 44px+ for identity.
 */

:root {
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", "URW Palladio L", Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --font-glyph: "Noto Serif CJK TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "SimSun", "Noto Serif CJK SC", serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --fade: 900ms;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.broadcast *, .broadcast *::before, .broadcast *::after { box-sizing: border-box; }

/* ---------- canvas & scaling ---------- */
.viewport { position: fixed; inset: 0; overflow: hidden; background: #000; }

.broadcast {
  /* Night ink (default) */
  --bg: #0c0f16;
  --bg-2: #111622;
  --surface: #151a25;
  --surface-2: #1b2130;
  --surface-3: #232b3d;
  --line: #2a3346;
  --line-strong: #3b4760;
  --text: #ede5d3;
  --text-muted: #b8bfcc;
  --text-faint: #a2aaba;
  --jade: #6cc7ac;
  --jade-strong: #92e0c7;
  --gold: #d4b26a;
  --gold-soft: rgba(212, 178, 106, .14);
  --cinnabar: #ec7663;
  --cinnabar-soft: rgba(236, 118, 99, .16);
  --seal-bg: #a93424;
  --seal-text: #fff4e6;
  --on-accent: #0c1a16;
  --on-gold: #1b1405;
  --map-calm: #2b4250;
  --map-stirring: #3f8f7a;
  --map-turbulent: #c99a4a;
  --map-texture: rgba(12, 15, 22, .5);
  --map-edge: #0c0f16;
  --sea: #8fb6c4;
  --region-SA: #6cc7ac;
  --region-NA: #84bdf0;
  --region-EU: #c0a8f0;

  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: 0 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1400px 700px at 88% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    radial-gradient(1000px 600px at -8% 30%, rgba(212, 178, 106, .07), transparent 60%),
    url("../assets/cloud-pattern.svg");
  background-size: auto, auto, 330px 180px;
  font-family: var(--font-body);
  font-size: 28px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--fade) var(--ease);
}

.broadcast[data-theme="light"] {
  --bg: #f1ebdd;
  --bg-2: #ebe3d1;
  --surface: #fbf8f0;
  --surface-2: #f4eee1;
  --surface-3: #e9e0cc;
  --line: #ddd1b8;
  --line-strong: #c4b394;
  --text: #1b1e25;
  --text-muted: #434852;
  --text-faint: #575c67;
  --jade: #1b6553;
  --jade-strong: #144d40;
  --gold: #7a5b14;
  --gold-soft: rgba(122, 91, 20, .10);
  --cinnabar: #a3301c;
  --cinnabar-soft: rgba(163, 48, 28, .09);
  --seal-bg: #a3301c;
  --seal-text: #fff8ee;
  --on-accent: #fbf8f0;
  --on-gold: #fbf8f0;
  --map-calm: #d3dfe0;
  --map-stirring: #84bfa9;
  --map-turbulent: #d9a64f;
  --map-texture: rgba(251, 248, 240, .6);
  --map-edge: #fbf8f0;
  --sea: #5d8494;
  --region-SA: #1b6553;
  --region-NA: #1f5d96;
  --region-EU: #6a4ca8;
  background-image:
    radial-gradient(1400px 700px at 88% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
    radial-gradient(1000px 600px at -8% 30%, rgba(163, 48, 28, .05), transparent 60%),
    url("../assets/cloud-pattern-light.svg");
}

.broadcast[data-region="SA"] { --accent: var(--region-SA); }
.broadcast[data-region="NA"] { --accent: var(--region-NA); }
.broadcast[data-region="EU"] { --accent: var(--region-EU); }

.broadcast h1, .broadcast h2, .broadcast h3, .broadcast h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; }
.broadcast p { margin: 0; }
.broadcast ul, .broadcast ol { margin: 0; padding: 0; list-style: none; }
.broadcast dl, .broadcast dd { margin: 0; }
.broadcast svg { display: block; }

/* ---------- header: permanent identification ---------- */
.bc-header {
  position: absolute;
  left: 64px; right: 64px; top: 32px;
  height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand__emblem { width: 64px; height: 64px; color: var(--gold); flex: none; }
.brand__text { display: grid; }
.brand__name { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand__tag { font-size: 24px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }

.ident {
  display: grid;
  gap: 2px;
  padding-left: 32px;
  border-left: 6px solid var(--accent);
  min-width: 0;
  transition: opacity 500ms var(--ease);
}
.ident.is-swapping { opacity: 0; }
.ident__top { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ident__top > * { flex: none; }
.ident__region {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.ident__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.ident__code {
  padding: 2px 12px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-size: 24px; font-weight: 700; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.ident__feed {
  padding: 2px 12px;
  border-radius: 8px;
  border: 2px dashed var(--cinnabar);
  color: var(--cinnabar);
  font-size: 24px; font-weight: 700;
  white-space: nowrap;
}
.ident__world {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clock { display: grid; justify-items: end; gap: 2px; text-align: right; }
.clock__time { font-family: var(--font-display); font-size: 32px; white-space: nowrap; }
.clock__date { font-size: 26px; color: var(--text-muted); white-space: nowrap; }

.demo-badge {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--seal-bg);
  color: var(--seal-text);
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255, 244, 230, .35);
}
.demo-badge strong { font-size: 26px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.demo-badge span { font-size: 24px; white-space: nowrap; }

/* ---------- stage area & scene transitions ---------- */
.stage-area { position: absolute; left: 64px; right: 64px; top: 176px; height: 712px; }

.layer {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform: none;
  transition: opacity var(--fade) var(--ease), transform var(--fade) var(--ease), filter var(--fade) var(--ease);
}
.layer.is-entering { opacity: 0; transform: translateY(28px) scale(.995); }
.layer.is-leaving { opacity: 0; transform: translateY(-18px); filter: blur(4px); }

.scene { display: grid; grid-template-rows: 88px minmax(0, 1fr); gap: 20px; height: 100%; }
.scene__head { display: flex; align-items: center; gap: 24px; min-width: 0; padding-left: 4px; }
.seal {
  display: inline-grid; place-items: center; flex: none;
  width: 72px; height: 72px;
  font-family: var(--font-glyph); font-size: 40px; line-height: 1;
  color: var(--seal-text); background: var(--seal-bg);
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px rgba(255, 244, 230, .35), inset 0 0 0 6px var(--seal-bg), inset 0 0 0 7px rgba(255, 244, 230, .5);
  transform: rotate(-2deg);
}
.scene__title { font-size: 64px; white-space: nowrap; }
.scene__of {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 28px; font-weight: 600;
  white-space: nowrap;
  max-width: 820px; overflow: hidden; text-overflow: ellipsis;
}
.scene__of::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.scene__body { min-height: 0; }
.scene.is-stale .scene__body { filter: grayscale(.75); }

.panel {
  position: relative;
  background-color: var(--surface-2);
  background-image: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border-color: var(--gold); border-style: solid; opacity: .7; pointer-events: none;
}
.panel::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.panel::after { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }

.label { font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- scene: overview ---------- */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 620px; grid-template-rows: minmax(0, 1fr) 168px; gap: 24px; height: 100%; }
.ov__art { position: relative; overflow: hidden; border-radius: 20px; border: 2px solid var(--line-strong); background: #070b16; }
.ov__art svg { width: 100%; height: 100%; }
.ov__caption {
  position: absolute; left: 24px; bottom: 20px;
  padding: 6px 16px; border-radius: 8px;
  background: rgba(5, 8, 15, .78); color: #f3ead6;
  font-size: 24px;
}
.ov__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { display: grid; align-content: center; gap: 4px; padding: 16px 24px; border-top: 4px solid var(--accent); }
.stat__value { font-family: var(--font-display); font-size: 56px; line-height: 1; }
.stat__label { font-size: 24px; color: var(--text-muted); }
.ov__cal { grid-row: 1 / span 2; grid-column: 2; display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 24px 34px; overflow: hidden; }
.ov__dial { width: 216px; margin-inline: auto; }
.facts { display: grid; gap: 14px; align-content: start; }
.fact { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact dd { font-size: 28px; }
.fact--lead dd { font-family: var(--font-display); font-size: 38px; }
.facts { gap: 10px; }
.fact { padding-bottom: 8px; }

.dial { width: 100%; height: auto; overflow: visible; }
.dial__rim { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .7; }
.dial__seg { fill: var(--surface-3); stroke: var(--surface); stroke-width: 1; }
.dial__seg.is-active { fill: var(--accent); }
.dial__glyph { fill: var(--text-muted); font-family: var(--font-glyph); font-size: 16px; text-anchor: middle; dominant-baseline: central; }
.dial__glyph.is-active { fill: var(--on-accent); font-weight: 700; }
.dial__face { fill: var(--surface); stroke: var(--line-strong); }
.dial__moon { fill: #efe2bf; }
.dial__moon-shadow { fill: var(--surface); opacity: .92; }
.dial__hand { stroke: var(--cinnabar); stroke-width: 3.5; stroke-linecap: round; }
.dial__hand-dot { fill: var(--cinnabar); }

/* world tints for the illustration */
.art { --sky-1: #070b16; --sky-2: #15213a; --sky-3: #3a3346; --far: #2b4a58; --mid: #1f3b3c; --mid-2: #0f1d24; --roof: #9b3527; --glow: #f6e7c1; }
.art--dawn { --sky-1: #120c1f; --sky-2: #3b2546; --sky-3: #a0605a; --far: #5b3f5c; --mid: #3a2a3d; --mid-2: #1d1522; --roof: #b8462c; --glow: #ffd9a8; }
.art--frost { --sky-1: #050b14; --sky-2: #10294a; --sky-3: #4a6b8c; --far: #6d8faa; --mid: #2f4a63; --mid-2: #14263a; --roof: #7b3a40; --glow: #e8f4ff; }
.art--ember { --sky-1: #140a08; --sky-2: #3d1e14; --sky-3: #8c5a2a; --far: #6e4a2c; --mid: #3c2a1c; --mid-2: #1c130d; --roof: #c0532e; --glow: #ffd28a; }
.art--violet { --sky-1: #0b0816; --sky-2: #251a40; --sky-3: #5a4470; --far: #4a3d68; --mid: #2b2442; --mid-2: #15111f; --roof: #8e3b52; --glow: #f0dcff; }
.art--sea { --sky-1: #04101a; --sky-2: #0f3040; --sky-3: #3c6e78; --far: #2c6070; --mid: #174050; --mid-2: #0a1d26; --roof: #a2432c; --glow: #e6fff4; }
.art--ash { --sky-1: #0c0c0e; --sky-2: #26262c; --sky-3: #55545c; --far: #4a4a52; --mid: #2c2c32; --mid-2: #151518; --roof: #6e3a30; --glow: #ece8e0; }

/* ---------- scene: regions ---------- */
.rg { display: grid; grid-template-columns: 820px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 28px; height: 100%; }
.rg__map { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: 24px 28px; }
.rg__map svg { width: 100%; height: 100%; min-height: 0; }
.region-map__sea path { fill: none; stroke: var(--sea); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.shape__fill--calm { fill: var(--map-calm); }
.shape__fill--stirring { fill: var(--map-stirring); }
.shape__fill--turbulent { fill: var(--map-turbulent); }
.shape__edge { fill: none; stroke: var(--map-edge); stroke-width: 3; stroke-linejoin: round; }
.hatch-line { stroke: var(--map-texture); stroke-width: 2.4; }
.dot-fill { fill: var(--map-texture); }
.pin circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.pin text { fill: var(--text); font-family: var(--font-body); font-size: 17px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.legend { display: flex; justify-content: center; gap: 36px; font-size: 24px; color: var(--text-muted); }
.legend li { display: inline-flex; align-items: center; gap: 12px; }
.legend__swatch { width: 34px; height: 22px; border-radius: 4px; border: 1px solid var(--line-strong); }
.legend__swatch--calm { background: var(--map-calm); }
.legend__swatch--stirring { background: radial-gradient(circle, var(--map-texture) 1.6px, transparent 1.8px) 0 0 / 7px 7px, var(--map-stirring); }
.legend__swatch--turbulent { background: repeating-linear-gradient(45deg, var(--map-texture) 0 2px, transparent 2px 7px), var(--map-turbulent); }

.rg__list { display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 10px; }
.zone {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 8px;
  align-items: center;
  padding: 10px 22px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
}
.zone__n {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  font-size: 24px; font-weight: 700;
}
.zone__name { font-size: 30px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone__value { font-size: 26px; color: var(--text-muted); white-space: nowrap; }
.zone__value strong { color: var(--text); font-size: 30px; }
.zone__bar { grid-column: 2 / span 2; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.zone__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--jade), var(--gold)); }
.zone--turbulent .zone__bar span { background: linear-gradient(90deg, var(--gold), var(--cinnabar)); }
.zone--turbulent { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }

/* ---------- scene: events ---------- */
.ev { display: grid; grid-template-columns: 960px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 28px; height: 100%; }
.ev__feature { display: flex; flex-direction: column; gap: 22px; padding: 40px 44px; overflow: hidden; }
.ev__feature::after { content: none; }
.ev__feature .ev__title { font-size: 56px; }
.ev__feature .ev__desc { font-size: 32px; color: var(--text-muted); }
.ev__list { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ev__item { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px 28px; }
.ev__item .ev__title { font-size: 34px; }
.ev__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ev__when { font-size: 26px; color: var(--text-muted); white-space: nowrap; }
.ev__meta { display: flex; gap: 40px; margin-top: auto; padding-top: 20px; border-top: 2px solid var(--line); font-size: 28px; }
.ev__meta dt { font-size: 24px; color: var(--text-faint); }
.ev__meta dd { font-weight: 600; }
.ev__zone { font-size: 26px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 16px; border-radius: 999px;
  font-size: 24px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.status--ongoing { color: var(--jade-strong); background: color-mix(in srgb, var(--jade) 16%, transparent); }
.broadcast[data-theme="light"] .status--ongoing { color: var(--jade); }
.status--upcoming { color: var(--gold); background: var(--gold-soft); }
.status--ended { color: var(--text-muted); background: var(--surface-3); }
.status--ended::before { background: transparent; border: 3px solid currentColor; }

/* ---------- scene: rankings ---------- */
.rk { height: 100%; padding: 18px 36px; display: flex; flex-direction: column; }
.rk table { width: 100%; height: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rk th, .rk td { padding: 0 14px; text-align: left; border-bottom: 2px solid var(--line); white-space: nowrap; }
.rk thead th { height: 52px; font-size: 24px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.rk tbody tr:last-child > * { border-bottom: 0; }
.rk tbody th { font-family: var(--font-display); font-size: 36px; font-weight: 600; }
.rk td { font-size: 28px; color: var(--text-muted); }
.rk td.rk__value { font-size: 34px; font-weight: 700; color: var(--text); text-align: right; }
.rk th.rk__value { text-align: right; }
.rk .rk__bar { width: 220px; }
.rk__bar span { display: block; height: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rk__bar span span { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.rank {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 26px; font-weight: 700; color: var(--text);
  border: 2px solid var(--line-strong);
}
.rank--1 { background: #e3c27a; color: #1b1405; border: 0; }
.rank--2 { background: #b9d9cf; color: #1b1405; border: 0; }
.rank--3 { background: #e6a593; color: #1b1405; border: 0; }
.rk tbody tr:nth-child(-n+3) th { font-size: 40px; }
.row-emblem { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-right: 18px; vertical-align: middle; border-radius: 12px; color: var(--gold); background: var(--gold-soft); }
.row-emblem svg { width: 36px; height: 36px; }

/* ---------- scene: highlights ---------- */
.hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 28px; height: 100%; }
.card { display: flex; flex-direction: column; gap: 18px; padding: 34px 36px; overflow: hidden; }
.card__kicker { font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card__head { display: flex; align-items: center; gap: 22px; }
.card__name { font-size: 44px; }
.card__epithet { font-family: var(--font-display); font-style: italic; font-size: 30px; color: var(--gold); }
.card__text { font-size: 30px; color: var(--text-muted); }
.card__facts { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 2px solid var(--line); }
.card__facts div { display: flex; justify-content: space-between; gap: 16px; font-size: 26px; }
.card__facts dt { color: var(--text-faint); }
.card__facts dd { font-weight: 600; text-align: right; }
.card__tag { align-self: flex-start; padding: 4px 16px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold); font-size: 24px; font-weight: 600; }
.sigil {
  flex: none; display: grid; place-items: center;
  width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 35%, var(--surface-3)), var(--surface));
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 8px var(--surface), 0 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
  font-family: var(--font-display); font-size: 52px; color: var(--text);
}
.sigil--gold { --accent: var(--gold); }
.sect-emblem { flex: none; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 24px; color: var(--gold); background: var(--gold-soft); border: 2px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.sect-emblem svg { width: 64px; height: 64px; }

/* ---------- scene: chronicles ---------- */
.ch {
  height: 100%;
  padding: 24px 48px 24px 40px;
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent 16px),
    linear-gradient(270deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent 16px),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.ch ol { position: relative; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); height: 100%; padding-left: 44px; }
.ch ol::before { content: ""; position: absolute; left: 12px; top: 18px; bottom: 18px; width: 3px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 10%, transparent)); }
.ch li { position: relative; display: grid; align-content: center; gap: 4px; }
.ch li::before { content: ""; position: absolute; left: -42px; top: 50%; width: 20px; height: 20px; margin-top: -10px; transform: rotate(45deg); background: var(--surface); border: 3px solid var(--gold); }
.ch li:first-child::before { background: var(--cinnabar); border-color: var(--cinnabar); }
.ch__meta { display: flex; align-items: center; gap: 16px; font-size: 24px; color: var(--text-muted); }
.ch__tag { padding: 0 12px; border-radius: 6px; border: 2px solid var(--line-strong); color: var(--text); font-weight: 600; }
.ch__title { font-size: 40px; }
.ch__text { font-size: 28px; color: var(--text-muted); }

/* ---------- bumper / unavailable ---------- */
.bumper { position: relative; display: grid; place-content: center; justify-items: center; gap: 18px; height: 100%; text-align: center; }
.bumper__ring { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px; color: var(--accent); opacity: .1; }
.bumper__kicker { font-size: 30px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.bumper__region { display: inline-flex; align-items: center; gap: 14px; font-size: 40px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bumper__world { font-family: var(--font-display); font-size: 112px; line-height: 1.05; }
.bumper__code { padding: 4px 22px; border: 3px solid var(--accent); border-radius: 12px; font-size: 40px; font-weight: 700; letter-spacing: .08em; }
.bumper__era { font-size: 34px; color: var(--text-muted); }
.bumper__scenes { font-size: 28px; color: var(--text-muted); }
.bumper--unavailable .bumper__world { color: var(--text-muted); }
.bumper__notice { display: grid; gap: 8px; padding: 20px 36px; border-radius: 16px; border: 2px dashed var(--cinnabar); background: var(--cinnabar-soft); }
.bumper__notice strong { font-size: 40px; color: var(--text); }
.bumper__notice span { font-size: 30px; color: var(--text-muted); }

/* ---------- bulletin (interruption) ---------- */
.broadcast[data-mode="bulletin"] { --accent: var(--cinnabar) !important; }
.broadcast[data-mode="bulletin"] .bc-header { border-bottom-color: var(--cinnabar); }
.bulletin { display: grid; grid-template-columns: minmax(0, 1fr) 560px; grid-template-rows: minmax(0, 1fr); gap: 40px; height: 100%; }
.bulletin__main { display: flex; flex-direction: column; gap: 24px; padding: 40px 48px; border-color: var(--cinnabar); }
.bulletin__kicker {
  align-self: flex-start;
  padding: 8px 22px; border-radius: 8px;
  background: var(--seal-bg); color: var(--seal-text);
  font-size: 30px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.bulletin__title { font-size: 76px; }
.bulletin__where { font-size: 32px; color: var(--text-muted); }
.bulletin__where strong { color: var(--text); }
.bulletin__body { font-size: 32px; color: var(--text-muted); max-width: 30em; }
.bulletin__foot { margin-top: auto; display: grid; gap: 8px; padding-top: 20px; border-top: 2px solid var(--line); }
.bulletin__return { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bulletin__resume { font-size: 28px; color: var(--text-muted); }
.bulletin__art { display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle at 50% 45%, #2a2238, #0b0a12 70%); border: 2px solid var(--line-strong); overflow: hidden; }
.bulletin__art svg { width: 100%; height: 100%; }
.bulletin__rings { transform-origin: 280px 300px; animation: rings 24s linear infinite; }
@keyframes rings { to { transform: rotate(360deg); } }
.bulletin__note { font-size: 24px; color: var(--text-faint); }

/* ---------- boot ---------- */
.boot { display: grid; place-content: center; justify-items: center; gap: 22px; height: 100%; text-align: center; }
.boot__title { font-family: var(--font-display); font-size: 64px; }
.boot__note { font-size: 30px; color: var(--text-muted); }
.spinner { width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--line-strong); border-top-color: var(--accent, var(--jade)); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- status row ---------- */
.bc-status {
  position: absolute; left: 64px; right: 64px; top: 904px; height: 56px;
  display: grid; grid-template-columns: 900px minmax(0, 1fr) auto; align-items: center; gap: 36px;
}
.next { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.next__label { flex: none; font-size: 24px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.next__value { font-size: 30px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 300ms linear; }
.pips { display: flex; align-items: center; gap: 28px; }
.pips__group { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); }
.pips__group.is-current { color: var(--text); }
.pip { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-strong); }
.pip.is-current { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.pip.is-down { border-style: dashed; border-color: var(--cinnabar); }
.pips__group[data-region="SA"] .pip.is-current { background: var(--region-SA); border-color: var(--region-SA); }
.pips__group[data-region="NA"] .pip.is-current { background: var(--region-NA); border-color: var(--region-NA); }
.pips__group[data-region="EU"] .pip.is-current { background: var(--region-EU); border-color: var(--region-EU); }

/* ---------- ticker (permanent) ---------- */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  display: flex; align-items: stretch;
  background: color-mix(in srgb, var(--bg-2) 92%, black);
  border-top: 3px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
.broadcast[data-theme="light"] .ticker { background: var(--surface); }
.ticker__label {
  flex: none; display: grid; place-items: center;
  padding: 0 34px 0 64px;
  background: var(--seal-bg); color: var(--seal-text);
  font-size: 30px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  padding-right: 54px;
}
.ticker__track { position: relative; flex: 1; overflow: hidden; }
.ticker__run {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; white-space: nowrap;
  will-change: transform;
}
.ticker__run.is-moving { animation: ticker var(--ticker-duration, 120s) linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 16px; padding: 0 22px; font-size: 34px; }
.tk__code { padding: 2px 12px; border-radius: 8px; font-size: 24px; font-weight: 700; letter-spacing: .06em; border: 2px solid currentColor; }
.tk__code--SA { color: var(--region-SA); }
.tk__code--NA { color: var(--region-NA); }
.tk__code--EU { color: var(--region-EU); }
.tk__sep { color: var(--gold); font-size: 24px; }
.ticker__run.is-static { transition: opacity 600ms ease; }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .broadcast { --fade: 400ms; }
  .layer.is-entering, .layer.is-leaving { transform: none; filter: none; }
  .bulletin__rings, .spinner { animation: none; }
}

.tone-0{stop-color:var(--sky-1)}
.tone-1{stop-color:var(--sky-2)}
.tone-2{stop-color:var(--sky-3)}
.tone-3{stop-color:var(--glow);stop-opacity:.5}
.tone-4{stop-color:var(--glow);stop-opacity:0}
.tone-5{stop-color:var(--mid)}
.tone-6{stop-color:var(--mid-2)}
.tone-7{fill:var(--glow)}
.tone-8{fill:var(--far)}
.tone-9{fill:var(--roof)}
.tone-10{fill:var(--roof)}
[data-width="0"]{width:0%}
[data-width="1"]{width:1%}
[data-width="2"]{width:2%}
[data-width="3"]{width:3%}
[data-width="4"]{width:4%}
[data-width="5"]{width:5%}
[data-width="6"]{width:6%}
[data-width="7"]{width:7%}
[data-width="8"]{width:8%}
[data-width="9"]{width:9%}
[data-width="10"]{width:10%}
[data-width="11"]{width:11%}
[data-width="12"]{width:12%}
[data-width="13"]{width:13%}
[data-width="14"]{width:14%}
[data-width="15"]{width:15%}
[data-width="16"]{width:16%}
[data-width="17"]{width:17%}
[data-width="18"]{width:18%}
[data-width="19"]{width:19%}
[data-width="20"]{width:20%}
[data-width="21"]{width:21%}
[data-width="22"]{width:22%}
[data-width="23"]{width:23%}
[data-width="24"]{width:24%}
[data-width="25"]{width:25%}
[data-width="26"]{width:26%}
[data-width="27"]{width:27%}
[data-width="28"]{width:28%}
[data-width="29"]{width:29%}
[data-width="30"]{width:30%}
[data-width="31"]{width:31%}
[data-width="32"]{width:32%}
[data-width="33"]{width:33%}
[data-width="34"]{width:34%}
[data-width="35"]{width:35%}
[data-width="36"]{width:36%}
[data-width="37"]{width:37%}
[data-width="38"]{width:38%}
[data-width="39"]{width:39%}
[data-width="40"]{width:40%}
[data-width="41"]{width:41%}
[data-width="42"]{width:42%}
[data-width="43"]{width:43%}
[data-width="44"]{width:44%}
[data-width="45"]{width:45%}
[data-width="46"]{width:46%}
[data-width="47"]{width:47%}
[data-width="48"]{width:48%}
[data-width="49"]{width:49%}
[data-width="50"]{width:50%}
[data-width="51"]{width:51%}
[data-width="52"]{width:52%}
[data-width="53"]{width:53%}
[data-width="54"]{width:54%}
[data-width="55"]{width:55%}
[data-width="56"]{width:56%}
[data-width="57"]{width:57%}
[data-width="58"]{width:58%}
[data-width="59"]{width:59%}
[data-width="60"]{width:60%}
[data-width="61"]{width:61%}
[data-width="62"]{width:62%}
[data-width="63"]{width:63%}
[data-width="64"]{width:64%}
[data-width="65"]{width:65%}
[data-width="66"]{width:66%}
[data-width="67"]{width:67%}
[data-width="68"]{width:68%}
[data-width="69"]{width:69%}
[data-width="70"]{width:70%}
[data-width="71"]{width:71%}
[data-width="72"]{width:72%}
[data-width="73"]{width:73%}
[data-width="74"]{width:74%}
[data-width="75"]{width:75%}
[data-width="76"]{width:76%}
[data-width="77"]{width:77%}
[data-width="78"]{width:78%}
[data-width="79"]{width:79%}
[data-width="80"]{width:80%}
[data-width="81"]{width:81%}
[data-width="82"]{width:82%}
[data-width="83"]{width:83%}
[data-width="84"]{width:84%}
[data-width="85"]{width:85%}
[data-width="86"]{width:86%}
[data-width="87"]{width:87%}
[data-width="88"]{width:88%}
[data-width="89"]{width:89%}
[data-width="90"]{width:90%}
[data-width="91"]{width:91%}
[data-width="92"]{width:92%}
[data-width="93"]{width:93%}
[data-width="94"]{width:94%}
[data-width="95"]{width:95%}
[data-width="96"]{width:96%}
[data-width="97"]{width:97%}
[data-width="98"]{width:98%}
[data-width="99"]{width:99%}
[data-width="100"]{width:100%}
.lab-return{position:fixed;right:0;bottom:0;z-index:99;padding:3px 6px;background:#151719;color:white;font:13px system-ui}