/* Páginas de Hoardian fuera de la portada (entrar, mi cuenta, legales): los mismos tokens que
   landing.css. Sin estilos en línea (CSP). */
@import url("/assets/fonts.css");
:root {
  --bg: #08090a; --bg-soft: #0b0c0d; --panel: #0f1011; --layer: #151618;
  --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.2);
  --text: #f7f8f8; --text-2: #d0d6e0; --text-3: #8f949c; --faint: #5c6067;
  --accent: #f2f3f3; --accent-ink: #08090a;
  --gold: #d6a650; --gold-2: #f3cf86;
  --danger: #ff7a7a; --ok: #7ee2a8;
  --radius: 14px; --r-sm: 7px; --r-md: 10px;
  --ease: cubic-bezier(.2,0,0,1); --ease-io: cubic-bezier(.65,0,.35,1);
  --font: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* ---------- cabecera */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(8,9,10,.72); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.015em; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav nav a { text-decoration: none; color: var(--text-3); font-size: 14.5px; }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn-primary, .nav nav a.btn-primary:hover { color: var(--accent-ink); }

/* ---------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md);
  border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(255,255,255,.03); color: var(--text);
  font: inherit; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-out, box-shadow .15s ease-out, color .15s, transform .14s ease-out;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-3); } }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px rgba(0,0,0,.4); }
@media (hover: hover) { .btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.09), 0 10px 30px rgba(0,0,0,.5); } }
.btn-danger { color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255,122,122,.4); }
@media (hover: hover) { .btn-danger:hover { background: rgba(255,122,122,.1); box-shadow: inset 0 0 0 1px var(--danger); } }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- páginas (cuenta, legales) */
.page { padding: 56px 0 96px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 620; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 8px; }
.page .lead { color: var(--text-3); margin: 0 0 32px; text-wrap: pretty; }
.stack { display: grid; gap: 14px; }
.card { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.mt { margin-top: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 14.5px; }
.field .hint { color: var(--text-3); font-size: 14px; margin: 0; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-md); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--bg-soft); color: var(--text); font: inherit; transition: box-shadow .15s; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--text), 0 0 0 4px rgba(243,207,134,.14); }
.input.code { font: 600 26px var(--mono); letter-spacing: 10px; text-align: center; }
.msg { min-height: 22px; margin: 0 0 14px; font-size: 14.5px; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }
.ts { min-height: 65px; margin-bottom: 16px; }

.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 14px 0 8px; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: inherit; transition: width .6s var(--ease); }
.meter.full > span { background: var(--danger); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: 15px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }

dialog { background: var(--panel); color: var(--text); border: 0; box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px rgba(0,0,0,.7); border-radius: var(--radius); padding: 24px; width: min(460px, 100% - 32px); }
dialog[open] { animation: pop .24s var(--ease); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
dialog h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; }
dialog p { color: var(--text-2); margin: 0 0 18px; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }

/* textos legales */
.prose h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--text-2); }
.notice { box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--radius); padding: 14px 18px; color: var(--text-2); background: var(--panel); }

/* ---------- pie */
footer { box-shadow: 0 -1px 0 var(--line); padding: 28px 0 40px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- entrar: formulario a la izquierda, el tesoro a la derecha (como guion-board) */
.is-auth > .nav, .is-auth > footer { display: none; }
.is-auth .page { padding: 0; }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.side { display: flex; flex-direction: column; min-width: 0; padding: 0 32px; }
.top { height: 64px; display: flex; align-items: center; flex: none; }
.form { flex: 1; width: min(380px, 100%); margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.form > * { animation: rise .55s var(--ease) both; }
.form > :nth-child(2) { animation-delay: .06s; } .form > :nth-child(3) { animation-delay: .12s; } .form > :nth-child(n+4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
.head h1 { font-size: 30px; line-height: 1.12; font-weight: 620; letter-spacing: -.035em; margin: 0; }
.head .lead { margin: 10px 0 0; font-size: 15px; color: var(--text-3); line-height: 1.5; }
.form .msg { margin: 0; min-height: 0; }
.form .msg:empty { display: none; }
.btn-google { width: 100%; min-height: 48px; background: var(--accent); color: #1f1f1f; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(0,0,0,.4), 0 10px 30px -10px rgba(0,0,0,.6); font-weight: 550; }
@media (hover: hover) { .btn-google:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.09), 0 12px 32px rgba(0,0,0,.55); } }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 0; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.tabs { display: inline-flex; align-self: flex-start; padding: 3px; gap: 2px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.02); }
.tabs button { border: 0; background: none; color: var(--text-3); font: inherit; font-weight: 500; font-size: 14px; padding: 6px 14px; border-radius: var(--r-sm); cursor: pointer; min-height: 34px; transition: background-color .15s, color .15s; }
.tabs button[aria-selected="true"] { background: rgba(255,255,255,.09); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.fine { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.fine a { color: var(--text-2); text-underline-offset: 3px; }
.side-foot { height: 60px; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12.5px; color: var(--text-3); flex: none; }

.show { position: relative; margin: 8px 8px 8px 0; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; isolation: isolate; }
.show .grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.033) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.033) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%); }
.show .glow { position: absolute; left: 50%; top: -260px; z-index: -1; width: min(900px, 130%); height: 560px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(214,166,80,.15), transparent); animation: breathe 11s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .65; } }
.pitch { position: relative; padding: 11vh 48px 0; max-width: 640px; }
.eye { width: 190px; height: auto; margin: 0 0 30px -6px; overflow: visible; transform-origin: 50% 55%; transition: transform 90ms ease-in; animation: wipe 1.1s var(--ease) .1s both; }
.eye .lids { fill: var(--text); }
.eye .pupil { fill: var(--text); transform-box: fill-box; transform-origin: center; animation: pupilIn .5s var(--ease) .8s both, listen 1.4s var(--ease-io) 1.3s 2; }
.eye.blink { transform: scaleY(.1); }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pupilIn { from { opacity: 0; transform: scale(.4); } }
@keyframes listen { 0%, 100% { transform: none; } 35% { transform: scaleY(.55); } 65% { transform: scaleY(1.12); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.big { margin: 0; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.06; font-weight: 620; letter-spacing: -.04em; text-wrap: balance; }
.big span { color: var(--text-3); }
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.features li { display: flex; flex-direction: column; gap: 2px; padding-left: 20px; position: relative; font-size: 14px; color: var(--text-3); }
.features li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.features strong { font-size: 15px; font-weight: 500; color: var(--text); }
.hoard { position: relative; margin-top: auto; padding: 40px 0 32px; display: flex; flex-direction: column; gap: 12px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.strip { display: flex; gap: 12px; width: max-content; animation: slide 80s linear infinite; }
.strip.b { animation: slideB 95s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes slideB { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tile { position: relative; flex: none; width: 168px; height: 94px; border-radius: var(--r-md); background: #121315; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile span { position: absolute; left: 9px; bottom: 7px; font: 500 10.5px var(--mono); color: var(--faint); }
.tile em { position: absolute; right: 8px; top: 7px; font: 500 9.5px var(--mono); font-style: normal; color: var(--faint); }
.tile.gold { box-shadow: inset 0 0 0 1px rgba(214,166,80,.35); }

/* ---------- tamaños */
@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .show { display: none; }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .side { padding: 0 18px; }
  .form { padding: 24px 0; }
  .head h1 { font-size: 27px; }
  footer nav { margin-left: 0; }
  .page { padding: 40px 0 72px; }
  .card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .strip, .strip.b, .show .glow { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #0d0e10; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
