/* ==========================================================================
   1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors - Retro Palette */
    --primary: #e8a87c;
    --primary-dark: #d4915a;
    --secondary: #f4e4ba;
    --accent: #c75c2a;

    /* Backgrounds */
    --bg-dark: #2b1f3b;
    --bg-darker: #1e1430;
    --bg-card: #3a2d50;

    /* Text */
    --text-primary: #f4e4ba;
    --text-secondary: #d4c59a;
    --text-muted: #9a8a70;

    /* 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: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

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

    /* Fonts */
    --font-body: 'VT323', monospace;
    --font-heading: 'Press Start 2P', cursive;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.9rem; }
h4 { font-size: 0.8rem; }

p {
    margin-bottom: var(--space-md);
    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;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-darker);
    border-bottom: 3px solid var(--primary);
    z-index: 1000;
    image-rendering: pixelated;
}

.m-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.m-header__logo {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 var(--accent);
    transition: color 0.3s ease;
}

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

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

.m-header__link {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

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

.m-header__account {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--bg-darker);
    background: var(--primary);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.m-header__account:hover {
    background: var(--accent);
    color: var(--secondary);
}

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

.m-header__burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--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: 768px) {
    .m-header__nav {
        display: none;
    }

    .m-header__account {
        display: none;
    }

    .m-header__burger {
        display: flex;
    }
}

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

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

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

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

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-md) 0;
    border-bottom: 2px dashed var(--bg-card);
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.m-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    padding: var(--space-md) var(--space-xl);
    border: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    image-rendering: pixelated;
}

.m-btn--primary {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--accent);
    box-shadow: 4px 4px 0 var(--accent);
}

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

.m-btn--secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 4px 4px 0 var(--bg-card);
}

.m-btn--secondary:hover {
    background: var(--primary);
    color: var(--bg-darker);
    box-shadow: 2px 2px 0 var(--accent);
    transform: translate(2px, 2px);
}

.m-btn--sm {
    font-size: 0.5rem;
    padding: var(--space-sm) var(--space-md);
}

.m-btn--full {
    width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    padding: var(--space-md) var(--space-xl);
    border: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--accent);
    box-shadow: 4px 4px 0 var(--accent);
}

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

.btn--secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--secondary:hover {
    background: var(--primary);
    color: var(--bg-darker);
}

.btn--sm {
    font-size: 0.5rem;
    padding: var(--space-sm) var(--space-md);
}

/* ==========================================================================
   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-darker);
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary);
}

.m-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(244, 228, 186, 0.03) 2px,
            rgba(244, 228, 186, 0.03) 4px
        );
    pointer-events: none;
}

.m-hero__container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(0,0,0,0.3);
    animation: pixelPulse 3s ease-in-out infinite;
}

@keyframes pixelPulse {
    0%, 100% { text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(0,0,0,0.3); }
    50% { text-shadow: 3px 3px 0 var(--primary), 6px 6px 0 rgba(0,0,0,0.3); }
}

.m-hero__title--404 {
    font-size: 4rem;
    color: var(--accent);
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
}

.m-hero__text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.m-hero--small .m-hero__title {
    font-size: 1.2rem;
}

.m-hero--404 {
    padding: var(--space-3xl) var(--space-lg);
}

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

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

@media (max-width: 768px) {
    .m-hero__title {
        font-size: 1.2rem;
    }

    .m-hero--small .m-hero__title {
        font-size: 0.9rem;
    }

    .m-hero__row {
        flex-direction: column;
        text-align: center;
    }
}

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

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

.m-section--benefits {
    background: var(--bg-darker);
    border-top: 4px dashed var(--bg-card);
    border-bottom: 4px dashed var(--bg-card);
}

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

.m-section--faq {
    background: var(--bg-darker);
    border-top: 4px solid var(--bg-card);
}

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

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

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

.m-section--games {
    padding: var(--space-xl) 0 var(--space-3xl);
}

.m-section__title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 0 var(--accent);
}

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

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

.m-benefit-card {
    background: var(--bg-card);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    position: relative;
}

.m-benefit-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
    border-color: var(--accent);
}

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

.m-benefit-card__title {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.m-benefit-card__text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

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

/* ==========================================================================
   12. Featured Providers
   ========================================================================== */
.m-featured__provider-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
}

.m-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

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

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

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

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

/* ==========================================================================
   14. Game Tile
   ========================================================================== */
.m-game-tile {
    background: var(--bg-card);
    border: 3px solid var(--bg-card);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    position: relative;
}

.m-game-tile:hover {
    border-color: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

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

.m-game-tile__title {
    font-family: var(--font-heading);
    font-size: 0.45rem;
    color: var(--secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-game-tile__provider {
    font-size: 1rem;
    color: var(--text-muted);
}

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

.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(30, 20, 48, 0.85);
    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-family: var(--font-heading);
    font-size: 0.4rem;
    color: var(--primary);
    text-align: center;
    padding: 0 var(--space-sm);
}

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

.m-provider-section__title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 3px dashed var(--bg-card);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

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

.m-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.45rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid var(--bg-card);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.m-filter-btn:hover,
.m-filter-btn.is-active {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--accent);
    box-shadow: 2px 2px 0 var(--accent);
}

/* ==========================================================================
   18. Unlock Banner
   ========================================================================== */
.m-unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-card);
    border: 3px solid var(--accent);
    padding: var(--space-lg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

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

.m-unlock-banner__text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    flex: 1;
}

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

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

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

.m-faq-item {
    border: 3px solid var(--bg-card);
    margin-bottom: var(--space-sm);
    background: var(--bg-card);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

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

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

.m-faq-item__icon {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

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

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

.m-faq-item__answer p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   20. Disclaimer
   ========================================================================== */
.m-disclaimer {
    background: var(--bg-card);
    border: 3px solid var(--accent);
    padding: var(--space-lg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.m-disclaimer p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

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

.m-disclaimer a {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   21. Footer
   ========================================================================== */
.m-footer {
    background: var(--bg-darker);
    border-top: 4px solid var(--primary);
    padding-top: var(--space-3xl);
}

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

.m-footer__content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.m-footer__brand {
    max-width: 350px;
}

.m-footer__logo {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 0 var(--accent);
}

.m-footer__description {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.m-footer__links {
    display: flex;
    gap: var(--space-2xl);
}

.m-footer__section {
    min-width: 150px;
}

.m-footer__title {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

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

.m-footer__link {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.m-footer__compliance {
    padding: var(--space-xl) 0;
    border-top: 3px dashed var(--bg-card);
    border-bottom: 3px dashed var(--bg-card);
    margin-bottom: var(--space-lg);
}

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

.m-footer__compliance-logo {
    height: 36px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

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

.m-footer__age-badge {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--accent);
    border: 3px solid var(--accent);
    padding: var(--space-xs) var(--space-sm);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.m-footer__bottom {
    padding: var(--space-lg) 0;
    text-align: center;
}

.m-footer__copyright {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .m-footer__content {
        flex-direction: column;
    }

    .m-footer__links {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .m-footer__brand {
        max-width: 100%;
    }
}

/* ==========================================================================
   22. Modals
   ========================================================================== */
.m-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: all 0.3s ease;
}

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

.m-modal__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.m-modal__content {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

.m-modal__content--game {
    max-width: 900px;
    padding: 0;
    background: #000;
}

.m-modal__content--auth {
    max-width: 450px;
}

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

.m-modal__close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--secondary);
    border: 2px solid var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
}

.m-modal__close:hover {
    background: var(--primary);
    color: var(--bg-darker);
}

.m-modal__game-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
}

.m-modal__game-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Age Modal Specific */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 3000;
    transition: all 0.3s ease;
}

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

.modal__content {
    background: var(--bg-card);
    border: 4px solid var(--primary);
    padding: var(--space-2xl);
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
}

.modal__header h2 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

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

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

/* ==========================================================================
   23. Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    border-top: 3px solid var(--primary);
    padding: var(--space-lg);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

.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: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

/* ==========================================================================
   24. Auth Forms
   ========================================================================== */
.m-auth {
    padding: var(--space-md);
}

.m-auth__tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border: 3px solid var(--bg-dark);
}

.m-auth__tab {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 0.5rem;
    padding: var(--space-md);
    background: var(--bg-dark);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.m-auth__tab.is-active {
    background: var(--primary);
    color: var(--bg-darker);
}

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

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

.m-auth__field label {
    font-family: var(--font-heading);
    font-size: 0.45rem;
    color: var(--text-secondary);
}

.m-auth__field input {
    font-family: var(--font-body);
    font-size: 1.15rem;
    padding: var(--space-md);
    background: var(--bg-dark);
    border: 3px solid var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.m-auth__field input:focus {
    outline: none;
    border-color: var(--primary);
}

.m-auth__field input::placeholder {
    color: var(--text-muted);
}

.m-auth__footer {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.m-auth__footer a {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================================================
   25. Account Page
   ========================================================================== */
.m-page-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: var(--space-xl);
    text-shadow: 2px 2px 0 var(--accent);
}

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

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

.m-account-card {
    background: var(--bg-card);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.m-account-card__title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

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

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

/* ==========================================================================
   26. Profile
   ========================================================================== */
.m-profile {
    background: var(--bg-card);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

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

.m-profile__badge {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--bg-darker);
    flex-shrink: 0;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.m-profile__name {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--secondary);
    margin-bottom: var(--space-xs);
}

.m-profile__email {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

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

.m-profile__xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.45rem;
    color: var(--text-secondary);
}

.m-progress-bar {
    height: 24px;
    background: var(--bg-dark);
    border: 3px solid var(--bg-dark);
    overflow: hidden;
    position: relative;
}

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

.m-progress-bar__fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 8px,
        rgba(255,255,255,0.1) 8px,
        rgba(255,255,255,0.1) 16px
    );
}

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

.m-stat-card {
    background: var(--bg-dark);
    border: 2px solid var(--bg-card);
    padding: var(--space-lg);
    text-align: center;
}

.m-stat-card__value {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.m-stat-card__label {
    font-size: 1rem;
    color: var(--text-muted);
}

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

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

    .m-profile__actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   29. Content Pages
   ========================================================================== */
.m-content-card {
    background: var(--bg-card);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

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

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

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

.m-content-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

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

.m-content-card li {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

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

.m-content-card em {
    color: var(--text-muted);
}

.m-content-card__cta {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 3px dashed var(--bg-dark);
}

.m-content-card__cta p {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--secondary);
}

/* Breadcrumb */
.m-breadcrumb {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.m-breadcrumb__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

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

/* Info Grid (Responsible page) */
.m-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

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

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

.m-info-card h3 {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    margin-top: 0;
}

.m-info-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

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

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

.m-daily-bonus__title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

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

.m-daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

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

.m-article-card {
    background: var(--bg-card);
    border: 3px solid var(--bg-card);
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.m-article-card:hover {
    border-color: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

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

.m-article-card__category {
    font-family: var(--font-heading);
    font-size: 0.4rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: inline-block;
    background: var(--bg-dark);
    padding: var(--space-xs) var(--space-sm);
    border: 2px solid var(--accent);
}

.m-article-card__title {
    font-family: var(--font-heading);
    font-size: 0.5rem;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.m-article-card__excerpt {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

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

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

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

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

.m-review-card {
    background: var(--bg-card);
    border: 3px solid var(--primary);
    padding: var(--space-xl);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    position: relative;
    transition: all 0.3s ease;
}

.m-review-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
    border-color: var(--accent);
}

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

.m-review-card__title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.m-review-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.m-review-card__text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.m-review-card__stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.m-review-card__stat {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

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

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

.m-review-hero__score {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--secondary);
}

.m-review-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Review Games Grid */
.m-review-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.m-game-card--small {
    background: var(--bg-dark);
    border: 2px solid var(--bg-card);
    overflow: hidden;
    text-align: center;
    transition: border-color 0.3s ease;
}

.m-game-card--small:hover {
    border-color: var(--primary);
}

.m-game-card--small img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.m-game-card--small span {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.35rem;
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

    .m-review-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .m-review-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Featured game card */
.m-game-card--featured {
    background: var(--bg-card);
    border: 3px solid var(--bg-card);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.m-game-card--featured:hover {
    border-color: var(--primary);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

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

.m-game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-game-card__info {
    padding: var(--space-sm) var(--space-md);
}

.m-game-card__title {
    font-family: var(--font-heading);
    font-size: 0.45rem;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.is-hidden {
    display: none !important;
}

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

/* Scanline overlay for retro effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.05) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
    z-index: 9999;
}

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

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

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

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

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}
.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
