@font-face  {
  font-family: Fredoka;
  src: url('game/fonts/Fredoka-Variable.ttf') format('truetype');
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face  {
  font-family: 'Lilita One';
  src: url('game/fonts/LilitaOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #9bd3df;
  --sky: #9bd3df;
  --cream: #fffcec;
  --ink: #17345f;
  --soft: #345579;
  --yellow: #ffda38;
  --mint: #a6e0c3;
  --pink: #ff8e9b;
  --line: #17345f35;
  --display: Fredoka,sans-serif;
  --ui: Fredoka,sans-serif;
  --header: 100px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--sky);
  color: var(--ink);
  font: 500 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none!important;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 20px;
  z-index: 150;
  background: var(--yellow);
  padding: 12px 20px;
  border: 3px solid var(--ink);
  border-radius: 30px;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background .2s,box-shadow .2s;
}

.site-header.is-scrolled {
  background: #9bd3dff2;
  box-shadow: 0 2px 0 #17345f19;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1600px;
  min-height: var(--header);
  margin: auto;
  padding: 18px clamp(24px,4.5vw,72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark, .menu-wordmark {
  font: 700 52px/.9 var(--display);
  letter-spacing: -.075em;
  color: var(--cream);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
  transform: rotate(-3deg);
}

.wordmark > span {
  display: none;
}

.desktop-nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 17px;
  font-weight: 650;
}

.desktop-nav a {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.desktop-nav a:after {
  position: absolute;
  inset: auto 0 3px;
  height: 4px;
  content: '';
  background: var(--yellow);
  border-radius: 10px;
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left;
  transition: transform .2s;
}

.desktop-nav a:hover:after, .desktop-nav a[aria-current]:after {
  transform: scaleX(1) rotate(-2deg);
}

.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.header-coin {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 7px 20px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--cream);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.header-coin > span {
  font-size: 22px;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 650;
  gap: 10px;
  align-items: center;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  column-gap: clamp(48px,6vw,96px);
  max-width: 1600px;
  margin: auto;
  padding: 0 clamp(24px,4.5vw,72px);
}

.story-copy {
  display: contents;
}

.intro {
  position: relative;
  isolation: isolate;
  grid-column: 1/-1;
  grid-row: 1;
  min-height: 860px;
  padding-top: calc(var(--header) + 78px);
  padding-bottom: 115px;
  min-width: 0;
}

.intro:before {
  content: '';
  position: absolute;
  z-index: -2;
  left: calc(50% - 50vw);
  width: 100vw;
  bottom: 0;
  height: 430px;
  background: url('landing-assets/comic-city.svg') center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.intro-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  margin-bottom: 23px;
}

.tiny-orbit {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 2px 0 var(--ink);
}

.intro-title {
  position: relative;
  z-index: 5;
  width: max-content;
  max-width: 57%;
  font: 700 clamp(74px,7.6vw,116px)/.98 var(--display);
  font-stretch: 105%;
  letter-spacing: -.067em;
  color: var(--cream);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
}

.intro-title .title-line {
  display: block;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.intro-title .title-line + .title-line {
  transform: rotate(1deg);
  margin-top: 5px;
}

.intro-title .title-letter {
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}

.title-underline {
  position: absolute;
  width: 63%;
  height: 16px;
  left: 22%;
  bottom: -18px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-2deg);
}

.opening-detail {
  margin-top: 33px;
}

.intro-copy {
  position: relative;
  z-index: 5;
  max-width: 400px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.02em;
}

.intro-actions {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  margin-top: 29px;
  width: max-content;
  max-width: 45%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 58px;
  padding: 11px 26px;
  border: 3px solid var(--ink);
  border-radius: 100px;
  background: var(--yellow);
  color: var(--ink);
  font: 650 20px/1.25 var(--ui);
  box-shadow: 0 5px 0 var(--ink),inset 0 2px #fff8;
  transition: transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s;
}

.button:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 8px 0 var(--ink),inset 0 2px #fff8;
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

.button > span {
  font-size: 25px;
  line-height: 1;
}

.button-pink {
  background: var(--pink);
}

.text-button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: none;
  min-height: 44px;
  padding: 6px 0;
  font: 600 16px/1.35 var(--ui);
}

.text-button:hover, .text-link:hover {
  border-color: var(--ink);
}

.play-invitation {
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 9px 25px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 100px;
  box-shadow: 0 3px 0 var(--ink);
  font-size: 17px;
}

.play-invitation:hover {
  background: #fff;
  transform: translateY(-1px);
}

.coin-scene {
  position: absolute;
  isolation: isolate;
  right: -2%;
  top: 140px;
  width: 55%;
  height: 500px;
  pointer-events: none;
}

.coin-scene > .coin-interaction {
  position: absolute;
  left: 1%;
  top: 175px;
  --coin-size: 250px;
  z-index: 2;
  pointer-events: auto;
}

.hero-character {
  position: absolute;
  right: 0;
  top: 0;
  width: 91%;
  aspect-ratio: 1402 / 1122;
  z-index: 3;
  pointer-events: none;
  transform: rotate(-2deg);
  transform-origin: 50% 90%;
}

.hero-pink {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 0 #17345f15);
}

.scene-note {
  position: absolute;
  left: 0;
  top: 95px;
  z-index: 6;
  font-size: 14px;
  font-weight: 600;
  transform: rotate(-8deg);
  width: 110px;
}

.scene-note svg {
  width: 58px;
  height: 39px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  margin-left: 22px;
}

.scene-footnote, .scene-orbit, .hero-aperture {
  display: none;
}



















.world-divider {
  position: absolute;
  left: calc(50% - 50vw);
  bottom: -1px;
  width: 100vw;
  height: 68px;
  z-index: -1;
  fill: var(--cream);
  pointer-events: none;
}
.project-rail {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: .85fr 1fr 1fr;
  width: min(100%, 560px);
  max-width: 100%;
  align-items: stretch;
  margin-top: 64px;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 27px;
  background: var(--cream);
  box-shadow: 0 3px 0 #17345f25;
}
.rail-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 7px 15px;
  gap: 3px;
  border: 0;
  border-right: 1px solid var(--line);
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
}
.rail-cell:disabled { cursor: default; opacity: 1; }
.rail-app { border-right: 0; }
.rail-label { font-size: 9px; font-weight: 650; letter-spacing: .04em; color: var(--soft); white-space: nowrap; }
.network-name, .route-name { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.network-name > img { width: 22px; height: 18px; object-fit: contain; }
.pill-mark { flex: 0 0 auto; width: 23px; height: 13px; border: 2px solid var(--ink); border-radius: 20px; background: linear-gradient(90deg, #8ee4b7 48%, var(--ink) 48%, var(--ink) 55%, #fffcec 55%); transform: rotate(-35deg); }

.app-store-mark { flex: 0 0 auto; width: 22px; height: 22px; }
.app-store-mark rect { fill: #287dff; }
.app-store-mark path { fill: none; stroke: var(--cream); stroke-width: 2.3; stroke-linecap: round; }
@media (max-width: 1100px) {
  .project-rail { width: min(100%, 510px); }
  .rail-cell { padding-inline: 12px; }
  .network-name, .route-name { font-size: 14px; }
}
@media (max-width: 760px) {
  .project-rail { margin-top: 12px; width: 100%; border-radius: 22px; padding: 6px; }
  .rail-cell { min-height: 66px; padding: 7px 10px; }
  .rail-label { font-size: 8px; }
  .network-name, .route-name { font-size: 13px; gap: 5px; }

  .network-name > img { width: 18px; height: 15px; }
  .app-store-mark { width: 20px; height: 20px; }
  .pill-mark { width: 21px; height: 12px; }
  .world-divider { height: 38px; }
}
@media (max-width: 360px) {
  .rail-cell { padding-inline: 7px; }
  .rail-label { font-size: 7px; }
  .network-name, .route-name { font-size: 11px; gap: 4px; }
  .app-store-mark { width: 18px; height: 18px; }
  .pill-mark { width: 19px; height: 11px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .project-rail { width: min(100%, 550px); margin-top: 35px; }
}

/* The existing game keeps one portrait viewport, framed as an illustrated aperture. */

.app-stage {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: start;
  position: sticky;
  top: -390px;
  padding: 510px 0 40px;
  min-width: 0;
  pointer-events: none;
  z-index: 8;
}

.stage-intro {
  display: none;
}

.stage-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 17px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--cream);
  font-size: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.phone-unit {
  width: min(100%,230px);
  margin-left: auto;
  margin-right: 12px;
  transform: rotate(3deg);
  transition: transform .65s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
}

.phone-unit[data-game-reveal=open] {
  transform: rotate(0);
}

.inline-phone {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 700;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 25px;
  background: var(--ink);
  box-shadow: 5px 7px 0 #17345f,0 0 0 7px var(--pink);
  outline: 2px solid var(--ink);
  outline-offset: 7px;
}

.stage-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 23px;
  flex-wrap: wrap;
}

.stage-controls > [data-expand-game] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  border: 2px solid var(--ink);
  background: var(--cream);
  border-radius: 22px;
  padding: 6px 12px;
  font: 600 10px/1.3 var(--ui);
}

.stage-controls > [data-expand-game] > span {
  font-size: 17px;
}

.stage-hint {
  margin: 18px 0 0 auto;
  max-width: 250px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.landscape-note {
  display: none;
}

/* Broad, connected chapters follow the city, with inked headings and generous copy. */

.chapter {
  grid-column: 1;
  position: relative;
  min-width: 0;
  padding: 80px 0;
  scroll-margin-top: 0;
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .07em;
  margin-bottom: 22px;
}

.chapter-label > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
  transform: rotate(-8deg);
}

.chapter h2 {
  font: 700 clamp(42px,4.4vw,68px)/1.02 var(--display);
  letter-spacing: -.055em;
  max-width: 100%;
  text-wrap: balance;
}

.chapter h3 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.035em;
}

.chapter p {
  max-width: 48ch;
}

.chapter-wave {
  display: none;
}

.coin-chapter {
  background: var(--cream);
  margin-top: 48px;
  border-radius: 55px 75px 70px 40px;
  margin-left: -25px;
  margin-right: -20px;
  padding: 46px 30px 45px;
  box-shadow: 0 6px 0 #17345f1c;
  align-self: start;
}


.coin-facts {
  margin-top: 27px;
}

.coin-status {
  font-size: 13px;
  font-weight: 600;
}

.pump-buy-slot {
  margin: 16px 0 23px;
}







/* The entire control is the pump.fun-style mint/cream capsule. */
.pump-buy {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  width: min(100%, 340px);
  min-height: 64px;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 100px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font: 650 21px/1.2 var(--ui);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.pump-buy > span, .pump-buy > small {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 17px 15px;
}
.pump-buy > span { background: #8ee4b7; border-right: 3px solid var(--ink); }
.pump-buy > small { background: var(--cream); font: 600 13px/1.3 var(--ui); white-space: nowrap; }
.pump-buy:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 11px;
  width: 10px;
  height: 17px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-radius: 16px 0 0;
  transform: rotate(-9deg);
  pointer-events: none;
}
.pump-buy:disabled { cursor: default; opacity: 1; }
.pump-buy[href]:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.pump-buy[href]:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (max-width: 760px) {
  .pump-buy { width: 100%; min-height: 61px; font-size: 20px; }
  .pump-buy > span, .pump-buy > small { padding: 16px 12px; }
  .pump-buy > small { font-size: 12px; }
}
@media (max-width: 360px) {
  .pump-buy { min-height: 58px; font-size: 18px; }
  .pump-buy > span, .pump-buy > small { padding: 15px 10px; }
  .pump-buy > small { font-size: 11px; }
}

.coin-ca {
  border-top: 2px dashed #17345f30;
  padding-top: 19px;
}

.field-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
}

.mint-row {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.mint-row code {
  font: 550 18px/1.5 var(--ui);
  overflow-wrap: anywhere;
}

.copy-address {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--yellow);
  font-weight: 600;
}

.coin-unavailable {
  margin-top: 13px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--soft);
  max-width: 39ch!important;
}

.coin-unavailable:empty {
  display: none;
}

.coin-paper {
  display: inline-flex;
  flex-direction: column;
  margin-top: 25px;
  min-height: 44px;
  justify-content: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 600;
}

.coin-paper > span {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.coin-paper small {
  font-size: 11px;
  color: var(--soft);
}

.copy-status:empty, .verified-actions:has( > [hidden]) {
  display: none;
}

.roadmap-map {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  margin: 35px 0 30px;
}
.roadmap-hub { position: relative; display: grid; justify-items: center; gap: 5px; padding-right: 18px; text-align: center; }
.roadmap-hub:after { content: ''; position: absolute; right: -1px; top: 50%; width: 19px; border-top: 3px solid var(--ink); }
.roadmap-hub svg { width: 67px; height: 67px; padding: 7px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); fill: var(--ink); transform: rotate(-9deg); }
.roadmap-hub strong { font: 700 23px/1.1 var(--display); letter-spacing: -.04em; }
.roadmap-hub > span { max-width: 9ch; font-size: 10px; line-height: 1.35; color: var(--soft); }
.roadmap-branches { display: grid; gap: 17px; padding: 7px 0 7px 24px; border-left: 3px solid var(--ink); }
.roadmap-node { position: relative; border: 2px solid var(--ink); border-radius: 23px 26px 24px 16px; background: var(--cream); box-shadow: 0 3px #17345f1c; transition: transform .2s, box-shadow .2s; }
.roadmap-node:before { content: ''; position: absolute; top: 42px; left: -27px; width: 25px; border-top: 3px solid var(--ink); }
.roadmap-node:hover { transform: translateX(3px); box-shadow: 0 4px #17345f28; }
.roadmap-node summary { display: grid; grid-template-columns: minmax(0, 1fr) 23px; align-items: center; gap: 7px 14px; min-height: 86px; padding: 17px 18px; cursor: pointer; list-style: none; }
.roadmap-node summary::-webkit-details-marker { display: none; }
.roadmap-node summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 20px; }
.roadmap-state { grid-column: 1; font-size: 9px; font-weight: 650; letter-spacing: .05em; color: var(--soft); }
.roadmap-node-title { grid-column: 1; font: 650 23px/1.12 var(--display); letter-spacing: -.035em; }
.roadmap-toggle { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); }
.roadmap-toggle:before { content: '+'; font-size: 20px; line-height: 1; }
.roadmap-node[open] .roadmap-toggle:before { content: '−'; }
.roadmap-node p { padding: 0 18px 19px; margin: 0; color: var(--soft); font-size: 15px; line-height: 1.55; }
.roadmap-target[open] { background: #ffed98; }
.roadmap-mobile[open] { background: #d7f3e0; }
.roadmap-holders[open] { background: #ffd7dc; }
@media (max-width: 600px) {
  .roadmap-map { grid-template-columns: 75px minmax(0, 1fr); margin-top: 29px; }
  .roadmap-hub { padding-right: 14px; }
  .roadmap-hub svg { width: 51px; height: 51px; border-width: 2px; }
  .roadmap-hub strong { font-size: 19px; }
  .roadmap-hub > span { font-size: 8px; }
  .roadmap-branches { padding-left: 17px; gap: 14px; border-width: 2px; }
  .roadmap-node:before { left: -20px; width: 18px; border-width: 2px; }
  .roadmap-node summary { padding: 15px 13px; column-gap: 9px; }
  .roadmap-node-title { font-size: 20px; }
  .roadmap-state { font-size: 8px; }
  .roadmap-node p { padding: 0 13px 17px; font-size: 14px; }
}
@media (max-width: 360px) {
  .roadmap-map { grid-template-columns: 54px minmax(0, 1fr); }
  .roadmap-hub { padding-right: 8px; }
  .roadmap-hub svg { width: 43px; height: 43px; }
  .roadmap-hub strong { font-size: 16px; }
  .roadmap-hub > span { font-size: 7px; }
  .roadmap-node-title { font-size: 18px; }
}

.official-directory {
  margin-top: 28px;
}

.official-directory > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  border-bottom: 2px solid var(--line);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.035em;
  transition: padding .2s;
}

.official-directory > a:hover {
  padding-inline: 12px;
}

.official-meta {
  margin-top: 27px;
}

.social-handle {
  font-size: 19px;
}

.domain-note {
  margin-top: 13px;
  font-size: 13px;
  color: var(--soft);
}

.domain-note > span {
  display: block;
  font-size: 9px;
  letter-spacing: .07em;
}

.app-story {
  margin-top: 29px;
  display: grid;
  gap: 20px;
}

.app-story p, .payout-proposal p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--soft);
}

.payout-proposal {
  margin: 34px 0 23px;
  padding-top: 28px;
  border-top: 2px dashed var(--line);
}

.payout-proposal .proposal-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.payout-proposal p {
  margin-top: 18px;
}

.payout-proposal .proposal-note {
  font-size: 13px;
  line-height: 1.6;
}


.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 65px clamp(24px,4.5vw,72px);
  border-radius: 50% 50% 0 0 / 30px 30px 0 0;
}

.footer-inner {
  max-width: 1456px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.footer-mark {
  font: 700 clamp(70px,8vw,120px)/1 var(--display);
  letter-spacing: -.075em;
}

.footer-mark > span {
  color: var(--yellow);
  font-size: .6em;
  margin-left: 12px;
}

.footer-inner > div {
  font-size: 12px;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 12px 24px 0 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-inner small {
  display: block;
  margin-top: 10px;
  opacity: .75;
  font-size: 10px;
}

.site-menu {
  width: min(460px,calc(100% - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: 48px 30px 32px;
  border: 3px solid var(--ink);
  border-radius: 35px;
  background: var(--sky);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--ink),0 25px 100px #17345f40;
}

.site-menu::backdrop {
  background: #17345f80;
  backdrop-filter: blur(7px);
}

.menu-close {
  position: absolute;
  right: 15px;
  top: 10px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  font-size: 32px;
}

.menu-wordmark {
  font-size: 48px;
  margin-bottom: 30px;
}

.site-menu nav {
  display: grid;
  margin-bottom: 28px;
}

.site-menu nav > a {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  padding: 17px 0;
  border-bottom: 2px dashed var(--line);
}

.no-script {
  padding: 20px;
  background: var(--yellow);
}

.no-script a {
  text-decoration: underline;
}

@media (width > 760px) and (max-width: 1100px) {
  .header-inner {
    padding-inline: 30px;
  }

  .desktop-nav {
    gap: 23px;
    font-size: 14px;
  }

  .wordmark {
    font-size: 43px;
  }

  .header-coin {
    font-size: 14px;
    padding-inline: 15px;
  }

  .intro {
    padding-top: 160px;
    min-height: 810px;
  }

  .intro-title {
    font-size: clamp(65px,8vw,88px);
    max-width: 60%;
  }

  .intro-copy {
    max-width: 320px;
    font-size: 18px;
  }

  .intro-actions {
    max-width: 48%;
  }

  .button {
    font-size: 17px;
    min-height: 54px;
    padding-inline: 22px;
  }

  .coin-scene {
    top: 160px;
    right: -5%;
    width: 57%;
    height: 420px;
  }

  .coin-scene > .coin-interaction {
    --coin-size: 195px;
    top: 150px;
    left: 0;
  }

  .scene-note {
    top: 100px;
    font-size: 12px;
  }

  .app-stage {
    padding-top: 480px;
    top: -370px;
  }

  .phone-unit {
    width: 210px;
    margin-right: 0;
  }

  .story-layout {
    column-gap: 48px;
  }







  .chapter {
    padding-block: 65px;
  }

  .coin-chapter {
    padding: 35px 25px;
  }

  .chapter h3 {
    font-size: 24px;
  }


}

@media (max-width: 760px) {
  :root {
    --header: 78px;
  }

  html {
    scroll-padding-top: 95px;
  }

  .header-inner {
    padding: 15px 24px;
    gap: 15px;
  }

  .wordmark {
    font-size: 40px;
    -webkit-text-stroke: 4px;
    text-shadow: 0 3px 0 var(--ink);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle > span {
    font-size: 21px;
  }

  .header-coin {
    font-size: 12px;
    min-height: 42px;
    padding: 6px 12px;
    gap: 8px;
    box-shadow: 0 2px 0 var(--ink);
  }

  .header-coin > span {
    font-size: 17px;
  }

  .header-actions {
    gap: 16px;
  }

  .story-layout {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    max-width: 620px;
  }

  .intro {
    order: 0;
    padding-top: calc(var(--header) + 25px);
    padding-bottom: 35px;
    min-height: 0;
  }

  .intro-kicker {
    font-size: 9px;
    gap: 7px;
    letter-spacing: .045em;
    margin-bottom: 19px;
  }

  .tiny-orbit {
    width: 10px;
    height: 10px;
  }

  .intro-title {
    max-width: 100%;
    font-size: clamp(53px,14.8vw,86px);
    line-height: 1.01;
    -webkit-text-stroke: 4px;
    text-shadow: 0 4px 0 var(--ink);
    letter-spacing: -.065em;
  }

  .intro-title .title-line + .title-line {
    margin-top: 2px;
  }

  .intro-title .title-letter {
    -webkit-text-stroke: 4px var(--ink);
    text-shadow: 0 4px 0 var(--ink);
  }

  .title-underline {
    bottom: -12px;
    height: 12px;
    stroke-width: 10;
  }

  .opening-detail {
    margin-top: 27px;
  }

  .intro-copy {
    font-size: 17px;
    line-height: 1.35;
    max-width: 100%;
    letter-spacing: -.025em;
  }

  .intro-actions {
    margin-top: 22px;
    gap: 12px;
    max-width: 100%;
    width: 100%;
  }

  .intro-actions > .button {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .button {
    min-height: 54px;
    font-size: 18px;
    padding: 11px 22px;
    border-width: 2px;
    box-shadow: 0 4px 0 var(--ink);
  }

  .play-invitation {
    min-height: 45px;
    font-size: 16px;
  }

  .coin-scene {
    position: relative;
    right: auto;
    top: auto;
    width: calc(100% + 24px);
    height: auto;
    aspect-ratio: 1.25;
    min-height: 340px;
    margin: 25px -12px 0;
  }

  .hero-character {
    width: 95%;
    right: -1%;
    top: 0;
  }

  .coin-scene > .coin-interaction {
    --coin-size: 170px;
    top: 107px;
    left: 2%;
  }

  .scene-note {
    left: 0;
    top: 55px;
    font-size: 11px;
    width: 90px;
  }

  .scene-note svg {
    width: 42px;
    height: 25px;
    margin-left: 10px;
  }













  .intro:before {
    height: 330px;
    bottom: 55px;
    background-size: auto 100%;
  }

  .app-stage {
    order: 1;
    position: relative;
    inset: auto;
    padding: 22px 0 44px;
    pointer-events: auto;
  }

  .phone-unit {
    width: min(100%,275px);
    margin-inline: auto;
  }

  .stage-hint {
    margin-inline: auto;
  }

  .chapter {
    padding: 55px 0;
  }

  .coin-chapter {
    order: 2;
    margin-inline: -10px;
    padding: 37px 23px;
    border-radius: 35px 45px 40px 30px;
  }

  .coin-chapter:before {
    display: none;
  }

  .roadmap-chapter {
    order: 3;
  }

  .links-chapter {
    order: 4;
  }

  .run-chapter {
    order: 5;
  }

  .chapter h2 {
    font-size: 48px;
  }

  .chapter h3 {
    font-size: 25px;
  }

  .chapter-label {
    font-size: 10px;
    margin-bottom: 19px;
  }

  .roadmap-list p, .app-story p, .payout-proposal p {
    font-size: 16px;
  }



  .official-directory > a {
    font-size: 25px;
    min-height: 70px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner > div {
    margin-top: 30px;
  }

  .site-footer {
    padding: 48px 24px;
  }

  .footer-mark {
    font-size: 85px;
  }

  .footer-inner > div > p {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding-inline: 18px;
    gap: 12px;
  }

  .wordmark {
    font-size: 35px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-coin {
    font-size: 10px;
    padding-inline: 10px;
    gap: 5px;
  }

  .menu-toggle {
    font-size: 11px;
    gap: 6px;
  }

  .menu-toggle > span {
    font-size: 19px;
  }

  .story-layout {
    padding-inline: 20px;
  }

  .intro-title {
    font-size: 49px;
  }

  .intro-copy {
    font-size: 15px;
  }

  .intro-kicker {
    font-size: 8px;
    gap: 6px;
  }

  .intro-actions {
    margin-top: 18px;
  }

  .button {
    font-size: 16px;
  }

  .play-invitation {
    font-size: 14px;
  }

  .coin-scene {
    height: auto;
    min-height: 290px;
    margin-top: 25px;
    width: calc(100% + 20px);
    margin-inline: -10px;
  }

  .coin-scene > .coin-interaction {
    --coin-size: 145px;
    top: 95px;
  }

  .scene-note {
    font-size: 10px;
    top: 47px;
  }









  .coin-chapter {
    padding: 32px 20px;
  }

  .chapter h2 {
    font-size: 42px;
  }





  .intro:before {
    height: 275px;
  }
}

@media (width > 760px) and (max-height: 760px) {
  .intro {
    min-height: 760px;
    padding-top: 145px;
  }

  .intro-title {
    font-size: clamp(65px,7vw,98px);
  }

  .coin-scene {
    top: 140px;
    height: 410px;
  }

  .hero-character {
    width: 87%;
  }

  .coin-scene > .coin-interaction {
    --coin-size: 215px;
    top: 155px;
  }

  .intro-copy {
    font-size: 18px;
  }



  .app-stage {
    padding-top: 450px;
    top: -340px;
  }

  .phone-unit {
    width: 210px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .story-layout {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
  }

  .intro {
    order: 0;
    min-height: 580px;
    padding-top: 120px;
  }

  .intro-title {
    font-size: 68px;
    max-width: 55%;
  }

  .intro-copy {
    font-size: 16px;
    max-width: 42%;
  }

  .intro-actions {
    max-width: 43%;
    margin-top: 20px;
    gap: 12px;
  }

  .intro-actions .button {
    font-size: 16px;
    min-height: 48px;
  }

  .play-invitation {
    font-size: 14px;
  }

  .coin-scene {
    position: absolute;
    right: -1%;
    top: 125px;
    width: 52%;
    height: 335px;
    margin: 0;
  }

  .hero-character {
    width: 100%;
  }

  .coin-scene > .coin-interaction {
    --coin-size: 180px;
    top: 125px;
  }

  .scene-note {
    top: 67px;
    font-size: 11px;
  }









  .app-stage {
    order: 1;
    position: relative;
    inset: auto;
    padding: 20px 0 45px;
  }

  .phone-unit {
    width: 270px;
    margin-inline: auto;
  }

  .stage-hint {
    margin-inline: auto;
  }

  .stage-caption {
    justify-content: center;
  }

  .landscape-note {
    display: block;
    margin: 0 auto 18px;
    max-width: 270px;
    font-size: 12px;
    text-align: center;
    color: var(--soft);
  }

  .coin-chapter {
    order: 2;
  }

  .roadmap-chapter {
    order: 3;
  }

  .links-chapter {
    order: 4;
  }

  .run-chapter {
    order: 5;
  }
}



html[data-motion=paused] {
  scroll-behavior: auto;
}

html[data-motion=paused] .phone-unit, html[data-motion=paused] .button {
  transition: none;
}

/* Fit the desktop game window to the available viewport height. */

@media (width > 760px) and (height > 500px) {
  .phone-unit {
    width: min(100%,230px,calc((100svh - 260px)*.557));
  }
}

/* Coin details precede the game on small screens, including short landscape screens. */

@media (max-width: 760px) {
  .app-stage {
    align-self: stretch;
    order: 2;
    padding-top: 45px;
  }

  .coin-chapter {
    order: 1;
    margin-top: 38px;
    align-self: stretch;
  }
}

/* Compact controls in short desktop windows; the 500px landscape layout remains separate. */

@media (width > 760px) and (height > 500px) and (max-height: 700px) {
  .app-stage .phone-unit .stage-controls {
    flex-wrap: nowrap;
    gap: 7px;
  }

  .app-stage .phone-unit .stage-controls .game-reveal-toggle {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 10px;
    padding: 7px 8px;
    gap: 5px;
  }

  .app-stage .stage-controls > [data-expand-game] {
    padding-inline: 8px;
    font-size: 9px;
  }

  .app-stage .stage-hint {
    display: none;
  }
}
