/* jarvis.css: standalone HUD page (/jarvis/). Deliberately does NOT load the
   site's base/layout/components sheets: this page is its own world.
   Palette + geometry are modeled on the Stark/JARVIS interface language: 
   near-black field, 1px cyan wireframes, concentric gauges, uppercase telemetry. */

:root {
  --cy:        #29e7ff;
  --cy-hi:     #b8f6ff;
  --cy-mid:    rgba(41, 231, 255, 0.55);
  --cy-dim:    rgba(41, 231, 255, 0.28);
  --cy-faint:  rgba(41, 231, 255, 0.12);
  --cy-ghost:  rgba(41, 231, 255, 0.05);
  --amber:     #ffb347;
  --red:       #ff5468;
  --bg:        #00060b;
  --bg-2:      #000d16;
  --glow:      0 0 12px rgba(41, 231, 255, 0.45);
  --glow-soft: 0 0 26px rgba(41, 231, 255, 0.22);
  --mono:      'JetBrains Mono', ui-monospace, monospace;
  --disp:      'Orbitron', 'JetBrains Mono', monospace;
  --cond:      'Rajdhani', 'Space Grotesk', sans-serif;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body.jv {
  background: var(--bg);
  color: var(--cy);
  font-family: var(--cond);
  overflow-x: hidden;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cy); color: #001018; }

a { color: inherit; text-decoration: none; }

/* ═══════════════ background field ═══════════════ */

.jv-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* engineering grid */
.jv-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--cy-ghost) 1px, transparent 1px),
    linear-gradient(90deg, var(--cy-ghost) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
}

/* deep glow behind the reactor */
.jv-halo {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(120vh, 120vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(41,231,255,0.10), rgba(41,231,255,0.03) 38%, transparent 65%);
  animation: halo-breathe 7s ease-in-out infinite;
}
@keyframes halo-breathe { 0%,100% { opacity: .75; } 50% { opacity: 1; } }

/* CRT scanlines + rolling bar */
.jv-scan {
  position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom, rgba(41,231,255,0.045) 0 1px, transparent 1px 3px);
}
.jv-roll {
  position: absolute; left: 0; right: 0; height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(41,231,255,0.045), transparent);
  animation: roll 9s linear infinite;
}
@keyframes roll { from { transform: translateY(-25vh); } to { transform: translateY(105vh); } }

.jv-vig {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 50%, transparent 40%, rgba(0,0,0,0.75) 100%);
}

/* corner brackets */
.jv-corner { position: fixed; width: 54px; height: 54px; z-index: 6; pointer-events: none; opacity: .8; }
.jv-corner::before, .jv-corner::after { content: ""; position: absolute; background: var(--cy-mid); box-shadow: var(--glow); }
.jv-corner::before { width: 100%; height: 1px; }
.jv-corner::after  { width: 1px; height: 100%; }
.jv-corner--tl { top: 14px; left: 14px; }
.jv-corner--tr { top: 14px; right: 14px; }
.jv-corner--tr::before { right: 0; } .jv-corner--tr::after { right: 0; }
.jv-corner--bl { bottom: 14px; left: 14px; }
.jv-corner--bl::before { bottom: 0; } .jv-corner--bl::after { bottom: 0; }
.jv-corner--br { bottom: 14px; right: 14px; }
.jv-corner--br::before { bottom: 0; right: 0; } .jv-corner--br::after { bottom: 0; right: 0; }

/* pointer reticle */
.jv-reticle {
  position: fixed; z-index: 90; left: 0; top: 0; width: 46px; height: 46px;
  margin: -23px 0 0 -23px; pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
.jv-reticle::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--cy-dim); animation: ret-spin 5s linear infinite;
  border-top-color: var(--cy); border-bottom-color: transparent;
}
.jv-reticle::after {
  content: ""; position: absolute; inset: 42%; border-radius: 50%; background: var(--cy);
  box-shadow: var(--glow);
}
@keyframes ret-spin { to { transform: rotate(360deg); } }
body.jv.has-pointer .jv-reticle { opacity: .9; }

/* ═══════════════ boot sequence ═══════════════ */

.jv-boot {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem; transition: opacity .6s ease, visibility .6s;
}
.jv-boot.is-done { opacity: 0; visibility: hidden; }
.jv-boot-mark {
  font-family: var(--disp); font-size: clamp(1.4rem, 5vw, 3rem); letter-spacing: 0.42em;
  color: var(--cy); text-shadow: var(--glow); padding-left: 0.42em;
  animation: boot-flicker 2.6s steps(1) infinite;
}
@keyframes boot-flicker {
  0%, 92%, 96%, 100% { opacity: 1; }
  94% { opacity: .35; }
  98% { opacity: .7; }
}
.jv-boot-log {
  font-family: var(--mono); font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  line-height: 2; letter-spacing: 0.08em; color: var(--cy-mid);
  width: min(560px, 82vw); min-height: 9.5em;
}
.jv-boot-log b { color: var(--cy); font-weight: 400; }
.jv-boot-log i { color: var(--amber); font-style: normal; }
.jv-boot-bar { width: min(560px, 82vw); height: 2px; background: var(--cy-faint); overflow: hidden; }
.jv-boot-bar i { display: block; height: 100%; width: 0; background: var(--cy); box-shadow: var(--glow); }
.jv-skip {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em;
  color: var(--cy-dim); background: none; border: 1px solid var(--cy-faint);
  padding: 0.5rem 1rem; cursor: crosshair; transition: color .25s, border-color .25s;
}
.jv-skip:hover { color: var(--cy); border-color: var(--cy-dim); }

/* ═══════════════ shell ═══════════════ */

.jv-shell {
  position: relative; z-index: 3;
  min-height: 100vh; padding: 4.6rem clamp(1rem, 3.4vw, 3.4rem) 3.4rem;
  display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.8rem);
  opacity: 0; transition: opacity .9s ease .1s;
}
body.jv.is-live .jv-shell { opacity: 1; }

/* ── top strip: calendar days + identity bar ── */

.jv-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 8;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.5rem clamp(1rem, 3.4vw, 3.4rem);
  background: linear-gradient(to bottom, rgba(0,6,11,0.95), rgba(0,6,11,0));
}
/* persistent exit, lives in the fixed top strip */
.jv-home {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem 0.4rem 0.55rem; border: 1px solid var(--cy-faint);
  border-radius: 3px; background: rgba(41,231,255,0.05);
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--cy-mid);
  transition: color .25s, border-color .25s, background .25s, box-shadow .25s;
}
.jv-home svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jv-home:hover {
  color: #001018; background: var(--cy); border-color: var(--cy); box-shadow: var(--glow);
}

.jv-days { display: flex; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.jv-day {
  flex: 1 1 0; min-width: 0; text-align: center;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.02em;
  color: var(--cy-dim); padding: 0.28rem 0; border-top: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.jv-day.is-past { color: rgba(41,231,255,0.16); }
.jv-day.is-now {
  color: #001018; background: var(--cy); box-shadow: var(--glow);
  font-weight: 500;
}
.jv-top-meta {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em;
  color: var(--cy-mid); white-space: nowrap;
}
@media (max-width: 900px) { .jv-days { display: none; } .jv-top { justify-content: space-between; } }

/* ── module chrome ── */

.jv-stage {
  flex: 1;
  display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 1.5fr) minmax(230px, 1fr);
  gap: clamp(0.9rem, 1.8vw, 2rem); align-items: start;
}

.jv-col { display: flex; flex-direction: column; gap: clamp(0.9rem, 1.6vw, 1.4rem); }

.jv-mod {
  position: relative; padding: 0.95rem 1rem 1.1rem;
  border: 1px solid var(--cy-faint);
  background: linear-gradient(160deg, rgba(41,231,255,0.045), rgba(0,13,22,0.35));
  opacity: 0; transform: translateY(14px);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
body.jv.is-live .jv-mod { animation: mod-in .7s var(--ease) forwards; }
.jv-col--l .jv-mod:nth-child(1) { animation-delay: .05s; }
.jv-col--l .jv-mod:nth-child(2) { animation-delay: .13s; }
.jv-col--l .jv-mod:nth-child(3) { animation-delay: .21s; }
.jv-col--l .jv-mod:nth-child(4) { animation-delay: .29s; }
.jv-col--r .jv-mod:nth-child(1) { animation-delay: .09s; }
.jv-col--r .jv-mod:nth-child(2) { animation-delay: .17s; }
.jv-col--r .jv-mod:nth-child(3) { animation-delay: .25s; }
.jv-col--r .jv-mod:nth-child(4) { animation-delay: .33s; }
@keyframes mod-in { to { opacity: 1; transform: none; } }

/* clipped corner + edge ticks, the Stark panel signature */
.jv-mod::before {
  content: ""; position: absolute; top: -1px; right: -1px;
  border: 9px solid transparent; border-top-color: var(--bg); border-right-color: var(--bg);
}
.jv-mod::after {
  content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 1px;
  background: var(--cy-mid); transform: rotate(-45deg); transform-origin: right top;
  box-shadow: var(--glow);
}
.jv-mod:hover { border-color: var(--cy-dim); box-shadow: inset 0 0 30px rgba(41,231,255,0.06); }

.jv-mod-h {
  display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.85rem;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--cy);
}
.jv-mod-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--cy-dim), transparent); }
.jv-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cy); flex: none;
  box-shadow: var(--glow); animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ── identity module ── */

.jv-id-name {
  font-family: var(--disp); font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.15;
  letter-spacing: 0.06em; color: var(--cy-hi); text-shadow: var(--glow);
}
.jv-id-role {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--cy-mid); margin-top: 0.5rem; text-transform: uppercase;
}
.jv-id-greet {
  margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--cy-faint);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--cy);
  min-height: 2.4em;
}
.jv-caret { display: inline-block; width: 7px; height: 1em; background: var(--cy); vertical-align: -0.14em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* ── readouts / rows ── */

.jv-rows { display: flex; flex-direction: column; gap: 0.55rem; }
.jv-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
}
.jv-row span:first-child { color: var(--cy-mid); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.56rem; }
.jv-row span:last-child { color: var(--cy-hi); white-space: nowrap; }
.jv-row b { font-weight: 400; color: var(--amber); }

/* meter bars */
.jv-meter { display: flex; flex-direction: column; gap: 0.34rem; }
.jv-meter-top {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; color: var(--cy-mid);
  text-transform: uppercase;
}
.jv-meter-top i { font-style: normal; color: var(--cy-hi); }
.jv-bar { height: 4px; background: var(--cy-ghost); border: 1px solid var(--cy-faint); position: relative; overflow: hidden; }
.jv-bar i {
  position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cy);
  box-shadow: 0 0 10px rgba(41,231,255,0.6);
  transition: width 1.4s var(--ease);
}
body.jv.is-live .jv-bar i { width: var(--v, 0%); }
.jv-bar--seg i {
  background: repeating-linear-gradient(90deg, var(--cy) 0 3px, transparent 3px 6px);
}

/* ── radial gauges (left) ── */

.jv-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.jv-gauge { position: relative; aspect-ratio: 1; }
.jv-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.jv-gauge .track { fill: none; stroke: var(--cy-faint); stroke-width: 3; }
.jv-gauge .arc {
  fill: none; stroke: var(--cy); stroke-width: 3; stroke-linecap: butt;
  filter: drop-shadow(0 0 4px rgba(41,231,255,0.7));
  stroke-dasharray: var(--circ) var(--circ); stroke-dashoffset: var(--circ);
  transition: stroke-dashoffset 1.6s var(--ease);
}
body.jv.is-live .jv-gauge .arc { stroke-dashoffset: var(--off); }
.jv-gauge .ticks { fill: none; stroke: var(--cy-dim); stroke-width: 6; stroke-dasharray: 1 6; }
.jv-gauge-lbl {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; text-align: center;
}
.jv-gauge-v { font-family: var(--disp); font-size: clamp(0.8rem, 1.5vw, 1.05rem); color: var(--cy-hi); text-shadow: var(--glow); }
.jv-gauge-k { font-family: var(--mono); font-size: 0.44rem; letter-spacing: 0.16em; color: var(--cy-mid); text-transform: uppercase; }

/* ── link lists with dot connectors ── */

.jv-links { display: flex; flex-direction: column; }
.jv-link {
  position: relative; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.42rem 0 0.42rem 0.2rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: var(--cy-mid); text-transform: uppercase;
  transition: color .25s, transform .25s var(--ease), letter-spacing .25s;
}
.jv-link i {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  border: 1px solid var(--cy-dim); background: transparent; transition: background .25s, box-shadow .25s, border-color .25s;
}
.jv-link::after {
  content: ""; position: absolute; left: 0.2rem; bottom: 0;
  width: calc(100% - 0.2rem); height: 1px;
  background: linear-gradient(90deg, var(--cy-faint), transparent);
}
.jv-link:hover { color: var(--cy-hi); transform: translateX(5px); letter-spacing: 0.16em; }
.jv-link:hover i { background: var(--cy); border-color: var(--cy); box-shadow: var(--glow); }
.jv-link em { margin-left: auto; font-style: normal; font-size: 0.52rem; color: var(--cy-dim); letter-spacing: 0.14em; }

/* ═══════════════ centre: arc reactor ═══════════════ */

.jv-core { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 0.5rem; }

.jv-reactor {
  position: relative; width: min(46vh, 100%); aspect-ratio: 1;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.86);
}
body.jv.is-live .jv-reactor { animation: reactor-in 1.2s var(--ease) .25s forwards; }
@keyframes reactor-in { to { opacity: 1; transform: none; } }

.jv-reactor svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jv-reactor .r-line   { fill: none; stroke: var(--cy-dim); stroke-width: 1; }
.jv-reactor .r-line-b  { fill: none; stroke: var(--cy-faint); stroke-width: 1; }
.jv-reactor .r-tick   { fill: none; stroke: var(--cy-mid); stroke-width: 8; stroke-dasharray: 1 7; }
.jv-reactor .r-tick-l { fill: none; stroke: var(--cy-dim); stroke-width: 14; stroke-dasharray: 1 23; }
.jv-reactor .r-arc {
  fill: none; stroke: var(--cy); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(41,231,255,0.75));
}
.jv-reactor .r-arc-red { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(255,84,104,0.7)); }
.jv-reactor .r-arc-am  { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(255,179,71,0.6)); }

.spin-cw, .spin-ccw, .spin-slow, .spin-fast { transform-box: view-box; transform-origin: 50% 50%; }
.spin-cw   { animation: spin 26s linear infinite; }
.spin-ccw  { animation: spin 18s linear infinite reverse; }
.spin-slow { animation: spin 60s linear infinite; }
.spin-fast { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* radar sweep */
.jv-sweep {
  position: absolute; inset: 12%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(41,231,255,0.22), transparent 42%);
  mask-image: radial-gradient(circle, transparent 46%, #000 47%);
  -webkit-mask-image: radial-gradient(circle, transparent 46%, #000 47%);
  animation: spin 6s linear infinite;
}

/* the core itself */
.jv-core-orb {
  position: relative; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #d8fbff 14%, var(--cy) 38%, #0f7fa8 66%, #032031 100%);
  box-shadow:
    0 0 22px rgba(41,231,255,0.85),
    0 0 70px rgba(41,231,255,0.5),
    0 0 140px rgba(41,231,255,0.28),
    inset 0 0 18px rgba(255,255,255,0.55);
  animation: orb-pulse 3.4s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.05); filter: brightness(1.22); }
}
.jv-core-orb::after {
  content: ""; position: absolute; inset: -34%; border-radius: 50%;
  border: 1px solid var(--cy-mid); animation: ring-out 3.4s ease-out infinite;
}
@keyframes ring-out {
  0%   { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.jv-core-cap {
  margin-top: 0.2rem; text-align: center;
  font-family: var(--disp); font-size: clamp(0.62rem, 1.3vw, 0.82rem);
  letter-spacing: 0.5em; padding-left: 0.5em; color: var(--cy-hi); text-shadow: var(--glow);
}
.jv-core-sub {
  font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.24em;
  color: var(--cy-mid); text-align: center; text-transform: uppercase;
}

/* waveform strip under the reactor */
.jv-wave-wrap { width: 100%; border: 1px solid var(--cy-faint); background: rgba(0,13,22,0.35); padding: 0.5rem 0.6rem; }
.jv-wave-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.2em; color: var(--cy-mid);
  text-transform: uppercase; margin-bottom: 0.3rem;
}
#jvWave { display: block; width: 100%; height: 62px; }

/* ═══════════════ right column extras ═══════════════ */

.jv-clock {
  font-family: var(--disp); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1;
  letter-spacing: 0.06em; color: var(--cy-hi); text-shadow: var(--glow);
  display: flex; align-items: baseline; gap: 0.4rem;
}
.jv-clock small { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.2em; color: var(--cy-mid); }

.jv-feed { display: flex; flex-direction: column; gap: 0.7rem; }
.jv-feed-item { display: flex; gap: 0.6rem; align-items: flex-start; }
.jv-feed-item i {
  margin-top: 5px; width: 5px; height: 5px; flex: none; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px rgba(255,179,71,0.8);
}
.jv-feed-item.is-live i { background: var(--cy); box-shadow: var(--glow); animation: dot-pulse 1.8s ease-in-out infinite; }
.jv-feed-body { min-width: 0; }
.jv-feed-t {
  font-family: var(--cond); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--cy-hi); line-height: 1.2;
}
.jv-feed-m { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.16em; color: var(--cy-mid); margin-top: 0.22rem; text-transform: uppercase; }

.jv-notes { font-family: var(--cond); }
.jv-notes ul { list-style: none; display: flex; flex-direction: column; gap: 0.42rem; }
.jv-notes li {
  position: relative; padding-left: 1rem; font-size: 0.9rem; line-height: 1.3;
  color: var(--cy-hi); font-weight: 500; letter-spacing: 0.01em;
}
.jv-notes li::before { content: ", "; position: absolute; left: 0; color: var(--cy-mid); }
.jv-notes li.done { color: var(--cy-dim); text-decoration: line-through; text-decoration-color: var(--cy-faint); }

/* ═══════════════ bottom bar ═══════════════ */

.jv-bottom {
  position: relative; z-index: 4;
  display: flex; align-items: center; gap: 1.2rem;
  border-top: 1px solid var(--cy-faint); padding-top: 0.7rem;
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.18em;
  color: var(--cy-mid); text-transform: uppercase;
}
.jv-ticker { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.jv-ticker div { display: inline-block; animation: ticker 42s linear infinite; }
.jv-ticker span { padding: 0 1.6rem; }
.jv-ticker b { color: var(--cy); font-weight: 400; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.jv-back {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em;
  border: 1px solid var(--cy-faint); padding: 0.5rem 0.9rem; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.jv-back:hover { color: #001018; background: var(--cy); border-color: var(--cy); box-shadow: var(--glow); }

/* ═══════════════ responsive ═══════════════ */

@media (max-width: 1080px) {
  .jv-stage { grid-template-columns: 1fr 1fr; }
  .jv-core { grid-column: 1 / -1; order: -1; }
  .jv-reactor { width: min(42vh, 74vw); }
}
@media (max-width: 720px) {
  .jv-shell { padding: 3.6rem 1rem 2.4rem; }
  .jv-stage { grid-template-columns: 1fr; }
  .jv-reactor { width: min(38vh, 80vw); }
  .jv-corner { width: 30px; height: 30px; }
  body.jv { cursor: auto; }
  .jv-reticle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spin-cw, .spin-ccw, .spin-slow, .spin-fast, .jv-sweep,
  .jv-core-orb, .jv-core-orb::after, .jv-roll, .jv-ticker div,
  .jv-halo, .jv-dot, .jv-boot-mark { animation: none !important; }
  .jv-mod { opacity: 1; transform: none; animation: none !important; }
  .jv-reactor { opacity: 1; transform: none; animation: none !important; }
}
