.boss-cinema { width: min(100%, 800px); position: relative; background: var(--ink); color: var(--cream); overflow: hidden; contain: layout paint; }
.boss-stage { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.boss-caption { display: flex; justify-content: space-between; padding: 16px 24px; font: 14px/1.6 var(--pixel); color: var(--yellow); }
.boss-dialogue { display: grid; min-height: 52px; align-items: center; text-align: center; }
.boss-line { grid-area: 1/1; padding: 8px; color: var(--cream); font: clamp(14px, 2vw, 20px)/1.6 var(--pixel); opacity: 0; }
.boss-line.final { color: var(--yellow); }
.boss-reactor { display: flex; align-items: center; gap: 16px; padding: 12px 24px; color: var(--cream); font: 14px/1.6 var(--pixel); }
.boss-reactor-track { flex: 1; height: 12px; background: var(--steel); }
.boss-reactor-track i { display: block; height: 100%; background: var(--yellow); transform-origin: left; clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
/* Delayed captions must not paint their first keyframe before their turn. */
.boss-cinema .first { animation: caption-cut 1.3s steps(1) forwards; }
.boss-cinema .second { animation: caption-cut 1.3s 1.3s steps(1) forwards; }
.boss-cinema .final { animation: caption-hold .125s 2.6s steps(1) forwards; }
.boot .boss-reactor-track i { animation: power-up 2.6s steps(12) both; }
.human-won .boss-reactor-track i { animation: power-down 2.7s steps(12) both; }
.machine-won .boss-reactor-track i { background: var(--red); animation: power-up 1.6s steps(10) both; }
.cinema-settled .boss-cinema * { animation: none !important; }
.cinema-settled .boss-line.final { opacity: 1; }
.cinema-settled .human-won .boss-reactor-track i { transform: scaleX(0); }
#screen-intro .match-intro { width: 100%; gap: 12px; padding: 16px 0; }
#intro-cinema { width: 100%; display: flex; justify-content: center; }
.boss-identification { display: flex; align-items: baseline; justify-content: center; gap: 16px; flex-wrap: wrap; }
#intro-model { color: var(--yellow); font: clamp(20px, 3vw, 32px)/1.6 var(--pixel); }
#intro-opponent { font: 14px/1.6 var(--mono); color: var(--cream60); }
.cinema-controls { display: flex; align-items: center; gap: 24px; }
#screen-end .boss-cinema { margin: 16px auto; max-width: 640px; }
.boss-play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.boss-preview-button { font: 14px/1.6 var(--mono); color: var(--cream60); display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; background: transparent; }
.boss-preview-button:hover { color: var(--yellow); }

/* Attract mode: a game title, grounded sprites, and a selection cursor, not website cards. */
body .arcade-home { margin-top: 20px; }
body .arcade-eyebrow { color: var(--cream60); font: 14px/1.8 var(--pixel); }
body .arcade-marquee { min-height: 265px; display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 20px 0 16px; border: 0; padding-bottom: 12px; }
.arcade-marquee::after { content: ''; position: absolute; bottom: 10px; height: 3px; inset-inline: 4%; background: var(--steel); }
body .arcade-marquee .arcade-sprite { width: 220px; height: 220px; flex-shrink: 0; object-fit: contain; image-rendering: pixelated; animation: none !important; transform: none !important; filter: none; }
body .arcade-marquee .human-sprite { width: 160px; height: 160px; }
body .character-control { display: flex; align-items: flex-end; flex-shrink: 0; padding: 0; border: 0; background: transparent; color: var(--lav); cursor: pointer; touch-action: manipulation; }
body .character-control:focus-visible { outline: 2px dashed var(--lav); outline-offset: 4px; }
body .arcade-wordmark { align-self: center; gap: 22px; }
body .arcade-wordmark .brand { color: var(--cream); font-size: 24px; letter-spacing: 6px; }
body .arcade-wordmark .game { font-size: clamp(40px, 6vw, 68px); color: var(--yellow); letter-spacing: -3px; }
.title-matchup { color: var(--cream); font: 14px/1.8 var(--mono); letter-spacing: 1px; }
.title-matchup > span { color: var(--red); padding-inline: 12px; }
body .arcade-home h2 { font: 14px/1.8 var(--pixel); margin: 24px 0 14px; }
body .arcade-play { color: var(--yellow); background: transparent; border: 0; font: 16px/1.8 var(--pixel); margin: 18px 0 4px; padding: 12px 24px; }
body .arcade-play span { color: var(--yellow); animation: start-cursor 1s steps(1) infinite; }
body .arcade-play:hover { color: var(--cream); background: transparent; }
body .arcade-caption { color: var(--cream40); }
body .mbtn { border: 0; color: var(--cream); background: transparent; }
body .mbtn:hover { color: var(--yellow); background: transparent; }
body .mbtn.solid { color: var(--ink); background: var(--yellow); }
body .topbar { min-height: 76px; padding-block: 16px; }
.brand-mascot { filter: grayscale(1); }
body .game-lobby { display: flex; flex-direction: column; width: fit-content; margin: 24px auto 0; gap: 0; }
body .lobby-card { display: flex; flex-direction: row; align-items: center; gap: 16px; border: 0; background: transparent; padding: 12px 8px; min-height: 52px; transition: none; }
.lobby-card::before { content: '>'; color: var(--yellow); font: 18px/1.5 var(--pixel); visibility: hidden; }
body .lobby-card:hover, body .lobby-card:focus-visible { color: var(--yellow); background: transparent; }
.lobby-card:hover::before, .lobby-card:focus-visible::before, .game-lobby:not(:has(:hover, :focus-visible)) .lobby-card:first-child::before { visibility: visible; }
body .lobby-card strong { font: 16px/1.6 var(--pixel); }
body .lobby-card:first-child { color: var(--yellow); }
body .arcade-home .arcade-links { display: flex; justify-content: center; gap: 28px; margin-top: 36px; }
body .arcade-home .arcade-links .arcade-link { color: var(--cream60); font: 14px/1.6 var(--mono); }
body .arcade-home .arcade-links .arcade-link:hover { color: var(--cream); }
body .lobby-card .lobby-category { grid-column: 3; grid-row: 1; color: var(--cream60); font: 14px/1.6 var(--mono); }
body .lobby-card > span:not(.lobby-category) { display: none; }
body .offline-games { opacity: .8; }
body .arcade-bottom { border: 0; margin-top: 24px; }
body .difficulty-option { border: 0; background: transparent; }
body .difficulty-option:has(:checked) { border: 0; background: var(--lav-dim); padding: 24px 18px; }
body .difficulty-option:has(:checked) strong { color: var(--yellow); }
body .difficulty-option input { accent-color: var(--yellow); }
body .screen-end-simple h2, body .match-setup h1 { color: var(--yellow); }
body .round-progress i.active { background: var(--yellow); }
@keyframes caption-cut { 0%,99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes caption-hold { to { opacity: 1; } }
@keyframes power-up { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
@keyframes power-down { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes start-cursor { 0%,65% { visibility: visible; } 66%,100% { visibility: hidden; } }
@media (max-width: 700px) {
  body .arcade-home { margin-top: 14px; }
  body .arcade-eyebrow { font: 14px/1.6 var(--mono); }
  body .arcade-marquee { min-height: 260px; flex-wrap: wrap; justify-content: space-around; padding-bottom: 10px; }
  body .arcade-wordmark { order: -1; width: 100%; gap: 12px; }
  body .arcade-wordmark .brand { font-size: 18px; letter-spacing: 3px; }
  body .arcade-wordmark .game { font-size: 40px; }
  body .arcade-marquee .arcade-sprite { width: 140px; height: 140px; }
  body .arcade-marquee .human-sprite { width: 110px; height: 110px; }
  body .arcade-home h2 { font: 14px/1.8 var(--pixel); }
  body .arcade-play { font-size: 14px; padding-inline: 0; }
  body .game-lobby { margin-top: 16px; }
  body .lobby-card { grid-template-columns: 16px 1fr; padding: 12px 0; gap: 6px; }
  body .lobby-card .lobby-category { grid-column: 2; grid-row: 2; }
  .boss-caption { font: 14px/1.6 var(--mono); padding: 8px; }
  .boss-line { font-size: 14px; }
  .boss-reactor { padding: 8px; gap: 8px; font: 14px/1.6 var(--mono); }
  .boss-identification { gap: 8px; }
  .cinema-controls { gap: 12px; flex-wrap: wrap; justify-content: center; }
}
/* Text-only bloom never filters the photo, map, or their ancestors. */
body :is(h1, h2, h3, p, span, strong, b, button, a, label, legend, summary, input, select, th, td, .arcade-eyebrow, .clock, .prompt, .roundlab, .modechip, .pts, .name, .feedback) {
  text-shadow: 0 0 2px color-mix(in srgb, var(--lav) 24%, transparent), 0 0 10px color-mix(in srgb, var(--lav) 18%, transparent) !important;
}
body :is(.stage, .geowrap, .trackwrap, .leaflet-container), body :is(.stage, .geowrap, .trackwrap, .leaflet-container) * {
  text-shadow: none !important;
}
body:not([data-screen='screen-game']):not([data-screen='screen-geo']):not([data-screen='screen-track']) .arcade-brand-button { display: none; }
body .topbar { justify-content: flex-end; }
body .topbar .arcade-brand-button { margin-right: auto; }
.screen-glass {
  position: fixed; inset: 8px; z-index: 1000; pointer-events: none;
  border-radius: 28px / 40px;
  border: 1px solid color-mix(in srgb, var(--cream) 8%, transparent);
  box-shadow: inset 1px 1px 2px color-mix(in srgb, var(--cream) 8%, transparent), inset -1px -1px 2px color-mix(in srgb, var(--lav) 7%, transparent) !important;
}
body .match-setup { max-width: 720px; margin: 16px auto 40px; }
body .match-setup > .arcade-link:first-child { margin-bottom: 24px; color: var(--cream60); }
body .match-setup h1 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; outline: none !important; }
body .match-setup > p { margin: 8px auto; }
body .difficulty-picker { margin: 28px 0 24px; }
body .difficulty-picker legend { text-align: center; width: 100%; font: 14px/1.6 var(--mono); color: var(--cream60); }
body .difficulty-option, body .difficulty-option:has(:checked) { padding: 16px; gap: 10px; align-items: center; text-align: center; background: transparent; border: 0; }
body .difficulty-option strong { color: var(--cream60); }
body .difficulty-option:has(:checked) strong { color: var(--lav); }
body #start-match {
  display: inline-flex; align-items: center; justify-content: center; gap: 24px;
  min-height: 72px; width: min(100%, 380px); padding: 20px 24px; margin: 8px 0 24px;
  color: var(--ink); background: var(--lav); font: clamp(18px, 2vw, 24px)/1.5 var(--pixel);
  text-shadow: none !important;
  box-shadow: 0 0 12px var(--phosphor-far), 0 0 36px color-mix(in srgb, var(--lav) 12%, transparent) !important;
}
body #start-match span { color: inherit; text-shadow: none !important; animation: none; }
body #start-match:hover { background: var(--cream); color: var(--ink); }
body #start-match:active { transform: translateY(2px); }
.match-method { max-width: 560px; margin: 0 auto; color: var(--cream60); font: 14px/1.6 var(--mono); }
.match-method summary { width: fit-content; margin: auto; }
body .match-disclosure { border: 0; padding-top: 12px; }
body #intro-heading { outline: none !important; }
body #intro-cinema .boss-cinema { max-width: 600px; }
@media (max-width: 700px) {
  .screen-glass { inset: 4px; border-radius: 20px / 28px; }
  body .topbar #mutebtn { margin-left: auto; }
  body .difficulty-options { flex-direction: row; gap: 0; }
  body .difficulty-option, body .difficulty-option:has(:checked) { padding: 12px 4px; }
  body .difficulty-option strong { font: 14px/1.6 var(--mono); }
  body .difficulty-option span { font-size: 14px; }
  body .match-setup { margin-top: 8px; }
  body #start-match { min-height: 64px; }
}
/* Halation belongs to luminous UI, never the timed image or map. */
:root {
  --phosphor-near: color-mix(in srgb, var(--lav) 52%, transparent);
  --phosphor-far: color-mix(in srgb, var(--lav) 24%, transparent);
}
body .arcade-home { padding-top: clamp(16px, 5vh, 56px); }
body .arcade-marquee { min-height: 300px; padding-bottom: 16px; }
body .arcade-marquee::after { height: 1px; background: var(--steel); opacity: .35; inset-inline: 8%; }
body .arcade-wordmark { gap: 28px; }
body .arcade-wordmark .brand { color: var(--cream); font-size: 20px; letter-spacing: 8px; }
body .arcade-wordmark .game { font-size: clamp(44px, 6.7vw, 84px); color: var(--lav); letter-spacing: -4px; }
body .title-matchup { color: var(--cream60); }
body .title-matchup > span { color: var(--lav); }
body .game-lobby { margin-top: 32px; }
body .lobby-card:first-child { color: var(--cream60); }
body .lobby-card { color: var(--cream60); }
body .lobby-card.menu-active { color: var(--lav); }
body .game-lobby .lobby-card::before { visibility: hidden; }
body .game-lobby .lobby-card.menu-active::before { visibility: visible; }
body .topbar .mbtn { font: 14px/1.6 var(--mono); color: var(--cream60); }
body .arcade-home .arcade-links { margin-top: 40px; }
body[data-crt='on'] .arcade-wordmark .game {
  text-shadow: 0 0 2px var(--lav), 0 0 10px var(--phosphor-near), 0 0 32px var(--phosphor-far), 0 0 64px var(--phosphor-far) !important;
}
body[data-crt='on'] :is(.arcade-wordmark .brand, .lobby-card.menu-active, .boss-line.final, #intro-model) {
  text-shadow: 0 0 2px var(--phosphor-near), 0 0 12px var(--phosphor-far) !important;
}
body[data-crt='on'] .arcade-marquee .arcade-sprite {
  filter: drop-shadow(0 0 2px var(--phosphor-near)) drop-shadow(0 0 9px var(--phosphor-far));
}
body[data-crt='on'] .boss-stage { filter: drop-shadow(0 0 3px var(--phosphor-far)); }
body[data-crt='on'] :is(#screen-title, #screen-intro, #screen-end) {
  position: relative; isolation: isolate;
}
body[data-crt='on'] :is(#screen-title, #screen-intro, #screen-end)::after {
  content: ''; pointer-events: none; position: absolute; inset: 0; z-index: 5;
  border-radius: 3% / 2%;
  background: repeating-linear-gradient(0deg, transparent 0 2px, color-mix(in srgb, var(--ink) 20%, transparent) 2px 3px);
  box-shadow: inset 0 0 55px 12px var(--ink) !important;
}
body[data-crt='on']:not([data-screen='screen-game']):not([data-screen='screen-geo'])::after { display: none !important; }
#screen-ignition { position: fixed; inset: 0; z-index: 1500; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; animation: ignition-away 1.05s both; }
#screen-ignition span { position: absolute; top: 50%; left: 7%; right: 7%; height: 2px; background: var(--cream); transform-origin: center; box-shadow: 0 0 12px var(--lav), 0 0 36px var(--phosphor-far) !important; animation: ignition-line .9s both; }
.arcade-home.departing .arcade-wordmark { animation: title-extinguish .4s steps(4) both; }
.arcade-home.departing :is(.game-lobby, .arcade-links) { opacity: 0; }
@keyframes ignition-line { 0% { transform: scaleX(.02); opacity: 0; } 20% { transform: scaleX(.02); opacity: 1; } 65% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ignition-away { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes title-extinguish { to { clip-path: inset(0 0 0 100%); opacity: .2; } }
@media (max-width: 700px) {
  body .arcade-home { padding-top: 8px; }
  body .arcade-marquee { min-height: 280px; }
  body .arcade-wordmark { gap: 16px; }
  body .arcade-wordmark .brand { font-size: 16px; letter-spacing: 5px; }
  body .arcade-wordmark .game { font-size: clamp(36px, 10vw, 58px); letter-spacing: -2px; }
  body .game-lobby { margin-top: 16px; }
  body .arcade-home .arcade-links { margin-top: 24px; }
  body[data-crt='on'] :is(#screen-title, #screen-intro, #screen-end)::after { box-shadow: inset 0 0 24px 3px var(--ink) !important; }
}
/* A single quiet pixel face keeps the title screen closer to an arcade menu. */
body #screen-title :is(.title-matchup, .lobby-card strong, .arcade-link) { font: 14px/1.6 var(--pixel); letter-spacing: 0; text-shadow: none !important; }
body #screen-title .title-matchup { color: var(--cream60); }
body #screen-title .lobby-card { justify-content: flex-start; min-height: 44px; color: var(--cream); }
body #screen-title .lobby-card.menu-active { color: var(--cream); text-shadow: none !important; }
body #screen-title .lobby-card::before { content: ''; width: 0; height: 0; border-block: 5px solid transparent; border-left: 7px solid var(--cream); }
body[data-screen='screen-title'] .arcade-footer { display: none; }
body #screen-title .arcade-links { flex-wrap: wrap; gap: 20px; }
body .arcade-wordmark.metallic-wordmark { flex: 1 1 580px; min-width: 0; max-width: 720px; gap: 20px; }
.logo-art { display: block; position: relative; width: 100%; isolation: isolate; }
.metallic-title { display: block; width: 100%; height: auto; }
.logo-glint { position: absolute; inset: 0; pointer-events: none; mask: url('/arena/assets/racc-100-glint.png') center / 100% 100% no-repeat; }
.logo-glint::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 42%, color-mix(in srgb, var(--cream) 65%, transparent) 49%, transparent 56%); background-size: 350% 100%; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .screen-booting .logo-art { visibility: hidden; }
}
@media (max-width: 700px) {
  body .arcade-wordmark.metallic-wordmark { flex: 0 0 100%; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #screen-ignition { display: none; }
  .arcade-home.departing .arcade-wordmark { animation: none; }
  .boss-cinema *, body .arcade-play span { animation: none !important; }
  .boss-line.final { opacity: 1; }
  .human-won .boss-reactor-track i { transform: scaleX(0); }
}
