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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg-dark: oklch(0.13 0 0);
    --bg-panel: oklch(0.175 0.005 270);
    --bg-card: oklch(0.23 0.008 270);
    --accent: oklch(0.75 0.16 65);
    --accent-dim: oklch(0.58 0.12 65);
    --accent-2: oklch(0.70 0.12 240);
    --gold: oklch(0.82 0.17 90);
    --silver: oklch(0.75 0.01 270);
    --bronze: oklch(0.60 0.12 55);
    --text: oklch(0.94 0 0);
    --text-dim: oklch(0.62 0.008 270);
    --green: oklch(0.65 0.17 150);
    --red: oklch(0.68 0.20 25);
    --pitch: oklch(0.32 0.07 150);
    --pitch-light: oklch(0.37 0.08 150);
    --pitch-line: oklch(1 0 0 / 0.22);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-pixel: 'Press Start 2P', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --z-sticky: 100;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg-dark);
    background-image: radial-gradient(ellipse 80% 50% at 50% 0%, oklch(0.18 0.03 65 / 0.25), transparent);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection {
    background: oklch(0.75 0.16 65 / 0.3);
    color: var(--text);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   HERO (home page)
   ============================================================ */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-pitch {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            var(--pitch) 0px, var(--pitch) 48px,
            var(--pitch-light) 48px, var(--pitch-light) 96px
        );
    box-shadow: inset 0 0 80px oklch(0 0 0 / 0.6);
}

.pitch-center-circle {
    position: absolute;
    width: 100px; height: 100px;
    border: 2px solid var(--pitch-line);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.pitch-center-line {
    position: absolute;
    width: 2px; top: 0; bottom: 0; left: 50%;
    background: var(--pitch-line);
}

.pitch-area-left, .pitch-area-right {
    position: absolute;
    width: 60px; height: 100px;
    border: 2px solid var(--pitch-line);
    top: 50%; transform: translateY(-50%);
}
.pitch-area-left { left: 0; border-left: none; }
.pitch-area-right { right: 0; border-right: none; }

.floodlight {
    position: absolute;
    width: 300px; height: 400px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}
.floodlight-tl {
    top: -200px; left: -100px;
    background: radial-gradient(circle, oklch(0.95 0.05 90 / 0.6), transparent 70%);
}
.floodlight-tr {
    top: -200px; right: -100px;
    background: radial-gradient(circle, oklch(0.95 0.05 90 / 0.6), transparent 70%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 40%, transparent 0%, oklch(0 0 0 / 0.4) 100%),
        linear-gradient(180deg, oklch(0 0 0 / 0.15) 0%, oklch(0 0 0 / 0.65) 100%);
}

/* --- Avatar cloud floating on the pitch --- */
.hero-avatars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-avatar {
    position: absolute;
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: visible;
    opacity: 0.7;
    animation: avatar-float 12s ease-in-out infinite;
    animation-delay: calc(var(--i) * -1.8s);
}

.hero-avatar img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid oklch(0.75 0.16 65 / 0.5);
    box-shadow: 0 4px 16px oklch(0 0 0 / 0.4), 0 0 20px oklch(0.75 0.16 65 / 0.15);
}

.hero-avatar-placeholder {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shirt) 0%, oklch(0.3 0.05 260) 100%);
    border: 2px solid oklch(1 0 0 / 0.15);
    box-shadow: 0 4px 16px oklch(0 0 0 / 0.4), 0 0 12px var(--shirt, oklch(0.5 0.1 65) / 0.2);
}

.hero-avatar-name {
    position: absolute;
    bottom: -18px; left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: oklch(1 0 0 / 0.6);
    white-space: nowrap;
    text-shadow: 0 1px 4px oklch(0 0 0 / 0.8);
    letter-spacing: 0.02em;
}

.hero-avatar-1  { top: 18%; left: 8%; }
.hero-avatar-2  { top: 55%; left: 5%; }
.hero-avatar-3  { top: 12%; right: 10%; left: auto; }
.hero-avatar-4  { top: 60%; right: 7%; left: auto; }
.hero-avatar-5  { top: 35%; left: 15%; }
.hero-avatar-6  { top: 40%; right: 14%; left: auto; }
.hero-avatar-7  { top: 72%; left: 20%; }
.hero-avatar-8  { top: 70%; right: 18%; left: auto; }
.hero-avatar-9  { top: 8%; left: 30%; }
.hero-avatar-10 { top: 10%; right: 28%; left: auto; }
.hero-avatar-11 { top: 78%; left: 35%; }
.hero-avatar-12 { top: 75%; right: 32%; left: auto; }

@keyframes avatar-float {
    0%, 100% { transform: translateY(0) scale(1); }
    25%  { transform: translateY(-8px) scale(1.04); }
    50%  { transform: translateY(4px) scale(0.97); }
    75%  { transform: translateY(-5px) scale(1.02); }
}

/* Hero split layout: form left, tournament right */
.hero-split {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 520px;
}

.hero-logo {
    font-size: 22px;
    color: var(--text);
    display: block;
    letter-spacing: 0.06em;
    text-shadow:
        0 0 30px oklch(0.75 0.16 65 / 0.4),
        0 2px 12px oklch(0 0 0 / 0.6);
}
.hero-logo span { color: var(--accent); }

.hero-sub {
    color: oklch(1 0 0 / 0.7);
    font-size: 14px;
    margin-top: 8px;
    text-shadow: 0 1px 6px oklch(0 0 0 / 0.5);
}

.hero-form {
    margin-top: 28px;
    background: oklch(0.10 0 0 / 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: var(--radius);
    padding: 20px;
}

.hero-input-row {
    display: flex;
    gap: 8px;
}

.hero-input {
    flex: 1;
    background: oklch(0.08 0 0 / 0.9);
    border-color: oklch(1 0 0 / 0.12);
}
.hero-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px oklch(0.75 0.16 65 / 0.15);
}

.hero-btn {
    white-space: nowrap;
    padding: 12px 28px;
}

.hero-platforms {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.hero-platform {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hero-platform input { display: none; }
.hero-platform span {
    display: block;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid oklch(1 0 0 / 0.1);
    border-radius: 6px;
    color: oklch(1 0 0 / 0.6);
    background: oklch(0.08 0 0 / 0.6);
    transition: all 0.2s var(--ease);
}
.hero-platform input:checked + span {
    border-color: var(--accent);
    color: var(--accent);
    background: oklch(0.75 0.16 65 / 0.1);
}
.hero-platform span:hover {
    border-color: oklch(1 0 0 / 0.2);
    color: oklch(1 0 0 / 0.8);
}

/* --- Tournament info card in hero --- */
.hero-tournament-info {
    width: 100%;
    max-width: 280px;
}

.hero-tourney-card {
    background: oklch(0.10 0 0 / 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.hero-status-badge.hero-status-open {
    color: var(--green);
    background: oklch(0.65 0.17 150 / 0.12);
}
.hero-status-badge.hero-status-live {
    color: var(--red);
    background: oklch(0.68 0.20 25 / 0.12);
}

.hero-tourney-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.hero-tourney-slots {
    margin-top: 8px;
}
.hero-tourney-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.hero-tourney-max {
    font-size: 14px;
    color: var(--text-dim);
}

.hero-tourney-bar {
    height: 4px;
    background: oklch(1 0 0 / 0.08);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}
.hero-tourney-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.6s var(--ease);
    min-width: 2px;
}

/* ============================================================
   AD BANNERS (Test / Placeholder)
   ============================================================ */
.ad-banner {
    margin: 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}
.ad-banner ins { width: 100%; display: block; }

.ad-test {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(135deg, oklch(0.22 0.02 240), oklch(0.18 0.01 200));
    border: 1px solid oklch(1 0 0 / 0.06);
    color: oklch(0.7 0 0);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}
.ad-test-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.4;
    padding: 2px 8px;
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 4px;
}
.ad-test-title {
    font-size: 15px;
    font-weight: 800;
    color: oklch(0.85 0.12 65);
}
.ad-test-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 16px;
    background: oklch(0.75 0.16 65);
    color: oklch(0.13 0 0);
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ad-banner-horizontal { min-height: 90px; }
.ad-banner-horizontal .ad-test { min-height: 90px; flex-direction: row; gap: 16px; padding: 12px 24px; }
.ad-banner-horizontal .ad-test-title { font-size: 16px; }

.ad-banner-tall { min-height: 600px; }
.ad-banner-tall .ad-test { min-height: 600px; padding: 24px 12px; }
.ad-banner-tall .ad-test-title { font-size: 14px; }

.ad-banner-medium { min-height: 250px; }
.ad-banner-medium .ad-test { min-height: 250px; }

.ad-banner-inline { min-height: 100px; margin: 12px 0; }
.ad-banner-inline .ad-test { min-height: 100px; flex-direction: row; gap: 12px; }

/* Page layout with ad sidebars */
.page-with-ads {
    display: flex;
    gap: 0;
}

.page-main {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
}

.ad-sidebar {
    width: 160px;
    flex-shrink: 0;
    display: none;
}
.ad-sidebar .ad-banner-tall {
    position: sticky;
    top: 72px;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
    margin-top: 14px;
}

.countdown-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.countdown-unit { text-align: center; }

.countdown-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    font-family: var(--font);
    line-height: 1;
    min-width: 48px;
    background: oklch(0 0 0 / 0.3);
    border-radius: 6px;
    padding: 8px 4px;
}

.countdown-label {
    display: block;
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-weight: 700;
}

.countdown-sep {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.5;
    padding-bottom: 16px;
}

/* ============================================================
   HERO FOLLOW CTA + LIVE BADGE
   ============================================================ */
.hero-follow-cta {
    margin-top: 24px;
    padding: 20px;
    background: oklch(0.10 0 0 / 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: var(--radius);
}
.hero-follow-cta p {
    font-size: 14px;
    color: oklch(1 0 0 / 0.7);
    line-height: 1.5;
}

.hero-follow-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-follow {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    transition: all 0.25s var(--ease);
}

.btn-tiktok {
    background: oklch(0.35 0 0);
    color: oklch(0.95 0 0);
    border: 1.5px solid oklch(1 0 0 / 0.12);
}
.btn-tiktok:hover {
    background: oklch(0.42 0 0);
    border-color: oklch(1 0 0 / 0.2);
}

.btn-instagram {
    background: linear-gradient(135deg, oklch(0.55 0.22 320), oklch(0.60 0.22 30), oklch(0.70 0.20 60));
    color: #fff;
    border: none;
}
.btn-instagram:hover {
    opacity: 0.9;
    box-shadow: 0 4px 16px oklch(0.55 0.22 320 / 0.3);
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 24px;
    background: oklch(0.68 0.20 25 / 0.15);
    border: 1px solid oklch(0.68 0.20 25 / 0.3);
    font-size: 16px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 0.02em;
}

/* ============================================================
   HERO STATUS (registration open / live)
   ============================================================ */
.hero-status {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: oklch(0 0 0 / 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-status-open { color: var(--green); }
.hero-status-live { color: var(--red); }

.hero-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-status-dot.pulse {
    background: var(--green);
    animation: status-pulse 2s ease-in-out infinite;
}
.hero-status-dot.live-dot {
    background: var(--red);
    animation: status-pulse 1s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px oklch(1 0 0 / 0.1); }
}

.hero-status-link {
    color: var(--text);
    text-decoration: none;
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s var(--ease);
}
.hero-status-link:hover { opacity: 1; }

/* ============================================================
   HOME STATS BAR
   ============================================================ */
.home-stats-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid oklch(1 0 0 / 0.04);
}

.home-stat {
    text-align: center;
}

.home-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.home-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 2px;
}

/* ============================================================
   TROPHY BANNER
   ============================================================ */
.trophy-banner {
    margin-bottom: 20px;
}

.trophy-banner-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: oklch(0.82 0.17 90 / 0.06);
    border: 1px solid oklch(0.82 0.17 90 / 0.15);
    border-radius: var(--radius);
}

.trophy-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.trophy-info {
    flex: 1;
    min-width: 0;
}

.trophy-winner {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trophy-label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ============================================================
   STEP NUMBERS
   ============================================================ */
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: oklch(0.75 0.16 65 / 0.12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ============================================================
   HOME GRID (two columns on desktop)
   ============================================================ */
.home-grid {
    display: grid;
    gap: 16px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    background: oklch(0.15 0.003 270 / 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
}

.nav-logo {
    font-family: var(--font-pixel);
    font-size: 11px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: opacity 0.2s var(--ease);
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: oklch(1 0 0 / 0.05);
}

.nav-links a.active {
    color: var(--accent);
    background: oklch(0.75 0.16 65 / 0.08);
}

.nav-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    padding: 0 !important;
}
.nav-search-icon svg { display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-wrap: balance;
}

h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   CARDS & SURFACES
   ============================================================ */
.card {
    background: var(--bg-panel);
    border: 1px solid oklch(1 0 0 / 0.04);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease);
}

.card-accent {
    border-color: oklch(0.75 0.16 65 / 0.2);
}

.card-glow {
    border-color: oklch(0.75 0.16 65 / 0.15);
    box-shadow:
        0 0 0 1px oklch(0.75 0.16 65 / 0.06),
        0 4px 24px oklch(0.75 0.16 65 / 0.06);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.25s var(--ease);
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    color: oklch(0.13 0 0);
    background: var(--accent);
    box-shadow: 0 2px 8px oklch(0.75 0.16 65 / 0.2);
}
.btn-primary:hover {
    background: oklch(0.80 0.14 65);
    box-shadow: 0 4px 20px oklch(0.75 0.16 65 / 0.3);
}

.btn-secondary {
    color: var(--accent);
    background: oklch(0.75 0.16 65 / 0.08);
}
.btn-secondary:hover {
    background: oklch(0.75 0.16 65 / 0.15);
}

.btn-gold {
    color: var(--gold);
    background: oklch(0.82 0.17 90 / 0.1);
}
.btn-gold:hover {
    background: oklch(0.82 0.17 90 / 0.18);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px;
}

/* ============================================================
   INPUTS
   ============================================================ */
.input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    background: var(--bg-dark);
    border: 1.5px solid oklch(1 0 0 / 0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    -webkit-appearance: none;
    min-height: 44px;
}
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px oklch(0.75 0.16 65 / 0.12);
}
.input::placeholder { color: var(--text-dim); }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-box {
    background: var(--bg-panel);
    border-radius: var(--radius);
    padding: 18px 10px;
    text-align: center;
    border: 1px solid oklch(1 0 0 / 0.04);
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 6px;
    display: block;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ============================================================
   TABLE
   ============================================================ */
.pixel-table { width: 100%; border-collapse: collapse; }

.pixel-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
}

.pixel-table td {
    padding: 10px 8px;
    border-bottom: 1px solid oklch(1 0 0 / 0.03);
    font-size: 14px;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.pixel-table tr {
    transition: background 0.15s var(--ease);
}

.pixel-table tr:hover { background: oklch(1 0 0 / 0.02); }

.pos-1 { color: var(--gold); font-weight: 800; }
.pos-2 { color: var(--silver); font-weight: 700; }
.pos-3 { color: var(--bronze); font-weight: 700; }

/* ============================================================
   PODIUM
   ============================================================ */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px 0 0;
}

.podium-spot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.podium-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.podium-1 .podium-avatar { border: 2px solid var(--gold); }
.podium-2 .podium-avatar { border: 2px solid var(--silver); }
.podium-3 .podium-avatar { border: 2px solid var(--bronze); }

.podium-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.podium-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    margin: 4px 0 8px;
}

.podium-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    border-radius: 6px 6px 0 0;
}

.podium-bar-1 {
    height: 80px;
    background: oklch(0.82 0.17 90 / 0.15);
    color: var(--gold);
    border: 1px solid oklch(0.82 0.17 90 / 0.25);
    border-bottom: none;
}
.podium-bar-2 {
    height: 56px;
    background: oklch(0.75 0.01 270 / 0.1);
    color: var(--silver);
    border: 1px solid oklch(0.75 0.01 270 / 0.15);
    border-bottom: none;
}
.podium-bar-3 {
    height: 40px;
    background: oklch(0.60 0.12 55 / 0.1);
    color: var(--bronze);
    border: 1px solid oklch(0.60 0.12 55 / 0.15);
    border-bottom: none;
}

/* ============================================================
   STAT BARS
   ============================================================ */
.stat-bar {
    height: 6px;
    background: oklch(1 0 0 / 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s var(--ease);
}
.stat-bar-fill.speed { background: var(--accent); }
.stat-bar-fill.accel { background: var(--accent-2); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font);
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.badge-tiktok { background: oklch(0.50 0.20 350 / 0.18); color: oklch(0.72 0.18 350); }
.badge-instagram { background: oklch(0.45 0.15 310 / 0.18); color: oklch(0.72 0.14 310); }
.badge-website { background: oklch(0.70 0.12 240 / 0.15); color: var(--accent-2); }

/* ============================================================
   MATCH CARD
   ============================================================ */
.match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid oklch(1 0 0 / 0.04);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s var(--ease);
    border-radius: var(--radius-sm);
    background: oklch(1 0 0 / 0.02);
    -webkit-tap-highlight-color: transparent;
}
.match-card:hover {
    border-color: oklch(0.75 0.16 65 / 0.2);
    background: oklch(0.75 0.16 65 / 0.04);
    box-shadow: 0 2px 12px oklch(0.75 0.16 65 / 0.06);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid oklch(1 0 0 / 0.04);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s var(--ease);
    border-radius: var(--radius-sm);
}
.search-result:hover { background: oklch(1 0 0 / 0.03); }

/* ============================================================
   PIXEL ELEMENTS
   ============================================================ */
.pixel-text {
    font-family: var(--font-pixel);
}

/* ============================================================
   ANIMATED PITCH ELEMENTS (match detail side scene)
   ============================================================ */

/* ============================================================
   SIDE-VIEW PIXEL PLAYERS (match detail)
   ============================================================ */
.side-scene {
    position: relative;
    height: 64px;
    background: linear-gradient(180deg, oklch(0.68 0.06 230) 0%, oklch(0.75 0.08 210) 50%, var(--pitch) 50%, var(--pitch-light) 100%);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 0 30px oklch(0 0 0 / 0.2);
}

.side-player {
    position: absolute;
    bottom: 12px;
    width: 10px;
    height: 20px;
}

.side-player .sp-head {
    width: 8px; height: 8px;
    background: oklch(0.82 0.04 60);
    border-radius: 50%;
    margin: 0 auto;
}
.side-player .sp-body {
    width: 10px; height: 8px;
    margin: 0 auto;
    border-radius: 2px 2px 0 0;
}
.side-player .sp-legs {
    display: flex;
    justify-content: space-between;
    padding: 0 1px;
}
.side-player .sp-leg {
    width: 3px; height: 6px;
    background: oklch(0.82 0.04 60);
    border-radius: 0 0 2px 2px;
}

.side-player.kicking .sp-legs .sp-leg:last-child {
    animation: kick 0.6s ease-in-out infinite;
    transform-origin: top;
}

@keyframes kick {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(-40deg); }
}

.side-player.running .sp-legs .sp-leg:first-child { animation: run-left 0.4s ease-in-out infinite; }
.side-player.running .sp-legs .sp-leg:last-child { animation: run-right 0.4s ease-in-out infinite; }

@keyframes run-left {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}
@keyframes run-right {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
}

.side-ball {
    position: absolute;
    bottom: 14px;
    width: 7px; height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: side-ball-move 3s ease-in-out infinite;
    box-shadow: 0 0 4px oklch(1 0 0 / 0.3);
}

@keyframes side-ball-move {
    0%   { left: 35%; bottom: 14px; }
    30%  { left: 55%; bottom: 32px; }
    60%  { left: 70%; bottom: 14px; }
    100% { left: 35%; bottom: 14px; }
}

.side-goal {
    position: absolute;
    bottom: 12px;
    width: 16px;
    height: 24px;
    border: 2px solid oklch(1 0 0 / 0.6);
    border-bottom: none;
    background: repeating-linear-gradient(45deg, transparent, transparent 2px, oklch(1 0 0 / 0.12) 2px, oklch(1 0 0 / 0.12) 4px);
}
.side-goal-left { left: 4px; }
.side-goal-right { right: 4px; }

/* ============================================================
   PLATFORM OPTION (join page)
   ============================================================ */
input[type="radio"]:checked + .platform-option {
    border-color: var(--accent) !important;
    background: oklch(0.75 0.16 65 / 0.06);
}
.platform-option:hover {
    border-color: oklch(1 0 0 / 0.12) !important;
}

/* ============================================================
   LEAGUE
   ============================================================ */
.league-pyramid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.league-tier-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-panel);
    border: 1px solid oklch(1 0 0 / 0.04);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.league-tier-row:hover {
    border-color: oklch(0.75 0.16 65 / 0.2);
    background: oklch(0.75 0.16 65 / 0.04);
    box-shadow: 0 2px 12px oklch(0.75 0.16 65 / 0.06);
}

.league-tier-1 { border-color: oklch(0.82 0.17 90 / 0.25); background: oklch(0.82 0.17 90 / 0.06); }
.league-tier-1:hover { border-color: oklch(0.82 0.17 90 / 0.4); background: oklch(0.82 0.17 90 / 0.1); box-shadow: 0 2px 16px oklch(0.82 0.17 90 / 0.1); }
.league-tier-2 { border-color: oklch(0.75 0.01 270 / 0.15); background: oklch(0.75 0.01 270 / 0.04); }
.league-tier-3 { border-color: oklch(0.60 0.12 55 / 0.15); background: oklch(0.60 0.12 55 / 0.04); }
.league-tier-4 { border-color: oklch(0.55 0.15 310 / 0.12); }
.league-tier-5 { border-color: oklch(0.65 0.17 150 / 0.12); }

.league-tier-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: oklch(1 0 0 / 0.05);
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dim);
}

.league-tier-1 .league-tier-rank { background: oklch(0.82 0.17 90 / 0.2); color: var(--gold); }
.league-tier-2 .league-tier-rank { background: oklch(0.75 0.01 270 / 0.12); color: var(--silver); }
.league-tier-3 .league-tier-rank { background: oklch(0.60 0.12 55 / 0.12); color: var(--bronze); }
.league-tier-4 .league-tier-rank { color: oklch(0.72 0.14 310); }
.league-tier-5 .league-tier-rank { color: var(--green); }

.league-tier-info {
    flex: 1;
    min-width: 0;
}

.league-tier-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.league-tier-1 .league-tier-name { color: var(--gold); }

.league-tier-meta {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.league-tier-players {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.league-tier-arrow {
    color: var(--text-dim);
    font-size: 16px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s var(--ease);
}
.league-tier-row:hover .league-tier-arrow { opacity: 1; }

.league-promote { background: oklch(0.65 0.17 150 / 0.04); }
.league-relegate { background: oklch(0.68 0.20 25 / 0.04); }

.team-roster {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: oklch(1 0 0 / 0.02);
    border: 1px solid oklch(1 0 0 / 0.04);
    border-radius: var(--radius-sm);
    font-size: 13px;
    flex: 1;
    min-width: 160px;
}

.team-member-pos {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.team-member-pos-gk { background: oklch(0.75 0.16 65 / 0.12); color: var(--accent); }
.team-member-pos-def { background: oklch(0.65 0.17 150 / 0.12); color: var(--green); }
.team-member-pos-mid { background: oklch(0.70 0.12 240 / 0.12); color: var(--accent-2); }
.team-member-pos-fwd { background: oklch(0.68 0.20 25 / 0.12); color: var(--red); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
    border-bottom: 1px solid oklch(1 0 0 / 0.04);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s var(--ease);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before {
    content: '+';
    display: inline-block;
    width: 20px;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    transition: transform 0.2s var(--ease);
}
.faq-item[open] .faq-question::before {
    content: '-';
}
.faq-question:hover { color: var(--accent); }

.faq-answer {
    padding: 0 8px 14px 28px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 480px) {
    .hero { min-height: 440px; }
    .hero-logo { font-size: 26px; }
    .hero-avatar { width: 54px; height: 54px; }
    .hero-avatar img, .hero-avatar-placeholder { width: 54px; height: 54px; }
    .side-scene { height: 72px; }
}

@media (min-width: 768px) {
    .container { padding: 0 32px; }
    body { font-size: 16px; }
    h1 { font-size: 28px; }
    h2 { font-size: 19px; }
    .nav .container { padding: 0 32px; }
    .nav-logo { font-size: 13px; }
    .nav-links a { font-size: 14px; padding: 8px 16px; }
    .card { padding: 24px; }
    .stat-num { font-size: 30px; }
    .stat-label { font-size: 11px; }
    .stats-grid { gap: 14px; }
    .stat-box { padding: 20px 12px; }
    .pixel-table td { font-size: 15px; padding: 12px 10px; }
    .pixel-table th { font-size: 12px; padding: 12px 10px; }
    .hero { min-height: 460px; }
    .hero-split {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 48px 32px;
    }
    .hero-content { text-align: left; }
    .hero-logo { font-size: 30px; }
    .hero-form { text-align: left; }
    .hero-platforms { justify-content: flex-start; }
    .hero-tournament-info { max-width: 260px; flex-shrink: 0; }
    .hero-avatar { width: 60px; height: 60px; opacity: 0.8; }
    .hero-avatar img, .hero-avatar-placeholder { width: 60px; height: 60px; }
    .hero-avatar-name { font-size: 10px; }
    .pitch-center-circle { width: 140px; height: 140px; }
    .pitch-area-left, .pitch-area-right { width: 80px; height: 120px; }
    .floodlight { width: 400px; height: 500px; }
    .home-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .side-scene { height: 80px; }
    .side-player { width: 12px; height: 24px; bottom: 14px; }
    .side-player .sp-head { width: 10px; height: 10px; }
    .side-player .sp-body { width: 12px; height: 10px; }
    .side-player .sp-leg { width: 4px; height: 8px; }
    .side-ball { width: 9px; height: 9px; }
    .side-goal { width: 20px; height: 30px; }
}

@media (min-width: 1024px) {
    .container { padding: 0 16px; }
    .nav .container { padding: 0 16px; }
    h1 { font-size: 32px; }
    .hero { min-height: 500px; }
    .hero-logo { font-size: 36px; }
    .hero-sub { font-size: 16px; }
    .hero-avatar { width: 68px; height: 68px; }
    .hero-avatar img, .hero-avatar-placeholder { width: 68px; height: 68px; }
    .hero-avatar-name { font-size: 11px; }
    .pitch-center-circle { width: 160px; height: 160px; }
    .pitch-area-left, .pitch-area-right { width: 100px; height: 140px; }
    .floodlight { width: 500px; height: 600px; opacity: 0.4; }
}

@media (min-width: 1280px) {
    .container { padding: 0 16px; }
    .nav .container { padding: 0 16px; }
    .home-grid { gap: 32px; }
    .ad-sidebar { display: block; padding: 0 8px; }
    .ad-sidebar-left { width: 160px; }
    .ad-sidebar-right { width: 160px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-avatar,
    .side-ball, .side-player.kicking .sp-legs .sp-leg:last-child,
    .side-player.running .sp-legs .sp-leg {
        animation: none !important;
    }
}
