:root {
  color-scheme: dark;
  --bg: #050807;
  --surface: #0b100e;
  --surface-raised: #111814;
  --line: #25352d;
  --line-soft: rgba(164, 196, 178, .14);
  --fg: #edf5ef;
  --muted: #94a79b;
  --accent: #63f5ae;
  --accent-strong: #20dd8a;
  --accent-ink: #04130c;
  --ok: #63f5ae;
  --err: #ff8585;
  --warn: #f5c76b;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--font); overflow: hidden; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button:disabled { cursor: not-allowed; opacity: .55; }
button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; min-height: 20px; padding: 1px 5px; border: 1px solid var(--line); border-bottom-color: #3c5145; border-radius: 4px; background: rgba(255,255,255,.025); color: var(--muted); font: 10px/1.2 var(--mono); }
#scene { position: fixed; inset: 0; display: block; touch-action: none; cursor: grab; }
#scene:active { cursor: grabbing; }
#scene:focus-visible { outline-offset: -4px; }
.scene-vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 52% 45%, transparent 35%, rgba(5,8,7,.25) 70%, rgba(5,8,7,.8) 110%); }

/* Estructura del HUD */
.topbar { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(5,8,7,.96), rgba(5,8,7,.76)); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--accent-strong); border-radius: 8px; color: var(--accent); background: rgba(99,245,174,.06); font: 700 15px var(--mono); box-shadow: inset 0 0 18px rgba(99,245,174,.05); }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.brand-name b { color: var(--accent); }
.brand-edition { margin-left: 5px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); letter-spacing: .14em; }
.live-status { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(99,245,174,.6); animation: status-pulse 2.4s ease-out infinite; }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 5px rgba(99,245,174,0); } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .search-trigger, .dock-btn { border: 1px solid transparent; color: var(--muted); background: transparent; cursor: pointer; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 7px; }
.icon-btn:hover, .dock-btn:hover { color: var(--fg); border-color: var(--line); background: rgba(255,255,255,.035); }
.icon-btn:active, .dock-btn:active { transform: translateY(1px); }
.icon-btn.labeled { padding: 0 11px; }
.icon-btn.labeled span { font-size: 12px; }
.search-trigger { height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 9px 0 12px; border-color: var(--line); border-radius: 7px; background: rgba(255,255,255,.025); font-size: 12px; }
.search-trigger:hover { color: var(--fg); border-color: #496355; background: rgba(255,255,255,.05); }
.search-trigger svg { width: 15px; }
.search-trigger kbd { margin-left: 16px; }
.hud-panel { position: fixed; z-index: 5; background: rgba(11,16,14,.91); border: 1px solid var(--line-soft); box-shadow: 0 16px 44px rgba(0,0,0,.22); backdrop-filter: blur(14px); }
.progress-panel { top: 102px; left: 28px; width: 272px; padding: 20px; border-radius: 10px; }
.panel-kicker { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 9px var(--mono); letter-spacing: .13em; }
#rank-label { color: var(--accent); }
.progress-main { display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; }
.progress-main > div { display: flex; align-items: baseline; }
.progress-main strong { font-size: 43px; line-height: 1; letter-spacing: -.06em; font-weight: 650; }
.progress-main > div span { color: var(--muted); font: 15px var(--mono); margin-left: 4px; }
.progress-main > span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.progress-track { height: 4px; background: #1c2821; overflow: hidden; border-radius: 4px; }
#progress-fill { display: block; width: 100%; height: 100%; background: var(--accent); box-shadow: 0 0 12px rgba(99,245,174,.4); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.progress-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.progress-meta b { color: var(--fg); font: 10px var(--mono); white-space: nowrap; }
.primary-btn { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 750; font-size: 12px; box-shadow: 0 6px 20px rgba(32,221,138,.08); transition: background .18s, transform .18s, box-shadow .18s; }
.primary-btn:hover { background: #8affc7; box-shadow: 0 8px 26px rgba(32,221,138,.16); transform: translateY(-1px); }
.primary-btn:active { transform: translateY(0); }
.progress-panel .primary-btn { margin-top: 18px; }
.zone-legend { display: flex; justify-content: space-between; gap: 7px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9px; }
.zone-legend span { display: flex; align-items: center; gap: 5px; }
.zone-dot { width: 5px; height: 5px; border-radius: 50%; }
.zone-dot.permissive { background: var(--accent); }
.zone-dot.isolated { background: var(--warn); }
.zone-dot.restricted { background: var(--err); }
.tip-panel { right: 28px; bottom: 102px; width: 300px; display: flex; gap: 13px; padding: 17px; border-radius: 10px; }
.tip-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 7px; background: rgba(99,245,174,.07); color: var(--accent); }
.tip-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tip-panel p { margin: 8px 0 9px; color: #becbc2; font-size: 11px; line-height: 1.65; }
.text-btn { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 11px; cursor: pointer; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-btn span { margin-left: 4px; }
.control-dock { position: fixed; z-index: 6; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 7px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(11,16,14,.93); box-shadow: 0 14px 36px rgba(0,0,0,.35); backdrop-filter: blur(14px); white-space: nowrap; }
.control-hint { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; color: var(--muted); font-size: 10px; }
.control-hint b { color: #c7d4cb; font-weight: 550; }
.mouse-icon { width: 14px; height: 20px; border: 1px solid #73867a; border-radius: 7px; position: relative; }
.mouse-icon::after { content: ""; position: absolute; top: 3px; left: 5px; width: 2px; height: 4px; background: var(--accent); border-radius: 2px; }
.wheel-icon { color: var(--accent); font: 17px var(--mono); }
.dock-separator { width: 1px; height: 23px; margin: 0 3px; background: var(--line); }
.dock-btn { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 8px; border-radius: 6px; font-size: 10px; }
.dock-btn svg { width: 15px; }
.dock-btn kbd { margin-left: 2px; }
.corner-coordinates { position: fixed; bottom: 28px; left: 28px; display: flex; flex-direction: column; gap: 3px; color: #63766a; font: 8px var(--mono); letter-spacing: .12em; }
#tooltip { position: fixed; z-index: 20; pointer-events: none; max-width: 250px; padding: 9px 12px; border: 1px solid #3c6250; border-radius: 6px; background: #0c1510; box-shadow: 0 8px 24px rgba(0,0,0,.35); color: var(--fg); font-size: 11px; }
#tooltip b { display: block; color: var(--accent); font-size: 12px; }
#tooltip span { color: var(--muted); font-size: 10px; }
.toast-region { position: fixed; z-index: 90; top: 90px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid #3d5e4d; border-radius: 8px; background: #111b15; box-shadow: 0 14px 36px rgba(0,0,0,.35); color: var(--fg); font-size: 12px; animation: toast-in .35s cubic-bezier(.16,1,.3,1) both; }
.toast svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 2; }
.toast.leaving { opacity: 0; transform: translateY(-8px); transition: .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.97); } }

/* Explorador */
.drawer-shell { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(1,4,2,.64); backdrop-filter: blur(3px); cursor: default; }
.arsenal-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); display: flex; flex-direction: column; padding: 25px; border-left: 1px solid var(--line); background: #090e0b; box-shadow: -24px 0 70px rgba(0,0,0,.35); animation: drawer-in .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes drawer-in { from { transform: translateX(35px); opacity: .5; } }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.drawer-header h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.035em; }
.arsenal-search { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 46px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); }
.arsenal-search:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(99,245,174,.07); }
.arsenal-search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.arsenal-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 12px; }
.arsenal-search input::placeholder { color: #829589; }
.filter-tabs { display: flex; gap: 4px; margin: 16px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.filter-tabs button { padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.filter-tabs button:hover { color: var(--fg); }
.filter-tabs button.active { border-color: var(--line); background: var(--surface-raised); color: var(--accent); }
.filter-tabs button span { margin-left: 5px; color: var(--muted); font: 9px var(--mono); }
.arsenal-results { overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; scrollbar-color: #32463a transparent; }
.arsenal-item { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 11px; padding: 13px 9px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--fg); text-align: left; cursor: pointer; transition: background .15s; }
.arsenal-item:hover, .arsenal-item:focus-visible { background: rgba(99,245,174,.045); }
.arsenal-number { color: var(--muted); font: 11px var(--mono); }
.arsenal-item-main { min-width: 0; }
.arsenal-item-main b { display: block; font-size: 13px; font-weight: 650; }
.arsenal-item-main span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.arsenal-state { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.arsenal-state i { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.arsenal-state.solved { color: var(--accent); }
.arsenal-state.solved i { background: var(--accent); border-color: var(--accent); }
.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state b { display: block; margin-bottom: 5px; color: var(--fg); font-size: 15px; }
.drawer-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9px; }
.drawer-footer span { display: flex; align-items: center; gap: 5px; }

/* Misiones y guía */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(1,4,2,.76); backdrop-filter: blur(7px); }
.modal-card { width: min(720px, 100%); max-height: min(880px, 92vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #334b3e; border-radius: 12px; background: #0b110e; box-shadow: 0 30px 90px rgba(0,0,0,.5); animation: modal-in .32s cubic-bezier(.16,1,.3,1) both; scrollbar-color: #3b5144 transparent; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(3px); } }
.mission-topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 53px; padding: 8px 17px 8px 26px; border-bottom: 1px solid var(--line-soft); background: rgba(11,17,14,.96); color: var(--muted); font: 9px var(--mono); letter-spacing: .14em; backdrop-filter: blur(10px); }
#mission { padding: 26px; }
.mission-heading { position: relative; padding-right: 50px; }
.mission-num { margin-bottom: 7px; color: var(--accent); font: 10px var(--mono); letter-spacing: .09em; }
.mission-heading h2 { margin: 0; font-size: clamp(29px, 5vw, 42px); line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.mission-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.meta-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 9px var(--mono); }
.meta-chip.solved { border-color: rgba(99,245,174,.3); color: var(--accent); background: rgba(99,245,174,.05); }
.mission-summary { max-width: 65ch; margin: 20px 0 0; color: #bac8be; font-size: 13px; line-height: 1.75; }
.safety-note { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(245,199,107,.25); border-radius: 6px; background: rgba(245,199,107,.05); color: #e7cf9f; font-size: 11px; }
.safety-note b { color: var(--warn); }
.practical-tip { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 22px 0 0; padding: 16px; border: 1px solid rgba(99,245,174,.2); border-radius: 7px; background: rgba(99,245,174,.045); }
.practical-tip .tip-icon { width: 30px; height: 30px; }
.practical-tip b { display: block; margin-bottom: 3px; color: var(--accent); font-size: 11px; }
.practical-tip p { margin: 0; color: #bdccc1; font-size: 11px; line-height: 1.65; }
.mission-section { margin-top: 25px; }
.mission-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--fg); font-size: 12px; font-weight: 650; }
.mission-section h3 span { color: var(--accent); font: 9px var(--mono); }
.mission-section p { max-width: 68ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.code-wrap { position: relative; margin-top: 10px; }
pre { margin: 0; padding: 14px 45px 14px 15px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #060a08; color: #b9d4c3; font: 11px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-btn { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 5px; background: #101813; color: var(--muted); cursor: pointer; }
.copy-btn:hover { color: var(--accent); border-color: #426451; }
.copy-btn svg { width: 14px; height: 14px; }
.quiz-section { margin: 28px -26px -26px; padding: 24px 26px 26px; border-top: 1px solid var(--line-soft); background: #0e1511; }
.quiz-label { color: var(--accent); font: 9px var(--mono); letter-spacing: .12em; }
.quiz-q { margin: 8px 0 16px; color: var(--fg); font-size: 16px; font-weight: 650; line-height: 1.45; }
.quiz-opt { position: relative; width: 100%; display: flex; align-items: center; gap: 11px; margin-bottom: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: #0a100c; color: #c7d4cb; text-align: left; cursor: pointer; font: 11px/1.5 var(--mono); transition: border-color .15s, background .15s, transform .15s; }
.quiz-opt:hover:not(:disabled) { border-color: #597264; background: #111a14; transform: translateX(2px); }
.quiz-key { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; }
.quiz-opt.correct { border-color: var(--ok); background: rgba(99,245,174,.08); color: var(--ok); opacity: 1; }
.quiz-opt.correct .quiz-key { border-color: var(--ok); color: var(--ok); }
.quiz-opt.wrong { border-color: rgba(255,133,133,.6); background: rgba(255,133,133,.05); color: var(--err); opacity: 1; }
.quiz-feedback { min-height: 20px; margin-top: 11px; font-size: 12px; font-weight: 550; }
.quiz-feedback.ok { color: var(--ok); }
.quiz-feedback.err { color: var(--err); }
.quiz-note { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.help-card { width: min(650px, 100%); }
.help-content { padding: 28px; }
.help-content h2 { margin: 5px 0 8px; font-size: 31px; letter-spacing: -.04em; }
.help-intro { max-width: 55ch; margin: 0; color: var(--muted); font-size: 13px; }
.how-to { margin: 25px 0; padding: 0; list-style: none; }
.how-to li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.how-to li > span { color: var(--accent); font: 11px var(--mono); }
.how-to b { font-size: 12px; }
.how-to p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 22px 0; }
.shortcut-grid > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.shortcut-grid > span kbd:first-of-type { margin-left: auto; }

/* Primera experiencia */
.onboarding-card { width: min(760px, 100%); display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; }
.onboarding-visual { position: relative; display: grid; place-items: center; min-height: 410px; overflow: hidden; border-right: 1px solid var(--line-soft); background: radial-gradient(circle, rgba(99,245,174,.1), transparent 60%), #080e0b; }
.onboarding-core { z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid var(--accent); border-radius: 18px; background: #0d1a13; color: var(--accent); font: 700 28px var(--mono); box-shadow: 0 0 50px rgba(99,245,174,.13); transform: rotate(-8deg); }
.orbit { position: absolute; border: 1px solid rgba(99,245,174,.22); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.orbit-a { width: 210px; height: 210px; transform: rotate(25deg); }
.orbit-b { width: 320px; height: 160px; transform: rotate(-35deg); }
.onboarding-copy { padding: 42px 34px 30px; }
.onboarding-copy h2 { margin: 8px 0 14px; font-size: 33px; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.onboarding-copy > p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.onboarding-copy > p b { color: var(--fg); }
.onboarding-tip { display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 13px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }
.onboarding-tip kbd { color: var(--accent); white-space: nowrap; }
.onboarding-copy .text-btn { display: block; margin: 14px auto 0; color: var(--muted); }

/* Acceso */
.login-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #0c1b13 0%, var(--bg) 62%); }
.login-grid { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(99,245,174,.09), transparent 42%); }
.login-card { position: relative; width: min(400px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11,17,14,.96); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.login-brand > span:last-child { color: var(--accent); margin-left: -5px; }
.login-status { display: flex; align-items: center; gap: 7px; margin: 30px 0 10px; color: var(--accent); font: 9px var(--mono); letter-spacing: .12em; }
.login-card h1 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.login-sub { margin: 7px 0 27px; color: var(--muted); font-size: 12px; }
.login-card label { display: block; margin: 14px 0 6px; color: #b9c7bd; font-size: 11px; font-weight: 550; }
.login-card input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #070c09; color: var(--fg); font-size: 13px; }
.login-card input:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(99,245,174,.07); }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-field .icon-btn { position: absolute; top: 4px; right: 4px; }
.login-submit { margin-top: 23px; min-height: 45px; }
.login-error { margin: 12px 0 0; color: var(--err); font-size: 11px; }
.login-note { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 9px; }
.login-foot { position: absolute; bottom: 24px; color: #617368; font: 8px var(--mono); letter-spacing: .16em; }

/* Ruta guiada de análisis social */
.social-card { width: min(680px, 100%); }
.social-content { padding: 28px; }
.social-content h2 { margin: 6px 0 9px; font-size: 32px; line-height: 1.15; letter-spacing: -.04em; }
.social-intro { max-width: 58ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.social-flow { margin: 24px 0 18px; }
.social-step { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 13px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--fg); text-align: left; cursor: pointer; }
.social-step:hover { background: rgba(99,245,174,.035); }
.social-step > span:first-child { color: var(--accent); font: 11px var(--mono); }
.social-step b { display: block; font-size: 13px; }
.social-step small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.social-step svg { color: var(--muted); }
.social-rule { margin: 18px 0 22px; padding: 13px 15px; border: 1px solid rgba(99,245,174,.18); border-radius: 6px; background: rgba(99,245,174,.04); color: #bdccc1; font-size: 11px; line-height: 1.65; }
.social-rule b { color: var(--accent); }
.filter-tabs { overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button { white-space: nowrap; }

@media (max-width: 1050px) {
  .brand-edition, .live-status { display: none; }
  .tip-panel { width: 260px; }
  .control-hint { display: none; }
  .dock-separator { display: none; }
}
@media (max-width: 720px) {
  .topbar { height: 64px; padding: 0 14px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { font-size: 13px; }
  .top-actions { gap: 3px; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; border-color: transparent; }
  .search-trigger span, .search-trigger kbd, .icon-btn.labeled span { display: none; }
  .icon-btn.labeled { padding: 0 8px; }
  .progress-panel { top: 76px; left: 14px; right: 14px; width: auto; display: grid; grid-template-columns: 1fr minmax(140px, 45%); align-items: center; gap: 10px 16px; padding: 12px 14px; }
  .progress-panel .panel-kicker { grid-column: 1 / -1; }
  .progress-main { margin: 0; }
  .progress-main strong { font-size: 30px; }
  .progress-main > span { font-size: 9px; }
  .progress-track { grid-column: 1; }
  .progress-meta { display: none; }
  .zone-legend { display: none; }
  .progress-panel .primary-btn { grid-column: 2; grid-row: 2 / 4; margin-top: 0; font-size: 10px; min-height: 38px; }
  .toast-region { top: auto; bottom: 80px; width: calc(100% - 28px); }
  .toast { width: 100%; justify-content: center; text-align: center; }
  .tip-panel { right: 14px; bottom: 86px; width: min(280px, calc(100vw - 28px)); padding: 12px; }
  .tip-panel p { margin: 5px 0; font-size: 10px; }
  .control-dock { bottom: 18px; }
  .dock-btn { height: 35px; }
  .corner-coordinates { display: none; }
  .modal { padding: 10px; }
  .modal-card { max-height: 94vh; }
  #mission { padding: 20px; }
  .quiz-section { margin: 25px -20px -20px; padding: 20px; }
  .onboarding-card { grid-template-columns: 1fr; }
  .onboarding-visual { display: none; }
  .onboarding-copy { padding: 32px 25px 25px; }
  .arsenal-drawer { padding: 20px 16px; }
  .drawer-footer { display: none; }
}
.meta-chip svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 480px) {
  .tip-panel { display: none; }
  .progress-main > span { display: none; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .help-content { padding: 22px; }
  .login-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
