:root {
    /* Color System */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --secondary-50: #f0f9ff;
    --secondary-100: #e0f2fe;
    --secondary-500: #06b6d4;
    --secondary-600: #0891b2;
    --secondary-700: #0e7490;

    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --success-500: #10b981;
    --error-500: #ef4444;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Borders & Shadows */
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    min-height: 100vh;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--space-4);
    font-weight: 700;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

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

a:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.main-content {
    min-height: calc(100vh - 120px);
    padding-top: 80px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.tagline {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}

.nav-menu a {
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    background: var(--primary-50);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--space-2);
}

/* Age Verification Banner (Non-blocking) */
.age-banner {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--warning-500);
    color: white;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--warning-600);
}

.age-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.age-text {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.age-banner-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.age-banner .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-width: auto;
}

.age-banner .btn-primary {
    background: white;
    color: var(--gray-800);
    border: 2px solid white;
}

.age-banner .btn-primary:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.age-banner .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.age-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Consent Banner (Non-blocking) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-800);
    color: white;
    z-index: 999;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
    border-top: 3px solid var(--primary-600);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
}

.cookie-banner-text {
    margin-bottom: var(--space-4);
}

.cookie-banner-text h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-lg);
    color: white;
}

.cookie-banner-text p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--gray-300);
}

.cookie-banner-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.cookie-options {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--gray-300);
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.cookie-option input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.cookie-banner .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-width: auto;
}

.cookie-banner .btn-primary {
    background: var(--primary-600);
    color: white;
}

.cookie-banner .btn-primary:hover {
    background: var(--primary-700);
}

.cookie-banner .btn-secondary {
    background: transparent;
    color: var(--gray-300);
    border: 2px solid var(--gray-600);
}

.cookie-banner .btn-secondary:hover {
    background: var(--gray-700);
    color: white;
    border-color: var(--gray-500);
}

/* Content Blocking When Banners Are Visible */
body:has(.age-banner[style*="display: block"]) *:not(.age-banner):not(.age-banner *) {
    pointer-events: none !important;
    user-select: none !important;
}

body:has(.cookie-banner[style*="display: block"]):not(:has(.age-banner[style*="display: block"])) *:not(.cookie-banner):not(.cookie-banner *) {
    pointer-events: none !important;
    user-select: none !important;
}

.age-banner *, .cookie-banner * {
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Disabled State for Interactive Elements */
.interactions-disabled {
    pointer-events: none !important;
    user-select: none !important;
}

.interactions-disabled .btn,
.interactions-disabled a,
.interactions-disabled button {
    opacity: 0.6;
    cursor: not-allowed;
}

.interactions-disabled .btn[aria-disabled="true"],
.interactions-disabled a[aria-disabled="true"],
.interactions-disabled button[aria-disabled="true"] {
    opacity: 0.4;
}

/* Adjust main content when banners are visible */
.main-content.age-banner-visible {
    padding-top: 140px;
}

.main-content.cookie-banner-visible {
    padding-bottom: 120px;
}

/* Hero Section */
.hero {
    padding: var(--space-20) var(--space-4);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-8);
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-10);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.cta-disclaimers {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cta-disclaimer {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: var(--space-2);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features {
    padding: var(--space-20) var(--space-4);
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--gray-800);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: var(--gray-50);
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.feature-card h3 {
    color: var(--gray-800);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Games Section */
.games {
    padding: var(--space-20) var(--space-4);
    background: var(--gray-50);
}

.games h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--gray-800);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.game-card h3 {
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-xl);
}

.game-tags {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: 1px solid var(--primary-200);
}

.game-card p {
    color: var(--gray-600);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--space-6);
}

.game-button {
    margin-top: auto;
    width: 100%;
}

.game-disclaimer {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-top: var(--space-8);
    padding: var(--space-4);
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

/* Responsible Play Section */
.responsible-play {
    padding: var(--space-20) var(--space-4);
    background: white;
}

.responsible-play h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--gray-800);
}

.responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.responsible-item {
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.responsible-item h3 {
    color: var(--primary-700);
    margin-bottom: var(--space-3);
    margin-top: 0;
}

.responsible-item p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.help-resources {
    background: var(--primary-50);
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--primary-200);
}

.help-resources h3 {
    color: var(--primary-800);
    margin-top: 0;
}

.help-resources ul {
    margin-left: var(--space-6);
}

.help-resources li {
    margin-bottom: var(--space-2);
}

/* Contact Section */
.contact {
    padding: var(--space-20) var(--space-4);
    background: var(--gray-50);
}

.contact h2 {
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--gray-800);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: var(--space-8);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.contact-details {
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    margin-top: var(--space-6);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-base);
    min-width: 120px;
    text-align: center;
}

.btn:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: var(--space-12) 0 var(--space-8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.footer-section h3 {
    color: var(--gray-100);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
}

.footer-section a {
    color: var(--gray-300);
    display: block;
    margin-bottom: var(--space-2);
}

.footer-section a:hover {
    color: var(--primary-300);
}

.footer-disclaimer {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--gray-300);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-top: var(--space-8);
}

.legal-page h2 {
    color: var(--gray-800);
    border-bottom: 2px solid var(--primary-600);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-6);
}

.legal-page h3 {
    color: var(--gray-700);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.legal-page ul {
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.legal-page li {
    margin-bottom: var(--space-2);
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: var(--space-4);
    background: var(--primary-700);
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
    border: 1px solid var(--primary-600);
    cursor: pointer;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--success-500);
}

.toast.warning {
    background: var(--warning-500);
}

.toast.error {
    background: var(--error-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: var(--space-3) var(--space-4);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        flex-direction: column;
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.show {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .responsible-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }

    .toast {
        right: var(--space-2);
        left: var(--space-2);
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    /* Mobile banner adjustments */
    .age-banner-content {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
        padding: var(--space-3) var(--space-4);
    }

    .age-banner-actions {
        justify-content: center;
    }

    .cookie-banner-controls {
        flex-direction: column;
        gap: var(--space-4);
    }

    .cookie-options {
        justify-content: center;
    }

    .cookie-actions {
        justify-content: center;
    }

    .main-content.age-banner-visible {
        padding-top: 180px;
    }

    .main-content.cookie-banner-visible {
        padding-bottom: 160px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--space-16) var(--space-3);
    }

    .features {
        padding: var(--space-16) var(--space-3);
    }

    .games {
        padding: var(--space-16) var(--space-3);
    }

    .responsible-play {
        padding: var(--space-16) var(--space-3);
    }

    .contact {
        padding: var(--space-16) var(--space-3);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-100: #000000;
        --gray-800: #ffffff;
        --primary-600: #0000ff;
    }
}




.game-display {
    padding: 5rem 5% 3rem;
    background-color: #0b0b0c;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.game-header {
    text-align: center;
    padding: 2rem;
}

.game-header h1 {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(231, 111, 81, 0.5);
}

.game-header h2 {
    font-size: 1.5rem;
    color: #d1d5db;
    font-weight: normal;
}

.game-frame-container {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background-color:  #d1d5db;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid #7c3aed;
    box-shadow: 0 0 20px rgba(231, 111, 81, 0.3);
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mob {
    display: none;
}

@media (max-width: 768px) {
    .game-frame-container {
        height: 650px;
    }

    .game-display {
        padding: 7rem 5% 3rem;
    }

    .desk {
        display: none;
    }

    .mob {
        display: block;
    }
}

@media (max-width: 400px) {
    header {
        position: relative;
    }

    .hero {
        margin-top: 0;
    }
}


.games-page-hero {
    position: relative;
}

.games-page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
}

