/* =========================================================
   Cerrajeros Guindalera · estilos
   Mobile-first, sin frameworks ni fuentes externas.
   ========================================================= */

:root {
  /* Paleta tomada del logotipo: azul noche, naranja Las Ventas y blanco roto */
  --bg: #010d17;              /* = fondo del logotipo horizontal */
  --bg-2: #061624;
  --surface: #0c1d2d;
  --surface-2: #12263a;
  --line: #1d3348;
  --text: #f4f0e8;
  --muted: #a9b7c6;
  --accent: #ea8236;          /* naranja de la marca: CTA y detalles clave */
  --accent-hover: #f59b55;
  --accent-shadow: #9c4d12;
  --accent-ink: #1a0d03;
  --ok: #6fe0a8;
  --danger: #ff5b52;
  --radius: 14px;
  --wrap: 1080px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

@media (min-width: 600px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; }

.icon { flex: none; }

.kicker {
  font: 700 .78rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.025em;
}

/* ---------- Cabecera ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 68px; padding-top: 6px; padding-bottom: 6px;
}
.brand { display: block; flex: none; line-height: 0; border-radius: 6px; }
.brand-logo { display: block; height: 56px; width: auto; }
@media (min-width: 600px) { .brand-logo { height: 62px; } }

.header-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 8px 12px;
  border: 2px solid var(--accent); border-radius: 999px;
  color: var(--accent); text-decoration: none;
  font: 800 .95rem/1 var(--mono); white-space: nowrap;
}
.header-call:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 379px) {
  .header-call { padding: 8px; }
  .header-call__number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Botones de llamada ---------- */
.btn-call {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 22px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 900; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--accent-shadow);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-call:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-call:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--accent-shadow); }

.btn-call--xl {
  width: 100%; max-width: 440px;
  min-height: 80px; padding: 14px 22px;
  justify-content: center;
}
.btn-call--xl .icon { width: 30px; height: 30px; }
.btn-call__text { display: flex; flex-direction: column; gap: 4px; }
.btn-call__small {
  font: 800 .76rem/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
}
.btn-call__number {
  font-size: clamp(1.7rem, 8vw, 2.25rem);
  line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 16px;
  border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 700;
}
.btn-ghost .icon { fill: none; stroke: var(--accent); stroke-width: 2; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---------- A · Portada ---------- */
.hero { position: relative; padding: 28px 0 44px; overflow: hidden; }
.hero-inner { display: grid; gap: 28px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1.2 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(234, 130, 54, .25);
}

h1 {
  font-size: clamp(2.45rem, 11.5vw, 5.2rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 16px;
}
h1 span { display: block; color: var(--accent); }

.lead {
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
  max-width: 34ch;
  margin-bottom: 22px;
}
.hero-note {
  margin-top: 16px;
  font: 600 .85rem/1.3 var(--mono);
  color: var(--muted);
}

.hero-badge {
  display: block; width: min(100%, 260px); height: auto;
  margin: 4px auto 0;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .55));
}

@media (min-width: 860px) {
  .hero { padding: 64px 0 84px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero-badge { width: min(100%, 420px); margin: 0 0 0 auto; }
}

/* Borde con forma de dientes de llave entre secciones */
.services, .final { position: relative; }
.services::before, .final::before {
  content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='14' viewBox='0 0 64 14'%3E%3Cpath d='M0 14V8h10l6-8h10l5 6h9l7-5h9l8 7v6z' fill='%23061624'/%3E%3C/svg%3E") repeat-x left bottom / 64px 14px;
}

/* ---------- B · Servicios ---------- */
.services { background: var(--bg-2); padding: 44px 0 48px; }
.services h2 { margin-bottom: 24px; }

.service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0 32px;
  border-bottom: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "icon num" "icon title" "icon text";
  column-gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.service-icon {
  grid-area: icon; width: 44px; height: 44px;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-num { grid-area: num; font: 700 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .12em; margin-bottom: 6px; }
.service h3 { grid-area: title; font-size: 1.18rem; font-weight: 800; margin-bottom: 6px; }
.service p { grid-area: text; color: var(--muted); }

@media (min-width: 760px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service:nth-last-child(-n + 2) { border-bottom: 0; }
}

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin-top: 28px;
}
.cta-row p { font-weight: 700; }

/* ---------- C · Juego: introducción ---------- */
.play { padding: 52px 0 56px; }
.play h2 { margin-bottom: 16px; }
.play-intro { display: grid; gap: 12px; color: var(--muted); font-size: 1.02rem; }
.play-intro p:first-child { color: var(--text); }

.game-nojs {
  margin-top: 20px; padding: 16px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.js .game-nojs { display: none; }
.no-js .game { display: none; }

.game-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin-top: 22px;
}
.game-cta p { font-weight: 700; flex: 1 1 220px; }

/* ---------- D · Juego ---------- */
.game {
  --tier-color: var(--accent);
  margin-top: 24px;
  padding: 10px;
  background: #000811;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; margin: 0;
}
.stats div { background: var(--surface); border-radius: 10px; padding: 8px 4px 7px; text-align: center; min-width: 0; }
.stats dt { font: 700 .6rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd {
  margin: 5px 0 0;
  font: 800 clamp(.92rem, 4.2vw, 1.15rem)/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hud-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 10px 2px;
}
.tier-chip {
  font: 800 .64rem/1.2 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 6px;
  color: var(--tier-color);
  border: 1px solid currentColor;
  min-width: 0;
}
.durability {
  display: flex; align-items: center; gap: 7px;
  flex: 1 1 auto; justify-content: flex-end;
  max-width: 230px;
  font: 700 .7rem/1 var(--mono); color: var(--muted);
}
.meter {
  position: relative; flex: 1 1 auto; min-width: 48px; height: 10px;
  border-radius: 5px; background: #1a2c3d; overflow: hidden;
}
.meter-fill {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: var(--ok); border-radius: 5px;
}
.meter-text { min-width: 7ch; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
[data-dur="low"] .meter-fill { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, #b85f1c 6px 12px); }
[data-dur="critical"] .meter-fill { background: repeating-linear-gradient(135deg, var(--danger) 0 4px, #a8302a 4px 8px); }
[data-dur="critical"] .meter-text { color: var(--danger); }

.scene {
  position: relative;
  aspect-ratio: 400 / 360;
  border-radius: 12px;
  overflow: hidden;
  background: #08131d;
  isolation: isolate;
}
.lock-svg {
  width: 100%; height: 100%;
  touch-action: pan-y;               /* el arrastre horizontal mueve la ganzúa; el vertical sigue desplazando la página */
  cursor: ew-resize;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lock-svg:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 12px; }
.is-dragging .lock-svg { cursor: grabbing; }

/* Capas del SVG */
.guide-arc { fill: none; stroke: #fff; stroke-opacity: .2; stroke-width: 2; stroke-dasharray: 3 6; }
.guide-ticks { stroke: #fff; stroke-opacity: .26; stroke-width: 2; }
.wrench-shadow { fill: none; stroke: #05070a; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.wrench { fill: none; stroke: #c9d1d9; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.pick-shadow { fill: none; stroke: #05070a; stroke-width: 7.5; stroke-linecap: round; }
.pick-rod { fill: none; stroke: #e3e8ed; stroke-width: 3.4; stroke-linecap: round; }
.pick-handle { fill: var(--accent); stroke: #05070a; stroke-width: 2.5; }
.pick-grip { stroke: #05070a; stroke-opacity: .55; stroke-width: 2; }
.pick-crack { fill: none; stroke: var(--danger); stroke-width: 2.4; stroke-linejoin: round; opacity: 0; }
.pick-cracked .pick-crack { opacity: 1; }
.pick-rest { transform-box: fill-box; transform-origin: 50% 100%; }
.pick-broken .pick-rest { animation: pick-fall .7s ease-in forwards; }
.pick-broken .pick-crack { opacity: 0; }

.bolts { transition: transform .45s cubic-bezier(.3, 1.35, .5, 1) .12s; }
.lock-svg.is-open .bolts { transform: translateX(var(--slide, -60px)); }
.lug { transition: transform .5s cubic-bezier(.3, 1.35, .5, 1) .12s; }
.lock-svg.is-open .lug { transform: translateY(28px); }

.shell, .spin-slow, .spin-rev, .burst { transform-box: view-box; transform-origin: 200px 200px; }
.shell.is-bumped { animation: bump .5s ease-out; }
.spin-slow { animation: spin 48s linear infinite; }
.spin-rev { animation: spin 70s linear infinite reverse; }
.led-soft { animation: breathe 3.2s ease-in-out infinite; }
.screen-open { display: none; }
.lock-svg.is-open .screen-open { display: inline; }
.lock-svg.is-open .screen-locked { display: none; }
.lock-svg.is-open .led-state { fill: var(--ok); }
.lock-svg.is-open .vault-ring { stroke: var(--ok); }
.burst { fill: none; stroke: var(--accent); stroke-width: 4; opacity: 0; }
.lock-svg.is-open .burst { animation: burst .7s ease-out; }
.is-offscreen .lock-svg * { animation-play-state: paused; }

/* Paneles superpuestos */
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center;
  background: rgba(7, 10, 13, .74);
}
.overlay[hidden] { display: none; }
.overlay-title { font-size: clamp(1.4rem, 6vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; }
.overlay-hint { font: 700 .78rem/1.35 var(--mono); color: var(--muted); max-width: 30ch; }
.overlay--broken .overlay-title { color: var(--danger); }

.btn-start {
  min-height: 52px; padding: 12px 26px; margin-top: 4px;
  border: 0; border-radius: 12px;
  background: var(--text); color: var(--bg);
  font: 900 1.05rem/1 var(--font); letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 0 #8f99a3;
}
.btn-start:hover { background: #fff; }
.btn-start:active { transform: translateY(2px); box-shadow: 0 2px 0 #8f99a3; }

.pop {
  position: absolute; left: 50%; top: 16%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; opacity: 0; text-align: center; width: 92%;
}
.pop strong { font: 900 clamp(2.2rem, 11vw, 3.2rem)/1 var(--font); color: var(--accent); text-shadow: 0 3px 0 #000; }
.pop small {
  font: 700 .7rem/1.35 var(--mono); color: var(--text);
  background: rgba(0, 0, 0, .72); padding: 5px 8px; border-radius: 6px;
}
.pop.is-show { animation: pop-up 1.45s ease-out forwards; }

.banner {
  position: absolute; top: 10px; left: 50%;
  transform: translate(-50%, -150%);
  padding: 6px 12px; border-radius: 6px;
  background: var(--tier-color); color: #0b0d10;
  font: 800 .66rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none; opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.banner.is-show { transform: translate(-50%, 0); opacity: 1; }

.bull-layer {
  position: absolute; left: 0; bottom: 24%;
  width: 34%; pointer-events: none;
  opacity: 0; transform: translateX(-110%);
}
.bull-layer svg { width: 100%; height: auto; }
.bull-layer.is-charging { animation: charge 1.5s cubic-bezier(.45, 0, .6, 1) forwards; }
.bull-layer.is-charging .bull-bob { animation: bob .2s ease-in-out infinite alternate; }
.bull-layer.is-charging .bull-dust { animation: dust .4s ease-out infinite; }
.bull-dust { transform-box: fill-box; transform-origin: 100% 50%; }

.toast {
  position: absolute; left: 50%; bottom: 10px;
  transform: translateX(-50%) rotate(-1.5deg);
  display: flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 20px);
  padding: 6px 6px 6px 8px;
  background: var(--text); color: #121417;
  border: 3px solid #121417; border-radius: 12px;
  box-shadow: 4px 4px 0 var(--accent);
  font: 900 .82rem/1.15 var(--font); text-transform: uppercase; letter-spacing: .01em;
}
.toast[hidden] { display: none; }
.toast-bull { width: 46px; flex: none; }
.toast-bull svg { width: 100%; height: auto; }
.toast-text { flex: 1 1 auto; }
.toast-close {
  flex: none; width: 32px; height: 32px;
  border: 0; border-radius: 8px;
  background: rgba(0, 0, 0, .1); color: #121417;
  font: 700 1.2rem/1 var(--font); cursor: pointer;
}

.game-status {
  min-height: 2.9em;
  margin: 10px 4px 0;
  font: 700 .86rem/1.4 var(--mono);
  color: var(--text);
}
[data-feedback="hot"] .game-status { color: var(--accent); }
[data-feedback="cold"] .game-status { color: #9fc4ff; }

.btn-turn {
  display: block; width: 100%;
  margin-top: 8px; min-height: 76px; padding: 12px;
  border: 0; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font: 900 1.6rem/1 var(--font); letter-spacing: .2em;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 0 #8f99a3;
  transition: transform .06s ease, box-shadow .06s ease, background-color .12s ease;
}
.btn-turn small {
  display: block; margin-top: 6px;
  font: 700 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  opacity: .7;
}
.touch-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .kbd-hint { display: none; }
  .touch-hint { display: inline; }
}
.is-turning .btn-turn { transform: translateY(5px); box-shadow: 0 1px 0 #8f99a3; background: var(--accent); }
.is-straining .btn-turn { background: #ffb3a8; }
.btn-turn[aria-disabled="true"] { opacity: .45; cursor: default; }

.game-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-tool {
  flex: 1 1 auto; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: 700 .82rem/1 var(--mono); cursor: pointer;
}
.btn-tool:hover { border-color: var(--muted); }
.btn-tool[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.howto { margin-top: 10px; border-radius: 10px; background: var(--surface); }
.howto summary {
  cursor: pointer; padding: 12px 14px; min-height: 44px;
  font: 700 .86rem/1.3 var(--mono);
  list-style-position: inside;
}
.howto ol { margin: 0; padding: 0 16px 0 34px; display: grid; gap: 8px; font-size: .95rem; color: var(--muted); }
.howto ol strong { color: var(--text); }
.howto p { padding: 12px 16px 16px; font-size: .85rem; color: var(--muted); }

/* ---------- E · Final ---------- */
.final { background: var(--bg-2); padding: 52px 0 56px; }
.final-inner { display: grid; gap: 36px; }
.final h2 { margin-bottom: 10px; }
.final-call p { color: var(--muted); margin-bottom: 22px; font-size: 1.08rem; }
.location { border-top: 1px solid var(--line); padding-top: 24px; }
.location h3 { font-size: 1.15rem; margin-bottom: 6px; }
.location p { color: var(--muted); margin-bottom: 14px; }
@media (min-width: 860px) {
  .final-inner { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .location { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 32px; }
}

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.footer-badge { width: 48px; height: 48px; flex: none; }
.footer-inner a { font-weight: 700; }
.footer-small { flex-basis: 100%; font-size: .8rem; }

/* ---------- Barra fija de llamada (móvil) ---------- */
.callbar { display: none; }
@media (max-width: 759px) {
  .callbar {
    position: fixed; z-index: 50;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--accent); color: var(--accent-ink);
    font-weight: 900; font-size: 1.1rem; text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 4px 0 var(--accent-shadow);
  }
  .callbar:hover { color: var(--accent-ink); }
  .no-js body { padding-bottom: 84px; }
  .js .callbar {
    transform: translateY(160%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .js .callbar.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
  .js.cookies-open .callbar.is-visible { transform: translateY(160%); visibility: hidden; }
}

/* ---------- TOP del juego (estilo recreativa) ---------- */
.world {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 8px; padding: 8px 10px;
  background: linear-gradient(90deg, rgba(234, 130, 54, .2), rgba(234, 130, 54, .04));
  border: 1px solid rgba(234, 130, 54, .45); border-radius: 10px;
}
.world[hidden], .world-note[hidden], .initials[hidden], .top10[hidden], .overlay-world[hidden], .toast-bull[hidden] { display: none; }
.world-record { display: flex; align-items: center; gap: 8px; font: 700 .78rem/1.25 var(--mono); text-transform: uppercase; letter-spacing: .04em; min-width: 0; }
.world-record .icon { color: var(--accent); }
.world-record strong { color: var(--accent); font-size: 1rem; font-variant-numeric: tabular-nums; }
.world-link { flex: none; padding: 6px 0; font: 700 .74rem/1 var(--mono); white-space: nowrap; }
.world-note { margin: 0 0 8px; font: 600 .74rem/1.35 var(--mono); color: var(--muted); }

.initials {
  margin: 0 0 10px; padding: 10px;
  background: var(--surface-2); border: 2px dashed var(--accent); border-radius: 10px;
}
.initials label { display: block; font: 800 .86rem/1.3 var(--mono); color: var(--text); margin-bottom: 8px; }
.initials-row { display: flex; gap: 8px; }
.initials input {
  width: 6.2em; min-height: 44px; padding: 6px 10px;
  background: #000811; color: var(--accent);
  border: 2px solid var(--line); border-radius: 8px;
  font: 900 1.4rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase;
}
.initials input:focus-visible { border-color: var(--accent); outline-offset: 2px; }
.initials .btn-tool { flex: 0 0 auto; }
.initials-help { margin-top: 6px; font: 600 .72rem/1.3 var(--mono); color: var(--muted); }

.overlay-world { font: 800 .74rem/1.3 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

.top10 {
  margin-top: 12px; padding: 12px 12px 10px;
  background: #000811; border: 2px solid var(--line); border-radius: 12px;
}
.top10 h3 {
  margin-bottom: 10px; text-align: center;
  font: 900 1.05rem/1 var(--mono); letter-spacing: .3em; color: var(--accent);
}
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 18px; }
@media (min-width: 480px) { .top-list { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); } }
.top-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 5px 4px; border-bottom: 1px dotted var(--line);
  font: 700 .9rem/1.2 var(--mono); font-variant-numeric: tabular-nums;
}
.top-pos { width: 2.4em; color: var(--muted); }
.top-ini { letter-spacing: .2em; color: var(--text); }
.top-pts { margin-left: auto; color: var(--text); }
.top-row:nth-child(1) .top-pos, .top-row:nth-child(1) .top-ini, .top-row:nth-child(1) .top-pts { color: var(--accent); }
.top-row.is-empty span { color: #3b5269; }
.top-row.is-me { background: rgba(234, 130, 54, .16); border-radius: 6px; }
.top-me { font-size: .66rem; padding: 2px 5px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); letter-spacing: .08em; }
.top-note { margin-top: 8px; font: 600 .68rem/1.3 var(--mono); color: var(--muted); text-align: center; }

/* ---------- Opiniones ---------- */
.reviews { background: var(--bg-2); padding: 0 0 52px; }
.reviews .wrap > .kicker { padding-top: 40px; border-top: 1px solid var(--line); }
.reviews h2 { margin-bottom: 22px; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 18px 18px 16px 52px;
  background: var(--surface);
  border-radius: var(--radius);
}
.review::before {
  content: "\201C"; content: "\201C" / "";
  position: absolute; left: 14px; top: 6px;
  font: 900 3rem/1 Georgia, "Times New Roman", serif;
  color: var(--accent);
}
.review blockquote { margin: 0; font-size: 1.02rem; }
.review-author { font: 700 .78rem/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.reviews-more { margin-top: 20px; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-2); color: var(--text);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
  font-size: .88rem; line-height: 1.4;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 10px; }
.cookie-banner .cookie-title { margin-bottom: 2px; font-weight: 900; font-size: 1rem; }
.cookie-actions { display: flex; gap: 10px; }
/* Aceptar y Rechazar con el mismo aspecto: ninguna opción se esconde */
.cookie-btn {
  flex: 1 1 0; min-height: 44px; padding: 10px 14px;
  border: 2px solid var(--text); border-radius: 10px;
  background: var(--text); color: var(--bg);
  font: 800 .95rem/1 var(--font); cursor: pointer;
}
.cookie-btn:hover { background: #fff; border-color: #fff; }
@media (min-width: 760px) {
  .cookie-banner {
    left: auto; right: 20px; bottom: 20px; width: 420px;
    padding: 18px; border: 1px solid var(--line); border-top: 2px solid var(--accent);
    border-radius: var(--radius);
  }
}

/* ---------- Páginas legales ---------- */
.footer-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .85rem; }
.footer-legal a { display: inline-block; padding: 4px 0; color: var(--muted); font-weight: 600; }
.footer-legal a:hover { color: var(--text); }

.legal { padding: 36px 0 56px; }
.legal .back { display: inline-block; margin-bottom: 18px; font: 700 .85rem/1.2 var(--mono); }
.legal h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1; margin-bottom: 10px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); max-width: 72ch; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal strong { color: var(--text); }
.legal-data { display: grid; gap: 2px 16px; margin: 14px 0 0; }
.legal-data dt { color: var(--text); font-weight: 700; }
.legal-data dd { margin: 0 0 8px; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 560px) {
  .legal-data { grid-template-columns: max-content 1fr; }
  .legal-data dd { margin: 0; }
}
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); background: var(--surface); }
.legal td { color: var(--muted); }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-family: var(--mono); font-size: .85em; color: var(--text); overflow-wrap: anywhere; }
.legal-updated { margin-top: 36px; font: .8rem/1.3 var(--mono); }
button.btn-ghost { background: none; font: 700 1rem/1.2 var(--font); cursor: pointer; margin-top: 6px; }
.no-js .js-only { display: none; }
.js .nojs-only { display: none; }

/* ---------- Animaciones ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes burst { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes bump {
  0% { transform: none; }
  25% { transform: translate(7px, -3px) rotate(3deg); }
  55% { transform: translate(-4px, 1px) rotate(-2deg); }
  100% { transform: none; }
}
@keyframes pick-fall { to { transform: translate(14px, 150px) rotate(80deg); opacity: 0; } }
@keyframes pop-up {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(.8); }
  14% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  24% { transform: translate(-50%, 0) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -16px); }
}
@keyframes pop-fade { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes charge {
  0% { opacity: 1; transform: translateX(-110%); }
  100% { opacity: 1; transform: translateX(300%); }
}
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes dust { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(1.4); } }

/* Movimiento reducido: el juego sigue siendo jugable, sin sacudidas ni carreras */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-call, .btn-turn, .callbar, .js .callbar, .js .callbar.is-visible, .banner, .bolts, .lug { transition: none; }
  .spin-slow, .spin-rev, .led-soft, .shell.is-bumped, .lock-svg.is-open .burst { animation: none; }
  .pick-broken .pick-rest { animation: none; opacity: 0; }
  .pop.is-show { animation: pop-fade 1.45s linear forwards; }
  .banner { transform: translate(-50%, 0); }
  .toast { transform: translateX(-50%); }
}
