:root {
    --bg: #08111f;
    --bg-deep: #050b16;
    --panel: rgba(9, 20, 36, 0.86);
    --panel-strong: rgba(14, 27, 48, 0.96);
    --panel-soft: rgba(14, 27, 48, 0.68);
    --line: rgba(146, 172, 214, 0.18);
    --line-strong: rgba(146, 172, 214, 0.28);
    --text: #edf4ff;
    --text-soft: #95a6c6;
    --text-muted: #6f7f9b;
    --orange: #ff7a1a;
    --orange-soft: rgba(255, 122, 26, 0.18);
    --blue: #5ec2ff;
    --blue-soft: rgba(94, 194, 255, 0.14);
    --green: #42d39b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(94, 194, 255, 0.1), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(255, 122, 26, 0.12), transparent 26%),
        linear-gradient(180deg, #091120 0%, #070e1a 50%, #040912 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 22, 0.82);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.brand small {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), #ff9b53);
    color: #08111f;
    font-weight: 700;
}

.menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.menu a,
.inline-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-soft);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.menu a:hover,
.inline-form button:hover {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.menu-cta {
    background: linear-gradient(135deg, var(--orange), #ff9b53);
    color: #08111f !important;
    border-color: transparent !important;
    font-weight: 700;
}

.inline-form {
    margin: 0;
}

.hero,
.section,
.page-hero {
    padding: 36px 0 72px;
}

.hero {
    padding-top: 54px;
}

.hero-layout,
.page-hero-row,
.tournament-hero-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

.hero-layout,
.tournament-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.page-hero-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.hero-copy h1,
.section h1,
.page-hero h1 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    max-width: 11ch;
}

.hero-copy h1 {
    max-width: 9.5ch;
}

.section h2,
.panel h2,
.feature-card h2,
.timeline-step h3,
.card h2,
.card h3 {
    margin: 0;
}

.lead {
    margin: 18px 0 0;
    max-width: 64ch;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow,
.meta,
.summary-label,
.panel-meta {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
}

.hero-actions,
.section-head,
.chips,
.card-topline,
.match-head {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-actions {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 700;
}

.button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange), #ff9b53);
    color: #08111f;
}

.button.subtle {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.stat-strip,
.feature-band,
.cards,
.timeline-grid,
.board-columns {
    display: grid;
    gap: 16px;
}

.stat-strip {
    margin-top: 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-strip article,
.feature-card,
.timeline-step,
.summary-panel,
.board-shell,
.panel,
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.stat-strip article {
    padding: 18px 20px;
}

.stat-strip strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-strip span {
    color: var(--text-soft);
}

.hero-board {
    position: relative;
}

.board-shell {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(16, 30, 52, 0.96), rgba(8, 17, 31, 0.96)),
        radial-gradient(circle at top right, rgba(255, 122, 26, 0.12), transparent 30%);
}

.board-top,
.panel-head,
.footer-row,
.versus-row,
.roster li,
.match-card,
.stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-pill,
.tag,
.chip,
.seed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.live-pill,
.tag {
    background: var(--orange-soft);
    color: #ffb783;
    border: 1px solid rgba(255, 122, 26, 0.28);
}

.muted-tag,
.chip,
.seed-badge {
    background: var(--blue-soft);
    color: #9bdfff;
    border: 1px solid rgba(94, 194, 255, 0.24);
}

.compact-list,
.roster,
.match-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.compact-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.compact-list li:first-child {
    border-top: 0;
}

.compact-list span,
.muted {
    color: var(--text-soft);
}

.board-bracket {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.bracket-node {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.bracket-node span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.bracket-node.accent {
    border-color: rgba(255, 122, 26, 0.3);
    background: rgba(255, 122, 26, 0.08);
}

.section-tight {
    padding-top: 0;
}

.section-bottom {
    padding-bottom: 88px;
}

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

.feature-card,
.timeline-step,
.panel,
.card,
.summary-panel {
    padding: 22px;
}

.feature-card p,
.timeline-step p,
.card p {
    color: var(--text-soft);
    line-height: 1.65;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.02em;
}

.section-link {
    color: #9bdfff;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards-compact {
    gap: 18px;
}

.tournament-card {
    display: grid;
    gap: 16px;
    min-height: 230px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tournament-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: var(--panel-strong);
}

.card-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.page-hero {
    padding-top: 40px;
}

.page-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.summary-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: min(100%, 330px);
}

.summary-panel strong {
    display: block;
    margin-top: 6px;
    font-size: 1.9rem;
}

.tournament-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    padding-bottom: 82px;
}

.panel {
    grid-column: span 4;
}

.panel-wide {
    grid-column: span 12;
}

.roster {
    display: grid;
    gap: 10px;
}

.roster li,
.match-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.stage-block {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.stage-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.stage-head h3 {
    font-size: 1.15rem;
}

.match-list {
    display: grid;
    gap: 14px;
}

.match-card {
    display: grid;
    gap: 12px;
}

.versus-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.versus-player {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(8, 17, 31, 0.76);
}

.versus-score {
    padding: 0 14px;
    color: #ffb783;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.timeline-step span {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.auth-form label {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.auth-form small {
    color: var(--text-muted);
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: rgba(94, 194, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(94, 194, 255, 0.12);
}

.search-results,
.selected-profile {
    display: grid;
    gap: 10px;
    margin: 4px 0 2px;
}

.result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 16px;
    color: inherit;
    font: inherit;
}

button.result-card {
    cursor: pointer;
}

button.result-card:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

.result-card.selected {
    background: rgba(94, 194, 255, 0.08);
}

.result-card.empty {
    color: var(--text-soft);
}

.result-side {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.clear-link {
    border: 0;
    background: transparent;
    color: #9bdfff;
    cursor: pointer;
}

.narrow {
    max-width: 760px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 8, 16, 0.8);
}

.footer-row {
    padding: 20px 0 32px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

@media (max-width: 980px) {
    .hero-layout,
    .tournament-hero-grid,
    .page-hero-row,
    .feature-band,
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-actions {
        justify-content: flex-start;
    }

    .panel,
    .panel-wide {
        grid-column: span 12;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100vw - 20px, 1180px);
    }

    .nav {
        padding: 10px 0;
        align-items: flex-start;
    }

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

    .hero-copy h1,
    .section h1,
    .page-hero h1 {
        font-size: clamp(2.6rem, 14vw, 4.2rem);
    }

    .summary-panel {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }

    .versus-row {
        grid-template-columns: 1fr;
    }

    .versus-score {
        padding: 0;
        text-align: center;
    }

    .footer-row,
    .panel-head,
    .board-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
