*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zen-bg-default);
  color: var(--zen-text-primary);
  font-family: var(--zen-font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.icon {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tour-on-primary-bg);
  color: var(--zen-primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--zen-radius-md) 0;
  z-index: 40;
}

.skip-link:focus {
  left: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--zen-bg-default) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--zen-border-subtle);
}

.topbar__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  max-width: var(--tour-max-width);
  margin: 0 auto;
  padding: 0.6rem clamp(1rem, 3vw, 2rem) 0.4rem;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--zen-text-primary);
  text-decoration: none;
}

.topbar__brand:hover {
  color: var(--zen-primary);
}

.topbar__brand-arrow {
  width: 1rem;
  height: 1rem;
  display: grid;
  place-items: center;
  color: var(--zen-text-secondary);
  flex: 0 0 auto;
  transition: color var(--tour-transition), transform var(--tour-transition);
}

.topbar__brand-arrow .icon {
  width: 100%;
  height: 100%;
}

.topbar__brand:hover .topbar__brand-arrow {
  color: var(--zen-primary);
  transform: translateX(-2px);
}

.topbar__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.chip {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--zen-border-color);
  background: var(--zen-bg-paper);
  color: var(--zen-text-secondary);
}

.chip:hover {
  color: var(--zen-text-primary);
  border-color: var(--zen-primary);
}

.journey__phases {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}

.journey__phase {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.journey__phase-name {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zen-text-secondary);
  white-space: nowrap;
  transition: color var(--tour-transition);
}

.journey__phase.is-seen .journey__phase-name {
  color: var(--zen-text-secondary);
}

.journey__phase.is-active .journey__phase-name {
  color: var(--zen-primary);
  font-weight: 700;
}

.journey__dots {
  display: flex;
  gap: 0.3rem;
}

.journey__dot {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--zen-border-color);
  background: var(--zen-bg-paper);
  color: var(--zen-text-secondary);
  font-family: var(--zen-font-mono);
  font-size: 0.64rem;
  display: grid;
  place-items: center;
  transition:
    background var(--tour-transition),
    color var(--tour-transition),
    border-color var(--tour-transition),
    transform var(--tour-transition);
}

.journey__dot:hover {
  border-color: var(--zen-primary);
  color: var(--zen-primary);
}

.journey__dot.is-seen {
  background: color-mix(in srgb, var(--zen-primary) 16%, var(--zen-bg-paper));
  border-color: color-mix(in srgb, var(--zen-primary) 50%, transparent);
  color: var(--zen-primary);
}

.journey__dot.is-active {
  background: var(--tour-on-primary-bg);
  border-color: var(--tour-on-primary-bg);
  color: var(--zen-primary-foreground);
  transform: scale(1.18);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--zen-primary) 22%, transparent);
}

.journey__now {
  text-align: center;
  font-size: 0.8rem;
  color: var(--zen-text-secondary);
  padding: 0 1rem 0.5rem;
  min-height: 1.6rem;
}

.module-error,
.notice {
  margin: 1rem auto;
  max-width: 40rem;
  padding: 0.7rem 1rem;
  border-radius: var(--zen-radius-md);
  border: 1px solid var(--zen-warning);
  color: var(--zen-text-secondary);
  font-size: 0.85rem;
  text-align: center;
}

.hero {
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1rem, 3vw, 2rem) 2rem;
  display: grid;
  gap: 1.3rem;
  justify-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  max-width: 22ch;
}

.hero__text {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--zen-text-secondary);
  max-width: 48ch;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--zen-primary);
  font-weight: 700;
}

.hint {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zen-text-secondary);
}

.hero .hint {
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  max-width: 56rem;
  margin-top: 0.4rem;
}

.legend__item {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  padding: 1rem 0.9rem;
  border-radius: var(--zen-radius-xl);
  border: 1px solid var(--zen-border-subtle);
  background: var(--zen-bg-paper);
  --tone: var(--zen-text-secondary);
}

.legend__item--you {
  --tone: var(--tour-tone-you);
}

.legend__item--agent {
  --tone: var(--tour-tone-agent);
}

.legend__item--zensu {
  --tone: var(--tour-tone-zensu);
}

.legend__icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tone) 16%, transparent);
  color: var(--tone);
  margin-bottom: 0.25rem;
}

.legend__item b {
  font-size: 1rem;
}

.legend__item span:last-child {
  font-size: 0.88rem;
  color: var(--zen-text-secondary);
}

.overview {
  width: 100%;
  max-width: 66rem;
  display: grid;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.overview__title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zen-text-secondary);
  font-weight: 700;
}

.overview__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  text-align: left;
}

.overview__phase {
  padding: 0.9rem 1rem 1rem;
  border-radius: var(--zen-radius-lg);
  background: color-mix(in srgb, var(--zen-bg-muted) 65%, transparent);
  border: 1px solid var(--zen-border-subtle);
}

.overview__name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zen-primary);
  margin-bottom: 0.55rem;
}

.overview__list {
  display: grid;
  gap: 0.3rem;
}

.overview__link {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  color: var(--zen-text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.overview__link:hover .overview__station {
  color: var(--zen-primary);
  text-decoration: underline;
}

.overview__num {
  font-family: var(--zen-font-mono);
  font-size: 0.7rem;
  color: var(--zen-text-secondary);
}

.layout {
  max-width: var(--tour-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.passport {
  position: sticky;
  z-index: 20;
  top: var(--tour-sticky);
  background: var(--zen-bg-paper);
  border: 1.5px solid var(--zen-border-color);
  border-radius: var(--zen-radius-xl);
  padding: 0.7rem 0.9rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "ref name status"
    "stamps stamps stamps";
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.45rem;
  box-shadow: var(--zen-shadow-md);
  transition: border-color var(--tour-transition), opacity var(--tour-transition);
}

.passport[data-born="false"] {
  border-style: dashed;
}

.passport[data-born="false"] .passport__name,
.passport[data-born="false"] .passport__ref,
.passport[data-born="false"] .passport__row {
  opacity: 1;
  color: var(--zen-text-secondary);
}

.passport__kicker {
  grid-area: kicker;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zen-text-secondary);
  font-weight: 700;
  display: none;
}

.passport__ref {
  grid-area: ref;
  font-family: var(--zen-font-mono);
  font-size: 0.7rem;
  color: var(--zen-text-secondary);
}

.passport__name {
  grid-area: name;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passport__ghost {
  grid-area: ghost;
  display: none;
  font-size: 0.82rem;
  color: var(--zen-text-secondary);
  font-style: italic;
}

.passport[data-born="false"] .passport__ghost {
  display: block;
}

.passport__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.passport__row:nth-of-type(1) {
  grid-area: status;
}

.passport__row:nth-of-type(2) {
  display: none;
  grid-area: count;
}

.passport__label {
  display: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zen-text-secondary);
  font-weight: 700;
}

.passport__count {
  font-family: var(--zen-font-mono);
  font-size: 0.78rem;
  color: var(--zen-text-secondary);
}

.passport__stamps {
  grid-area: stamps;
  display: flex;
  gap: 0.3rem;
}

.pstamp {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.pstamp__mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--zen-border-color);
  background: var(--zen-bg-default);
  color: var(--zen-primary-foreground);
  display: grid;
  place-items: center;
  transition: background var(--tour-transition), border-color var(--tour-transition);
}

.pstamp__mark .icon {
  width: 70%;
  height: 70%;
  stroke-width: 2.6;
  opacity: 0;
}

.pstamp.is-collected .pstamp__mark {
  background: var(--zen-primary);
  border-color: var(--zen-primary);
}

.pstamp.is-collected .pstamp__mark .icon {
  opacity: 1;
}

.pstamp__label {
  display: none;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--zen-text-secondary);
}

.pstamp.is-collected .pstamp__label {
  color: var(--zen-text-primary);
}

.pstamp.is-new .pstamp__mark {
  animation: stamp-in 560ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  --tone: var(--tour-tone-muted);
  background: color-mix(in srgb, var(--tone) 16%, transparent);
  color: var(--tone);
  transition: background var(--tour-transition), color var(--tour-transition);
}

.pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--tone);
  flex: 0 0 auto;
}

.pill[data-status="in-progress"] {
  --tone: var(--tour-tone-accent);
}

.pill[data-status="testing"] {
  --tone: var(--tour-tone-warning);
}

.pill[data-status="released"] {
  --tone: var(--tour-tone-success);
}

.pill--big {
  font-size: 0.98rem;
  padding: 0.4rem 1rem;
}

.track {
  position: relative;
  padding: 1rem 0 2rem;
}

.track__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2.4rem;
  pointer-events: none;
}

.line {
  display: block;
  width: 100%;
  height: 100%;
}

.line__base,
.line__progress {
  fill: none;
  stroke-width: var(--tour-line-width);
  stroke-linecap: round;
}

.line__base {
  stroke: var(--zen-border-color);
}

.line__progress {
  stroke: var(--tour-tone-muted);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke 600ms ease;
}

.station {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 0.5rem 0 0.5rem 3.1rem;
  margin-bottom: clamp(2.5rem, 7vh, 4.5rem);
  scroll-margin-top: calc(var(--tour-sticky-total) + 0.75rem);
}

.station::before {
  content: "";
  position: absolute;
  left: calc(1.2rem - 0.65rem);
  top: 0.55rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--zen-bg-default);
  border: 3px solid var(--zen-border-color);
  transition: border-color var(--tour-transition), background var(--tour-transition), box-shadow var(--tour-transition);
}

.station.is-seen::before {
  border-color: var(--zen-primary);
}

.station.is-active::before {
  background: var(--zen-primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--zen-primary) 20%, transparent);
}

.station__head {
  display: grid;
  gap: 0.5rem;
  max-width: 62ch;
}

.station__where {
  font-family: var(--zen-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zen-text-secondary);
  transition: color var(--tour-transition);
}

.station.is-active .station__where {
  color: var(--zen-primary);
}

.station__title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.station__text {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--zen-text-secondary);
}

.actors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.actor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--zen-border-color);
  background: var(--zen-bg-paper);
  font-size: 0.84rem;
  --tone: var(--zen-text-disabled);
  opacity: 0.82;
  transition: opacity var(--tour-transition);
}

.actor.is-on {
  opacity: 1;
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
}

.actor--you {
  --tone: var(--tour-tone-you);
}

.actor--agent {
  --tone: var(--tour-tone-agent);
}

.actor--zensu {
  --tone: var(--tour-tone-zensu);
}

.actor__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tone) 16%, transparent);
  color: var(--tone);
  flex: 0 0 auto;
}

.actor__name {
  font-weight: 700;
}

.actor__verb {
  color: var(--zen-text-secondary);
}

.actor__verb:empty {
  display: none;
}

.station__stage {
  container-type: inline-size;
  border-radius: var(--zen-radius-xl);
  border: 1px solid var(--zen-border-subtle);
  background: var(--zen-bg-paper);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  opacity: 0.55;
  transform: translateY(8px);
  transition:
    opacity var(--tour-transition),
    transform var(--tour-transition),
    border-color var(--tour-transition),
    box-shadow var(--tour-transition);
}

.station.is-seen .station__stage {
  opacity: 0.85;
  transform: none;
}

.station.is-active .station__stage {
  opacity: 1;
  border-color: color-mix(in srgb, var(--zen-primary) 45%, transparent);
  box-shadow: 0 24px 60px -40px var(--zen-primary);
}

.station__fact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--zen-text-secondary);
  padding: 0.55rem 0.9rem;
  border-radius: var(--zen-radius-md);
  background: color-mix(in srgb, var(--zen-bg-muted) 60%, transparent);
  max-width: fit-content;
}

.station__fact-icon {
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  color: var(--zen-primary);
  flex: 0 0 auto;
}

.station__fact-icon .icon {
  width: 100%;
  height: 100%;
}

.scene {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
}

.flow--top {
  align-items: flex-start;
}

.stack {
  display: grid;
  gap: 0.5rem;
  justify-items: stretch;
}

.stack--tight {
  gap: 0.3rem;
}

.stack--cards {
  gap: 0.3rem;
}

.labelled {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  min-width: 0;
}

.node {
  position: relative;
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  text-align: center;
  min-width: 6.6rem;
  max-width: 10.5rem;
  padding: 0.75rem 0.8rem;
  border-radius: var(--zen-radius-lg);
  border: 1.5px solid var(--zen-border-color);
  background: var(--zen-bg-default);
  --tone: var(--zen-text-secondary);
}

.node--big {
  min-width: 8rem;
  padding: 1rem 1.1rem;
}

.node__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
}

.node--big .node__icon {
  width: 3.1rem;
  height: 3.1rem;
}

.node__label {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.node__sub {
  font-size: 0.78rem;
  color: var(--zen-text-secondary);
  line-height: 1.25;
}

.tone-primary {
  --tone: var(--tour-tone-zensu);
}

.tone-you {
  --tone: var(--tour-tone-you);
}

.tone-agent {
  --tone: var(--tour-tone-agent);
}

.tone-success {
  --tone: var(--tour-tone-success);
}

.tone-warning {
  --tone: var(--tour-tone-warning);
}

.tone-destructive {
  --tone: var(--tour-tone-destructive);
}

.node.tone-primary,
.node.tone-you,
.node.tone-agent,
.node.tone-success,
.node.tone-warning,
.node.tone-destructive {
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
}

.arrow {
  position: relative;
  flex: 0 0 auto;
  width: clamp(2.4rem, 6cqi, 4.4rem);
  height: 2.2rem;
}

.arrow--tall {
  height: 5.4rem;
}

.arrow__line {
  position: absolute;
  left: 0;
  right: 0.45rem;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--zen-border-color);
  transform-origin: left center;
}

.arrow__head {
  position: absolute;
  right: 0.12rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.3rem;
  border-top: 2px solid var(--zen-border-color);
  border-right: 2px solid var(--zen-border-color);
  transform: rotate(45deg);
}

.token {
  position: absolute;
  top: 50%;
  left: calc(100% - 0.95rem);
  width: 0.95rem;
  height: 0.95rem;
  margin-top: -0.475rem;
  border-radius: 999px;
  background: var(--tour-tone-zensu);
  color: var(--zen-primary-foreground);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(var(--ty, 0rem));
  --tx: 0rem;
  --ty: 0rem;
}

.token .icon {
  width: 70%;
  height: 70%;
  stroke-width: 2.2;
}

.token--note {
  background: var(--tour-tone-warning);
}

.token--card {
  width: 1.35rem;
  height: 1rem;
  margin-top: -0.5rem;
  border-radius: 3px;
  background: var(--zen-bg-paper);
  border: 1.5px solid var(--tour-tone-zensu);
}

.token--wide {
  width: auto;
  height: 1.5rem;
  margin-top: -0.75rem;
  left: calc(100% - 1.5rem);
  padding: 0 0.6rem 0 0.35rem;
  gap: 0.3rem;
  grid-auto-flow: column;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.token--wide .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.checklist {
  display: grid;
  gap: 0.35rem;
  min-width: 12rem;
  max-width: 22rem;
  flex: 1 1 auto;
}

.check {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.65rem;
  border-radius: var(--zen-radius-md);
  background: color-mix(in srgb, var(--zen-bg-muted) 60%, transparent);
  font-size: 0.9rem;
  font-weight: 500;
}

.checklist--compact .check {
  padding: 0.26rem 0.55rem;
  font-size: 0.84rem;
  gap: 0.45rem;
}

.check__mark {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tour-tone-success) 18%, transparent);
  color: var(--tour-tone-success);
}

.check__mark .icon {
  position: absolute;
  width: 68%;
  height: 68%;
  stroke-width: 2.6;
}

.check__ok {
  opacity: 1;
}

.check__no {
  opacity: 0;
}

.check__label {
  min-width: 0;
}

.check__meta {
  font-family: var(--zen-font-mono);
  font-size: 0.7rem;
  color: var(--zen-text-secondary);
}

.gauge {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: 8.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--zen-radius-lg);
  border: 1.5px solid var(--zen-border-color);
  background: var(--zen-bg-default);
  --tone: var(--tour-tone-destructive);
}

.gauge[data-tone="warning"] {
  --tone: var(--tour-tone-warning);
}

.gauge[data-tone="success"] {
  --tone: var(--tour-tone-success);
}

.gauge__value {
  font-family: var(--zen-font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tone);
  transition: color 300ms ease;
}

.gauge__of {
  font-size: 0.78rem;
  color: var(--zen-text-secondary);
}

.gauge__bar {
  position: relative;
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--zen-bg-muted);
  margin-top: 0.35rem;
}

.gauge__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: var(--tone);
  transition: background 300ms ease;
}

.gauge__mark {
  position: absolute;
  top: -0.25rem;
  bottom: -0.25rem;
  width: 2px;
  background: var(--zen-border-color);
}

.gauge__label {
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.stat {
  display: grid;
  gap: 0.1rem;
  justify-items: center;
  text-align: center;
  padding: 0.8rem 0.5rem;
  border-radius: var(--zen-radius-lg);
  background: color-mix(in srgb, var(--zen-bg-muted) 60%, transparent);
}

.stat b {
  font-family: var(--zen-font-mono);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--zen-primary);
}

.stat span {
  font-weight: 700;
  font-size: 0.9rem;
}

.stat small {
  font-size: 0.76rem;
  color: var(--zen-text-secondary);
}

.fcard {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  min-width: 11rem;
  padding: 0.8rem 1rem;
  border-radius: var(--zen-radius-lg);
  border: 1.5px solid color-mix(in srgb, var(--tour-tone-zensu) 60%, transparent);
  background: var(--zen-bg-default);
  box-shadow: var(--zen-shadow-md);
}

.fcard__ref {
  font-family: var(--zen-font-mono);
  font-size: 0.7rem;
  color: var(--zen-text-secondary);
}

.fcard__name {
  font-weight: 700;
  font-size: 1rem;
}

.attach {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 17rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--zen-border-color);
  background: var(--zen-bg-paper);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zen-text-primary);
}

.tag .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--zen-text-secondary);
}

.tag--ok {
  border-color: var(--tour-tone-success);
  color: var(--tour-tone-success);
}

.tag--ok .icon {
  color: var(--tour-tone-success);
}

.tag--no {
  border-color: var(--tour-tone-destructive);
  color: var(--tour-tone-destructive);
}

.tag--no .icon {
  color: var(--tour-tone-destructive);
}

.statusline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.statusline .pill {
  opacity: 0.55;
}

.statusline .pill.is-on {
  opacity: 1;
  outline: 2px solid var(--tone);
  outline-offset: 2px;
}

.statusline__sep {
  width: 1.1rem;
  height: 2px;
  background: var(--zen-border-color);
}

.verdicts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.crowd {
  display: grid;
  grid-template-columns: repeat(4, 1.95rem);
  gap: 0.35rem;
}

.avatar {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--zen-bg-muted);
  color: var(--zen-text-secondary);
  border: 1.5px solid transparent;
}

.avatar.is-cast {
  background: color-mix(in srgb, var(--tour-tone-agent) 18%, transparent);
  color: var(--tour-tone-agent);
  border-color: var(--tour-tone-agent);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--tour-tone-success);
  color: var(--tour-tone-success);
  background: var(--zen-bg-default);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.stamp .icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2;
}

.stamp--small {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
}

.caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--zen-text-secondary);
}

.caption--tight {
  font-size: 0.78rem;
}

.caption--muted {
  color: var(--zen-text-secondary);
}

.caption--strong {
  color: var(--tour-tone-success);
  font-weight: 700;
  font-size: 0.95rem;
}

.lockmark {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--tour-tone-success);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--zen-shadow-sm);
}

.lockmark .icon {
  position: absolute;
  width: 62%;
  height: 62%;
  stroke-width: 2.2;
}

.lockmark__closed {
  opacity: 0;
}

.lockmark__open {
  opacity: 1;
}

.log {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--zen-radius-md);
  border: 1px dashed var(--zen-border-color);
  font-size: 0.82rem;
  color: var(--zen-text-secondary);
}

.log .icon {
  width: 1rem;
  height: 1rem;
}

.log__tick {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--tour-tone-success);
}

.mini {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--zen-bg-muted) 75%, transparent);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  --tone: var(--tour-tone-agent);
}

.mini .icon {
  width: 1rem;
  height: 1rem;
  color: var(--tone);
}

.loopnote {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--zen-text-secondary);
}

.loopnote .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--tour-tone-warning);
}

.browser {
  position: relative;
  width: 11.5rem;
  height: 7.8rem;
  border-radius: var(--zen-radius-md);
  border: 1.5px solid var(--zen-border-color);
  background: var(--zen-bg-default);
  padding: 1.5rem 0.95rem 0.9rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.browser__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.95rem;
  background: var(--zen-bg-muted);
  border-radius: var(--zen-radius-md) var(--zen-radius-md) 0 0;
}

.browser__field {
  height: 1rem;
  border-radius: 4px;
  background: var(--zen-bg-muted);
  border: 1px solid var(--zen-border-color);
}

.browser__field--secret {
  background-image: radial-gradient(circle, var(--zen-text-disabled) 1.5px, transparent 2px);
  background-size: 8px 8px;
  background-position: 6px center;
  background-repeat: repeat-x;
  background-color: var(--zen-bg-muted);
}

.browser__button {
  height: 1.05rem;
  width: 4.2rem;
  border-radius: 4px;
  background: var(--tour-tone-zensu);
}

.cursor {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  left: 2.6rem;
  top: 5.6rem;
  color: var(--zen-text-primary);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.cursor .icon {
  width: 100%;
  height: 100%;
  fill: var(--zen-bg-default);
}

.gate {
  position: relative;
  width: 9rem;
  height: 6.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gate__post {
  width: 0.7rem;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--zen-border-color);
}

.gate__bar {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 2.7rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--tour-tone-success);
  transform: translateY(-2.2rem);
}

.gate__car {
  position: absolute;
  bottom: 0.4rem;
  left: -0.4rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--tour-tone-zensu);
  color: var(--zen-primary-foreground);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(8.4rem);
}

.gate__car .icon {
  width: 70%;
  height: 70%;
}

.returnline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--tour-tone-accent);
}

.returnline .icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
}

.returnline__track {
  height: 2px;
  width: min(40%, 14rem);
  background: linear-gradient(90deg, var(--tour-tone-accent), transparent);
  transform-origin: left center;
}

.minicard {
  display: block;
  position: relative;
  width: 3.6rem;
  height: 2.3rem;
  border-radius: 6px;
  border: 1.5px solid color-mix(in srgb, var(--tour-tone-zensu) 60%, transparent);
  background: var(--zen-bg-default);
}

.minicard::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  width: 55%;
  height: 3px;
  border-radius: 2px;
  background: var(--zen-border-color);
}

.minicard::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--tour-tone-muted);
}

.board {
  display: grid;
  gap: 0.45rem;
  min-width: 13rem;
  max-width: 16rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--zen-radius-lg);
  border: 1.5px solid var(--zen-border-color);
  background: var(--zen-bg-default);
}

.board__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zen-text-secondary);
}

.board__foot {
  font-size: 0.74rem;
  color: var(--zen-text-secondary);
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.6rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.svc__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  --tone: var(--tour-tone-success);
  color: var(--tone);
  white-space: nowrap;
}

.svc__status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--tone);
}

.svc--degraded .svc__status,
.svc__status--degraded {
  --tone: var(--tour-tone-warning);
}

.svc--down .svc__status,
.svc__status--down {
  --tone: var(--tour-tone-destructive);
}

.svc__bar {
  grid-column: 1 / -1;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--zen-bg-muted);
  overflow: hidden;
}

.svc__fill {
  display: block;
  height: 100%;
  width: var(--w, 100%);
  border-radius: 999px;
  background: var(--tour-tone-success);
  transform-origin: left center;
}

.svc--degraded .svc__fill {
  background: var(--tour-tone-warning);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--zen-border-subtle);
}

.history {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: var(--zen-text-secondary);
}

.history .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--tour-tone-zensu);
}

.history__label {
  font-weight: 600;
}

.spark {
  width: 9rem;
  height: 2.8rem;
  display: block;
}

.spark__line {
  fill: none;
  stroke: var(--tour-tone-zensu);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.ranges {
  display: flex;
  gap: 0.3rem;
}

.range {
  font-family: var(--zen-font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--zen-border-color);
  color: var(--zen-text-secondary);
}

.range.is-on {
  background: var(--tour-tone-zensu);
  border-color: var(--tour-tone-zensu);
  color: var(--zen-primary-foreground);
}

.constellation {
  width: 10rem;
  height: 7.5rem;
  display: block;
  overflow: visible;
}

.cedge {
  stroke: var(--zen-border-color);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.cnode {
  fill: var(--tour-tone-accent);
  transform-box: fill-box;
  transform-origin: center;
}

.cnode--primary {
  fill: var(--tour-tone-zensu);
}

.cnode--you {
  fill: var(--tour-tone-you);
}

.cnode--muted {
  fill: var(--zen-text-disabled);
}

.ask {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 13rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--tour-tone-you) 60%, transparent);
  background: var(--zen-bg-default);
  font-size: 0.86rem;
  font-weight: 600;
}

.ask .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--tour-tone-you);
  flex: 0 0 auto;
}

.answer {
  display: grid;
  gap: 0.3rem;
  min-width: 10.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--zen-radius-lg);
  border: 1.5px solid var(--tour-tone-success);
  background: var(--zen-bg-default);
}

.answer__title {
  font-weight: 700;
  font-size: 0.9rem;
}

.answer__src {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--zen-text-secondary);
}

.answer__src .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.reject {
  opacity: 0.45;
  transform: translateY(0.25rem);
}

.flipword {
  position: relative;
  display: grid;
  min-height: 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.flipword__before,
.flipword__after {
  grid-area: 1 / 1;
}

.flipword__before {
  color: var(--tour-tone-destructive);
  opacity: 0;
}

.flipword__after {
  color: var(--tour-tone-success);
  opacity: 1;
}

.flipword--plain {
  min-height: 0;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
}

.flipword--plain .flipword__before,
.flipword--plain .flipword__after {
  color: inherit;
}

.check--flip .flipword--plain .flipword__before {
  color: var(--zen-text-secondary);
}

.station.is-active .scene .pop {
  animation: s-pop 560ms cubic-bezier(0.2, 1.4, 0.4, 1) both var(--d, 0s);
}

.station.is-active .scene .rise {
  animation: s-rise 520ms ease-out both var(--d, 0s);
}

.station.is-active .scene .draw .arrow__line {
  animation: s-line 480ms ease-out both var(--d, 0s);
}

.station.is-active .scene .draw .arrow__head {
  animation: s-fade-in 300ms ease-out both calc(var(--d, 0s) + 0.3s);
}

.station.is-active .scene .token {
  animation: s-token 1100ms cubic-bezier(0.35, 0.8, 0.25, 1) both var(--d, 0s);
}

.station.is-active .scene .tag.travel {
  animation: s-tag 620ms cubic-bezier(0.2, 1.3, 0.4, 1) both var(--d, 0s);
}

.station.is-active .scene .stamp {
  animation: s-stamp 520ms cubic-bezier(0.2, 1.4, 0.4, 1) both var(--d, 0s);
}

.station.is-active .scene .check--ok .check__mark {
  animation: s-tick 420ms cubic-bezier(0.2, 1.4, 0.4, 1) both var(--f, 0s);
}

.station.is-active .scene .check--flip .check__mark {
  animation: s-mark-flip 360ms ease both var(--f, 0s);
}

.station.is-active .scene .check--flip .check__ok {
  animation: s-fade-in 360ms ease both var(--f, 0s);
}

.station.is-active .scene .check--flip .check__no {
  animation: s-fade-out 360ms ease both var(--f, 0s);
}

.station.is-active .scene .unlock {
  animation: s-unlock 400ms ease both var(--d, 0s);
}

.station.is-active .scene .unlock .lockmark__closed {
  animation: s-fade-out 400ms ease both var(--d, 0s);
}

.station.is-active .scene .unlock .lockmark__open {
  animation: s-fade-in 400ms ease both var(--d, 0s);
}

.station.is-active .scene .reject {
  animation: s-reject 1400ms ease both var(--d, 0s);
}

.station.is-active .scene .gate__bar.open {
  animation: s-gate 900ms cubic-bezier(0.3, 0.9, 0.3, 1) both var(--d, 0s);
}

.station.is-active .scene .flipword__before {
  animation: s-fade-out 360ms ease both var(--f, 0s);
}

.station.is-active .scene .flipword__after {
  animation: s-fade-in 360ms ease both var(--f, 0s);
}

.station.is-active .scene .gate__car.travel {
  animation: s-car 1400ms ease-in-out both var(--d, 0s);
}

.station.is-active .scene .cursor {
  animation: s-cursor 3.2s ease-in-out both 0.6s;
}

.station.is-active .scene .returnline.draw .returnline__track {
  animation: s-line 700ms ease-out both var(--d, 0s);
}

.station.is-active .scene .loopnote .icon {
  animation: s-spin 2.4s linear infinite;
}

.station.is-active .scene .statusline .pill.is-on {
  animation: s-pop 560ms cubic-bezier(0.2, 1.4, 0.4, 1) both 2.4s;
}

.station.is-active .scene .svc__fill.grow {
  animation: s-grow 700ms cubic-bezier(0.3, 0.9, 0.25, 1) both var(--d, 0s);
}

.station.is-active .scene .spark__line.draw {
  animation: s-dash 1100ms ease-out both var(--d, 0s);
}

.station.is-active .scene .cedge.draw {
  animation: s-dash 520ms ease-out both var(--d, 0s);
}

@keyframes s-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes s-dash {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes s-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes s-rise {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes s-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes s-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes s-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes s-token {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 0.95rem);
    opacity: 0;
  }
}

@keyframes s-token-v {
  0% {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 0.95rem);
    opacity: 0;
  }
}

@keyframes s-tag {
  from {
    opacity: 0;
    transform: translateY(-1.4rem) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes s-stamp {
  from {
    opacity: 0;
    transform: scale(1.9) rotate(-16deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-4deg);
  }
}

@keyframes s-tick {
  from {
    transform: scale(0.3);
    background: var(--zen-bg-muted);
  }
  to {
    transform: scale(1);
    background: color-mix(in srgb, var(--tour-tone-success) 18%, transparent);
  }
}

@keyframes s-mark-flip {
  from {
    background: color-mix(in srgb, var(--tour-tone-destructive) 18%, transparent);
    color: var(--tour-tone-destructive);
  }
  to {
    background: color-mix(in srgb, var(--tour-tone-success) 18%, transparent);
    color: var(--tour-tone-success);
  }
}

@keyframes s-unlock {
  from {
    background: var(--tour-tone-warning);
  }
  to {
    background: var(--tour-tone-success);
  }
}

@keyframes s-reject {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  55% {
    opacity: 1;
    transform: translateX(-0.35rem);
  }
  65% {
    transform: translateX(0.35rem);
  }
  75% {
    transform: translateX(-0.2rem);
  }
  100% {
    opacity: 0.45;
    transform: translateY(0.25rem);
  }
}

@keyframes s-gate {
  from {
    transform: translateY(0);
    background: var(--tour-tone-destructive);
  }
  to {
    transform: translateY(-2.2rem);
    background: var(--tour-tone-success);
  }
}

@keyframes s-car {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(8.4rem);
  }
}

@keyframes s-cursor {
  0% {
    left: 1.2rem;
    top: 1.6rem;
    transform: scale(1);
  }
  30% {
    left: 4rem;
    top: 2.1rem;
  }
  40% {
    transform: scale(0.85);
  }
  55% {
    left: 4rem;
    top: 3.6rem;
    transform: scale(1);
  }
  65% {
    transform: scale(0.85);
  }
  85% {
    left: 2.6rem;
    top: 5.6rem;
    transform: scale(1);
  }
  92% {
    transform: scale(0.8);
  }
  100% {
    left: 2.6rem;
    top: 5.6rem;
    transform: scale(1);
  }
}

@keyframes s-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stamp-in {
  from {
    transform: scale(1.8);
  }
  to {
    transform: scale(1);
  }
}

.outro {
  max-width: 50rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 7rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.outro h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 22ch;
}

.outro__text {
  font-size: 1.05rem;
  color: var(--zen-text-secondary);
  max-width: 48ch;
}

.player {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--zen-border-color);
  background: color-mix(in srgb, var(--zen-bg-paper) 92%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--zen-shadow-lg);
}

.player__btn {
  font-size: 0.8rem;
  min-width: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--zen-text-secondary);
}

.player__btn--play {
  background: var(--tour-on-primary-bg);
  color: var(--zen-primary-foreground);
  font-weight: 700;
  min-width: 4.4rem;
}

.player__btn:disabled,
.player__btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.player__status {
  font-family: var(--zen-font-mono);
  font-size: 0.72rem;
  color: var(--zen-text-secondary);
  min-width: 3.4rem;
  text-align: right;
}

:focus-visible {
  outline: 2px solid var(--zen-primary);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }

  .passport {
    top: calc(var(--tour-sticky) + 1rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "kicker"
      "ref"
      "name"
      "ghost"
      "status"
      "count"
      "stamps";
    row-gap: 0.55rem;
    padding: 1.1rem 1.15rem 1.2rem;
    box-shadow: none;
  }

  .passport__kicker {
    display: block;
  }

  .passport__name {
    font-size: 1.3rem;
    white-space: normal;
  }

  .passport__row:nth-of-type(2) {
    display: flex;
    margin-top: 0.3rem;
  }

  .passport__label {
    display: inline;
  }

  .passport__stamps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem 0.4rem;
    margin-top: 0.2rem;
  }

  .pstamp__mark {
    width: 1.5rem;
    height: 1.5rem;
  }

  .pstamp__label {
    display: block;
  }

  .track {
    padding-top: 0.25rem;
  }
}

@media (max-width: 1023px) {
  .layout {
    padding: 0 0.9rem;
  }

  .journey__phase-name {
    display: none;
  }

  .journey__dot {
    width: 0.85rem;
    height: 0.85rem;
    font-size: 0;
    position: relative;
  }

  .journey__dot::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
  }

  .journey__dot.is-active {
    transform: scale(1.3);
  }

  .journey__dot.is-active::after {
    transform: translate(-50%, -50%) scale(calc(1 / 1.3));
  }

  .journey__num {
    display: none;
  }

  .journey__phases {
    gap: 0.65rem;
  }

  .journey__dots {
    gap: 0.65rem;
  }

  .topbar__row {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "journey journey";
    justify-content: space-between;
    padding: 0.55rem 0.9rem 0.3rem;
    column-gap: 0.6rem;
    row-gap: 0.4rem;
  }

  .topbar__brand {
    grid-area: brand;
  }

  .topbar__actions {
    grid-area: actions;
  }

  .journey {
    grid-area: journey;
  }

  .passport {
    grid-template-areas:
      "ref name status"
      "stamps stamps stamps"
      "ghost ghost ghost";
  }

  .passport__ghost {
    font-size: 0.76rem;
  }

  .passport[data-born="true"] {
    row-gap: 0.45rem;
  }

  .journey__now {
    font-size: 0.76rem;
    padding-bottom: 0.4rem;
  }

  .track__rail {
    width: 1.9rem;
  }

  .station {
    padding-left: 2.4rem;
  }

  .station::before {
    left: calc(0.95rem - 0.55rem);
    width: 1.1rem;
    height: 1.1rem;
  }

  .legend {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }

  .legend__item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon name"
      "icon text";
    justify-items: start;
    text-align: left;
    column-gap: 0.8rem;
    row-gap: 0.1rem;
    padding: 0.75rem 0.9rem;
  }

  .legend__icon {
    grid-area: icon;
    margin: 0;
  }

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

@media (max-width: 560px) {
  .overview__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar__actions .chip {
    padding: 0.3rem 0.55rem;
    font-size: 0.68rem;
  }
}

@container (max-width: 640px) {
  .flow {
    flex-direction: column;
    gap: 0.35rem;
  }

  .flow--top {
    align-items: center;
  }

  .stack {
    grid-auto-flow: column;
    justify-content: center;
    flex-wrap: wrap;
  }

  .stack--tight {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stack--cards {
    display: flex;
  }

  .arrow {
    width: 2.2rem;
    height: clamp(2rem, 8cqi, 2.8rem);
  }

  .arrow--tall {
    height: 2.8rem;
  }

  .arrow__line {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0.45rem;
    width: 2px;
    height: auto;
    margin: 0 0 0 -1px;
    transform-origin: top center;
  }

  .arrow__head {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0.12rem;
    margin: 0 0 0 -0.3rem;
    transform: rotate(135deg);
  }

  .token {
    left: 50%;
    margin-left: -0.475rem;
    top: calc(100% - 0.95rem);
    margin-top: 0;
    transform: translateX(var(--tx, 0rem));
  }

  .token--card {
    margin-left: -0.675rem;
  }

  .token--wide {
    left: 50%;
    margin-left: -0.75rem;
    transform: translateX(calc(var(--tx, 0rem) - 40%));
  }

  .station.is-active .scene .token {
    animation-name: s-token-v;
  }

  .station.is-active .scene .draw .arrow__line {
    animation-name: s-line-v;
  }

  .node {
    min-width: 8rem;
    max-width: 100%;
  }

  .stats {
    gap: 0.4rem;
  }

  .stat {
    padding: 0.6rem 0.3rem;
  }

  .stat b {
    font-size: 1.5rem;
  }

  .stat span {
    font-size: 0.8rem;
  }

  .stat small {
    font-size: 0.7rem;
  }

  .checklist {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .crowd {
    grid-template-columns: repeat(6, 1.95rem);
  }

  .gate {
    width: 100%;
    max-width: 12rem;
  }

  .browser {
    width: 100%;
    max-width: 14rem;
  }
}

@keyframes s-line-v {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero .hint,
  .station.is-active .scene .pop,
  .station.is-active .scene .rise,
  .station.is-active .scene .draw .arrow__line,
  .station.is-active .scene .draw .arrow__head,
  .station.is-active .scene .token,
  .station.is-active .scene .tag.travel,
  .station.is-active .scene .stamp,
  .station.is-active .scene .check--ok .check__mark,
  .station.is-active .scene .check--flip .check__mark,
  .station.is-active .scene .check--flip .check__ok,
  .station.is-active .scene .check--flip .check__no,
  .station.is-active .scene .unlock,
  .station.is-active .scene .unlock .lockmark__closed,
  .station.is-active .scene .unlock .lockmark__open,
  .station.is-active .scene .reject,
  .station.is-active .scene .gate__bar.open,
  .station.is-active .scene .flipword__before,
  .station.is-active .scene .flipword__after,
  .station.is-active .scene .gate__car.travel,
  .station.is-active .scene .cursor,
  .station.is-active .scene .returnline.draw .returnline__track,
  .station.is-active .scene .loopnote .icon,
  .station.is-active .scene .statusline .pill.is-on,
  .station.is-active .scene .svc__fill.grow,
  .station.is-active .scene .spark__line.draw,
  .station.is-active .scene .cedge.draw,
  .pstamp.is-new .pstamp__mark {
    animation: none;
  }

  .station__stage {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .token,
  .gate__car {
    display: none;
  }
}

.sitefoot {
  padding: 2rem 1.25rem 5.5rem;
  border-top: 1px solid var(--zen-border-subtle);
  background: var(--zen-bg-default);
}

.sitefoot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.84rem;
}

.sitefoot__links a {
  color: var(--zen-text-secondary);
  text-decoration: none;
}

.sitefoot__links a:hover,
.sitefoot__links a:focus-visible {
  color: var(--zen-text-primary);
  text-decoration: underline;
}

.outro__note {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--zen-text-secondary);
}

.outro__cta {
  margin-top: 1.5rem;
}

.cta {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--tour-on-primary-bg);
  color: var(--zen-primary-foreground);
  font-weight: 600;
  text-decoration: none;
}

.player__note {
  flex-basis: 100%;
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--zen-text-secondary);
}

@media (max-width: 1023px), (prefers-reduced-motion: reduce) {
  .topbar,
  .player {
    backdrop-filter: none;
    background: var(--zen-bg-default);
  }
}

.drivers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: 15.5rem;
}

.drivers .mini {
  justify-content: flex-start;
  flex: 0 1 auto;
  white-space: nowrap;
}

.drivers .mini.is-picked {
  border-color: var(--zen-primary);
  color: var(--zen-primary);
  background: color-mix(in srgb, var(--zen-primary) 12%, var(--zen-bg-paper));
}

@container (max-width: 640px) {
  .drivers {
    max-width: 100%;
  }
}
