/* ==========================================================================
   1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors — Женщина-воин: Red, Gold, Blue */
    --primary: #b71c1c;
    --primary-dark: #7f0000;
    --primary-light: #e53935;
    --secondary: #1a237e;
    --secondary-light: #283593;
    --accent: #d4a017;
    --accent-light: #f5c842;
    --accent-dark: #a17c11;

    /* Backgrounds */
    --bg-dark: #0d0a1a;
    --bg-darker: #07050f;
    --bg-card: #15112a;
    --bg-card-hover: #1d1838;
    --bg-surface: #1a1533;

    /* Text */
    --text-primary: #f0ebe0;
    --text-secondary: #c4b99a;
    --text-muted: #8a7f6e;
    --text-on-primary: #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: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

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

    /* Fonts — Cormorant Garamond / Lato */
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 20px rgba(183, 28, 28, 0.4);
    --shadow-glow-accent: 0 0 20px rgba(212, 160, 23, 0.4);
}

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

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);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

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

input {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    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; }

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}

/* ==========================================================================
   4. Container
   ========================================================================== */
.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: rgba(13, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.15);
    z-index: 1000;
    transition: background var(--transition-base);
}

.m-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.m-header__left {
    flex-shrink: 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

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

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

.m-header__link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

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

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

.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;
    z-index: 1001;
}

.m-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

/* ==========================================================================
   6. Mobile Menu
   ========================================================================== */
.m-mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 10, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.m-mobile-menu__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--space-2xl);
}

.m-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.m-mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 12px 28px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn--warrior {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-on-primary);
    border: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: var(--shadow-glow-primary);
}

.btn--warrior:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 0 30px rgba(183, 28, 28, 0.6);
    transform: translateY(-2px);
    color: var(--text-on-primary);
}

.btn--secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn--secondary:hover {
    background: rgba(212, 160, 23, 0.1);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

.btn--text {
    background: none;
    color: var(--accent);
    padding: 8px 12px;
    text-decoration: underline;
}

.btn--text:hover {
    color: var(--accent-light);
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

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

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

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

/* ==========================================================================
   9. Hero Section
   ========================================================================== */
.m-hero {
    position: relative;
    padding: var(--space-3xl) 0;
    background: linear-gradient(
        180deg,
        var(--bg-darker) 0%,
        var(--bg-dark) 50%,
        rgba(183, 28, 28, 0.08) 100%
    );
    overflow: hidden;
    text-align: center;
}

.m-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(183, 28, 28, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.m-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.3;
}

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

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

.m-hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-md);
    text-shadow: 0 0 40px rgba(212, 160, 23, 0.3);
}

.m-hero__title--404 {
    font-size: 8rem;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 60px rgba(183, 28, 28, 0.5);
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.m-hero__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

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

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

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

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

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

.m-section--faq {
    background: var(--bg-darker);
}

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

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

.m-section--filter {
    padding: var(--space-md) 0;
}

.m-section--games {
    padding-top: var(--space-lg);
}

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

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

.m-section__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.2;
    margin: var(--space-2xl) 0;
}

.m-page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-md);
    text-align: center;
}

.m-page-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
}

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

.benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-accent);
}

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

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

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

/* ==========================================================================
   12. Featured Providers
   ========================================================================== */
.featured-provider {
    margin-bottom: var(--space-2xl);
}

.featured-provider__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.featured-provider__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: var(--space-sm) auto 0;
}

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

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

/* ==========================================================================
   14. Game Tile (used by JS on /games)
   ========================================================================== */
.game-tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.game-tile:hover {
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-accent);
}

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

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

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

.game-tile__play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 10, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.game-tile:hover .game-tile__play-overlay {
    opacity: 1;
}

.game-tile__play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow-primary);
}

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

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

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

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

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

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

.game-tile--locked:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(212, 160, 23, 0.1);
}

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

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

.game-tile__lock-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

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

.provider-section__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(212, 160, 23, 0.2);
}

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

.filter-btn {
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
}

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

.filter-btn.is-active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-on-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-primary);
}

/* ==========================================================================
   18. Unlock Banner
   ========================================================================== */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.15) 0%, rgba(26, 35, 126, 0.15) 100%);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
}

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

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

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

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

.faq-item {
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color var(--transition-base);
}

.faq-item.is-active {
    border-color: rgba(212, 160, 23, 0.3);
}

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

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

.faq-item__icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

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

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

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

.faq-item__answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   20. Disclaimer
   ========================================================================== */
.disclaimer {
    background: rgba(183, 28, 28, 0.08);
    border: 1px solid rgba(183, 28, 28, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

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

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

/* ==========================================================================
   21. Footer
   ========================================================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 160, 23, 0.1);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

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

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

.footer__subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

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

.footer__link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

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

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

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

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--text-on-primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(212, 160, 23, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer__copyright small {
    opacity: 0.7;
}

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

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

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

.modal__content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.modal__header h2 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.6rem;
}

.modal__body {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.modal__body p {
    color: var(--text-secondary);
}

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

.modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
    z-index: 2;
}

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

/* Game Modal */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-lg);
}

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

.game-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.game-modal__content {
    position: relative;
    z-index: 1;
    background: var(--bg-darker);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 960px;
    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 rgba(212, 160, 23, 0.15);
}

.game-modal__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
}

.game-modal__close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

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

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

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

/* ==========================================================================
   23. Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid rgba(212, 160, 23, 0.2);
    z-index: 1500;
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

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

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

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

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

/* ==========================================================================
   24. Auth Forms
   ========================================================================== */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(212, 160, 23, 0.15);
    margin-bottom: var(--space-xl);
}

.auth-tabs__tab {
    flex: 1;
    padding: var(--space-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-tabs__tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.auth-tabs__tab.is-active {
    color: var(--accent);
}

.auth-tabs__tab.is-active::after {
    transform: scaleX(1);
}

.auth-form__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.auth-form--hidden {
    display: none;
}

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

.auth-form__group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-form__input {
    width: 100%;
    padding: 12px var(--space-md);
    background: var(--bg-surface);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

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

.auth-form__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.auth-form__error {
    color: var(--primary-light);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    min-height: 20px;
}

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

.account-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.account-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.account-card__text {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.account-benefits {
    margin-top: var(--space-2xl);
}

/* ==========================================================================
   26. Profile
   ========================================================================== */
.profile-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

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

.profile-card__badge {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-on-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-glow-accent);
}

.profile-card__name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}

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

.profile-card__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

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

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

.xp-bar__track {
    width: 100%;
    height: 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.xp-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 6px;
    transition: width var(--transition-slow);
    position: relative;
}

.xp-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   28. Stats
   ========================================================================== */
.profile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(212, 160, 23, 0.1);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

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

.stat-item__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

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

/* ==========================================================================
   29. Content Pages
   ========================================================================== */
.m-content-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.m-content-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

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

.m-content-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.m-content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.m-content-card ul,
.m-content-card ol {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: 1rem;
}

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

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

.m-content-card a:hover {
    color: var(--accent-light);
}

.m-content-card__intro {
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    line-height: 1.8;
    border-left: 3px solid var(--accent);
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.m-content-card__cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(212, 160, 23, 0.1);
}

.m-content-card__cta p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

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

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

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

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

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

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

.info-card {
    background: var(--bg-surface);
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

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

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

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

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

.review-hero__tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
}

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

.review-game-tile {
    text-align: center;
}

.review-game-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(212, 160, 23, 0.1);
    margin-bottom: var(--space-xs);
}

.review-game-tile span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Daily Bonus */
.daily-bonus__icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.daily-bonus__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

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

.daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: var(--space-xl);
    text-shadow: var(--shadow-glow-primary);
}

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

.article-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.article-card:hover {
    border-color: rgba(212, 160, 23, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-accent);
}

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

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

.article-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-sm);
    background: rgba(183, 28, 28, 0.15);
    padding: 4px 10px;
    border-radius: 50px;
}

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

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.article-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

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

.review-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.review-card:hover {
    border-color: rgba(212, 160, 23, 0.35);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-accent);
}

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

.review-card__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
}

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

.review-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(212, 160, 23, 0.1);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

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

.review-card__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.review-card__stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.stars--lg {
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
}

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

/* Game Card (featured games on home) */
.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 23, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.game-card:hover {
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-accent);
}

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

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

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

.game-card__play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 10, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.game-card:hover .game-card__play-overlay {
    opacity: 1;
}

.game-card__play-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow-primary);
}

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

.game-card__title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 23, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 160, 23, 0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* 992px */
@media (max-width: 992px) {
    .m-header__nav {
        display: none;
    }
    
    .m-header__burger {
        display: flex;
    }
    
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    h1 { font-size: 2.2rem; }
    
    .m-hero__title {
        font-size: 2.8rem;
    }
}

/* 768px */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid--featured {
        max-width: 100%;
        gap: 12px;
    }
    
    .account-auth-grid {
        grid-template-columns: 1fr;
    }
    
    .m-hero__content--row {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .m-hero__actions {
        justify-content: center;
    }
    
    .unlock-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__links {
        align-items: center;
    }
    
    .footer__compliance {
        justify-content: center;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-card__header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-card__actions {
        flex-direction: column;
    }
    
    .modal__footer {
        flex-direction: column;
    }
    
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
    
    .m-hero__title {
        font-size: 2.2rem;
    }
    
    .m-hero__title--404 {
        font-size: 5rem;
    }
    
    .m-page-title {
        font-size: 2rem;
    }
    
    .m-content-card {
        padding: var(--space-lg);
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}

/* 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card__stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .filter-bar {
        gap: var(--space-xs);
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .m-hero__title {
        font-size: 1.8rem;
    }
    
    .m-hero__title--404 {
        font-size: 4rem;
    }
    
    .m-section__title {
        font-size: 1.6rem;
    }
    
    .game-modal__content {
        border-radius: 0;
    }
}