﻿:root {
  color-scheme: dark;
  --bg: #060604;
  --ink: #fff4d7;
  --muted: #b9a77d;
  --gold: #f5c65b;
  --gold-2: #a97519;
  --amber: #ff9d21;
  --panel: rgba(18, 14, 9, .78);
  --panel-2: rgba(43, 31, 16, .78);
  --line: rgba(245, 198, 91, .24);
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  font-family: "Inter", "Bahnschrift", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 8%, rgba(250, 187, 74, .2), transparent 28rem),
    radial-gradient(circle at 14% 0%, rgba(255, 124, 26, .15), transparent 22rem),
    linear-gradient(145deg, #050404, #131009 48%, #050404);
  color: var(--ink);
  overflow-x: hidden;
}

button, input, a { font: inherit; }
button, a { transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
button:hover, a:hover { transform: translateY(-1px); }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .15;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: overlay;
}

.nav {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 6, 4, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand, .nav a {
  color: var(--ink);
  text-decoration: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  padding-left: 4px;
}
.brand strong {
  display: block;
  color: #fff8e8;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(245, 198, 91, .28);
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav nav a {
  color: #e9d7a8;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

.player-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 223, 136, .42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(64, 45, 18, .78), rgba(11, 9, 6, .72));
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.player-pill span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.player-pill strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold);
  font-size: 13px;
}

button, .outline, .gold, .ghost, .chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
.gold {
  border-color: rgba(255, 223, 136, .78);
  background: linear-gradient(180deg, #ffe293, #b77718 70%, #5d3509);
  color: #140b02;
  font-weight: 900;
  box-shadow: 0 12px 36px rgba(245, 165, 43, .22);
}
.outline, .ghost {
  background: rgba(10, 9, 7, .46);
  color: var(--ink);
}
.ghost { color: #e6d1a0; }
.xl { min-height: 52px; padding-inline: 24px; }

main { position: relative; z-index: 1; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 560px) 360px;
  align-items: center;
  gap: 86px;
  padding: 132px max(24px, calc((100vw - 1180px) / 2)) 74px;
  overflow: hidden;
  background: #050403;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, .78) 0%, rgba(5,4,3,.28) 32%, rgba(5,4,3,.08) 60%, rgba(5,4,3,.54) 100%),
    url("/assets/hero-optimized.jpg") center bottom/cover no-repeat;
  transform: scale(1);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 156px;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 6, 4, .42) 46%, var(--bg) 100%),
    radial-gradient(72% 58% at 50% 24%, rgba(245, 198, 91, .09), transparent 76%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background:
    linear-gradient(180deg, rgba(245, 198, 91, .1), rgba(6, 6, 4, .62) 46%, var(--bg) 100%);
  clip-path: polygon(0 58%, 18% 45%, 50% 55%, 82% 42%, 100% 52%, 100% 100%, 0 100%);
  z-index: 1;
}
.hero-copy, .hero-card {
  position: relative;
  z-index: 2;
}
.hero-copy { align-self: center; max-width: 560px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 42px rgba(244, 183, 59, .22);
}
.hero-title-split {
  display: grid;
  gap: 2px;
  max-width: 520px;
}
.hero-title-split span {
  display: block;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1;
  color: #f4dfad;
}
.hero-title-split strong {
  display: block;
  font-size: clamp(58px, 8vw, 104px);
  line-height: .82;
  color: #fff7dd;
  font-weight: 950;
}
h2 {
  font-size: clamp(24px, 2.3rem, 38px);
  line-height: 1;
  letter-spacing: 0;
}
.lead {
  max-width: 600px;
  color: #d6c49a;
  font: 500 17px/1.65 "Bahnschrift", "Segoe UI", sans-serif;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
}
.status-grid div, .hero-card, .profile-panel, .shop-card, .season-card, .leaderboard, .download-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.status-grid div {
  padding: 14px;
  border-radius: 20px;
}
.status-grid strong { display: block; font-size: 24px; color: var(--gold); line-height: 1.12; overflow-wrap: anywhere; }
.status-grid span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }

.hero-card {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(100%, 340px);
  transform: translate(154px, -118px);
  border-radius: 30px;
  padding: 28px;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(255, 202, 91, .24), transparent 15rem);
  pointer-events: none;
}
.seal {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  clip-path: polygon(50% 0, 100% 27%, 84% 100%, 16% 100%, 0 27%);
  background: #f2c75f;
  color: #130b02;
  font-weight: 1000;
  font-size: 28px;
}
.countdown {
  margin-top: 20px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  color: var(--gold);
  font-weight: 900;
}

.section, .season {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 112px;
  scroll-margin-top: 120px;
}
.hero + .section { margin-top: 0; }
.split,
.battle-pass-teaser,
.season,
.launcher,
.lower-intel {
  padding-block: 34px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  gap: 24px;
  align-items: stretch;
}
.section p, .season p, .profile-panel p {
  color: #cdbb91;
  font: 500 16px/1.65 "Bahnschrift", "Segoe UI", sans-serif;
}
.profile-panel {
  border-radius: 30px;
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(19, 14, 8, .82), rgba(54, 35, 14, .64)),
    url("/assets/squad-optimized.jpg") center/cover no-repeat;
}
.profile-panel.logged {
  background: linear-gradient(145deg, rgba(19, 14, 8, .9), rgba(54, 35, 14, .75));
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.profile-stats span {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,.25);
}
.profile-stats strong { display: block; color: var(--gold); font-size: 22px; }
.profile-panel .profile-stats + .outline {
  margin-top: 14px;
}

.section-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding-inline: 14px;
  color: #d9c89d;
  background: rgba(13, 11, 8, .78);
}
.shop-all-link {
  margin-left: auto;
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}
.text-filters {
  order: 3;
  flex-basis: 100%;
  justify-content: flex-start;
  gap: 18px;
}
.text-filters .chip {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b9a77d;
  font-weight: 900;
  letter-spacing: .04em;
}
.text-filters .chip.active {
  color: var(--gold);
  background: transparent;
}
.chip.active {
  color: #160d03;
  background: linear-gradient(180deg, #ffe293, #b77718);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.shop-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shop-card {
  position: relative;
  min-height: 198px;
  border-radius: 26px;
  padding: 20px;
  overflow: hidden;
}
.shop-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(245,198,91,.2);
  transform: rotate(45deg);
}
.shop-card .tag {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gold);
  font-size: 12px;
}
.shop-card h3 { margin: 18px 0 12px; min-height: 52px; }
.prices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prices span {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,.26);
  color: #f0ddb0;
  font-size: 13px;
}

.season {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 20px;
}
.season-combo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-content: start;
}
.season-combo h2 {
  font-size: clamp(26px, 2.4rem, 38px);
}
.leaderboard.embedded {
  min-height: auto;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.season-card, .leaderboard, .download-card {
  border-radius: 30px;
  padding: 28px;
}
.leaderboard ol {
  margin: 16px 0 0;
  padding-left: 22px;
}
.leaderboard li {
  margin: 10px 0;
  color: #e5d2a0;
}
.rank-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(110px, 1fr) repeat(2, auto);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(214, 163, 54, .32);
  border-radius: 12px;
  color: #e9d9ac;
  font-size: 14px;
  line-height: 1.25;
  background: rgba(0, 0, 0, .18);
}
.rank-row strong {
  color: #fff6df;
  font-size: 15px;
}
.rank-row span {
  white-space: nowrap;
}
.rank-pos {
  color: var(--gold);
  font-weight: 900;
}
.clan-row {
  grid-template-columns: 42px minmax(96px, 1fr) auto auto auto;
}
.muted { color: var(--muted); }
.launcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: center;
}
.download-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  grid-template-rows: auto auto 1fr auto;
}
.download-card span { color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
.download-card strong { font-size: 26px; line-height: 1.05; min-height: 56px; display: flex; align-items: flex-start; }
.download-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.download-card.large {
  min-height: 268px;
  align-content: start;
}
.download-card p {
  color: #cdbb91;
  font: 500 15px/1.6 "Bahnschrift", "Segoe UI", sans-serif;
  min-height: 74px;
}
.download-card a {
  width: 100%;
  min-height: 38px;
  align-self: end;
  white-space: nowrap;
  padding-inline: 14px;
}
.download-card a[aria-disabled="true"] {
  pointer-events: none;
  opacity: .55;
}
.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.lower-intel {
  grid-template-columns: 1fr;
}
.admin-page {
  min-height: 100vh;
}
.admin-hero {
  min-height: 320px;
}
.admin-login,
.admin-dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}
.admin-list {
  display: grid;
  gap: 10px;
}
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(245, 198, 91, .16);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}
.admin-row span {
  color: var(--muted);
  font-size: 13px;
}
.admin-row .mini {
  grid-row: span 2;
  min-height: 34px;
  padding-inline: 12px;
}
.admin-create-row {
  display: grid;
  grid-template-columns: 1fr 1fr 160px auto;
  gap: 10px;
}
.section-head.compact {
  align-items: center;
}

.site-footer,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer strong {
  display: block;
  color: #fff8e8;
  letter-spacing: .08em;
}
.site-footer span {
  display: block;
  margin-top: 6px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
}

dialog {
  width: min(430px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(25, 18, 8, .98), rgba(7, 6, 4, .98));
  box-shadow: 0 28px 80px rgba(0,0,0,.62), 0 0 0 1px rgba(245,198,91,.08) inset;
}
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.auth-shell { position: relative; padding: 28px; }
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  width: 34px;
  padding: 0;
  border-color: rgba(245,198,91,.28);
  background: rgba(0,0,0,.22);
  color: #dcc78f;
}
.auth-view { display: none; gap: 10px; }
.auth-view.active { display: grid; }
.auth-view h2 {
  margin: 6px 0 14px;
  font-size: 31px;
  line-height: 1.05;
}
input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(245,198,91,.24);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(0,0,0,.34);
  outline: none;
}
input:focus { border-color: var(--gold); }
select { appearance: none; }
.account-form {
  display: grid;
  gap: 10px;
}
.auth-message {
  min-height: 0;
  margin: 14px 0 0;
  padding: 0;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.35;
}
.auth-message:not(:empty) {
  padding: 12px 14px;
  border: 1px solid rgba(245,198,91,.24);
  border-radius: 12px;
  background: rgba(245,198,91,.09);
}
.auth-message.success {
  color: #ffe39a;
  border-color: rgba(245,198,91,.38);
  background: linear-gradient(180deg, rgba(245,198,91,.15), rgba(245,198,91,.07));
}
.auth-message.error {
  color: #ffb59f;
  border-color: rgba(255,130,104,.42);
  background: rgba(255,85,55,.1);
}
.auth-switch {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.auth-switch button,
.auth-forgot {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
}
.auth-forgot {
  margin-top: 2px;
  justify-self: center;
  font-size: 13px;
}
.reset-inline {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.battle-pass-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(245, 198, 91, .28);
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 205, 96, .18), transparent 16rem),
    linear-gradient(145deg, rgba(45, 32, 10, .82), rgba(12, 10, 7, .74));
  box-shadow: 0 30px 90px rgba(245, 165, 43, .12);
}

.page-body,
.bp-body {
  padding-top: 116px;
}

.page-hero,
.bp-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  min-height: 420px;
  display: grid;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 38px;
  overflow: hidden;
  background: rgba(10, 8, 5, .7);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 54px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,4,3,.86), rgba(5,4,3,.38), rgba(5,4,3,.78)),
    url("/assets/squad-optimized.jpg") center/cover no-repeat;
  transform: scale(1.04);
}

.profile-page {
  min-height: 100vh;
}

.profile-page.logged-out .profile-dashboard,
.profile-page.logged-out .profile-grid {
  display: none;
}

.profile-dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.profile-dashboard article,
.profile-section-card,
.bp-status-card,
.bp-board,
.bp-details {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.profile-dashboard article {
  min-height: 104px;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.profile-dashboard span,
.bp-status-card span,
.bp-track {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.profile-dashboard strong {
  color: var(--gold);
  font-size: clamp(20px, 1.45rem, 28px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profile-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.profile-security {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
}

.profile-section-card {
  border-radius: 24px;
  padding: 22px;
  min-height: 214px;
}
.account-security-card {
  min-height: auto;
}
.security-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.security-columns .account-form {
  padding: 18px;
  border: 1px solid rgba(245, 198, 91, .18);
  border-radius: 22px;
  background: rgba(0,0,0,.18);
}
.security-columns h3 {
  margin-bottom: 10px;
  color: var(--gold);
}

.profile-section-card p {
  color: #cdbb91;
  font: 500 14px/1.55 "Bahnschrift", "Segoe UI", sans-serif;
}

.email-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 198, 91, .28);
  background: rgba(0, 0, 0, .2);
  color: #e8d7a7;
  font-size: 12px;
}

.email-state.verified {
  border-color: rgba(75, 220, 142, .45);
  color: #9df0bd;
}

.email-state.pending {
  border-color: rgba(245, 198, 91, .5);
  color: #ffd76a;
}

.email-state.missing {
  border-color: rgba(255, 110, 110, .42);
  color: #ffb3a7;
}

.profile-stats.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-mini-bar,
.bp-progress-shell {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 198, 91, .38);
  border-radius: 999px;
  background: rgba(0,0,0,.35);
}

.bp-mini-bar { margin: 10px 0 12px; }

#profileBattlePass .gold {
  min-height: 36px;
  padding-inline: 16px;
  font-size: 14px;
  justify-self: start;
}

.bp-mini-bar span,
.bp-progress-shell span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a97519, #ffe293);
  box-shadow: 0 0 28px rgba(245, 198, 91, .42);
}

.bp-body {
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 198, 91, .17), transparent 20rem),
    radial-gradient(circle at 92% 22%, rgba(126, 43, 22, .2), transparent 18rem),
    linear-gradient(145deg, #060504, #181008 42%, #050404);
}

.bp-nav {
  border-color: rgba(245, 198, 91, .3);
}

.bp-page {
  position: relative;
}

.bp-hero {
  padding: 34px;
  gap: 22px;
  min-height: 380px;
  align-items: stretch;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 208, 92, .2), transparent 19rem),
    linear-gradient(145deg, rgba(39, 26, 7, .88), rgba(10, 8, 5, .78));
}

.bp-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.3)),
    url("/assets/squad-optimized.jpg") center/cover no-repeat;
  opacity: .34;
}

.bp-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
}

.bp-summary.locked {
  display: block;
  max-width: 760px;
  align-self: end;
}

.bp-summary.locked h1 {
  max-width: 760px;
  font-size: clamp(34px, 4rem, 60px);
}

.bp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.bp-status-card {
  border-color: rgba(245, 198, 91, .34);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 8px;
  background: linear-gradient(145deg, rgba(48, 34, 12, .86), rgba(8, 7, 5, .74));
}

.bp-status-card strong {
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
}

.bp-status-card small {
  color: #e1c990;
  font: 600 13px/1.5 "Bahnschrift", "Segoe UI", sans-serif;
}

.bp-message {
  min-height: 24px;
  margin: 0;
  color: var(--gold);
  font: 700 14px/1.5 "Bahnschrift", "Segoe UI", sans-serif;
}

.bp-message.error {
  color: #ff9b7c;
}

.bp-board,
.bp-details {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  border-radius: 24px;
  padding: 22px;
  border-color: rgba(245, 198, 91, .24);
  background:
    radial-gradient(circle at 10% 0, rgba(255, 205, 96, .12), transparent 18rem),
    rgba(12, 8, 4, .78);
}

.bp-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e1c990;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.free-dot,
.premium-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.free-dot { background: #4ea8ff; }
.premium-dot { background: #ffc43b; }

.bp-reward-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 252px;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 2px 18px;
  scrollbar-color: var(--gold) rgba(0,0,0,.35);
}

.bp-tier {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 10px;
}

.bp-tier-number {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 198, 91, .38);
  border-radius: 50%;
  color: #f4d891;
  background: rgba(0,0,0,.34);
  font-weight: 900;
}

.bp-tier.reached .bp-tier-number {
  color: #160d03;
  background: linear-gradient(180deg, #ffe293, #b77718);
}

.bp-reward {
  min-height: 214px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  background: linear-gradient(145deg, rgba(16, 16, 20, .9), rgba(8, 8, 5, .82));
}

.bp-reward.premium {
  border-color: rgba(255, 196, 59, .36);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 196, 59, .18), transparent 9rem),
    linear-gradient(145deg, rgba(32, 23, 6, .92), rgba(8, 8, 5, .82));
}

.bp-reward.free {
  border-color: rgba(84, 169, 255, .32);
  background:
    radial-gradient(circle at 100% 0, rgba(84, 169, 255, .12), transparent 8rem),
    linear-gradient(145deg, rgba(10, 18, 30, .9), rgba(8, 8, 5, .82));
}

.bp-reward.claimable {
  box-shadow: 0 0 34px rgba(245, 198, 91, .18);
}

.bp-reward.claimed {
  opacity: .68;
}

.bp-reward strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.bp-reward p {
  margin: 0;
  color: #d4bf8e;
  font: 600 12px/1.35 "Bahnschrift", "Segoe UI", sans-serif;
}

.bp-reward-art {
  position: relative;
  min-height: 92px;
  border: 1px solid rgba(245, 198, 91, .18);
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 226, 147, .12), transparent 45%),
    rgba(0,0,0,.22);
}

.bp-reward-art::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,226,147,.42), transparent);
}

.bp-reward-art span {
  color: rgba(255, 226, 147, .9);
  font-size: 30px;
  font-weight: 1000;
}

.bp-reward-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.reward-action {
  width: 100%;
  min-height: 38px;
  border-radius: 14px;
  padding: 0 10px;
}

.reward-action.locked,
.reward-action.claimed {
  cursor: default;
  color: #87977e;
  background: rgba(255,255,255,.04);
}

.bp-history-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding-right: 6px;
}

.bp-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  border-radius: 12px;
}

.bp-history-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}

.bp-history-item span,
.bp-history-item p,
.bp-history-item time {
  margin: 0;
  color: #fff;
  font: 600 12px/1.35 "Bahnschrift", "Segoe UI", sans-serif;
}

.bp-history-item span,
.bp-history-item time {
  opacity: .72;
}

.reveal {
  animation: rise .8s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: scale(1) translateX(-6px); }
  to { transform: scale(1.025) translateX(8px); }
}

@media (max-width: 920px) {
  .nav { position: sticky; top: 0; transform: none; left: auto; width: 100%; border-radius: 0; flex-wrap: wrap; }
  .nav .brand { min-width: auto; flex: 1 0 100%; }
  .nav nav { order: 3; width: 100%; overflow: auto; padding: 4px 0; }
  .nav-actions {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-actions button,
  .nav-actions .gold,
  .nav-actions .ghost {
    min-width: 0;
    width: 100%;
    white-space: nowrap;
  }
  .hero, .split, .season, .season-combo, .launcher, .battle-pass-teaser, .profile-grid, .bp-summary, .download-options, .intel-grid, .security-columns, .admin-grid, .admin-create-row { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-top: 96px; min-height: auto; }
  .hero-card { justify-self: stretch; max-width: none; width: 100%; transform: none; }
  .status-grid, .shop-grid, .shop-preview, .profile-dashboard, .profile-stats.wide { grid-template-columns: 1fr; }
  .page-body, .bp-body { padding-top: 0; }
  .page-hero, .bp-hero { min-height: auto; padding: 28px; border-radius: 28px; }
  .bp-reward-grid { grid-auto-columns: minmax(230px, 78vw); }
  .section-head { align-items: start; flex-direction: column; }
  .shop-all-link { margin-left: 0; }
  footer { flex-direction: column; }
  h1 { font-size: 38px; line-height: 1.04; }
  h2 { font-size: 32px; }
  .bp-summary.locked h1 { font-size: 38px; }
}

@media (max-width: 480px) {
  .nav {
    gap: 8px;
    padding: 10px 12px;
  }
  .brand {
    min-width: auto;
    flex: 1 0 100%;
    gap: 8px;
  }
  .brand strong {
    font-size: 15px;
    letter-spacing: .08em;
  }
  .nav-actions {
    order: 2;
    width: 100%;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-actions button,
  .nav-actions .gold,
  .nav-actions .ghost {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
    white-space: nowrap;
    flex: 1 1 0;
    width: 100%;
  }
  .nav nav {
    order: 3;
    gap: 16px;
  }
  .hero {
    padding-inline: 24px;
  }
  .lead {
    font-size: 16px;
  }
  .bp-reward-grid {
    grid-auto-columns: minmax(238px, 82vw);
  }
}


