:root {
    /* EmberBet brand — teal-navy base + orange CTA */
    --gold-brand: #FF6321;
    --gold-accent: #FF6321;
    --gold-border: #FF6321;
    --cream: #FFFFFF;
    --offer-cream: #FFFFFF;
    --parchment-ink: #FFFFFF;
    --jewel: #FF6321;
    --jewel-dark: #FF7A45;
    --header-brick-mid: #182E37;
    --chrome-bg: #182E37;

    /* EmberBet explicit tokens */
    --ember-primary: #FF6321;
    --ember-primary-hover: #FF7A45;
    --ember-primary-light: #FFB18F;
    --ember-surface: #182E37;
    --ember-surface-tertiary: #2E4E5A;
    --ember-body: #03171F;
    --ember-muted: #B9CFD8;

    /* Core palette — page vs chrome split */
    --x1-primary: #03171F;
    --x1-secondary: #FF6321;
    --x1-tertiary: #182E37;
    --x1-bg-deep: #182E37;
    --x1-login-blue: transparent;

    /* Surfaces */
    --bg-secondary: #182E37;
    --bg-tertiary: #2E4E5A;
    --bg-elevated: #182E37;
    --surface-a: #03171F;
    --surface-b: #182E37;
    --surface-c: #182E37;
    --surface-d: #1A3540;

    /* Content colors */
    --content-primary: #FFFFFF;
    --content-secondary: #B9CFD8;
    --content-tertiary: #8FA8B3;
    --content-on-accent: #FFFFFF;

    /* Controls & borders */
    --control-neutral: rgba(255, 255, 255, 0.06);
    --control-neutral-hover: rgba(255, 255, 255, 0.1);
    --border-divider: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(255, 99, 33, 0.6);

    /* Legacy aliases — retarget so leftover selectors cannot flash old brand */
    --iris-bg: var(--x1-bg-deep);
    --iris-purple-a: #FF6321;
    --iris-purple-b: #FF7A45;
    --iris-cta-a: var(--jewel);
    --iris-cta-b: #FF7A45;

    --hero-sand: var(--content-secondary);
    --hero-deep: #182E37;
    --hero-gold: var(--ember-primary);
    --hero-gold-bright: var(--ember-primary-hover);
    --hero-cream: var(--offer-cream);
    --hero-stage: linear-gradient(90deg, #03171F 0%, #182E37 100%);
    --accent-pink-rgb: 255, 40, 21;
    --accent-gold-rgb: 255, 99, 33;
    --accent-green-rgb: 255, 99, 33;
    --accent-blue-rgb: 255, 122, 69;
    --ui-panel: 24, 46, 55;
    --ui-panel-2: 46, 78, 90;
    --link-accent: #FF6321;
    --brand-purple: #FF6321;
    --brand-magenta: #FF6321;
    --accent-orange: #FF6321;
    --accent-orange-hover: #FF7A45;
    --btn-promo: #FF6321;
    --btn-promo-hover: #FF7A45;
    --gradient-brand: linear-gradient(90deg, #03171F 0%, #182E37 100%);
    --gradient-night: linear-gradient(180deg, #03171F, #182E37);
    --shadow-m: 0 4px 24px 0 rgba(0, 0, 0, 0.5);
    --radius-pill: 9999px;
    --radius-btn: 10px;
    --radius-tab: 10px;
    --radius-card: 10px;
    --radius-hero: 10px;

    --header-fade-gradient: linear-gradient(180deg, #182E37 0%, #182E37 100%);
    --header-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

    --primary-color: #03171F;
    --primary-color-light: #182E37;
    --btn-dark-color: transparent;

    --secondary-color: #FF6321;
    --btn-secondary-color: #FF6321;
    --btn-primary-hover: #FF7A45;
    --tertiary-color: #182E37;
    --red-color: #fb2c36;
    --blue-color: #FF6321;
    --dark-btn-text: #FFFFFF;

    /* CTA system */
    --cta-gradient: linear-gradient(180deg, #FF6321 0%, #E8551A 100%);
    --cta-secondary-bg: rgba(255, 255, 255, 0.06);
    --cta-inset-shadow: none;

    /* Typography families (loaded via Google Fonts in templates) */
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-display: "Inter", system-ui, -apple-system, sans-serif;
    --font-offer: "Inter", system-ui, -apple-system, sans-serif;
    --font-weight-section: 900;
    --font-weight-heading: 700;
    --font-size-btn: 14px;
    --font-weight-btn: 700;

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

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

html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    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: 64px;
    font-family: var(--font-display);
    font-weight: var(--font-weight-section);
    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 (EmberBet teal chrome) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #182E37;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-divider);
    box-shadow: none;
    padding: 0 var(--space-page-x-desktop);
}

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

.page-legal .header {
    background-color: #182E37;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-divider);
    box-shadow: none;
}

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

.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 {
    width: auto;
    height: 40px;
    max-width: 192px;
}

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

.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: 42px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--ember-surface-tertiary);
    background: transparent;
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    text-shadow: none;
    user-select: none;
    transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    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: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    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(--content-secondary);
}

.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(--ember-surface-tertiary);
    background: var(--ember-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.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: 44px;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    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(--bg-elevated);
    color: var(--content-primary);
}

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

/* Download links (desktop icon buttons) — muted glyphs, orange hover */
.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: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--ember-surface-tertiary);
    background: transparent;
    text-decoration: none;
    text-align: center;
    color: var(--ember-muted);
    transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--ember-primary);
}

.download-link:hover .download-icon {
    fill: var(--ember-primary);
}

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

.download-icon {
    width: 18px;
    height: 18px;
    fill: var(--ember-muted);
    transition: fill 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header CTAs — EmberBet: orange outline Login + solid orange Register */
.header-login,
.header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 42px;
    padding: 0 var(--btn-padding-x);
    border-radius: var(--radius-btn);
    border: 1px solid var(--ember-primary);
    background: transparent;
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: var(--font-size-btn);
    font-weight: var(--font-weight-btn);
    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.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.header-login:hover,
.header-login:active {
    background: rgba(255, 99, 33, 0.12);
    border-color: var(--ember-primary-light);
    color: var(--content-primary);
}

.header-register:hover,
.header-register:active {
    background: var(--ember-primary-hover);
    border-color: transparent;
    color: var(--content-on-accent);
    box-shadow: none;
}

.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: 42px;
    color: var(--ember-muted);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-help:hover {
    color: var(--ember-primary);
}

.header-help:hover .help-icon {
    border-color: var(--ember-primary);
    color: var(--ember-primary);
}

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

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

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

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

    .download-links {
        display: flex;
    }

    .header-right {
        gap: 10px;
    }

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

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

    .lang-dropdown-btn {
        min-height: 42px;
        padding: 0 12px;
        font-size: var(--font-size-btn);
        font-weight: var(--font-weight-btn);
        text-transform: none;
    }
}

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

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

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

    .header-content {
        padding: 8px 0;
        min-height: 56px;
    }

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

    /* Mobile: compact flame icon (logo-icon.avif) */
    .header-logo-img--desktop {
        display: none;
    }

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

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

    /* Mobile: Sign Up first, then Log In */
    .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: 38px;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
    }

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

.container {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 64px var(--space-page-x-desktop) var(--section-gap);
    overflow-x: clip;
    overflow-y: visible;
    background: var(--ember-body);
    box-shadow: none;
}

.container::after {
    display: none;
}

/* EmberBet hero: full-width 4:1 banner + left teal form panel */
.content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 4 / 1;
    min-height: 260px;
    padding: 16px 20px;
    overflow: hidden;
    border-radius: var(--radius-hero);
    border: 1px solid var(--border-divider);
    box-shadow: none;
    background: var(--x1-tertiary);
    z-index: 2;
}

.form-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--ember-surface);
    border: 1px solid var(--ember-surface-tertiary);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    max-width: 340px;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    z-index: 2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

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

.banner-container {
    position: absolute;
    inset: 0;
    display: block;
    min-width: 0;
    z-index: 0;
    background: var(--x1-tertiary);
}

.banner-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(3, 23, 31, 0.95) 0%,
        rgba(24, 46, 55, 0.85) 28%,
        rgba(24, 46, 55, 0.45) 52%,
        rgba(24, 46, 55, 0.12) 72%,
        transparent 100%
    );
    pointer-events: none;
}

.banner-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 1;
    object-fit: cover;
    object-position: center right;
    border-radius: 0;
    border: none;
    filter: none;
    display: block;
}

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

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

@media (max-width: 1024px) {
    .content-wrapper {
        aspect-ratio: auto;
        min-height: 0;
        padding: 12px 0 0;
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .form-container {
        margin: 0 auto;
        max-width: 326px;
        align-items: flex-start;
        background: var(--ember-surface);
        border: 1px solid var(--ember-surface-tertiary);
        border-radius: var(--radius-card);
        padding: 16px 18px;
        box-shadow: none;
    }

    .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(--ember-muted);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0;
    line-height: 1.3;
    padding: 0;
    background: none;
    border-radius: 0;
    clip-path: none;
}

.headline-2 {
    text-align: left;
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 600;
    text-transform: none;
    line-height: 22px;
    letter-spacing: 0;
    order: 0;
}

.headline-offer {
    text-align: left;
    margin: 2px 0 0;
    font-family: var(--font-offer);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--content-primary);
}

.offer-accent-money {
    color: var(--ember-primary);
}

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

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

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

.btn-register.btn-login:hover {
    background: rgba(255, 99, 33, 0.12);
    color: var(--content-primary);
    border-color: var(--ember-primary-light);
    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(--ember-primary-hover);
    color: var(--content-on-accent);
    box-shadow: none;
}

.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%;
    padding: 18px;
    background: var(--red-color);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login-banner:hover {
    transform: scale(1.02);
}

/* ===== Main content sections (EmberBet teal article shell) ===== */
.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: #FFFFFF;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 700;
    margin-bottom: var(--section-gap);
    text-align: left;
    line-height: 1.3;
    letter-spacing: 0;
}

.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);
}

/* Mid CTA — orange outline secondary (login / affiliate base) */
.content-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    min-height: 48px;
    min-width: 200px;
    padding: 0 24px;
    background: transparent;
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    text-shadow: none;
    border: 1px solid var(--ember-primary);
    border-radius: var(--radius-btn);
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease, border-color 0.15s ease;
}

.content-btn:hover {
    background: rgba(255, 99, 33, 0.12);
    color: var(--content-primary);
    border-color: var(--ember-primary-light);
    transform: none;
    box-shadow: none;
}

.content-btn:active {
    background: rgba(255, 99, 33, 0.16);
    color: var(--content-primary);
    border-color: var(--ember-primary);
}

.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;
}

/* Bottom CTA — flat solid orange primary (register) */
.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;
    background: var(--ember-primary);
    color: var(--content-on-accent);
    border: 1px solid transparent;
    box-shadow: none;
}

.content-max-width > .content-button-wrapper:last-child .content-btn:hover {
    background: var(--ember-primary-hover);
    color: var(--content-on-accent);
    border-color: transparent;
    box-shadow: none;
}

.content-max-width > .content-button-wrapper:last-child .content-btn:active {
    background: var(--ember-primary-hover);
    color: var(--content-on-accent);
}

.pros-cons + .content-button-wrapper {
    margin-top: 8px;
}

.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(--ember-surface);
    border: 1px solid var(--border-divider);
    box-shadow: none;
}

.cons-block {
    background: var(--ember-surface);
    border-color: rgba(251, 44, 54, 0.25);
}

.pros-cons-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.25px;
    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-block .pros-cons-head-icon svg circle {
    fill: var(--ember-primary);
}

.cons-block .pros-cons-head-icon svg circle {
    fill: var(--red-color);
}

.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(--ember-primary);
    margin-top: 2px;
}

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

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

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

/* Intro band: author meta + rating card */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: var(--section-gap);
    padding: 14px 16px;
    background: var(--ember-surface);
    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: 400;
    color: var(--content-secondary);
    line-height: 1.4;
}

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

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

.rating-card {
    background: var(--ember-surface);
    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;
    color: var(--content-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.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(--ember-primary);
    font-size: 18px;
}

.rating-stars .star-half {
    color: var(--ember-primary);
    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(--ember-body);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
}

.fact-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--content-secondary);
}

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

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

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

@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 — teal elevated rows */
.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: var(--radius-card);
    overflow: hidden;
    background: var(--ember-surface);
}

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

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

.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: 500;
    border-radius: 0;
}

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

.stats-table tr:first-child td:first-child {
    border-radius: var(--radius-card) 0 0 0;
}

.stats-table tr:first-child td:last-child {
    border-radius: 0 var(--radius-card) 0 0;
}

.stats-table tr:last-child td:first-child {
    border-radius: 0 0 0 var(--radius-card);
}

.stats-table tr:last-child td:last-child {
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.text-content {
    color: var(--content-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: break-word;
}

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

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

.text-content a:hover {
    color: var(--ember-primary);
}

.text-content a:focus-visible {
    color: var(--ember-primary);
    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-primary);
    font-style: italic;
}

/* Table of contents — teal numbered card (not tab chips) */
.article-toc {
    width: 100%;
    margin: var(--section-gap) 0;
    padding: 18px 22px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    background: var(--ember-surface);
    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-display);
    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: 15px;
    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(--ember-primary);
    font-family: var(--font-sans);
    font-weight: 700;
}

.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: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    transition: color 0.15s ease;
}

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

.article-toc-list a:focus-visible {
    background: transparent;
    border: none;
    color: var(--ember-primary);
    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(--ember-primary-hover);
}

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

    .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;
}

.content-screen-img {
    display: block;
    max-width: min(100%, 384px);
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-divider);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    background: var(--ember-surface);
}

/* Article h2 section blocks — teal card shells (#182E37) */
.text-content h2.anchor-heading {
    background: var(--ember-surface);
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    padding: 16px 18px 12px;
    margin-top: calc(var(--section-gap) + 4px);
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 20px);
    font-weight: var(--font-weight-section);
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--content-primary);
    text-align: left;
}

.text-content h2.anchor-heading + :is(p, ul, ol, h3, .faq-list) {
    background: var(--ember-surface);
    border-left: 1px solid var(--border-divider);
    border-right: 1px solid var(--border-divider);
    padding-left: 18px;
    padding-right: 18px;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--content-primary);
}

.text-content h2.anchor-heading + p,
.text-content h2.anchor-heading + ul,
.text-content h2.anchor-heading + ol {
    padding-top: 0;
    padding-bottom: 12px;
}

.text-content h2.anchor-heading + p + p,
.text-content h2.anchor-heading + p + h3,
.text-content h2.anchor-heading + h3 + p,
.text-content h2.anchor-heading + p + ul,
.text-content h2.anchor-heading + p + ol {
    background: var(--ember-surface);
    border-left: 1px solid var(--border-divider);
    border-right: 1px solid var(--border-divider);
    padding-left: 18px;
    padding-right: 18px;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--content-primary);
}

.text-content h2.anchor-heading + p + p,
.text-content h2.anchor-heading + p + h3 + p,
.text-content h2.anchor-heading + h3 + p + p,
.text-content h2.anchor-heading + .faq-list,
.text-content h2.anchor-heading + p + p + p {
    border-bottom: 1px solid var(--border-divider);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    padding-bottom: 16px;
    margin-bottom: var(--section-gap);
}

.text-content h2.anchor-heading + p:not(:has(+ p)):not(:has(+ h3)):not(:has(+ ul)):not(:has(+ ol)) {
    border-bottom: 1px solid var(--border-divider);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    padding-bottom: 16px;
    margin-bottom: var(--section-gap);
}

.text-content h2.anchor-heading + p:only-of-type,
.text-content h2.anchor-heading + .faq-list:only-of-type {
    border-bottom: 1px solid var(--border-divider);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    padding-bottom: 16px;
    margin-bottom: var(--section-gap);
}

.text-content h2.anchor-heading + .faq-list {
    padding-top: 0;
    border-top: none;
}

.text-content h2.anchor-heading + h3,
.text-content h2.anchor-heading + p + h3 {
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    background: var(--ember-surface);
    border-left: 1px solid var(--border-divider);
    border-right: 1px solid var(--border-divider);
}

.text-content h2:not(.anchor-heading),
.text-content h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 20px);
    font-weight: var(--font-weight-section);
    margin-top: calc(var(--section-gap) + 12px);
    margin-bottom: 12px;
    color: var(--content-primary);
    text-align: left;
    line-height: 1.3;
    letter-spacing: 0;
}

.text-content h3 {
    font-family: var(--font-display);
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 600;
    color: var(--content-primary);
}

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

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

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

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

.faq-item {
    background: var(--ember-surface);
    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-d);
    border-color: var(--border-divider);
    box-shadow: inset 3px 0 0 0 var(--ember-primary);
}

.faq-item[open] .faq-summary {
    color: #FFFFFF;
}

.faq-summary {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
    padding: 14px 44px 14px 16px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    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: rgba(255, 255, 255, 0.04);
    color: var(--content-primary);
}

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

.faq-item[open] .faq-summary:hover {
    background: rgba(255, 255, 255, 0.04);
    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 #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    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(--ember-primary);
    border-bottom-color: var(--ember-primary);
}

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

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

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


@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: stretch;
        padding: 56px 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: 18px;
        margin-bottom: 16px;
    }

    .anchor-heading {
        scroll-margin-top: 56px;
    }

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

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

    .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: 14px;
        line-height: 1.6;
    }

    .text-content p {
        font-size: 14px;
    }

    .text-content h2:not(.anchor-heading),
    .text-content h3 {
        font-size: 18px;
        margin-top: 28px;
        margin-bottom: 10px;
    }

    .text-content h2.anchor-heading {
        font-size: 18px;
        font-weight: var(--font-weight-section);
        margin-top: calc(var(--section-gap) + 4px);
        padding: 14px 16px 10px;
    }

    .text-content h2.anchor-heading + :is(p, ul, ol, h3, .faq-list) {
        padding-left: 16px;
        padding-right: 16px;
    }

    .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-img {
        max-width: 100%;
        border-radius: 12px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-summary {
        font-size: 14px;
        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 var(--ember-primary);
        border-color: var(--border-divider);
    }

    .headline-2 {
        font-size: 20px;
        font-weight: 500;
        line-height: 20px;
    }

}

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

    .headline-1 {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
        padding: 0;
        background: none;
        clip-path: none;
        border-radius: 0;
    }

    .headline-2 {
        font-size: 20px;
        line-height: 20px;
    }
}

/* Footer — EmberBet teal surface, bold muted nav, orange hover */
.footer {
    flex-shrink: 0;
    position: relative;
    background-color: var(--ember-surface);
    background-image: none;
    padding: 24px var(--space-page-x-desktop);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(255, 255, 255, 0.1) 27.6%,
        rgba(255, 255, 255, 0.2) 52.62%,
        rgba(255, 255, 255, 0.1) 74.48%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

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

.footer-content {
    max-width: 1152px;
    margin: 0 auto;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px 40px;
    flex-wrap: wrap;
}

.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(--ember-muted);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.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(--ember-primary);
    text-decoration: none;
}

.footer-nav a:focus-visible {
    color: var(--ember-primary);
    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(--ember-surface);
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-card);
    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(--ember-muted);
    font-family: var(--font-sans);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.legal-link:focus-visible {
    color: var(--ember-primary);
    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-card);
    background: var(--ember-surface);
    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-card);
    border: 1px solid var(--border-divider);
    box-shadow: none;
    background: var(--bg-tertiary);
}

.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-card);
    border: 1px solid var(--border-divider);
    background: var(--bg-tertiary);
}

.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: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ember-body);
    border: 1px solid rgba(255, 255, 255, 0.3);
    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(--ember-muted);
    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(--ember-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.625;
    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;
        position: relative;
        padding-top: 20px;
        border-top: none;
    }

    .footer-nav::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(255, 255, 255, 0.1) 27.6%,
            rgba(255, 255, 255, 0.2) 52.62%,
            rgba(255, 255, 255, 0.1) 74.48%,
            rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
    }

    body.page-legal {
        padding-top: 56px;
    }

    .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: 96px;
        height: 40px;
        max-width: 96px;
        max-height: 40px;
        object-fit: contain;
        transform: none;
    }
}

/* Hero CTA — EmberBet: orange Register + outline 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(--ember-primary);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--content-on-accent);
    text-shadow: none;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    box-shadow: none;
    min-height: 48px;
    padding: 14px 24px;
    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: transparent;
    margin-bottom: 0;
    min-height: var(--btn-height);
    font-size: 14px;
    color: var(--content-primary);
    border: 1px solid var(--ember-primary);
    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(--ember-primary-hover);
    color: var(--content-on-accent);
    transform: none;
    box-shadow: none;
}

.form-container .hero-buttons .btn-register.btn-login:hover,
.form-container .hero-buttons a.btn-register.btn-login:hover {
    background: rgba(255, 99, 33, 0.12);
    color: var(--content-primary);
    border-color: var(--ember-primary-light);
    box-shadow: none;
}

body.page-legal {
    padding-top: 64px;
    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(--ember-muted);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-legal .legal-wrap a:hover {
    color: var(--ember-primary);
}

body.page-legal .legal-back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--ember-muted);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Mobile-only promo strip (≤1024 — Irwin breakpoint, keep) */
.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%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0 12px;
        margin-top: 0;
        position: relative;
        z-index: 50;
        overflow-x: clip;
    }

    .mobile-promo-banner__link {
        display: flex;
        align-items: stretch;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        color: inherit;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: var(--radius-hero);
        -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%;
        aspect-ratio: 4 / 1;
        min-height: 0;
        height: auto;
        max-height: none;
        border-radius: var(--radius-hero);
        background: var(--x1-tertiary);
        border: 1px solid var(--border-divider);
        box-shadow: none;
        isolation: isolate;
    }

    .mobile-promo-banner__banner.bonusBanner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            90deg,
            rgba(3, 23, 31, 0.95) 0%,
            rgba(24, 46, 55, 0.85) 28%,
            rgba(24, 46, 55, 0.45) 52%,
            rgba(24, 46, 55, 0.12) 72%,
            transparent 100%
        );
        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;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        aspect-ratio: 4 / 1;
        object-fit: cover;
        object-position: center right;
        z-index: 0;
        pointer-events: none;
        filter: none;
    }

    .mobile-promo-banner__inside {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 2;
        padding: 12px 14px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 8px;
        justify-content: center;
        min-height: 0;
        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;
        display: inline-block;
        padding: 2px 8px;
        font-family: var(--font-display);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.2;
        text-transform: none;
        color: var(--content-on-accent);
        background: var(--ember-primary);
        border-radius: 0 0 12px 0;
    }

    .mobile-promo-banner__lead {
        margin: 0;
        font-family: var(--font-offer);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.05;
        color: var(--content-primary);
        letter-spacing: 0;
        text-transform: none;
    }

    .mobile-promo-banner__lead .offer-accent-money {
        color: var(--ember-primary);
    }

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

    .mobile-promo-banner__cta {
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 40px;
        width: min(326px, 100%);
        min-width: 44px;
        padding: 10px 20px;
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        color: var(--content-primary);
        text-shadow: none;
        line-height: 1;
        background: transparent;
        border: 1px solid var(--ember-primary);
        border-radius: var(--radius-btn);
        box-shadow: none;
        box-sizing: border-box;
        transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-promo-banner__link:hover .mobile-promo-banner__cta,
    .mobile-promo-banner__link:focus-visible .mobile-promo-banner__cta {
        background: rgba(255, 99, 33, 0.12);
        color: var(--content-primary);
        border-color: var(--ember-primary-light);
        box-shadow: none;
    }
}

@media (max-width: 520px) {
    .mobile-promo-banner__inside {
        padding: 8px 12px;
        gap: 2px;
        justify-content: center;
    }

    .mobile-promo-banner__eyebrow {
        font-size: 10px;
        line-height: 1.1;
    }

    .mobile-promo-banner__lead {
        font-size: clamp(14px, 4.2vw, 18px);
        line-height: 1.05;
    }

    .mobile-promo-banner__cta {
        display: none;
    }
}

@media (max-width: 430px) {
    .header-logo-img--mobile {
        width: 40px;
        height: 40px;
        max-width: 40px;
    }

    .header-brand {
        gap: 4px;
    }

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

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

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

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

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

    .mobile-promo-banner__cta {
        width: 100%;
        max-width: 100%;
        padding: 8px 14px;
        min-height: 36px;
        font-size: 12px;
    }

    .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-logo-img--mobile {
        width: 40px;
        height: 40px;
        max-width: 40px;
    }

    .header-login,
    .header-register,
    .lang-dropdown-btn {
        padding: 0 6px;
        font-size: 12px;
        min-height: 38px;
    }

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

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


