:root {
  --bg: #0f131a; --panel: #1b2230; --ink: #eceae3; --muted: #a0a9b8;
  --accent: #e8b448; --line: #3a475c; --zone: #2b3544; --mine: #3f9d6b;
  --card: #232c3d; --btn: #34425a; --btn-hi: #42536f; --btn-line: #5a6c89; --ok: #52c18a; --bad: #ef6f5e; --viol: #8a6bd1;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: var(--bg); color: var(--ink); font: 15px/1.4 system-ui, sans-serif; display: flex; flex-direction: column; }
.hud { display: flex; align-items: center; gap: 10px 20px; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .12em; }
.brand-mark { background: var(--accent); color: #111; padding: 2px 6px; border-radius: 4px; margin-right: 6px; }
.clock { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.clock #date { min-width: 110px; font-weight: 600; }
button { background: var(--zone); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
button.on { background: var(--accent); color: #111; border-color: var(--accent); }
.stage { --panel-w: 420px; flex: 1; display: flex; min-height: 0; min-width: 0; }
#map { flex: 1 1 0; min-width: 160px; height: 100%; cursor: grab; touch-action: none; background: #0f1319; }
.zone { fill: color-mix(in srgb, var(--mine) calc(var(--control, 0) * 100%), var(--zone)); stroke: #0f1319; stroke-width: .8; vector-effect: non-scaling-stroke; transition: fill .3s; }
.zone:hover { filter: brightness(1.25); }
.zone.sel { stroke: var(--accent); stroke-width: 2; }
.panel { flex: 0 0 var(--panel-w); width: var(--panel-w); min-width: 0; padding: 16px; background: var(--panel); overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; }
.panel h2 { margin: 0 0 8px; }
.muted { color: var(--muted); }
@media (max-width: 760px) { .stage { flex-direction: column; } .panel { flex: 1 1 50%; width: auto; border-top: 1px solid var(--line); } .resizer { display: none; } #map { flex: 1 1 40%; min-height: 160px; } }

/* Fase 1: ciudad, misiones, log */
.stats { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-left: auto; min-width: 0; }
.lbl { paint-order: stroke; stroke: #0f1319; stroke-width: 3px; stroke-linejoin: round; fill: #cfd6e0; text-anchor: middle; pointer-events: none; opacity: .8; }
.zone.busy { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.5); } }
button.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; padding: 8px 14px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.city { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
.mission { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; display: grid; gap: 4px; }
.mission.locked { opacity: .7; }
.meta small { font-variant-numeric: tabular-nums; }
.job { margin-bottom: 8px; }
.bar { height: 6px; background: var(--zone); border-radius: 3px; overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--accent); }
.log { display: none; padding: 6px 16px; background: var(--panel); border-top: 1px solid var(--line); font-size: 13px; max-height: 120px; overflow: auto; }
.playing .log { display: block; }
.ev { padding: 1px 0; color: var(--muted); } .ev:first-child { color: var(--ink); }
.ev.ok { color: #7fd1a0; } .ev.bad { color: #e48a7c; } .ev.promo { color: var(--accent); font-weight: 600; }
.attrib { font-size: 11px; margin-top: 20px; }
.vote-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 6px 0; }
.vote-bar i { display: block; height: 100%; }
.vote-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.vote-legend .dot { width: 8px; height: 8px; margin: 0 4px 0 0; flex: none; }
.small { font-size: 12px; margin: 6px 0 0; }

/* Dinero negro y eventos */
.expo { color: var(--muted); } .expo.mid { color: #e0b24a; } .expo.hi { color: #e4604f; font-weight: 700; }
.btns { display: flex; gap: 6px; } .btns button { flex: 1; }
button.negro { border-color: #6b4f8a; background: #2a2236; } button.negro:disabled { background: var(--zone); }
.modal { position: fixed; inset: 0; background: rgba(8, 10, 14, .72); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; max-width: 520px; width: 100%; }
.modal .card.scandal { border-color: #e4604f; }
.modal h2 { margin: 0 0 8px; } .modal p { margin: 0 0 14px; line-height: 1.5; }
.choices { display: grid; gap: 8px; }
.choices button { text-align: left; padding: 10px 12px; } .choices small { display: block; color: var(--muted); margin-top: 2px; }

/* Guardado */
.file-actions { display: flex; gap: 6px; }
.file-actions button { font-size: 12px; padding: 4px 8px; }
#continue { display: block; width: 100%; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--panel); border: 1px solid var(--accent); padding: 10px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .25s; z-index: 20; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.stats { margin-left: auto; } .file-actions { margin-left: 8px; }

/* Panel: redimensionado, pestañas, acciones, rivales, fundación */
.resizer { flex: 0 0 7px; cursor: col-resize; background: var(--line); position: relative; }
.resizer:hover, .resizer:focus-visible, .resizer:active { background: var(--accent); outline: none; }
.resizer::after { content: ''; position: absolute; inset: 45% 2px; border-left: 1px solid #fff4; border-right: 1px solid #fff4; }
.panel h2 { font-size: 20px; }
.actions { background: #151b24; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 12px; }
.actions h3 { margin: 0; }
.actions-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.slots { font-size: 12px; color: var(--muted); } .slots .free { color: #7fd1a0; font-weight: 600; } .slots .busy-txt { color: #e0b24a; font-weight: 600; }
.job { margin-bottom: 8px; } .job:last-child { margin-bottom: 0; }
.job-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.badge { font-size: 11px; color: var(--muted); white-space: nowrap; }
.job-sub { font-size: 12px; color: var(--muted); }
.bar.big { height: 20px; border-radius: 10px; position: relative; margin: 6px 0 2px; }
.bar.big i { transition: width .2s linear; }
.bar.big span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.bar.thin { height: 4px; margin: 3px 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; position: sticky; top: -16px; background: var(--panel); padding-top: 4px; z-index: 2; }
.tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 4px; color: var(--muted); font-weight: 600; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); background: none; }
.mission .meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.mission details { font-size: 12px; } .mission summary { cursor: pointer; color: var(--muted); }
.factors { list-style: none; margin: 4px 0 0; padding: 0; }
.factors li { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; }
.factors li.pos b { color: #7fd1a0; } .factors li.neg b { color: #e48a7c; }
.btns { flex-wrap: wrap; } .btns button { min-width: 0; font-size: 13px; }
.rival { margin: 8px 0; } .rival-top { display: flex; align-items: center; gap: 6px; } .rival-top .rn { flex: 1; font-weight: 600; } .rival-top .rp { font-variant-numeric: tabular-nums; color: var(--muted); }
.dot { display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 3px; margin-top: 3px; }
.react { display: block; color: #e0b24a; margin-top: 2px; }
.rival-line, .alert-rival { display: flex; gap: 8px; margin: 6px 0; align-items: flex-start; }
.alert-rival { background: #2a1d1d; border: 1px solid #5a2f2f; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.small-p { font-size: 13px; margin: 0 0 6px; } .small-p .mid { color: #e0b24a; } .small-p .hi { color: #e4604f; }
.field { display: block; margin: 8px 0 4px; font-weight: 600; font-size: 13px; }
.field input { display: block; width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: #11161d; color: var(--ink); font: inherit; }
.field input:focus { outline: 2px solid var(--accent); }
.principles { display: grid; gap: 6px; }
.principle { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.principle.on { border-color: var(--accent); background: #2a2517; } .principle.off { opacity: .45; cursor: not-allowed; }
.principle.static { cursor: default; } .principle input { margin-top: 4px; }
.error { color: #e4604f; min-height: 1.2em; margin: 8px 0; font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; } .kv b { text-align: right; font-variant-numeric: tabular-nums; }
.prog-bg { fill: rgba(10, 12, 16, .85); stroke: rgba(255, 255, 255, .35); stroke-width: .3px; }
.prog-fill { fill: var(--accent); }
.prog-txt { fill: #fff; text-anchor: middle; font-weight: 700; paint-order: stroke; stroke: #000; stroke-linejoin: round; pointer-events: none; }
.prog { pointer-events: none; }

/* Rivales vivos, choques y línea partidaria */
.clash { display: flex; gap: 8px; align-items: flex-start; background: #2a2417; border: 1px solid #5a4a22; border-radius: 8px; padding: 6px 8px; font-size: 12.5px; }
.clash.rumor { border-style: dashed; } .clash em, .alert-rival em { font-style: normal; color: var(--muted); }
.alert-rival.propia { background: #1d222c; border-color: var(--line); }
.rcard { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.r-act { margin-top: 8px; font-size: 13px; } .r-act.hostil b { color: #e4604f; } .r-act.idle { margin-top: 6px; }
.feed-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.feed-item.cumplida { color: #7fd1a0; } .feed-item.vencida, .feed-item.rechazo { color: #e48a7c; }
.leader { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.leader-head { display: flex; flex-direction: column; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.chip { font-size: 11px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; color: var(--muted); } .chip.common { border-color: var(--accent); color: var(--accent); }
.directive { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; } .directive.new { border-color: var(--accent); background: #2a2517; }
.directive p { margin: 4px 0 8px; }
.ping { color: var(--accent); font-size: 10px; vertical-align: super; animation: ping 1.4s ease-in-out infinite; } @keyframes ping { 50% { opacity: .25; } }
.ev.rival { color: #e0b24a; } .ev.linea { color: #8fb4e8; }
.tabs button { padding: 8px 2px; font-size: 14px; }

/* Economía */
.rojo { color: #e4604f; font-weight: 700; } small.neg, b.neg { color: #e48a7c; } small.pos, b.pos { color: #7fd1a0; }
.tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #6b4f8a; color: #b99ae0; border-radius: 99px; padding: 1px 7px; vertical-align: middle; }
.mission.ilegal { border-color: #4a3a5e; background: #1d1826; }
.favor { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 6px; } .favor.urgente { border-color: #e4604f; background: #2a1d1d; }
.kv2 { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; font-size: 13px; padding: 3px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; } .kv2 span:nth-child(2) { color: var(--muted); }
.tabs button { font-size: 13px; }

/* Plantel y escalafón */
.req { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: start; }
.req.ok span:first-child { color: #7fd1a0; } .req.no span:first-child { color: #e48a7c; } .req b { font-variant-numeric: tabular-nums; text-align: right; }
button.full { width: 100%; margin: 10px 0 4px; }
.cargo, .vacancia, .miembro { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.cargo.cerrado { opacity: .55; display: flex; flex-direction: column; } .cargo.vacante { border-color: #e0b24a; background: #2a2417; }
.cargo .miembro { margin: 6px 0 0; background: #181e27; }
.c-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tag.warn { border-color: #e0b24a; color: #e0b24a; }
.m-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.meter { display: block; height: 4px; background: var(--zone); border-radius: 2px; margin-top: 3px; overflow: hidden; } .meter i { display: block; height: 100%; background: #7fd1a0; } .meter.bad i { background: #e4604f; } .meter.warn i { background: #e0b24a; }
.vacantes { border: 1px solid #e0b24a; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; background: #231f14; }
.vacancia { background: #1b1f27; } .candidato { margin-top: 6px; } .candidato button { width: 100%; margin-top: 4px; }
.cuadros { margin-top: 8px; font-size: 13px; } .cuadros summary { cursor: pointer; color: var(--muted); }
.cuadro { display: grid; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Pactos */
.rel-line { margin-top: 6px; } .rel-line .meter { margin-top: 3px; }
.pacto.activo { margin-top: 8px; background: #17261d; border: 1px solid #2f5a40; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.pactos { margin-top: 8px; font-size: 13px; } .pactos summary { cursor: pointer; color: var(--accent); }
.tipo-pacto { border-top: 1px solid var(--line); padding: 8px 0; }

/* ===== Interfaz v2: jerarquía, modo Rápido/Detallado, tooltips ===== */
:root { --r: 10px; --sp1: 4px; --sp2: 8px; --sp3: 12px; --sp4: 16px; --ink2: #b7bdc9; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; margin-right: 4px; }

/* Modo: lo marcado como .detalle solo se ve en Detallado (o dentro de una misión abierta con "…") */
body.modo-rapido .detalle { display: none !important; }
body.modo-rapido .mission.abierta .detalle { display: block !important; }
body.modo-rapido .mission.abierta .btns.detalle, body.modo-rapido .mission.abierta .m-extra { display: block !important; }
body.modo-detallado .mas-btn, body.modo-detallado .solo-rapido { display: none; }
body:not(.modo-rapido):not(.modo-detallado) .detalle { display: none; }

/* Barra superior */
.hud { gap: 8px 16px; padding: 8px 14px; }
.modo { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.modo button { border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 5px 12px; font-size: 13px; }
.modo button[aria-pressed="true"] { background: var(--accent); color: #111; font-weight: 700; }
.stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; min-width: 0; }
.grp { display: inline-flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 1px solid var(--line); }
.grp:last-child { border-right: 0; padding-right: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: #202836; border-radius: 8px; font-size: 14px; white-space: nowrap; cursor: help; }
.chip .ico { margin-right: 2px; color: var(--ink2); }
.chip small { color: var(--muted); font-size: 11.5px; margin-left: 3px; } .chip small.neg { color: #e48a7c; } .chip small.pos { color: #7fd1a0; }
.chip.rojo { background: #3a1f1f; color: #ffb3a8; } .chip.mid { background: #3a3220; color: #f0cf7a; } .chip.hi { background: #3a1f1f; color: #ffb3a8; }
.hud-tools { display: flex; gap: 6px; align-items: center; }
.hud-tools > button, .menu-partida summary { background: var(--zone); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; list-style: none; color: var(--ink); }
.menu-partida { position: relative; } .menu-partida summary::-webkit-details-marker { display: none; }
.menu-partida .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; gap: 4px; min-width: 190px; box-shadow: 0 8px 24px #0008; }
.menu-partida .menu button { text-align: left; border: 0; background: transparent; padding: 8px 10px; }
.menu-partida .menu button:hover { background: var(--zone); }

/* Mapa */
.mapa-wrap { position: relative; flex: 1 1 0; min-width: 160px; height: 100%; }
#map { width: 100%; height: 100%; min-width: 0; flex: none; }
.leyenda { display: none; position: absolute; left: 10px; bottom: 10px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink2); background: rgba(16, 19, 26, .85); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; pointer-events: none; }
body.playing .leyenda { display: flex; }
.leyenda .grad { width: 56px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--zone), var(--mine)); display: inline-block; }
.leyenda .rm i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e0605e; margin-right: 4px; vertical-align: -1px; }
.maphover { position: absolute; z-index: 5; pointer-events: none; background: rgba(16, 19, 26, .95); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; max-width: 220px; box-shadow: 0 6px 18px #0009; }
.rmark { pointer-events: none; } .rmark-i { font-weight: 800; pointer-events: none; }

/* Franja "Ahora" */
.ahora-box { margin: 0 0 var(--sp3); display: grid; gap: 6px; }
.ahora-box h3 { margin: 0 !important; }
.ahora { display: flex; align-items: flex-start; gap: 8px; text-align: left; width: 100%; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); background: #1d2430; font-size: 13.5px; line-height: 1.35; }
.ahora .ico { margin: 2px 0 0; color: var(--ink2); }
.ahora.urgente { border-color: #e4604f; background: #2a1d1d; } .ahora.urgente .ico { color: #e4604f; }
.ahora.alerta { border-color: #e0b24a; background: #2a2417; } .ahora.alerta .ico { color: #e0b24a; }
.ahora.oportunidad { border-color: #3f9d6b; background: #17261d; } .ahora.oportunidad .ico { color: #7fd1a0; }
.ahora:disabled { opacity: 1; cursor: default; }

/* Misiones compactas */
.mission.compact { padding: 8px 10px; gap: 6px; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 8px; align-items: center; }
.m-name { grid-column: 1 / -1; font-size: 14.5px; }
.m-quick { display: flex; gap: 10px; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-quick .ico { margin-right: 3px; }
.go { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; padding: 5px 14px; } .go:disabled { background: var(--zone); color: var(--muted); border-color: var(--line); }
.mas-btn { padding: 5px 8px; } .mas-btn .ico { margin: 0; }
.rec { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 1px 8px; cursor: help; white-space: nowrap; }
.lock-why { color: #e0b24a; font-size: 12px; }
.m-extra { display: grid; gap: 6px; }
.mission.compact .meta { margin: 0; }
.sec { margin: 8px 0; } .sec > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; list-style: none; }
.sec > summary::-webkit-details-marker { display: none; } .sec > summary::before { content: '▸'; margin-right: 6px; transition: transform .15s; } .sec[open] > summary::before { transform: rotate(90deg); }
.sec > summary span:first-child { flex: 1; } .count { background: var(--zone); border-radius: 99px; padding: 1px 8px; font-size: 11px; }
.sec > :not(summary) { margin-top: 8px; }
.z-resumen { margin: 0 0 8px; font-size: 13.5px; color: var(--ink2); } .z-resumen b { color: var(--ink); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.seg button { flex: 1; border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 7px; } .seg button.on { background: var(--zone); color: var(--accent); font-weight: 700; }

/* Registro */
.log { padding: 6px 14px; }
.log-bar { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.chips-f { display: flex; gap: 4px; flex-wrap: wrap; }
.chip-f { background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; color: var(--muted); } .chip-f.on { color: var(--accent); border-color: var(--accent); }
.log-items { display: grid; gap: 1px; } .log-items.abierto { max-height: 200px; overflow-y: auto; }
.log { max-height: none; overflow: visible; }
.ev { display: flex; gap: 8px; align-items: baseline; font-size: 13px; } .k-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.ev.ok .k-dot { background: #7fd1a0; } .ev.bad .k-dot { background: #e48a7c; } .ev.rival .k-dot { background: #e0b24a; } .ev.linea .k-dot { background: #8fb4e8; } .ev.promo .k-dot { background: var(--accent); }

/* Tooltips */
.tooltip { position: fixed; z-index: 100; max-width: 280px; background: #0d1117; color: var(--ink); border: 1px solid #3a4558; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 8px 24px #000a; pointer-events: none; }
.tooltip[hidden] { display: none; } .tt-titulo { display: block; margin-bottom: 3px; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; } .tt-texto { color: var(--ink2); }
[data-tip]:not(.chip):not(button), [data-tip-texto]:not(button) { cursor: help; text-decoration: underline dotted #6b7586; text-underline-offset: 3px; }
.cert { white-space: nowrap; }

/* Ayuda y primer uso */
.card.ayuda { max-width: 620px; max-height: 86vh; overflow-y: auto; }
.ayuda-head { display: flex; justify-content: space-between; align-items: center; } .ayuda-head h2 { margin: 0; }
kbd { background: #202836; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.glosario dt { font-weight: 700; margin-top: 10px; color: var(--accent); } .glosario dd { margin: 2px 0 0; color: var(--ink2); font-size: 13.5px; }
.onb { position: fixed; inset: 0; z-index: 90; }
.onb-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(6, 8, 12, .78); border: 2px solid var(--accent); pointer-events: none; transition: all .25s; }
.onb-card { position: fixed; width: 310px; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px #000b; } .onb-card h3 { margin: 4px 0; font-size: 16px; } .onb-card p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink2); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 760px) { .stats { margin-left: 0; } .modo button { padding: 4px 9px; } }

/* Correcciones de la revisión */
.chip-f.on { background: #2a2517; color: var(--accent); border-color: var(--accent); }
.hud { gap: 6px 10px; }
.brand { font-size: 13px; letter-spacing: .08em; white-space: nowrap; }
.chip { padding: 3px 7px; font-size: 13.5px; } .grp { gap: 4px; padding-right: 8px; }
.stats { gap: 6px; }
.clock button { padding: 4px 8px; }

@media (max-width: 1320px) { .brand-txt { display: none; } }

/* Pestaña Yo */
.desgaste { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; } .d-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.desgaste .bar i { background: #7fd1a0; } .desgaste.atento .bar i { background: #b9d07a; } .desgaste.cansado .bar i { background: #e0b24a; } .desgaste.agotado .bar i { background: #e4604f; }
.desgaste.agotado { border-color: #e4604f; } .desgaste.cansado { border-color: #e0b24a; }
.rama { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 6px; }
.r-top { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; } .r-top button { padding: 2px 10px; font-weight: 700; }
.pips { display: inline-flex; gap: 3px; } .pip { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #6b7586; } .pip.on { background: var(--accent); border-color: var(--accent); }
.ventajas { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12.5px; color: var(--muted); } .ventajas li { padding: 2px 0; } .ventajas li.on { color: #7fd1a0; }
.trabajo .btns { margin-top: 8px; }

/* Solapas generales y vistas anchas */
.vistas { display: flex; gap: 4px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); } .vistas[hidden] { display: none; }
.vistas button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 18px; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.vistas button.on { color: var(--accent); border-bottom-color: var(--accent); }
.vista { flex: 1; min-height: 0; overflow: auto; background: var(--bg); } .vista[hidden] { display: none; }
body.vista-ancha .stage { display: none; }
.vista-in { max-width: 1180px; margin: 0 auto; padding: 16px; } .vista-top .actions { margin-top: 0; }
.vista-h { margin: 6px 0 8px; font-size: 24px; }
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.subtabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font-weight: 600; padding: 7px 12px; }
.subtabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.resumen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; align-items: start; } .ancho-2 { grid-column: 1 / -1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; } .card h3 { margin-top: 0 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.ancho-lectura { max-width: 640px; }
.yo-vista { max-width: 760px; }
.org { display: grid; gap: 10px; } .org-nivel h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.org-nivel { padding-left: 14px; border-left: 2px solid var(--line); }
.org-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.nodo { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; min-width: 190px; max-width: 260px; align-content: start; }
.nodo.ext { opacity: .75; border-style: dashed; } .nodo.yo { border-color: var(--accent); } .nodo small { color: var(--muted); } .warn-txt { color: #e0b24a !important; }
.persona { display: grid; gap: 2px; text-align: left; width: 100%; background: #1d2430; padding: 6px 8px; border-radius: 8px; } .persona small { color: var(--muted); font-size: 12px; }
.persona:hover, .persona:focus-visible { border-color: var(--accent); }
.org-fila > .persona { width: auto; min-width: 170px; max-width: 230px; }
.sems { display: flex; gap: 4px; } .s { width: 26px; height: 5px; border-radius: 3px; background: #6b7586; } .s.alto { background: #7fd1a0; } .s.medio { background: #e0b24a; } .s.bajo { background: #e4604f; }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tabla th, .tabla td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla th { background: #151b24; font-size: 12px; color: var(--muted); } .tabla .th { border: 0; background: none; padding: 0; color: inherit; font-weight: 700; } .tabla .th.on { color: var(--accent); }
.tabla tbody tr { cursor: pointer; } .tabla tbody tr:hover, .tabla tbody tr:focus-visible { background: #202836; outline: none; }
.tabla .meter { display: inline-block; width: 40px; vertical-align: middle; margin-left: 6px; } .neg { color: #e48a7c; }
.ficha { margin-top: 14px; background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 14px; max-width: 640px; }
.ficha-h { display: flex; justify-content: space-between; align-items: center; } .ficha-h h3 { margin: 0 !important; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); }
/* Informe flotante */
.informe { position: fixed; right: 16px; bottom: 16px; width: 330px; max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto; z-index: 25; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px #000b; }
.informe h3 { margin: 0 0 8px !important; color: var(--accent); }
.inf { border-left: 3px solid #7fd1a0; padding: 2px 0 2px 10px; margin-bottom: 10px; } .inf.mal { border-left-color: #e4604f; } .inf p { margin: 4px 0; font-size: 13.5px; }
.inf-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.cambios { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 6px; } .cambio { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: #202836; font-variant-numeric: tabular-nums; } .cambio.pos { color: #7fd1a0; } .cambio.neg { color: #e48a7c; }
@media (max-width: 760px) { .vistas { padding: 0 8px; overflow-x: auto; } .vista-in { padding: 10px; } .informe { left: 8px; right: 8px; bottom: 8px; width: auto; } .nodo { min-width: 150px; } }

/* Elecciones */
.el-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .el-top h3 { margin-bottom: 2px !important; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; padding: 0; margin: 8px 0; }
.tl { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: grid; gap: 1px; font-size: 13px; background: #151b24; } .tl small { color: var(--muted); font-size: 11.5px; }
.tl.hecho { opacity: .6; } .tl.ahora { border-color: var(--accent); background: #2a2517; } .tl.ahora b { color: var(--accent); }
.cont { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 6px; } .cont-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cands { display: flex; flex-wrap: wrap; gap: 6px; } .cand { display: inline-flex; gap: 6px; align-items: baseline; font-size: 13px; } .cand small { color: var(--muted); } .cand.on { border-color: var(--accent); background: #2a2517; }
.enc, .hist-c { margin: 8px 0; } .hist { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; } .hist:first-of-type { border-top: 0; margin-top: 0; }
.chip-el { cursor: pointer; } .chip-el.mid { border-color: var(--accent); }
.inf.neutro { border-left-color: var(--accent); }

.grp-t { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.medio { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; } .medio button { flex: 0 0 auto; }

/* Revelado progresivo */
.nuevo { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #111; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; animation: pulso 1.6s ease-in-out 3; }
@keyframes pulso { 50% { box-shadow: 0 0 0 5px #d9a44155; } }
body.progresivo:not(.r-ui-modo) .modo { display: none; }
body.progresivo:not(.r-ui-log) .log { display: none !important; }
body.progresivo:not(.r-map-leyenda) .leyenda { display: none; }
.informe .btns { margin-top: 6px; }

/* Centro de ayuda, guías contextuales y recorrido */
.ayuda-centro { max-width: 880px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; }
.ayuda-cols { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; min-height: 0; flex: 1; }
.ayuda-nav { display: grid; gap: 4px; align-content: start; } .ayuda-nav button { text-align: left; border: 0; background: none; color: var(--muted); font-weight: 600; padding: 8px 10px; border-radius: 8px; } .ayuda-nav button.on { background: #2a2517; color: var(--accent); }
.ayuda-cuerpo { overflow-y: auto; min-width: 0; padding-right: 6px; max-height: calc(88vh - 90px); } .ayuda-cuerpo h3 { margin-top: 0; } .ayuda-cuerpo p { line-height: 1.5; }
.prog-g { margin-bottom: 8px; } .prog { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; } .prog p { margin: 2px 0; font-size: 13.5px; } .prog.lock { opacity: .85; border-style: dashed; } .prog.ok .p-ic { color: #7fd1a0; }
.prog-b { margin-top: 6px; } .prog-b .bar { margin-top: 3px; }
.conceptos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; } .conceptos h4 { margin: 0 0 4px; } .conceptos p { margin: 0; font-size: 13.5px; }
.guia-ctx { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: #2a2517; border: 1px solid var(--accent); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; } .guia-ctx p { margin: 2px 0 0; font-size: 13.5px; } .guia-ctx .btns { flex: 0 0 auto; }
.vista-guia { padding-bottom: 0; } .vista-guia:empty { display: none; }
.onb-fondo { position: fixed; inset: 0; background: rgba(6, 8, 12, .78); }
@media (max-width: 760px) { .ayuda-cols { grid-template-columns: 1fr; } .ayuda-nav { display: flex; overflow-x: auto; } .ayuda-nav button { white-space: nowrap; } .ayuda-cuerpo { max-height: calc(88vh - 150px); } }

.informe > .btns:last-of-type { position: sticky; bottom: -12px; background: var(--panel); padding: 8px 0 4px; z-index: 1; }

/* Contraste y jerarquía de botones: principal (dorado) > secundario (gris azulado con borde) > ghost (solo texto) */
button { background: var(--btn); border: 1px solid var(--btn-line); color: var(--ink); font-weight: 600; transition: background .12s, border-color .12s, transform .05s; }
button:hover:not(:disabled) { background: var(--btn-hi); border-color: #8196b6; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; background: var(--panel); border-style: dashed; color: var(--muted); }
button.primary, .mission:has(.rec) button.go { background: var(--accent); border-color: #f3cd7a; color: #17130a; font-weight: 800; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 6px rgba(0,0,0,.4); }
button.primary:hover:not(:disabled), .mission:has(.rec) button.go:hover:not(:disabled) { background: #f6c866; border-color: #ffe0a0; }
button.go { border-color: var(--accent); color: var(--accent); background: transparent; }
button.go:hover:not(:disabled) { background: rgba(232,180,72,.16); }
button.go:disabled { background: var(--panel); color: var(--muted); border-color: var(--line); box-shadow: none; }
button.ghost, button.mas-btn, [data-ayuda-ir], [data-informe-ir] { background: transparent; border-color: transparent; color: var(--accent); }
button.ghost:hover:not(:disabled), button.mas-btn:hover:not(:disabled), [data-ayuda-ir]:hover, [data-informe-ir]:hover { background: rgba(232,180,72,.14); border-color: transparent; text-decoration: underline; }
button.danger { background: #4a1f1c; border-color: var(--bad); color: #ffd7d1; } button.danger:hover:not(:disabled) { background: #682824; border-color: #ff9a8b; }
button.negro { background: #3a2a5c; border-color: var(--viol); color: #e8dcff; } button.negro:hover:not(:disabled) { background: #4a3774; }
button.on, .modo button[aria-pressed="true"] { background: var(--accent); color: #17130a; border-color: #f3cd7a; font-weight: 800; }
.vistas button, .tabs button, .subtabs button, .seg button, .modo button, .ayuda-nav button, .menu-partida .menu button { background: transparent; border-color: transparent; box-shadow: none; }
.vistas button:hover, .tabs button:hover, .subtabs button:hover, .ayuda-nav button:hover { background: rgba(255,255,255,.07); border-color: transparent; }
.vistas button.on, .tabs button.on, .subtabs button.on { background: rgba(232,180,72,.12); color: var(--accent); }
.ayuda-nav button.on { background: rgba(232,180,72,.18); color: var(--accent); }
.hud-tools > button, .menu-partida summary { background: var(--btn); border-color: var(--btn-line); }
.panel h3 { color: #c8d0dc; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.hud, .panel, .log { background: var(--panel); }
.mission, .req, .prog, .medio, .conceptos .card, .card { background: var(--card); border-color: var(--line); }
.mission { border-left: 4px solid var(--ok); }
.mission.ilegal { border-left-color: var(--viol); background: #251d38; }
.mission.locked { border-left-color: var(--line); opacity: .75; }
.mission:has(.rec) { border-color: var(--accent); border-left-color: var(--accent); background: #2e2a1d; box-shadow: 0 0 0 1px rgba(232,180,72,.25); }
.rec { color: #17130a; background: var(--accent); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 800; }
.guia-ctx, .informe .card { border-color: var(--accent); }
.ev.ok { color: var(--ok); } .ev.bad { color: var(--bad); }

/* Hora del día y luz del mapa */
.hora { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hora b { color: var(--ink); font-size: 14px; min-width: 40px; } .hora small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; min-width: 62px; }
.hora svg { overflow: visible; } #astro { fill: #f3cd7a; transition: fill .4s; } .hora.noche #astro { fill: #aab8d8; }
.luz { position: absolute; inset: 0; pointer-events: none; background: #070b24; opacity: calc(var(--noche, 0) * .5); mix-blend-mode: multiply; z-index: 1; }
.luz.alba { background: #3a1a0c; }
.leyenda, .maphover { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .luz { display: none; } }
@media (max-width: 760px) { .hora small { display: none; } }

/* Calendario anual */
.cal-vista { display: grid; gap: 12px; } .cal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .cal-top h2 { margin: 0; } .cal-nav button { flex: 0 0 auto; min-width: 40px; }
.cal-filtros { display: flex; gap: 6px; flex-wrap: wrap; } .chip-f { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; background: transparent; color: var(--muted); } .chip-f i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; opacity: .4; } .chip-f.on { color: var(--ink); border-color: var(--accent); background: rgba(232,180,72,.12); } .chip-f.on i { opacity: 1; }
.cal-ventana { background: #2e2a1d; border: 1px solid var(--accent); border-radius: 10px; padding: 6px 12px; } .cal-ventana p { margin: 2px 0; font-size: 13.5px; }
.cal-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.cal-meses { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cal-mes { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .cal-mes.actual { border-color: var(--accent); } .cal-mes h4 { margin: 0 0 4px; font-size: 13px; color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 11.5px; } .cal-grid small { color: var(--muted); font-size: 10px; }
.cal-d { position: relative; padding: 3px 0 7px; border-radius: 5px; color: var(--ink); font-variant-numeric: tabular-nums; } .cal-d.hito { background: rgba(255,255,255,.07); font-weight: 700; cursor: help; } .cal-d.hoy { outline: 2px solid var(--accent); background: rgba(232,180,72,.2); }
.cal-pts { position: absolute; left: 0; right: 0; bottom: 1px; display: flex; justify-content: center; gap: 2px; } .cal-pts b { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal-prox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .cal-prox h3 { margin-top: 0; }
.cal-h { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .cal-h p { margin: 2px 0 0; font-size: 13px; color: var(--muted); } .cal-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; display: block; }
@media (max-width: 900px) { .cal-cols { grid-template-columns: 1fr; } }

/* Ofensivas contra rivales */
.of-fila { display: flex; align-items: center; gap: 8px; margin-top: 4px; } button.atacar { padding: 3px 8px; }
.of-menu { margin-top: 6px; border: 1px solid #6b2f2a; background: #261a1c; border-radius: 10px; padding: 8px 10px; } .of-menu h5 { margin: 10px 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #ff9a8b; }
.of-a { display: flex; gap: 8px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 6px 0; } .of-a.lock { opacity: .7; } .of-mot { color: #e0b24a; }
.rc-bajo { color: var(--muted); } .rc-medio { color: #e0b24a; } .rc-alto { color: var(--bad); }

.of-a button { white-space: nowrap; flex: 0 0 auto; padding: 6px 12px; }

/* Mesa de armado */
.mesa-fila { border-top: 1px solid var(--line); padding: 8px 0; display: grid; gap: 6px; } .mesa-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mesa-top .ghost { margin-left: auto; }
.tag.ok { background: #1d3a2b; color: var(--ok); border-color: var(--ok); } .tag.bad { background: #3a1f1c; color: var(--bad); border-color: var(--bad); }
.mesa-form { background: var(--card); border: 1px solid var(--btn-line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; } .mf { display: grid; gap: 4px; font-size: 12px; color: var(--muted); } .mesa-form .seg { flex-wrap: wrap; }
.contra { background: #2e2a1d; border: 1px solid var(--accent); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; }
.tablero { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .tablero li { border-top: 1px dashed var(--line); padding: 4px 0; }

/* Reloj sin saltos: anchos fijos */
.clock #date { display: inline-block; width: 12ch; min-width: 0; white-space: nowrap; }
.hora { white-space: nowrap; } .hora b { display: inline-block; width: 5ch; min-width: 0; } .hora small { display: inline-block; width: 9ch; min-width: 0; }
@media (max-width: 760px) { .hora small { display: none; } }

/* Movilidad: el jugador en el mapa */
.viajero .v-disco { fill: #f3cd7a; stroke: #10131a; } .viajero.vuelta .v-disco { fill: #9fc4f0; } .viajero .v-ico { fill: #10131a; }
.viajero .v-ruta { stroke: #f3cd7a; stroke-opacity: .55; } .viajero .v-rastro { stroke: #f3cd7a; stroke-opacity: .95; stroke-linecap: round; } .viajero.vuelta .v-ruta, .viajero.vuelta .v-rastro { stroke: #9fc4f0; }
.viajero .v-destino { fill: none; stroke: #f3cd7a; stroke-opacity: .9; } .viajero.vuelta .v-destino { stroke: #9fc4f0; }
.viajero .v-halo { fill: #f3cd7a; fill-opacity: .22; } .viajero.vuelta .v-halo { fill: #9fc4f0; }
.viajero .v-casa-disco { fill: #1d2430; stroke: #7fd1a0; } .viajero .v-casa-txt { fill: #7fd1a0; font-weight: 700; paint-order: stroke; stroke: #10131a; stroke-width: 2px; }
.viajero .v-eti { fill: #fff; font-weight: 700; paint-order: stroke; stroke: #10131a; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .viajero .v-halo { animation: v-pulso 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } .viajero .v-destino { animation: v-pulso 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes v-pulso { 0%, 100% { transform: scale(.85); opacity: .9; } 50% { transform: scale(1.15); opacity: .5; } }
/* Movilidad: viaje en la zona, tarjeta en camino y panel */
.viaje-zona { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #17202b; border: 1px solid var(--btn-line, var(--line)); border-left: 3px solid #f3cd7a; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; font-size: 13px; } .viaje-zona.aca { border-left-color: var(--ok, #3f9d6b); color: var(--muted); }
.v-chips, .mov-medios, .mov-futuros { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; } .chip { border: 1px solid var(--btn-line, var(--line)); background: var(--btn, var(--zone)); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; } .chip.on { border-color: #f3cd7a; background: #2a2517; color: #f3cd7a; } .chip.lock { opacity: .5; cursor: default; } .chip:disabled { opacity: .45; cursor: not-allowed; }
.job.viaje { border-left: 3px solid #f3cd7a; } .job.viaje .ghost { margin-top: 6px; }
.movilidad { margin-top: 16px; } .mejora { display: flex; gap: 10px; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; } .mejora.on { opacity: .75; border-color: var(--ok, #3f9d6b); } .mejora p { margin: 2px 0 0; font-size: 13px; } .mejora button { flex: 0 0 auto; }
.job.viaje.vuelta { border-left-color: #9fc4f0; }
