:root {
    --bg: #0b1018;
    --bg-deep: #131b27;
    --surface: rgba(17, 24, 36, 0.82);
    --surface-strong: #182131;
    --surface-soft: rgba(23, 32, 47, 0.78);
    --line: rgba(159, 180, 214, 0.14);
    --line-strong: rgba(159, 180, 214, 0.24);
    --text: #edf3ff;
    --muted: #9cabbe;
    --muted-strong: #c9d5e5;
    --accent: #d48847;
    --accent-strong: #f0b173;
    --mint: #78c39a;
    --gold: #f0c27a;
    --danger: #e37b78;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.24);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --content: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    background:
        radial-gradient(circle at 12% 12%, rgba(212, 136, 71, 0.16), transparent 24%),
        radial-gradient(circle at 86% 20%, rgba(120, 195, 154, 0.08), transparent 22%),
        linear-gradient(180deg, var(--bg) 0%, #0f1621 45%, var(--bg-deep) 100%);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    width: min(var(--content), calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 52px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 16, 26, 0.78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand__logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0b173, #d48847);
    color: #0f141c;
    font-size: 0.9rem;
}

.topbar__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.topbar__links a {
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.topbar__search {
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(18, 26, 38, 0.82);
    border: 1px solid var(--line-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.topbar__links a:hover,
.topbar__links a:focus-visible,
.topbar__search:hover,
.topbar__search:focus-visible {
    background: var(--surface-soft);
    color: var(--text);
    outline: none;
}

.topbar__cta,
.button-primary,
.button-secondary,
.button-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.topbar__cta,
.button-primary {
    background: linear-gradient(135deg, var(--accent), #edaf70);
    color: #101720;
    box-shadow: 0 14px 30px rgba(215, 131, 52, 0.2);
}

.button-secondary,
.button-quiet {
    border: 1px solid var(--line-strong);
    background: rgba(18, 26, 38, 0.82);
    color: var(--text);
}

.topbar__cta:hover,
.button-primary:hover,
.button-secondary:hover,
.button-quiet:hover {
    transform: translateY(-1px);
}

.hero,
.panel,
.glass-card,
.table-shell,
.event-card,
.game-card,
.metric-card,
.summary-card,
.stat-card,
.podium-entry,
.update-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    padding: 40px;
    border-radius: var(--radius-xl);
}

.hero::after {
    content: "";
    position: absolute;
    right: -12%;
    bottom: -24%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 136, 71, 0.18), transparent 68%);
    pointer-events: none;
}

.hero__inner,
.hero__split {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
}

.hero__compact {
    display: grid;
    gap: 14px;
}

.hero__stats,
.overview-grid,
.mode-grid,
.detail-grid,
.game-grid,
.podium,
.stat-grid {
    display: grid;
    gap: 16px;
}

.hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.7rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kicker {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(20, 28, 41, 0.94);
    color: var(--muted-strong);
    font-size: 0.76rem;
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.9rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

h3 {
    font-size: 1rem;
}

p {
    line-height: 1.6;
}

.subcopy,
.body-copy,
.muted-copy,
.updated-at,
.empty-state,
.meta-line {
    color: var(--muted);
}

.hero__actions,
.button-row,
.pill-row,
.chip-row,
.top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__actions {
    margin-top: 24px;
}

.panel,
.glass-card {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.section-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.layout {
    margin-top: 24px;
    display: grid;
    gap: 22px;
}

.overview-grid,
.mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card,
.mode-card,
.metric-card,
.summary-card,
.list-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(20, 28, 42, 0.72);
}

.metric-card strong,
.summary-card strong,
.stat-card strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.metric-card span,
.summary-card span,
.stat-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.mode-card p,
.detail-card p,
.summary-card p,
.event-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(22, 31, 46, 0.78);
    font-size: 0.78rem;
    color: var(--muted-strong);
    text-decoration: none;
}

.table-shell {
    overflow: auto;
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
}

thead th {
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--line);
}

tbody tr + tr td {
    border-top: 1px solid rgba(159, 180, 214, 0.08);
}

.player-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.player-cell img,
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    image-rendering: pixelated;
    background: rgba(12, 18, 28, 0.92);
}

.player-cell a,
.player-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

.team-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(22, 30, 43, 0.84);
    font-size: 0.82rem;
    font-weight: 600;
}

.positive {
    color: var(--mint);
}

.negative {
    color: var(--danger);
}

.empty-state {
    margin: 0;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--line-strong);
    background: rgba(18, 26, 38, 0.72);
}

@media (max-width: 1040px) {
    .hero__inner,
    .hero__split {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .mode-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .page-shell {
        width: min(var(--content), calc(100% - 20px));
    }

    .topbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        border-radius: 26px;
    }

    .topbar__links {
        justify-content: flex-start;
    }

    .hero {
        padding: 28px 22px;
    }

    .panel,
    .glass-card {
        padding: 22px;
    }

    .hero__stats,
    .overview-grid,
    .mode-grid {
        grid-template-columns: 1fr;
    }
}
