/* 8 Ball Stakes · web — lo común: fuentes, tokens y piezas del sistema de los menús del juego
   (client/css/base.css, secciones 1 y 4) adaptadas a una página que se desplaza. */

/* ---- Fuentes (auto-alojadas, OFL: fuentes/LICENCIAS.txt) ---- */
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('../fuentes/montserrat-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('../fuentes/montserrat-latin-700-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('../fuentes/montserrat-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url('../fuentes/montserrat-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('../fuentes/montserrat-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('../fuentes/montserrat-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('../fuentes/montserrat-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url('../fuentes/montserrat-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fuentes/barlow-condensed-latin-700-italic.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fuentes/barlow-condensed-latin-800-italic.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fuentes/barlow-condensed-latin-ext-700-italic.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fuentes/barlow-condensed-latin-ext-800-italic.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Tokens (los de base.css) ---- */
:root {
  --bg-0: #040b1c; --bg-1: #061430; --bg-2: #0a2250; --bg-3: #10306c; --ink: #04112b; --navy: #061a45;
  --sf-top: #153a7a; --sf-mid: #0e2a5c; --sf-bot: #0a1f47;
  --sf-line: rgba(126,174,255,.26); --sf-hi: rgba(255,255,255,.13);
  --well-top: #030b1f; --well-bot: #071736; --well-line: rgba(126,174,255,.20);
  --hair: rgba(126,174,255,.12);
  --tx-1: #ffffff; --tx-2: #c3d5f4; --tx-3: #8ba7d8; --tx-4: #5e79a8;
  --gold: #ffc81f; --gold-1: #fff3c4; --gold-2: #ffd34d; --gold-3: #e7a412; --gold-4: #955c06; --gold-ink: #3a2204;
  --gold-frame: linear-gradient(160deg, #fff4c8 0%, #f2bb3c 22%, #9a6208 46%, #f7d46e 70%, #8a5306 100%);
  --silver-frame: linear-gradient(160deg, #ffffff 0%, #c9d4e4 24%, #5b6a82 48%, #e6edf6 72%, #465469 100%);
  --bronze-frame: linear-gradient(160deg, #ffe4bd 0%, #d08a4c 24%, #6a3a14 48%, #efb27a 72%, #4f280e 100%);
  --c-cyan: #52d4ff; --c-green: #4cc424; --c-green-hi: #8ff06a; --c-red: #ec3b2c; --c-purple: #8a45e8; --c-pink: #ff4fd8; --c-orange: #ff9a3a;
  --r-comun: #9fb3c8; --r-raro: #4aa3ff; --r-epico: #b36bff; --r-legendario: #ff9a2e; --r-victoria: #3fd46b; --r-pase: #ff4fd8;
  --f-disp: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --f-ui: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sh-card: 0 10px 22px -10px rgba(0,0,0,.75), 0 2px 4px rgba(0,0,0,.25);
  --sh-pop: 0 18px 40px -12px rgba(0,0,0,.8);
  --ancho: 1200px;
  color-scheme: dark;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  background: var(--bg-1); color: var(--tx-1);
  font: 600 16px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .contenedor { padding: 0 32px; } }

/* Fondo de los menús: marino con foco cenital y trama de paño */
.fondo-menu {
  background:
    radial-gradient(ellipse 58% 62% at 50% -8%, rgba(72,142,255,.30), rgba(72,142,255,0) 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, rgba(255,255,255,0) 1px 7px),
    linear-gradient(180deg, #0c2758 0%, #081c43 48%, #051331 100%);
}
/* Rayos del icono y de la ficha de la tienda */
.rayos {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--rayo, rgba(160,200,255,.10)) 0 6deg, rgba(0,0,0,0) 6deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 64%); mask-image: radial-gradient(circle, #000 0 18%, transparent 64%);
}

/* ---- Tipografía ---- */
.ty-disp { font-family: var(--f-disp); font-style: italic; font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: .4px; text-shadow: 0 2px 0 rgba(0,8,30,.55); }
.ty-num { font-family: var(--f-disp); font-style: italic; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ty-over { font: 800 12px/1 var(--f-ui); letter-spacing: 1.6px; text-transform: uppercase; color: var(--tx-3); }
/* Oro en el texto, como .gold-t del juego (caída con drop-shadow, nunca text-shadow) */
.oro-t {
  background: linear-gradient(180deg, #fff8d8 0%, #ffe07a 45%, #f2b126 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 0 rgba(70,36,0,.75));
}
/* El rótulo de las tiendas (scripts/icons/compose.js): Montserrat 900, oro con contorno marino */
/* Dos capas: el elemento pinta el contorno y ::after (data-t="…", el mismo texto) el oro encima. */
.rotulo-tienda {
  position: relative; display: inline-block;
  font: 900 1em/1 var(--f-ui); letter-spacing: .01em; text-transform: uppercase;
  color: var(--navy); -webkit-text-stroke: .14em var(--navy);
  filter: drop-shadow(0 .04em 0 var(--navy)) drop-shadow(0 .1em .16em rgba(0,0,0,.45));
}
.rotulo-tienda::after {
  content: attr(data-t); position: absolute; left: 0; top: 0; -webkit-text-stroke: 0;
  background: linear-gradient(180deg, #fff6c0 0%, #ffc81f 55%, #d88a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
/* El rótulo de la app (#boot): Barlow Condensed 800 en cursiva, oro */
.rotulo-app { font-family: var(--f-disp); font-style: italic; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }

/* ---- Botones 3D (.btn del juego: .g gratis, .y amarillo, .b azul) ---- */
.btn {
  --c1: #a6f56a; --c2: #4cc424; --c3: #2c9612; --edge: #1b5e08;
  position: relative; isolation: isolate; border: 0; height: 48px; padding: 0 26px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; text-decoration: none;
  font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: .7px; text-transform: uppercase; color: #fff;
  text-shadow: 1px 0 0 var(--edge), -1px 0 0 var(--edge), 0 1px 0 var(--edge), 0 -1px 0 var(--edge), 1px 1px 0 var(--edge), -1px 1px 0 var(--edge), 1px -1px 0 var(--edge), -1px -1px 0 var(--edge), 0 2.5px 0 var(--edge);
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.14), 0 0 0 1px var(--edge), 0 4px 0 var(--edge), 0 8px 14px rgba(0,0,0,.4);
  transition: transform .12s ease, filter .12s ease;
}
.btn::before {
  content: ''; position: absolute; left: 4px; right: 4px; top: 2px; height: 44%; border-radius: 9px 9px 14px 14px / 9px 9px 6px 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.06)); pointer-events: none; z-index: -1;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), 0 0 0 1px var(--edge), 0 1px 0 var(--edge), 0 3px 6px rgba(0,0,0,.4); }
.btn.g { --c1: #a6f56a; --c2: #4cc424; --c3: #2c9612; --edge: #1b5e08; }
.btn.y { --c1: #ffeb8a; --c2: #ffc21a; --c3: #f09600; --edge: #8a4300; }
.btn.b { --c1: #7cc4ff; --c2: #2f86ec; --c3: #1a5ccc; --edge: #0b3486; }
.btn.p { --c1: #d09aff; --c2: #8a45e8; --c3: #6224c2; --edge: #33107a; }
.btn.xl { height: 60px; padding: 0 34px; font-size: 30px; border-radius: 14px; }
.btn.s { height: 36px; padding: 0 16px; font-size: 19px; border-radius: 10px; box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), 0 0 0 1px var(--edge), 0 3px 0 var(--edge), 0 6px 10px rgba(0,0,0,.35); }
.btn svg { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 1px 0 var(--edge)); }
/* Botón de tienda (genérico, sin insignias oficiales hasta que las apps estén publicadas) */
.tienda {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(180deg, #0a1d44, #04102a); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(160,200,255,.32), inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.35);
}
.tienda svg { width: 24px; height: 24px; flex: none; }
.tienda span { display: flex; flex-direction: column; line-height: 1.1; }
.tienda small { font: 700 10px/1.1 var(--f-ui); color: var(--tx-3); letter-spacing: .6px; text-transform: uppercase; }
.tienda b { font: 800 16px/1.15 var(--f-ui); }

/* ---- Paneles ---- */
.pnl {
  position: relative; border-radius: 16px; padding: 20px;
  background: linear-gradient(180deg, var(--sf-top) 0%, var(--sf-mid) 52%, var(--sf-bot) 100%);
  box-shadow: inset 0 0 0 1px var(--sf-line), inset 0 1px 0 var(--sf-hi), var(--sh-card);
}
.pnl.oro, .pnl.plata, .pnl.bronce {
  border: 2px solid transparent;
  background: linear-gradient(180deg, #14397a 0%, #0c2656 55%, #081c44 100%) padding-box, var(--gold-frame) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 26px rgba(255,186,50,.16), var(--sh-card);
}
.pnl.plata { background: linear-gradient(180deg, #14397a 0%, #0c2656 55%, #081c44 100%) padding-box, var(--silver-frame) border-box; box-shadow: 0 0 0 1px rgba(0,0,0,.55), var(--sh-card); }
.pnl.bronce { background: linear-gradient(180deg, #14397a 0%, #0c2656 55%, #081c44 100%) padding-box, var(--bronze-frame) border-box; box-shadow: 0 0 0 1px rgba(0,0,0,.55), var(--sh-card); }
.pnl.pase {
  background: radial-gradient(ellipse 90% 60% at 80% 110%, rgba(255,79,216,.45), rgba(255,79,216,0) 70%), linear-gradient(160deg, #6a2ad0 0%, #3b138c 58%, #22095a 100%);
  box-shadow: inset 0 0 0 1px rgba(255,150,255,.38), inset 0 1px 0 rgba(255,255,255,.22), var(--sh-card);
}
.pozo {
  border-radius: 12px; background: linear-gradient(180deg, var(--well-top), var(--well-bot));
  box-shadow: inset 0 2px 6px rgba(0,0,0,.65), inset 0 0 0 1px var(--well-line), 0 1px 0 rgba(255,255,255,.05);
}
/* Chip como el monedero del juego: icono que asoma por la izquierda + cifra */
.chip {
  position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 14px 0 34px; border-radius: 16px; white-space: nowrap;
  background: linear-gradient(180deg, #030a1d, #0a1c42);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.7), inset 0 0 0 1px var(--well-line), 0 1px 0 rgba(255,255,255,.05);
}
.chip > img, .chip > .punto { position: absolute; left: -6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.chip > .punto { left: 12px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--c-green-hi); box-shadow: 0 0 0 3px rgba(143,240,106,.2), 0 0 10px var(--c-green-hi); filter: none; }
.chip .v { font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.chip .l { margin-left: 7px; font: 700 12px/1 var(--f-ui); color: var(--tx-3); }

/* Rareza */
.rareza { display: inline-block; padding: 3px 8px 2px; border-radius: 6px; font: 800 11px/1.2 var(--f-ui); letter-spacing: .8px; text-transform: uppercase; color: #06122c; background: var(--rc, var(--r-comun)); }
/* Barras de características (como las del taco en el juego) */
.stats { display: grid; gap: 7px; }
.stat { display: grid; grid-template-columns: 74px 1fr 20px; align-items: center; gap: 10px; font: 700 12px/1 var(--f-ui); color: var(--tx-2); letter-spacing: .4px; text-transform: uppercase; }
.stat .barra { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; height: 9px; }
.stat .barra i { border-radius: 2px; background: rgba(126,174,255,.14); }
.stat .barra i.on { background: linear-gradient(180deg, #ffe680, #f2b126); box-shadow: 0 0 6px rgba(255,200,40,.35); }
.stat b { font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 17px; text-align: right; color: #fff; }

/* Avatar: bola sobre su color con marco de oro (como .avf del juego) */
.avatar { position: relative; flex: none; width: 40px; height: 40px; border-radius: 11px; padding: 2px; background: var(--gold-frame); box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.avatar i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9px; background: radial-gradient(circle at 50% 35%, var(--av1, #2a6ad8), var(--av2, #123a88)); }
.avatar img { width: 72%; height: 72%; }
.bandera { display: inline-block; flex: none; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); vertical-align: middle; }

/* Marco de móvil en horizontal para las capturas del juego */
.movil {
  position: relative; border-radius: 34px; padding: 12px 22px; aspect-ratio: 1688 / 780;
  background: linear-gradient(160deg, #3a4660, #0b1222 40%, #1a2234 70%, #050913);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 0 0 7px #05080f, 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.7);
}
.movil::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 46px; margin-top: -23px; border-radius: 3px; background: #05080f; } /* cámara */
.movil img, .movil .pantalla { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
@media (max-width: 560px) { .movil { border-radius: 22px; padding: 7px 13px; } .movil img { border-radius: 12px; } .movil::before { left: 4px; width: 4px; height: 28px; margin-top: -14px; } }

/* Formulario */
.campo { display: flex; gap: 10px; flex-wrap: wrap; }
.campo input[type=email] {
  flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 12px; color: #fff; font: 700 16px var(--f-ui);
  background: linear-gradient(180deg, var(--well-top), var(--well-bot));
  box-shadow: inset 0 2px 6px rgba(0,0,0,.65), inset 0 0 0 1px var(--well-line);
}
.campo input::placeholder { color: var(--tx-4); }
.casilla { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font: 600 13px/1.45 var(--f-ui); color: var(--tx-3); }
.casilla input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-green); }
.casilla a { color: var(--tx-2); }
.aviso-ok { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font: 700 14px/1.4 var(--f-ui); color: #eaffdf; background: rgba(76,196,36,.16); box-shadow: inset 0 0 0 1px rgba(143,240,106,.35); }
.aviso-ok.ver { display: block; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
