/* KINGQUOC Reality Crossings Map — UI v1.0 */

.crossings-atlas {
  --cross-gold: #f2cf8d;
  --cross-white: #edf7ff;
  --cross-silver: #c8d4df;
  --cross-organic: #69e2bd;
  --cross-cyan: #71dfff;
  --cross-blue: #4eb8f1;
  --cross-void: #c9a4ff;
  --cross-violet: #986de3;
  --cross-earth: #67c8ff;
  --cross-planetary: #f0a25d;
  --cross-crimson: #ff617f;
  --cross-signal: #a3b2c4;
  --cross-surface: rgba(5, 13, 23, .96);
  background:
    radial-gradient(circle at 21% 23%, rgba(68, 169, 224, .1), transparent 34rem),
    radial-gradient(circle at 72% 31%, rgba(148, 94, 224, .1), transparent 40rem),
    radial-gradient(circle at 82% 73%, rgba(203, 55, 94, .09), transparent 38rem),
    radial-gradient(circle at 34% 77%, rgba(222, 138, 63, .07), transparent 35rem),
    linear-gradient(180deg, #030710, #06101c 46%, #050812 100%);
}

.crossings-star-field .nebula-a {
  background: #287faa;
  opacity: .16;
}

.crossings-star-field .nebula-b {
  background: #8f2f69;
  opacity: .14;
}

.crossings-grid {
  opacity: .09;
  background-size: 104px 104px;
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 80%);
}

.crossings-header {
  border-bottom-color: rgba(113, 223, 255, .18);
  background: rgba(3, 9, 17, .91);
}

.crossings-header .primary-nav a[aria-current="page"] {
  color: #def8ff;
}

.crossings-header .primary-nav a[aria-current="page"]::after {
  width: 100%;
}

.crossings-atlas .brand small,
.crossings-atlas .primary-nav a,
.crossings-atlas .sound-toggle {
  font-size: 13px;
}

.crossings-atlas .kicker {
  font-size: clamp(13px, .9vw, 16px);
}

.crossings-atlas .fiction-notice,
.crossings-atlas .coordinate-bar,
.crossings-atlas .coordinate-label,
.crossings-atlas .coordinate-code,
.crossings-atlas .coordinate-bar li {
  font-size: 13px;
}

.crossings-hero {
  min-height: 900px;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .78fr);
  align-items: center;
  overflow: hidden;
}

.crossings-hero::before {
  top: 2%;
  left: 1%;
  width: 76%;
  border-color: rgba(113, 223, 255, .07);
  background:
    radial-gradient(circle at 43% 43%, rgba(245, 215, 155, .09), transparent 8%),
    radial-gradient(circle at 43% 43%, transparent 0 24%, rgba(113, 223, 255, .05) 24.3% 24.55%, transparent 24.8%),
    radial-gradient(circle at 43% 43%, transparent 0 40%, rgba(152, 109, 227, .045) 40.2% 40.45%, transparent 40.7%);
  filter: drop-shadow(0 0 90px rgba(78, 184, 241, .08));
}

.crossings-hero-copy {
  position: relative;
  z-index: 3;
}

.crossings-hero .kicker,
.crossings-section .kicker,
.crossings-route-primer .kicker,
.crossing-protocol .kicker,
.crossings-visual-layer .kicker,
.crossings-laws .kicker,
.crossings-return .kicker {
  color: #8de4ff;
}

.crossings-hero h1 span {
  color: var(--cross-void);
  text-shadow: 0 0 54px rgba(152, 109, 227, .18);
}

.crossings-actions .button-primary,
.crossings-return .button-primary {
  border-color: #dff5ff;
  background: #dff5ff;
  color: #07121c;
}

.crossings-actions .button-primary:hover,
.crossings-return .button-primary:hover {
  background: white;
}

.crossings-hero-geometry {
  position: absolute;
  z-index: 0;
  top: 70px;
  right: -3%;
  width: min(64vw, 1080px);
  height: 720px;
  pointer-events: none;
  transform: perspective(1100px) rotateX(62deg) rotateZ(-8deg);
  transform-origin: 50% 55%;
}

.hero-membrane {
  position: absolute;
  left: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 223, 239, .16);
  border-radius: 50%;
  color: rgba(214, 231, 244, .42);
  letter-spacing: .17em;
  transform: translateX(-50%);
  box-shadow: inset 0 0 80px rgba(77, 176, 224, .025);
}

.hero-membrane span {
  font-size: 12px;
  font-weight: 800;
}

.membrane-higher {
  top: 10px;
  width: 74%;
  height: 146px;
  border-color: rgba(105, 226, 189, .25);
  background: radial-gradient(ellipse, rgba(105, 226, 189, .07), transparent 64%);
}

.membrane-void {
  top: 122px;
  width: 88%;
  height: 150px;
  border-color: rgba(201, 164, 255, .28);
  border-style: dashed;
  background: radial-gradient(ellipse, rgba(152, 109, 227, .07), rgba(0, 0, 0, .16) 70%);
}

.membrane-arena {
  top: 240px;
  width: 98%;
  height: 246px;
  border-color: rgba(113, 223, 255, .23);
  background:
    repeating-radial-gradient(ellipse, transparent 0 30px, rgba(113, 223, 255, .035) 31px 32px),
    radial-gradient(ellipse, rgba(113, 223, 255, .045), transparent 68%);
}

.membrane-earth {
  top: 452px;
  width: 60%;
  height: 158px;
  border-color: rgba(240, 162, 93, .27);
  background: radial-gradient(ellipse, rgba(73, 164, 220, .08), rgba(240, 162, 93, .035) 45%, transparent 70%);
}

.membrane-godtrix {
  top: 330px;
  left: 69%;
  width: 44%;
  height: 220px;
  border-color: rgba(255, 97, 127, .27);
  background:
    linear-gradient(45deg, transparent 49.6%, rgba(255, 97, 127, .08) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(-45deg, transparent 49.6%, rgba(255, 97, 127, .08) 49.8% 50.2%, transparent 50.4%),
    radial-gradient(ellipse, rgba(255, 97, 127, .06), transparent 68%);
}

.hero-crossing {
  position: absolute;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--cross-organic), var(--cross-void), var(--cross-blue));
  box-shadow: 0 0 18px rgba(113, 223, 255, .55);
  transform-origin: top;
  animation: crossingPulse 4.8s ease-in-out infinite;
}

.crossing-one {
  top: 66px;
  height: 485px;
}

.crossing-two {
  top: 226px;
  left: 37%;
  height: 320px;
  background: linear-gradient(var(--cross-void), var(--cross-planetary));
  animation-delay: -1.6s;
}

.crossing-three {
  top: 294px;
  left: 70%;
  height: 260px;
  background: linear-gradient(var(--cross-crimson), var(--cross-earth));
  animation-delay: -3.2s;
}

@keyframes crossingPulse {
  0%, 100% { opacity: .28; transform: scaleY(.84); }
  50% { opacity: .92; transform: scaleY(1); }
}

.crossings-hero-key {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding: 19px;
  border: 1px solid rgba(153, 194, 220, .18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(84, 163, 209, .065), transparent 42%),
    rgba(5, 13, 23, .86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
  backdrop-filter: blur(20px);
}

.crossings-hero-key > p {
  margin: 0 0 12px;
  color: #8ca2b4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.crossings-hero-key ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.crossings-hero-key li {
  min-height: 94px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: center;
  column-gap: 13px;
  border: 1px solid rgba(153, 194, 220, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .017);
}

.crossings-hero-key li > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #8de4ff;
  font-family: var(--serif);
  font-size: 25px;
}

.crossings-hero-key b {
  overflow-wrap: anywhere;
  color: #eff8ff;
  font-family: var(--serif);
  font-size: clamp(20px, 1.3vw, 26px);
  font-weight: 400;
  line-height: 1.15;
}

.crossings-hero-key small {
  margin-top: 5px;
  color: #9eafbf;
  font-size: 15px;
  line-height: 1.4;
}

.crossings-hero-key li:nth-child(1) { border-color: rgba(105, 226, 189, .23); }
.crossings-hero-key li:nth-child(2) { border-color: rgba(201, 164, 255, .23); }
.crossings-hero-key li:nth-child(3) { border-color: rgba(113, 223, 255, .21); }
.crossings-hero-key li:nth-child(4) { border-color: rgba(240, 162, 93, .22); }
.crossings-hero-key li:nth-child(5) { border-color: rgba(255, 97, 127, .22); }

.crossings-stats dt {
  color: #bcefff;
}

.crossings-stats dd {
  font-size: 13px;
}

.crossings-fiction-notice,
.crossings-coordinate-bar {
  border-color: rgba(113, 223, 255, .18);
}

.crossings-coordinate-bar a {
  color: inherit;
  text-decoration: none;
}

.crossings-coordinate-bar a:hover {
  color: #dff8ff;
}

.crossings-heading > p {
  font-size: 18px;
}

.crossings-guardrail {
  border-color: rgba(113, 223, 255, .22);
  background:
    linear-gradient(90deg, rgba(113, 223, 255, .045), transparent 36%),
    rgba(6, 14, 25, .79);
}

.crossings-guardrail .scope-symbol {
  border-color: rgba(201, 164, 255, .4);
  color: #d5baff;
}

.crossings-guardrail b,
.crossings-guardrail a,
.crossings-controls .control-label,
.crossings-controls .system-status {
  font-size: 12px;
}

.crossings-guardrail p {
  font-size: 16px;
}

.crossing-route-planner {
  margin-top: 18px;
  padding: 17px;
  display: grid;
  grid-template-columns: minmax(230px, .82fr) minmax(210px, 1fr) auto minmax(210px, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid rgba(157, 193, 221, .2);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(201, 164, 255, .05), transparent 30%, rgba(255, 97, 127, .035)),
    rgba(7, 14, 24, .82);
}

.route-planner-heading {
  align-self: center;
}

.route-planner-heading > span,
.crossing-route-planner label > span {
  display: block;
  color: #8da0b5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

.route-planner-heading p {
  margin: 7px 0 0;
  color: #abb9c8;
  font-size: 15px;
  line-height: 1.45;
}

.crossing-route-planner select {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(157, 193, 221, .24);
  border-radius: 9px;
  background-color: #08121f;
  color: #edf6ff;
  font: inherit;
  font-size: 16px;
}

.crossing-route-planner select:focus-visible {
  outline: 2px solid var(--cross-cyan);
  outline-offset: 2px;
}

.route-swap,
.route-plot {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(157, 193, 221, .24);
  border-radius: 9px;
  background: rgba(13, 24, 38, .9);
  color: #cfdae6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.route-swap {
  display: grid;
  place-items: center;
  gap: 2px;
}

.route-swap span:first-child {
  font-size: 19px;
  line-height: 1;
}

.route-swap span:last-child {
  font-size: 11px;
}

.route-plot {
  border-color: rgba(113, 223, 255, .5);
  background: rgba(54, 153, 198, .13);
  color: #e0f8ff;
}

.route-swap:hover,
.route-swap:focus-visible,
.route-plot:hover,
.route-plot:focus-visible {
  border-color: rgba(113, 223, 255, .75);
  color: white;
}

.route-result {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 11px 12px 0;
  border-top: 1px solid rgba(157, 193, 221, .11);
  color: #9fb4c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.5;
}

.crossings-controls {
  grid-template-columns: minmax(0, 1fr);
}

.crossings-controls .trace-group {
  grid-row: 2;
}

.crossings-controls .system-status {
  grid-row: 3;
}

.crossings-controls .lens-button,
.crossings-controls .system-control {
  min-height: 47px;
  font-size: 12px;
}

.crossings-controls .lens-button:hover,
.crossings-controls .lens-button:focus-visible,
.crossings-controls .system-control:hover,
.crossings-controls .system-control:focus-visible {
  border-color: rgba(113, 223, 255, .58);
  color: #e7faff;
}

.crossings-controls .lens-button.is-active,
.crossings-controls .system-control.is-active {
  border-color: rgba(113, 223, 255, .75);
  background: rgba(58, 159, 205, .15);
  color: #e8fbff;
}

.crossings-workspace {
  grid-template-columns: minmax(870px, 1.7fr) minmax(445px, .72fr);
}

.crossings-viewport {
  min-height: 1532px;
  scrollbar-color: rgba(113, 223, 255, .5) rgba(4, 9, 17, .5);
}

.crossings-stage {
  min-width: 1240px;
  height: 1500px;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(105, 226, 189, .09), transparent 23%),
    radial-gradient(ellipse at 50% 24%, rgba(152, 109, 227, .1), transparent 22%),
    radial-gradient(ellipse at 53% 52%, rgba(113, 223, 255, .075), transparent 35%),
    radial-gradient(ellipse at 51% 76%, rgba(67, 147, 205, .09), transparent 25%),
    radial-gradient(ellipse at 78% 60%, rgba(231, 53, 95, .08), transparent 25%),
    linear-gradient(90deg, transparent 49.92%, rgba(226, 240, 248, .08) 50%, transparent 50.08%),
    rgba(4, 10, 18, .95);
}

.crossings-stage::after {
  inset: 48px 5% 46px;
  border-color: rgba(113, 223, 255, .11);
  border-radius: 44% 44% 12% 12% / 10% 10% 5% 5%;
  box-shadow:
    inset 0 0 150px rgba(72, 164, 214, .035),
    0 0 90px rgba(72, 164, 214, .025);
}

.crossings-stage .stage-coordinate,
.crossings-viewport .map-zoom-controls button,
.crossings-viewport .map-zoom-controls span,
.crossings-band span,
.crossings-sector {
  font-size: 12px;
}

.crossings-band {
  left: 58px;
  right: 18px;
}

.band-higher {
  top: 36px;
  height: 160px;
  border-color: rgba(105, 226, 189, .19);
  background: linear-gradient(90deg, transparent, rgba(105, 226, 189, .04), transparent);
}

.crossings-stage .band-void {
  top: 196px;
  height: 210px;
  border-color: rgba(201, 164, 255, .2);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(152, 109, 227, .055), transparent 58%),
    linear-gradient(90deg, transparent, rgba(201, 164, 255, .025), transparent);
}

.band-arena {
  top: 406px;
  height: 600px;
  border-color: rgba(113, 223, 255, .16);
  background:
    linear-gradient(90deg, rgba(113, 223, 255, .025), transparent 33%),
    linear-gradient(270deg, rgba(255, 97, 127, .025), transparent 34%);
}

.band-earth {
  top: 1006px;
  height: 320px;
  border-color: rgba(240, 162, 93, .19);
  background: linear-gradient(90deg, transparent, rgba(80, 165, 220, .045), transparent);
}

.band-index {
  top: 1326px;
  height: 142px;
  border-color: rgba(226, 239, 248, .17);
  background: linear-gradient(90deg, transparent, rgba(226, 239, 248, .03), transparent);
}

.crossings-sector {
  top: 485px;
}

.crossings-sector.sector-void {
  left: 24px;
  color: rgba(201, 164, 255, .72);
}

.crossings-sector.sector-shared {
  left: calc(50% - 13px);
  color: rgba(113, 223, 255, .57);
}

.crossings-sector.sector-godtrix {
  right: 25px;
  color: rgba(255, 97, 127, .68);
}

.crossings-stage .system-relation[data-family="organic"] {
  stroke: rgba(105, 226, 189, .58);
  stroke-dasharray: 9 4;
}

.crossings-stage .system-relation[data-family="void"] {
  stroke: rgba(201, 164, 255, .56);
  stroke-dasharray: 4 5;
}

.crossings-stage .system-relation[data-family="planetary"] {
  stroke: rgba(240, 162, 93, .54);
}

.crossings-stage .system-relation[data-family="synthetic"] {
  stroke: rgba(255, 97, 127, .56);
  stroke-dasharray: 4 5;
}

.crossings-stage .system-relation[data-family="signal"] {
  stroke: rgba(163, 178, 196, .52);
  stroke-dasharray: 2 7;
}

.crossings-stage .system-relation[data-family="sovereign"] {
  stroke: rgba(242, 207, 141, .61);
  stroke-dasharray: 11 4 2 4;
}

.crossings-stage .system-relation[data-family="mixed"] {
  stroke: rgba(202, 216, 229, .32);
}

.crossings-stage .system-relation.is-route {
  opacity: 1;
  stroke: #f8fcff;
  stroke-width: 3;
  filter: drop-shadow(0 0 9px rgba(113, 223, 255, .9));
  animation: signalFlow .52s linear infinite;
}

.crossings-stage .system-relation.is-trace {
  stroke: #f8fcff;
  filter: drop-shadow(0 0 9px rgba(113, 223, 255, .92));
}

.crossings-stage .system-node {
  width: 228px;
  min-height: 88px;
  padding: 15px 16px 15px 59px;
}

.crossings-stage .system-node[data-tone="higher"] { --node: var(--cross-silver); width: 254px; }
.crossings-stage .system-node[data-tone="soul"] { --node: var(--cross-white); width: 238px; }
.crossings-stage .system-node[data-tone="organic"] { --node: var(--cross-organic); }
.crossings-stage .system-node[data-tone="void"] {
  --node: var(--cross-void);
  width: 244px;
  background:
    linear-gradient(105deg, rgba(201, 164, 255, .11), rgba(2, 6, 11, .98) 68%),
    rgba(2, 6, 11, .98);
}
.crossings-stage .system-node[data-tone="sovereign"] { --node: var(--cross-gold); }
.crossings-stage .system-node[data-tone="arena"] { --node: var(--cross-cyan); width: 238px; }
.crossings-stage .system-node[data-tone="portal"] { --node: #b596f3; }
.crossings-stage .system-node[data-tone="mixed"] { --node: #c0ceda; width: 244px; }
.crossings-stage .system-node[data-tone="interdimensional"] { --node: #91d9ef; width: 264px; }
.crossings-stage .system-node[data-tone="signal"] { --node: var(--cross-signal); width: 238px; }
.crossings-stage .system-node[data-tone="dream"] { --node: #86bfff; }
.crossings-stage .system-node[data-tone="synthetic"] { --node: var(--cross-crimson); width: 248px; }
.crossings-stage .system-node[data-tone="false-light"] { --node: #ffb47f; width: 238px; }
.crossings-stage .system-node[data-tone="observer"] { --node: #b69aff; width: 238px; }
.crossings-stage .system-node[data-tone="earth"] { --node: var(--cross-earth); width: 240px; }
.crossings-stage .system-node[data-tone="human"] { --node: var(--cross-white); width: 242px; }
.crossings-stage .system-node[data-tone="transition"] { --node: #d2adff; width: 248px; }

.crossings-stage .system-node strong {
  font-size: clamp(17px, 1.05vw, 20px);
  line-height: 1.08;
}

.crossings-stage .system-node small,
.crossings-stage .system-node-code {
  font-size: 12px;
}

.crossings-stage .system-node-symbol {
  width: 38px;
  height: 38px;
  font-size: 19px;
}

.crossings-stage .system-node.is-route {
  z-index: 12;
  opacity: 1;
  border-color: white;
  filter: none;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .4),
    0 0 0 1px color-mix(in srgb, var(--node) 36%, transparent),
    0 0 34px color-mix(in srgb, var(--node) 33%, transparent);
}

.crossings-legend {
  top: 1085px;
  left: 20px;
  width: 238px;
}

.crossings-legend h3,
.crossings-legend li,
.crossings-legend p {
  font-size: 12px;
}

.relation-swatch.organic {
  background: repeating-linear-gradient(90deg, var(--cross-organic) 0 8px, transparent 8px 11px);
}

.relation-swatch.void {
  background: repeating-linear-gradient(90deg, var(--cross-void) 0 4px, transparent 4px 8px);
}

.relation-swatch.planetary {
  background: var(--cross-planetary);
}

.relation-swatch.synthetic {
  background: repeating-linear-gradient(90deg, var(--cross-crimson) 0 4px, transparent 4px 8px);
}

.relation-swatch.signal {
  background: repeating-linear-gradient(90deg, var(--cross-signal) 0 2px, transparent 2px 6px);
}

.relation-swatch.sovereign {
  background: repeating-linear-gradient(90deg, var(--cross-gold) 0 10px, transparent 10px 13px);
}

.crossings-dossier {
  --dossier-accent: var(--cross-cyan);
}

.crossings-dossier[data-tone="higher"] { --dossier-accent: var(--cross-silver); }
.crossings-dossier[data-tone="soul"] { --dossier-accent: var(--cross-white); }
.crossings-dossier[data-tone="organic"] { --dossier-accent: var(--cross-organic); }
.crossings-dossier[data-tone="void"] { --dossier-accent: var(--cross-void); }
.crossings-dossier[data-tone="sovereign"] { --dossier-accent: var(--cross-gold); }
.crossings-dossier[data-tone="arena"] { --dossier-accent: var(--cross-cyan); }
.crossings-dossier[data-tone="portal"] { --dossier-accent: #b596f3; }
.crossings-dossier[data-tone="mixed"] { --dossier-accent: #c0ceda; }
.crossings-dossier[data-tone="interdimensional"] { --dossier-accent: #91d9ef; }
.crossings-dossier[data-tone="signal"] { --dossier-accent: var(--cross-signal); }
.crossings-dossier[data-tone="dream"] { --dossier-accent: #86bfff; }
.crossings-dossier[data-tone="synthetic"] { --dossier-accent: var(--cross-crimson); }
.crossings-dossier[data-tone="false-light"] { --dossier-accent: #ffb47f; }
.crossings-dossier[data-tone="observer"] { --dossier-accent: #b69aff; }
.crossings-dossier[data-tone="earth"] { --dossier-accent: var(--cross-earth); }
.crossings-dossier[data-tone="human"] { --dossier-accent: var(--cross-white); }
.crossings-dossier[data-tone="transition"] { --dossier-accent: #d2adff; }

.crossings-dossier .system-dossier-idline > span,
.crossings-dossier .system-dossier-volume,
.crossings-dossier .system-dossier-subtitle,
.crossings-dossier .system-dossier-fact dt,
.crossings-dossier .system-location h3,
.crossings-dossier .system-relationships h3,
.crossings-dossier .system-guardrail b,
.crossings-dossier .system-relation-direction,
.crossings-dossier .dossier-parent-link a,
.crossings-dossier .journey-reference-links h3 {
  font-size: 12px;
}

.crossings-dossier .system-dossier h2,
.crossings-dossier h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(42px, 3.55vw, 60px);
  line-height: .96;
}

.crossings-dossier .system-dossier-subtitle {
  letter-spacing: .055em;
}

.crossings-dossier .system-dossier-role {
  font-size: 18px;
}

.crossings-dossier .system-dossier-facts {
  grid-template-columns: 1fr 1fr;
}

.crossings-dossier .system-dossier-fact {
  padding: 16px;
}

.crossings-dossier .system-dossier-fact dd,
.crossings-dossier .system-guardrail,
.crossings-dossier .system-relation-target,
.crossings-dossier .crossing-test,
.crossings-dossier .crossing-caution {
  font-size: 16px;
}

.crossings-dossier .system-location li {
  font-size: 13px;
}

.crossing-test,
.crossing-caution {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--dossier-accent) 25%, transparent);
  border-radius: 10px;
  color: #cad6e1;
  line-height: 1.6;
}

.crossing-test b,
.crossing-caution b {
  display: block;
  margin-bottom: 6px;
  color: color-mix(in srgb, var(--dossier-accent) 84%, white 8%);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.crossing-caution {
  border-color: rgba(255, 166, 108, .28);
  background: rgba(164, 75, 32, .055);
}

.crossing-subatlas-links {
  margin-top: 11px;
  display: grid;
  gap: 8px;
}

.crossing-subatlas-links a {
  min-height: 50px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--dossier-accent) 32%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--dossier-accent) 6%, transparent);
  color: #e3eef6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.crossing-subatlas-links a:hover,
.crossing-subatlas-links a:focus-visible {
  border-color: color-mix(in srgb, var(--dossier-accent) 65%, transparent);
  color: white;
}

.crossings-route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crossings-route-grid article,
.crossings-route-grid article:last-child {
  grid-column: auto;
  min-height: 290px;
  background:
    linear-gradient(135deg, rgba(78, 184, 241, .05), transparent 42%),
    rgba(6, 14, 25, .73);
}

.crossings-route-grid article > span,
.crossings-route-grid button {
  color: #9fe7ff;
  font-size: 12px;
}

.crossings-route-grid h3 {
  font-size: 29px;
}

.crossings-route-grid p {
  font-size: 17px;
}

.crossing-protocol {
  width: var(--synthetic-page);
  margin: 0 auto;
  padding: 88px 0 120px;
  display: grid;
  grid-template-columns: .52fr 1.48fr;
  gap: 76px;
  border-top: 1px solid rgba(157, 193, 221, .13);
}

.crossing-protocol h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(46px, 4.2vw, 72px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .96;
}

.crossing-protocol ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
}

.crossing-protocol li {
  min-height: 195px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  border: 1px solid rgba(157, 193, 221, .17);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(201, 164, 255, .035), transparent),
    rgba(7, 14, 24, .66);
}

.crossing-protocol li > span {
  color: var(--cross-void);
  font-family: var(--serif);
  font-size: 26px;
}

.crossing-protocol b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.crossing-protocol p {
  margin: 10px 0 0;
  color: #a7b5c4;
  font-size: 17px;
  line-height: 1.6;
}

.crossings-visual-layer {
  border-top-color: rgba(113, 223, 255, .14);
}

.crossings-aperture.realms {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(105, 226, 189, .16), transparent 18%),
    repeating-radial-gradient(ellipse at 50% 55%, transparent 0 28px, rgba(113, 223, 255, .07) 29px 30px),
    #050c16;
}

.crossings-aperture.portals {
  background:
    conic-gradient(from 40deg at 50% 50%, transparent, rgba(201, 164, 255, .16), transparent 31%, rgba(113, 223, 255, .11), transparent 65%),
    radial-gradient(circle, rgba(201, 164, 255, .14), transparent 30%),
    #050c16;
}

.crossings-aperture.cinema {
  background:
    linear-gradient(rgba(136, 174, 201, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 174, 201, .06) 1px, transparent 1px),
    radial-gradient(circle at 56% 48%, rgba(255, 97, 127, .12), transparent 25%),
    #050c16;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.crossings-laws li > span {
  color: #8ce2ff;
}

.crossings-laws p {
  font-size: 17px;
}

.crossings-return {
  border-color: rgba(113, 223, 255, .22);
  background:
    radial-gradient(circle at 8% 15%, rgba(113, 223, 255, .09), transparent 30%),
    linear-gradient(120deg, rgba(15, 47, 64, .43), rgba(6, 14, 25, .8));
}

.crossings-return > p {
  font-size: 18px;
}

.crossings-footer {
  border-top-color: rgba(113, 223, 255, .16);
}

.crossings-footer p,
.crossings-footer a {
  font-size: 14px;
}

@media (max-width: 1450px) {
  .crossings-workspace {
    grid-template-columns: minmax(790px, 1.45fr) minmax(420px, .74fr);
  }

  .crossings-dossier .system-dossier-facts {
    grid-template-columns: 1fr;
  }

  .crossing-route-planner {
    grid-template-columns: minmax(190px, .7fr) minmax(190px, 1fr) auto minmax(190px, 1fr) auto;
  }
}

@media (max-width: 1180px) {
  .crossings-hero {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .crossings-hero-geometry {
    top: 28px;
    right: -20%;
    width: 100vw;
    opacity: .58;
  }

  .crossings-hero-key {
    width: 100%;
  }

  .crossings-hero-key ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .crossings-hero-key li {
    min-height: 180px;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .crossings-hero-key li > span {
    grid-row: auto;
  }

  .crossing-route-planner {
    grid-template-columns: 1fr auto 1fr auto;
  }

  .route-planner-heading {
    grid-column: 1 / -1;
  }

  .crossings-workspace,
  .crossing-protocol {
    grid-template-columns: 1fr;
  }

  .crossings-dossier .system-dossier-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .crossings-hero {
    min-height: auto;
    gap: 42px;
  }

  .crossings-hero-geometry {
    top: 85px;
    right: -58%;
    width: 155vw;
    opacity: .42;
  }

  .crossings-hero-key ol {
    grid-template-columns: 1fr;
  }

  .crossings-hero-key li {
    min-height: 105px;
    grid-template-columns: 42px 1fr;
  }

  .crossings-hero-key li > span {
    grid-row: 1 / 3;
  }

  .crossings-hero-key b {
    font-size: 23px;
  }

  .crossings-hero-key small {
    font-size: 16px;
  }

  .crossings-stats dd {
    font-size: 12px;
  }

  .crossings-heading > p,
  .crossings-guardrail p {
    font-size: 17px;
  }

  .crossing-route-planner {
    padding: 14px;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .route-planner-heading,
  .route-result {
    grid-column: auto;
  }

  .crossing-route-planner select {
    min-height: 56px;
    font-size: 17px;
  }

  .route-swap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .route-swap span:last-child {
    font-size: 12px;
  }

  .crossings-traces {
    grid-template-columns: 1fr;
  }

  .crossings-traces .system-control:last-child {
    grid-column: auto;
  }

  .crossings-viewport {
    min-height: 0;
  }

  .crossings-stage {
    min-width: 0;
    height: auto;
    padding-top: 76px;
    background:
      linear-gradient(180deg, rgba(105, 226, 189, .045), rgba(152, 109, 227, .06) 24%, rgba(113, 223, 255, .05) 55%, rgba(255, 97, 127, .055) 78%, rgba(240, 162, 93, .05)),
      rgba(4, 10, 18, .95);
  }

  .crossings-stage .system-node,
  .crossings-stage .system-node[data-tone] {
    width: 100%;
    min-height: 100px;
    padding: 17px 17px 17px 64px;
  }

  .crossings-stage .system-node strong {
    font-size: 21px;
  }

  .crossings-stage .system-node small,
  .crossings-stage .system-node-code {
    font-size: 12px;
  }

  .crossings-stage .system-node-symbol {
    left: 14px;
    width: 39px;
    height: 39px;
  }

  .crossings-legend {
    width: auto;
  }

  .crossings-legend h3,
  .crossings-legend li,
  .crossings-legend p {
    font-size: 13px;
  }

  .crossings-dossier .system-dossier h2,
  .crossings-dossier h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .crossings-dossier .system-dossier-role,
  .crossings-dossier .system-dossier-fact dd,
  .crossings-dossier .system-guardrail,
  .crossings-dossier .system-relation-target,
  .crossings-dossier .crossing-test,
  .crossings-dossier .crossing-caution {
    font-size: 17px;
  }

  .crossings-dossier .system-dossier-facts,
  .crossings-route-grid,
  .crossing-protocol ol {
    grid-template-columns: 1fr;
  }

  .crossings-route-grid article,
  .crossings-route-grid article:last-child {
    min-height: 270px;
  }

  .crossing-protocol {
    padding: 76px 0 90px;
    gap: 38px;
  }

  .crossing-protocol h2 {
    font-size: clamp(44px, 12vw, 62px);
  }

  .crossing-protocol li {
    min-height: 180px;
  }

  .crossing-protocol p,
  .crossings-laws p,
  .crossings-return > p {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-crossing {
    animation: none;
  }
}
