:root {
  --ink: #102033;
  --muted: #647287;
  --paper: #f3efe4;
  --white: #fffdf7;
  --navy: #07182f;
  --blue: #1769ff;
  --cyan: #25c6df;
  --yellow: #ffd447;
  --green: #2fbd7e;
  --orange: #ff8b42;
  --line: #d8d3c6;
  --shadow: 0 20px 55px #07182f1c;
}
.preview-banner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 3vw, 3rem);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: #503b00;
  background: #fff1a8;
  border-bottom: 1px solid #d8bf4d;
  font-size: 0.72rem;
}
.preview-banner b {
  flex: 0 0 auto;
  font-size: 0.6rem;
  letter-spacing: 0.11em;
}
.preview-banner span {
  max-width: 940px;
}
@media (max-width: 650px) {
  .preview-banner {
    display: block;
  }
  .preview-banner b {
    display: block;
    margin-bottom: 0.25rem;
  }
}
@media print {
  .preview-banner {
    display: none !important;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, #ffd44733, transparent 26rem), var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.48;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 99;
  padding: 0.7rem;
  background: white;
}
.skip:focus {
  top: 1rem;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  padding: 0 clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background: #07182ff7;
  border-bottom: 1px solid #29405c;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
}
.brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px 10px 10px 2px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 900;
}
.brand small {
  display: block;
  color: #9fb4cb;
  font-size: 0.52rem;
}
.top-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #bfd0e0;
  font-size: 0.7rem;
}
.top-progress b {
  color: var(--yellow);
}
.top-progress:after {
  content: "";
  width: 100px;
  height: 5px;
  margin-left: 0.3rem;
  border-radius: 9px;
  background: linear-gradient(
    90deg,
    var(--yellow) var(--progress, 0%),
    #344a63 0
  );
}
.print-button {
  padding: 0.45rem 0.8rem;
  border: 1px solid #5a718a;
  border-radius: 999px;
  color: white;
  background: transparent;
  cursor: pointer;
}
.shell {
  width: min(1500px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 245px 1fr;
}
.rail {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: auto;
  padding: 1.4rem 1rem 2rem;
  border-right: 1px solid var(--line);
  background: #f3efe4ee;
}
.rail-title {
  margin: 0.15rem 0.5rem 1rem;
}
.rail-title small,
.rail-title strong {
  display: block;
}
.rail-title small {
  color: var(--blue);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.rail-title strong {
  font-size: 1.25rem;
}
.rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 0.43rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #627084;
  font-size: 0.72rem;
  font-weight: 750;
}
.rail a span {
  color: #929cab;
  font-size: 0.58rem;
}
.rail a:hover {
  color: var(--blue);
  background: #e4ebf4;
}
.rail a.current {
  color: white;
  background: var(--navy);
}
.rail a.current span {
  color: var(--yellow);
}
.rail a.done:not(.current) {
  color: #177552;
}
.rail a.done span:after {
  content: " ✓";
}
main {
  min-width: 0;
  padding: 1.7rem clamp(0.8rem, 4vw, 4.2rem) 4rem;
}
.booklet-page {
  width: min(1030px, 100%);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}
.hero-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--blue);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.hero .eyebrow {
  color: var(--yellow);
}
h1 {
  margin: 0.4rem 0 1.2rem;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
h1 em {
  color: var(--yellow);
  font-style: normal;
}
.lead {
  max-width: 35rem;
  margin: 0;
  color: #d8e4f0;
  font-size: 1.17rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 1.6rem 0;
}
.stats div {
  padding: 0.65rem;
  border: 1px solid #2b435e;
  border-radius: 9px;
  background: #0d2541;
}
.stats b,
.stats span {
  display: block;
}
.stats b {
  color: var(--yellow);
  font-size: 1.2rem;
}
.stats span {
  color: #b6c8dc;
  font-size: 0.58rem;
}
.role {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--cyan);
  background: #0d2541;
  color: #b8c9d9;
  font-size: 0.72rem;
}
.role b {
  color: white;
}
.hero-art,
.visual {
  position: relative;
  overflow: hidden;
}
.hero-art {
  min-height: 500px;
  background: radial-gradient(circle, #133a66, var(--navy) 67%);
}
.orbit {
  position: absolute;
  border: 1px solid #ffffff26;
  border-radius: 50%;
}
.o1 {
  width: 470px;
  height: 470px;
  left: -30px;
  top: 90px;
}
.o2 {
  width: 300px;
  height: 300px;
  left: 50px;
  top: 170px;
  border-color: #ffd44740;
}
.spark {
  position: absolute;
  color: var(--yellow);
  font-style: normal;
  filter: drop-shadow(0 0 13px var(--yellow));
  animation: float 3.4s ease-in-out infinite;
}
.s1 {
  left: 13%;
  top: 14%;
  font-size: 2.5rem;
}
.s2 {
  right: 12%;
  top: 25%;
  font-size: 1.7rem;
}
.s3 {
  left: 17%;
  bottom: 12%;
  font-size: 1.6rem;
}
.s4 {
  right: 14%;
  bottom: 14%;
  font-size: 2.2rem;
}
.cardputer {
  position: relative;
  padding: 9px;
  border: 2px solid #596878;
  border-radius: 13px;
  background: #2b343e;
  box-shadow: 0 18px 35px #00000040;
}
.screen {
  min-height: 92px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 6px;
  background: #061729;
  color: white;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.screen small {
  color: var(--cyan);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}
.screen strong {
  line-height: 1.1;
}
.screen span {
  color: var(--yellow);
  font-size: 0.53rem;
}
.keys {
  height: 62px;
  margin-top: 7px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, #141b23 0 7px, #606c79 8px 9px),
    repeating-linear-gradient(0deg, transparent 0 9px, #677481 10px 11px);
}
.hero-device {
  position: absolute;
  width: min(350px, 78%);
  left: 8%;
  top: 34%;
  transform: rotate(-5deg);
}
.hero-device .screen {
  min-height: 135px;
}
.reader {
  position: absolute;
  width: 110px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 2px solid #687582;
  border-radius: 14px;
  background: #edf0f1;
  color: #173048;
  box-shadow: 0 15px 25px #0004;
}
.reader b {
  padding: 0.3rem 0.55rem;
  border: 2px solid #3aa3ae;
  border-radius: 50%;
  font-size: 0.7rem;
}
.reader i {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5d5d;
}
.hero-art > .reader {
  right: 9%;
  bottom: 14%;
  transform: rotate(7deg);
}
.story,
.project-overview {
  padding: 3rem;
}
.story h2,
.project-overview h2,
.manual-step h2 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.story > p {
  max-width: 650px;
  color: var(--muted);
}
.story-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 13px;
  color: white;
  background: var(--navy);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.story-route i {
  color: var(--yellow);
  font-style: normal;
}
.project-overview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}
.project-overview > div > p {
  color: var(--muted);
}
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.triptych div {
  min-height: 160px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.triptych small {
  color: var(--blue);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.triptych b {
  display: block;
  margin: 0.7rem 0 0.3rem;
}
.triptych p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}
.manual-step {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(430px, 1.22fr);
  min-height: 620px;
  scroll-margin-top: 78px;
}
.step-copy {
  padding: 2.6rem 2rem;
  display: flex;
  flex-direction: column;
}
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  color: #778391;
  font-size: 0.66rem;
  font-weight: 800;
}
.step-nav a {
  text-decoration: none;
}
.stepno {
  margin: 0;
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.one,
.expected,
.fix {
  margin-top: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
}
.one {
  border-left: 4px solid var(--blue);
  background: #edf3ff;
}
.expected {
  border-left: 4px solid var(--green);
  background: #e9f8f1;
}
.fix {
  border-left: 4px solid var(--orange);
  background: #fff1e6;
}
.one b,
.expected b,
.fix b {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.one p,
.expected p,
.fix p {
  margin: 0;
  font-size: 0.78rem;
}
.check {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.63rem 0.85rem;
  border: 1px solid #bbc4cc;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  font-size: 0.72rem;
}
.check i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #dfe5ea;
  color: transparent;
  font-style: normal;
}
.check.checked {
  color: #146846;
  border-color: var(--green);
  background: #edfaf4;
}
.check.checked i {
  color: white;
  background: var(--green);
}
.adult-step {
  border-color: #bea8d3;
}
.adult-step .stepno {
  color: #7135a5;
}
.adult-step .one {
  border-color: #8751b4;
  background: #f4edfa;
}
.note {
  color: var(--muted);
  font-size: 0.68rem;
}
.visual {
  min-height: 620px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9edf1;
}
.visual.dark {
  color: white;
  background: var(--navy);
}
.visual-label {
  position: absolute;
  left: 1.2rem;
  top: 1.05rem;
  margin: 0;
  color: #7d8997;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.dark .visual-label {
  color: #90a5ba;
}
.large,
.xlarge {
  width: min(370px, 82%);
}
.medium {
  width: 245px;
}
.off {
  background: #0a1018;
}
.blue {
  background: linear-gradient(145deg, #08284a, #0c4e78);
}
.green {
  background: linear-gradient(145deg, #063c31, #087154);
}
.amber {
  background: linear-gradient(145deg, #462805, #80500d);
}
.win {
  background: radial-gradient(circle, #7f6c14, #0b2749 62%);
}
.win strong {
  color: var(--yellow);
  font-size: 4rem;
  filter: drop-shadow(0 0 12px var(--yellow));
}
.state-label {
  position: absolute;
  bottom: 1.5rem;
  color: #8193a6;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}
.parts,
.artifacts,
.enroll-track,
.safe-map,
.reset-visual,
.story-maker {
  display: block;
  padding-top: 4rem;
}
.part-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.part-grid > div {
  min-height: 150px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd2d8;
  border-radius: 12px;
  background: white;
  text-align: center;
}
.part-grid > div:last-child {
  grid-column: 1/-1;
}
.part-grid b {
  margin-top: 0.7rem;
  font-size: 0.68rem;
}
.part-grid small {
  color: var(--muted);
  font-size: 0.58rem;
}
.mini-cp {
  width: 92px;
  height: 68px;
  border: 6px solid #2d3741;
  border-radius: 8px;
  background: linear-gradient(#0c3559 55%, #151c24 55%);
}
.mini-reader {
  width: 82px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid #677482;
  border-radius: 9px;
  color: #287e88;
}
.mini-cable {
  width: 80px;
  height: 52px;
  border: 5px solid #27394c;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(20deg);
}
.mini-cards {
  width: 78px;
  height: 54px;
  border: 2px solid #6d7a88;
  border-radius: 5px;
  background: white;
  box-shadow:
    7px 6px #dce9ff,
    13px 12px #fff0b9;
}
.mini-paper {
  width: 78px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px dashed #7c8995;
  background: white;
  box-shadow: 6px 6px var(--yellow);
  font-size: 1.8rem;
}
.connection,
.device-state,
.enroll,
.enroll-flow {
  gap: 1.5rem;
}
.wire {
  width: 140px;
  border-top: 6px solid var(--cyan);
}
.reader.big {
  position: relative;
  width: 125px;
  height: 92px;
  flex: 0 0 auto;
}
.reader.ready i {
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}
.signal {
  display: flex;
  gap: 7px;
}
.signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.2s infinite;
}
.scan-visual {
  flex-direction: column;
  gap: 1rem;
}
.test-card {
  width: 135px;
  height: 83px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fffdf3;
  color: var(--ink);
  box-shadow: 0 12px 24px #0005;
  font-weight: 900;
}
.waves {
  height: 22px;
}
.waves i {
  position: absolute;
  width: 90px;
  height: 24px;
  border: 2px solid var(--cyan);
  border-color: var(--cyan) transparent transparent;
  border-radius: 50%;
}
.waves i:nth-child(2) {
  width: 63px;
  margin: 7px 0 0 13px;
}
.waves i:nth-child(3) {
  width: 36px;
  margin: 14px 0 0 27px;
}
.side-device {
  position: absolute;
  right: 3%;
  bottom: 5%;
}
.artifact-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.artifact-grid > div,
.artifact-card {
  min-height: 135px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  border-radius: 12px;
}
.artifact-grid > div:last-child {
  grid-column: 1/-1;
}
.artifact-grid span,
.artifact-card span {
  font-size: 2rem;
}
.artifact-grid b,
.artifact-card b {
  font-size: 0.66rem;
}
.builder {
  color: #593f0a;
  background: #fff1b7;
  border-color: #d2aa2e;
}
.north {
  color: #14365d;
  background: #e4efff;
  border-color: #609be5;
}
.rain {
  color: #174b65;
  background: #dff8ff;
  border-color: #50b8d0;
}
.echo {
  color: #523e6a;
  background: #f0e5ff;
  border-color: #9e7ac4;
}
.glow {
  color: #714216;
  background: #fff0dd;
  border-color: #ed9a50;
}
.glow-keys {
  box-shadow:
    inset 35px 22px #ffd447aa,
    inset -35px -12px #ffd447aa;
}
.clock {
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  border: 5px solid var(--yellow);
  border-radius: 50%;
}
.clock b {
  font-size: 2rem;
}
.clock small {
  font-size: 0.5rem;
}
kbd {
  padding: 0.05rem 0.3rem;
  border: 1px solid #84909c;
  border-bottom-width: 3px;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}
.enroll-flow > i {
  color: var(--cyan);
  font-style: normal;
}
.artifact-card {
  min-width: 125px;
}
.track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.track > span {
  width: 90px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #cdd3da;
  border-radius: 10px;
  background: white;
  color: var(--blue);
  font-size: 1.5rem;
}
.track span b {
  color: var(--ink);
  font-size: 0.57rem;
}
.track span small {
  color: var(--muted);
  font-size: 0.57rem;
}
.track > i {
  color: var(--blue);
  font-style: normal;
}
.ready-strip {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 10px;
  color: white;
  background: var(--navy);
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.map-grid span {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #afd0ed;
  border-radius: 14px;
  background: #e7f3ff;
  color: var(--blue);
  font-size: 2rem;
}
.map-grid b {
  margin-top: 0.5rem;
  color: var(--ink);
  font-size: 0.62rem;
}
.safety {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 9px;
  color: #7d4116;
  background: #fff0e2;
  font-size: 0.6rem;
  font-weight: 900;
  text-align: center;
}
.clue-screen .screen {
  min-height: 175px;
}
.enter-key {
  box-shadow: inset -40px -12px #ffd447aa;
}
.jobs {
  padding: 3rem;
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}
.jobs h2 {
  margin: 0.2rem 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.job-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
}
.job-grid > div {
  padding: 1.3rem;
  border: 1px solid #2b435e;
  border-radius: 14px;
  background: #0d2541;
}
.job-grid > div > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 900;
}
.job-grid > div:last-child > span {
  background: var(--cyan);
}
.job-grid b {
  display: block;
  margin: 0.6rem 0 0.2rem;
}
.job-grid p {
  margin: 0;
  color: #b9cada;
  font-size: 0.78rem;
}
.job-grid > i {
  color: var(--yellow);
  font-size: 1.8rem;
  font-style: normal;
  text-align: center;
}
.lane-visual,
.route {
  flex-direction: column;
  gap: 1.5rem;
}
.lane-row,
.route-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.lane-row span,
.round {
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  color: var(--yellow);
}
.lane-row b,
.round b {
  color: white;
  font-size: 0.55rem;
}
.lane-row i,
.route-row > i {
  color: var(--cyan);
  font-style: normal;
}
.star-round {
  border-color: var(--yellow);
}
.route > strong {
  color: #9fb5ca;
  font-size: 0.6rem;
}
.simulator {
  display: flex;
  flex-direction: column;
  padding: 3.2rem 1.2rem 1.2rem;
}
.sim-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.sim-buttons button {
  padding: 0.7rem 0.25rem;
  border: 1px solid #344c65;
  background: #0d2541;
  color: #d5e1ed;
  font-size: 0.6rem;
  font-weight: 800;
  cursor: pointer;
}
.sim-buttons button.on {
  color: var(--navy);
  background: var(--yellow);
}
.sim-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.sim-card {
  width: 90px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #14365d;
  background: #e4efff;
  border: 2px solid #609be5;
  font-size: 1.7rem;
  transform: translateY(-70px) rotate(-6deg);
  transition: 0.25s;
}
.simulator.scanning .sim-card {
  transform: translate(70px, 0);
}
.sim-message {
  width: 100%;
  min-height: 55px;
  padding: 0.7rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border-radius: 8px;
  background: #0d2541;
  color: #b9cada;
}
.sim-message b {
  color: var(--yellow);
  font-size: 0.58rem;
}
.sim-message span {
  font-size: 0.68rem;
}
.rays {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    #ffd4471f 0 8deg,
    transparent 8deg 18deg
  );
  animation: spin 18s linear infinite;
}
.piece {
  position: absolute;
  z-index: 3;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 4px solid white;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 0 24px var(--yellow);
  font-style: normal;
}
.p1 {
  left: 10%;
  top: 15%;
}
.p2 {
  right: 10%;
  top: 16%;
}
.p3 {
  left: 12%;
  bottom: 14%;
}
.p4 {
  right: 12%;
  bottom: 13%;
}
.celebrate {
  align-self: flex-start;
  margin: 0.8rem 0;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 900;
  cursor: pointer;
}
.reset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.reset-grid div {
  min-height: 210px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #c9cfd5;
  border-radius: 14px;
  background: white;
}
.reset-grid small {
  color: var(--blue);
  font-size: 0.58rem;
  font-weight: 900;
}
.reset-grid b {
  font-size: 1.3rem;
}
.story-maker {
  background: #fff6d8;
}
.story-maker form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.story-maker fieldset {
  padding: 0.8rem;
  border: 1px solid #d4bd64;
  border-radius: 10px;
  background: white;
}
.story-maker legend {
  font-size: 0.62rem;
  font-weight: 900;
}
.story-maker label {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.68rem;
}
.new-story {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  color: white;
  background: var(--navy);
}
.new-story small {
  color: var(--yellow);
  font-size: 0.57rem;
  font-weight: 900;
}
.new-story p {
  margin: 0.35rem 0 0;
}
.adventure-guide-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 2rem;
}
.adventure-guide-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}
.adventure-guide-nav a:last-child {
  text-align: right;
}
.adventure-guide-nav small {
  color: #657588;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.adventure-guide-nav b {
  font-size: 0.85rem;
}
footer {
  width: min(1030px, 100%);
  margin: 3rem auto 0;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}
footer b,
footer span {
  display: block;
}
footer b {
  color: var(--ink);
}
footer a {
  margin-left: 0.8rem;
}
.confetti {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 17px;
  background: var(--yellow);
  animation: fall 1.8s ease-in forwards;
}
.confetti i:nth-child(3n) {
  background: var(--cyan);
}
.confetti i:nth-child(3n + 1) {
  background: var(--orange);
}
@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}
@keyframes pulse {
  50% {
    transform: scale(1.7);
    opacity: 0.35;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fall {
  to {
    transform: translate(var(--drift), 105vh) rotate(720deg);
  }
}
@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .rail {
    top: 70px;
    z-index: 40;
    height: auto;
    padding: 0.45rem;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail-title {
    display: none;
  }
  .rail ol {
    display: flex;
    min-width: max-content;
  }
  .rail a {
    display: flex;
    gap: 0.3rem;
    white-space: nowrap;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 420px;
  }
  .manual-step {
    grid-template-columns: 1fr;
  }
  .visual {
    min-height: 520px;
  }
  .step-copy {
    min-height: 560px;
  }
  .project-overview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 62px;
  }
  .top-progress {
    display: none;
  }
  html {
    scroll-padding-top: 110px;
  }
  .rail {
    top: 62px;
  }
  main {
    padding: 0.6rem;
  }
  .booklet-page {
    border-radius: 15px;
    margin-bottom: 0.8rem;
  }
  .hero-copy {
    padding: 1.5rem;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-art {
    min-height: 340px;
  }
  .story,
  .project-overview {
    padding: 1.3rem;
  }
  .triptych,
  .job-grid {
    grid-template-columns: 1fr;
  }
  .step-copy {
    min-height: auto;
    padding: 1.3rem;
  }
  .check {
    margin-top: 1.3rem;
  }
  .visual {
    min-height: 480px;
    padding: 1rem;
  }
  .connection,
  .device-state,
  .enroll,
  .enroll-flow {
    flex-direction: column;
  }
  .side-device {
    position: relative;
    right: auto;
    bottom: auto;
  }
  .track {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .track > i {
    display: none;
  }
  .job-grid > i {
    transform: rotate(90deg);
  }
  .route-row {
    flex-direction: column;
  }
  .sim-buttons {
    grid-template-columns: 1fr 1fr;
  }
  .story-maker form {
    grid-template-columns: 1fr;
  }
  footer {
    padding-inline: 0.5rem;
    flex-direction: column;
    gap: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  @page {
    size: letter;
    margin: 0.4in;
  }
  body {
    background: white;
    font-size: 9pt;
  }
  .topbar,
  .rail,
  .check,
  .celebrate,
  .sim-buttons,
  .confetti {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .shell main {
    padding: 0;
  }
  .booklet-page {
    width: 100%;
    min-height: 9.7in;
    margin: 0;
    padding: 0.3in;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
  }
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hero-copy {
    padding: 0.3in;
  }
  .hero h1 {
    font-size: 60pt;
  }
  .hero-art {
    min-height: 8.7in;
  }
  .story {
    min-height: auto;
    break-after: auto;
  }
  .manual-step {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
  }
  .step-copy {
    min-height: auto;
    padding: 0.2in;
  }
  .visual {
    min-height: 8.8in;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .jobs {
    min-height: 9.7in;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  footer {
    display: none;
  }
}
