:root {
  --bg: #0a0d10; --panel: #12171c; --panel-2: #181f26; --line: #26303a;
  --text: #eef1f4; --muted: #93a0ad;
  --brass: #d6a84f; --brass-hi: #f1d38a; --blood: #b8322a; --blood-dk: #7c1f1a;
  --head: Bahnschrift, "DIN Alternate", "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4, .brand, .stats b, .store { font-family: var(--head); }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; line-height: 1; letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0,0,0,.8); }
h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.5px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,13,16,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 3px; color: var(--brass-hi); font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--brass); }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; margin-left: auto; }
.nav-links a { color: #cfd6dd; }
.nav-links a:hover { color: var(--brass-hi); text-decoration: none; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s ease, filter .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, var(--blood), var(--blood-dk)); border: 1px solid var(--brass); color: #fff4d6; }
.btn-secondary { background: var(--panel-2); border: 1px solid #44525f; color: var(--text); }
.btn-google { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
.btn-apple { background: #000; color: #fff; border: 1px solid #475569; }
.btn-sm { padding: 8px 14px !important; font-size: 13px !important; }

/* HERO */
.hero { background: linear-gradient(90deg, rgba(10,13,16,.96) 25%, rgba(10,13,16,.6) 100%), linear-gradient(180deg, rgba(10,13,16,.2), var(--bg)), url('assets/hero_bg.png') center/cover no-repeat; border-bottom: 1px solid var(--brass); padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; min-height: calc(100vh - 62px); }
.season { display: inline-block; color: var(--brass-hi); font-size: 13px; font-weight: 600; padding: 6px 14px; border: 1px solid var(--brass); border-radius: 999px; background: rgba(124,31,26,.55); margin-bottom: 22px; }
.hero-sub { font-size: 18px; color: #d3dae1; margin: 22px 0 30px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.store { display: flex; flex-direction: column; justify-content: center; min-width: 170px; padding: 9px 20px; border-radius: 10px; background: #000; border: 1px solid #5b6772; font-size: 20px; font-weight: 700; line-height: 1.15; color: #fff; opacity: .92; }
.store small { font-family: var(--body); font-size: 11px; font-weight: 500; color: var(--brass-hi); }
.text-link { font-weight: 600; font-size: 14px; }
.phone { justify-self: center; width: min(300px, 78vw); padding: 10px; border-radius: 38px; background: linear-gradient(160deg, #2b343d, #0d1114); border: 1px solid #4a5764; box-shadow: 0 0 0 1px #000, 0 30px 70px rgba(0,0,0,.8), 0 0 80px rgba(214,168,79,.18); }
.trailer-video { width: 100%; aspect-ratio: 9 / 16; display: block; background: #000; border-radius: 28px; object-fit: cover; }

/* STATS */
.stats { padding: 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-row > div { padding: 28px 20px; border-left: 1px solid var(--line); }
.stats-row > div:first-child { border-left: 0; }
.stats b { display: block; font-size: 38px; line-height: 1; color: var(--brass-hi); }
.stats span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* SECTIONS */
section { padding: 88px 0; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.sec-head p { color: var(--muted); margin-top: 12px; }

/* FEATURES */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 22px; color: var(--brass-hi); text-transform: uppercase; letter-spacing: .5px; }
.card p { color: #b6c0ca; font-size: 15px; }
.card img.thumb { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.thumb-icon { object-fit: contain !important; background: #0b0e11; }
.card-lg { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; padding: 26px; }
.card-lg img.thumb { width: 48%; height: 260px; flex: none; }
.card-lg h3 { font-size: 28px; margin-bottom: 10px; }
.card-rev { flex-direction: row-reverse; }

/* STEPS */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps li { counter-increment: s; padding: 0 22px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass-hi); font-family: var(--head); font-weight: 700; background: var(--bg); margin-bottom: 16px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 20px; text-transform: uppercase; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* PRESTIGE */
.prestige-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-end; }
.avatar-card { width: 210px; text-align: center; padding: 20px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.avatar-top { width: 240px; padding: 28px 16px; border-color: var(--brass); box-shadow: 0 0 50px rgba(214,168,79,.15); }
.avatar-card img { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; border: 2px solid var(--brass); margin-bottom: 12px; }
.avatar-top img { width: 140px; height: 140px; }
.avatar-card h4 { font-size: 18px; text-transform: uppercase; }
.avatar-card span { font-size: 13px; color: var(--brass); font-weight: 600; }

/* PORTAL (JS-bound classes kept) */
.portal-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; }
.portal-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.band .portal-card { background: var(--bg); }
.portal-card h3 { color: var(--brass-hi); margin: 0 0 10px; font-size: 20px; text-transform: uppercase; }
.portal-sub { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.table-scroll { max-height: 380px; overflow-y: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank-table th { text-align: left; color: var(--brass); border-bottom: 1px solid var(--line); padding: 8px 6px; font-size: 12px; position: sticky; top: 0; background: var(--panel-2); }
.rank-table td { padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rank-table tbody tr:nth-child(-n+3) td:first-child { color: var(--brass-hi); font-weight: 800; }
.sub-cell { color: var(--muted); font-size: 11px; }
.muted-cell { color: var(--muted); text-align: center; padding: 16px; font-size: 13px; }
.err-cell { color: #f87171; font-size: 12px; margin-top: 6px; }
.portal-auth-bar { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 20px; }
.auth-inline-form, .logged-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.auth-inline-form input, .chat-input-row input, .stacked-form input, .stacked-form textarea, .form-group input, .form-group textarea {
  flex: 1; min-width: 170px; background: #0b0e11; color: var(--text); border: 1px solid #34414d; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
input:focus, textarea:focus { border-color: var(--brass); outline: none; }
.status-note { font-size: 12px; color: var(--brass); }
.chat-feed, .forum-feed { background: #0b0e11; border: 1px solid var(--line); border-radius: 10px; padding: 10px; height: 310px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-line { font-size: 13.5px; color: #e2e8f0; line-height: 1.4; }
.chat-user { color: var(--brass); margin-right: 4px; }
.chat-input-row { display: flex; gap: 8px; margin-top: 10px; }
.forum-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.forum-head-row h3 { margin: 0; }
.forum-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.forum-cat-btn { background: var(--panel); color: #dbe2e8; border: 1px solid #34414d; border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.forum-cat-btn.active { background: var(--brass); color: #1a1205; border-color: var(--brass); }
.portal-item { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; }
.portal-item:hover { border-color: var(--brass); }
.portal-item-top { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.portal-item-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 5px; }
.pill-pin { background: var(--brass); color: #1a1205; font-size: 9px; font-weight: 900; padding: 2px 5px; border-radius: 4px; }
.pill-lock { background: var(--blood-dk); color: #fee2e2; font-size: 9px; font-weight: 900; padding: 2px 5px; border-radius: 4px; }
.op-box, .reply-box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.op-box h4 { color: var(--brass-hi); font-size: 16px; margin-bottom: 4px; }
.reply-text { color: #e2e8f0; font-size: 13px; white-space: pre-wrap; margin: 6px 0 0; line-height: 1.5; }
.stacked-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

/* LEGAL + FORMS */
.legal-wrap { max-width: 820px; margin: 56px auto; padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.legal-wrap h1 { font-size: 34px; margin-bottom: 14px; text-shadow: none; }
.legal-wrap h2 { font-size: 19px; color: var(--brass-hi); margin: 26px 0 8px; }
.legal-wrap p, .legal-wrap li { color: #c1cad3; font-size: 15px; margin-bottom: 10px; }
.legal-wrap ul { padding-left: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--brass-hi); margin-bottom: 5px; }
.form-group input, .form-group textarea { width: 100%; }

footer { border-top: 1px solid var(--line); background: #07090b; padding: 38px 0; text-align: center; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-bottom: 14px; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row > div:nth-child(3) { border-left: 0; }
  .stats-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  section { padding: 60px 0; }
  .bento { grid-template-columns: 1fr; }
  .card-lg, .card-rev { flex-direction: column; align-items: stretch; }
  .card-lg img.thumb { width: 100%; height: 200px; }
  .legal-wrap { margin: 24px auto; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* DISCORD CTA BUTTON */
.btn-discord {
  background: linear-gradient(180deg, #5865F2, #4752C4);
  border: 1px solid #7983F5;
  color: #ffffff;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 10px;
}
.btn-discord:hover {
  filter: brightness(1.12);
  color: #ffffff;
  text-decoration: none;
}
.discord-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}