/* ==========================================================================
   1. CSS Variables (:root) — Soft UI / Neumorphism
   ========================================================================== */
:root {
    /* Colors — Soft UI palette */
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --primary-light: #8b85ff;
    --secondary: #43b9a2;
    --accent: #ff6b8a;

    /* Backgrounds — Soft UI light base */
    --bg-dark: #e0e5ec;
    --bg-darker: #d1d9e6;
    --bg-card: #e0e5ec;
    --bg-card-inner: #edf1f7;

    /* Text */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #8395a7;
    --text-on-primary: #ffffff;

    /* Soft UI Shadows */
    --shadow-light: 6px 6px 12px #b8bec7, -6px -6px 12px #ffffff;
    --shadow-light-sm: 3px 3px 6px #b8bec7, -3px -3px 6px #ffffff;
    --shadow-inset: inset 3px 3px 6px #b8bec7, inset -3px -3px 6px #ffffff;
    --shadow-pressed: inset 2px 2px 5px #b8bec7, inset -2px -2px 5px #ffffff;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Header */
    --header-height: 70px;

    /* Fonts — Soft UI: Lexend + Red Hat Display */
    --font-body: 'Lexend', sans-serif;
    --font-heading: 'Red Hat Display', sans-serif;

    /* Transitions */
    --transition: 0.3s ease;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

/* ==========================================================================
   4. Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--primary-dark);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
    padding: var(--space-xs) 0;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition);
}

.header__link:hover,
.header__link.is-active {
    color: var(--primary);
}

.header__link:hover::after,
.header__link.is-active::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header__btn {
    font-size: 0.9rem;
    padding: 10px 22px;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    box-shadow: var(--shadow-light-sm);
    gap: 5px;
    padding: 8px;
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.header__burger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 992px) {
    .header__nav {
        display: none;
    }
    .header__btn {
        display: none;
    }
    .header__burger {
        display: flex;
    }
}

/* ==========================================================================
   6. Mobile Menu
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    overflow-y: auto;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__content {
    padding: var(--space-xl) var(--space-lg);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-menu__link {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-light-sm);
    transition: var(--transition);
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
    color: var(--primary);
    box-shadow: var(--shadow-inset);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.btn--primary {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 4px 4px 8px #b8bec7, -2px -2px 6px #ffffff, inset 0 0 0 transparent;
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--text-on-primary);
    box-shadow: 2px 2px 4px #b8bec7, -1px -1px 3px #ffffff;
    transform: translateY(1px);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-light-sm);
}

.btn--secondary:hover {
    color: var(--primary);
    box-shadow: var(--shadow-inset);
}

/* ==========================================================================
   8. Main Content
   ========================================================================== */
.m-main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ==========================================================================
   9. Hero Section
   ========================================================================== */
.m-hero {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.m-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.m-hero__content--row {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.m-hero__title--404 {
    font-size: 8rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-lg);
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.m-hero__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

.m-hero__cta {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.m-hero--small {
    padding: var(--space-2xl) 0 var(--space-lg);
}

.m-hero--404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.m-hero__container {
    text-align: center;
}

.m-hero__auth-buttons {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .m-hero {
        padding: var(--space-2xl) 0;
    }
    .m-hero__title {
        font-size: 2.2rem;
    }
    .m-hero__title--404 {
        font-size: 5rem;
    }
    .m-hero__content--row {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    .m-hero__text {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ==========================================================================
   10. Sections
   ========================================================================== */
.m-section {
    padding: var(--space-2xl) 0;
}

.m-section--page-top {
    padding-top: var(--space-2xl);
}

.m-section__title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.m-section__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.m-section__provider-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    text-align: center;
}

.m-section__cta-wrap {
    text-align: center;
    margin-top: var(--space-xl);
}

.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    text-align: center;
}

.m-page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   11. Benefits
   ========================================================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-light-sm);
    transform: translateY(2px);
}

.benefit-card__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-md);
}

.benefit-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.benefit-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   12. Featured Providers / Featured Games Grid
   ========================================================================== */
.games-grid--featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .games-grid--featured {
        max-width: 100%;
        gap: 12px;
    }
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    box-shadow: var(--shadow-light-sm);
    transform: translateY(2px);
}

.game-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-darker);
}

.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.game-card:hover .game-card__image img {
    transform: scale(1.05);
}

.game-card__title {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   13. Games Grid (games page)
   ========================================================================== */
.games-grid--full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .games-grid--full {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   14. Game Tile
   ========================================================================== */
.m-game-tile {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.m-game-tile:hover {
    box-shadow: var(--shadow-light-sm);
    transform: translateY(2px);
}

.m-game-tile__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-darker);
    position: relative;
}

.m-game-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.m-game-tile:hover .m-game-tile__image img {
    transform: scale(1.05);
}

.m-game-tile__info {
    padding: var(--space-sm) var(--space-md);
    text-align: center;
}

.m-game-tile__title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-game-tile__provider {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   15. Game Tile Locked
   ========================================================================== */
.m-game-tile--locked {
    cursor: default;
}

.m-game-tile--locked .m-game-tile__image img {
    filter: blur(4px) grayscale(50%);
    opacity: 0.6;
}

.m-game-tile--locked:hover .m-game-tile__image img {
    transform: none;
}

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 52, 54, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: var(--radius-md);
}

.m-game-tile__lock-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.m-game-tile__lock-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 0 var(--space-sm);
}

/* ==========================================================================
   16. Provider Section (games page)
   ========================================================================== */
.provider-section {
    margin-bottom: var(--space-2xl);
}

.provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--bg-darker);
}

/* ==========================================================================
   17. Filter
   ========================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    box-shadow: var(--shadow-light-sm);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--primary);
}

.filter-btn.is-active {
    box-shadow: var(--shadow-inset);
    color: var(--primary);
    background: var(--bg-card);
}

/* ==========================================================================
   18. Unlock Banner
   ========================================================================== */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-light);
}

.unlock-banner__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.unlock-banner__text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.unlock-banner__text strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .unlock-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   19. FAQ
   ========================================================================== */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: var(--primary);
}

.faq-item__icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 var(--space-lg);
}

.faq-item__answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.is-open {
    box-shadow: var(--shadow-inset);
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item.is-open .faq-item__answer {
    max-height: 300px;
    padding: 0 var(--space-lg) var(--space-lg);
}

/* ==========================================================================
   20. Disclaimer
   ========================================================================== */
.disclaimer {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-inset);
    border-left: 4px solid var(--accent);
}

.disclaimer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

.disclaimer strong {
    color: var(--accent);
}

/* ==========================================================================
   21. Footer
   ========================================================================== */
.footer {
    background: var(--bg-darker);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-2xl);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer__logo:hover {
    color: var(--primary-dark);
}

.footer__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--primary);
}

.footer__compliance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.footer__compliance-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer__compliance-logo:hover {
    opacity: 1;
}

.footer__compliance-logo--light-bg {
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer__age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
}

.footer__bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer__content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   22. Modals
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: opacity var(--transition), visibility var(--transition);
    padding: var(--space-lg);
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__body {
    padding: var(--space-2xl);
    text-align: center;
}

.modal__body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.modal__body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.modal__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Game Modal */
.game-modal__content {
    max-width: 960px;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.game-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--bg-darker);
}

.game-modal__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.game-modal__close {
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.game-modal__close:hover {
    color: var(--accent);
}

.game-modal__body {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.game-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Daily Bonus Modal */
.daily-bonus-modal__content {
    max-width: 400px;
}

.daily-bonus-modal__body {
    padding: var(--space-2xl);
    text-align: center;
}

.daily-bonus-modal__icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: var(--space-md);
}

.daily-bonus-modal__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.daily-bonus-modal__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.daily-bonus-modal__xp {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   23. Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    padding: var(--space-lg);
    display: none;
}

.cookie-consent.is-visible {
    display: block;
}

.cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-consent__content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    flex: 1;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.cookie-consent__link {
    font-size: 0.85rem;
    color: var(--primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   24. Auth Forms
   ========================================================================== */
.auth-modal__content {
    max-width: 420px;
    padding: var(--space-xl);
    position: relative;
}

.auth-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

.auth-modal__close:hover {
    color: var(--accent);
}

.auth-modal__tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.auth-modal__tab {
    flex: 1;
    padding: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-light-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.auth-modal__tab.is-active {
    box-shadow: var(--shadow-inset);
    color: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.auth-form__label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-form__input {
    padding: 12px var(--space-md);
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-card);
    box-shadow: var(--shadow-inset);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.auth-form__input:focus {
    box-shadow: var(--shadow-pressed), 0 0 0 2px var(--primary);
}

.auth-form__input::placeholder {
    color: var(--text-muted);
}

.auth-form__error {
    font-size: 0.85rem;
    color: var(--accent);
    min-height: 1.2em;
}

.auth-form__submit {
    margin-top: var(--space-sm);
    width: 100%;
}

/* ==========================================================================
   25. Account Page
   ========================================================================== */
.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.account-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-light);
}

.account-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.account-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* Why Register */
.why-register {
    margin-top: var(--space-xl);
}

.why-register__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.why-register__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.why-register__item {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-xl) var(--space-md);
    box-shadow: var(--shadow-light);
}

.why-register__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.why-register__item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.why-register__item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .why-register__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .why-register__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   26. Profile
   ========================================================================== */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
}

.profile-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.profile-card__badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 3px 3px 6px #b8bec7, -3px -3px 6px #ffffff;
    flex-shrink: 0;
}

.profile-card__name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-card__email {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   27. XP Progress
   ========================================================================== */
.profile-card__xp {
    margin-bottom: var(--space-xl);
}

.xp-bar__label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.xp-bar__track {
    height: 14px;
    border-radius: 7px;
    background: var(--bg-card);
    box-shadow: var(--shadow-inset);
    overflow: hidden;
}

.xp-bar__fill {
    height: 100%;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.6s ease;
    min-width: 0;
}

/* ==========================================================================
   28. Stats
   ========================================================================== */
.profile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-item {
    text-align: center;
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset);
}

.stat-item__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-item__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.profile-card__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ==========================================================================
   29. Content Pages
   ========================================================================== */
.m-container--narrow {
    max-width: 800px;
    margin: 0 auto;
}

.m-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--space-xl);
}

.m-content-card h2 {
    font-size: 1.45rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.m-content-card h2:first-child {
    margin-top: 0;
}

.m-content-card h3 {
    font-size: 1.15rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.m-content-card p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.m-content-card ul,
.m-content-card ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.m-content-card ul {
    list-style: disc;
}

.m-content-card ol {
    list-style: decimal;
}

.m-content-card li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.m-content-card a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.m-content-card a:hover {
    color: var(--primary-dark);
}

.contact-info {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset);
    margin-top: var(--space-md);
}

.contact-info p {
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Breadcrumb */
.m-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: var(--space-xl);
    color: var(--text-muted);
}

.m-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.m-breadcrumb a:hover {
    color: var(--primary);
}

.m-breadcrumb__sep {
    margin: 0 var(--space-sm);
    color: var(--text-muted);
}

/* CTA Box */
.m-cta-box {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-light);
}

.m-cta-box p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* Responsible Gaming Page */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.fact-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-light-sm);
    text-align: center;
}

.fact-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.fact-card h3 {
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.fact-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

.help-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.help-resource {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-light-sm);
    text-align: center;
}

.help-resource h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.help-resource p {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .help-resources {
        grid-template-columns: 1fr;
    }
}

/* Review pages */
.review-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.review-hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-hero__score {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.review-hero__meta {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.review-game-tile {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-light-sm);
    text-align: center;
}

.review-game-tile img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.review-game-tile span {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .review-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .review-hero__meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Comparison table */
.comparison-table-wrap {
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light-sm);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
    font-size: 0.9rem;
}

.comparison-table th {
    background: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
    border-top: 1px solid var(--bg-darker);
}

/* ==========================================================================
   30. Blog Grid
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.article-card:hover {
    box-shadow: var(--shadow-light-sm);
    transform: translateY(2px);
}

.article-card__content {
    padding: var(--space-xl);
}

.article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-card);
    box-shadow: var(--shadow-inset);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: 1.35;
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   31. Reviews Grid
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-light);
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-light-sm);
    transform: translateY(2px);
}

.review-card__header {
    margin-bottom: var(--space-md);
}

.review-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.review-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.review-card__score {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.review-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.review-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.review-card__stat {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-sm);
    box-shadow: var(--shadow-inset);
}

.review-card__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.review-card__stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-card__btn {
    width: 100%;
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   32. Utility Classes
   ========================================================================== */
.stars {
    color: #ffc107;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Age Modal */
.age-modal .modal__content {
    max-width: 440px;
}

/* ==========================================================================
   33. Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    .m-page-title {
        font-size: 1.7rem;
    }

    .m-content-card {
        padding: var(--space-lg);
    }

    .profile-card__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-card__actions {
        flex-direction: column;
    }

    .profile-card__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .m-hero__title {
        font-size: 1.8rem;
    }

    .modal__actions {
        flex-direction: column;
    }

    .modal__actions .btn {
        width: 100%;
    }
}