
  :root {
    --fire:    #ff4d00;
    --fire2:   #ff8800;
    --fire3:   #ffcc00;
    --smoke:   #1a1a1a;
    --dark:    #0d0d0d;
    --surface: #141414;
    --surface2:#1e1e1e;
    --candy:   #e83e8c;
    --candy2:  #ff6eb4;
    --cream:   #f5e9d4;
    --muted:   #8a8a8a;
    --lens:    rgba(140,220,255,0.18);
    --pscar-gap: 16px;
  }

  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior:smooth; }

  :focus-visible {
    outline: 2px solid var(--fire3);
    outline-offset: 4px;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    background:
      linear-gradient(rgba(13,13,13,0.35), rgba(13,13,13,0.78)),
      url('website-background-ant-apocalypse-pixelart.png') center/cover fixed no-repeat,
      var(--dark);
    color: var(--cream);
    overflow-x: clip; /* clip en lugar de hidden: no crea scroll context, permite overflow visible en hijos */
  }

  /* ===== LENS OVERLAY ===== */
  #lensOverlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  /* ===== NAVBAR ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(13,13,13,0.92);
    border-bottom: 1px solid rgba(255,77,0,0.2);
    backdrop-filter: blur(10px);
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .nav-logo-icon { font-size: 28px; }

  .nav-logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--fire2), var(--fire3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .nav-logo-sub {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    text-transform: uppercase;
    display: block;
    margin-top: -6px;
    -webkit-text-fill-color: var(--muted);
  }

  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
  }

  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--fire2); }

  .nav-cta {
    background: var(--fire) !important;
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 3px;
    font-weight: 700 !important;
    transition: background 0.2s, transform 0.1s !important;
  }

  .nav-cta:hover { background: var(--fire2) !important; transform: translateY(-1px); }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 110px;
  }

  .hero-tag {
    display: inline-block;
    background: rgba(255,77,0,0.12);
    border: 1px solid rgba(255,77,0,0.35);
    color: var(--fire2);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 2px;
    margin-bottom: 28px;
    animation: fadeUp 0.7s ease both;
  }

  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(64px, 11vw, 142px);
    letter-spacing: 6px;
    line-height: 0.85;
    background: linear-gradient(160deg, #fff 0%, var(--fire3) 40%, var(--fire2) 70%, var(--fire) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.7s ease 0.1s both;
    filter: drop-shadow(0 0 40px rgba(255,136,0,0.5));
    margin-bottom: 10px;
  }
  .hero-title span { display: block; }

  .hero-sub {
    font-size: clamp(16px, 3.5vw, 22px);
    letter-spacing: 6px;
    color: var(--muted);
    text-transform: uppercase;
    animation: fadeUp 0.7s ease 0.2s both;
    margin-bottom: 28px;
  }

  .hero-desc {
    max-width: 500px;
    font-size: 19px;
    line-height: 1.7;
    color: #c4b8a8;
    animation: fadeUp 0.7s ease 0.3s both;
    margin-bottom: 44px;
  }

  .hero-desc strong { color: var(--fire2); font-weight: 700; }

  .hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.7s ease 0.4s both;
  }

  .hero-video-frame {
    width: min(820px, 94vw);
    margin-top: 48px;
    aspect-ratio: 16 / 9;
    padding: clamp(42px, 5.6vw, 76px) clamp(46px, 6vw, 84px);
    background: transparent;
    filter: drop-shadow(0 24px 46px rgba(0,0,0,0.5)) drop-shadow(0 0 18px rgba(255,116,0,0.18));
    position: relative;
    animation: fadeUp 0.7s ease 0.5s both;
  }

  .hero-video-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('gameplay-video-frame-ant-pixelart-transparent.png') center/100% 100% no-repeat;
    pointer-events: none;
    z-index: 2;
  }

  .hero-video-screen {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
      radial-gradient(circle at 50% 45%, rgba(255,136,0,0.16), transparent 28%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 6px),
      linear-gradient(160deg, rgba(35,16,5,0.92), rgba(4,4,4,0.96));
    z-index: 1;
  }

  .hero-video-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(255,77,0,0.08), transparent 18%, transparent 82%, rgba(255,77,0,0.08)),
      radial-gradient(circle at center, transparent 0 54%, rgba(0,0,0,0.44) 100%);
    pointer-events: none;
  }

  .video-play-mark {
    width: 78px;
    height: 78px;
    border: 1px solid rgba(255,184,77,0.7);
    background: rgba(0,0,0,0.42);
    box-shadow: 0 0 30px rgba(255,77,0,0.32);
    display: grid;
    place-items: center;
    z-index: 1;
  }

  .video-play-mark::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 25px solid var(--fire2);
    margin-left: 6px;
    filter: drop-shadow(0 0 12px rgba(255,136,0,0.7));
  }

  .video-frame-label {
    position: absolute;
    left: 18px;
    bottom: 14px;
    color: rgba(255,234,209,0.7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    z-index: 1;
  }

  /* ===== BUTTONS ===== */
  .btn-fire {
    background: linear-gradient(135deg, var(--fire), var(--fire2));
    color: #fff;
    padding: 16px 38px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    display: inline-block;
  }

  .btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,77,0,0.45);
  }

  .btn-outline {
    background: transparent;
    color: var(--cream);
    padding: 16px 38px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
  }

  .btn-outline:hover {
    border-color: var(--fire2);
    color: var(--fire2);
    transform: translateY(-2px);
  }

  /* ===== TICKER ===== */
  .ticker {
    position: relative;
    z-index: 10;
    background: rgba(255,77,0,0.1);
    border-top: 1px solid rgba(255,77,0,0.25);
    border-bottom: 1px solid rgba(255,77,0,0.25);
    padding: 9px 0;
    overflow: hidden;
    display: flex;
  }

  .ticker-badge {
    background: var(--fire);
    color: #fff;
    padding: 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
  }

  .ticker-scroll {
    overflow: hidden;
    flex: 1;
    display: flex;
  }

  .ticker-track {
    display: flex;
    gap: 64px;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
  }

  .ticker-item {
    font-size: 15px;
    letter-spacing: 1px;
    color: #c4a882;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .ticker-item::before { content: '🔥'; font-size: 12px; }

  /* ===== SECTIONS ===== */
  section { position: relative; z-index: 10; }

  .s-label {
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--fire2);
    font-weight: 700;
    margin-bottom: 10px;
  }

  .s-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 6vw, 60px);
    letter-spacing: 3px;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 16px;
  }

  .s-body {
    font-size: clamp(17px, 1.2vw, 20px);
    line-height: 1.9;
    color: var(--muted);
    max-width: 520px;
  }

  .amber-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--fire), transparent);
    margin-bottom: 24px;
  }

  /* ===== HOW IT WORKS ===== */
  .howto {
    padding: 120px 48px;
    background: rgba(13,13,13,0.8);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,77,0,0.1);
  }

  .howto-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 12px;
  }

  .step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid rgba(255,77,0,0.1);
    border-radius: 4px;
    background: rgba(255,77,0,0.04);
    transition: all 0.3s;
  }

  .step:hover {
    border-color: rgba(255,77,0,0.3);
    background: rgba(255,77,0,0.08);
    transform: translateX(4px);
  }

  .step-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--fire);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.5;
  }

  .step-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--fire3);
    margin-bottom: 6px;
  }

  .step-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
  }

  /* PHONE MOCKUP */
  .phone-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .phone {
    width: 280px;
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 36px;
    padding: 16px 12px;
    box-shadow:
      0 0 0 6px #111,
      0 0 0 7px #2a2a2a,
      0 40px 80px rgba(0,0,0,0.6),
      0 0 60px rgba(255,77,0,0.15);
    position: relative;
  }

  .phone-notch {
    width: 80px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 0 0 10px 10px;
    margin: 0 auto 12px;
  }

  .phone-screen {
    background: #0d0d0d;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    position: relative;
  }

  .phone-canvas {
    width: 100%;
    height: 100%;
  }

  .phone-ui-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
  }

  .phone-top-bar {
    padding: 10px 12px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .candy-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(232,62,140,0.15);
    border: 1px solid rgba(232,62,140,0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--candy2);
  }

  .level-tag {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--fire2);
    text-transform: uppercase;
    background: rgba(255,136,0,0.1);
    border: 1px solid rgba(255,136,0,0.3);
    border-radius: 20px;
    padding: 3px 8px;
  }

  .phone-bottom-bar {
    margin-top: auto;
    padding: 8px 10px;
    background: rgba(0,0,0,0.6);
    display: flex;
    gap: 6px;
  }

  .upg-pill {
    flex: 1;
    background: rgba(255,77,0,0.12);
    border: 1px solid rgba(255,77,0,0.25);
    border-radius: 6px;
    padding: 5px 4px;
    text-align: center;
    font-size: 8px;
    color: var(--muted);
  }

  .upg-pill strong { display: block; color: var(--fire2); font-size: 9px; margin-bottom: 2px; }

  /* ===== FEATURES ===== */
  .features {
    padding: 120px 48px;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,77,0,0.08);
    border-bottom: 1px solid rgba(255,77,0,0.08);
  }

  .features-inner { max-width: 1200px; margin: 0 auto; }

  .features-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
  }

  .feat-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .feat-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 28px 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .feat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--fire), var(--fire3), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }

  .feat-card:hover {
    border-color: rgba(255,77,0,0.2);
    background: var(--surface2);
    transform: translateY(-4px);
  }

  .feat-card:hover::after { transform: scaleX(1); }

  .feat-icon { font-size: 32px; margin-bottom: 14px; display: block; }
  .feat-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--fire2);
    margin-bottom: 8px;
  }

  .feat-desc { font-size: 16px; line-height: 1.6; color: var(--muted); }

  /* ===== STATS ===== */
  .stats-section {
    padding: 80px 48px;
    background: rgba(255,77,0,0.04);
    border-top: 1px solid rgba(255,77,0,0.12);
    border-bottom: 1px solid rgba(255,77,0,0.12);
  }

  .stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
  }

  .stat-block {
    padding: 28px 12px;
    border: 1px solid rgba(255,77,0,0.12);
    border-radius: 4px;
    background: rgba(255,77,0,0.04);
  }

  .stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--fire3), var(--fire2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

  /* ===== ENEMIES ===== */
  .enemies {
    padding: 120px 48px;
    background: rgba(13,13,13,0.8);
    backdrop-filter: blur(6px);
  }

  .enemies-inner { max-width: 1200px; margin: 0 auto; }

  .enemies-header { margin-bottom: 56px; }

  .enemy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .enemy-panel {
    display: none;
    animation: fadeIn 0.35s ease forwards;
  }

  .enemy-panel.active {
    display: block;
  }

  .enemy-panels {
    min-height: 430px;
  }

  .enemy-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    min-height: 380px;
  }

  .enemy-card:hover {
    border-color: rgba(255,77,0,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  }

  .enemy-visual {
    background: var(--surface2);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
  }

  .enemy-visual img {
    max-height: 88%;
    width: auto;
    display: block;
    filter: saturate(0.9);
  }

  .enemy-visual img.red {
    filter: hue-rotate(0deg) saturate(1.4) brightness(1.05);
  }

  .enemy-visual img.red-dark {
    filter: hue-rotate(-10deg) saturate(1.3) brightness(0.95);
  }

  .enemy-visual img.black {
    filter: grayscale(1) brightness(0.75) contrast(1.2);
    mix-blend-mode: screen;
  }

  .enemy-visual img.black-shiny {
    filter: grayscale(1) brightness(0.55) contrast(1.4);
    mix-blend-mode: screen;
  }

  /* La imagen ya es roja — obrera sin cambios, guerrera más oscura */
  .enemy-visual img.red-ant {
    filter: brightness(1.05) saturate(1.2);
    mix-blend-mode: screen;
  }

  .enemy-visual img.red-ant-dark {
    filter: brightness(0.7) saturate(1.4) contrast(1.15);
    mix-blend-mode: screen;
  }

  .enemy-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
  }

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

  .enemy-body { padding: 18px 20px; }

  .enemy-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--cream);
    margin-bottom: 6px;
  }

  .enemy-desc { font-size: 15px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }

  .enemy-stats { display: flex; gap: 10px; flex-wrap: wrap; }

  .enemy-stat {
    background: rgba(255,77,0,0.08);
    border: 1px solid rgba(255,77,0,0.15);
    border-radius: 3px;
    padding: 3px 9px;
    font-size: 14px;
    color: var(--fire2);
    font-weight: 700;
    letter-spacing: 1px;
  }

  .candy-stat {
    background: rgba(232,62,140,0.08);
    border-color: rgba(232,62,140,0.2);
    color: var(--candy2);
  }

  /* ===== ENEMY CARDS REDISEÑADAS ===== */

  /* Pestañas mejoradas */
  .enemy-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
  }

  .enemy-tab {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--muted);
    border-radius: 4px;
    padding: 14px 32px;
    min-width: 200px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 17px;
    letter-spacing: 2px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  .enemy-tab::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--fire), var(--fire3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }

  .enemy-tab.active::before,
  .enemy-tab:hover::before { transform: scaleX(1); }

  .enemy-tab.active {
    background: rgba(255,77,0,0.1);
    border-color: rgba(255,77,0,0.35);
    color: var(--fire2);
  }

  .enemy-tab:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    color: var(--cream);
  }

  /* Cards mejoradas con diseño visual destacado */
  .enemy-card-red,
  .enemy-card-red-dark {
    border: 1px solid rgba(231,76,60,0.2);
    background: linear-gradient(160deg, #1a0d0d 0%, var(--surface) 60%);
    position: relative;
    overflow: hidden;
  }

  .enemy-card-red::before,
  .enemy-card-red-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(231,76,60,0.5), transparent);
  }

  .enemy-card-red:hover {
    border-color: rgba(231,76,60,0.5);
    box-shadow: 0 16px 40px rgba(231,76,60,0.15), 0 0 0 1px rgba(231,76,60,0.1);
    transform: translateY(-6px);
  }

  .enemy-card-red-dark:hover {
    border-color: rgba(192,57,43,0.6);
    box-shadow: 0 16px 40px rgba(192,57,43,0.2), 0 0 0 1px rgba(192,57,43,0.12);
    transform: translateY(-6px);
  }

  /* Visual area mejorada */
  .enemy-visual-red {
    background: radial-gradient(ellipse at center, rgba(200,30,20,0.18) 0%, rgba(10,5,5,0.9) 75%) !important;
    border-bottom: 1px solid rgba(231,76,60,0.15);
    height: 220px !important;
    position: relative;
  }

  .enemy-visual-red-dark {
    background: radial-gradient(ellipse at center, rgba(140,15,10,0.25) 0%, rgba(8,3,3,0.95) 75%) !important;
    border-bottom: 1px solid rgba(192,57,43,0.2);
    height: 220px !important;
    position: relative;
  }

  /* Badge de tipo en esquina */
  .enemy-badge-type {
    position: absolute;
    top: 12px; right: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    padding: 3px 8px;
    z-index: 5;
    backdrop-filter: blur(4px);
  }

  /* Tag de rol (obrera / guerrera) */
  .enemy-role-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 8px;
  }

  .role-worker {
    background: rgba(241,196,15,0.12);
    border: 1px solid rgba(241,196,15,0.3);
    color: #f1c40f;
  }

  .role-warrior {
    background: rgba(127,140,141,0.12);
    border: 1px solid rgba(127,140,141,0.35);
    color: #bdc3c7;
  }

  /* SVG de hormigas */
  .enemy-svg {
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    position: relative;
    z-index: 2;
    transition: transform 0.3s, filter 0.3s;
  }

  .enemy-card:hover .enemy-svg {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 8px 20px rgba(200,40,20,0.4));
  }

  /* Glows de fondo */
  .enemy-glow-red {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(231,76,60,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
  }

  .enemy-glow-red-dark {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(150,20,10,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
  }

  .enemy-glow-red-dark {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(150,20,10,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
  }

  /* ===== BOSS TAB & CARDS ===== */
  .enemy-tab-boss {
    background: linear-gradient(135deg, rgba(60,0,80,0.3), rgba(120,0,0,0.3));
    border-color: rgba(180,0,255,0.3) !important;
    color: #e040fb !important;
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .enemy-tab-boss.active,
  .enemy-tab-boss:hover {
    background: linear-gradient(135deg, rgba(100,0,130,0.5), rgba(160,0,0,0.4)) !important;
    border-color: #e040fb !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(200,0,255,0.25), 0 0 6px rgba(255,60,0,0.2) !important;
  }

  .enemy-card-boss-black,
  .enemy-card-boss-red {
    border: 1px solid rgba(180,0,255,0.25);
    background: linear-gradient(160deg, rgba(20,0,30,0.95), rgba(15,0,0,0.95));
    position: relative;
    overflow: hidden;
  }
  .enemy-card-boss-black::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(120,0,200,0.08), transparent 60%);
    pointer-events: none;
  }
  .enemy-card-boss-red::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,40,0,0.10), transparent 60%);
    pointer-events: none;
  }
  .enemy-card-boss-black:hover {
    border-color: rgba(180,0,255,0.6);
    box-shadow: 0 0 30px rgba(150,0,255,0.2), 0 12px 40px rgba(0,0,0,0.6);
    transform: translateY(-5px);
  }
  .enemy-card-boss-red:hover {
    border-color: rgba(255,60,0,0.7);
    box-shadow: 0 0 30px rgba(255,60,0,0.25), 0 12px 40px rgba(0,0,0,0.6);
    transform: translateY(-5px);
  }

  .enemy-visual-boss {
    background: radial-gradient(ellipse at 50% 60%, rgba(80,0,120,0.35) 0%, rgba(5,0,15,0.95) 100%);
    min-height: 200px;
  }
  .enemy-visual-boss-red {
    background: radial-gradient(ellipse at 50% 60%, rgba(180,30,0,0.35) 0%, rgba(15,0,0,0.95) 100%);
    min-height: 200px;
  }

  .boss-badge {
    background: linear-gradient(90deg, #b8860b, #ffe066, #b8860b) !important;
    color: #1a0a00 !important;
    font-weight: 800;
    border: none;
    box-shadow: 0 0 12px rgba(255,215,0,0.4);
    animation: bossBadgePulse 2s ease-in-out infinite;
  }
  @keyframes bossBadgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.4); }
    50%       { box-shadow: 0 0 22px rgba(255,215,0,0.75); }
  }

  .role-boss {
    background: linear-gradient(90deg, rgba(120,0,180,0.3), rgba(80,0,120,0.3));
    border: 1px solid rgba(180,0,255,0.4);
    color: #e040fb;
  }
  .role-boss-red {
    background: linear-gradient(90deg, rgba(200,30,0,0.3), rgba(120,0,0,0.3));
    border: 1px solid rgba(255,60,0,0.4);
    color: #ff6b35;
  }

  .enemy-glow-boss-black {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(150,0,255,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
  }
  .enemy-glow-boss-red {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(255,60,0,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
  }

  /* ===== UPGRADES PREVIEW ===== */
  .upgrades {
    padding: 120px 48px;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,77,0,0.08);
  }

  .upgrades-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
  }

  .upg-list { display: flex; flex-direction: column; gap: 12px; }

  .upg-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    transition: all 0.25s;
    cursor: pointer;
  }

  .upg-row:hover {
    background: var(--surface2);
    border-color: rgba(255,77,0,0.25);
    transform: translateX(4px);
  }

  .upg-emoji { font-size: 22px; flex-shrink: 0; }

  .upg-info { flex: 1; }
  .upg-name { font-size: 17px; font-weight: 700; color: var(--cream); letter-spacing: 1px; }
  .upg-desc { font-size: 16px; color: var(--muted); }

  .upg-cost-badge {
    background: rgba(232,62,140,0.12);
    border: 1px solid rgba(232,62,140,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--candy2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* ===== DOWNLOAD / PRE-REG ===== */
  .download {
    padding: 120px 48px;
    background: rgba(255,77,0,0.05);
    border-top: 1px solid rgba(255,77,0,0.15);
    text-align: center;
  }

  .download-inner { max-width: 640px; margin: 0 auto; }

  .download-icon {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
    animation: flicker 2.5s ease-in-out infinite;
  }

  .platform-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
  }

  .platform-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 12px 24px;
    color: var(--cream);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.2s;
  }

  .platform-btn:hover {
    border-color: var(--fire2);
    color: var(--fire2);
    transform: translateY(-2px);
  }

  .platform-btn .pbig { font-size: 22px; }

  .email-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
  }

  .email-input {
    flex: 1;
    background: rgba(255,77,0,0.07);
    border: 1px solid rgba(255,77,0,0.2);
    color: var(--cream);
    padding: 14px 18px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s;
  }

  .email-input:focus { border-color: var(--fire2); }
  .email-input::placeholder { color: var(--muted); }

  .form-message {
    flex-basis: 100%;
    min-height: 20px;
    margin-top: 2px;
    font-size: 15px;
    color: var(--muted);
    text-align: left;
  }

  .form-message-error { color: #ff8a65; }
  .form-message-success { color: #8be28b; }

  /* ===== NEWS ===== */
  .news {
    padding: 100px 0 60px;
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,77,0,0.08);
    overflow: visible; /* no cortar las cards laterales */
  }

  .news-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
  }

  .news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
  }

  /* ===== CARRUSEL PLAYSTATION FULLWIDTH ===== */
  .pscar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: visible;
  }

  /* Las flechas van dentro, superpuestas */
  .pscar-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }

  .pscar-prev { left: 24px; }
  .pscar-next { right: 24px; }

  .pscar-arrow:hover {
    background: var(--fire);
    border-color: var(--fire);
    box-shadow: 0 0 20px rgba(255,77,0,0.5);
    transform: translateY(-50%) scale(1.1);
  }

  .pscar-viewport {
    width: 100%;
    overflow: clip; /* clip no crea scroll context como hidden */
    padding: 16px 0 20px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  }

  .pscar-track {
    display: flex;
    gap: var(--pscar-gap);
    will-change: transform;
  }

  /* Card: muy ancha, baja, cinematográfica */
  .pscar-card {
    flex-shrink: 0;
    /* Central: ~72% del ancho de pantalla. Las laterales asoman ~14% cada lado */
    width: 72vw;
    max-width: 1100px;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1),
                opacity   0.5s ease,
                box-shadow 0.5s ease;
    box-shadow: 0 6px 28px rgba(0,0,0,0.55);
    position: relative;
  }

  .pscar-card-active {
    box-shadow: 0 12px 48px rgba(0,0,0,0.8);
    cursor: default;
  }

  /* Toda la card ES la imagen — texto superpuesto */
  .pscar-img {
    position: relative;
    width: 100%;
    aspect-ratio: 21/8;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* mantener para que los glows no desborden */
  }

  .pscar-emoji {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 110px;
    line-height: 1;
    filter: drop-shadow(0 0 40px rgba(255,100,0,0.6));
    z-index: 3;
    transition: transform 0.5s ease;
    user-select: none;
    pointer-events: none;
  }

  .pscar-emoji-sm {
    font-size: 52px;
    filter: drop-shadow(0 0 16px rgba(255,200,0,0.4));
    opacity: 0.7;
  }

  .pscar-card-active .pscar-emoji:not(.pscar-emoji-sm) {
    transform: translate(-50%, -50%) scale(1.08);
  }

  /* Gradiente oscuro en la parte inferior para que se lea el texto */
  /* Escena visual dentro de cada card */
  .pscar-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .pscar-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .pscar-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
  }

  /* Líneas decorativas tipo grid/tech de fondo */
  .pscar-deco-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.07;
    background-image:
      linear-gradient(0deg,   transparent 49%, currentColor 49%, currentColor 51%, transparent 51%),
      linear-gradient(90deg,  transparent 49%, currentColor 49%, currentColor 51%, transparent 51%);
    background-size: 60px 60px;
  }
  .pscar-deco-lines-fire   { color: #ff6000; }
  .pscar-deco-lines-green  { color: #00cc55; }
  .pscar-deco-lines-blue   { color: #6688ff; }
  .pscar-deco-lines-gold   { color: #ffcc00; }
  .pscar-deco-lines-purple { color: #cc44ff; }

  /* Fondos por card */
  .pscar-img-1 { background: radial-gradient(ellipse at 40% 60%, #2a0d00, #0d0500) !important; }
  .pscar-img-2 { background: radial-gradient(ellipse at 40% 60%, #001a08, #000d04) !important; }
  .pscar-img-3 { background: radial-gradient(ellipse at 40% 60%, #080820, #04040e) !important; }
  .pscar-img-4 { background: radial-gradient(ellipse at 40% 60%, #1a1400, #0d0a00) !important; }
  .pscar-img-5 { background: radial-gradient(ellipse at 40% 60%, #130018, #07000d) !important; }

  .pscar-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.05) 0%,
      rgba(0,0,0,0.15) 40%,
      rgba(0,0,0,0.75) 70%,
      rgba(0,0,0,0.92) 100%
    );
    z-index: 2;
  }

  /* Texto superpuesto sobre la imagen (como PS) */
  .pscar-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 20px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
  }

  .pscar-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  }

  .pscar-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 520px;
  }

  /* Cards laterales: sólo se ve la imagen, sin texto visible */
  .pscar-card:not(.pscar-card-active) .pscar-body {
    opacity: 0;
    transition: opacity 0.3s;
  }
  .pscar-card:not(.pscar-card-active) .pscar-img-gradient {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
  }

  /* Dots */
  .pscar-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: 4px;
  }

  .pscar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
  }

  .pscar-dot.active {
    background: var(--fire);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255,77,0,0.5);
  }

  /* Mantener estilos compartidos */
  .news-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fire2);
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  }

  .news-date {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  }

  /* ===== FOOTER ===== */
  footer {
    position: relative;
    z-index: 10;
    padding: 44px 48px;
    border-top: 1px solid rgba(255,77,0,0.12);
    background: rgba(5,5,5,0.98);
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--fire2);
  }

  .footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }

  .footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--fire2); }

  .footer-copy { font-size: 15px; color: var(--muted); }

  .social-row { display: flex; gap: 10px; }

  .social-btn {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,77,0,0.2);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
  }

  .social-btn:hover {
    border-color: var(--fire2);
    color: var(--fire2);
    background: rgba(255,77,0,0.1);
  }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

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

  @keyframes flicker {
    0%,100% { filter: drop-shadow(0 0 10px rgba(255,136,0,0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(255,77,0,0.9)); }
  }

  @keyframes antWalk {
    0% { transform: translateX(-80px); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 80px)); opacity: 0; }
  }

  /* Ant parade */
  .ant-parade { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; pointer-events: none; height: 50px; }
  .ant {
    position: absolute;
    bottom: 2px;
    width: 30px;
    height: 30px;
    background: url('Hormiguita.png') center/contain no-repeat;
    animation: antWalk linear infinite;
  }

  /* Responsive */
  @media (max-width: 900px) {
    nav { padding: 0 20px; }
    .nav-links {
      display: flex;
      gap: 10px;
      margin-left: 16px;
    }
    .nav-links li:not(:nth-last-child(-n+2)) { display: none; }
    .nav-links a {
      font-size: 12px;
      letter-spacing: 1.2px;
    }
    .nav-ranking,
    .nav-cta {
      padding: 7px 12px !important;
      white-space: nowrap;
    }
    .howto-inner, .upgrades-inner { grid-template-columns: 1fr; gap: 40px; }
    .feat-grid, .enemy-grid { grid-template-columns: 1fr 1fr; }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .pscar-card { width: 80vw; }
    .pscar-arrow { width: 36px; height: 36px; margin: 0 8px; }
    .news-header { padding: 0 24px; }
    .email-row { flex-direction: column; }
    .footer-inner { flex-direction: column; text-align: center; }
    .news-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  }

  @media (max-width: 600px) {
    .feat-grid, .enemy-grid { grid-template-columns: 1fr; }
  }

  /* ===== ANDROID / MÓVIL (<= 480px) ===== */
  @media (max-width: 480px) {
    /* Navbar */
    nav {
      padding: 0 16px;
      height: 56px;
    }
    .nav-logo-text { font-size: 22px; letter-spacing: 3px; }
    .nav-logo-icon { font-size: 24px; }
    .nav-logo-sub { display: none; }
    .nav-links { margin-left: auto; }
    .nav-ranking { display: none; }
    .nav-cta {
      padding: 7px 10px !important;
      font-size: 13px !important;
    }

    /* Hero */
    .hero {
      padding: 72px 20px 92px;
    }
    .hero-tag {
      font-size: 13px;
      letter-spacing: 3px;
      padding: 5px 14px;
    }
    .hero-title {
      font-size: clamp(48px, 12vw, 86px);
      letter-spacing: 3px;
    }
    .hero-sub {
      font-size: 15px;
      letter-spacing: 4px;
    }
    .hero-desc {
      font-size: 17px;
      line-height: 1.65;
    }
    .hero-btns {
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
    .btn-fire, .btn-outline {
      width: 100%;
      max-width: 320px;
      text-align: center;
      font-size: 16px;
      padding: 15px 24px;
    }
    .hero-video-frame {
      width: 100%;
      margin-top: 38px;
      padding: clamp(28px, 7vw, 42px) clamp(30px, 7.5vw, 46px);
    }
    .hero-video-screen {
      min-height: 150px;
    }
    .video-play-mark {
      width: 62px;
      height: 62px;
    }
    .video-play-mark::before {
      border-top-width: 14px;
      border-bottom-width: 14px;
      border-left-width: 21px;
    }
    .video-frame-label {
      font-size: 12px;
      letter-spacing: 3px;
    }

    /* Secciones generales */
    .howto,
    .features,
    .enemies,
    .upgrades,
    .download,
    .news,
    .ranking {
      padding: 72px 20px;
    }

    .s-title {
      font-size: clamp(28px, 9vw, 44px);
    }
    .s-body {
      font-size: 16px;
    }
    .s-label { font-size: 13px; }

    /* Steps */
    .step { gap: 14px; padding: 16px; }
    .step-num { font-size: 32px; }
    .step-title { font-size: 20px; }
    .step-desc { font-size: 15px; }

    /* Stats */
    .stats-section { padding: 56px 20px; }
    .stats-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-num { font-size: 40px; }
    .stat-label { font-size: 14px; }

    /* Features */
    .feat-grid { grid-template-columns: 1fr; gap: 16px; }
    .feat-icon { font-size: 28px; }
    .feat-title { font-size: 19px; }
    .feat-desc { font-size: 15px; }

    /* Enemies */
    .enemy-grid { grid-template-columns: 1fr; gap: 20px; }
    .enemy-tabs-nav {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .enemy-tab {
      min-width: unset;
      width: 100%;
      padding: 12px 16px;
      font-size: 15px;
    }
    .enemy-name { font-size: 20px; }
    .enemy-desc { font-size: 16px; }

    /* Upgrades */
    .upgrades-inner { grid-template-columns: 1fr; gap: 32px; }
    .upg-row {
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .upg-name { font-size: 16px; }
    .upg-desc { font-size: 15px; }
    .upg-cost-badge { margin-left: 38px; }

    /* Noticias carrusel */
    .pscar-card { width: 90vw; }
    .pscar-img { aspect-ratio: 4/3; }
    .pscar-body { padding: 16px 18px 18px; }
    .pscar-prev { left: 8px; }
    .pscar-next { right: 8px; }
    .pscar-title { font-size: 20px; }
    .pscar-desc { font-size: 14px; }
    .pscar-emoji { font-size: 80px; }
    .news-inner { padding: 0 20px; }
    .pscar-arrow { width: 32px; height: 32px; }

    /* Ranking */
    .ranking-header { flex-direction: column; align-items: flex-start; }
    .ranking-meta { align-items: flex-start; }
    .ranking-filter-row { flex-wrap: wrap; }
    .rank-filter { font-size: 13px; padding: 7px 12px; }
    .th-ants, .td-ants,
    .th-time, .td-time,
    .th-badge, .td-badge { display: none; }
    .ranking-podium { gap: 8px; }
    .podium-slot { min-width: 85px; }
    .podium-avatar { width: 56px; height: 56px; font-size: 28px; }
    .podium-name { font-size: 13px; }
    .rank-name { font-size: 15px; }
    .td-score { font-size: 16px; }
    .ranking-table th,
    .ranking-table td { padding: 12px 10px; }

    /* Download */
    .download-icon { font-size: 56px; }
    .platform-row { flex-direction: column; align-items: center; }
    .platform-btn { width: 100%; max-width: 300px; justify-content: center; }
    .email-row { flex-direction: column; }
    .email-input { font-size: 16px; } /* evita zoom en iOS/Android */

    /* Footer */
    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
    .footer-links {
      justify-content: center;
      gap: 12px;
    }
    footer { padding: 36px 20px; }

    /* Ticker */
    .ticker-badge { padding: 0 12px; font-size: 12px; }
    .ticker-item { font-size: 14px; }

    /* Phone mockup — ocultar en pantallas muy pequeñas para no romper layout */
    .phone-wrap { display: none; }

  }

  /* Pantallas muy pequeñas (< 360px, ej: Galaxy A series antiguas) */
  @media (max-width: 360px) {
    .hero-title {
      font-size: clamp(44px, 12vw, 58px);
      letter-spacing: 2px;
    }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 34px; }
    .feat-grid { grid-template-columns: 1fr; }
  }

/* moved from index.html */
.features-header .s-title,
.enemies-header .s-title,
.upgrades-inner .s-title,
.news-header .s-title {
  margin-top: 8px;
}
.features-header .s-body {
  max-width: 640px;
  margin-top: 18px;
}
.upgrades-notes {
  margin-top: 28px;
}
.upgrades-notes p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}
.news-header .btn-outline {
  padding: 10px 24px;
  font-size: 15px;
}
.download .s-label {
  text-align: center;
}
.download .amber-line {
  margin: 0 auto 16px;
}
.download .s-title {
  font-size: clamp(28px,5vw,52px);
}
.download-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.download-desc strong {
  color: var(--fire2);
}
.download-note {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
}
.btn-fire.small {
  font-size: 14px;
  padding: 14px 24px;
  white-space: nowrap;
}

/* ===== NAVBAR — RANKING LINK ===== */
.nav-ranking {
  color: var(--fire2) !important;
  font-weight: 700;
  border: 1px solid rgba(255,136,0,0.3);
  border-radius: 4px;
  padding: 4px 12px !important;
  transition: all 0.2s !important;
}
.nav-ranking:hover {
  background: rgba(255,136,0,0.12) !important;
  border-color: var(--fire2) !important;
  color: var(--fire3) !important;
}

/* ===== RANKING SECTION ===== */
.ranking[hidden] { display: none !important; }
.ranking {
  padding: 120px 48px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,77,0,0.15);
}

.ranking-inner { max-width: 1100px; margin: 0 auto; }

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.ranking-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ranking-update {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}

.ranking-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}
.ranking-dot.dot-live {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ranking-filter-row {
  display: flex;
  gap: 6px;
}

.rank-filter {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 6px 16px;
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.rank-filter:hover {
  border-color: rgba(255,136,0,0.4);
  color: var(--fire2);
}

.rank-filter.active {
  background: rgba(255,136,0,0.12);
  border-color: var(--fire2);
  color: var(--fire2);
}

/* ===== PODIO ===== */
.ranking-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 56px;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}
.podium-empty { min-width: 140px; }

.podium-avatar {
  font-size: 40px;
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--podium-glow, transparent);
  transition: transform 0.3s;
}
.podium-slot:hover .podium-avatar { transform: scale(1.08); }

.podium-medal { font-size: 22px; }

.podium-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--cream);
  text-align: center;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-score {
  font-size: 15px;
  font-weight: 700;
  color: var(--fire2);
}

.podium-base {
  width: 100%;
  background: linear-gradient(to top, rgba(255,77,0,0.12), rgba(255,77,0,0.03));
  border: 1px solid rgba(255,77,0,0.18);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.podium-slot-1 .podium-base {
  background: linear-gradient(to top, rgba(255,204,0,0.14), rgba(255,204,0,0.04));
  border-color: rgba(255,204,0,0.3);
}
.podium-slot-2 .podium-base {
  background: linear-gradient(to top, rgba(192,192,192,0.1), rgba(192,192,192,0.02));
  border-color: rgba(192,192,192,0.2);
}
.podium-slot-3 .podium-base {
  background: linear-gradient(to top, rgba(205,127,50,0.1), rgba(205,127,50,0.02));
  border-color: rgba(205,127,50,0.2);
}

.podium-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.25);
}

/* ===== TABLA ===== */
.ranking-table-wrap {
  background: var(--surface);
  border: 1px solid rgba(255,77,0,0.12);
  border-radius: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.ranking-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 15px;
}

.ranking-table thead tr {
  background: rgba(255,77,0,0.06);
  border-bottom: 1px solid rgba(255,77,0,0.15);
}

.ranking-table th {
  padding: 14px 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--fire2);
  text-align: left;
  font-weight: 400;
}

.ranking-table th.th-score,
.ranking-table th.th-ants,
.ranking-table th.th-time { text-align: right; }

.rank-row {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s;
  transition-delay: var(--rank-delay, 0ms);
}
.rank-row-visible { opacity: 1; transform: translateY(0); }
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: rgba(255,77,0,0.05); }
.rank-top { background: rgba(255,136,0,0.03); }

.ranking-table td { padding: 14px 16px; }

.td-pos { width: 60px; }

.rank-pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  min-width: 32px;
}
/* Posiciones 4 en adelante — número estilizado */
.rank-pos-4, .rank-pos-5, .rank-pos-6, .rank-pos-7, .rank-pos-8,
.rank-pos-9, .rank-pos-10 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 1px;
}

.td-player { display: flex; align-items: center; gap: 10px; }

.rank-avatar {
  font-size: 22px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rank-name {
  font-weight: 600;
  color: var(--cream);
  font-size: 16px;
  letter-spacing: 0.5px;
}

.td-score {
  text-align: right;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--fire2);
}
.rank-top .td-score { color: var(--fire3); }

.td-ants, .td-time {
  text-align: right;
  color: var(--muted);
  font-size: 15px;
}

.td-badge { max-width: 180px; }

.rank-badge {
  display: inline-block;
  background: rgba(255,77,0,0.08);
  border: 1px solid rgba(255,77,0,0.15);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fire2);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ranking-footer-note {
  margin-top: 24px;
  padding: 14px 20px;
  background: rgba(255,136,0,0.05);
  border: 1px dashed rgba(255,136,0,0.2);
  border-radius: 4px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.ranking-footer-note code {
  background: rgba(255,136,0,0.1);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--fire3);
  font-family: monospace;
}

/* Responsive ranking */
@media (max-width: 900px) {
  .ranking { padding: 80px 20px; }
  .ranking-header { flex-direction: column; align-items: flex-start; }
  .ranking-meta { align-items: flex-start; }
  .th-ants, .td-ants,
  .th-time, .td-time { display: none; }
  .podium-slot { min-width: 100px; }
  .podium-name { font-size: 13px; }
}
@media (max-width: 600px) {
  .td-badge, .th-badge { display: none; }
  .ranking-podium { gap: 8px; }
  .podium-slot { min-width: 80px; }
  .podium-avatar { width: 56px; height: 56px; font-size: 28px; }
}

/* ===== ENEMY CARD MODAL OVERLAY ===== */
.enemy-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.enemy-overlay.active {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  pointer-events: all;
}

.enemy-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255,77,0,0.25);
  border-radius: 8px;
  overflow: hidden;
  max-width: 520px;
  width: 90vw;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(255,77,0,0.08);
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: opacity 0.35s cubic-bezier(0.34,1.56,0.64,1), transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.enemy-overlay.active .enemy-modal {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.modal-img-wrap {
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 260px;
  position: relative;
}

.modal-big-img {
  max-height: 220px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
  animation: modalImgIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes modalImgIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-big-img.red-ant {
  filter: brightness(1.05) saturate(1.2) drop-shadow(0 8px 24px rgba(200,50,0,0.5));
  mix-blend-mode: screen;
}

.modal-big-img.red-ant-dark {
  filter: brightness(0.7) saturate(1.4) contrast(1.15) drop-shadow(0 8px 24px rgba(150,20,0,0.6));
  mix-blend-mode: screen;
}

.modal-big-img.black {
  filter: grayscale(1) brightness(0.75) contrast(1.2) drop-shadow(0 8px 24px rgba(0,0,0,0.7));
  mix-blend-mode: screen;
}

.modal-big-img.black-shiny {
  filter: grayscale(1) brightness(0.55) contrast(1.4) drop-shadow(0 8px 24px rgba(0,0,0,0.8));
  mix-blend-mode: screen;
}

.modal-info {
  padding: 24px 28px 28px;
}

.modal-badge {
  margin-bottom: 8px;
}

.modal-enemy-name {
  font-size: 28px !important;
  letter-spacing: 3px !important;
  margin-bottom: 10px !important;
}

.modal-enemy-desc {
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin-bottom: 18px !important;
}

.modal-info .enemy-stat {
  font-size: 14px;
  padding: 5px 13px;
}

.modal-info .enemy-role-tag {
  font-size: 14px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.enemy-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--cream);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.enemy-modal-close:hover {
  background: rgba(255,77,0,0.25);
  transform: scale(1.1);
}

.enemy-card {
  cursor: pointer;
}

@media (max-width: 480px) {
  .enemy-modal {
    width: calc(100vw - 28px);
    max-height: 88vh;
  }
  .modal-img-wrap {
    min-height: 180px;
    padding: 18px;
  }
  .modal-big-img {
    max-height: 150px;
  }
  .modal-info {
    padding: 18px 20px 22px;
  }
  .modal-enemy-name {
    font-size: 22px !important;
    letter-spacing: 2px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #lensOverlay {
    display: none;
  }

  .ant {
    animation: none !important;
    opacity: 1 !important;
  }
}
