.dcard {
  --h: 300px;
  position: relative; display: block; flex: none;
  height: var(--h); aspect-ratio: var(--ratio);
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  container-type: size;
  -webkit-user-select: none; user-select: none;
}
button.dcard { cursor: pointer; border-radius: 10px; transition: transform .18s var(--ease), filter .18s; }
button.dcard:hover { transform: translateY(-4px); }
button.dcard:focus-visible { outline-offset: 4px; }
.dcard.fc-lg { --h: 380px; }
.dcard.fc-md { --h: 300px; }
.dcard.fc-sm { --h: 190px; }
.dcard.fc-xs { --h: 112px; }
.fc-template { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fc-layer { position: absolute; inset: 0; pointer-events: none; }

.fc-photo-box {
  position: absolute; left: var(--fl); right: var(--fr); top: var(--pt); bottom: var(--pb);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.fc-photo { position: absolute; left: 22%; right: 0; top: 0; bottom: 0; width: 78%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.fc-nophoto { display: grid; place-items: center; font: 800 16cqh/1 var(--display); opacity: .35; }

.fc-info {
  position: absolute; left: var(--ix); top: var(--iy);
  display: flex; flex-direction: column; align-items: center; gap: 1.2cqh;
  width: 15cqh;
}
.fc-ovr { font: 800 11.5cqh/.9 var(--display); letter-spacing: -.02em; }
.fc-pos { font: 700 4.6cqh/1 var(--display); letter-spacing: .04em; margin-top: -.6cqh; }
.fc-flag { width: 8.4cqh; height: 5.6cqh; object-fit: cover; border-radius: .5cqh; box-shadow: 0 0 0 .25cqh rgba(0, 0, 0, .25); }
.fc-crest { width: 9cqh; height: 9cqh; object-fit: contain; }
.fc-crest-sprite { display: block; filter: drop-shadow(0 .3cqh .5cqh rgba(0, 0, 0, .35)); }
.fc-crest-txt { display: grid; place-items: center; font: 700 3cqh/1 var(--display); border-radius: 50%; border: .3cqh solid currentColor; opacity: .8; }

.fc-name {
  position: absolute; left: var(--fl); right: var(--fr); top: var(--bt); height: var(--bh);
  display: grid; place-items: center; padding: 0 6%;
}
.fc-name span { font: italic 800 6.4cqh/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.fc-stats {
  position: absolute; left: var(--fl); right: var(--fr); top: var(--st); height: var(--sh);
  display: grid; grid-template-columns: 1fr 1fr; padding: 0 12%; column-gap: 10%;
}
.fc-col { display: flex; flex-direction: column; justify-content: space-evenly; }
.fc-stat { display: flex; align-items: baseline; gap: 1.6cqh; justify-content: center; }
.fc-stat b { font: 800 5.4cqh/1 var(--display); min-width: 6cqh; text-align: right; }
.fc-stat span { font: 600 4.3cqh/1 var(--display); letter-spacing: .05em; opacity: .9; min-width: 8cqh; }

.fc-bronce { color: #FBE6D2; }
.fc-plata { color: #F5F7FA; }
.fc-oro { color: #FFF2C6; }
.fc-bronce .fc-layer, .fc-plata .fc-layer, .fc-oro .fc-layer { text-shadow: 0 .3cqh .9cqh rgba(0, 0, 0, .55); }
.fc-moments, .fc-of_the_week { color: #FFE7A8; }
.fc-individual { color: #EAF2FF; }
.fc-respect { color: #F2F4F7; }
.fc-moonlord { color: #E6FFFB; }
.fc-moonlord .fc-layer { text-shadow: 0 .3cqh .9cqh rgba(0, 10, 12, .85); }
.fc-moonlord .fc-ovr, .fc-moonlord .fc-pos { color: #5FF3E0; text-shadow: 0 0 1.2cqh rgba(40, 230, 210, .6), 0 .3cqh .9cqh rgba(0, 10, 12, .85); }
.fc-godlike { color: #FFF0F0; }
.fc-godlike .fc-layer { text-shadow: 0 .3cqh .9cqh rgba(15, 0, 0, .85); }
.fc-godlike .fc-ovr, .fc-godlike .fc-pos { color: #FF4040; text-shadow: 0 0 1.2cqh rgba(255, 30, 30, .6), 0 .3cqh .9cqh rgba(15, 0, 0, .85); }
.fc-respect .fc-layer { text-shadow: 0 .3cqh .9cqh rgba(0, 0, 0, .75); }
.fc-cult_hero { color: #FFF4E6; }
.fc-cult_hero .fc-layer { text-shadow: 0 .3cqh .9cqh rgba(20, 0, 40, .8); }
.fc-cult_hero .fc-ovr, .fc-cult_hero .fc-pos { color: #FFB347; text-shadow: 0 0 1.1cqh rgba(255, 140, 30, .55), 0 .3cqh .9cqh rgba(20, 0, 40, .8); }
.fc-moments .fc-layer, .fc-of_the_week .fc-layer, .fc-individual .fc-layer { text-shadow: 0 .3cqh .9cqh rgba(0, 0, 0, .7); }
.fc-individual .fc-ovr, .fc-individual .fc-pos { color: #F4EEFF; text-shadow: 0 0 1.2cqh rgba(150, 110, 255, .7), 0 .3cqh .9cqh rgba(0, 0, 0, .7); }
.fc-leyenda { color: #5B4314; }
.fc-leyenda .fc-layer { text-shadow: 0 .2cqh 0 rgba(255, 255, 255, .55); }
.fc-leyenda .fc-ovr { color: #4A350C; }
.fc-leyenda .fc-stats { column-gap: 22%; padding: 0 8%; }

.fc-hidden .fc-layer { visibility: hidden; }

/* ---------- Comunes ---------- */
.topbar-title, .dp-title h1 { font: italic 800 1.7rem/1 var(--display); }
.dp-title { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.dp-step { font: 700 1.15rem/1 var(--display); color: var(--stand); }
.center { text-align: center; }
.draft-sub, .dp-sub { font-size: 1.25rem; margin-top: .6rem; }
.draft-setup { display: flex; flex-direction: column; gap: .7rem; }
.draft-setup .formation-pickers { margin-top: .2rem; }

/* ---------- Partida ---------- */
.dp {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 1.2rem clamp(1rem, 3vw, 2rem) 2rem;
  display: grid; grid-template-columns: minmax(300px, 560px) minmax(0, 1fr); gap: 2rem; align-items: start;
}
.dp-field { display: flex; flex-direction: column; gap: .6rem; }
.dp-banner { font-size: .95rem; color: var(--stand); min-height: 1.5em; }
.dpitch .dslot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0; border: 0; background: none; color: var(--chalk);
}
.dpitch .dcard { --h: clamp(64px, 19cqw, 108px); }
button.dslot, button.dbench { cursor: pointer; }
.dslot-empty {
  display: grid; place-items: center; align-content: center; gap: 2px;
  width: clamp(46px, 13.5cqw, 76px); aspect-ratio: .73; border-radius: 8px;
  border: 2px dashed rgba(244, 247, 242, .55); background: rgba(10, 20, 16, .4);
  font: 700 clamp(.85rem, 3.6cqw, 1.15rem)/1 var(--display);
  transition: transform .15s var(--ease), border-color .15s;
}
button.dslot:hover .dslot-empty, button.dbench:hover .dslot-empty { transform: scale(1.06); border-color: var(--gold); }
button.dslot:hover .dcard { transform: translateY(-2px); }
.dslot .dcard { transition: transform .15s var(--ease); }
.dslot-label {
  padding: 0 5px; border-radius: 3px; background: rgba(10, 20, 16, .85);
  font: 700 clamp(.65rem, 2.6cqw, .8rem)/1.3 var(--display); letter-spacing: .04em;
}
.dslot.selected .dcard, .dbench.selected .dcard { filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), .9)); }
.dslot.swap-target .dslot-empty, .dbench.swap-target .dslot-empty { border-color: var(--gold); }
.dslot.swap-target .dcard, .dbench.swap-target .dcard { filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), .45)); }

.dp-side { display: flex; flex-direction: column; gap: .7rem; position: sticky; top: 90px; }
.dp-side-head h2 { font-size: 1.9rem; font-style: italic; font-weight: 800; }
.dp-bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; }
.dbench { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--chalk); min-height: 120px; }
.dbench .dcard { --h: 118px; }
.dbench .dslot-empty { width: 84px; }
.dbench .dslot-empty small { font: 600 .72rem/1.1 var(--body); color: var(--stand); text-align: center; padding: 0 4px; }
.dp-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }

.dp-loading { align-items: center; }
.dp-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dcard-menu { align-items: center; }
.dcard-menu-card { display: grid; place-items: center; }
.dcard-menu .row-end { flex-wrap: wrap; justify-content: center; }

/* ---------- Mesa de cartas ---------- */
.sheet.hand, .sheet.formation-pick {
  max-width: min(1220px, 100%); width: 100%; background: transparent; border: 0; box-shadow: none;
  display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem 0;
}
.overlay:has(.hand), .overlay:has(.formation-pick) { background: radial-gradient(900px 500px at 50% 40%, rgba(31, 122, 69, .25), rgba(5, 10, 8, .94) 70%); }
.hand-head { text-align: center; }
.hand-head h2 { font: italic 800 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); }
.hand-row { display: flex; justify-content: center; gap: clamp(.4rem, 1.4vw, 1.1rem); flex-wrap: wrap; perspective: 1200px; padding: .6rem; }
.hand-row { flex-wrap: nowrap; }
.hand-row .dcard { --h: min(330px, 17.5vw, 56vh); min-height: 170px; }
.hand-card { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.hand-card.shown { opacity: 1; transform: none; }
/* Giro de la carta sin 3D (Safari y otros navegadores de celular mostraban el frente espejado):
   el dorso tapa la carta, se pone de canto y recién ahí aparece el frente. */
.hand-flip { position: relative; }
.hand-flip > .dcard { visibility: hidden; }
.hand-card.flipped .hand-flip > .dcard { visibility: visible; }
.hand-card.flipped .hand-back { visibility: hidden; }
.hand-row:not(.instant) .hand-card.flipped .hand-flip { animation: card-turn .5s var(--ease) both; }
.hand-row:not(.instant) .hand-card.flipped .hand-flip > .dcard { animation: face-on .5s linear both; }
.hand-row:not(.instant) .hand-card.flipped .hand-back { animation: face-off .5s linear both; }
.hand-row:not(.instant) .hand-card.is-legend.flipped .hand-flip > .dcard { animation: face-on .5s linear both, legend-glow 1.6s .25s var(--ease); }
@keyframes card-turn { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes face-on { 0%, 49% { visibility: hidden; } 50%, 100% { visibility: visible; } }
@keyframes face-off { 0%, 49% { visibility: visible; } 50%, 100% { visibility: hidden; } }
.hand-back {
  position: absolute; inset: 4% 9%; border-radius: 14px;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #10251A 0 12px, #0C1D14 12px 24px);
  border: 2px solid rgba(var(--gold-rgb), .5); box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}
.hand-back span { font: italic 800 4.5rem/1 var(--display); color: var(--gold); opacity: .85; }
.hand-card.is-legend.flipped .dcard { filter: drop-shadow(0 0 18px rgba(255, 214, 120, .55)); }
@keyframes legend-glow { 0% { filter: drop-shadow(0 0 0 rgba(255, 214, 120, 0)); transform: scale(1); } 35% { filter: drop-shadow(0 0 40px rgba(255, 220, 130, .95)); transform: scale(1.06); } 100% { filter: drop-shadow(0 0 18px rgba(255, 214, 120, .55)); transform: scale(1); } }
.hand-row .dcard.chosen { transform: translateY(-10px); filter: drop-shadow(0 0 0 3px var(--gold)) drop-shadow(0 0 16px rgba(var(--gold-rgb), .7)); }
.hand-info { min-height: 1.5em; text-align: center; max-width: 60ch; }
.hand-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Resultados ---------- */
.dr-team { display: flex; flex-direction: column; gap: .8rem; }
.dr-grid { display: grid; grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.dr-info { display: flex; flex-direction: column; gap: 1.2rem; }
.dr-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 0; }
.dr-stats > div { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.dr-stats dt { font-size: .85rem; color: var(--stand); }
.dr-stats dd { margin: 0; font: 800 2rem/1.1 var(--display); }
.dr-cat.dr-leyenda dd { color: #F1DFA8; }
.dr-cat.dr-oro dd { color: #E8C35A; }
.dr-cat.dr-plata dd { color: #D5DBE2; }
.dr-cat.dr-bronce dd { color: #D99B6C; }
.dr-best h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.dr-bench { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.dr-bench .dcard { --h: 190px; }
.table-wrap { overflow-x: auto; }
.dr-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dr-table th, .dr-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.dr-table thead th { font: 700 1rem var(--display); color: var(--stand); }
.dr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dr-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.dr-mini .team.compact { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: inherit; font: inherit; text-align: left; }
.dr-mini .team-head { width: 100%; }

@media (max-width: 860px) {
  .dp, .dr-grid { grid-template-columns: 1fr; }
  .dp-side { position: static; }
  .hand-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; width: 100%; }
  .hand-card { scroll-snap-align: center; }
  .hand-row .dcard { --h: min(56vh, 330px); }
}
@media (prefers-reduced-motion: reduce) {
  .hand-card, .hand-flip { transition: none; }
  .hand-row .hand-card.flipped .hand-flip, .hand-row .hand-card.flipped .hand-flip > .dcard, .hand-row .hand-card.flipped .hand-back { animation: none !important; }
}

.dslot.swap-off, .dbench.swap-off { opacity: .35; }

/* ---------- Barra de media y química ---------- */
.dp-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: .6rem; }
.dp-bar:empty { display: none; }
.dp-bar-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; padding: .55rem .8rem; background: var(--panel); min-width: 0; }
.dp-bar-k { width: 100%; font-size: .75rem; color: var(--stand); }
.dp-bar-item b { font: 700 1.5rem/1 var(--ui, var(--body)); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dp-bar-item small { color: var(--stand); font-weight: 600; }
.dp-bar-name { font-size: 1rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stars { display: inline-flex; gap: 2px; align-self: center; }
.stars i { width: 13px; height: 13px; background: var(--line-2); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.full { background: #E9B949; }
.stars i.half { background: linear-gradient(90deg, #E9B949 50%, var(--line-2) 50%); }
.chem-meter { flex: 1; min-width: 50px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; overflow: hidden; }
.chem-meter span { display: block; height: 100%; background: var(--grass-hi); transition: width .3s var(--ease); }

/* ---------- Química en la cancha ---------- */
.chem-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chem-links line { stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.chem-links .open { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 4 5; }
.chem-links .s0 { stroke: rgba(255, 255, 255, .28); }
.chem-links .s1 { stroke: #F0C44C; }
.chem-links .s2 { stroke: #5BE08C; stroke-width: 3.5; }
.chem-dots { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.chem-dots i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(255, 255, 255, .25); }
.chem-dots i.on { background: #5BE08C; }
.hand-tag .chem-dots i { background: var(--line-2); }
.hand-tag .chem-dots i.on { background: #2FBF6B; }
.dslot-label.oop { background: #C2413B !important; color: #fff !important; }
.cap-badge {
  position: absolute; top: -4px; right: -6px; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font: 800 .72rem/1 var(--ui, var(--body)); color: #1A1406; background: #E9B949; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.dbench { position: relative; }
.hand-tag { display: flex; align-items: center; justify-content: center; gap: .2rem; margin-top: .55rem; font-size: .85rem; font-weight: 600; color: #DCE4E0; opacity: 0; transition: opacity .3s; }
.hand-card.flipped .hand-tag { opacity: 1; }
.dp-chem-help { margin-top: .4rem; }

/* ---------- Elección de formación ---------- */
.sheet.formation-pick { max-width: min(1100px, 96vw); color: #F2F5F3; }
.fp-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.fp-option { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: .7rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #F2F5F3; cursor: pointer; transition: transform .15s, border-color .15s; }
.fp-option:hover, .fp-option:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.fp-option .pitch { width: 100%; }
.fp-option b { font-size: 1.15rem; }
@media (max-width: 760px) {
  .fp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Selección e intercambio ---------- */
.dslot .dcard, .dbench .dcard { transition: transform .18s var(--ease), filter .18s; }
button.dslot.filled:hover .dcard, button.dbench.filled:hover .dcard { transform: translateY(-3px) scale(1.04); }
.dslot.selected, .dbench.selected { z-index: 6; }
.dslot.selected .dcard, .dbench.selected .dcard { transform: translateY(-6px) scale(1.1); animation: sel-pulse 1.3s ease-in-out infinite; }
@keyframes sel-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), .55)); }
  50% { filter: drop-shadow(0 0 16px rgba(var(--gold-rgb), 1)); }
}
.dslot.swap-target .dcard, .dbench.swap-target .dcard { animation: target-bob 1.6s ease-in-out infinite; }
@keyframes target-bob { 50% { transform: translateY(-2px); } }
.dslot.flying, .dbench.flying { z-index: 30; }
@media (prefers-reduced-motion: reduce) {
  .dslot.selected .dcard, .dbench.selected .dcard, .dslot.swap-target .dcard, .dbench.swap-target .dcard { animation: none; }
}
.dpitch:has(.flying) { overflow: visible; }

/* Silueta de respaldo cuando no hay foto válida */
.fc-silhouette { position: relative; opacity: 1; overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .26) 0 17%, transparent 17.5%),
    radial-gradient(ellipse 42% 30% at 50% 100%, rgba(255, 255, 255, .22) 0 98%, transparent 100%); }
.fc-silhouette span { position: absolute; bottom: 4%; right: 6%; font-size: 6cqh; opacity: .45; }
.dr-credits { margin-top: 1.4rem; font-size: .85rem; color: var(--stand); }
.dr-credits summary { cursor: pointer; color: var(--chalk); font-weight: 600; }
.dr-credits ul { margin: .6rem 0 0 1.1rem; display: grid; gap: .25rem; }
.dr-credits a { color: inherit; text-decoration: underline; }

/* Carta compacta (en la cancha): sin atributos, foto más grande y media bien visible. */
.fc-compact .fc-stats, .fc-compact .fc-name { display: none; }
.fc-compact .fc-photo-box { bottom: 17% !important; }
.fc-compact .fc-photo { left: 16%; width: 84%; object-position: 50% 12%; }
.fc-compact .fc-info { width: 20cqh; gap: 1.4cqh; margin-left: -1.2cqh; }
.fc-compact .fc-ovr { font-size: 16cqh; }
.fc-compact .fc-pos { font-size: 6.6cqh; }
.fc-compact .fc-flag { width: 11cqh; height: 7.4cqh; }
.fc-compact .fc-crest { width: 11.5cqh; height: 11.5cqh; }

/* ---------- Tu 11 (póster del equipo) ---------- */
.lp {
  --neon: #4BF02A;
  width: min(560px, 100%); margin: 0 auto; padding: 1rem 1rem .8rem; border-radius: 22px; color: #EEF5F0;
  background: radial-gradient(500px 300px at 50% 35%, rgba(40, 140, 70, .35), transparent 70%), linear-gradient(180deg, #0B1611, #060B09);
  border: 1px solid rgba(75, 240, 42, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: .8rem;
}
.lp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.lp-head h2 { font: italic 800 1.6rem/1 var(--display); }
.lp-head p { color: #8FA39A; font-weight: 700; margin-top: .25rem; }
.lp-stats { display: flex; gap: .9rem; }
.lp-stat { display: flex; flex-direction: column; align-items: center; }
.lp-stat b { font: 800 1.5rem/1 var(--display); color: var(--neon); }
.lp-stat span { font-size: .7rem; color: #8FA39A; }
.lp-pitch {
  position: relative; width: 100%; aspect-ratio: .74; container-type: size; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #17542C 0 8.33%, #1B5F32 8.33% 16.66%);
  box-shadow: inset 0 0 0 2px rgba(75, 240, 42, .55), inset 0 0 60px rgba(0, 0, 0, .35);
}
.lp-pitch .pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-slot { position: absolute; transform: translate(-50%, -58%); display: flex; flex-direction: column; align-items: center; }
.lp-card { position: relative; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.lp-card .dcard { --h: 15cqh; }
.lp-card .cap-badge { top: 2%; right: 2%; }
.lp-name {
  margin-top: -1cqh; z-index: 1; display: inline-flex; align-items: center; gap: .3em; max-width: 25cqw;
  padding: .18em .3em .18em .25em; border-radius: 999px; background: rgba(6, 12, 9, .92); border: 1px solid rgba(75, 240, 42, .6);
  font: 700 clamp(.55rem, 2.1cqh, .82rem)/1.15 var(--ui, var(--body)); white-space: nowrap;
}
.lp-name b { color: var(--neon); font-size: .82em; }
.lp-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; font-weight: 800; }
.lp-name .chem-num { font-style: normal; margin-left: 0; }
.lp-bench h3 { font: 700 .85rem var(--ui, var(--body)); color: #8FA39A; margin-bottom: .4rem; }
.lp-bench-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; container-type: inline-size; }
.lp-sub { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 0; }
.lp-sub .dcard { --h: min(20cqw, 92px); }
.lp-sub span { max-width: 100%; font: 800 .62rem/1.1 var(--ui, var(--body)); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-foot { display: flex; align-items: center; justify-content: center; gap: .5rem; color: #8FA39A; font-size: .75rem; }
.lp-foot img { height: 22px; }
.lp-actions { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; }
.overlay .lp { width: min(560px, 94vw, calc((100dvh - 90px) / 1.95)); }
.sheet.lp-overlay { background: none; border: 0; box-shadow: none; padding: 0; width: auto; max-width: none; overflow: auto; max-height: 100dvh; }
.dr-grid.dr-grid-poster { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
@media (max-width: 860px) { .dr-grid.dr-grid-poster { grid-template-columns: 1fr; } }
