:root {
  color-scheme: dark;
  --night: #020407;
  --night-rgb: 2, 4, 7;
  --paper: #eaf7ff;
  --paper-rgb: 234, 247, 255;
  --accent: #3acbff;
  --accent-rgb: 58, 203, 255;
  --accent-2: #7da9bb;
  --accent-2-rgb: 125, 169, 187;
  --warning: #ff3b48;
  --warning-rgb: 255, 59, 72;
  --deep: #063c5b;
  --deep-rgb: 6, 60, 91;
  --panel: rgba(4, 11, 16, 0.84);
  --line: rgba(var(--accent-rgb), 0.25);
  --muted: rgba(var(--paper-rgb), 0.56);
  --hero-filter: saturate(0.9) contrast(1.12) brightness(0.92) drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.28));
  --theme-angle: 0deg;
  --ease-cut: cubic-bezier(0.16, 0.84, 0.22, 1);
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% 34%, rgba(var(--deep-rgb), 0.34), transparent 34rem),
    var(--night);
  color: var(--paper);
  font-family: "Courier New", Consolas, monospace;
  font-size: 14px;
  text-rendering: geometricPrecision;
  transition: background-color 500ms ease, color 500ms ease;
}

body.is-modal-open {
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--night);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  position: fixed;
  z-index: 12;
  content: "";
  pointer-events: none;
}

.site-shell::before {
  inset: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  box-shadow: inset 0 0 90px rgba(var(--accent-rgb), 0.08);
}

.site-shell::after {
  top: var(--header-height);
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.05), transparent 42%),
    linear-gradient(115deg, rgba(var(--deep-rgb), 0.14), transparent 35%, rgba(var(--accent-rgb), 0.04));
}

.ambient__grid,
.ambient__scanlines,
.ambient__noise,
.ambient__vignette,
.ambient__flash,
.ambient__binary,
.ambient__receipts {
  position: absolute;
  inset: 0;
}

.ambient__grid {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.105) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.105) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 3%, #000 24%, #000 78%, transparent);
  transform: perspective(900px) rotateX(1deg) scale(1.03);
  transform-origin: center;
  transition: background-size 800ms var(--ease-cut), transform 800ms var(--ease-cut);
}

.ambient__binary {
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  color: rgba(var(--accent-rgb), 0.13);
  font-size: 9px;
  line-height: 2.1;
  letter-spacing: 0.3em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
  opacity: 0.78;
  mask-image: radial-gradient(circle at center, transparent 0 22%, #000 70%);
}

.ambient__binary span {
  width: 1em;
  animation: binary-drift var(--duration, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.ambient__receipts {
  perspective: 800px;
}

.ambient__receipts i {
  position: absolute;
  width: var(--w, 60px);
  height: calc(var(--w, 60px) * 0.4);
  border: 1px solid rgba(var(--paper-rgb), 0.12);
  background:
    repeating-linear-gradient(90deg, rgba(var(--paper-rgb), 0.1) 0 1px, transparent 1px 4px),
    rgba(var(--night-rgb), 0.82);
  opacity: var(--opacity, 0.26);
  transform: rotate(var(--rotate, 0deg));
  animation: receipt-float var(--duration, 14s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

.ambient__scanlines {
  z-index: 4;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
  opacity: 0.48;
}

.ambient__noise {
  z-index: 5;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 5px 7px, 9px 11px;
  mix-blend-mode: overlay;
  opacity: 0.18;
  animation: noise-shift 260ms steps(2) infinite;
}

.ambient__vignette {
  z-index: 6;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.62), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.65)),
    radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.74) 112%);
}

.ambient__flash {
  z-index: 8;
  background: var(--paper);
  opacity: 0;
  mix-blend-mode: screen;
}

body.is-signal-lock .ambient__flash {
  animation: signal-flash 760ms steps(2) both;
}

body.is-spinning .ambient__grid {
  background-size: 35px 35px;
  transform: perspective(700px) rotateX(4deg) rotateZ(-0.5deg) scale(1.09);
}

body.is-spinning .ambient__noise {
  opacity: 0.42;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  height: var(--header-height);
  padding: 0 clamp(18px, 3vw, 54px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(var(--night-rgb), 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.22);
  font-size: 10px;
  transform: rotate(45deg);
}

.brand__mark::first-line {
  transform: rotate(-45deg);
}

.brand__name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.brand__eyes {
  color: var(--accent);
}

.topbar__telemetry {
  display: flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--night-rgb), 0.42);
}

.topbar__telemetry span {
  min-width: 130px;
  padding: 9px 18px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.15);
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  letter-spacing: 0.12em;
}

.topbar__telemetry span:last-child {
  border-right: 0;
  color: var(--accent);
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.live-indicator i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: live-pulse 1.4s steps(2) infinite;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 70px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: transparent;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.icon-button:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.icon-button__state {
  color: var(--paper);
}

main {
  min-height: calc(100vh - 50px);
}

.screen {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 34px) clamp(22px, 4vw, 74px) 70px;
}

.screen--boot {
  display: grid;
  place-items: center;
}

.boot-terminal {
  position: relative;
  width: min(1080px, 100%);
  padding: clamp(30px, 6vw, 78px);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.09), transparent 32%),
    rgba(var(--night-rgb), 0.68);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.82),
    0 0 80px rgba(var(--accent-rgb), 0.08),
    inset 0 0 90px rgba(0, 0, 0, 0.48);
}

.boot-terminal::before,
.boot-terminal::after {
  position: absolute;
  width: 34px;
  height: 34px;
  content: "";
}

.boot-terminal::before {
  top: -7px;
  left: -7px;
  border-top: 2px solid var(--paper);
  border-left: 2px solid var(--paper);
}

.boot-terminal::after {
  right: -7px;
  bottom: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.boot-terminal__scope {
  position: absolute;
  top: 0;
  right: 4%;
  width: min(43%, 490px);
  height: 100%;
  opacity: 0.45;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.boot-terminal__scope svg {
  width: 100%;
  height: 100%;
}

.boot-terminal__scope polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--accent));
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2 5;
  animation: scope-dash 1.4s linear infinite;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.boot-terminal h1,
.wheel-copy h1,
.entry-form h1,
.card-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(45px, 7.3vw, 116px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

h1 em,
h2 em {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.06em;
  text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.38);
}

.boot-terminal h1 em {
  color: var(--accent);
}

.boot-terminal__progress {
  position: relative;
  z-index: 1;
  width: min(590px, 74%);
  height: 4px;
  margin-top: 44px;
  overflow: hidden;
  background: rgba(var(--paper-rgb), 0.12);
}

.boot-terminal__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
  transition: width 180ms linear;
}

.boot-terminal__log {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen--wheel {
  display: grid;
  align-items: center;
  min-height: 100vh;
}

.wheel-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(500px, 1.15fr);
  align-items: center;
  gap: clamp(30px, 5vw, 88px);
  width: min(1480px, 100%);
  min-height: 650px;
  margin: 0 auto;
}

.wheel-copy {
  position: relative;
  z-index: 3;
  transition: opacity 420ms ease, transform 620ms var(--ease-cut), filter 320ms ease;
}

.wheel-copy h1 {
  max-width: 650px;
  font-size: clamp(52px, 6vw, 94px);
}

.wheel-copy h1 em {
  color: var(--accent);
}

.wheel-copy__lede {
  max-width: 550px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.8;
}

.signal-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.signal-meter__track {
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--night-rgb), 0.7);
}

.signal-meter__track i {
  display: block;
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 13px);
  box-shadow: 0 0 18px var(--accent);
  transition: width 80ms linear;
}

.system-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 580px;
  margin: 34px 0 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.18);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
}

.system-readout div {
  padding: 15px 12px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.18);
}

.system-readout div:last-child {
  border-right: 0;
}

.system-readout dt,
.system-readout dd {
  margin: 0;
}

.system-readout dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.system-readout dd {
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.wheel-station {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 650px;
  transition: opacity 420ms ease, transform 620ms var(--ease-cut), filter 320ms ease;
}

.wheel-station::before {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 120px rgba(var(--accent-rgb), 0.12);
  content: "";
  filter: blur(40px);
}

.wheel-station__coordinates {
  position: absolute;
  z-index: 4;
  inset: 4% 3% auto;
  display: flex;
  justify-content: space-between;
  color: rgba(var(--accent-rgb), 0.52);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.wheel-pointer {
  position: absolute;
  z-index: 10;
  top: 3.5%;
  left: 50%;
  width: 46px;
  height: 66px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 16px var(--accent));
}

.wheel-pointer::before,
.wheel-pointer::after {
  position: absolute;
  content: "";
}

.wheel-pointer::before {
  top: 0;
  left: 50%;
  width: 1px;
  height: 24px;
  background: var(--paper);
}

.wheel-pointer::after {
  top: 19px;
  left: 50%;
  width: 26px;
  height: 26px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: translateX(-50%) rotate(45deg);
  background: var(--night);
}

.wheel-pointer span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 5px;
  height: 16px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.wheel-shell {
  position: relative;
  display: grid;
  width: min(37vw, 570px);
  min-width: 480px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 54%, rgba(var(--accent-rgb), 0.06) 54% 55%, transparent 55%),
    rgba(var(--night-rgb), 0.74);
  box-shadow:
    0 0 0 14px rgba(var(--night-rgb), 0.72),
    0 0 0 15px rgba(var(--accent-rgb), 0.16),
    0 0 100px rgba(var(--accent-rgb), 0.11),
    inset 0 0 62px rgba(0, 0, 0, 0.82);
}

.wheel-shell__ticks {
  position: absolute;
  z-index: 1;
  inset: -9px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -1deg,
    rgba(var(--accent-rgb), 0.5) 0 0.7deg,
    transparent 0.7deg 5deg
  );
  mask: radial-gradient(circle, transparent 0 96%, #000 96%);
}

.wheel-disc {
  position: relative;
  z-index: 3;
  width: 84%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(var(--paper-rgb), 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(var(--night-rgb), 0.94) 24% 29%, transparent 29%),
    conic-gradient(
      from -22.5deg,
      rgba(53, 199, 255, 0.5) 0deg 45deg,
      rgba(84, 243, 233, 0.42) 45deg 90deg,
      rgba(229, 216, 166, 0.38) 90deg 135deg,
      rgba(169, 140, 255, 0.4) 135deg 180deg,
      rgba(130, 185, 216, 0.42) 180deg 225deg,
      rgba(51, 231, 131, 0.4) 225deg 270deg,
      rgba(255, 140, 207, 0.4) 270deg 315deg,
      rgba(125, 153, 163, 0.34) 315deg 360deg
    );
  box-shadow:
    inset 0 0 58px rgba(0, 0, 0, 0.75),
    0 0 36px rgba(var(--accent-rgb), 0.16);
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-disc::before,
.wheel-disc::after {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.wheel-disc::before {
  inset: 9%;
  border: 1px dashed rgba(var(--paper-rgb), 0.18);
}

.wheel-disc::after {
  inset: 2%;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  box-shadow: inset 0 0 34px rgba(var(--accent-rgb), 0.12);
}

.wheel-disc__lines {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.4deg, rgba(var(--paper-rgb), 0.22) 0 0.8deg, transparent 0.8deg 45deg);
  mask: radial-gradient(circle, transparent 0 29%, #000 29% 100%);
}

.wheel-labels {
  position: absolute;
  inset: 0;
}

.wheel-label {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 112px;
  color: var(--paper);
  text-align: center;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--index) * 45deg))
    translateY(-168px)
    rotate(calc(var(--index) * -45deg));
}

.wheel-label b {
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgba(var(--paper-rgb), 0.55);
}

.wheel-label small {
  margin-top: 5px;
  color: var(--sector-color, var(--accent));
  font-size: 6px;
  letter-spacing: 0.14em;
  text-shadow: 0 0 9px var(--sector-color, var(--accent));
}

.wheel-label:nth-child(1) { --sector-color: #35c7ff; }
.wheel-label:nth-child(2) { --sector-color: #54f3e9; }
.wheel-label:nth-child(3) { --sector-color: #e5d8a6; }
.wheel-label:nth-child(4) { --sector-color: #a98cff; }
.wheel-label:nth-child(5) { --sector-color: #82b9d8; }
.wheel-label:nth-child(6) { --sector-color: #33e783; }
.wheel-label:nth-child(7) { --sector-color: #ff8ccf; }
.wheel-label:nth-child(8) { --sector-color: #7d99a3; }

.wheel-disc__inner {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: grid;
  width: 29%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.14), transparent 66%),
    var(--night);
  box-shadow:
    0 0 0 8px rgba(var(--night-rgb), 0.88),
    0 0 0 9px rgba(var(--paper-rgb), 0.13),
    0 0 28px rgba(var(--accent-rgb), 0.23);
  transform: translate(-50%, -50%);
}

.wheel-disc__inner small {
  position: absolute;
  bottom: 24%;
  color: var(--muted);
  font-size: 5px;
  letter-spacing: 0.18em;
}

.wheel-disc__eye {
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 1.2vw, 18px);
  text-shadow: 0 0 16px var(--accent);
}

.tune-button {
  --charge: 0;
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  aspect-ratio: 1;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: rgba(var(--night-rgb), 0.93);
  color: var(--paper);
  box-shadow:
    0 0 0 8px rgba(var(--night-rgb), 0.88),
    0 0 0 9px rgba(var(--accent-rgb), 0.34),
    0 0 38px rgba(var(--accent-rgb), 0.2);
  transform: translate(-50%, -50%);
  touch-action: none;
  user-select: none;
}

.tune-button:hover {
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow:
    0 0 0 8px rgba(var(--night-rgb), 0.88),
    0 0 0 9px var(--accent),
    0 0 58px rgba(var(--accent-rgb), 0.42);
}

.tune-button.is-charging {
  color: var(--night);
  background: var(--paper);
  transform: translate(-50%, -50%) scale(0.97);
}

.tune-button:disabled {
  opacity: 0.66;
}

.tune-button__progress {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--charge) * 1turn), transparent 0);
  mask: radial-gradient(circle, transparent 0 89%, #000 90%);
}

.tune-button__label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tune-button small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 5px;
  letter-spacing: 0.12em;
}

.tune-button.is-charging small {
  color: rgba(var(--night-rgb), 0.62);
}

.wheel-station__instruction {
  position: absolute;
  z-index: 6;
  bottom: 0;
  left: 50%;
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.wheel-layout.is-revealed .wheel-copy {
  opacity: 0;
  filter: blur(12px);
  transform: translateX(-80px);
  pointer-events: none;
}

.wheel-layout.is-revealed .wheel-station {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.32);
  pointer-events: none;
}

.reveal-panel {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  animation: reveal-panel-in 900ms var(--ease-cut) both;
}

.reveal-panel__image {
  display: grid;
  height: min(70vh, 720px);
  place-items: center;
}

.hero-signal {
  --hero-scale: 1;
  position: relative;
  display: grid;
  place-items: end center;
  overflow: hidden;
  isolation: isolate;
}

.hero-signal::before,
.hero-signal::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.hero-signal::before {
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 66%);
  box-shadow:
    0 0 80px rgba(var(--accent-rgb), 0.16),
    inset 0 0 58px rgba(var(--accent-rgb), 0.1);
}

.hero-signal::after {
  width: 95%;
  aspect-ratio: 1;
  border: 1px dashed rgba(var(--accent-rgb), 0.17);
  animation: slow-spin 28s linear infinite;
}

.hero-signal img {
  position: relative;
  z-index: 3;
  display: block;
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: var(--hero-filter);
  mix-blend-mode: screen;
  transform: scale(var(--hero-scale));
  transform-origin: bottom center;
  transition: filter 500ms ease, transform 700ms var(--ease-cut);
}

.hero-signal__echo {
  position: absolute;
  z-index: 1;
  width: 74%;
  height: 84%;
  background: var(--accent);
  opacity: 0.11;
  mask:
    radial-gradient(circle at 50% 24%, #000 0 19%, transparent 20%),
    radial-gradient(ellipse at 50% 73%, #000 0 31%, transparent 32%);
  mix-blend-mode: screen;
}

.hero-signal__echo--one {
  transform: translateX(-18px);
  animation: hero-echo-one 2.7s steps(2) infinite;
}

.hero-signal__echo--two {
  background: var(--warning);
  transform: translateX(18px);
  animation: hero-echo-two 3.1s steps(2) infinite;
}

.hero-signal__scan {
  position: absolute;
  z-index: 5;
  top: -20%;
  right: 0;
  left: 0;
  height: 15%;
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.38), transparent);
  mix-blend-mode: screen;
  animation: hero-scan 4.8s linear infinite;
}

.hero-signal--large {
  width: min(100%, 630px);
  height: 100%;
}

.reveal-panel__copy {
  max-width: 680px;
}

.reveal-panel__kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.reveal-panel h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(55px, 6vw, 105px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.24);
}

.reveal-panel__personality {
  max-width: 590px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}

.trait-grid div {
  min-height: 90px;
  padding: 14px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--night-rgb), 0.62);
}

.trait-grid div:last-child {
  border-right: 0;
}

.trait-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.trait-grid strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
}

.stat-board {
  display: grid;
  gap: 8px;
  margin: 22px 0 26px;
}

.stat-row {
  display: grid;
  grid-template-columns: 50px 1fr 24px;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.stat-row i {
  height: 4px;
  overflow: hidden;
  background: rgba(var(--paper-rgb), 0.11);
}

.stat-row b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: width 1s var(--ease-cut) 400ms;
}

.stat-row strong {
  color: var(--accent);
  font-size: 10px;
}

.primary-button,
.secondary-button,
.verify-button {
  border-radius: 0;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 52px;
  padding: 0;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--night);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.primary-button span {
  display: flex;
  align-items: center;
  padding: 0 22px;
}

.primary-button b {
  display: grid;
  width: 51px;
  place-items: center;
  border-left: 1px solid rgba(var(--night-rgb), 0.24);
  background: var(--accent);
  font-size: 15px;
}

.primary-button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-2px);
}

.primary-button:hover:not(:disabled) b {
  background: var(--paper);
}

.primary-button:disabled {
  background: rgba(var(--paper-rgb), 0.15);
  color: rgba(var(--paper-rgb), 0.32);
  border-color: rgba(var(--paper-rgb), 0.13);
}

.primary-button:disabled b {
  background: rgba(var(--paper-rgb), 0.04);
}

.primary-button--wide {
  min-width: min(360px, 100%);
}

.secondary-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--paper);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.secondary-button:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.17);
  color: var(--accent);
}

.secondary-button--large {
  min-height: 52px;
  padding: 0 22px;
}

.screen--entry {
  display: grid;
  align-items: center;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(680px, 1.32fr);
  gap: clamp(24px, 3vw, 48px);
  width: min(1540px, 100%);
  margin: 0 auto;
}

.identity-panel,
.entry-form {
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: var(--panel);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.identity-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: 26px;
  overflow: hidden;
}

.identity-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 42%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  content: "";
}

.identity-panel__hero {
  width: 100%;
  height: 440px;
  margin: -5px 0 -20px;
}

.identity-panel__code {
  position: relative;
  z-index: 6;
  width: max-content;
  padding: 6px 8px;
  background: var(--accent);
  color: var(--night);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.identity-panel h2 {
  position: relative;
  z-index: 6;
  margin: 12px 0 9px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 3.7vw, 64px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.identity-panel > p:not(.eyebrow) {
  position: relative;
  z-index: 6;
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.identity-panel__seal {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.identity-panel__seal span {
  text-shadow: 0 0 10px var(--accent);
}

.entry-form {
  padding: clamp(20px, 3vw, 38px);
}

.entry-form__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.entry-form h1 {
  font-size: clamp(44px, 4.6vw, 75px);
}

.entry-form h1 em {
  color: var(--accent);
}

.entry-form__progress {
  width: min(230px, 30%);
  color: var(--accent);
  font-size: 9px;
  text-align: right;
}

.entry-form__progress i {
  display: block;
  height: 3px;
  margin-top: 8px;
  background: rgba(var(--paper-rgb), 0.1);
}

.entry-form__progress b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: width 300ms var(--ease-cut);
}

.field-row {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.field__control {
  display: flex;
  height: 51px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--night-rgb), 0.62);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field__control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.1);
}

.field__control > span {
  display: grid;
  min-width: 49px;
  place-items: center;
  border-right: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-size: 9px;
}

.field input,
.proof-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.field input {
  width: calc(100% - 50px);
  padding: 0 15px;
}

.field input::placeholder,
.proof-form input::placeholder {
  color: rgba(var(--paper-rgb), 0.25);
}

.field small {
  display: block;
  margin-top: 7px;
  color: rgba(var(--paper-rgb), 0.34);
  font-size: 7px;
}

.field__error {
  min-height: 13px;
  margin: 5px 0 0;
  color: var(--warning);
  font-size: 8px;
}

.field.is-invalid .field__control {
  border-color: var(--warning);
  box-shadow: 0 0 18px rgba(var(--warning-rgb), 0.11);
}

.task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 11px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.16);
}

.task-header p,
.task-header small {
  margin: 0;
}

.task-header p {
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.task-header p span {
  margin-right: 8px;
  color: var(--accent);
}

.task-header small {
  color: var(--muted);
  font-size: 7px;
}

.task-grid {
  display: grid;
  gap: 8px;
}

.task-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 91px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.05), transparent 45%),
    rgba(var(--night-rgb), 0.42);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.task-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
  transform: translateX(3px);
}

.task-card.is-opened {
  border-color: rgba(var(--accent-rgb), 0.48);
}

.task-card.is-verified {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--night-rgb), 0.36));
}

.task-card.is-verified::after {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  content: "";
  transform: rotate(45deg);
}

.task-card__index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
  font-size: 9px;
}

.task-card__copy {
  min-width: 0;
}

.task-card__copy > span {
  color: var(--accent);
  font-size: 6px;
  letter-spacing: 0.14em;
}

.task-card h3 {
  margin: 3px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: -0.015em;
}

.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.task-card__actions {
  display: flex;
  gap: 7px;
}

.verify-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(var(--paper-rgb), 0.18);
  background: transparent;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.verify-button span {
  padding: 0 10px;
}

.verify-button b {
  display: grid;
  width: 34px;
  align-self: stretch;
  place-items: center;
  border-left: 1px solid rgba(var(--paper-rgb), 0.13);
  color: var(--accent);
}

.verify-button:disabled {
  opacity: 0.28;
}

.verify-button:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--paper);
}

.task-card.is-verified .verify-button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--night);
}

.task-card.is-verified .verify-button b {
  border-color: rgba(var(--night-rgb), 0.25);
  color: var(--night);
}

.task-card--comment {
  min-height: 128px;
}

.task-card blockquote {
  max-width: 590px;
  margin: 5px 0 7px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.3;
}

.comment-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.comment-tools button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.38);
  background: transparent;
  color: var(--accent);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.comment-tools button:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.submit-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
}

.submit-strip > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.submit-strip > div span {
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.submit-strip > div small {
  color: var(--muted);
  font-size: 7px;
}

.screen--card {
  display: grid;
  align-items: center;
}

.card-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: clamp(35px, 6vw, 100px);
  width: min(1380px, 100%);
  margin: 0 auto;
}

.card-copy h1 {
  font-size: clamp(52px, 6vw, 94px);
}

.card-copy h1 em {
  color: var(--accent);
}

.card-copy > p:not(.eyebrow):not(.card-copy__note) {
  max-width: 560px;
  margin: 25px 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.card-meta div {
  padding: 13px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.16);
}

.card-meta div:last-child {
  border-right: 0;
}

.card-meta dt,
.card-meta dd {
  margin: 0;
}

.card-meta dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.card-meta dd {
  overflow: hidden;
  color: var(--accent);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-copy__note {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(var(--paper-rgb), 0.36);
  font-size: 7px;
  line-height: 1.6;
}

.canvas-frame {
  position: relative;
  width: min(62vh, 670px);
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--night-rgb), 0.72);
  box-shadow:
    0 0 80px rgba(var(--accent-rgb), 0.12),
    inset 0 0 30px rgba(var(--accent-rgb), 0.06);
}

.canvas-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--night);
}

.canvas-frame__corners::before,
.canvas-frame__corners::after {
  position: absolute;
  width: 42px;
  height: 42px;
  content: "";
  pointer-events: none;
}

.canvas-frame__corners::before {
  top: 5px;
  left: 5px;
  border-top: 2px solid var(--paper);
  border-left: 2px solid var(--paper);
}

.canvas-frame__corners::after {
  right: 5px;
  bottom: 5px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.footer {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 clamp(18px, 3vw, 54px);
  border-top: 1px solid rgba(var(--accent-rgb), 0.18);
  color: rgba(var(--paper-rgb), 0.34);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.footer button {
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid rgba(var(--warning-rgb), 0.3);
  background: transparent;
  color: var(--warning);
  font-size: 7px;
}

.proof-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.proof-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    repeating-linear-gradient(0deg, rgba(var(--accent-rgb), 0.045) 0 1px, transparent 1px 5px),
    rgba(var(--night-rgb), 0.88);
  backdrop-filter: blur(12px);
}

.proof-dialog {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  padding: clamp(24px, 4vw, 48px);
  overflow: auto;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent 35%),
    #050a0e;
  box-shadow:
    0 0 0 1px #000,
    0 0 100px rgba(var(--accent-rgb), 0.17),
    inset 0 0 60px rgba(0, 0, 0, 0.6);
  animation: modal-in 500ms var(--ease-cut) both;
}

.proof-dialog__close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: transparent;
  color: var(--paper);
  font-size: 21px;
}

.proof-dialog h2 {
  max-width: 620px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.proof-dialog h2 em {
  color: var(--accent);
}

.proof-dialog > p:not(.eyebrow) {
  max-width: 580px;
  margin: 18px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.proof-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  list-style: none;
}

.proof-steps li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
}

.proof-steps li > span {
  color: var(--accent);
  font-size: 9px;
}

.proof-steps strong,
.proof-steps small {
  display: block;
}

.proof-steps strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
}

.proof-steps small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
}

.proof-steps button,
.proof-steps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--paper);
  font-size: 7px;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.proof-steps button:hover,
.proof-steps a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.proof-form {
  margin-top: 22px;
}

.proof-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.proof-form__control {
  display: flex;
  min-height: 52px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--night-rgb), 0.66);
}

.proof-form input {
  padding: 0 14px;
}

.proof-form .primary-button {
  border-width: 0 0 0 1px;
}

.proof-form__error,
.proof-form__status {
  margin: 8px 0 0;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.proof-form__error {
  min-height: 12px;
  color: var(--warning);
}

.proof-form__status {
  color: var(--accent);
}

.cursor-probe {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  display: none;
  width: 32px;
  height: 32px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, left, top;
}

.has-fine-pointer,
.has-fine-pointer *,
.has-fine-pointer *::before,
.has-fine-pointer *::after {
  cursor: none !important;
}

.has-fine-pointer .cursor-probe {
  display: block;
}

.cursor-probe__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(var(--accent-rgb), 0.42),
    inset 0 0 8px rgba(var(--accent-rgb), 0.23);
  transition: inset 160ms ease, border-radius 160ms ease, transform 160ms ease;
}

.cursor-probe__ring::before,
.cursor-probe__ring::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  content: "";
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

.cursor-probe__ring::before {
  width: 46px;
  height: 1px;
}

.cursor-probe__ring::after {
  width: 1px;
  height: 46px;
}

.cursor-probe__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 9px var(--paper);
  transform: translate(-50%, -50%);
}

.cursor-probe__code {
  position: absolute;
  top: 35px;
  left: 20px;
  width: 60px;
  color: var(--accent);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.cursor-probe.is-active .cursor-probe__ring {
  inset: -9px;
  border-radius: 6px;
  transform: rotate(45deg);
}

/* Per-archetype signal mutations */
body[data-archetype="pit-runner"] {
  --accent: #35c7ff;
  --accent-rgb: 53, 199, 255;
  --accent-2: #eaf7ff;
  --accent-2-rgb: 234, 247, 255;
  --warning: #35c7ff;
  --warning-rgb: 53, 199, 255;
  --deep: #07324b;
  --deep-rgb: 7, 50, 75;
  --hero-filter: saturate(1.06) contrast(1.14) brightness(1.02) drop-shadow(0 0 38px rgba(53, 199, 255, 0.38));
}

body[data-archetype="liquidation-royal"] {
  --accent: #54f3e9;
  --accent-rgb: 84, 243, 233;
  --accent-2: #ddfeff;
  --accent-2-rgb: 221, 254, 255;
  --warning: #54f3e9;
  --warning-rgb: 84, 243, 233;
  --deep: #0b4c58;
  --deep-rgb: 11, 76, 88;
  --hero-filter: saturate(1.08) contrast(1.14) brightness(1.02) drop-shadow(0 0 42px rgba(84, 243, 233, 0.42));
}

body[data-archetype="night-whale"] {
  --accent: #e5d8a6;
  --accent-rgb: 229, 216, 166;
  --accent-2: #c6b48d;
  --accent-2-rgb: 198, 180, 141;
  --warning: #c6b48d;
  --warning-rgb: 198, 180, 141;
  --deep: #373529;
  --deep-rgb: 55, 53, 41;
  --hero-filter: saturate(0.92) contrast(1.08) brightness(1.04) drop-shadow(0 0 50px rgba(229, 216, 166, 0.31));
}

body[data-archetype="mempool-thief"] {
  --accent: #eaf7ff;
  --accent-rgb: 234, 247, 255;
  --accent-2: #a98cff;
  --accent-2-rgb: 169, 140, 255;
  --warning: #a98cff;
  --warning-rgb: 169, 140, 255;
  --deep: #29233f;
  --deep-rgb: 41, 35, 63;
  --hero-filter: saturate(0.82) contrast(1.14) brightness(1.02) drop-shadow(0 0 38px rgba(234, 247, 255, 0.36));
}

body[data-archetype="points-farmer"] {
  --accent: #82b9d8;
  --accent-rgb: 130, 185, 216;
  --accent-2: #b7a6ff;
  --accent-2-rgb: 183, 166, 255;
  --warning: #b7a6ff;
  --warning-rgb: 183, 166, 255;
  --deep: #173149;
  --deep-rgb: 23, 49, 73;
  --hero-filter: saturate(1.05) contrast(1.12) brightness(1.02) drop-shadow(0 0 44px rgba(130, 185, 216, 0.32));
}

body[data-archetype="meme-closer"] {
  --accent: #33e783;
  --accent-rgb: 51, 231, 131;
  --accent-2: #ff5c8e;
  --accent-2-rgb: 255, 92, 142;
  --warning: #ff5c8e;
  --warning-rgb: 255, 92, 142;
  --deep: #0a4b32;
  --deep-rgb: 10, 75, 50;
  --hero-filter: saturate(1.12) contrast(1.12) brightness(1.02) drop-shadow(0 0 44px rgba(51, 231, 131, 0.42));
}

body[data-archetype="tilt-dealer"] {
  --accent: #a9f1ef;
  --accent-rgb: 169, 241, 239;
  --accent-2: #ff8ccf;
  --accent-2-rgb: 255, 140, 207;
  --warning: #ff8ccf;
  --warning-rgb: 255, 140, 207;
  --deep: #2b5265;
  --deep-rgb: 43, 82, 101;
  --hero-filter: saturate(1.05) contrast(1.1) brightness(1.04) drop-shadow(0 0 48px rgba(169, 241, 239, 0.42));
}

body[data-archetype="house-ghost"] {
  --accent: #eaf7ff;
  --accent-rgb: 234, 247, 255;
  --accent-2: #7d99a3;
  --accent-2-rgb: 125, 153, 163;
  --warning: #7d99a3;
  --warning-rgb: 125, 153, 163;
  --deep: #18262b;
  --deep-rgb: 24, 38, 43;
  --hero-filter: saturate(0.38) contrast(1.18) brightness(1) drop-shadow(0 0 56px rgba(234, 247, 255, 0.45));
}

body[data-archetype="pit-runner"] .ambient__scanlines {
  animation: scanline-rush 520ms linear infinite;
}

body[data-archetype="liquidation-royal"] .ambient__grid {
  transform: perspective(700px) rotateZ(-1.5deg) scale(1.05);
}

body[data-archetype="night-whale"] .ambient {
  animation: whale-breathe 6s ease-in-out infinite;
}

body[data-archetype="mempool-thief"] .ambient__binary {
  opacity: 1;
  animation: packet-flicker 1.3s steps(3) infinite;
}

body[data-archetype="points-farmer"] .ambient__grid {
  background-size: 28px 28px;
}

body[data-archetype="meme-closer"] h1,
body[data-archetype="meme-closer"] h2 {
  text-shadow: -4px 0 rgba(58, 203, 255, 0.35), 4px 0 rgba(255, 59, 72, 0.25);
}

body[data-archetype="tilt-dealer"] .ambient__grid {
  animation: tilt-grid 1.5s steps(3) infinite;
}

body[data-archetype="house-ghost"] .ambient__binary {
  animation-duration: 28s;
  opacity: 0.38;
}

@keyframes binary-drift {
  from { transform: translateY(-35%); }
  to { transform: translateY(35%); }
}

@keyframes receipt-float {
  from { transform: translate3d(0, -10px, 0) rotate(var(--rotate, 0deg)); }
  to { transform: translate3d(var(--drift, 25px), 35px, 60px) rotate(calc(var(--rotate, 0deg) + 12deg)); }
}

@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-1px, 2px); }
  75% { transform: translate(1px, 1px); }
  100% { transform: translate(-2px, -1px); }
}

@keyframes signal-flash {
  0% { opacity: 0; }
  10% { opacity: 0.86; }
  16% { opacity: 0.04; }
  31% { opacity: 0.46; }
  43% { opacity: 0; }
  68% { opacity: 0.18; }
  100% { opacity: 0; }
}

@keyframes live-pulse {
  0%, 38% { opacity: 1; }
  39%, 100% { opacity: 0.22; }
}

@keyframes scope-dash {
  to { stroke-dashoffset: -30; }
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

@keyframes hero-echo-one {
  0%, 86%, 100% { opacity: 0.08; transform: translateX(-18px); }
  89% { opacity: 0.28; transform: translateX(-30px); }
  93% { opacity: 0.05; transform: translateX(-5px); }
}

@keyframes hero-echo-two {
  0%, 79%, 100% { opacity: 0.06; transform: translateX(18px); }
  83% { opacity: 0.23; transform: translateX(35px); }
  89% { opacity: 0.04; transform: translateX(8px); }
}

@keyframes hero-scan {
  from { transform: translateY(-20%); }
  to { transform: translateY(760%); }
}

@keyframes reveal-panel-in {
  0% { opacity: 0; filter: blur(24px); transform: scale(1.08); }
  38% { opacity: 1; filter: blur(0); }
  52% { transform: translateX(-8px) scale(1); }
  58% { transform: translateX(5px) scale(1); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}

@keyframes modal-in {
  from { opacity: 0; filter: blur(12px); transform: translateY(20px) scale(0.97); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

@keyframes scanline-rush {
  to { transform: translateY(12px); }
}

@keyframes whale-breathe {
  0%, 100% { filter: brightness(0.82); }
  50% { filter: brightness(1.08); }
}

@keyframes packet-flicker {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(8px); }
  66% { transform: translateX(-5px); }
}

@keyframes tilt-grid {
  0%, 100% { transform: perspective(700px) rotateZ(0) scale(1.03); }
  35% { transform: perspective(700px) rotateZ(0.8deg) scale(1.05); }
  70% { transform: perspective(700px) rotateZ(-0.55deg) scale(1.02); }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar__telemetry {
    display: none;
  }

  .wheel-layout {
    grid-template-columns: minmax(260px, 0.75fr) minmax(460px, 1.25fr);
    gap: 24px;
  }

  .wheel-shell {
    min-width: 450px;
  }

  .wheel-label {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--index) * 45deg))
      translateY(-157px)
      rotate(calc(var(--index) * -45deg));
  }

  .entry-layout {
    grid-template-columns: 300px 1fr;
  }

  .identity-panel {
    min-height: 680px;
  }

  .identity-panel__hero {
    height: 390px;
  }

  .task-card {
    grid-template-columns: 38px 1fr;
  }

  .task-card__actions {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .topbar {
    padding: 0 16px;
  }

  .brand__name {
    font-size: 12px;
  }

  .live-indicator {
    display: none;
  }

  .screen {
    padding: calc(var(--header-height) + 28px) 18px 64px;
  }

  .wheel-layout {
    display: block;
    min-height: auto;
  }

  .wheel-copy {
    max-width: 680px;
    margin: 0 auto 25px;
    text-align: center;
  }

  .wheel-copy h1,
  .wheel-copy__lede,
  .signal-meter,
  .system-readout {
    margin-right: auto;
    margin-left: auto;
  }

  .wheel-copy h1 {
    font-size: clamp(46px, 10vw, 75px);
  }

  .wheel-station {
    min-height: 570px;
  }

  .wheel-shell {
    width: min(78vw, 520px);
    min-width: 420px;
  }

  .reveal-panel {
    position: relative;
    grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1.3fr);
    gap: 25px;
  }

  .wheel-layout.is-revealed .wheel-copy,
  .wheel-layout.is-revealed .wheel-station {
    position: absolute;
    inset: 0;
  }

  .reveal-panel__image {
    height: 520px;
  }

  .entry-layout {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto auto auto 1fr;
    align-items: center;
    min-height: 320px;
  }

  .identity-panel .eyebrow {
    grid-column: 1 / -1;
  }

  .identity-panel__hero {
    grid-row: 2 / 6;
    width: 250px;
    height: 250px;
    margin: -10px 10px -10px 0;
  }

  .identity-panel__code,
  .identity-panel h2,
  .identity-panel > p,
  .identity-panel__seal {
    grid-column: 2;
  }

  .identity-panel__seal {
    margin-top: 22px;
  }

  .card-layout {
    grid-template-columns: 1fr;
  }

  .card-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
  }

  .card-copy > p,
  .card-copy__note {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .card-actions {
    justify-content: center;
  }

  .canvas-frame {
    width: min(78vw, 660px);
  }
}

@media (max-width: 680px) {
  .topbar__actions {
    gap: 7px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    margin-right: 9px;
    font-size: 8px;
  }

  .brand__name {
    max-width: 145px;
    font-size: 10px;
    line-height: 1.1;
  }

  .icon-button {
    min-width: 58px;
    padding: 7px;
  }

  .boot-terminal {
    padding: 29px 22px;
  }

  .boot-terminal h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .boot-terminal__scope {
    right: 0;
    width: 65%;
    opacity: 0.25;
  }

  .boot-terminal__progress {
    width: 100%;
    margin-top: 32px;
  }

  .wheel-copy {
    margin-bottom: 10px;
  }

  .wheel-copy h1 {
    font-size: clamp(42px, 13vw, 66px);
  }

  .wheel-copy__lede {
    margin-top: 18px;
    font-size: 11px;
    line-height: 1.6;
  }

  .system-readout {
    display: none;
  }

  .wheel-station {
    min-height: 460px;
  }

  .wheel-shell {
    width: min(92vw, 430px);
    min-width: 0;
  }

  .wheel-label {
    width: 82px;
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--index) * 45deg))
      translateY(-31vw)
      rotate(calc(var(--index) * -45deg));
  }

  .wheel-label b {
    font-size: clamp(6px, 2vw, 9px);
  }

  .tune-button {
    width: 108px;
  }

  .tune-button__label {
    font-size: 10px;
  }

  .reveal-panel {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 10px;
  }

  .reveal-panel__image {
    height: 330px;
  }

  .hero-signal--large {
    width: min(80vw, 370px);
  }

  .reveal-panel__copy {
    text-align: center;
  }

  .reveal-panel h2 {
    font-size: clamp(48px, 16vw, 73px);
  }

  .reveal-panel__personality {
    margin: 14px auto;
    font-size: 11px;
  }

  .trait-grid {
    text-align: left;
  }

  .trait-grid div {
    min-height: 78px;
    padding: 10px;
  }

  .trait-grid strong {
    font-size: 8px;
  }

  .primary-button--wide {
    margin: 0 auto;
  }

  .screen--entry {
    align-items: start;
  }

  .identity-panel {
    display: block;
    min-height: 520px;
    padding: 20px;
    text-align: center;
  }

  .identity-panel__hero {
    width: 100%;
    height: 300px;
    margin: -5px 0 -15px;
  }

  .identity-panel__code {
    margin: 0 auto;
  }

  .identity-panel h2 {
    font-size: 43px;
  }

  .identity-panel > p:not(.eyebrow) {
    margin: 0 auto;
  }

  .identity-panel__seal {
    justify-content: center;
  }

  .entry-form {
    padding: 20px 14px;
  }

  .entry-form__header {
    display: block;
  }

  .entry-form h1 {
    font-size: 50px;
  }

  .entry-form__progress {
    width: 100%;
    margin-top: 17px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .task-header {
    align-items: flex-start;
    gap: 12px;
  }

  .task-header small {
    max-width: 150px;
    text-align: right;
  }

  .task-card,
  .task-card--comment {
    grid-template-columns: 38px 1fr;
    min-height: 0;
    padding: 12px 10px;
  }

  .task-card__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .task-card__actions button {
    flex: 1;
  }

  .task-card blockquote {
    font-size: 11px;
  }

  .submit-strip {
    display: block;
  }

  .submit-strip .primary-button {
    width: 100%;
    margin-top: 14px;
  }

  .card-copy h1 {
    font-size: 56px;
  }

  .card-meta {
    grid-template-columns: 1fr;
  }

  .card-meta div {
    display: flex;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
  }

  .card-meta div:last-child {
    border-bottom: 0;
  }

  .card-meta dt {
    margin: 0;
  }

  .card-actions {
    display: grid;
  }

  .canvas-frame {
    width: 100%;
  }

  .footer {
    display: grid;
    gap: 5px;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
  }

  .footer span:nth-child(2) {
    display: none;
  }

  .proof-dialog {
    padding: 28px 17px;
  }

  .proof-dialog h2 {
    font-size: 48px;
  }

  .proof-steps li {
    grid-template-columns: 28px 1fr;
    padding: 11px 0;
  }

  .proof-steps li > button,
  .proof-steps li > a {
    grid-column: 2;
    width: max-content;
  }

  .proof-form__control {
    display: block;
    border: 0;
    background: transparent;
  }

  .proof-form input {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    background: rgba(var(--night-rgb), 0.66);
  }

  .proof-form .primary-button {
    width: 100%;
    margin-top: 9px;
    border: 1px solid var(--paper);
  }
}

@media (max-width: 430px) {
  .wheel-label {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--index) * 45deg))
      translateY(-29.5vw)
      rotate(calc(var(--index) * -45deg));
  }

  .wheel-label b {
    max-width: 65px;
  }

  .wheel-label small {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-probe {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .ambient__noise,
  .ambient__binary,
  .hero-signal__echo,
  .hero-signal__scan {
    display: none;
  }
}
