:root {
  color-scheme: dark;
  --bg: #0b0712;
  --surface: #171021;
  --line: #3b2850;
  --ink: #fbf7ff;
  --muted: #cbbfd7;
  --cyan: #55f4fa;
  --pink: #ff55c7;
  --lime: #d6ff44;
  --display: "Bahnschrift", "Arial Narrow", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.skip { position: fixed; z-index: 6; top: .5rem; left: .5rem; padding: .5rem; background: #000; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: min(91%, 1330px); margin-inline: auto; }
.topbar {
  min-height: 74px;
  padding: .85rem max(4.5%, calc((100% - 1330px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: #0a0710;
}
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; font: italic 850 clamp(1rem, 2vw, 1.25rem)/1 var(--display); text-transform: uppercase; letter-spacing: .025em; white-space: nowrap; }
.brand b { color: var(--cyan); }
.topbar nav { display: flex; gap: clamp(1rem, 3vw, 2.7rem); }
.topbar nav a { color: var(--muted); font-size: .88rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; text-decoration: none; }
.topbar nav a:hover { color: var(--cyan); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: .72rem 1rem;
  border: 1px solid #72538f;
  color: var(--ink);
  background: #160d22;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: .875rem;
  font-weight: 850;
  letter-spacing: .04em;
  transition: background-color .2s, border-color .2s, color .2s;
}
.button:hover { border-color: var(--cyan); color: var(--cyan); }
.button-small { padding: .55rem .8rem; }
.topbar .button { white-space: nowrap; }
.header-cta { border-color: var(--cyan); color: var(--cyan); }
.primary { background: var(--lime); border-color: var(--lime); color: #101103; box-shadow: 0 0 24px #d6ff441c; }
.primary:hover { background: #e7ff91; border-color: #e7ff91; color: #101103; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1; }
h1, h2 { text-transform: uppercase; font-style: italic; }
h1 { font-size: clamp(3.75rem, 6.55vw, 6.7rem); letter-spacing: -.065em; line-height: .91; }
h2 { font-size: clamp(2.55rem, 5.3vw, 5.7rem); letter-spacing: -.052em; }
h3 { font-size: clamp(1.22rem, 2.3vw, 1.8rem); letter-spacing: -.02em; }
em { color: var(--cyan); font-style: inherit; }
p { margin: .8rem 0 0; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: .64rem; margin: 0 0 1rem; color: var(--cyan); font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow span { width: 24px; height: 3px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.lead { font-size: clamp(1.1rem, 1.65vw, 1.4rem); color: var(--ink); line-height: 1.45; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.3rem, 7vw, 7.5rem) clamp(2.3rem, 5vw, 5rem);
  background: radial-gradient(ellipse at 82% 35%, #501747 0%, #261238 33%, #100919 64%, #09060f 91%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: repeating-linear-gradient(121deg, transparent 0 66px, #a649df17 67px, transparent 69px 134px);
  mask-image: linear-gradient(105deg, transparent, #000 55%);
}
.hero-beam, .hero-sparks { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-beam { inset: -24% -10%; background: linear-gradient(116deg, transparent 45%, #fd48db26 50%, #6ff7ff24 51%, transparent 58%); animation: arena-light 12s ease-in-out infinite alternate; }
.hero-sparks { background: radial-gradient(circle at 81% 12%, #fd72ef 0 1px, transparent 3px), radial-gradient(circle at 88% 47%, #73fffb 0 1px, transparent 3px), radial-gradient(circle at 49% 88%, #ff63ce 0 1px, transparent 4px), radial-gradient(circle at 55% 11%, #e2ff60 0 1px, transparent 4px), radial-gradient(circle at 13% 80%, #71d6ff 0 1px, transparent 3px); animation: arena-drift 11s ease-in-out infinite alternate; }
@keyframes arena-light { from { transform: translateX(-8%); opacity: .48; } to { transform: translateX(8%); opacity: .9; } }
@keyframes arena-drift { to { transform: translate(1.2%, -1.5%); opacity: .52; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: center; gap: clamp(1.5rem, 4vw, 4.8rem); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 em { color: var(--lime); text-shadow: 0 0 32px #b7ff3e38; }
.hero-copy { max-width: 34rem; margin-block: 1.45rem; color: #e8dcf0; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.hero-art { margin: 0; position: relative; min-width: 0; }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--pink);
  box-shadow: 0 0 1px 1px #f68be782, 0 0 38px #f339d447, 0 28px 55px #07040bb2;
}
.hero-art::after { content: ""; position: absolute; top: 0; right: 0; width: 24%; height: 3px; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.hero-art figcaption, .show-image figcaption { margin-top: .7rem; color: var(--muted); font-size: .82rem; }
.arena-strip { border-block: 1px solid #6e437b; background: #201032; }
.arena-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.arena-strip span { display: grid; place-items: center; padding: .95rem .35rem; text-align: center; color: var(--lime); font: italic 850 clamp(.82rem, 1.55vw, 1.13rem)/1.2 var(--display); letter-spacing: .065em; text-transform: uppercase; }
.arena-strip span + span { border-left: 1px solid #5f3c71; }

.show-section, .broadcast-section, .sound-section, .events-section { padding-block: clamp(3.3rem, 7vw, 7.1rem); }
.show-section { background: linear-gradient(155deg, #171022, #0b0712 55%); }
.show-grid, .broadcast-grid, .sound-grid, .events-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.8rem, 6vw, 6.5rem); align-items: center; }
.show-image { min-width: 0; margin: 0; position: relative; }
.show-image img { width: 100%; height: auto; display: block; border: 1px solid #5b4583; box-shadow: 0 0 34px #937ef224; }
.show-image::before { content: ""; position: absolute; width: 5px; height: 29%; background: var(--pink); box-shadow: 0 0 18px #ff55c7a6; }
.show-section h2, .sound-section h2, .events-section h2 { font-size: clamp(2.65rem, 5.1vw, 5.1rem); }
.show-section h2 em, .sound-section h2 em { color: var(--pink); }
.section-copy .button, .section-copy .text-link { margin-top: 1.25rem; }
.concept-note { font-size: .875rem; }
.text-link { display: inline-block; color: var(--cyan); font-weight: 750; text-underline-offset: .24em; }
.text-link:hover { color: var(--lime); }
.broadcast-section { background: radial-gradient(ellipse at 92% 80%, #192c35, #111522 55%, #130b20); border-block: 1px solid #40334e; }
.broadcast-spec { border-left: 3px solid var(--cyan); box-shadow: -13px 0 25px -21px var(--cyan); padding-left: clamp(1rem, 3vw, 2rem); }
.broadcast-spec div + div { margin-top: 1.45rem; padding-top: 1.45rem; border-top: 1px solid #43505b; }
.broadcast-spec .eyebrow { margin-bottom: .5rem; }
.sound-section { background: radial-gradient(ellipse at 72% 50%, #481641, #1b0925 52%, var(--bg)); overflow: hidden; }
.sound-visual { position: relative; display: grid; place-items: center; min-height: clamp(145px, 22vw, 260px); padding: 1rem; border-block: 1px solid #9c4697; background: repeating-linear-gradient(0deg, transparent 0 19px, #ff86ec1c 20px, transparent 21px), linear-gradient(90deg, #1d0c2f, #170f26); }
.equalizer { display: flex; align-items: center; gap: clamp(3px, .65vw, 10px); width: 100%; height: clamp(110px, 17vw, 205px); justify-content: center; }
.equalizer i { width: 4.5%; height: 90%; border-radius: 2px; background: linear-gradient(0deg, #8129ff, var(--pink), var(--cyan)); box-shadow: 0 0 18px #e658dc61; transform: scaleY(.38); animation: equalize 2.8s ease-in-out infinite alternate; }
.equalizer i:nth-child(3n) { animation-delay: -1.6s; transform: scaleY(.75); }
.equalizer i:nth-child(3n + 1) { animation-delay: -.65s; transform: scaleY(.52); }
.equalizer i:nth-child(5n) { animation-duration: 3.6s; }
@keyframes equalize { from { scale: 1 .58; } to { scale: 1 1.3; } }
.events-section { align-items: start; }
.events-section h2 em { color: var(--lime); }
.event-list { border-top: 1px solid var(--line); }
.event-list div { padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.event-list div:first-child { padding-top: 1.1rem; }
.event-list p { margin-top: .35rem; }
.event-list .text-link { margin-top: .5rem; }
.site-footer { border-top: 1px solid var(--line); background: #0a0710; }
.footer { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; padding-block: 1.6rem; color: var(--muted); font-size: .93rem; }
.footer a:hover { color: var(--cyan); }
.footer p { margin: .45rem 0 0; }
.footer > div p { color: var(--lime); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

/* Broadcast console */
.studio { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.studio h1 { font-size: clamp(2.65rem, 6.5vw, 6rem); line-height: .98; }
.studio h1 em { color: var(--lime); }
.studio-intro { margin-bottom: 1.5rem; }
.console-bar, .controls, .camera-head, .simulation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.console-bar { margin-bottom: .8rem; }
.modes, .score, .control-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.modes button, select { min-height: 44px; padding: .48rem .75rem; background: var(--surface); border: 1px solid #584266; color: var(--ink); }
select {
  appearance: none;
  padding-inline-end: 1.85rem;
  background-image: linear-gradient(45deg, transparent 48%, var(--cyan) 51%), linear-gradient(135deg, var(--cyan) 49%, transparent 52%);
  background-position: right 14px center, right 9px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.modes button { font-weight: 740; }
.modes button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: #142936; }
.score { gap: .8rem; padding: .52rem .85rem; border: 1px solid #664080; background: #21142d; font-weight: 800; font-variant-numeric: tabular-nums; }
.cyan { color: var(--cyan); }
.pink { color: var(--pink); }
.stage { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: .55rem; }
.side-feeds { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .55rem; min-width: 0; }
.feed { position: relative; margin: 0; overflow: hidden; border: 1px solid #773a89; background: #0c0816; }
.main-feed { aspect-ratio: 16/9; border-color: #64a1ad; }
.feed-media, .feed-media canvas, .feed-media iframe, .feed-media video { display: block; width: 100%; height: 100%; }
.feed-media { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.feed-media iframe, .feed-media video, .feed-media canvas { border: 0; object-fit: contain; }
.feed figcaption { position: absolute; top: .6rem; left: .6rem; max-width: calc(100% - 1.2rem); background: #130820ed; border-left: 2px solid var(--pink); padding: .28rem .48rem; font-size: .85rem; line-height: 1.3; pointer-events: none; }
.main-feed figcaption { border-color: var(--cyan); }
.stage:fullscreen, .stage.is-expanded { background: var(--bg); align-content: center; padding: 3.75rem 1rem 1rem; overflow: auto; }
.stage.is-expanded { position: fixed; inset: 0; z-index: 5; }
body.has-expanded-stage { overflow: hidden; }
.fullscreen-exit { position: absolute; top: .65rem; right: 1rem; z-index: 1; }
.controls { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.controls p, .camera-head p, .simulation p { margin: 0; }
.controls label, .side-controls label, .outage-controls label { color: var(--muted); font-size: .875rem; }
.side-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .9rem; }
.side-controls label { display: grid; gap: .3rem; }
.side-controls select { width: 100%; }
.cameras { padding-top: 2rem; }
.cameras h2 { font-size: 1.85rem; }
.camera-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-block: 1rem; }
.camera-grid button { background: #1b1127; color: var(--ink); border: 1px solid var(--line); min-height: 56px; text-align: start; padding: .65rem; line-height: 1.25; }
.camera-grid button:hover { border-color: #9667ae; }
.camera-grid button[aria-pressed="true"] { border-color: var(--cyan); background: #152532; }
.camera-grid button[aria-disabled="true"] { color: var(--muted); cursor: default; }
.camera-grid small { display: block; margin-top: .25rem; color: var(--muted); font-size: .82rem; }
.simulation { padding: 1rem; background: var(--surface); border: 1px solid var(--line); }
.outage-controls { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 720px); }
  .hero h1 { font-size: clamp(3.05rem, 10.5vw, 6.25rem); }
}
@media (max-width: 700px) {
  .topbar { gap: .45rem; }
  .topbar nav { display: none; }
  .brand { gap: .4rem; font-size: .9rem; }
  .brand img { width: 32px; height: 32px; }
  .topbar .button { padding-inline: .55rem; font-size: .82rem; }
  .hero { padding-block: 2.55rem 1.75rem; }
  .hero-copy { margin-block: 1rem 1.2rem; }
  .actions { gap: .5rem; }
  .arena-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arena-strip span:nth-child(3) { border-left: 0; }
  .arena-strip span:nth-child(n + 3) { border-top: 1px solid #5f3c71; }
  .show-grid, .broadcast-grid, .sound-grid, .events-section, .stage { grid-template-columns: 1fr; }
  .show-image { grid-row: 2; }
  .side-feeds { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .side-feeds .feed { aspect-ratio: 16/9; }
  .camera-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-beam, .hero-sparks, .equalizer i { animation: none; }
  .button { transition: none; }
}
