:root {
  --bg: #0a0e17;
  --bg2: rgba(22, 28, 40, 0.72);
  --bg3: rgba(38, 46, 64, 0.6);
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --txt: #eaf1fb;
  --txt-dim: #93a2ba;
  --mine: #4f8cff;
  --enemy: #ff5468;
  --gold: #ffce54;
  --good: #37e0a6;
  --purple: #a06bff;
  --radius: 16px;
  --sat: env(safe-area-inset-top, 0px);
  --glow-mine: 0 0 0 1px rgba(79,140,255,.35), 0 6px 24px -8px rgba(79,140,255,.5);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { overscroll-behavior: none; min-height: 100vh; position: relative; overflow-x: hidden; }

/* ===== Fondo aurora animado ===== */
body::before, body::after {
  content: ""; position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(90px); opacity: .55; pointer-events: none;
  will-change: transform;
}
body::before {
  width: 60vmax; height: 60vmax; top: -20vmax; left: -15vmax;
  background: radial-gradient(circle at 30% 30%, #2b5cff, transparent 60%);
  animation: drift1 22s ease-in-out infinite alternate;
}
body::after {
  width: 55vmax; height: 55vmax; bottom: -22vmax; right: -18vmax;
  background: radial-gradient(circle at 60% 40%, #7a2bff 0%, #ff2b5e 55%, transparent 70%);
  animation: drift2 26s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(12vmax,8vmax) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-10vmax,-6vmax) scale(.9); } }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

/* ===== Gate de contraseña ===== */
.gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: radial-gradient(120% 90% at 50% -10%, rgba(79,140,255,.14), transparent 60%), rgba(10,14,23,.6);
  backdrop-filter: blur(4px); transition: opacity .5s ease, transform .5s ease; }
.gate.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.gate-card { width: 100%; max-width: 380px; padding: 34px 26px 28px; text-align: center;
  background: linear-gradient(180deg, rgba(30,38,56,.9), rgba(16,22,34,.9));
  border: 1px solid var(--line2); border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  animation: pop .6s cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.gate-logo { font-size: 46px; line-height: 1; display: inline-block; filter: drop-shadow(0 6px 18px rgba(79,140,255,.5));
  animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.gate-title { margin: 14px 0 4px; font-size: 25px; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(90deg, #7fb0ff, #b58cff 60%, #ff8aa0); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.gate-sub { margin: 0 0 22px; color: var(--txt-dim); font-size: 13px; }
.gate-form { display: flex; flex-direction: column; gap: 10px; }
.gate-form input { padding: 14px 16px; font-size: 16px; text-align: center; letter-spacing: 2px;
  color: var(--txt); background: rgba(10,14,23,.6); border: 1px solid var(--line2); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s; }
.gate-form input:focus { outline: none; border-color: var(--mine); box-shadow: 0 0 0 4px rgba(79,140,255,.18); }
.gate-btn { padding: 13px; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; border: none;
  border-radius: 12px; background: linear-gradient(90deg, #3f7bff, #7a5cff);
  box-shadow: 0 10px 26px -8px rgba(79,140,255,.7); transition: transform .12s, box-shadow .2s, filter .2s; }
.gate-btn:hover { filter: brightness(1.08); box-shadow: 0 14px 32px -8px rgba(79,140,255,.85); }
.gate-btn:active { transform: translateY(1px) scale(.99); }
.gate-err { min-height: 18px; margin-top: 12px; font-size: 12.5px; color: var(--enemy); opacity: 0; transition: opacity .2s; }
.gate-err.show { opacity: 1; }
.gate-card.shake { animation: shake .4s; }
@keyframes shake { 10%,90%{transform:translateX(-2px);} 30%,70%{transform:translateX(5px);} 50%{transform:translateX(-7px);} }

body.locked #app, body.locked .topbar { display: none; }

/* ===== Topbar ===== */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between;
  align-items: center; padding: calc(11px + var(--sat)) 15px 11px;
  background: linear-gradient(180deg, rgba(10,14,23,.9), rgba(10,14,23,.55)); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; letter-spacing: .2px; }
.brand span:last-child { background: linear-gradient(90deg,#9dc0ff,#c3a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { font-size: 19px; filter: drop-shadow(0 2px 8px rgba(79,140,255,.55)); }
.topbar-actions { display: flex; gap: 7px; }
.btn-ghost { background: var(--bg3); color: var(--txt); border: 1px solid var(--line); backdrop-filter: blur(6px);
  border-radius: 10px; padding: 8px 11px; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-ghost:hover { border-color: var(--line2); background: rgba(60,72,98,.6); }
.btn-ghost:active { transform: translateY(1px); }

main { padding: 14px 12px 48px; max-width: 940px; margin: 0 auto; }

/* ===== Tablero ===== */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.col-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 9px;
  padding-left: 4px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.col-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.col-title.mine { color: #8fb4ff; } .col-title.mine::before { background: var(--mine); box-shadow: 0 0 10px var(--mine); }
.col-title.enemy { color: #ff96a4; } .col-title.enemy::before { background: var(--enemy); box-shadow: 0 0 10px var(--enemy); }
.slots { display: flex; flex-direction: column; gap: 9px; }

.slot { position: relative; display: flex; align-items: center; gap: 9px; min-height: 50px;
  padding: 8px 11px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; backdrop-filter: blur(8px); transition: transform .12s, border-color .15s, box-shadow .2s, background .15s; }
.slot:hover { border-color: var(--line2); transform: translateY(-1px); }
.slot:active { transform: scale(.99); }
.col-mine .slot.filled { border-left: 3px solid var(--mine); box-shadow: -6px 0 20px -12px var(--mine); }
.col-enemy .slot.filled { border-left: 3px solid var(--enemy); box-shadow: -6px 0 20px -12px var(--enemy); }
.slot-hero { min-height: 62px; background: linear-gradient(120deg, rgba(31,52,96,.7), var(--bg2));
  border-color: rgba(79,140,255,.35); box-shadow: var(--glow-mine); }
.slot-badge { position: absolute; top: -8px; left: 9px; background: linear-gradient(90deg,#3f7bff,#6a5cff); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 7px; letter-spacing: .6px;
  box-shadow: 0 4px 12px -3px rgba(79,140,255,.8); }
/* ===== Avatares con icono (imagen + fallback iniciales) ===== */
.av { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; flex-shrink: 0; font-weight: 800; color: #fff;
  background: linear-gradient(135deg,#38507f,#2a3550); border: 1px solid var(--line2); }
.av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.av-fallback { font-size: 13px; }
.av.sm { width: 38px; height: 38px; }
.av.md { width: 40px; height: 40px; }
.av.lg { width: 52px; height: 52px; border-radius: 12px; box-shadow: var(--glow-mine); }
.av.empty { color: var(--txt-dim); font-size: 17px; width: 38px; height: 38px;
  background: linear-gradient(135deg, rgba(60,72,98,.5), rgba(38,46,64,.5)); border: 1px solid var(--line); }
.slots-bans .av { width: 24px; height: 24px; border-radius: 7px; }
.slot-info { display: flex; flex-direction: column; min-width: 0; }
.slot-name { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-meta { font-size: 10.5px; color: var(--txt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-empty { color: var(--txt-dim); font-size: 13px; }

.bans-row { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 8px 4px; flex-wrap: wrap; }
.bans-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--txt-dim); font-weight: 800; }
.slots-bans { flex-direction: row; flex-wrap: wrap; flex: 1; }
.slots-bans .slot { min-height: 34px; padding: 4px 9px; flex: 0 0 auto; }
.slots-bans .slot .avatar { width: 22px; height: 22px; font-size: 11px; }
.slots-bans .slot-name { font-size: 11.5px; }
.slots-bans .slot.filled { opacity: .55; text-decoration: line-through; }

/* ===== Panel de recomendación ===== */
.reco { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(10px); box-shadow: 0 20px 50px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
  animation: fadeUp .45s cubic-bezier(.2,.8,.3,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reco .card:nth-child(2) { animation-delay: .05s; } .reco .card:nth-child(3) { animation-delay: .1s; }
.card-head { padding: 11px 15px; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .7px; color: var(--txt-dim); border-bottom: 1px solid var(--line); display: flex;
  justify-content: space-between; align-items: center; }
.card-head span:last-child { color: #8fb4ff; }
.card-body { padding: 6px 8px 10px; }

.pick { display: flex; align-items: center; gap: 11px; padding: 10px 9px; border-radius: 11px;
  transition: background .15s; }
.pick:hover { background: rgba(79,140,255,.06); }
.pick + .pick { border-top: 1px solid var(--line); }
.pick-rank { width: 22px; text-align: center; font-weight: 800; color: var(--txt-dim); font-size: 13px; }
.pick-av { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg,#3a4d78,#2b3450); border: 1px solid var(--line2); }
.pick-main { flex: 1; min-width: 0; }
.pick-name { font-size: 14.5px; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.pick-reasons { font-size: 11.5px; color: var(--txt-dim); margin-top: 2px; line-height: 1.4; }
.pick-score { font-size: 11px; font-weight: 800; color: var(--good); background: rgba(55,224,166,.13);
  padding: 3px 9px; border-radius: 20px; border: 1px solid rgba(55,224,166,.25); }
.tier-badge { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.tier-S, .tier-Splus { background: linear-gradient(90deg,#ffd76a,#ffb020); color: #2a1c00;
  box-shadow: 0 0 12px -2px rgba(255,206,84,.7); animation: pulseGold 2.4s ease-in-out infinite; }
@keyframes pulseGold { 0%,100%{ box-shadow: 0 0 8px -2px rgba(255,206,84,.5);} 50%{ box-shadow: 0 0 16px 0 rgba(255,206,84,.9);} }
.tier-A { background: linear-gradient(90deg,#9db4ff,#7c93ff); color: #0a1440; }

.gaps { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 9px 4px; }
.gap { font-size: 11px; background: rgba(255,84,104,.12); color: #ffb0bb; border: 1px solid rgba(255,84,104,.3);
  padding: 4px 10px; border-radius: 20px; }
.gap.ok { background: rgba(55,224,166,.1); color: var(--good); border-color: rgba(55,224,166,.3); }

/* ===== Build ===== */
.build-hero { display: flex; align-items: center; gap: 11px; padding: 6px 9px 10px; }
.build-hero .pick-av { width: 44px; height: 44px; font-size: 16px; box-shadow: var(--glow-mine); }
.build-hero .bh-name { font-size: 17px; font-weight: 800; }
.build-hero .bh-sub { font-size: 11px; color: var(--txt-dim); margin-top: 1px; }
.items-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 9px 8px; }
.item { font-size: 11.5px; padding: 6px 10px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--line);
  transition: transform .1s, border-color .15s; }
.item:hover { transform: translateY(-1px); border-color: var(--line2); }
.sub-label { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--txt-dim);
  font-weight: 800; padding: 9px 11px 3px; }
.sit { padding: 9px 11px; border-top: 1px solid var(--line); position: relative; }
.sit::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg,#ffd76a,#ffb020); box-shadow: 0 0 12px rgba(255,206,84,.6); }
.sit-item { font-size: 13.5px; font-weight: 800; color: var(--gold); }
.sit-reason { font-size: 12px; color: var(--txt); margin-top: 2px; }
.sit-because { font-size: 10.5px; color: var(--txt-dim); margin-top: 2px; }
.cc-note { font-size: 11.5px; color: #ffe0b0; background: rgba(255,206,84,.1); border: 1px solid rgba(255,206,84,.25);
  border-radius: 10px; padding: 9px 11px; margin: 9px; line-height: 1.4; }
.spells { display: flex; gap: 7px; flex-wrap: wrap; padding: 4px 11px 11px; }
.spell { font-size: 11px; padding: 5px 11px; border-radius: 20px; background: rgba(160,107,255,.14);
  border: 1px solid rgba(160,107,255,.35); color: #d6c4ff; }

.empty-hint { padding: 20px; text-align: center; color: var(--txt-dim); font-size: 13.5px; line-height: 1.6; }
.empty-hint b { color: #9dc0ff; }

/* ===== Modales ===== */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(4,7,14,.66); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal.hidden { display: none; }
.modal-card { background: linear-gradient(180deg, rgba(24,31,46,.98), rgba(16,22,34,.98)); width: 100%; max-width: 560px;
  max-height: 86vh; border-radius: 20px 20px 0 0; border: 1px solid var(--line2); border-bottom: none;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.7);
  animation: slideUp .28s cubic-bezier(.2,.9,.3,1); }
@keyframes slideUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; gap: 9px; align-items: center; padding: 13px; border-bottom: 1px solid var(--line); }
.modal-head input { flex: 1; background: rgba(10,14,23,.6); border: 1px solid var(--line2); border-radius: 10px;
  padding: 11px 13px; color: var(--txt); font-size: 15px; }
.modal-head input:focus { outline: none; border-color: var(--mine); box-shadow: 0 0 0 3px rgba(79,140,255,.16); }
.picker-clear { padding: 11px 15px; color: var(--enemy); font-size: 13px; font-weight: 600; cursor: pointer;
  border-bottom: 1px solid var(--line); }
.picker-clear.hidden { display: none; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 7px;
  padding: 11px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hchip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px;
  background: var(--bg3); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; text-align: center;
  transition: transform .1s, border-color .15s, background .15s; }
.hchip:hover { border-color: var(--line2); background: rgba(79,140,255,.08); transform: translateY(-2px); }
.hchip.selected { border-color: var(--good); background: rgba(55,224,166,.13); box-shadow: 0 0 0 1px rgba(55,224,166,.3); }
.hchip.disabled { opacity: .28; pointer-events: none; }
.hchip .av { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff; background: linear-gradient(135deg,#3a4d78,#2b3450); }
.hchip .hn { font-size: 10.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100%; }
.hchip .hr { font-size: 8.5px; color: var(--txt-dim); }
.universe-controls { display: flex; gap: 7px; padding: 11px; border-bottom: 1px solid var(--line); }
.universe-controls input { flex: 1; background: rgba(10,14,23,.6); border: 1px solid var(--line2); border-radius: 9px;
  padding: 9px 11px; color: var(--txt); font-size: 14px; }
.btn-mini { background: var(--bg3); border: 1px solid var(--line); color: var(--txt); border-radius: 9px;
  padding: 9px 13px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-mini:hover { border-color: var(--line2); }
.modal-foot { display: flex; justify-content: space-between; align-items: center; padding: 13px; border-top: 1px solid var(--line); }
.modal-foot span { font-size: 12px; color: var(--txt-dim); }
.btn-primary { background: linear-gradient(90deg,#3f7bff,#7a5cff); color: #fff; border: none; border-radius: 10px;
  padding: 11px 20px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px -8px rgba(79,140,255,.7); }
.btn-primary:active { transform: translateY(1px); }

.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--txt-dim); font-size: 14px; z-index: 100; }
.loading.hidden { display: none; }

/* ===== Stepper de fases ===== */
.stepper { display: flex; gap: 4px; align-items: center; }
.step { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: transparent; border: 1px solid transparent;
  border-radius: 20px; cursor: pointer; color: var(--txt-dim); transition: all .18s; }
.step-n { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; background: var(--bg3); border: 1px solid var(--line); color: var(--txt-dim); }
.step-l { font-size: 12px; font-weight: 700; }
.step.done .step-n { background: rgba(55,224,166,.2); border-color: rgba(55,224,166,.4); color: var(--good); }
.step.active { background: rgba(79,140,255,.12); border-color: rgba(79,140,255,.3); color: var(--txt); }
.step.active .step-n { background: linear-gradient(135deg,#3f7bff,#7a5cff); border-color: transparent; color: #fff;
  box-shadow: 0 0 12px -2px rgba(79,140,255,.8); }
@media (max-width: 460px) { .step-l { display: none; } .step { padding: 6px 8px; } }

/* ===== Fases ===== */
.phase[hidden] { display: none; }
.phase { animation: fadeUp .4s cubic-bezier(.2,.8,.3,1) both; }
.p-head { margin: 4px 2px 16px; }
.p-head h2 { margin: 0; font-size: 20px; font-weight: 800;
  background: linear-gradient(90deg,#9dc0ff,#c3a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-sub { margin: 5px 0 0; font-size: 12.5px; color: var(--txt-dim); line-height: 1.5; }
.p-actions { margin-top: 22px; display: flex; }
.p-actions.split { justify-content: space-between; gap: 10px; }
.btn-primary.big, .btn-ghost.big { padding: 14px 22px; font-size: 15px; border-radius: 13px; flex: 1; }
.p-actions:not(.split) .btn-primary.big { flex: 1; }
.btn-ghost.big { flex: 0 0 auto; }

/* Cards de fase 1 con padding interno */
#phase-1 .card { padding: 14px; margin-bottom: 13px; }
.field-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--txt-dim);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.hint { font-size: 10.5px; font-weight: 500; color: var(--txt-dim); text-transform: none; letter-spacing: 0; opacity: .8; }

.opt-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opt-row.lanes { grid-template-columns: repeat(5, 1fr); }
.opt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 6px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; color: var(--txt); transition: all .16s; }
.opt small { font-size: 9.5px; color: var(--txt-dim); }
.opt b { font-size: 12.5px; }
.opt:hover { border-color: var(--line2); transform: translateY(-1px); }
.opt.sel { border-color: rgba(79,140,255,.5); background: linear-gradient(135deg, rgba(79,140,255,.18), rgba(122,92,255,.1));
  box-shadow: 0 0 0 1px rgba(79,140,255,.3), 0 8px 22px -12px rgba(79,140,255,.6); }
.opt.sel small { color: #a9c4ff; }
.lane-ico { font-size: 19px; line-height: 1; }
@media (max-width: 460px) { .opt-row.lanes { grid-template-columns: repeat(3, 1fr); } }

.pool-controls { display: flex; align-items: center; gap: 8px; }
.btn-mini.active { border-color: rgba(79,140,255,.5); background: rgba(79,140,255,.16); color: #cfe0ff; }
.btn-mini.wide { width: 100%; margin-top: 8px; }
.pool-count { font-size: 11.5px; color: var(--txt-dim); margin-left: auto; }
.preset-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.preset-chip { font-size: 11.5px; padding: 6px 11px; border-radius: 18px; background: rgba(160,107,255,.13);
  border: 1px solid rgba(160,107,255,.32); color: #d6c4ff; cursor: pointer; transition: all .14s; }
.preset-chip:hover { background: rgba(160,107,255,.22); }
.preset-chip .px { opacity: .6; margin-left: 3px; font-weight: 800; }
.preset-chip .px:hover { opacity: 1; color: var(--enemy); }

/* Coaching */
.coach-inline { margin-top: 18px; }
.coach { background: linear-gradient(180deg, rgba(160,107,255,.08), var(--bg2)); border: 1px solid rgba(160,107,255,.2);
  border-radius: var(--radius); padding: 14px 15px; backdrop-filter: blur(10px);
  animation: fadeUp .5s cubic-bezier(.2,.8,.3,1) both; }
.coach-head { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: #c9b3ff; margin-bottom: 8px; }
.coach-phase { font-size: 13px; color: var(--txt); line-height: 1.55; padding: 9px 11px; border-radius: 10px;
  background: rgba(160,107,255,.08); border: 1px solid rgba(160,107,255,.18); }
.coach-sub { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--txt-dim);
  margin: 13px 0 5px; }
.coach-list { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 5px; }
.coach-list li { font-size: 12.5px; color: var(--txt); line-height: 1.5; }
.coach-list li::marker { color: var(--purple); }

/* Fase 2 extras */
h3.col-title { margin-top: 0; }
.lane-tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 8px; text-transform: none; letter-spacing: 0;
  background: linear-gradient(90deg,#3f7bff,#6a5cff); color: #fff; }
.lane-tag:empty { display: none; }
#set-lane-opp.armed { border-color: var(--enemy); background: rgba(255,84,104,.16); color: #ffb0bb; animation: pulseArm 1.2s infinite; }
@keyframes pulseArm { 0%,100%{ box-shadow: 0 0 0 0 rgba(255,84,104,.4);} 50%{ box-shadow: 0 0 0 4px rgba(255,84,104,0);} }
.slot.is-laneopp { border-color: var(--enemy) !important; box-shadow: 0 0 0 1px var(--enemy), -6px 0 20px -10px var(--enemy) !important; }
.slot.is-laneopp::after { content: "🎯"; position: absolute; top: -8px; right: 8px; font-size: 12px; }

/* Fase 3 build en vivo */
.build-live { display: flex; flex-direction: column; gap: 15px; }
.etrack { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-top: 1px solid var(--line); }
.etrack-mid { flex: 1; min-width: 0; }
.etrack-name { font-size: 13px; font-weight: 700; }
.etrack-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.eitem { font-size: 10.5px; padding: 3px 8px; border-radius: 7px; background: rgba(255,84,104,.12);
  border: 1px solid rgba(255,84,104,.28); color: #ffb0bb; }
.threat-card { border-color: rgba(255,84,104,.25); }
.threat-meter { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px; }
.tbadge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 18px; border: 1px solid var(--line2); }
.t-phys { background: rgba(255,138,90,.15); border-color: rgba(255,138,90,.4); color: #ffb894; }
.t-mag { background: rgba(160,107,255,.15); border-color: rgba(160,107,255,.4); color: #d6c4ff; }
.t-true { background: rgba(234,241,251,.12); border-color: var(--line2); color: #eaf1fb; }
.t-pen { background: rgba(255,84,104,.15); border-color: rgba(255,84,104,.4); color: #ffb0bb; }
.t-heal { background: rgba(55,224,166,.13); border-color: rgba(55,224,166,.35); color: var(--good); }
.t-crit { background: rgba(255,206,84,.15); border-color: rgba(255,206,84,.4); color: #ffe0a0; }
.cc-note.inline { margin: 9px 11px; }
.empty-hint.sm { padding: 14px; font-size: 12.5px; }

/* Item modal (fase 3) */
.item-grid { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px; overflow-y: auto; }
.item-cat { width: 100%; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px;
  color: var(--txt-dim); margin-top: 6px; }
.item-cat:first-child { margin-top: 0; }
.ichip { font-size: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line);
  cursor: pointer; transition: all .14s; }
.ichip:hover { border-color: var(--line2); }
.ichip.sel { border-color: var(--enemy); background: rgba(255,84,104,.16); color: #ffb0bb; box-shadow: 0 0 0 1px rgba(255,84,104,.3); }
.modal-foot input { background: rgba(10,14,23,.6); border: 1px solid var(--line2); border-radius: 9px;
  padding: 9px 11px; color: var(--txt); font-size: 13px; flex: 1; min-width: 0; }

.picker-grid .hchip .av { width: 46px; height: 46px; }

@media (min-width: 620px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 20px; border-bottom: 1px solid var(--line2); }
}
