    :root {
      --color-sky: #070a13;
      --color-asphalt: #15181f;
      --color-headlight: #f39c12;
      --color-titan-red: #78281f;
      --color-steel: #bdc3c7;
      --color-forest: #27ae60;
      --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      user-select: none;
    }

    body {
      background-color: var(--color-sky);
      background-image: radial-gradient(circle at center, #0f172a 0%, #03050a 100%);
      color: #f5f6fa;
      overflow: hidden;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    /* Fondo de la Ciudad de Tokio (Estilo Cinemático Realista) */
    .tokyo-cityscape {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
      overflow: hidden;
      opacity: 0.25;
    }

    /* Luna Realista */
    .moon {
      position: absolute;
      top: 40px;
      right: 80px;
      width: 60px;
      height: 60px;
      background: #fdfefe;
      border-radius: 50%;
      box-shadow: 0 0 20px rgba(253, 254, 254, 0.4);
    }

    /* Siluetas de edificios y Torre de Tokio */
    .skyline-buildings {
      position: absolute;
      bottom: 120px;
      width: 100%;
      height: 180px;
      display: flex;
      align-items: flex-end;
      justify-content: space-around;
    }

    .building {
      width: 60px;
      background: #090c15;
      border-top-left-radius: 3px;
      border-top-right-radius: 3px;
    }

    .tokyo-tower {
      width: 30px;
      height: 150px;
      background: linear-gradient(to top, #c0392b 70%, #f39c12 100%);
      clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
      position: relative;
      margin-bottom: -5px;
    }

    /* Contenedor de Juego */
    #game-container {
      position: relative;
      width: 95%;
      max-width: 1024px;
      height: 680px;
      background: rgba(13, 17, 26, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      box-shadow: var(--shadow-soft);
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow: hidden;
      z-index: 2;
    }

    /* Cabecera Táctica */
    header {
      width: 100%;
      padding: 15px 30px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(10, 14, 23, 0.9);
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 10;
    }

    h1 {
      font-size: 1.4rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: #ffffff;
      font-weight: 800;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .audio-control {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 6px 14px;
      border-radius: 4px;
      color: #ffffff;
      cursor: pointer;
      font-size: 11px;
      font-weight: bold;
      transition: all 0.2s;
    }
    .audio-control:hover {
      background: #ffffff;
      color: #0d111a;
    }

    /* HUD Superior */
    #player-hud {
      display: flex;
      justify-content: space-between;
      width: 90%;
      margin: 10px 0;
      background: rgba(255, 255, 255, 0.02);
      padding: 12px 24px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      z-index: 5;
    }

    .hud-stat {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .hp-container {
      width: 120px;
      background: #151821;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      height: 12px;
      overflow: hidden;
    }

    .hp-bar {
      height: 100%;
      width: 100%;
      background: #c0392b;
      transition: width 0.3s ease;
    }

    .hp-bar.green {
      background: #27ae60;
    }

    .hp-bar.blue {
      background: #2980b9;
    }

    /* Selección de Personajes */
    #char-selection {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: #090c15;
      z-index: 100;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    #char-selection h2 {
      font-size: 1.6rem;
      letter-spacing: 1px;
      margin-bottom: 30px;
      color: #ffffff;
      text-align: center;
    }

    .char-cards {
      display: flex;
      gap: 24px;
      justify-content: center;
      padding: 10px;
      width: 90%;
      max-width: 800px;
    }

    .char-card {
      background: #121724;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      padding: 24px;
      flex: 1;
      text-align: center;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .char-card:hover {
      transform: translateY(-4px);
      border-color: rgba(255, 255, 255, 0.3);
      background: #181f30;
    }

    .char-card h3 {
      color: #ffffff;
      font-size: 1.15rem;
      margin-bottom: 10px;
      font-weight: 700;
    }

    .char-card p {
      font-size: 12px;
      color: #8a93a6;
      line-height: 1.5;
      margin-bottom: 15px;
    }

    .char-stat {
      font-size: 11px;
      font-weight: bold;
      color: var(--color-headlight);
      text-transform: uppercase;
    }

    /* Zona de Combate Central */
    .battlefield {
      display: flex;
      width: 100%;
      flex: 1;
      position: relative;
    }

    .enemy-panel {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 15px;
      position: relative;
    }

    .boss-zone-left {
      border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .enemy-header {
      width: 100%;
      text-align: center;
    }

    .enemy-header h3 {
      font-size: 1.1rem;
      letter-spacing: 1px;
      margin-bottom: 6px;
      color: #ffffff;
    }

    /* Godzilla */
    .godzilla-wrapper {
      position: relative;
      width: 220px;
      height: 220px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .godzilla-svg {
      pointer-events: none; /* Asegura que la silueta no bloquee eventos de clic */
    }

    /* Contenedor 3D para la rotación del Titán */
    .titan-container-3d {
      position: relative;
      width: 200px;
      height: 240px;
      perspective: 1000px; /* Habilita el espacio tridimensional */
    }

    /* Envoltura del Titán que rota */
    .titan-visual-wrapper {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Clase que hace que el titán se dé la vuelta */
    .titan-visual-wrapper.turned-around {
      transform: rotateY(180deg);
    }

    .titan-svg {
      width: 100%;
      height: 100%;
      pointer-events: none; /* Evita bloquear clics tácticos */
      transform: translateZ(0);
    }

    /* Botones de acción táctica */
    .titan-part {
      position: absolute;
      cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: bold;
      background: rgba(15, 20, 31, 0.85);
      color: #ffffff;
      transition: all 0.2s;
      text-transform: uppercase;
      z-index: 15;
    }

    .titan-part:hover {
      background: #ffffff;
      color: #000;
      border-color: #ffffff;
    }

    .arm-target {
      top: 90px;
      left: -15px;
      width: 65px;
      height: 90px;
      backface-visibility: visible;
      transform: translateZ(15px); /* Siempre por delante del pecho del titán */
    }

    .neck-target {
      top: 15px;
      left: 70px;
      width: 60px;
      height: 30px;
      border-color: #e74c3c;
      color: #e74c3c;
      opacity: 0.2;
      pointer-events: none;
      /* translateZ(-15px): Queda oculto a la espalda del titan cuando está de frente */
      /* rotateY(180deg): Cuando el titan se gira 180deg, el texto se lee al derecho */
      transform: translateZ(-15px) rotateY(180deg); 
    }

    .neck-target.active {
      opacity: 1;
      pointer-events: auto;
      background: rgba(192, 41, 43, 0.9);
      color: #ffffff;
      border-color: #ffffff;
      animation: alertBlink 1s infinite alternate;
      z-index: 25; /* Máxima prioridad visual al estar activo */
    }

    @keyframes alertBlink {
      0% { opacity: 0.7; }
      100% { opacity: 1; box-shadow: 0 0 15px rgba(192, 41, 43, 0.6); }
    }

    /* Avatar del jugador en combate */
    .player-avatar {
      position: absolute;
      bottom: 20px;
      right: 30px;
      width: 45px;
      height: 45px;
      background: #2c3e50;
      border-radius: 50%;
      border: 2px solid #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      z-index: 20;
      transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
      box-shadow: var(--shadow-soft);
    }

    .attack-btn {
      background: #c0392b;
      border: none;
      color: #fff;
      padding: 10px 20px;
      font-weight: bold;
      text-transform: uppercase;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
      width: 80%;
      letter-spacing: 1px;
    }

    .attack-btn:hover {
      background: #e74c3c;
    }

    /* AUTOPISTA DE TOKYO DRIFT (SHIBUYA HIGHWAY) */
    .driving-dashboard {
      width: 100%;
      height: 120px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      background: #090c14;
      display: flex;
      position: relative;
      overflow: hidden;
    }

    .highway-track {
      flex: 1;
      position: relative;
      background: #12151c;
      border-right: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      padding: 5px 0;
    }

    .highway-lane-line {
      width: 100%;
      height: 2px;
      background: repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(255, 255, 255, 0.1) 15px, rgba(255, 255, 255, 0.1) 30px);
    }

    .obstacle {
      position: absolute;
      width: 25px;
      height: 25px;
      background: #4a4e57;
      border-radius: 4px;
      border: 1px solid #6b707c;
      box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    }

    /* Vehículo de derrapes */
    .highway-car {
      position: absolute;
      left: 30px;
      width: 55px;
      height: 24px;
      background: #51221c; /* Tono deportivo oscuro */
      border-radius: 3px;
      border-left: 2px solid var(--color-headlight);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
      transition: top 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.2s ease-out;
    }

    /* Efecto de humo/chispas de neumáticos durante un derrape */
    .drift-particles-emitter {
      position: absolute;
      left: 10px;
      top: 50%;
      width: 10px;
      height: 10px;
      pointer-events: none;
    }

    /* Controles de la autopista */
    .driving-controls {
      width: 300px;
      background: #0f121a;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px;
      z-index: 5;
    }

    .drive-btn {
      background: #1a1e29;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.08);
      padding: 8px 16px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: bold;
      cursor: pointer;
      text-transform: uppercase;
      width: 100%;
      transition: all 0.2s;
    }

    .drive-btn:hover {
      background: #252b3a;
    }

    .drift-trigger-btn {
      background: var(--color-headlight);
      color: #000000;
      font-weight: 800;
      border: none;
      padding: 10px;
      border-radius: 4px;
      cursor: pointer;
      width: 100%;
      text-transform: uppercase;
      font-size: 12px;
      letter-spacing: 1px;
      box-shadow: 0 4px 10px rgba(243, 156, 18, 0.2);
      transition: all 0.2s;
    }

    .drift-trigger-btn:hover {
      background: #e67e22;
      box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    }

    /* Modales tácticos */
    .custom-modal {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(5, 7, 12, 0.96);
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 200;
    }

    .custom-modal.show {
      display: flex;
    }

    .modal-content {
      background: #0d1017;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 40px;
      text-align: center;
      max-width: 480px;
      width: 90%;
      box-shadow: var(--shadow-soft);
    }

    .modal-content h2 {
      margin-bottom: 15px;
      font-size: 20px;
      letter-spacing: 1px;
    }

    .modal-content p {
      font-size: 13px;
      color: #949eb3;
      line-height: 1.6;
      margin-bottom: 25px;
    }

    .modal-btn {
      background: #ffffff;
      color: #000;
      border: none;
      padding: 10px 24px;
      font-weight: bold;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 4px;
      transition: 0.2s;
    }

    .modal-btn:hover {
      background: #e2e2e2;
    }

    /* Partículas físicas de neumáticos o polvo */
    .dust-particle {
      position: absolute;
      width: 5px;
      height: 5px;
      background: rgba(255, 255, 255, 0.35);
      border-radius: 50%;
      pointer-events: none;
      z-index: 30;
    }

    .drift-smoke {
      position: absolute;
      width: 8px;
      height: 8px;
      background: rgba(200, 200, 200, 0.2);
      border-radius: 50%;
      pointer-events: none;
      z-index: 15;
    }

    /* Sacudida de cámara */
    .cinematic-shake {
      animation: shakeScreen 0.3s;
    }

    @keyframes shakeScreen {
      0% { transform: translate(1px, 1px) rotate(0deg); }
      20% { transform: translate(-2px, -1px) rotate(-0.5deg); }
      40% { transform: translate(-1px, 2px) rotate(0.5deg); }
      60% { transform: translate(2px, -1px) rotate(0deg); }
      80% { transform: translate(-1px, 1px) rotate(-0.5deg); }
      100% { transform: translate(1px, -1px) rotate(0deg); }
    }