/* Nova Link Command Universe — interactive experience layer */

:root {
  --nova-universe-blue: #137bff;
  --nova-universe-cyan: #2cc4ff;
  --nova-universe-green: #7ed321;
  --nova-universe-line: rgba(91, 180, 238, 0.16);
  --nova-universe-bg: #020711;
}

.universe-boot {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 22px;
  overflow: hidden;
  color: #e4f5ff;
  background:
    radial-gradient(circle at 50% 47%, rgba(11, 98, 199, 0.24), transparent 29rem),
    #01050d;
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}

.universe-boot.is-complete {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.055);
}

.universe-boot::before {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(53, 152, 228, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 152, 228, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle, black, transparent 72%);
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.universe-boot::after {
  position: absolute;
  inset: 8% 0 auto;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(47, 202, 255, 0.8), transparent);
  box-shadow: 0 0 28px rgba(47, 202, 255, 0.75);
  animation: universe-boot-scan 1.75s ease-in-out both;
}

.universe-boot__skip {
  position: absolute;
  z-index: 3;
  inset: 28px 32px auto auto;
  padding: 8px 13px;
  color: #7590a6;
  cursor: pointer;
  border: 1px solid rgba(96, 163, 211, 0.18);
  border-radius: 999px;
  background: rgba(7, 20, 34, 0.62);
  font-size: 11px;
}

html[dir="rtl"] .universe-boot__skip {
  inset: 28px auto auto 32px;
}

.universe-boot__core {
  position: relative;
  display: grid;
  width: 164px;
  height: 164px;
  place-items: center;
  border: 1px solid rgba(50, 182, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 35%, rgba(43, 177, 255, 0.28), transparent 45%),
    rgba(4, 17, 34, 0.86);
  box-shadow:
    0 0 0 14px rgba(21, 132, 255, 0.03),
    0 0 90px rgba(19, 124, 255, 0.3),
    inset 0 0 38px rgba(17, 114, 220, 0.22);
  animation: universe-core-in 0.9s cubic-bezier(0.18, 0.9, 0.2, 1.1) both;
}

.universe-boot__core::before,
.universe-boot__core::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(51, 183, 255, 0.13);
  border-radius: 50%;
}

.universe-boot__core::before {
  inset: -24%;
  animation: universe-ring 6s linear infinite;
}

.universe-boot__core::after {
  inset: -50%;
  border-color: rgba(126, 211, 33, 0.1);
  border-style: dashed;
  animation: universe-ring-reverse 10s linear infinite;
}

.universe-boot__core img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 0 17px rgba(60, 178, 255, 0.45));
}

.universe-boot__label {
  margin: 9px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.universe-boot__progress {
  position: relative;
  width: min(320px, 72vw);
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(74, 143, 197, 0.15);
}

.universe-boot__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--nova-universe-blue),
    var(--nova-universe-cyan),
    var(--nova-universe-green)
  );
  box-shadow: 0 0 18px rgba(44, 196, 255, 0.6);
  animation: universe-progress 1.8s cubic-bezier(0.15, 0.75, 0.2, 1) forwards;
}

.universe-boot__systems {
  display: flex;
  gap: 25px;
  color: #3f5d73;
  direction: ltr;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.universe-boot__systems span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  content: "";
  border-radius: 50%;
  background: #35536a;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.universe-boot.is-ready .universe-boot__systems {
  color: #7ba4bd;
}

.universe-boot.is-ready .universe-boot__systems span::before {
  background: var(--nova-universe-green);
  box-shadow: 0 0 9px var(--nova-universe-green);
}

.cosmic-stage {
  border: 1px solid rgba(83, 169, 228, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(rgba(40, 131, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 131, 199, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.26),
    inset 0 1px rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.cosmic-node {
  appearance: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
}

.cosmic-node:hover,
.cosmic-node:focus-visible,
.cosmic-node.is-active {
  border-color: rgba(51, 196, 255, 0.7);
  outline: none;
  background: rgba(7, 41, 70, 0.93);
  box-shadow:
    0 0 0 5px rgba(32, 155, 245, 0.04),
    0 0 32px rgba(31, 159, 255, 0.18),
    inset 0 0 20px rgba(27, 149, 234, 0.09);
}

.cosmic-node.is-active::before {
  position: absolute;
  inset: -5px auto auto -5px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 12px var(--nova-universe-green);
}

html[dir="rtl"] .cosmic-node.is-active::before {
  inset: -5px -5px auto auto;
}

.cosmic-node--iot {
  bottom: 34%;
}

.cosmic-node--finance {
  bottom: 35%;
}

.cosmic-caption {
  display: none;
}

.cosmic-focus {
  position: absolute;
  z-index: 10;
  inset: auto 50% 3% auto;
  display: grid;
  width: min(65%, 430px);
  min-height: 132px;
  padding: 15px 17px;
  border: 1px solid rgba(57, 171, 239, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(8, 30, 51, 0.94), rgba(3, 14, 27, 0.94)),
    rgba(3, 15, 28, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transform: translateX(50%);
}

.cosmic-focus.is-changing {
  animation: universe-focus-in 0.35s ease both;
}

.cosmic-focus__title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #65c8f5;
}

.cosmic-focus__title b {
  padding: 4px 7px;
  direction: ltr;
  border: 1px solid rgba(64, 187, 245, 0.25);
  border-radius: 6px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.cosmic-focus__title span {
  font-size: 9px;
  font-weight: 850;
}

.cosmic-focus > strong {
  display: block;
  margin-top: 8px;
  color: #eaf7ff;
  font-size: 13px;
  line-height: 1.45;
}

.cosmic-focus > p {
  margin: 4px 0 10px;
  color: #7890a5;
  font-size: 9px;
  line-height: 1.55;
}

.cosmic-focus__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.cosmic-focus__metrics span {
  display: grid;
  gap: 2px;
  padding-top: 7px;
  border-top: 1px solid rgba(75, 155, 211, 0.13);
}

.cosmic-focus__metrics b {
  color: #cdeaff;
  direction: ltr;
  font-size: 10px;
}

.cosmic-focus__metrics small {
  color: #637a8f;
  font-size: 7px;
}

.command-twin-section,
.command-architect-section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  color: #e8f4ff;
  border-top: 1px solid var(--nova-universe-line);
  background:
    radial-gradient(circle at 8% 45%, rgba(15, 111, 220, 0.1), transparent 30rem),
    #030a14;
}

.command-architect-section {
  background:
    radial-gradient(circle at 90% 20%, rgba(36, 165, 231, 0.09), transparent 28rem),
    #020812;
}

.universe-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.48fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 46px;
}

.universe-kicker {
  margin-bottom: 14px;
  color: var(--nova-universe-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.universe-section-head h2,
.command-architect__intro h2 {
  max-width: 810px;
  margin: 0;
  color: #eef8ff;
  font-size: clamp(38px, 5vw, 67px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

html[dir="rtl"] .universe-section-head h2,
html[dir="rtl"] .command-architect__intro h2 {
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.universe-section-head p,
.command-architect__intro > p {
  margin: 0;
  color: #91a6b8;
  font-size: 15px;
  line-height: 1.8;
}

.universe-head-side {
  display: grid;
  gap: 20px;
}

.universe-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.universe-action,
.universe-sound {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(77, 174, 242, 0.38);
  border-radius: 13px;
  background: linear-gradient(135deg, #0c75ff, #0751cb);
  box-shadow: 0 14px 38px rgba(0, 96, 255, 0.2), inset 0 1px rgba(255, 255, 255, 0.2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
}

.universe-action::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 11px var(--nova-universe-green);
}

.universe-action:disabled {
  cursor: wait;
  opacity: 0.64;
}

.universe-sound {
  color: #7995a9;
  border-color: rgba(75, 157, 215, 0.18);
  background: rgba(6, 21, 36, 0.68);
  box-shadow: none;
}

.universe-sound.is-on {
  color: #d7f1ff;
  border-color: rgba(44, 196, 255, 0.4);
}

.command-twin {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(340px, 0.64fr);
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(73, 158, 219, 0.19);
  border-radius: 29px;
  background: linear-gradient(140deg, rgba(8, 25, 44, 0.9), rgba(3, 12, 23, 0.95));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.03);
}

.command-facility {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-rows: 58px 1fr 56px;
  border-inline-end: 1px solid rgba(73, 158, 219, 0.14);
}

.command-map__toolbar,
.command-map__footer,
.command-timeline__title {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #69849a;
  direction: ltr;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(72, 154, 211, 0.12);
}

.command-map__toolbar > span,
.command-map__footer > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.command-map__toolbar i,
.command-map__footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 10px var(--nova-universe-green);
}

.command-map {
  position: relative;
  min-height: 646px;
  overflow: hidden;
  perspective: 900px;
  background:
    radial-gradient(circle at 48% 48%, rgba(10, 94, 178, 0.12), transparent 46%),
    #030d19;
}

.command-map::before {
  position: absolute;
  inset: -15%;
  opacity: 0.34;
  content: "";
  background-image:
    linear-gradient(rgba(46, 135, 197, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 135, 197, 0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotateX(58deg) rotateZ(-11deg) scale(1.4);
}

.command-building {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #4b687e;
  border: 1px solid rgba(64, 143, 198, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(15, 46, 72, 0.75), rgba(5, 22, 40, 0.92));
  box-shadow: 12px 16px 0 rgba(2, 8, 15, 0.42), inset 0 0 24px rgba(29, 117, 185, 0.06);
  transform: skewY(-5deg);
}

.command-building--a {
  inset: 18% auto auto 15%;
  width: 28%;
  height: 30%;
}

.command-building--b {
  inset: 14% 14% auto auto;
  width: 22%;
  height: 22%;
}

.command-building--c {
  inset: auto 23% 14% auto;
  width: 30%;
  height: 26%;
}

.command-road {
  position: absolute;
  z-index: 1;
  inset: 62% auto auto 5%;
  width: 90%;
  height: 15px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(73, 135, 175, 0.2) 18px 29px),
    rgba(20, 46, 66, 0.28);
  border-block: 1px solid rgba(62, 125, 170, 0.12);
  transform: rotate(-8deg);
}

.command-camera,
.command-gate,
.command-vehicle,
.command-team {
  position: absolute;
  z-index: 5;
  direction: ltr;
  font-size: 8px;
  font-weight: 850;
}

.command-camera {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(70, 182, 243, 0.7);
  border-radius: 50%;
  background: #071c30;
  box-shadow: 0 0 0 7px rgba(48, 169, 242, 0.035);
}

.command-camera span,
.command-gate span,
.command-vehicle span,
.command-team span {
  position: absolute;
  inset: -22px auto auto -13px;
  color: #6f91a7;
  white-space: nowrap;
}

.command-camera--one {
  inset: 47% auto auto 10%;
}

.command-camera--two {
  inset: 12% 10% auto auto;
}

.command-gate {
  inset: 58% auto auto 38%;
  display: grid;
  width: 42px;
  height: 25px;
  place-items: center;
  border-inline: 2px solid #39647e;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.command-gate i {
  width: 34px;
  height: 2px;
  background: #54788d;
  transform-origin: left;
  transition: transform 0.52s ease, background 0.22s ease;
}

.command-vehicle {
  inset: 58% auto auto 5%;
  width: 25px;
  height: 13px;
  border: 1px solid rgba(75, 196, 255, 0.75);
  border-radius: 4px;
  background: rgba(18, 103, 162, 0.58);
  box-shadow: 0 0 14px rgba(43, 193, 255, 0.2);
  transition: left 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.command-vehicle::before,
.command-vehicle::after {
  position: absolute;
  bottom: -4px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #5a788a;
}

.command-vehicle::before {
  left: 2px;
}

.command-vehicle::after {
  right: 2px;
}

.command-team {
  inset: auto 10% 8% auto;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(126, 211, 33, 0.45);
  border-radius: 50%;
  background: rgba(38, 80, 27, 0.46);
  box-shadow: 0 0 16px rgba(126, 211, 33, 0.13);
  transition: right 0.8s ease, bottom 0.8s ease;
}

.command-team i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 8px var(--nova-universe-green);
}

.command-pulse {
  position: absolute;
  z-index: 4;
  inset: 46.5% auto auto 9.5%;
  width: 18px;
  height: 18px;
  opacity: 0;
  border: 1px solid rgba(53, 194, 255, 0.7);
  border-radius: 50%;
}

.command-beam {
  position: absolute;
  z-index: 3;
  inset: 58% auto auto 39%;
  width: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, var(--nova-universe-green), var(--nova-universe-cyan), transparent);
  box-shadow: 0 0 13px rgba(70, 212, 255, 0.4);
  transform: rotate(26deg);
  transform-origin: left;
  transition: width 0.7s ease, opacity 0.2s ease;
}

.command-map.step-0 .command-pulse,
.command-map.step-1 .command-pulse,
.command-map.step-2 .command-pulse,
.command-map.step-3 .command-pulse,
.command-map.step-4 .command-pulse {
  animation: universe-map-pulse 1.1s ease-out infinite;
}

.command-map.step-1 .command-vehicle,
.command-map.step-2 .command-vehicle,
.command-map.step-3 .command-vehicle,
.command-map.step-4 .command-vehicle {
  left: 28%;
}

.command-map.step-2 .command-gate,
.command-map.step-3 .command-gate,
.command-map.step-4 .command-gate {
  border-color: rgba(126, 211, 33, 0.7);
  box-shadow: 0 0 14px rgba(126, 211, 33, 0.13);
}

.command-map.step-2 .command-gate i,
.command-map.step-3 .command-gate i,
.command-map.step-4 .command-gate i {
  background: var(--nova-universe-green);
  transform: rotate(-62deg);
}

.command-map.step-3 .command-team,
.command-map.step-4 .command-team {
  right: 24%;
  bottom: 28%;
}

.command-map.step-4 .command-beam {
  width: 42%;
  opacity: 0.75;
}

.command-map__footer {
  border-top: 1px solid rgba(72, 154, 211, 0.12);
  border-bottom: 0;
}

.command-map__footer > div {
  display: flex;
  gap: 14px;
  color: #425f74;
  font-size: 8px;
}

.command-map__footer .is-live i {
  animation: universe-live 1s ease-in-out infinite;
}

.command-timeline {
  display: grid;
  align-content: start;
  grid-template-rows: 58px repeat(5, 1fr);
  background: rgba(3, 13, 25, 0.54);
}

.command-timeline__event {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 13px;
  min-height: 123px;
  padding: 21px;
  opacity: 0.38;
  border-bottom: 1px solid rgba(72, 154, 211, 0.1);
  transition: opacity 0.26s ease, background 0.26s ease, transform 0.26s ease;
}

.command-timeline__event.is-current {
  opacity: 1;
  background: linear-gradient(90deg, rgba(18, 115, 208, 0.12), transparent);
  transform: translateX(4px);
}

html[dir="rtl"] .command-timeline__event.is-current {
  transform: translateX(-4px);
}

.command-timeline__event.is-complete {
  opacity: 0.72;
}

.command-timeline__node {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #658298;
  border: 1px solid rgba(80, 156, 211, 0.25);
  border-radius: 50%;
  background: #06192b;
  font-size: 8px;
  font-weight: 900;
}

.is-current .command-timeline__node {
  color: #fff;
  border-color: var(--nova-universe-cyan);
  box-shadow: 0 0 18px rgba(44, 196, 255, 0.22);
}

.is-complete .command-timeline__node {
  color: #ccefa7;
  border-color: rgba(126, 211, 33, 0.42);
}

.command-timeline__event small {
  color: #4e7895;
  direction: ltr;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.command-timeline__event h3 {
  margin: 6px 0 5px;
  color: #d8ecfa;
  font-size: 14px;
  font-weight: 750;
}

.command-timeline__event p {
  margin: 0;
  color: #71899c;
  font-size: 10px;
  line-height: 1.55;
}

/* Cinematic smart-entry scenario */
.checkpoint-map {
  isolation: isolate;
  min-height: 646px;
  perspective: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(15, 117, 214, 0.16), transparent 42%),
    linear-gradient(180deg, #061524 0%, #030b14 62%, #02070d 100%);
}

.checkpoint-map::before {
  z-index: -2;
  inset: 0;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(58, 149, 211, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 149, 211, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: none;
}

.checkpoint-map::after {
  position: absolute;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 8, 15, 0.48), transparent 11%, transparent 89%, rgba(2, 8, 15, 0.48)),
    linear-gradient(180deg, rgba(2, 8, 15, 0.12), transparent 23%, transparent 75%, rgba(2, 8, 15, 0.68));
}

.scenario-flow {
  position: absolute;
  z-index: 20;
  inset: 14px 18px auto;
  display: grid;
  height: 66px;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 7px 12px;
  overflow: hidden;
  direction: ltr;
  border: 1px solid rgba(78, 169, 232, 0.2);
  border-radius: 15px;
  background: rgba(3, 15, 28, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(13px);
}

.scenario-flow__track {
  position: absolute;
  z-index: 0;
  top: 26px;
  right: 10%;
  left: 10%;
  height: 2px;
  overflow: hidden;
  background: rgba(70, 140, 189, 0.16);
}

.scenario-flow__track::after {
  display: block;
  width: 0;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--nova-universe-cyan), var(--nova-universe-green));
  box-shadow: 0 0 14px rgba(44, 196, 255, 0.5);
  transition: width 0.7s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.checkpoint-map.step-1 .scenario-flow__track::after {
  width: 25%;
}

.checkpoint-map.step-2 .scenario-flow__track::after {
  width: 50%;
}

.checkpoint-map.step-3 .scenario-flow__track::after {
  width: 75%;
}

.checkpoint-map.step-4 .scenario-flow__track::after,
.checkpoint-map.is-complete .scenario-flow__track::after {
  width: 100%;
}

.scenario-flow__node {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #4f6d84;
  font-size: 8px;
  font-weight: 760;
  transition: color 0.3s ease, transform 0.3s ease;
}

html[dir="rtl"] .scenario-flow__node span {
  direction: rtl;
}

.scenario-flow__node b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #64879f;
  border: 1px solid rgba(71, 153, 207, 0.24);
  border-radius: 10px;
  background: #06192b;
  font-size: 8px;
  letter-spacing: 0.04em;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.scenario-flow__node.is-complete {
  color: #83a46a;
}

.scenario-flow__node.is-complete b {
  color: #cbf3a0;
  border-color: rgba(126, 211, 33, 0.42);
  background: rgba(39, 79, 28, 0.42);
}

.scenario-flow__node.is-current {
  color: #d8f2ff;
  transform: translateY(-1px);
}

.scenario-flow__node.is-current b {
  color: #fff;
  border-color: rgba(44, 196, 255, 0.78);
  background: linear-gradient(145deg, rgba(13, 118, 211, 0.7), rgba(5, 48, 88, 0.88));
  box-shadow: 0 0 0 4px rgba(44, 196, 255, 0.07), 0 0 19px rgba(44, 196, 255, 0.28);
}

.checkpoint-scene {
  position: absolute;
  z-index: 1;
  inset: 88px 16px 112px;
  overflow: hidden;
  border: 1px solid rgba(63, 149, 208, 0.12);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 26%, rgba(19, 102, 171, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(7, 24, 41, 0.96), rgba(2, 9, 16, 0.96));
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.38);
}

.checkpoint-scene::before {
  position: absolute;
  inset: 0;
  opacity: 0.44;
  content: "";
  background:
    linear-gradient(180deg, transparent 0 54%, rgba(36, 118, 174, 0.08) 54% 54.4%, transparent 54.4%),
    radial-gradient(circle at 50% 115%, rgba(35, 148, 221, 0.19), transparent 47%);
}

.checkpoint-skyline {
  position: absolute;
  inset: 8% 5% auto;
  display: flex;
  height: 25%;
  align-items: end;
  justify-content: space-between;
  opacity: 0.25;
  filter: blur(0.2px);
}

.checkpoint-skyline i {
  width: 13%;
  height: 58%;
  border: 1px solid rgba(79, 158, 208, 0.22);
  border-bottom: 0;
  background:
    linear-gradient(90deg, transparent 47%, rgba(80, 157, 207, 0.14) 48% 52%, transparent 53%),
    linear-gradient(180deg, rgba(20, 60, 89, 0.44), rgba(5, 23, 39, 0.12));
}

.checkpoint-skyline i:nth-child(2) {
  height: 92%;
}

.checkpoint-skyline i:nth-child(3) {
  height: 71%;
}

.checkpoint-skyline i:nth-child(4) {
  height: 100%;
}

.checkpoint-skyline i:nth-child(5) {
  height: 68%;
}

.checkpoint-skyline i:nth-child(6) {
  height: 84%;
}

.checkpoint-road {
  position: absolute;
  z-index: 1;
  inset: 4% 15% -10%;
  overflow: hidden;
  clip-path: polygon(42% 0, 58% 0, 95% 100%, 5% 100%);
  background:
    linear-gradient(90deg, rgba(64, 133, 178, 0.18) 0 1px, transparent 1px calc(100% - 1px), rgba(64, 133, 178, 0.18) calc(100% - 1px)),
    linear-gradient(180deg, #0a1d2c, #07131f 66%, #040a10);
  box-shadow: inset 0 0 44px rgba(18, 90, 141, 0.1);
}

.checkpoint-road::before,
.checkpoint-road::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  content: "";
  background: repeating-linear-gradient(180deg, rgba(114, 191, 232, 0.45) 0 15px, transparent 15px 31px);
  animation: scenario-road-run 1.25s linear infinite;
}

.checkpoint-road::before {
  left: 42%;
}

.checkpoint-road::after {
  right: 42%;
}

.checkpoint-road__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(60, 137, 187, 0.26));
}

.checkpoint-road__line--one {
  left: 23%;
}

.checkpoint-road__line--two {
  right: 23%;
}

.checkpoint-gate-sign {
  position: absolute;
  z-index: 8;
  top: 6%;
  left: 50%;
  display: grid;
  min-width: 132px;
  grid-template-columns: 1fr auto;
  gap: 1px 12px;
  padding: 9px 12px;
  direction: ltr;
  border: 1px solid rgba(66, 162, 222, 0.28);
  border-radius: 10px;
  background: rgba(3, 16, 29, 0.94);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.checkpoint-gate-sign small {
  grid-column: 1 / -1;
  color: #57809a;
  font-size: 6px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.checkpoint-gate-sign strong {
  color: #d9f1ff;
  font-size: 13px;
}

.checkpoint-gate-sign em {
  align-self: center;
  color: #6d8798;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.checkpoint-map.step-2 .checkpoint-gate-sign em,
.checkpoint-map.step-3 .checkpoint-gate-sign em,
.checkpoint-map.step-4 .checkpoint-gate-sign em {
  color: var(--nova-universe-green);
  text-shadow: 0 0 10px rgba(126, 211, 33, 0.5);
}

.checkpoint-camera {
  position: absolute;
  z-index: 9;
  top: 48%;
  left: 15%;
  width: 58px;
  height: 120px;
  direction: ltr;
}

.checkpoint-camera__head {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 20px;
  border: 1px solid rgba(94, 200, 255, 0.5);
  border-radius: 5px 9px 9px 5px;
  background: linear-gradient(145deg, #173d58, #061523);
  box-shadow: 0 0 18px rgba(42, 177, 244, 0.13);
  transform: rotate(12deg);
}

.checkpoint-camera__head::before {
  position: absolute;
  top: 3px;
  right: -8px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid rgba(85, 204, 255, 0.75);
  border-radius: 50%;
  background: #020810;
  box-shadow: 0 0 12px rgba(44, 196, 255, 0.4);
}

.checkpoint-camera__head i {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 8px var(--nova-universe-green);
}

.checkpoint-camera__mast {
  width: 3px;
  height: 90px;
  margin: -1px 0 0 16px;
  background: linear-gradient(#4c7f9b, #183347);
  box-shadow: 11px 0 0 -1px rgba(50, 93, 119, 0.42);
}

.checkpoint-camera span {
  position: absolute;
  top: -20px;
  left: -4px;
  color: #55a9d7;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.checkpoint-scan-cone {
  position: absolute;
  z-index: 5;
  top: 42%;
  left: 19%;
  width: 34%;
  height: 44%;
  opacity: 0;
  clip-path: polygon(0 0, 100% 38%, 72% 100%);
  background: linear-gradient(135deg, rgba(44, 196, 255, 0.26), rgba(44, 196, 255, 0.015) 74%);
  filter: drop-shadow(0 0 12px rgba(44, 196, 255, 0.16));
  transform-origin: top left;
}

.checkpoint-map.step-0 .checkpoint-scan-cone,
.checkpoint-map.step-1 .checkpoint-scan-cone {
  opacity: 1;
  animation: scenario-scan 0.95s ease-in-out infinite alternate;
}

.checkpoint-booth {
  position: absolute;
  z-index: 7;
  top: 30%;
  right: 13%;
  display: grid;
  width: 82px;
  height: 116px;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(72, 157, 211, 0.28);
  border-radius: 8px 8px 3px 3px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(67, 149, 202, 0.16) 48% 52%, transparent 53%),
    linear-gradient(145deg, rgba(18, 52, 76, 0.95), rgba(5, 19, 32, 0.96));
  box-shadow: 10px 15px 0 rgba(0, 0, 0, 0.22), inset 0 0 20px rgba(35, 126, 185, 0.06);
  transform: skewY(2deg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.checkpoint-booth::before {
  position: absolute;
  inset: 15px 13px auto;
  height: 34px;
  content: "";
  border: 1px solid rgba(88, 190, 244, 0.22);
  background: rgba(18, 72, 107, 0.3);
}

.checkpoint-booth span,
.checkpoint-booth b {
  position: relative;
  z-index: 2;
  color: #73a6c2;
  direction: ltr;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.checkpoint-booth b {
  color: #b8d8e9;
}

.checkpoint-booth i {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #537184;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.checkpoint-map.step-3 .checkpoint-booth,
.checkpoint-map.step-4 .checkpoint-booth {
  border-color: rgba(44, 196, 255, 0.5);
  box-shadow: 10px 15px 0 rgba(0, 0, 0, 0.22), 0 0 25px rgba(44, 196, 255, 0.1);
}

.checkpoint-map.step-3 .checkpoint-booth i,
.checkpoint-map.step-4 .checkpoint-booth i {
  background: var(--nova-universe-green);
  box-shadow: 0 0 10px var(--nova-universe-green);
}

.scenario-barrier {
  position: absolute;
  z-index: 12;
  top: 40%;
  left: 31%;
  width: 38%;
  height: 48px;
  direction: ltr;
}

.scenario-barrier > i {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 15px;
  height: 42px;
  border: 1px solid rgba(96, 176, 221, 0.42);
  border-radius: 3px;
  background: linear-gradient(90deg, #244c66, #0c2638);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.3);
}

.scenario-barrier > b {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 9px;
  width: calc(100% - 9px);
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #e9f4f8 0 22px, #ff405d 22px 42px);
  box-shadow: 0 0 15px rgba(255, 62, 91, 0.16);
  transform-origin: 4px 50%;
  transition: transform 0.78s cubic-bezier(0.2, 0.78, 0.15, 1), box-shadow 0.3s ease;
}

.scenario-barrier > span {
  position: absolute;
  top: 31px;
  left: 21px;
  color: #617f91;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.checkpoint-map.step-2 .scenario-barrier > b,
.checkpoint-map.step-3 .scenario-barrier > b,
.checkpoint-map.step-4 .scenario-barrier > b {
  box-shadow: 0 0 18px rgba(126, 211, 33, 0.25);
  transform: rotate(-68deg);
}

.scenario-vehicle {
  position: absolute;
  z-index: 10;
  top: 84%;
  left: 50%;
  width: 116px;
  direction: ltr;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.5));
  transform: translate(-50%, -50%);
  transition:
    top 1.08s cubic-bezier(0.2, 0.76, 0.18, 1),
    width 1.08s cubic-bezier(0.2, 0.76, 0.18, 1),
    filter 0.35s ease;
}

.scenario-vehicle svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.scenario-vehicle > span {
  position: absolute;
  top: 94%;
  left: 50%;
  padding: 4px 7px;
  color: #80b8d6;
  border: 1px solid rgba(71, 166, 224, 0.24);
  border-radius: 999px;
  background: rgba(3, 15, 27, 0.86);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.checkpoint-map.step-0 .scenario-vehicle {
  top: 76%;
  width: 112px;
}

.checkpoint-map.step-1 .scenario-vehicle {
  top: 62%;
  width: 101px;
}

.checkpoint-map.step-2 .scenario-vehicle {
  top: 46%;
  width: 88px;
}

.checkpoint-map.step-3 .scenario-vehicle {
  top: 29%;
  width: 74px;
}

.checkpoint-map.step-4 .scenario-vehicle {
  top: 17%;
  width: 64px;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.35)) brightness(0.78);
}

.scenario-reticle {
  position: absolute;
  z-index: 13;
  top: 84%;
  left: 50%;
  width: 154px;
  height: 91px;
  opacity: 0;
  border: 1px solid rgba(44, 196, 255, 0.42);
  transform: translate(-50%, -50%);
  transition:
    top 1.08s cubic-bezier(0.2, 0.76, 0.18, 1),
    width 1.08s cubic-bezier(0.2, 0.76, 0.18, 1),
    height 1.08s cubic-bezier(0.2, 0.76, 0.18, 1),
    opacity 0.25s ease;
}

.scenario-reticle i {
  position: absolute;
  width: 19px;
  height: 19px;
  border-color: var(--nova-universe-cyan);
}

.scenario-reticle i:nth-child(1) {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.scenario-reticle i:nth-child(2) {
  top: -2px;
  right: -2px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.scenario-reticle i:nth-child(3) {
  right: -2px;
  bottom: -2px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.scenario-reticle i:nth-child(4) {
  bottom: -2px;
  left: -2px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.scenario-reticle span {
  position: absolute;
  bottom: -19px;
  left: 50%;
  color: var(--nova-universe-cyan);
  direction: ltr;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.13em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.checkpoint-map.step-0 .scenario-reticle {
  top: 76%;
  width: 150px;
  height: 88px;
  opacity: 1;
  animation: scenario-reticle-lock 0.8s ease-in-out infinite alternate;
}

.checkpoint-map.step-1 .scenario-reticle {
  top: 62%;
  width: 138px;
  height: 82px;
  opacity: 1;
  animation: scenario-reticle-lock 0.8s ease-in-out infinite alternate;
}

.scenario-team-marker {
  position: absolute;
  z-index: 9;
  top: 66%;
  left: 85%;
  display: grid;
  justify-items: center;
  gap: 4px;
  direction: ltr;
  opacity: 0.42;
  transition: top 0.8s ease, left 0.8s ease, opacity 0.3s ease;
}

.scenario-team-marker b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #9bc96f;
  border: 1px solid rgba(126, 211, 33, 0.42);
  border-radius: 50%;
  background: rgba(35, 73, 26, 0.72);
  box-shadow: 0 0 15px rgba(126, 211, 33, 0.13);
  font-size: 9px;
}

.scenario-team-marker span {
  color: #5e8066;
  font-size: 6px;
  font-weight: 900;
  white-space: nowrap;
}

.scenario-team-route {
  position: absolute;
  z-index: 6;
  top: 49%;
  right: 13%;
  width: 28%;
  height: 2px;
  opacity: 0;
  border-top: 1px dashed rgba(126, 211, 33, 0.55);
  transform: rotate(16deg);
  transform-origin: right;
  transition: opacity 0.3s ease;
}

.scenario-team-route::after {
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 10px var(--nova-universe-green);
  animation: scenario-route-packet 1s ease-in-out infinite;
}

.checkpoint-map.step-3 .scenario-team-marker,
.checkpoint-map.step-4 .scenario-team-marker {
  top: 40%;
  left: 73%;
  opacity: 1;
}

.checkpoint-map.step-3 .scenario-team-route,
.checkpoint-map.step-4 .scenario-team-route {
  opacity: 1;
}

.scenario-ready {
  position: absolute;
  z-index: 24;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 280px;
  justify-items: center;
  gap: 8px;
  padding: 18px 22px;
  text-align: center;
  border: 1px solid rgba(61, 162, 225, 0.3);
  border-radius: 18px;
  background: rgba(3, 16, 29, 0.86);
  box-shadow: 0 23px 55px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scenario-ready > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(44, 196, 255, 0.45);
  border-radius: 50%;
  background: linear-gradient(145deg, #127cec, #06498d);
  box-shadow: 0 0 22px rgba(44, 196, 255, 0.25);
  font-size: 12px;
}

.scenario-ready strong {
  color: #e4f5ff;
  font-size: 15px;
}

.scenario-ready small {
  color: #7191a6;
  direction: ltr;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.checkpoint-map:not(.step-ready) .scenario-ready {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}

.scenario-hud-card {
  position: absolute;
  z-index: 22;
  display: grid;
  min-width: 186px;
  gap: 5px;
  padding: 12px 14px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(66, 166, 228, 0.29);
  border-radius: 13px;
  background: rgba(3, 17, 30, 0.9);
  box-shadow: 0 19px 42px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  transform: translateY(9px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.34s ease;
}

.scenario-hud-card small {
  color: #5d89a4;
  direction: ltr;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.scenario-hud-card > strong {
  color: #e4f4ff;
  direction: ltr;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.scenario-hud-card > span {
  color: #8eb0c4;
  font-size: 8px;
  font-weight: 800;
}

.scenario-hud-card > span i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 8px var(--nova-universe-green);
}

.scenario-lpr-card {
  top: 101px;
  left: 23px;
}

.scenario-access-card {
  top: 101px;
  right: 23px;
  border-color: rgba(126, 211, 33, 0.3);
}

.scenario-access-card > strong {
  color: #c8f39b;
}

.scenario-ops-card {
  top: 101px;
  right: 23px;
  border-color: rgba(44, 196, 255, 0.34);
}

.scenario-impact-card {
  top: 101px;
  left: 23px;
  min-width: 232px;
  grid-template-columns: 1fr 1fr;
  border-color: rgba(126, 211, 33, 0.34);
}

.scenario-impact-card > small,
.scenario-impact-card > em {
  grid-column: 1 / -1;
}

.scenario-impact-card > div {
  display: grid;
  gap: 2px;
  padding-top: 7px;
  border-top: 1px solid rgba(74, 156, 210, 0.13);
}

.scenario-impact-card > div strong {
  color: #ddf8c2;
  direction: ltr;
  font-size: 15px;
}

.scenario-impact-card > div span {
  color: #68869a;
  font-size: 7px;
}

.scenario-impact-card > em {
  color: #6e9860;
  direction: ltr;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.checkpoint-map.step-1 .scenario-lpr-card,
.checkpoint-map.step-2 .scenario-access-card,
.checkpoint-map.step-3 .scenario-ops-card,
.checkpoint-map.step-4 .scenario-impact-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scenario-decision {
  position: absolute;
  z-index: 24;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  min-height: 76px;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 15px;
  overflow: hidden;
  border: 1px solid rgba(66, 160, 220, 0.24);
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(5, 24, 42, 0.95), rgba(3, 15, 28, 0.92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

.scenario-decision::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--nova-universe-cyan);
  box-shadow: 0 0 13px rgba(44, 196, 255, 0.5);
  transition: background 0.3s ease;
}

html[dir="rtl"] .scenario-decision::before {
  right: 0;
  left: auto;
}

.checkpoint-map.step-4 .scenario-decision::before,
.checkpoint-map.is-complete .scenario-decision::before {
  background: var(--nova-universe-green);
  box-shadow: 0 0 13px rgba(126, 211, 33, 0.5);
}

.scenario-decision > span {
  color: #5d8dac;
  direction: ltr;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.scenario-decision > div {
  display: grid;
  gap: 4px;
}

.scenario-decision strong {
  color: #e5f5ff;
  font-size: 14px;
}

.scenario-decision small {
  color: #7692a5;
  font-size: 9px;
  line-height: 1.45;
}

.scenario-decision > b {
  padding: 7px 9px;
  color: #bce4ff;
  direction: ltr;
  border: 1px solid rgba(44, 196, 255, 0.26);
  border-radius: 8px;
  background: rgba(14, 91, 145, 0.2);
  font-size: 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.checkpoint-map.step-4 .scenario-decision > b,
.checkpoint-map.is-complete .scenario-decision > b {
  color: #d8f7b8;
  border-color: rgba(126, 211, 33, 0.31);
  background: rgba(56, 104, 36, 0.22);
}

.checkpoint-map.is-changing .scenario-decision > div,
.checkpoint-map.is-changing .scenario-decision > b {
  animation: scenario-decision-in 0.42s ease both;
}

@keyframes scenario-road-run {
  from {
    background-position-y: 0;
  }
  to {
    background-position-y: 31px;
  }
}

@keyframes scenario-scan {
  from {
    opacity: 0.34;
    transform: scaleY(0.88);
  }
  to {
    opacity: 0.85;
    transform: scaleY(1.03);
  }
}

@keyframes scenario-reticle-lock {
  from {
    box-shadow: 0 0 0 rgba(44, 196, 255, 0);
  }
  to {
    box-shadow: 0 0 26px rgba(44, 196, 255, 0.18), inset 0 0 20px rgba(44, 196, 255, 0.05);
  }
}

@keyframes scenario-route-packet {
  from {
    left: 100%;
    opacity: 0;
  }
  18%,
  82% {
    opacity: 1;
  }
  to {
    left: 0;
    opacity: 0;
  }
}

@keyframes scenario-decision-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.command-architect {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: clamp(50px, 7vw, 95px);
}

.command-architect__intro > p {
  margin-top: 23px;
}

.command-architect__status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 8px 11px;
  color: #66869e;
  direction: ltr;
  border: 1px solid rgba(68, 158, 220, 0.17);
  border-radius: 999px;
  background: rgba(4, 18, 32, 0.7);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.command-architect__status::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 10px var(--nova-universe-green);
}

.architect-panel {
  overflow: hidden;
  border: 1px solid rgba(75, 160, 219, 0.18);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(8, 25, 43, 0.9), rgba(3, 13, 24, 0.95));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.03);
}

.architect-controls fieldset {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  margin: 0;
  padding: 20px 22px;
  border: 0;
  border-bottom: 1px solid rgba(70, 150, 207, 0.1);
}

.architect-controls legend {
  display: contents;
  color: #91a9bb;
  font-size: 11px;
  font-weight: 800;
}

.architect-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.architect-option {
  padding: 8px 10px;
  color: #748ca0;
  cursor: pointer;
  border: 1px solid rgba(76, 150, 202, 0.14);
  border-radius: 9px;
  background: rgba(5, 19, 34, 0.66);
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
}

.architect-option:hover,
.architect-option:focus-visible,
.architect-option.is-selected {
  color: #d8efff;
  border-color: rgba(44, 196, 255, 0.43);
  outline: none;
  background: rgba(15, 83, 130, 0.25);
}

.architect-generate {
  width: calc(100% - 44px);
  margin: 19px 22px;
}

.architect-output {
  position: relative;
  min-height: 445px;
  overflow: hidden;
  border-top: 1px solid rgba(70, 150, 207, 0.12);
  background:
    radial-gradient(circle at 50% 45%, rgba(13, 98, 186, 0.14), transparent 42%),
    #030d19;
}

.architect-output::before {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  content: "";
  background-image:
    linear-gradient(rgba(48, 141, 202, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 141, 202, 0.11) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle, black, transparent 82%);
  mask-image: radial-gradient(circle, black, transparent 82%);
}

.architect-output__idle,
.architect-output__generated {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 445px;
  place-content: center;
  place-items: center;
}

.architect-output__idle img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(40, 165, 255, 0.34));
}

.architect-output__idle strong {
  margin-top: 24px;
  color: #567990;
  direction: ltr;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.architect-output__generated {
  display: none;
  align-content: stretch;
  place-items: stretch;
  padding: 22px;
}

.architect-output.is-generated .architect-output__idle {
  display: none;
}

.architect-output.is-generated .architect-output__generated {
  display: grid;
  animation: universe-solution-in 0.5s ease both;
}

.architect-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f91a7;
  font-size: 9px;
}

.architect-result__head span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  content: "";
  border-radius: 50%;
  background: var(--nova-universe-green);
  box-shadow: 0 0 9px var(--nova-universe-green);
}

.architect-result__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(67, 148, 205, 0.12);
}

.architect-result__summary strong {
  color: #e4f4ff;
  font-size: 17px;
}

.architect-result__summary span {
  color: #7190a7;
  font-size: 10px;
}

.architect-result__nodes {
  position: relative;
  min-height: 245px;
}

.architect-result__core,
.architect-result__node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(61, 170, 233, 0.25);
  background: rgba(5, 23, 40, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.architect-result__core {
  inset: 50% auto auto 50%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 45px rgba(18, 132, 235, 0.18), inset 0 0 24px rgba(21, 123, 210, 0.12);
}

.architect-result__core img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.architect-result__core span {
  color: #669bbd;
  direction: ltr;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.architect-result__node {
  min-width: 112px;
  max-width: 145px;
  min-height: 48px;
  padding: 8px;
  color: #a8c9dc;
  text-align: center;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
}

.architect-result__node:nth-of-type(2) {
  inset: 8% auto auto 2%;
}

.architect-result__node:nth-of-type(3) {
  inset: 8% 2% auto auto;
}

.architect-result__node:nth-of-type(4) {
  inset: auto auto 7% 2%;
}

.architect-result__node:nth-of-type(5) {
  inset: auto 2% 7% auto;
  border-color: rgba(126, 211, 33, 0.22);
}

.architect-result__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.architect-result__footer > div {
  padding: 10px 12px;
  border: 1px solid rgba(68, 148, 202, 0.12);
  border-radius: 9px;
  background: rgba(5, 20, 35, 0.55);
}

.architect-result__footer small {
  color: #4e7793;
  font-size: 8px;
  font-weight: 800;
}

.architect-result__footer p {
  margin: 4px 0 0;
  color: #829bad;
  font-size: 9px;
  line-height: 1.5;
}

@keyframes universe-boot-scan {
  from {
    top: 8%;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  to {
    top: 92%;
    opacity: 0;
  }
}

@keyframes universe-core-in {
  from {
    opacity: 0;
    transform: scale(0.35) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes universe-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes universe-ring-reverse {
  from {
    transform: rotate(360deg);
  }
}

@keyframes universe-progress {
  0% {
    width: 0;
  }
  75% {
    width: 83%;
  }
  100% {
    width: 100%;
  }
}

@keyframes universe-focus-in {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0) scale(1);
  }
}

@keyframes universe-map-pulse {
  from {
    opacity: 0.85;
    transform: scale(0.45);
  }
  to {
    opacity: 0;
    transform: scale(4.2);
  }
}

@keyframes universe-live {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes universe-solution-in {
  from {
    opacity: 0;
    transform: scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (max-width: 1080px) {
  .universe-section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .command-twin {
    grid-template-columns: 1fr;
  }

  .command-facility {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(73, 158, 219, 0.14);
  }

  .command-timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 56px 1fr;
  }

  .command-timeline__title {
    grid-column: 1 / -1;
  }

  .command-timeline__event {
    grid-template-columns: 1fr;
    min-height: 188px;
    border-inline-end: 1px solid rgba(72, 154, 211, 0.1);
  }

  .command-architect {
    grid-template-columns: 1fr;
  }

  .command-architect__intro {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .universe-boot__core {
    width: 136px;
    height: 136px;
  }

  .universe-boot__core img {
    width: 66px;
    height: 66px;
  }

  .cosmic-focus {
    width: calc(100% - 24px);
    bottom: 2%;
  }

  .cosmic-focus > p {
    display: none;
  }

  .cosmic-node--iot,
  .cosmic-node--finance {
    bottom: 38%;
  }

  .command-twin-section,
  .command-architect-section {
    padding: 78px 0;
  }

  .universe-section-head h2,
  .command-architect__intro h2 {
    font-size: 37px;
  }

  .universe-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .universe-action,
  .universe-sound {
    width: 100%;
  }

  .command-twin {
    min-height: 0;
    border-radius: 21px;
  }

  .command-facility {
    min-height: 630px;
    grid-template-rows: 52px 1fr 54px;
  }

  .command-map {
    min-height: 524px;
  }

  .scenario-flow {
    inset: 10px 9px auto;
    height: 62px;
    padding: 6px 4px;
    border-radius: 13px;
  }

  .scenario-flow__track {
    top: 25px;
    right: 10%;
    left: 10%;
  }

  .scenario-flow__node {
    gap: 3px;
    font-size: 6px;
  }

  .scenario-flow__node b {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 7px;
  }

  .checkpoint-scene {
    inset: 79px 7px 116px;
    border-radius: 14px;
  }

  .checkpoint-road {
    inset: 4% 4% -10%;
    clip-path: polygon(39% 0, 61% 0, 98% 100%, 2% 100%);
  }

  .checkpoint-gate-sign {
    top: 4%;
    min-width: 112px;
    padding: 7px 9px;
  }

  .checkpoint-gate-sign strong {
    font-size: 11px;
  }

  .checkpoint-camera {
    top: 47%;
    left: 7%;
    transform: scale(0.86);
    transform-origin: bottom;
  }

  .checkpoint-scan-cone {
    top: 42%;
    left: 13%;
    width: 43%;
    height: 44%;
  }

  .checkpoint-booth {
    top: 29%;
    right: 3%;
    width: 68px;
    height: 101px;
  }

  .scenario-barrier {
    top: 40%;
    left: 24%;
    width: 52%;
  }

  .scenario-vehicle {
    width: 98px;
  }

  .checkpoint-map.step-0 .scenario-vehicle {
    width: 94px;
  }

  .checkpoint-map.step-1 .scenario-vehicle {
    width: 86px;
  }

  .checkpoint-map.step-2 .scenario-vehicle {
    width: 76px;
  }

  .checkpoint-map.step-3 .scenario-vehicle {
    width: 65px;
  }

  .checkpoint-map.step-4 .scenario-vehicle {
    width: 55px;
  }

  .scenario-reticle {
    width: 128px;
    height: 78px;
  }

  .checkpoint-map.step-0 .scenario-reticle {
    width: 124px;
    height: 76px;
  }

  .checkpoint-map.step-1 .scenario-reticle {
    width: 116px;
    height: 72px;
  }

  .scenario-team-marker {
    left: 92%;
    transform: scale(0.86);
  }

  .checkpoint-map.step-3 .scenario-team-marker,
  .checkpoint-map.step-4 .scenario-team-marker {
    left: 79%;
  }

  .scenario-ready {
    min-width: min(270px, calc(100% - 30px));
    padding: 16px 14px;
  }

  .scenario-ready strong {
    font-size: 13px;
  }

  .scenario-hud-card {
    top: 84px;
    min-width: 164px;
    padding: 10px 11px;
  }

  .scenario-lpr-card,
  .scenario-impact-card {
    left: 11px;
  }

  .scenario-access-card,
  .scenario-ops-card {
    right: 11px;
  }

  .scenario-impact-card {
    min-width: 202px;
  }

  .scenario-hud-card > strong {
    font-size: 15px;
  }

  .scenario-decision {
    right: 8px;
    bottom: 9px;
    left: 8px;
    min-height: 96px;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 10px 11px;
    border-radius: 12px;
  }

  .scenario-decision > span {
    grid-column: 1 / -1;
  }

  .scenario-decision strong {
    font-size: 12px;
  }

  .scenario-decision small {
    font-size: 8px;
  }

  .scenario-decision > b {
    align-self: end;
    padding: 6px 7px;
    font-size: 6px;
  }

  .command-map__toolbar,
  .command-map__footer,
  .command-timeline__title {
    padding: 0 14px;
  }

  .command-map__footer > div {
    gap: 7px;
  }

  .command-timeline {
    grid-template-columns: 1fr;
    grid-template-rows: 54px repeat(5, auto);
  }

  .command-timeline__title {
    grid-column: 1;
  }

  .command-timeline__event {
    grid-template-columns: 30px 1fr;
    min-height: 108px;
    padding: 18px 16px;
    border-inline-end: 0;
  }

  .architect-panel {
    border-radius: 21px;
  }

  .architect-controls fieldset {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .architect-generate {
    width: calc(100% - 32px);
    margin: 17px 16px;
  }

  .architect-output,
  .architect-output__idle,
  .architect-output__generated {
    min-height: 505px;
  }

  .architect-output__generated {
    padding: 17px 13px;
  }

  .architect-result__nodes {
    min-height: 295px;
  }

  .architect-result__node {
    min-width: 88px;
    max-width: 110px;
    font-size: 8px;
  }

  .architect-result__footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .universe-boot__systems {
    gap: 14px;
  }

  .cosmic-focus {
    padding: 12px;
  }

  .cosmic-focus > strong {
    font-size: 12px;
  }

  .command-map__footer > div span:nth-child(2) {
    display: none;
  }

  .command-facility {
    min-height: 600px;
  }

  .command-map {
    min-height: 494px;
  }

  .scenario-flow {
    inset-inline: 6px;
  }

  .scenario-flow__node span {
    font-size: 5.5px;
  }

  .scenario-flow__node b {
    width: 27px;
    height: 27px;
    font-size: 6.5px;
  }

  .checkpoint-scene {
    inset-inline: 5px;
  }

  .checkpoint-camera {
    left: 3%;
    transform: scale(0.76);
  }

  .checkpoint-booth {
    right: 1%;
    transform: scale(0.88);
    transform-origin: bottom right;
  }

  html[dir="rtl"] .checkpoint-booth {
    transform-origin: bottom left;
  }

  .scenario-hud-card {
    min-width: 150px;
  }

  .scenario-impact-card {
    min-width: 190px;
  }

  .scenario-ready {
    min-width: calc(100% - 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .universe-boot::after,
  .universe-boot__core,
  .universe-boot__core::before,
  .universe-boot__core::after,
  .universe-boot__progress span,
  .command-pulse,
  .command-map__footer .is-live i,
  .checkpoint-road::before,
  .checkpoint-road::after,
  .checkpoint-scan-cone,
  .scenario-reticle,
  .scenario-team-route::after,
  .checkpoint-map.is-changing .scenario-decision > div,
  .checkpoint-map.is-changing .scenario-decision > b {
    animation: none !important;
  }
}
