/* ============================================
   exploring-life.ca — Social Casino
   Nature / exploration theme, animated hero, burger ≤991px
   ============================================ */

:root {
    --elf-emerald: #059669;
    --elf-emerald-dark: #047857;
    --elf-teal: #0d9488;
    --elf-teal-light: #2dd4bf;
    --elf-forest: #064e3b;
    --elf-gold: #d97706;
    --elf-gold-light: #fbbf24;
    --elf-cream: #f0fdf4;
    --elf-cream-dark: #dcfce7;
    --elf-ink: #14532d;
    --elf-border: rgba(4, 120, 87, 0.15);
    --elf-font-head: 'Playfair Display', Georgia, serif;
    --elf-font-body: 'Outfit', system-ui, sans-serif;
    --elf-radius: 12px;
    --elf-radius-lg: 16px;
    --elf-shadow: 0 4px 24px rgba(5, 150, 105, 0.12);
    --elf-shadow-hover: 0 12px 40px rgba(5, 150, 105, 0.2);
    --elf-header-height: 4.5rem;
    --elf-space-xs: 0.5rem;
    --elf-space-sm: 1rem;
    --elf-space-md: 1.5rem;
    --elf-space-lg: 2rem;
    --elf-space-xl: 2.5rem;
    --elf-space-2xl: 3.5rem;
    --elf-content-full: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--elf-font-body);
    background: var(--elf-cream);
    color: var(--elf-ink);
    overflow-x: hidden;
    min-height: 100vh;
}

.elf-skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--elf-emerald);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--elf-radius);
}
.elf-skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Animated canvas background */
.elf-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(145deg, var(--elf-cream) 0%, var(--elf-cream-dark) 50%, rgba(240, 253, 244, 0.98) 100%);
    overflow: hidden;
}
.elf-canvas__gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: elf-float 20s ease-in-out infinite;
}
.elf-canvas__gradient--1 {
    width: 55vmin;
    height: 55vmin;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
    top: -15%;
    left: -5%;
    animation-delay: 0s;
}
.elf-canvas__gradient--2 {
    width: 45vmin;
    height: 45vmin;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.18) 0%, transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -7s;
}
.elf-canvas__gradient--3 {
    width: 40vmin;
    height: 40vmin;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}
@keyframes elf-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(4%, 3%) scale(1.06); }
    66% { transform: translate(-3%, -2%) scale(0.97); }
}

/* Hero morph blob animation */
.elf-hero-morph {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(5, 150, 105, 0.08) 0%, transparent 50%);
    animation: elf-morph-pulse 8s ease-in-out infinite;
}
@keyframes elf-morph-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.elf-wrap {
    max-width: var(--elf-content-full);
    margin: 0 auto;
    padding: 0 clamp(var(--elf-space-md), 5vw, var(--elf-space-xl));
}

/* Header */
.elf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--elf-forest) 0%, var(--elf-emerald-dark) 100%);
    border-bottom: 2px solid var(--elf-gold);
    box-shadow: 0 4px 20px rgba(4, 78, 59, 0.25);
}
.elf-header__inner {
    max-width: var(--elf-content-full);
    margin: 0 auto;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.elf-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--elf-font-head);
    font-weight: 700;
    transition: color 0.2s;
}
.elf-logo:hover {
    color: var(--elf-gold-light);
}
.elf-logo__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.elf-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.elf-logo__line1 {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.elf-logo__line2 {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.elf-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem 0.5rem;
}
.elf-nav__link {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.elf-nav__link:hover {
    color: var(--elf-gold-light);
    background: rgba(255,255,255,0.1);
}

.elf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-family: var(--elf-font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.elf-btn--primary {
    background: linear-gradient(135deg, var(--elf-emerald) 0%, var(--elf-emerald-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}
.elf-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}
.elf-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.elf-btn--outline:hover {
    border-color: var(--elf-gold-light);
    color: var(--elf-gold-light);
}
.elf-btn--full { width: 100%; }

/* Burger */
.elf-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    color: #fff;
    transition: background 0.2s;
}
.elf-burger:hover { background: rgba(255,255,255,0.1); }
.elf-burger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
.elf-burger.is-open .elf-burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.elf-burger.is-open .elf-burger__line:nth-child(2) {
    opacity: 0;
}
.elf-burger.is-open .elf-burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.elf-nav__close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.elf-nav__close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--elf-gold-light);
}
@media (max-width: 991px) {
    .elf-burger { display: flex; }
    .elf-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 100vw);
        height: 100vh;
        background: linear-gradient(180deg, var(--elf-forest) 0%, var(--elf-emerald-dark) 100%);
        border-left: 2px solid var(--elf-gold);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    }
    .elf-nav__close {
        display: flex;
    }
    .elf-nav.is-open { transform: translateX(0); }
    .elf-nav__link {
        width: 100%;
        padding: 0.7rem 1rem;
        text-align: left;
    }
}
@media (min-width: 992px) {
    .elf-nav { display: flex; }
    .elf-nav__close { display: none; }
}

main {
    padding-top: var(--elf-header-height);
}

/* Hero — animated first section */
.elf-hero {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(160deg, var(--elf-forest) 0%, var(--elf-emerald-dark) 40%, var(--elf-teal) 100%);
    border-bottom: 3px solid var(--elf-gold);
    overflow: hidden;
}
main > .elf-hero:first-child {
    padding-top: calc(8rem - var(--elf-header-height));
}
.elf-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.elf-hero__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: elf-hero-float 18s ease-in-out infinite;
}
.elf-hero__shape::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.elf-hero__shape--1 { width: 80px; height: 80px; left: 8%; top: 15%; animation-duration: 14s; animation-delay: 0s; }
.elf-hero__shape--2 { width: 120px; height: 120px; left: 75%; top: 25%; animation-duration: 22s; animation-delay: -3s; background: rgba(251, 191, 36, 0.05); }
.elf-hero__shape--3 { width: 50px; height: 50px; left: 25%; top: 70%; animation-duration: 16s; animation-delay: -5s; }
.elf-hero__shape--4 { width: 90px; height: 90px; left: 60%; top: 60%; animation-duration: 20s; animation-delay: -2s; background: rgba(45, 212, 191, 0.06); }
.elf-hero__shape--5 { width: 40px; height: 40px; left: 85%; top: 75%; animation-duration: 12s; animation-delay: -7s; }
.elf-hero__shape--6 { width: 70px; height: 70px; left: 15%; top: 45%; animation-duration: 18s; animation-delay: -4s; }
.elf-hero__shape--7 { width: 55px; height: 55px; left: 45%; top: 12%; animation-duration: 15s; animation-delay: -1s; }
.elf-hero__shape--8 { width: 100px; height: 100px; left: 5%; top: 80%; animation-duration: 24s; animation-delay: -6s; background: rgba(13, 148, 136, 0.05); }
.elf-hero__shape--2, .elf-hero__shape--4, .elf-hero__shape--8 {
    border-radius: 8px;
    transform: rotate(45deg);
}
@keyframes elf-hero-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, -8px) rotate(5deg); }
    50% { transform: translate(-6px, 4px) rotate(-3deg); }
    75% { transform: translate(3px, 6px) rotate(2deg); }
}
.elf-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.elf-hero__title {
    font-family: var(--elf-font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--elf-space-sm);
    line-height: 1.2;
}
.elf-hero__title span {
    color: var(--elf-gold-light);
    display: block;
    font-size: 0.95em;
}
.elf-hero__sub {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto var(--elf-space-lg);
    line-height: 1.5;
}
.elf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Section */
.elf-section {
    padding: var(--elf-space-2xl) 0;
}
.elf-section__title {
    font-family: var(--elf-font-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--elf-forest);
    text-align: center;
    margin: 0 0 var(--elf-space-lg);
}
.elf-section__sub {
    font-size: 1rem;
    color: var(--elf-ink);
    margin: 0 0 var(--elf-space-sm);
    line-height: 1.5;
}
.elf-account-layout {
    display: grid;
    /* grid-template-columns: 280px 1fr; */
    gap: var(--elf-space-xl);
    align-items: start;
}
@media (max-width: 767px) {
    .elf-account-layout { grid-template-columns: 1fr; }
}
.elf-account-side {
    background: #fff;
    border: 2px solid var(--elf-border);
    border-radius: var(--elf-radius-lg);
    padding: var(--elf-space-lg);
}
.elf-account-welcome {
    font-family: var(--elf-font-head);
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: var(--elf-forest);
}
.elf-account-main .elf-tabs { display: flex; gap: 0.25rem; }
.elf-account-main .elf-tabs__btn { flex: none; }
.elf-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--elf-space-lg);
}
.elf-feature {
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--elf-border);
    border-radius: var(--elf-radius-lg);
    padding: var(--elf-space-lg);
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.elf-feature:hover {
    border-color: var(--elf-teal);
    box-shadow: var(--elf-shadow);
}
.elf-feature__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.elf-feature__title {
    font-family: var(--elf-font-head);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--elf-forest);
    margin: 0 0 0.5rem;
}
.elf-feature__text {
    margin: 0;
    color: var(--elf-ink);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA */
.elf-section--cta { padding: var(--elf-space-xl) 0; }
.elf-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--elf-emerald) 0%, var(--elf-emerald-dark) 100%);
    border-radius: var(--elf-radius-lg);
    padding: var(--elf-space-2xl);
    color: #fff;
}
.elf-cta__title {
    font-family: var(--elf-font-head);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}
.elf-cta__text {
    margin: 0 0 1.5rem;
    opacity: 0.95;
}
.elf-cta .elf-btn--primary {
    background: #fff;
    color: var(--elf-emerald-dark);
}
.elf-cta .elf-btn--primary:hover {
    background: var(--elf-cream);
}

/* Disclaimer */
.elf-section--disclaimer { padding: var(--elf-space-lg) 0; }
.elf-disclaimer {
    text-align: center;
    padding: var(--elf-space-md);
    background: rgba(4, 78, 59, 0.08);
    border-radius: var(--elf-radius);
    border: 1px solid var(--elf-border);
}
.elf-disclaimer__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--elf-forest);
    margin: 0 0 0.5rem;
    letter-spacing: 0.05em;
}
.elf-disclaimer__text {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--elf-ink);
}
.elf-disclaimer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.elf-disclaimer__badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    background: var(--elf-emerald);
    color: #fff;
    border-radius: 20px;
}

/* Footer */
.elf-footer {
    background: linear-gradient(180deg, var(--elf-forest) 0%, #052e16 50%, #031a0d 100%);
    color: rgba(255,255,255,0.92);
}
.elf-footer__main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--elf-space-2xl);
    align-items: start;
    padding: var(--elf-space-2xl) 0 var(--elf-space-xl);
}
.elf-footer__brand-block {
    max-width: 280px;
}
.elf-footer__brand {
    font-family: var(--elf-font-head);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
    color: #fff;
    letter-spacing: 0.02em;
}
.elf-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.85;
}
.elf-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.35rem 2rem;
    align-content: start;
}
.elf-footer__nav a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.elf-footer__nav a:hover { color: var(--elf-gold-light); }
.elf-footer__compliance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.elf-footer__compliance-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    background: #fff;
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.elf-footer__compliance-link:hover {
    border-color: var(--elf-gold-light);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.elf-footer__compliance-link img {
    display: block;
    width: auto;
    height: 36px;
    max-width: 120px;
    object-fit: contain;
}
.elf-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}
.elf-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
}
.elf-footer__copy,
.elf-footer__address {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.85;
}
.elf-footer__address {
    text-align: right;
}
@media (max-width: 767px) {
    .elf-footer__main {
        grid-template-columns: 1fr;
        gap: var(--elf-space-xl);
        padding: var(--elf-space-xl) clamp(var(--elf-space-sm), 4vw, var(--elf-space-lg)) var(--elf-space-lg);
    }
    .elf-footer__brand-block {
        max-width: none;
    }
    .elf-footer__nav {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .elf-footer__compliance {
        justify-content: flex-start;
    }
    .elf-footer__compliance-link {
        padding: 0.5rem 0.75rem;
    }
    .elf-footer__compliance-link img {
        height: 32px;
        max-width: 100px;
    }
}
@media (max-width: 599px) {
    .elf-footer__main {
        padding-left: var(--elf-space-md);
        padding-right: var(--elf-space-md);
    }
    .elf-footer__bottom {
        padding: 0.875rem 0;
    }
    .elf-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding-left: var(--elf-space-md);
        padding-right: var(--elf-space-md);
    }
    .elf-footer__copy,
    .elf-footer__address {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    .elf-footer__address {
        text-align: center;
    }
}
@media (max-width: 380px) {
    .elf-footer__compliance {
        flex-direction: column;
        align-items: stretch;
    }
    .elf-footer__compliance-link {
        justify-content: center;
    }
}

/* Modals — base */
.elf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.elf-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.elf-modal {
    background: #fff;
    border-radius: var(--elf-radius-lg);
    padding: var(--elf-space-xl);
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 2px solid var(--elf-emerald);
}
.elf-modal__title {
    font-family: var(--elf-font-head);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    color: var(--elf-forest);
}
.elf-modal__text {
    margin: 0 0 1.5rem;
    color: var(--elf-ink);
    font-size: 0.95rem;
}
.elf-modal__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.elf-modal__actions .elf-btn--outline {
    color: var(--elf-forest);
    border-color: var(--elf-emerald);
}
.elf-modal__actions .elf-btn--outline:hover {
    background: rgba(5, 150, 105, 0.1);
}

/* Age gate modal — glassmorphism + accent strip */
.elf-modal-overlay.elf-age-gate {
    background: rgba(6, 78, 59, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.elf-age-gate__box {
    position: relative;
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.15);
    overflow: hidden;
    padding-left: 1.5rem;
}
.elf-age-gate__box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--elf-gold-light) 0%, var(--elf-gold) 100%);
    border-radius: 20px 0 0 20px;
}
.elf-age-gate__box .elf-modal__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.elf-age-gate__box .elf-modal__title::before {
    content: '18+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 8px;
    background: linear-gradient(135deg, var(--elf-emerald) 0%, var(--elf-emerald-dark) 100%);
    color: #fff;
    font-family: var(--elf-font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px;
}
.elf-age-gate__box .elf-modal__actions {
    margin-top: 0.25rem;
}

/* Age blocked modal — warning style */
.elf-modal-overlay.elf-age-blocked {
    background: rgba(30, 30, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.elf-age-blocked__box {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    padding-left: 1.5rem;
}
.elf-age-blocked__box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    border-radius: 20px 0 0 20px;
}
.elf-age-blocked__box .elf-modal__title {
    color: #1f2937;
}
.elf-age-blocked__box .elf-modal__text {
    color: #4b5563;
}

/* Auth popup */
.elf-modal--auth { position: relative; }
.elf-modal__close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--elf-ink);
    border-radius: 8px;
    transition: background 0.2s;
}
.elf-modal__close-btn:hover { background: rgba(0,0,0,0.06); }
.elf-tabs--modal {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}
.elf-tabs__btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--elf-border);
    background: #f8faf8;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.elf-tabs__btn.is-active {
    border-color: var(--elf-emerald);
    background: rgba(5, 150, 105, 0.08);
    color: var(--elf-emerald-dark);
}
.elf-tab-panel {
    display: none;
}
.elf-tab-panel.is-active { display: block; }
.elf-auth-form .elf-form-group {
    margin-bottom: 1rem;
}
.elf-auth-form label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--elf-ink);
}
.elf-auth-form input[type="email"],
.elf-auth-form input[type="password"],
.elf-auth-form input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--elf-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.elf-auth-form input:focus {
    outline: none;
    border-color: var(--elf-emerald);
}
.elf-form-error, .elf-form-success {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    display: none;
}
.elf-form-success { color: var(--elf-emerald); }
.elf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.elf-checkbox-label input { margin-top: 0.2rem; }
.elf-checkbox-label a { color: var(--elf-emerald); }

/* Cookie bar — floating card style */
.elf-cookie {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 1500;
    width: calc(100% - 2rem);
    max-width: 520px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.elf-cookie.is-visible {
    transform: translateX(-50%) translateY(0);
}
.elf-cookie__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    color: var(--elf-ink);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(4, 78, 59, 0.15), 0 0 0 1px rgba(4, 120, 87, 0.12);
    border: 1px solid var(--elf-border);
}
.elf-cookie__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.elf-cookie__text a {
    color: var(--elf-emerald);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.elf-cookie__text a:hover {
    color: var(--elf-emerald-dark);
}
.elf-cookie__btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--elf-emerald) 0%, var(--elf-emerald-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.elf-cookie__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

/* Games page — layout & blocks (game cards unchanged) */
.elf-page-games.elf-section {
    padding-top: 0;
}
.elf-games-hero {
    background: linear-gradient(135deg, var(--elf-forest) 0%, var(--elf-emerald-dark) 100%);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    text-align: center;
}
.elf-games-hero__title {
    font-family: var(--elf-font-head);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
}
.elf-games-hero__sub {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
}
.elf-games-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 767px) {
    .elf-games-body {
        grid-template-columns: 1fr;
    }
    .elf-games-controls {
        position: static;
    }
}
.elf-games-controls {
    position: sticky;
    top: calc(var(--elf-header-height) + 1rem);
    background: #fff;
    border: 1px solid var(--elf-border);
    border-radius: var(--elf-radius-lg);
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(4, 78, 59, 0.06);
}
.elf-games-controls__group {
    margin-bottom: 1.25rem;
}
.elf-games-controls__group:last-child {
    margin-bottom: 0;
}
.elf-games-controls__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--elf-teal);
    margin-bottom: 0.5rem;
}
.elf-games-categories {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.elf-games-controls .elf-category-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--elf-border);
    background: #fafafa;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.elf-games-controls .elf-category-btn:hover,
.elf-games-controls .elf-category-btn.is-active {
    border-color: var(--elf-emerald);
    background: rgba(5, 150, 105, 0.08);
    color: var(--elf-emerald-dark);
}
.elf-games-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.elf-games-tabs .elf-tabs__btn {
    flex: none;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}
.elf-games-content {
    min-width: 0;
}
.elf-lock-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(145deg, rgba(5, 150, 105, 0.06) 0%, rgba(13, 148, 136, 0.04) 100%);
    border: 2px solid var(--elf-teal);
    border-radius: var(--elf-radius-lg);
}
.elf-lock-msg__icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.elf-lock-msg__title {
    margin: 0 0 0.25rem;
    font-family: var(--elf-font-head);
    font-size: 1.2rem;
    color: var(--elf-forest);
}
.elf-lock-msg__text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--elf-ink);
}
.elf-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--elf-space-lg);
}
.elf-game-card {
    background: #fff;
    border: 2px solid var(--elf-border);
    border-radius: var(--elf-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.elf-game-card:hover {
    border-color: var(--elf-teal);
    box-shadow: var(--elf-shadow-hover);
    transform: translateY(-2px);
}
.elf-game-card__thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.elf-game-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.elf-game-card__category {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: var(--elf-forest);
    color: #fff;
}
.elf-game-card__body {
    padding: 1rem;
}
.elf-game-card__title {
    font-family: var(--elf-font-head);
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    color: var(--elf-forest);
}
.elf-game-card__meta {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--elf-ink);
    opacity: 0.9;
}
.elf-game-card .elf-btn { margin-top: 0; }
.elf-game-card .elf-btn--outline {
    border-color: var(--elf-emerald);
    color: var(--elf-emerald-dark);
}
.elf-game-card .elf-btn--outline:hover {
    background: rgba(5, 150, 105, 0.08);
    color: var(--elf-emerald-dark);
}

/* Account page */
.elf-account-hero {
    padding: 2rem 0;
    text-align: center;
}

/* Account forms block — styled container */
.elf-account-forms {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(4, 78, 59, 0.12), 0 0 0 1px rgba(5, 150, 105, 0.08);
    overflow: hidden;
    border: 1px solid var(--elf-border);
}
.elf-account-forms__header {
    text-align: center;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid var(--elf-border);
}
.elf-account-forms__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--elf-emerald) 0%, var(--elf-emerald-dark) 100%);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}
.elf-account-forms__title {
    font-family: var(--elf-font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--elf-forest);
    margin: 0 0 0.35rem;
}
.elf-account-forms__sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--elf-ink);
    opacity: 0.9;
    line-height: 1.45;
}
.elf-account-forms__tabs {
    display: flex;
    padding: 0 1.5rem;
    gap: 0;
    background: #f8faf8;
    border-bottom: 1px solid var(--elf-border);
}
.elf-account-forms__tab {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: none;
    background: transparent;
    font-family: var(--elf-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--elf-ink);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    opacity: 0.7;
}
.elf-account-forms__tab:hover {
    opacity: 1;
    color: var(--elf-forest);
}
.elf-account-forms__tab.is-active {
    opacity: 1;
    color: var(--elf-emerald-dark);
}
.elf-account-forms__tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--elf-emerald) 0%, var(--elf-teal) 100%);
    border-radius: 3px 3px 0 0;
}
.elf-account-forms .elf-tab-panel {
    padding: 1.5rem 1.5rem 2rem;
}
.elf-account-forms .elf-account-card {
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.elf-account-forms .elf-account-form .elf-form-group {
    margin-bottom: 1.15rem;
}
.elf-account-forms .elf-account-form label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--elf-forest);
}
.elf-account-forms .elf-account-form input[type="email"],
.elf-account-forms .elf-account-form input[type="password"],
.elf-account-forms .elf-account-form input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--elf-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.elf-account-forms .elf-account-form input:focus {
    outline: none;
    border-color: var(--elf-emerald);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}
.elf-account-forms .elf-account-form .elf-btn--full {
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
}
.elf-account-forms .elf-form-error,
.elf-account-forms .elf-form-success {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.elf-account-card {
    max-width: 480px;
    margin: 0 auto 2rem;
    background: #fff;
    border: 2px solid var(--elf-border);
    border-radius: var(--elf-radius-lg);
    padding: var(--elf-space-xl);
}
.elf-account-card h2 { margin-top: 0; color: var(--elf-forest); }

/* Logged-in dashboard message (main area) */
.elf-account-dashboard-msg {
    max-width: 420px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(5, 150, 105, 0.08) 0%, rgba(13, 148, 136, 0.05) 100%);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(4, 78, 59, 0.06);
}
.elf-account-dashboard-msg__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--elf-emerald) 0%, var(--elf-emerald-dark) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}
.elf-account-dashboard-msg__text {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: var(--elf-ink);
    line-height: 1.5;
}
.elf-account-dashboard-msg__btn {
    display: inline-block;
}

.elf-dashboard {
    padding: 1rem 0;
}
.elf-dashboard__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--elf-border);
}
.elf-dashboard__row:last-child { border-bottom: none; }

/* Policy pages */
.elf-page {
    padding: 0 0 var(--elf-space-2xl);
    max-width: 720px;
    margin: 0 auto;
}
.elf-page h1 {
    font-family: var(--elf-font-head);
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 700;
    color: #fff;
    margin: 0 calc(-1 * clamp(var(--elf-space-md), 5vw, var(--elf-space-xl)));
    padding: 1.75rem clamp(var(--elf-space-md), 5vw, var(--elf-space-xl));
    background: linear-gradient(135deg, var(--elf-forest) 0%, var(--elf-emerald-dark) 100%);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(4, 78, 59, 0.2);
    letter-spacing: 0.01em;
}
.elf-page h1 + p {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--elf-ink);
    opacity: 0.9;
}
.elf-page h2 {
    font-family: var(--elf-font-head);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.6rem;
    padding-bottom: 0.35rem;
    color: var(--elf-forest);
    border-bottom: 2px solid rgba(5, 150, 105, 0.25);
}
.elf-page p,
.elf-page li {
    margin: 0 0 0.75rem;
    line-height: 1.65;
    color: var(--elf-ink);
    font-size: 0.98rem;
}
.elf-page ul {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}
.elf-page ul li {
    margin-bottom: 0.4rem;
}
.elf-page a {
    color: var(--elf-emerald);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.elf-page a:hover {
    color: var(--elf-emerald-dark);
}
@media (max-width: 599px) {
    .elf-page {
        padding-left: var(--elf-space-md);
        padding-right: var(--elf-space-md);
    }
    .elf-page h1 {
        margin-left: calc(-1 * var(--elf-space-md));
        margin-right: calc(-1 * var(--elf-space-md));
        padding: 1.35rem var(--elf-space-md);
        border-radius: 0 0 12px 12px;
        font-size: 1.35rem;
    }
    .elf-page h2 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
}
