:root {
  --bg: #08090B;
  --panel: rgba(10, 14, 20, 0.92);
  --panel-2: rgba(18, 24, 31, 0.9);
  --mint: #34e5b0;
  --alert: #ff3b3b;
  --amber: #ffc24d;
  --silver: #c9d1db;
  --text: #eaf6f2;
  --muted: #8aa39b;
  --line: rgba(52, 229, 176, 0.22);
  --line-soft: rgba(52, 229, 176, 0.1);
  --hud: "Orbitron", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- ambiente ---------- */
.fx-grid, .fx-scan, .fx-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.fx-grid {
  background-image:
    linear-gradient(rgba(52, 229, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 229, 176, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 5%, transparent 72%);
}

.fx-scan::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 170px;
  background: linear-gradient(180deg, transparent, rgba(52, 229, 176, 0.06), transparent);
  animation: sweep 8s linear infinite;
}

.fx-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
}

@keyframes sweep { 0% { transform: translateY(-220px); } 100% { transform: translateY(100vh); } }

.fx-vignette {
  background: radial-gradient(ellipse at 50% 0%, rgba(52, 229, 176, 0.06), transparent 55%),
              radial-gradient(ellipse at 50% 100%, rgba(255, 59, 59, 0.04), transparent 60%);
}

/* ---------- marco ---------- */
.app { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; padding: 16px 18px 40px; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(6px);
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: 0.55;
}

/* ---------- HUD ---------- */
.hud {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 11px 14px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-family: var(--hud);
  font-weight: 900; font-size: 14px;
  box-shadow: 0 0 18px rgba(52,229,176,0.25), inset 0 0 12px rgba(52,229,176,0.12);
  flex: none;
}

.brand-text p { font-family: var(--hud); font-size: 12.5px; letter-spacing: 0.2em; color: var(--mint); }
.brand-text span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.hud-tools { margin-left: auto; display: flex; gap: 7px; }

.stat {
  border: 1px solid var(--line-soft);
  background: rgba(52,229,176,0.04);
  padding: 5px 11px;
  min-width: 74px;
  text-align: right;
}

.stat span { display: block; font-family: var(--hud); font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }
.stat strong { font-family: var(--hud); font-size: 19px; color: var(--mint); }
.stat.big strong { font-size: 25px; text-shadow: 0 0 14px rgba(52,229,176,0.5); }

.chip {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-family: var(--hud);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding: 9px 11px;
  cursor: pointer;
}

.chip:hover { color: var(--text); border-color: var(--mint); }
.chip[aria-pressed="true"] { color: var(--mint); border-color: var(--mint); background: rgba(52,229,176,0.08); }
#btn-reset:hover { color: var(--alert); border-color: rgba(255,59,59,0.5); }

/* ---------- NAV ---------- */
.nav { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }

.nav button {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.6);
  color: var(--muted);
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 11px 6px;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
}

.nav button:hover:not(:disabled) { color: var(--text); border-color: var(--mint); }
.nav button.on { color: #04130e; background: var(--mint); border-color: var(--mint); box-shadow: 0 0 18px rgba(52,229,176,0.3); }
.nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.nav button i { font-style: normal; display: block; font-size: 8.5px; opacity: 0.75; margin-top: 2px; }

/* ---------- NEXT ACTION ---------- */
.next-action {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(52,229,176,0.1), rgba(10,14,20,0.6));
  padding: 10px 12px;
  margin-bottom: 12px;
}
.next-action[hidden] { display: none !important; }
.next-action.is-live {
  margin: 14px 0 0;
  border-color: var(--mint);
  animation: na-in 360ms ease;
}
@keyframes na-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.na-label { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.18em; color: var(--mint); flex: none; }
.na-text { font-size: 13.5px; color: var(--text); flex: 1; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 1fr 340px; gap: 12px; align-items: start; }
.side { display: grid; gap: 12px; position: sticky; top: 14px; }
.view { padding: 24px 24px 28px; min-height: 540px; }

/* ---------- tipografía ---------- */
.eyebrow { font-family: var(--hud); font-size: 10.5px; letter-spacing: 0.24em; color: var(--mint); text-transform: uppercase; margin-bottom: 9px; }
.eyebrow.alert { color: var(--alert); }
.eyebrow.amber { color: var(--amber); }

h1 { font-family: var(--hud); font-weight: 900; font-size: clamp(25px, 4vw, 42px); line-height: 1.03; margin-bottom: 12px; }
h2 { font-family: var(--hud); font-weight: 700; font-size: clamp(18px, 2.6vw, 25px); line-height: 1.12; margin-bottom: 11px; }
h3 { font-family: var(--hud); font-weight: 700; font-size: 14px; letter-spacing: 0.07em; margin-bottom: 7px; }

p.lede { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 64ch; }
p.lede strong { color: var(--text); font-weight: 600; }
.mint { color: var(--mint); }
.alert-text { color: var(--alert); }
.amber-text { color: var(--amber); }
.divider { height: 1px; background: linear-gradient(90deg, var(--line), transparent); margin: 18px 0; }
.panel-title { font-family: var(--hud); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); padding: 12px 14px 0; }

/* ---------- orientación pedagógica ---------- */
.orient { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 18px; }

.orient div {
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.015);
  padding: 10px 11px;
}

.orient span { display: block; font-family: var(--hud); font-size: 8.5px; letter-spacing: 0.12em; color: var(--mint); margin-bottom: 5px; }
.orient p { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ---------- badges de procedencia ---------- */
.src {
  display: inline-block;
  font-family: var(--hud);
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 3px 6px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  vertical-align: middle;
  margin-left: 7px;
}

.src.pdf { color: var(--mint); border-color: var(--line); }
.src.engine { color: var(--amber); border-color: rgba(255,194,77,0.35); }
.src.evidence { color: var(--text); border-color: var(--line); }

/* ---------- botones ---------- */
.btn {
  font-family: var(--hud);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  padding: 14px 24px;
  border: 1px solid var(--mint);
  background: linear-gradient(180deg, rgba(52,229,176,0.18), rgba(52,229,176,0.06));
  color: var(--mint);
  cursor: pointer;
  text-transform: uppercase;
  transition: box-shadow 150ms, transform 110ms, background 150ms;
}

.btn:hover:not(:disabled) { box-shadow: 0 0 24px rgba(52,229,176,0.32); background: linear-gradient(180deg, rgba(52,229,176,0.3), rgba(52,229,176,0.1)); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; border-color: var(--muted); color: var(--muted); background: transparent; }
.btn-solid { background: var(--mint); color: #03150f; }
.btn-solid:hover:not(:disabled) { background: #5cf3c6; }
.btn-ghost { border-color: var(--line-soft); background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--mint); box-shadow: none; }
.btn-sm { padding: 9px 13px; font-size: 10px; letter-spacing: 0.12em; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 20px; }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- tutor ---------- */
.tutor-head { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-bottom: 1px solid var(--line-soft); }

.avatar {
  width: 72px; height: 84px;
  flex: none;
  display: grid; place-items: end center;
}

.ob-kai { width: 92px; height: 108px; margin: 0 auto 8px; }

.kai { width: 100%; height: 100%; overflow: visible; }
.kai-shadow { fill: rgba(0,0,0,0.45); }
.kai-bob { transform-origin: 80px 170px; animation: kai-bob 2.8s ease-in-out infinite; }
.kai-body { fill: #d7fff1; }
.kai-head { fill: #f4fff9; stroke: #34e5b0; stroke-width: 3; }
.kai-band { stroke: #34e5b0; stroke-width: 8; stroke-linecap: round; fill: none; }
.kai-arm { fill: none; stroke: #d7fff1; stroke-width: 10; stroke-linecap: round; }
.eye { fill: #10241c; }
.glint { fill: #fff; }
.lid { fill: #f4fff9; transform: scaleY(0); transform-origin: center; animation: kai-blink 4.2s infinite; }
.cheek { fill: #34e5b0; opacity: 0.35; }
.mouth { fill: none; stroke: #10241c; stroke-width: 3; stroke-linecap: round; display: none; }
.mouth-talk-o { fill: #10241c; stroke: none; display: none; }
.kai[data-mood="idle"] .mouth-idle,
.kai[data-mood="ready"] .mouth-idle { display: block; }
.kai[data-mood="talk"] .mouth-talk,
.kai[data-mood="talk"] .mouth-talk-o { display: block; }
.kai[data-mood="happy"] .mouth-happy { display: block; }
.kai[data-mood="think"] .mouth-think { display: block; }
.kai[data-mood="concern"] .mouth-concern { display: block; }
.kai[data-mood="think"] .kai-eyes { transform: translate(-4px, -3px); }
.kai[data-mood="happy"] .cheek { opacity: 0.7; }
.kai[data-mood="concern"] .kai-band { stroke: #ffc24d; }
.kai[data-mood="ready"] .kai-arm { transform: rotate(-18deg); transform-origin: 118px 108px; }

@keyframes kai-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes kai-blink {
  0%, 42%, 48%, 100% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
}

/* ---------- cuarto del case file ---------- */
.room-stage { margin: 8px 0 14px; }
.room {
  position: relative;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #14110e;
}
.shots .room { height: 92px; border-radius: 12px; pointer-events: none; }
.shots .room-kai, .shots .room-clock span { display: none; }
.room-sky { position: absolute; inset: 0 0 38%; background: linear-gradient(#243044, #12161c); transition: background 240ms; }
.room-window {
  position: absolute; top: 36px; left: 36px; width: 120px; height: 86px;
  border: 4px solid rgba(234,246,242,0.4); background: #1b2838; border-radius: 4px;
}
.room-window i {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: #f4f1c8; margin: 14px; opacity: 0.25; transition: opacity 240ms, background 240ms;
}
.room-clock {
  position: absolute; top: 22px; right: 22px; text-align: right;
  font-family: var(--hud); color: var(--mint);
}
.room-clock b { display: block; font-size: 28px; text-shadow: 0 0 12px rgba(52,229,176,0.45); }
.room-clock span { font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }
.room-bed {
  position: absolute; left: 8%; right: 22%; bottom: 22px; height: 78px;
  background: linear-gradient(#243240, #18222c);
  border-radius: 16px 16px 8px 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.room-pillow {
  position: absolute; left: 12%; bottom: 58px; width: 64px; height: 28px;
  background: #e7fff6; border-radius: 10px;
}
.room-lamp {
  position: absolute; right: 27%; bottom: 96px; width: 22px; height: 58px;
  background: linear-gradient(#ffe7a3, #ffc24d);
  border-radius: 11px 11px 3px 3px;
  box-shadow: 0 0 48px 18px rgba(255,194,77,0.5);
  transition: opacity 240ms, box-shadow 240ms;
}
.room-plate {
  position: absolute; left: 42%; bottom: 108px; width: 48px; height: 16px;
  border: 3px solid #d5ddd8; border-radius: 50%; background: #3a2a22;
  transition: opacity 240ms;
}
.room-phone {
  position: absolute; left: 54%; bottom: 118px; width: 26px; height: 44px;
  border-radius: 6px; background: linear-gradient(#d7ecff, #6ea8ff);
  box-shadow: 0 0 22px rgba(110,168,255,0.85);
  transition: opacity 240ms, left 240ms, bottom 240ms, width 240ms, height 240ms;
}
.room-console, .room-tablet { position: absolute; opacity: 0; transition: opacity 200ms; }
.room-console {
  left: 10%; bottom: 108px; width: 92px; height: 36px;
  background: #ff3b3b; border-radius: 6px;
  box-shadow: 0 0 28px rgba(255,59,59,0.6);
}
.room-tablet {
  right: 30%; bottom: 112px; width: 72px; height: 48px;
  background: #b9dcff; border-radius: 6px;
  box-shadow: 0 0 24px rgba(110,168,255,0.75);
}
.room-kai { position: absolute; right: 6px; bottom: 8px; width: 96px; height: 112px; }

.room[data-shot="game"] .room-console { opacity: 1; }
.room[data-shot="game"] .room-sky { background: linear-gradient(#3a1830, #140810); }
.room[data-shot="reels"] .room-phone { left: 40%; bottom: 70px; width: 28px; height: 48px; background: #7eb6ff; }
.room[data-shot="reels"] .room-bed { box-shadow: inset 0 0 30px rgba(110,168,255,0.35); }
.room[data-shot="tablet"] .room-tablet { opacity: 1; }
.room[data-shot="tablet"] .room-lamp { box-shadow: 0 0 50px 18px rgba(255,194,77,0.6); }
.room[data-shot="protocol"] .room-lamp,
.room[data-shot="protocol"] .room-phone,
.room[data-shot="protocol"] .room-plate { opacity: 0.15; box-shadow: none; }
.room[data-shot="protocol"] .room-sky { background: linear-gradient(#0c1a22, #070b10); }
.room[data-shot="protocol"] .room-window { background: #0e1824; }
.room[data-shot="protocol"] .room-window i { opacity: 0.85; background: #d7fff1; box-shadow: 0 0 12px #34e5b0; }
.room[data-shot="protocol"] { box-shadow: inset 0 0 40px rgba(52,229,176,0.12); }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot {
  text-align: left; color: var(--text); background: rgba(10,14,20,0.7);
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px;
  cursor: pointer; font-family: var(--body); font-size: 13px; line-height: 1.4;
}
.shot:hover:not(:disabled) { border-color: var(--mint); }
.shot .shot-key {
  display: inline-block; margin: 8px 8px 0 0;
  font-family: var(--hud); font-size: 10px; color: var(--mint);
  border: 1px solid var(--line); padding: 2px 6px;
}
.shot.wrong { border-color: var(--alert); }
.shot.right { border-color: var(--mint); box-shadow: 0 0 16px rgba(52,229,176,0.2); }
.shot:disabled { cursor: not-allowed; }
.shot.wrong:disabled, .shot.right:disabled { opacity: 1; }

/* ---------- pase fallado ---------- */
.pass-scene { position: relative; margin: 8px 0 14px; }
.pass-pitch {
  position: relative; height: 210px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(52,229,176,0.05) 46px 47px),
    linear-gradient(#0d1a16, #07110f);
}
.pass-player, .pass-rival, .pass-ball { position: absolute; border-radius: 50%; }
.pass-player { width: 22px; height: 22px; background: var(--mint); left: 42%; top: 58%; box-shadow: 0 0 0 6px rgba(52,229,176,0.15); }
.pass-rival { width: 18px; height: 18px; background: var(--alert); left: 68%; top: 30%; }
.pass-ball { width: 12px; height: 12px; background: #f4f1c8; left: 61%; top: 42%; }
.pass-bubble, .pass-breath, .pass-fist {
  position: absolute; opacity: 0; transition: opacity 180ms;
}
.pass-bubble {
  left: 18%; top: 18%; font-family: var(--hud); font-size: 12px; color: #04130e;
  background: var(--mint); padding: 6px 8px; border-radius: 10px;
}
.pass-breath {
  left: 36%; top: 40%; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(52,229,176,0.7);
}
.pass-fist { left: 48%; top: 46%; font-size: 22px; }
.pass-ball { animation: miss-ball 1.8s ease-in infinite; }
@keyframes miss-ball {
  0% { left: 44%; top: 56%; opacity: 1; }
  55% { left: 74%; top: 24%; opacity: 1; }
  100% { left: 82%; top: 14%; opacity: 0.2; }
}
.pass-scene[data-step="1"] .pass-ball { animation: none; left: 74%; top: 28%; opacity: 0.35; }
.pass-scene[data-step="1"] .pass-bubble { opacity: 1; animation: pop-in 280ms ease; }
.pass-scene[data-step="2"] .pass-breath { opacity: 1; animation: breath 900ms ease-out infinite; }
.pass-scene[data-step="2"] .pass-player { transform: translateY(6px); }
.pass-scene[data-step="3"] .pass-fist { opacity: 1; animation: pop-in 220ms ease; }
.pass-scene[data-step="3"] .pass-player { box-shadow: 0 0 0 8px rgba(52,229,176,0.28); animation: rise 420ms ease; }
.pass-scene[data-step="3"] .pass-ball { animation: return-ball 700ms ease forwards; }
@keyframes pop-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breath {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
@keyframes return-ball {
  from { left: 74%; top: 28%; opacity: 0.3; }
  to { left: 48%; top: 52%; opacity: 1; }
}
.pass-scene .room-kai { position: absolute; right: 8px; bottom: 0; width: 70px; height: 84px; }

.tutor-head p { font-family: var(--hud); font-size: 10.5px; letter-spacing: 0.1em; }
.tutor-head span { font-size: 9.5px; color: var(--mint); letter-spacing: 0.14em; text-transform: uppercase; }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 10px var(--mint);
  animation: blink 1.7s infinite; margin-left: auto; flex: none;
}

@keyframes blink { 50% { opacity: 0.25; } }

.tutor-log { max-height: 300px; overflow-y: auto; padding: 11px 13px; display: flex; flex-direction: column; gap: 9px; }

.msg {
  border-left: 2px solid var(--mint);
  padding: 8px 10px;
  background: rgba(52,229,176,0.045);
  font-size: 13px;
  line-height: 1.5;
  animation: slide-in 200ms ease-out;
}

.msg.guidance { border-left-color: var(--amber); background: rgba(255,194,77,0.06); }
.msg.feedback-bad { border-left-color: var(--alert); background: rgba(255,59,59,0.06); }
.msg.field { border-left-color: #6ea8ff; background: rgba(110,168,255,0.07); }
.msg.followup { border-left-color: #c58aff; background: rgba(197,138,255,0.07); }

.msg b {
  display: block;
  font-family: var(--hud);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}

@keyframes slide-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.tutor-input { display: flex; gap: 7px; padding: 11px 13px; border-top: 1px solid var(--line-soft); }
.tutor-input .btn { flex: 1; }

/* ---------- telemetría ---------- */
.telemetry { padding-bottom: 12px; }
.tm-row { padding: 9px 14px 0; }
.tm-row .top { display: flex; justify-content: space-between; font-family: var(--hud); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 4px; }
.tm-row .top em { font-style: normal; color: var(--mint); }

.bar { height: 6px; background: rgba(52,229,176,0.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--mint); box-shadow: 0 0 10px rgba(52,229,176,0.55); transition: width 520ms cubic-bezier(.2,.8,.2,1); }
.bar i.warn { background: var(--amber); box-shadow: 0 0 10px rgba(255,194,77,0.5); }
.bar i.bad { background: var(--alert); box-shadow: 0 0 10px rgba(255,59,59,0.5); }

.tm-foot { padding: 12px 14px 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line-soft); margin-top: 12px; }
.tm-foot b { color: var(--mint); font-weight: 600; }

/* ---------- mission board ---------- */
.mission-grid { display: grid; gap: 10px; margin-top: 16px; }

.mcard {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.66);
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  font-family: var(--body);
}

.mcard:hover:not(:disabled) { border-color: var(--mint); }
.mcard:disabled { opacity: 0.45; cursor: not-allowed; }
.mcard .tag { font-family: var(--hud); font-size: 9px; letter-spacing: 0.16em; color: var(--mint); }
.mcard h3 { margin: 5px 0 5px; }
.mcard p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.mcard .state { font-family: var(--hud); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); text-align: right; white-space: nowrap; }
.mcard.done { border-color: var(--line); background: rgba(52,229,176,0.05); }
.mcard.done .state { color: var(--mint); }
.mcard .time { font-family: var(--hud); font-size: 9px; color: var(--muted); display: block; margin-top: 5px; }

/* ---------- level header ---------- */
.lvl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.lvl-prog {
  border: 1px solid var(--line-soft);
  padding: 9px 12px;
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.lvl-prog em { font-style: normal; color: var(--mint); }

.chain {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 16px 0 4px; font-family: var(--hud); letter-spacing: 0.12em; font-size: 11px;
}
.chain span { color: var(--mint); }
.chain i { width: 28px; height: 1px; background: var(--line); }
.chain p { width: 100%; font-family: var(--body); letter-spacing: 0; font-size: 13px; color: var(--muted); }

.path-label { margin: 22px 0 8px; }
.path-label b { display: block; font-family: var(--hud); font-size: 11px; letter-spacing: 0.16em; color: var(--mint); }
.path-label span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.battery { border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; margin-top: 8px; }
.bat-read { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 16px; }
.bat-read strong { font-family: var(--hud); font-size: 42px; color: var(--mint); line-height: 0.9; }
.bat-read span { font-family: var(--hud); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.bat-meters { display: grid; gap: 10px; margin-bottom: 16px; }
.bat-m { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.bat-m span, .bat-m em { font-family: var(--hud); font-size: 11px; letter-spacing: 0.08em; }
.bat-m em { color: var(--mint); }
.bat-m .bar { grid-column: 1 / -1; }
.bat-levers { display: grid; gap: 12px; }
.bat-lev span { display: block; font-family: var(--hud); font-size: 9px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.bat-lev div { display: flex; gap: 8px; flex-wrap: wrap; }

.dive { border: 1px solid var(--line); background: var(--panel); padding: 20px 18px; min-height: 160px; }
.dive h2 { margin-top: 6px; }

/* ---------- step chrome ---------- */
.step-rail { display: flex; gap: 5px; margin: 14px 0 16px; flex-wrap: wrap; }

.step-pip {
  font-family: var(--hud);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 5px 8px;
  text-transform: uppercase;
}

.step-pip.on { color: #04130e; background: var(--mint); border-color: var(--mint); }
.step-pip.done { color: var(--mint); border-color: var(--line); }

/* ---------- discovery cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 16px; }

.card {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.7);
  padding: 14px 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--body);
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}

.card:hover { border-color: var(--mint); transform: translateY(-2px); }
.card.on { border-color: var(--mint); box-shadow: inset 0 0 22px rgba(52,229,176,0.08), 0 0 16px rgba(52,229,176,0.12); }
.card.focus { outline: 1px solid var(--mint); }
.card .icon { font-size: 22px; line-height: 1; }
.card .tag { font-family: var(--hud); font-size: 9px; letter-spacing: 0.16em; color: var(--mint); }
.card .body { font-size: 13px; line-height: 1.5; color: var(--muted); flex: 1; }
.card .body strong { color: var(--text); }
.card .status { font-family: var(--hud); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 7px; }
.card.on .status { color: var(--mint); }

/* ---------- decisiones ---------- */
.case {
  border: 1px solid rgba(255,59,59,0.3);
  background: rgba(255,59,59,0.05);
  padding: 15px 17px;
  margin: 16px 0 18px;
}

.case .meta { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.13em; color: var(--muted); margin-bottom: 9px; }
.case .meta em { font-style: normal; color: var(--alert); }
.case p { font-size: 15px; line-height: 1.6; }

.options { display: grid; gap: 8px; }

.opt {
  display: flex; gap: 12px; align-items: flex-start;
  text-align: left; width: 100%;
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.7);
  color: var(--text);
  padding: 14px 15px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  font-family: var(--body);
  transition: border-color 130ms, background 130ms;
}

.opt:hover:not(:disabled) { border-color: var(--mint); background: rgba(52,229,176,0.05); }
.opt .key { font-family: var(--hud); font-size: 10.5px; color: var(--mint); border: 1px solid var(--line); padding: 3px 7px; flex: none; }
.opt.wrong { border-color: var(--alert); background: rgba(255,59,59,0.08); }
.opt.wrong .key { color: var(--alert); border-color: rgba(255,59,59,0.45); }
.opt.right { border-color: var(--mint); background: rgba(52,229,176,0.12); }
.opt:disabled { opacity: 0.45; cursor: not-allowed; }
.opt.plain { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); }
.opt.plain:hover:not(:disabled) { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.opt.plain .key { color: var(--muted); border-color: rgba(255,255,255,0.15); }
.opt.sel { border-color: var(--text); background: rgba(255,255,255,0.08); }
.opt.sel .key { color: var(--text); border-color: var(--text); }

.callout {
  border: 1px solid rgba(255,194,77,0.4);
  background: rgba(255,194,77,0.07);
  padding: 14px 16px;
  margin-top: 15px;
  animation: slide-in 200ms ease-out;
}

.callout b { display: block; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.16em; color: var(--amber); margin-bottom: 6px; }
.callout p { font-size: 14.5px; line-height: 1.55; }
.callout p + p { margin-top: 8px; }
.callout.good { border-color: var(--line); background: rgba(52,229,176,0.07); }
.callout.good b { color: var(--mint); }
.callout.bad { border-color: rgba(255,59,59,0.4); background: rgba(255,59,59,0.07); }
.callout.bad b { color: var(--alert); }

/* ---------- loadout ---------- */
.rules { display: grid; gap: 11px; margin-top: 16px; }

.rule { border: 1px solid var(--line-soft); background: rgba(10,14,20,0.65); padding: 13px 15px; }
.rule.locked { border-color: var(--mint); box-shadow: inset 0 0 18px rgba(52,229,176,0.07); }
.rule.failed { border-color: var(--alert); }
.rule-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 3px; }
.rule-top h3 { margin: 0; }
.rule-note { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.rule-val { font-family: var(--hud); font-size: 18px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.rule.locked .rule-val { color: var(--mint); }
.rule.failed .rule-val { color: var(--alert); }
.slider-row { display: flex; align-items: center; gap: 11px; }
.slider-row small { font-family: var(--hud); font-size: 8.5px; color: var(--muted); letter-spacing: 0.08em; flex: none; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, rgba(52,229,176,0.45), rgba(52,229,176,0.12)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(52,229,176,0.7); border: 2px solid #03150f; }
input[type="range"]::-moz-range-track { height: 4px; background: rgba(52,229,176,0.3); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--mint); border: 2px solid #03150f; box-shadow: 0 0 12px rgba(52,229,176,0.7); }

.lock-flag { font-family: var(--hud); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); margin-top: 8px; }
.rule.locked .lock-flag { color: var(--mint); }
.rule.failed .lock-flag { color: var(--alert); }

/* ---------- secuencia (Level 2 Reset) ---------- */
.seq { display: grid; gap: 10px; margin-top: 16px; }

.seq-step {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.66);
  padding: 15px 16px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  font-family: var(--body);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
}

.seq-step .n { font-family: var(--hud); font-size: 17px; color: var(--muted); }
.seq-step h3 { margin: 0 0 3px; }
.seq-step p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.seq-step .flag { font-family: var(--hud); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); }
.seq-step:hover:not(:disabled) { border-color: var(--mint); }
.seq-step.done { border-color: var(--mint); background: rgba(52,229,176,0.06); }
.seq-step.done .n, .seq-step.done .flag { color: var(--mint); }
.seq-step.locked { opacity: 0.5; }
.seq-step.next { border-color: var(--amber); box-shadow: 0 0 14px rgba(255,194,77,0.14); }
.seq-step.next .flag { color: var(--amber); }

.timer-wrap { margin: 14px 0 4px; }
.timer-wrap .head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--hud); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 5px; }
.timer-wrap .head em { font-style: normal; font-size: 17px; color: var(--mint); }
.timer-wrap .head em.low { color: var(--alert); }
.timer-bar { height: 4px; background: rgba(255,255,255,0.07); }
.timer-bar i { display: block; height: 100%; background: var(--mint); transition: width 200ms linear, background 200ms; }
.timer-bar i.low { background: var(--alert); }

/* ---------- anchor lab ---------- */
.gesture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; margin-top: 12px; }

.gesture {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.7);
  color: var(--text);
  padding: 14px 12px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 13px;
  text-align: center;
}

.gesture .ic { font-size: 20px; display: block; margin-bottom: 6px; }
.gesture:hover { border-color: var(--mint); }
.gesture.sel { border-color: var(--mint); background: rgba(52,229,176,0.12); box-shadow: 0 0 14px rgba(52,229,176,0.16); }

.rep-counter { font-family: var(--hud); font-size: 52px; font-weight: 900; color: var(--mint); text-align: center; line-height: 1; margin: 16px 0 6px; text-shadow: 0 0 24px rgba(52,229,176,0.4); }
.rep-label { text-align: center; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 14px; }

.rep-pips { display: flex; gap: 5px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.rep-pips i { width: 20px; height: 6px; background: rgba(52,229,176,0.15); display: block; }
.rep-pips i.on { background: var(--mint); box-shadow: 0 0 8px rgba(52,229,176,0.6); }

textarea, input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 13px;
  line-height: 1.5;
  resize: vertical;
}

textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 14px rgba(52,229,176,0.14); }
label.field-label { display: block; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); margin: 14px 0 6px; }

/* ---------- visor 360 ---------- */
.pitch {
  position: relative;
  margin-top: 14px;
  height: 320px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 50%, rgba(52,229,176,0.05), transparent 58%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(52,229,176,0.06) 39px 40px),
    #061010;
  overflow: hidden;
}

.zone {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255,194,77,0.6);
  color: var(--amber);
  background: rgba(255,194,77,0.07);
  font-family: var(--hud);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  padding: 9px 10px;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}

.zone:hover { background: rgba(255,194,77,0.16); }
.zone.scanned { border-style: solid; border-color: var(--mint); color: var(--mint); background: rgba(52,229,176,0.12); }
.zone.blind { border-color: rgba(255,59,59,0.6); color: var(--alert); background: rgba(255,59,59,0.08); }
.zone.blind.scanned { border-color: var(--mint); color: var(--mint); background: rgba(52,229,176,0.12); }

.dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: rgba(234,246,242,0.85); transform: translate(-50%,-50%); }
.dot.rival { background: var(--alert); }
.dot.me { background: var(--mint); width: 15px; height: 15px; box-shadow: 0 0 0 3px rgba(52,229,176,0.22); }
.dot.me::after { content: "TÚ"; position: absolute; top: 17px; left: 50%; transform: translateX(-50%); font-family: var(--hud); font-size: 9px; color: var(--mint); }
.dot.ball { background: var(--amber); width: 9px; height: 9px; animation: vball 2.6s ease-in-out infinite; }
@keyframes vball {
  0%, 100% { left: 28%; top: 82%; }
  62% { left: 47%; top: 58%; }
}
.dot.ball::after { content: "BALÓN"; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); font-family: var(--hud); font-size: 8px; color: var(--amber); white-space: nowrap; }

.body-orient { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }

.orient-btn {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.7);
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  padding: 13px 15px;
  cursor: pointer;
  flex: 1;
  min-width: 150px;
}

.orient-btn:hover:not(:disabled) { border-color: var(--mint); }
.orient-btn.sel { border-color: var(--mint); background: rgba(52,229,176,0.12); }
.orient-btn.wrong { border-color: var(--alert); background: rgba(255,59,59,0.08); }
.orient-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- field task ---------- */
.field-card { border: 1px solid #3c6ea8; background: rgba(110,168,255,0.07); padding: 18px; margin-top: 16px; }
.field-card .eyebrow { color: #8cc0ff; }
.field-card h2 { color: #cfe6ff; }
.checklist { display: grid; gap: 7px; margin-top: 13px; }
.checklist div { border: 1px solid var(--line-soft); padding: 10px 13px; font-size: 13.5px; display: flex; gap: 10px; background: rgba(10,14,20,0.6); }
.checklist div em { font-style: normal; color: var(--mint); font-family: var(--hud); font-size: 10.5px; flex: none; }

.two-state { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }

.state-btn {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.7);
  color: var(--text);
  padding: 15px 15px 15px 58px;
  cursor: pointer;
  font-family: var(--body);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
}
.state-btn::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 18px;
}
.state-btn.digital::before {
  border: 1px solid #6ea8ff;
  background: linear-gradient(#16304c, #0c1824);
  animation: screen-flicker 1.6s steps(2) infinite;
}
.state-btn.real::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(52,229,176,0.15);
  animation: ball-hop 1.1s ease-in-out infinite;
}
@keyframes screen-flicker { 50% { opacity: 0.45; } }
@keyframes ball-hop { 50% { transform: translateY(-6px); } }

.state-btn b { display: block; font-family: var(--hud); font-size: 10px; letter-spacing: 0.12em; margin-bottom: 5px; }
.state-btn.digital b { color: var(--amber); }
.state-btn.real b { color: var(--mint); }
.state-btn:hover { border-color: var(--mint); }
.state-btn.sel { border-color: var(--mint); background: rgba(52,229,176,0.1); }

/* ---------- tracker ---------- */
.days { display: grid; gap: 10px; margin-top: 16px; }
.day { border: 1px solid var(--line-soft); background: rgba(10,14,20,0.65); padding: 14px 15px; opacity: 0.42; transition: opacity 180ms, border-color 180ms; }
.day.active { opacity: 1; border-color: var(--line); }
.day.filled { opacity: 1; border-color: var(--mint); box-shadow: inset 0 0 16px rgba(52,229,176,0.06); }
.day-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 10px; }
.day-top h3 { margin: 0; }
.day-top .state { font-family: var(--hud); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
.day.filled .day-top .state { color: var(--mint); }
.metric { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 6px 0; flex-wrap: wrap; }
.metric > span { font-size: 13px; color: var(--muted); }
.stars { display: flex; gap: 4px; }

.star {
  width: 34px; height: 31px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  display: grid; place-items: center;
  transition: color 110ms, border-color 110ms, background 110ms;
}

.star:hover:not(:disabled) { border-color: var(--mint); color: var(--mint); }
.star.on { color: var(--mint); border-color: var(--mint); background: rgba(52,229,176,0.1); text-shadow: 0 0 10px rgba(52,229,176,0.7); }
.star:disabled { cursor: not-allowed; }

.demo-note { border: 1px solid rgba(255,194,77,0.3); background: rgba(255,194,77,0.05); padding: 11px 13px; font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }
.demo-note b { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--amber); }

/* ---------- mastery ---------- */
.plain-note { border: 1px solid var(--line-soft); padding: 11px 14px; font-size: 12.5px; color: var(--muted); margin: 14px 0 18px; background: rgba(255,255,255,0.02); }
.q-block { margin-bottom: 20px; }
.q-block > p.q { font-size: 15px; margin-bottom: 10px; line-height: 1.5; }
.q-index { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--mint); margin-bottom: 5px; }

/* ---------- unlock ---------- */
.unlock-head { text-align: center; padding-top: 8px; }
.unlock-head h1 { color: var(--mint); text-shadow: 0 0 28px rgba(52,229,176,0.42); }
.score-ring { font-family: var(--hud); font-size: 58px; font-weight: 900; color: var(--mint); text-align: center; line-height: 1; margin: 4px 0 2px; text-shadow: 0 0 26px rgba(52,229,176,0.48); }
.score-label { text-align: center; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 20px; }
.attrs { display: grid; gap: 11px; max-width: 620px; margin: 0 auto; }
.attr-row .top { display: flex; justify-content: space-between; font-family: var(--hud); font-size: 10.5px; letter-spacing: 0.1em; margin-bottom: 5px; }
.attr-row .top em { font-style: normal; color: var(--mint); }
.attr-row .bar { height: 10px; }

.next-level { border: 1px solid var(--line); background: rgba(52,229,176,0.05); padding: 17px; margin-top: 22px; text-align: center; }
.next-level p.lede { margin: 0 auto 14px; }
.membership-slot { margin-top: 22px; }
.membership-offer { text-align: center; }
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  text-align: left;
}
.membership-tier {
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.55);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.membership-tier.is-featured { border-color: rgba(52, 229, 176, 0.45); background: rgba(52, 229, 176, 0.08); }
.membership-tier h3 { margin: 0; font-size: 1rem; }
.membership-price {
  font-family: var(--hud);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--mint);
}
.membership-price small { font-size: 0.55em; color: var(--muted); letter-spacing: 0.08em; }
.membership-tier .lede { font-size: 0.86rem; margin: 0; flex: 1; }
.membership-tier .btn { margin-top: 6px; width: 100%; }
@media (max-width: 820px) {
  .membership-grid { grid-template-columns: 1fr; }
}

/* ---------- Fase 2 local (no publicar hasta paquete completo) ---------- */
.phase2 { max-width: 640px; margin: 0 auto; text-align: left; }
.phase2 .field { display: block; margin: 14px 0; }
.phase2 .field span { display: block; font-family: var(--hud); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.phase2 .field input, .phase2 .field select {
  width: 100%; background: #0b0d10; color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px; font: inherit;
}
.phase2-missions { display: grid; gap: 10px; margin: 18px 0; }
.phase2-mission {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--line); background: rgba(52,229,176,0.04); cursor: pointer;
}
.phase2-mission input { margin-top: 4px; }
.phase2-mission small { color: var(--muted); }
.phase2-json {
  margin-top: 10px; padding: 12px; background: #0b0d10; border: 1px solid var(--line);
  font-size: 11px; overflow: auto; max-height: 220px; color: var(--silver);
}
.phase2-dev {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.phase2-dev summary {
  cursor: pointer;
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  list-style: none;
}
.phase2-dev summary::-webkit-details-marker { display: none; }
.phase2-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}
.phase2-metric {
  border: 1px solid var(--line);
  background: rgba(52, 229, 176, 0.04);
  padding: 12px 14px;
}
.phase2-metric span {
  display: block;
  font-family: var(--hud);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.phase2-metric b {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-family: var(--hud);
  color: var(--mint);
}
.phase2-metric small {
  color: var(--muted);
  font-size: 11px;
}
.phase2-empty {
  margin: 16px 0;
  padding: 16px;
  border: 1px dashed var(--line);
}
.phase2-week-signals { margin: 12px 0 18px; }
.phase2-dev-sync {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 560px) {
  .phase2-metrics { grid-template-columns: 1fr; }
}

/* ---------- gráficos dispositivo ---------- */
.device-dash {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.device-dash > :last-child { grid-column: 1 / -1; }
.chart-card {
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.72);
  padding: 12px 14px 10px;
  position: relative;
}
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.chart-head .eyebrow { margin: 0; }
.chart-readout {
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mint);
  text-align: right;
}
.chart-stage { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.chart-axis { stroke: rgba(201, 209, 219, 0.25); stroke-width: 1; }
.chart-bar {
  fill: rgba(52, 229, 176, 0.55);
  cursor: pointer;
  transition: fill 0.15s ease, filter 0.15s ease;
}
.chart-bar.is-weak { fill: rgba(255, 194, 77, 0.55); }
.chart-bar.is-on, .chart-bar:hover {
  fill: var(--mint);
  filter: drop-shadow(0 0 8px rgba(52, 229, 176, 0.45));
}
.chart-label {
  fill: var(--muted);
  font-size: 9px;
  font-family: var(--hud);
  letter-spacing: 0.06em;
}
.chart-line {
  stroke: var(--mint);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-area { fill: rgba(52, 229, 176, 0.12); }
.chart-dot {
  fill: #0b0d10;
  stroke: var(--mint);
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.12s ease, fill 0.12s ease;
}
.chart-dot.is-on, .chart-dot:hover {
  fill: var(--mint);
}
.ready-explainer {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42rem;
}
.ready-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 2px;
}
.ready-score strong {
  font-family: var(--hud);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: var(--mint);
  letter-spacing: 0.02em;
}
.ready-score.is-low strong { color: #ff7b72; }
.ready-score.is-mid strong { color: var(--amber); }
.ready-score.is-high strong { color: var(--mint); }
.ready-score span {
  font-family: var(--hud);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.ready-zone {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--silver);
}
.ready-meter { margin-top: 4px; }
.ready-track {
  position: relative;
  display: grid;
  grid-template-columns: 55fr 20fr 25fr;
  height: 16px;
  border-radius: 999px;
  overflow: visible;
  border: 1px solid var(--line);
  background: #0b0d10;
}
.ready-track i { display: block; height: 100%; }
.ready-track .z-low { background: rgba(255, 123, 114, 0.35); }
.ready-track .z-mid { background: rgba(255, 194, 77, 0.35); }
.ready-track .z-high { background: rgba(52, 229, 176, 0.35); }
.ready-mark {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid #0b0d10;
  box-shadow: 0 0 0 2px var(--mint), 0 0 14px rgba(52, 229, 176, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.ready-mark.is-on { transform: scale(1.25); }
.ready-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--hud);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ready-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--hud);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.ready-legend .is-low { color: #ff7b72; }
.ready-legend .is-mid { color: var(--amber); }
.ready-legend .is-high { color: var(--mint); }
.chart-tip {
  position: absolute;
  transform: translate(-50%, -110%);
  pointer-events: none;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid rgba(52, 229, 176, 0.45);
  background: rgba(8, 9, 11, 0.92);
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.phase2 .player-card { margin: 18px 0 20px; }
.phase2-home .lab-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}
.lab-door {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(52, 229, 176, 0.04);
  padding: 14px 16px;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.lab-door:hover, .lab-door:focus-visible {
  border-color: rgba(52, 229, 176, 0.55);
  outline: none;
}
.lab-door h3 { margin: 6px 0 8px; font-size: 1rem; }
.lab-door .lede { margin: 0; font-size: 0.88rem; }
.device-pulse {
  margin: 8px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.72);
}
.pulse-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}
.pulse-row span {
  display: block;
  font-family: var(--hud);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pulse-row b {
  display: block;
  margin-top: 4px;
  font-family: var(--hud);
  font-size: 22px;
  color: var(--mint);
}
.phase2-week .week-hero {
  margin: 6px 0 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(52, 229, 176, 0.4);
  background:
    linear-gradient(135deg, rgba(52, 229, 176, 0.12), transparent 55%),
    rgba(8, 9, 11, 0.85);
  text-align: left;
}
.week-kicker {
  margin: 0 0 8px;
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mint);
}
.phase2-week .week-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.04em;
}
.week-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.week-progress b { color: var(--mint); }
.phase2-week .phase2-missions { margin-top: 8px; }
.phase2-week .phase2-mission {
  padding: 14px 16px;
  background: rgba(52, 229, 176, 0.06);
}
.phase2-perks {
  margin: 0 0 12px;
  padding: 0 0 0 1.1rem;
  text-align: left;
  color: var(--silver);
  font-size: 13px;
  line-height: 1.45;
}
.phase2-perks li { margin: 0 0 6px; }
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.welcome-item {
  border: 1px solid var(--line);
  background: rgba(52, 229, 176, 0.04);
  padding: 14px 16px;
  text-align: left;
}
.welcome-item h3 {
  margin: 6px 0 8px;
  font-size: 1rem;
}
.welcome-item .lede { margin: 0; font-size: 0.9rem; }
.welcome-item.is-later {
  border-style: dashed;
  opacity: 0.85;
  background: transparent;
}
@media (max-width: 720px) {
  .device-dash { grid-template-columns: 1fr; }
  .device-dash > :last-child { grid-column: auto; }
  .welcome-grid { grid-template-columns: 1fr; }
}
.phase2-card { border-color: rgba(255,194,77,0.35); }
.phase2-product .hud .chip[href] { text-decoration: none; }
.zone-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 11, 0.85);
  overflow: hidden;
}
.zone-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--hud);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
}
.zone-btn em {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  opacity: 0.8;
}
.zone-btn.on {
  background: rgba(52, 229, 176, 0.14);
  color: var(--mint);
}
.zone-btn.on em { color: var(--mint); }
.zone-btn + .zone-btn { border-left: 1px solid var(--line); }
body.is-hub .zone-switch { border-color: rgba(201, 209, 219, 0.35); }
.hub-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}
.hub-door {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(52, 229, 176, 0.04);
  padding: 14px 16px;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.hub-door:hover, .hub-door:focus-visible {
  border-color: rgba(52, 229, 176, 0.55);
  outline: none;
}
.hub-door h3 { margin: 6px 0 8px; font-size: 1rem; }
.hub-door .lede { margin: 0; font-size: 0.88rem; }
.study-level { margin: 18px 0 8px; text-align: left; }
.study-film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.study-film-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.75);
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
}
.study-film-card:hover, .study-film-card:focus-visible {
  border-color: rgba(52, 229, 176, 0.55);
  outline: none;
}
.study-cover {
  display: block;
  width: 88px;
  min-height: 88px;
  background: #0b0d10;
}
.study-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.study-film-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 10px 0;
}
.study-film-body em {
  font-style: normal;
  font-family: var(--hud);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--mint);
}
.study-film-body b {
  font-size: 13px;
  line-height: 1.25;
}
.study-film-body small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.week-study {
  margin: 18px 0 8px;
  text-align: left;
}
.week-study .lede { margin: 6px 0 4px; font-size: 0.92rem; }
.week-study-more { margin-top: 12px; }
.study-film-card.is-done {
  border-color: rgba(52, 229, 176, 0.45);
  background: rgba(52, 229, 176, 0.08);
}
.study-film-card.is-done .study-cover img { opacity: 0.85; }
.phase2-film .cine { margin-top: 8px; }
/* Intensidad de animación por franja (mismo contenido Kickstart). */
body.study-motion-high .cine-fairy .kai-bob { animation-duration: 1.6s; }
body.study-motion-high .cine-stage img { animation: study-ken 7s ease-in-out infinite alternate; }
body.study-motion-high .cine-bigplay { animation: study-pulse 1.2s ease-in-out infinite; }
body.study-motion-mid .cine-fairy .kai-bob { animation-duration: 2.8s; }
body.study-motion-low .cine-fairy .kai-bob { animation: none; }
body.study-motion-low .cine-stage img { transform: none !important; animation: none !important; }
body.study-motion-low .cine-bigplay { animation: none; }
@keyframes study-ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate(-1%, -0.5%); }
}
@keyframes study-pulse {
  50% { transform: scale(1.06); opacity: 0.9; }
}
.addon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 229, 176, 0.45);
  background: rgba(52, 229, 176, 0.1);
  color: var(--mint);
  font-family: var(--hud, Orbitron, sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.market-addon-strip {
  border: 1px solid rgba(52, 229, 176, 0.35);
  border-radius: 14px;
  padding: 18px 18px 14px;
  margin: 0 0 18px;
  background: linear-gradient(160deg, rgba(52, 229, 176, 0.08), rgba(10, 14, 20, 0.6));
  text-align: left;
}
.market-addon-strip h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.market-addon-strip .lede { margin: 0 0 10px; font-size: 0.9rem; }
.study-level.is-locked {
  opacity: 0.92;
  border: 1px dashed rgba(52, 229, 176, 0.35);
  border-radius: 14px;
  padding: 14px 14px 8px;
  background: rgba(8, 12, 16, 0.55);
}
.study-lock-note { margin: 0 0 12px; font-size: 0.88rem; }
.study-film-card.is-locked {
  opacity: 0.55;
  cursor: pointer;
}
.study-film-card.is-locked:hover,
.study-film-card.is-locked:focus-visible {
  opacity: 0.8;
  border-color: rgba(52, 229, 176, 0.45);
}
.air-callout {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 194, 77, 0.45);
  background: rgba(255, 194, 77, 0.06);
  text-align: left;
}
.air-callout p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--silver); }
.air-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.air-price span {
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.air-price strong {
  font-family: var(--hud);
  font-size: 42px;
  color: var(--mint);
  line-height: 1;
}
.air-price em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.air-cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 18px;
}
.air-city {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.65);
  font-size: 13px;
}
.air-city b { color: var(--text); }
.air-city span { color: var(--mint); font-family: var(--hud); font-size: 9px; letter-spacing: 0.1em; }
.air-city.is-soon span { color: var(--amber); }
.air-terms {
  margin: 8px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.air-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: var(--silver);
}
.air-check input { margin-top: 3px; }
.comm-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.comm-band {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  cursor: pointer;
}
.comm-band.on {
  border-color: rgba(52, 229, 176, 0.55);
  color: var(--mint);
  background: rgba(52, 229, 176, 0.1);
}
.comm-mod {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 194, 77, 0.4);
  background: rgba(255, 194, 77, 0.06);
  text-align: left;
}
.comm-mod p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--silver); }
.comm-feed { display: grid; gap: 10px; margin: 12px 0 16px; }
.comm-post {
  border: 1px solid var(--line);
  background: rgba(52, 229, 176, 0.04);
  padding: 12px 14px;
  text-align: left;
}
.comm-post.is-pending {
  border-style: dashed;
  opacity: 0.9;
  background: transparent;
}
.comm-post-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--hud);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.comm-post-head span { color: var(--mint); }
.comm-post.is-pending .comm-post-head span { color: var(--amber); }
.comm-post p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--silver); }
.comm-composer {
  margin: 8px 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.comm-composer textarea {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0b0d10;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.market-card {
  border: 1px solid var(--line);
  background: rgba(52, 229, 176, 0.04);
  padding: 14px 16px;
  text-align: left;
}
.market-card.is-later {
  border-style: dashed;
  background: transparent;
  opacity: 0.9;
}
.market-card h3 { margin: 6px 0 8px; font-size: 1rem; }
.market-card .lede { margin: 0 0 10px; font-size: 0.9rem; }
.market-price {
  margin: 0 0 10px;
  font-family: var(--hud);
  font-size: 28px;
  color: var(--mint);
  line-height: 1;
}
.market-price small {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 4px;
}
.market-cart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(52, 229, 176, 0.35);
  background: rgba(52, 229, 176, 0.08);
  text-align: left;
}
.market-cart-bar p { margin: 0; }
.market-cart-bar strong { color: var(--mint); }
.checkout-lines { display: grid; gap: 10px; margin: 16px 0; }
.checkout-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.75);
  text-align: left;
}
.checkout-line-body .eyebrow { margin: 0 0 4px; }
.checkout-line-body b { display: block; font-size: 0.95rem; }
.checkout-line-body small { color: var(--muted); }
.checkout-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.checkout-qty-btn {
  min-width: 36px;
  padding: 6px 0;
}
.checkout-line-total { font-family: var(--hud); color: var(--mint); }
.checkout-form {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
  text-align: left;
}
.checkout-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input:not([type]) {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0b0d10;
  color: var(--text);
  font: inherit;
}
.checkout-pay {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--silver) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
}
.checkout-totals {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(52, 229, 176, 0.05);
  text-align: left;
}
.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 14px;
}
.checkout-grand {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--hud);
  letter-spacing: 0.06em;
}
.checkout-grand b { color: var(--mint); font-size: 1.25rem; }
.welcome-status {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(52, 229, 176, 0.35);
  background: rgba(52, 229, 176, 0.06);
  text-align: left;
}
.welcome-status-pill {
  display: inline-block;
  margin: 6px 0 8px;
  padding: 6px 10px;
  font-family: var(--hud);
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(52, 229, 176, 0.45);
  color: var(--mint);
}
.welcome-status-pill[data-s="pending_address"] {
  border-color: rgba(255, 194, 77, 0.5);
  color: var(--amber);
}
.welcome-status-pill[data-s="shipped"],
.welcome-status-pill[data-s="delivered"] {
  border-color: rgba(52, 229, 176, 0.7);
}
.welcome-track { margin-top: 10px; font-size: 14px; }
.welcome-contents {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.welcome-contents ul {
  margin: 8px 0;
  padding-left: 1.1rem;
  color: var(--silver);
  font-size: 14px;
}
.welcome-contents li.is-muted { opacity: 0.55; }
.wb-plan-row { margin: 14px 0; text-align: left; }
.wb-plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.wb-device {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.wb-device-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
@media (min-width: 720px) {
  .wb-device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-device-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wb-device-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wb-device-card h3 { margin: 0; font-size: 1rem; }
.wb-device-card .lede { margin: 0; font-size: 0.85rem; }
.wb-device-card.is-on {
  border-color: rgba(52, 229, 176, 0.65);
  background: rgba(52, 229, 176, 0.08);
}
.wb-device-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wb-warn { color: var(--amber, #ffc24d); }
.sig-link {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.sig-manual { margin: 14px 0; text-align: left; }
.welcome-ops-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  text-align: left;
}
.welcome-ops-body label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.welcome-ops-body input {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0b0d10;
  color: var(--text);
  font: inherit;
}
.checkout-stripe {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(52, 229, 176, 0.35);
  background: rgba(52, 229, 176, 0.06);
  text-align: left;
}
.checkout-stripe .lede { margin: 0 0 4px; font-size: 0.9rem; }
.checkout-stripe-btn { justify-self: start; text-decoration: none; }
.checkout-receipt {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(52, 229, 176, 0.4);
  background: rgba(52, 229, 176, 0.06);
  text-align: left;
}
.checkout-receipt-lines {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.checkout-receipt-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
@media (max-width: 720px) {
  .hub-doors { grid-template-columns: 1fr; }
  .phase2-home .lab-doors { grid-template-columns: 1fr; }
  .pulse-row { grid-template-columns: 1fr; }
  .zone-switch { order: 3; width: 100%; }
  .zone-btn { flex: 1; }
  .study-film-grid { grid-template-columns: 1fr; }
  .air-cities { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .checkout-line { grid-template-columns: 1fr; }
}
.phase2-product .tutor-log p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--silver);
}
.locked-chip { display: inline-block; font-family: var(--hud); font-size: 9px; letter-spacing: 0.14em; color: var(--amber); border: 1px solid rgba(255,194,77,0.4); padding: 5px 9px; margin-bottom: 10px; }
.tiny-log { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 640px; margin: 18px auto 0; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.tiny-log b { color: var(--mint); font-weight: 600; }

/* ---------- carta 360 ---------- */
.player-card {
  margin-top: 16px;
  border: 1px solid rgba(52, 229, 176, 0.28);
  background:
    linear-gradient(180deg, #141c22 0%, #0c1216 38%, #08090B 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.fc-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 16px 18px 14px;
}
.card-ovr { display: flex; align-items: flex-end; gap: 10px; }
.card-ovr strong {
  font-family: var(--hud);
  font-weight: 900;
  font-size: 84px;
  line-height: 0.8;
  color: var(--mint);
  text-shadow: 0 0 22px rgba(52, 229, 176, 0.35);
}
.card-ovr span, .card-ovr small {
  display: block;
  font-family: var(--hud);
  letter-spacing: 0.16em;
}
.card-ovr span { font-size: 13px; color: var(--mint); }
.card-ovr small { margin-top: 4px; font-size: 9px; color: var(--muted); }
.name-line { display: flex; flex-direction: column; gap: 2px; }
.name-line span { font-family: var(--hud); font-size: 9px; letter-spacing: 0.18em; color: var(--mint); }
.fc-name {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--text);
  font-family: var(--hud);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0 2px;
}
.fc-name::placeholder { color: rgba(234, 246, 242, 0.45); }
.fc-name:focus { outline: none; border-bottom-color: var(--mint); }
.fc-meta { display: flex; gap: 18px; margin-top: 10px; }
.fc-meta b, .fc-meta i { display: block; font-style: normal; font-family: var(--hud); }
.fc-meta b { font-size: 15px; color: var(--text); letter-spacing: 0.04em; }
.fc-meta i { margin-top: 2px; font-size: 8px; letter-spacing: 0.16em; color: var(--muted); }
.fc-mark {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  font-family: var(--hud);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 16px rgba(52, 229, 176, 0.12);
}
.fc-sheet { padding: 4px 18px 8px; border-top: 1px solid rgba(52, 229, 176, 0.16); }
.fc-kicker {
  margin: 12px 0 4px;
  font-family: var(--hud);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text);
}
.fc-kicker span { margin-left: 8px; color: var(--muted); font-weight: 500; }
.player-card .attrs { max-width: none; margin: 0; gap: 0; }
.player-card .attr-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(234, 246, 242, 0.06);
}
.player-card .names b {
  display: block;
  font-family: var(--hud);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.player-card .names span {
  display: block;
  margin-top: 2px;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
}
.player-card .attr-row em {
  font-family: var(--hud);
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  color: var(--mint);
}
.player-card .bar { grid-column: 1 / -1; height: 3px; margin-top: 6px; }
.fc-note {
  padding: 8px 18px 14px;
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- player profile ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 16px; }
.pcell { border: 1px solid var(--line-soft); background: rgba(10,14,20,0.65); padding: 14px; }
.pcell span { display: block; font-family: var(--hud); font-size: 9px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.pcell strong { font-family: var(--hud); font-size: 26px; color: var(--mint); }
.pcell small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }

.list { display: grid; gap: 7px; margin-top: 12px; }
.list-item { border: 1px solid var(--line-soft); background: rgba(255,255,255,0.02); padding: 11px 13px; font-size: 13px; line-height: 1.5; }
.list-item b { font-family: var(--hud); font-size: 9px; letter-spacing: 0.12em; color: var(--mint); display: block; margin-bottom: 4px; }
.list-empty { font-size: 12.5px; color: var(--muted); font-style: italic; padding: 10px 0; }

/* ---------- learning engine ---------- */
.pipe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 16px; }

.pipe div {
  border: 1px solid var(--line-soft);
  background: rgba(10,14,20,0.6);
  padding: 11px 6px;
  text-align: center;
  font-family: var(--hud);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pipe div.hot { color: var(--mint); border-color: var(--line); background: rgba(52,229,176,0.07); }
.pipe div em { font-style: normal; display: block; font-size: 15px; color: var(--mint); margin-top: 5px; }

.engine-log { display: grid; gap: 6px; margin-top: 14px; max-height: 420px; overflow-y: auto; }

.elog {
  border-left: 2px solid var(--line);
  background: rgba(255,255,255,0.02);
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 11px;
  align-items: baseline;
}

.elog b { font-family: var(--hud); font-size: 8.5px; letter-spacing: 0.1em; color: var(--mint); }
.elog.stage-decision b { color: var(--amber); }
.elog.stage-feedback b { color: #8cc0ff; }
.elog.stage-field b { color: #6ea8ff; }
.elog.stage-data b { color: #c58aff; }
.elog span { color: var(--muted); }
.elog span strong { color: var(--text); font-weight: 600; }

.table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.table th, .table td { border: 1px solid var(--line-soft); padding: 9px 11px; text-align: left; vertical-align: top; }
.table th { font-family: var(--hud); font-size: 9px; letter-spacing: 0.1em; color: var(--mint); font-weight: 500; }
.table td { color: var(--muted); line-height: 1.5; }
.table td b { color: var(--text); font-weight: 600; }

/* ---------- overlay / onboarding ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(3,5,7,0.93); display: grid; place-items: center; padding: 20px; }
.overlay[hidden] { display: none !important; }

.overlay-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px 28px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 0 60px rgba(52,229,176,0.12);
}

.ob-dots { display: flex; gap: 6px; margin-top: 18px; }
.ob-dots i { width: 26px; height: 4px; background: rgba(52,229,176,0.2); display: block; }
.ob-dots i.on { background: var(--mint); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--hud); font-size: 8.5px; letter-spacing: 0.12em; color: rgba(138,163,155,0.6); flex-wrap: wrap; }

/* ---------- películas y escenas ---------- */
.film-stage { margin: 8px 0 14px; }
.film {
  position: relative; height: 220px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px;
  background: #070b10;
}
.film-clip { position: absolute; inset: 0; }
.film-cap { margin: 10px 2px 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); min-height: 2.6em; }

.film { height: auto; overflow: visible; background: transparent; border: 0; }
.story {
  display: grid;
  grid-template-columns: 108px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 14px;
  align-items: center;
  min-height: 168px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(circle at 18% 40%, rgba(52,229,176,0.1), #0c1218 58%);
}
.story-kai { grid-row: 1 / span 2; width: 108px; height: 128px; }
.story-art { font-size: 64px; line-height: 1; text-align: center; animation: story-pop 420ms ease; }
.story-say b {
  display: block; font-family: var(--hud); font-size: 12px; letter-spacing: 0.12em; color: var(--mint);
}
.story-say p { margin: 6px 0 0; font-size: 18px; line-height: 1.4; color: var(--text); }
@keyframes story-pop { from { transform: scale(0.86); } to { transform: none; } }
.anchor-play.hit .story-art { animation: squeeze 420ms ease; }

.anchor-play { height: auto; overflow: visible; background: none; border: 0; margin: 8px 0; }

.proto-lead { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.proto-board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proto-item {
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 10px; text-align: center;
  background: rgba(255,59,59,0.06);
}
.proto-item span { display: block; font-size: 32px; line-height: 1; }
.proto-item b { display: block; margin-top: 6px; font-family: var(--hud); font-size: 11px; letter-spacing: 0.12em; }
.proto-item em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; color: var(--alert); }
.proto-item.good { background: rgba(52,229,176,0.1); border-color: var(--mint); }
.proto-item.good em { color: var(--mint); }

.room-choice {
  position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%);
  font-size: 64px; z-index: 2; line-height: 1;
}
.room[data-shot="wired"] .room-choice::before { content: "🌙"; }
.room[data-shot="game"] .room-choice::before { content: "🎮"; }
.room[data-shot="reels"] .room-choice::before { content: "📱"; }
.room[data-shot="tablet"] .room-choice::before { content: "📋"; }
.room[data-shot="protocol"] .room-choice::before { content: "😴"; }
.room-caption {
  position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 3; margin: 0;
  padding: 8px 10px; border-radius: 10px; background: rgba(8,9,11,0.86);
  font-size: 15px; line-height: 1.35;
}
.shots .room-caption, .shots .room-kai { display: none; }
.shots .room-choice { font-size: 28px; top: 42%; }

.pass-caption { margin: 8px 0 0; font-size: 17px; line-height: 1.4; }
.visor-say { margin: 8px 0 0; font-size: 16px; line-height: 1.4; }

.drill { display: grid; gap: 8px; margin-top: 12px; }
.drill-step {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  text-align: left; width: 100%;
  border: 1px solid var(--line-soft); background: rgba(10,14,20,0.7);
  color: var(--text); font-family: var(--body); font-size: 16px;
  padding: 14px 16px; cursor: pointer; border-radius: 14px;
}
.drill-step .ic { font-size: 26px; line-height: 1; }
.drill-step em { font-style: normal; font-family: var(--hud); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.drill-step:hover:not(:disabled) { border-color: var(--mint); }
.drill-step.on { border-color: var(--mint); background: rgba(52,229,176,0.1); }
.drill-step.on em { color: var(--mint); }
.drill-step:disabled { cursor: default; }
.film-cap b { display: block; color: var(--text); font-family: var(--hud); font-size: 12px; letter-spacing: 0.12em; margin-bottom: 4px; font-weight: 700; }

.film .ring {
  position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px;
  border: 1px solid rgba(52,229,176,0.45); border-radius: 50%;
  animation: ring-out 2.4s ease-out infinite;
}
.film .ring.d2 { animation-delay: 0.8s; }
.film .ring.d3 { animation-delay: 1.6s; }
@keyframes ring-out { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }

.film .sky { position: absolute; inset: 0; background: linear-gradient(#101820, #070b10 60%); }
.film .moon {
  position: absolute; right: 28px; top: 22px; width: 22px; height: 22px; border-radius: 50%;
  background: #e7fff6; box-shadow: 0 0 18px rgba(52,229,176,0.45);
}
.film .head {
  position: absolute; left: 50%; top: 38%; width: 108px; height: 120px; margin-left: -54px;
  border: 2px solid var(--mint); border-radius: 54px 54px 42px 42px;
  background: rgba(52,229,176,0.08);
  box-shadow: inset 0 0 30px rgba(52,229,176,0.28), 0 0 24px rgba(52,229,176,0.15);
}
.film .fog {
  position: absolute; left: 18%; right: 18%; bottom: 28px; height: 28px; border-radius: 20px;
  background: rgba(180,190,200,0.35); animation: fog-out 2.8s ease forwards;
}
@keyframes fog-out { to { opacity: 0; transform: translateY(16px); } }
.film .play {
  position: absolute; width: 46px; height: 30px; border-radius: 5px; background: var(--mint);
  top: 22px; animation: file-in 2.6s ease infinite;
  box-shadow: inset 0 -8px 0 rgba(4,19,14,0.25);
}
.film .play.a { left: 12%; animation-delay: 0s; }
.film .play.b { left: 22%; animation-delay: 0.45s; background: #9cf6dc; }
.film .play.c { right: 14%; left: auto; animation-delay: 0.9s; }
@keyframes file-in {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  70% { transform: translate(40px, 70px) scale(0.4); opacity: 1; }
  100% { transform: translate(70px, 90px) scale(0.2); opacity: 0; }
}

.film .lane { position: absolute; left: 10%; right: 10%; top: 46%; height: 2px; background: rgba(52,229,176,0.25); }
.film .runner {
  position: absolute; top: 38%; width: 16px; height: 16px; border-radius: 50%;
}
.film .runner.fast { background: var(--mint); animation: dash 1.6s ease-in-out infinite; }
.film .runner.late { background: rgba(234,246,242,0.35); animation: dash 1.6s ease-in-out infinite; animation-delay: 0.3s; }
.film .ball {
  position: absolute; top: 34%; width: 10px; height: 10px; border-radius: 50%; background: #f4f1c8;
  animation: dash 1.6s linear infinite;
}
.film .gap {
  position: absolute; right: 12%; top: 18%; font-family: var(--hud); font-size: 22px; color: var(--amber);
}
@keyframes dash { from { left: 12%; } to { left: 78%; } }

.film .muscle {
  position: absolute; left: 18%; top: 42%; width: 64%; height: 16px; border-radius: 10px;
  background: rgba(255,59,59,0.35);
}
.film .crack {
  position: absolute; left: 48%; top: 30%; width: 2px; height: 40%; background: var(--alert);
  animation: crack-pulse 1.4s ease infinite;
}
.film .shield {
  position: absolute; left: 50%; top: 50%; width: 90px; height: 110px; margin: -55px 0 0 -45px;
  border: 2px solid var(--mint); border-radius: 46px 46px 24px 24px;
  box-shadow: 0 0 24px rgba(52,229,176,0.35);
  animation: shield-in 2s ease infinite;
}
@keyframes crack-pulse { 50% { opacity: 0.2; } }
@keyframes shield-in { 0% { transform: scale(1.4); opacity: 0; } 40%, 80% { transform: none; opacity: 1; } 100% { opacity: 0.3; } }

.film .pitchline { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, transparent 0 42px, rgba(52,229,176,0.06) 42px 43px),
  linear-gradient(#0d1a16, #07110f); }
.film .player, .film .looker {
  position: absolute; left: 42%; top: 48%; width: 18px; height: 18px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 6px rgba(52,229,176,0.15);
}
.film .player.hide { animation: shrink-hide 2.4s ease infinite; }
.film .shadow { position: absolute; left: 30%; top: 62%; width: 80px; height: 16px; border-radius: 50%; background: rgba(0,0,0,0.45); animation: shadow-grow 2.4s ease infinite; }
.film .loose, .film .offer, .film .nextball {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #f4f1c8;
}
.film .loose { left: 68%; top: 30%; }
.film .player.down { animation: slump 2s ease infinite; background: var(--amber); }
.film .offer { left: 18%; top: 40%; animation: offer-in 2s ease infinite; }
.film .player.up { animation: snap-up 2.2s ease infinite; }
.film .flash { position: absolute; inset: 0; background: rgba(52,229,176,0.18); animation: flash 2.2s ease infinite; }
.film .nextball { left: 20%; top: 55%; animation: play-on 2.2s ease infinite; }
@keyframes shrink-hide { 40%, 100% { transform: scale(0.55) translateY(10px); } }
@keyframes shadow-grow { 40%, 100% { transform: scale(1.6); opacity: 0.8; } }
@keyframes slump { 50%, 100% { transform: translateY(14px) scaleY(0.7); } }
@keyframes offer-in { 0% { left: 8%; opacity: 0; } 40%, 100% { left: 24%; opacity: 1; } }
@keyframes snap-up { 0%, 30% { transform: translateY(12px); } 45%, 100% { transform: none; } }
@keyframes flash { 0%, 35% { opacity: 0; } 45% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes play-on { 0%, 40% { left: 22%; top: 58%; } 100% { left: 78%; top: 22%; } }

.film .arc {
  position: absolute; left: 46%; top: 52%; width: 70px; height: 70px; margin: -35px 0 0 0;
  border: 2px solid transparent; border-top-color: var(--mint); border-radius: 50%;
  animation: look-sweep 2.8s linear infinite;
}
.film .arc.b { width: 100px; height: 100px; margin: -50px 0 0 -15px; animation-delay: 0.4s; }
.film .arc.c { width: 130px; height: 130px; margin: -65px 0 0 -30px; animation-delay: 0.8s; }
.film .arc.d { width: 160px; height: 160px; margin: -80px 0 0 -45px; animation-delay: 1.2s; }
@keyframes look-sweep { to { transform: rotate(360deg); } }
.film .cone {
  position: absolute; left: 46%; top: 18%; width: 0; height: 0;
  border-left: 28px solid transparent; border-right: 28px solid transparent;
  border-bottom: 120px solid rgba(255,194,77,0.18);
}
.film .looker.still { box-shadow: none; background: var(--amber); }
.film .thief {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--alert);
  animation: steal 1.8s ease infinite;
}
@keyframes steal { from { left: 78%; top: 22%; } to { left: 52%; top: 46%; } }

.film .beat {
  position: absolute; top: 36%; width: 22%; height: 64px; border: 1px solid var(--line);
  border-radius: 12px; opacity: 0.25;
}
.film .beat.scan { left: 10%; animation: beat 2.4s ease infinite; }
.film .beat.blind { left: 39%; animation: beat 2.4s ease infinite; animation-delay: 0.8s; border-color: var(--alert); }
.film .beat.angle { left: 68%; animation: beat 2.4s ease infinite; animation-delay: 1.6s; }
.film .beat.scan::after, .film .beat.blind::after, .film .beat.angle::after {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--hud); font-size: 11px; color: var(--mint);
}
.film .beat.scan::after { content: "SCAN"; }
.film .beat.blind::after { content: "CIEGO"; color: var(--alert); }
html[lang="en"] .film .beat.blind::after { content: "BLIND"; }
.film .beat.angle::after { content: "45°"; }
@keyframes beat { 30%, 55% { opacity: 1; transform: translateY(-6px); } }

.proto { margin: 4px 0 14px; }
.proto-room {
  position: relative; height: 180px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(#1c2838, #10161e);
}
.plight {
  position: absolute; left: 18%; top: 18%; width: 16px; height: 16px; border-radius: 50%; background: #ffc24d;
  box-shadow: 0 0 40px 16px rgba(255,194,77,0.55);
  opacity: calc(1 - var(--dark, 0));
}
.pfrost {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(170,220,255,0.28), transparent 55%);
  opacity: var(--cool, 0);
}
.pbed {
  position: absolute; left: 8%; right: 8%; bottom: 16px; height: 46px; border-radius: 10px 10px 4px 4px;
  background: #1a2420; border: 1px solid rgba(52,229,176,0.25);
}
.pphone {
  position: absolute; right: 18%; bottom: 70px; width: 22px; height: 36px; border-radius: 4px;
  background: #7eb6ff; box-shadow: 0 0 16px rgba(126,182,255,0.8);
  opacity: calc(1 - var(--air, 0));
}
.pplate {
  position: absolute; left: 16%; bottom: 28px; width: 34px; height: 10px; border-radius: 8px; background: #c9a27a;
  transform: translateX(calc(var(--meal, 0) * -40px)) translateY(calc(var(--meal, 0) * -48px));
  opacity: calc(1 - var(--meal, 0) * 0.85);
}
.plock {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.8);
  font-family: var(--hud); letter-spacing: 0.16em; color: #04130e; background: var(--mint);
  padding: 6px 10px; border-radius: 8px; opacity: 0;
}
.proto.locked { box-shadow: inset 0 0 0 1px rgba(52,229,176,0.4); }
.proto.locked .proto-room { background: linear-gradient(#0c1a22, #070b10); }
.proto.locked .plock { opacity: 1; animation: pop-in 280ms ease; }

.anchor-play {
  position: relative; height: 160px; margin: 12px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(#0d1a16, #07110f);
}
.aglow {
  position: absolute; left: 50%; top: 42%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,229,176,0.35), transparent 70%); opacity: 0;
}
.ahead, .atorso { position: absolute; left: 50%; background: #d7fff1; border-radius: 50%; }
.ahead { top: 36px; width: 28px; height: 28px; margin-left: -14px; }
.atorso { top: 70px; width: 36px; height: 48px; margin-left: -18px; border-radius: 16px; }
.aarm { position: absolute; left: 58%; top: 78px; width: 34px; height: 8px; background: #d7fff1; border-radius: 8px; transform-origin: left center; }
.afist, .agrass, .ashin { position: absolute; opacity: 0; font-size: 22px; }
.afist { left: 68%; top: 64px; }
.agrass { left: 46%; top: 118px; }
.ashin { left: 38%; top: 108px; }
.anchor-play[data-gesture="puno"] .afist,
.anchor-play[data-gesture="cesped"] .agrass,
.anchor-play[data-gesture="espinillera"] .ashin { opacity: 1; }
.anchor-play[data-gesture="puno"] .aarm { transform: rotate(-20deg); }
.anchor-play[data-gesture="cesped"] .aarm { transform: rotate(50deg); }
.anchor-play[data-gesture="espinillera"] .aarm { transform: rotate(28deg); }
.anchor-play.hit .aglow { animation: glow-pop 700ms ease; }
.anchor-play.hit[data-gesture="puno"] .afist { animation: squeeze 700ms ease; }
@keyframes glow-pop { 0% { opacity: 0; transform: scale(0.6); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes squeeze { 40% { transform: scale(1.25); } }

.mini-pitch {
  position: relative; height: 180px; margin: 0 0 12px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(52,229,176,0.05) 36px 37px),
    linear-gradient(#0d1a16, #07110f);
}
.mp-me, .mp-ball, .mp-press, .mp-mate, .mp-def { position: absolute; border-radius: 50%; }
.mp-me { width: 16px; height: 16px; background: var(--mint); left: 42%; top: 58%; box-shadow: 0 0 0 5px rgba(52,229,176,0.18); }
.mp-ball { width: 10px; height: 10px; background: #f4f1c8; left: 18%; top: 78%; animation: arrive 2.2s ease-in infinite; }
.mp-press { width: 12px; height: 12px; background: var(--alert); left: 58%; top: 28%; }
.mp-mate { width: 12px; height: 12px; background: #9cf6dc; left: 76%; top: 62%; }
.mp-def { width: 12px; height: 12px; background: var(--alert); left: 34%; top: 40%; opacity: 0.35; }
.mp-lane { position: absolute; height: 2px; background: rgba(52,229,176,0.15); }
.mp-lane.in { left: 44%; top: 48%; width: 18%; transform: rotate(-30deg); }
.mp-lane.out { left: 50%; top: 62%; width: 24%; }
.mp-scan {
  position: absolute; left: 44%; top: 60%; width: 54px; height: 54px; margin: -27px 0 0 0;
  border: 2px solid transparent; border-top-color: rgba(52,229,176,0.7); border-radius: 50%; opacity: 0;
}
.mini-pitch[data-play="0"] .mp-scan.a,
.mini-pitch[data-play="0"] .mp-scan.b { opacity: 1; animation: look-sweep 2.4s linear infinite; }
.mini-pitch[data-play="0"] .mp-lane.out { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.mini-pitch[data-play="0"] .mp-mate { animation: run-out 1.6s ease infinite; }
.mini-pitch[data-play="1"] .mp-scan.a { opacity: 1; }
.mini-pitch[data-play="1"] .mp-ball { animation-duration: 4.2s; }
.mini-pitch[data-play="2"] .mp-scan { opacity: 1; }
.mini-pitch[data-play="2"] .mp-def { opacity: 1; }
.mini-pitch[data-play="2"] .mp-lane.in { background: var(--alert); }
.mini-pitch[data-play="2"] .mp-lane.out { background: var(--mint); }
.mini-pitch[data-play="2"] .mp-mate { left: 80%; animation: run-out 1.4s ease infinite; }
@keyframes arrive { from { left: 12%; top: 86%; } to { left: 40%; top: 62%; } }
@keyframes run-out { 50% { transform: translate(10px, -8px); } }

.vbody { position: absolute; left: 50%; top: 52%; width: 54px; height: 36px; margin: -18px 0 0 -27px; pointer-events: none; transition: transform 320ms ease; }
.vshoulders { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 12px; border-radius: 8px; background: var(--mint); }
.vhead { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #d7fff1; }
.vscan {
  position: absolute; left: 50%; top: 18px; width: 90px; height: 2px; margin-left: -2px;
  background: linear-gradient(90deg, var(--mint), transparent);
  transform-origin: 0 50%; animation: look-sweep 3s linear infinite; opacity: 0.35;
}
.pitch[data-scans="1"] .vscan, .pitch[data-scans="2"] .vscan { opacity: 0.7; }
.pitch[data-scans="3"] .vscan, .pitch[data-scans="4"] .vscan { opacity: 1; width: 120px; }
.vbody[data-shape="frontal"] { transform: rotate(28deg); }
.vbody[data-shape="perfil45"] { transform: rotate(-42deg); }
.vbody[data-shape="espaldas"] { transform: rotate(168deg); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; }
  .tutor-log { max-height: 160px; }
  .view { min-height: 0; }
  .pipe { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .side { grid-template-columns: 1fr; }
  .hud { gap: 10px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .orient { grid-template-columns: 1fr 1fr; }
  .nav { grid-template-columns: repeat(4, 1fr); }
  .elog { grid-template-columns: 1fr; gap: 3px; }
  .two-state { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .app { padding: 10px 10px 30px; }
  .view { padding: 18px 15px 22px; }
  .hud { gap: 10px; }
  .nav { grid-template-columns: repeat(2, 1fr); }
  .orient { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .actions { flex-direction: column; align-items: stretch; }
  .tutor-input { flex-direction: column; }
  .star { width: 100%; height: 42px; }
  .stars { flex: 1; }
  .metric { flex-direction: column; align-items: stretch; gap: 7px; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .fc-top { grid-template-columns: 1fr auto; }
  .card-ovr { grid-column: 1 / -1; }
  .seq-step { grid-template-columns: auto 1fr; }
  .seq-step .flag { grid-column: 2; }
  .pitch { height: 270px; }
  .next-action { flex-wrap: wrap; }
  .na-text { width: 100%; order: 3; }
  .shots { grid-template-columns: 1fr; }
  .room { height: 220px; }
  .film { height: auto; }
  .story { grid-template-columns: 78px 1fr; min-height: 0; }
  .story-kai { width: 78px; height: 96px; }
  .story-art { font-size: 42px; }
  .story-say p { font-size: 16px; }
  .proto-board { grid-template-columns: 1fr; }
  .cards { gap: 8px; }
}

/* ---------- entrada en primera persona ---------- */
.entrance-shot { position: relative; overflow: hidden; background: #08090B; min-height: 0; }
.entrance-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 700ms ease;
}
.entrance-shot img.on { opacity: 1; animation: entrance-ken 3.8s ease-out forwards; }
@keyframes entrance-ken {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.entrance {
  position: fixed; inset: 0; z-index: 60;
  background: #08090B;
  display: grid;
  grid-template-rows: 1fr auto;
  animation: entrance-in 280ms ease;
}
.entrance.out { animation: entrance-out 320ms ease forwards; }
@keyframes entrance-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes entrance-out { to { opacity: 0; } }

.fp { position: relative; overflow: hidden; background: #08090B; }
.fp-sky, .fp-ground { position: absolute; }
.fp-sky { inset: 0 0 46% 0; }
.fp-ground { left: -20%; right: -20%; bottom: 0; height: 54%; }

.fp[data-scene="pitch"] .fp-sky {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(52, 229, 176, 0.45), transparent 58%),
    linear-gradient(#121820, #0c241c);
}
.fp[data-scene="pitch"] .fp-ground {
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(244, 247, 246, 0.85) 49.4% 50.6%, transparent 50.6%),
    repeating-linear-gradient(#1c7a4e 0 34px, #145c3a 34px 68px);
  animation: fp-rush 0.7s linear infinite;
}
.fp[data-scene="locker"] .fp-sky {
  inset: 0;
  background: linear-gradient(#1a222c 0 58%, transparent 58%);
}
.fp[data-scene="locker"] .fp-ground {
  height: 42%;
  background:
    linear-gradient(90deg, rgba(234, 246, 242, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(234, 246, 242, 0.08) 1px, transparent 1px),
    #242a32;
  background-size: 90px 56px;
  animation: fp-rush 0.8s linear infinite;
}
.fp[data-scene="bench"] .fp-sky {
  background:
    radial-gradient(ellipse at 70% -20%, rgba(52, 229, 176, 0.28), transparent 50%),
    linear-gradient(#121820, #0e1c16);
}
.fp[data-scene="bench"] .fp-ground {
  background:
    linear-gradient(90deg, #161b22 0 46%, #f4f7f6 46% 47.4%, #1c7a4e 47.4% 100%);
  background-size: 100% 70px;
  animation: fp-rush 0.7s linear infinite;
}
@keyframes fp-rush { to { background-position: 0 70px, 0 70px; } }

.goal, .ball, .cone, .row, .doorway, .dugout { display: none; position: absolute; }
.fp[data-scene="pitch"] .goal,
.fp[data-scene="pitch"] .ball,
.fp[data-scene="pitch"] .cone,
.fp[data-scene="locker"] .doorway { display: block; }
.fp[data-scene="locker"] .row,
.fp[data-scene="bench"] .dugout { display: flex; }

.goal {
  left: 50%; top: 16%; width: 320px; height: 180px; margin-left: -160px;
  animation: fp-approach 3.2s ease-out forwards;
}
.goal .post, .goal .bar { position: absolute; background: #f4f7f6; }
.goal .post { top: 0; bottom: 0; width: 10px; }
.goal .post.l { left: 0; }
.goal .post.r { right: 0; }
.goal .bar { left: 0; right: 0; top: 0; height: 10px; }
.goal .net {
  position: absolute; inset: 10px 10px 0 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(244, 247, 246, 0.35) 16px 17px),
    repeating-linear-gradient(transparent 0 16px, rgba(244, 247, 246, 0.35) 16px 17px);
}
.ball {
  left: 62%; top: 46%; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fff, #e7e2c0 55%, #8d8864);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
  animation: fp-approach 3.2s ease-out forwards;
}
.cone {
  width: 0; height: 0; bottom: 38%;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 40px solid #ffc24d;
  animation: fp-approach 3.2s ease-out forwards;
}
.cone.a { left: 18%; }
.cone.b { right: 16%; }
@keyframes fp-approach {
  from { transform: scale(0.4) translateY(40px); opacity: 0.55; }
  to { transform: scale(1.05) translateY(0); opacity: 1; }
}

.row {
  left: 50%; top: 12%; gap: 12px;
  transform: translateX(-50%);
  animation: fp-row 3.2s ease-out forwards;
}
@keyframes fp-row {
  from { transform: translateX(-50%) scale(0.72); }
  to { transform: translateX(-50%) scale(1); }
}
.cab {
  position: relative;
  width: 92px; height: 300px;
  background: linear-gradient(#31404e, #1c2630);
  border: 2px solid rgba(52, 229, 176, 0.55);
  border-radius: 8px;
}
.cab span {
  position: absolute; top: 14px; left: 0; right: 0;
  text-align: center; font-family: var(--hud); color: var(--mint); font-size: 13px;
}
.cab::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 46%; height: 2px;
  background: rgba(52, 229, 176, 0.35);
}
.jersey {
  position: absolute; left: 16px; top: 78px; width: 56px; height: 62px;
  background: var(--mint); color: #083026;
  border-radius: 8px 8px 3px 3px;
  font-family: var(--hud); font-weight: 700; font-style: normal;
  display: grid; place-items: center; font-size: 16px;
}
.jersey::before {
  content: ""; position: absolute; left: -12px; right: -12px; top: 8px; height: 14px;
  background: var(--mint); border-radius: 4px;
}
.doorway {
  left: 50%; top: 6%; width: 240px; height: 360px; margin-left: -120px;
  border: 12px solid rgba(52, 229, 176, 0.85); border-bottom: 0;
  animation: fp-through 3.2s ease-in forwards;
}
.doorway::after {
  content: ""; position: absolute; right: 22px; top: 48%;
  width: 14px; height: 14px; border-radius: 50%; background: var(--mint);
}
@keyframes fp-through {
  from { transform: scale(0.75); opacity: 1; }
  to { transform: scale(2.6); opacity: 0; }
}

.dugout {
  left: 7%; right: 46%; bottom: 26%; height: 96px;
  align-items: flex-end; gap: 18px;
  padding: 0 20px 16px;
  background: linear-gradient(#24323c, #141b22);
  border: 2px solid rgba(52, 229, 176, 0.4);
  border-radius: 12px;
  animation: fp-approach 3.2s ease-out forwards;
}
.seat { flex: 1; height: 16px; background: var(--mint); border-radius: 4px; }
.bottle {
  position: absolute; right: -36px; bottom: 18px;
  width: 18px; height: 46px; background: #ffc24d; border-radius: 5px 5px 3px 3px;
}
.bottle::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: -10px; height: 10px;
  background: #f4f7f6; border-radius: 2px;
}

.cleat {
  position: absolute; bottom: 7%; width: 96px; height: 34px;
  background: #e7fff6; border-radius: 10px 30px 8px 10px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}
.cleat::before {
  content: ""; position: absolute; left: 10px; bottom: 18px;
  width: 30px; height: 26px; background: #e7fff6; border-radius: 6px 6px 0 0;
}
.cleat::after {
  content: ""; position: absolute; left: 10px; right: 14px; bottom: -7px; height: 7px;
  background: repeating-linear-gradient(90deg, #08090B 0 7px, transparent 7px 16px);
}
.cleat.left { left: 30%; animation: fp-step 0.46s ease-in-out infinite; }
.cleat.right { right: 30%; animation: fp-step 0.46s ease-in-out infinite 0.23s; }
@keyframes fp-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.entrance-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px 20px; border-top: 1px solid var(--line);
  background: #08090B;
}
.entrance .eyebrow {
  margin: 0;
  font-family: var(--hud);
  font-weight: 700;
  letter-spacing: 0.24em;
}
.entrance-line {
  flex: 1;
  min-width: 200px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}
.entrance-skip {
  font-family: var(--hud);
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* ---------- lección: CORE / DEEP / LAB ---------- */
.lesson-xp { margin-bottom: 14px; }
.lesson-xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lesson-xp-top span, .lesson-xp-top em {
  font-family: var(--hud); font-style: normal; font-size: 10px; letter-spacing: 0.14em; color: var(--muted);
}
.lesson-xp-top b { font-family: var(--hud); color: var(--silver); letter-spacing: 0.12em; font-size: 13px; }
.lesson-bar { height: 6px; margin: 8px 0; background: rgba(201, 209, 219, 0.15); }
.lesson-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--silver), var(--mint)); }

.lesson-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.lesson-tab {
  font-family: var(--hud); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line-soft); padding: 10px 8px; cursor: pointer;
}
.lesson-tab.on { color: #04130e; background: var(--mint); border-color: var(--mint); }
.lesson-panel[hidden] { display: none; }
.lesson-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.hud-card {
  border: 1px solid var(--line-soft); background: var(--panel);
  padding: 12px 14px; margin-bottom: 8px;
}
.hud-card span {
  display: block; font-family: var(--hud); font-size: 10px; letter-spacing: 0.14em; color: var(--mint); margin-bottom: 6px;
}
.hud-card p { font-size: 16px; line-height: 1.45; }
.hud-card.silver { border-color: rgba(201, 209, 219, 0.45); }
.hud-card.silver span { color: var(--silver); }

.dive-q { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
.dive-q summary { cursor: pointer; font-family: var(--hud); font-size: 12px; letter-spacing: 0.08em; list-style: none; }
.dive-q summary::-webkit-details-marker { display: none; }
.dive-q summary b { color: var(--silver); margin-right: 8px; }
.dive-q p { margin: 8px 0 4px 28px; font-size: 15px; line-height: 1.45; color: var(--text); }
.bat-lev .chip.on { color: #04130e; background: var(--mint); border-color: var(--mint); }

/* ---------- escenas ---------- */
.cine-player { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #05070a; margin-top: 8px; }
.cine-stage { position: relative; aspect-ratio: 16 / 9; background: #07090d; overflow: hidden; }
.cine-shot { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.cine-shot.on { opacity: 1; }
.cine-shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.cine-shot.on img { transform: scale(1.06); transition: transform 4.2s linear; }
.cine-hud, .cine-cap, .cine-clock, .cine-days { position: absolute; z-index: 2; }
.cine-hud {
  top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 12px 14px;
  font-family: var(--hud); font-size: 10px; letter-spacing: 0.16em; color: white; text-shadow: 0 1px 8px #000;
}
.cine-rec { color: #ffb4b4; }
.cine-rec::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%;
  background: #ff5a5a; animation: blink 1.1s steps(2) infinite;
}
.cine-clock {
  top: 40px; right: 14px; font-family: var(--hud); font-size: 28px; color: var(--mint);
  text-shadow: 0 2px 12px #000;
}
.cine-clock small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 0.16em; color: var(--silver); }
.cine-days { left: 0; right: 0; top: 12px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.cine-days b { text-align: center; font-family: var(--hud); font-size: 12px; letter-spacing: 0.14em; color: white; text-shadow: 0 2px 10px #000; }
.cine-days b.on { color: var(--mint); }
.cine-stage[data-beat] .cine-hud span:first-child { transition: opacity 200ms; }
.cine-days:not([hidden]) ~ .cine-hud span:first-child,
.cine-stage:has(.cine-days:not([hidden])) .cine-hud span:first-child { opacity: 0; }
.cine-cap {
  left: 0; right: 0; bottom: 0; padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
}
.cine-cap b { display: block; font-family: var(--hud); font-size: 15px; letter-spacing: 0.03em; color: white; }
.cine-cap span { display: block; margin-top: 4px; font-size: 13px; color: rgba(234,246,242,0.75); }
.cine-bigplay {
  position: absolute; z-index: 3; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 78px; height: 78px; padding: 0;
  color: #03150f; background: var(--mint); border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(52, 229, 176, 0.18), 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cine-bigplay svg { width: 34px; height: 34px; margin-left: 4px; }
.cine-bigplay:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 14px rgba(52, 229, 176, 0.22), 0 10px 30px rgba(0, 0, 0, 0.45); }
.cine-bigplay:focus-visible, .cine-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.cine-bigplay[hidden] { display: none; }
@media (max-width: 640px) {
  .cine-bigplay { width: 60px; height: 60px; box-shadow: 0 0 0 7px rgba(52, 229, 176, 0.18), 0 8px 24px rgba(0, 0, 0, 0.45); }
  .cine-bigplay svg { width: 26px; height: 26px; margin-left: 3px; }
}
.cine-clock[hidden], .cine-days[hidden], .cine-ask[hidden] { display: none !important; }
.cine-transport { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; background: #0b0e12; }
.cine-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 0 0 auto; min-width: 36px; height: 34px; padding: 0 9px;
  font-family: var(--hud); font-size: 10px; letter-spacing: 0.14em; color: #03150f;
  background: var(--mint); border: 0; border-radius: 8px; cursor: pointer;
}
.cine-toggle svg { width: 18px; height: 18px; flex: 0 0 auto; }
.cine-toggle.is-again { padding: 0 12px 0 10px; }
.cine-toggle.is-again svg { width: 16px; height: 16px; }
.cine-scrub { flex: 1; height: 4px; background: rgba(234,246,242,0.12); border-radius: 4px; overflow: hidden; }
.cine-scrub i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--silver), var(--mint)); }
.cine-transport em { font-family: var(--hud); font-style: normal; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.cine-ask { margin-top: 16px; }
.cine-say[hidden], .cine-fairy[hidden] { display: none !important; }
.cine-stage.has-fairy .cine-clock { right: auto; left: 14px; }
.cine-say {
  position: absolute; z-index: 3; top: 13%; max-width: 52%;
  padding: 10px 14px 12px; border-radius: 16px;
  background: rgba(8, 9, 11, 0.86); backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  animation: say-in 260ms ease-out;
}
.cine-say em {
  display: block; margin-bottom: 4px; font-family: var(--hud); font-style: normal;
  font-size: 9.5px; letter-spacing: 0.16em;
}
.cine-say p { margin: 0; font-size: 14.5px; line-height: 1.45; color: #f4f1ea; min-height: 2.9em; }
.cine-say::after {
  content: ""; position: absolute; bottom: -9px; width: 16px; height: 16px;
  background: inherit; transform: rotate(45deg);
}
.cine-say.is-player { left: 4%; border: 1px solid rgba(201, 209, 219, 0.7); }
.cine-say.is-player em { color: var(--silver); }
.cine-say.is-player::after {
  left: 28px; border-right: 1px solid rgba(201, 209, 219, 0.7); border-bottom: 1px solid rgba(201, 209, 219, 0.7);
}
.cine-say.is-tutor { right: 21%; border: 1px solid rgba(52, 229, 176, 0.75); }
.cine-say.is-tutor em { color: var(--mint); }
.cine-say.is-tutor::after {
  bottom: auto; top: 22px; right: -9px;
  border-top: 1px solid rgba(52, 229, 176, 0.75); border-right: 1px solid rgba(52, 229, 176, 0.75);
}
@keyframes say-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fairy {
  position: relative; aspect-ratio: 160 / 188;
  animation: fairy-float 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(52, 229, 176, 0.55));
}
.fairy .kai { position: relative; z-index: 2; }
.fairy .kai-shadow { display: none; }
.fairy .kai-bob { animation: none; }
.cine-fairy {
  position: absolute; z-index: 3; right: 5%; top: 12%; width: 13%;
  animation: fairy-in 900ms cubic-bezier(.2, .8, .2, 1) both, fairy-float 3.4s ease-in-out 900ms infinite;
}
.fairy-glow {
  position: absolute; inset: -18% -22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 229, 176, 0.32), rgba(52, 229, 176, 0) 68%);
}
.fairy-wing {
  position: absolute; z-index: 1; top: 30%; width: 46%; height: 44%;
  border-radius: 90% 10% 70% 30% / 80% 20% 80% 20%;
  background: linear-gradient(200deg, rgba(235, 255, 248, 0.55), rgba(52, 229, 176, 0.12));
  border: 1px solid rgba(220, 255, 244, 0.65);
}
.fairy-wing.is-left { left: -26%; transform-origin: 100% 80%; animation: wing-left 0.42s ease-in-out infinite alternate; }
.fairy-wing.is-right { right: -26%; transform-origin: 0% 80%; animation: wing-right 0.42s ease-in-out infinite alternate; border-radius: 10% 90% 30% 70% / 20% 80% 20% 80%; }
.fairy-spark {
  position: absolute; z-index: 3; width: 7px; height: 7px; background: #f6e7a8;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: spark 1.8s ease-in-out infinite;
}
.fairy-spark.s1 { left: -12%; top: 18%; }
.fairy-spark.s2 { right: -14%; top: 6%; animation-delay: 0.5s; background: var(--mint); }
.fairy-spark.s3 { left: 6%; bottom: -6%; animation-delay: 0.9s; }
.fairy-spark.s4 { right: 2%; bottom: 8%; animation-delay: 1.3s; background: var(--mint); }
.fairy[data-mood="talk"] { filter: drop-shadow(0 0 20px rgba(52, 229, 176, 0.85)); }
.fairy[data-mood="happy"] .fairy-wing { animation-duration: 0.22s; }
.fairy[data-mood="concern"] { filter: drop-shadow(0 0 14px rgba(255, 194, 77, 0.6)); }
@keyframes fairy-in {
  from { opacity: 0; transform: translate(60%, -40%) scale(0.5) rotate(12deg); }
  to { opacity: 1; transform: none; }
}
@keyframes fairy-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7%) rotate(2deg); }
}
@keyframes wing-left { from { transform: rotate(-28deg) scaleX(1); } to { transform: rotate(-14deg) scaleX(0.55); } }
@keyframes wing-right { from { transform: rotate(28deg) scaleX(1); } to { transform: rotate(14deg) scaleX(0.55); } }
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.2); }
}
@media (max-width: 640px) {
  .cine-say { top: 15%; max-width: 60%; padding: 7px 10px 8px; border-radius: 12px; }
  .cine-say p { font-size: 12px; min-height: 0; }
  .cine-say.is-tutor { right: 22%; }
  .cine-fairy { width: 17%; top: 16%; }
}
.cine-concept {
  margin-top: 10px; border: 1px solid rgba(201, 209, 219, 0.45);
  padding: 12px 14px; background: rgba(201, 209, 219, 0.06);
}
.cine-concept b {
  display: block; font-family: var(--hud); font-size: 10px; letter-spacing: 0.14em;
  color: var(--silver); margin-bottom: 6px;
}
.cine-concept p { font-size: 14.5px; line-height: 1.55; }
.cine-concept p + b { margin-top: 12px; }
.pro-tip {
  margin-top: 10px; padding: 10px 12px 11px;
  border: 1px solid rgba(255, 194, 77, 0.35); border-left: 2px solid var(--amber, #ffc24d);
  background: rgba(255, 194, 77, 0.06); animation: tip-in 0.35s ease-out;
}
.pro-tip[hidden] { display: none; }
.pro-tip b {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-family: var(--hud); font-size: 10px; letter-spacing: 0.14em; color: var(--amber, #ffc24d);
}
.pro-tip b::before { content: "💡"; font-size: 12px; letter-spacing: 0; }
.pro-tip p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.rs-q .pro-tip p, .rs-energy-field .pro-tip p { font-size: 12.5px; }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pro-tip { animation: none; } }
.cine .actions { margin-top: 14px; }

/* ---------- identidad ESL ---------- */
.view:focus { outline: none; }
.is-silver { --acc: var(--silver); }
.is-mint { --acc: var(--mint); }
.is-sky  { --acc: #8cc0ff; }

.fx-pitch {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1050 680' fill='none' stroke='%2334e5b0' stroke-width='2'%3E%3Crect x='10' y='10' width='1030' height='660'/%3E%3Cline x1='525' y1='10' x2='525' y2='670'/%3E%3Ccircle cx='525' cy='340' r='92'/%3E%3Ccircle cx='525' cy='340' r='3' fill='%2334e5b0'/%3E%3Crect x='10' y='138' width='165' height='404'/%3E%3Crect x='10' y='248' width='55' height='184'/%3E%3Crect x='875' y='138' width='165' height='404'/%3E%3Crect x='985' y='248' width='55' height='184'/%3E%3Cpath d='M175 267a92 92 0 0 1 0 146M875 267a92 92 0 0 0 0 146'/%3E%3C/svg%3E") center 58% / min(1500px, 140vw) auto no-repeat;
  opacity: 0.07;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 75%);
}

.panel::after, .hud::after {
  content: "";
  position: absolute; inset: -1px;
  pointer-events: none;
  --c: rgba(52, 229, 176, 0.8);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 14px no-repeat;
}
.hud { position: relative; }
.hud::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.6;
}
.nav button { position: relative; }
.nav button.on::after {
  content: "";
  position: absolute; left: 22%; right: 22%; bottom: -4px; height: 2px;
  background: var(--silver);
  box-shadow: 0 0 10px rgba(201, 209, 219, 0.6);
}

[data-brand] img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark.has-logo {
  width: auto; height: 34px; aspect-ratio: 771 / 214;
  border: 0; box-shadow: none; background: transparent;
  filter: drop-shadow(0 0 10px rgba(52, 229, 176, 0.25));
}

/* Pivo en pantalla */
.pivo-tip { display: flex; align-items: center; gap: 14px; margin: 16px 0 6px; max-width: 640px; }
.pivo-tip-fairy { width: 62px; flex: none; }
.pivo-tip-say {
  position: relative;
  border: 1px solid rgba(52, 229, 176, 0.55);
  background: rgba(8, 9, 11, 0.85);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 0 22px rgba(52, 229, 176, 0.12);
}
.pivo-tip-say::before {
  content: "";
  position: absolute; left: -7px; top: 50%;
  width: 12px; height: 12px;
  background: inherit;
  border-left: 1px solid rgba(52, 229, 176, 0.55);
  border-bottom: 1px solid rgba(52, 229, 176, 0.55);
  transform: translateY(-50%) rotate(45deg);
}
.pivo-tip-say em {
  display: block; font-style: normal;
  font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--mint); margin-bottom: 3px;
}
.pivo-tip-say p { font-size: 14px; line-height: 1.5; color: var(--text); }

/* progreso por puntos */
.lvl-dots { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.lvl-dots i { width: 16px; height: 4px; background: rgba(234, 246, 242, 0.12); }
.lvl-dots i.on { background: var(--silver); box-shadow: 0 0 8px rgba(201, 209, 219, 0.5); }
.lvl-dots em {
  margin-left: 8px; font-style: normal;
  font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted);
}

/* tarjetas de nivel */
.lvl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lvl-card {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  color: var(--text);
  font: inherit;
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 20, 0.8);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lvl-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc);
}
.lvl-card:hover, .lvl-card:focus-visible {
  border-color: var(--acc);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  outline: none;
}
.lvl-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.lvl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.lvl-card:hover .lvl-cover img { transform: scale(1.05); }
.lvl-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 20, 0.95));
}
.lvl-num {
  position: absolute; top: 8px; right: 12px; z-index: 2;
  font-family: var(--hud); font-weight: 900; font-size: 52px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--acc);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}
.lvl-body { padding: 4px 16px 16px; }
.lvl-body .tag { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.18em; color: var(--acc); }
.lvl-body h3 { margin: 6px 0 6px; }
.lvl-body p { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* portada del nivel */
.lvl-banner {
  position: relative;
  min-height: 240px;
  display: flex; align-items: flex-end;
  margin: -24px -24px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.lvl-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lvl-banner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 14, 20, 0.98) 8%, rgba(10, 14, 20, 0.35) 60%, transparent),
    linear-gradient(90deg, rgba(10, 14, 20, 0.85), transparent 70%);
}
.lvl-banner::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--acc), transparent 80%);
}
.lvl-banner .lvl-num { font-size: 120px; top: 6px; right: 20px; opacity: 0.85; }
.lvl-banner-text { position: relative; z-index: 1; padding: 22px 24px 20px; max-width: 70ch; }
.lvl-banner-text .eyebrow { color: var(--acc); }
.lvl-banner-text p.lede { color: #c3d3cd; }

/* temas */
.theme-list { display: grid; gap: 10px; margin-top: 16px; }
.theme-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 8px;
  text-align: left;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 20, 0.75);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.theme-row:hover, .theme-row:focus-visible { border-color: var(--acc); background: rgba(18, 24, 31, 0.9); outline: none; }
.theme-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; }
.theme-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.theme-row:hover .theme-thumb img { transform: scale(1.06); }
.theme-num {
  font-family: var(--hud); font-weight: 900; font-size: 26px; text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--acc);
}
.theme-copy h3 { margin: 0 0 4px; }
.theme-copy p { font-size: 13px; line-height: 1.45; color: var(--muted); }
.theme-state {
  font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em;
  color: var(--mint);
  border: 1px solid var(--line);
  padding: 7px 10px;
  white-space: nowrap;
}
.theme-row.is-solved { border-color: rgba(201, 209, 219, 0.4); }
.theme-row.is-solved::before {
  content: "";
  position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
  background: var(--silver);
  box-shadow: 0 0 10px rgba(201, 209, 219, 0.6);
}
.theme-row.is-solved .theme-state { color: var(--silver); border-color: rgba(201, 209, 219, 0.5); background: rgba(201, 209, 219, 0.08); }

/* carta de jugador */
.player-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px;
}
.fc-card {
  --shape: polygon(0 7%, 12% 0, 88% 0, 100% 7%, 100% 86%, 50% 100%, 0 86%);
  padding: 3px;
  clip-path: var(--shape);
  background: linear-gradient(160deg, #f4f7fa, var(--silver) 30%, #7b8592 60%, var(--silver) 85%, #f4f7fa);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}
.fc-face {
  position: relative;
  aspect-ratio: 5 / 7;
  clip-path: var(--shape);
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(52, 229, 176, 0.22), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(201, 209, 219, 0.18), transparent 55%),
    linear-gradient(180deg, #151d22, #08090B 80%);
}
.fc-face::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.08) 45%, transparent 55%);
}
.fc-photo {
  position: absolute; top: 3%; right: -4%;
  width: 84%; height: 64%;
  object-fit: cover; object-position: center 22%;
  mask-image: radial-gradient(ellipse 58% 62% at 55% 42%, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 55% 42%, #000 62%, transparent 100%);
}
.fc-corner {
  position: absolute; top: 9%; left: 9%; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.fc-corner strong {
  font-family: var(--hud); font-weight: 900; font-size: 46px; line-height: 0.9;
  color: var(--silver);
  text-shadow: 0 0 18px rgba(201, 209, 219, 0.45);
}
.fc-corner span { font-family: var(--hud); font-size: 11px; letter-spacing: 0.2em; color: var(--silver); margin-top: 2px; }
.fc-crest {
  width: 34px; height: 34px; margin-top: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--mint); border-radius: 50%;
  font-style: normal; font-family: var(--hud); font-weight: 900; font-size: 9.5px;
  color: var(--mint);
  box-shadow: inset 0 0 10px rgba(52, 229, 176, 0.2);
}
.fc-crest.has-logo { width: 54px; height: auto; aspect-ratio: 771 / 214; border: 0; border-radius: 0; box-shadow: none; }
.fc-cardname {
  position: absolute; left: 8%; right: 8%; top: 64%;
  text-align: center;
  font-family: var(--hud); font-weight: 900; font-size: 17px; letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 209, 219, 0.55);
}
.fc-stats {
  position: absolute; left: 14%; right: 14%; top: 74%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px;
}
.fc-stats span { display: flex; align-items: baseline; gap: 6px; }
.fc-stats b { font-family: var(--hud); font-weight: 900; font-size: 16px; color: var(--text); }
.fc-stats i { font-style: normal; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--silver); }
.fc-tag {
  position: absolute; left: 0; right: 0; bottom: 6%;
  text-align: center;
  font-family: var(--hud); font-size: 7.5px; letter-spacing: 0.24em; color: var(--muted);
}
.fc-side .fc-id { padding: 4px 0 12px; }
.fc-side .fc-sheet { padding: 2px 0 8px; }
.fc-side .fc-note { padding: 8px 0 0; }

/* selector de género */
.gender-pick { margin-top: 14px; }
.gender-pick > p {
  font-family: var(--hud); font-size: 9px; letter-spacing: 0.18em; color: var(--mint);
  margin-bottom: 7px;
}
.gender-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gender-row button {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 20, 0.7);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.gender-row button:hover { border-color: var(--mint); color: var(--text); }
.gender-row button.on {
  border-color: var(--silver);
  color: var(--text);
  background: rgba(201, 209, 219, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 209, 219, 0.25);
}
.gender-row img {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  object-view-box: inset(6% 18% 40% 18%);
  border: 1px solid var(--line);
}
.gender-row button.on img { border-color: var(--silver); }
.gender-row b { font-family: var(--hud); font-size: 10px; letter-spacing: 0.12em; font-weight: 700; }
.gender-pick.is-compact { margin: 14px 0 10px; }
.gender-pick.is-compact > p { text-align: center; }

/* carta: racha, color del uniforme, pose de celebración y compartir */
.fc-streak b { display: flex; align-items: center; gap: 4px; }
.fc-streak .flame { width: 14px; height: 14px; fill: var(--muted); }
.fc-streak.is-today .flame { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 194, 77, 0.55)); }
.fc-photo:not([src]) { visibility: hidden; }
.fc-photo.is-win { object-position: center 18%; }
.fc-tag.is-win { color: var(--mint); }
.kit-pick { margin-top: 14px; }
.kit-pick > p {
  font-family: var(--hud); font-size: 9px; letter-spacing: 0.18em; color: var(--mint);
  margin-bottom: 7px;
}
.kit-row { display: flex; flex-wrap: wrap; gap: 10px; }
.kit-row button {
  width: 30px; height: 30px; padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(8, 9, 11, 0.9);
  background: var(--kit);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.kit-row button:hover { transform: scale(1.08); }
.kit-row button.on { box-shadow: 0 0 0 2px var(--silver), 0 0 12px rgba(201, 209, 219, 0.35); }
.fc-share { margin-top: 16px; width: 100%; }
.share-sheet {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px;
  background: rgba(8, 9, 11, 0.94);
}
.share-img {
  max-height: min(72vh, 900px); max-width: 100%;
  border: 1px solid var(--line); border-radius: 12px;
}
.share-actions { margin-top: 0; justify-content: center; }
.share-wait { font-family: var(--hud); font-size: 11px; letter-spacing: 0.18em; color: var(--mint); text-align: center; }
.btn-social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.social-icons { display: inline-flex; gap: 6px; }
.social-icons svg { width: 17px; height: 17px; display: block; }

/* prueba de ingreso */
.is-amber { --acc: var(--amber); }
.intake-invite {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 640px; margin: 4px 0 18px; padding: 14px 16px;
  border: 1px solid rgba(255, 194, 77, 0.35); border-left: 3px solid var(--amber);
  background: rgba(255, 194, 77, 0.06);
}
.intake-invite .eyebrow { margin-bottom: 4px; }
.intake-invite p:last-child { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.intake-invite .btn { flex: none; }
.intake .aud-about { max-width: 640px; }
.intake .rs-q-title { margin-bottom: 10px; }
.intake .actions { margin-top: 18px; }

.sg { max-width: 560px; margin-top: 10px; }
.sg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-family: var(--hud); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.sg-score b { color: var(--mint); font-size: 16px; margin-left: 6px; }
.sg-legend { display: inline-flex; align-items: center; gap: 6px; }
.sg-key { display: inline-block; margin-left: 8px; border-radius: 50%; }
.sg-key-mate { width: 11px; height: 11px; background: var(--mint); }
.sg-key-rival { width: 9px; height: 9px; background: var(--alert); }
.sg-timer { height: 4px; background: rgba(234, 246, 242, 0.1); margin-bottom: 8px; }
.sg-timer i { display: block; height: 100%; width: 100%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.sg-pitch {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 2px solid rgba(234, 246, 242, 0.25);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 12.5%, transparent 12.5% 25%),
    linear-gradient(180deg, #0d2a1f, #0a2018);
  touch-action: manipulation; user-select: none;
}
.sg-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(234, 246, 242, 0.18); }
.sg-circle { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(234, 246, 242, 0.18); border-radius: 50%; transform: translate(-50%, -50%); }
.sg-dot { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; }
.sg-mate {
  width: 36px; height: 36px; padding: 0; cursor: pointer; z-index: 2;
  background: var(--mint); border: 3px solid #03150f; box-shadow: 0 0 0 2px var(--mint), 0 0 14px rgba(52, 229, 176, 0.5);
}
.sg-mate:active { transform: translate(-50%, -50%) scale(0.9); }
.sg-rival { width: 24px; height: 24px; z-index: 3; pointer-events: none; background: var(--alert); border: 3px solid #2a0707; }
.sg-pitch.is-miss { animation: sg-miss 0.35s; }
@keyframes sg-miss { 0%, 100% { box-shadow: none; } 30% { box-shadow: inset 0 0 0 4px var(--alert), inset 0 0 40px rgba(255, 59, 59, 0.35); } }
.sg-result { margin: 12px 0 0; font-family: var(--hud); font-size: 13px; letter-spacing: 0.12em; color: var(--mint); }

.growth { max-width: 640px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.28); }
.growth-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-family: var(--hud); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.growth-head b { color: var(--silver); }
.growth-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.growth-row span { font-family: var(--hud); font-size: 10.5px; letter-spacing: 0.14em; }
.growth-row span b { color: var(--acc); margin-right: 10px; }
.growth-row em { font-style: normal; font-family: var(--hud); font-size: 13px; color: var(--text); }
.growth-row i { font-style: normal; font-family: var(--hud); font-weight: 900; font-size: 13px; text-align: right; color: var(--acc); }

@media (max-width: 560px) {
  .intake-invite { flex-direction: column; align-items: stretch; }
  .sg-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sg-pitch.is-miss { animation: none; } }

@media (max-width: 860px) {
  .lvl-grid { grid-template-columns: 1fr; }
  .lvl-card { flex-direction: row; }
  .lvl-cover { width: 40%; flex: none; aspect-ratio: auto; min-height: 130px; }
  .lvl-cover::after { background: linear-gradient(90deg, transparent 50%, rgba(10, 14, 20, 0.95)); }
  .lvl-body { padding: 14px 16px; }
  .lvl-num { font-size: 40px; }
}
@media (max-width: 700px) {
  .player-card { grid-template-columns: 1fr; }
  .fc-card { width: min(250px, 80%); justify-self: center; }
}
@media (max-width: 620px) {
  .lvl-banner { margin: -18px -15px 0; min-height: 200px; }
  .lvl-banner .lvl-num { font-size: 72px; right: 12px; opacity: 0.35; }
  .lvl-card { flex-direction: column; }
  .lvl-cover { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .theme-row { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .theme-num { display: none; }
  .theme-state { grid-column: 2; justify-self: start; padding: 5px 8px; }
  .pivo-tip-fairy { width: 50px; }
  .pivo-tip-say p { font-size: 13px; }
  .gender-row button { flex-direction: column; padding: 8px 4px; gap: 5px; }
  .gender-row b { font-size: 9px; }
}


/* ruta de 7 días */
.route-meter { display: flex; align-items: center; gap: 5px; margin: 14px 0 4px; }
.route-meter i { flex: 1; max-width: 46px; height: 5px; background: rgba(234, 246, 242, 0.12); }
.route-meter i.on { background: var(--silver); box-shadow: 0 0 8px rgba(201, 209, 219, 0.5); }
.route-meter i.now { background: var(--mint); box-shadow: 0 0 10px rgba(52, 229, 176, 0.55); animation: rtPulse 1.6s ease-in-out infinite; }
.route-meter em { margin-left: 8px; font-style: normal; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }
@keyframes rtPulse { 50% { opacity: 0.45; } }

.route-today {
  position: relative;
  display: grid; grid-template-columns: 230px minmax(0, 1fr);
  margin-top: 18px;
  border: 1px solid var(--acc);
  background: rgba(10, 14, 20, 0.85);
  overflow: hidden;
}
.route-today::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; background: var(--acc); box-shadow: 0 0 14px var(--acc); }
.rt-cover { position: relative; overflow: hidden; }
.rt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(10, 14, 20, 0.95)); }
.rt-body { padding: 16px 18px; }
.rt-body .eyebrow { color: var(--acc); }
.rt-body h3 { margin: 0 0 4px; }
.rt-body > p:not(.eyebrow) { font-family: var(--hud); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.rt-body .btn { margin-top: 12px; }

.route-days { display: grid; gap: 10px; margin-top: 18px; }
.route-day { position: relative; border: 1px solid var(--line-soft); background: rgba(10, 14, 20, 0.75); }
.route-day.is-now { border-color: var(--acc); }
.route-day.is-done { border-color: rgba(201, 209, 219, 0.4); }
.route-day.is-done::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--silver); box-shadow: 0 0 10px rgba(201, 209, 219, 0.6); }
.route-day.is-locked { opacity: 0.5; }
.route-day.is-wait { border-style: dashed; border-color: rgba(255, 194, 77, 0.45); }
.route-day.is-wait .rd-state { color: var(--amber); border-color: rgba(255, 194, 77, 0.5); background: rgba(255, 194, 77, 0.06); }
.route-day.is-wait .rd-copy p { color: var(--amber); }
.rd-head {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 12px 14px; text-align: left;
  font: inherit; color: var(--text); background: none; border: 0; cursor: pointer;
}
.rd-head:disabled { cursor: not-allowed; }
.rd-head:hover:not(:disabled) h3 { color: var(--acc); }
.rd-num { font-family: var(--hud); font-weight: 900; font-size: 34px; text-align: center; color: transparent; -webkit-text-stroke: 1.2px var(--acc); }
.rd-copy .tag { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.18em; color: var(--acc); }
.rd-copy h3 { margin: 4px 0 3px; transition: color 0.2s; }
.rd-copy p { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted); }
.rd-state { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); border: 1px solid var(--line-soft); padding: 7px 10px; white-space: nowrap; }
.route-day.is-now .rd-state { color: #03150f; background: var(--mint); border-color: var(--mint); }
.route-day.is-done .rd-state { color: var(--silver); border-color: rgba(201, 209, 219, 0.5); background: rgba(201, 209, 219, 0.08); }
.rd-body { padding: 0 14px 14px; }
.theme-row.is-locked { opacity: 0.45; cursor: not-allowed; }
.theme-row.is-locked:hover { border-color: var(--line-soft); background: rgba(10, 14, 20, 0.75); }
.theme-row.is-locked:hover .theme-thumb img { transform: none; }
.theme-row.is-locked .theme-state { color: var(--muted); border-color: var(--line-soft); }
.theme-list.is-compact { margin-top: 0; }
.theme-list.is-compact .theme-row { grid-template-columns: 120px 46px minmax(0, 1fr) auto; }
.theme-list.is-compact .theme-num { font-size: 22px; }
.rd-mission { margin-top: 12px; padding: 14px 16px; border: 1px dashed rgba(255, 194, 77, 0.45); background: rgba(255, 194, 77, 0.05); }
.rd-mission.is-audit { border-color: var(--line); background: rgba(52, 229, 176, 0.05); }
.rd-mission.is-done { border-style: solid; border-color: rgba(201, 209, 219, 0.4); background: rgba(201, 209, 219, 0.05); }
.rd-mission > p:not(.eyebrow) { font-size: 14.5px; line-height: 1.55; max-width: 70ch; }
.rd-mission .actions { margin-top: 12px; }
.rd-mission small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.rd-done { display: inline-block; margin-top: 10px; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--silver); border: 1px solid rgba(201, 209, 219, 0.5); padding: 5px 9px; }

/* auditoría 360° */
.audit { display: grid; gap: 14px; margin-top: 18px; }
.aud-area { border: 1px solid var(--line-soft); border-top: 2px solid var(--acc, var(--mint)); background: rgba(10, 14, 20, 0.75); padding: 14px 16px; }
.aud-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-family: var(--hud); font-size: 11px; letter-spacing: 0.18em; color: var(--text); margin-bottom: 6px; }
.aud-head b { color: var(--acc, var(--mint)); }
.aud-head em { margin-left: auto; font-style: normal; font-size: 9px; letter-spacing: 0.12em; color: var(--muted); }
.aud-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.aud-item p { font-size: 14.5px; line-height: 1.45; }
.aud-scale { display: flex; gap: 6px; }
.aud-scale button {
  width: 38px; height: 38px;
  font-family: var(--hud); font-size: 12px; font-weight: 700;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line-soft); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.aud-scale button:hover { color: var(--text); border-color: var(--acc, var(--mint)); }
.aud-scale button.on { color: #03150f; background: var(--acc, var(--mint)); border-color: var(--acc, var(--mint)); }
.aud-field { display: grid; gap: 7px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.aud-field > span { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.16em; color: var(--muted); }
.aud-field > span i { font-style: normal; color: rgba(138, 163, 155, 0.6); margin-left: 6px; }
.aud-field select, .aud-field input, .aud-field textarea {
  width: 100%; max-width: 460px;
  font: inherit; font-size: 14.5px; color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line); padding: 10px 12px;
}
.aud-field select { max-width: 120px; }
.aud-field textarea { max-width: 640px; resize: vertical; }
.aud-field select:focus, .aud-field input:focus, .aud-field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.aud-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aud-chips .chip.on { color: #03150f; background: var(--mint); border-color: var(--mint); }
.aud-hint { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.aud-result { display: grid; gap: 12px; margin-top: 16px; max-width: 640px; }
.aud-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.aud-bar span { font-family: var(--hud); font-size: 11px; letter-spacing: 0.16em; }
.aud-bar span b { color: var(--acc); margin-right: 10px; }
.aud-bar em { font-style: normal; font-family: var(--hud); font-weight: 900; font-size: 20px; color: var(--acc); }
.aud-bar .bar { grid-column: 1 / -1; height: 6px; background: rgba(234, 246, 242, 0.1); }
.aud-bar .bar i { display: block; height: 100%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }

@media (max-width: 760px) {
  .route-today { grid-template-columns: 1fr; }
  .rt-cover { aspect-ratio: 16 / 7; }
  .rt-cover::after { background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 20, 0.95)); }
  .aud-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 620px) {
  .rd-head { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .rd-num { font-size: 26px; }
  .rd-state { grid-column: 2; justify-self: start; padding: 5px 8px; }
  .rd-body { padding: 0 10px 12px; }
  .theme-list.is-compact .theme-row { grid-template-columns: 96px minmax(0, 1fr); }
  .aud-scale button { width: 44px; height: 40px; }
  .aud-head em { margin-left: 0; width: 100%; }
}

/* registros diarios: noche, ficha pre-partido, después del partido */
.rd-sleep, .rd-pregame {
  margin: 4px 0 12px; padding: 14px 16px;
  border: 1px solid rgba(201, 209, 219, 0.35);
  border-top: 2px solid var(--silver);
  background: rgba(201, 209, 219, 0.04);
}
.rd-pregame { margin: 12px 0 0; border-color: rgba(52, 229, 176, 0.3); border-top-color: var(--mint); background: rgba(52, 229, 176, 0.04); }
.rd-sleep .eyebrow { color: var(--silver); }
.rd-sleep.is-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 14px; border-top-width: 1px; }
.rd-sleep.is-done .eyebrow { margin: 0; }
.rs-lede { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 4px 0 6px; max-width: 64ch; }
.rs-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-family: var(--hud); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); }
.rs-sum b { color: var(--text); font-size: 13px; }
.rs-step { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; font-family: var(--hud); font-size: 10.5px; letter-spacing: 0.18em; color: var(--text); }
.rs-step b { display: grid; place-items: center; width: 22px; height: 22px; font-size: 11px; color: #0d1014; background: var(--silver); }
.rs-hint { display: block; font-size: 12px; line-height: 1.45; color: var(--muted); max-width: 46ch; }
.rs-times { display: flex; flex-wrap: wrap; align-items: start; gap: 0 16px; }
.rs-times .aud-field { flex: 1 1 200px; max-width: 280px; border-top: 0; }
.rs-total { display: grid; gap: 2px; align-self: center; min-width: 110px; }
.rs-total b { font-family: var(--hud); font-weight: 900; font-size: 24px; color: var(--silver); }
.rs-total span { font-size: 11.5px; color: var(--muted); }
.rs-total.is-short b { color: var(--amber, #ffc24d); }
.rs-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.rs-q { padding: 12px; border: 1px solid var(--line-soft); border-left: 2px solid rgba(234, 246, 242, 0.15); background: rgba(0, 0, 0, 0.28); transition: border-color 0.25s, background 0.25s; }
.rs-q.is-answered { border-left-color: var(--muted); }
.rs-q.is-kept { border-left-color: var(--silver); background: rgba(201, 209, 219, 0.06); }
.rs-q-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); }
.rs-q-why { margin: 0 0 10px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.rs-q .aud-chips { gap: 6px; }
.rs-q .chip { padding: 7px 10px; text-align: left; letter-spacing: 0.06em; font-family: inherit; font-size: 12px; text-transform: none; }
.rs-q .chip.on { color: var(--text); background: rgba(234, 246, 242, 0.12); border-color: rgba(234, 246, 242, 0.5); }
.rs-q.is-kept .chip.on { color: #0d1014; background: var(--silver); border-color: var(--silver); }
.rs-energy-field { border-top: 0; }
.rs-scale-ends { display: flex; justify-content: space-between; gap: 12px; max-width: 460px; }
.rs-missing { display: block; width: 100%; margin-top: 6px; font-size: 12px; color: var(--amber, #ffc24d); }
.rd-sleep .actions { flex-wrap: wrap; }
.rs-energy { flex-wrap: wrap; --acc: var(--silver); }
.rs-energy button { width: 36px; height: 36px; flex: 1 0 30px; max-width: 42px; }
.rd-sleep .actions, .rd-pregame .actions { margin-top: 10px; }

.pg-identity, .pg-routine { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--mint); background: rgba(0, 0, 0, 0.25); }
.pg-identity b, .pg-routine b { display: block; font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.16em; color: var(--mint); margin-bottom: 6px; }
.pg-identity p { margin: 0; font-size: 15px; font-style: italic; color: var(--text); }
.pg-routine ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rd-scans { margin-top: 8px; }
.rd-postgame { margin-top: 14px; }

.sleep-chart { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line-soft); background: rgba(10, 14, 20, 0.75); }
.sleep-chart .eyebrow { color: var(--silver); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.sleep-chart .eyebrow em { font-style: normal; color: var(--muted); }
.sc-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sc-col { display: grid; justify-items: center; gap: 5px; font-family: var(--hud); }
.sc-hrs { font-size: 11px; font-weight: 700; color: var(--text); }
.sc-bar { position: relative; width: 100%; max-width: 30px; height: 84px; background: rgba(234, 246, 242, 0.06); }
.sc-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, var(--silver), rgba(201, 209, 219, 0.35)); box-shadow: 0 0 10px rgba(201, 209, 219, 0.35); }
.sc-habits { display: flex; gap: 3px; }
.sc-habits i { width: 5px; height: 5px; background: rgba(234, 246, 242, 0.15); }
.sc-habits i.on { background: var(--mint); }
.sc-energy { font-size: 10px; color: var(--amber, #ffc24d); min-height: 12px; }
.sc-col b { font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); }
.sc-col.is-empty .sc-hrs { color: var(--muted); }

/* carta actualizándose después de un registro */
.gain-burst {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 16px;
  background: rgba(4, 6, 8, 0.72); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.28s ease;
}
.gain-burst.is-in { opacity: 1; }
.gain-burst.is-out { opacity: 0; }
.gb-panel {
  position: relative; overflow: hidden;
  width: min(420px, 100%); padding: 20px 20px 18px;
  background: linear-gradient(180deg, rgba(16, 22, 28, 0.98), rgba(8, 9, 11, 0.98));
  border: 1px solid rgba(52, 229, 176, 0.45);
  box-shadow: 0 0 0 1px rgba(52, 229, 176, 0.08), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(52, 229, 176, 0.12);
  transform: translateY(14px) scale(0.94); transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.gain-burst.is-in .gb-panel { transform: none; }
.gb-panel::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(52, 229, 176, 0.12), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.gain-burst.is-in .gb-panel::after { animation: gb-sweep 1.4s 0.3s ease-out both; }
@keyframes gb-sweep { to { left: 130%; } }
.gb-kicker { margin: 0 0 12px; font-family: var(--hud); font-size: 10px; letter-spacing: 0.22em; color: var(--mint); }
.gb-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.gb-photo { width: 76px; height: 76px; object-fit: cover; object-position: top; border: 1px solid rgba(201, 209, 219, 0.5); background: #0b0f13; }
.gb-ovr { display: grid; justify-items: start; line-height: 1; }
.gb-ovr strong { font-family: var(--hud); font-weight: 900; font-size: 52px; color: var(--silver); text-shadow: 0 0 18px rgba(201, 209, 219, 0.35); }
.gb-ovr span { margin-top: 4px; font-family: var(--hud); font-size: 10px; letter-spacing: 0.24em; color: var(--muted); }
.gb-ovr em { margin-top: 6px; font-style: normal; font-family: var(--hud); font-size: 12px; letter-spacing: 0.12em; color: var(--mint); opacity: 0; }
.gb-ovr.is-live strong { animation: gb-pop 0.6s 0.55s ease-out; }
.gb-ovr.is-live em { animation: gb-in 0.4s 0.35s ease-out forwards; }
@keyframes gb-pop { 40% { transform: scale(1.18); text-shadow: 0 0 30px rgba(201, 209, 219, 0.8); } }
@keyframes gb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gb-attrs { display: grid; gap: 10px; }
.gb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; align-items: baseline; gap: 4px 8px; opacity: 0.55; transition: opacity 0.3s; }
.gb-row.is-up { opacity: 1; }
.gb-row span { font-family: var(--hud); font-size: 10px; letter-spacing: 0.14em; color: var(--text); }
.gb-row b { justify-self: end; font-family: var(--hud); font-weight: 900; font-size: 16px; color: var(--text); }
.gb-row.is-up b { color: var(--silver); }
.gb-plus { font-style: normal; font-family: var(--hud); font-size: 11px; color: var(--mint); opacity: 0; }
.gb-row.is-live .gb-plus { animation: gb-in 0.35s ease-out forwards; }
.gb-row .bar { position: relative; grid-column: 1 / -1; height: 6px; background: rgba(234, 246, 242, 0.08); }
.gb-row .bar i { display: block; height: 100%; background: var(--muted); }
.gb-row.is-up .bar i { background: linear-gradient(90deg, rgba(201, 209, 219, 0.55), var(--silver)); }
.gb-row .bar u { position: absolute; top: -2px; bottom: -2px; width: 0; background: var(--mint); box-shadow: 0 0 12px var(--mint), 0 0 4px #fff; transition: width 0.9s cubic-bezier(0.25, 0.8, 0.3, 1); }
.gb-row.is-live .bar u { min-width: 6px; animation: gb-glow 1.2s 0.9s ease-in-out 2; }
.gb-row.is-live b { animation: gb-pop 0.6s 0.5s ease-out; }
@keyframes gb-glow { 50% { box-shadow: 0 0 22px var(--mint), 0 0 8px #fff; } }
.gb-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.gb-xp { margin: 14px 0 0; font-family: var(--hud); font-size: 12px; letter-spacing: 0.16em; color: var(--amber, #ffc24d); }
.gb-close { margin-top: 16px; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .gain-burst, .gb-panel, .gb-row .bar u { transition: none; }
  .gain-burst.is-in .gb-panel::after, .gb-ovr.is-live strong, .gb-row.is-live b, .gb-row.is-live .bar u { animation: none; }
  .gb-ovr em, .gb-plus { animation: none !important; opacity: 1; }
}

/* ---------- videoanálisis en el vestuario ---------- */
.va-card { margin: 14px 0; padding: 16px 18px; border: 1px solid var(--line-soft); background: rgba(10,14,20,0.7); }
.va-card.is-full { border-color: rgba(201,209,219,0.45); background: linear-gradient(135deg, rgba(201,209,219,0.08), rgba(10,14,20,0.85) 60%); }
.va-card.is-full .eyebrow { color: var(--silver); }
.va-card.is-upgrade .eyebrow { color: var(--muted); }
.va-card h3 { font-family: var(--hud); font-size: 15px; letter-spacing: 0.04em; margin-bottom: 6px; }
.va-card > p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 12px; max-width: 640px; }
.va-card .va-meta { font-size: 12px; }
.va-card .va-meta a, .va-msg a { color: var(--mint); }
.va-tips b { color: var(--text); font-weight: 600; }
.va-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.va-form label { display: grid; gap: 5px; }
.va-form .va-wide { grid-column: 1 / -1; }
.va-form label > span { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.va-form input, .va-form select, .va-form textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  background: rgba(3,5,7,0.7); border: 1px solid var(--line); padding: 10px 12px;
}
.va-form textarea { min-height: 70px; resize: vertical; }
.va-form input:focus, .va-form select:focus, .va-form textarea:focus { outline: none; border-color: var(--silver); }
.va-form .va-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.va-form .va-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--silver); }
.va-form .va-check span { font-family: var(--body); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; }
.va-msg { font-size: 13px; color: #ff8a8a; min-height: 0; }
.va-msg:empty { display: none; }
.va-form .actions { margin-top: 2px; }

/* ---------- acceso: usuario + PIN / correo + código ---------- */
.gate { z-index: 60; overflow-y: auto; }
.gate-card { max-width: 480px; }
.gate-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gate-card h1 { font-family: var(--hud); font-size: 22px; line-height: 1.25; margin: 4px 0 10px; }
.gate-card .lede { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 4px; }
.gate-card .lede b { color: var(--text); font-weight: 600; word-break: break-all; }
.gate-opts { display: grid; gap: 10px; margin-top: 20px; }
.gate-opt {
  display: grid; gap: 5px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: rgba(52,229,176,0.04); color: var(--text);
  padding: 16px 18px; font-family: var(--body);
  transition: border-color 0.2s, background 0.2s;
}
.gate-opt:hover, .gate-opt:focus-visible { border-color: var(--mint); background: rgba(52,229,176,0.09); outline: none; }
.gate-opt b { font-family: var(--hud); font-size: 12px; letter-spacing: 0.16em; color: var(--mint); font-weight: 700; }
.gate-opt span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.gate-field { display: grid; gap: 6px; margin-top: 16px; }
.gate-field span { font-family: var(--hud); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.gate-field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(3,5,7,0.7); border: 1px solid var(--line); padding: 12px 14px;
}
.gate-field input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(52,229,176,0.12); }
.gate-field input[type="password"], #g-code, #g-handle { font-family: var(--hud); letter-spacing: 0.18em; }
.gate-field small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.gate-msg { min-height: 0; margin-top: 12px; font-size: 13px; line-height: 1.5; color: #ff8a8a; }
.gate-msg:empty { display: none; }
.gate-msg.is-ok { color: var(--mint); }
.gate-handle { margin: 16px 0 6px; border: 1px solid rgba(201,209,219,0.45); background: rgba(201,209,219,0.06); padding: 14px 16px; display: grid; gap: 4px; }
.gate-handle span { font-family: var(--hud); font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted); }
.gate-handle b { font-family: var(--hud); font-size: 26px; font-weight: 900; letter-spacing: 0.08em; color: var(--silver); }
.gate-help { margin-top: 18px; font-size: 13px; color: var(--muted); }
.gate-help summary { cursor: pointer; color: var(--text); }
.gate-help p { margin-top: 8px; line-height: 1.55; }
.gate-help a, .gate-foot a { color: var(--mint); }
.gate-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.gate-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mint); cursor: pointer; }
.gate-check a { color: var(--mint); }
.gate-foot { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.gate-link { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--mint); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.gate-dev { display: block; color: var(--muted); font-size: 12px; margin-top: 22px; }

@media (max-width: 620px) {
  .gate { place-items: start center; }
  .gate-card { padding: 22px 18px; }
  .gate-card .actions .btn { flex: 1 1 100%; }
  .va-form { grid-template-columns: 1fr; }
  .rd-sleep, .rd-pregame, .sleep-chart { padding: 12px; }
  .rs-questions { grid-template-columns: 1fr; }
  .rs-scale-ends { flex-direction: column; gap: 2px; }
  .rs-energy { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rs-energy button { width: auto; max-width: none; height: 40px; }
  .sc-cols { gap: 4px; }
}