/* Live Session — retro-futurista abstracto (distinto del countdown monitor) */

.live-session {
  --ls-orange: #ff6a00;
  --ls-cyan: #00ffd5;
  --ls-violet: #8b5cf6;
  --ls-bg: #050508;
  min-height: 100vh;
  background: var(--ls-bg);
  color: #c8d0dc;
  overflow: hidden;
}

.ls-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 106, 0, 0.08), transparent),
    var(--ls-bg);
  pointer-events: none;
}

.ls-scan {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 213, 0.015) 2px,
    rgba(0, 255, 213, 0.015) 4px
  );
  pointer-events: none;
  animation: ls-scan 8s linear infinite;
}

.ls-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 213, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}

@keyframes ls-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

.ls-frame {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ls-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 255, 213, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.ls-header__brand {
  font-family: var(--font-mono, monospace);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--ls-cyan);
}

.ls-header__sub {
  display: block;
  font-size: 0.65rem;
  color: rgba(200, 208, 220, 0.5);
  margin-top: 0.25rem;
}

.ls-header__metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ls-metric {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ls-metric span {
  display: block;
  color: rgba(200, 208, 220, 0.45);
  margin-bottom: 0.15rem;
}

.ls-metric strong {
  color: var(--ls-orange);
  font-size: 1rem;
}

.ls-stage {
  flex: 1;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ls-view.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.ls-view__label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(0, 255, 213, 0.6);
}

/* Mapa */
.ls-map-wrap {
  width: 100%;
  max-width: 900px;
}

.ls-map {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 255, 213, 0.15));
}

.ls-map__route {
  stroke-dasharray: 8 6;
  animation: ls-dash 20s linear infinite;
}

@keyframes ls-dash {
  to { stroke-dashoffset: -200; }
}

.ls-map__node {
  fill: none;
  stroke: var(--ls-cyan);
  stroke-width: 2;
}

.ls-map__node--dest {
  stroke: var(--ls-orange);
  animation: ls-pulse 2s ease infinite;
}

.ls-map__beacon {
  fill: var(--ls-orange);
  filter: drop-shadow(0 0 12px var(--ls-orange));
  transition: cx 1.2s ease, cy 1.2s ease;
}

.ls-map__text {
  fill: rgba(200, 208, 220, 0.4);
  font-size: 11px;
  font-family: monospace;
  letter-spacing: 0.1em;
}

.ls-map__conn {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.ls-bar {
  height: 6px;
  background: rgba(0, 255, 213, 0.1);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.ls-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ls-violet), var(--ls-cyan));
  transition: width 0.8s ease;
  box-shadow: 0 0 12px var(--ls-cyan);
}

/* Terminal */
.ls-view--terminal {
  align-items: stretch;
}

.ls-terminal {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 106, 0, 0.25);
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a8e6cf;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 360px;
  box-shadow: inset 0 0 40px rgba(255, 106, 0, 0.05);
}

.ls-terminal .tag-void { color: var(--ls-violet); }
.ls-terminal .tag-aegis { color: var(--ls-cyan); }
.ls-terminal .tag-sys { color: var(--ls-orange); }

/* Progreso */
.ls-progress-ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.ls-progress-ring svg {
  transform: rotate(-90deg);
}

.ls-progress-ring__bg {
  fill: none;
  stroke: rgba(0, 255, 213, 0.1);
  stroke-width: 8;
}

.ls-progress-ring__fg {
  fill: none;
  stroke: var(--ls-orange);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 553;
  stroke-dashoffset: 553;
  transition: stroke-dashoffset 0.8s ease;
  filter: drop-shadow(0 0 8px var(--ls-orange));
}

.ls-progress-ring__val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ls-cyan);
}

.ls-node-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 700px;
}

.ls-node-list li {
  font-size: 0.65rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(0, 255, 213, 0.25);
  letter-spacing: 0.06em;
}

.ls-node-list li.done {
  border-color: var(--ls-orange);
  color: var(--ls-orange);
}

/* Códigos */
.ls-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  perspective: 600px;
}

.ls-code {
  font-family: monospace;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--ls-cyan);
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0, 255, 213, 0.3);
  animation: ls-spin-code 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}

@keyframes ls-spin-code {
  0%, 100% { transform: rotateY(0deg) scale(1); opacity: 0.85; }
  50% { transform: rotateY(180deg) scale(1.05); opacity: 1; }
}

.ls-codes-hint {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: rgba(200, 208, 220, 0.4);
  letter-spacing: 0.1em;
}

.ls-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 213, 0.15);
  font-size: 0.7rem;
}

.ls-footer a {
  color: rgba(0, 255, 213, 0.6);
}

.ls-start-session {
  background: transparent;
  border: 1px solid var(--ls-orange);
  color: var(--ls-orange);
  font-family: monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  margin-left: auto;
}

.ls-start-session.hidden { display: none; }

.ls-start-session:disabled {
  opacity: 0.5;
  cursor: default;
}

.ls-footer__dots {
  display: flex;
  gap: 0.4rem;
}

.ls-footer__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 255, 213, 0.2);
}

.ls-footer__dots span.on {
  background: var(--ls-orange);
  box-shadow: 0 0 8px var(--ls-orange);
}
