/* ==========================================================================
   1. CSS Variables (:root) — Bauhaus Style
   ========================================================================== */
:root {
    /* Colors — Bauhaus palette */
    --primary: #e53935;
    --primary-dark: #b71c1c;
    --secondary: #1565c0;
    --secondary-dark: #0d47a1;
    --accent: #fdd835;
    --accent-dark: #f9a825;

    /* Backgrounds — Bauhaus: clean whites with geometric structure */
    --bg-dark: #f5f0eb;
    --bg-darker: #eae3db;
    --bg-card: #ffffff;
    --bg-hero: #1a1a2e;
    --bg-overlay: rgba(26, 26, 46, 0.85);

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #7a7a8a;
    --text-light: #ffffff;
    --text-on-dark: #f5f0eb;

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

    /* Border Radius — Bauhaus: minimal or none */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;

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

    /* Fonts — DM Serif Display + Archivo */
    --font-body: 'Archivo', sans-serif;
    --font-heading: 'DM Serif Display', serif;

    /* Borders — Bauhaus: strong, geometric */
    --border-strong: 3px solid #1a1a2e;
    --border-medium: 2px solid #1a1a2e;
    --border-light: 1px solid #ddd5cb;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

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

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul, ol {
    padding-left: var(--space-lg);
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

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

.m-container--narrow {
    max-width: 800px;
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: var(--border-strong);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.m-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

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

.logo--footer {
    font-size: 1.5rem;
    color: var(--text-light);
}

.logo--footer::after {
    background: var(--accent);
}

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

.m-header__link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.2s ease;
}

.m-header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

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

.m-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.m-header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

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

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

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

/* ==========================================================================
   6. Mobile Menu
   ========================================================================== */
.m-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top: var(--border-strong);
}

.m-mobile-menu.is-open {
    transform: translateX(0);
}

.m-mobile-menu__content {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
}

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: var(--border-light);
    transition: color 0.2s ease;
}

.m-mobile-menu__link:hover {
    color: var(--primary);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 28px;
    border: var(--border-strong);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.btn--primary {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--text-primary);
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: var(--text-light);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--text-primary);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn--secondary:hover {
    background: var(--text-primary);
    color: var(--text-light);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--secondary);
}

.btn--large {
    font-size: 1rem;
    padding: 16px 40px;
}

.btn--small {
    font-size: 0.75rem;
    padding: 8px 16px;
}

.btn--full {
    width: 100%;
}

@media (max-width: 768px) {
    .btn--large {
        font-size: 0.875rem;
        padding: 14px 28px;
    }
}

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

/* ==========================================================================
   9. Hero Section
   ========================================================================== */
.m-hero {
    background: var(--bg-hero);
    color: var(--text-light);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.m-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border: 8px solid var(--primary);
    border-radius: 50%;
    opacity: 0.15;
}

.m-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.08;
    transform: rotate(45deg);
}

.m-hero__content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.m-hero__subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-lg);
}

.m-hero__text {
    font-size: 1.1rem;
    color: var(--text-on-dark);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    max-width: 600px;
}

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

.m-hero--small .m-hero__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.m-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

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

.m-hero--404 {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.m-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

@media (max-width: 768px) {
    .m-hero {
        padding: var(--space-2xl) 0;
    }
    .m-hero__title {
        font-size: 2.5rem;
    }
    .m-hero--small .m-hero__title {
        font-size: 2rem;
    }
    .m-hero__title--404 {
        font-size: 5rem;
    }
    .m-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.m-section--benefits {
    background: var(--bg-card);
    border-top: var(--border-strong);
    border-bottom: var(--border-strong);
}

.m-section--featured {
    background: var(--bg-dark);
}

.m-section--faq {
    background: var(--bg-card);
    border-top: var(--border-strong);
}

.m-section--disclaimer {
    background: var(--bg-darker);
    padding: var(--space-xl) 0;
}

.m-section--unlock {
    background: var(--bg-hero);
    padding: var(--space-lg) 0;
}

.m-section--filter {
    padding: var(--space-lg) 0;
    background: var(--bg-dark);
}

.m-section--games {
    background: var(--bg-dark);
    padding-top: 0;
    padding-bottom: var(--space-3xl);
}

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

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

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

.m-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: var(--space-sm) auto 0;
}

.m-section__title--mt {
    margin-top: var(--space-3xl);
}

.m-section__subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-size: 1.05rem;
}

.m-section__provider-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-left: var(--space-sm);
    border-left: 4px solid var(--primary);
}

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

.m-page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .m-section {
        padding: var(--space-2xl) 0;
    }
    .m-page-title {
        font-size: 1.8rem;
    }
}

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

.benefit-card {
    background: var(--bg-card);
    border: var(--border-strong);
    padding: var(--space-xl);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.benefit-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--text-primary);
}

.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.15rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

@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
   ========================================================================== */
/* Handled via .m-section__provider-title and games-grid--featured */

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

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

/* ==========================================================================
   14. Game Tile (used by games.js renderer)
   ========================================================================== */
.m-game-tile {
    background: var(--bg-card);
    border: var(--border-medium);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.m-game-tile:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--text-primary);
}

.m-game-tile__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.m-game-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.m-game-tile__info {
    padding: var(--space-sm) var(--space-md);
    border-top: var(--border-medium);
}

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

.m-game-tile__provider {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.m-game-tile--locked:hover {
    transform: none;
    box-shadow: none;
}

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

.m-game-tile__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

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

.m-game-tile__lock-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0 var(--space-sm);
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.m-provider-section__count {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--secondary);
    color: var(--text-light);
    padding: 2px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.provider-filter__btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border: var(--border-medium);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-filter__btn:hover {
    background: var(--text-primary);
    color: var(--text-light);
}

.provider-filter__btn.is-active {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .provider-filter__btn {
        font-size: 0.7rem;
        padding: 8px 14px;
    }
}

/* ==========================================================================
   18. Unlock Banner
   ========================================================================== */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-hero);
    border: 3px solid var(--accent);
    padding: var(--space-lg) var(--space-xl);
}

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

.unlock-banner__text {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    flex: 1;
}

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

/* ==========================================================================
   19. FAQ
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: var(--border-medium);
    margin-bottom: -2px;
    background: var(--bg-card);
}

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

.faq-item__question:hover {
    background: var(--bg-dark);
}

.faq-item__icon {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   20. Disclaimer
   ========================================================================== */
.disclaimer-box {
    background: var(--bg-card);
    border: var(--border-medium);
    padding: var(--space-lg);
    border-left: 5px solid var(--primary);
}

.disclaimer-box__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* ==========================================================================
   21. Footer
   ========================================================================== */
.m-footer {
    background: var(--bg-hero);
    color: var(--text-on-dark);
    padding: var(--space-3xl) 0 var(--space-lg);
    border-top: 4px solid var(--primary);
}

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

.m-footer__description {
    color: rgba(245, 240, 235, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: var(--space-md);
}

.m-footer__title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

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

.m-footer__link {
    color: rgba(245, 240, 235, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.m-footer__link:hover {
    color: var(--text-light);
}

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

.footer__compliance-logo {
    height: 35px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

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

.footer__compliance-logo--light-bg {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 2px;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.m-footer__bottom {
    border-top: 1px solid rgba(245, 240, 235, 0.15);
    padding-top: var(--space-lg);
    text-align: center;
}

.m-footer__copyright {
    color: rgba(245, 240, 235, 0.5);
    font-size: 0.8rem;
}

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

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

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

.modal__content {
    background: var(--bg-card);
    border: var(--border-strong);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__content--game {
    max-width: 900px;
    padding: 0;
    aspect-ratio: 16/9;
}

.modal__content--auth {
    max-width: 420px;
}

.modal__content--bonus {
    max-width: 400px;
    text-align: center;
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--space-md);
}

.modal__text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

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

.modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border: var(--border-medium);
    background: var(--bg-card);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.modal__close:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.modal__game-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal__game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   23. Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-hero);
    border-top: 3px solid var(--accent);
    padding: var(--space-lg);
    z-index: 1500;
}

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

.cookie-consent__text {
    color: var(--text-on-dark);
    font-size: 0.9rem;
    flex: 1;
}

.cookie-consent__actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

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

/* ==========================================================================
   24. Auth Forms
   ========================================================================== */
.auth-tabs {
    display: flex;
    border-bottom: var(--border-medium);
    margin-bottom: var(--space-xl);
}

.auth-tabs__btn {
    flex: 1;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.auth-tabs__btn:hover {
    color: var(--text-primary);
}

.auth-tabs__btn.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form__group {
    margin-bottom: var(--space-lg);
}

.auth-form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.auth-form__input {
    width: 100%;
    padding: 12px 16px;
    border: var(--border-medium);
    background: var(--bg-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.auth-form__input:focus {
    outline: none;
    border-color: var(--secondary);
}

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

.auth-form__error {
    background: #fdecea;
    border: 2px solid var(--primary);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   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: var(--border-strong);
    padding: var(--space-xl);
}

.account-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: var(--border-light);
}

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

/* ==========================================================================
   26. Profile
   ========================================================================== */
.profile-card {
    background: var(--bg-card);
    border: var(--border-strong);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.profile-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-hero);
    color: var(--text-light);
    border-bottom: var(--border-strong);
}

.profile-card__badge {
    width: 64px;
    height: 64px;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent);
    flex-shrink: 0;
}

.profile-card__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.profile-card__email {
    font-size: 0.85rem;
    color: rgba(245, 240, 235, 0.6);
}

.profile-card__xp {
    padding: var(--space-xl);
    border-bottom: var(--border-light);
}

.profile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: var(--border-light);
}

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

/* ==========================================================================
   27. XP Progress
   ========================================================================== */
.xp-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-darker);
    border: var(--border-medium);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.xp-bar__fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease;
    position: relative;
}

.xp-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.xp-bar__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   28. Stats
   ========================================================================== */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    text-align: center;
}

.stat-item:not(:last-child) {
    border-right: var(--border-light);
}

.stat-item__value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
}

.stat-item__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ==========================================================================
   29. Content Pages
   ========================================================================== */
.m-content-card {
    background: var(--bg-card);
    border: var(--border-strong);
    padding: var(--space-2xl);
}

.m-content-card h2 {
    font-size: 1.5rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
}

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

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

.m-content-card ul, .m-content-card ol {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.m-content-card li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.m-content-card a {
    color: var(--secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--secondary);
    transition: all 0.2s ease;
}

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

.m-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
}

.m-breadcrumb__link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-bottom: none;
}

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

.m-breadcrumb__sep {
    color: var(--text-muted);
}

.m-breadcrumb__current {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .m-content-card {
        padding: var(--space-lg);
    }
}

/* Info Cards (responsible page) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.info-card {
    background: var(--bg-dark);
    border: var(--border-medium);
    padding: var(--space-lg);
    text-align: center;
}

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

.info-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.info-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.article-card {
    background: var(--bg-card);
    border: var(--border-strong);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.article-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--text-primary);
}

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

.article-card__category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--primary);
    color: var(--text-light);
    padding: 4px 12px;
    margin-bottom: var(--space-md);
}

.article-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.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: var(--border-strong);
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
}

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: var(--border-light);
}

.review-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

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

.review-card__stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

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

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

/* Review Hero (single review pages) */
.review-hero {
    margin-bottom: var(--space-xl);
}

.review-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.review-games {
    margin-top: var(--space-2xl);
}

.review-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Games grid variant for reviews */
.games-grid--review {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

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

/* Game cards used in home/reviews */
.game-card {
    background: var(--bg-card);
    border: var(--border-medium);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.game-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--text-primary);
}

.game-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-card__title {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: var(--border-medium);
}

/* Featured grid on homepage */
.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;
    }
}

/* ==========================================================================
   32. Utility Classes
   ========================================================================== */
.stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

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

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

/* Daily Bonus Modal */
.daily-bonus {
    padding: var(--space-lg) 0;
}

.daily-bonus__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

.daily-bonus__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.daily-bonus__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.daily-bonus__streak {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border: 2px solid var(--bg-darker);
}

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

/* ==========================================================================
   Selection
   ========================================================================== */
::selection {
    background: var(--primary);
    color: var(--text-light);
}