/* Mi Club: sobres, colección, equipo, canje y torneo de club. Usa el escenario oscuro del Draft. */

.screen-club { min-height: 100dvh; }
.club { max-width: 1280px; }
.club h2 { font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.15 var(--ui, var(--body)); letter-spacing: -.02em; }

/* Pestañas */
.club-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem clamp(1rem, 3vw, 2rem) .6rem; max-width: 1280px; margin: 0 auto; width: 100%; scrollbar-width: none; }
.club-tabs::-webkit-scrollbar { display: none; }
.club-tab { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--chalk); font: 600 .95rem var(--body); cursor: pointer; }
.club-tab:hover { border-color: rgba(var(--neon-rgb, 75, 240, 42), .5); }
.club-tab.on { background: var(--grass); border-color: var(--grass-hi); }
.club-badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: #F0C44C; color: #1B1406; font: 800 .78rem/1 var(--body); }
.club-badge[hidden] { display: none; }

/* Portada */
.home-club { width: 100%; max-width: 820px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; text-align: left;
  padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); }
.home-club h2 { font: italic 800 2rem/1 var(--ui, var(--body)); }
.home-club-text { flex: 1 1 280px; display: grid; gap: .35rem; }
.home-club-text p { color: #C9D4CD; }
.home-club-links { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 300px; justify-content: flex-end; }
.home-club-links .btn { min-height: 40px; font-size: 1rem; }

/* Sobres */
.club-packs { align-items: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.club-pack { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 18px; background: linear-gradient(180deg, rgba(20, 32, 26, .82), rgba(10, 17, 14, .82)); border: 1px solid rgba(var(--neon-rgb, 75, 240, 42), .18); }
.club-pack-body { display: grid; gap: .35rem; min-width: 0; justify-items: start; }
.club-pack-body h3 { font: 700 1.15rem var(--body); }
.club-error { border: 1px solid rgba(240, 106, 106, .5); background: rgba(240, 106, 106, .08); border-radius: 10px; padding: .55rem .7rem; font-size: .88rem; display: grid; gap: .3rem; }
.club-error ul { margin: 0; padding-left: 1.1rem; }

.pack { --w: 96px; position: relative; flex: none; width: var(--w); aspect-ratio: 360 / 560; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.pack-lg { --w: clamp(180px, 40vw, 260px); }
.pack-img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Brillo que pasa por encima, recortado con la forma del sobre. */
.pack-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); background-size: 260% 100%; animation: pack-shine 3.6s linear infinite;
  -webkit-mask: var(--pack-img) center / contain no-repeat; mask: var(--pack-img) center / contain no-repeat; }
@keyframes pack-shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.pack-brillante .pack-shine { animation-duration: 2.2s; }
.pack-mega .pack-shine { animation-duration: 2.6s; }
.pack-ultra .pack-shine { animation-duration: 1.8s; mix-blend-mode: screen; background-image: linear-gradient(115deg, transparent 35%, rgba(200, 140, 255, .55) 47%, transparent 60%); }
.pack-ultra { filter: drop-shadow(0 10px 22px rgba(120, 40, 200, .45)); }
.pack-count { position: absolute; top: 4%; right: -4%; font: 800 .85rem/1 var(--ui, var(--body)); background: #F0C44C; color: #1B1406; border-radius: 999px; padding: .25em .5em; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

.club-odds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .6rem; margin-top: .7rem; }
.club-odds-pack { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; background: rgba(255, 255, 255, .02); }
.club-odds-pack summary { cursor: pointer; font-weight: 700; }
.club-odds table { width: 100%; border-collapse: collapse; margin-top: .4rem; font-size: .9rem; }
.club-odds td { padding: .22rem 0; border-top: 1px solid var(--line); }
.club-odds td:nth-child(2) { text-align: right; font-weight: 700; padding-right: .6rem; }
.club-odds td:nth-child(3) { text-align: right; }
.club-odds tr.empty td { color: #F08A8A; }
.club-odds .club-odds-extra { margin-top: .5rem; border-top: 2px solid var(--line); }

.club-hist { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.club-hist li { display: grid; grid-template-columns: auto auto 1fr; gap: .2rem .8rem; align-items: baseline; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 640px) { .club-hist li { grid-template-columns: 1fr; } }

/* Colección */
.club-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.club-stats div { display: grid; padding: .7rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.club-stats b { font: 800 1.7rem/1 var(--ui, var(--body)); }
.club-stats span { font-size: .82rem; color: var(--stand); }
@media (max-width: 560px) { .club-stats { grid-template-columns: repeat(2, 1fr); } }
.club-filters { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: end; }
.club-field { display: grid; gap: .25rem; font-size: .82rem; color: var(--stand); min-width: 130px; flex: 1 1 140px; }
.club-field select, .club-field input, .club-side input, .club-pick-search { min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--night-2); color: var(--chalk); padding: 0 .6rem; font: 500 .95rem var(--body); width: 100%; }
.club-search { flex: 2 1 200px; }
.club-check { display: flex; align-items: center; gap: .45rem; min-height: 40px; font-size: .92rem; }
.club-count { margin: -.4rem 0 0; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem .6rem; justify-items: center; }
.club-grid.small { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.club-grid .dcard { --h: 190px; }
.club-grid.small .dcard { --h: 160px; }
.club-item { position: relative; display: grid; justify-items: center; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; border-radius: 12px; }
div.club-item { cursor: default; }
.club-item:hover .dcard { transform: translateY(-3px); }
.club-item .dcard { transition: transform .15s var(--ease); }
.club-item.chosen .dcard { filter: drop-shadow(0 0 8px rgba(240, 196, 76, .8)); }
.club-copies-badge { position: absolute; top: 4px; right: 2px; background: #F0C44C; color: #1B1406; font: 800 .85rem/1 var(--body); padding: .25rem .45rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.club-inteam { margin-top: .25rem; font-size: .74rem; font-weight: 700; color: var(--gold); }
.club-detail { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.club-detail .dcard { --h: 260px; }
.club-detail h3 { margin: .9rem 0 .4rem; font-size: 1rem; }
@media (max-width: 600px) { .club-detail { grid-template-columns: 1fr; justify-items: center; } .club-detail > div { width: 100%; } }
.club-copies { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .9rem; }
.club-copies li { display: flex; justify-content: space-between; gap: .6rem; }
.club-copies b.used { color: var(--gold); }
.club-sheet { max-width: 760px; width: min(760px, 94vw); padding: clamp(1rem, 3vw, 1.4rem); }

/* Rareza: brillo según el jugador */
.dcard.rar-especial { filter: drop-shadow(0 0 7px rgba(255, 214, 110, .55)); }
.dcard.rar-icono { filter: drop-shadow(0 0 9px rgba(255, 255, 255, .7)); }

/* Mi Equipo */
.club-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.club-head-left { display: grid; gap: .5rem; flex: 1 1 260px; max-width: 360px; }
.club-ratings { flex: 2 1 420px; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; align-items: center; }
.club-ratings p { grid-column: 1 / -1; margin: 0; }
.club-moving { color: #F0C44C; font-weight: 600; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.club-team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.club-team-main { display: grid; gap: 1rem; }
.club-pitch { position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 4 / 4.4; border-radius: 18px; overflow: hidden; container-type: inline-size;
  background: repeating-linear-gradient(180deg, #1C6A3C 0 9%, #18603A 9% 18%); border: 2px solid rgba(255, 255, 255, .25); }
.club-pitch-lines { position: absolute; inset: 3%; border: 2px solid rgba(255, 255, 255, .28); border-radius: 4px;
  background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) center / 100% 2px no-repeat,
    radial-gradient(circle at 50% 50%, transparent 13%, rgba(255, 255, 255, .28) 13.3%, transparent 13.8%); }
.cslot { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; background: none; border: 0; padding: 0; color: var(--chalk); cursor: pointer; border-radius: 10px; }
.club-pitch .cslot .dcard { --h: clamp(70px, 17cqw, 118px); }
.cslot.empty .cslot-plus { display: grid; place-items: center; width: clamp(48px, 11cqw, 78px); aspect-ratio: .72; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .2); font: 700 1.8rem var(--body); }
.cslot-plate { display: flex; gap: .3rem; align-items: center; max-width: 120px; padding: .1rem .45rem; border-radius: 6px; background: rgba(5, 12, 9, .82); font-size: .74rem; white-space: nowrap; }
.cslot-plate i { font-style: normal; font-weight: 800; color: var(--gold); }
.cslot-plate b { overflow: hidden; text-overflow: ellipsis; }
.cslot.drop .dcard, .cslot.drop .cslot-plus { outline: 3px solid #F0C44C; outline-offset: 2px; }
.cslot.moving .dcard { filter: drop-shadow(0 0 10px #F0C44C); }
.cslot:focus-visible { outline: 3px solid #F0C44C; outline-offset: 3px; }
.club-fit { font-size: .72rem; font-weight: 700; padding: .12rem .45rem; border-radius: 999px; white-space: nowrap; }
.club-fit.f10 { background: rgba(75, 240, 42, .16); color: #8EF27A; }
.club-fit.f9 { background: rgba(190, 230, 90, .16); color: #CFEA7E; }
.club-fit.f5 { background: rgba(240, 196, 76, .18); color: #F0C44C; }
.club-fit.f2 { background: rgba(240, 106, 106, .2); color: #F59494; }
.club-fit.mini { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-size: .62rem; }
.club-row { display: flex; flex-wrap: wrap; gap: .8rem .6rem; justify-content: center; }
.club-row .cslot { position: relative; transform: none; }
.club-row .cslot .dcard { --h: clamp(80px, 12vw, 112px); }
.club-row .cslot.empty .cslot-plus { width: clamp(58px, 8.6vw, 80px); }
.club-bench-box h3 { margin-bottom: .5rem; }
.club-side { position: sticky; top: .8rem; max-height: calc(100dvh - 1.6rem); display: flex; flex-direction: column; gap: .5rem; }
.club-side-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: .3rem; }
.club-side-item { display: grid; grid-template-columns: 2.2rem 1fr auto auto; gap: .5rem; align-items: center; padding: .4rem .55rem; border-radius: 9px; background: rgba(255, 255, 255, .04); cursor: grab; font-size: .9rem; }
.club-side-item.used { opacity: .6; }
.club-pick-ovr { font: 800 1.1rem/1 var(--ui, var(--body)); color: #F6D873; }
.club-pick-at { color: var(--gold); }
.club-picker { max-width: 640px; width: min(640px, 96vw); }
.club-picker h2 { margin-bottom: .6rem; }
.club-pick-list { list-style: none; margin: .7rem 0; padding: 0; display: grid; gap: .35rem; max-height: 60dvh; overflow-y: auto; }
.club-pick { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: .7rem; align-items: center; padding: .4rem .6rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: inherit; text-align: left; cursor: pointer; }
.club-pick:hover:not(:disabled) { border-color: var(--grass-hi); }
.club-pick.here { opacity: .55; cursor: default; }
.club-pick .dcard { --h: 64px; }
.club-pick-info { display: grid; min-width: 0; }
.club-pick-info b, .club-pick-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .club-pick { grid-template-columns: auto 1fr auto; } .club-pick .club-fit { grid-column: 2; justify-self: start; } }
.club-actions { display: grid; gap: .5rem; margin-top: .8rem; }

/* Canje */
.club-redeem { display: grid; gap: .7rem; }
.club-progress { height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; border: 1px solid var(--line); }
.club-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--grass), #F0C44C); transition: width .4s var(--ease); }
.club-rules { margin: 0; padding-left: 1.1rem; display: grid; gap: .2rem; }

/* Premio del draft en el torneo */
.tn-reward { border-color: rgba(240, 196, 76, .45); background: linear-gradient(180deg, rgba(60, 46, 12, .6), rgba(20, 16, 6, .7)); display: grid; gap: .4rem; justify-items: start; margin-top: .6rem; }
.tn-reward .tn-k { color: #F0C44C; font-weight: 700; }

/* ---------- Apertura de sobres ---------- */
body.po-open { overflow: hidden; }
.po { position: fixed; inset: 0; z-index: 80; background: radial-gradient(circle at 50% 40%, #13241B, #050907 70%); color: #F4F7F2; display: grid; overflow-y: auto; }
.po-skip { position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1rem; z-index: 3; background: rgba(0, 0, 0, .4) !important; color: #fff !important; }
.po-stage { position: relative; min-height: 100dvh; display: grid; place-items: center; overflow: hidden; padding: 4rem 1rem 2rem; }
.po-pack { animation: po-shake 1.3s ease-in-out both; filter: drop-shadow(0 0 40px rgba(255, 220, 120, .35)); }
.po-pack .pack { --w: clamp(190px, 44vw, 280px); }
.po-hint { position: absolute; bottom: 14%; font: italic 800 1.6rem var(--ui, var(--body)); opacity: .85; }
@keyframes po-shake {
  0% { transform: scale(.7); opacity: 0; } 25% { transform: scale(1); opacity: 1; }
  40%, 60%, 80% { transform: rotate(-3deg) scale(1.02); } 50%, 70%, 90% { transform: rotate(3deg) scale(1.04); } 100% { transform: scale(1.08); }
}
.po-stage.burst::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #fff, rgba(255, 240, 200, .6) 30%, transparent 70%); animation: po-flash .5s ease-out both; }
.po-stage.burst .po-pack { transform: scale(1.3); opacity: 0; transition: transform .45s, opacity .45s; }
@keyframes po-flash { from { opacity: 0; } 40% { opacity: 1; } to { opacity: 0; } }
.po-walkout { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.2rem; text-align: center; }
.po-level { font: italic 800 clamp(1.4rem, 4vw, 2.2rem)/1 var(--ui, var(--body)); letter-spacing: .04em; color: #F6D873; animation: tn-in .5s both; }
.lvl-icono .po-level { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .8); }
.po-parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.6rem; min-height: 110px; align-items: center; }
.po-part { display: grid; justify-items: center; gap: .35rem; opacity: 0; transform: translateY(18px) scale(.9); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.po-part.in { opacity: 1; transform: none; }
.po-part span { font-size: .9rem; color: #C9D4CD; }
.po-flag img { height: 54px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.po-pos b, .po-ovr b { font: italic 800 3.2rem/1 var(--ui, var(--body)); }
.po-ovr b { font-size: 4.2rem; color: #F6D873; }
.lvl-icono .po-ovr b { color: #fff; }
.po-crest { width: 60px; height: 60px; display: block; }
.po-hero-card { min-height: 10px; }
.po-stage.hero .po-parts { transform: scale(.82); transition: transform .5s; }
.po-hero-card .dcard { --h: clamp(260px, 46vh, 400px); animation: po-card .8s cubic-bezier(.2, 1.4, .3, 1) both; }
@keyframes po-card { from { transform: scale(.3) rotateY(180deg); opacity: 0; } to { transform: none; opacity: 1; } }
.po-beam { position: absolute; top: -10%; bottom: -10%; width: 22vw; opacity: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 120, .35), transparent); filter: blur(6px); }
.po-beam.l { left: 4%; transform: rotate(14deg); } .po-beam.r { right: 4%; transform: rotate(-14deg); }
.lvl-especial.hero .po-beam, .lvl-icono.hero .po-beam { animation: po-beam 1.6s ease-in-out infinite alternate; }
.lvl-icono .po-beam { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); }
@keyframes po-beam { from { opacity: .25; } to { opacity: .9; } }
.po-rays { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; z-index: 0; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .12) 0 6deg, transparent 6deg 18deg); animation: po-rays 14s linear infinite; }
.lvl-icono { background: radial-gradient(circle at 50% 45%, #2E2A1E, #050505 70%); }
.lvl-icono.hero .po-rays { opacity: 1; transition: opacity 1s; }
.lvl-especial.hero { background: radial-gradient(circle at 50% 45%, #2A2410, #06090A 70%); }
@keyframes po-rays { to { transform: rotate(360deg); } }
.po-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.po-confetti i { position: absolute; top: -4%; left: var(--x); width: 9px; height: 15px; border-radius: 2px; transform: rotate(var(--r)) scale(var(--s));
  animation: po-fall 3.2s linear var(--d) infinite; }
.po-confetti.especial i:nth-child(3n) { background: #F6D873; } .po-confetti.especial i:nth-child(3n+1) { background: #4BF02A; } .po-confetti.especial i:nth-child(3n+2) { background: #57B7FF; }
.po-confetti.icono i { background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .9); }
.po-confetti.icono i:nth-child(4n) { background: #F3EBD2; }
@keyframes po-fall { to { transform: translateY(110vh) rotate(calc(var(--r) + 540deg)) scale(var(--s)); } }
.po-stage.done { place-items: start center; }
.po-summary { width: min(1000px, 100%); display: grid; gap: 1.2rem; justify-items: center; }
.po-summary h2 { font: italic 800 2rem var(--ui, var(--body)); }
.po-best { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; width: 100%; }
@media (max-width: 680px) { .po-best { grid-template-columns: 1fr; justify-items: center; } }
.po-best-card { display: grid; justify-items: center; gap: .4rem; }
.po-best-card .dcard { --h: clamp(240px, 40vh, 320px); }
.po-rest { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .8rem .5rem; justify-items: center; }
.po-mini { display: grid; justify-items: center; gap: .3rem; animation: tn-in .45s var(--ease) both; animation-delay: calc(var(--i) * 110ms); }
.po-mini .dcard { --h: 165px; }
.po-tag { font-size: .74rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; }
.po-tag.new { background: rgba(75, 240, 42, .18); color: #8EF27A; }
.po-tag.rep { background: rgba(240, 196, 76, .18); color: #F0C44C; }
.po-actions { width: 100%; }

/* Celular y tablet: sin lista lateral (se elige tocando cada lugar) y cancha más alta. */
@media (max-width: 900px) {
  .club-team-layout { grid-template-columns: 1fr; }
  .club-side.tn-card { display: none; }
}
@media (max-width: 560px) {
  .club-pitch { aspect-ratio: 4 / 5.8; }
  .club-pitch .cslot .dcard { --h: clamp(58px, 19cqw, 80px); }
  .cslot-plate { font-size: .66rem; max-width: 86px; padding: .05rem .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pack-shine, .po-pack, .po-hero-card .dcard, .po-beam, .po-rays, .po-confetti i, .po-mini { animation: none !important; }
  .po-part { transition: none; }
}

/* Tema claro: la portada sigue el tema; las pantallas del club usan el escenario oscuro. */
:root[data-theme="light"] .home-club { border-color: var(--line); box-shadow: 0 1px 2px rgba(22, 34, 27, .05), 0 12px 32px rgba(22, 34, 27, .07); }
:root[data-theme="light"] .home-club-text p { color: #47524C; }
:root[data-theme="light"] .sheet .club-pick-ovr { color: #9A6B00; }
:root[data-theme="light"] .sheet .club-fit.f10 { color: #1D7A2C; background: rgba(40, 160, 60, .12); }
:root[data-theme="light"] .sheet .club-fit.f9 { color: #5A7A10; }
:root[data-theme="light"] .sheet .club-fit.f5 { color: #8A6400; }
:root[data-theme="light"] .sheet .club-fit.f2 { color: #B42D2D; }
:root[data-theme="light"] .sheet .club-pick-at, :root[data-theme="light"] .sheet .club-copies b.used { color: #1D7A2C; }
.po-stage.look-ultra .po-pack { filter: drop-shadow(0 0 46px rgba(170, 80, 255, .55)); }
.po-stage.look-plata .po-pack { filter: drop-shadow(0 0 40px rgba(220, 230, 240, .35)); }

/* Celular */
@media (max-width: 560px) {
  .club-tabs { flex-wrap: wrap; overflow: visible; gap: .35rem; }
  .club-tab { min-height: 36px; padding: 0 .75rem; font-size: .88rem; }
  .club-pack { gap: .8rem; padding: .8rem; }
  .club-pack .pack { --w: 78px; }
  .po-stage { padding: 4.2rem .8rem 1.5rem; }
  .po-parts { gap: .6rem 1rem; min-height: 90px; flex-wrap: nowrap; }
  .po-flag img { height: 34px; }
  .po-pos b { font-size: 2.1rem; }
  .po-ovr b { font-size: 2.8rem; }
  .po-crest { width: 40px; height: 40px; }
  .po-part span { font-size: .72rem; max-width: 84px; text-align: center; line-height: 1.2; }
  .po-hero-card .dcard { --h: clamp(240px, 52vh, 330px); }
  .po-summary h2 { font-size: 1.5rem; }
  .po-best-card .dcard { --h: 230px; }
  .po-rest { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .po-mini .dcard { --h: 135px; }
  .po-actions { justify-content: center; }
  .club-detail .dcard { --h: 220px; }
}
/* Celular acostado: poca altura. */
@media (max-height: 500px) and (orientation: landscape) {
  .po-stage { padding: 3.2rem 1rem 1rem; }
  .po-walkout { grid-template-columns: auto auto; align-items: center; gap: .4rem 2rem; text-align: left; }
  .po-walkout > * { grid-column: 2; }
  .po-walkout > .po-hero-card { grid-column: 1; grid-row: 1 / span 2; }
  .po-hero-card:empty { display: none; }
  .po-parts { justify-content: flex-start; min-height: 0; }
  .po-hero-card .dcard { --h: 74vh; }
  .club-pitch { aspect-ratio: 16 / 10.5; max-width: min(760px, calc((100dvh - 1.5rem) * 16 / 10.5)); }
  .club-pitch .cslot .dcard { --h: clamp(40px, 9cqw, 80px); }
  .club-pitch .cslot-plate { font-size: .62rem; max-width: 78px; padding: .03rem .3rem; }
  .po-pack .pack { --w: 32vh; }
  .po-hint { bottom: 6%; font-size: 1.2rem; }
  .po-best-card .dcard { --h: 60vh; }
  .po-mini .dcard { --h: 130px; }
}

.club-fit-legend { display: none; margin: -.4rem 0 0; text-align: center; }
.club-fit-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 .3rem 0 .5rem; vertical-align: -1px; }
.club-fit-legend .f9 { background: #CFEA7E; } .club-fit-legend .f5 { background: #F0C44C; } .club-fit-legend .f2 { background: #F06A6A; }
@media (max-width: 560px), (max-height: 500px) and (orientation: landscape) {
  .club-fit-legend { display: block; }
  /* En la cancha del celular, el aviso de puesto es un punto de color (el texto queda para lectores de pantalla). */
  .club-fit.mini { font-size: 0; width: 12px; height: 12px; padding: 0; top: -4px; left: auto; right: -2px; transform: none; border: 2px solid #0B1510; }
  .club-fit.mini.f9 { background: #CFEA7E; } .club-fit.mini.f5 { background: #F0C44C; } .club-fit.mini.f2 { background: #F06A6A; }
}
