:root {
  color-scheme: dark;
  --bg: #0f0f19; --panel: #1b1929; --panel-border: #353046; --text: #f4f1ff;
  --muted: #aaa5bb; --purple: #ad94fb; --green: #a3efba; --red: #ff9caa; --yellow: #e9ce85;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
}
* {box-sizing: border-box}
[hidden] {display:none!important}
body {margin:0; min-width: 0; background:radial-gradient(ellipse 70% 50% at 50% 0%,#1d172f 0%,transparent 72%),var(--bg); color:var(--text); min-height:100vh;}
a {color:inherit;text-decoration:none}
a:focus-visible {outline:3px solid #d2bcff;outline-offset:4px}
h1,h2,h3,p {margin:0}
.svg-library {position:absolute;width:0;height:0;overflow:hidden}
.icon {display:block; width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round}
.wrap {width:min(1160px,calc(100% - 64px));margin-inline:auto}
.topbar {border-bottom:1px solid #2f293c;background:#11101adb; padding:17px 0;}
.topbar-inner {display:flex;align-items:center;justify-content:space-between}
.wordmark {font-size:1.85rem;line-height:1.1;font-weight:900;letter-spacing:.055em;}
.wordmark span {color:var(--purple)}
.network-brand {font-size:.77rem;color:#bbb0ce;letter-spacing:.13em;display:flex;align-items:center;gap:9px;font-weight:600}
.network-mark {width:7px;height:7px;border-radius:2px;background:#a78bfa;box-shadow:0 0 12px #a78bfa;transform:rotate(45deg)}
.hero {min-height:245px;margin-top:28px;position:relative;display:flex;align-items:center;isolation:isolate;overflow:hidden;padding:36px 38px;border:1px solid #4b365f;border-radius:17px;background:radial-gradient(ellipse at 104% -20%,#7144b5 0%,transparent 63%),linear-gradient(105deg,#19192c 0%,#2a1d43 62%,#422764 100%)}
.hero::before {content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(80deg,#19172b35 0%,#2d214500 65%),repeating-linear-gradient(0deg,transparent 0 37px,#c9acfa0c 38px 39px),repeating-linear-gradient(90deg,transparent 0 37px,#c9acfa0c 38px 39px);mask-image:linear-gradient(90deg,transparent,#000)}
.hero-art {position:absolute;z-index:-1;width:440px;height:440px;right:-68px;top:-126px;border:1px solid #cfafff28;transform:rotate(-20deg);border-radius:23%;box-shadow:inset 0 0 0 36px #ad94fb0b, inset 0 0 0 38px #cfafff1d,inset 0 0 0 82px #ad94fb07,inset 0 0 0 84px #cfafff23,0 0 100px #9369f633;}
.hero-content {position:relative;z-index:1;}
.eyebrow {display:flex;gap:9px;align-items:center;color:#d5c3fa;font-size:.73rem;font-weight:700;letter-spacing:.20em;margin-bottom:16px}
.eyebrow span {width:21px;height:2px;background:#bda5ff}
.hero h1 {font-size:clamp(2.25rem,4.4vw,3.55rem);font-weight:850;line-height:1.04;letter-spacing:-.055em}
.hero h1 span {color:#ceb8ff}
.hero p {font-size:1rem;color:#c9bfdb;margin-top:14px;}
.hero-coordinate {position:absolute;right:34px;bottom:32px;text-align:right;display:flex;flex-direction:column;gap:4px;color:#d6c2f0;font-size:.68rem;letter-spacing:.16em;font-weight:600;}
.hero-coordinate strong {font-size:2.2rem;letter-spacing:-.06em;color:#e3d5ff;line-height:1}
.hero-coordinate strong span {color:#aa90d9;font-weight:300;padding:0 3px}
.radio-panel {margin-top:20px;display:flex;align-items:center;gap:20px;min-height:130px;padding:21px 24px;background:linear-gradient(110deg,#4b3377 0%,#35254f 42%,#292039 100%);border:1px solid #745499;border-radius:14px;box-shadow:0 9px 34px #6233b21c;}
.radio-icon {width:72px;height:72px;flex:none;display:grid;place-items:center;background:linear-gradient(140deg,#b79aff,#7550c8);color:#fff;border-radius:13px;box-shadow:0 4px 15px #170e3450}
.radio-icon .icon {width:35px;height:35px;stroke-width:1.8}
.radio-content {min-width:0;flex:1}
.radio-top {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:7px}
.radio-top h2 {font-size:.85rem;letter-spacing:.12em;color:#ede4ff;font-weight:800}
.status-pill {display:inline-flex;align-items:center;gap:7px;font-size:.76rem;line-height:1.25;font-weight:700;padding:5px 9px;border:1px solid currentColor;border-radius:999px;}
.status-pill.online {background:#1b412e;color:#b3f5c5;border-color:#4a895f}
.status-pill.offline {background:#4b2934;color:#ffbcc5;border-color:#965662}
.status-pill.unknown {background:#473b29;color:#f2dba0;border-color:#786348}
.status-pill i,.metric i,.state i {width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block;flex:none}
.status-pill.online i {box-shadow:0 0 9px #a0ffb368}
.track {font-size:clamp(1.15rem,2.2vw,1.6rem);line-height:1.24;font-weight:800;overflow-wrap:anywhere;letter-spacing:-.02em}
.radio-detail {font-size:.90rem;color:#d2c2e6;margin-top:4px;overflow-wrap:anywhere}
.equalizer {display:flex;gap:4px;align-items:center;height:43px;flex-shrink:0;margin-right:5px;opacity:.65}
.equalizer i {width:4px;height:var(--height);background:#b89bff;border-radius:4px;transform-origin:center}
.equalizer i:nth-child(1) {--height:10px;--delay:0s}.equalizer i:nth-child(2) {--height:22px;--delay:.09s}.equalizer i:nth-child(3) {--height:14px;--delay:.23s}.equalizer i:nth-child(4) {--height:33px;--delay:.15s}.equalizer i:nth-child(5) {--height:23px;--delay:.35s}.equalizer i:nth-child(6) {--height:39px;--delay:.11s}.equalizer i:nth-child(7) {--height:18px;--delay:.28s}.equalizer i:nth-child(8) {--height:27px;--delay:.17s}.equalizer i:nth-child(9) {--height:12px;--delay:.32s}
.equalizer.active {opacity:1}.equalizer.active i {animation:pulse .85s infinite alternate ease-in-out;animation-delay:var(--delay)}
@keyframes pulse {from{transform:scaleY(.45)}to{transform:scaleY(1)}}
.button {display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;min-height:44px;font-size:.9rem;font-weight:750;border-radius:8px;padding:11px 16px;transition:background .18s,transform .18s;flex-shrink:0;}
.button .icon {width:15px;height:15px;stroke-width:1.8}
.button:hover {transform:translateY(-1px)}
.button-primary {background:#b49afb;color:#26193d;box-shadow:0 3px 12px #110a2924}
.button-primary:hover {background:#c5b1ff}
.button-quiet {background:#322940;border:1px solid #57446f;color:#e0d1ff}
.button-quiet:hover {background:#48365d}
.button-link {color:#cbb8ff;padding-right:7px}
.button-link:hover {background:#332746}
.servers-panel {margin-top:22px;border:1px solid var(--panel-border);background:linear-gradient(135deg,#1c1b2c,#1a1827);border-radius:14px;padding:24px;}
.panel-heading,.panel-heading-left {display:flex;align-items:center;gap:14px}
.panel-heading {justify-content:space-between}
.panel-icon {height:46px;width:46px;display:grid;place-items:center;border:1px solid #4b3a62;border-radius:11px;color:#c5aaff;background:#2e2443;flex-shrink:0}
.panel-icon .icon {height:25px;width:25px}
.panel-heading h2 {font-size:1.42rem;letter-spacing:-.035em;font-weight:800;line-height:1.15}
.panel-heading p {font-size:.88rem;color:var(--muted);margin-top:5px}
.panel-metrics {display:flex;gap:18px;flex-wrap:wrap;margin:21px 0 15px}
.metric {display:inline-flex;align-items:center;gap:7px;font-size:.86rem;font-weight:650}
.online {color:var(--green)}.offline {color:var(--red)}.unknown {color:var(--yellow)}
.server-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,212px),1fr));gap:13px}
.server-card {--start:#33344a;--end:#222233;--edge:#4d4e67;--accent:#d3d3ef;position:relative;isolation:isolate;overflow:hidden;min-height:200px;display:flex;flex-direction:column;border:1px solid var(--edge);border-radius:11px;padding:17px;background:linear-gradient(139deg,var(--start),var(--end));}
.server-card::after {content:"";width:120px;height:120px;border:1px solid color-mix(in srgb,var(--accent) 16%,transparent);border-radius:22%;position:absolute;top:-35px;right:-43px;z-index:-1;transform:rotate(-20deg);box-shadow:inset 0 0 0 20px #ffffff06,inset 0 0 0 21px #ffffff0b}
.server-card[data-style="arma"] {--start:#424d36;--end:#23271e;--edge:#63744e;--accent:#d5e9ae}
.server-card[data-style="minecraft"] {--start:#345a43;--end:#22382d;--edge:#4c795b;--accent:#b9f4cf}
.server-card[data-style="palworld"] {--start:#384c77;--end:#272740;--edge:#596b9a;--accent:#ccd8ff}
.server-card[data-style="conan"] {--start:#65462f;--end:#342821;--edge:#805c42;--accent:#eed0ad}
.server-card[data-style="ark"] {--start:#3e6265;--end:#243a3c;--edge:#4e8384;--accent:#b9f1ef}
.game-icon {display:grid;place-items:center;width:48px;height:48px;border-radius:9px;border:1px solid #ffffff28;background:#11131c42;color:var(--accent);margin-bottom:17px}
.game-icon .icon {width:28px;height:28px}
.game-title {font-size:1.08rem;line-height:1.25;font-weight:800;overflow-wrap:anywhere;letter-spacing:-.015em;}
.game-detail {font-size:.83rem;color:#e2e0e8;opacity:.78;margin:6px 0 19px;overflow-wrap:anywhere}
.state {display:flex;align-items:center;gap:7px;font-weight:700;font-size:.88rem;margin-top:auto}
.state.online i {box-shadow:0 0 9px #a3efba60}
.empty-state {grid-column:1/-1;min-height:120px;display:grid;place-items:center;text-align:center;padding:20px;color:var(--muted);border:1px dashed #494053;border-radius:9px;background:#191725}
.panel-foot {display:flex;justify-content:space-between;gap:15px;color:#a8a0b9;font-size:.78rem;margin-top:17px;flex-wrap:wrap}
.ocap-panel {display:flex;gap:15px;align-items:center;margin-top:17px;border:1px solid var(--panel-border);background:#1b1929;border-radius:11px;padding:16px 22px;}
.ocap-icon {height:46px;width:46px;display:grid;place-items:center;border-radius:9px;flex-shrink:0;background:#2b4137;border:1px solid #40594b;color:#b3d9be}
.ocap-copy {flex:1}
.ocap-copy h2 {font-size:1.13rem;font-weight:800}
.ocap-copy p {color:var(--muted);font-size:.86rem;margin-top:3px}
.footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:24px;padding-bottom:30px;color:#8e869f;font-size:.70rem;letter-spacing:.09em;}
.footer strong {color:#b4a7ca}
.footer-right {letter-spacing:.04em}.divider {margin:0 5px;}
.demo-banner,.noscript {margin-top:14px;color:#ffe1a6;border:1px dashed #80674a;padding:10px 13px;border-radius:9px;background:#30273a;font-size:.88rem;}
@media(max-width:770px) {
  .wrap {width:calc(100% - 32px)}
  .hero {margin-top:18px;padding:29px 24px;min-height:210px}
  .hero-coordinate {display:none}
  .radio-panel {padding:18px;gap:14px}
  .radio-icon {width:57px;height:57px}.radio-icon .icon {width:29px;height:29px}
  .equalizer {display:none}
  .servers-panel {padding:18px}
  .server-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
  .server-card {min-height:175px}
  .ocap-panel {padding:13px 17px}
}
@media(max-width:480px) {
  .wrap {width:calc(100% - 26px)}
  .network-brand {font-size:.67rem;letter-spacing:.06em}
  .hero {padding:25px 19px;min-height:200px}
  .hero h1 {font-size:2.15rem}.hero p {font-size:.93rem}
  .radio-panel {display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;padding:15px}
  .radio-panel .button {grid-column:1/-1}
  .radio-icon {width:54px;height:54px}
  .radio-top {gap:7px}
  .status-pill {font-size:.69rem}
  .panel-heading {align-items:flex-start;flex-direction:column;gap:13px}
  .panel-heading .button {width:100%}
  .panel-heading h2 {font-size:1.25rem}
  .panel-metrics {gap:12px;margin-top:17px}
  .servers-panel {padding:15px}.server-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .server-card {padding:12px;min-height:171px}
  .game-title {font-size:1rem}
  .game-icon {width:40px;height:40px;margin-bottom:13px}.game-icon .icon {width:24px;height:24px}
  .ocap-panel {gap:10px;padding:12px}
  .ocap-icon {width:38px;height:38px}
  .ocap-copy p {font-size:.77rem}
  .button-link {font-size:.8rem;padding:7px 2px;gap:6px}
  .footer {flex-direction:column;align-items:flex-start;gap:7px}
}
@media(prefers-reduced-motion:reduce) {
  .equalizer.active i {animation:none}
  .button {transition:none}
}


/* SBK Event Network — inherits the Hub's existing purple palette. */
.events-panel {margin-top:22px;border:1px solid #4b3b62;background:linear-gradient(135deg,#241d37,#1b1929);border-radius:14px;padding:24px;}
.event-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:20px;}
.event-card {--event-ink:#cbb8ff;--event-fallback:#38294d;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#221d31;border:1px solid #4b3b62;border-radius:11px;}
.event-card[data-style="arma"] {--event-ink:#d5e9ae;--event-fallback:#414d36}
.event-card[data-style="minecraft"] {--event-ink:#b9f4cf;--event-fallback:#345a43}
.event-card[data-style="palworld"] {--event-ink:#ccd8ff;--event-fallback:#384c77}
.event-card[data-style="conan"] {--event-ink:#eed0ad;--event-fallback:#65462f}
.event-card[data-style="ark"] {--event-ink:#b9f1ef;--event-fallback:#3e6265}
.event-cover {position:relative;height:135px;isolation:isolate;overflow:hidden;background:var(--event-fallback);}
.event-cover::after {content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,#100d1bd6 0%,transparent 58%,#100d1b24 100%);pointer-events:none}
.event-cover-fallback {position:absolute;inset:0;display:grid;place-items:center;color:var(--event-ink);background:repeating-linear-gradient(135deg,#ffffff06 0 1px,transparent 1px 24px);}
.event-cover-fallback .icon {height:52px;width:52px;opacity:.7}
.event-image {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.event-cover-game {position:absolute;z-index:2;bottom:12px;left:12px;right:12px;font-weight:850;color:#fff;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;overflow-wrap:anywhere;text-shadow:0 1px 5px #000}
.event-state {position:absolute;top:10px;left:10px;z-index:2;padding:4px 9px;border:1px solid #735f91;border-radius:999px;font-size:.72rem;font-weight:800;background:#3b2d58;color:#e8d8ff}
.event-open {background:#1b412e;border-color:#4a895f;color:#b3f5c5}
.event-full {background:#473b29;border-color:#786348;color:#f2dba0}
.event-live {background:#293e64;border-color:#5579b0;color:#c4dcff}
.event-body {flex:1;display:flex;flex-direction:column;gap:8px;padding:15px}
.event-title {font-size:1.08rem;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
.event-date {font-size:.84rem;font-weight:650;color:#e2d5fa;line-height:1.4}
.event-host,.event-count {font-size:.80rem;color:#bdb3cc;overflow-wrap:anywhere}
.event-progress {width:100%;height:7px;border:0;border-radius:10px;background:#463753;overflow:hidden;appearance:none;margin-top:3px;accent-color:#ad94fb}
.event-progress::-webkit-progress-bar {background:#463753;border-radius:10px}
.event-progress::-webkit-progress-value {background:#ad94fb;border-radius:10px}
.event-progress::-moz-progress-bar {background:#ad94fb;border-radius:10px}
.event-view,.event-demo {width:100%;margin-top:auto}
.event-demo {color:#ad94fb;text-align:center;font-size:.75rem;line-height:32px}
@media(max-width:770px) {.events-panel{padding:18px}.event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px) {.events-panel{padding:15px}.event-grid{grid-template-columns:1fr}.event-cover{height:135px}.event-body{padding:13px}}
