  @property --accent { syntax: "<color>"; inherits: true; initial-value: #e63946; }
  :root {
    --accent: #e63946;
    --ink: #09090b; --panel: #111114; --panel2: #17171b; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
    --fg: #f1efe9; --muted: #8b8a92; --dim: #56555c;
    --up: #3ddc84; --down: #ff5c5c;
    --serif: "Instrument Serif", Georgia, serif; --sans: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
    --ease: cubic-bezier(.2,.8,.2,1);
    transition: --accent .8s var(--ease);
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html { touch-action: manipulation; }   /* sin demora ni zoom por doble toque */
  .frow { display: contents; }           /* en escritorio los filtros van en la misma fila */
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--ink); color: var(--fg); font: 15px/1.45 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  button, input, select { font: inherit; color: inherit; }
  ::selection { background: var(--accent); color: #000; }

  /* ---------- Atmósfera: resplandor que sigue el puntero + grano ---------- */
  .glow { position: fixed; width: 900px; height: 900px; left: 0; top: 0; pointer-events: none; z-index: 0;
          background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
          translate: calc(var(--gx, 70vw) - 450px) calc(var(--gy, 10vh) - 450px); filter: blur(20px); }
  .grain { position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: overlay;
           background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
           animation: grain 1.2s steps(6) infinite; }
  @keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} }
  .page { position: relative; z-index: 1; }

  /* ---------- Cinta de cotizaciones ---------- */
  .ticker { display: flex; align-items: stretch; height: 34px; border-bottom: 1px solid var(--line); background: rgba(9,9,11,.8);
            backdrop-filter: blur(10px); font: 500 12px var(--mono); overflow: hidden; position: relative; z-index: 3; }
  .ticker .label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--accent); color: #0a0a0a;
                   font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .ticker .label i { width: 7px; height: 7px; border-radius: 50%; background: #0a0a0a; animation: blink 1.4s infinite; }
  @keyframes blink { 50% { opacity: .2; } }
  .tape { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .tape-inner { display: flex; width: max-content; height: 100%; animation: tape var(--dur, 60s) linear infinite; }
  .tape:hover .tape-inner { animation-play-state: paused; }
  @keyframes tape { to { transform: translateX(-50%); } }
  .tk { display: flex; align-items: center; gap: 8px; padding: 0 18px; border-right: 1px solid var(--line); white-space: nowrap; cursor: pointer; }
  .tk:hover { background: var(--panel2); }
  .tk b { font-weight: 500; color: var(--fg); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
  .tk .p { color: var(--muted); }
  .up { color: var(--up); } .down { color: var(--down); }

  /* ---------- Encabezado + selector de juegos ---------- */
  .top { display: flex; align-items: center; gap: 28px; padding: 18px clamp(16px, 4vw, 48px) 0; }
  .wordmark { flex: none; display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--fg); }
  .wordmark em { font: italic 30px/1 var(--serif); letter-spacing: -.01em; }
  .wordmark .logo { width: 40px; height: 40px; align-self: center; margin-right: 4px; filter: drop-shadow(0 4px 12px rgba(48,230,200,.25)); }
  .wordmark span { font: 600 11px var(--mono); padding: 3px 6px; border: 1px solid var(--line2); border-radius: 5px; color: var(--accent); }
  .wordmark small { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .04em; margin-left: 4px; white-space: nowrap; }
  .mazo { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; text-decoration: none;
          font-weight: 600; font-size: 14px; color: var(--fg); border: 1px solid var(--line2); background: var(--panel);
          transition: background .25s, color .25s, border-color .25s, transform .15s; }
  .mazo svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
  .mazo:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
  .mazo:hover svg { transform: translate(2px, -2px); }
  .mazo:active { transform: scale(.96); }
  /* selector de moneda */
  .cur { flex: none; display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); }
  .cur button { border: 0; background: none; cursor: pointer; padding: 6px 11px; border-radius: 999px; color: var(--muted);
                font: 600 12px var(--mono); letter-spacing: .02em; transition: background .25s, color .25s; }
  .cur button:hover { color: var(--fg); }
  .cur button.on { background: var(--accent); color: #0a0a0a; }
  .d-price-box .alt { display: block; margin-top: 6px; font: 12px var(--mono); color: var(--muted); }
  /* aviso para instalar la app (solo en celular) */
  .install { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
             padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(23,23,27,.94); backdrop-filter: blur(14px); border: 1px solid var(--line2);
             box-shadow: 0 20px 50px -12px #000, 0 0 40px -18px var(--accent); translate: 0 calc(100% + 30px); transition: translate .45s var(--ease); }
  .install.show { translate: 0 0; }
  .install img { border-radius: 11px; flex: none; }
  .install p { margin: 0; flex: 1; font-size: 13px; line-height: 1.35; color: var(--muted); }
  .install p b { color: var(--fg); font-weight: 600; }
  .install .btn { padding: 9px 14px; font-size: 13px; }
  .install-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--panel2); color: var(--muted); cursor: pointer; }
  .ios-share { display: inline-block; width: 13px; height: 15px; vertical-align: -2px; margin: 0 2px;
               background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1v16M6 7l6-6 6 6M3 12v14h18V12' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; }
  body { padding-bottom: env(safe-area-inset-bottom); }
  .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px clamp(16px, 4vw, 48px) 34px;
          border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
  .foot em { font: italic 18px var(--serif); color: var(--fg); }
  .foot a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); }
  .foot a:hover { color: var(--accent); }
  /* selector de juegos: se desplaza con flechas, rueda del mouse o deslizando; sin barra de scroll */
  .games-wrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
  .games { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px; flex: 1; min-width: 0;
           scroll-behavior: smooth; overscroll-behavior-x: contain;
           mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%); }
  .games-wrap.can-l .games { --fl: 56px; }
  .games-wrap.can-r .games { --fr: 56px; }
  .gnav { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
          border: 1px solid var(--line2); background: var(--panel); color: var(--fg); cursor: pointer; opacity: 0; pointer-events: none;
          transition: opacity .25s, background .25s, color .25s, border-color .25s, transform .15s; box-shadow: 0 6px 20px -6px #000; }
  .gnav svg { width: 16px; height: 16px; }
  .gnav.prev { left: 0; } .gnav.next { right: 0; }
  .games-wrap.can-l .gnav.prev, .games-wrap.can-r .gnav.next { opacity: 1; pointer-events: auto; }
  .gnav:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
  .gnav:active { transform: scale(.92); }
  .games::-webkit-scrollbar { display: none; }
  .game { flex: none; position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 999px;
          color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; transition: color .3s; white-space: nowrap; }
  .game:hover { color: var(--fg); }
  .game.on { color: #0a0a0a; }
  .game .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 25%, transparent); transition: background .3s; }
  .game.on .dot { background: #0a0a0a; box-shadow: none; }
  .game.pending { opacity: .55; }
  .game.pending .dot { animation: blink 1.2s infinite; }
  .pill-ind { position: absolute; z-index: 0; top: 6px; height: calc(100% - 12px); border-radius: 999px; background: var(--accent);
              transition: left .5s var(--ease), width .5s var(--ease); box-shadow: 0 8px 30px -8px var(--accent); }

  /* ---------- Hero por juego ---------- */
  .hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
          gap: 24px; align-items: center; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px) 40px; min-height: min(700px, 84vh); }
  /* piso con cuadrícula en perspectiva, en el color del juego */
  .hero::before { content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; bottom: -2%; height: 58%;
          background-image: linear-gradient(color-mix(in oklab, var(--accent) 45%, transparent) 1px, transparent 1px),
                            linear-gradient(90deg, color-mix(in oklab, var(--accent) 45%, transparent) 1px, transparent 1px);
          background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
          mask-image: linear-gradient(to top, #000 5%, transparent 80%); opacity: .32; animation: floor 5s linear infinite; }
  @keyframes floor { to { background-position: 0 64px, 0 0; } }
  /* aurora */
  .hero::after { content: ""; position: absolute; z-index: -2; left: 20%; right: -20%; top: -40%; height: 110%;
          background: conic-gradient(from 90deg at 50% 50%, transparent 0 15%, color-mix(in oklab, var(--accent) 55%, transparent) 25%,
                      transparent 40% 60%, color-mix(in oklab, var(--accent) 30%, #7c5cff) 72%, transparent 85%);
          filter: blur(90px); opacity: .4; animation: aurora 22s linear infinite; }
  @keyframes aurora { to { transform: rotate(360deg); } }
  .eyebrow { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
  .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
  .hero h1 { margin: 14px 0 0; font: 400 clamp(64px, 11vw, 176px)/.84 var(--serif); letter-spacing: -.04em; }
  .hero h1 em { color: var(--accent); text-shadow: 0 0 60px color-mix(in oklab, var(--accent) 45%, transparent); }
  .hero h1 .w { display: inline-block; animation: rise 1s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(45%) rotate(3deg); filter: blur(8px); } }

  /* índice bursátil del juego */
  .idx { margin-top: 30px; display: inline-grid; grid-template-columns: auto auto; gap: 4px 22px; align-items: end;
         padding: 16px 20px; border: 1px solid var(--line2); border-radius: 18px; animation: rise 1s var(--ease) .25s both;
         background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, rgba(17,17,20,.7)), rgba(17,17,20,.55)); backdrop-filter: blur(10px); }
  .idx-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .idx-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: live 2s infinite; }
  @keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
  .idx-val { font: 600 clamp(34px, 4.2vw, 54px)/1 var(--mono); letter-spacing: -.05em; }
  .idx-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 4px; }
  .idx-spark { width: 150px; height: 38px; overflow: visible; }
  .idx-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
  .figures { display: flex; gap: clamp(18px, 4vw, 44px); margin-top: 24px; flex-wrap: wrap; animation: rise 1s var(--ease) .4s both; }
  .fig b { display: block; font: 500 clamp(20px, 2.2vw, 28px)/1 var(--mono); letter-spacing: -.03em; }
  .fig span { font-size: 12px; color: var(--muted); }

  /* abanico con las cartas más caras */
  .stage { position: relative; height: clamp(380px, 40vw, 520px); perspective: 1400px; }
  .fan { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
  .fan-in { position: absolute; left: 50%; bottom: 150px; width: 0; height: 0; transform: scale(var(--fs, 1)); transform-origin: 50% 100%; }
  .fc { position: absolute; left: -96px; bottom: 0; width: 192px; aspect-ratio: 5/7; border-radius: 13px; overflow: hidden; cursor: pointer;
        background: var(--panel2); box-shadow: 0 25px 50px -18px #000, 0 0 0 1px var(--line2);
        transform: translateY(var(--y, 0)) rotate(var(--a, 0deg)) scale(var(--s, 1)); transform-origin: 50% 260%;
        transition: transform .75s var(--ease), box-shadow .5s, opacity .6s; }
  .fan-in.deal .fc { opacity: 0; transform: translateY(170px) rotate(0deg) scale(.85); }
  .fc img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
  .fc::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
               background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.4), transparent 48%); mix-blend-mode: soft-light; }
  .fc.holo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge; transition: opacity .4s;
                     background: linear-gradient(115deg, transparent 20%, #ff4fd8 34%, #3cf 46%, #7dff6b 58%, #ffe14a 70%, transparent 82%);
                     background-size: 220% 220%; background-position: var(--mx, 50%) var(--my, 50%); }
  .fc.on { box-shadow: 0 40px 70px -18px #000, 0 0 0 1px color-mix(in oklab, var(--accent) 70%, transparent), 0 0 60px -12px var(--accent); }
  .fc.on::after { opacity: 1; } .fc.on.holo::before { opacity: .32; }
  .fc .rk { position: absolute; z-index: 2; left: 8px; top: 8px; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px;
            background: rgba(0,0,0,.72); backdrop-filter: blur(6px); color: #fff; }
  .fc.on .rk { background: var(--accent); color: #0a0a0a; }
  .stage-floor { position: absolute; left: 10%; right: 10%; bottom: 4%; height: 70px; border-radius: 50%;
                 background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 45%, transparent), transparent); filter: blur(18px); opacity: .7; }
  .stage-cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; pointer-events: none; }
  .stage-cap .n { font: italic 400 clamp(20px, 2vw, 26px)/1.1 var(--serif); display: block; max-width: 80%; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stage-cap .p { font: 600 15px var(--mono); color: var(--accent); }
  .stage-cap .h { font: 11px var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; display: block; }
  .stage-cap .swap { animation: capIn .45s var(--ease); }
  @keyframes capIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

  /* franja de texto gigante */
  .band { overflow: hidden; border-block: 1px solid var(--line); padding: 10px 0; position: relative;
          background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 7%, transparent), transparent); }
  .band-inner { display: flex; width: max-content; animation: tape 50s linear infinite; font: italic 400 clamp(52px, 8vw, 112px)/1.05 var(--serif);
                letter-spacing: -.02em; white-space: nowrap; }
  .band-inner span { padding: 0 .28em; color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--fg) 35%, transparent); }
  .band-inner span.f { color: var(--accent); -webkit-text-stroke: 0; }
  .band-inner i { font-style: normal; color: var(--accent); font-size: .38em; align-self: center; }

  /* parallax al hacer scroll (navegadores con scroll-driven animations) */
  @supports (animation-timeline: scroll()) { @media (min-width: 861px) {  /* parallax solo en pantallas grandes */
    .hero-copy { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 620px; }
    .stage { animation: stageOut linear both; animation-timeline: scroll(root); animation-range: 0 720px; }
    @keyframes heroOut { to { transform: translateY(-70px); opacity: .1; filter: blur(4px); } }
    @keyframes stageOut { to { transform: translateY(90px) scale(.9); opacity: .2; } }
  }
  }

  /* ---------- Barra de filtros ---------- */
  .bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
         padding: 12px clamp(16px, 4vw, 48px); background: rgba(9,9,11,.72); backdrop-filter: blur(16px) saturate(1.4);
         border-block: 1px solid var(--line); }
  .search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
            border-radius: 12px; padding: 0 12px; transition: border-color .2s, box-shadow .2s; }
  .search:focus-within { border-color: color-mix(in oklab, var(--accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
  .search svg { width: 17px; color: var(--muted); flex: none; }
  .search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 11px 0; }
  kbd { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
  .sel { position: relative; }
  .sel select { appearance: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 32px 11px 14px;
                cursor: pointer; outline: none; max-width: 210px; transition: border-color .2s; }
  .sel select:hover, .sel select:focus { border-color: var(--line2); }
  .sel::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0;
                transform: translateY(-70%) rotate(45deg); pointer-events: none; }
  .sel select option { background: var(--panel); }
  .seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
  .seg button { border: 0; background: none; border-radius: 9px; padding: 7px 10px; cursor: pointer; color: var(--muted); display: grid; place-items: center; transition: .2s; }
  .seg button.on { background: var(--panel2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
  .seg svg { width: 16px; height: 16px; }
  .seg.kind button { font-size: 13px; font-weight: 500; padding: 7px 12px; }
  /* reverso generado cuando el producto no tiene imagen */
  .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12% 10%;
        border-radius: inherit; overflow: hidden; text-align: center; container-type: inline-size;
        background:
          radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--accent) 38%, transparent), transparent 65%),
          repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
          linear-gradient(160deg, #1d1d23, #0e0e11); }
  .ph::before { content: ""; position: absolute; inset: 6%; border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
                border-radius: 8px; pointer-events: none; }
  .ph::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
               border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
               background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%); opacity: .8; }
  .ph-top, .ph-sub { position: relative; z-index: 1; font: 500 clamp(8px, 6cqi, 11px) var(--mono); letter-spacing: .12em; text-transform: uppercase;
                     color: color-mix(in oklab, var(--accent) 80%, #fff); }
  .ph-sub { color: var(--muted); letter-spacing: .06em; }
  .ph-name { position: relative; z-index: 1; font: italic 400 clamp(15px, 11cqi, 30px)/1.05 var(--serif); color: var(--fg);
             display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 12px #000; }
  .big-art { position: relative; }
  .list .ph { padding: 4px; } .list .ph > * { display: none; }
  .btn { border: 0; cursor: pointer; border-radius: 12px; padding: 11px 16px; font-weight: 600; background: var(--fg); color: #0a0a0a;
         display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, background .3s; }
  .btn:hover { background: var(--accent); }
  .btn:active { transform: scale(.96); }
  .btn:disabled { opacity: .5; cursor: progress; }
  .btn svg { width: 15px; height: 15px; }
  .btn.icon { padding: 12px; }
  .btn.spin svg { animation: spin 1s linear infinite; }
  @keyframes spin { to { rotate: 360deg; } }

  main { padding: 22px clamp(16px, 4vw, 48px) 80px; }
  .meta { display: flex; justify-content: space-between; gap: 12px; font: 12px var(--mono); color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }

  /* ---------- Grilla de cartas ---------- */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px; }
  .card { position: relative; cursor: pointer; opacity: 0; transition: opacity .35s ease, filter .35s ease; }
  .card.in { opacity: 1; animation: cardIn .8s var(--ease) var(--d, 0ms) backwards; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotateX(18deg) scale(.96); filter: blur(4px); } }
  /* al pasar sobre una carta, esa se agranda y queda por encima de las vecinas */
  @media (hover: hover) { .grid:not(.list) .card[data-id]:hover { z-index: 5; } }
  .tilt { position: relative; border-radius: 12px; transform-style: preserve-3d; will-change: transform;
          transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
          transition: transform .5s var(--ease), box-shadow .5s; box-shadow: 0 1px 0 var(--line2), 0 18px 40px -22px rgba(0,0,0,.9); }
  @media (hover: hover) { .card:hover .tilt { --s: 1.08; transition: transform .12s linear, box-shadow .3s; box-shadow: 0 30px 60px -20px rgba(0,0,0,.95), 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent); } }
  .art { position: relative; aspect-ratio: 5/7; border-radius: 12px; overflow: hidden; background: var(--panel2); }
  .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .art img.sealed { object-fit: contain; padding: 14px; background: radial-gradient(circle at 50% 40%, #26262c, #141417); }
  .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
                background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 45%); mix-blend-mode: soft-light; }
  .card:hover .art::after { opacity: 1; }
  .holo .art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .0; mix-blend-mode: color-dodge; transition: opacity .3s;
                background: linear-gradient(calc(110deg + var(--ry, 0deg) * 4), transparent 20%, #ff4fd8 32%, #3cf 44%, #7dff6b 56%, #ffe14a 68%, transparent 80%);
                background-size: 220% 220%; background-position: var(--mx, 50%) var(--my, 50%); filter: saturate(1.4); }
  .holo:hover .art::before { opacity: .38; }
  .rank { position: absolute; top: -12px; left: -8px; z-index: 3; font: italic 44px/1 var(--serif); color: var(--fg);
          text-shadow: 0 2px 20px rgba(0,0,0,.9); pointer-events: none; transform: translateZ(40px); }
  .chips { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; }
  .chip { font: 600 10px var(--mono); letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); color: #fff; white-space: nowrap; }
  .chip.foil { background: linear-gradient(120deg, #ff9ae3, #8fe3ff, #ffe98a); color: #111; }
  .info { padding: 12px 2px 0; }
  .name { font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sub { font: 11px var(--mono); color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
  .pr { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); }
  .price { font: 600 18px var(--mono); letter-spacing: -.03em; }
  .chg { font: 500 12px var(--mono); }

  /* primera carta destacada cuando se ordena por precio */
  .grid.feature .card:first-child { grid-column: span 2; grid-row: span 2; }
  .grid.feature .card:first-child .price { font-size: 30px; }
  .grid.feature .card:first-child .name { font-size: 20px; font-family: var(--serif); font-style: italic; }
  .grid.feature .card:first-child .rank { font-size: 90px; top: -30px; left: -14px; color: var(--accent); }

  /* ---------- Vista lista ---------- */
  .grid.list { grid-template-columns: 1fr; gap: 0; }
  .list .card { display: grid; grid-template-columns: 48px 44px 1fr auto; align-items: center; gap: 16px; padding: 10px 6px; border-bottom: 1px solid var(--line); grid-column: auto !important; grid-row: auto !important; }
  .list .card:hover { background: var(--panel); }
  .list .tilt, .list .card:hover .tilt { transform: none; box-shadow: none; }
  .list .art { border-radius: 4px; }
  .list .rank { position: static; font-size: 26px !important; transform: none; color: var(--muted) !important; text-align: right; }
  .list .chips { display: none; }
  .list .info { padding: 0; display: contents; }
  .list .name, .list .sub { grid-column: 3; }
  .list .card > .info > div:first-child { grid-column: 3; }
  .list .pr { grid-column: 4; grid-row: 1; border: 0; margin: 0; padding: 0; gap: 16px; }
  .list .price { font-size: 16px !important; }
  .list .name { font-family: var(--sans) !important; font-style: normal !important; font-size: 15px !important; -webkit-line-clamp: 1; }

  .skel .art { animation: pulse 1.4s ease-in-out infinite; }
  .skel .info div { height: 10px; border-radius: 4px; background: var(--panel2); margin-top: 8px; }
  @keyframes pulse { 50% { opacity: .4; } }

  /* ---------- Estado vacío / descarga ---------- */
  .gate { text-align: center; padding: 70px 20px 90px; max-width: 560px; margin: 0 auto; }
  .gate h2 { font: 400 clamp(36px, 5vw, 56px)/1 var(--serif); margin: 0 0 12px; letter-spacing: -.02em; }
  .gate h2 em { color: var(--accent); }
  .gate p { color: var(--muted); margin: 0 0 26px; }
  .bar-p { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 26px 0 10px; }
  .bar-p i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 40%, transparent), var(--accent));
             border-radius: 99px; transition: width .6s var(--ease); box-shadow: 0 0 20px var(--accent); }
  .mono { font: 12px var(--mono); color: var(--muted); }
  .more { margin: 40px auto 0; display: flex; }
  .toast { position: fixed; left: 50%; bottom: 24px; translate: -50% calc(100% + 40px); visibility: hidden; z-index: 70; background: var(--fg); color: #0a0a0a; padding: 12px 18px; border-radius: 12px;
           font-weight: 500; transition: translate .5s var(--ease); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); }
  .toast.show { translate: -50% 0; visibility: visible; }

  /* ---------- Detalle ---------- */
  dialog { border: 0; padding: 0; background: transparent; color: var(--fg); max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
  dialog::backdrop { background: rgba(5,5,7,.78); backdrop-filter: blur(14px); }
  /* el panel queda fijo (fondo y ✕); el contenido se desplaza adentro, en .sheet-in */
  .sheet { position: relative; width: min(980px, 94vw); margin: 5vh auto; max-height: 90vh; overflow: hidden; display: flex; background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 10%, var(--panel)), var(--panel) 40%);
           border: 1px solid var(--line2); border-radius: 24px; box-shadow: 0 40px 120px -30px #000; }
  .sheet-in { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: grid;
              grid-template-columns: minmax(0, 360px) 1fr; gap: 40px; padding: clamp(18px, 3vw, 36px); }
  .sheet:focus, .sheet:focus-visible, .sheet-in:focus, .sheet-in:focus-visible { outline: none; } /* el navegador enfoca lo que se desplaza */
  dialog[open] .sheet { animation: sheet .5s var(--ease); }
  @keyframes sheet { from { opacity: 0; transform: translateY(30px) scale(.97); } }
  /* el fondo agrandado va en un ::before recortado por .sheet-bg, así no genera barras de scroll */
  .sheet-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
  .sheet-bg::before { content: ""; position: absolute; inset: -25%; background: var(--bg) center / cover;
                      filter: blur(80px) saturate(1.5) brightness(.7); opacity: .2; }
  .sheet-in { scrollbar-width: none; }
  .sheet-in::-webkit-scrollbar { display: none; }
  .d-art { position: sticky; top: 0; align-self: start; z-index: 1; }
  .d-info { position: relative; z-index: 1; min-width: 0; }
  .d-info > * { animation: rise .7s var(--ease) both; }
  .d-info > :nth-child(2) { animation-delay: .06s; } .d-info > :nth-child(3) { animation-delay: .12s; }
  .d-info > :nth-child(4) { animation-delay: .18s; } .d-info > :nth-child(5) { animation-delay: .24s; } .d-info > :nth-child(6) { animation-delay: .3s; }
  .d-tilt { position: relative; border-radius: 16px; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
            transition: transform .5s var(--ease); box-shadow: 0 40px 80px -25px #000, 0 0 70px -30px var(--accent); }
  .d-tilt:hover { transition: transform .1s linear; }
  .sheet .big-art { border-radius: 16px; overflow: hidden; aspect-ratio: 5/7; background: var(--panel2); view-transition-name: card-art; }
  .sheet .big-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .d-glare { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
             background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.45), transparent 50%); }
  .d-tilt:hover .d-glare { opacity: 1; }
  .d-tilt.holo::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge; transition: opacity .3s;
                        background: linear-gradient(calc(110deg + var(--ry, 0deg) * 4), transparent 20%, #ff4fd8 34%, #3cf 46%, #7dff6b 58%, #ffe14a 70%, transparent 82%);
                        background-size: 220% 220%; background-position: var(--mx, 50%) var(--my, 50%); }
  .d-tilt.holo:hover::after { opacity: .35; }
  .d-actions { display: flex; gap: 8px; margin-top: 18px; }
  .d-actions .btn { padding: 11px 14px; font-size: 14px; text-decoration: none; }
  .d-go { flex: 1; justify-content: center; }
  .d-actions .icon-only { padding: 11px 12px; }
  .d-actions .icon-only svg { width: 17px; height: 17px; }
  .btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line2); }
  .btn.ghost:hover { background: var(--panel2); color: var(--fg); }
  .tags .rar { background: var(--accent); color: #0a0a0a; border-color: var(--accent); font-weight: 600; }
  .d-price-box { margin: 24px 0 6px; }
  .d-price-box .lbl { font: 11px var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
  .range { margin: 22px 0 18px; }
  .range-track { position: relative; height: 8px; margin: 34px 8px 16px; border-radius: 99px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
  .range-fill { position: absolute; top: 0; bottom: 0; min-width: 4px; border-radius: 99px;
                background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 35%, transparent), color-mix(in oklab, var(--accent) 70%, transparent)); }
  .range .tick { position: absolute; top: -4px; width: 2px; height: 16px; translate: -50% 0; background: var(--muted); border-radius: 2px; }
  .range .mk { position: absolute; top: 50%; width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: var(--fg);
               box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 45%, transparent), 0 0 20px var(--accent); }
  .range .mk b { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; font: 600 10px var(--mono); letter-spacing: .08em;
                 text-transform: uppercase; color: var(--accent); white-space: nowrap; }
  .range .kpis { margin: 0; }
  .range-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); } .range-note b { color: var(--fg); font-weight: 500; }
  .x { position: absolute; z-index: 3; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; font-size: 16px; }
  .x:hover { background: var(--fg); color: #000; }
  .d-title { font: 400 clamp(32px, 4vw, 48px)/1 var(--serif); margin: 10px 50px 14px 0; letter-spacing: -.02em; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tags span { font: 11px var(--mono); padding: 4px 9px; border: 1px solid var(--line2); border-radius: 99px; color: var(--muted); }
  .d-price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 4px; }
  .d-price b { font: 600 clamp(40px, 5vw, 58px)/1 var(--mono); letter-spacing: -.05em; }
  .kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; margin: 20px 0; overflow: hidden; }
  .kpis div { padding: 12px 14px; } .kpis div + div { border-left: 1px solid var(--line); }
  .kpis span { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .kpis b { display: block; font: 500 17px var(--mono); margin-top: 2px; }
  .hist { margin-top: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 12px; background: rgba(0,0,0,.18); }
  .hist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
  .hist-sub { margin-top: 6px; }
  .rng button { font: 500 12px var(--mono); padding: 5px 9px; }
  .chart-box { position: relative; height: 210px; }
  .chart-box svg { display: block; overflow: visible; }
  .chart-box .ax { font: 10px var(--mono); fill: var(--muted); }
  .chart-box .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .25s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .chart-box .halo { transform-box: fill-box; transform-origin: center; animation: halo 2s ease-out infinite; }
  @keyframes halo { from { opacity: .45; transform: scale(.5); } to { opacity: 0; transform: scale(2.2); } }
  .tip { position: absolute; z-index: 2; pointer-events: none; font: 11px/1.35 var(--mono); background: var(--fg); color: #000; padding: 6px 9px; border-radius: 8px;
         translate: -50% calc(-100% - 12px); opacity: 0; transition: opacity .15s; white-space: nowrap; box-shadow: 0 10px 30px -10px #000; }
  .tip b { font-weight: 600; }
  .legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font: 11px var(--mono); color: var(--muted); }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 16px; height: 0; border-top: 2px solid var(--up); }
  .legend .lg-low { border-top: 1.5px dashed var(--muted); }
  .legend .lg-fut { height: 10px; border: 1px solid var(--line2); background: repeating-linear-gradient(45deg, var(--line2) 0 1px, transparent 1px 5px); }
  .legend .lg-fc { height: 10px; border: 0; background: color-mix(in oklab, var(--accent) 30%, transparent);
                   box-shadow: inset 0 -2px 0 var(--accent); border-radius: 2px; }
  /* proyección */
  .fcast { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; position: relative; overflow: hidden;
        background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 9%, transparent), rgba(0,0,0,.18) 55%); }
  .fc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .conf { font: 600 11px var(--mono); padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); }
  .conf-baja { color: #f2a33a; border-color: rgba(242,163,58,.4); }
  .conf-media { color: #e8d36a; border-color: rgba(232,211,106,.4); }
  .conf-alta { color: var(--up); border-color: color-mix(in oklab, var(--up) 45%, transparent); }
  .fc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .fc-h { padding: 11px 13px; display: grid; gap: 2px; align-content: start; }
  .fc-h + .fc-h { border-left: 1px solid var(--line); }
  .fc-h .mono { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .fc-h b { font: 600 19px var(--mono); letter-spacing: -.02em; }
  .fc-h b.up { color: var(--up); } .fc-h b.down { color: var(--down); }
  .fc-h small { font: 11px var(--mono); color: var(--muted); }
  .fc-why { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
  .fc-why li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; }
  .fc-why .dim { color: var(--dim); }
  .fc-note { margin: 12px 0 0; font-size: 11.5px; color: var(--dim); }
  @media (max-width: 600px) { .fc-grid { grid-template-columns: 1fr 1fr; } .fc-h:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
  .hist-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
  .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--fg); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
  .go:hover { color: var(--accent); }
  ::view-transition-group(card-art) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }

  @media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
    .stage { height: 380px; margin-top: 28px; }
    .fan-in { bottom: 120px; }
    .sheet { margin: 0; width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: 0; }
    .sheet-in { grid-template-columns: 1fr; gap: 20px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
    .d-art { position: relative; }
    /* el ancho sale de la altura disponible, así la caja mantiene la forma de carta */
    .d-tilt { width: min(62vw, 300px, calc(46vh * 5 / 7)); margin: 0 auto; }
  }
  @media (max-width: 600px) {
    .top { flex-wrap: wrap; gap: 8px 12px; }
    .games-wrap { order: 3; flex-basis: 100%; }
    .mazo { padding: 7px 12px; font-size: 13px; }
    .cur { margin-left: auto; }
    .hide-sm, .wordmark small { display: none; }
    .wordmark .logo { width: 32px; height: 32px; }  /* "by MazoCR" sigue en el pie */
    .cur button { padding: 5px 11px; font-size: 13px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .grid.feature .card:first-child { grid-column: auto; grid-row: auto; }
    .grid.feature .card:first-child .price { font-size: 18px; }
    .grid.feature .card:first-child .name { font-size: 15px; }
    .rank, .grid.feature .card:first-child .rank { font-size: 34px; top: -10px; left: -4px; }
    .price { font-size: 16px; }
    .info { padding-top: 10px; }
    .search kbd { display: none; }
    .search input { font-size: 16px; padding: 10px 0; }   /* 16px: iPhone no hace zoom al tocar */

    /* barra de filtros: buscador + una sola fila de filtros que se desliza de lado */
    .bar { padding: 10px 14px 8px; gap: 8px; }
    .search { flex-basis: 100%; }
    .frow { display: flex; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; width: calc(100% + 28px);
            mask-image: linear-gradient(90deg, #000 88%, transparent); }
    .frow::-webkit-scrollbar { display: none; }
    .frow > * { flex: none; }
    .sel select { width: auto; max-width: 170px; padding: 8px 28px 8px 11px; font-size: 13px; border-radius: 10px; }
    .seg { border-radius: 10px; }
    .seg.kind button { padding: 6px 10px; font-size: 12.5px; }
    .seg button { padding: 6px 8px; }

    /* portada más compacta */
    .hero { padding: 18px 16px 8px; }
    .hero h1 { font-size: clamp(54px, 15vw, 72px); margin-top: 8px; }
    .idx { margin-top: 18px; padding: 12px 14px; gap: 2px 14px; width: 100%; }
    .idx-val { font-size: 32px; }
    .idx-spark { width: 110px; }
    .figures { margin-top: 16px; gap: 18px; }
    .fig b { font-size: 19px; }
    .fig span { font-size: 11px; }
    .stage { height: 360px; margin-top: 6px; }
    .fan-in { bottom: 108px; }
    .fc { transform-origin: 50% 220%; }
    .stage-cap .n { font-size: 19px; max-width: 92%; }
    .band-inner { font-size: 46px; }
    main { padding: 16px 14px 60px; }
    .meta { font-size: 11px; margin-bottom: 14px; }
    /* detalle */
    .d-actions .btn { padding: 10px 12px; font-size: 13.5px; }
    .d-title { font-size: 30px; margin-right: 44px; }
    .d-price b { font-size: 40px; }
    .x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  }
  @media (max-width: 860px) and (max-height: 700px) { .d-tilt { width: min(62vw, 300px, calc(34vh * 5 / 7)); } }  /* pantallas bajas (iPhone SE) */
  /* abierta como app instalada: respetar la muesca y la barra de inicio */
  @media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); }
    .foot { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  }
    .list .card { grid-template-columns: 32px 38px 1fr auto; gap: 10px; }
    .list .chg { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .tilt { transform: none !important; }
    .hero::before, .hero::after { animation: none !important; }
  }
