@font-face {
  font-family: Barlow Display;
  src: url(art/fonts/BarlowCondensed-ExtraBoldItalic.ttf) format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f4f2e9;
  --ink: #20232d;
  --mute: #606366;
  --lime: #d9fa64;
  --line: #cfcfc1;
  --display: 'Barlow Display', 'Arial Narrow', Impact, sans-serif;
  --ui: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  font-family: var(--ui);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body,
main {
  height: 100%;
  width: 100%;
  margin: 0;
}
body {
  background: var(--paper);
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
canvas:focus-visible {
  outline: 3px solid #e76427;
  outline-offset: 3px;
}
button,
input,
canvas {
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    background 0.14s,
    transform 0.14s,
    box-shadow 0.14s;
}
button:active:enabled {
  transform: translateY(2px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  flex: none;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
#stage {
  position: relative;
  isolation: isolate;
}
#lobby {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--paper);
  background-image: radial-gradient(#4d503315 0.75px, transparent 0.75px);
  background-size: 5px 5px;
}
.shell {
  width: min(1180px, 100%);
  margin: auto;
  padding: 0 clamp(14px, 3.7vw, 52px) max(28px, env(safe-area-inset-bottom));
}
.topbar {
  height: clamp(62px, 9vh, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #bbbcaf;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: italic 800 30px/0.95 var(--display);
  background: none;
  padding: 0;
  letter-spacing: -1.2px;
}
.brand > span {
  align-self: flex-end;
  font: 800 9px/1.3 var(--ui);
  letter-spacing: 0.7px;
  margin: 0 0 4px -2px;
}
.brand i {
  width: 30px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #242536;
  border-radius: 7px;
  transform: skew(-8deg);
  margin-right: 2px;
}
.brand i b {
  background: var(--lime);
  width: 4px;
  height: 9px;
  transform: skew(-19deg);
}
.brand i b:nth-child(2) {
  height: 17px;
}
.brand i b:last-child {
  height: 13px;
}
nav,
.tools,
.bank,
.square,
.primary,
.secondary,
.active,
.price,
.tile-icon,
.tile-link,
.locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
nav {
  align-self: stretch;
  gap: 20px;
}
nav button {
  align-self: stretch;
  position: relative;
  font-weight: 750;
  font-size: 13px;
  background: none;
  color: #65656b;
  padding: 0 4px;
}
nav button[aria-current] {
  color: var(--ink);
}
nav button[aria-current]:after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
}
.tools {
  gap: 8px;
}
.bank,
.square {
  height: 38px;
  border: 1px solid #c6c8ba;
  background: #faf9ef;
  border-radius: 12px;
  font: 800 14px var(--ui);
}
.bank {
  gap: 7px;
  padding: 0 14px;
  font-variant-numeric: tabular-nums;
}
.square {
  width: 40px;
}
.hub-content {
  padding-top: clamp(16px, 2.7vh, 28px);
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 335px;
  height: clamp(350px, 52vh, 518px);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 74% 40%, #8074cd 0%, #514a9b 29%, transparent 58%),
    linear-gradient(105deg, #171a38, #303264 42%, #5e559f);
  color: #fff9e6;
  border: 1px solid #29263d;
  box-shadow: 0 4px 0 #282635;
}
.hero:before {
  position: absolute;
  content: '';
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#161c3a77 1px, transparent 1px);
  background-size: 5px 5px;
  mask-image: linear-gradient(120deg, transparent 35%, #000 95%);
}
.hero:after {
  position: absolute;
  content: '';
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(#ffffff70, #ffffff70) left top/13px 2px,
    linear-gradient(#ffffff70, #ffffff70) left top/2px 13px,
    linear-gradient(#ffffff60, #ffffff60) right bottom/13px 2px,
    linear-gradient(#ffffff60, #ffffff60) right bottom/2px 13px;
  background-repeat: no-repeat;
}
.flight-grid {
  position: absolute;
  z-index: -1;
  bottom: -41%;
  left: 10%;
  right: -24%;
  height: 87%;
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, #b5beff33 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 72px, #b5beff35 73px 74px);
  transform: perspective(220px) rotateX(50deg) rotateZ(-6deg);
  mask-image: linear-gradient(transparent, #000 40%);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 6.2%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-copy button {
  pointer-events: auto;
}
.stage-tag,
.model-label,
.spec-copy > small,
.model-number,
.specimen > span {
  font: 800 11px/1.3 var(--ui);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.stage-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e7e8fa;
}
.stage-tag i,
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
}
.stage-tag span,
.model-label b {
  opacity: 0.5;
}
.hero h1 {
  font: italic 800 clamp(90px, 10vw, 144px)/0.745 var(--display);
  letter-spacing: -0.044em;
  margin: 21px 0 28px;
  transform: rotate(-3deg);
  transform-origin: 18% 48%;
  text-shadow: 3px 5px 0 #16172e;
}
.hero h1 em {
  color: var(--lime);
  font: inherit;
}
.primary,
.secondary,
.active,
.price {
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 17px;
}
.primary {
  background: var(--lime);
  color: #20221b;
  box-shadow: 0 3px 0 #78833a;
  border: 1px solid #1d221986;
}
.primary:hover:enabled {
  background: #e6ff91;
}
.primary:disabled,
.secondary:disabled,
.price:disabled {
  opacity: 0.55;
}
.hero .primary {
  min-height: 48px;
  min-width: 160px;
  justify-content: space-between;
}
.hero .primary svg:last-child {
  margin-left: 9px;
}
.hero-art {
  position: absolute;
  inset: 0 -1% 0 34%;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.hero-model {
  position: absolute;
  top: 2%;
  left: 1%;
  width: 98%;
  height: 96%;
  object-fit: contain;
  filter: drop-shadow(5px 17px 10px #17142660);
  transform: rotate(-4deg);
  z-index: 1;
}
.orbit {
  position: absolute;
  left: 19%;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #c2b5fb77;
}
.orbit-a {
  background: repeating-linear-gradient(-29deg, transparent 0 4px, #ccbeff14 4px 6px);
  box-shadow:
    0 0 0 12px #bcb3ff0d,
    inset 0 0 50px #bca7ff1c;
}
.orbit-b {
  width: 77%;
  left: 13%;
  border-style: dashed;
  opacity: 0.62;
}
.target-line {
  position: absolute;
  width: 87%;
  height: 1px;
  background: #c2bafa4d;
  transform: rotate(-17deg);
}
.sight {
  position: absolute;
  color: #ece5ffbf;
  font: 200 30px/1 monospace;
}
.sight-a {
  left: 15%;
  top: 24%;
}
.sight-b {
  right: 12%;
  bottom: 22%;
}
.model-label {
  position: absolute;
  bottom: 8%;
  right: 5%;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #eeebff;
}
.model-label .dot {
  width: 5px;
  height: 5px;
}
.destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 21px;
}
.destination {
  position: relative;
  isolation: isolate;
  text-align: left;
  min-height: 144px;
  height: clamp(140px, 19vh, 173px);
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid #22243940;
  box-shadow: 0 2px 0 #25263736;
  padding: 20px 6%;
  color: #272635;
}
.lilac {
  background: #dfd6f6;
}
.mint {
  background: #c8e8d9;
}
.destination:after,
.item-art:after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -60%;
  width: 67%;
  height: 240%;
  background: repeating-linear-gradient(-35deg, transparent 0 6px, #6578791a 7px 8px);
  transform: rotate(6deg);
}
.tile-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 4px;
}
.tile-copy strong,
.section-head h1,
.section-head h2,
.shop-card h2,
.spec-copy h2,
.dialog h1,
.dialog h2 {
  font: italic 800 clamp(25px, 3.15vw, 39px)/1 var(--display);
  letter-spacing: -0.025em;
}
.tile-copy small,
.section-head span,
.upgrade-row small {
  font-size: 12px;
  font-weight: 600;
  color: #50545b;
}
.tile-icon {
  width: 29px;
  height: 29px;
  background: #ffffff61;
  border: 1px solid #66677740;
  border-radius: 8px;
  margin-bottom: 4px;
}
.tile-art {
  position: absolute;
  inset: 0 2% 0 45%;
  pointer-events: none;
}
.tile-art img {
  position: absolute;
  object-fit: contain;
  width: 80%;
  height: 93%;
  filter: drop-shadow(2px 7px 3px #28243a25);
}
.tile-art img:first-child {
  left: 0;
  bottom: 8%;
  transform: rotate(-15deg);
}
.tile-art img:last-child {
  right: -2%;
  bottom: -7%;
  transform: rotate(9deg);
}
.items img {
  width: 57%;
  height: 82%;
}
.items img:first-child {
  left: 12%;
  bottom: 14%;
}
.items img:last-child {
  bottom: 1%;
  right: -5%;
}
.tile-link {
  width: 25px;
  height: 25px;
  border: 1px solid #52505c50;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff60;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 18px;
}
.section-head h1 {
  font-size: clamp(36px, 5vw, 58px);
}
.inspect {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fffcf2;
}
.specimen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    radial-gradient(
      circle,
      transparent 38%,
      #fffffc4d 38% 39%,
      transparent 39% 46%,
      #ffffff77 46% 46.5%,
      transparent 47%
    ),
    linear-gradient(130deg, #383952, #68668f);
  overflow: hidden;
}
.specimen img {
  width: 95%;
  height: clamp(230px, 33vh, 344px);
  object-fit: contain;
  filter: drop-shadow(0 9px 6px #29263a4d);
}
.specimen > span {
  position: absolute;
  bottom: 14px;
  left: 19px;
  color: #fff8e5;
}
.spec-copy {
  padding: clamp(20px, 3.5vw, 44px);
  align-self: center;
}
.spec-copy > small {
  color: #676570;
}
.spec-copy h2 {
  font-size: clamp(38px, 5vw, 64px);
  margin: 5px 0 8px;
}
.spec-copy p,
.shop-copy p {
  color: #585862;
  font-size: 14px;
  line-height: 1.5;
  max-width: 40ch;
}
.power {
  display: flex;
  justify-content: space-between;
  border-block: 1px solid var(--line);
  padding: 8px 0;
  margin: 13px 0;
  font-size: 13px;
}
.locked {
  font-weight: 700;
  font-size: 12px;
  gap: 6px;
  min-height: 42px;
}
.collection {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.model-card {
  background: #fbfaf2;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  align-content: end;
  text-align: left;
  padding: 10px;
  position: relative;
}
.model-card.selected {
  border: 2px solid #524683;
  background: #ebe5fa;
  padding: 9px;
}
.model-card img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}
.model-card b,
.upgrade-row h3 {
  font-size: 14px;
}
.model-card small {
  font-size: 11px;
  color: #61616b;
  margin-top: 3px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.model-number {
  font-size: 9px;
  position: absolute;
  top: 8px;
  left: 9px;
  color: #73737a;
}
.shop-grid,
.upgrades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shop-card {
  border: 1px solid var(--line);
  background: #fffdf5;
  border-radius: 17px;
  overflow: hidden;
}
.item-art {
  height: clamp(108px, 19vh, 168px);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 47%, var(--paper));
  overflow: hidden;
}
.item-art img {
  height: 100%;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(2px 7px 4px #27263925);
}
.item-art b {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff9eebd;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 12px;
}
.shop-copy {
  padding: 17px;
}
.shop-copy h2 {
  font-size: 30px;
}
.shop-copy p {
  min-height: 3em;
  margin: 6px 0 15px;
}
.shop-actions {
  display: flex;
  gap: 8px;
}
.secondary,
.price {
  background: #faf9ed;
  border: 1px solid #c7c9be;
}
.active {
  background: #d7efbe;
  border: 1px solid #88a46a;
}
.shop-actions > button {
  flex: 1;
  padding: 0 5px;
}
.upgrades-head {
  margin-top: 25px;
}
.upgrades-head h2 {
  font-size: 26px;
}
.upgrade-row {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfaef;
  padding: 12px;
}
.upgrade-row .tile-icon {
  flex: none;
  margin: 0;
}
.upgrade-row .price {
  margin-left: auto;
  padding: 0 9px;
  min-height: 37px;
}
.upgrade-row small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}
#field,
#track {
  width: 100%;
  height: 100%;
  display: block;
}
#field {
  position: relative;
  touch-action: none;
  user-select: none;
}
#track:focus {
  outline: none;
}
#hud {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  align-items: start;
  justify-content: space-between;
  pointer-events: none;
  gap: 12px;
}
.readout,
.hud-right > * {
  background: #22223bf0;
  color: #fff9e6;
  border: 1px solid #fffffe70;
  border-radius: 10px;
  box-shadow: 0 2px 0 #191e3b44;
}
.readout {
  min-width: 105px;
  padding: 8px 12px;
}
.readout b {
  font: italic 800 20px/1 var(--display);
  display: block;
}
.readout span {
  font-size: 10px;
  font-weight: 650;
}
.distance {
  height: 3px;
  background: #f4f4ff38;
  margin-top: 5px;
}
.distance i {
  display: block;
  height: 100%;
  background: var(--lime);
  width: 0;
}
.hud-right {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hud-right > * {
  min-height: 40px;
}
.hud-right button {
  pointer-events: auto;
}
.cash-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-weight: 800;
}
.cash-pill:first-letter {
  color: #ffcf5d;
}
#start-prompt {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
#run-status {
  position: absolute;
  left: 50%;
  top: max(15%, 75px);
  transform: translateX(-50%);
  color: #fffbe9;
  background: #28253ce6;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  pointer-events: none;
}
#overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #16182cbf;
  backdrop-filter: blur(3px);
  padding: 16px;
  overflow: auto;
}
.dialog {
  width: min(380px, 100%);
  background: #fffbea;
  border: 2px solid #27233e;
  border-radius: 21px;
  padding: clamp(18px, 4vh, 34px);
  text-align: center;
  box-shadow: 0 7px 0 #191a2d;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.dialog > small {
  font-weight: 800;
  color: #696778;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.dialog h1,
.dialog h2 {
  font-size: 42px;
}
.dialog p {
  font-size: 14px;
  color: #595766;
  line-height: 1.5;
}
.dialog button {
  width: 100%;
}
.reward-meter {
  position: relative;
  width: min(245px, 80%);
  aspect-ratio: 2;
  overflow: hidden;
  margin: 5px 0;
  background: conic-gradient(
    from 270deg at 50% 100%,
    #ff9c87 0 36deg,
    #ffd15e 36deg 72deg,
    #b9e96b 72deg 108deg,
    #ffd15e 108deg 144deg,
    #ff9c87 144deg 180deg,
    transparent 180deg
  );
  border-radius: 200px 200px 0 0;
  border: 2px solid #343347;
  isolation: isolate;
}
.reward-meter:before {
  content: '';
  position: absolute;
  width: 57%;
  height: 57%;
  left: 21.5%;
  bottom: -2px;
  border: 2px solid #343347;
  border-radius: 160px 160px 0 0;
  background: #fffbea;
}
.reward-meter b {
  position: absolute;
  font-size: 13px;
  transform: translate(-50%, -50%);
}
.reward-meter b:nth-child(1) {
  left: 12%;
  top: 75%;
}
.reward-meter b:nth-child(2) {
  left: 27%;
  top: 37%;
}
.reward-meter b:nth-child(3) {
  left: 50%;
  top: 21%;
}
.reward-meter b:nth-child(4) {
  left: 73%;
  top: 37%;
}
.reward-meter b:nth-child(5) {
  left: 88%;
  top: 75%;
}
.reward-meter i {
  position: absolute;
  bottom: 0;
  left: calc(50% - 4px);
  height: 87%;
  width: 8px;
  transform-origin: 50% 100%;
  background: #33334a;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.reward-meter:after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #37364f;
}
.result-stats {
  display: flex;
  gap: 17px;
  font-size: 13px;
  font-weight: 750;
}
#toast {
  position: absolute;
  z-index: 10;
  bottom: max(19px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: max-content;
  padding: 10px 16px;
  border-radius: 11px;
  background: #25243b;
  color: #fff9ec;
  box-shadow: 0 3px 12px #18132630;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
@media (max-width: 760px) {
  .hero {
    height: clamp(350px, 49vh, 470px);
  }
  .destinations {
    gap: 12px;
  }
  .tile-copy strong {
    font-size: 27px;
  }
  .tile-art {
    left: 49%;
  }
  .collection {
    grid-template-columns: repeat(3, 1fr);
  }
  .upgrades {
    grid-template-columns: 1fr;
  }
  .shop-copy {
    padding: 11px;
  }
  .shop-copy p {
    font-size: 12px;
  }
  .brand > span {
    display: none;
  }
  nav {
    gap: 10px;
  }
  .spec-copy {
    padding: 18px;
  }
}
@media (max-width: 570px) {
  .shell {
    padding: 0 14px max(22px, env(safe-area-inset-bottom));
  }
  .topbar {
    height: auto;
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 52px 31px;
    gap: 0;
  }
  .brand {
    justify-self: start;
  }
  .brand > span {
    display: block;
  }
  .tools {
    grid-column: 2;
    grid-row: 1;
  }
  .bank,
  .square {
    height: 34px;
  }
  .square {
    width: 36px;
  }
  nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: start;
    gap: 22px;
  }
  nav button {
    font-size: 12px;
    padding: 0 0 6px;
  }
  nav button[aria-current]:after {
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
  }
  .hub-content {
    padding-top: 13px;
  }
  .hero {
    height: clamp(357px, 56vh, 495px);
    min-height: 0;
    border-radius: 17px;
  }
  .hero-copy {
    inset: 22px auto 23px 6%;
    transform: none;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: start;
  }
  .stage-tag {
    font-size: 9px;
    letter-spacing: 1.15px;
    gap: 6px;
  }
  .hero h1 {
    margin: 19px 0 0;
    font-size: clamp(76px, 20vw, 106px);
    line-height: 0.75;
  }
  .hero .primary {
    margin-top: auto;
    min-width: 143px;
    min-height: 43px;
  }
  .hero-art {
    inset: 17% -8% 8% 14%;
  }
  .hero-model {
    top: 8%;
    left: -2%;
    transform: rotate(-9deg);
    height: 91%;
    width: 108%;
  }
  .orbit-a {
    left: 23%;
    width: 65%;
  }
  .orbit-b {
    left: 18%;
    width: 75%;
  }
  .model-label {
    bottom: 7%;
    right: 5%;
    font-size: 9px;
    gap: 4px;
    letter-spacing: 0.9px;
  }
  .destinations {
    gap: 10px;
    margin-top: 14px;
  }
  .destination {
    height: 150px;
    min-height: 0;
    padding: 13px 11px;
  }
  .tile-copy {
    height: 100%;
    align-content: end;
    gap: 3px;
  }
  .tile-copy .tile-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
  }
  .tile-icon svg {
    width: 16px;
  }
  .tile-copy strong {
    font-size: 24px;
    line-height: 0.99;
  }
  .tile-copy small {
    font-size: 10px;
  }
  .tile-art {
    inset: 0 1% 32% 11%;
  }
  .tile-link {
    width: 19px;
    height: 19px;
    top: 9px;
    right: 8px;
  }
  .tile-link svg {
    width: 13px;
  }
  .section-head {
    margin: 2px 0 12px;
  }
  .section-head h1 {
    font-size: 35px;
  }
  .section-head span {
    font-size: 10px;
  }
  .inspect {
    grid-template-columns: 1fr;
  }
  .specimen {
    min-height: 0;
  }
  .specimen img {
    height: 160px;
  }
  .spec-copy {
    padding: 14px 17px;
  }
  .spec-copy h2 {
    font-size: 34px;
  }
  .spec-copy p,
  .shop-copy p {
    font-size: 12px;
  }
  .power {
    margin: 8px 0;
  }
  .collection {
    gap: 7px;
  }
  .model-card img {
    height: 54px;
  }
  .model-card b {
    font-size: 12px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .shop-card {
    display: grid;
    grid-template-columns: 31% 1fr;
  }
  .item-art {
    height: 100%;
    min-height: 120px;
  }
  .item-art img {
    width: 100%;
    height: auto;
  }
  .shop-copy p {
    min-height: 0;
    margin: 4px 0 8px;
  }
  .shop-copy h2 {
    font-size: 25px;
  }
  .shop-actions button {
    min-height: 35px;
  }
  .upgrades-head {
    margin-top: 18px;
  }
  .upgrades {
    gap: 7px;
  }
}
@media (max-height: 500px) and (min-width: 571px) {
  .topbar {
    height: 48px;
  }
  .hub-content {
    padding-top: 9px;
  }
  .hero {
    height: 220px;
    min-height: 220px;
  }
  .hero h1 {
    font-size: 65px;
    margin: 10px 0 15px;
  }
  .hero .primary {
    min-height: 34px;
  }
  .destinations {
    margin-top: 10px;
  }
  .destination {
    height: 78px;
    min-height: 78px;
    padding: 8px 4%;
  }
  .tile-copy .tile-icon {
    display: none;
  }
  .dialog {
    gap: 6px;
    padding: 14px 22px;
  }
  .dialog h1,
  .dialog h2 {
    font-size: 29px;
  }
  .dialog button {
    min-height: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#field {
  background: radial-gradient(ellipse at 50% 30%, #7065a1, #28273b);
}
#loadout {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  font-weight: 750;
  font-size: 11px;
  color: #fffae8;
  background: #25223de6;
  padding: 7px 11px;
  border-radius: 7px;
  pointer-events: none;
}
.dialog .discovery {
  font-weight: 750;
  color: #3e326a;
  border: 1px solid #c6b9db;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eee4ff;
  font-size: 12px;
}
#host-error {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  width: min(440px, 92%);
  background: #302b40;
  color: #fff6e4;
  font-size: 13px;
  box-shadow: 0 4px 16px #17182d44;
}
#host-error button {
  flex: none;
  color: var(--ink);
  min-height: 36px;
}

/* The level start and between-level purchases stay on the track. */
#start-prompt.level-brief {
  position: absolute;
  top: auto;
  left: 50%;
  bottom: max(3.5%, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(430px, calc(100% - 28px));
  padding: 14px 18px 15px;
  background: #fffbedf2;
  border: 1px solid #312f4860;
  border-radius: 17px;
  box-shadow: 0 4px 0 #26253c67;
  text-align: left;
}
#start-prompt.level-brief > small {
  display: block;
  margin: 0 0 4px;
  font: 800 10px/1.25 var(--ui);
  letter-spacing: 1.15px;
  color: #675b7f;
}
.level-brief h1,
.campaign-head h2 {
  font: italic 800 32px/1 var(--display);
  letter-spacing: -0.02em;
}
.level-brief p {
  font: 600 13px/1.4 var(--ui);
  color: #55545c;
  margin: 5px 0 10px;
}
.grid-actions {
  display: flex;
  gap: 8px;
}
.grid-actions button {
  flex: 1;
  min-height: 40px;
}
.pit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.pit-upgrade {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 7px;
  padding: 9px 10px;
  border: 1px solid #5c62724f;
  border-radius: 10px;
  background: #c8ebc5;
  text-align: left;
}
.pit-upgrade.tempo {
  background: #ffde83;
}
.pit-upgrade.reach {
  background: #b7ddf9;
}
.pit-upgrade.years {
  background: #f8b1a2;
}
.pit-upgrade > svg {
  grid-row: span 2;
}
.pit-upgrade b {
  font-weight: 850;
  font-size: 14px;
}
.pit-upgrade small {
  font-size: 10px;
  font-weight: 650;
}
.pit-upgrade strong {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #ffffff78;
  color: var(--ink);
  border-radius: 5px;
  padding: 4px;
  font-size: 12px;
}
.pit-upgrade:disabled {
  filter: saturate(0.45);
  color: #5e5d60;
}
.pit-cards[hidden] {
  display: none !important;
}
.level-brief #grid-upgrades {
  margin: 0 0 9px;
}
.pit-link {
  background: transparent;
  padding: 7px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.campaign {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffdf3;
  padding: 15px;
  margin-top: 18px;
}
.campaign-head,
.campaign-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.campaign-head h2 {
  font-size: 26px;
}
.campaign-head b {
  font-size: 12px;
}
.campaign-head button {
  width: 34px;
  height: 32px;
  border-radius: 7px;
  background: #eceadf;
  font-size: 21px;
}
.campaign-head button:disabled {
  opacity: 0.38;
}
.course-nodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.level-node {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 9px 8px;
  text-align: left;
  border-radius: 9px;
  background: #e8e5f4;
  border: 1px solid #b3abc6;
}
.level-node.current {
  background: #e5f79e;
  border-color: #808f4e;
}
.level-node:disabled {
  background: #efeee6;
  border-color: #d7d7cb;
  color: #696a6a;
}
.level-node span {
  font: italic 800 24px/1 var(--display);
}
.level-node b {
  font-size: 12px;
}
.level-node small {
  font-size: 10px;
}
.level-node > svg {
  position: absolute;
  right: 7px;
  top: 8px;
}
@media (max-width: 620px) {
  .course-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .level-brief h1 {
    font-size: 29px;
  }
  .campaign {
    padding: 12px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  #start-prompt.level-brief {
    width: min(275px, 36%);
    bottom: 10px;
    left: auto;
    right: 12px;
    transform: none;
    padding: 10px 12px;
  }
  .level-brief h1 {
    font-size: 24px;
  }
  .level-brief p {
    font-size: 11px;
    margin: 3px 0 6px;
  }
  .grid-actions button {
    font-size: 11px;
    min-height: 35px;
    padding: 4px 6px;
  }
  .pit-upgrade {
    padding: 5px 7px;
  }
  .pit-upgrade b {
    font-size: 11px;
  }
  .pit-upgrade svg {
    width: 15px;
  }
  .pit-cards {
    gap: 5px;
  }
}

#hud {
  z-index: 1;
}
#overlay {
  z-index: 2;
}
#field:has(#overlay:not([hidden])) #hud {
  z-index: 3;
  pointer-events: none;
}
#field:has(#overlay:not([hidden])) #pause {
  visibility: hidden;
}
#overlay.intermission {
  background: linear-gradient(#182338a8, #1a253e70 50%, #17192aab);
  backdrop-filter: none;
}
.intermission .dialog {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fffbed;
  gap: 10px;
  width: min(360px, 100%);
}
.intermission .dialog > small {
  color: #c3ff83;
  font-size: 14px;
  text-shadow: 0 1px 4px #102717;
}
.intermission .dialog h1 {
  text-shadow: 0 2px 4px #1d1834;
  margin: 0 0 8px;
}
.intermission .pit-upgrade {
  color: #22293a;
  border: 2px solid #fffbe5;
  box-shadow: 0 3px 0 #20233875;
}
.intermission .pit-link {
  color: #fffbed;
  text-shadow: 0 1px 3px #151831;
}
@media (max-height: 450px) {
  .dialog {
    gap: 6px;
    padding: 12px 18px;
  }
  .dialog h1,
  .dialog h2 {
    font-size: 28px;
  }
  .reward-meter {
    width: 126px;
  }
  .intermission .dialog {
    gap: 5px;
  }
  .intermission .dialog h1 {
    margin: 0;
  }
}
.kit-offer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 4px 10px;
  margin: 0 0 8px;
  background: #e7def7;
  border: 1px solid #b2a0cb;
  border-radius: 10px;
  color: #332849;
  text-align: left;
  font-size: 12px;
  font-weight: 750;
}
.kit-offer img {
  width: 32px;
  height: 28px;
  object-fit: contain;
}
.kit-offer b {
  margin-left: auto;
  font-size: 11px;
}
#mission {
  position: absolute;
  top: max(76px, 10%);
  left: max(12px, env(safe-area-inset-left));
  background: #292640eb;
  color: #fff6be;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}
#sponsor {
  padding: 18px;
  width: min(360px, calc(100% - 30px));
  max-height: 92dvh;
  margin: auto;
  color: var(--ink);
  background: #fffbea;
  border: 2px solid #362f49;
  border-radius: 18px;
  box-shadow: 0 5px 0 #1d1c2e;
  overflow: auto;
}
#sponsor::backdrop {
  background: #1a1934cb;
}
#sponsor[open] {
  display: grid;
  gap: 9px;
}
#sponsor h2 {
  font: italic 800 36px/1 var(--display);
}
#sponsor .eyebrow {
  font: 800 11px var(--ui);
  color: #645776;
}
.sponsor-art {
  display: block;
  width: 100%;
  max-height: min(30vh, 180px);
  object-fit: cover;
  border-radius: 8px;
}
#sponsor p {
  font: 600 14px/1.4 var(--ui);
}
.ad-progress {
  display: grid;
  gap: 4px;
  font-weight: 650;
  color: #4d415e;
}
.ad-progress progress {
  width: 100%;
  height: 9px;
  accent-color: #6b52a0;
}
#sponsor .actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
#sponsor .actions button {
  flex: 1;
  white-space: nowrap;
}
@media (max-height: 480px) {
  .kit-offer {
    min-height: 29px;
    margin-bottom: 5px;
  }
  .kit-offer img {
    height: 20px;
  }
  .sponsor-art {
    max-height: 19vh;
  }
  .dialog .kit-offer {
    margin: 0;
  }
  #mission {
    top: 59px;
  }
}
