:root {
  color-scheme: dark;
  --ink: #090b17;
  --canvas: #11132a;
  --panel: #191d3a;
  --primary: #7c5cff;
  --cyan: #59e3ff;
  --pink: #ff5ba7;
  --yellow: #ffe66d;
  --text: #f7f7ff;
  --muted: #a9b0d0;
  --line: #343a68;
  --display: "Arial Black", Impact, sans-serif;
  --body: "Trebuchet MS", Arial, sans-serif;
  --mono: "Courier New", monospace;
  scrollbar-color: var(--line) var(--ink);
  scrollbar-width: thin;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--ink); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 32%, rgba(124, 92, 255, .18), transparent 30rem),
    radial-gradient(circle at 15% 75%, rgba(255, 91, 167, .08), transparent 28rem),
    radial-gradient(circle at 85% 72%, rgba(89, 227, 255, .07), transparent 25rem),
    var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(89,227,255,.65) 0 1px, transparent 1.5px);
  background-position: 0 0, 27px 31px;
  background-size: 67px 67px, 97px 97px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--ink); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.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;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: clamp(1.2rem, 3vw, 2.75rem);
  min-height: 4.25rem;
  padding-inline: max(3vw, calc((100vw - 60rem) / 2));
  border-bottom: 1px solid rgba(89, 227, 255, .16);
  background: rgba(9, 11, 23, .7);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  font: 900 .9rem/1 var(--mono);
  letter-spacing: .12em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 1.9rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--yellow);
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(89, 227, 255, .3);
}

.catalog {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--muted);
  font: 700 .68rem/1 var(--mono);
  letter-spacing: .11em;
}

.catalog span {
  width: .45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.site-nav { display: flex; align-items: center; justify-self: end; gap: clamp(.75rem, 2vw, 1.5rem); margin: 0; }
.site-nav a { color: var(--muted); font: 700 .62rem/1 var(--mono); letter-spacing: .12em; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav a:hover { transform: translateY(-1px); }
.favorites-link { display: grid; width: 2rem; height: 2rem; place-items: center; color: var(--pink); font: 700 1.18rem/.7 var(--body); letter-spacing: 0; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.favorites-link:hover { color: var(--yellow); transform: translateY(-1px); }

.page-main { width: min(90vw, 60rem); margin: 0 auto; padding: clamp(4.5rem, 10vh, 7rem) 0 clamp(5rem, 12vh, 9rem); }
.page-intro { max-width: 47rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-intro h1 { max-width: 15ch; margin: .65rem 0 .8rem; font: 900 clamp(2.6rem, 6vw, 5rem)/.92 var(--display); letter-spacing: -.06em; }
.page-intro h1 em { color: var(--pink); font-style: normal; text-shadow: 3px 3px 0 rgba(124, 92, 255, .4); }
.page-intro .lede { margin: 0; text-align: left; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.section-heading h2, .submit-copy h2 { margin: .35rem 0 0; font: 900 clamp(1.45rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -.045em; }
.text-link, .text-button { display: inline-flex; align-items: center; width: max-content; padding: .15rem 0; color: var(--cyan); background: transparent; border: 0; cursor: pointer; font: 700 .68rem/1.4 var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color .18s ease, transform .18s ease; }
.text-link:hover, .text-button:hover { color: var(--yellow); transform: translateY(-1px); }
.muted-action { color: var(--muted); }
.page-status { min-height: 1.3em; margin: 1.5rem 0 0; color: var(--muted); font: .68rem/1.4 var(--mono); text-align: center; }

.destination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.destination-card:first-child { grid-column: 1 / -1; }
.destination-card-inner { display: grid; gap: .65rem; min-height: 12rem; padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(145deg, rgba(25, 29, 58, .92), rgba(12, 15, 34, .92)); border: 1px solid rgba(89, 227, 255, .15); border-radius: 1rem; box-shadow: 0 .9rem 2.2rem rgba(0, 0, 0, .15); }
.destination-card:first-child .destination-card-inner { min-height: 15rem; }
.destination-card h2 { margin: 0; font: 900 clamp(1.35rem, 2.8vw, 2.25rem)/.98 var(--display); letter-spacing: -.04em; }
.destination-card p:not(.eyebrow) { max-width: 38rem; margin: 0; color: var(--muted); line-height: 1.45; }
.card-action { margin-top: auto; }

.destination-launcher { display: grid; justify-items: center; gap: .4rem; margin: clamp(3rem, 7vw, 5rem) auto 0; padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid rgba(89, 227, 255, .12); }
.launcher-aperture { width: min(72vw, 20rem); }
.destination-launcher[data-launch-state="searching"] .ring-one { animation: spin .7s linear infinite; }
.destination-launcher[data-launch-state="searching"] .ring-two { animation: spin-reverse .9s linear infinite; }
.destination-launcher[data-launch-state="searching"] .ring-three { animation: pulse .55s ease-in-out infinite alternate; }
.destination-launcher[data-launch-state="revealed"] .ring-one { border-color: var(--yellow); border-left-color: transparent; box-shadow: 0 0 20px rgba(255, 230, 109, .36); }
.destination-launcher[data-launch-state="revealed"] .ring-three { border-color: var(--pink); border-top-color: transparent; }

.journey-card { padding: clamp(1.35rem, 4vw, 2.25rem); background: linear-gradient(145deg, rgba(25, 29, 58, .94), rgba(12, 15, 34, .9)); border: 1px solid rgba(89, 227, 255, .15); border-radius: 1rem; }
.journey-top { display: flex; align-items: start; justify-content: space-between; gap: 2rem; }
.journey-top h2 { margin: .4rem 0 0; font: 900 clamp(1.55rem, 4vw, 2.8rem)/.95 var(--display); letter-spacing: -.05em; }
.local-note { margin: 0; color: var(--muted); font: .62rem/1.4 var(--mono); text-align: right; }
.journey-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.4rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.journey-metrics div { display: grid; gap: .45rem; }
.journey-metrics span, .progress-label { color: var(--muted); font: 700 .6rem/1.25 var(--mono); letter-spacing: .08em; }
.journey-metrics strong { font: 900 clamp(1.1rem, 2.4vw, 1.65rem)/1 var(--display); }
.journey-progress { margin-top: 2rem; }
.progress-label { display: flex; justify-content: space-between; gap: 1rem; }
.progress-track { height: .55rem; margin-top: .55rem; overflow: hidden; border-radius: 999px; background: rgba(52, 58, 104, .6); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .55s ease; }
.recent-section, .favorites-section, .pending-section { margin-top: clamp(3.5rem, 8vw, 6rem); }
.recent-list, .favorites-list, .pending-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.recent-row, .favorite-row, .pending-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(52, 58, 104, .7); }
.recent-row { grid-template-columns: 3rem minmax(0, 1fr) auto; }
.favorite-row { grid-template-columns: minmax(0, 1fr) auto; }
.journey-favorite { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.journey-favorite-icon { display: block; width: 1.35rem; height: 1.35rem; }
.journey-favorite:hover { color: var(--yellow); }
.journey-favorite[aria-pressed="true"] { color: var(--pink); }
.history-copy { display: grid; gap: .25rem; min-width: 0; }
.history-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-copy small { color: var(--muted); line-height: 1.35; }
.row-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share-button { color: var(--cyan); }
.share-label-short { display: none; }
.share-button:hover { color: var(--yellow); }

.share-dialog {
  width: min(90vw, 28rem);
  padding: 0;
  border: 1px solid rgba(89, 227, 255, .34);
  border-radius: 1rem;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .44), 0 0 2.5rem rgba(124, 92, 255, .14);
}
.share-dialog::backdrop { background: rgba(4, 6, 18, .76); backdrop-filter: blur(5px); }
.share-dialog-panel { display: grid; gap: .85rem; padding: 1.4rem; }
.share-dialog-close { justify-self: end; }
.share-dialog h2 { margin: 0; font: 900 clamp(1.35rem, 4vw, 1.8rem)/1 var(--display); letter-spacing: -.04em; }
.share-dialog-copy { margin: -.2rem 0 .25rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.share-dialog-copy-button { min-height: 2.6rem; border: 1px solid rgba(255, 230, 109, .48); border-radius: 999px; color: var(--canvas); background: var(--yellow); cursor: pointer; font: 800 .72rem/1 var(--display); letter-spacing: .04em; }
.share-dialog-copy-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 .7rem 1.4rem rgba(255, 230, 109, .16); }
.share-dialog-copy-button:disabled { cursor: wait; opacity: .62; }
.share-platforms { display: flex; flex-wrap: wrap; gap: .55rem; }
.share-platform { display: inline-flex; min-height: 2.2rem; align-items: center; padding: .25rem .65rem; border: 1px solid rgba(89, 227, 255, .2); border-radius: 999px; color: var(--cyan); font: 700 .62rem/1 var(--mono); letter-spacing: .08em; text-decoration: none; }
.share-platform:hover { border-color: var(--yellow); color: var(--yellow); }
.favorites-empty { gap: .7rem; padding: 2rem 0; }

.submit-main .page-intro { max-width: 38rem; margin-inline: auto; text-align: center; }
.submit-main .page-intro .lede { text-align: center; }
.submit-layout { display: grid; grid-template-columns: minmax(0, 38rem); justify-content: center; align-items: start; }
.submit-note { max-width: 30rem; margin: .5rem 0 1.8rem; color: var(--muted); line-height: 1.55; }
.submit-panel { padding: clamp(1.35rem, 4vw, 2.25rem); background: linear-gradient(145deg, rgba(25, 29, 58, .94), rgba(12, 15, 34, .9)); border: 1px solid rgba(89, 227, 255, .15); border-radius: 1rem; }
.privacy-main .page-intro { max-width: 38rem; }
.privacy-card { max-width: 38rem; padding: clamp(1.35rem, 4vw, 2.25rem); background: linear-gradient(145deg, rgba(25, 29, 58, .94), rgba(12, 15, 34, .9)); border: 1px solid rgba(89, 227, 255, .15); border-radius: 1rem; }
.privacy-card h2 { margin: .4rem 0 1rem; font: 900 clamp(1.5rem, 3vw, 2.35rem)/1 var(--display); letter-spacing: -.045em; }
.privacy-card p:not(.eyebrow) { max-width: 34rem; color: var(--muted); line-height: 1.6; }
.privacy-card .text-link { margin-top: 1rem; }
.field { display: grid; gap: .48rem; margin-bottom: 1.2rem; }
.field label { color: var(--text); font: 700 .67rem/1 var(--mono); letter-spacing: .1em; }
.field label span { color: var(--pink); }
.field label small { color: var(--muted); font-size: .58rem; letter-spacing: .04em; }
.field input, .field textarea { width: 100%; padding: .9rem 1rem; color: var(--text); background: rgba(9, 11, 23, .72); border: 1px solid var(--line); border-radius: .65rem; outline: 0; font: .9rem/1.4 var(--body); transition: border-color .18s ease, box-shadow .18s ease; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(89, 227, 255, .12); }
.field-error { min-height: 1.2em; margin: 0; color: var(--pink); font: .66rem/1.2 var(--mono); }
.form-action { width: 100%; margin-top: .3rem; }
.form-status { min-height: 1.3em; margin: .8rem 0 0; color: var(--muted); font: .66rem/1.4 var(--mono); text-align: center; }
.submit-success { display: grid; gap: .8rem; text-align: center; }
.submit-success h2 { margin: 0; font: 900 clamp(1.6rem, 4vw, 2.6rem)/1 var(--display); }
.submit-success p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.5; }
.submit-success .text-button { margin: .5rem auto 0; }
.pending-row { grid-template-columns: 5rem minmax(0, 1fr); }
.pending-row .history-number { color: var(--yellow); font-size: .58rem; }

.hero {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  width: min(92vw, 60rem);
  min-height: calc(100svh - 4.25rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}

.intro {
  max-width: 46rem;
  text-align: center;
}

.eyebrow, .portal-phase {
  margin: 0;
  color: var(--cyan);
  font: 700 .67rem/1.4 var(--mono);
  letter-spacing: .14em;
}

.intro h1 {
  margin: .7rem 0 .8rem;
  font: 900 clamp(2.7rem, 4.2vw, 3.9rem)/.94 var(--display);
  letter-spacing: -.05em;
}

.intro h1 em {
  color: var(--pink);
  font-style: normal;
  text-shadow: 3px 3px 0 rgba(124, 92, 255, .42);
}

.lede {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(.96rem, 1.3vw, 1.08rem);
  line-height: 1.5;
}

.portal-machine {
  position: relative;
  width: min(100%, 32rem);
  padding: .35rem 0 0;
}

.machine-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(78vw, 21rem);
  margin: 0 auto .55rem;
  padding: 0 .1rem;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font: 700 .56rem/1 var(--mono);
  letter-spacing: .13em;
}

.machine-id { display: inline-flex; align-items: baseline; gap: .35rem; color: var(--text); }
.machine-id > span { color: var(--cyan); font-size: .5rem; letter-spacing: .16em; }
.signal-lights { display: flex; align-items: center; gap: .7rem; }
.signal-unit { display: inline-flex; align-items: center; gap: .28rem; color: color-mix(in srgb, var(--muted) 80%, transparent); font-size: .5rem; letter-spacing: .1em; }
.signal-unit i { width: .34rem; aspect-ratio: 1; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 transparent; }
.signal-unit[data-signal="mode"] i { background: var(--yellow); box-shadow: 0 0 7px rgba(255, 230, 109, .52); }
.signal-unit[data-signal="link"] i { background: var(--cyan); box-shadow: 0 0 7px rgba(89, 227, 255, .5); }
body[data-state="searching"] .signal-unit[data-signal="mode"] i { background: var(--pink); box-shadow: 0 0 8px rgba(255, 91, 167, .65); }
body[data-state="revealed"] .signal-unit[data-signal="mode"] i { background: var(--cyan); box-shadow: 0 0 8px rgba(89, 227, 255, .6); }

.portal-aperture {
  position: relative;
  display: grid;
  width: min(74vw, 19.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(89, 227, 255, .2);
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(89, 227, 255, .022) 5px 6px),
    radial-gradient(circle, rgba(124, 92, 255, .3), rgba(15, 18, 43, .82) 54%, #080a16 74%);
  box-shadow: inset 0 0 3rem rgba(89, 227, 255, .07), 0 0 2.6rem rgba(124, 92, 255, .12);
}

.portal-target {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: transparent;
  color: transparent;
  cursor: default;
}

.portal-target:not(:disabled) {
  cursor: pointer;
}

.portal-target:not(:disabled):hover {
  background: rgba(89, 227, 255, .045);
}

.portal-target:not(:disabled):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -8px;
}

.portal-aperture::before {
  content: "";
  position: absolute;
  inset: 13%;
  z-index: -2;
  border-radius: 50%;
  background: conic-gradient(from 45deg, transparent, var(--primary), transparent, var(--cyan), transparent, var(--pink), transparent);
  opacity: .22;
  filter: blur(24px);
  animation: drift 14s linear infinite;
}

.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-one { inset: 6%; border: 1px solid rgba(89, 227, 255, .4); border-left-color: transparent; }
.ring-two { inset: 23%; border: 1px dashed rgba(255, 230, 109, .42); }
.ring-three { inset: 38%; border: 1px solid rgba(255, 91, 167, .46); border-top-color: transparent; opacity: .7; }

.portal-core {
  position: absolute;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid rgba(89, 227, 255, .36);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 227, 255, .2), rgba(89, 227, 255, .02) 62%, transparent 64%);
  box-shadow: 0 0 1.4rem rgba(89, 227, 255, .14);
  pointer-events: none;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.portal-readout {
  display: grid;
  gap: .4rem;
  width: 68%;
  text-align: center;
  transform: translateY(-.1rem);
}

.portal-phase { opacity: .82; }

.portal-readout strong {
  font: 900 clamp(1.14rem, 1.65vw, 1.5rem)/1.04 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.portal-readout .portal-hint { color: var(--cyan); font: 700 .63rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.portal-caption {
  width: min(90%, 22rem);
  min-height: 1.45em;
  margin: 0 auto .9rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.portal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: min(78%, 20rem);
  min-height: 2.85rem;
  margin: 0 auto;
  padding: 0 1.1rem;
  border: 1px solid rgba(89, 227, 255, .28);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(89, 227, 255, .045);
  box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.18);
  cursor: pointer;
  font: 800 clamp(.72rem, .9vw, .82rem)/1 var(--display);
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.portal-action:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); box-shadow: 0 .85rem 1.9rem rgba(89, 227, 255, .12), 0 1rem 1.8rem rgba(0,0,0,.24); }
.portal-action:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 .35rem 1rem rgba(0,0,0,.22); }
.portal-action:disabled { cursor: default; opacity: .45; }
.portal-action span:last-child { position: absolute; right: 1.1rem; font-size: 1.2rem; }

.portal-status {
  min-height: 1.2em;
  margin: .72rem .5rem 0;
  color: color-mix(in srgb, var(--muted) 78%, transparent);
  font: .68rem/1.4 var(--mono);
  text-align: center;
}

.fallback { display: block; width: max-content; max-width: 100%; margin: .65rem auto 0; color: var(--cyan); font: 700 .72rem/1.4 var(--mono); }

body[data-state="searching"] .ring-one { animation: spin .7s linear infinite; }
body[data-state="searching"] .ring-two { animation: spin-reverse .9s linear infinite; }
body[data-state="searching"] .ring-three { animation: pulse .55s ease-in-out infinite alternate; }
body[data-state="revealed"] .ring-one { border-color: var(--yellow); border-left-color: transparent; box-shadow: 0 0 20px rgba(255, 230, 109, .36); }
body[data-state="revealed"] .ring-three { border-color: var(--pink); border-top-color: transparent; }
body[data-state="revealed"] .portal-readout { animation: reveal .42s cubic-bezier(.2,.8,.2,1) both; }
body[data-state="revealed"] .portal-core { transform: scale(1.18); border-color: var(--yellow); box-shadow: 0 0 1.8rem rgba(255, 230, 109, .24); }
body[data-state="revealed"] .portal-action { border-color: rgba(255, 230, 109, .46); color: var(--yellow); }

body[data-state="ready"] .ring-one { animation: spin 14s linear infinite; }
body[data-state="ready"] .ring-two { animation: spin-reverse 18s linear infinite; }
body[data-state="ready"] .ring-three { animation: pulse 2.8s ease-in-out infinite alternate; }

.session-deck {
  width: min(90vw, 60rem);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(89, 227, 255, .14);
}

.session-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.session-heading h2 {
  margin: .45rem 0 0;
  font: 900 clamp(1.65rem, 3vw, 2.7rem)/1 var(--display);
  letter-spacing: -.045em;
}
.session-intro { max-width: 30rem; margin: .7rem 0 .35rem; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.session-heading .text-link { margin-top: .1rem; }

.session {
  display: flex;
  gap: 2.2rem;
  margin: 0;
}

.session div { min-width: 6.5rem; }
.session dt { color: var(--muted); font: 700 .62rem/1 var(--mono); letter-spacing: .1em; }
.session dd { margin: .45rem 0 0; font: 900 1.25rem/1 var(--display); }

.history {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.history h3 { margin: 0; font: 900 1rem/1 var(--display); letter-spacing: -.02em; }
.privacy { margin: 0; color: var(--muted); font: .65rem/1.4 var(--mono); }
.history-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.history-empty { display: grid; gap: .4rem; padding: 1rem 0; color: var(--muted); }
.history-empty strong { color: var(--yellow); font: 700 .72rem/1 var(--mono); letter-spacing: .1em; }
.history-empty span { font-size: .84rem; }
.history-item { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .65rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid rgba(52, 58, 104, .7); }
.history-number { color: var(--pink); font: 700 .7rem/1.4 var(--mono); }
.history-copy { display: grid; gap: .2rem; }
.history-copy strong { font-size: .88rem; }
.history-copy small { color: var(--muted); line-height: 1.35; }
.favorite-title { width: max-content; max-width: 100%; color: var(--text); text-decoration: none; }
.favorite-title:hover { color: var(--yellow); }

.vote-actions {
  display: inline-flex;
  align-items: center;
  gap: .12rem;
  white-space: nowrap;
}
.vote-control {
  display: inline-flex;
  min-width: 3.15rem;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  padding: .18rem .34rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: .45rem;
  cursor: pointer;
  font: 700 .68rem/1 var(--mono);
  letter-spacing: .02em;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.vote-icon { display: inline-block; font-size: 1.22rem; line-height: .9; }
.vote-count { min-width: 1ch; color: currentColor; }
.vote-control[data-vote="up"] { color: #ff7180; }
.vote-control[data-vote="down"] { color: #79d99a; }
.vote-control[data-vote="up"]:hover:not(:disabled) { background: rgba(255, 113, 128, .12); transform: translateY(-1px); }
.vote-control[data-vote="down"]:hover:not(:disabled) { background: rgba(121, 217, 154, .12); transform: translateY(-1px); }
.vote-control[data-vote="up"][aria-pressed="true"] { background: rgba(255, 113, 128, .18); box-shadow: 0 0 .85rem rgba(255, 113, 128, .12); }
.vote-control[data-vote="down"][aria-pressed="true"] { background: rgba(121, 217, 154, .18); box-shadow: 0 0 .85rem rgba(121, 217, 154, .12); }
.vote-control:disabled { cursor: wait; opacity: .55; }

footer {
  display: grid;
  justify-items: center;
  gap: .7rem;
  padding: 1.35rem 3vw 1.5rem;
  border-top: 1px solid rgba(89, 227, 255, .12);
  color: var(--muted);
  font: 700 .62rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-align: center;
}

footer p { margin: 0; }
.footer-utility { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; width: min(90vw, 60rem); }
.footer-cta { grid-column: 2; display: flex; justify-content: center; }
.footer-cta-link {
  display: inline-flex;
  align-items: center;
  padding: .12rem 0 .2rem;
  color: var(--muted);
  border-bottom: 1px dotted rgba(89, 227, 255, .42);
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-cta-link:hover { color: var(--yellow); border-color: var(--yellow); transform: translateY(-1px); }
.footer-note { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.footer-links { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: .6rem; color: color-mix(in srgb, var(--muted) 80%, transparent); }
.footer-links a { color: inherit; text-decoration: none; transition: color .18s ease; }
.footer-links a:hover { color: var(--yellow); }

.discovery-page { display: grid; min-height: 100vh; place-items: center; padding: 2rem 1rem; }
.discovery-shell { width: min(92vw, 38rem); padding: clamp(2rem, 7vw, 4rem); border: 1px solid rgba(89, 227, 255, .18); border-radius: 1rem; background: rgba(25, 29, 58, .78); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .28); text-align: center; }
.discovery-shell h1 { margin: .75rem 0 1rem; font: 900 clamp(2.2rem, 7vw, 4.7rem)/.92 var(--display); letter-spacing: -.06em; }
.discovery-kicker { margin: 0; color: var(--pink); font: 700 .68rem/1.3 var(--mono); letter-spacing: .12em; }
.discovery-description { max-width: 30rem; margin: 0 auto; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.discovery-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2rem; }
.discovery-primary, .discovery-secondary { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: 999px; font: 800 .7rem/1 var(--display); letter-spacing: .04em; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease; }
.discovery-primary { color: var(--canvas); background: var(--yellow); box-shadow: 0 .7rem 1.5rem rgba(255, 230, 109, .13); }
.discovery-primary:hover { transform: translateY(-2px); box-shadow: 0 1rem 2rem rgba(255, 230, 109, .2); }
.discovery-secondary { color: var(--cyan); border: 1px solid rgba(89, 227, 255, .34); }
.discovery-secondary:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--yellow); }
.discovery-note { margin: 2.25rem 0 0; color: color-mix(in srgb, var(--muted) 74%, transparent); font: .65rem/1.4 var(--mono); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: scale(.9); filter: blur(7px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }

@media (max-width: 46rem) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 4rem; padding-inline: 1rem; column-gap: .9rem; }
  .wordmark > span:last-child { display: none; }
  .catalog { display: none; }
  .site-nav { gap: .8rem; }
  .site-nav a { font-size: .56rem; }
  .favorites-link { width: 1.8rem; height: 1.8rem; font-size: 1.05rem; }
  .footer-utility { grid-template-columns: 1fr; gap: .65rem; }
  .footer-cta, .footer-links { grid-column: auto; justify-self: center; }
  .hero { width: min(92vw, 31rem); min-height: calc(100svh - 4rem); gap: 1.2rem; padding: 2rem 0 2.75rem; }
  .intro h1 { margin-block: .55rem .6rem; font-size: clamp(2.2rem, 11vw, 3rem); }
  .lede { max-width: 29rem; font-size: .92rem; }
  .portal-machine { width: min(100%, 23rem); }
  .machine-topline { width: min(74vw, 16rem); }
  .portal-aperture { width: min(70vw, 16.5rem); }
  .portal-readout { width: 73%; gap: .38rem; }
  .portal-readout strong { font-size: clamp(1.1rem, 5.8vw, 1.4rem); }
  .portal-action { width: 78%; min-height: 2.8rem; }
  .page-main { width: min(90vw, 31rem); padding-top: 3.5rem; }
  .page-intro { margin-bottom: 2.75rem; }
  .page-intro h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-card:first-child { grid-column: auto; }
  .journey-top { flex-direction: column; gap: .8rem; }
  .local-note { text-align: left; }
  .journey-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .submit-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .submit-copy { position: static; }
  .section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .row-actions { gap: .7rem; }
  .history-item {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    align-items: start;
    row-gap: .6rem;
    padding-block: 1rem 1.1rem;
  }
  .history-item .history-copy strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .history-item .history-copy small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .history-item .row-actions { grid-column: 2; width: 100%; min-width: 0; align-items: center; gap: .55rem; }
  .history-item .row-actions .vote-actions { margin-left: auto; }
  .favorite-row { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .recent-row { position: relative; grid-template-columns: 2rem minmax(0, 1fr); gap: .7rem; padding-right: 2.65rem; }
  .recent-row .row-actions { grid-column: 2; }
  .recent-row .row-actions { width: 100%; min-width: 0; flex-wrap: nowrap; gap: .3rem; }
  .recent-row .row-actions .vote-actions { margin-left: auto; }
  .recent-row .journey-favorite { position: absolute; top: .8rem; right: 0; }
  .history-item .text-button, .recent-row .text-button { min-height: 2.25rem; }
  .share-label-long { display: none; }
  .share-label-short { display: inline; }
  .row-actions { justify-self: start; }
  .session-deck { width: min(90vw, 31rem); padding: 4rem 0; }
  .session-heading { align-items: start; flex-direction: column; gap: 1.5rem; }
  .session { width: 100%; justify-content: space-between; }
  .history-heading { align-items: start; flex-direction: column; }
  .history-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .portal-machine, .history, .session-deck { border-color: CanvasText; }
  .portal-action { border: 2px solid ButtonText; }
}
