/* Generated by tools/build-landing.mjs: do not edit. Sources, in this order: identity.css, overlay.css, airelivo-show.css, airelivo-frames.css, game-packs.css, pack-competitive.css, pack-worlds.css, landing-page.css, pack-intermissions.css, gameplay.css, camera-borders.css, show-screens.css, program-transitions.css, broadcast-art.css, broadcast-worlds.css, broadcast-live.css, on-air.css, surfaces.css, flip-clock.css, theme-plato.css, card-motion.css, vertical.css, gta-coast.css, screen-loops.css, frame-kit.css, landing-transitions.css. */

/* ---- identity.css ---- */
:root {
  --airelivo-canvas: #101014;
  --airelivo-panel: #19191f;
  --airelivo-ink: #f6f1ec;
  --airelivo-muted: #b2acb0;
  --airelivo-coral: #ff695b;
  --airelivo-lavender: #a99cf8;
  --airelivo-font: Inter, 'Segoe UI', sans-serif;
}

.airelivo-brand {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  width: fit-content;
  color: var(--airelivo-ink);
  font: 850 1.65rem/.95 var(--airelivo-font);
  text-decoration: none;
  white-space: nowrap;
}

.airelivo-word { letter-spacing: -.055em; }

.airelivo-i {
  position: relative;
  color: transparent;
}

.airelivo-i::before, .airelivo-i::after {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
}

.airelivo-i::before {
  content: 'ı';
  color: var(--airelivo-ink);
}

.airelivo-i::after {
  content: '';
  width: .155em;
  height: .155em;
  top: .28em;
  border-radius: 50%;
  background: var(--airelivo-coral);
}

.airelivo-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.46em;
  height: 1.46em;
  background: url('/airelivo-brand-icon.png') center / contain no-repeat;
}

/* ---- overlay.css ---- */
.stage,
.stage *,
.stage *::before,
.stage *::after {
  box-sizing: border-box;
}

.stage {
  --brand: #ff695b;
  --brand-alt: #a99cf8;
  --scene-ink: #fbf5f2;
  --scene-dark: #171116;
  --scene-paper: #241820;
  --layer-badge-bg: #1d151b;
  --layer-badge-ink: #fff6f1;
  --scene-display: Arial, Helvetica, sans-serif;
  --scene-copy: "Segoe UI", Arial, sans-serif;
  --scene-mono: Consolas, "Liberation Mono", monospace;
  --frame-border: color-mix(in srgb, var(--brand) 64%, #fff);
  --frame-base: color-mix(in srgb, var(--brand-alt) 52%, #25212d);
  --frame-radius: .45cqw;
  --scene-focus: var(--accent, #ff987f);
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  container-type: size;
  color: var(--scene-ink);
}

.stage[data-typeface="condensed"] {
  --scene-display: "Arial Narrow", Impact, Haettenschweiler, sans-serif;
  --scene-copy: "Arial Narrow", "Segoe UI", sans-serif;
  font-stretch: condensed;
}

.stage[data-typeface="mono"] {
  --scene-display: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --scene-copy: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

.stage[data-theme="neon"] {
  --scene-ink: #f1f3ff;
  --scene-dark: #121222;
  --scene-paper: #10152b;
  --layer-badge-bg: #121321;
  --layer-badge-ink: #f7f5ff;
  --frame-border: var(--brand-alt);
  --frame-base: color-mix(in srgb, var(--brand-alt) 65%, #232139);
  --frame-radius: .8cqw;
}

.stage[data-theme="editorial"] {
  --scene-ink: #241a1e;
  --scene-dark: #f3e7df;
  --scene-paper: #f9f2ea;
  --layer-badge-bg: #252026;
  --layer-badge-ink: #fdf2eb;
  --frame-border: color-mix(in srgb, var(--brand) 67%, #3b2627);
  --frame-base: color-mix(in srgb, var(--brand) 30%, #5f4b4c);
  --frame-radius: 0;
}

.layer {
  position: absolute;
  min-width: 0;
  min-height: 0;
}

.layer-visual {
  --layer-font-size: 2.45cqw;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  opacity: var(--layer-opacity, 1);
  color: var(--scene-ink);
  font: 800 calc(var(--layer-font-size) * var(--layer-scale, 1)) / 1 var(--scene-copy);
}

.layer-text {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.layer[data-align="left"] { --layer-justify: flex-start; --layer-align: left; }
.layer[data-align="center"] { --layer-justify: center; --layer-align: center; }
.layer[data-align="right"] { --layer-justify: flex-end; --layer-align: right; }
.layer[data-align] > .layer-visual { justify-content: var(--layer-justify, flex-start); text-align: var(--layer-align, left); }

.layer[data-editable] { cursor: move; user-select: none; touch-action: none; }
.layer[data-editable]:hover { outline: 1px dashed #fff8; outline-offset: -1px; }
.layer[data-editable].selected { outline: 1px solid var(--scene-focus); outline-offset: -1px; }
.stage[data-theme="editorial"] .layer[data-editable]:hover { outline-color: #352532a8; }
.stage .resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background: var(--scene-focus);
  border: 2px solid #21161b;
  cursor: nwse-resize;
}

.layer[data-kind="plate"] .layer-visual {
  background:
    radial-gradient(ellipse at 87% 35%, color-mix(in srgb, var(--brand-alt) 22%, transparent), transparent 55%),
    linear-gradient(132deg, var(--scene-paper), var(--scene-dark) 58%);
}

.layer[data-kind="plate"] .layer-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 11.9%, color-mix(in srgb, var(--scene-ink) 9%, transparent) 11.9% 12%);
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}

.layer[data-kind="plate"] .layer-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: .42cqw;
  background: linear-gradient(90deg, var(--brand) 0 9%, transparent 9% 9.5%, var(--brand-alt) 9.5% 13%, color-mix(in srgb, var(--brand-alt) 25%, transparent) 13%);
}

[data-layout="break"] .layer[data-kind="plate"] .layer-visual {
  background:
    radial-gradient(ellipse at 82% 45%, color-mix(in srgb, var(--brand-alt) 30%, transparent), transparent 57%),
    linear-gradient(145deg, var(--scene-dark) 20%, var(--scene-paper) 83%);
}

[data-layout="end"] .layer[data-kind="plate"] .layer-visual {
  background:
    radial-gradient(ellipse at 80% 75%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 62%),
    linear-gradient(145deg, var(--scene-dark) 20%, var(--scene-paper));
}

[data-theme="neon"] .layer[data-kind="plate"] .layer-visual {
  background:
    radial-gradient(ellipse at 85% 40%, color-mix(in srgb, var(--brand-alt) 31%, transparent), transparent 59%),
    radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--brand) 19%, transparent), transparent 48%),
    linear-gradient(130deg, var(--scene-dark), var(--scene-paper));
}

[data-theme="neon"] .layer[data-kind="plate"] .layer-visual::before {
  background: radial-gradient(circle at center, color-mix(in srgb, var(--brand-alt) 45%, transparent) .1cqw, transparent .16cqw) 0 0 / 1.65cqw 1.65cqw;
}

[data-theme="editorial"] .layer[data-kind="plate"] .layer-visual {
  background:
    linear-gradient(90deg, transparent 76%, color-mix(in srgb, var(--brand-alt) 24%, transparent) 76%),
    var(--scene-paper);
}

[data-theme="editorial"] .layer[data-kind="plate"] .layer-visual::after {
  background: linear-gradient(90deg, var(--scene-ink) 76%, var(--brand) 76%);
}

.layer[data-kind="motif"] .layer-visual::before,
.layer[data-kind="motif"] .layer-visual::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  scale: var(--layer-scale, 1);
}

.layer[data-kind="motif"] .layer-visual::before {
  width: 103%;
  right: 0;
  top: 5%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 6%, color-mix(in srgb, var(--brand-alt) 70%, transparent) 6.1% 6.35%, transparent 6.45% 8.5%),
    radial-gradient(circle, color-mix(in srgb, var(--brand-alt) 38%, transparent) 4%, transparent 65%);
  mask-image: linear-gradient(155deg, transparent 9%, #000 40% 73%, transparent 98%);
}

.layer[data-kind="motif"] .layer-visual::after {
  width: 35%;
  left: 32%;
  top: 37%;
  border-radius: 50%;
  box-shadow: .9cqw 1cqw 4cqw color-mix(in srgb, var(--brand) 27%, transparent), inset 0 0 0 1px #fff2;
  background:
    radial-gradient(circle at 30% 23%, color-mix(in srgb, var(--brand) 24%, #fff), transparent 56%),
    linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 52%, #4f172c));
}

[data-layout="break"] .layer[data-kind="motif"] .layer-visual::after {
  width: 34%;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(90deg, var(--brand-alt) 0 31%, transparent 31% 57%, var(--brand) 57% 88%, transparent 88%);
  transform: skewX(-13deg);
}

[data-layout="end"] .layer[data-kind="motif"] .layer-visual::before { transform: translate(11%, 9%) rotate(18deg); }
[data-layout="end"] .layer[data-kind="motif"] .layer-visual::after {
  top: 41%;
  background: radial-gradient(circle, var(--brand-alt), color-mix(in srgb, var(--brand-alt) 42%, var(--brand)));
  box-shadow: 0 0 5cqw color-mix(in srgb, var(--brand-alt) 36%, transparent);
}

[data-layout="reaction"] .layer[data-kind="motif"] .layer-visual {
  border: .1cqw solid color-mix(in srgb, var(--brand-alt) 30%, transparent);
  border-radius: var(--frame-radius);
  background: color-mix(in srgb, var(--layer-badge-bg) 89%, var(--brand-alt));
}

[data-layout="reaction"] .layer[data-kind="motif"] .layer-visual::before { top: -25%; right: -9%; }
[data-layout="reaction"] .layer[data-kind="motif"] .layer-visual::after { width: 13%; top: 35%; left: 51%; }

[data-theme="neon"] .layer[data-kind="motif"] .layer-visual::before {
  top: 13%;
  width: 89%;
  right: 4%;
  border-radius: 0;
  transform: rotate(30deg);
  background: repeating-linear-gradient(90deg, transparent 0 11%, color-mix(in srgb, var(--brand-alt) 80%, transparent) 11% 11.5%, transparent 11.5% 13%);
}

[data-theme="neon"]:not([data-layout="break"]) .layer[data-kind="motif"] .layer-visual::after {
  background: radial-gradient(circle, transparent 32%, var(--brand-alt) 34% 39%, transparent 41% 55%, var(--brand) 57% 61%, transparent 63%);
  filter: drop-shadow(0 0 1cqw color-mix(in srgb, var(--brand-alt) 50%, transparent));
  box-shadow: none;
}

[data-theme="editorial"] .layer[data-kind="motif"] .layer-visual::before {
  width: 83%;
  right: 9%;
  top: 13%;
  border-radius: 47% 47% 2% 2%;
  background: color-mix(in srgb, var(--brand) 78%, #fff4ea);
  mask-image: none;
}

[data-theme="editorial"] .layer[data-kind="motif"] .layer-visual::after {
  top: 44%;
  background: var(--brand-alt);
  box-shadow: none;
}

[data-theme="editorial"][data-layout="break"] .layer[data-kind="motif"] .layer-visual::after {
  background: linear-gradient(90deg, var(--scene-ink) 0 29%, transparent 29% 56%, var(--scene-ink) 56% 85%, transparent 85%);
}

.layer[data-kind="rule"] .layer-visual::before {
  content: "";
  width: 100%;
  height: .12cqw;
  background: linear-gradient(90deg, var(--brand) 0 8%, transparent 8% 8.7%, color-mix(in srgb, var(--brand-alt) 62%, transparent) 8.7%);
}

.layer[data-kind="logo"] .layer-visual {
  --layer-font-size: 1.57cqw;
  gap: .85cqw;
  letter-spacing: .045em;
}

.scene-mark {
  flex: 0 0 auto;
  width: calc(2.4cqw * var(--layer-scale, 1));
  height: calc(2.4cqw * var(--layer-scale, 1));
  max-height: 100%;
  border-radius: 26%;
  background:
    linear-gradient(128deg, transparent 43%, color-mix(in srgb, var(--scene-dark) 84%, #000) 44% 56%, transparent 57%),
    linear-gradient(140deg, var(--brand) 0 52%, var(--brand-alt) 55%);
}

.layer[data-kind="logo"] img { flex: 0 0 auto; max-width: 33%; max-height: min(98%, calc(85% * var(--layer-scale, 1))); object-fit: contain; }
.layer[data-kind="logo"] .layer-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
[data-layout="game"] .layer[data-kind="logo"] .layer-visual { color: #fff9f5; filter: drop-shadow(0 .15cqw .38cqw #100910); }

.layer[data-kind="headline"] .layer-visual {
  --layer-font-size: 9.5cqw;
  font-family: var(--scene-display);
  font-weight: 900;
  line-height: .89;
  letter-spacing: -.045em;
}
[data-layout="end"] .layer[data-kind="headline"] .layer-visual { --layer-font-size: 9.9cqw; }
:is([data-layout="desk"], [data-layout="talk"], [data-layout="reaction"]) .layer[data-kind="headline"] .layer-visual { --layer-font-size: 4.65cqw; }
[data-theme="editorial"]:not([data-typeface="mono"]):not([data-typeface="condensed"]) .layer[data-kind="headline"] .layer-visual {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.045em;
}

.layer[data-kind="eyebrow"] .layer-visual {
  --layer-font-size: 1.34cqw;
  color: color-mix(in srgb, var(--brand) 75%, var(--scene-ink));
  font-family: var(--scene-mono);
  letter-spacing: .14em;
}

.layer[data-kind="caption"] .layer-visual { --layer-font-size: 1.42cqw; font-weight: 700; }
.layer[data-kind="caption"] .layer-text { padding: .38cqw 0; }
:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="caption"] .layer-text,
.layer[data-kind="text"] .layer-text {
  padding: .45cqw .9cqw;
  background: var(--layer-badge-bg);
  color: var(--layer-badge-ink);
  border-left: .2cqw solid var(--brand);
  border-radius: .2cqw;
}

.layer[data-kind="tag"] .layer-visual {
  --layer-font-size: 1.24cqw;
  justify-content: var(--layer-justify, flex-end);
  font-family: var(--scene-mono);
  letter-spacing: .105em;
}

.layer[data-kind="tag"] .layer-text {
  display: flex;
  align-items: center;
  gap: .68cqw;
  padding: .59cqw .86cqw;
  border-radius: .28cqw;
  background: var(--layer-badge-bg);
  color: var(--layer-badge-ink);
}

.layer[data-kind="tag"] .layer-text::before {
  content: "";
  flex: 0 0 auto;
  width: .56cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
}

.layer[data-kind="score"] .layer-visual {
  --layer-font-size: 2.65cqw;
  justify-content: var(--layer-justify, center);
  text-align: var(--layer-align, center);
  background: var(--layer-badge-bg);
  color: var(--layer-badge-ink);
  box-shadow: inset 0 -.36cqw var(--brand);
  border-radius: .55cqw;
  letter-spacing: .03em;
}
[data-layout="results"] .layer[data-kind="score"] .layer-visual { --layer-font-size: 6.25cqw; box-shadow: inset 0 -.65cqw var(--brand); }
[data-layout="results"] :is([data-kind="eyebrow"], [data-kind="caption"]) .layer-visual {
  justify-content: var(--layer-justify, center);
  text-align: var(--layer-align, center);
}

.layer[data-kind="frame"] .layer-visual {
  --layer-font-size: 1.19cqw;
  align-items: flex-end;
  border: .12cqw solid var(--frame-base);
  border-radius: var(--frame-radius);
  background: transparent;
  font-family: var(--scene-mono);
  letter-spacing: .09em;
}

.layer[data-kind="frame"] .layer-visual::before,
.layer[data-kind="frame"] .layer-visual::after {
  content: "";
  position: absolute;
  width: min(30%, 6cqw);
  height: min(20%, 3cqw);
  border: 0 solid var(--frame-border);
  pointer-events: none;
}
.layer[data-kind="frame"] .layer-visual::before { top: 0; left: 0; border-top-width: .25cqw; border-left-width: .25cqw; }
.layer[data-kind="frame"] .layer-visual::after { bottom: 0; right: 0; border-bottom-width: .25cqw; border-right-width: .25cqw; }
[data-theme="neon"] .layer[data-kind="frame"] .layer-visual { box-shadow: 0 0 1cqw color-mix(in srgb, var(--brand-alt) 24%, transparent); }

.layer[data-kind="frame"] .layer-text {
  position: relative;
  z-index: 1;
  padding: .42cqw .7cqw;
  background: var(--layer-badge-bg);
  color: var(--layer-badge-ink);
}
.layer[data-kind="frame"] .layer-text:empty { display: none; }

.obs-body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: transparent;
}
.obs-body .stage { position: absolute; inset: 0; width: 100%; height: 100%; }

/* «Ver salida» in a normal browser tab (/obs/<token>?vista=1): the program on a checkerboard, so its transparent
   parts read as transparent, fitted to its real aspect ratio, with a chip saying it is a silent preview. obs.js sets
   data-preview only outside OBS, so nothing here ever applies inside OBS. The transition layer shares the program's
   box, as it does in OBS. */
html[data-preview] .obs-body {
  display: grid;
  place-items: center;
  background: repeating-conic-gradient(#2b2a31 0 25%, #1f1e24 0 50%) 0 0 / 28px 28px;
}
html[data-preview] .obs-body > .stage,
html[data-preview] .obs-body > .scene-transition {
  grid-area: 1 / 1;
  position: relative;
  inset: auto;
  width: min(100vw, calc(100vh * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
}
html[data-preview] .obs-body[data-format="vertical"] > .stage,
html[data-preview] .obs-body[data-format="vertical"] > .scene-transition {
  width: min(100vw, calc(100vh * 9 / 16));
  aspect-ratio: 9 / 16;
}
html[data-preview] .obs-body::after {
  content: attr(data-preview-label);
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 10;
  padding: 6px 10px;
  border-radius: 999px;
  background: #121417e6;
  color: #f9f6f0;
  font: 700 13px/1.2 system-ui, sans-serif;
  pointer-events: none;
}

/* ---- airelivo-show.css ---- */
@font-face {
  font-family: 'Airelivo Display';
  src: url('/media/barlow-condensed.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.stage[data-typeface="studio"] {
  --scene-display: 'Airelivo Display', 'Arial Narrow', 'Segoe UI', sans-serif;
}

.stage .scene-mark {
  width: calc(2.35cqw * var(--layer-scale, 1));
  height: calc(2.35cqw * var(--layer-scale, 1));
  border: .13cqw solid color-mix(in srgb, var(--brand) 60%, transparent);
  border-radius: .52cqw;
  background:
    radial-gradient(circle at 68% 32%, var(--brand) 0 .24cqw, transparent .27cqw),
    color-mix(in srgb, var(--brand) 17%, #17141e);
  box-shadow: inset 0 0 .7cqw #0704098c;
  position: relative;
}

.stage .scene-mark::after {
  content: '';
  position: absolute;
  inset: 20%;
  border: .13cqw solid var(--brand);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-35deg);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"]) {
  --show-floor: #110e15;
  --show-veil: linear-gradient(90deg, #0d0a11 0%, #110d15f7 25%, #120e17df 45%, #140f1c74 68%, #15101912 100%);
  --show-edge: #fff3f727;
  --show-highlight: color-mix(in srgb, var(--brand) 74%, #fff8f1);
}

.stage[data-layout="break"] {
  --show-veil: linear-gradient(90deg, #100e17 0%, #120f19f0 28%, #161122d4 46%, #15182e45 75%, #15102125 100%);
  --show-crop: right 70%;
}

.stage[data-layout="end"] {
  --show-veil: linear-gradient(90deg, #141016 0%, #131017f1 35%, #201221af 60%, #39142035 100%);
  --show-crop: right bottom;
}

.stage[data-layout="results"] {
  --show-veil: linear-gradient(90deg, #181019 0%, #17121ae0 32%, #201625ba 66%, #1c1323bf 100%);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])[data-theme="neon"] {
  --show-floor: #0b1021;
  --show-veil: linear-gradient(90deg, #080d1a 0%, #0c1123f6 33%, #161b36b8 60%, #17233425 100%);
  --show-stage-tint: color-mix(in srgb, var(--brand-alt) 70%, #12091d);
  --show-edge: color-mix(in srgb, var(--brand-alt) 60%, transparent);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])[data-theme="editorial"] {
  --show-floor: #eedece;
  --show-veil: linear-gradient(90deg, #f8efe3 0%, #f8efe3 44%, #f6e8d8ee 51%, #28232120 67%, #21191514 100%);
  --show-edge: #49332843;
  --show-highlight: color-mix(in srgb, var(--brand-alt) 48%, #302329);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .layer-visual {
  background: var(--show-floor);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .layer-visual::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  opacity: 1;
  transform: none;
  background:
    linear-gradient(150deg, transparent 20%, var(--show-stage-tint, #21142c40) 82%),
    radial-gradient(ellipse at 86% 44%, color-mix(in srgb, var(--brand-alt) 31%, transparent) 0%, transparent 52%),
    url('/media/studio-plate.webp') var(--show-crop, center center) / cover no-repeat,
    linear-gradient(125deg, #160f18 25%, #393044 68%, #1a1424);
  background-blend-mode: color, screen, normal, normal;
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .layer-visual::after {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  opacity: 1;
  transform: none;
  background:
    linear-gradient(0deg, #101018 0%, transparent 20%),
    linear-gradient(180deg, #0b090f9c 0%, transparent 21%),
    var(--show-veil);
  box-shadow: inset 0 -.36cqw color-mix(in srgb, var(--brand) 86%, #1c1521);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])[data-theme="editorial"]
  .layer[data-layer="fondo"] .layer-visual::after {
  background:
    linear-gradient(0deg, #eadbce8c 0%, transparent 22%),
    linear-gradient(180deg, #e5d0bb45 0%, transparent 18%),
    var(--show-veil);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="antetitulo"] .layer-visual {
  --layer-font-size: 1.17cqw;
  color: var(--show-highlight);
  letter-spacing: .14em;
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="titular"] .layer-visual {
  --layer-font-size: 7.75cqw;
  font-weight: 700;
  line-height: .86;
  letter-spacing: .012em;
  text-transform: uppercase;
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])[data-typeface="mono"]
  .layer[data-layer="titular"] .layer-visual {
  --layer-font-size: 6.3cqw;
  letter-spacing: -.038em;
}

.stage[data-layout="results"] .layer[data-layer="titular"] .layer-visual { --layer-font-size: 6.25cqw; }
.stage[data-layout="results"][data-theme="editorial"] .layer[data-layer="titular"] .layer-visual,
.stage[data-layout="results"][data-theme="editorial"] .layer[data-layer="pie"] .layer-visual { color: #281e24; }
.stage[data-layout="results"][data-theme="editorial"] .layer[data-layer="fondo"] .layer-visual::after {
  background: linear-gradient(90deg, #f8efe3 0%, #f8efe3ee 42%, #f8efe3c9 100%);
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="linea"] .layer-visual {
  background: linear-gradient(90deg, var(--brand) 0 10%, transparent 10% 11%, var(--show-edge) 11% 100%) center / 100% .12cqw no-repeat;
}

.layer[data-kind="callout"] .layer-visual {
  --layer-font-size: 2cqw;
  align-items: center;
  padding: .8cqw 1.5cqw;
  border: .07cqw solid #fff3;
  border-top: .13cqw solid color-mix(in srgb, var(--brand) 82%, #fff);
  background: linear-gradient(140deg, #291e29f5, #15141bee 90%);
  box-shadow: inset 0 0 1.6cqw #03020475;
  color: #f9f1eb;
}

.callout-copy { min-width: 0; display: grid; gap: .35cqw; }
.callout-kicker {
  color: color-mix(in srgb, var(--brand) 78%, #fff6ed);
  font: 700 calc(.78cqw * var(--layer-scale, 1))/1.1 var(--scene-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.layer[data-kind="callout"] .layer-text { line-height: 1.04; }
.layer[data-kind="callout"] .layer-visual::after {
  content: '';
  position: absolute;
  inset: auto .5cqw .38cqw auto;
  width: 1.5cqw;
  height: .3cqw;
  background: repeating-linear-gradient(90deg, var(--brand-alt) 0 .12cqw, transparent .13cqw .34cqw);
  opacity: .8;
}

[data-theme="editorial"] .layer[data-kind="callout"] .layer-visual {
  background: linear-gradient(140deg, #f9f0e2, #efe1d2);
  color: #2b2023;
  border-color: #3a23224a;
  border-top-color: var(--brand-alt);
  box-shadow: inset 0 0 1.3cqw #a77a4e19;
}
[data-theme="editorial"] .callout-kicker { color: color-mix(in srgb, var(--brand-alt) 45%, #352726); }
[data-layout="reaction"] .layer[data-layer="fuente"] .layer-visual { --layer-font-size: 1.66cqw; align-items: end; padding-bottom: 1cqw; }
[data-layout="reaction"] .layer[data-layer="fuente"] .layer-visual::before {
  content: '';
  position: absolute;
  top: 1.1cqw;
  left: 1.4cqw;
  height: 1.55cqw;
  width: 1.4cqw;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--brand);
}

.layer[data-kind="countdown"] .layer-visual {
  --layer-font-size: 4.4cqw;
  gap: .32cqw;
  justify-content: var(--layer-justify, flex-start);
  font-family: var(--scene-display);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-digit {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 1.1em;
  height: 96%;
  color: #faf3ed;
  background: linear-gradient(180deg, #2c232e 0%, #221b24 49%, #1b171e 49.5%, #19151c 100%);
  border: .065cqw solid #fff4;
  border-top-color: var(--brand);
  border-radius: .25cqw;
  box-shadow: inset 0 -.13cqw #110c14;
}
.countdown-separator { color: var(--show-highlight, var(--brand)); margin-inline: .12cqw; transform: translateY(-.075em); }
[data-theme="editorial"] .countdown-digit {
  color: #302027;
  background: linear-gradient(#e9d8c6 0%, #f1e2d4 49%, #e8d8c7 49.5%, #f8ede3 100%);
  border-color: #b6a08b;
  border-top-color: var(--brand-alt);
  box-shadow: inset 0 -.13cqw #b6a08b;
}

[data-layout="results"] .layer[data-layer="score"] .layer-visual {
  --layer-font-size: 5.9cqw;
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand) 85%, #f9d5d4), color-mix(in srgb, var(--brand) 59%, #3b2240));
  color: #160e16;
  border-block: .13cqw solid #fff6;
  border-radius: 0;
  font-family: var(--scene-display);
}
[data-layout="results"] .layer[data-kind="callout"] .layer-visual { --layer-font-size: 3.2cqw; }

/* ---- airelivo-frames.css ---- */
.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) {
  --on-air-metal: #1d1922;
  --on-air-shadow: #0c0b10;
  --on-air-ink: #fff7f4;
  --on-air-highlight: color-mix(in srgb, var(--brand) 84%, #fff);
  --on-air-light: color-mix(in srgb, var(--brand-alt) 64%, #1d1922);
  --on-air-edge: color-mix(in srgb, var(--brand-alt) 54%, #312933);
  --on-air-inset: color-mix(in srgb, var(--on-air-ink) 15%, transparent);
  --on-air-terminal: .46cqw;
  --on-air-radius: .2cqw;
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])[data-theme="neon"] {
  --on-air-metal: #1b203a;
  --on-air-shadow: #0b0c1a;
  --on-air-ink: #f0f3ff;
  --on-air-highlight: var(--brand);
  --on-air-light: color-mix(in srgb, var(--brand-alt) 73%, #151932);
  --on-air-edge: color-mix(in srgb, var(--brand-alt) 74%, #2d3058);
  --on-air-terminal: .4cqw;
  --on-air-radius: .45cqw;
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])[data-theme="editorial"] {
  --on-air-metal: #f3eadc;
  --on-air-shadow: #c9b9a2;
  --on-air-ink: #23201f;
  --on-air-highlight: color-mix(in srgb, var(--brand) 72%, #715648);
  --on-air-light: color-mix(in srgb, var(--brand-alt) 51%, #6f5c52);
  --on-air-edge: #8d7b6e;
  --on-air-inset: #22171725;
  --on-air-terminal: .3cqw;
  --on-air-radius: 0;
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="plate"] .layer-visual {
  background:
    linear-gradient(90deg, transparent 3.48%, var(--on-air-inset) 3.5%, transparent 3.57%, transparent 96.42%, var(--on-air-inset) 96.49%, transparent 96.52%),
    linear-gradient(168deg, color-mix(in srgb, var(--on-air-metal) 86%, var(--brand-alt)), transparent 63%),
    linear-gradient(90deg, var(--on-air-metal), var(--on-air-shadow) 53%, color-mix(in srgb, var(--on-air-metal) 81%, var(--brand-alt)));
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="plate"] .layer-visual::before {
  inset: auto 3.5% 1.38cqw;
  height: .07cqw;
  transform: none;
  border: 0;
  border-radius: 0;
  mask-image: none;
  background: linear-gradient(90deg, var(--on-air-inset), transparent 42%, var(--on-air-inset) 71%, transparent);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="plate"] .layer-visual::after {
  height: .4cqw;
  background: linear-gradient(104deg,
    transparent 0 3.5%, var(--on-air-metal) 3.5% 3.78%,
    var(--on-air-highlight) 3.78% 15%, transparent 15% 15.36%,
    var(--on-air-light) 15.36% 20.25%, transparent 20.25% 20.8%,
    var(--on-air-edge) 20.8% 96.5%, transparent 96.5%);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-layer="pie-fondo"] .layer-visual {
  background:
    linear-gradient(90deg, transparent 3.48%, var(--on-air-inset) 3.5%, transparent 3.57%, transparent 96.42%, var(--on-air-inset) 96.49%, transparent 96.52%),
    linear-gradient(115deg, var(--on-air-metal), var(--on-air-shadow) 55%, color-mix(in srgb, var(--on-air-shadow) 74%, var(--brand-alt)));
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-layer="pie-fondo"] .layer-visual::before {
  inset: 0 3.5% auto;
  background: linear-gradient(90deg, var(--on-air-edge), transparent 82%);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-layer="pie-fondo"] .layer-visual::after { display: none; }

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="headline"] .layer-visual {
  --layer-font-size: 4.1cqw;
  color: var(--on-air-ink);
  letter-spacing: -.052em;
  text-shadow: 0 .11cqw .04cqw color-mix(in srgb, var(--on-air-shadow) 72%, transparent);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])[data-theme="editorial"] .layer[data-kind="headline"] .layer-visual {
  text-shadow: none;
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="logo"] .layer-visual {
  --layer-font-size: 1.66cqw;
  color: var(--on-air-ink);
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"] .layer-visual {
  --layer-font-size: 1.21cqw;
  border: .07cqw solid var(--on-air-edge);
  border-radius: var(--on-air-radius);
  box-shadow: none;
  background: transparent;
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"] .layer-visual::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  background:
    linear-gradient(100deg, var(--on-air-highlight) 0 44%, var(--on-air-light) 84%, transparent) left top / min(34%, 14.8cqw) var(--on-air-terminal) no-repeat,
    linear-gradient(var(--on-air-highlight), var(--on-air-light) 61%, transparent) left top / var(--on-air-terminal) min(24%, 5.2cqw) no-repeat,
    linear-gradient(270deg, var(--on-air-highlight), var(--on-air-light) 53%, transparent) right bottom / min(28%, 12cqw) var(--on-air-terminal) no-repeat,
    linear-gradient(0deg, var(--on-air-highlight), var(--on-air-light) 60%, transparent) right bottom / var(--on-air-terminal) min(24%, 4.6cqw) no-repeat,
    linear-gradient(90deg, transparent, var(--on-air-edge)) right top / min(16%, 5.8cqw) .16cqw no-repeat,
    linear-gradient(0deg, transparent, var(--on-air-edge)) right top / .16cqw min(9%, 2.45cqw) no-repeat;
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"] .layer-visual::after {
  inset: .82cqw auto auto .85cqw;
  width: min(18%, 3.1cqw);
  height: .38cqw;
  border: 0;
  opacity: .8;
  background: repeating-linear-gradient(105deg, var(--on-air-inset) 0 .12cqw, transparent .14cqw .42cqw);
  clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"] .layer-text {
  display: flex;
  align-items: center;
  gap: .63cqw;
  max-width: 100%;
  margin-bottom: .15cqw;
  padding: .62cqw 1.6cqw .63cqw .7cqw;
  background:
    linear-gradient(180deg, var(--on-air-inset) 0 1px, transparent 1px),
    linear-gradient(90deg, var(--on-air-shadow), var(--on-air-metal));
  color: var(--on-air-ink);
  text-shadow: none;
  clip-path: polygon(0 0, calc(100% - .77cqw) 0, 100% 50%, calc(100% - .77cqw) 100%, 0 100%);
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"] .layer-text::before {
  content: "";
  width: .56cqw;
  height: .7cqw;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--on-air-highlight), var(--on-air-light));
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"] .layer-text:empty { display: none; }

.stage[data-layout="talk"] .layer[data-layer="chat"] { --on-air-highlight: var(--brand-alt); }
.stage[data-layout="talk"] .layer[data-layer="chat"] .layer-visual { align-items: flex-start; }
.stage[data-layout="talk"] .layer[data-layer="chat"] .layer-text { margin-top: .6cqw; }
.stage[data-layout="desk"] .layer[data-layer="camara-b"] { --on-air-highlight: var(--brand-alt); }

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="caption"] .layer-text {
  padding: .44cqw 1.35cqw .47cqw .8cqw;
  background: linear-gradient(93deg, var(--on-air-metal), var(--on-air-shadow) 85%);
  color: var(--on-air-ink);
  border: 0;
  box-shadow: inset .19cqw 0 var(--on-air-highlight), inset 0 1px var(--on-air-inset);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - .65cqw) 0, 100% 100%, 0 100%);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="rule"] .layer-visual::before {
  height: .18cqw;
  background: linear-gradient(110deg,
    var(--on-air-highlight) 0 6%, transparent 6% 6.6%,
    var(--on-air-light) 6.6% 11%, transparent 11% 11.6%,
    var(--on-air-edge) 11.6% 79%, transparent 97%);
}

.stage[data-layout="game"] .layer[data-kind="logo"] .layer-visual {
  --layer-font-size: 1.62cqw;
  width: max-content;
  max-width: 100%;
  padding: 0 1.42cqw 0 .75cqw;
  background:
    linear-gradient(138deg, var(--on-air-inset), transparent 64%),
    linear-gradient(92deg, var(--on-air-shadow), var(--on-air-metal));
  color: var(--on-air-ink);
  box-shadow: inset 0 .15cqw var(--on-air-highlight), inset 0 -.07cqw var(--on-air-edge);
  filter: none;
  clip-path: polygon(0 0, calc(100% - 1.05cqw) 0, 100% 34%, 100% 100%, 0 100%);
}

.stage[data-layout="game"] .layer[data-kind="logo"][data-align="center"] .layer-visual { margin-inline: auto; }
.stage[data-layout="game"] .layer[data-kind="logo"][data-align="right"] .layer-visual { margin-inline-start: auto; }
.stage[data-layout="game"] .layer[data-kind="logo"] img { max-width: 4.3cqw; }

.stage[data-layout="game"] .layer[data-kind="tag"] .layer-text {
  border: .07cqw solid var(--on-air-edge);
  border-top: .17cqw solid var(--on-air-highlight);
  border-radius: 0;
  background: linear-gradient(100deg, var(--on-air-metal), var(--on-air-shadow));
  color: var(--on-air-ink);
}

.stage[data-layout="game"] .layer[data-kind="tag"] .layer-text::before {
  background: var(--on-air-highlight);
  box-shadow: 0 0 .45cqw color-mix(in srgb, var(--on-air-highlight) 58%, transparent);
}

.stage[data-layout="reaction"] .layer[data-kind="motif"] .layer-visual {
  border: .07cqw solid var(--on-air-edge);
  border-radius: var(--on-air-radius);
  box-shadow: inset 0 .15cqw var(--on-air-highlight);
  background:
    repeating-linear-gradient(145deg, transparent 0 14%, var(--on-air-inset) 14.3% 14.65%, transparent 14.9% 22%),
    radial-gradient(ellipse at 63% 23%, color-mix(in srgb, var(--on-air-metal) 35%, var(--brand-alt)), transparent 65%),
    linear-gradient(125deg, var(--on-air-shadow), var(--on-air-metal));
}

.stage[data-layout="reaction"] .layer[data-kind="motif"] .layer-visual::before {
  width: 56%;
  right: 21%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  opacity: .87;
  background: repeating-radial-gradient(circle, transparent 0 12%, var(--on-air-edge) 12.2% 12.65%, transparent 12.9% 15%);
  mask-image: linear-gradient(112deg, transparent 2%, #000 29% 78%, transparent 95%);
}

.stage[data-layout="reaction"] .layer[data-kind="motif"] .layer-visual::after {
  width: 13%;
  left: 45.5%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0;
  opacity: 1;
  background: linear-gradient(120deg, var(--on-air-highlight), var(--on-air-light));
  box-shadow: none;
  clip-path: polygon(6% 0, 96% 50%, 6% 100%);
}

/* ---- game-packs.css ---- */
.stage[data-game-pack] {
  --pack-deep: #11121b;
  --pack-panel: #20232f;
  --pack-bright: var(--brand);
  --pack-edge: var(--brand-alt);
  --pack-text: #f7f6fb;
  --pack-shape: polygon(0 0, calc(100% - .8cqw) 0, 100% .8cqw, 100% 100%, .75cqw 100%, 0 calc(100% - .75cqw));
  --on-air-metal: var(--pack-panel);
  --on-air-shadow: var(--pack-deep);
  --on-air-highlight: var(--pack-bright);
  --on-air-light: var(--pack-edge);
  --on-air-edge: color-mix(in srgb, var(--pack-edge) 66%, var(--pack-deep));
  --on-air-inset: color-mix(in srgb, var(--pack-edge) 38%, transparent);
  --scene-ink: var(--pack-text);
}

.stage[data-game-pack] .layer[data-kind="callout"] .layer-visual {
  clip-path: var(--pack-shape);
  border: .07cqw solid color-mix(in srgb, var(--pack-edge) 53%, transparent);
  border-top: .16cqw solid var(--pack-bright);
  background:
    linear-gradient(130deg, transparent 0 74%, color-mix(in srgb, var(--pack-edge) 41%, transparent) 75% 76%, transparent 77%),
    linear-gradient(154deg, color-mix(in srgb, var(--pack-panel) 82%, var(--pack-edge)), var(--pack-deep) 83%);
  color: var(--pack-text);
}

.stage[data-game-pack] .callout-kicker {
  color: color-mix(in srgb, var(--pack-bright) 82%, white);
}

.stage[data-game-pack]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="antetitulo"] .layer-visual {
  color: color-mix(in srgb, var(--pack-bright) 88%, white);
}

.stage[data-game-pack] .layer[data-kind="tag"] .layer-text,
.stage[data-game-pack]:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="caption"] .layer-text {
  clip-path: var(--pack-shape);
}

.stage[data-game-pack] .layer[data-kind="countdown"] .countdown-digit {
  border-radius: 0;
  clip-path: var(--pack-shape);
  color: var(--pack-text);
  border-color: color-mix(in srgb, var(--pack-edge) 57%, var(--pack-panel));
  border-top-color: var(--pack-bright);
  box-shadow: inset 0 -.18cqw color-mix(in srgb, var(--pack-edge) 52%, var(--pack-deep));
  background:
    linear-gradient(142deg, transparent 0 76%, color-mix(in srgb, var(--pack-edge) 31%, transparent) 76% 79%, transparent 79%),
    linear-gradient(180deg, var(--pack-panel) 0%, var(--pack-panel) 49%, var(--pack-deep) 50%);
}

.stage[data-game-pack] .countdown-separator { color: var(--pack-bright); }

.stage[data-game-pack] .layer[data-kind="rule"] .layer-visual {
  background:
    linear-gradient(130deg, var(--pack-bright) 0 11%, transparent 11.15% 11.8%, var(--pack-edge) 12% 18%, transparent 18.15% 19%, var(--pack-edge) 19.15%, transparent) center / 100% .14cqw no-repeat;
}

.stage[data-game-pack][data-layout="results"] .layer[data-layer="score"] .layer-visual {
  background: linear-gradient(143deg, var(--pack-bright), color-mix(in srgb, var(--pack-bright) 64%, var(--pack-edge)));
  color: #080b12;
  clip-path: var(--pack-shape);
}

.pack-light-trace {
  position: absolute;
  z-index: 1;
  inset: auto -20% 5% 47%;
  height: .49cqw;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--pack-bright, var(--brand)), var(--pack-edge, var(--brand-alt)), transparent);
  clip-path: polygon(0 0, 96% 0, 100% 100%, 4% 100%);
}

.stage[data-motion="on"] .layer[data-layer="fondo"] .pack-light-trace {
  animation: airtime-light-pass 6.8s ease-in-out infinite;
}

.stage[data-game-pack][data-motion="on"] .layer[data-kind="frame"] .layer-visual::before {
  animation: airtime-edge-level 4.7s ease-in-out infinite;
}

.stage[data-game-pack][data-motion="on"] .layer[data-kind="frame"]:nth-of-type(even) .layer-visual::before {
  animation-delay: -1.6s;
}

.stage[data-game-pack][data-motion="on"] .layer:is([data-kind="tag"], [data-kind="callout"]):not([data-editable]) .layer-visual {
  animation: airtime-label-arrive .36s cubic-bezier(.15,.7,.33,1) both;
}

@keyframes airtime-light-pass {
  0%, 19% { opacity: 0; transform: translateX(25%) skewX(-39deg); }
  35% { opacity: .46; }
  68%, 100% { opacity: 0; transform: translateX(-61%) skewX(-39deg); }
}

@keyframes airtime-edge-level {
  0%, 100% { opacity: .69; }
  46% { opacity: 1; }
}

@keyframes airtime-label-arrive {
  from { translate: 1.1cqw 0; scale: .975 1; }
  to { translate: 0 0; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-motion="on"] .layer-visual,
  .stage[data-motion="on"] .layer-visual::before,
  .stage[data-motion="on"] .pack-light-trace {
    animation: none !important;
  }
}

/* ---- pack-competitive.css ---- */
.stage[data-theme="operations"] {
  --pack-deep: #10120e;
  --pack-panel: #20241a;
  --pack-bright: var(--brand, #d8fd58);
  --pack-edge: var(--brand-alt, #e59742);
  --pack-shape: polygon(0 0, calc(100% - .8cqw) 0, 100% .8cqw, 100% 100%, .64cqw 100%, 0 calc(100% - .64cqw));
  --on-air-metal: var(--pack-panel);
  --on-air-shadow: var(--pack-deep);
  --on-air-ink: #f0f3db;
  --on-air-highlight: var(--pack-bright);
  --on-air-light: var(--pack-edge);
  --on-air-edge: #70765c;
  --on-air-inset: #a4b39637;
  --on-air-radius: 0;
  --layer-badge-bg: var(--pack-panel);
}

.stage[data-theme="pulse"] {
  --pack-deep: #160f1d;
  --pack-panel: #291b31;
  --pack-bright: var(--brand, #ff4d77);
  --pack-edge: var(--brand-alt, #71f6ff);
  --pack-shape: polygon(.68cqw 0, 100% 0, 100% calc(100% - 1.0cqw), calc(100% - 1.05cqw) 100%, 0 100%, 0 .66cqw);
  --on-air-metal: var(--pack-panel);
  --on-air-shadow: var(--pack-deep);
  --on-air-ink: #fff3fa;
  --on-air-highlight: var(--pack-bright);
  --on-air-light: var(--pack-edge);
  --on-air-edge: #9c718e;
  --on-air-inset: #e7a5bd39;
  --on-air-radius: 0;
  --layer-badge-bg: var(--pack-panel);
}

.stage[data-theme="operations"] .layer[data-kind="headline"] .layer-visual {
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.stage[data-theme="operations"][data-layout="opening"]:not([data-typeface="mono"]) .layer[data-kind="headline"] .layer-visual {
  --layer-font-size: 7.2cqw;
  letter-spacing: .025em;
}

.stage[data-theme="pulse"] .layer[data-kind="headline"] .layer-visual {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.stage[data-theme="pulse"] .layer[data-kind="headline"] .layer-text { padding-right: .18em; }

.stage:is([data-theme="operations"], [data-theme="pulse"]) .scene-mark {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.stage[data-theme="operations"] .scene-mark {
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 28% 100%, 0 72%);
  background:
    repeating-linear-gradient(145deg, var(--pack-bright) 0 .27cqw, transparent .28cqw .57cqw),
    var(--pack-deep);
}

.stage[data-theme="operations"] .scene-mark::after {
  inset: auto 0 0 auto;
  width: 43%;
  height: 43%;
  border: 0;
  border-radius: 0;
  transform: none;
  background: var(--pack-edge);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.stage[data-theme="pulse"] .scene-mark {
  clip-path: polygon(22% 0, 100% 0, 100% 65%, 73% 100%, 0 100%, 0 24%);
  background: linear-gradient(132deg, var(--pack-edge) 0 32%, var(--pack-deep) 33% 45%, var(--pack-bright) 46% 100%);
}

.stage[data-theme="pulse"] .scene-mark::after {
  inset: 20% 27%;
  border: .1cqw solid #fff9;
  border-inline-color: transparent;
  border-radius: 0;
  transform: skew(-25deg);
}

.stage[data-theme="operations"] .layer[data-kind="tag"] .layer-text {
  padding: .56cqw 1.1cqw .56cqw .82cqw;
  border-color: var(--pack-bright);
  background:
    linear-gradient(158deg, #f8ffae80, transparent 52%),
    var(--pack-bright);
  color: #141810;
  box-shadow: inset 0 -.16cqw #242f1c57;
  border-radius: 0;
  clip-path: polygon(.36cqw 0, 100% 0, 100% calc(100% - .36cqw), calc(100% - .36cqw) 100%, 0 100%, 0 .36cqw);
}

.stage[data-theme="operations"] .layer[data-kind="tag"] .layer-text::before {
  border-radius: 0;
  transform: skew(-16deg);
  background: #303c21;
  box-shadow: none;
}

.stage[data-theme="pulse"] .layer[data-kind="tag"] .layer-text {
  padding: .52cqw 1.16cqw .52cqw .65cqw;
  border: .07cqw solid color-mix(in srgb, var(--pack-bright) 72%, #f6dae2);
  border-left: .2cqw solid var(--pack-edge);
  border-radius: 0;
  color: #fff7fb;
  background:
    linear-gradient(146deg, #fdf2ff18, transparent 55%),
    linear-gradient(112deg, var(--pack-panel), color-mix(in srgb, var(--pack-bright) 41%, var(--pack-deep)));
  clip-path: polygon(0 0, calc(100% - .52cqw) 0, 100% .52cqw, 100% 100%, 0 100%);
}

.stage[data-theme="pulse"] .layer[data-kind="tag"] .layer-text::before {
  border-radius: 0;
  transform: rotate(45deg);
  background: var(--pack-edge);
  box-shadow: 0 0 .56cqw color-mix(in srgb, var(--pack-edge) 46%, transparent);
}

.stage:is([data-theme="operations"], [data-theme="pulse"]) .layer[data-kind="frame"] .layer-visual {
  border: .09cqw solid var(--on-air-edge);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stage:is([data-theme="operations"], [data-theme="pulse"]) .layer[data-kind="frame"] .layer-visual::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  background: var(--competitive-rail);
}

.stage[data-theme="operations"] .layer[data-kind="frame"] .layer-visual {
  --competitive-rail:
    linear-gradient(100deg, var(--pack-bright) 0 66%, transparent 67%) left top / min(45%, 18cqw) .36cqw no-repeat,
    linear-gradient(175deg, var(--pack-bright), transparent 82%) left top / .36cqw min(32%, 6.3cqw) no-repeat,
    repeating-linear-gradient(128deg, var(--pack-edge) 0 .16cqw, transparent .19cqw .38cqw) right bottom / min(30%, 11cqw) .36cqw no-repeat,
    linear-gradient(0deg, var(--pack-edge), transparent) right bottom / .24cqw min(25%, 5.1cqw) no-repeat,
    linear-gradient(135deg, transparent 36%, var(--pack-bright) 37% 56%, transparent 57%) right top / 1.2cqw 1.2cqw no-repeat;
}

.stage[data-theme="pulse"] .layer[data-kind="frame"] .layer-visual {
  --competitive-rail:
    linear-gradient(135deg, transparent 34%, var(--pack-bright) 35% 64%, transparent 65%) left top / 2.25cqw 2.25cqw no-repeat,
    linear-gradient(105deg, var(--pack-bright), transparent 90%) left top / min(36%, 12cqw) .24cqw no-repeat,
    linear-gradient(180deg, var(--pack-bright), transparent 90%) left top / .29cqw min(18%, 3.5cqw) no-repeat,
    linear-gradient(315deg, transparent 34%, var(--pack-edge) 35% 64%, transparent 65%) right bottom / 2.25cqw 2.25cqw no-repeat,
    linear-gradient(270deg, var(--pack-edge), transparent 85%) right bottom / min(32%, 11cqw) .25cqw no-repeat,
    linear-gradient(0deg, var(--pack-edge), transparent 84%) right bottom / .28cqw min(18%, 3.5cqw) no-repeat;
}

.stage:is([data-theme="operations"], [data-theme="pulse"]) .layer[data-kind="frame"] .layer-visual::after {
  inset: .72cqw .6cqw auto auto;
  width: min(18%, 2.4cqw);
  height: .37cqw;
  border: 0;
  opacity: .8;
  clip-path: none;
}

.stage[data-theme="operations"] .layer[data-kind="frame"] .layer-visual::after {
  background: repeating-linear-gradient(90deg, var(--pack-edge) 0 .15cqw, transparent .15cqw .37cqw);
}

.stage[data-theme="pulse"] .layer[data-kind="frame"] .layer-visual::after {
  background: repeating-linear-gradient(129deg, var(--pack-edge) 0 .19cqw, transparent .20cqw .45cqw);
}

.stage:is([data-theme="operations"], [data-theme="pulse"]) .layer[data-kind="frame"] .layer-text {
  margin-bottom: 0;
  border-top: .08cqw solid var(--on-air-edge);
  border-radius: 0;
  clip-path: var(--pack-shape);
}

.stage[data-theme="operations"] .layer[data-kind="frame"] .layer-text {
  background:
    linear-gradient(148deg, #9fb78831, transparent 58%),
    linear-gradient(90deg, var(--pack-panel), var(--pack-deep));
}

.stage[data-theme="pulse"] .layer[data-kind="frame"] .layer-text {
  padding-left: 1cqw;
  background:
    linear-gradient(143deg, transparent 0 82%, color-mix(in srgb, var(--pack-bright) 68%, transparent) 83% 95%, transparent 96%),
    linear-gradient(90deg, var(--pack-deep), color-mix(in srgb, var(--pack-bright) 38%, var(--pack-panel)));
}

.stage[data-theme="operations"] .layer[data-kind="frame"] .layer-text::before {
  background: linear-gradient(180deg, var(--pack-bright) 0 48%, var(--pack-edge) 48% 100%);
}

.stage[data-theme="pulse"] .layer[data-kind="frame"] .layer-text::before {
  background: var(--pack-edge);
  clip-path: polygon(48% 0, 100% 48%, 48% 100%, 0 48%);
}

.stage:is([data-theme="operations"], [data-theme="pulse"]) .layer[data-kind="callout"] .layer-visual {
  clip-path: var(--pack-shape);
  border: .07cqw solid var(--on-air-edge);
  border-top: .15cqw solid var(--pack-bright);
}

.stage[data-theme="operations"] .layer[data-kind="callout"] .layer-visual {
  background:
    radial-gradient(ellipse at 86% 9%, #a9be732a, transparent 67%),
    linear-gradient(119deg, var(--pack-panel), var(--pack-deep));
  box-shadow: inset 0 -.25cqw #070b059a;
}

.stage[data-theme="pulse"] .layer[data-kind="callout"] .layer-visual {
  background:
    linear-gradient(139deg, transparent 0 72%, color-mix(in srgb, var(--pack-bright) 32%, var(--pack-panel)) 72% 95%, transparent 95%),
    linear-gradient(110deg, var(--pack-panel), var(--pack-deep));
  box-shadow: inset -.17cqw -.15cqw var(--pack-edge);
}

/* ---- pack-worlds.css ---- */
.stage[data-theme="arcana"] {
  --pack-deep: #071819;
  --pack-panel: #123333;
  --pack-bright: var(--brand, #58efcf);
  --pack-edge: var(--brand-alt, #ffce75);
  --pack-shape: polygon(.65cqw 0, calc(100% - .72cqw) 0, 100% 50%, calc(100% - .72cqw) 100%, .65cqw 100%, 0 50%);
  --pack-corner-rails:
    linear-gradient(90deg, var(--pack-edge) 2%, var(--pack-bright) 48%, transparent) left top / min(20%, 6.5cqw) .14cqw no-repeat,
    linear-gradient(var(--pack-edge), var(--pack-bright) 42%, transparent) left top / .14cqw min(24%, 5cqw) no-repeat,
    linear-gradient(270deg, var(--pack-edge), var(--pack-bright) 55%, transparent) right bottom / min(23%, 6.5cqw) .14cqw no-repeat,
    linear-gradient(0deg, var(--pack-edge), var(--pack-bright) 48%, transparent) right bottom / .14cqw min(24%, 5.4cqw) no-repeat;
  --pack-terminal-width: .54cqw;
  --pack-terminal-height: .54cqw;
  --pack-terminal-shape: polygon(50% 0, 100% 50%, 50% 100%, 0 50%, 50% 0, 50% 22%, 22% 50%, 50% 78%, 78% 50%, 50% 22%);
  --pack-terminal-fill: var(--pack-edge);
  --pack-badge-surface:
    linear-gradient(150deg, color-mix(in srgb, var(--pack-edge) 42%, #482b19), transparent .1cqw),
    linear-gradient(108deg, var(--pack-deep), color-mix(in srgb, var(--pack-panel) 74%, var(--pack-bright)));
  --scene-ink: #e7fbec;
  --on-air-ink: #e7fbec;
  --on-air-edge: color-mix(in srgb, var(--pack-bright) 31%, #19383a);
}

.stage[data-theme="stadium"] {
  --pack-deep: #0c1711;
  --pack-panel: #233225;
  --pack-bright: var(--brand, #c9ff4f);
  --pack-edge: var(--brand-alt, #4ce4fb);
  --pack-shape: polygon(1.05cqw 0, 100% 0, calc(100% - 1.05cqw) 100%, 0 100%);
  --pack-corner-rails:
    repeating-linear-gradient(118deg, var(--pack-bright) 0 .58cqw, transparent .6cqw .88cqw) left top / min(27%, 7.5cqw) .46cqw no-repeat,
    linear-gradient(var(--pack-bright), transparent) left top / .19cqw min(18%, 3.6cqw) no-repeat,
    repeating-linear-gradient(118deg, var(--pack-edge) 0 .58cqw, transparent .6cqw .88cqw) right bottom / min(24%, 7.5cqw) .46cqw no-repeat,
    linear-gradient(0deg, var(--pack-edge), transparent) right bottom / .19cqw min(18%, 3.6cqw) no-repeat;
  --pack-terminal-width: 1.52cqw;
  --pack-terminal-height: .26cqw;
  --pack-terminal-shape: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  --pack-terminal-fill: repeating-linear-gradient(112deg, var(--pack-bright) 0 .38cqw, transparent .4cqw .57cqw);
  --pack-badge-surface:
    repeating-linear-gradient(112deg, transparent 0 .24cqw, #daffdf12 .26cqw .29cqw, transparent .31cqw .68cqw),
    linear-gradient(112deg, color-mix(in srgb, var(--pack-panel) 78%, var(--pack-edge)), var(--pack-deep) 82%);
  --scene-ink: #f5ffe7;
  --on-air-ink: #f5ffe7;
  --on-air-edge: color-mix(in srgb, var(--pack-edge) 33%, #182c24);
}

.stage[data-theme="afterdark"] {
  --pack-deep: #171019;
  --pack-panel: #35243e;
  --pack-bright: var(--brand, #ff4bd1);
  --pack-edge: var(--brand-alt, #3fffec);
  --pack-shape: polygon(0 0, calc(100% - 1.15cqw) 0, 100% 42%, 100% 100%, .9cqw 100%, 0 64%);
  --pack-corner-rails:
    linear-gradient(90deg, var(--pack-bright), color-mix(in srgb, var(--pack-bright) 57%, transparent) 65%, transparent) left top / min(45%, 12cqw) .25cqw no-repeat,
    linear-gradient(var(--pack-bright), transparent) left top / .13cqw min(26%, 6cqw) no-repeat,
    linear-gradient(270deg, var(--pack-edge), color-mix(in srgb, var(--pack-edge) 40%, transparent) 63%, transparent) right bottom / min(46%, 11cqw) .19cqw no-repeat,
    linear-gradient(0deg, var(--pack-edge), transparent) right bottom / .13cqw min(24%, 6cqw) no-repeat,
    linear-gradient(90deg, var(--pack-edge), transparent) left .35cqw top .37cqw / min(22%, 4.6cqw) .07cqw no-repeat,
    linear-gradient(270deg, var(--pack-bright), transparent) right .35cqw bottom .37cqw / min(22%, 4.8cqw) .07cqw no-repeat;
  --pack-terminal-width: 1.14cqw;
  --pack-terminal-height: .44cqw;
  --pack-terminal-shape: polygon(0 0, 68% 0, 100% 100%, 33% 100%);
  --pack-terminal-fill: linear-gradient(0deg, var(--pack-edge) 0 26%, transparent 28% 62%, var(--pack-bright) 64%);
  --pack-badge-surface:
    linear-gradient(180deg, #f8d3fb26, transparent 42%, #09060d6e 85%),
    linear-gradient(120deg, color-mix(in srgb, var(--pack-panel) 70%, var(--pack-bright)), var(--pack-deep) 68%);
  --scene-ink: #fff3fa;
  --on-air-ink: #fff3fa;
  --on-air-edge: color-mix(in srgb, var(--pack-edge) 39%, #2d1840);
}

.stage:is([data-theme="arcana"], [data-theme="stadium"], [data-theme="afterdark"])
  .layer[data-kind="frame"] > .layer-visual {
  background: transparent;
  border-color: var(--on-air-edge);
  border-radius: 0;
  box-shadow: none;
}

.stage:is([data-theme="arcana"], [data-theme="stadium"], [data-theme="afterdark"])
  .layer[data-kind="frame"] > .layer-visual::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  background: var(--pack-corner-rails);
  clip-path: none;
  transform: none;
}

.stage:is([data-theme="arcana"], [data-theme="stadium"], [data-theme="afterdark"])
  .layer[data-kind="frame"] > .layer-visual::after {
  inset: .51cqw .64cqw auto auto;
  width: var(--pack-terminal-width);
  height: var(--pack-terminal-height);
  border: 0;
  background: var(--pack-terminal-fill);
  clip-path: var(--pack-terminal-shape);
  opacity: 1;
}

.stage:is([data-theme="arcana"], [data-theme="stadium"], [data-theme="afterdark"])
  .layer[data-kind="frame"] .layer-text {
  padding-inline: 1.03cqw 1.48cqw;
  background: var(--pack-badge-surface);
  clip-path: var(--pack-shape);
  color: var(--on-air-ink);
}

.stage:is([data-theme="arcana"], [data-theme="stadium"], [data-theme="afterdark"])
  .layer[data-kind="frame"] .layer-text::before {
  width: var(--pack-terminal-width);
  height: var(--pack-terminal-height);
  background: var(--pack-terminal-fill);
  clip-path: var(--pack-terminal-shape);
}

.stage[data-theme="arcana"][data-typeface="studio"] .layer[data-kind="headline"] > .layer-visual {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -.05em;
  font-weight: 700;
  line-height: .93;
}

.stage[data-theme="arcana"][data-typeface="studio"]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-layer="titular"] > .layer-visual {
  --layer-font-size: 6.15cqw;
}

.stage[data-theme="arcana"] .scene-mark {
  width: calc(1.87cqw * var(--layer-scale, 1));
  height: calc(1.87cqw * var(--layer-scale, 1));
  margin-inline: .27cqw;
  border-color: var(--pack-edge);
  border-radius: .13cqw;
  background:
    linear-gradient(135deg, var(--pack-edge) 0 7%, transparent 8% 93%, var(--pack-edge) 94%),
    radial-gradient(circle, var(--pack-bright), var(--pack-panel) 64%);
  transform: rotate(45deg);
}

.stage[data-theme="arcana"] .scene-mark::after {
  inset: 25%;
  border: .07cqw solid var(--pack-edge);
  border-radius: 0;
  transform: none;
}

.stage[data-theme="stadium"][data-typeface="studio"] .layer[data-kind="headline"] > .layer-visual {
  font-style: oblique 10deg;
  letter-spacing: -.026em;
}

.stage[data-theme="stadium"] .scene-mark {
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(119deg, var(--pack-bright) 0 .34cqw, transparent .35cqw .56cqw);
  clip-path: var(--pack-shape);
  box-shadow: none;
}

.stage[data-theme="stadium"] .scene-mark::after { display: none; }

.stage[data-theme="stadium"]:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="caption"] .layer-text {
  padding-inline: 1.24cqw;
}

.stage[data-theme="afterdark"][data-typeface="studio"] .layer[data-kind="headline"] > .layer-visual {
  font-family: 'Segoe UI Black', 'Arial Black', sans-serif;
  letter-spacing: -.035em;
  line-height: .93;
}

.stage[data-theme="afterdark"][data-typeface="studio"]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-layer="titular"] > .layer-visual {
  --layer-font-size: 6.3cqw;
}

.stage[data-theme="afterdark"] .scene-mark {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, transparent 32%, var(--pack-edge) 33% 39%, transparent 40% 74%, var(--pack-edge) 75% 79%, transparent 80%),
    linear-gradient(138deg, var(--pack-bright), #311a3b 80%);
  clip-path: polygon(0 0, 65% 0, 100% 34%, 100% 100%, 34% 100%, 0 65%);
  box-shadow: none;
}

.stage[data-theme="afterdark"] .scene-mark::after { display: none; }

/* ---- landing-page.css ---- */
/* Rules of the home page. The page does not load this file: tools/build-landing.mjs joins it with the overlay
   stylesheets into public/landing.css, in the place the old landing.css had (plan §3.6, item 3). After editing it,
   run node tools/build-landing.mjs. */
:root {
  color-scheme: dark;
  --canvas: #101113;
  --panel: #181a1d;
  --stroke: #33363c;
  --ink: #f7f5f2;
  --muted: #b7b9bf;
  --coral: #ff7b6f;
  --sans: var(--airelivo-font, Inter, "Segoe UI", system-ui, sans-serif);
  font-family: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
:where(a, button):focus-visible { outline: 2px solid #fff4f0; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); line-height: 1.65; }
[id] { scroll-margin-top: 5.2rem; }
button { font: inherit; }
.shell { width: min(100% - 4.5rem, 80rem); margin-inline: auto; }

.site-header { position: sticky; inset-block-start: 0; z-index: 3; background: #101113f5; border-bottom: 1px solid #2a2c2f; }
.header-layout, .footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.4rem; }
.header-layout .airelivo-brand, .footer-layout .airelivo-brand { font-size: 1.5rem; }
.site-nav, .footer-links { display: flex; align-items: center; gap: clamp(1.05rem, 3vw, 2.5rem); color: var(--muted); font-size: .9rem; font-weight: 650; }
.site-nav a, .footer-links a { padding: .7rem .2rem; }
.site-nav a:hover, .footer-links a:hover, .button-text:hover { color: var(--coral); }
.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; gap: .55rem; padding: .68rem 1rem; border: 1px solid transparent; border-radius: .45rem; font-size: .9rem; font-weight: 750; line-height: 1.2; transition: background-color .18s, color .18s, border-color .18s; }
.button-outline { border-color: #494c52; background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--coral); color: var(--coral); }
.button-primary { background: var(--coral); color: #201416; }
.button-primary:hover { background: #ff9a90; }
.button-text { color: var(--ink); }
a.button-text:not(.button) { display: inline-block; padding: .35rem 0; }

.hero { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); align-items: center; gap: 1.15rem clamp(1.8rem, 4vw, 4.2rem); padding-block: clamp(2.6rem, 4.8vw, 4.4rem) clamp(2.6rem, 4.2vw, 3.8rem); }
.hero h1 { font-size: clamp(2.6rem, 3.75vw, 3.5rem); font-weight: 825; letter-spacing: -.065em; line-height: .98; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-copy p { margin-top: 1.4rem; max-width: 24rem; font-size: clamp(1rem, 1.28vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.55rem; }

.demo-frame { min-width: 0; padding: .75rem; background: var(--panel); border: 1px solid #393c41; border-radius: .7rem; box-shadow: 0 20px 46px #0006; }
.demo-header { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: 0 .1rem .68rem; }
.demo-header h2 { font-size: .88rem; font-weight: 760; }
.demo-formats { display: flex; gap: .35rem; }
.demo-choice { min-width: 0; color: var(--ink); border: 1px solid var(--stroke); background: #212328; border-radius: .36rem; cursor: pointer; transition: color .16s, background-color .16s, border-color .16s; }
.demo-choice:hover { background: #2a2c31; border-color: #787176; }
.demo-choice[aria-pressed="true"] { border-color: var(--coral); color: #fff0ed; background: #37272a; }
.demo-choice:disabled { cursor: default; }
.format-choice { display: flex; align-items: center; gap: .45rem; min-height: 2.2rem; min-width: 4.15rem; justify-content: center; padding: .25rem .4rem; font-size: .75rem; font-weight: 740; white-space: nowrap; }
.format-diagram { display: inline-block; flex: none; width: .9rem; aspect-ratio: 16 / 9; border: 1px solid currentColor; border-radius: 2px; opacity: .8; }
[data-demo-format="vertical"] .format-diagram { width: .56rem; aspect-ratio: 9 / 16; }

.demo-monitor, .demo-viewport { min-width: 0; }
.demo-viewport { display: grid; place-items: center; min-height: 0; overflow: hidden; background: #0c0d0f; border: 1px solid #34363b; border-radius: .4rem; }
.demo-screen, .gallery-screen { position: relative; isolation: isolate; min-width: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #1b1b20; container-type: inline-size; }
.demo-screen[data-format="vertical"] { width: min(56%, 14.5rem); height: auto; aspect-ratio: 9 / 16; }
.demo-readout { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 2.15rem; padding: .42rem .1rem; color: #bfc0c6; font: 610 .7rem ui-monospace, "Cascadia Mono", monospace; }
.demo-readout span:last-child { white-space: nowrap; }
.demo-controls { padding: .55rem .1rem 0; border-top: 1px solid #34363b; }
.demo-label { margin-bottom: .48rem; font-size: .77rem; font-weight: 720; line-height: 1.2; color: #d7d6d8; }
.demo-scenes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .33rem; }
.scene-choice { display: grid; place-items: center; align-content: center; gap: .34rem; min-height: 3.25rem; padding: .34rem .22rem; font-size: .69rem; font-weight: 680; white-space: nowrap; }
.scene-diagram { position: relative; width: 1.52rem; height: .9rem; border: 1px solid currentColor; border-radius: 2px; opacity: .78; }
.scene-diagram::before, .scene-diagram::after { content: ""; position: absolute; background: currentColor; opacity: .62; }
[data-scene="inicio"] .scene-diagram::before, [data-scene="cierre"] .scene-diagram::before { inset: 36% 24% auto; height: 1px; }
[data-scene="inicio"] .scene-diagram::after, [data-scene="cierre"] .scene-diagram::after { inset: 63% 34% auto; height: 1px; }
[data-scene="cierre"] .scene-diagram::before { inset-inline: 33%; }
[data-scene="pausa"] .scene-diagram::before { inset: 25% 35% 25% auto; width: 1px; box-shadow: -.23rem 0 currentColor; }
[data-scene="juego"] .scene-diagram::before, [data-scene="reaccion"] .scene-diagram::before { inset: 14% 9% auto auto; width: .38rem; height: .28rem; }
[data-scene="juego"] .scene-diagram::before { inset: auto auto 14% 9%; }
[data-scene="reaccion"] .scene-diagram::after { inset: auto auto 17% 12%; width: .59rem; height: 1px; }
[data-scene="charlando"] .scene-diagram::before { inset: 18% 44% 18% 12%; }
[data-scene="charlando"] .scene-diagram::after { inset: 18% 12% 18% 68%; }

.theme-console { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: 1.1rem; padding: .95rem; border: 1px solid #303338; border-radius: .64rem; background: #151619; }
.theme-group { min-width: 0; }
.theme-group + .theme-group { border-inline-start: 1px solid #33353a; padding-inline-start: 1.1rem; }
.theme-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
#demo-theme-games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.theme-choice { min-height: 3.6rem; padding: .45rem .45rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: .16rem .38rem; text-align: left; }
.theme-choice:hover, .theme-choice[aria-pressed="true"] { color: #fff1ed; }
.theme-swatch { display: inline-flex; flex: none; gap: .08rem; }
.theme-swatch::before, .theme-swatch::after { content: ""; width: .27rem; height: .65rem; border-radius: 1px; background: var(--swatch-primary, #ff7b6f); }
.theme-swatch::after { background: var(--swatch-secondary, #a59bf8); }
.theme-name { font-size: .77rem; font-weight: 730; line-height: 1.12; }
.theme-game { grid-column: 2; font-size: .6rem; color: #c1c3c9; line-height: 1.12; }

.demo-screen > .stage, .gallery-screen > .stage, .sample-sources { position: absolute; inset: 0; width: 100%; height: 100%; }
.sample-sources { overflow: hidden; container-type: inline-size; background: radial-gradient(ellipse at 50% 30%, #303238, #25262b 62%, #1f2024); }
.sample-box { position: absolute; overflow: hidden; background: radial-gradient(ellipse at 32% 42%, #685d7b, #33334e 55%, #232133); }
/* What the viewer's own sources would show: the camera keeps its licensed sample photo (creator.webp); the game and the
   video are labelled plates, like the captures of the tool pages. No generated pictures (decision 11). */
.sample-sources[data-layout="game"], .sample-sources .sample-box:is([data-source="contenido"], [data-source="partida"]) {
  background: radial-gradient(ellipse at 50% 38%, #3b404b, #2a2e36 52%, #1f2228);
}
.sample-sources[data-layout="game"]::after, .sample-sources .sample-box:is([data-source="contenido"], [data-source="partida"])::after {
  content: "Tu juego"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding-top: 5.4cqw; color: #e2e6eebd; font: 600 2.7cqw/1.1 var(--sans); letter-spacing: .01em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e6ee' stroke-opacity='.7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10a4.5 4.5 0 0 1 4.4 5.4l-.8 3.9a2.3 2.3 0 0 1-4.1.9L15 15H9l-1.5 2.2a2.3 2.3 0 0 1-4.1-.9l-.8-3.9A4.5 4.5 0 0 1 7 7Z'/%3E%3Cpath d='M8 10v3M6.5 11.5h3'/%3E%3C/svg%3E") center calc(50% - 2.2cqw) / 4.4cqw no-repeat,
    repeating-linear-gradient(135deg, #ffffff07 0 2px, transparent 2px 16px);
}
.sample-sources .sample-box[data-source="contenido"]::after {
  content: "Tu vídeo";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e6ee' stroke-opacity='.7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m10 9 5 3-5 3z'/%3E%3C/svg%3E"),
    repeating-linear-gradient(135deg, #ffffff07 0 2px, transparent 2px 16px);
}
[data-format="vertical"] .sample-sources .sample-box[data-source="partida"]::after { padding-top: 11cqw; font-size: 5.6cqw; background-size: 9cqw, auto; background-position: center calc(50% - 4.6cqw), 0 0; }
[data-format="vertical"] .sample-sources[data-layout="game"]::after { content: none; }
.sample-box::before, .sample-box::after { content: ""; position: absolute; }
.sample-box[data-source="camara"]::before { top: 22%; left: 42%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #dbc9e7c7, #867ca6); }
.sample-box[data-source="camara"]::after { top: 55%; left: 31%; width: 37%; aspect-ratio: 2; border-radius: 48% 48% 0 0; background: linear-gradient(120deg, #b19bb8, #716687); }
.sample-box[data-source="chat"] { padding: 4.4cqw 2.2cqw 2cqw; background: #141622eb; }
.sample-chat { display: grid; gap: 1.25cqw; margin: 0; padding: 0; color: #e7e1ef; list-style: none; font-size: 1.55cqw; line-height: 1.28; }
.sample-chat li { overflow: hidden; border-bottom: 1px solid #cabae423; padding-bottom: .9cqw; }
.sample-chat b { display: block; color: #cabaff; font-weight: 730; }
.sample-chat li:nth-child(2) b { color: #ff9a8f; }
.sample-chat li:nth-child(3) b { color: #82e0cf; }
.demo-creator-ready .sample-box[data-source="camara"] { background: var(--demo-creator) center 45% / cover no-repeat; }
.demo-creator-ready .sample-box[data-source="camara"]::before,
.demo-creator-ready .sample-box[data-source="camara"]::after { display: none; }


.section { padding-block: clamp(3.1rem, 5.35vw, 5.5rem); }
.section-heading { max-width: 46rem; margin-bottom: 1.75rem; }
.section h2 { font-size: clamp(2rem, 3.9vw, 3.28rem); font-weight: 810; letter-spacing: -.055em; line-height: 1.04; }
.section-heading p, .obs-layout > div:first-child p { margin-top: .75rem; max-width: 42rem; font-size: 1rem; }
.section h3 { font-size: 1.17rem; letter-spacing: -.023em; }
.game-packs { background: #151619; border-block: 1px solid #2e3034; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.pack-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #3b3d42; border-radius: .6rem; overflow: hidden; background: #1a1b1f; }
.pack-card:focus-within { border-color: var(--pack-color, var(--coral)); }
.gallery-screen { border-bottom: 1px solid var(--stroke); }
.pack-copy { flex: 1; display: flex; flex-direction: column; padding: 1rem 1rem 1.1rem; }
.pack-game { color: color-mix(in srgb, var(--pack-color, var(--coral)) 70%, #fff8f5); font: 670 .77rem/1.3 ui-monospace, monospace; }
.section .pack-name { margin-top: .27rem; font-size: 1.36rem; }
.pack-description { margin-top: .27rem; margin-bottom: .85rem; }
.pack-actions { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; }
.pack-actions .button { min-height: 2.5rem; padding: .52rem .68rem; font-size: .83rem; cursor: pointer; }
.presets { border-bottom: 1px solid #2e3034; }
.preset-grid, .workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.preset, .workflow-step { min-width: 0; background: var(--panel); border: 1px solid var(--stroke); border-radius: .58rem; overflow: hidden; }
.preset-copy { padding: .9rem 1rem 1rem; }
.preset-copy p, .workflow-step p { margin-top: .3rem; }
.workflow-step { padding: 1.25rem 1.15rem 1.4rem; }
.workflow-icon { position: relative; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .9rem; color: #ffa094; background: #34282b; border: 1px solid #79534f; border-radius: .38rem; }
.workflow-icon::before { content: ""; display: block; width: .94rem; height: .7rem; border: 1px solid currentColor; border-radius: 2px; }
.icon-brand::before { width: .73rem; height: .73rem; transform: rotate(45deg); }
.icon-layout::after { content: ""; position: absolute; width: .38rem; height: .37rem; border: 1px solid currentColor; transform: translate(.15rem, .05rem); }
.icon-program::after { content: ""; position: absolute; width: .32rem; height: .32rem; background: currentColor; border-radius: 50%; }
.obs-section { background: #18181c; border-block: 1px solid #34343a; }
.obs-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.7rem, 6vw, 6rem); }
.obs-layout h2 { max-width: 36rem; }
.obs-layout .button { margin-top: 1.25rem; }
.obs-steps { border: 1px solid #48464d; border-radius: .58rem; padding: 1.15rem 1.3rem; background: #202127; }
.obs-steps ol { margin: .72rem 0 0; padding-left: 1.3rem; }
.obs-steps li { padding: .55rem 0 .55rem .32rem; color: #eee9e9; line-height: 1.45; }
.obs-steps li + li { border-top: 1px solid #3d3b44; }
.obs-steps li::marker { color: var(--coral); font-weight: 780; }
.plans-bridge { background: #231d20; border-bottom: 1px solid #42353a; }
.plans-layout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem; }
.footer-layout { min-height: 4.65rem; }

@media (max-width: 67rem) {
  .hero { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: 1.1rem 1.65rem; }
  .hero h1 { font-size: clamp(2.4rem, 4.1vw, 3.4rem); }
  .theme-console { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .theme-group + .theme-group { border-inline-start: 0; border-top: 1px solid #33353a; padding: .7rem 0 0; }
}
@media (max-width: 57rem) {
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy { margin-bottom: .55rem; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
  .hero-copy p { max-width: 32rem; }
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .header-layout { min-height: 3.8rem; gap: .6rem; }
  .site-nav a:not([href="/planes"]) { display: none; }
  .site-header .button { min-height: 2.5rem; padding-inline: .62rem; font-size: .77rem; }
  .hero { padding-block: 2.6rem; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 3.6rem); }
  .hero-copy p { margin-top: .9rem; }
  .hero-actions { margin-top: 1.05rem; }
  .demo-frame, .theme-console { padding: .65rem; }
  .demo-scenes, #demo-theme-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-grid, .obs-layout { grid-template-columns: 1fr; }
}
@media (max-width: 28rem) {
  .shell { width: calc(100% - 1.45rem); }
  .site-nav { font-size: .77rem; }
  .header-layout .airelivo-brand { font-size: 1.27rem; }
  .scene-choice { min-height: 2.8rem; }
  .format-choice { min-height: 2.55rem; }
  .theme-choice { min-height: 3.5rem; }
  .preset-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .demo-choice { transition: none; }
}


/* Landing copy blocks (03/12/2026) */
.hero-kicker { margin-bottom: 1rem; color: var(--coral); font: 700 .78rem/1.2 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-note { margin-top: 1.1rem; font-size: .85rem; }
.obs-layout > div:first-child p + p { margin-top: .6rem; font-size: .92rem; }
.features { border-bottom: 1px solid #2e3034; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2.2rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; align-content: start; gap: .35rem; padding-top: 1rem; border-top: 2px solid #34363b; }
.feature-list li:first-child, .feature-list li:nth-child(2) { border-top-color: var(--coral); }
.feature-list strong { font-size: 1.05rem; letter-spacing: -.015em; }
.feature-list li > span { color: var(--muted); line-height: 1.6; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.faq-list { display: grid; border-top: 1px solid #34363b; }
.faq-list details { border-bottom: 1px solid #34363b; }
.faq-list summary { cursor: pointer; padding: 1.05rem 0; font-weight: 720; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--coral); font-weight: 800; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 1.1rem; max-width: 40rem; }
.plans-layout p { margin-top: .5rem; }
.plans-bridge h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
@media (max-width: 57rem) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: 1fr; }
}
@media (max-width: 42rem) {
  .feature-list { grid-template-columns: 1fr; }
}

.footer-layout { flex-wrap: wrap; padding-block: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; width: 100%; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .8rem; }
.footer-legal a { padding: .5rem 0; }
.footer-legal a:hover { color: var(--coral); }

/* Links to the guide and to the tool pages. tools/build-landing.mjs writes the tool links as <a> only while their pages
   are published (plan §3.1); until then they are plain text. */
.feature-list a, .preset-copy a, .faq-list a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #ff7b6f99; text-underline-offset: .2em; }
/* Taller hit area (24 px) without a taller line: the negative margin keeps the headings of a row aligned. */
.feature-list strong a, .preset-copy h3 a { display: inline-block; padding-block: .2rem; margin-block: -.2rem; }
.feature-list a:hover, .preset-copy a:hover, .faq-list a:hover { color: var(--coral); }
.feature-more { margin-top: 1.6rem; }

/* ---- pack-intermissions.css ---- */
.stage[data-game-pack]:not([data-layout="game"]) {
  --intermission-base: var(--pack-deep);
  --intermission-panel: var(--pack-panel);
  --intermission-line: color-mix(in srgb, var(--pack-edge) 36%, var(--intermission-base));
  --intermission-quiet-line: color-mix(in srgb, var(--pack-bright) 15%, var(--intermission-base));
}

.stage[data-game-pack]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"]) {
  --intermission-weight: 1;
  --intermission-graphic: none;
}

.stage[data-game-pack][data-layout="break"] {
  --intermission-panel: color-mix(in srgb, var(--pack-panel) 84%, var(--pack-deep));
  --intermission-weight: .8;
}

.stage[data-game-pack][data-layout="end"] {
  --intermission-panel: color-mix(in srgb, var(--pack-panel) 66%, var(--pack-deep));
  --intermission-weight: .68;
}

.stage[data-game-pack][data-layout="results"] {
  --intermission-panel: color-mix(in srgb, var(--pack-panel) 65%, var(--pack-deep));
  --intermission-weight: .6;
}

.stage[data-game-pack][data-theme="operations"] {
  --intermission-mass: polygon(76% 0, 100% 0, 100% 91%, 57% 91%, 57% 48%, 65% 32%, 65% 22%);
  --intermission-surface:
    linear-gradient(119deg, transparent 70%, var(--intermission-base) 70% 70.7%, transparent 70.7%),
    linear-gradient(90deg, var(--intermission-panel), var(--intermission-panel) 86%, #323627 86%);
  --intermission-graphic:
    linear-gradient(var(--intermission-line), var(--intermission-line)) right 4.8% top 25% / 25% .07cqw no-repeat,
    linear-gradient(var(--pack-bright), var(--pack-bright)) right 4.8% top 25% / 3.6% .14cqw no-repeat,
    linear-gradient(var(--intermission-line), var(--intermission-line)) right 4.8% top 25% / .07cqw 29% no-repeat,
    linear-gradient(var(--pack-edge), var(--pack-edge)) right 4.8% bottom 13% / 9% .14cqw no-repeat;
  --intermission-band:
    linear-gradient(112deg, var(--intermission-base) 0 67%, var(--intermission-quiet-line) 67% 67.5%, var(--intermission-panel) 67.5%);
}

.stage[data-game-pack][data-theme="arcana"] {
  --intermission-mass: polygon(74% 0, 100% 0, 100% 100%, 74% 100%, 52% 50%);
  --intermission-surface: color-mix(in srgb, var(--intermission-panel) 64%, var(--intermission-base));
  --intermission-band:
    linear-gradient(139deg, var(--intermission-base) 0 56%, var(--intermission-quiet-line) 56% 56.15%, var(--intermission-panel) 56.15% 92%, var(--intermission-base) 92%);
}

.stage[data-game-pack][data-theme="pulse"] {
  --intermission-mass: polygon(78% 0, 100% 0, 100% 100%, 54% 100%, 67% 67%, 63% 55%);
  --intermission-surface:
    linear-gradient(126deg, transparent 71%, color-mix(in srgb, var(--intermission-panel) 65%, var(--pack-bright)) 71% 76%, transparent 76%),
    linear-gradient(126deg, var(--intermission-panel) 65%, color-mix(in srgb, var(--intermission-panel) 83%, var(--pack-edge)) 65% 83%, var(--intermission-panel) 83%);
  --intermission-graphic:
    linear-gradient(117deg, transparent 42%, var(--intermission-line) 42% 42.35%, transparent 42.35%) right top / 43% 69% no-repeat,
    linear-gradient(var(--pack-edge), var(--pack-edge)) right 4.8% bottom 14% / 7.5% .12cqw no-repeat;
  --intermission-band:
    linear-gradient(128deg, var(--intermission-base) 0 68%, var(--intermission-line) 68% 68.5%, var(--intermission-panel) 68.5% 97%, var(--intermission-base) 97%);
}

.stage[data-game-pack][data-theme="stadium"] {
  --intermission-mass: polygon(69% 0, 100% 0, 100% 91%, 53% 91%);
  --intermission-surface:
    linear-gradient(101deg, transparent 72%, color-mix(in srgb, var(--intermission-panel) 84%, var(--pack-edge)) 72% 88%, transparent 88%),
    var(--intermission-panel);
  --intermission-graphic:
    radial-gradient(circle closest-side, var(--intermission-line) 0 1.8%, transparent 2.2% 94%, var(--intermission-line) 95% 96%, transparent 97%) right 4.8% top 29% / 22cqw 22cqw no-repeat,
    linear-gradient(var(--intermission-line), var(--intermission-line)) right 15.8cqw top 0 / .08cqw 91% no-repeat,
    linear-gradient(var(--intermission-quiet-line), var(--intermission-quiet-line)) right 4.8% top 29% / 29% .08cqw no-repeat,
    linear-gradient(var(--pack-bright), var(--pack-bright)) right 4.8% bottom 13% / 6% .16cqw no-repeat;
  --intermission-band:
    linear-gradient(114deg, var(--intermission-base) 0 12%, var(--intermission-panel) 12% 18%, var(--intermission-base) 18% 71%, var(--intermission-panel) 71%);
}

.stage[data-game-pack][data-theme="afterdark"] {
  --intermission-mass: polygon(65% 0, 100% 0, 100% 91%, 53% 91%, 64% 65%, 81% 65%, 81% 43%, 65% 43%);
  --intermission-surface:
    linear-gradient(180deg, #212639 0 25%, transparent 25%),
    linear-gradient(90deg, var(--intermission-panel) 85%, color-mix(in srgb, var(--intermission-panel) 82%, var(--pack-edge)) 85%);
  --intermission-graphic:
    linear-gradient(var(--pack-edge), var(--pack-edge)) right 4.8% top 23% / 13% .1cqw no-repeat,
    linear-gradient(var(--intermission-line), var(--intermission-line)) right 4.8% top 25% / 21% .08cqw no-repeat,
    linear-gradient(var(--intermission-line), var(--intermission-line)) right 4.8% top 25% / .08cqw 28% no-repeat,
    linear-gradient(var(--pack-bright), var(--pack-bright)) right 4.8% bottom 14% / 23% .1cqw no-repeat,
    linear-gradient(var(--intermission-quiet-line), var(--intermission-quiet-line)) right 4.8% bottom 12% / 31% .08cqw no-repeat;
  --intermission-band:
    linear-gradient(90deg, var(--intermission-base) 0 72%, var(--intermission-panel) 72% 95.25%, #222b3c 95.25%);
}

.stage[data-game-pack]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer:is([data-layer="fondo"], [data-layer="pie-fondo"]) .layer-visual {
  background: var(--intermission-band, var(--intermission-base));
}

.stage[data-game-pack]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer:is([data-layer="fondo"], [data-layer="pie-fondo"]) .layer-visual::before {
  inset: auto 3.5% .64cqw;
  height: .07cqw;
  background: var(--intermission-line);
  opacity: .46;
}

.stage[data-game-pack]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-layer="fondo"] .layer-visual::after {
  height: .19cqw;
  background: linear-gradient(90deg,
    transparent 0 3.5%, var(--pack-bright) 3.5% 12.5%, transparent 12.5% 13%,
    var(--intermission-line) 13% 96.5%, transparent 96.5%);
}

.stage[data-game-pack]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-layer="pie-fondo"] .layer-visual::before {
  inset: 0 3.5% auto;
}

.stage[data-game-pack]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .layer-visual {
  background: var(--intermission-base);
  border: 0;
  box-shadow: none;
}

.stage[data-game-pack]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .layer-visual::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  background: var(--intermission-surface, var(--intermission-panel));
  background-blend-mode: normal;
  clip-path: var(--intermission-mass);
  mask-image: none;
  opacity: var(--intermission-weight);
}

.stage[data-game-pack]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .layer-visual::after {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  background: var(--intermission-graphic);
  box-shadow: inset 0 -.16cqw var(--pack-bright);
  opacity: var(--intermission-weight);
  transform: none;
}

.stage[data-game-pack][data-theme="arcana"]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .layer-visual::after {
  inset: 18% 8.5% auto auto;
  width: 20cqw;
  height: 20cqw;
  border: .07cqw solid var(--intermission-line);
  outline: .07cqw solid var(--intermission-quiet-line);
  outline-offset: .75cqw;
  background: none;
  box-shadow: inset .16cqw .16cqw var(--pack-edge);
  transform: rotate(45deg);
}

.stage[data-game-pack]:not([data-layout="game"])
  .layer[data-kind="callout"] .layer-visual {
  background: color-mix(in srgb, var(--intermission-panel) 72%, var(--intermission-base));
  box-shadow: none;
}

.stage[data-game-pack]:is([data-layout="opening"], [data-layout="break"])
  .layer[data-kind="countdown"] .countdown-digit {
  background: linear-gradient(180deg, var(--intermission-panel) 0 49.5%, var(--intermission-base) 50%);
}

.stage[data-game-pack][data-layout="results"] .layer[data-layer="score"] .layer-visual {
  background: var(--pack-bright);
}

.stage[data-game-pack]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .pack-light-trace {
  inset: auto auto 13% 64%;
  width: 16%;
  height: .11cqw;
  background: linear-gradient(90deg, transparent, var(--pack-edge), transparent);
  clip-path: none;
}

.stage[data-game-pack][data-motion="on"]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])
  .layer[data-layer="fondo"] .pack-light-trace {
  animation: intermission-signal-pass 9s ease-in-out infinite;
}

@keyframes intermission-signal-pass {
  0%, 62% { opacity: 0; transform: translateX(-1.75cqw); }
  76% { opacity: .46; }
  92%, 100% { opacity: 0; transform: translateX(4.5cqw); }
}

/* ---- gameplay.css ---- */
.stage[data-game-pack][data-layout="game"] {
  --game-line: var(--pack-bright);
  --game-rail: #111419eb;
  --game-cut: polygon(0 0, 100% 0, calc(100% - .65cqw) 100%, 0 100%);
  --game-corners:
    linear-gradient(var(--game-line), var(--game-line)) left top / 25% .16cqw no-repeat,
    linear-gradient(var(--game-line), var(--game-line)) left top / .16cqw 28% no-repeat,
    linear-gradient(var(--pack-edge), var(--pack-edge)) right bottom / 23% .16cqw no-repeat,
    linear-gradient(var(--pack-edge), var(--pack-edge)) right bottom / .16cqw 27% no-repeat;
}

.stage[data-game-pack][data-layout="game"][data-theme="operations"] {
  --game-cut: polygon(.65cqw 0, 100% 0, 100% 100%, 0 100%, 0 .65cqw);
}

.stage[data-game-pack][data-layout="game"][data-theme="arcana"] {
  --game-line: var(--pack-edge);
  --game-cut: polygon(.58cqw 0, calc(100% - .58cqw) 0, 100% 50%, calc(100% - .58cqw) 100%, .58cqw 100%, 0 50%);
}

.stage[data-game-pack][data-layout="game"][data-theme="pulse"] {
  --game-cut: polygon(.72cqw 0, 100% 0, 100% calc(100% - .72cqw), calc(100% - .72cqw) 100%, 0 100%, 0 .72cqw);
}

.stage[data-game-pack][data-layout="game"][data-theme="stadium"] {
  --game-cut: polygon(.72cqw 0, 100% 0, calc(100% - .72cqw) 100%, 0 100%);
}

.stage[data-game-pack][data-layout="game"][data-theme="afterdark"] {
  --game-cut: polygon(0 0, calc(100% - .65cqw) 0, 100% 40%, 100% 100%, .65cqw 100%, 0 60%);
  --game-corners:
    linear-gradient(90deg, var(--game-line), var(--pack-edge)) left top / 58% .18cqw no-repeat,
    linear-gradient(90deg, var(--pack-edge), var(--game-line)) right bottom / 54% .18cqw no-repeat;
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="frame"] > .layer-visual {
  border: .07cqw solid color-mix(in srgb, var(--game-line) 56%, #34373b);
  border-radius: 0;
  background: none;
  box-shadow: none;
  align-items: flex-end;
  padding: .3cqw;
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="frame"] > .layer-visual::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  background: var(--game-corners);
  box-shadow: none;
  clip-path: none;
  mask: none;
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="frame"] > .layer-visual::after,
.stage[data-game-pack][data-layout="game"] .layer[data-default-frame-label] .layer-text {
  display: none;
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="logo"] > .layer-visual {
  width: 100%;
  padding: .2cqw .8cqw;
  gap: .45cqw;
  --layer-font-size: 1.23cqw;
  background: var(--game-rail);
  box-shadow: inset 0 -.16cqw var(--game-line);
  clip-path: var(--game-cut);
  border: 0;
  border-radius: 0;
  filter: none;
  text-transform: none;
  letter-spacing: .03em;
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="logo"] .scene-mark {
  width: 1.05cqw;
  height: 1.05cqw;
}

.stage[data-game-pack][data-layout="game"] .layer:is([data-kind="tag"], [data-kind="caption"]) .layer-text {
  padding: .28cqw .52cqw;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  clip-path: var(--game-cut);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: var(--game-rail);
  color: #f0f3f5;
  font-size: calc(.87cqw * var(--layer-scale, 1));
  letter-spacing: .035em;
  text-transform: none;
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="tag"] .layer-text {
  gap: .34cqw;
  padding-inline: .5cqw;
  font-size: calc(.79cqw * var(--layer-scale, 1));
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="tag"] .layer-text::before {
  width: .32cqw;
  height: .32cqw;
  background: var(--game-line);
  box-shadow: none;
  clip-path: none;
}

.stage[data-game-pack][data-layout="game"] .layer[data-kind="tag"] .layer-visual {
  animation: none;
}

.hud-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  container-type: inline-size;
}

.hud-zone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: .3cqw;
  border: 1px dashed #b6d2ed6e;
  background: #8db4d912;
  text-align: center;
  font: 650 max(6px, 1.28cqw) / 1.1 system-ui, sans-serif;
  color: #e4effa;
}

.hud-zone > span { padding: .16em .4em; background: #111922e8; }
.hud-zone.is-covered { border-color: #ff9a89; background: #ff6f5140; color: #ffd2c9; }

.studio-sample-sources[data-game-profile],
.sample-sources[data-game-profile][data-layout="game"],
.demo-reaction-feed-ready .sample-sources[data-game-profile][data-layout="game"] {
  background: #1a2430;
}

.sample-sources[data-game-profile][data-layout="game"]::before { content: none; }

.studio-sample-sources[data-game-profile][data-format="horizontal"][data-layout="game"]:has(+ .stage[data-theme="pulse"]),
.studio-sample-sources[data-game-profile]:has(+ .stage[data-theme="pulse"]) [data-source="partida"] {
  background-color: #19212c;
  background-image: linear-gradient(180deg, #121b2920, #11192373), url('/media/draft-backdrops/range.webp');
  background-position: center;
  background-size: cover;
}

.studio-sample-sources:is([data-layout="draft-valorant"], [data-game-profile]:has(+ .stage[data-theme="pulse"])) [data-source="camara"] {
  display: grid;
  place-items: center;
  background: #222b38;
  color: #c3ccd8;
}

.studio-sample-sources:is([data-layout="draft-valorant"], [data-game-profile]:has(+ .stage[data-theme="pulse"])) [data-source="camara"]::after {
  content: 'Cámara de OBS';
  font: 600 max(7px, 1.15cqw) / 1 system-ui, sans-serif;
  letter-spacing: .05em;
}

.hud-toggle[aria-pressed="true"] { color: #d3ebff; border-color: #546b85; background: #212f41; }
.gameplay-fit { display: grid; justify-items: start; gap: 7px; padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.gameplay-fit p { margin: 0; }
.gameplay-fit a { color: #c8d6ed; font-size: .79rem; }
.monitor-foot.has-hud-overlap #preview-help { color: #ffb6a9; }

/* ---- camera-borders.css ---- */
@property --camera-light-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.stage .layer[data-kind="frame"][data-frame-style][data-frame-motion] > .layer-visual {
  --layer-font-size: .94cqw;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  justify-content: var(--layer-justify, flex-start);
  text-align: var(--layer-align, left);
}

.stage .layer[data-kind="frame"][data-frame-style][data-frame-motion] > .layer-visual::before,
.stage .layer[data-kind="frame"][data-frame-style][data-frame-motion] > .layer-visual::after {
  content: none;
}

.stage .layer[data-kind="frame"][data-frame-style][data-frame-label="top"] > .layer-visual {
  align-items: flex-start;
}

.stage .layer[data-kind="frame"][data-frame-style][data-frame-label="bottom"] > .layer-visual {
  align-items: flex-end;
}

.stage .layer[data-kind="frame"][data-frame-style][data-frame-label] > .layer-visual > .layer-text {
  --label-fit: var(--camera-limit, 100cqw);
  position: relative;
  z-index: 1;
  display: block;
  width: max-content;
  max-width: 90%;
  min-width: 0;
  margin: min(.63cqw, calc(var(--label-fit) * .075));
  padding: min(.34cqw, calc(var(--label-fit) * .04)) min(.58cqw, calc(var(--label-fit) * .08));
  border: 1px solid #41494f;
  border-radius: 1px;
  background: #171b20;
  box-shadow: none;
  color: #eef0f1;
  clip-path: none;
  font-family: var(--scene-copy, Arial, sans-serif);
  font-size: min(calc(var(--layer-font-size) * var(--layer-scale, 1)), calc(var(--label-fit) * .17));
  font-weight: 650;
  letter-spacing: .045em;
  line-height: 1.12;
  text-overflow: ellipsis;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
}

.stage .layer[data-kind="frame"][data-frame-style][data-frame-label] > .layer-visual > .layer-text::before,
.stage .layer[data-kind="frame"][data-frame-style][data-frame-label="hidden"] > .layer-visual > .layer-text,
.stage .layer[data-kind="frame"][data-frame-style][data-frame-label] > .layer-visual > .layer-text:empty {
  display: none;
}

.frame-border {
  --rim-fit: var(--camera-limit, 100cqw);
  --rim-weight: min(clamp(1px, var(--camera-weight, .31cqw), .84cqw), calc(var(--rim-fit) * .13));
  --rim-gap: min(.28cqw, calc(var(--rim-fit) * .06));
  --rim-cut: min(.95cqw, calc(var(--rim-fit) * .44));
  --rim-round: min(1.06cqw, calc(var(--rim-fit) * .44));
  --rim-inner-cut: calc(var(--rim-cut) + var(--rim-weight) * .414);
  --rim-highlight: #89949a;
  --rim-body: color-mix(in srgb, #394249 90%, var(--camera-secondary, var(--brand-alt, #979da6)));
  --rim-depth: #1d2226;
  --rim-surface: linear-gradient(180deg, var(--rim-highlight), var(--rim-body));
  --rim-ring: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  --rim-accent: color-mix(in srgb, var(--camera-primary, var(--brand, #c4cbd0)) 53%, #9da8ae);
  --rim-accent-width: min(15%, 3.2cqw);
  --rim-light: min(.48cqw, calc(var(--rim-fit) * .055));
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 min(.10cqw, 2px) min(.10cqw, 2px) #0b1115cc)
    drop-shadow(0 0 calc(var(--rim-light) * var(--camera-glow, 0)) color-mix(in srgb, var(--rim-accent) 46%, transparent));
}

.frame-border::before,
.frame-border::after {
  content: '';
  position: absolute;
  inset: var(--rim-inset, 0);
  box-sizing: border-box;
  padding: var(--rim-weight);
  border-radius: var(--rim-radius, 0);
  mask: var(--rim-ring);
  mask-composite: exclude;
}

.frame-border::before { background: var(--rim-surface); }
.frame-border::after { opacity: 0; }

.frame-accent {
  position: absolute;
  inset-block-start: var(--rim-accent-top, 0);
  inset-inline-start: var(--rim-accent-left, 0);
  width: var(--rim-accent-width);
  height: max(.35px, calc(var(--rim-weight) * .48));
  background: var(--rim-accent);
}

[data-frame-style="none"] .frame-border { display: none; }

[data-frame-style="cut"] .frame-border {
  --rim-accent-left: var(--rim-cut);
}

[data-frame-style="cut"] .frame-border::before,
[data-frame-style="cut"] .frame-border::after {
  mask: none;
  clip-path: polygon(evenodd,
    var(--rim-cut) 0, calc(100% - var(--rim-cut)) 0,
    100% var(--rim-cut), 100% calc(100% - var(--rim-cut)),
    calc(100% - var(--rim-cut)) 100%, var(--rim-cut) 100%,
    0 calc(100% - var(--rim-cut)), 0 var(--rim-cut), var(--rim-cut) 0,
    var(--rim-inner-cut) var(--rim-weight),
    calc(100% - var(--rim-inner-cut)) var(--rim-weight),
    calc(100% - var(--rim-weight)) var(--rim-inner-cut),
    calc(100% - var(--rim-weight)) calc(100% - var(--rim-inner-cut)),
    calc(100% - var(--rim-inner-cut)) calc(100% - var(--rim-weight)),
    var(--rim-inner-cut) calc(100% - var(--rim-weight)),
    var(--rim-weight) calc(100% - var(--rim-inner-cut)),
    var(--rim-weight) var(--rim-inner-cut),
    var(--rim-inner-cut) var(--rim-weight));
}

[data-frame-style="double"] .frame-border {
  --rim-inset: calc(var(--rim-gap) + var(--rim-weight) * .5);
  --rim-accent-top: var(--rim-inset);
  --rim-accent-left: var(--rim-inset);
  box-shadow: inset 0 0 0 max(.5px, calc(var(--rim-weight) * .31)) var(--rim-highlight);
}

[data-frame-style="corners"] .frame-border {
  --rim-arm: linear-gradient(#000 0 0);
  --rim-horizontal: min(25%, 5.2cqw);
  --rim-vertical: min(27%, 3.6cqw);
}

[data-frame-style="corners"] .frame-border::before,
[data-frame-style="corners"] .frame-border::after {
  mask:
    var(--rim-arm) left top / var(--rim-horizontal) var(--rim-weight) no-repeat,
    var(--rim-arm) left top / var(--rim-weight) var(--rim-vertical) no-repeat,
    var(--rim-arm) right top / var(--rim-horizontal) var(--rim-weight) no-repeat,
    var(--rim-arm) right top / var(--rim-weight) var(--rim-vertical) no-repeat,
    var(--rim-arm) right bottom / var(--rim-horizontal) var(--rim-weight) no-repeat,
    var(--rim-arm) right bottom / var(--rim-weight) var(--rim-vertical) no-repeat,
    var(--rim-arm) left bottom / var(--rim-horizontal) var(--rim-weight) no-repeat,
    var(--rim-arm) left bottom / var(--rim-weight) var(--rim-vertical) no-repeat;
  mask-composite: add;
}

[data-frame-style="round"] .frame-border {
  --rim-radius: var(--rim-round);
  --rim-accent-left: var(--rim-round);
}

[data-frame-style="offset"] .frame-border {
  --rim-inset: 0 calc(var(--rim-gap) + var(--rim-weight)) calc(var(--rim-gap) + var(--rim-weight)) 0;
  --rim-return: max(.5px, calc(var(--rim-weight) * .46));
  background:
    linear-gradient(var(--rim-highlight) 0 0) right bottom / calc(100% - var(--rim-gap) * 2) var(--rim-return) no-repeat,
    linear-gradient(var(--rim-highlight) 0 0) right bottom / var(--rim-return) calc(100% - var(--rim-gap) * 2) no-repeat;
}

[data-frame-finish="clean"] .frame-border {
  --rim-highlight: #97a1a7;
  --rim-body: color-mix(in srgb, #687278 90%, var(--camera-secondary, var(--brand-alt, #979da6)));
  --rim-accent-width: min(10%, 2.3cqw);
}

[data-frame-finish="studio"] .frame-border {
  --rim-highlight: #a7afb3;
  --rim-body: color-mix(in srgb, #48535a 90%, var(--camera-secondary, var(--brand-alt, #979da6)));
  --rim-surface: linear-gradient(180deg, var(--rim-highlight), var(--rim-body) 26%, var(--rim-depth));
}

[data-frame-finish="metal"] .frame-border {
  --rim-highlight: #c1c6c8;
  --rim-body: color-mix(in srgb, #646e73 84%, var(--camera-secondary, var(--brand-alt, #979da6)));
  --rim-surface: linear-gradient(180deg, var(--rim-highlight), var(--rim-body) 64%, #80898e);
}

[data-frame-finish="neon"] .frame-border {
  --rim-accent: color-mix(in srgb, var(--camera-primary, var(--brand, #c4cbd0)) 81%, #d2e0e6);
  --rim-accent-width: min(26%, 6cqw);
}

.stage[data-motion="on"] [data-frame-motion="sheen"] .frame-border::after {
  background: linear-gradient(104deg, transparent 39%, #edf3f7 50%, transparent 62%);
  background-size: 250% 100%;
  animation: camera-rim-sheen var(--camera-duration, 5s) ease-in-out infinite;
}

.stage[data-motion="on"] [data-frame-motion="pulse"] .frame-border::after {
  background: #e6edf2;
  animation: camera-rim-pulse var(--camera-duration, 5s) ease-in-out infinite;
}

.stage[data-motion="on"] [data-frame-motion="flow"] .frame-border::after {
  opacity: .31;
  background: conic-gradient(from var(--camera-light-angle), transparent 0deg 270deg, #f3f5f7 304deg, transparent 350deg);
  animation: camera-rim-turn var(--camera-duration, 5s) linear infinite;
}

.stage[data-motion="on"] [data-frame-motion="chase"] .frame-border::after {
  opacity: .42;
  background: conic-gradient(from var(--camera-light-angle), transparent 0deg 313deg, var(--rim-accent) 326deg, transparent 344deg);
  animation: camera-rim-turn var(--camera-duration, 5s) linear infinite;
}

@keyframes camera-rim-sheen {
  0%, 15% { background-position: 112% 0; opacity: 0; }
  33%, 62% { opacity: .35; }
  84%, 100% { background-position: -12% 0; opacity: 0; }
}

@keyframes camera-rim-pulse {
  0%, 100% { opacity: 0; }
  55% { opacity: .22; }
}

@keyframes camera-rim-turn {
  from { --camera-light-angle: 0deg; }
  to { --camera-light-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-motion="on"] [data-frame-motion] .frame-border::after {
    opacity: 0;
    animation: none;
  }
}

/* ---- show-screens.css ---- */
/* The screen artwork stays inside the editable background layer. */
.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"]) {
  --screen-paper: #17141e;
  --screen-panel: #2c2333;
  --screen-ink: #fff3ef;
  --screen-subtle: #cbbac9;
  --screen-hot: var(--brand);
  --screen-cool: var(--brand-alt);
  --screen-line: color-mix(in srgb, var(--screen-cool) 35%, var(--screen-paper));
  --screen-card: color-mix(in srgb, var(--screen-paper) 83%, var(--screen-panel));
  --screen-badge: color-mix(in srgb, var(--screen-paper) 72%, var(--screen-panel));
  --screen-plate:
    radial-gradient(ellipse at 92% 18%, var(--screen-panel), transparent 56%),
    linear-gradient(126deg, var(--screen-paper) 0 58%, var(--screen-panel) 145%);
  --screen-edge:
    linear-gradient(90deg, var(--screen-hot) 0 4%, var(--screen-line) 4% 28%, transparent 28%) 4.8% 17.4% / 39% .105cqw no-repeat,
    linear-gradient(90deg, transparent, var(--screen-line) 47%, transparent) center bottom / 92% .14cqw no-repeat;
  --screen-wide: 42%;
  --screen-height: 1.16;
  --screen-x: 77%;
  --screen-y: 44%;
  --screen-angle: 0deg;
  --screen-main-alpha: .96;
  --screen-detail-alpha: .88;
  --screen-fx-scale: 1;
  --screen-font-size: 7.68cqw;
  --screen-text-track: -.038em;
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-layer="fondo"] > .layer-visual {
  overflow: hidden;
  border: 0;
  background: var(--screen-plate);
  box-shadow: none;
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-layer="fondo"] > .layer-visual::before,
.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-layer="fondo"] > .layer-visual::after,
.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"]) .layer[data-layer="fondo"] .pack-light-trace {
  display: none;
}

.screen-graphics {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background: var(--screen-edge);
}

.screen-graphics::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--screen-veil, linear-gradient(90deg, transparent 53%, color-mix(in srgb, var(--screen-paper) 38%, transparent)));
}

.screen-mark-main, .screen-mark-detail, .screen-mark-route {
  position: absolute;
  display: block;
  pointer-events: none;
}

.screen-mark-main {
  z-index: 1;
  width: var(--screen-wide);
  left: var(--screen-x);
  top: var(--screen-y);
  aspect-ratio: var(--screen-height);
  opacity: var(--screen-main-alpha);
  background: var(--screen-mark);
  clip-path: var(--screen-shape);
  transform: translate(-50%, -50%) rotate(var(--screen-angle)) scale(var(--screen-fx-scale));
}

.screen-mark-detail {
  z-index: var(--screen-detail-layer, 0);
  inset: 12% 0 14% 55%;
  opacity: var(--screen-detail-alpha);
  background: var(--screen-detail);
  transform-origin: 70% 50%;
}

.screen-mark-route {
  inset: 0;
  z-index: 3;
  opacity: .9;
  background: var(--screen-route);
}

.stage[data-screen-art][data-layout="break"] {
  --screen-wide: 36%;
  --screen-x: 77%;
  --screen-y: 47%;
  --screen-height: 1.12;
  --screen-text-track: -.045em;
}

.stage[data-screen-art][data-layout="break"] .screen-mark-main {
  background: var(--screen-pause, var(--screen-mark));
  mask-image: var(--screen-pause-cut, linear-gradient(108deg, #000 0 42%, transparent 42% 55%, #000 55%));
}

.stage[data-screen-art][data-layout="break"] .screen-mark-detail {
  inset: 19% 1% 14% 58%;
  background: var(--screen-pause-detail, var(--screen-detail));
}

.stage[data-screen-art][data-layout="end"] {
  --screen-wide: 47%;
  --screen-x: 83%;
  --screen-y: 43%;
  --screen-height: 1.02;
  --screen-main-alpha: .84;
  --screen-detail-alpha: .67;
  --screen-text-track: -.045em;
}

.stage[data-screen-art][data-layout="end"] .screen-mark-main {
  background: var(--screen-end, var(--screen-mark));
  clip-path: var(--screen-end-shape, var(--screen-shape));
}

.stage[data-screen-art][data-layout="end"] .screen-mark-detail {
  inset: 7% 0 12% 59%;
}

.stage[data-screen-art="bold"][data-layout] {
  --screen-main-alpha: 1;
  --screen-detail-alpha: 1;
  --screen-fx-scale: 1.12;
  --screen-card: color-mix(in srgb, var(--screen-hot) 16%, var(--screen-paper));
}

.stage[data-screen-art="quiet"][data-layout] {
  --screen-main-alpha: .43;
  --screen-detail-alpha: .36;
  --screen-fx-scale: .88;
}

.stage[data-screen-art="quiet"] .screen-mark-route { opacity: .56; }

/* Señal. Two interlocking pieces of colored broadcast tape. */
.stage[data-screen-art][data-theme="signal"] {
  --screen-shape: polygon(22% 0, 100% 0, 79% 100%, 0 100%, 0 82%, 13% 82%, 31% 18%, 15% 18%);
  --screen-end-shape: polygon(52% 0, 100% 0, 100% 79%, 86% 100%, 18% 100%, 35% 76%, 61% 76%, 80% 24%, 35% 24%);
  --screen-mark:
    linear-gradient(151deg, #fff5 0 12%, transparent 12% 37%, #110c2832 37% 56%, transparent 56%),
    linear-gradient(123deg, var(--screen-cool) 0 40%, var(--screen-hot) 40% 74%, color-mix(in srgb, var(--screen-hot) 62%, #b53a44) 74%);
  --screen-pause:
    linear-gradient(112deg, var(--screen-cool) 0 45%, var(--screen-hot) 45%),
    var(--screen-panel);
  --screen-end: linear-gradient(117deg, #fff6 0 7%, transparent 7%), linear-gradient(145deg, var(--screen-hot), var(--screen-cool) 86%);
  --screen-detail:
    linear-gradient(120deg, transparent 8%, var(--screen-line) 8% 8.22%, transparent 8.22% 19%, var(--screen-line) 19% 19.22%, transparent 19.22% 74%, var(--screen-line) 74% 74.23%, transparent 74.23%),
    linear-gradient(120deg, transparent 23%, color-mix(in srgb, var(--screen-cool) 14%, var(--screen-paper)) 23% 64%, transparent 64%);
  --screen-route:
    linear-gradient(114deg, transparent 57%, var(--screen-cool) 57% 57.15%, transparent 57.15%) 98% 20% / 35% 66% no-repeat,
    linear-gradient(90deg, var(--screen-hot) 0 46%, transparent 46% 52%, var(--screen-cool) 52% 78%, transparent 78%) 94.8% 61.6% / 24% .24cqw no-repeat;
}

/* Neón. Concentric oval rails with a soft colored center. */
.stage[data-screen-art][data-theme="neon"] {
  --screen-paper: #111328;
  --screen-panel: #2c245a;
  --screen-ink: #f5f4ff;
  --screen-subtle: #cdc8e9;
  --screen-font-size: 7.14cqw;
  --screen-text-track: -.059em;
  --screen-shape: ellipse(49% 47% at 50% 50%);
  --screen-end-shape: ellipse(54% 46% at 63% 47%);
  --screen-mark:
    radial-gradient(ellipse at 50% 50%, #303358 0 23%, transparent 24% 31%, var(--screen-hot) 32% 35%, transparent 36% 41%, var(--screen-cool) 42% 48%, transparent 49% 55%, var(--screen-hot) 56% 59%, transparent 60%),
    radial-gradient(ellipse, color-mix(in srgb, var(--screen-cool) 82%, transparent), transparent 75%);
  --screen-pause:
    radial-gradient(ellipse at 49% 50%, transparent 0 29%, var(--screen-hot) 30% 36%, transparent 37% 43%, var(--screen-cool) 44% 51%, transparent 52% 57%, #fff8 58% 59%, transparent 60%);
  --screen-end:
    radial-gradient(ellipse at 64% 45%, transparent 0 32%, var(--screen-hot) 33% 36%, transparent 37% 48%, var(--screen-cool) 49% 53%, transparent 54% 57%, color-mix(in srgb, var(--screen-cool) 55%, transparent) 58% 61%, transparent 62%);
  --screen-detail:
    radial-gradient(ellipse at 48% 49%, transparent 58%, #b8b2ff26 58.2% 58.7%, transparent 59% 63%, #b8b2ff26 63.2% 63.5%, transparent 64%);
  --screen-pause-detail:
    repeating-linear-gradient(90deg, var(--screen-line) 0 .11cqw, transparent .11cqw 1.12cqw) center 47% / 65% .65cqw no-repeat;
  --screen-route:
    linear-gradient(90deg, transparent, var(--screen-cool) 51%, transparent) 100% 51% / 48% .17cqw no-repeat,
    linear-gradient(90deg, transparent, var(--screen-hot) 51%, transparent) 100% 54% / 35% .1cqw no-repeat;
}

/* Editorial. Printed paper stock, large ink arch and an overlaid color block. */
.stage[data-screen-art][data-theme="editorial"] {
  --screen-paper: #f3eadc;
  --screen-panel: #e4d7c5;
  --screen-ink: #2b2423;
  --screen-subtle: #514346;
  --screen-hot: color-mix(in srgb, var(--brand-alt) 65%, #1c3c39);
  --screen-cool: color-mix(in srgb, var(--brand) 64%, #986f54);
  --screen-line: #b7a593;
  --screen-detail-layer: 2;
  --screen-card: #e9dfd0;
  --screen-badge: #dfd1bd;
  --screen-font-size: 7.16cqw;
  --screen-text-track: -.064em;
  --screen-plate:
    linear-gradient(90deg, transparent 0 62%, #4f392615 62% 62.09%, transparent 62.09% 95.1%, #4f392615 95.1% 95.19%, transparent 95.19%),
    linear-gradient(126deg, #f8f2e7, var(--screen-paper) 56%, var(--screen-panel));
  --screen-shape: inset(0 round 50% 50% 1.5% 1.5%);
  --screen-end-shape: polygon(16% 0, 100% 0, 100% 100%, 28% 100%, 0 71%, 0 15%);
  --screen-angle: -7deg;
  --screen-height: 1.24;
  --screen-mark:
    radial-gradient(ellipse at 65% 38%, var(--screen-cool) 0 13%, transparent 13.4%),
    linear-gradient(124deg, #fbf3dd31 0 29%, transparent 29% 56%, #16292521 56%),
    linear-gradient(90deg, var(--screen-hot) 0 64%, #1b403b 64%);
  --screen-pause: linear-gradient(90deg, var(--screen-hot) 0 53%, var(--screen-cool) 53%);
  --screen-pause-cut: linear-gradient(90deg, #000 0 44%, transparent 44% 57%, #000 57%);
  --screen-end:
    linear-gradient(151deg, #fff5 0 10%, transparent 10% 47%, #2d302922 47%),
    linear-gradient(110deg, var(--screen-hot) 0 58%, var(--screen-cool) 58%);
  --screen-detail:
    linear-gradient(90deg, #4f392622 0 .08cqw, transparent .08cqw) right 13% top / 57% 96% no-repeat,
    linear-gradient(var(--screen-cool), var(--screen-cool)) right 18% bottom 13% / 73% 30% no-repeat;
  --screen-route:
    linear-gradient(90deg, var(--screen-hot) 0 22%, transparent 22% 26%, var(--screen-cool) 26% 47%, transparent 47%) 94% 60% / 26% .22cqw no-repeat;
  --screen-veil: linear-gradient(90deg, transparent 70%, #f8ebd813);
}

/* Operaciones. Heavy cut metal shapes with restrained safety-color edges. */
.stage[data-screen-art][data-theme="operations"] {
  --screen-paper: #151812;
  --screen-panel: #34372d;
  --screen-ink: #fff9e6;
  --screen-subtle: #c8cbb4;
  --screen-font-size: 7.73cqw;
  --screen-text-track: -.017em;
  --screen-shape: polygon(25% 0, 100% 0, 100% 50%, 78% 72%, 69% 72%, 46% 100%, 0 100%, 0 74%, 13% 60%, 13% 27%);
  --screen-end-shape: polygon(35% 0, 100% 0, 100% 100%, 7% 100%, 26% 80%, 68% 80%, 68% 48%);
  --screen-mark:
    linear-gradient(132deg, transparent 12%, var(--screen-hot) 12% 14%, transparent 14% 45%, #05050492 45% 45.7%, transparent 45.7% 72%, var(--screen-cool) 72% 75%, transparent 75%),
    repeating-linear-gradient(132deg, #121709 0 9%, #2a321e 9% 9.65%, #323c24 9.65% 17%);
  --screen-pause:
    linear-gradient(142deg, var(--screen-hot) 0 3%, transparent 3% 77%, var(--screen-cool) 77% 79%, transparent 79%),
    repeating-linear-gradient(137deg, #3b472a 0 10%, #1b2616 10% 21%);
  --screen-pause-cut: linear-gradient(132deg, #000 0 37%, transparent 37% 54%, #000 54%);
  --screen-end:
    linear-gradient(133deg, transparent 66%, var(--screen-cool) 66% 67%, transparent 67%),
    linear-gradient(130deg, #1a2517, #495434);
  --screen-detail:
    linear-gradient(132deg, transparent 28%, var(--screen-line) 28% 28.3%, transparent 28.3% 81%, var(--screen-line) 81% 81.25%, transparent 81.25%);
  --screen-route:
    repeating-linear-gradient(130deg, var(--screen-cool) 0 .39cqw, transparent .39cqw .89cqw) 94.4% 62% / 13% .55cqw no-repeat;
}

/* Arcano. Asymmetric gem relief, with fine warm edges and no UI ornament. */
.stage[data-screen-art][data-theme="arcana"] {
  --screen-paper: #091c1a;
  --screen-panel: #1a3731;
  --screen-ink: #f5fae7;
  --screen-subtle: #c0d8c6;
  --screen-font-size: 7.08cqw;
  --screen-text-track: -.049em;
  --screen-detail-layer: 2;
  --screen-shape: polygon(58% 0, 87% 14%, 99% 54%, 72% 91%, 39% 100%, 3% 62%, 17% 26%);
  --screen-end-shape: polygon(69% 0, 94% 18%, 100% 54%, 74% 100%, 34% 100%, 56% 70%, 24% 43%);
  --screen-mark:
    conic-gradient(from 13deg at 57% 47%, #274337 0 10%, #7bbd9e 10% 13%, #38594d 13% 27%, #102823 27% 44%, #365c4e 44% 60%, #79ba9a 60% 65%, #274337 65% 100%);
  --screen-pause:
    conic-gradient(from 21deg at 60% 40%, #31483e 0 12%, var(--screen-cool) 12% 13%, #3b6b5b 13% 32%, #1e352c 32% 54%, #5ab09a 54% 72%, #2b4f42 72%);
  --screen-pause-cut: linear-gradient(135deg, #000 0 43%, transparent 43% 53%, #000 53%);
  --screen-end:
    conic-gradient(from 192deg at 62% 48%, #2e5e4d 0 14%, var(--screen-cool) 14% 15%, #52715a 15% 31%, #122a25 31% 57%, #315c4d 57% 80%, #203e33 80%);
  --screen-detail:
    linear-gradient(130deg, transparent 28%, var(--screen-cool) 28% 28.19%, transparent 28.19% 73%, var(--screen-line) 73% 73.24%, transparent 73.24%),
    linear-gradient(44deg, transparent 43%, var(--screen-line) 43% 43.26%, transparent 43.26% 70%, var(--screen-line) 70% 70.31%, transparent 70.31%);
  --screen-route: linear-gradient(90deg, transparent, var(--screen-cool) 38%, transparent) 97% 62% / 38% .14cqw no-repeat;
}

/* Pulso. Red and cyan airfoil strips and a fast diagonal leading edge. */
.stage[data-screen-art][data-theme="pulse"] {
  --screen-paper: #1b1423;
  --screen-panel: #41212f;
  --screen-ink: #fff1f4;
  --screen-subtle: #e0b9cb;
  --screen-font-size: 7.65cqw;
  --screen-text-track: -.042em;
  --screen-shape: polygon(44% 0, 100% 0, 78% 43%, 100% 43%, 56% 100%, 0 100%, 37% 55%, 16% 55%);
  --screen-end-shape: polygon(64% 0, 100% 0, 84% 38%, 98% 38%, 55% 100%, 19% 100%, 44% 69%, 19% 69%);
  --screen-mark:
    linear-gradient(146deg, #ffa3b2 0 14%, var(--screen-hot) 14% 33%, #66152d 33% 33.65%, #bb2d51 33.65% 53%, var(--screen-cool) 53% 56%, #1d5b6d 56% 65%, var(--screen-hot) 65% 93%, #902348 93%);
  --screen-pause:
    linear-gradient(122deg, #6d2846 0 24%, var(--screen-hot) 24% 47%, #21101d 47% 54%, var(--screen-cool) 54% 73%, #176476 73%);
  --screen-end:
    linear-gradient(119deg, var(--screen-cool) 0 7%, #5d1b40 7% 23%, var(--screen-hot) 23% 44%, #8d2544 44% 81%, #38213e 81%);
  --screen-detail:
    linear-gradient(131deg, transparent 19%, var(--screen-line) 19% 20%, transparent 20% 27%, var(--screen-line) 27% 27.3%, transparent 27.3%),
    linear-gradient(131deg, transparent 72%, #ff62832c 72% 82%, transparent 82%);
  --screen-route:
    linear-gradient(112deg, var(--screen-hot) 0 31%, transparent 31% 32%, var(--screen-cool) 32% 42%, transparent 42% 49%, var(--screen-hot) 49% 59%, transparent 59%) 93% 63% / 32% .18cqw no-repeat;
}

/* Estadio. Oval midfield geometry and clean floodlight bands. */
.stage[data-screen-art][data-theme="stadium"] {
  --screen-paper: #0e241c;
  --screen-panel: #1a4837;
  --screen-ink: #f6f9e8;
  --screen-subtle: #c6e2d5;
  --screen-font-size: 7.55cqw;
  --screen-text-track: -.062em;
  --screen-shape: inset(4% 1% 4% 1% round 41%);
  --screen-end-shape: ellipse(52% 46% at 64% 51%);
  --screen-angle: -15deg;
  --screen-mark:
    radial-gradient(ellipse at 50% 50%, transparent 0 21%, #d2e8b47d 21.3% 21.85%, transparent 22% 45%, #cfe7bc54 45.2% 45.7%, transparent 46%),
    linear-gradient(90deg, transparent 49.65%, #e8ffca93 49.65% 50.2%, transparent 50.2%),
    repeating-linear-gradient(90deg, #2b885c 0 11%, #1f6b49 11% 22%);
  --screen-pause:
    radial-gradient(ellipse at 50% 42%, #d4efae28, transparent 67%),
    repeating-linear-gradient(90deg, #2b8a60 0 14%, #23694f 14% 28%);
  --screen-pause-cut: linear-gradient(90deg, #000 0 42%, transparent 42% 58%, #000 58%);
  --screen-end:
    radial-gradient(ellipse at 50% 50%, transparent 0 23%, var(--screen-hot) 23.2% 23.6%, transparent 24% 47%, var(--screen-cool) 47.15% 47.5%, transparent 48%),
    linear-gradient(127deg, #35704b, #133832 69%, #9ab74d);
  --screen-detail:
    radial-gradient(ellipse at 48% 48%, transparent 58%, var(--screen-line) 58.2% 58.6%, transparent 59% 64%, var(--screen-line) 64.2% 64.45%, transparent 65%),
    linear-gradient(154deg, transparent 59%, #bfd8531c 59% 73%, transparent 73%);
  --screen-route:
    linear-gradient(117deg, transparent 0 7%, var(--screen-hot) 7% 24%, transparent 24% 25%, var(--screen-cool) 25% 35%, transparent 35%) 97% 62% / 28% .28cqw no-repeat;
}

/* Neón urbano. Sunset gradient and asymmetric architectural reflections. */
.stage[data-screen-art][data-theme="afterdark"] {
  --screen-paper: #191327;
  --screen-panel: #422441;
  --screen-ink: #fff2f8;
  --screen-subtle: #e1bfd9;
  --screen-font-size: 7.2cqw;
  --screen-text-track: -.064em;
  --screen-shape: polygon(26% 0, 100% 0, 100% 77%, 69% 77%, 69% 100%, 0 100%, 0 45%, 26% 45%);
  --screen-end-shape: polygon(48% 0, 100% 0, 100% 100%, 11% 100%, 11% 66%, 62% 66%, 62% 34%, 48% 34%);
  --screen-mark:
    linear-gradient(0deg, #24183e 0 15%, transparent 15% 41%, #1b102c58 41% 42%, transparent 42%),
    linear-gradient(90deg, transparent 60%, #ffbce055 60% 60.5%, transparent 60.5% 73%, #ffbce044 73% 73.5%, transparent 73.5%),
    linear-gradient(158deg, #382d75, var(--screen-hot) 49%, #f5827c 63%, #583b99 74%, #2e7e8d);
  --screen-pause:
    linear-gradient(0deg, #13122a 0 12%, transparent 12% 69%, #fff3 69% 70%, transparent 70%),
    linear-gradient(128deg, #644baa, var(--screen-hot) 47%, #2c8193 59%, var(--screen-cool));
  --screen-pause-cut: linear-gradient(90deg, #000 0 45%, transparent 45% 60%, #000 60%);
  --screen-end:
    linear-gradient(180deg, #1a1432 0 12%, transparent 12% 54%, #fff4 54% 54.45%, transparent 54.45%),
    linear-gradient(153deg, #6c3e83, var(--screen-hot) 50%, #7d459b 60%, var(--screen-cool));
  --screen-detail:
    linear-gradient(0deg, transparent 12%, #ed8dc13f 12% 12.35%, transparent 12.35% 31%, #6df7e63a 31% 31.32%, transparent 31.32% 57%, #ed8dc143 57% 57.35%, transparent 57.35%),
    linear-gradient(90deg, transparent 22%, #6df7e64a 22% 22.29%, transparent 22.29% 69%, #fe6ec845 69% 69.25%, transparent 69.25%);
  --screen-route:
    linear-gradient(90deg, transparent 2%, var(--screen-hot) 2% 41%, transparent 41% 49%, var(--screen-cool) 49% 77%, transparent 77%) 98% 60% / 37% .22cqw no-repeat;
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-layer="titular"] > .layer-visual {
  --layer-font-size: var(--screen-font-size);
  color: var(--screen-ink);
  line-height: .9;
  letter-spacing: var(--screen-text-track);
  text-transform: none;
}

.stage[data-screen-art][data-typeface="mono"]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-layer="titular"] > .layer-visual {
  --layer-font-size: 6.05cqw;
  letter-spacing: -.08em;
}

.stage[data-screen-art][data-typeface="studio"]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"]):is([data-theme="editorial"], [data-theme="arcana"]) .layer[data-layer="titular"] > .layer-visual {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-kind="logo"] > .layer-visual {
  color: var(--screen-ink);
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-kind="eyebrow"] > .layer-visual {
  --layer-font-size: 1.12cqw;
  color: var(--screen-hot);
  letter-spacing: .13em;
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-kind="caption"] > .layer-visual {
  color: var(--screen-subtle);
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-kind="rule"] > .layer-visual {
  background: linear-gradient(90deg, var(--screen-hot) 0 4.5%, transparent 4.5% 5%, var(--screen-line) 5% 100%);
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-kind="callout"] > .layer-visual {
  border-color: var(--screen-line);
  background: linear-gradient(124deg, var(--screen-card) 0 80%, color-mix(in srgb, var(--screen-paper) 85%, var(--screen-cool)) 80%);
  color: var(--screen-ink);
  box-shadow: none;
}

.stage[data-screen-art]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])[data-theme] .layer[data-kind="countdown"] .countdown-digit {
  border-color: var(--screen-line);
  background: linear-gradient(180deg, var(--screen-badge) 0 49.5%, var(--screen-paper) 50%);
  color: var(--screen-ink);
}

/* Motion lives in the artwork, so a timer or editable text never shifts. */
.stage[data-screen-art][data-screen-motion="on"][data-layout="opening"] .screen-mark-main {
  animation: show-screen-aperture var(--screen-period, 8s) ease-in-out infinite;
}

.stage[data-screen-art][data-screen-motion="on"][data-layout="break"] .screen-mark-detail {
  animation: show-screen-settle var(--screen-period, 8s) ease-in-out infinite;
}

.stage[data-screen-art][data-screen-motion="on"][data-layout="end"] .screen-mark-main {
  animation: show-screen-outro var(--screen-period, 8s) ease-in-out infinite;
}

.stage[data-screen-art][data-screen-motion="on"]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"]) .screen-mark-route {
  animation: show-screen-rail var(--screen-period, 8s) ease-in-out infinite;
}

@keyframes show-screen-aperture {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--screen-angle)) scale(var(--screen-fx-scale)); }
  50% { transform: translate(-48%, -51%) rotate(calc(var(--screen-angle) + 2deg)) scale(calc(var(--screen-fx-scale) * 1.025)); }
}

@keyframes show-screen-settle {
  0%, 100% { transform: scale(1); opacity: var(--screen-detail-alpha); }
  50% { transform: scale(.978); opacity: calc(var(--screen-detail-alpha) * .66); }
}

@keyframes show-screen-outro {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--screen-angle)) scale(var(--screen-fx-scale)); }
  50% { transform: translate(-47%, -52%) rotate(calc(var(--screen-angle) - 2deg)) scale(calc(var(--screen-fx-scale) * .982)); }
}

@keyframes show-screen-rail {
  0%, 100% { transform: translateX(0); opacity: .47; }
  46% { opacity: .95; }
  65% { transform: translateX(.78%); opacity: .75; }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-screen-art][data-screen-motion="on"][data-layout] :is(.screen-mark-main, .screen-mark-detail, .screen-mark-route) {
    animation: none;
  }
}

/* ---- program-transitions.css ---- */
.scene-transition {
  --cut-surface: #211b2b;
  --cut-ink: #fff9f5;
  --cut-angle: -12deg;
  --cut-mark: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  --cut-main: color-mix(in srgb, var(--cut-primary) 72%, var(--cut-surface));
  --cut-sub: color-mix(in srgb, var(--cut-secondary) 55%, var(--cut-surface));
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  container-type: size;
  background: var(--cut-surface);
  color: var(--cut-ink);
  pointer-events: none;
}

.transition-graphics { position: absolute; inset: 0; overflow: hidden; }
.transition-graphics::before, .transition-graphics::after { content: ''; position: absolute; }

.transition-graphics::before {
  inset: -28% -18% -28% 42%;
  background: var(--cut-main);
  clip-path: var(--cut-mark);
  transform: rotate(var(--cut-angle));
}

.transition-graphics::after {
  inset: 0;
  background:
    linear-gradient(var(--cut-sub), var(--cut-sub)) 0 15% / 38% .17cqw no-repeat,
    linear-gradient(var(--cut-primary), var(--cut-primary)) 6% 85% / 14% .21cqw no-repeat,
    linear-gradient(var(--cut-secondary), var(--cut-secondary)) 92% 84% / 9% .14cqw no-repeat;
}

.transition-channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  max-width: 62%;
  padding: 1.3cqw 2.5cqw 1.45cqw;
  border-top: .16cqw solid var(--cut-primary);
  box-shadow: .48cqw .48cqw var(--cut-sub);
  background: var(--cut-surface);
  color: var(--cut-ink);
  font: 800 4.1cqw/.96 "Barlow Condensed", "Segoe UI", Arial, sans-serif;
}

.transition-channel img { max-width: 12cqw; max-height: 7cqw; object-fit: contain; }
.transition-channel span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scene-transition[data-theme="neon"] {
  --cut-surface: #151328;
  --cut-angle: -4deg;
  --cut-mark: polygon(26% 0, 100% 0, 100% 78%, 76% 78%, 76% 89%, 47% 89%, 47% 100%, 0 100%, 0 41%, 26% 41%);
}

.scene-transition[data-theme="editorial"] {
  --cut-surface: #f0e2d4;
  --cut-ink: #302727;
  --cut-angle: 0deg;
  --cut-main: color-mix(in srgb, var(--cut-secondary) 30%, var(--cut-surface));
  --cut-mark: inset(14% 0 16% 25%);
}

.scene-transition[data-theme="editorial"] .transition-channel {
  border-top-color: var(--cut-sub);
  box-shadow: none;
  font: 700 4.1cqw/1 Georgia, serif;
}

.scene-transition[data-theme="operations"] {
  --cut-surface: #161a13;
  --cut-angle: 0deg;
  --cut-mark: polygon(34% 0, 100% 0, 100% 100%, 5% 100%, 5% 67%, 19% 46%, 19% 25%);
}

.scene-transition[data-theme="operations"] .transition-graphics::after {
  background:
    linear-gradient(var(--cut-primary) 0 0) 7% 25% / 16% .24cqw no-repeat,
    linear-gradient(var(--cut-secondary) 0 0) 7% 25% / .17cqw 52% no-repeat,
    linear-gradient(var(--cut-secondary) 0 0) 90% 78% / 20% .22cqw no-repeat;
}

.scene-transition[data-theme="arcana"] {
  --cut-surface: #0c2020;
  --cut-angle: 0deg;
  --cut-mark: polygon(41% 7%, 99% 50%, 41% 93%, 0 50%);
  --cut-main: color-mix(in srgb, var(--cut-primary) 34%, var(--cut-surface));
}

.scene-transition[data-theme="arcana"] .transition-graphics::before { inset: -7% -17% -7% 17%; }
.scene-transition[data-theme="arcana"] .transition-graphics::after {
  inset: 15% 11%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%, 50% 0, 50% 1%, 1.3% 50%, 50% 99%, 98.7% 50%, 50% 1%);
  background: var(--cut-secondary);
}
.scene-transition[data-theme="arcana"] .transition-channel { font-family: Georgia, serif; }

.scene-transition[data-theme="pulse"] {
  --cut-surface: #241722;
  --cut-angle: -22deg;
  --cut-mark: polygon(30% 0, 100% 0, 72% 100%, 0 100%);
}
.scene-transition[data-theme="pulse"] .transition-channel { font-style: italic; }

.scene-transition[data-theme="stadium"] {
  --cut-surface: #15291e;
  --cut-angle: 10deg;
  --cut-mark: polygon(22% 0, 100% 0, 68% 100%, 0 100%);
}
.scene-transition[data-theme="stadium"] .transition-graphics::after {
  inset: 12% 9%;
  border: .14cqw solid var(--cut-sub);
  background:
    linear-gradient(90deg, transparent calc(50% - .07cqw), var(--cut-sub) 50%, transparent calc(50% + .07cqw)),
    radial-gradient(circle closest-side, transparent 95%, var(--cut-sub) 96% 98%, transparent 99%) center / 26% 59% no-repeat;
}

.scene-transition[data-theme="afterdark"] {
  --cut-surface: #222238;
  --cut-angle: 0deg;
  --cut-mark: polygon(46% 0, 100% 0, 100% 100%, 0 100%, 0 68%, 24% 68%, 24% 40%, 46% 40%);
  --cut-main: color-mix(in srgb, var(--cut-primary) 58%, var(--cut-surface));
}
.scene-transition[data-theme="afterdark"] .transition-graphics::before {
  background: linear-gradient(90deg, var(--cut-main) 0 64%, var(--cut-sub) 64%);
}

.scene-transition[data-style="shutter"] .transition-graphics { border-block: .35cqw solid var(--cut-secondary); }
.scene-transition[data-style="iris"] .transition-channel { border-top-color: var(--cut-secondary); }

.transition-channel {
  gap: 1.65cqw;
  padding: .67cqw 2.8cqw .92cqw 2.3cqw;
  border: 0;
  border-left: .55cqw solid var(--cut-primary);
  border-bottom: .07cqw solid color-mix(in srgb, var(--cut-ink) 28%, var(--cut-surface));
  box-shadow: .6cqw .65cqw color-mix(in srgb, var(--cut-surface) 85%, var(--cut-secondary));
  font-size: 4.8cqw;
  letter-spacing: -.025em;
}
.scene-transition[data-theme="editorial"] .transition-channel {
  border-left-color: var(--cut-secondary);
  border-bottom: .11cqw solid var(--cut-secondary);
}
.scene-transition[data-theme="arcana"] .transition-channel { border-left-color: var(--cut-secondary); }

.transition-inlay {
  position: absolute;
  z-index: 1;
  inset: auto -12% 20% 5%;
  height: .42cqw;
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.1cqw) 100%, 0 100%);
  background: linear-gradient(90deg, transparent 0 8%, var(--cut-secondary) 8% 17%, transparent 17% 18%,
    var(--cut-primary) 18% 56%, transparent 56% 61%, var(--cut-sub) 61% 96%, transparent);
  animation: transition-inlay-in calc(var(--cut-speed) * .46) cubic-bezier(.15,.55,.3,1) both;
}
.scene-transition[data-phase="reveal"] .transition-inlay {
  animation: transition-inlay-out calc(var(--cut-speed) * .54) cubic-bezier(.48,.08,.52,.9) both;
}

@keyframes transition-inlay-in {
  from { opacity: 0; transform: translateX(-49%); }
  to { opacity: .9; transform: translateX(0); }
}
@keyframes transition-inlay-out {
  from { opacity: .9; transform: translateX(0); }
  to { opacity: 0; transform: translateX(45%); }
}

.scene-transition[data-style="stinger"] {
  --stinger-surface: color-mix(in srgb, var(--cut-primary) 16%, #090b12);
  --stinger-reflection: color-mix(in srgb, var(--cut-secondary) 40%, #282c36);
  background:
    radial-gradient(ellipse at 92% 8%, var(--stinger-reflection), transparent 62%),
    radial-gradient(ellipse at 10% 112%, color-mix(in srgb, var(--cut-primary) 29%, #171a24), transparent 62%),
    var(--stinger-surface);
  color: #fff;
}

.stinger-finish {
  position: absolute;
  inset: -29cqh -24cqw auto;
  height: 105cqh;
  border-radius: 0 0 51% 49% / 0 0 34% 50%;
  transform: rotate(-8deg);
  background:
    radial-gradient(ellipse at 69% 0%, color-mix(in srgb, var(--cut-secondary) 25%, #222b38), transparent 77%),
    linear-gradient(164deg, #1d222b, var(--stinger-surface) 79%);
  box-shadow: inset 0 -.16cqh 0 color-mix(in srgb, var(--cut-primary) 40%, #454854),
    0 4cqh 11cqh #0006;
}

.stinger-brand {
  display: grid;
  position: relative;
  place-items: center;
  width: min(76cqw, 110cqh);
  text-align: center;
  animation: stinger-brand-in calc(var(--cut-speed) * .43) cubic-bezier(.17,.66,.28,1) both;
}

.stinger-name {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font: 800 min(10cqw, 13cqh)/.92 "Barlow Condensed", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.025em;
  text-wrap: balance;
  color: #f7f5f2;
  text-shadow: 0 .75cqh 2.8cqh #000b;
}

.stinger-logo {
  display: none;
  width: min(68cqw, 82cqh);
  height: min(58cqw, 43cqh);
  object-fit: contain;
  filter: drop-shadow(0 1.1cqh 3cqh #000b);
}

.stinger-brand[data-mark="logo"] .stinger-name { display: none; }
.stinger-brand[data-mark="logo"] .stinger-logo { display: block; }
.stinger-brand[data-mark="loading"] .stinger-name { visibility: hidden; }

.scene-transition[data-style="stinger"][data-phase="reveal"] .stinger-brand {
  animation: stinger-brand-out calc(var(--cut-speed) * .57) cubic-bezier(.46,0,.4,1) both;
}

.stinger-logo-control:not([hidden]) { display: grid; gap: .45rem; }
.stinger-logo-control .field-help { margin: 0; }

@keyframes stinger-brand-in {
  0%, 19% { opacity: 0; transform: translateY(3.2cqh) scale(.93); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stinger-brand-out {
  0%, 30% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-2cqh) scale(1.05); }
}

/* ---- broadcast-art.css ---- */
.stage[data-screen-art][data-theme] {
  --broadcast-head: 10.1cqw;
  --broadcast-track: -.038em;
  --broadcast-rail: color-mix(in srgb, var(--screen-ink) 24%, transparent);
  --broadcast-module: color-mix(in srgb, var(--screen-paper) 77%, var(--screen-panel));
  --screen-edge: none;
  --screen-veil: none;
}

.stage[data-screen-art][data-theme] .screen-graphics::after {
  inset: 17% 5% 10.6%;
  background:
    linear-gradient(var(--broadcast-rail) 0 0) 0 0 / 100% .055cqw no-repeat,
    linear-gradient(var(--screen-hot) 0 0) 0 0 / 6% .22cqw no-repeat,
    linear-gradient(var(--broadcast-rail) 0 0) 0 100% / 100% .055cqw no-repeat;
}

.stage[data-screen-art][data-theme][data-layout][data-typeface] .layer[data-layer="titular"] > .layer-visual {
  --layer-font-size: min(var(--broadcast-head), calc(var(--layer-width) / var(--headline-measure, 10)), calc(var(--layer-height) * .95 / var(--headline-lines, 1)));
  align-items: center;
  padding: .23em 0 .24em;
  letter-spacing: var(--broadcast-track);
  text-shadow: none;
  line-height: .89;
}

.stage[data-screen-art][data-theme] .layer[data-layer="titular"] .layer-text { max-width: 100%; }

.stage[data-screen-art][data-theme] .layer[data-layer="marca"] > .layer-visual {
  --layer-font-size: 1.65cqw;
  text-transform: none;
  letter-spacing: .01em;
}

.stage[data-screen-art][data-theme] .layer[data-kind="tag"] .layer-text {
  padding: .45cqw .69cqw;
  clip-path: none;
  border: .06cqw solid var(--broadcast-rail);
  border-radius: 0;
  background: var(--broadcast-module);
  color: var(--screen-ink);
  box-shadow: none;
  letter-spacing: .1em;
  font-size: calc(.84cqw * var(--layer-scale, 1));
}

.stage[data-screen-art][data-theme] .layer[data-kind="tag"] .layer-text::before {
  background: var(--screen-hot);
  clip-path: none;
  box-shadow: none;
  border-radius: 50%;
}

.stage[data-screen-art][data-theme] .layer[data-layer="linea"] .layer-visual { background: none; }
.stage[data-screen-art][data-theme] .layer[data-layer="linea"] .layer-visual::before {
  inset: 50% 0 auto;
  height: .09cqw;
  background: linear-gradient(90deg, var(--screen-hot) 0 6%, transparent 6% 6.7%, var(--broadcast-rail) 6.7% 100%);
}

.stage[data-screen-art][data-theme] .layer[data-kind="countdown"] > .layer-visual {
  gap: .38cqw;
  padding: 0;
}
.stage[data-screen-art][data-theme] .layer[data-kind="countdown"] .countdown-digit {
  display: grid;
  place-items: center;
  width: min(4.3cqw, calc(var(--layer-width) * .181));
  height: min(6.6cqw, 94%);
  min-width: 0;
  padding: 0;
  border: .06cqw solid var(--broadcast-rail);
  border-top: .11cqw solid var(--screen-hot);
  border-radius: 0;
  background: var(--broadcast-module);
  box-shadow: none;
  clip-path: none;
  color: var(--screen-ink);
  font: 650 min(4.04cqw, calc(var(--layer-width) * .142))/1 var(--scene-mono), monospace;
  font-variant-numeric: tabular-nums;
}
.stage[data-screen-art][data-theme] .layer[data-kind="countdown"] .countdown-separator {
  color: var(--screen-hot, var(--screen-ink));
  font: 650 min(3.75cqw, calc(var(--layer-width) * .125))/1 var(--scene-mono), monospace;
}

.stage[data-screen-art][data-theme] .layer[data-kind="callout"] > .layer-visual {
  --layer-font-size: 1.46cqw;
  background: var(--broadcast-module);
  border: 0;
  border-left: .19cqw solid var(--screen-hot);
  border-bottom: .07cqw solid var(--broadcast-rail);
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  color: var(--screen-ink);
  padding-inline: .78cqw;
}

.stage[data-screen-art][data-theme] .callout-kicker {
  color: var(--screen-subtle);
  font-size: .79cqw;
  font-weight: 650;
  letter-spacing: .105em;
}

.stage[data-screen-art][data-theme="signal"] {
  --screen-paper: #15151b;
  --screen-panel: #2b2630;
  --screen-ink: #fff7ee;
  --screen-plate:
    linear-gradient(90deg, transparent 63.8%, #0c0a0e 63.85%, #1b1721 64%, #211b29 100%),
    radial-gradient(ellipse at 2% 94%, #47303a, transparent 58%),
    #1d1b25;
}
.stage[data-screen-art][data-theme="signal"] .screen-mark-main {
  inset: 80% 6% auto 5%;
  width: 30%;
  height: 4%;
  aspect-ratio: auto;
  transform: none;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  background: linear-gradient(90deg, var(--screen-hot) 0 58%, var(--screen-cool) 58%);
}
.stage[data-screen-art][data-layout="break"][data-theme="signal"] {
  --screen-plate: radial-gradient(ellipse at 50% 58%, #352935, #16121c 68%);
}
.stage[data-screen-art][data-layout="end"][data-theme="signal"] {
  --screen-plate: linear-gradient(90deg, #332532 0 27%, #15151b 27.1% 100%);
}
.stage[data-screen-art][data-theme="signal"] .screen-mark-detail,
.stage[data-screen-art][data-theme="signal"] .screen-mark-route { display: none; }

.stage[data-screen-art][data-theme="editorial"] {
  --screen-paper: #ede3d2;
  --screen-panel: #d3c3a9;
  --screen-ink: #201d19;
  --screen-subtle: #4a4134;
  --broadcast-head: 9.5cqw;
  --screen-plate:
    linear-gradient(92deg, #1d513d 0 5.1%, transparent 5.24% 100%),
    radial-gradient(ellipse at 97% 98%, #bca987 0%, transparent 61%),
    #f0e6d6;
}
.stage[data-screen-art][data-theme="editorial"] .screen-mark-main {
  inset: 19% 5% auto;
  width: 90%;
  height: .1cqw;
  transform: none;
  clip-path: none;
  background: var(--broadcast-rail);
}
.stage[data-screen-art][data-theme="editorial"] .screen-mark-detail {
  inset: auto -7% -18% 63%;
  height: 46%;
  transform: rotate(-11deg);
  background: repeating-linear-gradient(90deg, #5b523716 0 .07cqw, transparent .07cqw 1.4cqw);
}
.stage[data-screen-art][data-theme="editorial"] .screen-mark-route { display: none; }
.stage[data-screen-art][data-theme="editorial"] .layer[data-kind="countdown"] .countdown-digit {
  color: #281f16;
  background: transparent;
  border: 0;
  border-bottom: .15cqw solid #2f5c46;
}

.stage[data-screen-art][data-theme="operations"] {
  --screen-paper: #161a15;
  --screen-panel: #292f22;
  --broadcast-head: 9.8cqw;
  --broadcast-track: -.02em;
  --screen-plate: linear-gradient(111deg, #20271f, #131913 63%, #192016);
}
.stage[data-screen-art][data-theme="operations"] .screen-mark-main {
  inset: 17% 5% 10% auto;
  width: 29%;
  height: auto;
  transform: none;
  border: .05cqw solid #969c704b;
  mask: none;
  clip-path: polygon(2.4cqw 0, 100% 0, 100% calc(100% - 1.6cqw), calc(100% - 1.6cqw) 100%, 0 100%, 0 2.4cqw);
  background:
    linear-gradient(90deg, transparent 0 91%, #aeb77e39 91% 92%, transparent 92%),
    repeating-linear-gradient(0deg, #373e2f 0 1px, #2b3026 1.5px 3px, #292e24 3px 4px);
  box-shadow: inset .55cqw .55cqw #68705457, inset -.64cqw -.64cqw #0d100ccb;
}
.stage[data-screen-art][data-theme="operations"] .screen-mark-detail {
  inset: 19% 7% 13% auto;
  width: 2.5%;
  background: repeating-linear-gradient(0deg, #9aa55577 0 .16cqw, transparent .16cqw .4cqw);
}
.stage[data-screen-art][data-theme="operations"] .screen-mark-route { display: none; }
.stage[data-screen-art][data-layout="break"][data-theme="operations"] .screen-mark-main { opacity: .46; }

.stage[data-screen-art][data-theme="pulse"] {
  --screen-paper: #241722;
  --screen-panel: #3a222e;
  --screen-plate:
    linear-gradient(169deg, transparent 0 66%, #1a111aae 66.3%),
    radial-gradient(ellipse at 62% -12%, #823347, transparent 65%),
    #241722;
}
.stage[data-screen-art][data-theme="pulse"] .screen-mark-main {
  inset: 18% 3% 12%;
  width: 94%;
  height: auto;
  mask: none;
  transform: none;
  clip-path: polygon(12% 0, 100% 0, 91% 16%, 19% 16%, 9% 100%, 0 100%);
  background: linear-gradient(130deg, #e34f65 0, #9e354a 48%, #542033 87%);
  box-shadow: inset 0 1px #ff9a9c;
}
.stage[data-screen-art][data-theme="pulse"] .screen-mark-detail {
  inset: auto 5% 12% auto;
  width: 17%;
  height: 6%;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  background: linear-gradient(90deg, var(--screen-cool) 0 24%, #614052 24% 100%);
}
.stage[data-screen-art][data-theme="pulse"] .screen-mark-route { display: none; }
.stage[data-screen-art][data-theme="pulse"][data-layout="end"] .screen-mark-main { opacity: .48; }

.stage[data-screen-art][data-theme="stadium"] {
  --screen-paper: #10251c;
  --screen-panel: #1a3b2b;
  --screen-plate:
    radial-gradient(ellipse at 50% 8%, #295339, transparent 53%),
    linear-gradient(180deg, #162e24, #0d1b15);
}
.stage[data-screen-art][data-theme="stadium"] .screen-mark-main {
  inset: 22% 9% 17%;
  width: 82%;
  height: auto;
  transform: perspective(95cqw) rotateX(27deg);
  clip-path: none;
  mask: none;
  border: .09cqw solid #dfeeca30;
  background:
    radial-gradient(circle closest-side, transparent 94%, #dfeeca2c 95% 98%, transparent 99%) center / 20% 66% no-repeat,
    linear-gradient(90deg, transparent 49.9%, #dfeeca2c 49.9% 50.1%, transparent 50.1%),
    repeating-linear-gradient(90deg, #2c5e3a32 0 7%, #1a432a1f 7% 14%);
}
.stage[data-screen-art][data-theme="stadium"] .screen-mark-detail,
.stage[data-screen-art][data-theme="stadium"] .screen-mark-route { display: none; }

.stage[data-screen-art="quiet"][data-theme] .screen-mark-main { opacity: .3; }
.stage[data-screen-art="quiet"][data-theme] .screen-mark-detail { opacity: .24; }
.stage[data-screen-art="bold"][data-theme] .screen-mark-main { filter: saturate(1.2) brightness(1.08); }
.stage[data-screen-art="bold"][data-theme] .screen-mark-detail { opacity: 1; }

.stage[data-screen-art][data-screen-motion="on"][data-layout]:is([data-theme="signal"], [data-theme="editorial"], [data-theme="operations"], [data-theme="pulse"], [data-theme="stadium"]) :is(.screen-mark-main, .screen-mark-detail) {
  animation: broadcast-surface-drift var(--screen-period, 9s) ease-in-out infinite;
}

@keyframes broadcast-surface-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: .42cqw -.18cqw; }
}

.stage[data-screen-motion="on"][data-screen-art] .layer[data-layer="titular"]:not([data-editable]) .layer-text {
  animation: broadcast-title-in .52s cubic-bezier(.17,.61,.25,1) both;
}

@keyframes broadcast-title-in {
  from { opacity: 0; transform: translateY(.85cqw); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-screen-motion="on"][data-screen-art] .layer[data-layer="titular"] .layer-text { animation: none !important; }
  .stage[data-screen-art][data-screen-motion="on"][data-layout]:is([data-theme="signal"], [data-theme="editorial"], [data-theme="operations"], [data-theme="pulse"], [data-theme="stadium"]) :is(.screen-mark-main, .screen-mark-detail) { animation: none !important; }
}

/* ---- broadcast-worlds.css ---- */
/* Full-screen artwork for Arcano, Neón and Neón urbano. */
.stage[data-screen-art]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"]) {
  --broadcast-accent: var(--brand);
  --broadcast-secondary: var(--brand-alt);
  --broadcast-relief: 1;
  --broadcast-intensity: 1;
  --broadcast-drift: 0%;
  --broadcast-grade: 1;
  --broadcast-act-light: 1;
  --broadcast-scale: 1;
  --broadcast-position: center;
  --broadcast-origin: center;
  --screen-edge: none;
}

.stage[data-screen-art="quiet"]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"]) {
  --broadcast-intensity: .5;
  --broadcast-grade: .65;
}

.stage[data-screen-art="bold"]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"]) {
  --broadcast-intensity: 1;
  --broadcast-drift: 1.5%;
  --broadcast-grade: 1.16;
}

.stage[data-screen-art]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"]) .screen-graphics::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 3;
  background: var(--broadcast-art, none) var(--broadcast-position) / cover no-repeat;
  filter: brightness(calc(var(--broadcast-grade) * var(--broadcast-act-light)));
  transform: scale(var(--broadcast-scale));
  transform-origin: var(--broadcast-origin);
}

.stage[data-screen-art]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"]) .screen-graphics::after {
  inset: 0;
  background:
    linear-gradient(var(--screen-hot) 0 0) left 5.3% top 17.4% / 5.4% .18cqw no-repeat,
    linear-gradient(var(--broadcast-rail) 0 0) center 17.4% / 90% .055cqw no-repeat,
    var(--screen-veil);
}

.stage[data-screen-art][data-layout][data-typeface]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"])
  .layer[data-layer="titular"] > .layer-visual {
  padding-block: .12em;
}

.stage[data-screen-art]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"])
  :is(.screen-mark-main, .screen-mark-detail) {
  mask-image: none;
  clip-path: none;
  opacity: calc(var(--broadcast-relief) * var(--broadcast-intensity));
}

.stage[data-screen-art]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"]) .screen-mark-route {
  z-index: 5;
}

.stage[data-screen-art][data-screen-motion="on"]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"])
  :is(.screen-mark-main, .screen-mark-detail, .screen-mark-route) {
  animation: none;
}

/* Arcano — green enamel, an inset focus crystal and a brushed brass rim. */
.stage[data-screen-art][data-theme="arcana"] {
  --broadcast-art: url("/media/airelivo-arcana.webp");
  --broadcast-origin: 79% 4%;
  --broadcast-position: center top;
  --screen-paper: #091916;
  --screen-panel: #173a32;
  --screen-ink: #fff3d4;
  --screen-subtle: #c1d9cb;
  --screen-hot: color-mix(in srgb, var(--broadcast-secondary) 55%, #f6d79e);
  --screen-line: #53746a;
  --screen-card: #112822;
  --screen-badge: #233b30;
  --broadcast-head: 7.3cqw;
  --broadcast-track: -.049em;
  --screen-plate:
    radial-gradient(ellipse at 80% 47%, #2f6d5775 0, transparent 53%),
    repeating-linear-gradient(123deg, #edcea50c 0 .025cqw, transparent .025cqw .15cqw),
    linear-gradient(128deg, #142720, #081512 55%, #12231d);
  --screen-veil:
    linear-gradient(90deg, #08151065 0, #08151042 40%, transparent 62%),
    linear-gradient(0deg, #050d0bfa 0, #050d0b50 14%, transparent 32%);
  --screen-route:
    linear-gradient(90deg, #dfc08900, #cfab647d 34%, #dbc08236 58%, transparent) left 6.1% top 25% / 39% .08cqw no-repeat,
    linear-gradient(0deg, transparent, #e1c88a85 70%, transparent) right 4.1% center / .07cqw 66% no-repeat;
  --arcana-metal: polygon(18% 0, 81% 0, 100% 20%, 100% 80%, 82% 100%, 19% 100%, 0 81%, 0 19%);
}

.stage[data-screen-art][data-theme="arcana"] .screen-graphics::before {
  inset: 0 -2% -2%;
}

.stage[data-screen-art][data-theme="arcana"] .screen-mark-detail {
  inset: 4% -4% 5% 52%;
  z-index: 0;
  border: .07cqw solid #addab137;
  border-radius: 48% 34% 50% 37%;
  background:
    repeating-radial-gradient(ellipse at 53% 51%, #f3d09d21 0 .045cqw, transparent .065cqw 1.7cqw),
    linear-gradient(149deg, transparent 39%, #87b0a928 39.13% 39.37%, transparent 39.5% 62%, #09180ac7 62.24% 62.6%, transparent 63%);
  transform: rotate(-24deg);
}

.stage[data-screen-art][data-theme="arcana"] .screen-mark-main {
  inset: auto;
  left: 76.5%;
  top: 49%;
  width: 31%;
  aspect-ratio: .92;
  transform: translate(-50%, -50%) rotate(-24deg) scale(1.09);
  background:
    repeating-linear-gradient(111deg, #fff4bf3d 0 .055cqw, transparent .055cqw .14cqw),
    linear-gradient(131deg, #d6bd82 0, #48604a 20%, #7e9c79 31%, #e8cb89 41%, #706747 55%, #222b23 65%, #a28a51 83%, #242919);
  clip-path: var(--arcana-metal);
  filter: drop-shadow(.75cqw 1.5cqw 1.45cqw #020908bb);
}

.stage[data-screen-art][data-theme="arcana"] .screen-mark-main::before,
.stage[data-screen-art][data-theme="arcana"] .screen-mark-main::after {
  content: "";
  position: absolute;
}

.stage[data-screen-art][data-theme="arcana"] .screen-mark-main::before {
  inset: 2.5%;
  background:
    repeating-linear-gradient(132deg, #acd3b011 0 .038cqw, #122e231a .05cqw .13cqw),
    repeating-radial-gradient(ellipse at 50% 51%, #d2dc9f40 0 .055cqw, #0b211e87 .065cqw .23cqw, transparent .25cqw 1.08cqw),
    radial-gradient(ellipse at 35% 20%, #487661, #17372e 49%, #062221 72%, #396350 100%);
  box-shadow: inset 0 0 2cqw #071512;
  clip-path: var(--arcana-metal);
}

.stage[data-screen-art][data-theme="arcana"] .screen-mark-main::after {
  inset: 20%;
  background:
    radial-gradient(ellipse at 30% 16%, #f1e4a6b0 0, transparent 37%),
    linear-gradient(128deg, #e7e2aa00 15%, #d8efd832 27%, #d4f4ce90 29%, transparent 33%, #021b17a2 62%, #9de7ba88 86%, #031713),
    conic-gradient(from 6deg at 54% 46%, #b8d38b 0 13%, #1f6952 13% 25%, #2f4d36 25% 44%, #6fb389 44% 59%, #315c44 59% 79%, #558b69 79% 90%, #cbd9a3 90%);
  clip-path: polygon(31% 1%, 68% 0, 99% 29%, 91% 74%, 67% 98%, 28% 100%, 1% 72%, 11% 22%);
}

.stage[data-screen-art][data-theme="arcana"][data-layout="break"] {
  --broadcast-scale: 1.045;
  --broadcast-act-light: .84;
  --screen-veil:
    linear-gradient(90deg, #061716b0, #06171661 46%, transparent 72%),
    radial-gradient(ellipse at 63% 47%, transparent 20%, #0814117a 74%);
}

.stage[data-screen-art][data-theme="arcana"][data-layout="end"] {
  --broadcast-scale: 1.075;
}

.stage[data-screen-art][data-theme="arcana"][data-layout="break"] .screen-mark-main {
  left: 82%;
  transform: translate(-50%, -50%) rotate(-38deg) scale(.93);
}

.stage[data-screen-art][data-theme="arcana"][data-layout="end"] .screen-mark-main {
  left: 80%;
  top: 51%;
  transform: translate(-50%, -50%) rotate(9deg) scale(.97);
}

/* Neón — a single illuminated lens assembly in a dark soundstage. */
.stage[data-screen-art][data-theme="neon"] {
  --broadcast-art: url("/media/airelivo-neon.webp");
  --screen-paper: #0c0b17;
  --screen-panel: #242046;
  --screen-ink: #f9f9ff;
  --screen-subtle: #d7d0f0;
  --screen-line: #7164a0;
  --screen-card: #151224;
  --screen-badge: #181827;
  --screen-plate:
    radial-gradient(ellipse at 50% 46%, #383063a1, transparent 66%),
    repeating-linear-gradient(110deg, #b5b2ff0d 0 .04cqw, transparent .055cqw .147cqw),
    linear-gradient(168deg, #17132a, #090a15 65%, #100f21);
  --screen-veil:
    radial-gradient(ellipse at 50% 49%, #090915d4 0 14%, #09091589 30%, transparent 54%),
    linear-gradient(0deg, #0a0915e6 0, transparent 28%, transparent 76%, #100e1dc2);
  --screen-route:
    linear-gradient(90deg, transparent 2%, #aba4dd3b 17%, transparent 30%, transparent 70%, #aba4dd40 83%, transparent) center top 18% / 90% .07cqw no-repeat,
    linear-gradient(90deg, #c0adeb08, #c0adeb50 35%, transparent 72%) left 5% bottom 17% / 13% .07cqw no-repeat,
    linear-gradient(90deg, transparent 30%, #c0adeb50 65%, #c0adeb08) right 5% bottom 17% / 13% .07cqw no-repeat;
  --neon-tube-top: color-mix(in srgb, var(--broadcast-secondary) 66%, #ddd9ff);
  --neon-tube-bottom: color-mix(in srgb, var(--broadcast-accent) 74%, #efffc0);
}

.stage[data-screen-art][data-theme="neon"] .screen-mark-detail {
  inset: 2% 12%;
  z-index: 0;
  border-radius: 49%;
  background:
    repeating-radial-gradient(ellipse, transparent 0 1.4cqw, #b8aaff17 1.44cqw 1.48cqw, #0a091a40 1.5cqw 1.6cqw),
    radial-gradient(ellipse, #5c429428, transparent 59%);
}

.stage[data-screen-art][data-theme="neon"] .screen-mark-main {
  inset: auto;
  width: 64%;
  left: 50%;
  top: 48%;
  aspect-ratio: 1.33;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse, #161026 0 59%, #0c0914 62%, #392c57 65%, #1c182e 67%, transparent 70%),
    conic-gradient(from 139deg, #373450, #726887, #222639 28%, #36354b 43%, #886db3 61%, #1e172c 73%, #273024 90%, #373450);
  box-shadow: 0 2cqw 3.8cqw #050510b3, inset 0 .16cqw .16cqw #e4d7ff70, inset 0 -.3cqw .35cqw #02010b;
}

.stage[data-screen-art][data-theme="neon"] .screen-mark-main::before,
.stage[data-screen-art][data-theme="neon"] .screen-mark-main::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.stage[data-screen-art][data-theme="neon"] .screen-mark-main::before {
  inset: 3%;
  border: .28cqw solid var(--neon-tube-top);
  border-top-color: #e8dcff;
  border-bottom-color: var(--neon-tube-bottom);
  box-shadow:
    0 -.1cqw 1.5cqw color-mix(in srgb, var(--neon-tube-top) 66%, transparent),
    0 .55cqw 1.55cqw color-mix(in srgb, var(--neon-tube-bottom) 36%, transparent),
    inset 0 .1cqw .9cqw color-mix(in srgb, var(--neon-tube-top) 43%, transparent);
  mask-image: linear-gradient(0deg, #000 0 43%, transparent 52%, #000 63%);
}

.stage[data-screen-art][data-theme="neon"] .screen-mark-main::after {
  inset: 6.8%;
  border: .1cqw solid #554d70;
  background:
    repeating-linear-gradient(112deg, #c5bfff11 0 .042cqw, transparent .062cqw .18cqw),
    radial-gradient(ellipse at 50% 49%, #191421, #1a112b 55%, #0d0a15 70%);
  box-shadow: inset 0 .6cqw 1.3cqw #070614, 0 -.08cqw .12cqw #b39cca5e;
}

.stage[data-screen-art][data-theme="neon"][data-layout="break"] .screen-mark-main {
  transform: translate(-50%, -50%) scale(.91);
  --neon-tube-bottom: #8d81bd;
}

.stage[data-screen-art][data-theme="neon"][data-layout="end"] .screen-mark-main {
  top: 47%;
  transform: translate(-50%, -50%) scale(1.055);
  --neon-tube-top: #8679b7;
  --neon-tube-bottom: var(--broadcast-secondary);
}

.stage[data-screen-art][data-theme="neon"][data-layout="break"] {
  --broadcast-act-light: .78;
}

.stage[data-screen-art][data-theme="neon"][data-layout="end"] {
  --broadcast-act-light: .85;
  --broadcast-scale: 1.10;
}

/* Neón urbano — a copper-lit skyline receding through plum and blue haze. */
.stage[data-screen-art][data-theme="afterdark"] {
  --broadcast-art: url("/media/airelivo-afterdark.webp");
  --screen-paper: #160f1b;
  --screen-panel: #3b2334;
  --screen-ink: #fff0e5;
  --screen-subtle: #e5c4c8;
  --screen-hot: color-mix(in srgb, var(--broadcast-accent) 44%, #ffa766);
  --screen-line: #886170;
  --screen-card: #251622;
  --screen-badge: #322230;
  --broadcast-head: 9.7cqw;
  --screen-plate:
    radial-gradient(ellipse at 79% 43%, #d67e63cb 0, #8b3c597e 24%, transparent 54%),
    radial-gradient(ellipse at 76% 57%, #843a69bb 0, transparent 61%),
    linear-gradient(167deg, #1d1735 2%, #472640 40%, #754055 59%, #272042 66%, #161129);
  --screen-veil:
    linear-gradient(90deg, #170e1caa 0%, #170e1c48 46%, transparent 70%),
    linear-gradient(0deg, #130e1c 0%, #170f22cb 17%, #170f2230 45%, transparent 73%, #18122523);
  --screen-route:
    linear-gradient(90deg, #ffae83b0, #d97e9f00 75%) left 5.2% top 43% / 16% .11cqw no-repeat,
    linear-gradient(90deg, transparent, #faaf8385 70%, #faaf8318) right 5.2% bottom 18% / 26% .07cqw no-repeat;
}

.stage[data-screen-art][data-theme="afterdark"] .screen-mark-detail {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(0deg, #1a1326 0 18%, #261829 30%, transparent 30.3%),
    repeating-linear-gradient(105deg, #ffd8c813 0 .045cqw, transparent .06cqw .2cqw),
    linear-gradient(0deg, transparent 53%, #ffc39673 54%, transparent 55%, transparent 61%, #ff916a41 61.5%, transparent 62.5%),
    radial-gradient(ellipse at 79% 59%, #ffc397dc 0, #e07e76aa 20%, transparent 50%);
}

.stage[data-screen-art][data-theme="afterdark"] .screen-mark-main {
  inset: auto 0 16% 53%;
  width: auto;
  height: 72%;
  aspect-ratio: auto;
  transform: none;
  background:
    linear-gradient(0deg, #1d1428 0 11%, transparent 59%, #59334826),
    repeating-linear-gradient(0deg, #130f26 0 .12cqw, #805364 0 .168cqw, transparent .19cqw .66cqw),
    linear-gradient(90deg, #3f294a 0 17%, #56364a 17% 19%, #261a32 19% 29%, #835469 29% 30%, #372642 30% 44%, #553d57 44% 51%, #31213c 51% 58%, #b77876 58% 58.55%, #613d58 59%, #2c203a 62% 69%, #623a53 69% 71%, #372340 71% 76%, #7b5173 76% 77%, #342341 80% 92%, #63486b 92%);
  clip-path: polygon(0 100%, 0 79%, 10% 79%, 10% 60%, 15% 60%, 15% 53%, 19% 53%, 19% 76%, 23% 76%, 23% 44%, 29% 44%, 29% 30%, 34% 30%, 34% 58%, 40% 58%, 40% 70%, 47% 70%, 47% 29%, 52% 25%, 52% 18%, 56% 18%, 56% 0, 56.8% 0, 56.8% 18%, 60% 18%, 60% 27%, 65% 32%, 65% 61%, 68% 61%, 68% 45%, 73% 45%, 73% 59%, 77% 59%, 77% 37%, 83% 37%, 83% 61%, 89% 61%, 89% 70%, 93% 70%, 93% 57%, 100% 57%, 100% 100%);
}

.stage[data-screen-art][data-theme="afterdark"] .screen-mark-route::before {
  content: "";
  position: absolute;
  inset: 77% 0 0 0;
  opacity: calc(var(--broadcast-relief) * var(--broadcast-intensity));
  background:
    linear-gradient(0deg, #170e2000 0, #100e1a58 70%, #05050dba 100%),
    repeating-linear-gradient(176deg, #bb7f911b 0 .055cqw, transparent .06cqw .24cqw),
    radial-gradient(ellipse at 82% 16%, #d2799c78, #54256030 35%, transparent 50%);
  clip-path: polygon(0 78%, 54% 11%, 100% 8%, 100% 100%, 0 100%);
}

.stage[data-screen-art][data-theme="afterdark"][data-layout="break"] {
  --broadcast-scale: 1.05;
  --screen-veil:
    linear-gradient(90deg, #130c1edb 0, #130e22af 48%, #170f221a 78%),
    linear-gradient(0deg, #160f25 0, #1b142e6b 32%, transparent 63%);
  --screen-route:
    linear-gradient(90deg, #d29bae99, #d29bae00 83%) left 6% top 28% / 19% .08cqw no-repeat,
    linear-gradient(90deg, transparent, #e698a174 80%, transparent) right 5.2% bottom 18% / 23% .07cqw no-repeat;
}

.stage[data-screen-art][data-theme="afterdark"][data-layout="end"] {
  --broadcast-scale: 1.12;
  --screen-veil:
    linear-gradient(90deg, #180e21cf 0, #180e218c 44%, transparent 76%),
    linear-gradient(0deg, #130e1d 0, #170f2380 37%, transparent 63%, #1a13294f);
  --screen-route: linear-gradient(90deg, #ffd6bfb8, #ae719978 37%, transparent 68%) left 5.2% top 43% / 32% .12cqw no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .stage[data-screen-art][data-screen-motion="on"]:is([data-theme="arcana"], [data-theme="neon"], [data-theme="afterdark"]) .screen-graphics::before {
    animation: broadcast-plate-light var(--screen-period, 8s) ease-in-out infinite;
  }

  .stage[data-screen-art][data-screen-motion="on"][data-theme="arcana"] .screen-mark-main::after,
  .stage[data-screen-art][data-screen-motion="on"][data-theme="neon"] .screen-mark-main::before,
  .stage[data-screen-art][data-screen-motion="on"][data-theme="afterdark"] .screen-mark-route::before {
    animation: broadcast-relief-light var(--screen-period, 8s) ease-in-out infinite;
  }
}

@keyframes broadcast-plate-light {
  0%, 100% { transform: scale(var(--broadcast-scale)); filter: brightness(calc(var(--broadcast-grade) * var(--broadcast-act-light) * .97)); }
  50% { transform: scale(calc(var(--broadcast-scale) * 1.018)) translateX(var(--broadcast-drift)); filter: brightness(calc(var(--broadcast-grade) * var(--broadcast-act-light) * 1.06)); }
}

@keyframes broadcast-relief-light {
  0%, 100% { filter: brightness(.93); }
  50% { filter: brightness(1.14); }
}

/* ---- broadcast-live.css ---- */
.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) {
  --live-base: #181321;
  --live-surface: #30243c;
  --live-ink: #fff5f5;
  --live-seam: #dac5e03c;
  --live-accent: var(--brand);
  --live-edge: var(--brand-alt);
  --live-cut: polygon(0 0, calc(100% - .74cqw) 0, 100% 44%, 100% 100%, 0 100%);
}

.stage[data-theme="neon"] {
  --live-base: #101326;
  --live-surface: #22244a;
  --live-seam: #7d79fb70;
}

.stage[data-theme="editorial"] {
  --live-base: #f0e7dc;
  --live-surface: #dfcbbc;
  --live-ink: #241e24;
  --live-seam: #372b354f;
  --live-cut: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.stage[data-theme="operations"] {
  --live-base: #171a13;
  --live-surface: #32372b;
  --live-ink: #f7fae6;
  --live-seam: #a1a78d6a;
  --live-cut: polygon(0 0, calc(100% - .66cqw) 0, 100% .66cqw, 100% 100%, .42cqw 100%, 0 calc(100% - .42cqw));
}

.stage[data-theme="arcana"] {
  --live-base: #111f24;
  --live-surface: #263d40;
  --live-ink: #fff7df;
  --live-seam: #bba78d75;
  --live-accent: var(--brand-alt);
  --live-edge: var(--brand);
  --live-cut: polygon(.48cqw 0, calc(100% - .48cqw) 0, 100% 50%, calc(100% - .48cqw) 100%, .48cqw 100%, 0 50%);
}

.stage[data-theme="pulse"] {
  --live-base: #1d1422;
  --live-surface: #372031;
  --live-ink: #fff5fa;
  --live-seam: #c97c9b73;
  --live-cut: polygon(.6cqw 0, 100% 0, 100% calc(100% - .65cqw), calc(100% - .65cqw) 100%, 0 100%, 0 .66cqw);
}

.stage[data-theme="stadium"] {
  --live-base: #10232c;
  --live-surface: #244149;
  --live-ink: #f1fbe9;
  --live-seam: #bbf6ed62;
  --live-cut: polygon(0 0, 100% 0, calc(100% - .79cqw) 100%, 0 100%);
}

.stage[data-theme="afterdark"] {
  --live-base: #1d1429;
  --live-surface: #442248;
  --live-ink: #fff6fb;
  --live-seam: #c7a6dd68;
  --live-cut: polygon(0 0, calc(100% - .59cqw) 0, 100% 39%, 100% 100%, .52cqw 100%, 0 62%);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) {
  --live-graphite: #171b20;
  --live-divider: #485159;
  --live-matte-base: color-mix(in srgb, var(--surface-primary, var(--brand))
    calc(var(--surface-intensity, .68) * 7%), var(--live-graphite));
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]):not([data-surface]) {
  --live-content-ink: #edf0f2;
}

.surface-swatch[data-surface-preview="plain"] {
  background: color-mix(in srgb, var(--surface-tone) calc(var(--surface-level) * 7%), #171b20);
}

.stage[data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"]:is([data-layer="fondo"], [data-layer="pie-fondo"]):not([data-asset]) > .layer-visual {
  background: var(--live-matte-base);
}

.stage[data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"]:is([data-layer="fondo"], [data-layer="pie-fondo"]):not([data-asset]) > .layer-visual::before,
.stage[data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"]:is([data-layer="fondo"], [data-layer="pie-fondo"]):not([data-asset]) > .layer-visual::after {
  content: none;
}

.stage[data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"][data-layer="fondo"]:not([data-asset]) > .layer-visual {
  box-shadow: inset 0 -1px var(--live-divider);
}

.stage[data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"][data-layer="pie-fondo"]:not([data-asset]) > .layer-visual {
  box-shadow: inset 0 1px var(--live-divider);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-layer="fondo"] .pack-light-trace {
  display: none;
}

.stage[data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="rule"][data-layer="linea"]:not([data-asset]) > .layer-visual::before {
  width: min(9%, 4cqw);
  height: max(1px, .075cqw);
  background: color-mix(in srgb, var(--surface-secondary, var(--brand-alt)) 48%, #899298);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="caption"][data-layer="pie"]:not([data-asset]) .layer-text {
  color: var(--live-content-ink, var(--live-ink));
  background: none;
  box-shadow: none;
  clip-path: none;
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) :is(.layer[data-kind="logo"], .layer[data-kind="headline"]) > .layer-visual {
  color: var(--live-content-ink, var(--live-ink));
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="headline"] > .layer-visual {
  --layer-font-size: 4.12cqw;
  text-shadow: none;
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])[data-theme="operations"] .layer[data-kind="headline"] > .layer-visual {
  letter-spacing: .035em;
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])[data-theme="pulse"] .layer[data-kind="headline"] > .layer-visual {
  letter-spacing: -.025em;
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"]:not([data-frame-style]) > .layer-visual {
  --live-frame-side: var(--camera-limit, 100cqw);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 max(1px, min(.12cqw, calc(var(--live-frame-side) * .035))) #647078;
  background: transparent;
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"]:not([data-frame-style]) > .layer-visual::before {
  inset: 0 0 auto auto;
  width: min(15%, 3.2cqw);
  height: max(.5px, min(.075cqw, calc(var(--live-frame-side) * .025)));
  border: 0;
  opacity: 1;
  clip-path: none;
  background: color-mix(in srgb, var(--live-accent) 50%, #9da8ae);
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"]:not([data-frame-style]) > .layer-visual::after { content: none; }

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"]:not([data-frame-style]) > .layer-visual > .layer-text {
  --live-frame-side: var(--camera-limit, 100cqw);
  position: relative;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  color: #eef0f1;
  background: #171b20;
  border: 1px solid #41494f;
  border-radius: 1px;
  box-shadow: none;
  text-shadow: none;
  font-family: var(--scene-copy);
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.12;
  white-space: nowrap;
  text-overflow: ellipsis;
  clip-path: none;
  padding: min(.56cqw, calc(var(--live-frame-side) * .05)) min(1.26cqw, calc(var(--live-frame-side) * .10))
    min(.56cqw, calc(var(--live-frame-side) * .05)) min(.7cqw, calc(var(--live-frame-side) * .08));
  font-size: min(calc(var(--layer-font-size) * var(--layer-scale, 1)), calc(var(--live-frame-side) * .21));
}

.stage:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"] > .layer-visual > .layer-text::before {
  display: none;
}

.stage[data-theme][data-layout="reaction"][data-motion] .layer[data-layer="fuente"][data-kind="callout"]:not([data-asset]) > .layer-visual {
  color: #edf0f2;
  background: var(--live-matte-base);
  border: 1px solid var(--live-divider);
  box-shadow: none;
  clip-path: none;
}

.stage[data-theme][data-layout="reaction"][data-motion] .layer[data-layer="fuente"][data-kind="callout"]:not([data-asset]) > .layer-visual::before,
.stage[data-theme][data-layout="reaction"][data-motion] .layer[data-layer="fuente"][data-kind="callout"]:not([data-asset]) > .layer-visual::after {
  content: none;
}

.stage[data-theme][data-layout="reaction"][data-motion] .layer[data-layer="fuente"][data-kind="callout"]:not([data-asset]) .callout-kicker {
  color: #b7c0c6;
}

.stage[data-layout="game"] .layer[data-layer="marca"][data-kind="logo"] > .layer-visual {
  --layer-font-size: 1.16cqw;
  width: max-content;
  min-width: min(100%, 10cqw);
  max-width: min(100%, 22cqw);
  padding: .22cqw .65cqw;
  gap: .57cqw;
  color: var(--live-ink);
  background:
    linear-gradient(152deg, transparent 77%, var(--live-seam) 77.4% 78%, transparent 78.4%),
    linear-gradient(102deg, var(--live-base), var(--live-surface) 94%);
  border: .07cqw solid var(--live-seam);
  border-inline-start: .24cqw solid var(--live-accent);
  border-radius: 0;
  box-shadow: inset 0 -.10cqw var(--live-edge);
  clip-path: var(--live-cut);
  filter: none;
}

.stage[data-layout="game"] .layer[data-layer="marca"] .scene-mark {
  max-width: min(16%, 1.35cqw);
  max-height: 78%;
  aspect-ratio: 1;
}

.stage[data-layout="game"] .layer[data-layer="marca"] img { max-width: 3cqw; }

.stage[data-layout="game"] .layer:is([data-layer="estado"][data-kind="tag"], [data-layer="pie"][data-kind="caption"]) .layer-text {
  padding: .33cqw .63cqw;
  border: 0;
  border-radius: 0;
  color: var(--live-ink);
  background: var(--live-base);
  box-shadow: inset 0 -1px var(--live-seam);
  clip-path: var(--live-cut);
}

.stage[data-layout="game"] .layer[data-layer="estado"][data-kind="tag"] .layer-text {
  font-size: calc(.78cqw * var(--layer-scale, 1));
  letter-spacing: .06em;
}

.stage[data-layout="game"] .layer[data-layer="estado"][data-kind="tag"] .layer-text::before {
  width: .27cqw;
  height: .27cqw;
  background: var(--live-accent);
  border-radius: 50%;
  box-shadow: none;
  clip-path: none;
}

.stage[data-layout="game"] .layer[data-layer="pie"][data-kind="caption"] .layer-text {
  font-size: calc(.87cqw * var(--layer-scale, 1));
  border-inline-start: .12cqw solid var(--live-edge);
}

/* ---- on-air.css ---- */
.stage {
  --air-floor: #16151d;
  --air-panel: #2a2433;
  --air-ink: #fff5f1;
  --air-note: #dbcbd7;
  --air-accent: var(--brand);
  --air-second: var(--brand-alt);
  --air-rule: color-mix(in srgb, var(--air-ink) 25%, var(--air-floor));
  --air-tag-background: color-mix(in srgb, var(--air-accent) 62%, #fff);
  --air-tag-ink: #181319;
}

.stage[data-theme="neon"] {
  --air-floor: #121428;
  --air-panel: #20264d;
  --air-ink: #f0efff;
  --air-note: #cecaf0;
}

.stage[data-theme="editorial"] {
  --air-floor: #f2eade;
  --air-panel: #e2d2bd;
  --air-ink: #241d22;
  --air-note: #524148;
  --air-accent: var(--brand-alt);
  --air-second: var(--brand);
  --air-tag-background: color-mix(in srgb, var(--brand-alt) 40%, #242222);
  --air-tag-ink: #fff7ed;
}

.stage[data-theme="operations"] {
  --air-floor: #171a13;
  --air-panel: #292f22;
  --air-ink: #fbfbe8;
  --air-note: #d3d9bb;
}

.stage[data-theme="arcana"] {
  --air-floor: #0c211f;
  --air-panel: #193733;
  --air-ink: #fff4d9;
  --air-note: #c4d9cf;
  --air-accent: var(--brand-alt);
  --air-second: var(--brand);
}

.stage[data-theme="pulse"] {
  --air-floor: #191420;
  --air-panel: #311d2b;
  --air-ink: #fff1f7;
  --air-note: #f3c9df;
}

.stage[data-theme="stadium"] {
  --air-floor: #0e2229;
  --air-panel: #1b3940;
  --air-ink: #f1fff0;
  --air-note: #c6e4d7;
}

.stage[data-theme="afterdark"] {
  --air-floor: #1c1429;
  --air-panel: #352441;
  --air-ink: #fff3f9;
  --air-note: #e8c9ec;
}

/* Full screens use the same presentation furniture as a running programme. */
.stage[data-screen-art][data-theme]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"]) {
  --broadcast-module: var(--air-panel);
  --broadcast-rail: var(--air-rule);
  --screen-paper: var(--air-floor);
  --screen-panel: var(--air-panel);
  --screen-ink: var(--air-ink);
  --screen-subtle: var(--air-note);
  --screen-hot: var(--air-accent);
  --screen-cool: var(--air-second);
  --screen-line: var(--air-rule);
  --air-header-secondary: var(--air-second);
  --air-station-band: var(--air-panel);
  --air-rail-width: .18cqw;
  --air-rail-length: 5.7%;
  --air-rail-offset: 5.55%;
  --air-rail-hairline: .065cqw;
}

.stage[data-screen-art="quiet"][data-theme]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"]) {
  --air-station-band: color-mix(in srgb, var(--air-panel) 42%, var(--air-floor));
  --air-rule: color-mix(in srgb, var(--air-ink) 13%, var(--air-floor));
  --air-header-secondary: transparent;
  --air-rail-width: .1cqw;
  --air-rail-length: 3.2%;
  --air-rail-offset: 5.16%;
}

.stage[data-screen-art="bold"][data-theme]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"]) {
  --air-station-band: color-mix(in srgb, var(--air-panel) 83%, var(--air-accent));
  --air-rule: color-mix(in srgb, var(--air-ink) 41%, var(--air-floor));
  --air-rail-width: .3cqw;
  --air-rail-length: 7.1%;
  --air-rail-offset: 5.38%;
  --air-rail-hairline: .105cqw;
}

.stage[data-screen-art][data-theme]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-layer="fondo"] > .layer-visual {
  --air-header: 18%;
  --air-footer: 88.4%;
  --air-deck: linear-gradient(90deg, var(--air-floor), color-mix(in srgb, var(--air-panel) 54%, var(--air-floor)));
  background:
    linear-gradient(var(--air-accent) 0 0) var(--air-rail-offset) var(--air-header) / var(--air-rail-length) var(--air-rail-width) no-repeat,
    linear-gradient(var(--air-header-secondary) 0 0) 13.15% var(--air-header) / 1.65% var(--air-rail-width) no-repeat,
    linear-gradient(var(--air-rule) 0 0) center var(--air-header) / 90% var(--air-rail-hairline) no-repeat,
    linear-gradient(var(--air-rule) 0 0) center var(--air-footer) / 90% var(--air-rail-hairline) no-repeat,
    linear-gradient(180deg,
      var(--air-station-band) 0 var(--air-header),
      transparent var(--air-header) var(--air-footer),
      color-mix(in srgb, var(--air-panel) 70%, var(--air-floor)) var(--air-footer)),
    var(--air-deck);
  box-shadow: none;
}

.stage[data-screen-art][data-theme="editorial"][data-layout] .layer[data-layer="fondo"] > .layer-visual {
  --air-deck: linear-gradient(90deg, #f8f2e7, var(--air-floor) 57%, #ece0cd);
}

.stage[data-screen-art][data-theme="arcana"][data-layout] .layer[data-layer="fondo"] > .layer-visual {
  --air-deck: linear-gradient(90deg, #102522, #0d1b19 57%, #162a25);
}

.stage[data-screen-art][data-theme="operations"][data-layout] .layer[data-layer="fondo"] > .layer-visual {
  --air-deck: linear-gradient(90deg, var(--air-floor) 60%, #202419 60%);
}

.stage[data-screen-art][data-theme="pulse"][data-layout] .layer[data-layer="fondo"] > .layer-visual {
  --air-deck: linear-gradient(108deg, var(--air-floor) 73%, #241827 73%);
}

.stage[data-screen-art][data-theme="stadium"][data-layout] .layer[data-layer="fondo"] > .layer-visual {
  --air-deck: linear-gradient(100deg, #132830, var(--air-floor) 65%, #1a333c);
}

.stage[data-screen-art][data-theme]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-layer="fondo"] :is(.screen-graphics, .pack-light-trace) {
  display: none;
}

.stage[data-screen-art][data-theme]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-kind="callout"] > .layer-visual {
  border-left: .14cqw solid var(--air-accent);
  border-top: .06cqw solid var(--air-rule);
  box-shadow: none;
  color: var(--air-ink);
  background: color-mix(in srgb, var(--air-panel) 77%, var(--air-floor));
}

.stage[data-screen-art][data-theme][data-layout] .layer[data-kind="callout"] > .layer-visual::before,
.stage[data-screen-art][data-theme][data-layout] .layer[data-kind="callout"] > .layer-visual::after {
  display: none;
}

.stage[data-screen-art][data-theme][data-layout] .layer[data-kind="countdown"] {
  --air-timer-rule: color-mix(in srgb, var(--air-accent) 64%, var(--air-rule));
}

.stage[data-screen-art][data-theme][data-layout] .layer[data-kind="countdown"] .countdown-digit {
  border-top-color: var(--air-rule);
  box-shadow: inset 0 -.16cqw var(--air-timer-rule);
  background: linear-gradient(180deg, var(--air-panel) 0 50%, var(--air-floor) 100%);
  color: var(--air-ink);
}

.stage[data-screen-art][data-theme][data-layout] .layer[data-kind="countdown"] .countdown-separator {
  color: var(--air-accent);
}

.stage .countdown-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(100%, 20.25cqw);
  height: min(.24cqw, 9%);
  overflow: hidden;
  background: var(--air-rule);
  color: var(--air-accent);
}

.stage .layer[data-align="center"] .countdown-progress { left: 50%; transform: translateX(-50%); }
.stage .layer[data-align="right"] .countdown-progress { inset-inline: auto 0; }

.stage .countdown-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--clock-progress, 1));
  transform-origin: left center;
  background-color: currentColor;
}

.stage [data-clock-paused] .countdown-progress { color: var(--air-second); }

.stage .on-air-graphic {
  --air-strip-style: var(--scene-copy);
  --air-strip-size: min(1.34cqw, var(--air-content-height, 1.34cqw));
  position: absolute;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  opacity: var(--layer-opacity, 1);
  pointer-events: none;
  z-index: 3;
}

.stage .on-air-strip {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: .07cqw solid var(--air-rule);
  border-bottom: .14cqw solid var(--air-accent);
  background: var(--air-floor);
  color: var(--air-ink);
  font: 680 var(--air-strip-size)/1.1 var(--air-strip-style, Arial, sans-serif);
}

.stage .on-air-kicker,
.stage .on-air-text,
.stage .on-air-detail {
  display: block;
  align-content: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage .on-air-kicker {
  flex: 0 1 auto;
  max-width: 29%;
  padding-inline: .95cqw;
  color: var(--air-tag-ink);
  background: var(--air-tag-background);
  text-transform: uppercase;
  font-size: .79em;
  font-weight: 850;
  letter-spacing: .075em;
}

.stage .on-air-text {
  flex: 1 1 auto;
  padding-inline: 1.04cqw;
}

.stage .on-air-detail {
  flex: 0 1 auto;
  max-width: 38%;
  padding-inline: .95cqw;
  border-inline-start: .065cqw solid var(--air-rule);
  color: var(--air-note);
  background: var(--air-panel);
  font-size: .86em;
}

.stage .on-air-graphic[data-kind="cue"] .on-air-strip {
  border-bottom-color: var(--air-second);
  background: var(--air-panel);
}

.stage .on-air-graphic[data-kind="cue"] .on-air-text { font-weight: 800; }

.stage :is(.on-air-kicker, .on-air-detail):empty { display: none; }

.stage :is(.on-air-graphic, .on-air-detail, .layer)[hidden] { display: none !important; }

.stage[data-layout="game"] .on-air-graphic {
  --air-strip-size: .88cqw;
}

.stage[data-layout="game"] .on-air-kicker,
.stage[data-layout="game"] .on-air-text,
.stage[data-layout="game"] .on-air-detail {
  padding-inline: .32cqw;
}

.stage[data-layout="game"] .on-air-kicker { max-width: 35%; letter-spacing: .025em; }
.stage[data-layout="game"] .on-air-detail { max-width: 30%; }

.stage .layer[data-kind="score"] .score-live-value {
  min-width: 0;
  overflow: hidden;
  color: var(--air-ink);
  font-family: var(--scene-mono);
  font-size: min(calc(var(--layer-font-size) * var(--layer-scale, 1)), calc(var(--layer-width) / 4.7));
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage[data-layout="results"] .layer[data-kind="score"]:has(.score-live-value) > .layer-visual {
  padding-inline: min(.7cqw, calc(var(--layer-width) * .035));
  border: .07cqw solid var(--air-rule);
  border-top: .18cqw solid var(--air-accent);
  border-radius: 0;
  background: var(--air-panel);
  box-shadow: none;
}

.stage[data-motion="on"] .on-air-strip {
  animation: on-air-enter 240ms cubic-bezier(.15,.72,.28,1) both;
}

.stage[data-screen-art][data-screen-motion="on"] .layer[data-layer="titular"][data-kind="headline"] .layer-text {
  animation: on-air-headline calc(var(--screen-period, 9s) * .0625) cubic-bezier(.15,.72,.28,1) both;
}

@keyframes on-air-headline {
  from { opacity: 0; transform: translateY(.14em); }
  to { opacity: 1; transform: translateY(0); }
}

.stage[data-motion="on"] .on-air-graphic[data-revision="0"] .on-air-strip { animation-name: on-air-enter-even; }

@keyframes on-air-enter {
  from { opacity: 0; transform: translateY(28%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes on-air-enter-even {
  from { opacity: 0; transform: translateY(28%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-screen-art][data-screen-motion="on"] .layer[data-layer="titular"][data-kind="headline"] .layer-text,
  .stage[data-motion="on"] .on-air-strip,
  .stage[data-motion="on"] .on-air-graphic[data-revision] .on-air-strip {
    animation: none;
  }
}

/* ---- surfaces.css ---- */
/* Material recipes shared by the programme and its preview. */
:is(.stage[data-surface], .surface-swatch[data-surface-preview]) {
  --surface-level: clamp(0, var(--surface-intensity, .55), 1);
  --surface-tone: var(--surface-primary, var(--brand, #ff695b));
  --surface-edge-tone: var(--surface-secondary, var(--brand-alt, #a99cf8));
  --surface-luminous: #fff;
  --surface-shadow: #030308;
  --surface-thread: color-mix(in srgb, var(--surface-luminous) calc(var(--surface-level) * 9%), transparent);
  --surface-thread-light: color-mix(in srgb, var(--surface-luminous) calc(var(--surface-level) * 15%), transparent);
  --surface-thread-dark: color-mix(in srgb, var(--surface-shadow) calc(var(--surface-level) * 28%), transparent);
  --surface-thread-tint: color-mix(in srgb, var(--surface-edge-tone) calc(var(--surface-level) * 14%), transparent);
  --surface-grain: none;
  --surface-glancing-light: transparent;
  --surface-key-position: 79% 15%;
  --surface-key-size: 85% 105%;
  --surface-wash-size: 62% 65%;
  --surface-fill-strength: 26%;
}

.stage[data-surface][data-theme="editorial"] {
  --surface-luminous: #fffcf5;
  --surface-shadow: #594037;
  --surface-thread-light: color-mix(in srgb, var(--surface-luminous) calc(var(--surface-level) * 45%), transparent);
  --surface-thread-dark: color-mix(in srgb, var(--surface-shadow) calc(var(--surface-level) * 15%), transparent);
  --surface-thread: color-mix(in srgb, var(--surface-shadow) calc(var(--surface-level) * 6%), transparent);
  --surface-fill-strength: 19%;
}

:is(.stage[data-surface="matte"], .surface-swatch[data-surface-preview="matte"]) {
  /* Mineral flecks in staggered cells avoid a visible checker. */
  --surface-grain:
    radial-gradient(ellipse at 42% 34%, var(--surface-thread) 0 9%, transparent 14%) 0 0 / max(4px, .39cqw) max(4px, .45cqw),
    radial-gradient(ellipse at 16% 72%, var(--surface-thread-dark) 0 8%, transparent 15%) 0 1px / max(5px, .60cqw) max(4px, .35cqw),
    radial-gradient(ellipse at 69% 63%, var(--surface-thread-tint) 0 5%, transparent 16%) 1px 1px / max(4px, .50cqw) max(5px, .55cqw);
}

:is(.stage[data-surface="weave"], .surface-swatch[data-surface-preview="weave"]) {
  --surface-key-position: 68% 7%;
  --surface-grain:
    repeating-linear-gradient(90deg, transparent 0 max(2px, .18cqw), var(--surface-thread-dark) max(2px, .18cqw) max(3px, .24cqw), transparent max(3px, .24cqw) max(4px, .36cqw)),
    radial-gradient(ellipse at center, var(--surface-thread-light) 0 15%, var(--surface-thread) 29%, transparent 57%) 0 0 / max(4px, .36cqw) max(5px, .46cqw),
    radial-gradient(ellipse at center, var(--surface-thread-tint) 0 23%, transparent 56%) max(2px, .18cqw) max(2px, .23cqw) / max(4px, .36cqw) max(5px, .46cqw),
    repeating-linear-gradient(0deg, transparent 0 max(2px, .22cqw), var(--surface-thread-dark) max(2px, .22cqw) max(3px, .31cqw), transparent max(3px, .31cqw) max(5px, .46cqw));
}

:is(.stage[data-surface="brushed"], .surface-swatch[data-surface-preview="brushed"]) {
  --surface-key-position: 77% 17%;
  --surface-key-size: 110% 108%;
  --surface-thread: color-mix(in srgb, var(--surface-luminous) calc(var(--surface-level) * 4%), transparent);
  --surface-thread-dark: color-mix(in srgb, var(--surface-shadow) calc(var(--surface-level) * 16%), transparent);
  --surface-thread-tint: color-mix(in srgb, var(--surface-edge-tone) calc(var(--surface-level) * 6%), transparent);
  --surface-glancing-light: color-mix(in srgb, var(--surface-edge-tone) calc(var(--surface-level) * 11%), transparent);
  --surface-grain:
    repeating-linear-gradient(179.96deg, transparent 0 max(2px, .11cqw), var(--surface-thread-dark) max(2px, .11cqw) max(3px, .17cqw), transparent max(3px, .17cqw) max(4px, .26cqw)),
    repeating-linear-gradient(180deg, transparent 0 max(2px, .18cqw), var(--surface-thread) max(2px, .18cqw) max(3px, .23cqw), transparent max(3px, .23cqw) max(5px, .42cqw)),
    repeating-linear-gradient(179.80deg, transparent 0 .50cqw, var(--surface-thread-tint) .54cqw .59cqw, transparent .63cqw max(6px, .77cqw)),
    linear-gradient(119deg, transparent 12%, var(--surface-glancing-light) 42%, transparent 63%);
}

:is(.stage[data-surface="grid"], .surface-swatch[data-surface-preview="grid"]) {
  --surface-key-size: 75% 90%;
  --surface-grain:
    linear-gradient(90deg, var(--surface-thread-tint) 1px, transparent 1px) left top / max(28px, 3.2cqw) 100%,
    linear-gradient(0deg, var(--surface-thread-tint) 1px, transparent 1px) left bottom / 100% max(28px, 3.2cqw),
    linear-gradient(90deg, var(--surface-thread-dark) 1px, transparent 1px) left top / max(4px, .40cqw) 100%,
    linear-gradient(0deg, var(--surface-thread) 1px, transparent 1px) left bottom / 100% max(4px, .40cqw);
}

:is(.stage[data-surface="paper"], .surface-swatch[data-surface-preview="paper"]) {
  --surface-key-position: 49% 3%;
  --surface-key-size: 110% 120%;
  --surface-thread: color-mix(in srgb, var(--surface-edge-tone) calc(var(--surface-level) * 11%), transparent);
  --surface-grain:
    radial-gradient(ellipse 13% 8% at 25% 35%, var(--surface-thread-dark) 18%, transparent 98%) 0 0 / max(5px, .52cqw) max(5px, .59cqw),
    radial-gradient(ellipse 7% 18% at 63% 22%, var(--surface-thread-light) 9%, transparent 93%) 1px 2px / max(5px, .61cqw) max(7px, .49cqw),
    radial-gradient(ellipse 22% 8% at 78% 72%, var(--surface-thread) 15%, transparent 96%) 2px 0 / max(6px, .66cqw) max(5px, .71cqw),
    radial-gradient(ellipse 18% 5% at 19% 46%, var(--surface-thread-dark) 5%, transparent 94%) 0 2px / max(9px, .81cqw) max(7px, .94cqw);
}

:is(.stage[data-surface="satin"], .surface-swatch[data-surface-preview="satin"]) {
  --surface-key-position: 65% 21%;
  --surface-key-size: 96% 120%;
  --surface-wash-size: 80% 75%;
  --surface-glancing-light: color-mix(in srgb, var(--surface-luminous) calc(var(--surface-level) * 10%), transparent);
  --surface-grain:
    repeating-linear-gradient(115deg, transparent 0 max(2px, .17cqw), var(--surface-thread) max(2px, .17cqw) max(3px, .22cqw), transparent max(3px, .22cqw) max(5px, .35cqw)),
    linear-gradient(113deg, transparent 9%, var(--surface-glancing-light) 20%,
      transparent 31% 55%, var(--surface-glancing-light) 79%, transparent 99%);
}

.stage[data-surface][data-layout][data-theme]
  .layer[data-kind="plate"]:is([data-layer="fondo"], [data-layer="pie-fondo"]) > .layer-visual {
  --surface-color: color-mix(in srgb, var(--surface-tone) calc(var(--surface-level) * var(--surface-fill-strength)), var(--surface-base));
  --surface-panel: color-mix(in srgb, var(--surface-edge-tone) calc(var(--surface-level) * 19%), var(--surface-panel-base));
  --surface-key: color-mix(in srgb, var(--surface-edge-tone) calc(var(--surface-level) * 19%), transparent);
  --surface-wash: color-mix(in srgb, var(--surface-tone) calc(var(--surface-level) * 17%), transparent);
  --surface-set-light:
    radial-gradient(ellipse var(--surface-key-size) at var(--surface-key-position), var(--surface-key), transparent 67%),
    radial-gradient(ellipse var(--surface-wash-size) at 11% 98%, var(--surface-wash), transparent 80%);
}

.stage[data-surface][data-screen-art][data-theme]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-kind="plate"][data-layer="fondo"] > .layer-visual {
  --surface-base: var(--air-floor);
  --surface-panel-base: var(--air-station-band, var(--air-panel));
  --surface-rail-hot: var(--air-accent);
  background:
    linear-gradient(var(--surface-rail-hot) 0 0) var(--air-rail-offset) var(--air-header) / var(--air-rail-length) var(--air-rail-width) no-repeat,
    linear-gradient(var(--air-header-secondary) 0 0) 13.15% var(--air-header) / 1.65% var(--air-rail-width) no-repeat,
    linear-gradient(var(--air-rule) 0 0) center var(--air-header) / 90% var(--air-rail-hairline) no-repeat,
    linear-gradient(var(--air-rule) 0 0) center var(--air-footer) / 90% var(--air-rail-hairline) no-repeat,
    var(--surface-grain),
    linear-gradient(180deg, var(--surface-panel) 0 var(--air-header),
      transparent var(--air-header) var(--air-footer), var(--surface-panel) var(--air-footer)),
    var(--surface-set-light),
    linear-gradient(118deg, var(--surface-color), var(--surface-base) 78%);
}

.stage[data-surface][data-theme][data-layout="results"]
  .layer[data-kind="plate"][data-layer="fondo"] > .layer-visual {
  --surface-base: var(--air-floor);
  --surface-panel-base: var(--air-panel);
  background:
    var(--surface-grain),
    var(--surface-set-light),
    linear-gradient(121deg, var(--surface-color), var(--surface-base) 61%, var(--surface-panel));
}

.stage[data-surface][data-theme][data-layout="results"]
  .layer[data-kind="plate"][data-layer="fondo"] > .layer-visual::before {
  display: none;
}

.stage[data-surface][data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"]:is([data-layer="fondo"], [data-layer="pie-fondo"]) > .layer-visual {
  --surface-base: var(--live-base, var(--air-floor));
  --surface-panel-base: var(--live-surface, var(--air-panel));
  background:
    var(--surface-grain),
    var(--surface-set-light),
    linear-gradient(105deg, var(--surface-panel) 0%, var(--surface-color) 45%, var(--surface-base) 100%);
}

#surface-controls {
  min-width: 0;
  margin-block: 12px;
  border: 1px solid var(--line, #494055);
  border-radius: 8px;
  background: #19171f;
}

#surface-controls > summary {
  min-height: 42px;
  padding: 11px 9px;
  color: var(--text, #f8f2f7);
  font-size: .86rem;
  font-weight: 720;
  cursor: pointer;
}

#surface-controls > summary:hover { background: #282332; }
#surface-controls > summary:focus-visible { outline: 2px solid var(--accent, #a99cf8); outline-offset: 3px; }
#surface-controls[open] > summary { border-bottom: 1px solid var(--line, #494055); }
#surface-controls .surface-panel { display: grid; min-width: 0; gap: 8px; padding: 8px; }
#surface-controls .surface-panel .field { margin-top: 0; }
#surface-controls .surface-range > span { display: flex; justify-content: space-between; gap: 6px; }
#surface-controls .surface-range output { font-variant-numeric: tabular-nums; color: var(--text, #f8f2f7); }
#surface-controls .surface-range input { min-height: 28px; padding: 0; margin: 0; accent-color: var(--accent, #a99cf8); }

#surface-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.surface-option {
  display: grid;
  grid-template-columns: minmax(0, 1.65rem) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #494055;
  border-radius: 5px;
  background: #25212c;
  color: var(--text, #f8f2f7);
  text-align: left;
  container-type: inline-size;
}

.surface-option:first-child { grid-column: 1 / -1; }
.surface-option:hover { border-color: #9281aa; background: #2e2738; }
.surface-option[aria-pressed="true"] { border-color: var(--accent, #a99cf8); background: #392f47; }

.surface-name {
  min-width: 0;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.surface-swatch {
  display: block;
  width: 100%;
  height: 24px;
  border: 1px solid #fff3;
  border-radius: 3px;
  background:
    var(--surface-grain, none),
    linear-gradient(138deg,
      color-mix(in srgb, var(--surface-tone) 55%, #25212c),
      color-mix(in srgb, var(--surface-edge-tone) 41%, #211e28));
}

/* ---- flip-clock.css ---- */
/* The numeral sits behind a pair of flaps hinged at the centre of each cell. */
.stage[data-theme][data-layout][data-motion] .layer[data-kind="countdown"] .countdown-digit {
  --flip-tint: var(--surface-primary, var(--air-accent));
  --flip-upper: color-mix(in srgb, var(--air-panel) 92%, var(--flip-tint));
  --flip-lower: color-mix(in srgb, var(--air-floor) 89%, var(--air-panel));
  --flip-top-paint: linear-gradient(180deg, #fff1, transparent 26%, #0001), linear-gradient(var(--flip-upper), var(--flip-upper));
  --flip-bottom-paint: linear-gradient(180deg, #0001, transparent 45%, #0003), linear-gradient(var(--flip-lower), var(--flip-lower));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  perspective: 9cqw;
  border-color: color-mix(in srgb, var(--air-ink) 28%, var(--air-floor));
  border-radius: .28cqw;
  background:
    var(--flip-top-paint) center top / 100% 50% no-repeat,
    var(--flip-bottom-paint) center bottom / 100% 50% no-repeat;
  box-shadow: 0 .30cqw .47cqw #06050c69, inset 0 -.16cqw #0004, inset 0 .06cqw #fff4;
  color: var(--air-ink);
}

.stage .countdown-digit::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: calc(50% - .037em) 0 auto;
  height: .074em;
  background:
    linear-gradient(#0000 0 25%, #120e18bf 25% 52%, #fff6 52% 59%, #0000 59%),
    linear-gradient(90deg, #160f1bcc 0 8%, transparent 8% 92%, #160f1bcc 92% 100%);
  pointer-events: none;
}

.stage[data-screen-art][data-theme][data-layout][data-motion] .layer[data-kind="countdown"] {
  --flip-span: min(25cqw, calc(var(--layer-width) * .93));
}
.stage[data-screen-art][data-theme][data-layout][data-motion] .layer[data-kind="countdown"] .countdown-digit {
  width: min(5.48cqw, calc(var(--layer-width) * .19));
  height: min(7.3cqw, 94%);
  font-size: min(4.55cqw, calc(var(--layer-width) * .16), calc(var(--layer-height) * .66));
}
.stage[data-screen-art][data-theme][data-layout][data-motion] .countdown-progress { width: var(--flip-span); }

.stage .countdown-flap {
  display: none;
  position: absolute;
  inset-inline: 0;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}

.stage .countdown-flap::before {
  content: attr(data-digit);
  position: absolute;
  inset-inline: 0;
  display: grid;
  place-items: center;
  height: 200%;
}

.stage .countdown-flap-out {
  z-index: 3;
  top: 0;
  transform-origin: center bottom;
  background: var(--flip-top-paint);
}
.stage .countdown-flap-out::before { top: 0; }
.stage .countdown-flap-hold, .stage .countdown-flap-in {
  bottom: 0;
  transform-origin: center top;
  background: var(--flip-bottom-paint);
}
.stage .countdown-flap-hold::before, .stage .countdown-flap-in::before { bottom: 0; }
.stage .countdown-flap-hold { z-index: 1; }
.stage .countdown-flap-in { z-index: 2; }

.stage[data-motion="on"] .countdown-digit[data-flip] > .countdown-flap {
  display: block;
  animation: var(--flip-animation) 360ms linear both;
}
.stage .countdown-flap-out { --flip-animation: flip-upper; }
.stage .countdown-flap-hold { --flip-animation: flip-hold; }
.stage .countdown-flap-in { --flip-animation: flip-lower; }
.stage [data-flip="0"] > .countdown-flap-out { --flip-animation: flip-upper-even; }
.stage [data-flip="0"] > .countdown-flap-hold { --flip-animation: flip-hold-even; }
.stage [data-flip="0"] > .countdown-flap-in { --flip-animation: flip-lower-even; }

@keyframes flip-upper {
  0% { transform: rotateX(0); animation-timing-function: ease-in; }
  46%, 100% { transform: rotateX(-90deg); visibility: hidden; }
}
@keyframes flip-upper-even {
  0% { transform: rotateX(0); animation-timing-function: ease-in; }
  46%, 100% { transform: rotateX(-90deg); visibility: hidden; }
}
@keyframes flip-hold {
  0%, 45.9% { visibility: visible; }
  46%, 100% { visibility: hidden; }
}
@keyframes flip-hold-even {
  0%, 45.9% { visibility: visible; }
  46%, 100% { visibility: hidden; }
}
@keyframes flip-lower {
  0%, 46% { transform: rotateX(90deg); animation-timing-function: cubic-bezier(.12, .78, .35, 1); }
  93% { transform: rotateX(-1deg); }
  100% { transform: rotateX(0); visibility: hidden; }
}
@keyframes flip-lower-even {
  0%, 46% { transform: rotateX(90deg); animation-timing-function: cubic-bezier(.12, .78, .35, 1); }
  93% { transform: rotateX(-1deg); }
  100% { transform: rotateX(0); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-motion="on"] .countdown-digit[data-flip] > .countdown-flap { display: none; }
}

/* ---- theme-plato.css ---- */
/* Plató: talk-show look. Near-black set, gold foil, slanted plates and gold corner brackets on cameras.
   Fonts: Chakra Petch and Rajdhani (SIL Open Font License 1.1). */
@font-face {
  font-family: 'Plato Display';
  src: url('/media/plato-display-700i.woff2') format('woff2');
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Plato Display';
  src: url('/media/plato-display-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plato Copy';
  src: url('/media/plato-copy-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plato Copy';
  src: url('/media/plato-copy-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

.stage[data-theme="plato"] {
  --plato-gold: var(--brand);
  --plato-light: color-mix(in srgb, var(--brand) 55%, #fff6dc);
  --plato-deep: color-mix(in srgb, var(--brand) 55%, #2a1a05);
  --plato-foil: linear-gradient(100deg, var(--plato-deep) 0%, var(--plato-gold) 34%, var(--plato-light) 54%, var(--plato-gold) 74%, var(--plato-deep) 100%);
  --plato-ink: #f3f0e8;
  --plato-night: #0b0b0d;
  --plato-card: #141417;
  --plato-on-foil: #150e03;
  --plato-slant: polygon(.7cqw 0, 100% 0, calc(100% - .7cqw) 100%, 0 100%);
  --scene-ink: var(--plato-ink);
  --scene-dark: var(--plato-night);
  --scene-paper: #17161a;
  --layer-badge-bg: #101013f2;
  --layer-badge-ink: var(--plato-ink);
  --frame-border: var(--plato-gold);
  --frame-base: #ffffff26;
  --frame-radius: 0;
  --scene-focus: var(--plato-light);
  /* on-air.css */
  --air-floor: #0d0d10;
  --air-panel: #1b1a1f;
  --air-ink: var(--plato-ink);
  --air-note: #b9b5aa;
  --air-tag-background: var(--plato-gold);
  --air-tag-ink: var(--plato-on-foil);
  /* broadcast-live.css */
  --live-base: #0e0e11;
  --live-surface: #1d1c21;
  --live-ink: var(--plato-ink);
  --live-seam: color-mix(in srgb, var(--plato-gold) 45%, transparent);
  --live-accent: var(--plato-gold);
  --live-edge: var(--plato-light);
  --live-cut: var(--plato-slant);
  /* card-motion.css */
  --card-face: #151418;
  --card-foil: var(--plato-light);
  --card-foil-edge: var(--plato-gold);
  --card-foil-ink: var(--plato-on-foil);
  --card-grain: repeating-linear-gradient(-72deg, #ffffff08 0 .1cqw, transparent .1cqw 1.8cqw);
  --card-inlay: linear-gradient(108deg, transparent 0 62%, color-mix(in srgb, var(--plato-gold) 30%, transparent) 62% 62.4%, transparent 62.4%);
}

.stage[data-theme="plato"]:not([data-typeface="mono"]):not([data-typeface="condensed"]) {
  --scene-display: 'Plato Display', 'Arial Narrow', sans-serif;
  --scene-copy: 'Plato Copy', 'Segoe UI', sans-serif;
  --scene-mono: 'Plato Display', Consolas, monospace;
}

.stage:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])[data-theme="plato"] {
  --on-air-metal: #121215;
  --on-air-shadow: #050506;
  --on-air-ink: var(--plato-ink);
  --on-air-highlight: var(--plato-light);
  --on-air-light: var(--plato-gold);
  --on-air-edge: color-mix(in srgb, var(--plato-gold) 70%, #2c2410);
  --on-air-terminal: .4cqw;
  --on-air-radius: 0;
}

.stage:is([data-layout="opening"], [data-layout="break"], [data-layout="end"], [data-layout="results"])[data-theme="plato"] {
  --show-floor: #09090b;
  --show-veil: linear-gradient(90deg, #08080a 0%, #0a0a0cf2 30%, #0d0c0fcc 52%, #1a140a55 78%, #1a140a10 100%);
  --show-stage-tint: color-mix(in srgb, var(--plato-gold) 40%, #0b0906);
  --show-edge: color-mix(in srgb, var(--plato-gold) 55%, transparent);
  --show-highlight: var(--plato-light);
}

.stage[data-screen-art][data-theme="plato"] {
  --screen-paper: #0a0a0c;
  --screen-panel: #1d1a14;
  --screen-ink: var(--plato-ink);
  --screen-subtle: #c6bfae;
  --screen-line: color-mix(in srgb, var(--plato-gold) 40%, #0a0a0c);
  --screen-card: #141317;
  --screen-badge: #121215;
  --screen-hot: var(--plato-gold);
  --screen-cool: var(--plato-light);
  --screen-plate:
    radial-gradient(ellipse 60% 70% at 6% 0%, color-mix(in srgb, var(--plato-gold) 20%, transparent), transparent 62%),
    radial-gradient(ellipse 50% 70% at 100% 100%, color-mix(in srgb, var(--plato-gold) 13%, transparent), transparent 60%),
    repeating-linear-gradient(-72deg, #ffffff07 0 .11cqw, transparent .11cqw 1.8cqw),
    linear-gradient(180deg, #121215 0%, #0a0a0c 55%, #060607 100%);
}

/* Set background: warm glow in two corners, fine diagonal hatching, a gold slash. */
.stage[data-theme="plato"] .layer[data-kind="plate"] .layer-visual {
  background:
    radial-gradient(ellipse 60% 75% at 4% 0%, color-mix(in srgb, var(--plato-gold) 19%, transparent), transparent 62%),
    radial-gradient(ellipse 50% 70% at 100% 100%, color-mix(in srgb, var(--plato-gold) 12%, transparent), transparent 60%),
    linear-gradient(180deg, #121215 0%, #0a0a0c 55%, #060607 100%);
}
.stage[data-theme="plato"] .layer[data-kind="plate"] .layer-visual::before {
  background:
    linear-gradient(90deg, transparent calc(78% - .1cqw), color-mix(in srgb, var(--plato-gold) 55%, transparent) calc(78% - .1cqw) 78%, transparent 78%),
    repeating-linear-gradient(-72deg, #ffffff08 0 .11cqw, transparent .11cqw 1.8cqw);
  mask-image: none;
  transform: skewX(-18deg);
  transform-origin: bottom;
}
.stage[data-theme="plato"] .layer[data-kind="plate"] .layer-visual::after {
  height: .26cqw;
  background: linear-gradient(90deg, var(--plato-gold) 0 14%, transparent 14% 14.6%, color-mix(in srgb, var(--plato-gold) 35%, transparent) 14.6% 60%, transparent);
}

/* Motif: thin gold rings with a cut, turning slowly. */
.stage[data-theme="plato"] .layer[data-kind="motif"] .layer-visual::before {
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, transparent 0 8%, color-mix(in srgb, var(--plato-gold) 60%, transparent) 8% 70%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 0 66%, #000 66.4% 68%, transparent 68.4% 79%, #000 79.3% 80%, transparent 80.4%);
  opacity: .55;
  transform: none;
}
.stage[data-theme="plato"] .layer[data-kind="motif"] .layer-visual::after {
  border-radius: 0;
  box-shadow: none;
  background: var(--plato-foil);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  width: 9%;
  left: 45%;
  top: 45%;
}
.stage[data-theme="plato"][data-motion="on"] .layer[data-kind="motif"] .layer-visual::before {
  animation: plato-turn 60s linear infinite;
}
@keyframes plato-turn { to { rotate: 360deg; } }

.stage[data-theme="plato"] .layer[data-kind="rule"] .layer-visual::before {
  height: .14cqw;
  background: linear-gradient(90deg, var(--plato-gold) 0 10%, transparent 10% 10.8%, color-mix(in srgb, var(--plato-gold) 45%, transparent) 10.8% 70%, transparent);
}

/* Headlines: slanted, uppercase, with a gold lift on the last line. */
.stage[data-theme="plato"]:not([data-typeface="mono"]):not([data-typeface="condensed"]) .layer[data-kind="headline"] .layer-visual {
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 .2cqw 1.2cqw #000a;
}
.stage[data-theme="plato"] .layer[data-kind="eyebrow"] .layer-text {
  padding: .18cqw .9cqw .1cqw;
  background: var(--plato-foil);
  color: var(--plato-on-foil);
  clip-path: var(--plato-slant);
  font-style: italic;
  letter-spacing: .14em;
}

/* Name plates and tags: dark slanted plate with a gold bar in front. */
.stage[data-theme="plato"] :is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="caption"] .layer-text,
.stage[data-theme="plato"]:is([data-layout="game"], [data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="caption"] .layer-text,
.stage[data-theme="plato"] .layer[data-kind="text"] .layer-text {
  padding: .42cqw 1.2cqw .36cqw 1.35cqw;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, var(--plato-gold) 0 .42cqw, transparent .42cqw),
    #0f0f12f2;
  clip-path: var(--plato-slant);
  font-family: var(--scene-display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.stage[data-theme="plato"] .layer[data-kind="tag"] .layer-text {
  border-radius: 0;
  background: var(--plato-foil);
  color: var(--plato-on-foil);
  clip-path: var(--plato-slant);
  font-style: italic;
}
.stage[data-theme="plato"] .layer[data-kind="tag"] .layer-text::before { background: var(--plato-on-foil); }

.stage[data-theme="plato"] .layer[data-kind="score"] .layer-visual {
  border-radius: 0;
  background: #0f0f12f2;
  box-shadow: inset 0 -.36cqw var(--plato-gold);
  clip-path: var(--plato-slant);
  font-family: var(--scene-display);
  font-style: italic;
}

/* Cameras: hairline frame with gold L brackets that sit just outside the picture. */
.stage[data-theme="plato"] .layer[data-kind="frame"] .layer-visual {
  overflow: visible;
  border: .1cqw solid #ffffff24;
}
.stage[data-theme="plato"] .layer[data-kind="frame"] .layer-visual::before,
.stage[data-theme="plato"] .layer[data-kind="frame"] .layer-visual::after {
  width: min(22%, 1.5cqw);
  height: min(22%, 1.5cqw);
  border-color: var(--plato-gold);
  filter: drop-shadow(0 0 .35cqw color-mix(in srgb, var(--plato-gold) 45%, transparent));
}
.stage[data-theme="plato"] .layer[data-kind="frame"] .layer-visual::before { top: -.45cqw; left: -.45cqw; border-top-width: .22cqw; border-left-width: .22cqw; }
.stage[data-theme="plato"] .layer[data-kind="frame"] .layer-visual::after { bottom: -.45cqw; right: -.45cqw; border-bottom-width: .22cqw; border-right-width: .22cqw; }
.stage[data-theme="plato"] .layer[data-kind="frame"] .layer-text {
  margin: 0 0 -.9cqw -.5cqw;
  padding: .3cqw 1.1cqw .24cqw 1.25cqw;
  background:
    linear-gradient(90deg, var(--plato-gold) 0 .38cqw, transparent .38cqw),
    #0f0f12f2;
  clip-path: var(--plato-slant);
  font-family: var(--scene-display);
  font-style: italic;
  letter-spacing: .06em;
}

/* Countdown: gold numerals on dark slanted tiles. */
.stage[data-theme="plato"] .layer[data-kind="countdown"] .layer-visual { font-style: italic; }
.stage[data-theme="plato"] .layer[data-kind="countdown"] .countdown-digit {
  border-color: #ffffff1f;
  border-top-color: var(--plato-gold);
  border-radius: 0;
  color: var(--plato-light);
}

.scene-transition[data-theme="plato"] {
  --cut-surface: #0b0b0d;
  --cut-highlight: color-mix(in srgb, var(--cut-primary) 70%, #fff3d6);
}

/* Live layouts (talk, reaction, desk): header band with a gold rail, footer band with a gold seam. */
.stage[data-theme="plato"][data-layout]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"][data-layer="fondo"]:not([data-asset]) > .layer-visual {
  background:
    linear-gradient(90deg, var(--plato-gold) 0 12%, transparent 12% 12.5%, color-mix(in srgb, var(--plato-gold) 38%, transparent) 12.5% 70%, transparent) left bottom / 100% .16cqw no-repeat,
    radial-gradient(ellipse 45% 160% at 0% 0%, color-mix(in srgb, var(--plato-gold) 22%, transparent), transparent 70%),
    repeating-linear-gradient(-72deg, #ffffff08 0 .1cqw, transparent .1cqw 1.6cqw),
    linear-gradient(180deg, #141417, #0b0b0d);
  box-shadow: none;
}
.stage[data-theme="plato"][data-layout]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"][data-layer="pie-fondo"]:not([data-asset]) > .layer-visual {
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--plato-gold) 55%, transparent) 30% 70%, transparent) left top / 100% .1cqw no-repeat,
    radial-gradient(ellipse 40% 180% at 100% 100%, color-mix(in srgb, var(--plato-gold) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #0d0d10, #070708);
  box-shadow: none;
}
.stage[data-theme="plato"][data-layout] .layer[data-kind="rule"][data-layer="linea"]:not([data-asset]) > .layer-visual::before {
  background: linear-gradient(90deg, var(--plato-gold) 0 9%, transparent 9% 9.6%, color-mix(in srgb, var(--plato-gold) 40%, transparent) 9.6% 75%, transparent);
  mask: none;
}
.stage[data-theme="plato"][data-layout]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="headline"] .layer-text {
  background: var(--plato-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline: .2em;
}

/* Camera rims: the theme's own finishes turn to gold foil (a custom camera colour still wins through --camera-primary). */
.stage[data-theme="plato"] :is([data-frame-finish="metal"], [data-frame-finish="clean"], [data-frame-finish="studio"]) .frame-border {
  --plato-rim: var(--camera-primary, var(--brand, #d9a443));
  --rim-highlight: color-mix(in srgb, var(--plato-rim) 45%, #fff3d2);
  --rim-body: var(--plato-rim);
  --rim-depth: color-mix(in srgb, var(--plato-rim) 45%, #2a1a05);
  --rim-surface: linear-gradient(120deg, var(--rim-depth), var(--rim-body) 30%, var(--rim-highlight) 50%, var(--rim-body) 70%, var(--rim-depth));
  --rim-accent: var(--rim-highlight);
}
.stage[data-theme="plato"] .layer[data-kind="frame"][data-frame-style][data-frame-label] > .layer-visual > .layer-text {
  padding-left: calc(min(.58cqw, calc(var(--label-fit) * .08)) + .32cqw);
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--plato-gold) 0 .3cqw, transparent .3cqw), #0f0f12f2;
  color: var(--plato-ink);
  clip-path: polygon(.4cqw 0, 100% 0, calc(100% - .4cqw) 100%, 0 100%);
  font-family: var(--scene-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

/* Wider italic face: keep headline words whole. */
.stage[data-theme="plato"] .layer[data-kind="headline"] .layer-text { overflow-wrap: normal; }
.stage[data-theme="plato"][data-screen-art] { --broadcast-head: 8.4cqw; --headline-measure: 11.5; }

/* Plain frames in live layouts (chat, shared screen): gold hairline and the same slanted label as the cameras. */
.stage[data-theme="plato"]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"]:not([data-frame-style]) > .layer-visual {
  box-shadow: inset 0 0 0 max(1px, min(.1cqw, calc(var(--live-frame-side) * .03))) color-mix(in srgb, var(--plato-gold) 42%, #ffffff10);
  background: linear-gradient(180deg, #0c0c0e8c, #0c0c0e40);
}
.stage[data-theme="plato"]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"]:not([data-frame-style]) > .layer-visual::before {
  width: min(22%, 4cqw);
  height: max(1px, min(.2cqw, calc(var(--live-frame-side) * .03)));
  background: var(--plato-foil);
}
.stage[data-theme="plato"]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"]) .layer[data-kind="frame"]:not([data-frame-style]) > .layer-visual > .layer-text {
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--plato-gold) 0 .3cqw, transparent .3cqw), #0f0f12f2;
  color: var(--plato-ink);
  clip-path: polygon(.4cqw 0, 100% 0, calc(100% - .4cqw) 100%, 0 100%);
  font-family: var(--scene-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

/* Show screens: warm the stock loops, gold numerals, warm black cards. */
.stage[data-theme="plato"] .screen-loop-media { filter: sepia(.32) saturate(1.15) brightness(.92); }
.stage[data-theme="plato"][data-layout][data-motion] .layer[data-kind="countdown"] .countdown-digit {
  --flip-tint: var(--plato-gold);
  color: var(--plato-light);
}
.stage[data-theme="plato"][data-layout] .layer[data-kind="callout"] > .layer-visual { background-color: #0e0d10d1; }

/* ---- card-motion.css ---- */
/* Material plates for scene cards and the on-air message strip. */
.stage[data-theme] {
  --card-accent: var(--surface-primary, var(--air-accent, var(--brand)));
  --card-second: var(--surface-secondary, var(--air-second, var(--brand-alt)));
  --card-light: var(--air-ink, #fff5eb);
  --card-muted: var(--air-note, #d7cbd3);
  --card-floor: var(--air-floor, #17151d);
  --card-panel: var(--air-panel, #282331);
  --card-seam: color-mix(in srgb, var(--card-light) 29%, var(--card-panel));
  --card-face: color-mix(in srgb, var(--card-panel) 84%, var(--card-accent));
  --card-foil: color-mix(in srgb, var(--card-accent) 48%, #fff3e8);
  --card-foil-edge: color-mix(in srgb, var(--card-accent) 64%, #d2bba9);
  --card-foil-ink: #1d171f;
  --card-rail-width: 39%;
  --card-grain: repeating-linear-gradient(117deg, #f8f3ff0a 0 .036cqw, transparent .055cqw .19cqw);
  --card-inlay: linear-gradient(126deg, transparent 0 32%, var(--card-seam) 32% 33%, transparent 33% 44%, #0003 44% 100%);
  --card-inlay-extra: linear-gradient(transparent, transparent);
}

.stage[data-theme="neon"] {
  --card-face: color-mix(in srgb, var(--card-panel) 80%, var(--card-second));
  --card-grain: repeating-linear-gradient(0deg, #e6deff13 0 .035cqw, transparent .05cqw .18cqw);
  --card-inlay: repeating-linear-gradient(90deg, transparent 0 20%, #c3adff25 21% 22%, transparent 23% 31%);
}

.stage[data-theme="editorial"] {
  --card-seam: color-mix(in srgb, var(--card-light) 32%, #ece0d0);
  --card-face: #f5ebda;
  --card-foil: color-mix(in srgb, var(--card-second) 42%, #fff4dc);
  --card-foil-edge: color-mix(in srgb, var(--card-second) 58%, #d2b58a);
  --card-grain:
    repeating-linear-gradient(5deg, #67503b12 0 .031cqw, transparent .045cqw .18cqw),
    repeating-linear-gradient(96deg, #fff8f047 0 .035cqw, transparent .043cqw .226cqw);
  --card-inlay: linear-gradient(135deg, #31251733, #8b755d11 55%, #fff9 56%, #f5e8d4a0);
}

.stage[data-theme="operations"] {
  --card-rail-width: 48%;
  --card-grain: repeating-linear-gradient(90deg, #d8dfce13 0 .04cqw, transparent .055cqw .17cqw);
  --card-inlay: repeating-linear-gradient(145deg, #0308036b 0 .24cqw, #7d89542b .24cqw .33cqw, transparent .33cqw .58cqw);
}

.stage[data-theme="arcana"] {
  --card-grain: repeating-linear-gradient(149deg, #dbeade13 0 .028cqw, transparent .044cqw .163cqw);
  --card-inlay: linear-gradient(42deg, transparent 48%, var(--card-seam) 48% 49%, transparent 49% 51%, #0004 52%);
  --card-inlay-extra: linear-gradient(138deg, transparent 48%, var(--card-seam) 48% 49%, transparent 49% 51%, #0003 52%);
}

.stage[data-theme="pulse"] {
  --card-rail-width: 31%;
  --card-inlay: linear-gradient(119deg, transparent 30%, var(--card-accent) 30% 36%, transparent 36% 50%, #0004 50%, transparent 80%);
}

.stage[data-theme="stadium"] {
  --card-rail-width: 54%;
  --card-grain: repeating-linear-gradient(0deg, #bbf1f114 0 .035cqw, transparent .044cqw .16cqw);
  --card-inlay: repeating-linear-gradient(90deg, transparent 0 19%, #d4ffde3d 19% 23%, transparent 23% 36%);
}

.stage[data-theme="afterdark"] {
  --card-inlay: linear-gradient(125deg, transparent 0 43%, #f6b6ed4b 43% 46%, transparent 46% 65%, #07021767 65%);
  --card-inlay-extra: repeating-linear-gradient(0deg, transparent 0 26%, #d0bdff1b 26% 30%, transparent 30% 43%);
}

.stage[data-theme][data-layout][data-motion] .layer[data-kind="callout"] > .layer-visual {
  --card-corner: min(9%, 1.15cqw);
  --card-shape: polygon(0 0, calc(100% - var(--card-corner)) 0, 100% var(--card-corner), 100% 100%, var(--card-corner) 100%, 0 calc(100% - var(--card-corner)));
  --card-height: var(--layer-height, 6cqw);
  --card-width: var(--layer-width, 28cqw);
  --card-title-size: min(calc(var(--layer-font-size) * var(--layer-scale, 1)), calc(var(--card-width) * .1), calc(var(--card-height) * .34));
  --card-text: var(--card-light);
  --card-tag: color-mix(in srgb, var(--card-muted) 72%, var(--card-light));
  --card-paper: var(--card-floor);
  --card-top: var(--card-face);
  --card-highlight: color-mix(in srgb, var(--card-accent) 77%, #fff4f1);
  --card-inlay-size: min(17%, 4.7cqw);
  --card-entry-delay: calc(85ms + min(var(--card-order, 0), 5) * 70ms);
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  padding: min(.63cqw, calc(var(--card-height) * .12)) min(1.38cqw, calc(var(--card-width) * .08))
    min(.65cqw, calc(var(--card-height) * .13)) min(1.18cqw, calc(var(--card-width) * .08));
  border: 0;
  border-radius: 0;
  clip-path: var(--card-shape);
  background:
    linear-gradient(135deg, var(--card-seam), transparent 70%) right top / 8% 45% no-repeat,
    linear-gradient(157deg, var(--card-top), var(--card-paper) 83%);
  box-shadow: inset 0 0 0 .065cqw var(--card-seam), inset 0 -.19cqw #0806114d;
  color: var(--card-text);
}

.stage[data-theme][data-layout][data-motion] .layer[data-kind="callout"] > .layer-visual::before,
.stage[data-theme][data-layout][data-motion] .layer[data-kind="callout"] > .layer-visual::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

.stage[data-theme][data-layout][data-motion] .layer[data-kind="callout"][data-align="right"] > .layer-visual {
  padding-inline-end: min(2.4cqw, calc(var(--card-width) * .12));
}

.stage[data-theme][data-layout][data-motion] .layer[data-kind="callout"] > .layer-visual::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, var(--card-highlight), var(--card-accent)) left top / var(--card-rail-width) min(.235cqw, 9%) no-repeat,
    linear-gradient(90deg, var(--card-second), transparent) right bottom / 23% min(.13cqw, 6%) no-repeat,
    var(--card-inlay) right top / var(--card-inlay-size) 100% no-repeat,
    var(--card-inlay-extra) right top / var(--card-inlay-size) 100% no-repeat,
    var(--card-grain);
}

.stage[data-theme][data-layout][data-motion] .layer[data-kind="callout"] > .layer-visual::after {
  inset: 0 auto 0 0;
  z-index: 1;
  width: 55%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(116deg, transparent 28%, #fffbf012 44%, #fffbf045 52%, transparent 69%);
}

.stage[data-theme][data-layout][data-motion] .layer[data-kind="callout"] .callout-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  display: grid;
  gap: min(.39cqw, calc(var(--card-height) * .075));
  padding-block: .11em;
  font-size: var(--card-title-size);
}

.stage[data-screen-art][data-theme][data-layout][data-motion] .layer[data-kind="callout"] > .layer-visual {
  --layer-font-size: 1.92cqw;
}

.stage[data-theme] .layer[data-kind="callout"] .callout-kicker {
  overflow: hidden;
  color: var(--card-tag);
  font-size: min(.96cqw, calc(var(--card-title-size) * .56));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage[data-theme] .layer[data-kind="callout"] .layer-text {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.13;
}

.stage[data-theme][data-layout="end"][data-motion] .layer[data-layer="sigue"][data-kind="callout"] > .layer-visual {
  --card-text: var(--card-foil-ink);
  --card-tag: #3c2b36;
  --card-top: var(--card-foil);
  --card-paper: var(--card-foil-edge);
  --card-seam: #3d303557;
  --card-rail-width: 62%;
}

.stage[data-theme][data-layout="results"][data-motion] .layer[data-layer="equipo-b"] > .layer-visual {
  --card-highlight: color-mix(in srgb, var(--card-second) 78%, #fff7eb);
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic {
  --strip-kicker-pad: .89cqw;
  --strip-kicker-cut: .53cqw;
  --strip-fold: .65cqw;
  --strip-rail: var(--card-accent);
  --strip-plate: var(--card-floor);
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic[data-kind="cue"] {
  --strip-rail: var(--card-second);
  --strip-plate: color-mix(in srgb, var(--card-face) 60%, var(--card-floor));
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic .on-air-strip {
  position: relative;
  isolation: isolate;
  border: .065cqw solid var(--card-seam);
  border-bottom: .14cqw solid var(--strip-rail);
  background:
    linear-gradient(90deg, var(--strip-rail), transparent 86%) left top / 35% .1cqw no-repeat,
    var(--card-grain),
    linear-gradient(145deg, var(--strip-plate), var(--card-panel) 85%);
  box-shadow: inset 0 -.16cqw #08080d31;
  animation: none;
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic .on-air-strip::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 26%;
  background: linear-gradient(115deg, transparent, #fffcf02b 50%, transparent);
  opacity: 0;
  pointer-events: none;
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic :is(.on-air-kicker, .on-air-text, .on-air-detail) {
  position: relative;
  z-index: 1;
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic .on-air-kicker {
  background: var(--card-grain), linear-gradient(142deg, var(--card-foil), var(--card-foil-edge));
  color: var(--card-foil-ink);
  padding-inline: var(--strip-kicker-pad) calc(var(--strip-kicker-pad) + var(--strip-kicker-cut));
  clip-path: polygon(0 0, calc(100% - var(--strip-kicker-cut)) 0, 100% 50%, calc(100% - var(--strip-kicker-cut)) 100%, 0 100%);
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic[data-kind="cue"] .on-air-kicker {
  background: var(--card-grain), linear-gradient(142deg, var(--card-foil), color-mix(in srgb, var(--card-second) 48%, #fff3e8));
}

.stage[data-theme][data-layout][data-motion] .on-air-graphic .on-air-detail {
  padding-inline-end: calc(.86cqw + var(--strip-fold));
  background:
    linear-gradient(143deg, transparent 47%, color-mix(in srgb, var(--strip-rail) 55%, transparent) 48% 54%, #0004 55%) right top / var(--strip-fold) 100% no-repeat,
    var(--card-panel);
}

.stage[data-theme][data-layout="game"][data-motion] .on-air-graphic {
  --strip-kicker-pad: .34cqw;
  --strip-kicker-cut: .23cqw;
  --strip-fold: .31cqw;
}

.stage[data-theme][data-layout="game"][data-motion] .on-air-graphic .on-air-detail {
  padding-inline-end: calc(.3cqw + var(--strip-fold));
}

@media (prefers-reduced-motion: no-preference) {
  .stage[data-theme][data-layout][data-motion="on"] .layer[data-kind="callout"]:not([data-editable]) > .layer-visual {
    animation: airtime-card-reveal 480ms var(--card-entry-delay) cubic-bezier(.27,.59,.22,1) both;
  }

  .stage[data-theme][data-layout][data-motion="on"] .layer[data-kind="callout"]:not([data-editable]) > .layer-visual::after {
    animation: airtime-card-reflection 585ms calc(var(--card-entry-delay) + 40ms) ease-out both;
  }

  .stage[data-theme][data-layout][data-motion="on"] .layer[data-kind="callout"]:not([data-editable]) .callout-copy {
    animation: airtime-card-copy 330ms calc(var(--card-entry-delay) + 120ms) cubic-bezier(.2,.72,.25,1) both;
  }

  .stage[data-theme][data-layout][data-motion="on"] .on-air-graphic[data-revision] {
    --strip-reveal: airtime-message-reveal;
    --strip-flash: airtime-message-reflection;
  }

  .stage[data-theme][data-layout][data-motion="on"] .on-air-graphic[data-revision="0"] {
    --strip-reveal: airtime-message-reveal-alt;
    --strip-flash: airtime-message-reflection-alt;
  }

  .stage[data-theme][data-layout][data-motion="on"] .on-air-graphic[data-revision] :is(.on-air-text, .on-air-detail) {
    animation: var(--strip-reveal) 265ms cubic-bezier(.24,.68,.23,1) both;
  }

  .stage[data-theme][data-layout][data-motion="on"] .on-air-graphic[data-revision] .on-air-strip::after {
    animation: var(--strip-flash) 360ms ease-out both;
  }
}

@keyframes airtime-card-reveal {
  from {
    clip-path: polygon(0 0, 0 0, 0 var(--card-corner), 0 100%, 0 100%, 0 calc(100% - var(--card-corner)));
  }
  to { clip-path: var(--card-shape); }
}

@keyframes airtime-card-copy {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes airtime-card-reflection {
  from { opacity: 0; transform: translateX(-115%); }
  32% { opacity: .8; }
  to { opacity: 0; transform: translateX(190%); }
}

@keyframes airtime-message-reveal {
  from { opacity: .2; clip-path: inset(100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes airtime-message-reveal-alt {
  from { opacity: .2; clip-path: inset(100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes airtime-message-reflection {
  from { opacity: 0; transform: translateX(-105%); }
  30% { opacity: .64; }
  to { opacity: 0; transform: translateX(450%); }
}

@keyframes airtime-message-reflection-alt {
  from { opacity: 0; transform: translateX(-105%); }
  30% { opacity: .64; }
  to { opacity: 0; transform: translateX(450%); }
}

/* ---- vertical.css ---- */
/* The portrait artwork uses the same scene layers and leaves source windows transparent. */
.stage[data-format="vertical"] {
  --portrait-display: 17cqw;
  --portrait-ink-size: 3.2cqw;
  --portrait-small-size: 2.45cqw;
}

.stage[data-format="vertical"][data-screen-art][data-layout] {
  --broadcast-head: var(--portrait-display);
  --broadcast-track: -.045em;
}

.stage[data-format="vertical"][data-screen-art][data-theme][data-layout]
  .layer[data-layer="fondo"][data-kind="plate"] > .layer-visual {
  --air-header: 18%;
  --air-footer: 82.4%;
  --air-rail-offset: 6.4%;
  --air-rail-length: 5.9%;
  --air-rail-width: .42cqw;
  --air-rail-hairline: .13cqw;
  --surface-key-position: 85% 22%;
  --surface-key-size: 116% 77%;
}

.stage[data-format="vertical"][data-screen-art="quiet"][data-theme][data-layout]
  .layer[data-layer="fondo"][data-kind="plate"] > .layer-visual {
  --air-rail-length: 4.1%;
  --air-rail-width: .28cqw;
}

.stage[data-format="vertical"][data-screen-art="bold"][data-theme][data-layout]
  .layer[data-layer="fondo"][data-kind="plate"] > .layer-visual {
  --air-rail-length: 6.35%;
  --air-rail-width: .56cqw;
}

.stage[data-format="vertical"][data-theme][data-layout]
  .layer[data-kind="logo"] > .layer-visual {
  --layer-font-size: min(4.12cqw, calc(var(--layer-height) * .68));
  gap: 1.65cqw;
  letter-spacing: -.005em;
}

.stage[data-format="vertical"][data-theme][data-layout]
  .layer[data-kind="logo"] .scene-mark {
  width: min(13%, calc(5.2cqw * var(--layer-scale, 1)));
  height: auto;
  aspect-ratio: 1;
}

.stage[data-format="vertical"][data-theme][data-layout="game"]
  .layer[data-layer="marca"][data-kind="logo"] > .layer-visual {
  --layer-font-size: min(3.2cqw, calc(var(--layer-height) * .57));
  width: min(100%, 42cqw);
  max-width: 100%;
  padding: .65cqw 1.8cqw;
}

.stage[data-format="vertical"][data-theme][data-layout="game"]
  .layer[data-layer="marca"][data-kind="logo"] .scene-mark { max-width: 4.2cqw; }

.stage[data-format="vertical"][data-theme][data-layout="game"]
  .layer[data-layer="marca"][data-kind="logo"] img { max-width: 6.7cqw; }

.stage[data-format="vertical"][data-theme]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"], [data-layout="results"])
  .layer[data-kind="headline"] > .layer-visual {
  --layer-font-size: min(9cqw, calc(var(--layer-width) / var(--headline-measure, 10)), calc(var(--layer-height) * .88 / var(--headline-lines, 1)));
}

.stage[data-format="vertical"][data-theme][data-layout] .layer[data-kind="eyebrow"] > .layer-visual {
  --layer-font-size: min(2.85cqw, calc(var(--layer-height) * .62));
}

.stage[data-format="vertical"][data-theme][data-layout] .layer[data-kind="tag"] .layer-text {
  max-width: 100%;
  gap: .95cqw;
  padding: .8cqw 1.25cqw;
  font-size: min(calc(var(--portrait-small-size) * var(--layer-scale, 1)), calc(var(--layer-height) * .55));
  font-weight: 750;
  letter-spacing: .055em;
  white-space: nowrap;
}

.stage[data-format="vertical"][data-theme][data-layout] .layer[data-kind="tag"] .layer-text::before {
  width: .66cqw;
  height: .66cqw;
}

.stage[data-format="vertical"][data-theme][data-layout] .layer[data-kind="caption"] .layer-text {
  padding: .68cqw 1.35cqw;
  font-size: min(calc(var(--portrait-ink-size) * var(--layer-scale, 1)), calc(var(--layer-height) * .60));
  line-height: 1.08;
}

.stage[data-format="vertical"][data-theme][data-layout]
  .layer[data-kind="frame"] > .layer-visual {
  --layer-font-size: var(--portrait-small-size);
}

.stage[data-format="vertical"][data-theme][data-layout]
  .layer[data-kind="frame"]:not([data-frame-label="hidden"]) > .layer-visual > .layer-text {
  max-width: 95%;
  padding: .65cqw 1.35cqw;
  font-size: min(calc(2.4cqw * var(--layer-scale, 1)), calc(var(--camera-limit, 100cqw) * .18));
  font-weight: 740;
}

.stage[data-format="vertical"][data-theme][data-layout]
  .layer[data-kind="frame"][data-frame-style]:not([data-frame-label="hidden"]) > .layer-visual > .layer-text {
  margin: min(1.05cqw, calc(var(--label-fit) * .075));
  padding: min(.52cqw, calc(var(--label-fit) * .04)) min(.88cqw, calc(var(--label-fit) * .08));
  font-size: min(calc(1.62cqw * var(--layer-scale, 1)), calc(var(--label-fit) * .17));
  font-weight: 650;
}

.stage[data-format="vertical"][data-theme][data-layout][data-motion]
  .layer[data-kind="callout"] > .layer-visual {
  --layer-font-size: 4.35cqw;
  --card-corner: min(8%, 2.5cqw);
  --card-inlay-size: min(16%, 10cqw);
  padding: min(1.35cqw, calc(var(--card-height) * .10)) min(3.15cqw, calc(var(--card-width) * .085));
}

.stage[data-format="vertical"][data-theme][data-layout][data-motion]
  .layer[data-kind="callout"] .callout-copy { gap: min(.85cqw, calc(var(--card-height) * .075)); }

.stage[data-format="vertical"][data-theme][data-layout]
  .layer[data-kind="callout"] .callout-kicker {
  font-size: min(var(--portrait-small-size), calc(var(--card-title-size) * .57));
  letter-spacing: .07em;
}

.stage[data-format="vertical"][data-layout="results"][data-theme] .layer[data-kind="score"] > .layer-visual {
  --layer-font-size: min(12cqw, calc(var(--layer-height) * .68), calc(var(--layer-width) * .21));
}

.stage[data-format="vertical"][data-screen-art][data-theme][data-layout][data-motion]
  .layer[data-kind="countdown"] {
  --portrait-cell: min(17.3cqw, calc(var(--layer-width) * .185));
  --portrait-colon: min(6.6cqw, calc(var(--layer-width) * .09));
  --portrait-gap: min(1.45cqw, calc(var(--layer-width) * .02));
  --flip-span: calc(4 * var(--portrait-cell) + 4 * var(--portrait-gap) + var(--portrait-colon));
}

.stage[data-format="vertical"][data-screen-art][data-theme][data-layout]
  .layer[data-kind="countdown"] > .layer-visual {
  gap: var(--portrait-gap);
}

.stage[data-format="vertical"][data-screen-art][data-theme][data-layout][data-motion]
  .layer[data-kind="countdown"] .countdown-digit {
  width: var(--portrait-cell);
  height: min(21cqw, 88%);
  flex: 0 0 auto;
  perspective: 32cqw;
  border-radius: .75cqw;
  font-size: min(13.8cqw, calc(var(--layer-width) * .155), calc(var(--layer-height) * .64));
  box-shadow: 0 .58cqw .94cqw #06050c69, inset 0 -.31cqw #0004, inset 0 .13cqw #fff4;
}

.stage[data-format="vertical"][data-screen-art][data-theme][data-layout]
  .layer[data-kind="countdown"] .countdown-separator {
  flex: 0 0 auto;
  width: var(--portrait-colon);
  margin: 0;
  text-align: center;
  font-size: min(11.9cqw, calc(var(--layer-width) * .135), calc(var(--layer-height) * .5));
}

.stage[data-format="vertical"][data-layout][data-theme] .countdown-progress { height: min(.52cqw, 5%); }

.stage[data-format="vertical"][data-layout][data-theme][data-motion] .on-air-graphic {
  --air-strip-size: 3.05cqw;
  --strip-kicker-pad: 1.45cqw;
  --strip-kicker-cut: .95cqw;
  --strip-fold: 1.2cqw;
}

.stage[data-format="vertical"][data-layout][data-theme] .on-air-text { padding-inline: 1.45cqw; }
.stage[data-format="vertical"][data-layout][data-theme] .on-air-detail { max-width: 33%; }

/* Preserve the intended canvas ratio in previews and thumbnails. */
.viewport:is([data-format="vertical"], :has(> .stage[data-format="vertical"])) {
  aspect-ratio: 9 / 16;
  width: min(100%, 23rem, max(10.5rem, (100svh - 227px) * .5625));
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #61566a, 0 8px 26px #0504098a;
}

.monitor-pad:has(> .viewport:is([data-format="vertical"], :has(> .stage[data-format="vertical"]))) {
  background: radial-gradient(ellipse at 50% 40%, #282131, #131218 74%);
}

.scene-thumbnail[data-format="vertical"] {
  width: 25px;
  aspect-ratio: 9 / 16;
  justify-self: center;
}

.preset-choice-card .stage[data-format="vertical"] {
  width: min(100%, 7.7rem);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.demo-screen:is([data-format="vertical"], :has(> .stage[data-format="vertical"])),
.gallery-screen:is([data-format="vertical"], :has(> .stage[data-format="vertical"])) {
  width: min(100%, 19rem);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.studio-sample-source[data-source="partida"], .sample-box[data-source="partida"] {
  background: #231e29 url('/media/reaction-feed.webp') center / cover no-repeat;
}

.studio-sample-sources[data-layout="game"][data-format="vertical"][data-game-stack] { background: #211b24; }
.demo-screen:has(> .stage[data-format="vertical"]) .sample-sources[data-layout="game"] { background: #211b24; }
.demo-screen:has(> .stage[data-format="vertical"]) .sample-sources[data-layout="game"]::before { content: none; }
.demo-screen:has(> .stage[data-format="vertical"]) .sample-box[data-source="chat"] { padding: 6.7cqw 3.1cqw 2cqw; }
.demo-screen:has(> .stage[data-format="vertical"]) .sample-chat { font-size: max(10px, 3.25cqw); }
.demo-screen:has(> .stage[data-format="vertical"]) .sample-chat b { display: inline; margin-inline-end: 1.1cqw; }

.monitor-head:has(.format-switch) { flex-wrap: wrap; }
.monitor-tools:has(.format-switch) { flex-wrap: wrap; justify-content: flex-end; }

.format-switch {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--line, #494055);
  border-radius: 8px;
  background: var(--surface, #19171f);
}

.format-switch button {
  min-width: 0;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--dim, #bbb3c4);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 690;
  line-height: 1.1;
  white-space: nowrap;
}

.format-switch button:hover { color: var(--text, #fff4f1); }
.format-switch button[aria-pressed="true"] { border-color: #695b8d; background: #302841; color: #eee8ff; }

#composition-controls {
  min-width: 0;
  margin-block-end: 12px;
  border: 1px solid var(--line, #494055);
  border-radius: 8px;
  background: #19171f;
}

#composition-controls summary {
  min-height: 42px;
  padding: 11px 9px;
  color: var(--text, #f8f2f7);
  font-size: .86rem;
  font-weight: 720;
  cursor: pointer;
}

#composition-controls summary:hover { background: #282332; }

#composition-options {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid var(--line, #494055);
}

.composition-option {
  display: grid;
  gap: 3px;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid #494055;
  border-radius: 5px;
  background: #25212c;
  color: var(--text, #f8f2f7);
  text-align: left;
  overflow-wrap: anywhere;
}

.composition-option strong { font-size: .8rem; line-height: 1.14; }
.composition-option small { color: #c6bccc; font-size: .73rem; line-height: 1.28; }
.composition-option:hover { border-color: #9281aa; background: #2e2738; }
.composition-option[aria-pressed="true"] { border-color: var(--accent, #a99cf8); background: #392f47; }

@media (max-width: 560px) {
  .format-switch button { min-height: 42px; padding-inline: 8px; }
  .viewport:is([data-format="vertical"], :has(> .stage[data-format="vertical"])) { width: min(100%, 16rem); }
}

/* ---- gta-coast.css ---- */
/* A dusk waterfront for the afterdark theme. All art is painted inside existing plates. */
.stage[data-theme="afterdark"] {
  --coast-deep: #101629;
  --coast-indigo: #252043;
  --coast-coral: color-mix(in srgb, var(--surface-primary, var(--brand)) 57%, #ff8e72);
  --coast-peach: color-mix(in srgb, var(--surface-primary, var(--brand)) 21%, #ffcb92);
  --coast-aqua: color-mix(in srgb, var(--surface-secondary, var(--brand-alt)) 72%, #5be3c8);
  --coast-berry: color-mix(in srgb, var(--coast-coral) 56%, #4a2b79);
  --coast-tide: color-mix(in srgb, var(--coast-aqua) 38%, #102641);
  --coast-cream: #fff3dc;
  --coast-horizon: 59%;
  --coast-sun-right: 17%;
  --coast-sun-top: 21%;
  --coast-sun-size: 15cqw;
  --coast-header: 16.5%;
  --coast-rail: linear-gradient(90deg, var(--coast-peach), var(--coast-coral) 37%, var(--coast-aqua) 84%);
  --air-floor: var(--coast-deep);
  --air-panel: var(--coast-indigo);
  --air-ink: var(--coast-cream);
  --air-accent: var(--coast-peach);
  --air-second: var(--coast-aqua);
  --live-base: var(--coast-deep);
  --live-surface: var(--coast-indigo);
  --live-seam: color-mix(in srgb, var(--coast-aqua) 32%, transparent);
  --pack-deep: var(--coast-deep);
  --pack-panel: var(--coast-indigo);
  --pack-bright: var(--coast-coral);
  --pack-edge: var(--coast-aqua);
}

.stage[data-theme="afterdark"][data-format="vertical"] {
  --coast-horizon: 49%;
  --coast-sun-right: 11%;
  --coast-sun-top: 17%;
  --coast-sun-size: 31cqw;
  --coast-header: 11%;
}

.stage[data-theme="afterdark"][data-surface="satin"] {
  --surface-thread: color-mix(in srgb, var(--surface-luminous) calc(var(--surface-level) * 3.2%), transparent);
  --surface-glancing-light: color-mix(in srgb, var(--surface-luminous) calc(var(--surface-level) * 6%), transparent);
}

.stage[data-theme="afterdark"][data-screen-art][data-format]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-layer="fondo"][data-kind="plate"]:not([data-asset]) > .layer-visual {
  --coast-water-soft: color-mix(in srgb, var(--coast-tide) 76%, var(--coast-deep));
  --coast-waterline: color-mix(in srgb, var(--coast-peach) 52%, transparent);
  --coast-glow: color-mix(in srgb, var(--coast-peach) 60%, transparent);
  --coast-water-shine: color-mix(in srgb, var(--coast-aqua) 63%, transparent);
  background:
    var(--coast-rail) 5% var(--coast-header) / 10% .16cqw no-repeat,
    linear-gradient(90deg, #fff4, transparent 78%) center var(--coast-header) / 90% .07cqw no-repeat,
    linear-gradient(90deg, #fff4, transparent 82%) center 88.4% / 90% .07cqw no-repeat,
    var(--surface-grain, none),
    linear-gradient(90deg, #111226bf 2%, #14172c52 45%, transparent 76%),
    linear-gradient(0deg, #111727e8 0 11.6%, transparent 11.8% calc(100% - var(--coast-header)), #15152cd4 calc(100% - var(--coast-header) + .2%) 100%),
    radial-gradient(ellipse 32% 26% at 75% var(--coast-horizon), var(--coast-glow), transparent 84%),
    radial-gradient(ellipse 50% 27% at 77% 74%, var(--coast-water-shine), transparent 74%),
    linear-gradient(180deg, #25193e 0%, #53406b 25%, var(--coast-berry) 46%, var(--coast-coral) var(--coast-horizon),
      var(--coast-waterline) var(--coast-horizon) calc(var(--coast-horizon) + .17%), var(--coast-water-soft) calc(var(--coast-horizon) + .2%), var(--coast-deep) 87%);
  box-shadow: none;
}

.stage[data-theme="afterdark"][data-screen-art][data-format]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-layer="fondo"][data-kind="plate"]:not([data-asset]) > .layer-visual::before {
  display: block;
  content: "";
  inset: var(--coast-sun-top) var(--coast-sun-right) auto auto;
  width: var(--coast-sun-size);
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff0c1 1%, var(--coast-peach) 46%, var(--coast-coral) 91%);
  clip-path: none;
  mask-image: repeating-linear-gradient(180deg, #000 0 12%, #0000 12% 13.5%, #000 13.5% 14%);
  mask-size: 100% 100%;
  transform: none;
  opacity: .73;
  pointer-events: none;
}

/* The wind-bent silhouette comes from a hand-drawn polygon, with no imported artwork. */
.stage[data-theme="afterdark"][data-screen-art][data-format]:is([data-layout="opening"], [data-layout="break"], [data-layout="end"])
  .layer[data-layer="fondo"][data-kind="plate"]:not([data-asset]) > .layer-visual::after {
  display: block;
  content: "";
  inset: auto -2% 11% auto;
  width: 26%;
  height: 62%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #191629 0%, #101528 74%);
  clip-path: polygon(55% 100%, 51% 85%, 50% 71%, 51% 58%, 54% 46%, 60% 36%, 56% 35%, 49% 35%,
    40% 39%, 30% 46%, 27% 49%, 32% 39%, 39% 34%, 46% 31%, 55% 30%, 43% 28%, 31% 29%, 21% 32%, 13% 35%,
    20% 27%, 28% 24%, 40% 23%, 51% 24%, 58% 27%, 49% 22%, 41% 15%, 33% 13%, 24% 14%, 17% 16%, 26% 9%,
    40% 10%, 49% 13%, 56% 18%, 63% 26%, 65% 18%, 73% 10%, 85% 4%, 96% 5%, 87% 10%, 80% 14%, 73% 20%,
    70% 27%, 79% 23%, 91% 23%, 99% 28%, 100% 31%, 92% 29%, 85% 28%, 77% 30%, 71% 33%, 82% 35%, 90% 40%,
    95% 47%, 86% 44%, 80% 40%, 73% 37%, 67% 36%, 63% 43%, 58% 56%, 56% 73%, 59% 88%, 65% 100%);
  mask: linear-gradient(180deg, #000 0 83%, #000b 92%, transparent 100%);
  transform: none;
  opacity: .77;
  pointer-events: none;
}

.stage[data-theme="afterdark"][data-format="vertical"][data-screen-art][data-layout]
  .layer[data-layer="fondo"][data-kind="plate"]:not([data-asset]) > .layer-visual::after {
  bottom: 17%;
  width: 46%;
  height: 54%;
  opacity: .6;
}

.stage[data-theme="afterdark"][data-screen-art="quiet"][data-format][data-layout]
  .layer[data-layer="fondo"][data-kind="plate"]:not([data-asset]) > .layer-visual::before { opacity: .39; }
.stage[data-theme="afterdark"][data-screen-art="quiet"][data-format][data-layout]
  .layer[data-layer="fondo"][data-kind="plate"]:not([data-asset]) > .layer-visual::after { opacity: .42; }

.stage[data-theme="afterdark"][data-screen-art][data-layout="break"] {
  --coast-sun-top: 29%;
  --coast-berry: color-mix(in srgb, var(--coast-coral) 34%, #3b2b69);
}
.stage[data-theme="afterdark"][data-screen-art][data-layout="end"] {
  --coast-sun-top: 25%;
  --coast-berry: color-mix(in srgb, var(--coast-coral) 53%, #4b2760);
}

.stage[data-theme="afterdark"][data-typeface="studio"][data-screen-art][data-format][data-layout]
  .layer[data-kind="headline"] > .layer-visual {
  font-family: "Airelivo Display", "Arial Narrow", sans-serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.025em;
  padding-inline-end: .1em;
}
.stage[data-theme="afterdark"][data-typeface="studio"][data-screen-art][data-format][data-layout]
  .layer[data-kind="headline"] .layer-text {
  padding-inline-end: .07em;
  color: var(--coast-cream);
  text-shadow: .027em .046em #20122ec7;
  text-transform: uppercase;
}

/* Panel lighting follows the palette on the header/footer only. */
.stage[data-theme="afterdark"][data-format][data-surface]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"]:is([data-layer="fondo"], [data-layer="pie-fondo"]):not([data-asset]) > .layer-visual {
  background:
    linear-gradient(90deg, var(--coast-peach) 0%, var(--coast-coral) 39%, var(--coast-aqua) 78%, transparent) center bottom / 100% .15cqw no-repeat,
    var(--surface-grain, none),
    radial-gradient(ellipse 40% 175% at 96% 88%, color-mix(in srgb, var(--coast-aqua) 34%, transparent), transparent 67%),
    radial-gradient(ellipse 50% 210% at 50% 5%, color-mix(in srgb, var(--coast-berry) 68%, transparent), transparent 67%),
    linear-gradient(109deg, #362243, var(--coast-deep) 77%, #162b3c);
}

.stage[data-theme="afterdark"][data-format][data-surface]:is([data-layout="talk"], [data-layout="reaction"], [data-layout="desk"])
  .layer[data-kind="plate"][data-layer="fondo"]:not([data-asset]) > .layer-visual::before {
  inset: 0 0 0 auto;
  width: 44%;
  height: 100%;
  border: 0;
  transform: none;
  clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(0deg, #fff1 0 .11cqw, transparent .14cqw .92cqw) right / 28% 100% no-repeat,
    linear-gradient(120deg, color-mix(in srgb, var(--coast-berry) 72%, #231935), var(--coast-deep) 76%);
}

.stage[data-theme="afterdark"][data-format][data-layout]
  .layer[data-kind="callout"]:not([data-asset]) > .layer-visual {
  --card-top: color-mix(in srgb, var(--coast-berry) 40%, var(--coast-indigo));
  --card-paper: var(--coast-deep);
  --card-highlight: var(--coast-peach);
  --card-accent: var(--coast-coral);
  --card-second: var(--coast-aqua);
  --card-inlay: linear-gradient(120deg, transparent 0 28%, #aadcca6e 29% 32%, transparent 32% 48%, #fff2 49% 50%, transparent 51%);
}
.stage[data-theme="afterdark"][data-format][data-layout="end"]
  .layer[data-kind="callout"][data-layer="sigue"]:not([data-asset]) > .layer-visual {
  --card-top: color-mix(in srgb, var(--coast-peach) 89%, #fff);
  --card-paper: var(--coast-coral);
}

.stage[data-theme="afterdark"][data-format][data-layout]
  .layer[data-kind="tag"]:not([data-asset]) .layer-text {
  border-color: color-mix(in srgb, var(--coast-aqua) 46%, #252043);
  background: color-mix(in srgb, var(--coast-deep) 84%, var(--coast-berry));
  color: var(--coast-cream);
}
.stage[data-theme="afterdark"] .scene-mark {
  background:
    linear-gradient(180deg, transparent 53%, var(--coast-aqua) 54% 58%, transparent 59% 68%, var(--coast-aqua) 70% 73%, transparent 74%),
    linear-gradient(142deg, var(--coast-peach), var(--coast-coral) 54%, #2c2240 55% 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .stage[data-theme="afterdark"][data-screen-motion="on"][data-screen-art][data-format][data-layout]
    .layer[data-layer="fondo"][data-kind="plate"]:not([data-asset]) > .layer-visual::before {
    animation: coast-glimmer calc(var(--screen-period, 8s) * 1.65) ease-in-out infinite;
  }
}

@keyframes coast-glimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.16); }
}

/* ---- screen-loops.css ---- */
.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] {
  --screen-ink: #f7f5f0;
  --screen-subtle: #e2e4e6;
  --screen-hot: var(--brand);
  --screen-line: #e9eee74b;
  --screen-card: #141a1edb;
  --screen-badge: #141a1edb;
  --loop-left: .66;
  --loop-right: .18;
}

.stage[data-custom-backdrop][data-screen-art][data-theme][data-layout] {
  --air-floor: #10151a;
  --air-panel: #20272e;
  --air-ink: var(--screen-ink);
  --air-note: var(--screen-subtle);
  --air-tag-background: #151c22;
  --air-tag-ink: var(--screen-ink);
}

.stage[data-screen-loop="brasas"] { --loop-x: 54%; }
.stage[data-screen-loop="marea"] { --loop-x: 57%; }
.stage[data-screen-loop="niebla"][data-screen-art][data-theme][data-layout] {
  --loop-left: .73;
  --loop-right: .45;
  --loop-x: 44%;
}

.stage[data-screen-loop][data-screen-art][data-theme][data-layout] .layer[data-loop-layer] > .layer-visual {
  border: 0;
  background: #101518;
  box-shadow: none;
  clip-path: none;
}

.stage[data-screen-loop][data-screen-art][data-theme][data-layout] .layer[data-loop-layer] > .layer-visual::before,
.stage[data-screen-loop][data-screen-art][data-theme][data-layout] .layer[data-loop-layer] > .layer-visual::after {
  display: none;
}

.screen-loop-media, .screen-loop-media::after, .screen-loop-poster, .screen-loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.screen-loop-media { overflow: hidden; }
.screen-loop-poster, .screen-loop-video { display: block; object-fit: cover; object-position: var(--loop-x, 50%) var(--loop-y, 50%); }
.screen-loop-video:not([data-ready]) { visibility: hidden; }

.screen-loop-media[data-usage="screen"]::after {
  content: '';
  background:
    linear-gradient(90deg, rgb(8 11 15 / var(--loop-left)), rgb(8 11 15 / var(--loop-right)) 76%),
    linear-gradient(0deg, #081016a6, transparent 33%, transparent 76%, #08101638);
}

.stage[data-format="vertical"] .screen-loop-media[data-usage="screen"]::after {
  background: linear-gradient(180deg, #0810166e, rgb(8 11 15 / var(--loop-left)) 39%, #0810164d 72%, #081016d1);
}

.stage[data-draft-loop] .draft-backdrop { background: #11181c; }

.screen-loop-media[data-usage="draft"]::after {
  content: '';
  background: linear-gradient(180deg, #09100c87 4%, #0c111754 45%, #0a1014bd);
}

.stage[data-draft-loop="operaciones"] .screen-loop-media[data-usage="draft"]::after {
  background: linear-gradient(180deg, #101316b8 0%, #171a1d91 44%, #0c1114c7);
}

.stage[data-theme][data-layout] .layer[data-video-overlay] > .layer-visual {
  overflow: hidden;
  background: #101518;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
}

.stage[data-theme][data-layout] .layer[data-video-overlay] > .layer-visual::before,
.stage[data-theme][data-layout] .layer[data-video-overlay] > .layer-visual::after { display: none; }

.screen-loop-media[data-usage="overlay"] :is(.screen-loop-poster, .screen-loop-video) {
  transform: scale(var(--layer-scale, 1));
}

.screen-loop-media[data-usage="overlay"]::after {
  content: '';
  box-shadow: inset 0 0 0 max(1px, .055cqw) #f7f9fb4a;
  background: linear-gradient(90deg, #10161a2e, transparent 35%);
}

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] .layer[data-layer="titular"] > .layer-visual {
  color: var(--screen-ink);
  text-shadow: 0 .11em .27em #04060891;
}

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] .layer[data-kind="logo"] > .layer-visual {
  color: var(--screen-ink);
  text-shadow: 0 .1em .2em #020508ad;
}

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] .layer[data-kind="logo"] .scene-mark {
  width: .30cqw;
  height: 1.15cqw;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--screen-hot);
  transform: none;
  clip-path: none;
}

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] .layer[data-kind="logo"] .scene-mark::after { content: none; }

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout][data-format="vertical"] .layer[data-kind="logo"] .scene-mark {
  width: .58cqw;
  height: 2.45cqw;
}

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] .layer[data-kind="callout"]:not([data-asset]) > .layer-visual {
  border: max(1px, .06cqw) solid #d5dad54b;
  border-inline-start: max(1px, .12cqw) solid var(--screen-hot);
  background: #10161ac7;
  color: var(--screen-ink);
  box-shadow: none;
  clip-path: none;
}

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] .layer[data-kind="callout"]:not([data-asset]) .callout-kicker {
  color: var(--screen-subtle);
}

.stage[data-custom-backdrop][data-screen-art][data-theme][data-layout]
  .layer[data-kind="callout"]:not([data-asset]) > .layer-visual::before,
.stage[data-custom-backdrop][data-screen-art][data-theme][data-layout]
  .layer[data-kind="callout"]:not([data-asset]) > .layer-visual::after {
  display: none;
}

.stage:is([data-screen-loop], [data-custom-backdrop])[data-screen-art][data-theme][data-layout] .layer[data-kind="rule"] .layer-visual::before {
  background: var(--screen-line);
}

.stage[data-custom-backdrop][data-screen-art][data-theme][data-layout] .layer[data-kind="eyebrow"] > .layer-visual {
  color: var(--screen-subtle);
  text-shadow: 0 1px 5px #05090dd9;
}

.stage[data-custom-backdrop][data-screen-art][data-theme][data-layout]
  .layer[data-layer="fondo"] > .layer-visual:has(> .scene-backdrop-custom:not([data-source="legacy"])) {
  background: #10151a;
  border: 0;
  box-shadow: none;
  clip-path: none;
}

.scene-backdrop-custom,
.scene-backdrop-custom::after,
.scene-backdrop-custom > :is(.scene-backdrop-image, .scene-backdrop-tint, .scene-backdrop-flare) {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-backdrop-custom {
  --backdrop-contrast: linear-gradient(90deg, #080c12ba 0%, #080c128a 51%, #080c123b 100%);
  isolation: isolate;
  overflow: hidden;
}

.scene-backdrop-custom:is([data-source="image"], [data-source="video"]) { background: #10151a; }

.scene-backdrop-custom[data-source="color"] {
  --backdrop-solid-base: var(--backdrop-primary, #253037);
  --backdrop-solid-mix: calc(18% + clamp(0, var(--backdrop-tint, 0), 1) * 78%);
  background: linear-gradient(138deg, var(--backdrop-solid-base),
    color-mix(in srgb, var(--backdrop-secondary, #11151a) var(--backdrop-solid-mix), var(--backdrop-solid-base)));
}

.scene-backdrop-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--backdrop-x, 50%) var(--backdrop-y, 50%);
}

.scene-backdrop-custom > .screen-loop-media::after { content: none; }

.scene-backdrop-tint {
  z-index: 1;
  background: linear-gradient(118deg, var(--backdrop-primary, #18212b), var(--backdrop-secondary, #526373));
  mix-blend-mode: color;
  opacity: calc(clamp(0, var(--backdrop-tint, 0), 1) * .68);
}

.scene-backdrop-custom[data-source="color"] > .scene-backdrop-tint { display: none; }

.scene-backdrop-custom > .scene-backdrop-flare {
  z-index: 2;
  inset: -9%;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse 42% 34% at 75% 29%,
    color-mix(in srgb, var(--backdrop-secondary, #e1b284) 47%, #fff8f1),
    color-mix(in srgb, var(--backdrop-primary, #ad7966) 56%, transparent) 48%,
    transparent 100%);
}

.scene-backdrop-custom:is([data-flare="spot"], [data-flare="sweep"]) > .scene-backdrop-flare {
  opacity: calc(clamp(0, var(--backdrop-flare, 0), 1) * .55);
}

.scene-backdrop-custom::after {
  content: '';
  z-index: 3;
  background: linear-gradient(180deg, #080c12bd, transparent 25% 75%, #080c12ca), var(--backdrop-contrast);
}

.stage[data-format="horizontal"]:has(.layer[data-layer="titular"][data-align="right"]) .scene-backdrop-custom {
  --backdrop-contrast: linear-gradient(270deg, #080c12ba 0%, #080c128a 51%, #080c123b 100%);
}

.stage[data-format="horizontal"]:has(.layer[data-layer="titular"][data-align="center"]) .scene-backdrop-custom {
  --backdrop-contrast: radial-gradient(ellipse at 50% 49%, #080c12b8 0%, #080c12a1 48%, #080c1242 100%);
}

.stage[data-format="vertical"] .scene-backdrop-custom {
  --backdrop-contrast: linear-gradient(180deg, #080c126d, #080c12a6 44%, #080c128a 69%, #080c1277);
}

.draft-backdrop > .scene-backdrop-custom::after {
  background: linear-gradient(180deg, #090e14bd, #0d131978 46%, #090e14be);
}

.draft-graphic:has(> .draft-backdrop > .scene-backdrop-custom:not([data-source="legacy"])) .draft-side {
  background: color-mix(in srgb, var(--draft-panel) 92%, transparent);
}

.draft-graphic:has(> .draft-backdrop > .scene-backdrop-custom:not([data-source="legacy"])) :is(.draft-title, .draft-clock) {
  text-shadow: 0 1px 7px #070b0fd4;
}

.stage[data-draft-loop="arena-agentes"] {
  --arena-agents-veil:
    linear-gradient(90deg, #09131b78 0%, #09131b46 22%, transparent 36% 63%, #09131b14 100%),
    linear-gradient(180deg, #08131d54, transparent 26% 76%, #08121966);
}

.stage[data-draft-loop="arena-agentes"][data-format="vertical"] {
  --arena-agents-veil: linear-gradient(180deg, #08131d50, #09141c26 21%, transparent 37% 76%, #08131d50);
}

.stage[data-draft-loop="arena-agentes"]
  :is(.draft-backdrop > .screen-loop-media[data-usage="draft"], .draft-backdrop > .scene-backdrop-custom)::after {
  background: var(--arena-agents-veil);
}

.stage[data-draft-loop="arena-agentes"] .draft-backdrop .screen-loop-media
  :is(.screen-loop-video, .screen-loop-poster) {
  filter: saturate(.89) contrast(1.02);
}

.stage[data-draft-loop="arena-agentes"] .draft-graphic[data-mode="valorant"] {
  --draft-panel: #111d25;
  --draft-light: #f1f5f5;
  --draft-dim: #cedee2;
  --draft-blue: color-mix(in srgb, var(--brand) 58%, #fb8e88);
}

.stage[data-draft-loop="arena-agentes"] .draft-mast {
  border-bottom-color: #b6dce25c;
}

.stage[data-draft-loop="arena-agentes"] :is(.draft-title, .draft-clock, .draft-phase, .draft-brand-name, .draft-game-label) {
  text-shadow: 0 1px 7px #050e16e8;
}

.stage[data-draft-loop="arena-agentes"] .draft-graphic[data-mode="valorant"] .draft-side {
  background: #0c151dc2;
  box-shadow: inset 0 0 0 var(--draft-line) #aac3ce3d, 0 .30cqw .95cqw #07101353;
}

.stage[data-draft-loop="arena-agentes"][data-format="vertical"] .draft-graphic[data-mode="valorant"] .draft-side {
  background: #0c151db0;
}

.stage[data-draft-loop="arena-agentes"] .draft-graphic[data-mode="valorant"] .draft-slot {
  --draft-card: #141f28a8;
  --draft-card-name: #121b22dc;
  background: transparent;
  box-shadow: inset 0 0 0 var(--draft-line) #a8c4ce38;
}

.stage[data-draft-loop="arena-agentes"] .draft-graphic[data-mode="valorant"] .draft-slot[data-filled] .draft-slot-face {
  background: radial-gradient(ellipse at 55% 78%, #33576abf, #152430cb 80%);
}

.stage[data-draft-loop="arena-agentes"] .draft-graphic[data-mode="valorant"] .draft-slot[data-latest] {
  --draft-card-name: #352329ee;
  color: #fff1ed;
}

.stage[data-draft-loop="arena-agentes"] .draft-slot[data-latest]::after {
  inset: 0 auto 0 0;
  width: max(2px, .19cqw);
  height: auto;
}

.stage[data-draft-loop="arena-agentes"] .draft-graphic[data-mode="valorant"]
  .draft-feature:not([data-placement="compact"]) .draft-feature-art {
  background: radial-gradient(ellipse at 74% 26%, #31566a, #111e28 72%);
}

@keyframes backdrop-light-drift {
  from { transform: translate(-10%, 3%); }
  to { transform: translate(7%, -5%); }
}

@media (prefers-reduced-motion: no-preference) {
  .stage[data-motion="on"] .scene-backdrop-custom[data-flare="sweep"] > .scene-backdrop-flare {
    animation: backdrop-light-drift 14s ease-in-out infinite alternate;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-loop-video { display: none; }
}

#screen-loop-field, #draft-loop-field, .screen-loop-source { grid-column: 1 / -1; }
.screen-loop-source { display: inline-block; margin-block: .2rem .45rem; color: var(--dim); font-size: .76rem; }
.screen-loop-source[hidden] { display: none; }

/* ---- frame-kit.css ---- */
/* «Marco de cámara»: the frame kit that public/frame-kit.js draws. Linked last on studio.html, obs.html and index.html.
   The opaque layers (.frame-kit, .fk-drop, .fk-face, .fk-edge, .fk-lip, .fk-shade, .fk-keyline, .fk-core) are painted
   once and never animate, so a take or an alert can never uncover the camera under the bezel. Only .fk-beam, .fk-glow,
   .fk-flare, .fk-flash, .fk-dot and .fk-tag animate, and only with transform and opacity. No backdrop-filter anywhere:
   in OBS the camera is under the browser source, so nothing here can blur it.
   Lengths are in cqw of the stage, like the rest of the overlay. */

.frame-kit {
  --fk-primary: var(--brand, #ff695b);
  --fk-secondary: var(--brand-alt, #a99cf8);
  --fk-ink: #f6f4f1;
  --fk-tag-face: #16181c;
  --fk-tag-type: var(--scene-display, 'Airelivo Display', 'Arial Narrow', sans-serif);
  --fk-drop: drop-shadow(0 calc(var(--fk-t) * .22) calc(var(--fk-t) * .42) #000000b8) drop-shadow(0 0 calc(var(--fk-t) * .08) #000000c0);
  --fk-shade: inset 0 calc(var(--fk-t) * .3) calc(var(--fk-t) * 1.1) #00000088, inset 0 0 calc(var(--fk-t) * .45) #00000070;
  position: absolute;
  z-index: 3;
  pointer-events: none;
  contain: layout style;
  /* A layer the creator fades or hides takes its frame with it. */
  opacity: var(--layer-opacity, 1);
}

.frame-kit > i, .frame-kit > .fk-deco { position: absolute; inset: 0; display: block; }
.frame-kit .fk-shape { position: absolute; inset: 0; display: block; background: inherit; }
.fk-drop { filter: var(--fk-drop); }
.fk-face { position: absolute; inset: 0; display: block; background: var(--fk-face); }
.fk-edge { background: var(--fk-edge, transparent); }
.fk-lip { background: var(--fk-lipfill, transparent); }
.fk-shade { box-shadow: var(--fk-shade); }
.fk-glow { opacity: var(--fk-glow-opacity, 0); filter: blur(var(--fk-glow-blur, calc(var(--fk-t) * .7))); }
.fk-glow > .fk-shape { background: var(--fk-glowfill, transparent); }
.fk-keyline { background: var(--fk-keyfill, var(--fk-lipfill)); }
.fk-core { background: var(--fk-corefill, transparent); }
.fk-deco { display: none !important; }

/* ── Estudio · grafito satinado ─────────────────────────────────────────────────────────────── */
.frame-kit[data-material="estudio"] {
  --fk-face:
    linear-gradient(135deg, #ffffff16 0%, transparent 26%, transparent 70%, #ffffff0c 100%),
    linear-gradient(180deg, #ffffff14, transparent 22%),
    repeating-linear-gradient(90deg, #ffffff06 0 .05cqw, transparent .05cqw .15cqw),
    linear-gradient(180deg, #6a707b 0%, #42474f 9%, #2b2f36 40%, #1c1f24 75%, #101114 100%);
  --fk-edge: linear-gradient(180deg, #ffffffa8 0%, #ffffff30 22%, #ffffff00 50%, #00000090 100%);
  --fk-lipfill: linear-gradient(180deg, color-mix(in srgb, var(--fk-primary) 70%, white) 0%, var(--fk-primary) 38%, color-mix(in srgb, var(--fk-primary) 80%, black) 100%);
  --fk-shade: inset 0 calc(var(--fk-t) * .3) calc(var(--fk-t) * 1.1) #00000080, inset 0 0 calc(var(--fk-t) * .3) color-mix(in srgb, var(--fk-primary) 30%, transparent);
}
.frame-kit[data-material="estudio"] .fk-accent { display: block !important; }
.frame-kit[data-material="estudio"] .fk-accent > .fk-shape {
  background: linear-gradient(135deg, color-mix(in srgb, var(--fk-primary) 55%, white), var(--fk-primary) 45%, color-mix(in srgb, var(--fk-primary) 75%, black));
}
.frame-kit[data-material="estudio"] .fk-led {
  display: block !important;
  inset: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--fk-secondary) 45%, color-mix(in srgb, var(--fk-secondary) 55%, black) 100%);
  box-shadow: 0 0 calc(var(--fk-t) * .45) var(--fk-secondary);
}

/* ── Neón · tubo de luz ─────────────────────────────────────────────────────────────────────── */
.frame-kit[data-material="neon"] {
  --fk-face:
    linear-gradient(180deg, #ffffff14, transparent 30%),
    linear-gradient(180deg, #20223b 0%, #10111f 45%, #08080f 100%);
  --fk-edge: linear-gradient(180deg, #ffffff40, #ffffff08 40%, #00000080);
  --fk-tube: var(--fk-primary);
  --fk-lipfill: var(--fk-tube);
  --fk-corefill: color-mix(in srgb, var(--fk-primary) 30%, white);
  --fk-glowfill: var(--fk-tube);
  --fk-glow-opacity: .72;
  --fk-glow-blur: calc(var(--fk-t) * .85);
  --fk-shade: inset 0 0 calc(var(--fk-t) * 1.1) color-mix(in srgb, var(--fk-primary) 34%, transparent), inset 0 calc(var(--fk-t) * .3) calc(var(--fk-t) * 1.1) #00000070;
}
.stage[data-theme="afterdark"] .frame-kit[data-material="neon"] {
  --fk-tube: linear-gradient(115deg, var(--fk-primary) 15%, color-mix(in srgb, var(--fk-primary) 50%, var(--fk-secondary)) 50%, var(--fk-secondary) 85%);
  --fk-corefill: linear-gradient(115deg, color-mix(in srgb, var(--fk-primary) 30%, white), color-mix(in srgb, var(--fk-secondary) 30%, white));
  --fk-face: linear-gradient(180deg, #ffffff12, transparent 30%), linear-gradient(180deg, #33203f 0%, #1d1229 50%, #120b19 100%);
}

/* ── Papel · paspartú ───────────────────────────────────────────────────────────────────────── */
.frame-kit[data-material="papel"] {
  --fk-face:
    repeating-linear-gradient(33deg, #6e5b4005 0 .04cqw, transparent .04cqw .11cqw),
    repeating-linear-gradient(-58deg, #ffffff0e 0 .03cqw, transparent .03cqw .09cqw),
    linear-gradient(160deg, #fbf6ec 0%, #f2e9d8 45%, #e6dbc6 100%);
  --fk-edge: linear-gradient(180deg, #ffffffd0, #00000020 70%, #0000003a);
  --fk-lipfill: linear-gradient(135deg, #fffdf8 0%, #f6efe2 48%, #d9ccb4 100%);
  --fk-drop: drop-shadow(0 calc(var(--fk-t) * .18) calc(var(--fk-t) * .5) #0000006e) drop-shadow(0 0 1px #00000040);
  --fk-shade: inset 0 calc(var(--fk-t) * .18) calc(var(--fk-t) * .45) #00000060;
  --fk-ink: #f6efe2;
  --fk-tag-face: #2b2226;
  --fk-tag-type: Georgia, 'Times New Roman', serif;
}
.frame-kit[data-material="papel"]:not([data-role="content"]) .fk-crop { display: block !important; inset: auto; background: #f4ecdc; box-shadow: 0 0 0 1px #00000055; }
.frame-kit[data-material="papel"] .fk-keyline-ink { display: block !important; background: color-mix(in srgb, #2b2226 82%, var(--fk-secondary)); }

/* ── Oro · pan de oro ──────────────────────────────────────────────────────────────────────── */
.frame-kit[data-material="oro"] {
  --fk-gold-1: #4f3408;
  --fk-gold-2: #a8781f;
  --fk-gold-3: #e2b452;
  --fk-gold-4: #fff0bf;
  --fk-face:
    repeating-linear-gradient(0deg, #ffffff10 0 .05cqw, transparent .05cqw .12cqw),
    linear-gradient(115deg, var(--fk-gold-1) 0%, var(--fk-gold-2) 11%, var(--fk-gold-4) 24%, var(--fk-gold-3) 33%, #b48526 48%,
      var(--fk-gold-3) 62%, var(--fk-gold-4) 72%, var(--fk-gold-2) 86%, var(--fk-gold-1) 100%);
  --fk-edge: linear-gradient(180deg, #fff6d6 0%, #fff6d640 30%, #2a1a0500 50%, #1a1003 100%);
  --fk-lipfill: linear-gradient(180deg, #0d0802, #3a2706);
  --fk-shade: inset 0 calc(var(--fk-t) * .25) calc(var(--fk-t) * .9) #000000a0, inset 0 0 calc(var(--fk-t) * .2) #00000090;
  --fk-ink: #f6efe0;
  --fk-tag-face: #0f0e11;
}
.frame-kit[data-material="oro"] .fk-caps-wrap { display: block !important; filter: drop-shadow(0 calc(var(--fk-t) * .18) calc(var(--fk-t) * .3) #000000a0); }
.frame-kit[data-material="oro"] .fk-caps {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(180deg, #fffbe9 0%, transparent 18%, transparent 78%, #3a2706 100%),
    linear-gradient(125deg, #6d4b0f 0%, #c99733 16%, #fff3c9 30%, #e6bb5c 42%, #9d7219 58%, #f1cf78 74%, #fff6d8 82%, #a57a1e 100%);
}
.stage[data-theme="arcana"] .frame-kit[data-material="oro"] .fk-gem,
.frame-kit[data-material="oro"][data-gems] .fk-gem {
  display: block !important;
  inset: auto;
  transform: rotate(45deg);
  border-radius: 12%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0 10%, color-mix(in srgb, var(--fk-primary) 70%, white) 22%, var(--fk-primary) 48%, color-mix(in srgb, var(--fk-primary) 45%, black) 100%);
  box-shadow: 0 0 0 calc(var(--fk-t) * .07) #5a3c0b, 0 0 calc(var(--fk-t) * .9) color-mix(in srgb, var(--fk-primary) 85%, transparent);
}
.stage[data-theme="arcana"] .frame-kit[data-material="oro"] .fk-crest,
.frame-kit[data-material="oro"][data-gems] .fk-crest {
  display: block !important;
  inset: auto;
  transform: rotate(45deg);
  background:
    radial-gradient(circle at 50% 50%, var(--fk-primary) 0 22%, transparent 24%),
    linear-gradient(135deg, #fff3c9, #c99733 45%, #6d4b0f);
  box-shadow: 0 0 calc(var(--fk-t) * .8) color-mix(in srgb, var(--fk-primary) 60%, transparent), 0 calc(var(--fk-t) * .15) calc(var(--fk-t) * .3) #000a;
}
.frame-kit[data-material="oro"][data-shape="corners"] { --fk-keyfill: linear-gradient(90deg, #c99733, #fff3c9 30%, #b98a2a 60%, #e6bb5c); }

/* ── Táctico · placa de metal ──────────────────────────────────────────────────────────────── */
.frame-kit[data-material="tactico"] {
  --fk-face:
    linear-gradient(180deg, #ffffff16, transparent 18%),
    repeating-linear-gradient(90deg, #ffffff07 0 .04cqw, transparent .04cqw .1cqw),
    repeating-linear-gradient(90deg, #00000014 0 .3cqw, transparent .3cqw .9cqw),
    linear-gradient(180deg, #585c66 0%, #373a41 16%, #25272d 55%, #17181c 100%);
  --fk-edge: linear-gradient(180deg, #ffffffb0 0%, #ffffff30 18%, #ffffff00 45%, #000000a0 100%);
  --fk-lipfill: linear-gradient(180deg, #050506, #2b2d33);
  --fk-tag-type: var(--scene-display, 'Airelivo Display', 'Arial Narrow', sans-serif);
}
.stage[data-theme="pulse"] .frame-kit[data-material="tactico"] {
  --fk-face:
    linear-gradient(180deg, #ffffff14, transparent 18%),
    repeating-linear-gradient(90deg, #ffffff07 0 .04cqw, transparent .04cqw .1cqw),
    linear-gradient(180deg, #4a4551 0%, #2e2a33 16%, #1f1c24 55%, #141217 100%);
}
.stage[data-theme="operations"] .frame-kit[data-material="tactico"] {
  --fk-face:
    linear-gradient(180deg, #ffffff12, transparent 18%),
    repeating-linear-gradient(90deg, #ffffff06 0 .04cqw, transparent .04cqw .1cqw),
    linear-gradient(180deg, #4a4e3f 0%, #30332a 18%, #22251d 55%, #151712 100%);
}
.frame-kit[data-material="tactico"] .fk-slash {
  display: block !important;
  inset: auto;
  transform: skewX(-32deg);
  transform-origin: 0 100%;
  border-radius: .03cqw;
}
.frame-kit[data-material="tactico"] .fk-slash-a {
  background: linear-gradient(90deg, color-mix(in srgb, var(--fk-primary) 60%, white), var(--fk-primary) 30%);
  box-shadow: 0 0 calc(var(--fk-t) * .6) color-mix(in srgb, var(--fk-primary) 75%, transparent);
}
.frame-kit[data-material="tactico"] .fk-slash-b {
  background: linear-gradient(270deg, color-mix(in srgb, var(--fk-secondary) 60%, white), var(--fk-secondary) 30%);
  box-shadow: 0 0 calc(var(--fk-t) * .6) color-mix(in srgb, var(--fk-secondary) 70%, transparent);
}
.frame-kit[data-material="tactico"] .fk-ticks {
  display: block !important;
  inset: auto;
  background: repeating-linear-gradient(90deg, #ffffff70 0 max(1px, .06cqw), transparent max(1px, .06cqw) calc(var(--fk-t) * .9));
  opacity: .75;
}
.frame-kit[data-material="tactico"] .fk-pip {
  display: block !important;
  inset: auto;
  background: var(--fk-secondary);
  box-shadow: 0 0 calc(var(--fk-t) * .5) var(--fk-secondary);
}
.stage[data-theme="operations"] .frame-kit[data-material="tactico"] .fk-hazard {
  display: block !important;
  inset: auto;
  background: repeating-linear-gradient(135deg, var(--fk-primary) 0 calc(var(--fk-t) * .28), #15170f calc(var(--fk-t) * .28) calc(var(--fk-t) * .56));
  box-shadow: inset 0 0 0 1px #00000080;
}
.frame-kit[data-material="tactico"] .fk-tag { clip-path: polygon(calc(var(--fk-fs) * .55) 0, 100% 0, 100% calc(100% - var(--fk-fs) * .55), calc(100% - var(--fk-fs) * .55) 100%, 0 100%, 0 calc(var(--fk-fs) * .55)); border-radius: 0; }

/* ── Retransmisión · raíl de tele ───────────────────────────────────────────────────────────── */
.frame-kit[data-material="tele"] {
  --fk-face:
    linear-gradient(180deg, #ffffff70, transparent 40%) left bottom / 100% var(--fk-bottom) no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--fk-primary) 85%, white), var(--fk-primary) 45%, color-mix(in srgb, var(--fk-primary) 72%, black)) left bottom / 100% var(--fk-bottom) no-repeat,
    linear-gradient(180deg, #ffffff 0%, #eef2f4 35%, #c3ccd1 100%);
  --fk-edge: linear-gradient(180deg, #ffffff, #ffffff00 40%, #00000050);
  --fk-lipfill: #0b1013;
  --fk-ink: #0a1a10;
  --fk-tag-type: var(--scene-display, 'Airelivo Display', 'Arial Narrow', sans-serif);
}
.frame-kit[data-material="tele"] .fk-pip {
  display: block !important;
  inset: auto;
  border-radius: calc(var(--fk-t) * .2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fk-secondary) 70%, white), var(--fk-secondary));
  box-shadow: 0 calc(var(--fk-t) * .1) calc(var(--fk-t) * .3) #0006;
}

/* ── Línea fina ─────────────────────────────────────────────────────────────────────────────── */
.frame-kit[data-material="linea"] { --fk-face: transparent; --fk-lipfill: var(--fk-primary); --fk-drop: none; }
.frame-kit[data-material="linea"] .fk-lip { filter: none; }
.frame-kit[data-material="linea"] .fk-glow { --fk-glow-opacity: .55; --fk-glowfill: #000; --fk-glow-blur: calc(var(--fk-t) * 1.2); }

/* ── Name tag ──────────────────────────────────────────────────────────────────────────────── */
.frame-kit .fk-tag {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: calc(var(--fk-fs) * .45);
  max-width: calc(100% - 2 * var(--fk-along, 0px));
  padding: 0 calc(var(--fk-fs) * .8) 0 calc(var(--fk-fs) * .28);
  border-radius: calc(var(--fk-fs) * .22);
  background:
    linear-gradient(180deg, #ffffff22, transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--fk-tag-face) 82%, white), var(--fk-tag-face) 40%, color-mix(in srgb, var(--fk-tag-face) 80%, black));
  box-shadow: 0 calc(var(--fk-fs) * .12) calc(var(--fk-fs) * .4) #000000a0, inset 0 0 0 max(1px, .04cqw) #ffffff1c;
  color: var(--fk-ink);
  font: 700 var(--fk-fs) / 1 var(--fk-tag-type);
  letter-spacing: .02em;
  white-space: nowrap;
}
.frame-kit .fk-tag::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--fk-fs) * .16);
  border-radius: inherit;
  background: var(--fk-primary);
}
.frame-kit .fk-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--fk-fs) * 1.4);
  height: calc(var(--fk-fs) * 1.4);
  margin-left: calc(var(--fk-fs) * .12);
  border-radius: calc(var(--fk-fs) * .18);
  background: color-mix(in srgb, var(--fk-primary) 22%, #0d0e10);
  color: var(--fk-primary);
  font-size: .9em;
}
.frame-kit .fk-mark:has(img) { background: transparent; }
.frame-kit .fk-mark img { width: 100%; height: 100%; object-fit: contain; }
.frame-kit .fk-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-top: .06em; }
.frame-kit .fk-dot {
  flex: none;
  width: calc(var(--fk-fs) * .42);
  height: calc(var(--fk-fs) * .42);
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 calc(var(--fk-fs) * .35) #ff3b3bcc;
}
.frame-kit .fk-tag[data-look="dark"] { --fk-tag-face: #121316; --fk-ink: #f6f4f1; }
.frame-kit .fk-tag[data-look="paper"] { --fk-tag-face: #efe9df; --fk-ink: #1f1a1c; }
.frame-kit .fk-tag[data-look="accent"] { --fk-tag-face: var(--fk-primary); --fk-ink: #0d0d0f; }
.frame-kit[data-material="papel"] .fk-tag { font-style: italic; font-weight: 700; letter-spacing: .01em; border-radius: 0; }
.frame-kit[data-material="papel"] .fk-tag::before { background: var(--fk-secondary); }
.frame-kit[data-material="papel"] .fk-mark { background: #f2e9d8; color: #2b2226; border-radius: 0; }
.frame-kit[data-material="oro"] .fk-tag {
  border-radius: 0;
  clip-path: polygon(calc(var(--fk-fs) * .5) 0, 100% 0, calc(100% - var(--fk-fs) * .5) 100%, 0 100%);
  padding-left: calc(var(--fk-fs) * .75);
  padding-right: calc(var(--fk-fs) * 1.1);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: inset 0 max(1px, .06cqw) #e2b452;
}
.frame-kit[data-material="oro"] .fk-tag::before { width: calc(var(--fk-fs) * .62); background: linear-gradient(115deg, #a8781f, #fff0bf 45%, #e2b452); }
.frame-kit[data-material="oro"] .fk-mark { background: #1d1a15; color: #e2b452; }
.frame-kit[data-material="tactico"] .fk-tag { text-transform: uppercase; letter-spacing: .07em; padding-left: calc(var(--fk-fs) * .5); }
.frame-kit[data-material="tactico"] .fk-tag::before { width: calc(var(--fk-fs) * .3); border-radius: 0; }
.frame-kit[data-material="tactico"] .fk-dot { background: var(--fk-secondary); box-shadow: 0 0 calc(var(--fk-fs) * .4) var(--fk-secondary); }
.frame-kit[data-material="tele"] .fk-tag[data-docked] {
  background: none;
  box-shadow: none;
  color: var(--fk-ink);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.frame-kit[data-material="tele"] .fk-tag[data-docked]::before { display: none; }
.frame-kit[data-material="tele"] .fk-tag[data-docked] .fk-mark { background: #0b1013; color: var(--fk-primary); }
.frame-kit[data-material="tele"] .fk-tag[data-look="theme"]:not([data-docked]) { --fk-ink: #f6f4f1; }
.frame-kit[data-material="neon"] .fk-tag {
  --fk-tag-face: #0c0d18;
  box-shadow: 0 0 0 max(1px, .06cqw) var(--fk-primary), 0 0 calc(var(--fk-fs) * .6) color-mix(in srgb, var(--fk-primary) 55%, transparent), 0 calc(var(--fk-fs) * .12) calc(var(--fk-fs) * .4) #000a;
  text-shadow: 0 0 calc(var(--fk-fs) * .35) color-mix(in srgb, var(--fk-primary) 70%, transparent);
}
.frame-kit[data-material="neon"] .fk-tag::before { display: none; }
.frame-kit[data-material="neon"] .fk-dot { background: var(--fk-primary); box-shadow: 0 0 calc(var(--fk-fs) * .5) var(--fk-primary); }

/* ── Light ─────────────────────────────────────────────────────────────────────────────────── */
.fk-light { overflow: hidden; }
.fk-beam { position: absolute; display: block; opacity: 0; }
.stage[data-motion="on"] .frame-kit[data-light="sheen"] .fk-beam {
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 26%;
  opacity: 1;
  background: linear-gradient(90deg, transparent, #ffffff00 20%, #ffffffd8 50%, #ffffff00 80%, transparent);
  transform: translateX(-160%) skewX(-22deg);
  animation: fk-sheen var(--fk-speed, 6.5s) cubic-bezier(.45, .05, .35, 1) infinite;
  will-change: transform;
}
.stage[data-motion="on"] .frame-kit[data-material="oro"][data-light="sheen"] .fk-beam { background: linear-gradient(90deg, transparent, #fff6d200 20%, #fffbeef0 50%, #fff6d200 80%, transparent); }
.stage[data-motion="on"] .frame-kit[data-light="chase"] .fk-beam {
  top: 50%;
  left: 50%;
  width: 160%;
  aspect-ratio: 1;
  opacity: 1;
  background: conic-gradient(from 0deg, transparent 0deg 292deg, color-mix(in srgb, var(--fk-primary) 70%, transparent) 334deg, #ffffff 352deg, transparent 360deg);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: fk-chase var(--fk-speed, 6.5s) linear infinite;
  will-change: transform;
}
.stage[data-motion="on"] .frame-kit[data-light="pulse"] .fk-beam {
  inset: 0;
  background: color-mix(in srgb, var(--fk-primary) 45%, white);
  animation: fk-breathe calc(var(--fk-speed, 6.5s) * .55) ease-in-out infinite alternate;
  will-change: opacity;
}
.stage[data-motion="on"] .frame-kit[data-light="pulse"] .fk-glow { animation: fk-bloom calc(var(--fk-speed, 6.5s) * .55) ease-in-out infinite alternate; will-change: opacity; }
.stage[data-motion="on"] .frame-kit .fk-dot { animation: fk-dot 1.6s ease-in-out infinite; }

@keyframes fk-sheen {
  0% { transform: translateX(-160%) skewX(-22deg); }
  34%, 100% { transform: translateX(520%) skewX(-22deg); }
}
@keyframes fk-chase { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes fk-breathe { from { opacity: 0; } to { opacity: .55; } }
@keyframes fk-bloom { from { opacity: calc(var(--fk-glow-opacity, .7) * .55); } to { opacity: var(--fk-glow-opacity, .7); } }
@keyframes fk-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Entrance and alert ────────────────────────────────────────────────────────────────────── */
/* Entrance: program takes only. The opaque bezel is never animated, so the camera under it never shows. */
.frame-kit[data-entrance] { --fk-alert: var(--fk-primary); }
.stage[data-motion="on"] .frame-kit[data-entrance] > .fk-flare { animation: fk-enter 900ms cubic-bezier(.15, .7, .3, 1) both; }
.stage[data-motion="on"] .frame-kit[data-entrance] .fk-tag { animation: fk-tag-in 380ms 200ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fk-enter { 0% { opacity: 0; } 18% { opacity: .6; } 100% { opacity: 0; } }
@keyframes fk-tag-in { from { opacity: 0; transform: translateY(35%); } }

/* Alert (frame-kit.js flashFrames): after the entrance rules, so at equal specificity an alert during an entrance
   wins. When it ends the tag has no animation left to restart: data-entrance is gone by then. */
.fk-flare { opacity: 0; filter: blur(calc(var(--fk-t) * .45)); }
.frame-kit > .fk-flash { opacity: 0; background: #fff; }
.fk-flare > .fk-shape { background: var(--fk-alert, #ffffff); }
[data-frame-alert] .frame-kit { --fk-alert: var(--fk-primary); }
[data-frame-alert="raid"] .frame-kit { --fk-alert: var(--fk-secondary); }
[data-frame-alert="cheer"] .frame-kit { --fk-alert: #ffc94a; }
.stage[data-motion="on"][data-frame-alert] .frame-kit .fk-flare,
[data-frame-alert] .stage[data-motion="on"] .frame-kit .fk-flare { animation: fk-flare 1100ms cubic-bezier(.15, .7, .3, 1) both; }
.stage[data-motion="on"][data-frame-alert] .frame-kit .fk-tag,
[data-frame-alert] .stage[data-motion="on"] .frame-kit .fk-tag { animation: fk-bump 600ms cubic-bezier(.3, 1.6, .5, 1) both; }
.stage[data-motion="on"][data-frame-alert] .frame-kit .fk-flash,
[data-frame-alert] .stage[data-motion="on"] .frame-kit .fk-flash { animation: fk-flash 700ms ease-out both; }
@keyframes fk-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fk-flare {
  0% { opacity: 0; transform: scale(1); }
  14% { opacity: .9; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1.03); }
}
@keyframes fk-bump { 0% { transform: none; } 35% { transform: translateY(-18%); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .frame-kit, .frame-kit * { animation: none !important; }
  .frame-kit .fk-beam { opacity: 0 !important; }
}

/* ── Takeover ─────────────────────────────────────────────────────────────────────────────────
   When a frame layer carries a kit, every older frame decoration (overlay.css base frame, theme and pack brackets,
   broadcast-live.css inset shadow, camera-borders.css, airelivo-frames.css, plate, template label) steps aside.
   !important only on these few properties. */
.stage .layer[data-kind="frame"][data-frame-kit] > .layer-visual {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  clip-path: none !important;
  filter: none !important;
}
.stage .layer[data-kind="frame"][data-frame-kit] > .layer-visual::before,
.stage .layer[data-kind="frame"][data-frame-kit] > .layer-visual::after { content: none !important; display: none !important; }
.stage .layer[data-kind="frame"][data-frame-kit] > .layer-visual > .layer-text,
.stage .layer[data-kind="frame"][data-frame-kit] .frame-border,
.stage .layer[data-kind="frame"][data-frame-kit] .channel-signature { display: none !important; }
.stage .layer[data-kind="frame"][data-frame-kit] > .frame-kit { z-index: 3; }

/* Names are drawn only by the kit tag: no frame shows its layer text, with or without a kit. */
.stage .layer[data-kind="frame"] > .layer-visual > .layer-text { display: none !important; }
/* Keeps the kit's z-index inside its layer, so a headline above the frame stays on top. */
.stage .layer[data-kind="frame"][data-frame-kit] { isolation: isolate; }

/* Studio edit mode: the selection ring and the resize handle sit above the bezel. */
.stage .layer[data-editable][data-frame-kit] > .resize-handle { z-index: 4; }
.stage .layer[data-editable][data-frame-kit]::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.stage .layer[data-editable][data-frame-kit]:hover::after { outline: 1px dashed #fff8; outline-offset: -1px; }
.stage[data-theme="editorial"] .layer[data-editable][data-frame-kit]:hover::after { outline-color: #352532a8; }
.stage .layer[data-editable][data-frame-kit].selected::after { outline: 1px solid var(--scene-focus); outline-offset: -1px; }

/* The chat inside a frame keeps clear of the bezel on each side (frame-kit.js sets --frame-inside-*). */
.stage .layer[data-frame-kit] .twitch-chat {
  padding: calc(.75em + var(--frame-inside-top, 0px)) calc(.75em + var(--frame-inside-right, 0px))
    calc(.75em + var(--frame-inside-bottom, 0px)) calc(.75em + var(--frame-inside-left, 0px));
}

/* ---- landing-transitions.css ---- */
/* The «Transiciones» section of the home page (#transiciones). The page does not load this file: tools/build-landing.mjs
   joins it, last, into public/landing.css. The transitions themselves are drawn by program-transitions.css, the
   overlay's own sheet; this file only lays out the section. Its classes, all prefixed «transition»:
   .transitions (the section) · .transitions-heading · .transitions-pause · .transition-grid · .transition-card
   ([data-featured] for the stinger, [data-state] set by landing-transitions.js) · .transition-media · .transition-screen
   · .transition-chip · .transition-play · .transition-play-text · .transition-copy · .transition-tag · .transition-name
   · .transition-description · .transition-direction · .transition-directions · .transition-direction-choice
   · .transitions-notes */
.transitions { border-bottom: 1px solid #2e3034; }
.transitions-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.transitions-heading .section-heading { margin-bottom: 0; }
.transitions-pause { flex: none; min-height: 2.6rem; cursor: pointer; }
.transitions-pause[hidden] { display: none; }

.transition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.transition-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--stroke); border-radius: .58rem; }
.transition-card[data-featured] {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center;
  border-color: #5b4040; background: radial-gradient(ellipse 70% 120% at 100% 0%, #3a2427, transparent 70%), #1b1a1e;
}
.transition-media { position: relative; min-width: 0; }
.transition-card[data-featured] .transition-media { align-self: stretch; display: grid; align-items: center; background: #0c0d0f; }
.transition-card[data-featured] .transition-screen { border-bottom: 0; }
.transition-screen { background: #141519; }

.transition-chip {
  display: inline-block; max-width: 100%; margin-top: .4rem; padding: .2rem .5rem; border: 1px solid #3c3f45; border-radius: 1rem;
  background: #232529; color: #ebe7e5; font: 650 .7rem/1.3 ui-monospace, "Cascadia Mono", monospace;
}
.transition-chip[hidden] { display: none; }
.transition-play {
  position: absolute; z-index: 1; right: .55rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.5rem; padding: .45rem .8rem; border: 1px solid #ff7b6fb0; border-radius: .4rem; background: #101113e8; color: var(--ink);
  font-size: .82rem; font-weight: 750; cursor: pointer;
}
.transition-play::before { content: ""; width: 0; height: 0; border-block: .32rem solid transparent; border-inline-start: .5rem solid var(--coral); }
.transition-play:hover { border-color: var(--coral); color: #fff0ed; }
.transition-play[aria-disabled="true"] { opacity: .55; cursor: default; }
.transition-play[hidden] { display: none; }

.transition-copy { padding: .85rem 1rem 1rem; }
.transition-card[data-featured] .transition-copy { padding: clamp(1.2rem, 2.6vw, 2.3rem); }
.transition-tag { margin-bottom: .55rem; color: var(--coral); font: 700 .74rem/1.2 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.section .transition-card[data-featured] .transition-name { font-size: clamp(1.6rem, 2.5vw, 2.25rem); letter-spacing: -.045em; line-height: 1.05; }
.transition-description { margin-top: .3rem; font-size: .92rem; line-height: 1.55; }
.transition-card[data-featured] .transition-description { margin-top: .65rem; font-size: 1rem; line-height: 1.6; }
.transition-direction { margin-top: .45rem; color: #d2d1d4; font-size: .84rem; line-height: 1.45; }
.transition-card[data-featured] .transition-direction { margin-top: .8rem; font-size: .92rem; }

.transition-directions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.transition-direction-choice {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--stroke); border-radius: .4rem;
  background: #212328; color: var(--ink); font-size: 1.15rem; font-weight: 700; line-height: 1; cursor: pointer;
  transition: color .16s, background-color .16s, border-color .16s;
}
.transition-direction-choice:hover { background: #2a2c31; border-color: #787176; }
.transition-direction-choice[aria-pressed="true"] { border-color: var(--coral); background: #37272a; color: #fff0ed; }
/* The direction the stinger is taking now, while none is chosen. */
.transition-direction-choice[data-current] { box-shadow: inset 0 -2px var(--coral); }

.transitions-notes { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.6rem; margin-top: 1.4rem; }
.transitions-notes p { font-size: .88rem; }
.transitions-notes a { margin-top: .2rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #ff7b6f99; text-underline-offset: .2em; }
.transitions-notes a:hover { color: var(--coral); }

@media (max-width: 67rem) {
  .transition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .transition-card[data-featured] { grid-template-columns: 1fr; }
}
/* Phones: two small examples a row, so the nine fit in about two screens. */
@media (max-width: 34rem) {
  .transition-grid { gap: .55rem; }
  .transition-copy { padding: .6rem .65rem .75rem; }
  .transition-card[data-featured] .transition-copy { padding: .9rem 1rem 1.05rem; }
  .section .transition-card:not([data-featured]) .transition-name { font-size: .98rem; }
  .transition-card:not([data-featured]) .transition-description { font-size: .8rem; line-height: 1.45; }
  .transition-card:not([data-featured]) .transition-direction { font-size: .74rem; }
  .transition-card:not([data-featured]) .transition-chip { padding-inline: .4rem; font-size: .64rem; }
  /* «Del tema» names a style and its transition: one line or two here. Room for two, so the text below never jumps. */
  .transition-card[data-transition="theme"] .transition-chip { display: inline-flex; align-items: center; min-height: calc(2 * 1.3em + .4rem + 2px); }
  /* On the small pictures «Ver» is just the play sign (its label still names the transition). */
  .transition-card:not([data-featured]) .transition-play { right: .35rem; bottom: .35rem; justify-content: center; width: 2rem; min-height: 2rem; padding: 0; }
  .transition-card:not([data-featured]) .transition-play-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .transition-direction-choice { transition: none; }
}
