/* ============================================================
   PvE Victory Modal — Premium redesign 2026-05-11
   Prefix: vct-*
   Paleta: esmeralda + dorado · cinematic dungeon victory screen
   Imágenes:
     /assets/ui/victory_bg.png      → fondo a sangre
     /assets/ui/victory_trophy.png  → copa central con aura
     /assets/ui/victory_chest.png   → icono de loot premium
   ============================================================ */

/* OVERLAY full-screen */
.vct-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  animation: vctFadeIn 0.35s ease-out;
}
@keyframes vctFadeIn {
  from { opacity: 0; backdrop-filter: blur(0); }
  to   { opacity: 1; backdrop-filter: blur(6px); }
}

/* PANEL principal */
.vct-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  /* 2026-05-12 (v2): usar dvh + restar safe-area-inset-bottom. En iOS la
     barra del home indicator NO está incluida en dvh — el panel se extendía
     hasta debajo del indicator y la CTA quedaba tapada. Ahora se respeta.
     2026-05-18: en mobile usamos 100svh (sobrescrito en media query). */
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  min-height: 0; /* permite que flex children con overflow funcionen */
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(95, 214, 132, 0.22),
    0 0 0 2px rgba(212, 175, 55, 0.45);
  animation: vctPanelIn 0.55s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes vctPanelIn {
  from { opacity: 0; transform: translateY(28px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Backdrop image */
.vct-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/ui/victory_bg.webp?v=1');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.vct-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% 25%, transparent 0%, rgba(8, 14, 8, 0.55) 60%, rgba(0,0,0,0.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.78) 100%);
}

/* SCROLL container */
/* 2026-05-14: paddings reducidos para que el modal entre mejor cuando hay loot. */
.vct-scroll {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0; /* Necesario para que flex+overflow funcione bien en mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.4) transparent;
}
.vct-scroll::-webkit-scrollbar { width: 6px; }
.vct-scroll::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.4); border-radius: 3px; }

/* ============================================================
   HERO — trofeo + título
   ============================================================ */
.vct-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

/* Aura de la copa */
/* 2026-05-14: trofeo más compacto (200→150, inner 168→124) — antes ocupaba demasiado. */
.vct-trophy-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.vct-trophy-wrap::before {
  /* halo verde radial */
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, rgba(95,214,132,0.55) 0%, rgba(95,214,132,0.20) 40%, transparent 70%);
  filter: blur(14px);
  animation: vctAuraPulse 3.2s ease-in-out infinite;
}
.vct-trophy-wrap::after {
  /* segundo halo dorado interior */
  content: '';
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.42) 0%, transparent 60%);
  filter: blur(10px);
  animation: vctAuraPulse 3.2s ease-in-out infinite 0.5s;
}
@keyframes vctAuraPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}
.vct-trophy {
  position: relative;
  z-index: 2;
  width: 124px;
  height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.7))
          drop-shadow(0 0 18px rgba(255, 200, 87, 0.55));
  /* 2026-05-15: vctTrophyFloat removida — trofeo fijo, sin movimiento. */
}

/* Rays */
.vct-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.vct-rays::before,
.vct-rays::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 190px; height: 190px;
  margin: -95px 0 0 -95px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(95,214,132,0.32) 20deg,
    transparent 40deg,
    transparent 90deg,
    rgba(212,175,55,0.28) 120deg,
    transparent 145deg,
    transparent 180deg,
    rgba(95,214,132,0.30) 210deg,
    transparent 235deg,
    transparent 270deg,
    rgba(212,175,55,0.26) 300deg,
    transparent 325deg
  );
  border-radius: 50%;
  filter: blur(4px);
  animation: vctRaysSpin 18s linear infinite;
  opacity: 0.75;
}
.vct-rays::after { animation-direction: reverse; animation-duration: 26s; opacity: 0.45; }
@keyframes vctRaysSpin { to { transform: rotate(360deg); } }

/* Título VICTORIA */
.vct-title {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: clamp(30px, 7.5vw, 44px);
  font-weight: 900;
  letter-spacing: 0.10em;
  background: linear-gradient(180deg, #ffeac0 0%, #ffd24a 35%, #d4af37 65%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(255, 200, 87, 0.55),
               0 0 14px rgba(95, 214, 132, 0.45);
  line-height: 0.96;
  margin: 4px 0 4px;
  position: relative;
  animation: vctTitleIn 0.7s 0.15s both cubic-bezier(.2,.9,.3,1.1);
}
@keyframes vctTitleIn {
  from { opacity: 0; transform: translateY(14px) scale(0.92); letter-spacing: 0.18em; }
  to   { opacity: 1; transform: translateY(0)    scale(1);    letter-spacing: 0.10em; }
}
/* Divisor decorativo */
.vct-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 6px 0 6px;
}
.vct-divider::before,
.vct-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}
.vct-divider i {
  color: rgba(212, 175, 55, 0.85);
  font-size: 14px;
}

.vct-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(232, 227, 245, 0.78);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  animation: vctTitleIn 0.7s 0.30s both cubic-bezier(.2,.9,.3,1.1);
}

/* ============================================================
   REWARDS row (oro · xp · loot) sin cajas, separadores verticales
   ============================================================ */
.vct-rewards {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 4px 0 10px;
  padding: 10px 8px;
  background:
    linear-gradient(180deg, rgba(8,14,10,0.55), rgba(8,14,10,0.35));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 22px rgba(0,0,0,0.45);
  animation: vctTitleIn 0.7s 0.45s both cubic-bezier(.2,.9,.3,1.1);
}
.vct-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}
.vct-reward-ic {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
  margin-bottom: 2px;
}
.vct-reward.is-gold .vct-reward-ic {
  color: #ffd24a;
  background: radial-gradient(circle, rgba(255, 210, 74, 0.22) 0%, transparent 70%);
  filter: drop-shadow(0 0 10px rgba(255, 210, 74, 0.5));
}
.vct-reward.is-xp .vct-reward-ic {
  color: #b884ff;
  background: radial-gradient(circle, rgba(184, 132, 255, 0.22) 0%, transparent 70%);
  filter: drop-shadow(0 0 10px rgba(184, 132, 255, 0.5));
}
.vct-reward.is-loot .vct-reward-ic {
  color: #6cd4ff;
  background: radial-gradient(circle, rgba(108, 212, 255, 0.22) 0%, transparent 70%);
  filter: drop-shadow(0 0 10px rgba(108, 212, 255, 0.5));
}
.vct-reward-num {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  line-height: 1;
}
.vct-reward.is-gold .vct-reward-num {
  background: linear-gradient(180deg, #ffeac0, #d4af37);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vct-reward.is-xp .vct-reward-num {
  background: linear-gradient(180deg, #d6b6ff, #8a4be0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vct-reward.is-loot .vct-reward-num {
  background: linear-gradient(180deg, #b6e8ff, #4ba8e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vct-reward-lbl {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: rgba(232, 227, 245, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-top: 2px;
}
/* 2026-05-12: bonus por skill tree — chip pequeño debajo del label */
.vct-reward-bonus {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(184, 132, 255, 0.15);
  border: 1px solid rgba(184, 132, 255, 0.45);
  color: #d6b6ff;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: vctBonusGlow 2s ease-in-out infinite;
}
.vct-reward-bonus i { font-size: 11px; color: #b884ff; }
.vct-reward.is-gold .vct-reward-bonus {
  background: rgba(255, 210, 74, 0.15);
  border-color: rgba(255, 210, 74, 0.5);
  color: #ffe18a;
}
.vct-reward.is-gold .vct-reward-bonus i { color: #ffd24a; }
@keyframes vctBonusGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(184,132,255,0.2); }
  50%      { box-shadow: 0 0 14px rgba(184,132,255,0.55); }
}
.vct-reward-sep {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.35), transparent);
  align-self: center;
}

/* Chips secundarios (level up, skill tree point) */
.vct-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -6px 0 14px;
  width: 100%;
}
.vct-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(8,14,10,0.65);
  border: 1px solid rgba(212,175,55,0.35);
  color: #ffd24a;
  animation: vctChipIn 0.5s 0.6s both cubic-bezier(.2,.9,.3,1.1);
}
.vct-chip.is-lvup {
  border-color: rgba(255,210,74,0.55);
  color: #ffeac0;
  box-shadow: 0 0 16px rgba(255,210,74,0.25);
}
.vct-chip.is-sp {
  border-color: rgba(184,132,255,0.55);
  color: #d6b6ff;
  box-shadow: 0 0 16px rgba(184,132,255,0.25);
}
.vct-chip i { font-size: 14px; }
@keyframes vctChipIn {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ============================================================
   FEATURED unique item (banner premium si dropea un único)
   ============================================================ */
.vct-unique {
  position: relative;
  width: 100%;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,90,200,0.18), rgba(255,200,87,0.16), rgba(95,214,132,0.18));
  border: 1px solid rgba(255,200,87,0.55);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  animation: vctTitleIn 0.7s 0.7s both cubic-bezier(.2,.9,.3,1.1);
}
.vct-unique::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: vctUniqueShine 3s ease-in-out 1s infinite;
}
@keyframes vctUniqueShine {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
.vct-unique-ic {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: rgba(0,0,0,0.55);
  border: 2px solid #ffd24a;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #ffd24a;
  flex-shrink: 0;
}
.vct-unique-body { text-align: left; min-width: 0; }
.vct-unique-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #ffd24a;
  text-transform: uppercase;
  font-weight: 700;
}
.vct-unique-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
  text-shadow: 0 0 12px rgba(255,200,87,0.5);
}
.vct-unique-stats {
  font-size: 12px;
  color: rgba(232,227,245,0.85);
  margin-top: 3px;
}

/* ============================================================
   LOOT section
   ============================================================ */
.vct-loot {
  width: 100%;
  margin: 6px 0 16px;
  animation: vctTitleIn 0.7s 0.6s both cubic-bezier(.2,.9,.3,1.1);
}
.vct-loot-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}
.vct-loot-head::before,
.vct-loot-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95,214,132,0.55), transparent);
  max-width: 80px;
}
.vct-loot-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5fd684;
  font-weight: 700;
}
.vct-loot-title img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(95,214,132,0.6));
}
.vct-loot-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(95,214,132,0.18);
  border: 1px solid rgba(95,214,132,0.55);
  color: #5fd684;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}
.vct-loot-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* 2026-05-14: rows más compactas (padding 8→6, icon 38→32) */
.vct-loot-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8,14,10,0.7), rgba(8,14,10,0.5));
  border: 1px solid rgba(212,175,55,0.25);
  border-left-width: 3px;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease;
}
.vct-loot-row:hover { transform: translateX(2px); border-color: rgba(212,175,55,0.55); }
.vct-loot-row.rar-common    { border-left-color: #b9bcc4; }
.vct-loot-row.rar-uncommon  { border-left-color: #5fd684; }
.vct-loot-row.rar-rare      { border-left-color: #6cd4ff; }
.vct-loot-row.rar-epic      { border-left-color: #b884ff; }
.vct-loot-row.rar-legendary { border-left-color: #ffd24a; box-shadow: 0 0 14px rgba(255,200,87,0.18); }
.vct-loot-row.rar-mythic    { border-left-color: #ff5c7c; box-shadow: 0 0 14px rgba(255,92,124,0.20); }
.vct-loot-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: rgba(232,227,245,0.75);
  flex-shrink: 0;
}
.vct-loot-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.vct-loot-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vct-loot-meta {
  font-size: 11px;
  color: rgba(232,227,245,0.55);
  margin-top: 1px;
  text-transform: capitalize;
}
.vct-loot-qty {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffd24a;
  letter-spacing: 0.04em;
}

/* Skipped loot (mochila llena) */
.vct-skipped {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: rgba(255, 92, 124, 0.08);
  border: 1px solid rgba(255, 92, 124, 0.35);
  border-radius: 11px;
  text-align: left;
  font-size: 12.5px;
  color: rgba(232,227,245,0.85);
  width: 100%;
}
.vct-skipped i { color: #ff8898; font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.vct-skipped b { color: #ff8898; }

/* ============================================================
   CONTINUE button (CTA)
   ============================================================ */
.vct-cta {
  /* 2026-05-12: removido position:sticky (no funciona dentro de overflow:hidden
     en algunos browsers). Como flex item al final del panel, se queda abajo
     naturalmente. flex-shrink:0 evita que se aplaste si el contenido es alto. */
  flex-shrink: 0;
  width: 100%;
  padding: 14px 16px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(8,14,10,0.85) 40%, rgba(8,14,10,0.98));
  z-index: 5;
}
.vct-continue {
  width: 100%;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  background: linear-gradient(180deg, #ffe18a 0%, #f8c64a 30%, #d4a020 60%, #b8860b 100%);
  color: #2a1700;
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.55),
    0 0 24px rgba(255, 200, 87, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  transition: transform .15s ease, filter .15s ease, box-shadow .25s ease;
}
.vct-continue::before {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.65) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: vctBtnShine 3.4s ease-in-out infinite;
}
@keyframes vctBtnShine {
  0%   { left: -40%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}
.vct-continue:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.6),
    0 0 32px rgba(255, 200, 87, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.vct-continue:active { transform: translateY(0); filter: brightness(0.95); }
.vct-continue i { font-size: 19px; }

/* ============================================================
   MOBILE
   ============================================================ */
/* 2026-05-14 / refined 2026-05-18: mobile MUCHO más compacto.
   El bug reportado: trophy gigante + paddings + lista de loot + CTA NO entraban
   en pantalla, el .vct-scroll no scrolleaba bien y el botón "Continuar" quedaba
   fuera del viewport. Solución:
   - Trophy chico (70-90px)
   - Padding mínimo
   - 100svh en lugar de 100dvh (svh = visible viewport real, sin URL bar dinámica)
   - CTA sticky abajo, siempre visible
*/
/* ============================================================
   2026-06-03: Pantallas chicas de PC (laptops 720-1280px).
   El modal default (520px max-w + trofeo 150px) ocupaba demasiado
   visualmente en monitores chicos. Shrink medio entre desktop y mobile.
   ============================================================ */
@media (min-width: 601px) and (max-width: 1280px) {
  .vct-panel { max-width: 440px; }
  .vct-scroll { padding: 12px 14px 10px; }
  .vct-hero { margin-bottom: 6px; }
  .vct-trophy-wrap { width: 118px; height: 118px; }
  .vct-trophy { width: 98px; height: 98px; }
  .vct-rays::before, .vct-rays::after { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .vct-title { font-size: 34px; margin: 2px 0; }
  .vct-divider { margin: 4px 0; }
  .vct-sub { font-size: 13px; }
  .vct-rewards { padding: 8px 6px; margin: 6px 0 8px; }
  .vct-reward-ic { width: 34px; height: 34px; font-size: 17px; }
  .vct-reward-num { font-size: 21px; }
  .vct-reward-lbl { font-size: 10px; letter-spacing: 0.14em; }
  .vct-reward-sep { height: 38px; }
  .vct-loot-row { padding: 6px 9px; }
  .vct-loot-icon { width: 32px; height: 32px; }
  .vct-loot-name { font-size: 13px; }
  .vct-loot-head { padding: 7px 11px; }
  .vct-loot-title { font-size: 13px; }
  .vct-continue { padding: 12px 18px; font-size: 14.5px; letter-spacing: 0.13em; }
  .vct-cta { padding: 8px 10px 10px; }
}

@media (max-width: 600px) {
  .vct-overlay { padding: 8px; }
  .vct-panel {
    max-width: 100%;
    border-radius: 16px;
    /* svh = small viewport height (excluye URL bar dinámica de Chrome Android).
       Más conservador que dvh, garantiza que el modal entra en pantalla. */
    max-height: calc(100svh - 16px - env(safe-area-inset-bottom));
  }
  .vct-scroll { padding: 10px 12px 8px; }
  .vct-hero { margin-bottom: 6px; }
  .vct-trophy-wrap { width: 88px; height: 88px; margin-bottom: 0; }
  .vct-trophy { width: 70px; height: 70px; }
  .vct-rays::before, .vct-rays::after { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
  .vct-title { font-size: 28px; line-height: 1.05; margin-top: 2px; }
  .vct-divider { margin: 4px 0; }
  .vct-sub { font-size: 12px; }
  .vct-rewards { padding: 6px 4px; margin: 4px 0 6px; }
  .vct-reward-ic { width: 30px; height: 30px; font-size: 16px; }
  .vct-reward-num { font-size: 19px; }
  .vct-reward-lbl { font-size: 9px; letter-spacing: 0.14em; }
  .vct-reward-sep { height: 36px; }
  .vct-loot-row { padding: 5px 8px; }
  .vct-loot-icon { width: 28px; height: 28px; }
  .vct-loot-name { font-size: 12.5px; }
  .vct-loot-head { padding: 6px 10px; }
  .vct-loot-title { font-size: 12px; }
  .vct-continue { padding: 11px 16px; font-size: 13.5px; letter-spacing: 0.12em; }
  /* CTA sticky abajo del scroll → siempre visible sin importar el contenido. */
  .vct-cta {
    padding: 8px 10px max(10px, env(safe-area-inset-bottom));
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(8,4,18,0) 0%, rgba(8,4,18,0.92) 30%, rgba(8,4,18,1) 100%);
  }
}

@media (max-width: 360px) {
  .vct-trophy-wrap { width: 72px; height: 72px; }
  .vct-trophy { width: 58px; height: 58px; }
  .vct-title { font-size: 24px; }
  .vct-reward-num { font-size: 17px; }
  .vct-reward-lbl { font-size: 8.5px; }
  .vct-loot-row { padding: 4px 7px; }
  .vct-loot-icon { width: 24px; height: 24px; }
  .vct-loot-name { font-size: 12px; }
}
