/* The Blue variant: abyssal obsidian ground with a perspective neon horizon grid, the 12-vertex laser lattice, the lightrail slider, and luminous cyan controls. */

/* the neon horizon grid and atmosphere */
:root[data-theme='blue'] body {
  background:
    radial-gradient(100% 55% at 50% -5%, rgba(0, 229, 255, 0.13), transparent 65%),
    radial-gradient(90% 45% at 50% 105%, rgba(0, 136, 255, 0.12), transparent 70%),
    var(--ground);
}
:root[data-theme='blue'] body::before {
  content: '';
  position: fixed;
  left: -20%;
  right: -20%;
  bottom: -12%;
  height: 58vh;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(380px) rotateX(68deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 45%, transparent 92%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 45%, transparent 92%);
}
:root[data-theme='blue'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(95% 85% at 50% 45%, transparent 55%, rgba(1, 4, 10, 0.55) 100%);
}
:root[data-theme='blue'] #app { position: relative; z-index: 1; }
:root[data-theme='blue'] .dots {
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* the laser lattice instrument */
.blue .bl-scanner {
  fill: none;
  stroke: var(--cyan-lo);
  stroke-width: 0.8;
  stroke-dasharray: 6 18 28 12 4 22;
  vector-effect: non-scaling-stroke;
  transform-origin: 200px 200px;
  animation: bl-spin 48s linear infinite;
}
.blue .bl-ring { fill: none; stroke: var(--ink-20); stroke-width: 0.65; vector-effect: non-scaling-stroke; }
.blue .bl-ring.is-rim { stroke: var(--cyan-lo); stroke-width: 1; }
.blue .bl-ring.is-mid { stroke: rgba(0, 229, 255, 0.18); stroke-width: 0.65; }
.blue .bl-ring.is-inner { stroke: rgba(0, 229, 255, 0.20); stroke-dasharray: 2 4; }
.blue .bl-ring.is-core-ring { stroke: rgba(0, 229, 255, 0.28); stroke-width: 0.7; }
.blue .bl-axis { stroke: rgba(0, 229, 255, 0.14); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.blue .bl-axis.is-lead { stroke: rgba(0, 229, 255, 0.50); stroke-width: 0.9; }
.blue .bl-num { font-family: var(--font-mono); font-size: 7px; fill: var(--mute); letter-spacing: 0.04em; }
.blue .bl-tick { stroke: rgba(0, 229, 255, 0.26); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.blue .bl-tick.is-major { stroke: var(--cyan); stroke-width: 1.1; }
.blue .bl-ghost { fill: none; stroke: var(--amber); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; opacity: 0.8; }
.blue .bl-delta { stroke: var(--amber); stroke-width: 0.75; vector-effect: non-scaling-stroke; stroke-dasharray: 1 3; opacity: 0.65; }
.blue .bl-web { fill: none; stroke: rgba(0, 229, 255, 0.22); stroke-width: 0.65; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.blue .bl-poly { fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.blue .bl-poly-core { fill: none; stroke: var(--cyan-hi); stroke-width: 0.75; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.blue .bl-diamond { fill: var(--ground); stroke: var(--cyan); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.blue .bl-node.is-lead .bl-diamond { opacity: 0; }
.blue .bl-reticle-spin { animation: bl-spin 16s linear infinite; }
.blue .bl-reticle-ring { fill: none; stroke: var(--cyan); stroke-width: 0.9; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.blue .bl-reticle-ticks { fill: none; stroke: var(--cyan-hi); stroke-width: 1.1; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.blue .bl-reticle-core { fill: var(--cyan-hi); stroke: var(--cyan); stroke-width: 0.8; }
.blue .bl-leadarc { fill: none; stroke: var(--cyan-hi); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.blue .bl-name { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; fill: var(--cyan-hi); letter-spacing: 0.2em; }
.blue .bl-hub-outer { fill: var(--surface); stroke: var(--cyan); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.blue .bl-hub-inner { fill: var(--ground); stroke: var(--cyan-hi); stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.blue .bl-year { font-family: var(--font-mono); font-size: 5.5px; letter-spacing: 0.08em; fill: var(--cyan-hi); font-weight: 500; }
.blue .bl-beam { stroke: var(--cyan-hi); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.blue .bl-beam.is-on { animation: bl-beam 560ms ease-out 1; }
.blue .bl-shock { fill: none; stroke: var(--cyan-hi); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; }
.blue .bl-shock.is-on { animation: bl-shock 560ms var(--ease-spring) 1; }
.blue .ink-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cyan-hi);
  background: rgba(3, 7, 16, 0.88);
  border: 1px solid var(--cyan-lo);
  padding: 3px 8px;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.22);
}
.blue .bl-readout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
}
.ink-dock.blue .bl-dial,
.ink-dock.blue .bl-num,
.ink-dock.blue .bl-year,
.ink-dock.blue .bl-scanner,
.ink-dock.blue .bl-reticle-spin { display: none; }

@keyframes bl-spin { to { transform: rotate(360deg); } }
@keyframes bl-beam { 0% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes bl-shock { 0% { opacity: 0.95; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .blue .bl-scanner,
  .blue .bl-reticle-spin { animation: none; }
}

/* the lightrail slider */
.lightrail .lr-host { outline: none; touch-action: none; cursor: pointer; }
.lightrail .lr-host:focus-visible .lr-ring { stroke: var(--cyan-hi); stroke-width: 1.5; }
.lightrail .lr-svg { display: block; width: 100%; height: auto; overflow: visible; }
.lightrail .lr-rail { stroke: rgba(0, 229, 255, 0.22); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.lightrail .lr-tick { stroke: rgba(0, 229, 255, 0.26); stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.lightrail .lr-beam { stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; opacity: 0.25; transition: opacity var(--dur-fast); }
.lightrail .lr-beam.is-active { opacity: 1; filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.75)); }
.lightrail .lr-gate { fill: var(--ground); stroke: rgba(0, 229, 255, 0.42); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill var(--dur-fast), stroke var(--dur-fast); }
.lightrail .lr-gate.is-lit { fill: rgba(0, 229, 255, 0.28); stroke: var(--cyan-hi); }
.lightrail .lr-ref { fill: var(--amber); }
.lightrail .lr-word {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  fill: var(--cyan-hi);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.lightrail .lr-word.is-on { opacity: 1; }
.lightrail .lr-thumb { transition: transform var(--dur-fast) var(--ease-spring); }
.lightrail .lr-ring { fill: rgba(3, 7, 16, 0.85); stroke: var(--cyan); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lightrail .lr-core { fill: var(--cyan-hi); stroke: var(--cyan); stroke-width: 0.6; filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.85)); }
.lightrail .lr-thumb.is-hollow .lr-core { fill: var(--ground); filter: none; }
.lightrail .sl-ends { display: flex; justify-content: space-between; margin-top: var(--s-1); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* futuristic neon controls, bars, and sheets */
:root[data-theme='blue'] .cover-title {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ice);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}
:root[data-theme='blue'] .result-leader {
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}
:root[data-theme='blue'] .result-score {
  color: var(--cyan-hi);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}
:root[data-theme='blue'] .btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.14);
  color: var(--cyan-hi);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18), inset 0 0 12px rgba(0, 229, 255, 0.08);
  transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
:root[data-theme='blue'] .btn:hover:not([disabled]) {
  background: var(--cyan);
  color: var(--ground);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
}
:root[data-theme='blue'] .btn.quiet,
:root[data-theme='blue'] .link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
:root[data-theme='blue'] .delta { color: var(--amber); }
:root[data-theme='blue'] .delta.up { color: var(--cyan-hi); text-shadow: 0 0 8px rgba(0, 229, 255, 0.45); }
:root[data-theme='blue'] .row-track,
:root[data-theme='blue'] .live-track {
  background: rgba(0, 229, 255, 0.18);
  height: 1px;
  overflow: visible;
}
:root[data-theme='blue'] .row-track::before { display: none; }
:root[data-theme='blue'] .row-base {
  background: var(--amber);
  height: 8px;
  top: -3.5px;
  bottom: auto;
  width: 1.5px;
}
:root[data-theme='blue'] .row-fill,
:root[data-theme='blue'] .live-fill {
  background: rgba(0, 229, 255, 0.72);
  height: 2px;
  top: -0.5px;
  bottom: auto;
  border-radius: 0;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
}
:root[data-theme='blue'] .row-fill::after,
:root[data-theme='blue'] .live-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--cyan-hi);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--cyan);
}
:root[data-theme='blue'] li[data-lead] .row-fill,
:root[data-theme='blue'] .is-lead .live-fill {
  background: var(--cyan-hi);
  box-shadow: 0 0 12px var(--cyan);
}
:root[data-theme='blue'] li[data-lead] .row-name,
:root[data-theme='blue'] .live-row.is-lead .live-name,
:root[data-theme='blue'] .live-row.is-lead .live-score {
  color: var(--cyan-hi);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
:root[data-theme='blue'] .journey-svg path { stroke: rgba(0, 229, 255, 0.22); stroke-dasharray: none; }
:root[data-theme='blue'] .journey-svg path.is-lead {
  stroke: var(--cyan-hi);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.7));
}
:root[data-theme='blue'] .journey-dot { fill: var(--cyan-hi); filter: drop-shadow(0 0 6px var(--cyan)); }
:root[data-theme='blue'] .sq i {
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  border: 1.25px solid rgba(0, 229, 255, 0.38);
}
:root[data-theme='blue'] .sq:active i { transform: rotate(45deg) scale(0.88); }
:root[data-theme='blue'] .sq[aria-pressed='true'] i {
  background: var(--cyan);
  border-color: var(--cyan-hi);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
}
:root[data-theme='blue'] .sq.is-ref::after {
  width: 4px;
  height: 4px;
  bottom: 2px;
  background: var(--amber);
  transform: translateX(-50%) rotate(45deg);
}
:root[data-theme='blue'] .tune-cat-bar { background: rgba(0, 229, 255, 0.18); }
:root[data-theme='blue'] .tune-cat-bar i { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 229, 255, 0.55); }
:root[data-theme='blue'] .result-sheet,
:root[data-theme='blue'] .world {
  border-radius: 4px;
  border: 1px solid var(--edge);
  background: rgba(7, 17, 32, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.08);
}
:root[data-theme='blue'] .world[data-picked] {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.10);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.16);
}
:root[data-theme='blue'] .move-dots i { border-radius: 0; transform: rotate(45deg) scale(0.55); background: rgba(0, 229, 255, 0.25); }
:root[data-theme='blue'] .move-dots i.on { background: var(--cyan-hi); transform: rotate(45deg); box-shadow: 0 0 6px var(--cyan); }
:root[data-theme='blue'] .move-dots i.ref { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); transform: rotate(45deg); }
:root[data-theme='blue'] .move-line > span { background: var(--cyan); box-shadow: 0 0 6px rgba(0, 229, 255, 0.5); }

:root[data-theme='blue'] .refine-modal {
  border-radius: 4px;
  border: 1px solid var(--cyan-lo);
  background: rgba(7, 17, 32, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.15);
}
:root[data-theme='blue'] .refine-heading {
  color: var(--cyan-hi);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
