:root {
  --stage: #160F26;
  --panel: #21183A;
  --panel-2: #2A2048;
  --line: #3A2D5A;
  --text: #F4ECF8;
  --muted: #A596BE;
  --amber: #FFB547;
  --amber-ink: #2B1A00;
  --live: #F0508A;
  --bad: #FF7A6B;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--body); color: var(--text); background: var(--stage); font-size: 16px; line-height: 1.45; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Control ---------- */
.control { min-height: 100%; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line); }
.bar .name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin-right: auto; }
.screen-status { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.screen-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.screen-status.on .dot { background: #5FD38D; box-shadow: 0 0 0 4px rgba(95,211,141,.18); }
.screen-status.warn .dot { background: var(--amber); }
.screen-status.on { color: var(--text); }

.user { display: flex; align-items: center; gap: 0.5rem; padding-left: 1rem; border-left: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.user img { width: 28px; height: 28px; border-radius: 50%; }
.user span { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { width: min(100%, 26rem); text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem 1.6rem; }
.login-logo { width: 96px; height: 96px; }
.login-card h1 { font-family: var(--display); font-weight: 800; font-size: 2.2rem; margin: 0.8rem 0 0.4rem; }
.login-sub { color: var(--muted); margin: 0 0 1.6rem; }
.login-card .msg { margin: 1rem 0 0; min-height: 1.4em; }

.warning { margin: 1rem 1.5rem 0; padding: 0.9rem 1rem; border-left: 4px solid var(--bad); background: rgba(255,122,107,.1); }
.files-warning { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-left-color: var(--amber); background: rgba(255,181,71,.1); }
.warning code { background: rgba(0,0,0,.3); padding: 0.1rem 0.35rem; border-radius: 4px; }

.grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.btn { border: 1px solid var(--line); background: var(--panel-2); padding: 0.6rem 1rem; border-radius: 10px; cursor: pointer; font-weight: 700; }
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); border-color: var(--amber); }
.btn.big { padding: 0.95rem 1.4rem; font-size: 1.1rem; }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; font-weight: 400; }
.btn.ghost { background: transparent; }
a.btn { display: inline-block; text-decoration: none; color: inherit; }
a.btn.primary { color: var(--amber-ink); }
.confirm { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.6rem; max-width: 26rem; }
.confirm::backdrop { background: rgba(10,6,20,.7); }
.confirm p { margin: 0 0 1rem; font-size: 1.05rem; }
.confirm .row { justify-content: flex-end; }
.shortcuts { max-width: 30rem; }
.shortcuts h2 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0 0 1rem; }
.shortcuts dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.2rem; margin: 0 0 1rem; }
.shortcuts dt { font-weight: 700; color: var(--amber); white-space: nowrap; }
.shortcuts dd { margin: 0; }
.shortcuts .sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }

.search > label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.files-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; margin-right: 0.5rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--amber); font-size: 0.75rem; font-weight: 700; vertical-align: 0.1em; }
.drop-overlay { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(22,15,38,.88); border: 4px dashed var(--amber); pointer-events: none; }
.drop-overlay p { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--text); margin: 0; }
.search .check { margin-top: 0; margin-right: auto; }
.results { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.results li { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 0.8rem; align-items: center; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.results img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--panel); }
.results .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results .s { font-size: 0.85rem; color: var(--muted); }
.results li.rejected img { opacity: .4; }
.results li.rejected .t { color: var(--muted); }
.results .why { font-size: 0.85rem; color: var(--bad); margin-top: 0.15rem; }
/* Reproductor de prueba de validate.js: solo prepara videos, fuera de la vista. */
#ytProbe { position: fixed; left: -10000px; top: 0; width: 200px; height: 200px; border: 0; }
textarea, input[type=text], input[type=number], input[type=search], input[type=password] { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; }
textarea { resize: vertical; min-height: 80px; }
.row { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem; flex-wrap: wrap; }
.msg { color: var(--muted); font-size: 0.95rem; }
.msg.bad { color: var(--bad); }

.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 0.4rem 0.9rem 0.7rem; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--amber); }
.tab-count { font-family: var(--body); font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.queue-head { display: flex; justify-content: flex-end; margin: 0 0 0.6rem; }
.queue { list-style: none; margin: 0; padding: 0; }
.queue li { display: grid; grid-template-columns: 1rem 1.6rem minmax(0,1fr) auto; gap: 0.6rem; align-items: center; padding: 0.7rem 0.6rem 0.7rem 0.3rem; border-bottom: 1px solid var(--line); }
.queue .num { font-family: var(--display); font-weight: 700; color: var(--muted); text-align: right; }
.queue .grip { color: var(--muted); font-size: 1.1rem; line-height: 1; text-align: center; user-select: none; }
.queue li[draggable="true"] { cursor: grab; }
.queue li[draggable="true"]:hover .grip { color: var(--text); }
.queue li.dragging { opacity: .45; }
.queue li.drop-before { box-shadow: inset 0 3px 0 var(--amber); }
.queue li.drop-after { box-shadow: inset 0 -3px 0 var(--amber); }
.queue-end { margin-top: 0.6rem; padding: 0.9rem; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: 0.9rem; }
.queue-end.drop-on { border-color: var(--amber); color: var(--text); }
.queue .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue .s { font-size: 0.85rem; color: var(--muted); }
.queue .who { color: var(--amber); cursor: pointer; }
.queue .who:hover { text-decoration: underline; }
.queue .singer-input { padding: 0.35rem 0.6rem; margin-bottom: 0.3rem; }
.now .singer { margin: -0.7rem 0 1rem; color: var(--amber); font-weight: 700; font-size: 1.1rem; }
.queue .acts { display: flex; gap: 0.35rem; }
.queue li.playing { background: linear-gradient(90deg, rgba(240,80,138,.16), transparent); }
.queue li.playing .num { color: var(--live); }
.queue li.playing .s { color: var(--live); font-weight: 700; }
.queue li.played .t { color: var(--muted); font-weight: 400; }
.queue li.error .s { color: var(--bad); }
.empty { color: var(--muted); padding: 1rem 0; }

.now { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.now .label { margin: 0 0 0.3rem; color: var(--muted); }
.now.live .label { color: var(--live); font-weight: 700; }
.now h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.12; margin: 0 0 1.1rem; overflow-wrap: anywhere; }
.progress { height: 12px; background: var(--stage); border-radius: 6px; overflow: hidden; cursor: pointer; }
.progress > div { height: 100%; width: 0; background: var(--live); }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1rem; }
.check { display: flex; gap: 0.55rem; align-items: center; cursor: pointer; margin-top: 0.3rem; }
.check input { width: 18px; height: 18px; accent-color: var(--amber); }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0; }

.message-card { margin-top: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.4rem 1.2rem; }
.message-card h2 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.7rem; }
.message-card select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.7rem; font: inherit; color: inherit; }
.message-card .msg.on { color: var(--live); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; }
.chip:hover { border-color: var(--amber); }
.chip-text { background: transparent; border: 0; padding: 0.3rem 0.3rem 0.3rem 0.8rem; font-size: 0.85rem; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-text:hover { color: var(--amber); }
.chip-x { background: transparent; border: 0; padding: 0.3rem 0.65rem 0.3rem 0.35rem; font-size: 1rem; line-height: 1; color: var(--muted); cursor: pointer; }
.chip-x:hover { color: var(--bad); }
.reactions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.reaction { font-size: 1.9rem; line-height: 1; width: 3.4rem; height: 3.4rem; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: transform .08s ease; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.reaction:hover { border-color: var(--amber); }
.reaction { position: relative; }
.reaction .key { position: absolute; right: 4px; bottom: 2px; font-family: var(--body); font-size: 0.7rem; font-weight: 700; line-height: 1; color: var(--muted); }
.reaction:active { transform: scale(.9); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.card-head h2 { margin: 0; }
.react-editor { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.react-editor .sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.8rem; }
.react-list { list-style: none; margin: 0; padding: 0; }
.react-row { display: grid; grid-template-columns: 3.4rem repeat(4, minmax(0, 1fr)) 9.4rem; gap: 0.4rem; align-items: center; padding: 0.35rem 0; }
.react-head { font-size: 0.75rem; color: var(--muted); padding-bottom: 0; }
.react-row input { width: 3.4rem; height: 2.6rem; text-align: center; font-size: 1.5rem; padding: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.react-row select { min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.3rem; font: inherit; font-size: 0.85rem; color: inherit; }
.react-row .acts { display: flex; gap: 0.3rem; }
.react-editor > .msg.bad { color: var(--bad); }
.lights-status { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.lights-status.ok { color: #5FD38D; }
.lights-status.bad { color: var(--bad); }
.lights { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.lights .btn.on { border-color: var(--amber); color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.lights .btn.off-on { border-color: var(--bad); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.settings { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 18px; padding: 0 1.4rem; }
.settings summary { cursor: pointer; padding: 1rem 0; font-weight: 700; }
.settings .field, .screen-editor .field { margin-bottom: 1rem; }
.settings .field > label:first-child, .screen-editor .field > label:first-child { display: block; margin-bottom: 0.35rem; }
.settings .sub, #panelScreens .sub { color: var(--muted); font-size: 0.85rem; margin: 0.3rem 0 0; }
.settings .sub.ok { color: #5FD38D; }
.settings .sync { margin: 0 0 1rem; }
.color-fields { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.color-fields > div > label { display: block; margin-bottom: 0.35rem; }
.color-fields .sub { flex-basis: 100%; }
.color-row { display: flex; align-items: center; gap: 0.6rem; }
.range-row { display: flex; align-items: center; gap: 0.8rem; }
.range-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--amber); }
.color-row input[type=color] { width: 56px; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.midi-map { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.midi-map li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0.8rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.midi-map .t { font-weight: 700; }
.midi-map .s { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.midi-map li.learning .s { color: var(--amber); font-weight: 700; }
.midi-map .acts { display: flex; gap: 0.35rem; }
.settings .midi-note { margin: 0.8rem 0 1.2rem; }
.times .vol { color: var(--text); }
.settings .sub.bad { color: var(--bad); }
.key-row { display: flex; gap: 0.6rem; align-items: center; }
.key-row input { flex: 1; min-width: 0; }
.screens { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.screens li { display: grid; grid-template-columns: 1rem 112px minmax(0,1fr) auto; gap: 0.8rem; align-items: center; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); }
.screens .grip { color: var(--muted); font-size: 1.1rem; line-height: 1; text-align: center; user-select: none; }
.screens li[draggable="true"] { cursor: grab; }
.screens li[draggable="true"]:hover .grip { color: var(--text); }
.screens li.dragging { opacity: .45; }
.screens li.drop-before { box-shadow: inset 0 3px 0 var(--amber); }
.screens li.drop-after { box-shadow: inset 0 -3px 0 var(--amber); }
.screens li.active { background: linear-gradient(90deg, rgba(255,181,71,.12), transparent); }
.screens .thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 6px; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 6px; font-family: var(--display); font-weight: 800; font-size: 0.8rem; color: #FFF6EA; text-align: center; }
.screens .thumb img { max-width: 70%; max-height: 70%; }
.screens .thumb.light { color: #160F26; }
.screens .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screens .s { font-size: 0.85rem; color: var(--muted); }
.screens .s.warn { color: var(--amber); }
.screens .acts { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.editor-head h2 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-editor > .sub { margin: 0 0 1rem; }
.type-pick { border: 0; padding: 0; margin: 0 0 1rem; }
.type-pick legend { padding: 0; margin-bottom: 0.35rem; }
.type-pick .check input { accent-color: var(--amber); }
.media-row { margin-top: 0; }
#scrBgVol { width: 100%; accent-color: var(--amber); }
.screen-editor > .media-note { margin: -0.4rem 0 1rem; }
.editor-sub { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 1.6rem 0 0.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
#fallbackHead .sub { margin: 0 0 1rem; }
.logo-preview { max-height: 60px; max-width: 160px; background: #000; padding: 6px; border-radius: 8px; }

/* ---------- Output screen ---------- */
.output { background: #000; overflow: hidden; }
.output.active { cursor: none; }
#stageWrap { position: fixed; inset: 0; overflow: hidden; background: #000; }
/* Taller iframe pushes YouTube's top title bar and bottom watermark off-screen;
   on a 16:9 screen the video itself stays fully visible. */
#player { position: absolute; left: 0; width: 100%; top: -70px; height: calc(100% + 140px); border: 0; }
#fileVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#shield { position: fixed; inset: 0; z-index: 2; }
#idle, #curtain, #splash { position: fixed; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6vh 6vw; background: #000; }
#idle { background: var(--idle-bg, #000); transition: background-color .35s ease; }
/* Al cambiar de pantalla de espera, el contenido se desvanece y vuelve. */
#idle > *, #idle::before { transition: opacity .35s ease; }
#idle.switching > *, #idle.switching::before { opacity: 0; }
#idle::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(ellipse 38% 55% at 50% 0%, var(--glow-1, rgba(255,181,71,.30)), var(--glow-2, rgba(240,80,138,.10)) 45%, transparent 70%); animation: sweep 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sweep { from { transform: translateX(-14%) rotate(-6deg); } to { transform: translateX(14%) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { #idle::before { animation: none; } }
/* Capas: fondo, logo, resplandor y textos. El resplandor pasa por encima del
   logo para integrar logos con fondo (no transparentes); los textos quedan
   arriba de todo para que se lean nítidos. */
#idle > * { position: relative; z-index: 2; }
#idle::before { z-index: 1; }
#idle > #idleLogo { z-index: 0; }
/* Video de fondo de la pantalla de espera. No se ve hasta tener un cuadro
   listo (clase video-mode); mientras, o si falla, queda el diseño con imagen.
   Con video solo se muestra "Siguiente". */
#idle > #idleVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; background: #000; }
#idle:not(.video-mode) > #idleVideo { visibility: hidden; }
#idle.video-mode { background: #000; }
#idle.video-mode::before, #idle.video-mode > #idleLogo, #idle.video-mode > #idleBrand, #idle.video-mode > #idleTag { display: none; }
#idle.video-mode #idleNext { text-shadow: 0 2px 6px rgba(0,0,0,.95), 0 0 28px rgba(0,0,0,.85); }
#idleLogo { max-height: 30vh; max-width: 60vw; margin-bottom: 4vh; }
#idleBrand { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 11vw, 13rem); line-height: 0.92; letter-spacing: -0.035em; margin: 0; color: #FFF6EA; text-shadow: 0 0 60px var(--brand-glow, rgba(255,181,71,.35)); }
#idleTag { font-size: clamp(1.2rem, 2.4vw, 2.6rem); color: #D9CBE6; margin: 3vh 0 0; }
#idleNext { position: absolute; bottom: 7vh; left: 6vw; right: 6vw; font-size: clamp(1.1rem, 2vw, 2.2rem); color: var(--amber); margin: 0; }
#idleNext span { color: #FFF6EA; font-weight: 700; }
#idleNext #idleNextCon { color: inherit; font-weight: 400; }
/* Fondo claro elegido en ajustes: texto oscuro para que se lea. */
#idle.light-bg #idleBrand { color: #160F26; }
#idle.light-bg #idleTag { color: #2A2048; }
#idle.light-bg #idleNext { color: #6B3F00; }
#idle.light-bg #idleNext span { color: #160F26; }
#idle.light-bg #idleNext #idleNextCon { color: inherit; }
#curtain { background: rgba(0,0,0,.88); z-index: 4; }
/* Mensaje en pantalla. En la espera: grande y centrado, en lugar del logo y
   el nombre (con video, sobre un velo oscuro). Durante una canción: franja
   arriba, para no tapar la letra. Aparece y desaparece con un fundido. */
#message { position: fixed; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s ease; display: flex; align-items: center; justify-content: center; text-align: center; }
#message.on { opacity: 1; }
#message p { margin: 0; font-family: var(--display); font-weight: 800; color: #FFF6EA; overflow-wrap: anywhere; }
#message.big { inset: 0; padding: 6vh 6vw 16vh; }
#message.big p { font-size: clamp(3rem, 8vw, 10rem); line-height: 1; letter-spacing: -0.03em; max-width: 90vw; text-shadow: 0 0 60px var(--brand-glow, rgba(255,181,71,.35)); }
#message.big.over-video { background: rgba(0,0,0,.6); }
#message.big.dark-text p { color: #160F26; text-shadow: none; }
#message.banner { top: 0; left: 0; right: 0; padding: 2.2vh 4vw; background: rgba(10,6,20,.82); border-bottom: 3px solid var(--amber); }
#message.banner p { font-size: clamp(1.6rem, 3.6vw, 4rem); line-height: 1.1; }
/* Reacciones: emojis que salen disparados desde las esquinas de abajo. */
#reactions { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
#reactions span { position: absolute; left: 0; top: 0; line-height: 1; transform-origin: 50% 50%; will-change: transform, opacity; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* En la espera con mensaje, el logo, el nombre y el texto se desvanecen. */
#idle.msg-on > #idleLogo, #idle.msg-on > #idleBrand, #idle.msg-on > #idleTag { opacity: 0; }
#curtain p { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 8rem); margin: 0; color: #FFF6EA; }
#splash { z-index: 5; background: var(--stage); cursor: default; }
#splash h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 1rem; }
#splash p { color: var(--muted); max-width: 34rem; margin: 0 0 2rem; font-size: 1.15rem; }
