:root {
    color-scheme: dark;
    --bg: #080a12;
    --bg-soft: #101522;
    --card: rgba(18, 24, 39, 0.88);
    --card-light: rgba(255, 255, 255, 0.07);
    --text: #f5f7fb;
    --muted: #aab3c5;
    --primary: #ffb347;
    --primary-strong: #ff7a18;
    --danger: #ff4e6a;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 24px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.24), transparent 34rem),
        radial-gradient(circle at top right, rgba(86, 101, 255, 0.18), transparent 30rem),
        linear-gradient(135deg, #060712 0%, #11182a 50%, #090b12 100%);
    color: var(--text);
}

body.menu-open {
    overflow: hidden;
}

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

main {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.site-footer {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 10, 18, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.logo span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 10px 24px rgba(255, 122, 24, 0.3);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 650;
    transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .nav-highlight {
    background: var(--card-light);
    color: var(--text);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    background: var(--card-light);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.section {
    padding: 72px 0;
}

.hero {
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: 36px;
}

.hero-content,
.event-card,
.info-card,
.video-card,
.rule-group,
.change-list article,
.cta-section {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-content {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 6vw, 72px);
    border-radius: calc(var(--radius) + 12px);
}

.hero-content::after {
    content: "";
    position: absolute;
    inset: auto -15% -45% 30%;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.28), transparent 68%);
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

.hero-text {
    max-width: 700px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button.primary {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #15100a;
}

.button.ghost {
    background: var(--card-light);
}

.event-card {
    padding: 28px;
    border-radius: var(--radius);
}

.card-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #15100a;
    background: var(--primary);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.event-card > strong {
    display: block;
    margin-bottom: 18px;
    font-size: 1.55rem;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.countdown span {
    display: grid;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.88rem;
}

.countdown b {
    color: var(--text);
    font-size: 1.8rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    padding: 24px;
    border-radius: var(--radius);
}

.info-card span {
    display: inline-grid;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 16px;
    background: var(--card-light);
    font-size: 1.45rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.split-heading {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.video-card {
    overflow: hidden;
    border-radius: var(--radius);
}

.video-card h3 {
    padding: 18px 20px 20px;
    margin: 0;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.search-box {
    width: min(100%, 340px);
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font: inherit;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
}

.rules-layout {
    display: grid;
    gap: 18px;
}

.rule-group {
    overflow: hidden;
    border-radius: var(--radius);
}

.rule-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    padding: 20px 24px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 850;
    cursor: pointer;
}

.toggle-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--card-light);
}

.rule-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
}

.rule-group.is-closed .rule-content {
    display: none;
}

.rule-section {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.rule-list,
.strike-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.65;
}

.rule-list li::marker,
.strike-list li::marker {
    color: var(--primary);
}

[data-rule-item].is-hidden,
[data-rule-section].is-hidden,
[data-rule-group].is-hidden {
    display: none;
}

.change-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.change-list article {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
}

.change-list span {
    flex: 0 0 auto;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 179, 71, 0.18);
    color: var(--primary);
    font-weight: 900;
}

.change-list p {
    margin: 0;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 56px;
    padding: 34px;
    border-radius: calc(var(--radius) + 8px);
}

.cta-section h2 {
    margin-bottom: 8px;
}

.cta-section p {
    margin-bottom: 0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0 42px;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(8, 10, 18, 0.95);
    }

    body.menu-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 14px 16px;
    }

    .hero,
    .info-grid,
    .video-grid,
    .change-list {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 52px;
    }

    .split-heading,
    .cta-section {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .rule-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    main,
    .site-header,
    .site-footer {
        width: min(100% - 20px, var(--max-width));
    }

    .site-header {
        top: 8px;
        margin-top: 8px;
        padding: 10px;
    }

    .section {
        padding: 46px 0;
    }

    .hero-content,
    .event-card,
    .cta-section {
        padding: 24px;
    }

    .countdown {
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .cta-section .button {
        width: 100%;
    }
}
