
    :root {
      --bg-dark: #080b12;
      --primary-neon: #5b9fd4;
      --secondary-neon: #3ecfb8;
      --accent-neon: #e8b84a;
      --accent-pink: #c084fc;
      --glass-bg: rgba(255, 255, 255, 0.06);
      --glass-border: rgba(255, 255, 255, 0.1);
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --font-title: 'Outfit', sans-serif;
      --font-body: 'Inter', sans-serif;
      --card-glow: rgba(69, 182, 166, 0.2);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    body {
      background-color: var(--bg-dark);
      background-image:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(91, 159, 212, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 80%, rgba(62, 207, 184, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(192, 132, 252, 0.06) 0%, transparent 60%),
        linear-gradient(160deg, #0d1220 0%, #080b12 50%, #0a0f18 100%);
      font-family: var(--font-body);
      color: var(--text-main);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow-x: hidden;
      position: relative;
    }

    /* Orbes ambientales de fondo */
    .ambient-orbs {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      animation: floatOrb 12s ease-in-out infinite alternate;
    }

    .orb-1 {
      width: 320px; height: 320px;
      background: rgba(91, 159, 212, 0.15);
      top: -80px; left: -60px;
    }

    .orb-2 {
      width: 280px; height: 280px;
      background: rgba(62, 207, 184, 0.12);
      bottom: -60px; right: -40px;
      animation-delay: -4s;
    }

    .orb-3 {
      width: 200px; height: 200px;
      background: rgba(192, 132, 252, 0.1);
      top: 45%; left: 55%;
      animation-delay: -8s;
    }

    @keyframes floatOrb {
      0% { transform: translate(0, 0) scale(1); }
      100% { transform: translate(20px, -30px) scale(1.08); }
    }

    body::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
      background-size: 40px 40px;
      z-index: 0;
      pointer-events: none;
      animation: gridMove 25s linear infinite;
    }

    @keyframes gridMove {
      0% { transform: translateY(0); }
      100% { transform: translateY(40px); }
    }

    .scenario-card, .welcome-card, .player-card {
      position: relative;
    }

    .scenario-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 24px; height: 24px;
      border-top: 1.5px solid rgba(62, 207, 184, 0.5);
      border-left: 1.5px solid rgba(62, 207, 184, 0.5);
      pointer-events: none;
      border-top-left-radius: 14px;
    }

    .scenario-card::after {
      content: '';
      position: absolute;
      bottom: 0; right: 0;
      width: 24px; height: 24px;
      border-bottom: 1.5px solid rgba(62, 207, 184, 0.5);
      border-right: 1.5px solid rgba(62, 207, 184, 0.5);
      pointer-events: none;
      border-bottom-right-radius: 14px;
    }

    #phone-container {
      width: 100%;
      max-width: 400px;
      height: 100vh;
      max-height: 800px;
      background: rgba(8, 11, 18, 0.92);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.07);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      z-index: 1;
    }

    @media (min-width: 480px) {
      #phone-container {
        border-radius: 40px;
        height: 780px;
        border: 3px solid rgba(255, 255, 255, 0.08);
        box-shadow:
          0 25px 60px rgba(0, 0, 0, 0.85),
          0 0 50px rgba(62, 207, 184, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.06);
      }
    }

    .phone-notch {
      display: none;
      width: 110px;
      height: 22px;
      background: #000;
      border-radius: 20px;
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 20;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    @media (min-width: 480px) {
      .phone-notch { display: block; }
      .game-header { padding-top: 14px !important; }
      .screen-welcome { padding-top: 44px !important; }
      .screen-result { padding-top: 28px !important; }
    }

    .screen {
      position: absolute;
      inset: 0;
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      opacity: 0;
      transform: translateX(40px) scale(0.98);
      pointer-events: none;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1;
    }

    .screen.active {
      opacity: 1;
      transform: translateX(0) scale(1);
      pointer-events: auto;
      z-index: 2;
    }

    /* BIENVENIDA */
    .screen-welcome {
      justify-content: flex-start;
      gap: 0;
      padding: max(16px, env(safe-area-inset-top)) 20px 22px;
      padding-top: max(36px, calc(env(safe-area-inset-top) + 20px));
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-width: none;
    }

    .screen-welcome.active .welcome-hero {
      animation: heroEnter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    }

    .screen-welcome.active .welcome-card {
      animation: cardEnter 0.7s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    }

    .screen-welcome.active .welcome-actions {
      animation: cardEnter 0.7s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    }

    @keyframes heroEnter {
      from { opacity: 0; transform: translateY(-16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes cardEnter {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .screen-welcome::-webkit-scrollbar { display: none; }

    .welcome-top-glow {
      position: absolute;
      top: -60px;
      left: 50%;
      transform: translateX(-50%);
      width: 280px;
      height: 200px;
      background: radial-gradient(ellipse, rgba(62, 207, 184, 0.22) 0%, rgba(91, 159, 212, 0.1) 45%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .secret-admin-btn {
      position: absolute;
      bottom: 12px;
      left: 12px;
      width: 44px;
      height: 44px;
      background: transparent;
      border: none;
      cursor: default;
      z-index: 30;
      opacity: 0;
    }

    .welcome-hero {
      position: relative;
      text-align: center;
      padding: 12px 8px 18px;
      margin-bottom: 6px;
      z-index: 1;
      flex-shrink: 0;
    }

    .hero-sparkles {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .hero-sparkles span {
      position: absolute;
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: #fff;
      opacity: 0;
      animation: sparkle 3s ease-in-out infinite;
    }

    .hero-sparkles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
    .hero-sparkles span:nth-child(2) { top: 8%; right: 18%; animation-delay: 0.6s; width: 2px; height: 2px; }
    .hero-sparkles span:nth-child(3) { top: 35%; left: 6%; animation-delay: 1.2s; }
    .hero-sparkles span:nth-child(4) { top: 28%; right: 8%; animation-delay: 1.8s; width: 4px; height: 4px; }
    .hero-sparkles span:nth-child(5) { top: 5%; left: 45%; animation-delay: 2.4s; }

    @keyframes sparkle {
      0%, 100% { opacity: 0; transform: scale(0.5); }
      50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 8px rgba(62, 207, 184, 0.8); }
    }

    /* Sistema orbital del logo */
    .logo-orbit-system {
      position: relative;
      width: 130px;
      height: 130px;
      margin: 0 auto 14px;
    }

    .orbit-ring {
      position: absolute;
      top: 50%;
      left: 50%;
      border-radius: 50%;
      border: 1px solid transparent;
      transform: translate(-50%, -50%);
    }

    .orbit-ring-outer {
      width: 128px;
      height: 128px;
      border-color: rgba(62, 207, 184, 0.15);
      animation: orbitSpin 18s linear infinite;
    }

    .orbit-ring-inner {
      width: 96px;
      height: 96px;
      border-color: rgba(91, 159, 212, 0.2);
      border-style: dashed;
      animation: orbitSpin 12s linear infinite reverse;
    }

    @keyframes orbitSpin {
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }

    .orbit-node {
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      top: 50%;
      transform: translateY(-50%);
      box-shadow: 0 0 12px currentColor;
    }

    .orbit-node-left {
      left: 4px;
      background: var(--secondary-neon);
      color: var(--secondary-neon);
      animation: nodePulse 2s ease-in-out infinite;
    }

    .orbit-node-right {
      right: 4px;
      background: var(--primary-neon);
      color: var(--primary-neon);
      animation: nodePulse 2s ease-in-out 1s infinite;
    }

    @keyframes nodePulse {
      0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
      50% { transform: translateY(-50%) scale(1.35); opacity: 1; }
    }

    .orbit-connector {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 60px;
      height: 2px;
      transform: translate(-50%, -50%);
      background: linear-gradient(90deg, var(--secondary-neon), var(--primary-neon));
      opacity: 0.5;
      animation: connectorPulse 2.5s ease-in-out infinite;
    }

    @keyframes connectorPulse {
      0%, 100% { opacity: 0.35; width: 50px; }
      50% { opacity: 0.85; width: 68px; box-shadow: 0 0 12px rgba(62, 207, 184, 0.5); }
    }

    .logo-emblem {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 72px;
      height: 72px;
      border-radius: 22px;
      background: linear-gradient(145deg, rgba(62, 207, 184, 0.12) 0%, rgba(91, 159, 212, 0.08) 100%);
      border: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(62, 207, 184, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      animation: emblemFloat 4s ease-in-out infinite;
    }

    @keyframes emblemFloat {
      0%, 100% { transform: translate(-50%, -50%) translateY(0); }
      50% { transform: translate(-50%, -50%) translateY(-4px); }
    }

    .logo-emblem-svg {
      width: 44px;
      height: 44px;
      filter: drop-shadow(0 0 8px rgba(62, 207, 184, 0.4));
    }

    .hero-titles {
      position: relative;
      z-index: 1;
    }

    .hero-eyebrow {
      display: inline-block;
      font-size: 0.62rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--accent-neon);
      background: rgba(232, 184, 74, 0.1);
      border: 1px solid rgba(232, 184, 74, 0.22);
      padding: 5px 14px;
      border-radius: 20px;
      margin-bottom: 10px;
    }

    .hero-title {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      line-height: 1;
      margin-bottom: 8px;
    }

    .title-word {
      font-family: 'Syne', var(--font-title);
      font-size: 2rem;
      font-weight: 800;
      color: #fff;
      letter-spacing: -1px;
      text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }

    .title-accent {
      background: linear-gradient(135deg, #3ecfb8 0%, #5b9fd4 50%, #c084fc 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-size: 2.15rem;
      filter: drop-shadow(0 0 20px rgba(62, 207, 184, 0.25));
    }

    .hero-subtitle {
      font-size: 0.82rem;
      color: var(--text-muted);
      font-weight: 500;
      letter-spacing: 0.3px;
    }

    .neon-logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .logo-icon-wrap {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(62, 207, 184, 0.15) 0%, transparent 70%);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
      animation: pulseLogo 3s ease-in-out infinite;
    }

    .logo-star {
      width: 44px;
      height: 44px;
      fill: none;
      stroke: var(--secondary-neon);
      stroke-width: 2;
      filter: drop-shadow(0 0 12px var(--secondary-neon));
    }

    @keyframes pulseLogo {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    .neon-logo h1 {
      font-family: var(--font-title);
      font-size: 1.75rem;
      font-weight: 800;
      background: linear-gradient(135deg, #ffffff 20%, var(--secondary-neon) 60%, var(--primary-neon) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.5px;
      line-height: 1.15;
    }

    .neon-logo p {
      font-size: 0.75rem;
      color: var(--secondary-neon);
      text-transform: uppercase;
      letter-spacing: 6px;
      font-weight: 700;
      opacity: 0.9;
    }

    .welcome-card {
      background: linear-gradient(165deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 50%, rgba(62, 207, 184, 0.04) 100%);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 22px;
      padding: 18px;
      backdrop-filter: blur(24px);
      box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
      margin-bottom: 16px;
      position: relative;
      z-index: 1;
      flex-shrink: 0;
    }

    .welcome-greeting {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 14px;
    }

    .welcome-avatar {
      width: 50px;
      height: 50px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-title);
      font-size: 1.25rem;
      font-weight: 800;
      color: #fff;
      flex-shrink: 0;
      box-shadow:
        0 4px 20px rgba(62, 207, 184, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
      text-transform: uppercase;
      position: relative;
    }

    .welcome-avatar::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 18px;
      border: 1px solid rgba(62, 207, 184, 0.3);
      animation: avatarRing 3s ease-in-out infinite;
    }

    @keyframes avatarRing {
      0%, 100% { opacity: 0.4; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.04); }
    }

    .welcome-greeting-text {
      text-align: left;
      min-width: 0;
    }

    .welcome-hola {
      font-family: var(--font-title);
      font-size: 1.08rem;
      font-weight: 700;
      color: var(--text-main);
      line-height: 1.3;
    }

    .welcome-from {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .name-highlight {
      color: var(--secondary-neon);
      font-weight: 700;
    }

    .reward-teaser {
      display: flex;
      align-items: center;
      gap: 12px;
      background: linear-gradient(90deg, rgba(62, 207, 184, 0.1) 0%, rgba(192, 132, 252, 0.08) 100%);
      border: 1px solid rgba(62, 207, 184, 0.2);
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 12px;
    }

    .reward-teaser-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent-neon);
      flex-shrink: 0;
    }

    .reward-teaser-icon svg {
      width: 22px;
      height: 22px;
    }

    .reward-teaser-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      text-align: left;
    }

    .reward-teaser-text strong {
      font-family: var(--font-title);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text-main);
    }

    .reward-teaser-text span {
      font-size: 0.68rem;
      color: var(--text-muted);
      letter-spacing: 0.2px;
    }

    .welcome-desc {
      font-size: 0.8rem;
      line-height: 1.55;
      color: var(--text-muted);
      text-align: center;
    }

    .welcome-desc strong { color: var(--text-main); font-weight: 600; }

    .welcome-actions {
      margin-top: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
    }

    .welcome-hint {
      text-align: center;
      font-size: 0.65rem;
      color: rgba(148, 163, 184, 0.75);
      letter-spacing: 0.4px;
    }

    .glow-btn-main {
      position: relative;
      padding: 18px 22px;
      font-size: 0.95rem;
      border-radius: 16px;
      overflow: hidden;
      background: linear-gradient(135deg, #3a8fc4 0%, #2ec4a8 50%, #3a8fc4 100%);
      background-size: 200% 100%;
      animation: btnGradient 4s ease infinite;
      box-shadow:
        0 8px 28px rgba(62, 207, 184, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }

    @keyframes btnGradient {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .glow-btn-shimmer .btn-shine {
      position: absolute;
      top: 0;
      left: -100%;
      width: 60%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
      animation: btnShine 3s ease-in-out infinite;
    }

    @keyframes btnShine {
      0% { left: -100%; }
      40%, 100% { left: 150%; }
    }

    .glow-btn-shimmer span:not(.btn-shine),
    .glow-btn-shimmer svg {
      position: relative;
      z-index: 1;
    }

    .screen-welcome::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 50%;
      background: radial-gradient(ellipse 90% 80% at 50% -10%, rgba(62, 207, 184, 0.1) 0%, transparent 65%);
      pointer-events: none;
      z-index: 0;
    }

    @media (max-height: 700px) {
      .logo-orbit-system {
        width: 110px;
        height: 110px;
        margin-bottom: 10px;
      }
      .orbit-ring-outer { width: 108px; height: 108px; }
      .orbit-ring-inner { width: 82px; height: 82px; }
      .logo-emblem { width: 64px; height: 64px; border-radius: 18px; }
      .logo-emblem-svg { width: 38px; height: 38px; }
      .title-word { font-size: 1.7rem; }
      .title-accent { font-size: 1.85rem; }
      .welcome-hero { padding: 8px 8px 12px; }
      .welcome-card { padding: 14px; margin-bottom: 12px; }
      .glow-btn-main { padding: 15px 20px; }
    }

    .welcome-chip {
      display: inline-block;
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--accent-neon);
      background: rgba(232, 184, 74, 0.1);
      border: 1px solid rgba(232, 184, 74, 0.25);
      padding: 5px 12px;
      border-radius: 20px;
      margin-bottom: 14px;
    }

    .welcome-greeting-text p { margin-bottom: 0; }

    .welcome-card strong { color: var(--text-main); }

  .input-group { text-align: left; margin-top: 14px; }
  .input-group label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
  }
  .input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--font-body);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
  }
  .input-group input:focus {
    border-color: var(--secondary-neon);
    box-shadow: 0 0 16px rgba(62, 207, 184, 0.15);
  }

    .glow-btn {
      width: 100%;
      background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
      border: none;
      border-radius: 14px;
      padding: 16px 20px;
      font-family: var(--font-title);
      font-weight: 700;
      font-size: 0.92rem;
      color: #fff;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 6px 24px rgba(62, 207, 184, 0.25);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .glow-btn:hover, .glow-btn:active {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(62, 207, 184, 0.35);
    }

    .btn-ghost {
      background: transparent !important;
      border: 1px solid var(--glass-border) !important;
      color: var(--text-muted) !important;
      box-shadow: none !important;
    }

    .btn-accent {
      background: var(--secondary-neon) !important;
      color: #000 !important;
      flex: 1;
    }

    .admin-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(4, 6, 12, 0.88);
      backdrop-filter: blur(8px);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .admin-overlay.open {
      display: flex;
    }

    .admin-modal {
      width: 100%;
      max-width: 360px;
      background: linear-gradient(160deg, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 24, 0.99) 100%);
      border: 1px solid rgba(62, 207, 184, 0.25);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    }

    .admin-title {
      font-family: var(--font-title);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 4px;
    }

    .admin-subtitle {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-bottom: 18px;
    }

    .admin-status {
      color: #34d399;
      font-size: 0.8rem;
      margin-top: 12px;
      display: none;
    }

    .admin-actions {
      display: flex;
      gap: 10px;
      margin-top: 20px;
    }

    .admin-actions .glow-btn {
      flex: 1;
      padding: 13px;
      font-size: 0.8rem;
    }

    /* JUEGO */
    .game-header {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 8px;
    }

    .game-info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.72rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      font-weight: 700;
    }

    .sender-tag { color: #7eb8e0; }
    .level-tag { color: var(--secondary-neon); }

    .nodes-track-container {
      width: 100%;
      padding: 4px 0 8px;
    }

    .game-progress-bar {
      width: 100%;
      height: 6px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.04);
    }

    .game-progress-fill {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
      border-radius: 10px;
      transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 0 10px rgba(62, 207, 184, 0.35);
    }

    .options-list.compact .option-card {
      padding: 12px 14px;
    }

    .options-list.compact .option-text {
      font-size: 0.8rem;
    }

    .node {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--bg-dark);
      border: 2px solid rgba(255, 255, 255, 0.15);
      z-index: 2;
      transition: all 0.35s ease;
    }

    .node.completed {
      background: var(--primary-neon);
      border-color: var(--primary-neon);
      box-shadow: 0 0 10px rgba(91, 159, 212, 0.5);
    }

    .node.active {
      background: var(--secondary-neon);
      border-color: var(--secondary-neon);
      box-shadow: 0 0 14px rgba(62, 207, 184, 0.6);
      transform: scale(1.35);
      animation: pulseNode 1.5s infinite alternate;
    }

    @keyframes pulseNode {
      0% { transform: scale(1.2); }
      100% { transform: scale(1.45); }
    }

    .scenario-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 14px;
      margin-bottom: 8px;
    }

    .scenario-card {
      background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
      border: 1px solid var(--glass-border);
      border-left: 3px solid var(--secondary-neon);
      border-radius: 18px;
      padding: 22px;
      min-height: 140px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      transition: all 0.35s ease;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    }

    .scenario-badge {
      display: inline-flex;
      align-items: center;
      background: rgba(62, 207, 184, 0.1);
      border: 1px solid rgba(62, 207, 184, 0.25);
      color: var(--secondary-neon);
      font-family: var(--font-title);
      font-size: 0.62rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      padding: 6px 12px;
      border-radius: 20px;
      margin-bottom: 14px;
      width: fit-content;
    }

    .scenario-text {
      font-size: 0.94rem;
      line-height: 1.65;
      color: #e8edf3;
    }

    .scenario-text strong {
      color: var(--accent-neon);
      font-weight: 700;
    }

    .options-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .option-card {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 14px;
      padding: 15px;
      cursor: pointer;
      display: flex;
      align-items: flex-start;
      gap: 12px;
      transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      animation: slideInOption 0.4s ease backwards;
    }

    @keyframes slideInOption {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .option-icon-box {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      border: 1.5px solid rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
      transition: all 0.25s ease;
    }

    .unselected-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
    }

    .option-text {
      font-size: 0.84rem;
      line-height: 1.45;
      color: #c8d0db;
    }

    .option-title {
      font-family: var(--font-title);
      font-weight: 700;
      color: var(--text-main);
      font-size: 0.88rem;
    }

    .option-desc { color: var(--text-muted); }

    .option-card:hover {
      background: rgba(62, 207, 184, 0.07);
      border-color: rgba(62, 207, 184, 0.25);
      transform: translateX(3px);
    }

    .option-card.fade-out {
      opacity: 0.35;
      transform: scale(0.97);
      pointer-events: none;
    }

    .option-card.selected {
      background: linear-gradient(135deg, rgba(91, 159, 212, 0.14) 0%, rgba(62, 207, 184, 0.12) 100%);
      border-color: var(--secondary-neon);
      box-shadow: 0 0 20px rgba(62, 207, 184, 0.15);
    }

    .option-card.selected .option-icon-box {
      background: var(--secondary-neon);
      border-color: var(--secondary-neon);
      box-shadow: 0 0 10px var(--secondary-neon);
    }

    .option-card.selected .option-text,
    .option-card.selected .option-title { color: #fff; }
    .option-card.selected .option-desc { color: #d8e4ef; }

    /* CARGA */
    .screen-loading {
      justify-content: center;
      align-items: center;
      gap: 28px;
      text-align: center;
    }

    .loader-orb {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(62, 207, 184, 0.12) 0%, transparent 70%);
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      animation: pulseOrb 2s infinite ease-in-out;
    }

    .loader-ring {
      width: 80px;
      height: 80px;
      border: 3px solid transparent;
      border-top-color: var(--primary-neon);
      border-bottom-color: var(--secondary-neon);
      border-radius: 50%;
      position: absolute;
      animation: spinRing 1.2s infinite linear;
    }

    .loader-icon {
      width: 28px;
      height: 28px;
      fill: none;
      stroke: var(--secondary-neon);
      stroke-width: 2;
      filter: drop-shadow(0 0 6px var(--secondary-neon));
    }

    .loading-status {
      font-family: var(--font-title);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-main);
      min-height: 22px;
    }

    .loading-bar-container {
      width: 65%;
      height: 4px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      overflow: hidden;
    }

    .loading-bar-fill {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon), var(--accent-pink));
      border-radius: 10px;
      animation: fillBar 3.8s forwards cubic-bezier(0.1, 0.8, 0.3, 1);
    }

    /* RESULTADO */
    .screen-result {
      justify-content: flex-start;
      gap: 10px;
      padding-top: 12px;
      overflow-y: auto;
      scrollbar-width: none;
    }

    .screen-result::-webkit-scrollbar { display: none; }

    .result-header { text-align: center; }

    .result-title {
      font-family: var(--font-title);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 2.5px;
      color: var(--text-muted);
      font-weight: 700;
    }

    .result-subtitle {
      font-size: 0.7rem;
      color: rgba(62, 207, 184, 0.7);
      margin-top: 3px;
      letter-spacing: 0.5px;
    }

    /* Anillo de sintonía */
    .synergy-orb-container {
      position: relative;
      width: 110px;
      height: 110px;
      margin: 4px auto 6px;
    }

    .synergy-ring {
      width: 100%;
      height: 100%;
      transform: rotate(-90deg);
    }

    .synergy-ring-bg {
      fill: none;
      stroke: rgba(255, 255, 255, 0.06);
      stroke-width: 6;
    }

    .synergy-ring-fill {
      fill: none;
      stroke: var(--secondary-neon);
      stroke-width: 6;
      stroke-linecap: round;
      stroke-dasharray: 283;
      stroke-dashoffset: 283;
      transition: stroke-dashoffset 1.4s cubic-bezier(0.1, 0.8, 0.2, 1);
      filter: drop-shadow(0 0 6px rgba(62, 207, 184, 0.5));
    }

    .synergy-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .synergy-label {
      font-size: 0.55rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      font-weight: 700;
    }

    .synergy-value {
      font-family: var(--font-title);
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--secondary-neon);
      line-height: 1.1;
      text-shadow: 0 0 12px rgba(62, 207, 184, 0.4);
    }

    .player-card {
      background: linear-gradient(160deg, rgba(12, 16, 28, 0.95) 0%, rgba(6, 8, 16, 0.98) 100%);
      border: 2px solid var(--secondary-neon);
      border-radius: 20px;
      padding: 18px 18px 16px;
      position: relative;
      overflow: hidden;
      box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px var(--card-glow);
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: border-color 0.5s ease, box-shadow 0.5s ease;
    }

    .player-card::before {
      content: '';
      position: absolute;
      top: -40%;
      right: -30%;
      width: 180px;
      height: 180px;
      background: radial-gradient(circle, var(--card-glow) 0%, transparent 70%);
      pointer-events: none;
      border: none;
    }

    .player-card::after {
      content: none;
    }

    .rango-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      font-family: var(--font-title);
      font-size: 0.58rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 4px 10px;
      border-radius: 20px;
      border: 1px solid;
      z-index: 2;
    }

    .card-header {
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      padding-bottom: 12px;
      padding-top: 8px;
    }

    .player-name {
      font-family: var(--font-title);
      font-size: 1.3rem;
      font-weight: 800;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
    }

    .player-name svg {
      width: 15px;
      height: 15px;
    }

    .archetype-title {
      font-family: var(--font-title);
      font-size: 0.92rem;
      color: var(--accent-neon);
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.5px;
      margin-top: 4px;
      transition: color 0.5s ease;
    }

    .connection-quote {
      font-size: 0.78rem;
      font-style: italic;
      color: rgba(62, 207, 184, 0.85);
      margin-top: 8px;
      line-height: 1.4;
      padding: 0 4px;
    }

    .archetype-desc {
      font-size: 0.76rem;
      line-height: 1.5;
      color: var(--text-muted);
      text-align: center;
      margin-top: 8px;
    }

    .attributes-section {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .attr-row { display: flex; flex-direction: column; gap: 3px; }

    .attr-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.3px;
    }

    .attr-label { color: #8b9cb0; }
    .attr-val { color: var(--secondary-neon); font-family: var(--font-title); }

    .attr-bar-bg {
      width: 100%;
      height: 6px;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 6px;
      overflow: hidden;
    }

    .attr-bar-fill {
      width: 0%;
      height: 100%;
      border-radius: 6px;
      transition: width 1.4s cubic-bezier(0.1, 0.8, 0.2, 1);
      position: relative;
      overflow: hidden;
    }

    .attr-bar-fill::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
      animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    .fill-attunement { background: linear-gradient(90deg, #2db89e, var(--secondary-neon)); }
    .fill-complicity { background: linear-gradient(90deg, #3d7fb5, var(--primary-neon)); }
    .fill-loyalty { background: linear-gradient(90deg, #0d9668, #10b981); }
    .fill-adventure { background: linear-gradient(90deg, #c9922e, var(--accent-neon)); }

    .footer-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 6px;
      padding-bottom: 4px;
    }

    .share-btn {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 14px;
      font-family: var(--font-title);
      font-weight: 700;
      font-size: 0.82rem;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
    }

    .share-btn svg {
      width: 18px;
      height: 18px;
      fill: #fff;
    }

    .share-btn:hover { transform: translateY(-2px); }

    .copy-btn {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--glass-border);
      color: var(--text-muted);
      border-radius: 12px;
      padding: 12px;
      font-family: var(--font-body);
      font-size: 0.78rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .copy-btn:hover {
      background: rgba(255, 255, 255, 0.07);
      color: var(--text-main);
    }

    #toast {
      position: absolute;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: rgba(62, 207, 184, 0.95);
      color: #fff;
      padding: 11px 22px;
      border-radius: 24px;
      font-size: 0.75rem;
      font-weight: 600;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
      z-index: 10;
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      pointer-events: none;
      white-space: nowrap;
    }

    #toast.show { transform: translateX(-50%) translateY(0); }

    @keyframes pulseOrb {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }

    @keyframes spinRing {
      to { transform: rotate(360deg); }
    }

    @keyframes fillBar {
      to { width: 100%; }
    }
