:root {
  --bg: #f1f3ef;
  --surface: #ffffff;
  --surface-2: #e8ece6;
  --surface-3: #dce3d9;
  --ink: #111411;
  --muted: #657064;
  --line: #ccd4ca;
  --green: #43b52b;
  --green-hi: #a8ec28;
  --green-deep: #197820;
  --acid: #d7ff35;
  --amber: #eea52d;
  --danger: #ff5c52;
  --black: #080a08;
  --chart-line: #43b52b;
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --shadow: 0 16px 38px rgba(24, 42, 24, .11);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #080b08;
  --surface: #101510;
  --surface-2: #161d16;
  --surface-3: #202920;
  --ink: #f5f7f2;
  --muted: #98a397;
  --line: #293329;
  --green: #70d840;
  --green-hi: #c8ff32;
  --green-deep: #2ca535;
  --acid: #d8ff40;
  --black: #050705;
  --chart-line: #9df43f;
  --shadow: 0 22px 48px rgba(0, 0, 0, .32);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 216, 64, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 216, 64, .028) 1px, transparent 1px);
  background-size: 42px 42px;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--green-hi); color: #071007; }

.top-accent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 4px;
  background: linear-gradient(90deg, #1d7d25 0 18%, var(--green-hi) 18% 72%, #f2d62e 72% 100%);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: color-mix(in srgb, var(--bg) 87%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(130%);
  transition: min-height .2s ease, border-color .2s ease, box-shadow .2s ease;
}
header.scrolled { min-height: 64px; border-bottom-color: var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 248px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 80px; height: 54px; object-fit: contain; object-position: left center; }
.brand-divider { width: 1px; height: 34px; background: var(--line); }
.brand-text { display: grid; gap: 2px; }
.brand-text .name { font: 800 18px/1 var(--display); letter-spacing: 0; }
.brand-text .sub { color: var(--muted); font: 600 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0; }

nav.pills { display: flex; align-items: center; gap: 3px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
nav.pills a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 3px; font-size: 12px; font-weight: 700; }
nav.pills a:hover { color: var(--ink); }
nav.pills a.active { background: var(--black); color: var(--green-hi); }
html:not([data-theme="dark"]) nav.pills a.active { color: #fff; }

.header-right { display: flex; align-items: center; gap: 8px; }
.cmdk-btn, .theme-toggle, .profile-orb {
  height: 36px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.cmdk-btn { display: flex; align-items: center; gap: 8px; padding: 0 9px 0 11px; cursor: pointer; font-size: 11px; font-weight: 700; }
.cmdk-btn:hover, .theme-toggle:hover { color: var(--green); border-color: var(--green); }
.cmdk-btn svg { width: 14px; height: 14px; }
.cmdk-btn kbd, .cmdk-input-row kbd { padding: 2px 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; font: 600 9px var(--mono); }
.theme-toggle { position: relative; width: 36px; display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { position: absolute; width: 16px; height: 16px; transition: opacity .2s ease, transform .2s ease; }
.icon-moon { opacity: 0; transform: scale(.6); }
html[data-theme="dark"] .icon-sun { opacity: 0; transform: scale(.6); }
html[data-theme="dark"] .icon-moon { opacity: 1; transform: scale(1); }
.profile-orb { width: 36px; display: grid; place-items: center; overflow: hidden; color: #071007; background: var(--green-hi); border-color: var(--green-hi); text-decoration: none; font: 800 12px var(--display); }
.profile-orb img { width: 100%; height: 100%; object-fit: cover; }
.header-status { display: flex; align-items: center; gap: 7px; min-width: 118px; padding: 0 10px; height: 36px; color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); border-radius: 5px; font: 600 9px var(--mono); text-transform: uppercase; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pulse::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--green); border-radius: 50%; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(1.8); } }

.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 80px; }

.connect-banner { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--green); border-left: 5px solid var(--green-hi); border-radius: 6px; }
.connect-banner[hidden] { display: none; }
.connect-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.connect-icon svg { width: 19px; }
.connect-banner strong { display: block; font-size: 13px; }
.connect-banner p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.summit-button { padding: 10px 14px; color: #091009; background: var(--green-hi); border: 0; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 800; }

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background-color: #050705;
  background-image:
    linear-gradient(90deg, #050705 0%, rgba(5, 7, 5, .97) 37%, rgba(5, 7, 5, .5) 63%, rgba(5, 7, 5, .08) 100%),
    linear-gradient(0deg, #050705 0%, transparent 38%),
    url('ben10/ben-hero.png');
  background-position: center, center, right 30%;
  background-repeat: no-repeat;
  background-size: cover, cover, 62% auto;
  border-top: 1px solid #52634c;
  border-bottom: 5px solid var(--green);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(147, 255, 45, .06), transparent 45%); }
.hero-copy { position: relative; z-index: 4; width: min(600px, 58%); padding: 54px 54px 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green-hi); font: 700 10px var(--mono); text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--green-hi); }
.hero h1 { margin-top: 14px; color: #fff; font: 900 clamp(66px, 7.2vw, 102px)/.78 var(--display); letter-spacing: 0; }
.hero h1 span { color: var(--green-hi); }
.hero-meta { max-width: 510px; margin-top: 24px; color: #c7d0c4; font-size: 13px; line-height: 1.7; }
.hero-controls { display: flex; align-items: stretch; gap: 10px; margin-top: 26px; }
.period-switch { display: flex; padding: 4px; background: rgba(8, 12, 8, .82); border: 1px solid #3b4839; border-radius: 5px; }
.period-switch button { min-width: 82px; padding: 8px 10px; color: #8f9a8d; background: transparent; border: 0; border-radius: 3px; cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.period-switch button:hover { color: #fff; }
.period-switch button.active { color: #071007; background: var(--green-hi); }
.week-chip { display: grid; align-content: center; min-width: 118px; padding: 6px 12px; background: rgba(8, 12, 8, .82); border: 1px solid #3b4839; border-radius: 5px; }
.week-chip span { color: #7f8b7c; font: 600 8px var(--mono); text-transform: uppercase; }
.week-chip b { margin-top: 2px; color: #fff; font: 700 11px var(--mono); }
.hero-credit { position: absolute; top: 32px; right: 32px; z-index: 3; color: rgba(255, 255, 255, .65); font: 700 10px var(--mono); }
.hero-credit b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 7px; color: #071007; background: var(--green-hi); font: 900 18px var(--display); }
.winner-reveal { position: absolute; top: 78px; right: 32px; z-index: 5; width: 172px; padding: 11px 12px; color: #fff; background: rgba(4, 7, 4, .8); border: 1px solid rgba(168, 236, 40, .55); border-right: 4px solid var(--green-hi); backdrop-filter: blur(9px); animation: reveal-signal .55s ease both; }
.winner-reveal[hidden] { display: none; }
.winner-reveal span, .winner-reveal small { display: block; color: #8d9a88; font: 700 7px var(--mono); text-transform: uppercase; }
.winner-reveal strong { display: block; margin: 5px 0 4px; overflow: hidden; color: var(--green-hi); font: 800 21px/1 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.winner-reveal small { color: #fff; }
.omni-transition { position: fixed; left: 50%; top: 94px; z-index: 110; display: flex; align-items: center; gap: 10px; padding: 9px 13px 9px 9px; color: #071007; background: var(--green-hi); border: 2px solid #071007; box-shadow: 0 8px 34px rgba(0, 0, 0, .38), 0 0 30px rgba(168, 236, 40, .35); opacity: 0; transform: translate(-50%, -16px) scale(.92); pointer-events: none; }
.omni-transition b { font: 800 9px var(--mono); }
.transition-dial { width: 28px; height: 28px; display: grid; place-items: center; background: #071007; border-radius: 50%; }
.transition-dial i { width: 12px; height: 18px; background: var(--green-hi); clip-path: polygon(0 0, 100% 24%, 100% 76%, 0 100%, 38% 50%); }
.transforming .omni-transition { animation: transform-view .7s ease both; }
@keyframes reveal-signal { from { opacity: 0; transform: translateX(12px); } }
@keyframes transform-view { 0%, 100% { opacity: 0; transform: translate(-50%, -16px) scale(.92); } 20%, 72% { opacity: 1; transform: translate(-50%, 0) scale(1); } 55% { filter: brightness(1.3); } }
.hero-signal { position: absolute; right: 5%; top: 8%; width: 260px; aspect-ratio: 1; opacity: .3; pointer-events: none; }
.signal-ring { position: absolute; inset: 0; border: 1px solid var(--green-hi); border-radius: 50%; }
.ring-one { animation: spin 16s linear infinite; border-style: dashed; }
.ring-two { inset: 38px; opacity: .5; animation: spin 10s linear reverse infinite; }
.omni-core { position: absolute; inset: 92px; display: grid; place-items: center; border: 2px solid var(--green-hi); border-radius: 50%; box-shadow: 0 0 32px rgba(168, 236, 40, .35); }
.omni-core i, .mini-omni::after { width: 44%; height: 62%; background: var(--green-hi); clip-path: polygon(0 0, 100% 24%, 100% 76%, 0 100%, 38% 50%); }
@keyframes spin { to { transform: rotate(360deg); } }

.mountain-stage { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 196px; padding: 12px 24px 0; background: linear-gradient(0deg, #050705 50%, transparent); }
.mountain-stage > svg { position: absolute; inset: 26px 22px 0; width: calc(100% - 44px); height: 160px; transition: transform .2s ease; }
.track-label { position: absolute; left: 30px; bottom: 18px; display: grid; z-index: 3; }
.track-label span { color: var(--green-hi); font: 700 8px var(--mono); }
.track-label b { margin-top: 3px; color: #5c6859; font: 700 8px var(--mono); }
.track-rail { fill: none; stroke: #263226; stroke-width: 12; stroke-linecap: round; }
#peak-tags { position: absolute; inset: 26px 22px 0; }
.peak-tag { position: absolute; z-index: 4; transform: translate(-50%, -50%); }
.peak-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; color: #071007; background: #fff; border: 3px solid #5b6758; border-radius: 50%; font: 800 11px var(--display); box-shadow: 0 0 0 4px rgba(4, 7, 4, .7); }
.peak-avatar img { width: 100%; height: 100%; object-fit: cover; }
.peak-avatar.live::after { content: ""; position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; background: var(--green-hi); border: 2px solid #050705; border-radius: 50%; }
.peak-tag.top .peak-avatar { width: 52px; height: 52px; border-color: var(--green-hi); box-shadow: 0 0 0 5px rgba(168, 236, 40, .12), 0 0 24px rgba(168, 236, 40, .34); }
.peak-label { position: absolute; top: 44px; left: 50%; width: max-content; max-width: 150px; transform: translateX(-50%); padding: 4px 7px; color: #c7d0c4; background: rgba(4, 7, 4, .88); border: 1px solid #334132; border-radius: 3px; font: 600 8px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peak-tag.top .peak-label { top: 57px; color: #071007; background: var(--green-hi); border-color: var(--green-hi); font-weight: 800; }

.podium-band { position: relative; min-height: 242px; margin-top: 12px; padding: 24px 30px 26px; overflow: hidden; color: #fff; background: #070a07; border: 1px solid #273126; border-top: 4px solid var(--green-hi); }
.podium-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(112, 216, 64, .11), transparent 38%), repeating-linear-gradient(90deg, transparent 0 89px, rgba(168, 236, 40, .035) 90px); }
.podium-heading { position: relative; z-index: 1; display: grid; align-content: start; }
.podium-heading span { color: var(--green-hi); font: 700 8px var(--mono); }
.podium-heading h2 { margin-top: 4px; font: 800 30px/1 var(--display); }
.hero-podium { position: relative; z-index: 1; max-width: 930px; min-height: 156px; margin: -32px 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 9px; }
.hero-podium > .summit-empty { grid-column: 1 / -1; }
.podium-slot { position: relative; min-height: 128px; padding: 18px 14px 14px 104px; display: grid; align-content: center; background: #101610; border: 1px solid #2c382b; border-bottom: 3px solid #556153; }
.podium-slot.champion { min-height: 156px; padding-left: 118px; background: linear-gradient(135deg, #152315, #0b0f0b); border-color: #5d812e; border-bottom-color: var(--green-hi); }
.podium-slot.second { border-bottom-color: #aab4a7; }
.podium-slot.third { border-bottom-color: #c78031; }
.podium-rank { position: absolute; top: 9px; right: 10px; color: #657063; font: 900 25px/1 var(--display); }
.champion .podium-rank { color: var(--green-hi); font-size: 31px; }
.podium-avatar-shell { position: absolute; left: 14px; top: 50%; width: 76px; height: 76px; transform: translateY(-50%); display: grid; place-items: center; border: 2px solid #596558; border-radius: 50%; box-shadow: 0 0 0 5px #111711, 0 0 0 6px #2c382b; }
.champion .podium-avatar-shell { width: 88px; height: 88px; border-color: var(--green-hi); box-shadow: 0 0 0 5px #111711, 0 0 0 6px var(--green), 0 0 26px rgba(168, 236, 40, .26); }
.podium-avatar { width: calc(100% - 8px); height: calc(100% - 8px); display: grid; place-items: center; overflow: hidden; color: #071007; background: var(--green-hi); border-radius: 50%; font: 900 18px var(--display); }
.podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podium-code { position: absolute; right: -7px; bottom: -4px; z-index: 2; min-width: 25px; height: 21px; padding: 0 5px; display: grid; place-items: center; color: #071007; background: var(--green-hi); border: 2px solid #111711; font: 900 8px var(--mono); }
.podium-copy { min-width: 0; }
.podium-copy span { color: var(--green-hi); font: 700 7px var(--mono); text-transform: uppercase; }
.podium-copy strong { display: block; margin-top: 5px; overflow: hidden; font: 800 20px/1 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.podium-copy small { display: block; margin-top: 6px; color: #879284; font: 600 8px var(--mono); }

.telemetry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 220px; height: 220px; transform: translate(-50%, -50%); pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--green) 9%, transparent), transparent 65%); opacity: 0; transition: opacity .2s ease; }
.card:hover::after { opacity: 1; }
.stat-card { min-height: 154px; padding: 20px; box-shadow: none; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--green); }
.stat-card.primary { color: #071007; background: var(--green-hi); border-color: var(--green-hi); }
.stat-card.primary::before { background: #071007; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); border-radius: 4px; }
.stat-icon.amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.stat-icon.dark { color: var(--green-hi); background: #071007; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-trend { max-width: 140px; color: var(--muted); font: 600 8px var(--mono); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.primary .stat-trend { color: #284028; }
.stat-num { margin-top: 18px; font: 800 38px/1 var(--display); }
.stat-lbl { margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.primary .stat-lbl { color: #284028; }

.your-signal { position: sticky; top: 70px; z-index: 32; min-height: 74px; margin-top: 12px; padding: 10px 14px; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(230px, 1.2fr) minmax(310px, 1fr); align-items: center; gap: 22px; color: #fff; background: rgba(6, 9, 6, .95); border: 1px solid #42563e; border-left: 5px solid var(--green-hi); box-shadow: 0 14px 28px rgba(0, 0, 0, .24); backdrop-filter: blur(14px); }
.your-signal[hidden] { display: none; }
.signal-identity { min-width: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; }
.signal-kicker { grid-column: 1 / -1; color: var(--green-hi); font: 700 7px var(--mono); }
.signal-identity > strong { color: var(--green-hi); font: 900 26px/1 var(--display); }
.signal-avatar { position: relative; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; color: #071007; background: var(--green-hi); border: 2px solid #596657; border-radius: 50%; font: 800 10px var(--display); }
.signal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.signal-identity div { min-width: 0; }
.signal-identity div b, .signal-identity div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signal-identity div b { font-size: 11px; }
.signal-identity div small { margin-top: 3px; color: #899486; font: 600 7px var(--mono); }
.signal-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #9da99a; font: 600 7px var(--mono); }
.signal-progress > div:first-child b { color: var(--green-hi); }
.signal-bar { height: 7px; margin-top: 8px; overflow: hidden; background: #273027; }
.signal-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-hi)); box-shadow: 0 0 10px rgba(168, 236, 40, .45); transition: width .5s ease; }
.signal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.signal-metrics span { color: #788275; font: 600 7px var(--mono); text-transform: uppercase; }
.signal-metrics b { display: block; margin-bottom: 3px; color: #fff; font: 800 16px/1 var(--display); text-transform: none; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr); gap: 12px; margin-top: 12px; }
.roster-panel { padding: 24px; }
.panel-heading { margin-bottom: 18px; }
.section-kicker { color: var(--green); font: 700 8px var(--mono); text-transform: uppercase; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.section-head h2 { margin-top: 4px; font: 800 30px/1 var(--display); }
.section-head .note { color: var(--muted); font: 600 8px var(--mono); text-transform: uppercase; }
.roster { display: grid; gap: 6px; transition: opacity .2s ease; }
.roster.loading { opacity: .45; }
.roster-row { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 44px minmax(120px, 1fr) 88px 50px 64px; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px; background: var(--surface-2); border: 1px solid transparent; border-radius: 4px; cursor: pointer; outline: 0; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.roster-row:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: var(--surface-3); }
.roster-row:focus-visible { border-color: var(--green-hi); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 26%, transparent); }
.roster-row.me { border-color: var(--green); }
.roster-row.expanded { transform: none; background: var(--surface-3); border-color: var(--green); }
.r-rank { font: 800 25px var(--display); text-align: center; }
.delta { display: block; margin-top: -2px; color: var(--muted); font: 700 7px var(--mono); }
.delta.same:not(:empty) { color: var(--green); }
.r-avatar { position: relative; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; color: #071007; background: var(--green-hi); border: 2px solid var(--surface); border-radius: 50%; font: 800 12px var(--display); }
.r-avatar img { width: 100%; height: 100%; object-fit: cover; }
.r-avatar.live::after, .live-av.live::after { content: ""; position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; background: var(--green-hi); border: 2px solid var(--surface-2); border-radius: 50%; }
.r-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.r-sub { margin-top: 3px; color: var(--muted); font: 600 8px var(--mono); }
.camp-badge { padding: 6px 7px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; font: 700 7px var(--mono); text-align: center; text-transform: uppercase; white-space: nowrap; }
.camp-badge.summit { color: #071007; background: var(--green-hi); border-color: var(--green-hi); }
.camp-badge.c3 { color: var(--green); border-color: var(--green); }
.camp-badge.c2 { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); }
.ring-wrap { position: relative; width: 36px; height: 36px; }
.ring-wrap svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.ring-wrap circle { fill: none; stroke-width: 2.7; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.ring-pct { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 600 7px var(--mono); }
.r-xp { color: var(--ink); font: 800 20px/1 var(--display); text-align: right; }
.r-xp small { display: block; margin-top: 3px; color: var(--green); font: 700 7px var(--mono); }
.roster-detail { grid-column: 1 / -1; display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 4px; padding: 12px 4px 3px; border-top: 1px solid var(--line); }
.roster-row.expanded .roster-detail { display: grid; }
.roster-detail span { min-width: 0; }
.roster-detail small, .roster-detail b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-detail small { color: var(--muted); font: 600 7px var(--mono); text-transform: uppercase; }
.roster-detail b { margin-top: 4px; color: var(--ink); font-size: 10px; }
.roster-detail .detail-status b { color: var(--muted); }
.roster-detail .detail-status.online b { color: var(--green); }
.cta-row { position: relative; z-index: 1; margin-top: 14px; min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.cta-row:hover { color: #071007; background: var(--green-hi); border-color: var(--green-hi); }
.cta-row svg { width: 16px; }

.live-panel { min-width: 0; }
.live-visual { position: relative; height: 210px; background: #121712 url('ben10/ben-study.png') center / cover no-repeat; border-bottom: 4px solid var(--green); }
.live-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 5, .86), rgba(5, 7, 5, .15) 70%); }
.live-visual-copy { position: absolute; left: 22px; bottom: 20px; z-index: 2; color: #fff; }
.live-visual-copy span { color: var(--green-hi); font: 700 8px var(--mono); }
.live-visual-copy strong { display: block; margin-top: 4px; font: 800 30px/.86 var(--display); }
.live-content { padding: 20px; }
.live-content .section-head { align-items: center; margin-bottom: 12px; }
.live-content .section-head h2 { font-size: 24px; }
.live-dot { padding: 4px 6px; color: #071007; background: var(--green-hi); border-radius: 3px; font: 800 7px var(--mono); }
#live-climbers { display: grid; gap: 6px; }
.live-card { position: relative; z-index: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 50px; padding: 6px 8px; background: var(--surface-2); border-radius: 4px; }
.live-av { position: relative; width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden; color: #071007; background: var(--green-hi); border-radius: 50%; font: 800 9px var(--display); }
.live-av img { width: 100%; height: 100%; object-fit: cover; }
.live-name { overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.live-sub { margin-top: 2px; overflow: hidden; color: var(--muted); font: 600 7px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.live-value { color: var(--green); font: 700 9px var(--mono); }
.oxygen { position: relative; z-index: 1; margin-top: 14px; padding: 12px; background: var(--black); border: 1px solid #263226; border-radius: 4px; }
.oxygen-head { display: flex; align-items: center; gap: 8px; color: #c4cec1; font: 700 7px var(--mono); text-transform: uppercase; }
.mini-omni { position: relative; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--green-hi); border-radius: 50%; }
.mini-omni::after { content: ""; display: block; background: var(--green-hi); }
.oxygen-bar { height: 7px; margin-top: 10px; overflow: hidden; background: #273027; border-radius: 1px; }
.oxygen-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-hi), var(--acid)); box-shadow: 0 0 10px var(--green); transition: width .6s ease; }
.oxygen-foot { display: flex; justify-content: space-between; margin-top: 7px; color: #6f7a6d; font: 600 7px var(--mono); }

.chart-card { margin-top: 12px; padding: 24px; }
.chart-copy { position: relative; z-index: 1; }
.chart-wrap { position: relative; z-index: 1; height: 170px; margin-top: 20px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 7; }
.chart-area { fill: url('#areaGrad'); }
.chart-line { fill: none; stroke: var(--chart-line); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--green) 55%, transparent)); }
.chart-point { fill: var(--surface); stroke: var(--green-hi); stroke-width: 3; }
.chart-axis { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font: 600 8px var(--mono); }

.summit-empty { min-height: 86px; display: grid; place-items: center; padding: 20px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 4px; font-size: 10px; text-align: center; }
.summit-empty.compact { min-height: 66px; }
.summit-toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; max-width: min(390px, calc(100vw - 44px)); padding: 12px 14px; color: #071007; background: var(--green-hi); border-radius: 4px; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.summit-toast.show { opacity: 1; transform: translateY(0); }
.summit-toast.error { color: #fff; background: #b52e28; }

.cmdk-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding-top: 14vh; background: rgba(0, 0, 0, .72); backdrop-filter: blur(7px); }
.cmdk-overlay.open { display: flex; }
.cmdk-box { width: min(500px, calc(100vw - 32px)); overflow: hidden; background: var(--surface); border: 1px solid var(--green); border-radius: 7px; box-shadow: 0 28px 90px rgba(0, 0, 0, .55); }
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); color: var(--green); }
.cmdk-input-row svg { width: 17px; }
.cmdk-input-row input { flex: 1; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.cmdk-results { max-height: 340px; overflow-y: auto; padding: 6px; }
.cmdk-result { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px; color: var(--ink); background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.cmdk-result:hover, .cmdk-result.active { background: var(--surface-2); }
.cr-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; color: #071007; background: var(--green-hi); border-radius: 50%; font: 800 9px var(--display); }
.cr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cr-name { font-size: 11px; font-weight: 800; }
.cr-xp { color: var(--green); font: 700 8px var(--mono); }
.cmdk-empty { padding: 20px; color: var(--muted); font-size: 10px; text-align: center; }
.flash-highlight { animation: flash 1.3s ease; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--green-hi) 35%, var(--surface)); } 100% { background: var(--surface-2); } }
.draw-path { stroke-dashoffset: 300; animation: draw 1.5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 1050px) {
  header { gap: 14px; }
  .brand { min-width: auto; }
  .brand-text, .header-status, .cmdk-btn span, .cmdk-btn kbd { display: none; }
  .cmdk-btn { width: 36px; justify-content: center; padding: 0; }
  .hero { min-height: 610px; background-size: cover, cover, 72% auto; }
  .hero-copy { width: 68%; padding-left: 38px; }
  .hero-podium { max-width: 790px; }
  .podium-slot { padding-left: 88px; }
  .podium-slot.champion { padding-left: 100px; }
  .podium-avatar-shell { width: 64px; height: 64px; }
  .champion .podium-avatar-shell { width: 74px; height: 74px; }
  .your-signal { grid-template-columns: minmax(230px, .9fr) minmax(220px, 1fr); gap: 14px; }
  .signal-metrics { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid #2e392d; }
  .content-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); }
  .roster-row { grid-template-columns: 34px 40px minmax(105px, 1fr) 76px 42px 56px; gap: 7px; padding-inline: 8px; }
}

@media (max-width: 800px) {
  header { min-height: 66px; padding: 8px 16px; }
  .brand-logo { width: 64px; height: 46px; }
  .brand-divider, nav.pills { display: none; }
  .wrap { width: min(100% - 28px, 680px); padding-top: 14px; }
  .connect-banner { grid-template-columns: 36px 1fr; }
  .connect-banner .summit-button { grid-column: 1 / -1; width: 100%; }
  .hero { min-height: 680px; background-image: linear-gradient(0deg, #050705 0 43%, rgba(5, 7, 5, .3) 72%, rgba(5, 7, 5, .05)), url('ben10/ben-hero.png'); background-position: center, center top; background-size: cover, 100% auto; }
  .hero-copy { width: 100%; padding: 300px 24px 0; }
  .hero h1 { font-size: clamp(58px, 17vw, 82px); }
  .hero-meta { font-size: 11px; }
  .hero-signal { display: none; }
  .hero-credit { right: 18px; top: 18px; }
  .winner-reveal { top: 66px; right: 18px; width: 152px; }
  .mountain-stage { height: 170px; }
  .track-label { display: none; }
  .peak-label { display: none; }
  .peak-avatar { width: 34px; height: 34px; }
  .peak-tag.top .peak-avatar { width: 44px; height: 44px; }
  .podium-band { padding: 22px 18px; }
  .podium-heading { margin-bottom: 18px; }
  .hero-podium { min-height: 0; margin: 0; grid-template-columns: 1fr; align-items: stretch; }
  .podium-slot, .podium-slot.champion { min-height: 100px; padding: 13px 48px 13px 96px; }
  .podium-slot.champion { order: -1; }
  .podium-avatar-shell, .champion .podium-avatar-shell { left: 14px; width: 64px; height: 64px; }
  .podium-copy strong { font-size: 18px; }
  .your-signal { position: relative; top: auto; grid-template-columns: 1fr; padding: 14px; }
  .signal-metrics { grid-column: auto; }
  .telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .live-visual { height: 260px; }
  .chart-card { padding: 18px; }
}

@media (max-width: 520px) {
  .header-right { gap: 5px; }
  .header-status { display: none; }
  .hero { min-height: 720px; }
  .hero-copy { padding-top: 286px; }
  .winner-reveal { top: 62px; right: 12px; width: 138px; padding: 9px; }
  .winner-reveal strong { font-size: 18px; }
  .hero-controls { align-items: stretch; flex-direction: column; }
  .period-switch button { flex: 1; min-width: 0; padding-inline: 6px; }
  .week-chip { min-height: 48px; }
  .mountain-stage { height: 152px; padding-inline: 10px; }
  #peak-tags, .mountain-stage > svg { left: 8px; right: 8px; width: calc(100% - 16px); }
  .telemetry-grid { gap: 7px; }
  .stat-card { min-height: 132px; padding: 15px; }
  .stat-num { font-size: 31px; }
  .stat-trend { max-width: 75px; }
  .roster-panel { padding: 16px 10px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .roster-row { grid-template-columns: 28px 38px minmax(0, 1fr) 49px; min-height: 58px; }
  .r-rank { font-size: 20px; }
  .r-avatar { width: 36px; height: 36px; }
  .camp-badge, .ring-wrap { display: none; }
  .r-xp { font-size: 17px; }
  .r-sub { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .roster-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-detail .detail-status { grid-column: 1 / -1; }
  .signal-metrics { gap: 6px; }
  .signal-metrics b { font-size: 14px; }
  .live-visual { height: 210px; }
  .chart-wrap { height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
