/* Valdoria: sistema visual compartido de la web pública y del panel (v4).
   Fantasía épica: obsidiana fría, oro viejo, rojo de la Horda y azul lunar de los elfos.
   Las páginas añaden sus piezas propias en su <style> o en su hoja (portada.css, tienda.css). */
:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-2: #0d0f16;
  --panel: #12141d;
  --panel-2: #191c28;
  --panel-3: #222637;
  --line: #2a2e3f;
  --line-2: #3b4058;
  --line-gold: rgba(214, 165, 72, .34);
  --text: #ece5d6;
  --muted: #a8a195;
  --gold: #d6a548;
  --gold-2: #f6d98f;
  --gold-3: #8c6a2a;
  --orc: #c8442e;
  --orc-2: #ff8a70;
  --elf: #4fb3c2;
  --elf-2: #8fe0ea;
  --ok: #6fcf85;
  --bad: #f07565;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .5);
  --glow: 0 0 0 1px rgba(214, 165, 72, .35), 0 14px 40px rgba(214, 165, 72, .12);
  --gilt: linear-gradient(180deg, #fff3c9 0%, #f6d98f 32%, #d6a548 62%, #9a7430 100%);
  --display: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --title: "Cinzel", Georgia, "Times New Roman", serif;
  --lore: "Crimson Pro", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 100% -8%, rgba(79, 179, 194, .08), transparent 62%) no-repeat,
    radial-gradient(1000px 620px at 0% -4%, rgba(200, 68, 46, .09), transparent 62%) no-repeat;
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grano fino sobre todo el fondo: quita el aspecto de color plano sin pesar nada. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold-2); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--title); font-weight: 700; letter-spacing: .025em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
::selection { background: rgba(214, 165, 72, .35); color: #fff; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.only-sm { display: none; }
.center { text-align: center; }
.gilt { background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #1d1305; font-weight: 700; border-radius: 0 0 8px 8px; transition: top .15s ease; }
.skip:focus { top: 0; text-decoration: none; }
@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .hide-sm { display: none; }
  .only-sm { display: inline; }
}

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 9, 13, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(214, 165, 72, .16);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Filo dorado que se apaga hacia los lados. */
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(246, 217, 143, .6) 22%, rgba(246, 217, 143, .6) 78%, transparent);
  opacity: .55; transition: opacity .3s ease;
}
.top.scrolled { box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.28rem/1 var(--title); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); transition: filter .2s ease; }
.brand:hover { text-decoration: none; filter: brightness(1.15); }
.brand-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 6px rgba(214, 165, 72, .3)); }
.brand > span { background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .05em; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.nav a { color: var(--text); font-size: .93rem; }
.nav-toggle, .top .top-play { display: none; }

/* Menú del sitio (las páginas públicas llevan .has-menu; el panel no, y conserva su fila de enlaces). */
.top.has-menu .nav > a {
  position: relative; padding: 10px 0; color: #d8d1c2;
  font: 600 .76rem/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; transition: color .2s ease;
}
.top.has-menu .nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent); transform: scaleX(0); transition: transform .25s ease;
}
.top.has-menu .nav > a:hover { color: var(--gold-2); text-decoration: none; }
.top.has-menu .nav > a:hover::after, .top.has-menu .nav > a[aria-current]::after { transform: scaleX(1); }
.top.has-menu .nav > a[aria-current] { color: var(--gold-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav-cta .btn[aria-current] { border-color: var(--gold-2); background: rgba(214, 165, 72, .16); }

@media (min-width: 1201px) and (max-width: 1320px) { .nav { gap: 6px 17px; } }

/* Con un héroe a toda pantalla la cabecera flota encima y se vuelve sólida al bajar. */
.has-hero .top { position: fixed; left: 0; right: 0; }
.js .has-hero .top:not(.scrolled):not(.open) {
  background: linear-gradient(180deg, rgba(8, 9, 13, .82), rgba(8, 9, 13, 0));
  -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent;
}
.js .has-hero .top:not(.scrolled):not(.open)::after { opacity: 0; }
html:not(.js) .has-hero .top { position: sticky; }

@media (max-width: 1200px) {
  :root { --header: 60px; }
  .brand { font-size: 1.12rem; letter-spacing: .16em; }
  .brand-mark { width: 26px; height: 26px; }
  .top.has-menu .wrap { flex-wrap: nowrap; }
  .top.has-menu .brand { margin-right: auto; }
  .js .top .top-play { display: inline-flex; }
  .js .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; flex: none;
    background: transparent; border: 0; border-radius: 8px; color: var(--gold-2); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, background .2s ease;
  }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .top.open .nav-toggle span { background: transparent; }
  .top.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .top.open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .js .top.has-menu .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 6px max(24px, calc((100% - 1200px) / 2)) 22px;
    background: #090a0f; border-bottom: 1px solid var(--line-gold); box-shadow: 0 30px 50px rgba(0, 0, 0, .65);
    max-height: calc(100vh - var(--header)); max-height: calc(100dvh - var(--header)); overflow-y: auto;
  }
  .js .top.has-menu:not(.open) .nav { display: none; }
  /* Menú abierto: la barra se vuelve opaca y la página de detrás se apaga. */
  .js .top.has-menu.open { background: #090a0f; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .top.has-menu.open::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(3, 4, 7, .72); pointer-events: none; }
  .js .top.has-menu .nav > a { padding: 15px 4px; font-size: .86rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .js .top.has-menu .nav > a::after { display: none; }
  .js .top.has-menu .nav > a[aria-current] { padding-left: 14px; border-left: 2px solid var(--gold); }
  .js .nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
  .js .nav-cta .btn { min-height: 46px; font-size: .86rem; }
  /* Sin JavaScript no hay botón: los enlaces quedan a la vista en filas bajo la marca. */
  html:not(.js) .top.has-menu .wrap { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .top.has-menu .nav { gap: 2px 16px; }
}
@media (max-width: 640px) {
  .js .top.has-menu .nav { padding-inline: 16px; }
  /* El panel (sin menú): la marca arriba y sus enlaces en una fila que se desplaza de lado si no cabe. */
  .top:not(.has-menu) .wrap { flex-direction: column; align-items: stretch; gap: 2px; padding: 9px 0 8px; min-height: 0; }
  .top:not(.has-menu) .nav { flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .top:not(.has-menu) .nav::-webkit-scrollbar { display: none; }
  .top:not(.has-menu) .nav > * { white-space: nowrap; font-size: .86rem; }
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #262b3d 0%, #171a26 100%); color: var(--text);
  font: 600 .95rem/1.2 var(--body); letter-spacing: .01em; text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease, filter .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--gold); color: var(--gold-2); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 8px 20px rgba(0, 0, 0, .4); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; filter: saturate(.6); box-shadow: none; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { border-color: var(--line-2); color: var(--text); }
.btn.gold {
  background: linear-gradient(180deg, #fde9ae 0%, #e7bb5f 46%, #bb882f 100%); color: #1d1305; border-color: #f4d78e;
  font-family: var(--title); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(96, 60, 10, .35), 0 8px 24px rgba(214, 165, 72, .2);
}
.btn.gold:hover { color: #1d1305; border-color: #fff0c2; filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(96, 60, 10, .35), 0 10px 34px rgba(214, 165, 72, .42); }
.btn.gold:disabled, .btn.gold[aria-disabled="true"] { filter: saturate(.45) brightness(.8); border-color: #c9ae72; color: #1d1305; }
.btn.gold:disabled:hover, .btn.gold[aria-disabled="true"]:hover { border-color: #c9ae72; color: #1d1305; }
.btn.gold:focus-visible { outline-color: #fff; }
.btn.ghost { background: rgba(10, 11, 16, .5); border-color: rgba(246, 217, 143, .42); color: var(--gold-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(214, 165, 72, .12); border-color: var(--gold-2); }
.btn.danger { background: linear-gradient(180deg, #4a1d17, #2f120e); border-color: #7c3227; color: #ffd9d2; }
.btn.danger:hover { border-color: #e06a58; color: #fff; }
.btn.small { min-height: 34px; padding: 6px 13px; font-size: .84rem; }
.btn.gold.small { font-size: .76rem; letter-spacing: .06em; }
.btn.lg { min-height: 56px; padding: 14px 32px; font-size: 1.02rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; cursor: pointer; text-underline-offset: 3px; }
.linklike:hover { text-decoration: underline; }

/* ---------- Etiquetas y estado ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(8, 9, 13, .66); border: 1px solid var(--line-2); font-size: .88rem; line-height: 1.3;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 207, 133, .18), 0 0 12px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.dot.off { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(111, 207, 133, 0), 0 0 12px var(--ok); } }
.race-1 { color: var(--orc-2); }
.race-2 { color: var(--elf-2); }
.tag, .chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; line-height: 1.5; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted);
}
.chip { margin-left: 6px; vertical-align: 1px; }
.tag { color: var(--text); }
.tag.on, .chip.ok { border-color: rgba(111, 207, 133, .5); color: var(--ok); background: rgba(111, 207, 133, .08); }
.tag.ban { border-color: rgba(240, 117, 101, .5); color: #ffa69a; background: rgba(240, 117, 101, .08); }
.chip.gold { border-color: var(--line-gold); color: var(--gold-2); background: rgba(214, 165, 72, .1); }
/* Rareza de los objetos, como en el juego. */
.r-gris { color: #9d9d9d; } .r-comun { color: #f2ecdf; } .r-poco { color: #5fd873; } .r-raro { color: #5b9bff; } .r-epico { color: #c57bff; }
.ico { width: 40px; height: 40px; flex: none; border-radius: 7px; border: 1px solid var(--line-2); background: #05060a; object-fit: contain; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.ico.r-gris { border-color: #5a5a5a; } .ico.r-comun { border-color: #8a8070; } .ico.r-poco { border-color: #3f9a50; } .ico.r-raro { border-color: #3d6fc4; } .ico.r-epico { border-color: #8d45c4; box-shadow: 0 0 10px rgba(141, 69, 196, .35); }
.withico { display: flex; gap: 10px; align-items: flex-start; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; border: 1px solid rgba(255, 255, 255, .25); }

/* ---------- Secciones y encabezados ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
section.alt { background: linear-gradient(180deg, rgba(18, 20, 29, .88), rgba(11, 12, 18, .88)); border-block: 1px solid rgba(255, 255, 255, .05); }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font: 600 .74rem/1.3 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.kicker { letter-spacing: .14em; gap: 0; margin-bottom: 6px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.eyebrow.left::before { display: none; }
.section-head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-size: clamp(1.75rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: .35em; padding-bottom: .04em; }
.section-lead { color: #cfc8b8; font-size: clamp(1rem, 1.5vw, 1.12rem); margin: 0; }
/* Adorno: línea, rombo, línea. */
.orn { display: block; position: relative; width: min(260px, 60%); height: 12px; margin: 14px 0 18px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent) center / 100% 1px no-repeat; opacity: .8; }
.center > .orn, .orn.center { margin-inline: auto; }
.orn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--gold-2); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 10px rgba(246, 217, 143, .5); }
.lore { font: italic 500 1.2rem/1.5 var(--lore); color: #e3dccb; }

.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card, .panel {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0;
}
.card { overflow: hidden; }
.card .body, .panel { padding: 20px 22px; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
/* Marco con esquinas doradas, para las piezas que deben destacar. */
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border: 1px solid var(--gold); opacity: .75; }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.features li { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--gold-3); border-radius: var(--radius-sm); padding: 13px 16px; color: #d6cfc0; font-size: .95rem; }
.features b { color: var(--gold-2); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; min-height: 42px; color: #d6cfc0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center;
  font: 700 1.1rem var(--title); color: var(--gold-2); background: radial-gradient(circle at 50% 30%, #2b3046, #151825);
  border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(214, 165, 72, .08), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.steps li b { color: var(--text); }

/* Cabecera de las páginas interiores: banda con arte del juego muy oscurecido. */
.page-hero { position: relative; isolation: isolate; padding: clamp(22px, 4.4vw, 52px) 0 clamp(18px, 3vw, 36px); overflow: hidden; border-bottom: 1px solid rgba(214, 165, 72, .2); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art, none) center 38% / cover no-repeat; filter: saturate(.75); opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 9, 13, .96) 0%, rgba(8, 9, 13, .78) 48%, rgba(8, 9, 13, .5) 100%), linear-gradient(180deg, transparent 40%, var(--bg) 100%); }
.page-hero h1, .page-hero-title { font: 800 clamp(1.9rem, 5vw, 3.1rem)/1.1 var(--title); letter-spacing: .03em; margin: 0 0 .25em; background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .05em; }
.page-hero .lead { max-width: 720px; margin: 0; color: #d6cfc0; font-size: clamp(.98rem, 1.5vw, 1.1rem); }
.page { padding: clamp(20px, 3.4vw, 36px) 0 clamp(48px, 7vw, 80px); }
@media (max-width: 640px) {
  .page-hero .eyebrow { margin-bottom: 6px; }
  .page-hero .lead { font-size: .94rem; line-height: 1.55; }
}

/* ---------- Formularios ---------- */
form.box, .box {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0;
}
form.box { border-top: 2px solid var(--gold-3); }
label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #c9c2b3; margin: 0 0 7px; }
input[type=text], input[type=password], input[type=search], input[type=email], input[type=number], input[type=url], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: #07080c; color: var(--text); font: 1rem var(--body);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { line-height: 1.55; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #7d7769; }
input:hover, textarea:hover, select:hover { border-color: #565c7a; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 3px rgba(214, 165, 72, .22); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--gold); cursor: pointer; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 400; letter-spacing: 0; margin: 0 0 14px; cursor: pointer; }
.msg { min-height: 1.4em; margin-top: 12px; font-size: .94rem; }
.msg:empty { min-height: 0; margin-top: 0; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.notice, .warn { border: 1px solid var(--line-2); border-left: 3px solid var(--gold-3); background: var(--panel); color: #cfc8b8; border-radius: var(--radius-sm); padding: 12px 16px; }
.warn { border-color: rgba(214, 165, 72, .4); border-left-color: var(--gold); background: rgba(214, 165, 72, .08); color: #f4e2ad; }

/* Pestañas (Mi cuenta, Base de datos). */
.tabs { display: flex; gap: 4px; margin: 16px 0 20px; padding: 4px; overflow-x: auto; scrollbar-width: none; background: #0a0b11; border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #cfc8b8;
  font: 600 .86rem var(--body); letter-spacing: .03em; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tabs button:hover { color: var(--gold-2); }
.tabs button.on { color: #1d1305; background: linear-gradient(180deg, #fde9ae, #d9a84d); border-color: #f4d78e; box-shadow: 0 4px 14px rgba(214, 165, 72, .25); }
@media (max-width: 640px) {
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .tabs button { padding: 9px 4px; font-size: .8rem; white-space: normal; line-height: 1.2; }
}

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
th { color: var(--gold); font: 600 .72rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; background: linear-gradient(180deg, #1e2231, #161926); border-bottom: 1px solid var(--line-gold); }
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: rgba(214, 165, 72, .05); }
tr:last-child td { border-bottom: 0; }

/* ---------- Pie ---------- */
footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer { position: relative; padding: 0; margin-top: clamp(24px, 5vw, 56px); border-top: 1px solid rgba(214, 165, 72, .22); background: linear-gradient(180deg, #0b0c12, #050608); }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; background: var(--bg); border: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.footer-note { margin: 0; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--muted); font-size: .88rem; max-width: 900px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding: 44px 0 34px; }
.footer-brand p { margin: 14px 0 0; max-width: 340px; color: var(--muted); }
.footer-col h4 { margin: 0 0 14px; font: 600 .74rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-col a { display: block; width: fit-content; padding: 5px 0; color: #cfc8b8; font-size: .93rem; }
.footer-col a:hover { color: var(--gold-2); text-decoration: none; }
.footer-legal { margin: 0; padding: 18px 0 30px; border-top: 1px solid rgba(255, 255, 255, .06); color: #8d8779; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; padding: 34px 0 26px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Ventana propia (nunca diálogos del navegador) ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(3, 4, 7, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-back.open { display: flex; animation: fade .18s ease both; }
.modal {
  position: relative; width: min(470px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-gold); border-top: 2px solid var(--gold);
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(214, 165, 72, .08);
}
.modal-back.open .modal { animation: rise .24s cubic-bezier(.2, .7, .2, 1) both; }
.modal h3 { margin-bottom: 12px; font-size: 1.3rem; color: var(--gold-2); }
.modal .actions { justify-content: flex-end; margin-top: 20px; }
.modal .field input[type=checkbox] { width: 18px; }

/* ---------- Movimiento ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
/* Entradas al hacer scroll: solo con JavaScript (valdoria.js añade .in); el estilo propio del elemento vuelve al acabar. */
.js .reveal:not(.in) { opacity: 0; }
.js .reveal.in { animation: rise .75s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--rd, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .reveal:not(.in) { opacity: 1; }
  .btn:hover { transform: none; }
}

/* Web inglesa (C-T7, 0.36.0): el enlace de idioma del menú y del pie, el aviso de la portada española para quien no
   tiene el navegador en español, y la tienda sin precios en /en/ (la web inglesa no vende: Steam). */
/* En el menú es una pastilla corta («EN» / «ES», con title y aria-label con el nombre entero): la palabra entera partía
   la cabecera en dos filas (17-oct). En el menú del móvil se lee el nombre entero, sacado del title. */
.top.has-menu .nav > a.lang-switch { padding: 4px 9px; border: 1px solid var(--line-gold); border-radius: 999px; letter-spacing: .1em; color: var(--gold-2); }
.top.has-menu .nav > a.lang-switch::after { display: none; }
.top.has-menu .nav > a.lang-switch:hover { border-color: var(--gold-2); background: rgba(214, 165, 72, .12); }
@media (min-width: 1201px) { .top.has-menu .nav { flex-wrap: nowrap; } }
@media (min-width: 1201px) and (max-width: 1440px) { .top.has-menu .nav { gap: 6px 16px; } .top.has-menu .nav > a { letter-spacing: .1em; } }
@media (max-width: 1200px) {
  .js .top.has-menu .nav > a.lang-switch { padding: 15px 4px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; background: none; font-size: 0; letter-spacing: 0; }
  .js .top.has-menu .nav > a.lang-switch::before { content: attr(title); font-size: .86rem; letter-spacing: .13em; }
}
.footer-legal a.lang-switch { color: var(--gold-2); }
.aviso-ingles {
  position: fixed; left: 50%; bottom: 18px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100% - 32px); padding: 10px 10px 10px 18px; color: var(--text); font-size: .92rem;
  background: rgba(9, 10, 15, .96); border: 1px solid var(--line-gold); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.aviso-ingles[hidden] { display: none; }
.aviso-cerrar { width: 34px; height: 34px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.aviso-cerrar:hover, .aviso-cerrar:focus-visible { color: var(--gold-2); background: rgba(255, 255, 255, .06); }
@media (max-width: 640px) { .aviso-ingles { left: 16px; right: 16px; width: auto; transform: none; flex-wrap: wrap; } }
.news-older { margin: 4px 0 0; text-align: center; font-size: .92rem; }
html[lang="en"] .paid-price, html[lang="en"] .prod-price-badge { display: none !important; }
