body {
      box-sizing: border-box;
    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --electric-blue: #00D4FF;
      --neon-purple: #FF006E;
      --charcoal: #0A0A0F;
      --light-gray: #F0F0F0;
      --dark-card: #1A1A2E;
      --accent-gradient: linear-gradient(135deg, #00D4FF 0%, #FF006E 100%);
      --surface: #16213E;
      --border: rgba(0, 212, 255, 0.3);
    }

    html, body {
      height: 100%;
      font-family: 'Inter', sans-serif;
      background: var(--charcoal);
      color: var(--light-gray);
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Navigation */
    .navbar {
      position: fixed;
      top: 0;
      width: 100%;
      background: rgba(10, 10, 15, 0.9);
      backdrop-filter: blur(20px);
      padding: 1.2rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
      border-bottom: 1px solid var(--border);
      box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
    }

    .logo {
      font-size: 1.8rem;
      font-weight: 800;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: flex;
      align-items: center;
      gap: 0.8rem;
      text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }

    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
      align-items: center;
    }

    .nav-links a {
      color: var(--light-gray);
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s;
      cursor: pointer;
      position: relative;
      padding: 0.5rem 0;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--accent-gradient);
      transition: width 0.3s;
    }

    .nav-links a:hover {
      color: var(--electric-blue);
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .auth-buttons {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .btn {
      padding: 0.8rem 2rem;
      border: none;
      border-radius: 50px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      font-family: 'Inter', sans-serif;
      position: relative;
      overflow: hidden;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-size: 0.9rem;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn-primary {
      background: var(--accent-gradient);
      color: white;
      box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    }

    .btn-secondary {
      background: linear-gradient(135deg, #FF006E 0%, #8338EC 100%);
      color: white;
      box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
    }

    .btn-secondary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
    }

    .btn-outline {
      background: transparent;
      border: 2px solid var(--electric-blue);
      color: var(--electric-blue);
      position: relative;
    }

    .btn-outline::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 0;
      height: 100%;
      background: var(--electric-blue);
      transition: width 0.3s;
      z-index: -1;
    }

    .btn-outline:hover {
      color: white;
    }

    .btn-outline:hover::after {
      width: 100%;
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 4px;
      cursor: pointer;
      padding: 0.5rem;
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background: var(--electric-blue);
      transition: all 0.3s;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero {
      min-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 8rem 2rem 6rem;
      background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, var(--charcoal) 70%);
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      width: 800px;
      height: 800px;
      background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.1), transparent, rgba(255, 0, 110, 0.1), transparent);
      top: -400px;
      right: -400px;
      animation: rotate 20s linear infinite;
      border-radius: 50%;
    }

    .hero::after {
      content: '';
      position: absolute;
      width: 600px;
      height: 600px;
      background: conic-gradient(from 180deg, transparent, rgba(255, 0, 110, 0.1), transparent, rgba(0, 212, 255, 0.1), transparent);
      bottom: -300px;
      left: -300px;
      animation: rotate 25s linear infinite reverse;
      border-radius: 50%;
    }

    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .hero-content {
      max-width: 900px;
      position: relative;
      z-index: 1;
    }

    .hero h1 {
      font-size: 4.5rem;
      margin-bottom: 1.5rem;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.1;
      text-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
    }

    .hero p {
      font-size: 1.4rem;
      margin-bottom: 3rem;
      color: rgba(240, 240, 240, 0.8);
      font-weight: 300;
      line-height: 1.6;
    }

    .hero-buttons {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* Section Styles */
    .section {
      padding: 6rem 2rem;
      max-width: 1400px;
      margin: 0 auto;
    }

    .section-title {
      font-size: 3rem;
      text-align: center;
      margin-bottom: 4rem;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 4px;
      background: var(--accent-gradient);
      border-radius: 2px;
    }

    /* Game Cards */
    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 2.5rem;
      margin-top: 3rem;
    }

    .game-card {
      background: var(--surface);
      border-radius: 20px;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      cursor: pointer;
      border: 1px solid var(--border);
      position: relative;
    }

    .game-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--accent-gradient);
      opacity: 0;
      transition: opacity 0.3s;
      border-radius: 20px;
      z-index: -1;
    }

    .game-card:hover::before {
      opacity: 0.1;
    }

    .game-card:hover {
      transform: translateY(-15px) scale(1.02);
      box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
      border-color: var(--electric-blue);
    }

    .game-card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.3s;
    }

    .game-card:hover img {
      transform: scale(1.1);
    }

    .game-card-content {
      padding: 2rem;
      background: var(--surface);
      position: relative;
    }

    .game-card h3 {
      font-size: 1.4rem;
      margin-bottom: 0.8rem;
      color: white;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .game-card p {
      color: rgba(240, 240, 240, 0.7);
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .game-rating {
      display: flex;
      gap: 0.3rem;
      margin-bottom: 1.5rem;
    }

    .star {
      color: #FFD700;
      font-size: 1.1rem;
      text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    /* Community Cards */
    .community-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2.5rem;
    }

    .community-card {
      background: var(--surface);
      padding: 2.5rem;
      border-radius: 20px;
      text-align: center;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }

    .community-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--accent-gradient);
      opacity: 0;
      transition: opacity 0.3s;
      z-index: -1;
    }

    .community-card:hover::before {
      opacity: 0.05;
    }

    .community-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(0, 212, 255, 0.15);
      border-color: var(--electric-blue);
    }

    .community-icon {
      font-size: 3.5rem;
      margin-bottom: 1.5rem;
      filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
    }

    .community-card h3 {
      color: white;
      margin-bottom: 1rem;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .community-card p {
      color: rgba(240, 240, 240, 0.7);
      line-height: 1.6;
    }

    /* Tournament Section */
    .tournament-banner {
      background: var(--surface);
      border: 2px solid transparent;
      background-clip: padding-box;
      padding: 4rem;
      border-radius: 25px;
      text-align: center;
      margin: 3rem 0;
      position: relative;
      overflow: hidden;
    }

    .tournament-banner::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--accent-gradient);
      opacity: 0.1;
      z-index: -1;
    }

    .tournament-banner::after {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      background: var(--accent-gradient);
      border-radius: 25px;
      z-index: -2;
    }

    .countdown {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin: 2rem 0;
      flex-wrap: wrap;
    }

    .countdown-item {
      text-align: center;
    }

    .countdown-value {
      font-size: 3rem;
      font-weight: 700;
      color: white;
    }

    .countdown-label {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.8);
    }

    /* Newsletter */
    .newsletter {
      background: var(--surface);
      padding: 4rem;
      border-radius: 25px;
      text-align: center;
      margin: 4rem 0;
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }

    .newsletter::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--accent-gradient);
      opacity: 0.05;
      z-index: -1;
    }

    .newsletter h2 {
      margin-bottom: 1rem;
    }

    .newsletter p {
      color: rgba(240, 240, 240, 0.7);
      font-size: 1.1rem;
      margin-bottom: 2rem;
    }

    .newsletter-form {
      display: flex;
      gap: 1rem;
      max-width: 600px;
      margin: 2rem auto 0;
      flex-wrap: wrap;
      justify-content: center;
    }

    .newsletter-form input {
      flex: 1;
      min-width: 300px;
      padding: 1rem 1.5rem;
      border: 2px solid var(--border);
      background: var(--charcoal);
      color: white;
      border-radius: 50px;
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      transition: all 0.3s;
    }

    .newsletter-form input:focus {
      outline: none;
      border-color: var(--electric-blue);
      box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }

    /* Footer */
    .footer {
      background: var(--charcoal);
      border-top: 1px solid var(--border);
      padding: 4rem 2rem 2rem;
      margin-top: 6rem;
    }

    .footer-content {
      max-width: 1400px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .footer-section h4 {
      color: var(--electric-blue);
      margin-bottom: 1rem;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: 0.5rem;
    }

    .footer-section a {
      color: var(--light-gray);
      text-decoration: none;
      transition: color 0.3s;
      cursor: pointer;
    }

    .footer-section a:hover {
      color: var(--electric-blue);
    }

    .social-icons {
      display: flex;
      gap: 1rem;
      font-size: 1.5rem;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid #333;
      color: #666;
    }

    /* Modal */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(10px);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 2rem;
    }

    .modal.active {
      display: flex;
    }

    .modal-content {
      background: var(--surface);
      padding: 3rem;
      border-radius: 25px;
      max-width: 500px;
      width: 100%;
      position: relative;
      border: 1px solid var(--border);
      box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
    }

    .modal-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--light-gray);
      background: none;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
    }

    .modal-close:hover {
      color: var(--electric-blue);
      background: rgba(0, 212, 255, 0.1);
    }

    .form-group {
      margin-bottom: 2rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.8rem;
      color: var(--light-gray);
      font-weight: 500;
      font-size: 0.95rem;
    }

    .form-group input {
      width: 100%;
      padding: 1rem 1.5rem;
      border: 2px solid var(--border);
      background: var(--charcoal);
      color: white;
      border-radius: 50px;
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      transition: all 0.3s;
    }

    .form-group input:focus {
      outline: none;
      border-color: var(--electric-blue);
      box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }

    /* User Profile */
    .user-profile {
      display: flex;
      align-items: center;
      gap: 1rem;
      cursor: pointer;
    }

    .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid var(--electric-blue);
    }

    /* Game Canvas */
    .game-canvas {
      background: var(--charcoal);
      border: 3px solid var(--electric-blue);
      border-radius: 15px;
      margin: 2rem auto;
      display: block;
      max-width: 100%;
      box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    }

    .game-controls {
      text-align: center;
      margin: 2rem 0;
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .game-score {
      font-size: 1.8rem;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin: 1.5rem 0;
      text-align: center;
      font-weight: 600;
    }

    /* Leaderboard */
    .leaderboard {
      background: var(--surface);
      border-radius: 20px;
      padding: 2.5rem;
      margin: 3rem 0;
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }

    .leaderboard::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--accent-gradient);
      opacity: 0.03;
      z-index: -1;
    }

    .leaderboard h3 {
      margin-bottom: 2rem;
    }

    .leaderboard-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.5rem;
      border-bottom: 1px solid var(--border);
      transition: all 0.3s;
      border-radius: 15px;
      margin-bottom: 0.5rem;
    }

    .leaderboard-item:last-child {
      border-bottom: none;
      margin-bottom: 0;
    }

    .leaderboard-item:hover {
      background: rgba(0, 212, 255, 0.05);
      transform: translateX(10px);
    }

    .leaderboard-rank {
      font-size: 1.8rem;
      font-weight: 700;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      min-width: 60px;
    }

    .leaderboard-user {
      display: flex;
      align-items: center;
      gap: 1.2rem;
      flex: 1;
    }

    .leaderboard-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: 2px solid var(--electric-blue);
      box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    }

    .leaderboard-score {
      font-weight: 600;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-size: 1.1rem;
    }

    /* Content Pages */
    .content-page {
      max-width: 900px;
      margin: 0 auto;
      padding: 6rem 2rem 4rem;
    }

    .content-page h2 {
      color: var(--electric-blue);
      margin: 2rem 0 1rem;
    }

    .content-page h3 {
      color: var(--neon-purple);
      margin: 1.5rem 0 0.5rem;
    }

    .content-page p {
      line-height: 1.8;
      margin-bottom: 1rem;
    }

    .content-page ul {
      margin-left: 2rem;
      margin-bottom: 1rem;
    }

    .content-page li {
      margin-bottom: 0.5rem;
      line-height: 1.6;
    }

    /* Loading State */
    .loading {
      text-align: center;
      padding: 2rem;
      color: var(--electric-blue);
    }

    .spinner {
      border: 3px solid #333;
      border-top: 3px solid var(--electric-blue);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      margin: 0 auto;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: var(--electric-blue);
      color: white;
      padding: 1rem 2rem;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      z-index: 3000;
      animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
      from {
        transform: translateX(400px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .hamburger {
        display: flex;
      }

      .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100% - 80px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        align-items: flex-start;
        gap: 2rem;
      }

      .nav-links.active {
        left: 0;
      }

      .auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
      }

      .auth-buttons .btn {
        width: 100%;
        padding: 1rem 2rem;
      }

      .hero {
        padding: 6rem 1.5rem 4rem;
      }

      .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
      }

      .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
      }

      .section {
        padding: 4rem 1.5rem;
      }

      .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
      }

      .games-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .community-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .countdown {
        gap: 1rem;
      }

      .countdown-value {
        font-size: 2rem;
      }

      .newsletter {
        padding: 3rem 2rem;
      }

      .newsletter-form {
        flex-direction: column;
        gap: 1.5rem;
      }

      .newsletter-form input {
        width: 100%;
        min-width: auto;
      }

      .modal-content {
        padding: 2rem;
        margin: 1rem;
      }

      .tournament-banner {
        padding: 3rem 2rem;
      }

      .leaderboard {
        padding: 2rem 1.5rem;
      }

      .game-controls {
        flex-direction: column;
        gap: 1rem;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 2rem;
      }

      .section-title {
        font-size: 1.8rem;
      }

      .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
      }

      .countdown-value {
        font-size: 1.5rem;
      }
    }

    .hidden {
      display: none !important;
    }
  