/* TCG Arcade · portal público. La marca de la máquina (oro, morado, Big Shoulders, Figtree) con la energía del hub
   E-STOM Arcade (letra de píxeles Press Start 2P, líneas de CRT, filas de ranking oro/cian/magenta). */
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url(/fuentes/big-shoulders-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url(/fuentes/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-display: swap; src: url(/fuentes/figtree-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Press Start 2P"; font-display: swap; src: url(/fuentes/pressstart2p-latin.woff2) format("woff2"); }
:root { --bg: #07050f; --panel: rgb(23 17 46 / .78); --panel2: #211a3f; --linea: #3a2e74; --tinta: #f5f2ff; --apoyo: #b3acd9;
  --oro: #ffcb52; --oro-metal: linear-gradient(180deg, #fff3c4 0%, #ffd877 30%, #ffcb52 47%, #e0a100 53%, #ffd36b 78%, #c58a00 100%);
  --cian: #00f0ff; --magenta: #ff3ed6; --morado: #a35bff; --pix: "Press Start 2P", ui-monospace, monospace; --disp: "Big Shoulders Display", Impact, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { min-height: 100dvh; color: var(--tinta); font: 500 16px/1.45 "Figtree", system-ui, sans-serif; padding: clamp(12px, 2.4vw, 28px);
  background: radial-gradient(120% 80% at 50% -10%, #2a1d5a 0%, transparent 55%), radial-gradient(70% 50% at 100% 10%, rgb(255 203 82 / .10), transparent 60%),
  radial-gradient(70% 50% at 0% 30%, rgb(163 91 255 / .16), transparent 55%), var(--bg); }
.crt { position: fixed; inset: 0; z-index: 99; pointer-events: none; mix-blend-mode: overlay; opacity: .45;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgb(0 0 0 / .3) 3px, transparent 4px); }
.pix { font-family: var(--pix); letter-spacing: .03em; line-height: 1.5; }
a { color: var(--oro); }
img { max-width: 100%; }
.tope { text-align: center; max-width: 1180px; margin: 0 auto 22px; }
.tope .logo { width: min(520px, 86vw); height: auto; filter: drop-shadow(0 8px 30px rgb(255 203 82 / .25)); }
.kick { color: var(--cian); font-size: clamp(10px, 1.6vw, 13px); letter-spacing: .22em; text-shadow: 0 0 10px rgb(0 240 255 / .5); margin-top: 8px; }
.lema { color: var(--apoyo); margin: 8px 0 0; }
main { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
main > *, .dos > * { min-width: 0; }
h2 { margin: 0 0 14px; font: 400 clamp(13px, 2vw, 17px)/1.4 var(--pix); color: #fff; text-shadow: 2px 2px 0 var(--magenta), 0 0 18px rgb(0 240 255 / .3); }
h2 small { display: block; font: 500 14px/1.4 "Figtree", sans-serif; text-shadow: none; color: var(--apoyo); margin-top: 6px; }
.panel { background: var(--panel); border: 2px solid var(--linea); border-radius: 16px; padding: clamp(14px, 2vw, 22px); }
.numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.num { text-align: center; padding: 14px 10px; border: 2px solid var(--linea); border-radius: 14px; background: var(--panel); min-width: 0; }
.num b { display: block; font: 400 clamp(18px, 3.4vw, 26px)/1.2 var(--pix); color: var(--cian); text-shadow: 0 0 12px rgb(0 240 255 / .45); }
.num.oro b { color: var(--oro); text-shadow: 0 0 12px rgb(255 203 82 / .5); }
.num span { display: block; margin-top: 8px; font-size: 13px; color: var(--apoyo); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.dos { display: grid; gap: 22px; }
@media (min-width: 980px) { .dos { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { font: 400 11px var(--pix); letter-spacing: .06em; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--linea); background: var(--panel2); color: #fff; cursor: pointer; min-height: 40px; }
.tab[aria-selected="true"] { background: var(--oro-metal); color: #241a00; border-color: #ffd877; }
.ranking { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fila { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 2px solid var(--linea); border-radius: 12px; background: var(--panel2); min-width: 0; }
.pos { font: 400 11px var(--pix); width: 34px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #10163b; color: var(--apoyo); }
.fila.p1 .pos { background: var(--oro); color: #241a00; } .fila.p2 .pos { background: var(--cian); color: #03181b; } .fila.p3 .pos { background: var(--magenta); color: #22001b; }
.fila.p1 { border-color: rgb(255 203 82 / .7); box-shadow: 0 0 24px rgb(255 203 82 / .18); }
.fila img, .fila .sinfoto { width: 44px; height: 62px; object-fit: cover; border-radius: 6px; background: #000; display: block; }
.fila .txt { min-width: 0; }
.fila .txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila .txt small { display: block; color: var(--apoyo); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila .der { text-align: right; }
.valor { font: 900 clamp(22px, 3vw, 28px)/1 var(--disp); color: var(--oro); white-space: nowrap; }
.veces { display: block; font: 400 10px var(--pix); color: var(--cian); margin-top: 6px; white-space: nowrap; }
.ini { font: 400 11px var(--pix); color: #fff; letter-spacing: .12em; }
.ini.nadie { color: #6f68a0; }
.hit { font: 400 9px var(--pix); padding: 3px 6px; border-radius: 6px; background: var(--oro-metal); color: #241a00; margin-left: 6px; vertical-align: 2px; }
.fr { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; font: 900 15px/1 var(--disp); color: #16112a; vertical-align: 1px; }
.fr-A { background: #8781a6; } .fr-B { background: #9a94bb; } .fr-C { background: #c4bfe0; } .fr-D { background: #a35bff; color: #fff; } .fr-E, .fr-F { background: var(--oro-metal); }
.tira { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.mini { scroll-snap-align: start; background: var(--panel2); border: 2px solid var(--linea); border-radius: 12px; padding: 8px; text-align: center; min-width: 0; }
.mini img, .mini .sinfoto { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px; display: block; background: #000; }
.mini b { display: block; font-size: 14px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .valor { font-size: 22px; margin-top: 4px; }
.mini small { display: block; color: var(--apoyo); font-size: 12px; margin-top: 4px; }
.mini.nueva { animation: llega 1.6s ease-out; border-color: var(--oro); }
@keyframes llega { 0% { transform: scale(.85); box-shadow: 0 0 0 0 rgb(255 203 82 / .9); } 60% { transform: scale(1.04); box-shadow: 0 0 30px 6px rgb(255 203 82 / .5); } 100% { transform: none; box-shadow: none; } }
.chase { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 14px; border: 2px solid rgb(255 203 82 / .6); background: linear-gradient(160deg, rgb(255 203 82 / .14), transparent 60%), var(--panel2); }
.chase img, .chase .sinfoto { width: 120px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; }
.estado { font: 400 11px var(--pix); color: var(--cian); }
.estado.fuera { color: var(--magenta); }
.franjas { display: grid; gap: 8px; }
.fb { display: grid; grid-template-columns: 30px 1fr 44px; gap: 10px; align-items: center; }
.fb .barra { height: 14px; border-radius: 7px; background: #10163b; overflow: hidden; }
.fb .barra i { display: block; height: 100%; border-radius: 7px; }
.fb span:last-child { font: 400 11px var(--pix); text-align: right; }
.quedan { font: 400 clamp(26px, 5vw, 40px)/1.1 var(--pix); color: var(--oro); text-shadow: 0 0 16px rgb(255 203 82 / .5); }
.lugar p { margin: 6px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 2px solid #ffd877; background: var(--oro-metal); color: #241a00; font: 400 11px var(--pix); text-decoration: none; margin-top: 10px; }
.vacio { text-align: center; color: var(--apoyo); padding: 18px 8px; }
.vacio.pix { font-size: 12px; }
.pie { max-width: 1180px; margin: 26px auto 0; color: var(--apoyo); font-size: 13px; text-align: center; }
.act { font-size: 10px; color: #6f68a0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } .crt { display: none; } }
/* En el celular el valor va debajo del nombre: así el nombre de la carta se lee completo */
@media (max-width: 560px) {
  .fila { grid-template-columns: auto auto minmax(0, 1fr); row-gap: 4px; }
  .fila .pos, .fila img, .fila .sinfoto { grid-row: span 2; }
  .fila .der { grid-column: 3; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .fila .txt b { white-space: normal; overflow-wrap: anywhere; }
  .veces { margin-top: 0; }
}
