:root {
  --bg: #07080c;
  --bg-2: #10131a;
  --ink: #f4f0e6;
  --muted: #9a9286;
  --gold: #f0c14b;
  --gold-2: #c9a227;
  --fire: #ff4b3a;
  --line: #232833;
  --ok: #7dffb3;
  --err: #ff6b6b;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { min-height: 100vh; background:
  radial-gradient(1200px 500px at 10% -10%, rgba(240,193,75,.12), transparent 50%),
  radial-gradient(900px 400px at 100% 0%, rgba(255,75,58,.08), transparent 45%),
  var(--bg); }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe08a; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--gold); color: #111; padding: .5rem 1rem; z-index: 9; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(640px, calc(100% - 2rem)); }
.section { padding: 3rem 0 4rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }

.sticky-head { position: sticky; top: 0; z-index: 20; }
.livebar { background: #0b0d12; border-bottom: 1px solid var(--line); font-size: .86rem; color: #c8c2b6; }
.livebar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; min-height: 38px; padding: .4rem 0; }
.livebar strong { color: var(--ink); font-weight: 800; }
.livebar a { color: var(--gold); font-weight: 700; white-space: nowrap; }
.live-sep { color: #5c564c; }
.live-dot { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--ok); text-transform: lowercase; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(125, 255, 179, .7); animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 255, 179, .7); }
  70% { box-shadow: 0 0 0 8px rgba(125, 255, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 255, 179, 0); }
}
.top { backdrop-filter: blur(16px); background: rgba(7,8,12,.86); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 1rem; }
.brand { font-family: var(--display); font-size: 1.7rem; letter-spacing: .06em; color: var(--ink); }
.brand span { color: var(--gold); }
.brand-mini { font-size: 1.2rem; display: block; margin-bottom: 1rem; }
.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 600; font-size: .92rem; }
.inline { display: inline; }
.linkish { background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

.kicker { text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-size: .78rem; font-weight: 800; margin: 0 0 .6rem; }
.display { font-family: var(--display); font-size: clamp(3.2rem, 9vw, 7.4rem); line-height: .85; margin: 0 0 .8rem; letter-spacing: .02em; }
.display-sm { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .8rem; letter-spacing: .03em; }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.55rem); color: #ddd6c8; line-height: 1.35; }
.muted, .fine, .copy { color: var(--muted); }
.fine { font-size: .88rem; }

.hero { padding: 4.5rem 0 2rem; }
.hero-compact { padding: 1.15rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); gap: 1rem 2rem; align-items: start; }
.display-home { font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 2.85rem); line-height: 1.05; letter-spacing: .03em; margin: 0 0 .55rem; }
.display-home a { color: var(--gold); }
.hero-line { margin: 0 0 .35rem; font-size: 1rem; color: #ddd6c8; max-width: 40rem; }
.hero-buy { margin: .45rem 0 .75rem; font-size: .88rem; color: var(--muted); max-width: 40rem; line-height: 1.4; }
.livebar-stack { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; font-size: .86rem; }
.livebar-stack .livebar-inner { display: grid; gap: .4rem; min-height: 0; padding: 0; }
.livebar-stack .live-sep { display: none; }
.hero-rule { max-width: 38rem; color: var(--muted); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.section-rank { padding: .4rem 0 2.5rem; }
.empty-sm { padding: 1.2rem 0; text-align: left; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: .7rem 1.2rem; font-weight: 800; cursor: pointer; font-family: inherit; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-xl { padding: 1rem 1.4rem; font-size: 1.05rem; width: 100%; }
.btn-fit { width: auto; min-width: 16rem; }
.btn-gold { background: linear-gradient(180deg, #ffd56a, var(--gold)); color: #16120a; }
.btn-gold:hover { color: #16120a; filter: brightness(1.05); }
.btn-fire { background: var(--fire); color: #fff; }
.btn-fire:hover { color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }

.podium-wrap { padding: 1rem 0 3rem; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1rem; align-items: end; }
.pod { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1rem 1.4rem; text-align: center; color: var(--ink); }
.pod img { width: 140px; height: 140px; object-fit: cover; margin: .6rem auto; border-radius: 16px; }
.pod.gold { transform: translateY(-18px); border-color: var(--gold); box-shadow: 0 0 0 1px rgba(240,193,75,.25), 0 20px 50px rgba(0,0,0,.35); }
.pod.gold img { width: 180px; height: 180px; }
.pod-rank { color: var(--gold); font-weight: 800; }
.pod strong { display: block; font-size: 1.4rem; }
.pod em { color: var(--muted); font-style: normal; display: block; margin: .2rem 0 .5rem; }
.pod b { color: var(--gold); font-size: 1.35rem; }

.rank-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rank-head, .rank-row { display: grid; grid-template-columns: 72px 1fr 140px 130px; gap: .8rem; align-items: center; padding: .85rem 1rem; }
.first-place-card { max-width: 36rem; }
#premiere-place { scroll-margin-top: 7rem; }
.rank-head { background: #161a22; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.rank-row { border-top: 1px solid var(--line); background: rgba(255,255,255,.01); }
.rank-row.is-first { background: rgba(240,193,75,.06); }
.rank-player { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.rank-player img, .avatar-letter { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #1c212b; }
.avatar-letter { display: grid; place-items: center; font-weight: 800; color: var(--gold); }
.rank-player small { display: block; color: var(--muted); }
.badge { display: inline-block; margin: .15rem 0 .2rem; padding: .08rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.badge-goat { background: linear-gradient(90deg, #f0c14b, #ffe08a); color: #16120a; border: 1px solid #f0c14b; }
.badge-legend { background: rgba(240, 193, 75, .18); color: var(--gold); border: 1px solid rgba(240, 193, 75, .45); }
.badge-patron { background: rgba(196, 214, 255, .12); color: #c4d6ff; border: 1px solid rgba(196, 214, 255, .35); }
.badge-contrib { background: rgba(255, 255, 255, .06); color: #b8b3aa; border: 1px solid var(--line); }
.rank-amount { font-weight: 800; color: var(--gold); }
.rank-pos { font-family: var(--display); font-size: 1.4rem; }
.team-table .rank-row { grid-template-columns: 72px 1fr 160px; color: inherit; }

.page-hero { padding: 3rem 0 1rem; }
.player-hero { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.player-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.player-photo { width: 280px; height: 280px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); }
.mega-amount { font-family: var(--display); font-size: clamp(3rem, 8vw, 5.5rem); color: var(--gold); margin: .2rem 0; line-height: .9; }
.rank-badge { font-size: 1.4rem; font-weight: 800; }
.fireline { color: var(--fire); font-weight: 800; }
.bio { max-width: 40rem; }
.socials { display: flex; gap: 1rem; list-style: none; padding: 0; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; padding: 2.5rem 0 4rem; }
.support-card, .panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; margin-bottom: 1rem; }
.callout { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin: 1rem 0; }
.callout.crown { border-color: var(--gold); }
.callout.fire { border-color: var(--fire); }
.stepper { display: flex; align-items: center; gap: .6rem; }
.stepper input { width: 6rem; text-align: center; font-size: 1.4rem; font-weight: 800; }
.stepper button, .shortcuts button { background: #1b202a; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; min-width: 44px; min-height: 44px; cursor: pointer; font-size: 1.1rem; }
.shortcuts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.identity { display: grid; gap: .6rem; margin: 1rem 0; }
.check { display: flex; gap: .55rem; align-items: flex-start; }
.form, .form label { display: grid; gap: .45rem; }
.form { gap: 1rem; }
.form input, .form textarea, .form select, .search input, .stepper input {
  width: 100%; background: #0c0f14; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; font: inherit;
}
.search { display: flex; gap: .6rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.player-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; color: var(--ink); }
.player-card img { border-radius: 12px; width: 72px; height: 72px; object-fit: cover; }
.supporters, .feed, .loop ol { padding-left: 1.1rem; }
.team-mini { display: grid; gap: .7rem; }
.team-mini a { display: flex; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; color: var(--ink); }
.empty { text-align: center; padding: 3rem 1rem; }
.flash { padding: .85rem 1rem; text-align: center; }
.flash-ok { background: #123322; color: var(--ok); }
.flash-err { background: #3a1515; color: var(--err); }
.foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; }
.disclaimer { font-size: .86rem; color: #b7b0a5; max-width: 70rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; margin: 1rem 0; }
.pager { display: flex; justify-content: space-between; margin-top: 1.2rem; }
.legal h2 { margin-top: 1.6rem; }
.opt { color: var(--muted); font-weight: 500; }

.admin-body { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: #0c0f14; border-right: 1px solid var(--line); padding: 1.2rem; display: grid; align-content: start; gap: .55rem; }
.admin-nav a { color: var(--ink); }
.admin-main { padding: 1.5rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .55rem; text-align: left; vertical-align: top; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.stats b { display: block; font-size: 1.4rem; color: var(--gold); }
.admin-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.tiny { font-size: .72rem; word-break: break-all; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .livebar-stack .livebar-inner { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
  .livebar-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .livebar-inner::-webkit-scrollbar { display: none; }
  .podium, .player-grid, .split, .admin-body { grid-template-columns: 1fr; }
  .pod.gold { transform: none; }
  .rank-head { display: none; }
  .rank-row { grid-template-columns: 52px 1fr; }
  .rank-amount, .rank-gap, .rank-action { grid-column: 2; }
  .top-inner { flex-direction: column; align-items: flex-start; padding: .7rem 0; }
}
