@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=IBM+Plex+Sans:wght@400;600;700&display=swap');

:root {
  --bg: #060b14;
  --pitch: #0d2818;
  --surface: #0f172a;
  --card: #111827;
  --border: #1e3a2f;
  --neon-green: #00ff66;
  --neon-pink: #ff4466;
  --neon-cyan: #00d4ff;
  --gold: #ffd700;
  --text: #e8f4f0;
  --muted: #7a9a8a;
  --win: #00ff66;
  --loss: #ff4466;
  --pixel: 'Press Start 2P', monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --page-pad: 1rem;
  --max-w: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 255, 102, 0.12), transparent),
    radial-gradient(circle at 20% 80%, rgba(255, 68, 102, 0.06), transparent),
    linear-gradient(180deg, var(--bg) 0%, #0a1628 40%, var(--pitch) 100%);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: var(--neon-green); }

/* ── Mobile-first: images never squash ── */
.media {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-radius: inherit;
}

.media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

/* Share cards / landscape hero */
.media--landscape { aspect-ratio: 16 / 9; }
.media--landscape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Full-page report screenshots — scroll naturally */
.media--report img {
  width: 100%;
  height: auto;
}

/* Thumbnail in match cards */
.media--thumb { aspect-ratio: 16 / 10; }
.media--thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ── Header (mobile) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  padding: 0.65rem var(--page-pad);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.logo-lockup img { height: 32px; width: 32px; flex-shrink: 0; }

.logo-lockup .team-name {
  font-family: var(--pixel);
  font-size: 0.45rem;
  line-height: 1.35;
  color: var(--neon-green);
}

.logo-lockup .team-name span { color: var(--neon-pink); display: block; font-size: 0.4rem; }

.header-alfred { height: 28px; width: 28px; flex-shrink: 0; display: none; }

nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  white-space: nowrap;
}

nav a {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
}

nav a:hover, nav a.active { color: var(--neon-green); }

/* ── Hero (mobile: stack, image first) ── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem var(--page-pad) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-visual {
  order: -1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.12);
}

.hero-visual .overlay-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  font-family: var(--pixel);
  font-size: 0.4rem;
  color: var(--gold);
  line-height: 1.5;
}

.hero-copy h1 {
  font-family: var(--pixel);
  font-size: clamp(0.55rem, 3.5vw, 0.85rem);
  line-height: 1.65;
  margin: 0 0 0.75rem;
  color: var(--neon-green);
  text-shadow: 0 0 16px rgba(0, 255, 102, 0.35);
}

.hero-copy .tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  font-family: var(--pixel);
  font-size: 0.38rem;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  line-height: 1.4;
}

.badge.win { border-color: var(--win); color: var(--win); }
.badge.loss { border-color: var(--loss); color: var(--loss); }
.badge.live { border-color: var(--neon-cyan); color: var(--neon-cyan); animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.hero-meta {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Main ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 3rem;
}

section { margin-bottom: 2.5rem; }

.section-title {
  font-family: var(--pixel);
  font-size: clamp(0.5rem, 2.8vw, 0.65rem);
  color: var(--neon-pink);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  line-height: 1.5;
}

/* ── Stats (mobile: 2 col) ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.stat-box {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-box .num {
  font-family: var(--pixel);
  font-size: clamp(0.55rem, 3vw, 0.75rem);
  color: var(--neon-green);
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.stat-box .lbl {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Match cards (mobile: single column) ── */
.match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.match-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.match-card.win { border-top: 3px solid var(--win); }
.match-card.loss { border-top: 3px solid var(--loss); }

.match-card .card-body { padding: 1rem; }

.match-card h3 {
  font-family: var(--pixel);
  font-size: clamp(0.42rem, 2.5vw, 0.52rem);
  margin: 0 0 0.6rem;
  line-height: 1.55;
}

.match-card .score {
  font-family: var(--pixel);
  font-size: clamp(0.65rem, 4vw, 0.85rem);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.match-card .score .w { color: var(--win); }
.match-card .score .l { color: var(--loss); }

.match-card p { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.85rem; }

.cta {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 0.42rem;
  padding: 0.65rem 0.9rem;
  background: var(--neon-green);
  color: var(--bg);
  border-radius: 4px;
  line-height: 1.4;
  border: none;
  cursor: pointer;
}

.cta:hover { background: var(--gold); color: var(--bg); }

/* ── Roster (mobile: 2 col, then 5) ── */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.player-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.player-card .role {
  font-size: 0.65rem;
  color: var(--neon-pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.player-card .name {
  font-family: var(--pixel);
  font-size: 0.45rem;
  color: var(--neon-green);
  line-height: 1.4;
}

.roster-note {
  text-align: center;
  color: var(--muted);
  margin-top: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0 0.25rem;
}

/* ── Gallery (mobile: single column, natural height) ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--card);
}

.gallery figcaption {
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  line-height: 1.4;
}

/* ── Setups ── */
.setup-grid { display: grid; gap: 0.85rem; }

.setup-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--card), #0a1f14);
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  cursor: pointer;
}

.setup-card:hover { box-shadow: 0 0 20px rgba(0, 255, 102, 0.2); }
.setup-card.clicked { opacity: 0.55; border-color: var(--muted); }

.setup-card .verified {
  font-family: var(--pixel);
  font-size: 0.35rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  padding: 0.25rem 0.45rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.setup-card h3 {
  font-family: var(--pixel);
  font-size: clamp(0.42rem, 2.5vw, 0.48rem);
  margin: 0 0 0.3rem;
  color: var(--neon-green);
  line-height: 1.5;
}

.setup-card p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.download-btn {
  font-family: var(--pixel);
  font-size: 0.4rem;
  padding: 0.7rem 1rem;
  background: var(--neon-pink);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  line-height: 1.4;
}

.download-btn:hover { background: var(--gold); color: var(--bg); }

.disclaimer {
  background: rgba(255, 68, 102, 0.08);
  border: 1px dashed var(--neon-pink);
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ── Practice pages ── */
.page-hero {
  text-align: center;
  padding: 1.25rem var(--page-pad) 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--pixel);
  font-size: clamp(0.5rem, 3vw, 0.75rem);
  color: var(--neon-green);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 3rem;
}

.practice-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  line-height: 1.45;
}

.timeline .minute {
  font-weight: 700;
  color: var(--gold);
  min-width: 2rem;
  font-family: var(--pixel);
  font-size: 0.45rem;
  line-height: 1.6;
}

.report-wrap {
  margin: 1.25rem 0;
  border-radius: 8px;
  border: 2px solid var(--border);
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.report-wrap img {
  width: 100%;
  height: auto;
}

.page-actions { text-align: center; margin-top: 1.5rem; }

/* ── Footer ── */
.site-footer {
  border-top: 2px solid var(--border);
  padding: 1.5rem var(--page-pad);
  text-align: center;
  background: rgba(0,0,0,0.4);
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

.footer-logos img { height: 32px; width: auto; opacity: 0.85; }

.site-footer p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.2rem 0;
  line-height: 1.5;
  padding: 0 0.5rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--neon-green); }

/* ══════════════════════════════════════
   TABLET  ≥ 600px
   ══════════════════════════════════════ */
@media (min-width: 600px) {
  :root { --page-pad: 1.25rem; }

  .header-alfred { display: block; }
  .logo-lockup img { height: 36px; width: 36px; }

  .stats-strip { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }

  .roster-grid { grid-template-columns: repeat(3, 1fr); }

  .setup-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
  }

  .download-btn { width: auto; }

  .practice-top { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ══════════════════════════════════════
   DESKTOP  ≥ 900px
   ══════════════════════════════════════ */
@media (min-width: 900px) {
  :root { --page-pad: 1.5rem; }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-visual { order: 0; }

  .match-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .roster-grid { grid-template-columns: repeat(5, 1fr); }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .gallery figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ══════════════════════════════════════
   WIDE  ≥ 1100px
   ══════════════════════════════════════ */
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }

  .gallery figure:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}
