:root {
  color-scheme: dark;
  --black: #020304;
  --white: #eef4f4;
  --ice: #c7fbff;
  --muted: rgba(226, 237, 238, 0.48);
  font-family: "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  background: var(--black);
}

* { box-sizing: border-box; }

html,
body {
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
  overscroll-behavior: none;
}

body {
  color: var(--white);
  touch-action: none;
}

button,
a { font: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--ice);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 1rem;
  padding: 0.8rem 1rem;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus { transform: translateY(0); }

#world {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

body.is-ready #world { opacity: 1; }

.loader {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.2rem;
  background: var(--black);
  transition: opacity 380ms ease, visibility 380ms ease;
}

.loader svg {
  width: 4rem;
  fill: none;
  stroke: var(--ice);
  stroke-width: 0.7;
  filter: drop-shadow(0 0 8px rgba(199, 251, 255, 0.25));
}

.loader path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loader span {
  color: rgba(230, 241, 242, 0.42);
  font-size: 0.61rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

body.is-ready .loader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes trace { to { stroke-dashoffset: 0; } }

.screen-frame {
  position: fixed;
  z-index: 12;
  inset: 0.7rem;
  border: 1px solid rgba(223, 239, 241, 0.1);
  pointer-events: none;
}

.orbit-cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  a,
  button { cursor: none !important; }

  .orbit-cursor {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    opacity: 0;
    transform: translate3d(var(--cursor-x, -50px), var(--cursor-y, -50px), 0) translate(-50%, -50%);
    transition: width 180ms cubic-bezier(0.16, 1, 0.3, 1), height 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 100ms ease;
    pointer-events: none;
    will-change: transform;
  }

  .orbit-cursor.is-active { opacity: 1; }
  .orbit-cursor.is-hovering { width: 54px; height: 54px; }

  .orbit-cursor i,
  .orbit-cursor b {
    position: absolute;
    border: 1px solid transparent;
    border-radius: 50%;
  }

  .orbit-cursor i {
    inset: 2px;
    border-right-color: rgba(199, 251, 255, 0.9);
    border-bottom-color: rgba(199, 251, 255, 0.9);
    animation: cursor-orbit 6.4s linear infinite;
    filter: drop-shadow(0 0 3px rgba(199, 251, 255, 0.42));
  }

  .orbit-cursor b {
    inset: 8px;
    border-right-color: rgba(199, 251, 255, 0.54);
    border-bottom-color: rgba(199, 251, 255, 0.54);
    animation: cursor-orbit-reverse 4.8s linear infinite;
  }

  .orbit-cursor.is-hovering i { animation-duration: 2.4s; }
  .orbit-cursor.is-hovering b { animation-duration: 1.8s; }

  .orbit-cursor span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ice);
    box-shadow: 0 0 7px rgba(199, 251, 255, 0.9);
    transform: translate(-50%, -50%);
  }

  .orbit-cursor::before,
  .orbit-cursor::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 7px;
    background: rgba(199, 251, 255, 0.42);
    transform: translateX(-50%);
  }

  .orbit-cursor::before { top: -3px; }
  .orbit-cursor::after { bottom: -3px; }
}

@keyframes cursor-orbit { to { transform: rotate(360deg); } }
@keyframes cursor-orbit-reverse { to { transform: rotate(-360deg); } }

.coordinate-console {
  position: fixed;
  z-index: 14;
  bottom: 2.25rem;
  left: 2.8rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  color: rgba(218, 236, 238, 0.34);
  pointer-events: none;
}

.coordinate-axis {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
}

.coordinate-axis i,
.coordinate-axis b,
.coordinate-axis em {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 2.9rem;
  height: 1px;
  background: rgba(199, 251, 255, 0.35);
  box-shadow: 0 0 5px rgba(199, 251, 255, 0.12);
  transform-origin: left center;
}

.coordinate-axis b { transform: rotate(-90deg); }
.coordinate-axis em { width: 2.25rem; transform: rotate(-38deg); }

.coordinate-axis::before,
.coordinate-axis::after {
  position: absolute;
  color: rgba(199, 251, 255, 0.34);
  font-size: 0.45rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.coordinate-axis::before { content: "Y"; top: 0.25rem; left: -0.12rem; }
.coordinate-axis::after { content: "X"; right: 0.1rem; bottom: -0.2rem; }

.coordinate-values {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 0.05rem;
}

.coordinate-values span { display: grid; gap: 0.22rem; }

.coordinate-values b,
.coordinate-values em {
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 450;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.coordinate-values em {
  color: rgba(199, 251, 255, 0.62);
  font-family: Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.09em;
}

.topbar {
  position: fixed;
  z-index: 16;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0 3rem;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 44px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  pointer-events: auto;
}

.brand svg {
  width: 1.8rem;
  height: 1.8rem;
  overflow: visible;
  fill: none;
  stroke: var(--ice);
  stroke-width: 0.72;
  filter: drop-shadow(0 0 5px rgba(199, 251, 255, 0.18));
}

.system-state {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(229, 240, 241, 0.3);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.system-state i {
  width: 0.34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(199, 251, 255, 0.7);
}

.system-state[data-state="loading"] i,
.system-state[data-state="stale"] i { animation: catalog-pulse 1.8s ease-in-out infinite; }
.system-state[data-state="stale"] { color: rgba(229, 240, 241, 0.46); }
.system-state[data-state="unavailable"] { color: rgba(255, 190, 190, 0.56); }
.system-state[data-state="unavailable"] i { background: #ffbebe; box-shadow: 0 0 8px rgba(255, 190, 190, 0.5); }

@keyframes catalog-pulse { 50% { opacity: 0.28; } }

.version-button {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  min-height: 44px;
  padding: 0 0.65rem;
  border: 0;
  color: rgba(229, 240, 241, 0.32);
  background: transparent;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 160ms ease, text-shadow 160ms ease;
  pointer-events: auto;
  cursor: pointer;
}

.version-button:hover,
.version-button:focus-visible {
  color: var(--ice);
  text-shadow: 0 0 8px rgba(199, 251, 255, 0.42);
}

.chapter-rail {
  position: fixed;
  z-index: 16;
  top: 4.15rem;
  right: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 8.35rem;
  transform: none;
}

.chapter-rail button {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 5.55rem 1.05rem;
  align-items: center;
  gap: 0.12rem;
  min-height: 44px;
  padding: 0 0.2rem;
  border: 0;
  color: rgba(226, 237, 238, 0.26);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

.chapter-rail button::after {
  content: "";
  position: static;
  justify-self: end;
  width: 0.72rem;
  height: 1px;
  background: currentColor;
  transition: width 240ms ease, box-shadow 240ms ease;
}

.chapter-rail span,
.chapter-rail b {
  font-size: 0.58rem;
  font-weight: 450;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chapter-rail span { color: rgba(225, 238, 239, 0.18); }
.chapter-rail button:hover,
.chapter-rail button[aria-current="true"] { color: rgba(244, 249, 249, 0.88); }
.chapter-rail button[aria-current="true"]::after {
  width: 1.05rem;
  color: var(--ice);
  box-shadow: 0 0 8px rgba(199, 251, 255, 0.65);
}

#story {
  position: fixed;
  z-index: 5;
  inset: 0;
  perspective: 1100px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.chapter {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32rem, 50vw);
  height: 15rem;
  opacity: var(--chapter-opacity, 0);
  transform:
    translate3d(
      calc(-50% + var(--chapter-x, 0px)),
      calc(-50% + var(--chapter-y, 0px)),
      var(--chapter-z, 0px)
    )
    scale(var(--chapter-scale, 1));
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: none;
}

.copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  transform: translateZ(1px);
}

.copy::before,
.copy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  pointer-events: none;
}

.copy::before {
  width: 80%;
  height: 72%;
  border: 1px solid rgba(199, 251, 255, calc(0.12 + var(--chapter-focus, 0) * 0.2));
  border-right-color: rgba(199, 251, 255, 0.04);
  border-left-color: rgba(199, 251, 255, 0.04);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(199, 251, 255, 0.025),
    0 0 12px rgba(199, 251, 255, calc(var(--chapter-focus, 0) * 0.08));
  transform: translate(-50%, -50%) rotate(-2deg);
}

.chapter[data-chapter="0"] .copy::before {
  width: 92%;
  height: 84%;
  box-shadow:
    0 0 0 18px rgba(199, 251, 255, 0.035),
    inset 0 0 30px rgba(199, 251, 255, 0.04),
    0 0 26px rgba(199, 251, 255, calc(var(--chapter-focus, 0) * 0.1));
}

.copy::after {
  width: 126%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 251, 255, 0.2) 19%,
    rgba(199, 251, 255, 0.03) 46%,
    rgba(199, 251, 255, 0.03) 54%,
    rgba(199, 251, 255, 0.2) 81%,
    transparent
  );
  transform: translate(-50%, -50%);
}

.copy h1,
.copy h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: rgba(235, 247, 248, calc(0.025 + var(--chapter-focus, 0) * 0.04));
  font-size: clamp(3.2rem, 5.4vw, 6rem);
  font-weight: 280;
  line-height: 0.9;
  letter-spacing: -0.055em;
  white-space: nowrap;
  -webkit-text-stroke: 0.8px rgba(230, 244, 245, calc(0.45 + var(--chapter-focus, 0) * 0.4));
  text-shadow: 0 0 16px rgba(199, 251, 255, calc(var(--chapter-focus, 0) * 0.12));
}

.copy h1::before,
.copy h1::after,
.copy h2::before,
.copy h2::after {
  content: "";
  width: clamp(0.8rem, 2vw, 2rem);
  height: 1px;
  margin: 0 0.6rem;
  background: rgba(199, 251, 255, calc(0.16 + var(--chapter-focus, 0) * 0.2));
  box-shadow: 0 0 6px rgba(199, 251, 255, calc(var(--chapter-focus, 0) * 0.22));
}

.lobby-sign,
.lobby-tagline {
  position: absolute;
  left: 50%;
  margin: 0;
  color: rgba(219, 241, 243, 0.48);
  font-size: 0.58rem;
  font-weight: 450;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.lobby-sign {
  top: 17%;
  color: var(--ice);
}

.lobby-sign::before,
.lobby-sign::after {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  margin: 0 0.55rem 0.18rem;
  background: rgba(199, 251, 255, 0.42);
}

.lobby-tagline { bottom: 17%; }

.chapter-target {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: var(--target-width, 70%);
  min-width: 44px;
  height: var(--target-height, 50%);
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%) translateZ(3px);
  pointer-events: auto;
  cursor: pointer;
}

.chapter:hover .copy,
.chapter-target:focus-visible { filter: drop-shadow(0 0 7px rgba(199, 251, 255, 0.28)); }

.chapter.is-target .chapter-target { pointer-events: none; }

.chapter:not(.is-target):hover {
  opacity: 1 !important;
  filter: drop-shadow(0 0 12px rgba(199, 251, 255, 0.36));
}

.chapter:not(.is-target):hover .copy::before {
  border-color: rgba(199, 251, 255, 0.72);
  box-shadow: 0 0 18px rgba(199, 251, 255, 0.2);
}

.chapter:not(.is-target):hover h1,
.chapter:not(.is-target):hover h2 {
  -webkit-text-stroke-color: rgba(231, 253, 255, 0.96);
  text-shadow: 0 0 14px rgba(199, 251, 255, 0.4);
}

.chapter:not(.is-target) .chapter-target::after {
  content: "Select";
  position: absolute;
  left: 50%;
  bottom: 8%;
  color: var(--ice);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 140ms ease;
}

.chapter:not(.is-target):hover .chapter-target::after,
.chapter:not(.is-target) .chapter-target:focus-visible::after { opacity: 1; }

.object-layer {
  position: fixed;
  z-index: 9;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.object-hit {
  position: absolute;
  width: var(--hit-size, 110px);
  height: var(--hit-size, 110px);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: rgba(238, 246, 246, 0.66);
  background: transparent;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 160ms ease, color 140ms ease, transform 220ms ease;
  pointer-events: none;
  cursor: pointer;
}

.object-hit > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.5rem;
  background: rgba(2, 3, 4, 0.82);
  opacity: 0;
  white-space: nowrap;
  transform: translate(-50%, var(--label-offset, 46px));
  transition: opacity 150ms ease, text-shadow 120ms ease;
  pointer-events: none;
}

.object-hit > span::before,
.object-hit > span::after {
  content: "";
  width: 0.85rem;
  height: 1px;
  background: rgba(213, 236, 238, 0.35);
}

.object-hit > span::before {
  width: 0.28rem;
  background: var(--ice);
  box-shadow: 0 0 6px rgba(199, 251, 255, 0.6);
}

.object-hit.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.object-hit.is-entering { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
.object-hit.is-leaving { opacity: 0 !important; transform: translate(-50%, -50%) scale(0.82) !important; }
.object-hit.is-empty { color: rgba(224, 237, 238, 0.28); }
.object-hit.is-empty.is-visible { border-color: rgba(199, 251, 255, 0.08); }
.object-hit.is-hero { --hero-ring: rgba(199, 251, 255, 0.24); }
.object-hit.is-hero:hover,
.object-hit.is-hero:focus-visible { border-color: var(--hero-ring); box-shadow: 0 0 24px rgba(199, 251, 255, 0.06); }

.object-hit:hover,
.object-hit:focus-visible {
  color: var(--white);
  border-color: rgba(199, 251, 255, 0.32);
  outline: 0;
}

.object-hit:hover > span,
.object-hit:focus-visible > span {
  opacity: 1;
  text-shadow: 0 0 8px rgba(199, 251, 255, 0.58);
}
.object-hit.is-visible > span { opacity: 1; }
.object-hit[aria-disabled="true"] { color: rgba(224, 237, 238, 0.33); cursor: default; }
.object-hit[aria-disabled="true"] > span::before { background: transparent; border: 1px solid rgba(221, 236, 237, 0.28); box-shadow: none; }

.object-hit small {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(199, 251, 255, 0.42);
  font-size: 0.47rem;
  letter-spacing: 0.1em;
  opacity: 0;
  white-space: nowrap;
  transform: translate(-50%, calc(var(--label-offset, 46px) + 1.85rem));
  transition: opacity 150ms ease;
  pointer-events: none;
}

.object-hit:hover small,
.object-hit:focus-visible small,
.object-hit[data-chapter="0"] small { opacity: 1; }

.detail {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 2.4rem;
  width: min(35rem, calc(100vw - 3rem));
  padding: 1.5rem 4rem 1.5rem 1.6rem;
  border-top: 1px solid rgba(220, 240, 241, 0.32);
  border-bottom: 1px solid rgba(220, 240, 241, 0.13);
  color: var(--white);
  background: rgba(2, 3, 4, 0.94);
  opacity: 0;
  transform: translate(-50%, calc(100% + 5rem));
  transition: opacity 220ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.detail::before,
.detail::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 2.5rem;
  height: 1px;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(199, 251, 255, 0.55);
}

.detail::before { left: 0; }
.detail::after { right: 0; }

.detail.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.detail-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 44px;
  height: 44px;
  border: 0;
  color: rgba(238, 246, 246, 0.58);
  background: transparent;
  font-size: 1.45rem;
  cursor: pointer;
}

.detail > p:first-of-type,
.detail > span,
.detail-action {
  margin: 0;
  color: var(--ice);
  font-size: 0.56rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.detail h2 {
  margin: 0.35rem 0 0;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.detail-rule {
  width: 100%;
  height: 1px;
  margin: 0.85rem 0;
  background: rgba(221, 238, 239, 0.12);
}

.detail-rule span { display: block; width: 24%; height: 1px; background: rgba(199, 251, 255, 0.55); }

.detail > p:not(:first-of-type) {
  max-width: 28rem;
  margin: 0 0 1rem;
  color: rgba(232, 241, 242, 0.5);
  font-size: 0.82rem;
  line-height: 1.55;
}

.detail .detail-note {
  margin-top: -0.35rem;
  color: rgba(199, 251, 255, 0.64);
}

.detail-action {
  min-height: 44px;
  margin-left: 1rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(199, 251, 255, 0.25);
  background: transparent;
  cursor: pointer;
}

.detail-action:disabled {
  color: rgba(199, 251, 255, 0.42);
  cursor: default;
}

.contact-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
  pointer-events: none;
}

.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 3, 0.78);
  backdrop-filter: blur(9px);
}

.contact-panel {
  position: relative;
  width: min(42rem, 100%);
  max-height: calc(100dvh - 2.4rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(199, 251, 255, 0.2);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(199, 251, 255, 0.055), transparent 38%),
    rgba(2, 3, 4, 0.98);
  box-shadow: 0 0 80px rgba(120, 226, 238, 0.08);
  transform: translateY(1.25rem) scale(0.985);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.is-open .contact-panel { transform: none; }

.contact-panel::before,
.contact-panel::after {
  content: "";
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  border-color: var(--ice);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}

.contact-panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.contact-panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.contact-close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  width: 44px;
  height: 44px;
  border: 0;
  color: rgba(238, 246, 246, 0.62);
  background: transparent;
  font-size: 1.45rem;
}

.contact-kicker {
  margin: 0;
  color: var(--ice);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-panel h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.1rem, 7vw, 3.7rem);
  font-weight: 280;
  letter-spacing: -0.045em;
}

.contact-intro {
  max-width: 34rem;
  margin: 0.6rem 0 1.5rem;
  color: rgba(232, 241, 242, 0.52);
  font-size: 0.83rem;
  line-height: 1.55;
}

.contact-intro a { color: var(--ice); }

#contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

#contact-form label {
  display: grid;
  gap: 0.4rem;
}

#contact-form label > span {
  color: rgba(199, 251, 255, 0.58);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(199, 251, 255, 0.17);
  border-radius: 0;
  color: var(--white);
  background: rgba(199, 251, 255, 0.025);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#contact-form input { padding: 0 0.8rem; }

#contact-form textarea {
  min-height: 8rem;
  padding: 0.75rem 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: rgba(199, 251, 255, 0.55);
  box-shadow: 0 0 18px rgba(199, 251, 255, 0.07);
}

.contact-message-field,
.contact-verification,
.contact-submit-row { grid-column: 1 / -1; }

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-verification {
  width: 100%;
  min-height: 65px;
  color: rgba(199, 251, 255, 0.38);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-verification iframe { max-width: 100%; }

.contact-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#contact-submit {
  min-width: 10rem;
  min-height: 46px;
  padding: 0 1.1rem;
  border: 1px solid rgba(199, 251, 255, 0.5);
  color: var(--black);
  background: var(--ice);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#contact-submit:disabled { opacity: 0.55; }

#contact-status {
  margin: 0;
  color: rgba(232, 241, 242, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

#contact-status[data-kind="success"] { color: var(--ice); }
#contact-status[data-kind="error"] { color: #ffb5b5; }

.update-banner {
  position: fixed;
  z-index: 30;
  bottom: 1rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.25rem 0.35rem 0.25rem 1rem;
  border: 1px solid rgba(199, 251, 255, 0.28);
  color: rgba(239, 248, 249, 0.72);
  background: rgba(2, 3, 4, 0.96);
  box-shadow: 0 0 20px rgba(199, 251, 255, 0.08);
  font-size: 0.54rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.update-banner[hidden] { display: none; }

.update-banner button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 0.7rem;
  border: 0;
  color: var(--black);
  background: var(--ice);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.legal-footer {
  position: fixed;
  z-index: 13;
  bottom: 1.2rem;
  left: 50%;
  color: rgba(219, 235, 237, 0.24);
  font-size: 0.46rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: auto;
}

.legal-footer a {
  color: inherit;
  text-underline-offset: 0.18rem;
}

.legal-footer button {
  min-height: 44px;
  margin: -0.8rem 0 -0.8rem 0.7rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  text-transform: inherit;
}

.legal-page {
  min-height: 100%;
  height: auto;
  overflow: auto;
  color: var(--white);
  background:
    linear-gradient(rgba(199, 251, 255, 0.035) 1px, transparent 1px),
    var(--black);
  background-size: 100% 7rem;
}

.legal-shell {
  width: min(46rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.legal-shell > a {
  color: var(--ice);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-shell h1 {
  margin: 4rem 0 2rem;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 280;
  letter-spacing: -0.055em;
  -webkit-text-stroke: 0.7px rgba(230, 244, 245, 0.7);
}

.legal-shell section {
  padding: 2rem 0;
  border-top: 1px solid rgba(199, 251, 255, 0.15);
}

.legal-shell h2 {
  margin: 0 0 1rem;
  color: var(--ice);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-shell p {
  max-width: 40rem;
  margin: 0 0 1rem;
  color: rgba(232, 241, 242, 0.58);
  font-size: 0.92rem;
  line-height: 1.7;
}

.noscript {
  position: fixed;
  z-index: 100;
  inset: 1rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem;
  color: var(--white);
  background: var(--black);
  text-align: center;
}

@media (max-width: 800px) {
  .screen-frame { inset: 0.45rem; }
  .coordinate-console {
    bottom: 1.2rem;
    left: 1.1rem;
    gap: 0.55rem;
    transform: scale(0.82);
    transform-origin: bottom left;
  }
  .coordinate-values { gap: 0.65rem; }
  .coordinate-values span:nth-child(2) { display: none; }
  .topbar { min-height: 4.6rem; padding: 0 1.3rem; }
  .version-button { top: 0.95rem; }
  .system-state { font-size: 0; }
  .system-state i { width: 0.42rem; }
  .brand { font-size: 0.68rem; }
  .chapter-rail {
    top: auto;
    right: 1rem;
    bottom: 1.25rem;
    grid-template-columns: repeat(4, 44px);
    width: auto;
    transform: none;
  }
  .chapter-rail button {
    position: relative;
    grid-template-columns: 1fr;
    width: 44px;
    padding: 0;
    justify-items: center;
  }
  .chapter-rail button b { display: none; }
  .chapter-rail button::after {
    position: absolute;
    right: 6px;
    bottom: 4px;
    left: 6px;
    width: auto;
  }
  .chapter-rail button[aria-current="true"]::after { width: auto; }
  #story {
    perspective: 850px;
    perspective-origin: 50% 56%;
  }
  .chapter {
    width: min(18rem, 72vw);
    height: 10rem;
  }
  .copy h1,
  .copy h2 {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
    -webkit-text-stroke-width: 0.65px;
  }
  .copy h1::before,
  .copy h1::after,
  .copy h2::before,
  .copy h2::after {
    width: 0.6rem;
    margin: 0 0.35rem;
  }
  .copy::before { width: 98%; height: 72%; }
  .chapter[data-chapter="0"] .copy::before { width: 100%; height: 80%; }
  .copy::after { width: 120%; }
  .object-hit { font-size: 0.51rem; letter-spacing: 0.11em; }
  .object-hit > span { gap: 0.3rem; padding: 0.28rem 0.25rem; }
  .object-hit > span::before { width: 0.22rem; }
  .object-hit > span::after { width: 0.5rem; }
  .detail { bottom: 5.4rem; padding: 1.25rem 3.4rem 1.25rem 1.25rem; }
  .detail h2 { font-size: 1.9rem; }
  .contact-modal { padding: 0.45rem; }
  .contact-panel { max-height: calc(100dvh - 0.9rem); padding: 1.35rem 1.1rem 1.5rem; }
  .contact-panel h2 { padding-right: 2.5rem; }
  #contact-form { grid-template-columns: 1fr; }
  .contact-message-field,
  .contact-verification,
  .contact-submit-row { grid-column: auto; }
  .contact-submit-row { align-items: stretch; flex-direction: column; }
  #contact-submit { width: 100%; }
  .legal-footer { bottom: 4.8rem; font-size: 0.4rem; }
  .update-banner { bottom: 5.2rem; width: calc(100% - 2rem); justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
