/* Evoria Network: colores planos, bordes duros y movimiento por pasos. */

@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-tight-latin-500-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-tight-latin-600-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url("../assets/fonts/inter-tight-latin-800-normal.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, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 900; font-display: swap; src: url("../assets/fonts/inter-tight-latin-900-normal.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, U+FEFF, U+FFFD; }

:root {
  --ink: #070D20;
  --night: #0C1733;
  --deep: #101F44;
  --panel: #14264F;
  --panel-2: #1B3165;
  --line: #2A4580;
  --text: #F2F7FF;
  --muted: #AFC1E0;
  --sky: #1E9BFF;
  --sky-dark: #0B6FD1;
  --gold: #FFD54A;
  --gold-dark: #C4930F;
  --danger: #FF6B6B;
  --paper: #FFFFFF;
  --paper-line: #DFE8F5;
  --paper-text: #1A2A4D;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --edge-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='32' shape-rendering='crispEdges'%3E%3Cpath d='M0 32V20h8v-8h16v8h8V12h12V4h16v8h8v8h16v-8h12V8h12v8h10v4h10v12z'/%3E%3C/svg%3E");
  --side: 272px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--night); color: var(--text); font: 500 1rem/1.5 var(--body); overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code { font-family: var(--pixel); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
#view:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; shape-rendering: crispEdges; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink); font-weight: 800; }
.skip:focus { top: 10px; }
.noscript { position: fixed; inset: auto 0 0; z-index: 90; padding: 14px; background: var(--gold); color: var(--ink); font-weight: 800; text-align: center; }

/* Botones */
.btn {
  --btn: var(--sky); --btn-edge: var(--sky-dark); --btn-ink: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 9px 18px; border: 0; border-radius: 0;
  background: var(--btn); color: var(--btn-ink); box-shadow: 0 4px 0 var(--btn-edge);
  font-weight: 800; line-height: 1.15; text-align: center; text-decoration: none;
  transition: transform .1s steps(2), box-shadow .1s steps(2);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-edge); }
.btn[disabled] { --btn: #D8E1EE; --btn-edge: #B5C2D6; --btn-ink: #4C5D7C; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--btn-edge); }
.btn--gold { --btn: var(--gold); --btn-edge: var(--gold-dark); }
.btn--ink { --btn: var(--ink); --btn-edge: #000; --btn-ink: var(--text); }
.btn--added { --btn: var(--ink); --btn-edge: var(--sky); --btn-ink: var(--text); }
.btn--lg { min-height: 54px; padding: 12px 24px; font-size: 1.0625rem; }
.btn--sm { min-height: 38px; padding: 6px 13px; font-size: .9375rem; box-shadow: 0 3px 0 var(--btn-edge); }
.btn--block { width: 100%; }
.btn.is-busy { cursor: progress; }
.dark-ui .btn[disabled], .card .btn[disabled], .uprow .btn[disabled] { --btn: var(--panel-2); --btn-edge: var(--line); --btn-ink: var(--muted); }

.iconbtn { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border: 3px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.1rem; transition: background-color .1s, border-color .1s, transform .1s steps(2); }
.iconbtn:hover { background: var(--panel-2); border-color: var(--sky); transform: translateY(-2px); }
.iconbtn--plain { background: transparent; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__text { display: grid; line-height: .95; }
.brand__text b { font: 400 1.5rem/1 var(--display); letter-spacing: .03em; }
.brand__text small { font: 700 .625rem/1.3 var(--pixel); color: var(--sky); letter-spacing: .08em; }

/* Menú lateral */
.mobilebar { display: none; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column; width: var(--side); padding: 14px; background: var(--ink); border-right: 4px solid var(--sky); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.side__close { display: none; }
.side__label { margin: 18px 4px 8px; color: var(--sky); font: 700 .75rem/1.2 var(--pixel); text-transform: uppercase; }
.account { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 8px; background: var(--panel); border: 3px solid var(--line); text-align: left; }
button.account { box-shadow: 0 4px 0 var(--line); transition: transform .1s steps(2), box-shadow .1s steps(2), border-color .1s; }
button.account:hover { border-color: var(--sky); transform: translateY(-2px); box-shadow: 0 6px 0 var(--sky-dark); }
button.account:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.account__face { width: 46px; height: 46px; background: var(--ink); image-rendering: pixelated; object-fit: cover; }
.account__text { display: grid; min-width: 0; line-height: 1.2; }
.account__text small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.account__text b { overflow: hidden; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.account__out { justify-self: start; padding: 0; border: 0; background: none; color: var(--sky); font-size: .8125rem; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.sidenav { display: grid; gap: 6px; }
.sidenav a { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 6px 10px; border: 3px solid transparent; font-weight: 900; font-size: 1.0313rem; text-decoration: none; text-transform: uppercase; letter-spacing: .01em; transition: transform .1s steps(2), background-color .08s, border-color .08s; }
.sidenav img { width: 36px; height: 36px; image-rendering: pixelated; }
.sidenav a:hover { background: var(--panel); border-color: var(--line); transform: translateX(3px); }
.sidenav a:hover img { animation: hop .32s steps(4); }
.sidenav a[aria-current="page"] { background: var(--sky); border-color: var(--sky); color: var(--ink); box-shadow: 0 4px 0 var(--sky-dark); transform: none; }
.side__bottom { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; }
.ipcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); border: 3px solid var(--line); }
.ipcard small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.2; }
.ipcard b { display: block; overflow: hidden; font-size: .9375rem; font-weight: 900; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.ipcard button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: var(--sky); color: var(--ink); }
.sidecart { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 62px; padding: 8px 10px; border: 0; background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-dark); text-align: left; transition: transform .1s steps(2), box-shadow .1s steps(2); }
.sidecart:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-dark); }
.sidecart:active { transform: translateY(5px); box-shadow: 0 0 0 var(--gold-dark); }
.sidecart__icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; background: var(--ink); color: var(--gold); font-size: 1.25rem; }
.sidecart__icon [data-cart-count] { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 3px; background: var(--sky); color: var(--ink); font: 700 .6875rem/1 var(--pixel); }
[data-cart-count].pop { animation: pop .34s steps(4); }
.sidecart__text { display: grid; line-height: 1.15; }
.sidecart__text b { font: 400 1.25rem/1.1 var(--display); text-transform: uppercase; }
.sidecart__text span { font-size: .875rem; font-weight: 800; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(4, 8, 20, .72); }

/* Portada */
.page { display: flex; flex-direction: column; min-height: 100vh; margin-left: var(--side); min-width: 0; }
.hero { position: relative; overflow: hidden; padding: 16px 24px 66px; background: var(--sky); color: var(--ink); isolation: isolate; text-align: center; }
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cloud { position: absolute; left: 0; fill: #7CC7FF; shape-rendering: crispEdges; animation: drift var(--t, 70s) steps(280) infinite; animation-delay: var(--d, 0s); will-change: transform; }
.cloud--1 { --t: 76s; --d: -18s; top: 9%; width: 240px; height: 72px; }
.cloud--2 { --t: 104s; --d: -74s; top: 30%; width: 150px; height: 56px; fill: #52B2FF; }
.cloud--3 { --t: 62s; --d: -48s; top: 56%; width: 330px; height: 99px; }
.cloud--4 { --t: 118s; --d: -96s; top: 12%; width: 112px; height: 42px; fill: #52B2FF; }
.cloud--5 { --t: 88s; --d: -9s; top: 66%; width: 200px; height: 60px; fill: #52B2FF; }
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__status { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; background: var(--ink); color: var(--text); font: 700 .75rem/1.2 var(--pixel); }
.blip { width: 9px; height: 9px; background: var(--gold); animation: blink 1.2s steps(2) infinite; }
.hero__center { display: grid; justify-items: center; }
.hero__logo { width: min(330px, 62vw); margin-top: -14px; animation: bob 4.2s steps(10) infinite alternate; }
.hero h1 { margin-top: 6px; color: #fff; font: 400 clamp(1.75rem, 3.1vw, 2.75rem)/1.08 var(--display); text-transform: uppercase; letter-spacing: .015em; text-shadow: 3px 3px 0 var(--ink); }
.hero__editions { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-weight: 900; }
.hero__editions li { display: inline-flex; align-items: center; gap: 6px; }
.hero__editions img { image-rendering: pixelated; }
.hero__evo { position: absolute; right: clamp(16px, 7vw, 110px); bottom: 58px; width: 104px; animation: bob 3.2s steps(6) infinite alternate-reverse; }
.hero__evo img { width: 80px; height: 80px; margin: 0 auto -16px; position: relative; z-index: 1; image-rendering: pixelated; }
.hero__evo-cloud { width: 104px; height: 39px; fill: #fff; shape-rendering: crispEdges; }
body:not([data-route="inicio"]) .hero { padding-bottom: 56px; }
body:not([data-route="inicio"]) .hero__logo { width: 168px; margin-top: -40px; }
body:not([data-route="inicio"]) .hero h1 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
body:not([data-route="inicio"]) .hero__evo { display: none; }
.edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 32px; background: var(--night); -webkit-mask: var(--edge-shape) repeat-x left bottom / 128px 32px; mask: var(--edge-shape) repeat-x left bottom / 128px 32px; pointer-events: none; }

/* Contenido */
#view { position: relative; flex: 1; width: min(100% - 48px, 1280px); margin-inline: auto; padding-block: 34px 64px; }
.view-enter { animation: view-in .22s steps(4); }
.block { margin-bottom: 44px; }
.panel { position: relative; margin-top: 26px; padding: 50px clamp(12px, 1.8vw, 22px) 24px; background: var(--deep); border: 3px solid var(--line); }
.ribbon { position: absolute; left: 50%; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 16px); padding: 7px 22px 7px 10px; background: var(--sky); color: var(--ink); box-shadow: 0 5px 0 var(--sky-dark); font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.05 var(--display); text-transform: uppercase; white-space: nowrap; transform: translate(-50%, -52%); }
.ribbon img { width: 40px; height: 40px; margin-block: -4px; image-rendering: pixelated; }
.lead { max-width: 46rem; margin: 0 auto 22px; color: var(--muted); font-size: 1.0625rem; text-align: center; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; padding: 11px 15px; background: #3A1730; border: 3px solid var(--danger); font-weight: 600; }
.notice { margin-top: 18px; color: var(--muted); font-size: .9375rem; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px 12px 10px; background: var(--panel); border: 3px solid var(--line); text-decoration: none; transition: transform .12s steps(3), border-color .08s, box-shadow .12s steps(3); }
.tile img { width: 72px; height: 72px; image-rendering: pixelated; }
.tile h2 { font: 400 1.6rem/1.05 var(--display); text-transform: uppercase; }
.tile p { color: var(--muted); font-size: .9063rem; line-height: 1.25; }
.tile .ico { color: var(--sky); font-size: 1.25rem; transition: transform .12s steps(3); }
.tile:hover { transform: translate(-3px, -3px); border-color: var(--sky); box-shadow: 6px 6px 0 var(--sky); }
.tile:hover .ico { transform: translateX(4px); }

/* Pestañas */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; background: var(--ink); border: 3px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; color: var(--muted); font-size: .9375rem; font-weight: 900; text-decoration: none; text-transform: uppercase; transition: background-color .08s, color .08s; }
.tabs a:hover { background: var(--panel-2); color: var(--text); }
.tabs a[aria-current="page"] { background: var(--gold); color: var(--ink); }

/* Columnas de rangos */
.board { container-type: inline-size; }
.board__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.rcol { --rank: var(--sky); --rank-dark: var(--sky-dark); position: relative; display: flex; flex-direction: column; min-width: 0; }
.rcol__mascot { position: relative; z-index: 1; width: 144px; height: 144px; margin: 0 auto -6px; image-rendering: pixelated; animation: hop-idle 3.6s steps(6) infinite; animation-delay: calc(var(--i) * .22s); }
.rcol:hover .rcol__mascot { animation: hop .4s steps(5) infinite; }
.rcol__card { display: flex; flex: 1; flex-direction: column; background: var(--paper); color: var(--paper-text); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--rank-dark); transition: transform .12s steps(3), box-shadow .12s steps(3); }
.rcol:hover .rcol__card { transform: translateY(-4px); box-shadow: 0 10px 0 var(--rank-dark); }
.rcol__name { padding: 7px 6px 6px; background: var(--rank); border-bottom: 3px solid var(--ink); color: var(--ink); font: 400 1.5rem/1.05 var(--display); text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.rcol__price { padding: 10px 6px 8px; border-bottom: 2px solid var(--paper-line); color: var(--ink); font: 400 1.85rem/1 var(--display); text-align: center; }
.rcol__price small { display: block; margin-top: 4px; color: #4C5D7C; font: 800 .6875rem/1 var(--body); text-transform: uppercase; }
.rcol__perks { flex: 1; padding: 6px 9px 8px; }
.rcol__perks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 5px; padding: 4px 0; font-size: .8125rem; font-weight: 600; line-height: 1.22; }
.rcol__perks .ico { width: 13px; height: 13px; margin-top: 1px; color: var(--rank-dark); }
.rcol__perks li.is-inherit { margin-bottom: 3px; padding: 4px 6px; background: var(--ink); color: #fff; font-weight: 800; }
.rcol__perks li.is-inherit .ico { color: var(--rank); }
.rcol__buy { padding: 0 9px 13px; }
.rcol__buy .btn { --btn: var(--rank); --btn-edge: var(--rank-dark); width: 100%; min-height: 42px; padding-inline: 6px; font-size: .9375rem; }
.rcol__buy .btn.btn--added { --btn: var(--ink); --btn-edge: var(--rank-dark); --btn-ink: #fff; }
.rcol__buy .btn[disabled] { --btn: #D8E1EE; --btn-edge: #B5C2D6; --btn-ink: #4C5D7C; }

/* Subir de rango */
.pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 20px; }
.pick button { --rank: var(--sky); display: inline-flex; align-items: center; gap: 6px; padding: 4px 13px 4px 5px; border: 3px solid var(--line); background: var(--panel); font-weight: 900; transition: transform .1s steps(2), border-color .08s; }
.pick button img { width: 34px; height: 34px; image-rendering: pixelated; }
.pick button:hover { border-color: var(--rank); transform: translateY(-2px); }
.pick button[aria-pressed="true"] { background: var(--rank); border-color: var(--rank); color: var(--ink); }
.uplist { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.uprow { --rank: var(--sky); display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 6px 14px 6px 6px; background: var(--panel); border: 3px solid var(--line); border-left: 8px solid var(--rank); }
.uprow img { width: 72px; height: 72px; image-rendering: pixelated; }
.uprow h3 { font: 400 1.5rem/1.05 var(--display); text-transform: uppercase; }
.uprow p { color: var(--muted); font-size: .875rem; line-height: 1.25; }
.uprow__price { font: 400 1.6rem/1 var(--display); text-align: right; white-space: nowrap; }
.uprow__price small { display: block; margin-top: 3px; color: var(--muted); font: 700 .6875rem/1 var(--body); }
.uprow .btn { min-width: 112px; }

/* Tabla */
.compare { overflow-x: auto; background: var(--panel); border: 3px solid var(--line); }
.compare table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: 10px 8px; border-bottom: 2px solid var(--line); text-align: center; }
.compare thead th { background: var(--c); color: var(--ink); font: 400 1.125rem/1 var(--display); text-transform: uppercase; }
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel-2); color: var(--text); font: 800 .875rem/1.2 var(--body); text-transform: none; }
.compare tbody th { position: sticky; left: 0; z-index: 1; min-width: 200px; background: var(--panel-2); font-weight: 600; text-align: left; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td .ico { margin-inline: auto; }
.compare .ico--yes { color: var(--sky); }
.compare .ico--no { color: var(--line); }

/* Franja */
.fair { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 18px 22px; background: var(--sky); color: var(--ink); box-shadow: 0 6px 0 var(--sky-dark); }
.fair img { width: 92px; height: 92px; flex: none; image-rendering: pixelated; }
.fair h2 { font: 400 clamp(1.6rem, 3vw, 2.5rem)/1.05 var(--display); text-transform: uppercase; }
.fair p { margin-top: 3px; font-weight: 600; }

/* Tarjetas */
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 3px solid var(--line); transition: transform .12s steps(3), box-shadow .12s steps(3), border-color .08s; }
.card:hover { transform: translate(-3px, -3px); border-color: var(--sky); box-shadow: 6px 6px 0 var(--sky); }
.card__stage { position: relative; display: grid; place-items: center; height: 168px; overflow: hidden; background: var(--ink); border-bottom: 3px solid var(--line); }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 18px; }
.card h3 { font: 400 1.5rem/1.08 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.card__desc { flex: 1; margin-top: 6px; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.card__price { font-weight: 900; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.card__foot .btn { min-width: 112px; }
.card__ribbon { position: absolute; top: 9px; left: 9px; padding: 3px 7px; background: var(--gold); color: var(--ink); font-weight: 900; font-size: .8125rem; line-height: 1.2; }
.card__image { width: 100%; height: 100%; object-fit: contain; }

.demo-chat { width: calc(100% - 20px); padding: 11px; background: #000; color: #fff; font: 400 .75rem/1.55 var(--pixel); }
.demo-chat b { color: var(--sky); font-weight: 400; }
.demo-chat__msg { animation: chat-color 5s steps(1) infinite; }
.demo-particles { position: relative; width: 120px; height: 124px; }
.demo-particles img { position: absolute; left: 22px; bottom: 0; width: 76px; height: 76px; image-rendering: pixelated; }
.demo-particles i { position: absolute; bottom: 18px; left: var(--x); width: 7px; height: 7px; background: var(--c); animation: rise var(--t) steps(8) var(--d) infinite; }
.demo-pet img { width: 104px; height: 104px; image-rendering: pixelated; }
.demo-tag { display: grid; gap: 7px; justify-items: center; font: 700 .875rem/1 var(--pixel); }
.demo-tag__label { position: relative; display: block; width: 138px; height: 30px; overflow: hidden; background: var(--gold); color: var(--ink); }
.demo-tag__label span { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; animation: tag-cycle 7.5s steps(1) infinite; animation-delay: calc(var(--i) * 2.5s); }
.demo-tag__name { padding: 5px 9px; background: #000; color: #fff; font-weight: 400; }
.coin-stack { display: flex; justify-content: center; }
.coin-stack img { width: 88px; height: 88px; margin-inline: -14px; image-rendering: pixelated; }
.coin-stack img:nth-child(2) { margin-top: 18px; }
.coin-stack img:nth-child(3) { margin-top: -6px; }

/* Ayuda */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 20px; background: var(--panel); border: 3px solid var(--line); }
.steps__n { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; background: var(--sky); color: var(--ink); font: 400 1.65rem/1 var(--display); }
.steps h3 { font: 400 1.5rem/1.08 var(--display); text-transform: uppercase; }
.steps p { margin-top: 7px; color: var(--muted); }
.edition { display: inline-flex; margin-top: 11px; border: 3px solid var(--line); }
.edition button { padding: 5px 14px; border: 0; background: transparent; font-weight: 800; }
.edition button[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.edition__code { display: inline-block; margin-top: 9px; padding: 6px 11px; background: #000; color: var(--gold); }
.faq { display: grid; gap: 8px; max-width: 880px; margin-inline: auto; }
.faq details { background: var(--panel); border: 3px solid var(--line); }
.faq details[open] { border-color: var(--sky); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--panel-2); }
.faq summary .ico { transition: transform .16s steps(3); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 16px 15px; color: var(--muted); animation: line-in .18s steps(3); }

/* Pie */
.footer { padding: 30px 24px 24px; background: var(--ink); border-top: 4px solid var(--sky); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 18px 36px; align-items: center; width: min(100%, 1280px); margin-inline: auto; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--muted); line-height: 1.25; }
.footer__brand b { color: var(--text); font: 400 1.4rem/1.1 var(--display); text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; font-weight: 600; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer__legal { grid-column: 1 / -1; padding-top: 14px; border-top: 2px solid var(--panel-2); color: #8EA3C8; font-size: .8438rem; }

/* Carrito */
.drawer { width: min(100%, 440px); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 4px solid var(--sky); background: var(--night); color: var(--text); overflow: hidden; }
.drawer[open] { animation: drawer-in .2s steps(5); }
.drawer.is-closing { animation: drawer-out .15s steps(4) forwards; }
.drawer::backdrop { background: rgba(4, 8, 20, .72); }
.drawer__panel { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); border-bottom: 3px solid var(--line); }
.drawer__head h2 { font: 400 1.85rem/1 var(--display); text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.drawer__foot { padding: 13px 16px 17px; background: var(--ink); border-top: 3px solid var(--line); }
.drawer__user { margin-bottom: 8px; color: var(--muted); font-size: .9375rem; }
.drawer__user b { color: var(--text); }
.drawer__error { margin-bottom: 10px; padding: 8px 10px; background: #3A1730; border: 2px solid var(--danger); font-size: .9375rem; font-weight: 600; }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; font-weight: 800; }
.drawer__total strong { font: 400 2rem/1 var(--display); }
.drawer__safe { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .875rem; }
.cart-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px; margin-bottom: 8px; background: var(--panel); border: 3px solid var(--line); animation: line-in .18s steps(3); }
.cart-item__icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--ink); overflow: hidden; }
.cart-item__icon img { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.cart-item h3 { font-size: 1rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.cart-item p { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.cart-item .iconbtn { width: 38px; height: 38px; font-size: 1rem; }
.cart-item .iconbtn:hover { border-color: var(--danger); color: var(--danger); }
.cart-state { display: grid; justify-items: center; gap: 7px; padding: 40px 10px; text-align: center; }
.cart-state img { width: 112px; height: 112px; image-rendering: pixelated; }
.cart-state h3 { font: 400 1.6rem/1.1 var(--display); text-transform: uppercase; }
.cart-state p { color: var(--muted); }
.cart-state .btn { margin-top: 9px; }
.auth-choice { display: grid; gap: 9px; margin-bottom: 10px; }

/* Inicio de sesión */
.login { width: min(calc(100% - 28px), 430px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 4px solid var(--sky); background: var(--night); color: var(--text); box-shadow: 9px 9px 0 var(--sky-dark); overflow-y: auto; }
.login[open] { animation: login-in .18s steps(4); }
.login::backdrop { background: rgba(4, 8, 20, .78); }
.login form { position: relative; display: grid; gap: 9px; padding: 20px 22px 24px; }
.login__close { position: absolute; top: 10px; right: 10px; }
.login__evo { width: 96px; height: 96px; margin-inline: auto; image-rendering: pixelated; }
.login h2 { font: 400 2.05rem/1.05 var(--display); text-align: center; text-transform: uppercase; }
.login__lead { color: var(--muted); text-align: center; }
.login__editions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 6px 5px; }
.login__editions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border: 3px solid var(--line); background: var(--panel); font-weight: 900; transition: transform .1s steps(2), border-color .08s; }
.login__editions img { image-rendering: pixelated; }
.login__editions button:hover { border-color: var(--sky); transform: translateY(-2px); }
.login__editions button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.login__label { font-weight: 800; }
.login__field { display: flex; align-items: center; min-height: 52px; background: var(--paper); border: 3px solid var(--ink); color: var(--ink); box-shadow: 0 0 0 2px var(--line); }
.login__field:focus-within { box-shadow: 0 0 0 3px var(--gold); }
.login__field span { padding-left: 13px; font-size: 1.25rem; font-weight: 900; }
.login__field input { flex: 1; width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1.125rem; font-weight: 800; }
#login-prefix:not([hidden]) + input { padding-left: 2px; }
.login__field input::placeholder { color: #66758F; font-weight: 600; }
.login__hint { color: var(--muted); font-size: .9063rem; }
.login__error { padding: 8px 10px; background: #3A1730; border: 2px solid var(--danger); font-size: .9375rem; font-weight: 700; }
.login .btn { margin-top: 7px; }
.login .btn[disabled] { --btn: var(--panel-2); --btn-edge: var(--line); --btn-ink: var(--muted); cursor: progress; }

/* Avisos */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: grid; gap: 10px; width: min(calc(100% - 36px), 370px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--ink); border: 3px solid var(--sky); box-shadow: 5px 5px 0 var(--sky); font-weight: 700; line-height: 1.25; pointer-events: auto; animation: toast-in .18s steps(4); }
.toast--error { border-color: var(--danger); box-shadow: 5px 5px 0 var(--danger); }
.toast img { width: 34px; height: 34px; flex: none; object-fit: contain; image-rendering: pixelated; }
.toast button { margin-left: auto; padding: 3px 8px; border: 0; background: var(--sky); color: var(--ink); font-weight: 800; white-space: nowrap; }
.fly-coin { position: fixed; left: 0; top: 0; z-index: 80; width: 40px; height: 40px; image-rendering: pixelated; pointer-events: none; }

.reveal { transition: opacity .3s steps(4), transform .3s steps(4); }
.reveal.pre { opacity: 0; transform: translateY(16px); }

@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(115vw); } }
@keyframes bob { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hop-idle { 0%, 78%, 100% { transform: translateY(0); } 86% { transform: translateY(-9px); } 92% { transform: translateY(0); } 96% { transform: translateY(-3px); } }
@keyframes view-in { from { transform: translateY(10px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes line-in { from { transform: translateX(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes login-in { from { transform: translateY(18px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chat-color { 0% { color: #55FFFF; } 20% { color: #FFD54A; } 40% { color: #FF5FBF; } 60% { color: #A07CFF; } 80% { color: #4BE3A3; } }
@keyframes rise { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-104px); opacity: 0; } }
@keyframes tag-cycle { 0%, 32% { opacity: 1; } 33%, 100% { opacity: 0; } }

@container (max-width: 1040px) {
  .board__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
}
@container (max-width: 640px) {
  .board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rcol__mascot { width: 120px; height: 120px; }
}

@media (max-width: 1320px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1160px) {
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .mobilebar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; padding: 8px 12px; background: var(--ink); border-bottom: 4px solid var(--sky); }
  .mobilebar .brand img { width: 44px; }
  .cartmini { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 5px 7px 5px 11px; border: 0; background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--gold-dark); font-size: 1.1rem; }
  .cartmini [data-cart-count] { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; background: var(--ink); color: var(--text); font: 700 .75rem/1 var(--pixel); }
  .side { visibility: hidden; width: min(88vw, 310px); transform: translateX(-102%); transition: transform .18s steps(5), visibility 0s linear .18s; }
  .side.is-open { visibility: visible; transform: none; transition: transform .18s steps(5); }
  .side__close { display: inline-grid; }
  .page { margin-left: 0; min-height: calc(100vh - 62px); }
  .hero__evo { right: 12px; width: 84px; }
  .hero__evo img { width: 64px; height: 64px; }
  .hero__evo-cloud { width: 84px; height: 32px; }
}
@media (max-width: 760px) {
  #view { width: min(100% - 28px, 1280px); padding-block: 28px 52px; }
  .hero { padding-inline: 14px; }
  .hero__logo { width: min(250px, 66vw); margin-top: 4px; }
  body:not([data-route="inicio"]) .hero__logo { width: 124px; margin-top: 2px; }
  .hero__evo { display: none; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .ribbon { padding-right: 14px; }
  .fair { align-items: flex-start; gap: 12px; padding: 14px; }
  .fair img { width: 64px; height: 64px; }
  .card--row { flex-direction: row; }
  .card--row .card__stage { flex: 0 0 104px; height: auto; border-right: 3px solid var(--line); border-bottom: 0; }
  .card--row .card__body { min-width: 0; padding: 12px; }
  .card--row h3 { font-size: 1.35rem; }
  .card--row .card__desc { font-size: .875rem; }
  .card--row .card__foot { flex-wrap: wrap; margin-top: 10px; }
  .card--row .card__price { font-size: 1.125rem; }
  .card--row .card__foot .btn { flex: 1 1 88px; min-width: 0; min-height: 40px; padding-inline: 10px; }
  .card--row .coin-stack img { width: 48px; height: 48px; margin-inline: -10px; }
  .card--row .card__ribbon { top: 4px; left: 4px; right: 4px; padding: 2px 4px; font-size: .6875rem; text-align: center; }
  .uprow { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 8px; padding-right: 10px; }
  .uprow img { width: 60px; height: 60px; }
  .uprow .btn { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
  .alert { align-items: flex-start; flex-direction: column; }
  .toasts { right: 12px; bottom: 12px; width: calc(100% - 24px); }
}
@media (max-width: 400px) {
  .rcol__perks li { font-size: .75rem; }
  .rcol__name { font-size: 1.3rem; }
  .ribbon { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .cloud { animation: none !important; transform: translateX(var(--rest, 20vw)); }
  .cloud--1 { --rest: 6vw; } .cloud--2 { --rest: 40vw; } .cloud--3 { --rest: 56vw; } .cloud--4 { --rest: 74vw; } .cloud--5 { --rest: 2vw; }
  .demo-chat__msg { color: #FFD54A; animation: none !important; }
  .demo-particles i { animation: none !important; transform: translateY(calc(var(--i) * -9px)); }
  .demo-tag__label span { animation: none !important; }
  .demo-tag__label span:first-child { opacity: 1; }
}
