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

/* === BASE STYLES === */:root {
      --primary: #00E5FF;
      --primary-dark: #00B8D4;
      --secondary: #FF1744;
      --secondary-dark: #D50000;
      --accent: #FFC400;
      --dark: #0A0E27;
      --dark-alt: #1A1F3A;
      --light: #FFFFFF;
      --light-alt: #F5F7FA;
      --gradient-primary: linear-gradient(135deg, #00E5FF 0%, #0091EA 100%);
      --gradient-secondary: linear-gradient(135deg, #FF1744 0%, #FF6090 100%);
      --gradient-accent: linear-gradient(135deg, #FFC400 0%, #FFD740 100%);
      --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #1A1F3A 100%);
      --shadow-sm: 0 2px 8px rgba(0, 229, 255, 0.15);
      --shadow-md: 0 8px 24px rgba(0, 229, 255, 0.2);
      --shadow-lg: 0 16px 48px rgba(0, 229, 255, 0.3);
      --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.4);
    }

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

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

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

    h1, h2, h3, h4, h5, h6 {
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
    }

    h1 {
      font-size: clamp(2.5rem, 5vw, 4.5rem);
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    h2 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      color: var(--light);
    }

    h3 {
      font-size: clamp(1.5rem, 3vw, 2rem);
      color: var(--primary);
    }

    p {
      margin-bottom: 1rem;
      color: rgba(255, 255, 255, 0.85);
    }

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

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

    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    .btn {
      display: inline-block;
      padding: 1rem 2.5rem;
      font-size: 1.125rem;
      font-weight: 700;
      text-align: center;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      position: relative;
      overflow: hidden;
      min-width: 44px;
      min-height: 44px;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .btn:hover::before {
      width: 300px;
      height: 300px;
    }

    .btn-primary {
      background: var(--gradient-secondary);
      color: var(--light);
      box-shadow: var(--shadow-md);
    }

    .btn-primary:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: var(--shadow-lg);
      color: var(--light);
    }

    .cta-button {
      background: var(--gradient-secondary);
      color: var(--light);
      box-shadow: var(--shadow-md);
      padding: 1rem 2.5rem;
      font-size: 1.125rem;
      font-weight: 700;
      text-align: center;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      position: relative;
      overflow: hidden;
      display: inline-block;
      min-width: 44px;
      min-height: 44px;
    }

    .cta-button::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .cta-button:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: var(--shadow-lg);
      color: var(--light);
    }

    .cta-button:hover::before {
      width: 300px;
      height: 300px;
    }

    .card {
      background: var(--dark-alt);
      border-radius: 20px;
      padding: 2rem;
      box-shadow: var(--shadow-md);
      transition: all 0.4s ease;
      border: 1px solid rgba(0, 229, 255, 0.1);
    }

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

    .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: 16px;
      box-shadow: var(--shadow-lg);
      border: 2px solid rgba(0, 229, 255, 0.2);
    }

    .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: 0.75rem;
      font-size: 0.875rem;
      opacity: 0.7;
      font-style: italic;
    }

    .table-responsive {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: 12px;
      box-shadow: var(--shadow-md);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: var(--dark-alt);
    }

    table th {
      background: var(--gradient-primary);
      color: var(--dark);
      padding: 1rem;
      text-align: left;
      font-weight: 700;
    }

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

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

    /* === LAYOUT STYLES === */
    .main-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .main-header .container {
      gap: 0.1rem;
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 0;
      gap: 1.5rem;
    }

    .logo img {
      max-height: 50px;
      filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
    }

    .logo a {
      display: inline-block;
    }

    .accordion-body {
      padding: 0 1.5rem 0.3rem 1.5rem !important;
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

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

    .hamburger span {
      display: block;
      width: 28px;
      height: 3px;
      background: var(--dark);
      border-radius: 2px;
      transition: all 0.3s ease;
    }

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

    .nav-list {
      display: flex;
      list-style: none;
      gap: 2rem;
      margin: 0;
      padding: 0;
    }

    .nav-list a {
      color: var(--dark);
      font-weight: 600;
      font-size: 1rem;
      transition: all 0.3s ease;
      position: relative;
    }

    .nav-list a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gradient-primary);
      transition: width 0.3s ease;
    }

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

    .nav-list a:hover::after {
      width: 100%;
    }

    .header-content .cta-button,
    .header-content .btn-primary {
      padding: 0.75rem 1.75rem;
      font-size: 1rem;
      white-space: nowrap;
      background: var(--gradient-secondary) !important;
      color: var(--light) !important;
      border: none !important;
    }

    .header-content .cta-button:hover,
    .header-content .btn-primary:hover {
      background: var(--gradient-secondary) !important;
      color: var(--light) !important;
    }

    .main-footer {
      background: var(--gradient-dark);
      padding: 4rem 0 2rem;
      border-top: 2px solid rgba(0, 229, 255, 0.2);
      margin-top: 5rem;
    }

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

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

    .footer-section p {
      color: rgba(255, 255, 255, 0.7);
      line-height: 1.8;
    }

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

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

    .footer-nav a {
      color: rgba(255, 255, 255, 0.7);
      transition: all 0.3s ease;
    }

    .footer-nav a:hover {
      color: var(--primary);
      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: rgba(255, 255, 255, 0.5);
      font-size: 0.875rem;
    }

    @media (max-width: 991px) {
      .header-content .cta-button {
        display: inline-block;
      }
    }

    @media (max-width: 767px) {
      .hamburger {
        display: flex;
      }

      .main-nav {
        position: relative;
      }

      .main-nav > .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        margin-top: 1rem;
        display: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
      }

      .main-nav > .nav-list.active {
        display: flex;
      }

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


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

      .hero-content p {
        font-size: 1.125rem;
      }

      section {
        padding: 3rem 0;
      }

      .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .timeline-container::before {
        left: 10px;
      }

      .timeline-item {
        padding-left: 45px;
      }

      .timeline-item::before {
        left: 0;
        width: 20px;
        height: 20px;
      }

      .feature-block,
      .highlight-item,
      .game-card,
      .info-card {
        padding: 1.75rem;
      }

      .accordion-header {
        padding: 1.25rem 1.5rem;
        font-size: 1.125rem;
        padding-right: 3rem;
      }

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

      .accordion-body {
        padding: 0 1.5rem;
      }

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

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

      .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
    }