.hypego-rules-page {
    --hgr-bg: #101115;
    --hgr-surface: rgba(25, 26, 32, .94);
    --hgr-soft: rgba(36, 38, 45, .94);
    --hgr-text: #f6f3ee;
    --hgr-muted: #b5b4b4;
    --hgr-border: rgba(235, 238, 244, .18);
    --hgr-orange: #f0a060;
    --hgr-link: #ffb36f;
    --hgr-scene: url("/templates/img/seasonal/hero-autumn.jpg");
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 0 20px 64px;
    background: transparent;
    color: var(--hgr-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hypego-rules-page,
.hypego-rules-page *,
.hypego-rules-page *::before,
.hypego-rules-page *::after {
    box-sizing: border-box;
}

html[data-season="spring"] .hypego-rules-page {
    --hgr-scene: url("/templates/img/seasonal/hero-spring.jpg");
}

html[data-season="summer"] .hypego-rules-page {
    --hgr-scene: url("/templates/img/seasonal/hero-summer.jpg");
}

html[data-season="autumn"] .hypego-rules-page {
    --hgr-scene: url("/templates/img/seasonal/hero-autumn.jpg");
}

html[data-season="winter"] .hypego-rules-page {
    --hgr-scene: url("/templates/img/seasonal/hero-winter.jpg");
}

.hypego-rules-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(12, 13, 17, .78), rgba(12, 13, 17, .86)),
        var(--hgr-scene);
    background-position: center;
    background-size: cover;
    content: "";
    pointer-events: none;
}

.hgr-shell {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.hgr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 100px;
    padding: 20px 0;
}

.hgr-brand {
    color: var(--hgr-text);
    font-size: 28px;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    text-shadow: 0 2px 0 #713a26;
}

.hgr-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 231, 203, .5);
    border-radius: 5px;
    background: linear-gradient(#f3ae71, #df8147);
    color: #24180f;
    box-shadow: 0 4px 0 #8b432b;
    font: inherit;
    cursor: pointer;
}

.hgr-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
    padding: 10px;
    border: 1px solid var(--hgr-border);
    border-radius: 6px;
    background: var(--hgr-surface);
    box-shadow: 0 5px 0 rgba(0, 0, 0, .24);
}

.hgr-navigation a {
    display: block;
    padding: 11px 13px;
    border-radius: 4px;
    color: var(--hgr-muted);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.hgr-navigation a:hover,
.hgr-navigation a[aria-current="page"] {
    background: rgba(240, 160, 96, .13);
    color: var(--hgr-link);
}

.hgr-card {
    margin: 0;
    padding: 36px;
    border: 1px solid var(--hgr-border);
    border-radius: 7px;
    background: linear-gradient(155deg, var(--hgr-surface), rgba(18, 19, 24, .96));
    box-shadow: 0 5px 0 rgba(0, 0, 0, .28), 0 18px 42px rgba(0, 0, 0, .2);
    overflow-wrap: anywhere;
}

.hgr-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--hgr-muted);
    font-size: 14px;
    text-decoration: none;
}

.hgr-back:hover {
    color: var(--hgr-link);
}

.hgr-eyebrow {
    margin: 0 0 8px;
    color: var(--hgr-orange);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
}

.hgr-card h1 {
    margin: 0 0 16px;
    color: var(--hgr-text);
    font-size: 42px;
    font-weight: 750;
    line-height: 1.15;
}

.hgr-intro {
    margin: 0 0 28px;
    padding: 17px 19px;
    border-left: 4px solid var(--hgr-orange);
    border-radius: 4px;
    background: rgba(240, 160, 96, .12);
    color: var(--hgr-link);
    font-size: 15px;
    line-height: 1.65;
}

.hgr-content {
    color: var(--hgr-muted);
    font-size: 16px;
    line-height: 1.8;
}

.hgr-content > :first-child {
    margin-top: 0;
}

.hgr-content > :last-child {
    margin-bottom: 0;
}

.hgr-content h2,
.hgr-content h3 {
    margin: 30px 0 12px;
    padding-top: 22px;
    border-top: 1px solid var(--hgr-border);
    color: var(--hgr-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.hgr-content h3 {
    font-size: 19px;
}

.hgr-content p,
.hgr-content blockquote {
    margin: 0 0 14px;
}

.hgr-content ul,
.hgr-content ol {
    margin: 0 0 18px;
    padding-left: 26px;
}

.hgr-content li + li {
    margin-top: 8px;
}

.hgr-content li::marker {
    color: var(--hgr-orange);
}

.hgr-content a {
    color: var(--hgr-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.hgr-content a:hover {
    text-decoration-thickness: 2px;
}

.hgr-content strong,
.hgr-content b {
    color: var(--hgr-text);
}

.hgr-status {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--hgr-border);
    border-radius: 5px;
    background: rgba(25, 26, 32, .72);
}

.hgr-status[data-state="error"] {
    border-color: rgba(240, 160, 96, .42);
    color: var(--hgr-text);
}

.hgr-retry {
    margin-top: 18px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 231, 203, .5);
    border-radius: 5px;
    background: linear-gradient(#f3ae71, #df8147);
    color: #24180f;
    box-shadow: 0 4px 0 #8b432b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hgr-retry:hover,
.hgr-menu-toggle:hover {
    filter: brightness(1.06);
}

.hypego-rules-page :focus-visible {
    outline: 3px solid var(--hgr-orange);
    outline-offset: 4px;
}

@media (max-width: 720px) {
    .hypego-rules-page {
        padding: 0 16px 40px;
    }

    .hgr-header {
        min-height: 88px;
        padding: 16px 0;
    }

    .hgr-menu-toggle {
        display: inline-flex;
    }

    .hgr-navigation {
        display: none;
        flex-direction: column;
    }

    .hgr-navigation[data-open="true"] {
        display: flex;
    }

    .hgr-card {
        padding: 25px 18px;
        border-radius: 6px;
    }

    .hgr-card h1 {
        font-size: 30px;
    }

    .hgr-intro {
        padding: 15px;
    }

    .hgr-content {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hgr-navigation a {
        transition: none;
    }
}
