/* === SANITIZED FIXES === */
html, body { overflow-x: hidden; max-width: 100vw; }

/* === BASE STYLES === */:root {
            --primary-electric: #00E5FF;
            --primary-deep: #0077B6;
            --accent-coral: #FF6B9D;
            --accent-yellow: #FFD60A;
            --dark-primary: #001219;
            --dark-secondary: #003459;
            --gradient-hero: linear-gradient(135deg, #001219 0%, #003459 50%, #0077B6 100%);
            --gradient-card: linear-gradient(145deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 119, 182, 0.1) 100%);
            --text-light: #FFFFFF;
            --text-muted: #B8C5D6;
            --shadow-sm: 0 2px 8px rgba(0, 229, 255, 0.1);
            --shadow-md: 0 8px 24px rgba(0, 119, 182, 0.2);
            --shadow-lg: 0 16px 48px rgba(0, 229, 255, 0.3);
            --border-radius: 16px;
            --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            max-width: 100vw;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--dark-primary);
            color: var(--text-light);
            line-height: 1.7;
            overflow-x: hidden;
            max-width: 100vw;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: clamp(2rem, 5vw, 4.5rem);
            letter-spacing: -0.02em;
        }

        h2 {
            font-size: clamp(1.75rem, 4vw, 3.5rem);
            letter-spacing: -0.01em;
        }

        h3 {
            font-size: clamp(1.5rem, 3vw, 2.25rem);
        }

        h4 {
            font-size: clamp(1.25rem, 2.5vw, 1.75rem);
        }

        p {
            margin-bottom: 1.25rem;
            color: var(--text-muted);
            font-size: 1.0625rem;
        }

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

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

        .btn {
            padding: 16px 36px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.0625rem;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: inline-block;
            min-width: 44px;
            min-height: 44px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-electric) 0%, var(--primary-deep) 100%);
            color: var(--text-light);
            box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
            position: relative;
            padding: 0.75rem 2rem;
            overflow: hidden;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(0, 229, 255, 0.5);
        }

        .card {
            background: var(--gradient-card);
            border: 1px solid rgba(0, 229, 255, 0.2);
            border-radius: var(--border-radius);
            padding: 2rem;
            transition: var(--transition);
            backdrop-filter: blur(10px);
        }

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

        .info-card {
            background: linear-gradient(145deg, rgba(0, 52, 89, 0.6) 0%, rgba(0, 18, 25, 0.8) 100%);
            border-left: 4px solid var(--primary-electric);
            padding: 1.5rem;
            border-radius: 12px;
            margin: 2rem 0;
        }

        .info-card h4 {
            color: var(--primary-electric);
            margin-bottom: 1rem;
            font-size: 1.25rem;
        }

        .info-card ul {
            list-style: none;
            padding-left: 0;
        }

        .info-card ul li {
            padding: 0.5rem 0;
            padding-left: 1.5rem;
            position: relative;
            color: var(--text-muted);
        }

        .info-card ul li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent-yellow);
            font-weight: bold;
        }

        .highlight-box {
            background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 214, 10, 0.1) 100%);
            border: 2px solid var(--accent-coral);
            border-radius: var(--border-radius);
            padding: 2rem;
            margin: 2rem 0;
        }

        .highlight-box h4 {
            color: var(--accent-coral);
            margin-bottom: 1.25rem;
        }

        .feature-list, .checklist {
            list-style: none;
            padding-left: 0;
        }

        .feature-list li, .checklist li {
            padding: 0.75rem 0;
            padding-left: 2rem;
            position: relative;
            color: var(--text-muted);
            font-size: 1.0625rem;
        }

        .feature-list li::before {
            content: '✦';
            position: absolute;
            left: 0;
            color: var(--accent-yellow);
            font-size: 1.25rem;
        }

        .checklist li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary-electric);
            font-weight: bold;
            font-size: 1.5rem;
        }

        .content-image {
            max-width: 100%;
            margin: 2rem auto;
            text-align: center;
        }

        .content-image img {
            max-width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
        }

        .content-image.portrait img {
            max-height: 350px;
            max-width: 300px;
        }

        .content-image.wide img {
            max-height: 300px;
            max-width: 100%;
        }

        .content-image figcaption {
            margin-top: 1rem;
            font-size: 0.9375rem;
            color: var(--text-muted);
            font-style: italic;
        }

        .table-responsive {
            overflow-x: auto;
            margin: 2rem 0;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: var(--gradient-card);
            backdrop-filter: blur(10px);
        }

        table thead {
            background: linear-gradient(135deg, var(--primary-deep) 0%, var(--dark-secondary) 100%);
        }

        table th {
            padding: 1.25rem;
            text-align: left;
            font-weight: 600;
            color: var(--text-light);
            border-bottom: 2px solid var(--primary-electric);
        }

        table td {
            padding: 1.25rem;
            border-bottom: 1px solid rgba(0, 229, 255, 0.1);
            color: var(--text-muted);
        }

        table tbody tr {
            transition: var(--transition);
        }

        table tbody tr:hover {
            background: rgba(0, 229, 255, 0.05);
        }

        /* === LAYOUT STYLES === */
        header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(0, 18, 25, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0, 229, 255, 0.1);
            padding: 1rem 0;
        }

        header .container {
            gap: 0.1rem;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.1rem;
        }

        .logo img {
            max-height: 50px;
            height: auto;
            width: auto;
            transition: var(--transition);
        }

        .logo:hover img {
            transform: scale(1.05);
        }

        .hamburger {
            display: none;
            flex-direction: column;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            gap: 5px;
            min-width: 44px;
            min-height: 44px;
            justify-content: center;
            align-items: center;
        }

        .hamburger span {
            width: 28px;
            height: 3px;
            background: var(--primary-electric);
            border-radius: 2px;
            transition: var(--transition);
        }

        .hamburger[aria-expanded="true"] span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .hamburger[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }

        .hamburger[aria-expanded="true"] span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        header nav .nav-menu {
            display: flex;
            list-style: none;
            gap: 1.5rem;
            margin: 0;
            padding: 0;
            align-items: center;
        }

        header nav .nav-menu a {
            color: var(--text-light);
            font-weight: 500;
            font-size: 0.9375rem;
            transition: var(--transition);
            white-space: nowrap;
        }

        header nav .nav-menu a:hover {
            color: var(--primary-electric);
        }

        header .cta-button {
            white-space: nowrap;
            max-width: 220px;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        footer {
            background: linear-gradient(180deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
            border-top: 1px solid rgba(0, 229, 255, 0.2);
            padding: 4rem 0 2rem;
            margin-top: 6rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-section h3, .footer-section h4 {
            color: var(--primary-electric);
            margin-bottom: 1.25rem;
            font-size: 1.25rem;
        }

        .footer-section p {
            color: var(--text-muted);
            font-size: 0.9375rem;
        }

        .footer-section nav ul {
            list-style: none;
            padding: 0;
        }

        .footer-section nav ul li {
            margin-bottom: 0.75rem;
        }

        .footer-section nav ul li a {
            color: var(--text-muted);
            font-size: 0.9375rem;
            transition: var(--transition);
        }

        .footer-section nav ul li a:hover {
            color: var(--primary-electric);
            padding-left: 8px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(0, 229, 255, 0.1);
        }

        .footer-bottom p {
            color: var(--text-muted);
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
        }

        .disclaimer {
            color: var(--accent-coral);
            font-weight: 600;
        }

        @media (max-width: 767px) {
            header {
                padding: 0.75rem 0;
            }

            .header-content {
                flex-wrap: wrap;
            }

            .hamburger {
                display: flex;
            }

            header nav {
                width: 100%;
            }

            header nav .nav-menu {
                display: none;
                flex-direction: column;
                width: 100%;
                background: var(--dark-secondary);
                border-radius: var(--border-radius);
                padding: 1rem;
                margin-top: 1rem;
                gap: 0;
            }

            header nav .nav-menu.active {
                display: flex;
            }

            header nav .nav-menu li {
                width: 100%;
                padding: 0.75rem 0;
                border-bottom: 1px solid rgba(0, 229, 255, 0.1);
            }

            header nav .nav-menu li:last-child {
                border-bottom: none;
            }

            header .cta-button {
                width: 100%;
                max-width: 100%;
                margin-top: 1rem;
                text-align: center;
            }
        }

@media (max-width: 767px) {
            .hero-section {
                padding: 4rem 0 3rem;
            }

            section {
                padding: 3rem 0;
            }

            .hero-section h1 {
                font-size: 2rem;
            }

            .game-card {
                padding: 1.5rem;
            }

            .table-of-contents .toc-nav ul {
                grid-template-columns: 1fr;
            }

            .accordion-header {
                padding: 1.25rem 3.5rem 1.25rem 1.25rem;
            }

            .accordion-header::after {
                right: 1.25rem;
            }

            .accordion-item.active .accordion-body {
                padding: 0 1.25rem 1.25rem;
            }

            .cta-section {
                padding: 4rem 0;
            }

            .cta-section .btn-primary {
                font-size: 1.0625rem;
                padding: 16px 32px;
            }

            .table-responsive {
                border-radius: 8px;
            }

            table th, table td {
                padding: 0.75rem;
                font-size: 0.875rem;
            }

            .info-card, .highlight-box {
                padding: 1.25rem;
            }

            .content-image {
                margin: 1.5rem auto;
            }
        }

@media (min-width: 1024px) {
            .footer-content {
                grid-template-columns: 2fr 1fr 1fr 1fr;
            }
        }