/* Draft: pantalla de juego con cancha en perspectiva. Siempre oscura (escenario de estadio),
   con el verde de tu11 como acento. Se carga después de theme.css. */

.screen.screen-draft-play {
  --night: #070D0A; --night-2: #0C1511; --panel: rgba(16, 26, 21, .72); --panel-2: rgba(24, 36, 30, .8);
  --line: rgba(220, 255, 225, .08); --line-2: rgba(220, 255, 225, .16);
  --chalk: #EEF5F0; --stand: #8FA39A;
  --neon: #4BF02A; --neon-rgb: 75, 240, 42; --gold: #4BF02A; --gold-rgb: 75, 240, 42;
  --grass: #1F8A4A; --grass-hi: #4BF02A;
  position: relative; min-height: 100vh; min-height: 100dvh; color: var(--chalk); background: #060B09; overflow-x: hidden; isolation: isolate;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambiente ---------- */
.dps-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% 55%, rgba(30, 90, 50, .28), transparent 70%),
    radial-gradient(900px 600px at 100% 0%, rgba(150, 200, 255, .10), transparent 60%),
    linear-gradient(180deg, #08110D 0%, #050907 100%);
}
.dps-lights { position: absolute; top: -40px; right: 4%; width: 380px; height: 260px;
  background:
    radial-gradient(closest-side, rgba(235, 245, 255, .55), transparent) 20% 30% / 120px 60px no-repeat,
    radial-gradient(closest-side, rgba(235, 245, 255, .5), transparent) 68% 18% / 140px 60px no-repeat,
    radial-gradient(closest-side, rgba(200, 225, 255, .16), transparent) 50% 60% / 380px 260px no-repeat;
  filter: blur(2px); animation: flicker 7s ease-in-out infinite;
}
.dps-lights::after { content: ''; position: absolute; inset: 60% -40% -260% 10%;
  background: conic-gradient(from 200deg at 60% 0%, transparent 0 8deg, rgba(220, 235, 255, .06) 12deg 26deg, transparent 32deg);
}
@keyframes flicker { 50% { opacity: .82; } }
.dps-swoosh { position: absolute; display: block; }
.dps-swoosh.s1 { left: -6%; bottom: -8%; width: 34vw; height: 44vh;
  background: linear-gradient(60deg, rgba(var(--neon-rgb), .0) 30%, rgba(var(--neon-rgb), .55) 55%, rgba(var(--neon-rgb), 0) 56%);
  clip-path: polygon(0 100%, 0 70%, 100% 0, 30% 100%); filter: blur(.5px); opacity: .55;
}
.dps-swoosh.s2 { right: -4%; top: 10%; width: 26vw; height: 18vh;
  background: linear-gradient(100deg, transparent 20%, rgba(var(--neon-rgb), .5) 80%, transparent 81%);
  clip-path: polygon(0 100%, 100% 0, 100% 22%, 18% 100%); opacity: .45;
}
.dps-mark { position: absolute; right: -2vw; bottom: 10vh; font: italic 900 22vw/1 var(--ui, var(--body)); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .035); }

/* ---------- Encabezado ---------- */
.screen.screen-draft-play .topbar.dps-top { background: transparent; border-bottom: 0; backdrop-filter: none; padding-bottom: .2rem; }
.dps-top .dp-title { align-items: center; gap: .9rem; }
.dps-top h1 { display: flex; align-items: center; gap: .9rem; }
.dps-word { font: 500 1.05rem/1 var(--ui, var(--body)) !important; letter-spacing: .42em !important; color: var(--chalk); padding-left: .9rem; border-left: 1px solid var(--line-2); }
.dps-top .dp-step { font: 600 1rem var(--ui, var(--body)); color: var(--neon); }

/* ---------- Distribución ---------- */
.screen-draft-play .dps {
  flex: none; width: 100%; max-width: 1560px; margin: 0 auto; min-height: 0;
  height: calc(100dvh - 72px);
  padding: 0 clamp(1rem, 2.4vw, 2.4rem) 1rem;
  display: grid; grid-template-columns: clamp(210px, 17vw, 270px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .8rem clamp(1rem, 2vw, 2rem);
}
.dps-stage { grid-column: 2; grid-row: 1; min-height: 0; container-type: size; position: relative; z-index: 0; display: grid; place-items: center; }
.dps-bottom { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; }

/* ---------- Panel ---------- */
.dps-stats { display: contents; }
.dps-panel { grid-column: 1; grid-row: 1; align-self: start; max-height: 100%; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: .15rem; padding-top: 1.2rem; min-width: 0; }
.dps-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .24em; color: var(--chalk); margin-bottom: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dps-stat { display: flex; flex-direction: column; gap: .3rem; padding: .75rem .95rem; border-bottom: 1px solid var(--line); }
.dps-formation { background: linear-gradient(90deg, rgba(var(--neon-rgb), .1), rgba(var(--neon-rgb), 0) 80%); border: 1px solid rgba(var(--neon-rgb), .22); border-left: 3px solid var(--neon); border-radius: 4px 12px 12px 4px; margin-bottom: .3rem; }
.dps-k { font-size: .82rem; color: var(--stand); }
.dps-big { font: 800 2rem/1 var(--ui, var(--body)); letter-spacing: -.03em; }
.dps-v { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.dps-v b { font: 700 1.25rem/1 var(--ui, var(--body)); font-variant-numeric: tabular-nums; margin-left: auto; }
.dps-v small { color: var(--stand); font-weight: 600; margin-left: -.35rem; }
.dps-v .dps-name { margin-left: 0; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dps-panel .stars i { width: 15px; height: 15px; }
.dps-panel .chem-meter { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.dps-panel .chem-meter span { background: linear-gradient(90deg, #1FA14C, var(--neon)); box-shadow: 0 0 10px rgba(var(--neon-rgb), .6); }
.dps-hint { font-size: .86rem; line-height: 1.45; color: #B9C8C0; padding: .8rem .95rem 0; min-height: 3.2em; }
.dps-help { padding: .4rem .95rem; font-size: .82rem; color: var(--stand); }
.dps-help summary { cursor: pointer; color: var(--chalk); font-weight: 600; padding: .3rem 0; }
.dps-help p { margin-top: .4rem; line-height: 1.45; }
.dps-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; }
.dps-legend .lg { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.lg.s2 { background: #5BE08C; } .lg.s1 { background: #F0C44C; } .lg.s0 { background: #E5534B; }
.dps-type { font-size: .78rem; color: var(--stand); padding: .2rem .95rem; }

/* ---------- Cancha ---------- */
.dps-pitch { position: relative; width: min(100cqw, 160cqh); aspect-ratio: 1.6; container-type: size; }
.dps-surface { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dps-edge { fill: #0E2A18; stroke: rgba(var(--neon-rgb), .75); stroke-width: 2; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px rgba(var(--neon-rgb), .55)) drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.dps-band.a { fill: #17542C; }
.dps-band.b { fill: #1B5F32; }
.dps-line { fill: none; stroke: rgba(240, 255, 240, .5); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dps-dot { fill: rgba(240, 255, 240, .6); }
.dps-pitch::before { content: ''; position: absolute; inset: 5% 2% 5% 2%; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 55% at 50% 50%, rgba(170, 255, 140, .12), transparent 70%); mix-blend-mode: screen; }
.dps-surface .chem-links line { stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.dps-surface .chem-links .open { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 3 5; }
.dps-surface .chem-links .s0 { stroke: #E5534B; opacity: .85; }
.dps-surface .chem-links .s1 { stroke: #F0C44C; filter: drop-shadow(0 0 3px rgba(240, 196, 76, .7)); }
.dps-surface .chem-links .s2 { stroke: #5BE08C; stroke-width: 3; filter: drop-shadow(0 0 4px rgba(91, 224, 140, .9)); }
.dps-surface .chem-links .s3 { stroke: #7CFF9F; stroke-width: 4; filter: drop-shadow(0 0 6px rgba(91, 224, 140, 1)); }

.screen-draft-play .dps .dpitch.dps-layer { position: absolute; inset: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.screen-draft-play .dps .dpitch .dslot { transform: translate(-50%, -60%); gap: 0; color: var(--chalk) !important; }
.screen-draft-play .dps .dpitch .dslot .dcard { --h: calc(18.5cqh * var(--k)); }
.screen-draft-play .dps .dslot-empty, .screen-draft-play .dps .dbench .dslot-empty {
  position: relative; display: block; height: calc(18.5cqh * var(--k, 1)); width: auto; aspect-ratio: .74;
  border: 1.5px solid transparent; border-radius: 22% 22% 30% 30% / 14% 14% 22% 22%;
  background:
    linear-gradient(170deg, #26302C, #161D1A 70%) padding-box,
    linear-gradient(165deg, rgba(var(--neon-rgb), .95), rgba(var(--neon-rgb), .15) 55%, rgba(var(--neon-rgb), .55)) border-box;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.screen-draft-play .dps .dslot-empty::before { content: 'TU11'; position: absolute; inset: 0; display: grid; place-items: center;
  font: italic 900 calc(6cqh * var(--k, 1))/1 var(--ui, var(--body)); letter-spacing: -.04em; color: rgba(255, 255, 255, .13); }
.screen-draft-play .dps .dslot-empty::after { content: ''; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg);
  background: #1B2420; border: 1.5px solid rgba(var(--neon-rgb), .9); border-right: 0; border-bottom: 0; }
.screen-draft-play .dps button.dslot.empty:hover .dslot-empty, .screen-draft-play .dps button.dbench.empty:hover .dslot-empty,
.screen-draft-play .dps button.dslot.empty:focus-visible .dslot-empty, .screen-draft-play .dps button.dbench.empty:focus-visible .dslot-empty {
  transform: translateY(-5px) scale(1.05); box-shadow: 0 0 0 1px rgba(var(--neon-rgb), .6), 0 0 26px rgba(var(--neon-rgb), .45), 0 16px 28px rgba(0, 0, 0, .5); filter: brightness(1.15);
}
.screen-draft-play .dps button.dslot.empty:active .dslot-empty, .screen-draft-play .dps button.dbench.empty:active .dslot-empty { transform: scale(.96); }
.screen-draft-play .dps .dslot-label {
  position: relative; z-index: 2; margin-top: -10%; display: inline-flex; align-items: center; gap: 3px;
  padding: .18em .75em; border-radius: 999px; border: 1px solid rgba(var(--neon-rgb), .7);
  background: rgba(8, 14, 11, .92); color: #F2F8F4; box-shadow: 0 0 10px rgba(var(--neon-rgb), .25);
  font: 700 clamp(.58rem, calc(2.6cqh * var(--k)), .82rem)/1.25 var(--ui, var(--body)); letter-spacing: .02em;
}
.screen-draft-play .dps .dslot-label.oop { border-color: #FF6A5C; background: #5A1714 !important; box-shadow: 0 0 10px rgba(255, 90, 80, .45); }
.screen-draft-play .dps .chem-dots i { width: 5px; height: 5px; }
.screen-draft-play .dps .cap-badge { top: 2%; right: 4%; }
.screen-draft-play .dps .dslot.swap-off, .screen-draft-play .dps .dbench.swap-off { opacity: .4; }
.screen-draft-play .dps .dslot.swap-target .dslot-empty, .screen-draft-play .dps .dbench.swap-target .dslot-empty { filter: none; }

/* Entrada de los casilleros (una sola vez al abrir). */
.dps-layer.intro .dslot > *, .dp-bench.intro .dbench > * { animation: slot-in .55s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
@keyframes slot-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }

/* ---------- Banco ---------- */
.dps-bench { position: relative; display: flex; align-items: center; gap: 1rem; min-width: 0; padding: .65rem 1.4rem .65rem 1rem; }
.dps-bench::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 16px; transform: skewX(-12deg);
  background: linear-gradient(180deg, rgba(20, 32, 26, .85), rgba(10, 16, 13, .85)); border: 1px solid rgba(var(--neon-rgb), .35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 24px rgba(var(--neon-rgb), .08) inset; }
.dps-sup { font: 800 .9rem/1 var(--ui, var(--body)); letter-spacing: .1em; color: var(--chalk); transform: rotate(-70deg); flex: none; padding-right: .3rem; border-right: 1px solid var(--line-2); }
.screen-draft-play .dps .dp-bench { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.3rem, 1vw, .9rem); justify-items: center; }
.screen-draft-play .dps .dbench { min-height: 0; position: relative; display: flex; flex-direction: column; align-items: center; color: var(--chalk); background: none; }
.screen-draft-play .dps .dbench .dcard { --h: clamp(70px, 14vh, 128px); }
.screen-draft-play .dps .dbench .dslot-empty { --k: 1; height: clamp(70px, 14vh, 128px); }
.screen-draft-play .dps .dbench .dslot-empty::before { font-size: clamp(.9rem, 2.4vh, 1.4rem); }
.dbench-tag { position: absolute; bottom: 8%; font-size: .68rem; font-weight: 600; color: var(--stand); white-space: nowrap; }
.screen-draft-play .dps .dbench:disabled { cursor: default; opacity: .55; }

/* ---------- Botón principal ---------- */
.dps-cta { display: flex; align-items: center; gap: .8rem; justify-content: flex-end; }
.dps-go { position: relative; display: inline-flex; align-items: center; gap: 1.4rem; min-height: 66px; padding: 0 1.4rem 0 2.4rem; border: 0; cursor: pointer;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); color: var(--chalk);
  background: linear-gradient(90deg, #121B17 0 60%, rgba(var(--neon-rgb), .35)); font: 700 1.05rem var(--ui, var(--body)); letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(var(--neon-rgb), .4); transition: filter .2s, transform .15s;
}
.dps-go i { width: 46px; height: 46px; display: grid; place-items: center; }
.dps-go i::before { content: ''; width: 14px; height: 14px; border: solid var(--neon); border-width: 3px 3px 0 0; transform: rotate(45deg); box-shadow: 7px -7px 0 -0px transparent; }
.dps-go i::after { content: ''; width: 14px; height: 14px; margin-left: -6px; border: solid var(--neon); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.dps-go i { display: flex; justify-content: center; align-items: center; }
.dps-go:disabled { cursor: default; color: #A9B8B0; }
.dps-go.ready { background: linear-gradient(90deg, #17321F 0 35%, var(--neon)); color: #07130B; animation: ready-glow 2.2s ease-in-out infinite; }
.dps-go.ready i::before, .dps-go.ready i::after { border-color: #07130B; }
.dps-go.ready:hover { filter: brightness(1.08); transform: translateX(3px); }
@keyframes ready-glow { 50% { filter: drop-shadow(0 0 14px rgba(var(--neon-rgb), .7)); } }
.dps-release { min-height: 50px; }

/* ---------- Mesa de cartas: brillo al revelar ---------- */
.hand-flip::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: 12px;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; }
.hand-card.flipped .hand-flip::after { animation: card-shine .9s .35s ease-out; }
@keyframes card-shine { 0% { opacity: 1; background-position: -150% 0; } 100% { opacity: 0; background-position: 150% 0; } }
.overlay:has(.hand), .overlay:has(.formation-pick) {
  background:
    radial-gradient(700px 380px at 50% 45%, rgba(var(--neon-rgb, 75, 240, 42), .16), transparent 70%),
    radial-gradient(1200px 700px at 50% 120%, rgba(30, 110, 60, .35), transparent 60%),
    rgba(4, 8, 6, .94);
}

@media (prefers-reduced-motion: reduce) {
  .dps-lights, .dps-go.ready { animation: none; }
  .dps-layer.intro .dslot > *, .dp-bench.intro .dbench > * { animation: none; }
  .hand-card.flipped .hand-flip::after { animation: none; }
}

/* Química 0-10 */
.chem-num { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-left: .35em; padding: 0 .25em; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; color: #07130B; background: #5BE08C; }
.chem-num.mid { background: #F0C44C; }
.chem-num.lo { background: #E5534B; color: #fff; }
.screen-draft-play .dps .dslot-label.half { border-color: #F0A13C; background: #4A2E0C !important; }
.hand-tag .chem-num { font-size: .8rem; }

/* Carta seleccionada en grande, en el panel lateral */
.dps-preview { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
@keyframes preview-in { from { opacity: 0; transform: translateX(-18px) scale(.94); } }
.dpv-card { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(var(--neon-rgb), .25)); }
.dpv-card .dcard { --h: min(42vh, 330px); }
.dpv-name { font: 700 1.2rem/1.15 var(--ui, var(--body)); text-align: center; display: flex; align-items: center; gap: .4rem; }
.cap-badge.inline { position: static; width: 22px; height: 22px; }
.dpv-rows { width: 100%; display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.dpv-row { display: flex; justify-content: space-between; gap: .6rem; padding: .4rem .7rem; background: rgba(12, 20, 16, .85); font-size: .84rem; }
.dpv-row span { color: var(--stand); }
.dpv-row b { text-align: right; font-weight: 600; }
.dpv-credit { font-size: .72rem; color: var(--stand); text-align: center; }
.dps-preview .dps-hint { padding: 0; min-height: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .dps-preview { animation: none; } }

/* ---------- Banco plegable (compu) ---------- */
.screen-draft-play .dps-bottom { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; }
.dps-bench-toggle {
  grid-column: 1; display: inline-flex; align-items: center; gap: .7rem; min-height: 52px; padding: 0 1.2rem 0 1rem; cursor: pointer;
  border-radius: 14px; border: 1px solid rgba(var(--neon-rgb), .45); background: rgba(12, 20, 16, .9); color: var(--chalk);
  font: 700 .98rem var(--ui, var(--body)); transition: background .2s, border-color .2s;
}
.dps-bench-toggle:hover, .dps-bench-toggle:focus-visible { background: rgba(24, 40, 30, .95); border-color: var(--neon); }
.dps-bench-toggle b { font-variant-numeric: tabular-nums; color: var(--neon); }
.dps-bench-toggle:empty { visibility: hidden; }
.dps-arrow { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--neon-rgb), .14); }
.dps-arrow::before { content: ''; width: 8px; height: 8px; border: solid var(--neon); border-width: 2.5px 2.5px 0 0; transform: translateY(2px) rotate(-45deg); transition: transform .3s var(--ease); }
.bench-open .dps-arrow::before { transform: translateY(-2px) rotate(135deg); }
.screen-draft-play .dps-bench {
  --side: calc(clamp(210px, 17vw, 270px) + clamp(1rem, 2vw, 2rem));
  grid-column: 1 / -1; grid-row: 1; margin-left: var(--side); width: min(1080px, calc(100% - var(--side))); display: none;
}
.screen-draft-play .bench-open .dps-bench { display: flex; animation: bench-in .35s var(--ease); }
@keyframes bench-in { from { opacity: 0; transform: translateY(24px); } }
.dps-bench-toggle { grid-row: 2; }
.dps-cta { grid-row: 2; }
.screen-draft-play .dps-bench::before { background: linear-gradient(180deg, rgba(20, 32, 26, .97), rgba(8, 14, 11, .97)); box-shadow: 0 -18px 50px rgba(0, 0, 0, .55), 0 0 24px rgba(var(--neon-rgb), .1) inset; }
.screen-draft-play .dps .dbench .dcard { --h: clamp(90px, 17vh, 150px); }
.screen-draft-play .dps .dbench .dslot-empty { height: clamp(90px, 17vh, 150px); }
.dps-cta { grid-column: 3; }

/* ---------- Teléfono ----------
   Vertical es el modo del celular: arriba un resumen en una tira, la cancha a lo alto,
   los suplentes en una fila que se desliza y el botón principal fijo abajo, a mano. */
.dps-turn { display: none; }
@media (max-width: 700px), (max-height: 560px) {
  .screen.screen-draft-play .topbar.dps-top { padding: .55rem .8rem .2rem; min-height: 0; }
  .dps-top .brand img { height: 30px; }
  .dps-word { font-size: .85rem !important; letter-spacing: .3em !important; padding-left: .6rem; }
  .dps-mark, .dps-swoosh { display: none; }

  .screen-draft-play .dps {
    height: auto; min-height: 0; display: flex; flex-direction: column; gap: .45rem;
    padding: 0 .7rem calc(5.4rem + env(safe-area-inset-bottom));
  }
  .dps-panel { height: 7.6rem; max-height: none; overflow: hidden; padding-top: 0; gap: .3rem; flex: none; }
  .dps-kicker, .dps-help, .dps-type, .dps-cap { display: none; }
  .dps-stats {
    display: grid; grid-template-columns: auto minmax(0, .8fr) minmax(0, 1.3fr) auto;
    border: 1px solid var(--line-2); border-radius: 14px; background: rgba(12, 20, 16, .78); overflow: hidden;
  }
  .dps-stat { padding: .5rem .6rem; gap: .25rem; border-bottom: 0; border-right: 1px solid var(--line); justify-content: center; }
  .dps-stat:last-child { border-right: 0; }
  .dps-formation { margin: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: inset 3px 0 0 var(--neon); }
  .dps-k { font-size: .68rem; }
  .dps-big { font-size: 1.2rem; }
  .dps-v b { font-size: 1.05rem; }
  .dps-panel .stars { display: none; }
  .dps-v small { font-size: .7rem; }
  .dps-panel .chem-meter { min-width: 24px; height: 5px; }
  .dps-hint { padding: .15rem .2rem 0; font-size: .8rem; line-height: 1.35; min-height: 0; }

  .dps-stage { flex: none; width: 100%; height: clamp(290px, calc(100dvh - 24.5rem), 128vw); }
  .dps-pitch { width: 100%; height: 100%; aspect-ratio: auto; }
  .screen-draft-play .dps .dpitch .dslot .dcard { --h: calc(min(15.5cqh, 21cqw) * var(--k)); }
  .screen-draft-play .dps .dpitch .dslot-empty { height: calc(min(15.5cqh, 21cqw) * var(--k)); }
  .screen-draft-play .dps .dslot-empty::before { font-size: calc(min(4.6cqh, 6cqw) * var(--k, 1)); }
  .screen-draft-play .dps .dslot-label { font-size: .62rem; padding: .12em .55em; }

  .dps-bottom { display: block; }
  .dps-bench-toggle { display: none; }
  .screen-draft-play .dps-bench { display: flex; margin-left: 0; width: auto; animation: none; }
  .dps-bench { padding: .4rem .2rem .4rem .5rem; gap: 0; }
  .dps-bench::before { transform: none; border-radius: 14px; }
  .dps-sup { display: none; }
  .screen-draft-play .dps .dp-bench {
    display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    padding: .45rem .3rem .2rem; justify-content: flex-start;
  }
  .screen-draft-play .dps .dp-bench::-webkit-scrollbar { display: none; }
  .screen-draft-play .dps .dbench { flex: none; scroll-snap-align: start; }
  .screen-draft-play .dps .dbench .dcard { --h: 84px; }
  .screen-draft-play .dps .dbench .dslot-empty { height: 84px; }
  .screen-draft-play .dps .dbench .dslot-empty::before { font-size: .85rem; }
  .dbench-tag { font-size: .58rem; bottom: 9%; }

  .dps-cta {
    position: fixed; left: .7rem; right: .7rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 30;
    display: flex; gap: .5rem; justify-content: stretch;
  }
  .dps-go { flex: 1; min-height: 56px; justify-content: space-between; padding: 0 .8rem 0 1.6rem; font-size: .98rem; gap: .6rem;
    clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); box-shadow: inset 0 0 0 1px rgba(var(--neon-rgb), .45), 0 10px 30px rgba(0, 0, 0, .6);
    background: linear-gradient(90deg, #121B17 0 55%, #1F4A2A); }
  .dps-go.ready { background: linear-gradient(90deg, #17321F 0 30%, var(--neon)); }
  .dps-go i { width: 34px; height: 34px; }
  .dps-release { flex: 1; min-height: 56px; background: rgba(12, 20, 16, .95); border-color: rgba(var(--neon-rgb), .5); }
  .dps-cta:has(.dps-release) .dps-go { display: none; }

  /* Jugador seleccionado: su carta en grande, en el lugar del resumen. */
  .dps-panel:has(.dps-preview) { display: block; }
  .dps-preview { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: .2rem .8rem; align-items: start; height: 100%; }
  .dpv-card { grid-row: 1 / 3; }
  .dpv-card .dcard { --h: 7.4rem; }
  .dpv-name { font-size: 1.02rem; text-align: left; justify-content: flex-start; }
  .dpv-rows { align-self: start; border-radius: 8px; }
  .dpv-row { padding: .22rem .5rem; font-size: .74rem; }
  .dpv-row:nth-child(n+5) { display: none; }
  .dpv-credit, .dps-preview .dps-hint { display: none; }
}
/* Teléfono acostado: se sugiere ponerlo en vertical. */
@media (max-height: 560px) and (orientation: landscape) {
  .dps-turn:not(.off) { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1.5rem; background: rgba(4, 8, 6, .97); color: #EEF5F0; text-align: center; }
  .dps-turn-box { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
  .dps-turn h2 { font-size: 1.4rem; }
  .dps-turn p { color: #8FA39A; }
  .dps-phone { width: 70px; height: 40px; border: 3px solid #4BF02A; border-radius: 9px; margin-bottom: .6rem; box-shadow: 0 0 20px rgba(75, 240, 42, .4); animation: to-portrait 2.4s ease-in-out infinite; }
  @keyframes to-portrait { 0%, 25% { transform: rotate(0); } 55%, 80% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
}
@media (prefers-reduced-motion: reduce) { .dps-phone, .screen-draft-play .bench-open .dps-bench { animation: none; } }
@media (max-width: 700px) {
  .fp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .fp-option { padding: .25rem .25rem .4rem; gap: .3rem; border-radius: 12px; }
  .fp-option b { font-size: .9rem; }
  .hand-row .dcard { --h: min(44vh, 290px); }
}

/* Chapita con el nombre debajo de cada carta de la cancha. */
.screen-draft-play .dps .dslot-label.has-name { gap: .35em; padding: .16em .3em .16em .2em; max-width: 13em; }
.dsl-pos { flex: none; padding: .08em .42em; border-radius: 999px; background: rgba(var(--neon-rgb), .18); color: var(--neon, #4BF02A); font-size: .86em; }
.dsl-name { min-width: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dslot-label.has-name .chem-num { flex: none; margin-left: 0; }
@media (max-width: 700px), (max-height: 560px) {
  .screen-draft-play .dps .dslot-label.has-name { max-width: 7.6em; padding: .12em .25em .12em .15em; }
  .dsl-pos { display: none; }
}
.dslot-card { position: relative; display: block; }

/* ---------- Comparar jugadores ---------- */
.sheet.cmp-sheet { width: min(620px, 96vw); max-height: 94dvh; overflow: auto; background: #0C1511; color: #EEF5F0; border: 1px solid rgba(75, 240, 42, .35); padding: 1.2rem 1.2rem 1rem; }
.cmp-title { font: 800 1.35rem var(--ui, var(--body)); text-align: center; margin-bottom: .8rem; }
.cmp-cards { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.cmp-col { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; min-width: 0; }
.cmp-col .dcard { --h: min(200px, 24vh); }
.cmp-vs { font: 800 1.4rem var(--ui, var(--body)); color: #4BF02A; }
.cmp-rows { display: grid; gap: 2px; margin-top: .9rem; border-radius: 12px; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; padding: .45rem .8rem; background: rgba(255, 255, 255, .04); font-size: .92rem; }
.cmp-row span { color: #8FA39A; font-size: .8rem; text-align: center; }
.cmp-row b:first-child { text-align: left; }
.cmp-row b:last-child { text-align: right; }
.cmp-row b.win { color: #4BF02A; }
.cmp-row b.win::after { content: ' ▲'; font-size: .7em; }
.cmp-total { text-align: center; font-weight: 700; margin: .8rem 0 .2rem; }
.cmp-total.up { color: #5BE08C; }
.cmp-total.down { color: #FF7A70; }
.cmp-actions { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; }
.dps-compare.on { border-color: #4BF02A; color: #4BF02A; }
/* Si el panel no entra en la altura, se desplaza en vez de encimar textos. */
.dps-panel > * { flex-shrink: 0; }
