﻿:root {
  --navy: #071636;
  --blue: #0b4bb3;
  --blue-2: #1778ef;
  --gold: #ffd23f;
  --green: #31d078;
  --ink: #061126;
  --panel: rgba(8, 20, 55, 0.78);
  --line: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: var(--navy);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(rgba(7, 15, 45, 0.42), rgba(5, 12, 34, 0.82)), url("../images/Brawl-Stars.webp") center/cover no-repeat;
  filter: saturate(1.05) brightness(0.9);
  transform: scale(1.02);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 10%, rgba(255, 210, 63, 0.24), transparent 28%), radial-gradient(circle at 80% 20%, rgba(49, 208, 120, 0.18), transparent 26%), linear-gradient(180deg, rgba(7, 18, 52, 0.1), rgba(7, 18, 52, 0.72));
}

button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ticker { width: 100%; overflow: hidden; background: #082b82; border-bottom: 1px solid var(--line); }
.ticker-track { display: inline-flex; gap: 42px; min-width: max-content; padding: 8px 0; animation: ticker 24s linear infinite; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.ticker-track span { white-space: nowrap; }
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.site-header { text-align: center; padding: 24px 16px 12px; }
.brand { display: inline-flex; justify-content: center; }
.brand img { width: min(360px, 88vw); filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55)); }
.subline { max-width: 620px; margin: 10px auto 0; color: rgba(255,255,255,0.78); font-weight: 800; line-height: 1.45; }

.main-layout { width: min(980px, calc(100% - 28px)); margin: 0 auto 28px; display: grid; gap: 16px; }
.stats-panel, .reward-panel { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(0,0,0,0.38); backdrop-filter: blur(10px); }
.stats-panel { border-radius: 8px; overflow: hidden; }
.live-label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: rgba(255,255,255,0.82); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #33f186; box-shadow: 0 0 16px #33f186; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.45); opacity: 0.55; } }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-grid div { padding: 16px 10px; text-align: center; border-left: 1px solid var(--line); }
.stats-grid div:first-child { border-left: 0; }
.stats-grid strong { display: block; font-family: "Lilita One", Inter, sans-serif; font-size: clamp(28px, 7vw, 42px); line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,0.35); }
.stats-grid span { display: block; margin-top: 4px; color: rgba(255,255,255,0.6); font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

.reward-panel { border-radius: 8px; padding: clamp(16px, 4vw, 28px); }
.step { display: none; }
.step.active { display: block; animation: rise 0.22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { text-align: center; margin-bottom: 18px; }
.section-heading p, .eyebrow { margin: 0 0 4px; color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
h1, h2 { font-family: "Lilita One", Inter, sans-serif; margin: 0; letter-spacing: 0; text-shadow: 0 4px 0 rgba(0,0,0,0.34); }
h1 { font-size: clamp(34px, 9vw, 58px); }
h2 { font-size: clamp(28px, 7vw, 44px); }

.reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reward-card { position: relative; min-height: 196px; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; color: #fff; overflow: hidden; padding: 12px 10px 14px; background: linear-gradient(160deg, #7035d1, #331580 72%); box-shadow: inset 0 -12px 0 rgba(0,0,0,0.16), 0 12px 26px rgba(0,0,0,0.28); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; transition: transform .18s ease, filter .18s ease, border-color .18s ease; }
.reward-card::before { content: ""; position: absolute; inset: -45%; background: conic-gradient(from 0deg, rgba(255,255,255,.22), transparent 14%, rgba(255,255,255,.2) 22%, transparent 36%, rgba(255,255,255,.18) 48%, transparent 62%, rgba(255,255,255,.2) 74%, transparent 88%); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.reward-card:hover, .reward-card:focus-visible { transform: translateY(-3px) scale(1.02); filter: brightness(1.08); border-color: rgba(255,210,63,0.85); outline: none; }
.reward-card img { position: relative; z-index: 1; height: 96px; width: 100%; object-fit: contain; margin: 14px 0 8px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); }
.reward-card strong, .reward-card small, .badge { position: relative; z-index: 1; }
.reward-card strong { font-family: "Lilita One", Inter, sans-serif; font-size: 22px; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0,0,0,0.36); line-height: 1; }
.reward-card small { color: #7cffab; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.badge { position: absolute; top: 9px; left: 9px; padding: 5px 7px; border-radius: 6px; background: #f5bd16; color: #281400; font-weight: 1000; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }

.selected-preview { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.08); margin-bottom: 18px; }
.selected-preview img { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); }
.selected-preview p { margin: 0 0 4px; color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
label { display: block; margin: 14px 0 8px; font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.78); font-size: 12px; }
input { width: 100%; border: 2px solid rgba(255,255,255,.22); border-radius: 8px; padding: 15px 14px; color: #fff; background: rgba(0,0,0,.28); outline: none; font-weight: 900; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,210,63,.16); }
.platform-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.platform { border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 12px 8px; background: rgba(255,255,255,.08); color: #fff; font-weight: 1000; text-transform: uppercase; }
.platform.active { border-color: var(--gold); color: #1a1300; background: var(--gold); }
.primary-btn, .back-btn { border: 0; border-radius: 8px; font-weight: 1000; text-transform: uppercase; letter-spacing: .06em; }
.primary-btn { width: 100%; margin-top: 18px; padding: 16px; color: #fff; font-family: "Lilita One", Inter, sans-serif; font-size: 25px; background: linear-gradient(#2e98ff, #075fce); box-shadow: 0 7px 0 #03499f, 0 18px 34px rgba(0,0,0,.32); }
.primary-btn:active { transform: translateY(4px); box-shadow: 0 3px 0 #03499f, 0 12px 24px rgba(0,0,0,.28); }
.back-btn { margin-bottom: 14px; padding: 9px 12px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid var(--line); }
.fineprint, .unlock-card p { color: rgba(255,255,255,.7); line-height: 1.5; font-weight: 700; }
.fineprint { margin: 12px 0 0; font-size: 12px; }

.scan-card, .unlock-card { text-align: center; max-width: 520px; margin: 0 auto; }
.scan-card img, .unlock-card img { width: 138px; height: 138px; object-fit: contain; margin: 0 auto 14px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); animation: float 1.9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.progress-shell { width: 100%; height: 20px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); overflow: hidden; margin-top: 18px; }
#progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--gold), #35df79); transition: width .35s ease; }
#progress-text { display: inline-block; margin-top: 9px; color: var(--gold); font-weight: 1000; }
.unlock-card code { color: #fff; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; padding: 2px 5px; }
.footer-note { margin-top: auto; padding: 16px; text-align: center; background: rgba(3, 10, 31, 0.72); border-top: 1px solid var(--line); color: rgba(255,255,255,0.66); font-size: 12px; font-weight: 700; line-height: 1.45; }

@media (min-width: 760px) {
  .main-layout { grid-template-columns: 280px 1fr; align-items: start; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid div { border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid div:first-child { border-top: 0; }
  .reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .reward-card { min-height: 178px; }
  .reward-card img { height: 78px; }
  .reward-card strong { font-size: 18px; }
  .platform-row { grid-template-columns: 1fr; }
}
