/* Millo Games — portal de juegos · rediseño 2026 (oscuro futurista con neón)
   Sin dependencias externas: fuentes locales (Space Grotesk 500 / IBM Plex Mono 500) + tipografía del sistema. */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/SpaceGrotesk-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg: #070514; --bg2: #0c0922; --surface: #110d2b; --surface2: #181340; --surface3: #1f1950;
  --line: rgba(150, 130, 255, .22); --line2: rgba(150, 130, 255, .38);
  --text: #f1f0ff; --muted: #b6b2dc; --dim: #9a96c4;
  --cyan: #22e6ff; --magenta: #ff3bd4; --violet: #8b5cff; --blue: var(--brand-blue); --green: #3cf0a0; --amber: #ffcf4a; --danger: #ff6b8b;
  --grad: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--magenta));
  --grad-cyan: linear-gradient(120deg, var(--cyan), var(--blue));
  --font-display: "Space Grotesk", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 16px; --r-sm: 10px; --header-h: 60px; --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.55; color: var(--text); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column; padding-bottom: calc(var(--nav-h) + var(--safe-b)); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(139, 92, 255, .28), transparent 65%),
    radial-gradient(800px 480px at -5% 8%, rgba(0, 102, 255, .22), transparent 65%),
    radial-gradient(700px 420px at 60% 110%, rgba(255, 59, 212, .12), transparent 65%),
    linear-gradient(rgba(150, 130, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(150, 130, 255, .045) 1px, transparent 1px) 0 0 / 44px 44px, var(--bg); }
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7df0ff; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 28px, 1480px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 10px; top: -60px; z-index: 200; background: var(--cyan); color: #04101a; font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 10px; }
[hidden] { display: none !important; }
main { flex: 1; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }

/* ------------------------------------------------------------- Encabezado */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(7, 5, 20, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: .55; }
.bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; border-radius: var(--brand-plate-radius); }
.brand-logo { display: block; height: var(--brand-logo-height); aspect-ratio: var(--brand-logo-w) / var(--brand-logo-h);
  background: var(--brand-plate) var(--brand-logo) center / contain no-repeat; border-radius: var(--brand-plate-radius);
  padding: 0; box-sizing: content-box; filter: drop-shadow(0 0 10px rgba(0, 102, 255, .35)); transition: filter .2s; }
.brand-games { display: var(--games-slot); width: var(--games-logo-w); height: var(--brand-logo-height); background: var(--games-logo) center / contain no-repeat; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--text); background: rgba(139, 92, 255, .16); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(0, 102, 255, .28); box-shadow: inset 0 0 0 1px rgba(34, 230, 255, .45); }
.head-search { display: none; position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.head-search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.head-search input::placeholder { color: var(--dim); }
.head-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Barra inferior (móvil) */
.bottom-nav { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: rgba(10, 7, 28, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line2); padding-bottom: var(--safe-b); }
.bottom-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 640px; margin: 0 auto; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; position: relative; }
.bottom-nav a .ic { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { color: #fff; }
.bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); box-shadow: 0 0 14px var(--cyan); }
.bottom-nav a[aria-current="page"] .ic { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(34, 230, 255, .6)); }

/* ------------------------------------------------------------- Botones, chips, insignias */
.btn { --b1: var(--surface2); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--b1); color: var(--text); font-weight: 700; text-decoration: none; line-height: 1.1; transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 230, 255, .4), 0 0 24px rgba(34, 230, 255, .25); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 26px rgba(80, 70, 255, .45); text-shadow: 0 1px 2px rgba(0, 0, 40, .5); }
.btn-primary:hover { border-color: transparent; box-shadow: 0 8px 34px rgba(139, 92, 255, .7), 0 0 0 2px rgba(255, 255, 255, .25); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; border-color: var(--line); }
.btn-danger { border-color: rgba(255, 107, 139, .6); color: #ffd3dc; }
.btn-danger:hover { border-color: var(--danger); box-shadow: 0 0 22px rgba(255, 107, 139, .35); }
.lock-ic { display: inline-flex; }
html[data-auth="in"] .lock-ic { display: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--cyan); color: #fff; }
.chip[aria-pressed="true"], .chip.is-on { background: rgba(0, 102, 255, .3); color: #fff; border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 230, 255, .25); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; padding: 3px 9px; border-radius: 6px; background: rgba(139, 92, 255, .16); color: #d6caff; border: 1px solid rgba(139, 92, 255, .35); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: rgba(7, 5, 20, .82); border: 1px solid var(--line2); color: var(--text); backdrop-filter: blur(6px); }
.badge .ic { width: 1.05em; height: 1.05em; }
.badge-online { border-color: var(--cyan); color: var(--cyan); }
.badge-new { border-color: var(--green); color: var(--green); }
.badge-rank { border-color: var(--amber); color: var(--amber); }
.badge-beta { border-color: var(--magenta); color: #ff9be9; }
.badge-star { border-color: var(--violet); color: #cdbbff; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .6em; }
.text-grad { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------- Portada: héroe */
.hero { position: relative; margin-top: 14px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg2); isolation: isolate;
  box-shadow: 0 0 0 1px rgba(0, 102, 255, .2), 0 20px 60px rgba(40, 20, 120, .45); min-height: 0; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: inherit; }
/* Altura reservada del carrusel (evita saltos de diseño mientras JS arma la portada) */
.hero-stack { min-height: 560px; }
@media (min-width: 600px) and (max-width: 899px) { .hero-stack { min-height: 645px; } }
.hero-bg { position: absolute; inset: -30px; z-index: -2; }
/* Fondo difuminado barato: la imagen se pinta a 1/4 de tamaño (blur pequeño) y se amplía con transform → mismo look, mucho menos CPU en móviles */
.hero-bg { overflow: hidden; }
.hero-bg img { width: 25%; height: 25%; object-fit: cover; transform-origin: 0 0; transform: scale(4.4); filter: blur(7px) saturate(1.5) brightness(.55); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 5, 20, .1) 0%, rgba(7, 5, 20, .55) 55%, rgba(7, 5, 20, .96) 100%), linear-gradient(90deg, rgba(7, 5, 20, .8), transparent 70%); }
.hero-inner { display: grid; gap: 20px; padding: 22px 18px 18px; align-content: end; }
.hero-art { order: -1; justify-self: center; width: min(100%, 560px); border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 16 / 9; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(34, 230, 255, .35), 0 0 46px rgba(139, 92, 255, .55), 0 24px 50px rgba(0, 0, 0, .55); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-info h2, .hero-info h1 { font-size: clamp(1.9rem, 6vw, 3.6rem); margin: 8px 0 10px; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.hero-desc { color: #dcd8ff; max-width: 60ch; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 16px; }
.hero-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-dot { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--line2); background: transparent; padding: 0; position: relative; }
.hero-dot::after { content: ""; position: absolute; inset: -14px; }
.hero-dot[aria-selected="true"] { width: 34px; background: var(--grad); border-color: transparent; box-shadow: 0 0 12px var(--cyan); }
.hero-btns { display: flex; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(17, 13, 43, .85); border: 1px solid var(--line2); color: var(--text); padding: 0; }
.icon-btn:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 230, 255, .35); color: #fff; }
.hero-loading { display: grid; place-items: center; min-height: 380px; color: var(--muted); }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface3) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -300% 0; } }

/* Barra de búsqueda de la portada */
.quick { display: grid; gap: 12px; margin: 20px 0 6px; }
.search-box { position: relative; }
.search-box input { width: 100%; padding: 14px 18px 14px 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); font-size: 1.02rem; color: var(--text); }
.search-box input::placeholder { color: var(--dim); }
.search-box .ic { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--cyan); }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------- Filas por categoría y tarjetas */
.row-sec { margin: 30px 0; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-head h2 { font-size: clamp(1.25rem, 3.4vw, 1.75rem); margin: 0; display: flex; align-items: center; gap: 10px; }
.row-head h2 .ic { color: var(--cyan); filter: drop-shadow(0 0 8px rgba(34, 230, 255, .6)); }
.row-sub { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.row-wrap { position: relative; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 72vw); gap: 14px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.row > * { scroll-snap-align: start; }
.row-arrow { display: none; position: absolute; top: 38%; z-index: 5; }
.row-arrow.prev { left: -14px; } .row-arrow.next { right: -14px; }

.gcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; --mx: 50%; --my: 0%; }
.gcard::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(34, 230, 255, .22), transparent 60%); }
.gcard-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface2); overflow: hidden; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gcard-media .badges { position: absolute; left: 8px; top: 8px; right: 8px; z-index: 3; }
.gcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard h3 { margin: 0; font-size: 1.08rem; }
.gcard h3 a { color: var(--text); text-decoration: none; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.gcard h3 a:focus-visible { outline: none; }
.gcard:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.gcard-sum { color: var(--muted); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .8rem; }
.plat { display: inline-flex; gap: 8px; color: var(--dim); } .plat .ic { width: 1.15em; height: 1.15em; }
.price { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--green); border: 1px solid rgba(60, 240, 160, .45); border-radius: 6px; padding: 2px 8px; text-transform: uppercase; }
@media (hover: hover) {
  .gcard:hover { transform: translateY(-5px); border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 230, 255, .35), 0 12px 40px rgba(60, 40, 200, .5), 0 0 34px rgba(34, 230, 255, .2); }
  .gcard:hover::before { opacity: 1; }
  .gcard:hover .gcard-media img { transform: scale(1.07); }
}
.gcard.is-beta { border-style: dashed; }

.promo { display: grid; gap: 14px; align-items: center; padding: 20px; border-radius: 20px; border: 1px solid rgba(34, 230, 255, .45); background: linear-gradient(120deg, rgba(0, 102, 255, .28), rgba(139, 92, 255, .22) 55%, rgba(255, 59, 212, .18)), var(--surface);
  box-shadow: 0 0 40px rgba(34, 230, 255, .12); margin: 14px 0 6px; }
.promo h3 { font-size: 1.35rem; margin: 0 0 4px; } .promo p { margin: 0; color: #d9d6ff; }
html[data-auth="in"] .promo-out { display: none; }
html:not([data-auth="in"]) .promo-in { display: none; }

/* ------------------------------------------------------------- Catálogo (estilo Steam) */
.page-head { padding: 22px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 70ch; }
.cat-layout { display: grid; gap: 18px; margin-bottom: 30px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; }
.toolbar .grow { flex: 1 1 220px; }
.toolbar .search-box input { padding-block: 10px; }
.sel { background: var(--surface2); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px; min-height: 42px; color: var(--text); }
.seg { display: inline-flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }
.seg button { background: var(--surface2); border: 0; padding: 0 12px; min-height: 40px; color: var(--muted); display: inline-grid; place-items: center; }
.seg button[aria-pressed="true"] { background: rgba(0, 102, 255, .45); color: #fff; }
.count { color: var(--muted); font-size: .92rem; margin: 6px 2px; }
.results { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.results.is-list { grid-template-columns: 1fr; gap: 10px; }
.results.is-list .gcard { flex-direction: row; align-items: stretch; }
.results.is-list .gcard-media { width: min(42%, 260px); aspect-ratio: 16 / 9; flex: none; }
.results.is-list .gcard-body { padding: 10px 14px; }
.results.is-list .gcard-sum { -webkit-line-clamp: 2; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); grid-column: 1 / -1; }
.empty .ic { width: 42px; height: 42px; color: var(--violet); }

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.filters h2 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fgroup { border: 0; padding: 12px 0; margin: 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; }
.fgroup legend { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px; border-radius: 8px; cursor: pointer; color: var(--text); }
.opt:hover { background: rgba(139, 92, 255, .14); }
.opt input { width: 20px; height: 20px; accent-color: var(--cyan); flex: none; }
.opt small { margin-left: auto; color: var(--dim); font-family: var(--font-mono); }
.opt .ic { color: var(--violet); }
.filter-backdrop { display: none; }
@media (max-width: 1023px) {
  .filters { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; border-radius: 22px 22px 0 0; border-color: var(--cyan); padding-bottom: calc(18px + var(--safe-b));
    transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; box-shadow: 0 -20px 60px rgba(0, 0, 0, .7); }
  .filters.is-open { transform: none; visibility: visible; }
  .filter-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(2, 1, 12, .72); }
  .filter-backdrop.is-open { display: block; }
  .only-wide { display: none !important; }
}
.only-narrow { display: inline-flex; }

/* ------------------------------------------------------------- Ficha de juego */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: #fff; }
.ficha { display: grid; gap: 20px; margin-bottom: 26px; }
.stage-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); background: #000; box-shadow: 0 0 0 1px rgba(0, 102, 255, .25), 0 20px 60px rgba(40, 20, 120, .5); position: relative; }
.stage { position: relative; width: 100%; background: #000; }
.stage.landscape { aspect-ratio: 16 / 9; } .stage.any { aspect-ratio: 16 / 10; } .stage.portrait { aspect-ratio: 9 / 16; max-height: 82vh; margin-inline: auto; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.stage-cover > img { width: 100%; height: 100%; object-fit: cover; }
.stage-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 5, 20, .88)); }
.stage-play { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; }
.big-play { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); background: var(--grad); color: #fff; box-shadow: 0 0 0 8px rgba(34, 230, 255, .18), 0 0 50px rgba(139, 92, 255, .8); padding: 0; transition: transform .2s var(--ease); }
.big-play:hover { transform: scale(1.08); }
.big-play .ic { width: 38px; height: 38px; margin-left: 4px; }
.stage-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; background: var(--surface); border-top: 1px solid var(--line); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.info-card h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 6px 0 8px; }
.cta-col { display: grid; gap: 10px; margin: 16px 0 6px; }
.meta-list { display: grid; gap: 8px; margin: 14px 0 0; font-size: .92rem; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.meta-list dt { color: var(--dim); } .meta-list dd { margin: 0; text-align: right; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.panel h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.panel h2 .ic { color: var(--cyan); }
.panel + .panel { margin-top: 16px; }
.compat { display: flex; flex-wrap: wrap; gap: 8px; }
.compat li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: .92rem; }
.compat li.yes { border-color: rgba(60, 240, 160, .5); } .compat li.yes .ic { color: var(--green); }
.compat li.no { color: var(--dim); } .compat li.no .ic { color: var(--dim); }
.ficha-cols { display: grid; gap: 16px; }
.friends-mini { display: grid; gap: 8px; margin-top: 10px; }
.friends-mini li { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------- Cuenta: widget, modal, toast */
.acc-widget { position: relative; display: flex; align-items: center; gap: 8px; }
.acc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; min-height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); color: var(--text); font-weight: 700; }
.acc-btn:hover { border-color: var(--cyan); }
.acc-btn .nick { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; background: var(--av, var(--violet)); color: #fff; border: 2px solid rgba(255, 255, 255, .35); flex: none; line-height: 1; }
.avatar.lg { width: 76px; height: 76px; font-size: 2.3rem; }
.acc-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface2); border: 1px solid var(--cyan); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .65); z-index: 80; }
.acc-menu a, .acc-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 0; background: none; color: var(--text); text-decoration: none; text-align: left; font-weight: 600; }
.acc-menu a:hover, .acc-menu button:hover { background: rgba(139, 92, 255, .22); }
.acc-menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.acc-login-short { display: inline; } .acc-login-long { display: none; }

.m-dialog { border: 1px solid var(--cyan); border-radius: 22px; padding: 0; background: var(--surface); color: var(--text); width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); box-shadow: 0 0 0 1px rgba(34, 230, 255, .3), 0 0 70px rgba(139, 92, 255, .5), 0 30px 80px rgba(0, 0, 0, .8); overflow: hidden; }
.m-dialog::backdrop { background: rgba(3, 1, 14, .78); backdrop-filter: blur(5px); }
.m-dialog-in { padding: 20px 18px 22px; overflow-y: auto; max-height: calc(100dvh - 22px); }
.m-close { position: absolute; right: 10px; top: 10px; z-index: 3; }
.m-dialog h2 { font-size: 1.5rem; padding-right: 48px; }
.m-reason { background: rgba(34, 230, 255, .1); border: 1px solid rgba(34, 230, 255, .4); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; color: #dff9ff; font-size: .95rem; }
.m-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--bg2); border-radius: 999px; border: 1px solid var(--line); margin-bottom: 16px; }
.m-tabs button { border: 0; background: none; min-height: 44px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.m-tabs button[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 4px 18px rgba(80, 70, 255, .5); }
.field { margin-bottom: 14px; }
.field label, .field .lbl { display: block; font-weight: 700; margin-bottom: 5px; font-size: .95rem; }
.field .hint { color: var(--dim); font-size: .83rem; margin: 4px 0 0; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); }
.input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: #ffb3c4; font-size: .87rem; margin: 5px 0 0; min-height: 0; }
.err:empty { display: none; }
.pw-wrap { position: relative; } .pw-wrap .input { padding-right: 56px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 44px; height: 44px; color: var(--muted); display: grid; place-items: center; border-radius: 10px; }
.pw-toggle:hover { color: var(--cyan); }
.checks { display: grid; gap: 4px; margin: 6px 0 14px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 6px 4px; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--cyan); }
.check.is-bad { color: #ffb3c4; }
.row2 { display: grid; gap: 0 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .85rem; margin: 14px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-msg { border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: .93rem; }
.form-msg.bad { background: rgba(255, 107, 139, .12); border: 1px solid rgba(255, 107, 139, .5); color: #ffd3dc; }
.form-msg.ok { background: rgba(60, 240, 160, .1); border: 1px solid rgba(60, 240, 160, .5); color: #c9ffe6; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px); opacity: 0; max-width: min(92vw, 460px); background: var(--surface3); border: 1px solid var(--cyan); border-radius: 14px; padding: 12px 18px; font-weight: 600; box-shadow: 0 10px 40px rgba(0, 0, 0, .7), 0 0 30px rgba(34, 230, 255, .3); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- Cuenta (página) */
.acc-grid { display: grid; gap: 16px; margin: 10px 0 30px; }
.acc-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; position: sticky; top: calc(var(--header-h) + 6px); z-index: 15; }
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.av-pick { display: grid; grid-template-columns: repeat(8, minmax(40px, 1fr)); gap: 8px; }
.av-pick button { height: 44px; border-radius: 12px; border: 2px solid var(--line2); background: var(--surface2); font-size: 1.4rem; padding: 0; }
.av-pick button[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 230, 255, .5); }
.col-pick button { border-radius: 50%; background: var(--c); }
.flist { display: grid; gap: 8px; }
.flist li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.flist .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); margin-right: 6px; }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.invite-box { display: flex; gap: 8px; flex-wrap: wrap; } .invite-box .input { flex: 1 1 220px; font-family: var(--font-mono); font-size: .85rem; }
.danger-zone { border-color: rgba(255, 107, 139, .5); }

/* ------------------------------------------------------------- Legales y varios */
.legal { max-width: 78ch; margin: 18px auto 40px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; color: #fff; }
.legal li { margin: 0 0 .4em 1.2em; list-style: disc; }
.draft-banner { border: 2px dashed var(--amber); background: rgba(255, 207, 74, .1); color: #ffeaa8; border-radius: 14px; padding: 14px 16px; margin: 16px 0; font-weight: 600; }
.pending { background: rgba(255, 207, 74, .15); color: #ffe08a; padding: 0 6px; border-radius: 6px; font-family: var(--font-mono); font-size: .9em; }
.soon-list { display: flex; flex-wrap: wrap; gap: 10px; }
.soon-list li { padding: 12px 16px; border: 1px dashed var(--line2); border-radius: 14px; background: var(--surface); }
.site-footer { border-top: 1px solid var(--line); background: rgba(7, 5, 20, .8); margin-top: 20px; padding: 24px 0; color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: #fff; }
noscript .notice, .notice { padding: 14px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); }

/* ------------------------------------------------------------- Animaciones suaves (solo con movimiento permitido) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-art { animation: floaty 7s ease-in-out infinite; }
  @keyframes floaty { 50% { transform: translateY(-6px); } }
  .btn-primary { background-size: 200% 100%; animation: sheen 6s linear infinite; }
  @keyframes sheen { 50% { background-position: 100% 0; } }
  .hero-slide.is-active .hero-info { animation: rise .7s var(--ease) both; }
  .big-play { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 230, 255, .55), 0 0 50px rgba(139, 92, 255, .8); } 100% { box-shadow: 0 0 0 26px rgba(34, 230, 255, 0), 0 0 50px rgba(139, 92, 255, .8); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .skeleton { animation: none; }
  .gcard:hover { transform: none; }
}
@media (forced-colors: active) { .btn, .chip, .gcard, .input { border: 2px solid ButtonText; } }

/* ------------------------------------------------------------- Responsivo */
@media (min-width: 560px) {
  .acc-btn .nick { display: inline; }
  .acc-login-short { display: none; } .acc-login-long { display: inline; }
  .row { grid-auto-columns: minmax(240px, 34vw); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .main-nav { display: block; }
  .head-search { display: block; }
  .head-actions { margin-left: 0; }
  :root { --header-h: 72px; --brand-logo-height: 52px; }
  .hero-stack { min-height: 462px; }
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding: 40px 44px 20px; gap: 36px; }
  .hero-art { order: 2; justify-self: end; width: 100%; max-width: 640px; }
  .hero-ctrl { padding: 8px 44px 26px; }
  .row { grid-auto-columns: minmax(250px, 22vw); }
  .row-arrow { display: inline-grid; }
  .toast { bottom: 24px; }
  .ficha { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .ficha-cols { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .info-card { position: sticky; top: calc(var(--header-h) + 16px); }
  .acc-grid { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .acc-tabs { flex-direction: column; position: sticky; top: calc(var(--header-h) + 16px); }
  .foot-grid { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  .cat-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .filters { position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 28px); overflow-y: auto; }
  .only-narrow { display: none !important; }
  .results { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (min-width: 1500px) {
  .container { width: min(100% - 64px, 1680px); }
  .row { grid-auto-columns: minmax(270px, 17vw); }
  .results { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (min-width: 2200px) { html { font-size: 112.5%; } }
/* Móvil horizontal (poca altura): héroe más compacto */
@media (max-height: 480px) and (orientation: landscape) {
  .hero, .hero-stack { min-height: 0; } .hero-art { max-width: 300px; } .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; padding: 14px 18px 4px; }
  .hero-art { order: 2; } .hero-desc { -webkit-line-clamp: 2; } .stage.landscape, .stage.any { max-height: 72vh; }
  .bottom-nav a { flex-direction: row; gap: 6px; min-height: 48px; } :root { --nav-h: 48px; --header-h: 52px; }
}

/* Reserva de espacio mientras JS arma las fichas (evita saltos de diseño / CLS en móvil) */
@media (max-width: 899px) { .quick { min-height: 116px; } }
/* El marcador de carga ocupa lo mismo que el carrusel ya armado (pila + controles) */
.hero-loading { min-height: 628px; }
@media (min-width: 600px) and (max-width: 899px) { .hero-loading { min-height: 713px; } }
@media (min-width: 900px) { .hero-loading { min-height: 540px; } }
@media (max-height: 480px) and (orientation: landscape) { .hero-loading { min-height: 393px; } }
/* El pie siempre queda bajo el primer pantallazo: así no "salta" cuando JS termina de armar la página (CLS) */
#main { min-height: 100vh; }
@supports (min-height: 100svh) { #main { min-height: 100svh; } }
#rows { min-height: 100vh; }

/* ==========================================================================
   CAPA DE COLOR 2026-10 — consume las variables de brand.css (naranjo, plata/acero, categorías).
   Gradientes CSS puros (sin imágenes). Contraste AA: texto sobre naranjo = --accent-ink.
   ========================================================================== */
body::before {
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(139, 92, 255, .30), transparent 65%),
    radial-gradient(800px 480px at -5% 8%, rgba(0, 102, 255, .26), transparent 65%),
    radial-gradient(620px 380px at 100% 100%, rgba(255, 122, 0, .10), transparent 65%),
    radial-gradient(700px 420px at 40% 112%, rgba(255, 59, 212, .10), transparent 65%),
    linear-gradient(rgba(150, 130, 255, .04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(150, 130, 255, .04) 1px, transparent 1px) 0 0 / 44px 44px, var(--bg); }

/* Líneas y separadores plateados */
.site-header::after { background: var(--header-line); opacity: .9; height: 2px; }
.site-footer { border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--silver-line); opacity: .8; }
.row-head { padding-bottom: 10px; border-bottom: 1px solid transparent; border-image: var(--silver-line) 1; border-image-slice: 1; }
.row-head h2 { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.row-head h2 .ic { color: var(--cat-t, var(--accent-text)); filter: drop-shadow(0 0 8px var(--cat, var(--accent))); -webkit-text-fill-color: initial; }
.row-sec[data-cat] .row-head { border-image: linear-gradient(90deg, var(--cat), rgba(201,209,220,.7) 35%, transparent) 1; }

/* Títulos con brillo cromado sutil */
.page-head h1, .hero-info h1, .hero-info h2, .panel > h1 { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .55)); }
.page-head h1 .text-grad { background: linear-gradient(120deg, var(--cyan), var(--brand-blue) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; }

/* Marcos metálicos: tarjetas, paneles, filtros, héroe, escenario */
.gcard, .panel, .filters, .stage-wrap, .hero, .hero-art {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--surface2), var(--surface) 58%) padding-box, var(--metal-edge-soft) border-box; }
.hero { background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--metal-edge) border-box; }
.hero-art, .stage-wrap { background: linear-gradient(#000, #000) padding-box, var(--metal-edge) border-box; }
.panel, .filters { background: linear-gradient(180deg, rgba(31, 25, 80, .85), var(--surface) 60%) padding-box, var(--metal-edge-soft) border-box; box-shadow: var(--depth-1); }
.gcard { box-shadow: var(--depth-1); }
.gcard-body { box-shadow: inset 0 2px 0 var(--cat, var(--steel)); background: var(--metal-sheen); }
.gcard h3 a { background: linear-gradient(180deg, #fff, #d9e0ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gcard .tag { color: var(--cat-t, #d6caff); border-color: color-mix(in srgb, var(--cat, #8b5cff) 45%, transparent); background: color-mix(in srgb, var(--cat, #8b5cff) 14%, transparent); }
.gcard.is-beta { border-style: dashed; border-color: var(--silver-3); background: linear-gradient(180deg, var(--surface2), var(--surface) 58%); }
@media (hover: hover) {
  .gcard:hover { border-color: transparent; background: linear-gradient(180deg, var(--surface3), var(--surface2) 60%) padding-box, var(--metal-edge) border-box;
    box-shadow: var(--depth-2), 0 0 26px color-mix(in srgb, var(--cat, var(--accent)) 38%, transparent), 0 0 0 1px rgba(255, 122, 0, .25); }
  .gcard:hover h3 a { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; }
  .gcard.is-beta:hover { border-color: var(--silver-2); }
}
.panel h2 .ic { color: var(--accent-text); }

/* Botones: reflejo metálico + naranjo en hover y como CTA secundario */
.btn { background: var(--metal-sheen), var(--b1); border-color: rgba(201, 209, 220, .42); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 14px rgba(2, 1, 12, .4); }
.btn:hover { border-color: var(--accent-hi); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 0 0 1px var(--accent-line), var(--glow-orange); }
.btn-ghost { background: transparent; box-shadow: none; border-color: rgba(201, 209, 220, .3); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-primary { background: var(--metal-sheen), var(--grad); background-size: 100% 100%, 200% 100%; border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 6px 26px rgba(0, 102, 255, .5); }
.btn-primary:hover { border-color: rgba(255, 255, 255, .4); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 8px 34px rgba(0, 102, 255, .65), 0 0 0 2px var(--accent-line); }
.btn-accent { background: var(--metal-sheen), var(--accent-grad); color: var(--accent-ink); border-color: rgba(255, 214, 170, .65); text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 6px 22px var(--accent-glow); font-weight: 700; }
.btn-accent:hover { color: var(--accent-ink); border-color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 32px rgba(255, 122, 0, .6); }
.btn-accent .ic { color: var(--accent-ink); }
.btn-danger { background: var(--metal-sheen), var(--b1); }

/* Chips, etiquetas y estados activos */
.chip { background: var(--metal-sheen), var(--surface); border-color: rgba(201, 209, 220, .26); }
.chip:hover { border-color: var(--accent-hi); box-shadow: 0 0 14px var(--accent-glow); }
.chip[data-cat] .ic { color: var(--cat-t); }
.chip[data-cat]:hover { border-color: var(--cat); box-shadow: 0 0 14px color-mix(in srgb, var(--cat) 45%, transparent); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); color: #fff; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.main-nav a:hover { background: var(--accent-soft); }
.main-nav a[aria-current="page"] { background: rgba(0, 102, 255, .28); box-shadow: inset 0 0 0 1px rgba(201, 209, 220, .5), inset 0 -3px 0 var(--accent); }
.bottom-nav a[aria-current="page"]::before { background: var(--accent-grad); box-shadow: 0 0 14px var(--accent); }
.bottom-nav a[aria-current="page"] .ic { color: var(--accent-text); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.hero-dot[aria-selected="true"] { background: var(--accent-grad); box-shadow: 0 0 12px var(--accent); }
.hero-dot { border-color: rgba(201, 209, 220, .6); }

/* Badges: "Nuevo" y "Destacado" en naranjo; "Ranking" plateado */
.badge { background: rgba(7, 5, 20, .86); }
.badge-new { background: var(--accent-grad); color: var(--accent-ink); border-color: rgba(255, 214, 170, .8); font-weight: 700; box-shadow: 0 0 12px var(--accent-glow); }
.badge-star { border-color: var(--accent-line); color: var(--accent-text); box-shadow: 0 0 10px rgba(255, 122, 0, .2); }
.badge-star .ic { color: var(--accent); filter: drop-shadow(0 0 5px var(--accent-glow)); }
.badge-rank { border-color: var(--silver-2); color: var(--silver-1); background: linear-gradient(180deg, rgba(201, 209, 220, .22), rgba(7, 5, 20, .88)); }
.badge-rank .ic { color: var(--accent-hi); }
.badge-online { box-shadow: 0 0 10px rgba(34, 230, 255, .2); }

/* Logo Millo Games (PNG transparente): resplandor suave, naranjo al pasar el mouse */
.brand-logo { box-shadow: none; }
.brand:hover .brand-logo, .brand:focus-visible .brand-logo { filter: drop-shadow(0 0 12px var(--accent-glow)); }
.brand:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

/* Reflejo metálico que cruza la tarjeta al pasar el mouse (solo con movimiento permitido) */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .gcard::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 3; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent); transform: skewX(-18deg); }
  .gcard:hover::after { opacity: 1; left: 130%; transition: left .9s var(--ease), opacity .2s; }
}
/* Alto contraste del sistema: bordes reales (los marcos con degradado no se ven) */
@media (forced-colors: active) {
  .gcard, .panel, .filters, .stage-wrap, .hero, .hero-art { border-color: CanvasText; background: Canvas; }
  .badge-new, .btn-accent { forced-color-adjust: auto; border-color: ButtonText; }
  .row-head h2, .page-head h1, .hero-info h1, .hero-info h2, .gcard h3 a { color: CanvasText; background: none; }
}
