/* =========================================================
   EL RETO — sistema de diseño
   Display: Archivo (transmisión) · Datos: JetBrains Mono · Cuerpo: Inter
   Rojo/verde = estado de juego (eliminado / en pie). Oro = solo dinero.
   ========================================================= */

:root {
  color-scheme: dark;

  /* Superficies */
  --bg:           #0c0d10;
  --bg-grain:     #0f1014;
  --panel:        #15171c;
  --panel-2:      #1c1f26;
  --line:         #2a2e38;
  --line-soft:    #20232b;

  /* Texto */
  --text:         #f3f4f6;
  --muted:        #9aa1ad;
  --faint:        #6b7280;

  /* Estado de juego */
  --red:          #ff3b30;   /* alto / eliminado */
  --red-deep:     #b3241c;
  --green:        #28d17c;   /* avance / en pie */
  --green-deep:   #109a57;
  --amber:        #ffb020;   /* transición / aviso */

  /* Dinero (uso reservado) */
  --gold:         #f7c948;

  /* Forma */
  --r-lg: 14px;
  --r:    10px;
  --r-sm: 6px;

  --maxw: 1200px;
  --pad:  clamp(18px, 4vw, 28px);

  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .8);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(255, 59, 48, .10), transparent 60%),
    radial-gradient(900px 480px at 12% 8%, rgba(40, 209, 124, .07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--text);
  color: #000;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
}

.section-sub {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 26px -14px var(--red);
}
.btn-primary:hover { background: #ff4d43; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-board {
  width: 100%;
  margin-top: 4px;
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--line);
  font-size: 13px;
}
.btn-board:hover { border-color: var(--red); }

.btn-soft {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--line);
  font-size: 13px;
}
.btn-soft:hover { border-color: var(--green); }

/* ---------- Topbar ---------- */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 13, 16, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 70px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .02em;
}
.brand-light {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
  background: #060708;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.brand-light i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2a2e38;
}
.brand-light i:nth-child(1) { background: var(--red);   box-shadow: 0 0 8px var(--red); }
.brand-light i:nth-child(2) { background: var(--amber); opacity: .35; }
.brand-light i:nth-child(3) { background: var(--green); opacity: .35; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:not(.nav-action):hover { color: var(--text); }
.nav-action {
  padding: 9px 16px;
  background: var(--red);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
}
.nav-action:hover { background: #ff4d43; color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* ---------- Layout secciones ---------- */
.hero, .flow, .games, .register, .downloads, .legal, .footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* ============ HERO ============ */
.hero {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .78fr);
  grid-template-areas: "copy board" "arena board";
  align-items: start;
  column-gap: 40px;
  row-gap: 28px;
}
.hero-copy { grid-area: copy; padding-top: 10px; }
.board     { grid-area: board; }
.arena     { grid-area: arena; }

.hero-copy h1 {
  margin: 6px 0 18px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: .92;
}
.hero-copy h1 span { color: var(--green); }
.lead {
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--faint);
}

/* ---- Tablero en vivo ---- */
.board {
  position: sticky;
  top: 88px;
  padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-grain));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.board-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--red); }
.board-round { color: var(--muted); }

.prize {
  display: grid;
  gap: 4px;
  margin: 20px 0 18px;
  padding: 18px;
  background: #0a0b0e;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.prize-label, .prize-rule {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.prize-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 46px);
  color: var(--gold);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.prize-rule { color: var(--faint); margin-top: 2px; }

.survivors { margin-bottom: 16px; }
.survivors-bar {
  height: 10px;
  background: #0a0b0e;
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
}
.survivors-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  transition: width .5s cubic-bezier(.4, 0, .1, 1);
}
.survivors-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.survivors-row strong { color: var(--text); }

.feed {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #0a0b0e;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.feed-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.feed-list { list-style: none; padding: 0; display: grid; gap: 6px; min-height: 66px; }
.feed-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  animation: feedIn .35s ease;
}
.feed-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.feed-list .empty { color: var(--faint); }
.feed-list .empty::before { background: var(--faint); }
@keyframes feedIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.board-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

/* ---- Arena: pista + semáforo ---- */
.arena {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.018) 38px 39px),
    linear-gradient(180deg, #161821, #101218);
}
.arena-label {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 3;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 99px;
  border: 1px solid var(--green-deep);
  color: var(--green);
  background: rgba(40, 209, 124, .08);
  transition: color .25s, border-color .25s, background .25s;
}
.arena[data-light="red"] .arena-label {
  color: var(--red);
  border-color: var(--red-deep);
  background: rgba(255, 59, 48, .10);
}

.track {
  position: relative;
  height: clamp(220px, 30vw, 300px);
}
.track-line {
  position: absolute;
  left: 6%; right: 22%;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}
.finish {
  position: absolute;
  top: 8%; bottom: 8%;
  right: 18%;
  width: 10px;
  background:
    repeating-linear-gradient(45deg, var(--text) 0 6px, #000 6px 12px);
  border-radius: 2px;
  opacity: .85;
}

.runner {
  position: absolute;
  left: 6%;
  width: 18px; height: 30px;
  border-radius: 6px 6px 4px 4px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.7);
  animation: run 7s linear infinite;
  animation-play-state: paused;     /* corre solo en verde */
}
.arena[data-light="green"] .runner { animation-play-state: running; }
.runner.r1 { background: var(--green);  animation-duration: 6.5s; }
.runner.r2 { background: var(--amber);  animation-duration: 7.8s; }
.runner.r3 { background: #4d8dff; animation-duration: 7.2s; }
@keyframes run {
  0%   { left: 6%; }
  100% { left: 70%; }
}

/* Semáforo malvado — sello de marca */
.semaphore {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: clamp(66px, 9vw, 84px);
  padding: 12px 10px 14px;
  background: #070809;
  border: 2px solid #23262f;
  border-radius: 14px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.9);
}
.sem-eyes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sem-eyes i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  transition: background .25s, box-shadow .25s;
}
.arena[data-light="green"] .sem-eyes i {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.sem-lights { display: grid; gap: 9px; justify-items: center; }
.sem-lights span {
  width: clamp(26px, 4vw, 34px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #16181d;
  border: 1px solid #000;
  transition: background .2s, box-shadow .2s, opacity .2s;
  opacity: .4;
}
.arena[data-light="red"]   .sem-red   { background: var(--red);   box-shadow: 0 0 18px var(--red);   opacity: 1; }
.arena[data-light="amber"] .sem-amber { background: var(--amber); box-shadow: 0 0 18px var(--amber); opacity: 1; }
.arena[data-light="green"] .sem-green { background: var(--green); box-shadow: 0 0 18px var(--green); opacity: 1; }

.arena[data-light="amber"] .arena-label {
  color: var(--amber);
  border-color: #8a5e0f;
  background: rgba(255, 176, 32, .10);
}

/* ============ FLUJO ============ */
.flow { padding-top: clamp(52px, 8vw, 84px); padding-bottom: clamp(20px, 4vw, 40px); }
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--green-deep); transform: translateY(-2px); }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============ JUEGOS ============ */
.games { padding-top: clamp(52px, 8vw, 84px); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.game {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, transform .2s;
}
.game:hover { transform: translateY(-3px); }
.game-live { border-color: var(--green-deep); }
.game-art { height: 130px; }
.art-redgreen { background: linear-gradient(120deg, var(--red) 0 33%, var(--amber) 33% 66%, var(--green) 66% 100%); }
.art-reflex   { background: linear-gradient(120deg, #5a32c4, #3d8bfd); }
.art-maze     { background: linear-gradient(120deg, #1f7a4d, var(--gold)); }
.game-body { padding: 18px 20px 22px; }
.game-state {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--faint);
}
.game-state.state-on { color: var(--green); border-color: var(--green-deep); }
.game h3 { font-size: 19px; margin-bottom: 8px; }
.game p { color: var(--muted); font-size: 15px; }

/* ============ REGISTRO ============ */
.register {
  padding-top: clamp(52px, 8vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: 40px;
  align-items: start;
}
.register-copy h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 4px; }
.bullets {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 15px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 0 10px -2px var(--green);
}

.form {
  display: grid;
  gap: 18px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--text);
  background: #0a0b0e;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .18s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus { border-color: var(--green); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--red); }

.field-check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
}
.field-check input { min-height: auto; width: 18px; height: 18px; margin-top: 3px; }
.field-check label {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
}
.field-check .field-error { grid-column: 1 / -1; }

.field-error {
  min-height: 16px;
  font-size: 12.5px;
  color: var(--red);
}

.form-note {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
}
.form-note.ok { color: var(--green); }

/* ============ DESCARGAS ============ */
.downloads { padding-top: clamp(52px, 8vw, 84px); }
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.dl h3 { font-size: 17px; }
.dl p { color: var(--muted); font-size: 14px; flex: 1; }
.dl .btn { margin-top: 6px; }

/* ============ LEGAL ============ */
.legal {
  margin-top: clamp(52px, 8vw, 84px);
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,59,48,.05), transparent);
  border: 1px solid var(--red-deep);
  border-radius: var(--r-lg);
}
.legal-mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
}
.legal-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.legal p { color: var(--muted); font-size: 14.5px; }

/* ============ FOOTER ============ */
.footer {
  margin-top: clamp(40px, 6vw, 64px);
  min-height: 76px;
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-brand { font-weight: 700; color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "board" "arena";
  }
  .board { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .register { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--pad) 18px;
    background: rgba(12, 13, 16, .98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid var(--line-soft); }
  .nav-action { text-align: center; border-bottom: 0; margin-top: 6px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
}

/* ============ BARRA: BILLETERA / USUARIO ============ */
.wallet-chip,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.wallet-chip { color: var(--gold); font-family: var(--font-mono); }
.wallet-chip:hover { border-color: var(--gold); }
.wallet-chip strong { color: var(--gold); }
.user-chip strong { color: var(--text); font-weight: 700; }
.nav-logout {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.nav-logout:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ============ TIENDA / BILLETERA ============ */
.store {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 84px) var(--pad) 0;
}
.store-h {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 8px 0 4px;
}
.store-hint { color: var(--faint); font-size: 13.5px; margin-bottom: 18px; }

/* Resumen de saldo */
.wallet {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 34px;
}
.wallet-card {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.wallet-balance {
  background: linear-gradient(180deg, rgba(247,201,72,.08), var(--panel));
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}
.wallet-k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wallet-card strong {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.wallet-diamonds { color: var(--gold) !important; }
.wallet-eq, .wallet-sub { font-size: 12.5px; color: var(--faint); }

/* Planes */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}
.plan {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--green-deep); }
.plan-feat { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.plan-tag {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1606;
  background: var(--gold);
  border-radius: 99px;
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-dia {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
}
.plan-price { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.plan-buy { margin-top: 4px; }

/* Jugar + retirar */
.play-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 8px;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.panel h3 { font-size: 19px; }
.panel-sub { color: var(--muted); font-size: 14.5px; }
.panel-sub strong { color: var(--text); }
.panel-note {
  min-height: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.panel-note.ok { color: var(--green); }
.panel-note.bad { color: var(--red); }

.withdraw-calc {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: #0a0b0e;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.wc-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.wc-fee { color: var(--red); }
.wc-total {
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--text);
}
.wc-total span:last-child { color: var(--gold); font-weight: 700; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

@media (max-width: 940px) {
  .wallet { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .play-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
}

/* ============ MOVIMIENTO REDUCIDO ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .runner { animation: none; }
}
