/* ===== Tokens / base (stage 5) ===== */
:root {
    /* Housebets locals — teal ocean + mint CTA + cyan accent */
    --gold-brand: #0D2A38;
    --gold-accent: #EFC952;
    --cream: #F9F9FB;
    --offer-cream: #F9F9FB;
    --parchment-ink: #F9F9FB;
    --jewel: #C4F4F1;
    --jewel-dark: #82E0E0;
    --header-brick-mid: #0B1920;

    /* Core palette — page vs chrome split */
    --x1-primary: #0B1920;
    --x1-secondary: #F9F9FB;
    --x1-tertiary: #041015;
    --x1-bg-deep: #0E202A;
    --x1-login-blue: #113A4C;

    /* Surfaces */
    --bg-secondary: #09151B;
    --bg-tertiary: #0D2531;
    --bg-elevated: #0D2A38;
    --surface-a: #0B1920;
    --surface-b: #0E202A;
    --surface-c: #0D2A38;
    --surface-d: #0D2531;

    /* Content colors */
    --content-primary: #F9F9FB;
    --content-secondary: #8F96A8;
    --content-tertiary: rgba(249, 249, 251, 0.6);
    --content-on-accent: #041015;

    /* Controls & borders */
    --control-neutral: #0D2A38;
    --control-neutral-hover: #0D2531;
    --border-divider: #0D2A38;
    --border-focus: #28F3F3;

    /* Legacy aliases — retarget so leftover selectors cannot flash lime/navy */
    --iris-bg: var(--x1-bg-deep);
    --iris-purple-a: #02F8F8;
    --iris-purple-b: #F9F9FB;
    --iris-cta-a: var(--jewel);
    --iris-cta-b: var(--jewel-dark);

    --hero-sand: var(--content-secondary);
    --hero-deep: #0E202A;
    --hero-gold: var(--gold-accent);
    --hero-gold-bright: #FFE48C;
    --hero-cream: var(--offer-cream);
    --hero-stage: linear-gradient(180deg, #033236, #0A919C);
    --accent-pink-rgb: 244, 31, 80;
    --accent-gold-rgb: 239, 201, 82;
    --accent-green-rgb: 2, 248, 248;
    --accent-blue-rgb: 2, 248, 248;
    --ui-panel: 14, 32, 42;
    --ui-panel-2: 13, 42, 56;
    --link-accent: #02F8F8;
    --brand-purple: #02F8F8;
    --brand-magenta: #02F8F8;
    --accent-orange: #C4F4F1;
    --accent-orange-hover: #82E0E0;
    --btn-promo: #C4F4F1;
    --btn-promo-hover: #82E0E0;
    --gradient-brand: linear-gradient(180deg, #033236, #0A919C);
    --gradient-night: linear-gradient(180deg, #033236, #0A919C);
    --shadow-m: 0 2px 8px #04101540;
    --radius-pill: 12px;
    --radius-btn: 8px;
    --radius-tab: 8px;
    --radius-card: 12px;
    --radius-hero: 12px;

    --header-fade-gradient: linear-gradient(180deg, #0B1920 0%, #0B1920 100%);

    --primary-color: #0B1920;
    --primary-color-light: #0E202A;
    --btn-dark-color: #113A4C;

    --secondary-color: #F9F9FB;
    --btn-secondary-color: #C4F4F1;
    --btn-primary-hover: #82E0E0;
    --tertiary-color: #041015;
    --red-color: #F41F50;
    --blue-color: #02F8F8;
    --dark-btn-text: #041015;

    /* Typography families (loaded via Google Fonts in templates) */
    --font-sans: "Figtree", system-ui, sans-serif;
    --font-display: "Red Hat Display", "Figtree", sans-serif;
    --font-offer: var(--font-display);

    /* Layout & spacing */
    --space-page-x-mobile: 16px;
    --space-page-x-desktop: 16px;
    --btn-height: 48px;
    --btn-padding-x: 24px;
    --section-gap: 24px;
    --card-padding: 16px;
    --header-height: 80px;

    /* Structural aliases for later stages (consume existing palette) */
    --interactive-primary-bg: var(--btn-secondary-color);
    --interactive-secondary-bg: var(--btn-dark-color);
    --text-accent: var(--link-accent);
    --logo-cyan: #02F7FD;
    --hero-ocean: linear-gradient(180deg, #033236, #0A919C);
    --footer-gradient: linear-gradient(to bottom, #0E202A, #041015);
    --prize-gold: linear-gradient(255deg, #FFE48C 20%, #FDDC73 47%, #EFC952 78%, #E09D46 92%, #EA9E3B);
    --cta-glow: 0 0 16px #02F8F840;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    color-scheme: dark;
    overflow-x: clip;
    background: var(--x1-primary);
    color: var(--content-primary);
    font-family: var(--font-sans);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.anchor-heading {
    scroll-margin-top: var(--header-height);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--content-primary);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--content-primary);
    min-height: 100%;
    min-height: 100dvh;
    position: relative;
    background: var(--x1-primary);
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--content-primary);
    text-decoration: none;
}

a:hover {
    color: var(--link-accent);
}

a:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.page-fill {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.page-fill > .content-section {
    flex: 1 1 auto;
}

.page-fill > .legal-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-fill .legal-main .content-section {
    flex: 1 1 auto;
}

/* ===== Header & navigation (stage 6) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: var(--header-brick-mid);
    background-image: none;
    box-shadow: none;
    border-bottom: 1px solid var(--bg-tertiary);
    padding: 0 var(--space-page-x-desktop);
}

.header-top-bar {
    display: none;
}

.page-legal .header {
    background-color: var(--header-brick-mid);
    background-image: none;
    box-shadow: none;
    border-bottom: 1px solid var(--bg-tertiary);
}

.header-content {
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: var(--header-height);
    min-height: var(--header-height);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.header-logo:hover {
    color: inherit;
    opacity: 0.92;
}

.header-logo-img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-logo-img--desktop {
    display: block;
    width: 116px;
    height: 18px;
    max-width: 116px;
}

.header-logo-img--mobile {
    display: none;
    width: 32px;
    height: 40px;
    max-width: 32px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Language dropdown — chrome/colors only; CSS Anchor + Popover positioning unchanged */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 1100;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    padding: 0 12px;
    min-height: 40px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-divider);
    background: var(--control-neutral);
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-shadow: none;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.lang-dropdown--mobile .lang-dropdown-btn {
    anchor-name: --lang-dropdown-mobile;
}

.lang-dropdown--desktop .lang-dropdown-btn {
    anchor-name: --lang-dropdown-desktop;
}

.lang-dropdown-btn:hover {
    background: var(--control-neutral-hover);
    border-color: var(--border-divider);
    color: var(--content-primary);
}

.lang-dropdown-btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.lang-dropdown-btn-label {
    white-space: nowrap;
}

.lang-dropdown-chevron {
    flex-shrink: 0;
    opacity: 0.85;
    color: var(--content-primary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.lang-dropdown:has(.lang-dropdown-panel:popover-open) .lang-dropdown-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-btn:hover .lang-dropdown-chevron {
    color: var(--text-accent);
}

.lang-dropdown-panel {
    min-width: 10rem;
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    padding: 6px 0;
    margin: 0;
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-divider);
    background: var(--x1-bg-deep);
    box-shadow: 0 18px 50px #01080C73;
}

.lang-dropdown-panel[popover] {
    display: none;
    position: fixed;
    inset: auto;
}

.lang-dropdown-panel[popover]:popover-open {
    display: flex;
    flex-direction: column;
}

.lang-dropdown--mobile .lang-dropdown-panel[popover] {
    position-anchor: --lang-dropdown-mobile;
    top: calc(anchor(bottom) + 6px);
    /* Left-align to trigger: right-anchor overflows viewport on ≤360px */
    left: anchor(left);
    right: auto;
    bottom: auto;
}

.lang-dropdown--desktop .lang-dropdown-panel[popover] {
    position-anchor: --lang-dropdown-desktop;
    top: calc(anchor(bottom) + 6px);
    right: anchor(right);
    left: auto;
    bottom: auto;
}

.lang-dropdown-item-form {
    display: contents;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    border: none;
    text-align: left;
    box-sizing: border-box;
}

.lang-dropdown-item:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

button.lang-dropdown-item {
    width: 100%;
    background: none;
    font: inherit;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
}

.lang-dropdown-item.lang-dropdown-link {
    color: var(--content-secondary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown-item.lang-dropdown-link:hover {
    background: var(--control-neutral-hover);
    color: var(--content-primary);
}

.lang-dropdown-current {
    color: var(--text-accent);
    cursor: pointer;
    box-shadow: inset 3px 0 0 var(--text-accent);
}

/* Download links (desktop icon buttons) — muted pill #0D2A38 */
.download-links {
    display: none;
    align-items: center;
    gap: 2px;
}

.download-label {
    display: none;
}

.download-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    background: var(--control-neutral);
    text-decoration: none;
    text-align: center;
    color: var(--content-primary);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.download-link:hover {
    background: var(--control-neutral-hover);
    border-color: transparent;
    color: var(--text-accent);
}

.download-link:hover .download-icon {
    fill: var(--text-accent);
}

.download-link:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.download-icon {
    width: 18px;
    height: 18px;
    fill: var(--content-primary);
    transition: fill 0.2s ease;
}

/* Header CTAs — Housebets: secondary Log In + mint Register */
.header-login,
.header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    background: var(--btn-dark-color);
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-register {
    border: 1px solid transparent;
    background: var(--jewel);
    color: var(--content-on-accent);
    box-shadow: none;
}

.header-login:hover,
.header-login:active {
    background: var(--control-neutral-hover);
    border-color: transparent;
    color: var(--content-primary);
}

.header-register:hover,
.header-register:active {
    background: var(--jewel-dark);
    border-color: transparent;
    color: var(--content-on-accent);
    box-shadow: var(--cta-glow);
}

.header-login:focus-visible,
.header-register:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.header-help {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    color: var(--content-primary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    transition: color 0.2s ease;
}

.header-help:hover {
    color: var(--text-accent);
}

.header-help:hover .help-icon {
    border-color: var(--text-accent);
    color: var(--text-accent);
}

.header-help:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.help-icon {
    width: 22px;
    height: 22px;
    border: 1px solid var(--text-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--content-primary);
    text-align: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.help-text {
    color: inherit;
    text-align: center;
}

@media (min-width: 769px) {
    .header-content {
        height: var(--header-height);
        min-height: var(--header-height);
        padding: 0;
    }

    .lang-dropdown--mobile {
        display: none;
    }

    .download-links {
        display: flex;
    }

    .header-right {
        gap: 8px;
    }

    .header-help {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 40px;
    }

    .header-login,
    .header-register {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: var(--btn-height);
        padding: 0 var(--btn-padding-x);
        font-size: 16px;
        font-weight: 700;
        text-align: center;
    }

    .lang-dropdown-btn {
        min-height: 40px;
        padding: 0 12px;
        font-size: 14px;
        font-weight: 600;
        text-transform: none;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: var(--header-height);
    }

    .header {
        height: var(--header-height);
        padding: 0 var(--space-page-x-mobile);
    }

    .lang-dropdown--desktop {
        display: none;
    }

    .header-content {
        padding: 0;
        height: var(--header-height);
        min-height: var(--header-height);
    }

    .header-brand {
        flex: 0 0 auto;
        min-width: 0;
        gap: 6px;
    }

    /* H-mark on small screens; wordmark from 769+ */
    .header-logo-img--desktop {
        display: none;
    }

    .header-logo-img--mobile {
        display: block;
        width: 32px;
        height: 40px;
        max-width: 32px;
        object-fit: contain;
    }

    .header-right {
        gap: 4px;
        min-width: 0;
        flex-shrink: 1;
        flex-wrap: nowrap;
    }

    /* Mobile: Sign Up first, then Log In (text buttons — not a 40×40 icon) */
    .header-register {
        order: 1;
    }

    .header-login {
        order: 2;
    }

    .header-login,
    .header-register {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        min-height: 40px;
        padding: 0 10px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
    }

    .lang-dropdown-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 8px;
        font-size: 14px;
        font-weight: 600;
        text-transform: none;
        text-align: center;
    }
}

/* ===== Hero + mobile promo (stage 7) ===== */
.container {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: var(--header-height) var(--space-page-x-desktop) var(--section-gap);
    overflow-x: clip;
    overflow-y: visible;
    background: var(--x1-primary);
    box-shadow: none;
}

.container::after {
    display: none;
}

/* Housebets hero stage: 1100px column, ocean plate + whale */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px 28px;
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    height: auto;
    min-height: 300px;
    padding: 20px 24px;
    overflow: visible;
    border-radius: var(--radius-hero);
    border: 1px solid var(--border-divider);
    box-shadow: var(--shadow-m);
    background: var(--hero-ocean);
}

.form-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 0;
    max-width: 460px;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    z-index: 2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Speech-bubble pointer — keep hidden */
.form-container::after {
    content: none;
    display: none;
}

.banner-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-width: 0;
    align-self: stretch;
    position: relative;
    z-index: 1;
    background: transparent;
}

.banner-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    aspect-ratio: 1130 / 607;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
    border: none;
    filter: drop-shadow(0 8px 24px rgba(4, 16, 21, 0.45));
}

.page-bonuses .banner-container {
    align-items: center;
}

.page-bonuses .banner-img {
    object-position: center;
    transform: none;
    transform-origin: center center;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 0;
        padding: 18px 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .form-container {
        margin: 0 auto;
        max-width: 460px;
        align-items: flex-start;
    }

    .form-container::after {
        display: none;
        content: none;
    }

    .banner-container,
    .page-bonuses .banner-container {
        display: none;
    }
}

.headline-1 {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    color: var(--content-primary);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0;
    line-height: 1.15;
    padding: 0;
    background: none;
    border-radius: 0;
    clip-path: none;
}

.headline-2 {
    text-align: left;
    color: #FFFFFFE6;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    line-height: 1.5;
    letter-spacing: 0;
    order: 0;
}

.headline-offer {
    text-align: left;
    margin: 2px 0 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    color: var(--offer-cream);
}

@media (max-width: 1024px) {
    .headline-1,
    .headline-offer {
        font-size: 26px;
        font-weight: 700;
        line-height: 1.15;
    }
}

.offer-accent-money {
    background: var(--prize-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.offer-accent-fs {
    color: var(--text-accent);
}

.btn-register {
    width: 100%;
    min-height: var(--btn-height);
    padding: 14px var(--btn-padding-x);
    background: var(--jewel);
    color: var(--content-on-accent);
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    box-shadow: none;
}

.btn-register.btn-login {
    background: var(--btn-dark-color);
    margin-bottom: 0;
    min-height: var(--btn-height);
    font-size: 16px;
    font-weight: 700;
    color: var(--content-primary);
    border: 1px solid transparent;
    box-shadow: none;
}

.btn-register.btn-login:hover {
    background: var(--control-neutral-hover);
    color: var(--content-primary);
    border-color: transparent;
    box-shadow: none;
}

a.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.btn-register:hover {
    background: var(--btn-primary-hover);
    color: var(--content-on-accent);
    box-shadow: var(--cta-glow);
}

.btn-register:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.form-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-login-banner {
    width: 100%;
    min-height: var(--btn-height);
    padding: 14px var(--btn-padding-x);
    background: var(--btn-dark-color);
    color: var(--content-primary);
    border: none;
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-login-banner:hover {
    background: var(--control-neutral-hover);
    color: var(--content-primary);
}

/* ===== Main content / article (stage 8) ===== */
.content-section {
    position: relative;
    background: var(--x1-primary);
    padding: 32px var(--space-page-x-mobile);
}

@media (min-width: 769px) {
    .content-section {
        padding-left: var(--space-page-x-desktop);
        padding-right: var(--space-page-x-desktop);
    }
}

.content-section > * {
    position: relative;
    z-index: 1;
}

.content-max-width {
    max-width: 1100px;
    margin: 0 auto;
}

.content-title {
    color: var(--content-primary);
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--section-gap);
    text-align: left;
    line-height: 1.2;
    letter-spacing: 0;
}

/* ===== Social proof + conversion (stage 9) ===== */
.content-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: var(--section-gap) 0 calc(var(--section-gap) + 12px);
}

.content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: var(--btn-height);
    min-width: 200px;
    padding: 0 var(--btn-padding-x);
    background: var(--jewel);
    color: var(--content-on-accent);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    text-shadow: none;
    border: none;
    border-radius: var(--radius-btn);
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.content-btn:hover {
    background: var(--btn-primary-hover);
    color: var(--content-on-accent);
    border: none;
    transform: none;
    box-shadow: var(--cta-glow);
}

.content-btn:active {
    background: var(--btn-primary-hover);
    color: var(--content-on-accent);
}

.content-btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.content-max-width > .content-button-wrapper:last-child {
    margin-top: 32px;
    margin-bottom: 8px;
}

.content-max-width > .content-button-wrapper:last-child .content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    min-width: min(326px, 100%);
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap);
    margin: var(--section-gap) 0;
}

.pros-block,
.cons-block {
    border-radius: var(--radius-card);
    padding: var(--card-padding);
    background: var(--surface-b);
    border: 1px solid var(--border-divider);
    box-shadow: none;
}

.cons-block {
    background: var(--surface-b);
}

.pros-cons-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--content-primary);
}

.pros-block .pros-cons-title,
.cons-block .pros-cons-title {
    color: var(--content-primary);
}

.pros-cons-head-icon {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.pros-cons-head-icon svg {
    display: block;
}

.pros-cons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pros-cons-list li {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--content-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pros-block .pros-cons-list li::before {
    content: "✓";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-accent);
    margin-top: 2px;
}

.cons-block .pros-cons-list li::before {
    content: "✗";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #FA2E5D;
    margin-top: 2px;
}

@media (max-width: 700px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }

    .pros-block,
    .cons-block {
        min-width: 0;
    }
}

/* Intro band: author meta (feature-cell chrome). Rating card is Stage 9. */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: var(--section-gap);
    padding: var(--card-padding);
    background: var(--surface-b);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    box-shadow: none;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--content-secondary);
    line-height: 1.4;
}

.article-meta-icon {
    width: 16px;
    height: 16px;
    fill: var(--blue-color);
    flex-shrink: 0;
}

.article-meta-label {
    color: var(--content-primary);
    font-weight: 600;
}

.rating-card {
    background: var(--surface-b);
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    padding: var(--card-padding);
    margin-bottom: var(--section-gap);
    max-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px 24px;
    box-shadow: none;
}

.rating-card-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 110px;
    text-align: center;
    border-right: 1px solid var(--border-divider);
    padding-right: 24px;
}

.rating-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--gold-accent);
    background: var(--prize-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-max {
    font-size: 16px;
    color: var(--content-tertiary);
    font-weight: 400;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin: 8px 0 6px;
}

.rating-stars .star {
    color: var(--gold-accent);
    font-size: 18px;
}

.rating-stars .star-half {
    color: var(--gold-accent);
    font-size: 18px;
    opacity: 0.7;
}

.rating-count {
    font-size: 12px;
    color: var(--content-tertiary);
}

.rating-card-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    align-content: center;
}

.fact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: var(--surface-a);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
}

.fact-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--content-tertiary);
}

.fact-value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--content-primary);
}

.fact-value.good {
    color: var(--content-primary);
}

.fact-value.warn {
    color: var(--content-primary);
}

@media (max-width: 600px) {
    .rating-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .rating-card-score {
        border-right: none;
        border-bottom: 1px solid var(--border-divider);
        padding-right: 0;
        padding-bottom: 16px;
    }

    .rating-card-facts {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fact-item {
        padding: 8px 10px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        box-shadow: none;
    }
}

/* Casino facts table — feature-cell chrome */
.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--section-gap) 0 calc(var(--section-gap) + 8px);
    font-family: var(--font-sans);
    font-size: 14px;
    border: 1px solid var(--border-divider);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-b);
}

.stats-table tr {
    background: var(--surface-b);
}

.stats-table tr:nth-child(even) {
    background: var(--bg-tertiary);
}

.stats-table td {
    padding: 12px var(--card-padding);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-divider);
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table td:first-child {
    color: var(--content-secondary);
    width: 42%;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
}

.stats-table td:last-child {
    color: var(--content-primary);
    font-weight: 400;
    border-radius: 0;
}

.stats-table tr:first-child td:first-child {
    border-radius: 12px 0 0 0;
}

.stats-table tr:first-child td:last-child {
    border-radius: 0 12px 0 0;
}

.stats-table tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.stats-table tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.text-content {
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.text-content p {
    margin-bottom: var(--section-gap);
    color: var(--content-secondary);
    font-size: 16px;
    line-height: 1.5;
}

.text-content a {
    color: var(--blue-color);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.text-content a:hover {
    color: var(--link-accent);
    text-decoration-thickness: 2px;
}

.text-content a:focus-visible {
    color: var(--link-accent);
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.text-content strong,
.text-content b {
    color: var(--content-primary);
    font-weight: 700;
}

.text-content em {
    color: var(--content-secondary);
    font-style: italic;
}

/* Table of contents — feature-cell chrome, numbered list */
.article-toc {
    width: 100%;
    margin: var(--section-gap) 0;
    padding: 16px 20px 20px;
    border: 1px solid var(--border-divider);
    border-radius: 12px;
    background: var(--surface-b);
    box-sizing: border-box;
    box-shadow: none;
    position: static;
}

.text-content .article-toc-heading,
.article-toc-heading {
    margin: 0 0 14px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--content-primary);
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.text-content .article-toc-list {
    margin: 0;
    padding: 0 0 0 1.6em;
    list-style: decimal;
    display: block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.article-toc-list .level-1 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--content-secondary);
    list-style: decimal;
}

.article-toc-list .level-1::marker {
    color: var(--text-accent);
    font-family: var(--font-sans);
    font-weight: 600;
}

.article-toc-list a {
    display: inline;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--content-secondary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    transition: color 0.2s ease;
}

.article-toc-list a:hover {
    background: transparent;
    border: none;
    color: var(--link-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-toc-list a:focus-visible {
    background: transparent;
    border: none;
    color: var(--link-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.article-toc-list a:active {
    background: transparent;
    border: none;
    color: var(--link-accent);
}

@media (max-width: 768px) {
    .article-toc {
        max-width: 100%;
        padding: 14px 16px 16px;
        background: var(--surface-b);
    }

    .text-content .article-toc-list {
        padding-left: 1.4em;
        font-size: 14px;
        line-height: 1.7;
    }

    .article-toc-list a {
        font-size: 14px;
    }
}

.content-screen-figure {
    margin: var(--section-gap) 0;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius-hero);
    border: 1px solid var(--border-divider);
    background: var(--surface-c);
}

.content-screen-img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: var(--surface-c);
}

.text-content h2,
.text-content h3 {
    font-weight: 700;
    margin-top: calc(var(--section-gap) + 12px);
    margin-bottom: 12px;
    color: var(--content-primary);
    text-align: left;
    line-height: 1.4;
    letter-spacing: 0;
}

.text-content h2,
.text-content h2.anchor-heading {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--content-primary);
    scroll-margin-top: var(--header-height);
}

.text-content h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
}

.text-content ul,
.text-content ol:not(.article-toc-list) {
    margin: 0 0 var(--section-gap) 1.25em;
    padding: 0;
    color: var(--content-secondary);
}

.text-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.text-content li::marker {
    color: var(--blue-color);
}

/* FAQ accordion — teal rows, cyan open accent */
.faq-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--surface-a);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
    background: var(--surface-a);
    box-shadow: inset 3px 0 0 0 #02F8F8;
}

.faq-item[open] .faq-summary {
    color: var(--content-primary);
}

.faq-summary {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
    padding: 14px 44px 14px 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--content-primary);
    position: relative;
    line-height: 1.4;
}

.faq-summary .faq-question {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    background: var(--control-neutral-hover);
    color: var(--content-primary);
}

.faq-summary:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: -2px;
}

.faq-item[open] .faq-summary:hover {
    background: var(--control-neutral-hover);
    color: var(--content-primary);
}

.faq-summary::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--text-accent);
    border-bottom: 2px solid var(--text-accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] .faq-summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
    border-right-color: var(--text-accent);
    border-bottom-color: var(--text-accent);
}

.faq-body {
    padding: 0 16px 16px 19px;
}

.faq-body p {
    margin: 0;
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.faq-body .faq-answer-plain {
    margin: 0 0 10px 0;
    font-weight: 400;
    color: var(--content-secondary);
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
        padding: var(--header-height) var(--space-page-x-mobile) 12px;
        margin-top: 0;
        justify-content: flex-start;
    }

    .content-section {
        padding: 32px var(--space-page-x-mobile);
    }

    .content-max-width {
        padding-top: 0;
    }

    .content-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .anchor-heading {
        scroll-margin-top: var(--header-height);
    }

    .content-button-wrapper {
        width: 100%;
    }

    .content-button-wrapper .content-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        font-size: 16px;
        font-weight: 700;
    }

    .form-container .hero-buttons > a[href] {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .article-meta {
        padding: 12px;
    }

    .text-content {
        font-size: 16px;
        line-height: 1.5;
    }

    .text-content p {
        font-size: 16px;
        line-height: 1.5;
    }

    .text-content h2,
    .text-content h3 {
        font-size: 20px;
        margin-top: 28px;
        margin-bottom: 10px;
    }

    .text-content h2.anchor-heading {
        font-size: 20px;
        scroll-margin-top: var(--header-height);
    }

    .stats-table td {
        padding: 10px 12px;
        word-break: break-word;
    }

    .stats-table td:first-child {
        font-size: 14px;
        width: 45%;
    }

    .pros-block,
    .cons-block {
        box-shadow: none;
    }

    .content-screen-figure {
        border-radius: var(--radius-hero);
    }

    .content-screen-img {
        max-width: 100%;
        border-radius: 0;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-summary {
        font-size: 16px;
        font-weight: 700;
        min-height: 44px;
        padding: 12px 38px 12px 14px;
    }

    .faq-summary::after {
        right: 14px;
    }

    .faq-body {
        padding: 0 14px 14px 17px;
    }

    .faq-item[open] {
        box-shadow: inset 3px 0 0 0 #02F8F8;
    }

    .headline-2 {
        font-family: var(--font-sans);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        color: #FFFFFFE6;
    }

    .headline-offer {
        font-size: 26px;
        font-weight: 700;
        line-height: 1.15;
    }
}

@media (max-width: 600px) {
    .form-container {
        padding: 8px 0;
        border-radius: 0;
    }

    .headline-1 {
        font-size: 26px;
        font-weight: 700;
        line-height: 1.15;
        padding: 0;
        background: none;
        clip-path: none;
        border-radius: 0;
    }

    .headline-2 {
        font-family: var(--font-sans);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        color: #FFFFFFE6;
    }
}

/* ===== Footer + legal (stage 10) ===== */
.footer {
    flex-shrink: 0;
    position: relative;
    background-color: var(--x1-tertiary);
    background-image: var(--footer-gradient);
    padding: 24px var(--space-page-x-desktop);
    border-top: 1px solid var(--border-divider);
    box-shadow: none;
}

.footer::before,
.footer::after {
    content: none;
    display: none;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px 40px;
    flex-wrap: wrap;
    border-radius: var(--radius-hero);
}

.footer-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    gap: 8px 20px;
}

.footer-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 8px 0;
    background: transparent;
    color: var(--content-tertiary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    transition: color 0.2s ease;
}

.footer-nav a:first-child,
.footer-nav a:last-child,
.footer-nav a:only-child {
    border-radius: 0;
}

.footer-nav a::after {
    display: none;
}

.footer-nav a:last-child::after {
    display: none;
}

.footer-nav a:hover {
    color: var(--content-primary);
    text-decoration: none;
}

.footer-nav a:focus-visible {
    color: var(--link-accent);
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    z-index: 1;
}

.legal-main {
    min-height: 50vh;
}

.page-legal .content-section {
    background: var(--x1-primary);
}

.legal-document {
    background: var(--surface-b);
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-hero);
    padding: calc(var(--card-padding) * 2) calc(var(--card-padding) * 1.5);
    box-shadow: none;
}

.page-legal .content-title {
    color: var(--content-primary);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
}

.legal-document .text-content {
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.legal-document .text-content h2,
.legal-document .text-content h3 {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0;
    margin-top: 28px;
    margin-bottom: 14px;
    color: var(--content-primary);
    font-weight: 700;
}

.legal-link {
    color: var(--blue-color);
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--link-accent);
}

.legal-link:focus-visible {
    color: var(--link-accent);
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.legal-meta {
    margin-top: var(--section-gap);
    font-size: 14px;
    color: var(--content-tertiary) !important;
}

.legal-visual-block,
.page-apk .legal-visual-block,
.page-bonuses .legal-visual-block {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-hero);
    background: var(--surface-b);
    box-shadow: none;
}

.legal-visual-eyebrow {
    margin: 0 0 10px 0 !important;
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--content-tertiary) !important;
}

.legal-visual-title {
    margin: 0 0 10px 0 !important;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--content-primary);
}

.legal-visual-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 280px);
    justify-self: end;
}

.legal-visual-media img {
    display: block;
    width: 100%;
    max-width: 280px;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-hero);
    border: 1px solid var(--border-divider);
    box-shadow: none;
    background: var(--surface-c);
}

.legal-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 8px;
}

.legal-mini-card {
    padding: 14px;
    border-radius: var(--radius-hero);
    border: 1px solid var(--border-divider);
    background: var(--surface-c);
}

.legal-mini-card h3 {
    margin: 0 0 8px 0 !important;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--content-primary);
}

.legal-mini-card p {
    margin: 0 !important;
    color: var(--content-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
}

.footer-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 320px;
    min-width: 0;
}

.age-restriction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--x1-primary);
    border: 2px solid var(--text-accent);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var(--content-primary);
    box-shadow: none;
}

.age-number {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    position: static;
}

.age-plus {
    font-size: 0.7em;
    font-weight: inherit;
    color: inherit;
    position: static;
    margin-left: 1px;
}

.footer-disclaimer p.footer-copyright,
.footer-copyright {
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    margin: 0 0 8px 0 !important;
}

.footer-disclaimer p {
    color: var(--content-tertiary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: normal;
    margin: 0;
}

.footer-disclaimer p + p {
    margin-top: 8px;
}


@media (max-width: 768px) {
    .footer {
        padding: 24px var(--space-page-x-mobile);
    }

    .footer-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding-top: 0;
    }

    .footer-left {
        width: 100%;
        flex: none;
    }

    .footer-nav {
        width: 100%;
        max-width: none;
        flex: none;
        padding-top: 0;
        border-top: none;
    }

    body.page-legal {
        padding-top: var(--header-height);
    }

    .legal-visual-block,
    .page-apk .legal-visual-block,
    .page-bonuses .legal-visual-block {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .legal-visual-media {
        width: 100%;
        justify-self: center;
    }

    .legal-visual-media img {
        max-width: 240px;
        max-height: 180px;
    }

    .legal-mini-grid {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }
}

/* Hero logo: desktop only (mobile — centered logo in .header) */
.form-container .logo {
    display: none;
}

@media (min-width: 769px) {
    .form-container .logo {
        display: flex;
        justify-content: flex-start;
        text-decoration: none;
    }

    .form-container .logo-img {
        width: 116px;
        height: 18px;
        max-width: 116px;
        max-height: 18px;
        object-fit: contain;
        transform: none;
    }
}

/* Hero CTA — Housebets: mint Register + teal Login */
.form-container .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    text-align: center;
}

.form-container .hero-buttons > a[href] {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.form-container .hero-buttons button.btn-register {
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-sans);
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-container .hero-buttons .btn-register,
.form-container .hero-buttons a.btn-register {
    background: var(--jewel);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--content-on-accent);
    text-shadow: none;
    border: none;
    border-radius: var(--radius-btn);
    box-shadow: none;
    min-height: var(--btn-height);
    padding: 14px var(--btn-padding-x);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-container .hero-buttons .btn-register.btn-login,
.form-container .hero-buttons a.btn-register.btn-login {
    background: var(--btn-dark-color);
    margin-bottom: 0;
    min-height: var(--btn-height);
    font-size: 16px;
    font-weight: 700;
    color: var(--content-primary);
    border: 1px solid transparent;
    box-shadow: none;
}

.form-container .hero-buttons .btn-register:hover,
.form-container .hero-buttons a.btn-register:hover,
.form-container .hero-buttons button.btn-register:hover {
    background: var(--btn-primary-hover);
    color: var(--content-on-accent);
    transform: none;
    box-shadow: var(--cta-glow);
}

.form-container .hero-buttons .btn-register.btn-login:hover,
.form-container .hero-buttons a.btn-register.btn-login:hover {
    background: var(--control-neutral-hover);
    color: var(--content-primary);
    border-color: transparent;
    box-shadow: none;
}

/* ===== Footer + legal (stage 10) — page-legal shell ===== */
body.page-legal {
    padding-top: var(--header-height);
    background: var(--surface-a);
}

body.page-legal .legal-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    color: var(--content-secondary);
    font-family: var(--font-sans);
    line-height: 1.7;
}

body.page-legal .legal-wrap h1 {
    color: var(--content-primary);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.25px;
    margin-bottom: 20px;
}

body.page-legal .legal-wrap p {
    margin-bottom: 16px;
}

body.page-legal .legal-wrap a {
    color: var(--blue-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page-legal .legal-back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--blue-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page-legal .legal-back:hover {
    color: var(--content-primary);
}

@media (max-width: 768px) {
    body.page-legal {
        padding-top: var(--header-height);
    }
}

/* Mobile-only promo strip (≤1024 — keep template breakpoint) */
.banerBody.mobile-promo-banner,
.mobile-promo-banner {
    display: none;
}

.noCopy {
    -webkit-user-select: none;
    user-select: none;
}

/* Show compact promo whenever desktop hero mascot is hidden (≤1024) */
@media (max-width: 1024px) {
    .banerBody.mobile-promo-banner,
    .mobile-promo-banner {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0 0 12px;
        margin-top: 0;
        position: relative;
        z-index: 50;
    }

    .mobile-promo-banner__link {
        display: flex;
        align-items: stretch;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        color: inherit;
        width: 100%;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-promo-banner__link:focus-visible {
        outline: 2px solid var(--border-focus);
        outline-offset: 2px;
        border-radius: var(--radius-hero);
    }

    .mobile-promo-banner__banner.bonusBanner {
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 250px;
        max-height: none;
        border-radius: var(--radius-hero);
        background: var(--hero-ocean);
        border: 1px solid var(--border-divider);
        box-shadow: var(--shadow-m);
        isolation: isolate;
    }

    .mobile-promo-banner__banner.bonusBanner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            90deg,
            rgba(3, 50, 54, 0.82) 0%,
            rgba(3, 50, 54, 0.28) 32%,
            rgba(3, 50, 54, 0) 62%
        );
        pointer-events: none;
    }

    .mobile-promo-banner__back {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .mobile-promo-banner__backImg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .mobile-promo-banner__mainImg.bonusBannerMain {
        position: absolute;
        right: 0;
        bottom: 0;
        top: 0;
        left: auto;
        width: auto;
        height: 100%;
        max-height: none;
        aspect-ratio: 1130 / 607;
        object-fit: contain;
        object-position: center bottom;
        z-index: 0;
        pointer-events: none;
        filter: drop-shadow(0 8px 24px rgba(4, 16, 21, 0.45));
    }

    .mobile-promo-banner__inside {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 2;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 12px;
        justify-content: center;
        min-height: 250px;
        box-sizing: border-box;
    }

    .mobile-promo-banner__text {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1 1 140px;
        min-width: 0;
        text-align: left;
    }

    .mobile-promo-banner__eyebrow {
        margin: 0;
        font-family: var(--font-display);
        font-size: 26px;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.15;
        text-transform: none;
        color: var(--x1-secondary);
    }

    .mobile-promo-banner__lead {
        margin: 0;
        font-family: var(--font-display);
        font-size: 26px;
        font-weight: 700;
        line-height: 1.15;
        color: var(--offer-cream);
        letter-spacing: 0;
        text-transform: none;
    }

    .mobile-promo-banner__lead .offer-accent-money {
        background: var(--prize-gold);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .mobile-promo-banner__lead .offer-accent-fs {
        color: var(--text-accent);
    }

    .mobile-promo-banner__cta {
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: var(--btn-height);
        width: min(460px, 100%);
        min-width: 44px;
        padding: 14px var(--btn-padding-x);
        font-family: var(--font-sans);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        color: var(--content-on-accent);
        text-shadow: none;
        line-height: 1;
        background: var(--jewel);
        border: none;
        border-radius: var(--radius-btn);
        box-shadow: none;
        box-sizing: border-box;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-promo-banner__link:hover .mobile-promo-banner__cta,
    .mobile-promo-banner__link:focus-visible .mobile-promo-banner__cta {
        background: var(--btn-primary-hover);
        color: var(--content-on-accent);
        border-color: transparent;
        box-shadow: var(--cta-glow);
    }
}

@media (max-width: 430px) {
    .header-brand {
        gap: 4px;
    }

    .header-login,
    .header-register {
        padding: 0 8px;
        font-size: 12px;
        min-height: 44px;
    }

    .lang-dropdown-btn {
        padding: 0 6px;
        min-height: 44px;
    }

    .headline-offer {
        font-size: 26px;
    }

    .mobile-promo-banner__eyebrow {
        font-size: 16px;
    }

    .mobile-promo-banner__lead {
        font-size: 26px;
    }

    .mobile-promo-banner__cta {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
    }

    .stats-table td:first-child {
        width: auto;
    }

    .legal-wrap,
    body.page-legal .legal-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 360px) {
    .header-login,
    .header-register,
    .lang-dropdown-btn {
        padding: 0 6px;
        font-size: 12px;
    }

    .headline-offer {
        font-size: 26px;
    }

    .mobile-promo-banner__lead {
        font-size: 26px;
    }
}


