/* ══════════════════════════════════════════════
   DRAFT VIEW  (css/draft-view.css)
   Estética de referencia: pestaña Cartas (system-ui, superficies
   oscuras neutras, chips blancos translúcidos).
══════════════════════════════════════════════ */
#view-draft {
  position: fixed; top: 48px; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 18%, #16161f 0%, #111118 62%);
  display: none; flex-direction: column;
  font-family: system-ui, sans-serif;
  overflow: hidden;
  z-index: 9050;
  color: #e0e0e0;
}
/* El contenido va por encima del fondo de pokéballs */
#view-draft > #dr-start, #view-draft > #dr-play, #view-draft > #dr-end {
  position: relative; z-index: 1;
}

/* ── Fondo: campo de pokéballs-medidor, muy sutil, deriva en loop infinito ── */
#dr-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none; opacity: 0.04;
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 42%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 80% at 50% 42%, #000 55%, transparent 100%);
}
#dr-bg::before {
  content: ''; position: absolute; top: -320px; left: -320px;
  width: calc(100% + 640px); height: calc(100% + 640px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='white' stroke-width='3.2'%3E%3Cg transform='translate(50 50) rotate(22)'%3E%3Cpath fill='white' stroke='none' fill-rule='evenodd' d='M-24 0A24 24 0 0 1 24 0Z M-9 0A9 9 0 0 1 9 0Z'/%3E%3Ccircle r='24'/%3E%3Ccircle r='9'/%3E%3C/g%3E%3Cg transform='translate(150 50) rotate(112)'%3E%3Cpath fill='white' stroke='none' fill-rule='evenodd' d='M-24 0A24 24 0 0 1 24 0Z M-9 0A9 9 0 0 1 9 0Z'/%3E%3Ccircle r='24'/%3E%3Ccircle r='9'/%3E%3C/g%3E%3Cg transform='translate(50 150) rotate(205)'%3E%3Cpath fill='white' stroke='none' fill-rule='evenodd' d='M-24 0A24 24 0 0 1 24 0Z M-9 0A9 9 0 0 1 9 0Z'/%3E%3Ccircle r='24'/%3E%3Ccircle r='9'/%3E%3C/g%3E%3Cg transform='translate(150 150) rotate(298)'%3E%3Cpath fill='white' stroke='none' fill-rule='evenodd' d='M-24 0A24 24 0 0 1 24 0Z M-9 0A9 9 0 0 1 9 0Z'/%3E%3Ccircle r='24'/%3E%3Ccircle r='9'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 300px 300px repeat;
  animation: dr-bg-drift 52s linear infinite;
}
@keyframes dr-bg-drift { to { transform: translate(300px, 300px); } }

/* ── Pantalla inicial: explicación arriba + sobre asomando abajo ── */
#dr-start {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 0; text-align: center; position: relative; overflow: hidden;
}
#dr-start-text {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 12vh 24px 0; max-width: 560px; z-index: 2;
}
/* Fila del título + "?" de info al lado */
#dr-start-titlerow { display: inline-flex; align-items: center; gap: 11px; }
#dr-start-title {
  font-size: 38px; font-weight: 780; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.96);
}
/* Primera frase visible (gancho) — más grande y clara que el detalle */
#dr-start-tagline {
  font-size: 16.5px; line-height: 1.5; font-weight: 500;
  color: rgba(255,255,255,0.62); max-width: 440px;
}
#dr-start-desc { display: none; }   /* el detalle vive ahora en la "?" (#dr-info-pop) */
/* "?" de info al lado del título — hover (escritorio) / tap (móvil) abre el detalle */
.dr-info-wrap { display: inline-flex; align-items: center; position: relative; }
#dr-info-btn {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6); transition: background .15s, color .15s, transform .1s;
}
.dr-info-wrap:hover #dr-info-btn { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.92); }
#dr-info-btn:active { transform: scale(0.92); }
#dr-info-btn svg { width: 16px; height: 16px; }
/* Pop con el detalle (permanente en el DOM; se muestra en hover/tap) */
#dr-info-pop {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(86vw, 340px); z-index: 5; text-align: left;
  background: rgba(20,22,30,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
  padding: 14px 16px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,0.7);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5); animation: dr-info-in .16s ease;
  pointer-events: none;
}
.dr-info-wrap:hover #dr-info-pop, .dr-info-wrap.open #dr-info-pop { display: block; }
/* El sobre vive en el centro-inferior, asomando, clic para abrir */
#dr-pack-stage {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; align-items: flex-end;
  pointer-events: none;
}
#dr-pack-stage .dr-pack {
  pointer-events: auto;
  animation: dr-float 3.2s ease-in-out infinite;
}
@keyframes dr-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.dr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 12px;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.88); font-family: system-ui, sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.dr-btn:hover { background: rgba(255,255,255,0.14); }
.dr-btn:active { transform: scale(0.97); }
.dr-btn.disabled { opacity: 0.35; pointer-events: none; }

#dr-pool-info {
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-align: center; line-height: 1.6; max-width: 460px;
}
#dr-pool-info b { color: rgba(255,255,255,0.8); }
.dr-pool-warn { color: rgba(255,200,120,0.75); font-size: 11.5px; }

/* Selector de variante del pool (completo / meta) — control segmentado */
#dr-pool-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
}
#dr-pool-toggle.hidden { display: none; }
.dr-pool-opt {
  appearance: none; border: 0; cursor: pointer;
  padding: 8px 18px; border-radius: 9px; background: transparent;
  color: rgba(255,255,255,0.5); font-family: system-ui, sans-serif;
  font-size: 13px; font-weight: 650;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.dr-pool-opt:hover { color: rgba(255,255,255,0.82); }
.dr-pool-opt:active { transform: scale(0.97); }
.dr-pool-opt.active {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.95);
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

/* ── Bocadillo "peek" del pool: encima del sobre (apunta a él), switcher fusionado
   arriba + carrusel de cartas de ejemplo del pool (win conditions + leads). ── */
/* Bocadillo: cuerpo redondeado con frame (padding) + cola al sobre, con el switcher
   de cabecera y las cartas enteras asomando la mitad superior. */
#dr-pool-peek {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 3;
  width: min(92vw, 300px); box-sizing: border-box; pointer-events: auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 7px;
  padding: 7px; border-radius: 20px;
  background: rgba(26,28,38,0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 38px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
/* Cola apuntando al sobre */
#dr-pool-peek::after {
  content: ''; position: absolute; top: 100%; left: 50%; margin-left: -11px;
  border: 11px solid transparent; border-top-color: rgba(26,28,38,0.74);
}
/* Switcher = cabecera (control segmentado a todo el ancho del bocadillo) */
#dr-pool-peek #dr-pool-toggle {
  display: flex; width: 100%; box-sizing: border-box; gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
}
#dr-pool-peek #dr-pool-toggle.hidden { display: none; }
#dr-pool-peek .dr-pool-opt { flex: 1 1 0; padding: 7px 0; text-align: center; }
/* Carrusel: la MITAD SUPERIOR de cartas ENTERAS asomando (no las recorto en tiles ni
   redondeo esquinas: son la carta completa, ocultada por el borde inferior del bocadillo). */
#dr-pool-reel {
  width: 100%; box-sizing: border-box; height: 68px;
  overflow: hidden; cursor: grab; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
#dr-pool-reel:active { cursor: grabbing; }
.dr-peek-track { display: flex; gap: 18px; align-items: flex-start; width: max-content; will-change: transform; padding: 0 6px; }
.dr-peek-card { flex: 0 0 auto; width: 72px; transform: rotate(8deg); filter: drop-shadow(0 4px 9px rgba(0,0,0,0.45)); }
/* aspect-ratio reserva el alto ANTES de cargar (si no, el hueco colapsa y queda vacío) */
.dr-peek-card img { width: 100%; height: auto; aspect-ratio: 367 / 512; display: block; }
.dr-btn.subtle {
  background: transparent; border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45); font-weight: 600; font-size: 13px;
  padding: 9px 18px;
}
.dr-btn.subtle:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }

/* ── Zona de juego ── */
#dr-play { flex: 1; display: none; flex-direction: column; overflow: hidden; }

/* ── Cabecera: la ronda como protagonista ── */
#dr-top {
  display: flex; align-items: center; justify-content: center;
  padding: 52px 20px 6px;
  position: relative;
}
#dr-wave-head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
#dr-wave-num {
  font-size: 40px; font-weight: 800; color: rgba(255,255,255,0.96);
  letter-spacing: -0.02em; line-height: 1;
}
#dr-title {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.26em;
}
/* Overlay de apertura: fondo oscuro que se ACLARA durante el vuelo (sin corte) */
.dr-intro {
  position: absolute; inset: 0; z-index: 70;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none; overflow: hidden;
}
.dr-intro.opening {
  background: rgba(13,13,20,0.9); backdrop-filter: blur(5px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
.dr-intro.opening.clearing { background: rgba(13,13,20,0); backdrop-filter: blur(0px); }

/* El sobre: BOLSA foil (no carta). La raíz solo posiciona; la piel pinta y se
   recorta a la silueta. Color aleatorio (--h). */
.dr-pack {
  --glow: 0; --h: 210; --h2: 238;
  position: relative; width: 222px; height: 452px;
  margin-bottom: -126px;  /* asoma ~72% en el stage */
  perspective: 800px;
  cursor: pointer; user-select: none;
  transition: filter 0.18s;
}
/* Piel del sobre: silueta foil real — el SELLO de arriba va recto a tope ancho,
   y SOLO debajo de la línea de sellado los lados hacen HOMBRO hacia dentro; el
   cuerpo sigue casi recto. La sombra va por filter para seguir la silueta. */
.dr-pack-skin {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; /* centra el emblema */
  border-radius: 18px;
  clip-path: path('M16 0 L206 0 Q222 0 222 16 L222 58 C222 71 218 80 217 92 L217 400 C217 418 220 430 222 436 Q222 452 206 452 L16 452 Q0 452 0 436 C2 430 5 418 5 400 L5 92 C4 80 0 71 0 58 L0 16 Q0 0 16 0 Z');
  filter: drop-shadow(0 22px 30px rgba(0,0,0,0.6));
  background:
    /* banda de luz vertical (reflejo del cilindro, a la izquierda del centro) */
    linear-gradient(96deg, transparent 23%, rgba(255,255,255,0.18) 38%,
      rgba(255,255,255,0.06) 49%, transparent 61%),
    /* sombreado de los laterales → redondez (los bordes se curvan hacia atrás) */
    linear-gradient(90deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.06) 14%, transparent 32%,
      transparent 68%, rgba(0,0,0,0.09) 86%, rgba(0,0,0,0.30) 100%),
    /* brillo central tipo cojín */
    radial-gradient(116% 70% at 47% 40%, hsla(var(--h) 90% 84% / 0.2), transparent 62%),
    linear-gradient(158deg,
      hsl(var(--h) 78% 60%) 0%, hsl(var(--h2) 70% 47%) 52%, hsl(var(--h) 64% 31%) 100%);
  box-shadow:
    inset 0 3px 0 hsla(var(--h) 92% 90% / 0.5),
    inset 0 -36px 56px rgba(0,0,0,0.32);
}
#dr-pack-stage .dr-pack:hover { filter: brightness(1.08); }
/* Resplandor del CORTE: del ancho de la soldadura, emana de la línea de sellado
   (~y45) hacia arriba. Clean y sutil (la apertura lo anima con scaleY). */
.dr-pack-glow {
  position: absolute; left: 1%; right: 1%; top: -18px; height: 74px; z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 96% 78% at 50% 86%,
    hsla(var(--h) 98% 90% / 0.58), hsla(var(--h) 96% 82% / 0.14) 46%, transparent 74%);
  filter: blur(3px); transform-origin: center 86%;
  opacity: var(--glow); transition: opacity 0.3s ease;
}
.dr-pack.lucky .dr-pack-glow {
  background: radial-gradient(ellipse 96% 78% at 50% 86%,
    rgba(250,212,110,0.6), rgba(250,212,110,0.14) 46%, transparent 74%);
}
/* Patrón de pokéballs sutil (como el sobre real) */
.dr-pack-pattern {
  position: absolute; inset: 0; z-index: 1; border-radius: 18px; pointer-events: none;
  opacity: 0.16; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='white' stroke-width='2.4'%3E%3Ccircle cx='28' cy='28' r='15'/%3E%3Cline x1='13' y1='28' x2='43' y2='28'/%3E%3Ccircle cx='28' cy='28' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}
/* Holo lento y orgánico (vaivén suave, sin parón brusco) */
.dr-pack-shine {
  position: absolute; inset: 0; z-index: 2; border-radius: 18px; overflow: hidden; pointer-events: none;
}
.dr-pack-shine::after {
  content: ''; position: absolute; top: -30%; bottom: -30%; left: -28%; width: 96px;
  transform: rotate(15deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: dr-holo 5.2s ease-in-out infinite alternate;
}
@keyframes dr-holo { from { left: -28%; } to { left: 88%; } }
/* Tira de SELLADO superior (banda clara + línea de soldadura brillante por
   donde se rasga, como el pack real). Se pela en 3D al abrir. */
.dr-pack-crimp {
  position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 4;
  border-radius: 18px 18px 0 0;
  background:
    repeating-linear-gradient(90deg, hsla(0,0%,100%,0.14) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, hsl(var(--h) 32% 95%) 0%, hsl(var(--h) 26% 82%) 70%, hsl(var(--h) 28% 74%) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.75), inset 0 -1px 0 rgba(0,0,0,0.12);
  transform-origin: center top;
  transform-style: preserve-3d; backface-visibility: visible;
}
/* La soldadura: línea glossy luminosa de borde a borde (elemento propio para
   que al cortar la MITAD se quede en el sobre y la otra mitad se vaya con el
   plástico). La recorta la piel a la silueta. */
.dr-pack-seam {
  position: absolute; top: 45px; left: 0; right: 0; height: 5px; z-index: 4;
  background: linear-gradient(180deg, #fff 0%, hsl(var(--h) 85% 86%) 55%, hsl(var(--h) 70% 70%) 100%);
  box-shadow: 0 0 9px hsla(var(--h) 92% 82% / 0.85), 0 1px 2px rgba(0,0,0,0.3);
}
/* El SELLO superior que se arranca: pieza de plástico independiente que se
   separa LIMPIA hacia arriba (no se recorta con la piel). Lleva su media línea
   de soldadura en el borde inferior. */
.dr-plastic-strip {
  position: fixed; z-index: 9560; pointer-events: none;
  border-radius: 18px 18px 3px 3px;
  background:
    repeating-linear-gradient(90deg, hsla(0,0%,100%,0.14) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, hsl(var(--h) 32% 95%) 0%, hsl(var(--h) 26% 82%) 70%, hsl(var(--h) 28% 74%) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.75), 0 10px 22px rgba(0,0,0,0.45);
}
.dr-plastic-strip::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(180deg, hsl(var(--h) 80% 86%), #fff);
  box-shadow: 0 0 8px hsla(var(--h) 92% 84% / 0.85);
}
/* gloss foil elegante en el plástico que se levanta (banda diagonal brillante) */
.dr-plastic-strip::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(114deg, transparent 28%, rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.12) 53%, transparent 64%);
}
/* Brillo puntual que RECORRE la soldadura izq→der (sugiere el «deslizar para
   abrir»): recorrido rápido y luego varios segundos de pausa antes de repetir. */
.dr-pack-seam-shine {
  position: absolute; top: 42px; left: 0; width: 56px; height: 9px; z-index: 5;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #fff 0%, #fff 24%, rgba(255,255,255,0.6) 46%, transparent 74%);
  box-shadow: 0 0 14px 4px rgba(255,255,255,0.85);
  filter: blur(0.8px); opacity: 0; pointer-events: none;
  animation: dr-seam-sweep 6s ease-in-out infinite;
}
/* recorrido el DOBLE de lento (≈1.5s) y luego ~4.5s de pausa */
@keyframes dr-seam-sweep {
  0%   { transform: translateX(-56px); opacity: 0; }
  2%   { opacity: 1; }
  25%  { transform: translateX(222px); opacity: 1; }
  28%  { transform: translateX(244px); opacity: 0; }
  100% { transform: translateX(244px); opacity: 0; }
}
/* Microgrietas blancas en el borde del corte (ruptura física) */
.dr-pack-crack {
  position: absolute; top: 36px; left: 4px; right: 4px; height: 3px; z-index: 5;
  opacity: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 4%, #fff 4% 5%, transparent 5% 12%, #fff 12% 13%,
      transparent 13% 26%, #fff 26% 27%, transparent 27% 41%, #fff 41% 42%, transparent 42% 58%,
      #fff 58% 59%, transparent 59% 73%, #fff 73% 74%, transparent 74% 88%, #fff 88% 89%, transparent 89%);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.9));
}
.dr-pack-crack.show { animation: dr-crack 0.5s ease-out forwards; }
@keyframes dr-crack {
  0% { opacity: 0; transform: scaleY(0.4); }
  35% { opacity: 1; transform: scaleY(1.6); }
  100% { opacity: 0; transform: scaleY(1); }
}
/* Emblema central: cartas en abanico + cápsula «DRAFT» (una sola pieza) */
.dr-pack-badge {
  position: relative; z-index: 3;
  width: 82%; max-width: 184px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.42));
}
.dr-pack-badge svg { width: 100%; height: auto; display: block; }
.dr-cut-hint {
  position: absolute; top: -38px; left: 0; right: 0; z-index: 4; text-align: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.2em;
  animation: dr-hint 1.7s ease-in-out infinite; pointer-events: none;
}
@keyframes dr-hint {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-5px); opacity: 1; }
}
/* Las opciones esperan ocultas a que el sobre las destape (vuela un clon de la
   opción real con sus traseras agrupadas; al aterrizar se destapa la real) */
.dr-option.reveal-pending { opacity: 0; }
/* Partículas del pick */
.dr-particle {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  z-index: 9600; pointer-events: none;
}
/* Chispas limpias (puntos de luz con resplandor suave) */
.dr-spark {
  position: fixed; border-radius: 50%; z-index: 9540; pointer-events: none;
  filter: blur(0.4px);
}
/* Destello suave al abrir el sobre */
.dr-bloom {
  position: fixed; width: 220px; height: 220px; border-radius: 50%;
  z-index: 9530; pointer-events: none; mix-blend-mode: screen; filter: blur(10px);
}

/* Flash central al cambiar de ronda */
#dr-play { position: relative; }
.dr-ronda-flash {
  position: absolute; left: 50%; top: 44%;
  transform: translate(-50%,-50%);
  font-size: 58px; font-weight: 800; letter-spacing: -0.02em;
  pointer-events: none; z-index: 50;
  /* brillo holográfico que CRUZA el texto una vez (gradiente + clip de texto) */
  background: linear-gradient(100deg,
    #eaf2ff 0%, #ffffff 38%, #c4ddff 50%, #ffffff 62%, #eaf2ff 100%);
  background-size: 280% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 6px 34px rgba(0,0,0,0.85)) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  animation: dr-ronda-shine 0.72s ease-out forwards;
}
@keyframes dr-ronda-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
#dr-abandon-btn {
  position: absolute; right: 18px; top: 16px;
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.3); font-family: system-ui, sans-serif;
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
#dr-abandon-btn:hover { background: rgba(255,107,107,0.12); color: #ff6b6b; }

/* ── Opciones de la oleada ── */
#dr-options {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 29px; padding: 14px 32px 20px;
  min-height: 0;
}
.dr-option {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; width: 188px; max-width: 17vw;
  transition: transform 0.18s cubic-bezier(0.22,1,0.36,1);
  perspective: 760px; /* tilt 3D del stack */
}
/* Elevación/press de ESCRITORIO: SOLO en dispositivos con hover real. En táctil
   el hover se queda pegado tras tocar (la «mini-elevación base» se atasca) → fuera. */
@media (hover: hover) {
  .dr-option:hover { transform: translateY(-8px); z-index: 6; }
  .dr-option:active { transform: translateY(-8px) scale(0.97); }
}

/* Stack de línea evolutiva: cartas a tamaño completo apiladas detrás;
   al hover se abanican (básico a la izquierda → evolución a la derecha) */
.dr-stack {
  position: relative; width: 100%; aspect-ratio: 367 / 512;
  /* OJO: sin preserve-3d — con él, el tilt hacía sobresalir en 3D a las
     cartas traseras y robaban el hover de la delantera (stutter) */
  transition: transform 0.16s ease-out; /* suaviza el tilt que pone JS */
}
.dr-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 10px; display: block;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 8px 26px rgba(0,0,0,0.55);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1),
              filter 0.32s, box-shadow 0.2s;
}
.st-top { z-index: 2; }
/* Las cartas traseras no son interactivas hasta que el abanico está ABIERTO
   (la clase .fanned la pone JS ~330ms tras entrar): el borde que asoma ya no
   roba el hover antes de tiempo */
.st-back { z-index: 1; pointer-events: none; }
.dr-stack.fanned .st-back { pointer-events: auto; }
.st-back.b1 { transform: translateY(-8px) rotate(1.5deg); filter: brightness(0.82); }
.st-back.b2 { transform: translateY(-16px) rotate(3deg); filter: brightness(0.66); z-index: 0; }
.st-back.b3 { transform: translateY(-24px) rotate(4.5deg); filter: brightness(0.52); z-index: -1; }
/* Sombra y cascada del fan-on-hover: SOLO en hover real (en táctil el fan se hace
   por la clase .fanned vía gestos, no por :hover; así no se atasca al tocar). */
@media (hover: hover) {
  .dr-option:hover .st-top { box-shadow: 0 16px 36px rgba(0,0,0,0.65), 0 0 0 2px rgba(255,255,255,0.22); }
  /* Cascada vertical: la línea se despliega hacia arriba (escalera evolutiva,
     sin invadir a las opciones vecinas). La carta superior se queda quieta. */
  .dr-option:hover .n2 .st-back.b1 { transform: translateY(-36%) rotate(0deg); filter: brightness(1); }
  .dr-option:hover .n3 .st-back.b1 { transform: translateY(-34%) rotate(0deg); filter: brightness(1); }
  .dr-option:hover .n3 .st-back.b2 { transform: translateY(-68%) rotate(0deg); filter: brightness(1); }
  /* Cascada para combos de 4 cartas (Magnemite·Magneton·Magnezone·Arceus ex) */
  .dr-option:hover .n4 .st-back.b1 { transform: translateY(-26%) rotate(0deg); filter: brightness(1); }
  .dr-option:hover .n4 .st-back.b2 { transform: translateY(-52%) rotate(0deg); filter: brightness(1); }
  .dr-option:hover .n4 .st-back.b3 { transform: translateY(-78%) rotate(0deg); filter: brightness(1); }
  /* Dentro de la cascada, la carta bajo el cursor sube en z para verse entera */
  .dr-option:hover .n2 .st-back.b1:hover { transform: translateY(-36%) scale(1.07); z-index: 8; box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.2); }
  .dr-option:hover .n3 .st-back.b1:hover { transform: translateY(-34%) scale(1.07); z-index: 8; box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.2); }
  .dr-option:hover .n3 .st-back.b2:hover { transform: translateY(-68%) scale(1.07); z-index: 8; box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.2); }
  .dr-option:hover .n4 .st-back.b1:hover { transform: translateY(-26%) scale(1.07); z-index: 8; box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.2); }
  .dr-option:hover .n4 .st-back.b2:hover { transform: translateY(-52%) scale(1.07); z-index: 8; box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.2); }
  .dr-option:hover .n4 .st-back.b3:hover { transform: translateY(-78%) scale(1.07); z-index: 8; box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 0 2px rgba(255,255,255,0.2); }
}

.dr-opt-badge {
  position: absolute; top: -12px; right: -12px; z-index: 3;
  padding: 5px 12px; border-radius: 14px;
  background: rgba(28,28,40,0.97); border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 3px 12px rgba(0,0,0,0.55);
  pointer-events: none;
  letter-spacing: 0.02em;
}
/* Oferta especial (línea doble / combo): badge dorado con pulso y aura */
.dr-opt-badge.special {
  background: linear-gradient(135deg, #f6c44a, #e89a1f 60%, #f6c44a);
  border-color: rgba(255,235,170,0.9);
  color: #2a1a04; text-shadow: none;
  box-shadow: 0 0 14px rgba(246,196,74,0.55), 0 3px 12px rgba(0,0,0,0.5);
  animation: dr-badge-pulse 1.5s ease-in-out infinite;
}
@keyframes dr-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(246,196,74,0.45), 0 3px 12px rgba(0,0,0,0.5); }
  50%      { transform: scale(1.13); box-shadow: 0 0 24px rgba(246,196,74,0.85), 0 3px 12px rgba(0,0,0,0.5); }
}
.dr-option.special-offer .st-top {
  box-shadow: 0 8px 26px rgba(0,0,0,0.55), 0 0 0 2px rgba(246,196,74,0.55), 0 0 22px rgba(246,196,74,0.35);
}
@media (hover: hover) {
  .dr-option.special-offer:hover .st-top {
    box-shadow: 0 16px 36px rgba(0,0,0,0.65), 0 0 0 2.5px rgba(246,196,74,0.9), 0 0 30px rgba(246,196,74,0.5);
  }
}
.dr-opt-sub.special {
  color: #f6c44a; font-weight: 800; font-size: 11.5px;
  text-shadow: 0 0 12px rgba(246,196,74,0.4);
}
/* Combo normal (diseño, no suerte): tier cian propio, sin pulso */
.dr-opt-badge.combo {
  background: linear-gradient(135deg, #3a4a6e, #26304a);
  border-color: rgba(120,180,255,0.55);
  color: #b8d8ff;
  box-shadow: 0 0 10px rgba(90,150,255,0.3), 0 3px 12px rgba(0,0,0,0.5);
}
.dr-option.combo-offer .st-top {
  box-shadow: 0 8px 26px rgba(0,0,0,0.55), 0 0 0 1.5px rgba(120,180,255,0.45);
}
.dr-opt-sub.combo { color: #9cc4ff; font-weight: 700; }
.dr-opt-name {
  font-size: 13px; font-weight: 650; color: rgba(255,255,255,0.82);
  text-align: center; line-height: 1.25; letter-spacing: 0.005em;
  transition: opacity 0.3s ease;
}
.dr-opt-sub {
  font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.38);
  margin-top: -4px; text-transform: uppercase; letter-spacing: 0.06em;
  transition: opacity 0.3s ease;
}
.dr-opt-badge { transition: opacity 0.3s ease; }

/* ── Píldora "premio": casos especiales (línea/robo doble, combo, evolución).
   Va en el borde inferior central de la carta (margin-top negativo la sube a
   horcajadas del borde y empuja el nombre hacia abajo). Contiene el texto. ── */
/* Pie de la opción: ABSOLUTO bajo la carta → no empuja la portada (su posición
   queda fija). Contiene píldora (si especial) + nombre + abanico (si >1). */
.dr-opt-foot {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 100%; z-index: 5;       /* SIEMPRE por delante de la carta (st-top va a z-index 2) */
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding-top: 22px;   /* hueco FIJO reservado para la píldora (absoluta): nombre y abanico no se desplazan la lleve o no */
}
.dr-pill {
  /* ABSOLUTA: cabalga el borde inferior de la carta SIN empujar nombre/abanico */
  position: absolute; top: 0; left: 50%; z-index: 6;
  transform: translate(-50%, -50%);
  padding: 4px 13px; border-radius: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap;
  background: rgba(24,26,36,0.96); border: 1.4px solid rgba(255,255,255,0.26);
  color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,0.6); pointer-events: none;
}
.dr-pill.special {
  background: linear-gradient(135deg, #ffd05a, #ec9a14 55%, #ffd45e);
  border-color: rgba(255,240,185,0.95); color: #241502;
  box-shadow: 0 0 18px rgba(248,200,70,0.65), 0 3px 12px rgba(0,0,0,0.45);
  animation: dr-pill-pulse 1.5s ease-in-out infinite;
}
@keyframes dr-pill-pulse {
  0%,100% { box-shadow: 0 0 14px rgba(248,200,70,0.5), 0 3px 12px rgba(0,0,0,0.45); transform: translate(-50%,-50%) scale(1); }
  50%     { box-shadow: 0 0 30px rgba(248,200,70,0.95), 0 3px 12px rgba(0,0,0,0.45); transform: translate(-50%,-50%) scale(1.05); }
}
.dr-pill.combo {
  background: linear-gradient(135deg, #41557e, #2a3550);
  border-color: rgba(130,185,255,0.6); color: #d6e6ff;
  box-shadow: 0 0 13px rgba(90,150,255,0.4), 0 3px 12px rgba(0,0,0,0.45);
  animation: dr-pill-pulse-combo 1.5s ease-in-out infinite;
}
/* Mismo gesto que la dorada (brillo + escala) pero en su azul */
@keyframes dr-pill-pulse-combo {
  0%,100% { box-shadow: 0 0 13px rgba(90,150,255,0.4), 0 3px 12px rgba(0,0,0,0.45); transform: translate(-50%,-50%) scale(1); }
  50%     { box-shadow: 0 0 28px rgba(125,180,255,0.9), 0 3px 12px rgba(0,0,0,0.45); transform: translate(-50%,-50%) scale(1.05); }
}

/* ── Abanico de mini-cartas DEBAJO del nombre: indicador claro de que la oferta
   trae más de una carta (neutro; el color de premio lo lleva la píldora). ── */
.dr-fan {
  position: relative; width: 100%; height: 16px; margin-top: 1px;
  pointer-events: none;
}
.dr-fan-c {
  position: absolute; left: 50%; bottom: 0; margin-left: -6px;
  width: 12px; height: 16px; border-radius: 2.5px;
  background: linear-gradient(158deg, #eef0f6 0%, #b7bece 100%);
  border: 1px solid rgba(11,13,20,0.5);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transform-origin: 50% 100%;
  transform: rotate(var(--a));
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
}
@media (hover: hover) {
  .dr-option:hover .dr-fan-c { transform: rotate(calc(var(--a) * 1.3)) translateY(-1px); }
}

/* ── Barra inferior: el mazo construyéndose, con progreso encima ── */
#dr-deckbar-wrap {
  display: flex; flex-direction: column;
  background: rgba(15,15,22,0.94);
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Barra de progreso (misma receta que la del deck pop-up de Cartas) */
#dr-bar-track {
  height: 4px; background: rgba(255,255,255,0.08);
  overflow: hidden; width: 100%;
}
#dr-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, hsl(0,72%,50%), hsl(16,76%,58%));
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), background 0.4s;
}
#dr-deckbar-row {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 11px 18px 14px;
}
#dr-count-block {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  min-width: 60px;
}
#dr-pick-count {
  font-size: 18px; font-weight: 800; color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
#dr-colors { display: flex; gap: 4px; }
.dr-color-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
#dr-deckbar { display: flex; gap: 5px; }
/* Preview grande al pasar por una miniatura del mazo */
#dr-card-preview {
  position: fixed; width: 224px; z-index: 9300;
  pointer-events: none; opacity: 0; transform: translateY(8px) scale(0.96);
  transition: opacity 0.16s, transform 0.18s cubic-bezier(0.22,1,0.36,1);
  filter: drop-shadow(0 14px 38px rgba(0,0,0,0.75));
}
#dr-card-preview.show { opacity: 1; transform: translateY(0) scale(1); }
#dr-card-preview img {
  width: 100%; aspect-ratio: 367 / 512; object-fit: cover;
  border-radius: 11px; display: block;
}
.dr-slot {
  width: 36px; aspect-ratio: 367 / 512;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden; flex-shrink: 0;
}
.dr-slot.filled { border-color: rgba(255,255,255,0.18); }
.dr-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Botón de REROLL — 3D MINIMALISTA (cilindro con pared lateral + ligera
   perspectiva). Se HUNDE de verdad al pulsar; gastado = queda hundido. ── */
#dr-reroll {
  display: inline-flex; align-items: center; justify-content: center; margin-left: 12px;
  flex-shrink: 0; user-select: none; -webkit-tap-highlight-color: transparent; perspective: 360px;
}
.dr-rr-btn {
  --depth: 6px;
  position: relative; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  transform: rotateX(14deg);                 /* ligera perspectiva: se ve la pared */
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.12), transparent 52%),
    radial-gradient(circle at 50% 64%, #2c313d, #1a1e28 80%);
  box-shadow:
    0 var(--depth) 0 #0c0e14,
    0 calc(var(--depth) + 2px) 7px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transition: transform 0.11s cubic-bezier(0.3,0,0.3,1), box-shadow 0.11s cubic-bezier(0.3,0,0.3,1);
}
.dr-rr-ico {
  position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; /* círculo de flechas */
  color: #67c8ff; pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(95,195,255,0.6));
  transition: opacity 0.16s, filter 0.16s, color 0.16s;
}
.dr-rr-wave {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(130,205,255,0.55), transparent 62%);
}
.dr-rr-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.24em; color: rgba(150,200,255,0.5);
  text-transform: uppercase; pointer-events: none;
}
/* PULSADO: hundimiento COMPLETO (la pared desaparece) */
.dr-rr-btn.pressing {
  transform: rotateX(14deg) translateY(var(--depth));
  box-shadow: 0 0 0 #0c0e14, 0 2px 5px rgba(0,0,0,0.5), inset 0 2px 6px rgba(0,0,0,0.55);
}
/* GASTADO: queda hundido PARCIAL (no del todo) + flechas apagadas a MATE */
.dr-rr-btn.spent {
  cursor: default;
  transform: rotateX(14deg) translateY(3px);
  box-shadow: 0 3px 0 #0c0e14, 0 5px 6px rgba(0,0,0,0.5), inset 0 1px 4px rgba(0,0,0,0.4);
}
.dr-rr-btn.spent .dr-rr-ico { color: #707a87; opacity: 1; filter: none; } /* opacas/mate, sin neón */
/* Destello que barre la fila al rerollear (limpio, enmascara el cambio) */
#dr-options { perspective: 1100px; }
.dr-rr-shine {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(150,210,255,0.18), transparent);
  mix-blend-mode: screen; filter: blur(2px);
}

/* ── Pantalla final ── */
#dr-end {
  flex: 1; display: none; flex-direction: column; align-items: center;
  gap: 20px; padding: 34px 28px 28px; overflow-y: auto;
}
#dr-end-head { display: flex; flex-direction: column; align-items: center; gap: 5px; }
#dr-end-title {
  font-size: 26px; font-weight: 750; color: rgba(255,255,255,0.94);
  letter-spacing: -0.01em;
}
#dr-end-sub {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.08em;
}
/* Mazo completo: mismo formato que la imagen de mazo 1920×1080 — únicas con
   badge ×N en 1-2 filas centradas, cartas grandes */
#dr-end { justify-content: center; }
#dr-end-grid {
  display: flex; flex-direction: column; align-items: center;
  gap: calc(var(--endcw, 120px) * 0.07);
}
.dr-end-row {
  display: flex; justify-content: center;
  gap: calc(var(--endcw, 120px) * 0.07);
}
.dr-end-card {
  position: relative; width: var(--endcw, 120px);
  transition: transform 0.15s;
}
.dr-end-card.pending { visibility: hidden; }
@media (hover: hover) { .dr-end-card:hover { transform: translateY(-5px) scale(1.05); z-index: 2; } }
.dr-end-card img {
  width: 100%; aspect-ratio: 367 / 512; object-fit: cover;
  border-radius: calc(var(--endcw, 120px) * 0.05); display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
}
.dr-end-count {
  position: absolute; top: -8px; right: -8px;
  padding: 2px 8px; border-radius: 11px;
  background: rgba(28,28,40,0.95); border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.95); font-size: 11.5px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
#dr-end-actions { display: flex; gap: 10px; margin-top: 6px; }
/* Destello holo de «mazo completo»: recortado a la superficie de cada carta
   (overflow:hidden) y traslúcido — no pilla el fondo ni se ve clippeado. */
.dr-end-shine {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3;
  border-radius: calc(var(--endcw, 120px) * 0.05);
  mix-blend-mode: screen;
}
.dr-end-shine-band {
  position: absolute; top: -12%; bottom: -12%; left: 0; width: 72%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.26) 46%,
    rgba(195,226,255,0.16) 56%, transparent 100%);
  filter: blur(1px);
}

/* ══════════════════════════════════════════════════════════════
   MULTIJUGADOR — entrada en la pantalla de inicio + lobby de sala
   Estética: pestaña Cartas (system-ui, superficies oscuras neutras,
   controles blancos translúcidos). Azul J1 / rojo J2 funcionales.
══════════════════════════════════════════════════════════════ */
/* Entrada al multijugador — centrado, debajo del selector de pool, con la
   estética neutra del resto de la web (system-ui, blanco translúcido). */
#dr-mp-fab {
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86); font-family: system-ui, sans-serif;
  font-size: 14px; font-weight: 650; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s, border-color .15s;
}
#dr-mp-fab svg { width: 19px; height: 19px; color: rgba(255,255,255,0.62); transition: color .15s; }
#dr-mp-fab:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: #fff; }
#dr-mp-fab:hover svg { color: rgba(255,255,255,0.9); }
#dr-mp-fab:active { transform: scale(0.97); }

/* ── Multijugador: el SOBRE como botón de "listo" (antes de las rondas) ── */
#dr-start.mp-ready #dr-start-tagline,
#dr-start.mp-ready #dr-pool-toggle,
#dr-start.mp-ready #dr-pool-peek,
#dr-start.mp-ready #dr-pool-info,
#dr-start.mp-ready #dr-mp-fab,
#dr-start.mp-ready .dr-info-wrap { display: none !important; }
#dr-mp-ready-hint {
  font-size: 15px; font-weight: 600; line-height: 1.5;
  color: rgba(255,255,255,0.66);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px; padding: 9px 18px; margin-top: 2px;
  animation: dr-mpready-pulse 2.4s ease-in-out infinite;
}
@keyframes dr-mpready-pulse { 0%,100% { opacity: 0.72; } 50% { opacity: 1; } }

/* ── Overlay del lobby ── */
#dr-lobby {
  position: fixed; inset: 0; z-index: 9200; display: none;
  align-items: center; justify-content: center;
}
#dr-lobby.open { display: flex; }
#dr-lobby-backdrop {
  position: absolute; inset: 0; background: rgba(8,8,12,0.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
#dr-lobby-panel {
  position: relative; z-index: 1;
  width: min(92vw, 380px); max-height: 88vh; overflow: auto;
  background: rgba(20,22,30,0.96);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  padding: 26px 24px 22px; text-align: center;
  font-family: system-ui, sans-serif; color: rgba(255,255,255,0.9);
  animation: dr-lobby-pop .22s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes dr-lobby-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
#dr-lobby-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.62); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: background .15s, transform .08s;
}
#dr-lobby-close:hover { background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.9); }
#dr-lobby-close:active { transform: scale(0.92); }

.dr-lobby-h { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.96); margin-bottom: 16px; }
.dr-lobby-h--info { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; }
/* "?" de info del lobby (cómo funciona el draft sincronizado).
   El pop se ancla al TÍTULO (centrado en el modal), no al "?" → no se sale por la derecha. */
.dr-mp-info-wrap { display: inline-flex; align-items: center; }
.dr-mp-info-btn {
  display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.6);
  transition: background .15s, color .15s, transform .1s;
}
.dr-mp-info-wrap:hover .dr-mp-info-btn, .dr-mp-info-wrap.open .dr-mp-info-btn { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.92); }
.dr-mp-info-btn:active { transform: scale(0.92); }
.dr-mp-info-btn svg { width: 14px; height: 14px; }
.dr-mp-info-pop {
  display: none; position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  width: min(82vw, 310px); z-index: 7; text-align: left;
  background: rgba(20,22,30,0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 13px; padding: 12px 14px;
  font: 400 12.5px/1.5 system-ui, sans-serif; color: rgba(255,255,255,0.72); font-weight: 400;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.dr-mp-info-wrap:hover .dr-mp-info-pop, .dr-mp-info-wrap.open .dr-mp-info-pop { display: block; }
.dr-lobby-note { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.5); margin: 14px 4px 0; }

/* ── Código de sala ── */
.dr-lobby-codewrap { margin-bottom: 16px; }
.dr-lobby-codelabel { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 8px; }
.dr-lobby-coderow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.dr-lobby-code {
  font-size: 28px; font-weight: 800; letter-spacing: .14em;
  color: #fff; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 12px;
  padding: 8px 16px; font-variant-numeric: tabular-nums;
}
/* Mismo botón de copiar (icono) que el resto, pero a la altura del código grande */
.dr-lobby-copy {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7); -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, transform .08s;
}
.dr-lobby-copy:hover { background: rgba(255,255,255,0.16); color: #fff; }
.dr-lobby-copy:active { transform: scale(0.94); }
.dr-lobby-copy svg { width: 19px; height: 19px; }
.dr-lobby-sharehint { font-size: 11.5px; color: rgba(255,255,255,0.4); margin-top: 9px; }

.dr-lobby-poolrow {
  display: inline-block; font-size: 11.5px; color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}

/* ── Jugadores ── */
.dr-lobby-players { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.dr-lobby-player {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 11px 14px;
}
.dr-lobby-player.empty { opacity: 0.6; }
.dr-lobby-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dr-lobby-dot.p1 { background: #4dabff; box-shadow: 0 0 8px rgba(77,171,255,0.6); }
.dr-lobby-dot.p2 { background: #ff6b6b; box-shadow: 0 0 8px rgba(255,107,107,0.6); }
.dr-lobby-player.empty .dr-lobby-dot.p2 { background: rgba(255,255,255,0.2); box-shadow: none; }
.dr-lobby-pname { flex: 1 1 auto; text-align: left; font-size: 15.5px; font-weight: 700; color: rgba(255,255,255,0.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-lobby-player.empty .dr-lobby-pname { color: rgba(255,255,255,0.5); font-weight: 500; font-style: italic; }
.dr-lobby-tag { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06); border-radius: 6px; padding: 3px 7px; flex: 0 0 auto; align-self: flex-start; }
/* Columna nombre / código → el código en su propia línea, no empuja el nombre */
.dr-lobby-pinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.dr-lobby-pinfo .dr-lobby-pname { flex: none; }
.dr-lobby-player .dr-mp-av { width: 36px; height: 36px; }

/* ── Perfil del jugador en el draft: avatar (aro p1/p2) + código de amigo copiable ── */
.dr-mp-av {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); box-shadow: 0 0 0 2px rgba(255,255,255,0.14);
  font: 700 13px/1 system-ui, sans-serif; color: #fff;
}
.dr-mp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-mp-av.p1 { box-shadow: 0 0 0 2px #4dabff, 0 0 8px rgba(77,171,255,0.5); }
.dr-mp-av.p2 { box-shadow: 0 0 0 2px #ff6b6b, 0 0 8px rgba(255,107,107,0.5); }
.dr-mp-av.letter.p1 { background: linear-gradient(135deg, #4dabff, #3a7fd0); }
.dr-mp-av.letter.p2 { background: linear-gradient(135deg, #ff6b6b, #d04b4b); }
.dr-lobby-player.empty .dr-mp-av { box-shadow: 0 0 0 2px rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); }
.dr-mp-fc { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
/* Código discreto (no hace falta leerlo) pero con su espacio para los 16 dígitos */
.dr-mp-fc-code {
  font: 500 12px/1.2 system-ui, sans-serif; color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
/* El botón de copiar SÍ debe verse → fondo base (no solo en hover) */
.dr-mp-fc-copy {
  flex: 0 0 auto; width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); cursor: pointer; border-radius: 7px;
  -webkit-tap-highlight-color: transparent; transition: background .12s, color .12s, transform .08s;
}
.dr-mp-fc-copy:hover { background: rgba(255,255,255,0.16); color: #fff; }
.dr-mp-fc-copy:active { transform: scale(0.9); }
.dr-mp-fc-copy svg { width: 14px; height: 14px; }

/* ── Botones del lobby ── */
.dr-lobby-btn {
  display: block; width: 100%; margin-top: 9px;
  padding: 12px 18px; border-radius: 12px; cursor: pointer;
  font-family: system-ui, sans-serif; font-size: 14px; font-weight: 650;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88); -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .08s, opacity .15s;
}
.dr-lobby-btn:hover { background: rgba(255,255,255,0.15); }
.dr-lobby-btn:active { transform: scale(0.98); }
.dr-lobby-btn.primary { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.22); }
.dr-lobby-btn.primary:hover { background: rgba(255,255,255,0.26); }
.dr-lobby-btn.subtle { background: transparent; border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; }
.dr-lobby-btn.subtle:hover { color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.16); }
.dr-lobby-btn.disabled { opacity: 0.32; pointer-events: none; }
.dr-lobby-btn.busy { opacity: 0.5; pointer-events: none; }

/* ── Formulario de unirse ── */
.dr-lobby-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.dr-lobby-in {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border-radius: 11px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.13);
  color: #fff; font-family: system-ui, sans-serif; font-size: 15px; outline: none;
  transition: border-color .15s, background .15s;
}
.dr-lobby-in:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
.dr-lobby-in::placeholder { color: rgba(255,255,255,0.34); }
.dr-lobby-in.code { text-align: center; letter-spacing: .18em; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.dr-lobby-err { font-size: 12px; color: #ff8a8a; min-height: 16px; }

/* ── Pantalla "conectados" (VS placeholder de la Tanda 1) ── */
.dr-lobby-vs { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 4px; }
.dr-lobby-vs-name { font-size: 15px; font-weight: 700; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-lobby-vs-name.p1 { color: #7bc4ff; }
.dr-lobby-vs-name.p2 { color: #ff8f8f; }
.dr-lobby-vs-x { font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.4); letter-spacing: .08em; }

/* ── Spinner ── */
.dr-lobby-spin {
  width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15); border-top-color: rgba(255,255,255,0.7);
  animation: dr-lobby-spin 0.8s linear infinite;
}
.dr-lobby-spin.big { width: 30px; height: 30px; margin: 18px auto 4px; border-width: 3px; }
@keyframes dr-lobby-spin { to { transform: rotate(360deg); } }

/* ── HUD del draft multijugador (estilo Clash) ── */
/* Mazo del rival ARRIBA. Desktop = 1 FILA de 20; móvil = 2 filas de 10. Igual que tu
   barra de mazo pero MENOS enfatizado (mezclado con el fondo). */
#dr-mp-opp-area {
  width: min(96vw, 720px); margin: 10px auto 2px; padding: 0 10px; box-sizing: border-box;
  opacity: 0.9;
}
#dr-mp-opplabel {
  font-size: 11px; color: rgba(255,255,255,0.38); margin-bottom: 5px;
  font-family: system-ui, sans-serif; text-align: center; letter-spacing: 0.01em;
}
#dr-mp-opp { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.dr-mp-opp-slot {
  aspect-ratio: 367 / 512; border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,0.025);
}
.dr-mp-opp-slot.filled { background: rgba(255,255,255,0.045); cursor: zoom-in; transition: transform .1s; }
.dr-mp-opp-slot.filled:hover { transform: translateY(-2px); }
.dr-mp-opp-slot.filled:hover img { opacity: 1; }
.dr-mp-opp-slot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
@media (max-width: 720px) { #dr-mp-opp { grid-template-columns: repeat(10, 1fr); } }

/* Timer = barra CORTA y GRUESA que se vacía, dividida en 10 "vidas". Va ENTRE las
   opciones y tu barra de mazo, centrado. Color verde→rojo (JS) + pop por segundo. */
#dr-mp-timer.dr-mp-timerbar {
  position: relative; overflow: hidden; margin: 6px auto 8px;
  width: 158px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
#dr-mp-timer-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; z-index: 0;
  background: linear-gradient(90deg, hsl(142,60%,48%), hsl(142,66%,58%));
  border-radius: 10px 0 0 10px;
}
/* 10 divisiones sutiles (las "vidas") */
#dr-mp-timer.dr-mp-timerbar::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg,
    transparent 0, transparent calc(10% - 1.2px),
    rgba(0,0,0,0.28) calc(10% - 1.2px), rgba(0,0,0,0.28) 10%);
}
#dr-mp-timer-num {
  position: relative; z-index: 2;
  font-family: system-ui, sans-serif; font-size: 18px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: #fff; letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.75);
}
/* Pop sutil por segundo (vida perdida) */
#dr-mp-timer.tick #dr-mp-timer-num { animation: dr-mp-tick 0.26s ease; }
@keyframes dr-mp-tick { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
/* Estrés en los últimos 3s: glow rojo suave que late */
#dr-mp-timer.low { border-color: rgba(255,107,107,0.5); animation: dr-mp-lowglow 0.85s ease-in-out infinite; }
@keyframes dr-mp-lowglow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 rgba(255,80,80,0); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 11px rgba(255,80,80,0.45); }
}
@media (max-width: 720px) {
  #dr-mp-opp-area { margin: 6px auto 2px; }
  #dr-mp-timer.dr-mp-timerbar { width: 130px; height: 26px; margin: 4px auto 5px; }
  #dr-mp-timer-num { font-size: 16px; }
}
#dr-mp-wait {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); z-index: 8;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
#dr-mp-wait .dr-mp-wait-inner {
  font-family: system-ui, sans-serif; font-size: 15px; font-weight: 650;
  color: rgba(255,255,255,0.85); background: rgba(20,22,30,0.85);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 12px 22px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ── Pantalla FINAL del multijugador: los DOS mazos (formato Mis Mazos, anti-trampas) ── */
#dr-mp-end {
  position: absolute; inset: 0; z-index: 60; display: none;
  background: radial-gradient(ellipse 120% 90% at 50% 12%, #16161f 0%, #0e0e14 70%);
  overflow: auto; -webkit-overflow-scrolling: touch;
}
#dr-mp-end-scroll {
  min-height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 24px; box-sizing: border-box; gap: 14px;
}
#dr-mp-end-title {
  font-family: system-ui, sans-serif; font-size: 26px; font-weight: 800;
  color: rgba(255,255,255,0.96); letter-spacing: -0.02em; text-align: center; margin: 0;
}
/* Bloque por mazo (apilados y centrados) */
.dr-mp-end-deck {
  width: 100%; max-width: 600px; box-sizing: border-box;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 12px 14px 14px;
}
.dr-mp-end-pl { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.dr-mp-end-pl .dr-mp-av { width: 40px; height: 40px; font-size: 15px; }
.dr-mp-end-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dr-mp-end-name {
  font-family: system-ui, sans-serif; font-size: 17px; font-weight: 700; color: rgba(255,255,255,0.92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dr-mp-end-info .dr-mp-fc-code { font-size: 12.5px; }
.dr-mp-end-info .dr-mp-fc-copy { width: 26px; height: 26px; }
.dr-mp-end-info .dr-mp-fc-copy svg { width: 15px; height: 15px; }
.dr-mp-end-tag {
  font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06); border-radius: 6px; padding: 2px 6px; font-family: system-ui, sans-serif;
}
.dr-mp-end-fc {
  font-family: system-ui, sans-serif; font-size: 11px; color: rgba(255,255,255,0.42);
  font-variant-numeric: tabular-nums; letter-spacing: 0.03em;
}
/* Iconos guardar / compartir a la derecha de la cabecera */
.dr-mp-end-tools { margin-left: auto; flex: 0 0 auto; display: flex; gap: 6px; }
.dr-mp-iconbtn {
  width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.78);
  transition: background .15s, transform .08s, color .15s;
}
.dr-mp-iconbtn svg { width: 17px; height: 17px; }
.dr-mp-iconbtn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.dr-mp-iconbtn:active { transform: scale(0.92); }
.dr-mp-iconbtn.dr-saved {
  background: rgba(80,200,120,0.16); border-color: rgba(80,200,120,0.4); color: #7fe0a0; pointer-events: none;
}
.dr-lobby-btn.dr-saved {
  background: rgba(80,200,120,0.16); border-color: rgba(80,200,120,0.4); color: #7fe0a0; opacity: 1; pointer-events: none;
}
/* Mazo en formato Mis Mazos, pero COMPACTO para que entren los dos de un vistazo */
.dr-mp-end-deck .mz-dl { width: 100%; }
.dr-mp-end-deck .mz-dl-row { display: flex; gap: 4px; justify-content: center; margin: 0 0 4px; }
.dr-mp-end-deck .mz-dl-row:last-child { margin-bottom: 0; }
.dr-mp-end-deck .mz-dl-card { position: relative; flex: 1 1 0; min-width: 0; max-width: 56px; }
.dr-mp-end-deck .mz-dl-card img { width: 100%; height: auto; display: block; border-radius: 4px; }
#dr-mp-end-actions {
  display: flex; flex-direction: column; gap: 10px; margin-top: 6px; width: 100%; max-width: 320px;
}
#dr-mp-end-actions .dr-lobby-btn { margin-top: 0; }

@media (max-width: 720px) {
  #dr-mp-end-scroll { padding: 20px 12px 20px; gap: 10px; }
  #dr-mp-end-title { font-size: 22px; }
  .dr-mp-end-deck { padding: 10px 11px 12px; }
  .dr-mp-end-deck .mz-dl-card { max-width: 46px; }
}
