:root {
  --bg: #05070c;
  --bg-2: #0a0f19;
  --panel: #0d1422;
  --panel-2: #111b2d;
  --line: #1b2840;
  --line-2: #24365a;
  --text: #e8eef8;
  --muted: #94a3b8;
  --dim: #64748b;
  --sky: #38bdf8;
  --sky-2: #0ea5e9;
  --sky-glow: rgba(56, 189, 248, .35);
  --steel: #cbd5e1;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.display { font-family: var(--display); letter-spacing: .02em; line-height: .92; text-transform: uppercase; font-weight: 400; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sky { color: var(--sky); }
.kicker { font: 600 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: linear-gradient(180deg, var(--sky), var(--sky-2)); color: #031018;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 0 var(--sky-glow); transition: box-shadow .2s, transform .1s, background .2s;
}
.btn:hover { text-decoration: none; box-shadow: 0 0 24px 0 var(--sky-glow); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--sky); color: var(--sky); box-shadow: none; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 11.5px; border-radius: 8px; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(248,113,113,.4); }
.btn.link { background: none; border: 0; color: var(--sky); padding: 0; min-height: 0; text-transform: none; letter-spacing: 0; font-weight: 600; box-shadow: none; }

/* forms */
label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--steel); }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: 15px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,189,248,.15); }
.form { display: grid; gap: 14px; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.error { color: var(--bad); font-size: 13.5px; }
.ok { color: var(--good); font-size: 13.5px; }

/* cards */
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--steel); background: rgba(255,255,255,.02); }
.pill.good { color: var(--good); border-color: rgba(52,211,153,.35); }
.pill.warn { color: var(--warn); border-color: rgba(251,191,36,.35); }
.pill.bad { color: var(--bad); border-color: rgba(248,113,113,.35); }
.pill.sky { color: var(--sky); border-color: rgba(56,189,248,.35); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line-2); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------- public site ---------------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(5,7,12,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: .04em; }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a:not(.btn) { color: var(--steel); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(56,189,248,.16), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { font-size: clamp(64px, 11vw, 148px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--sky); text-shadow: 0 0 34px var(--sky-glow); }
.hero .lead { font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; color: var(--steel); margin: 0; }
.hero .lead b { color: var(--sky); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--line); padding-top: 18px; max-width: 560px; }
.stats div { display: grid; gap: 2px; }
.stats small { font-size: 10.5px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--dim); }
.stats strong { font: 700 clamp(20px, 3vw, 28px)/1.1 var(--mono); }
.stats div:nth-child(2) strong { color: var(--sky); }
.stats div:nth-child(3) strong { color: var(--good); }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; } }
.hero-art { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(56,189,248,.35); background: #000; aspect-ratio: 4/3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .badge { position: absolute; left: 16px; bottom: 16px; width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 30px var(--sky-glow); }

section.band { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 720px; }
.section-head h2 { font-size: clamp(44px, 7vw, 84px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.champ { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .champ { grid-template-columns: 1fr; } }
.champ-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4/3; background: var(--panel); }
.champ-photo img { width: 100%; height: 100%; object-fit: cover; }
.trophy-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sponsor { display: grid; gap: 14px; align-content: start; }
.sponsor .logo { height: 96px; display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 12px; }
.sponsor .logo img { max-height: 72px; width: auto; object-fit: contain; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; }
.tier { padding: 16px; }
.tier strong { display: block; font: 700 22px var(--mono); color: var(--sky); margin-top: 4px; }
.tier.featured { border-color: rgba(56,189,248,.5); box-shadow: 0 0 30px -12px var(--sky-glow); }
.funds { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.tier ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

.store-gate { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .store-gate { grid-template-columns: 1fr; } }

.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 13.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }

/* store */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.product { padding: 0; overflow: hidden; display: grid; }
.product .img { aspect-ratio: 1; background: #0b0f17; display: grid; place-items: center; }
.product .img img { width: 100%; height: 100%; object-fit: contain; }
.product .body { padding: 16px; display: grid; gap: 10px; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,189,248,.25); }
.cart-bar { position: sticky; bottom: 0; background: rgba(10,15,25,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); padding: 12px 0; z-index: 10; }
.cart-bar .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------------- portal ---------------- */
.portal { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; } }
.side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) {
  .side { position: fixed; inset: auto 0 0 0; height: auto; top: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 30; gap: 2px; }
  .side .brand, .side .who, .side .side-foot { display: none; }
  main.view { padding-bottom: 96px !important; }
}
.side .brand { padding: 4px 8px 16px; }
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; white-space: nowrap; }
.nav-btn svg { width: 18px; height: 18px; flex: none; }
.nav-btn:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-btn[aria-current="page"] { color: var(--sky); background: rgba(56,189,248,.08); }
@media (max-width: 900px) { .nav-btn { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 7px 10px; width: auto; } }
.who { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.who b { display: block; }

main.view { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.view-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.view-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: .95; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 380px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

.event { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event .date { text-align: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 0; }
.event .date b { display: block; font: 700 22px/1 var(--mono); }
.event .date small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.event h4 { margin: 0 0 2px; font-size: 15px; }
.event p { margin: 0; color: var(--muted); font-size: 13.5px; }
@media (max-width: 560px) { .event { grid-template-columns: 54px 1fr; } .event .actions { grid-column: 1 / -1; } }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 34px; }
.seg button[aria-pressed="true"] { background: rgba(56,189,248,.14); color: var(--sky); }

.big-num { font: 700 34px/1 var(--mono); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-tiles .card { padding: 16px; }
.stat-tiles small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 6px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 500px at 70% 10%, rgba(56,189,248,.12), transparent), var(--bg); }
.login-card { width: min(420px, 100%); }
.login-card .emblem { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; box-shadow: 0 0 40px var(--sky-glow); }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 20px; }

.chat-log { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { justify-self: end; background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.3); }
.msg small { display: block; font-size: 11px; color: var(--dim); margin-bottom: 2px; font-weight: 600; }
.composer { display: flex; gap: 8px; margin-top: 12px; }
.composer input { flex: 1; }

.voice-orb { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--sky); display: grid; place-items: center; margin: 10px auto; background: radial-gradient(circle, rgba(56,189,248,.25), transparent 70%); cursor: pointer; transition: box-shadow .2s; color: var(--sky); }
.voice-orb.live { box-shadow: 0 0 0 10px rgba(56,189,248,.12), 0 0 60px var(--sky-glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(56,189,248,.05), 0 0 80px var(--sky-glow); } }
@media (prefers-reduced-motion: reduce) { .voice-orb.live { animation: none; } }

.drill { border-left: 3px solid var(--sky); padding: 10px 14px; background: rgba(56,189,248,.04); border-radius: 0 10px 10px 0; }
.drill h4 { margin: 0 0 4px; }
.drill ol { margin: 6px 0; padding-left: 18px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; z-index: 60; box-shadow: 0 20px 40px rgba(0,0,0,.4); max-width: calc(100% - 32px); }
@media (max-width: 900px) { .toast { bottom: 92px; } }
.empty { color: var(--dim); padding: 18px 0; }

/* Scout bubble (public pages) */
.scout-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--sky), var(--sky-2)); color: #031018; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 30px -8px var(--sky-glow); }
.scout-dot { width: 9px; height: 9px; border-radius: 50%; background: #031018; box-shadow: 0 0 0 3px rgba(3,16,24,.25); }
.scout-panel { position: fixed; right: 16px; bottom: 76px; z-index: 41; width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 110px)); display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.scout-panel .composer input { min-width: 0; }
.cart-bar:not(.hidden) ~ .scout-fab { bottom: 84px; }
#mic.live, .scout-panel .live { border-color: var(--sky); color: var(--sky); }
.scout-panel .chat-log { align-content: start; overflow-y: auto; min-height: 0; }

.thumbs { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.thumb { width: 52px; height: 52px; flex: none; padding: 0; border-radius: 8px; border: 2px solid var(--line-2); background: #0b0f17; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--sky); }
