/* Shared site styles. /ub composition and art direction live in src/ub.css. */
/* Fonts are unmodified copies of the game resources. */
@font-face {
  font-family: Bitbit;
  src: url('/assets/ub/display.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: Galmuri;
  src: url('/assets/ub/pixel.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Galmuri Bold;
  src: url('/assets/ub/pixel-bold.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}

/* Shared tokens and document defaults. */
:root {
  --navy: #082846;
  --ink: #082138;
  --cream: #fff8e7;
  --yellow: #ffd43d;
  --sky: #38b5fa;
  --line: #eadbb5;
  --body: var(--display);
  --display: Bitbit,Galmuri,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

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

button:focus-visible,
a:focus-visible {
  outline: 4px solid #ed7815;
  outline-offset: 5px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  word-break: keep-all;
}

p {
  line-height: 1.7;
  word-break: keep-all;
}

em {
  font-style: normal;
  color: var(--yellow);
}

/* Shared layout and navigation. */
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  padding: 15px;
  background: var(--yellow);
  z-index: 99;
  font-weight: 800;
}

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

.section-inner {
  width: min(1200px,calc(100% - 96px));
  margin: auto;
}

.section-pad {
  padding: 80px 0;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 16px;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  max-width: 1320px;
  margin: auto;
  padding: 19px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}

.brand {
  display: block;
  font-family: var(--display);
  font-size: 27px;
}

.game-header .brand {
  height: 56px;
  width: 89px;
  overflow: hidden;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  font-weight: 750;
}

.nav-cta {
  background: var(--yellow);
  border: 2px solid var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
  padding: 11px 20px;
  border-radius: 3px;
}

.site-header nav a:not(.nav-cta):hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 870px;
  background: #4cbcfb;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 52%;
  padding: 112px 0 110px 44px;
}

.hero-logo {
  width: 274px;
  height: auto;
  margin: 0 0 22px 20px;
  filter: drop-shadow(0 6px 0 #14588b33);
  image-rendering: pixelated;
}

.hero h1 {
  font-size: clamp(65px,6.5vw,88px);
  line-height: 1.16;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hero-copy>p {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 29px;
}

/* Store links and their interactive states. */
.store-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 12px 22px;
  color: #fff;
  background: #092742;
  border: 2px solid #092742;
  border-radius: 7px;
  text-align: left;
  transition: transform .15s,background .15s;
  box-shadow: 0 3px 0 #03182b;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.store-button svg {
  width: 25px;
  height: 29px;
  flex-shrink: 0;
}

.store-button small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  color: #cfdbeb;
  letter-spacing: .03em;
}

.store-button:hover {
  background: #184568;
  transform: translateY(-2px);
}

.store-button:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* Original game floor/steel primitives used by instructions and the live demo. */
.floor {
  position: relative;
  aspect-ratio: 400/174;
  width: 100%;
  flex-shrink: 0;
}

.floor>img {
  position: absolute;
  width: 109.5%;
  max-width: none;
  height: 110%;
  left: -4.7%;
  top: -6%;
  image-rendering: pixelated;
}

.steel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(2px 2px 0 #0003);
}

.tower {
  display: flex;
  flex-direction: column;
}

.tower .floor+.floor {
  margin-top: -7.3%;
}

/* Game sign and section defaults still inherited by src/ub.css. */
.site-sign {
  font: 22px/1.4 var(--display);
  text-align: center;
  position: relative;
  padding: 12px 18px;
  background: var(--cream);
  border: 4px solid var(--navy);
  border-radius: 3px;
  box-shadow: 3px 4px 0 #785226;
  color: var(--navy);
}

.site-sign:before,
.site-sign:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border: 1px solid #694915;
  top: 5px;
}

.site-sign:before {
  left: 5px;
}

.site-sign:after {
  right: 5px;
}

.record-sign {
  position: absolute;
  left: 170px;
  bottom: 102px;
  transform: rotate(-3deg);
  z-index: 3;
}

.crane-sign {
  position: absolute;
  right: 15px;
  top: 185px;
  font-size: 16px;
  padding: 11px 13px;
  transform: rotate(3deg);
}

.how {
  text-align: center;
  background: var(--cream);
  position: relative;
}

.how .eyebrow {
  color: #726446;
}

.how h2 {
  font-size: 38px;
  line-height: 1.4;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 36px 0 24px;
}

.instruction {
  padding: 0 36px;
}

.instruction+.instruction {
  border-left: 1px solid #d8c697;
}

.instruction h3 {
  font-size: 26px;
  margin: 20px 0 8px;
}

.instruction p {
  font-size: 17px;
}

.flip-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 210px;
}

.flip-diagram .floor {
  width: 44%;
}

.diagram-arrow {
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
}

.flip-diagram>.diagram-arrow {
  width: 54px;
  height: 54px;
}

.stack-diagram {
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stack-diagram .floor {
  width: 210px;
}

.stack-diagram>.diagram-arrow {
  height: 27px;
  width: 37px;
  margin: 2px 0;
}

.how-summary {
  font-size: 17px;
  font-weight: 750;
}

.how-summary span {
  color: #a2770a;
  margin: 0 13px;
}

.feel {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 68px 0 0;
}

.feel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#082846ee,#082846bb),url('/assets/ub/city.webp') center 65%/cover;
  opacity: .55;
}

.feel-copy {
  padding-bottom: 52px;
  position: relative;
  z-index: 2;
}

.feel .eyebrow {
  color: #c5d7e8;
}

.feel h2 {
  font-size: 56px;
  line-height: 1.28;
  margin-bottom: 23px;
}

.feel-copy>p {
  font-size: 18px;
}

.demo-controls {
  display: flex;
  gap: 20px;
  margin: 34px 0 48px;
  max-width: 395px;
}

/* Game controls, feedback primitives, and their interactive states. */
.game-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 102px;
  flex-shrink: 1;
  background: linear-gradient(#377fab 0 7px,#215f8d 7px,#164575 92%);
  border: 3px solid #031629;
  border-radius: 7px;
  box-shadow: inset 3px 0 #79c3df,inset -3px 0 #103853,0 7px #071a2d,0 10px #153b5b;
  color: var(--cream);
  transition: transform .1s;
  touch-action: manipulation;
}

.game-button:before,
.game-button:after {
  content: "";
  position: absolute;
  top: 5px;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  border: 2px solid #f6ebb5;
  border-radius: 2px;
  box-shadow: 0 78px 0 -1px var(--yellow);
}

.game-button:before {
  left: 5px;
}

.game-button:after {
  right: 5px;
}

.game-button img {
  width: 90px;
  height: 77px;
  object-fit: contain;
  image-rendering: pixelated;
}

.game-button span {
  position: absolute;
  top: 116px;
  font-family: var(--display);
  font-size: 18px;
  white-space: nowrap;
}

.game-button:hover {
  filter: brightness(1.12);
}

.game-button:active {
  transform: translateY(6px);
  box-shadow: inset 2px 2px #16344a;
}

.game-button:disabled {
  cursor: wait;
}

.demo-options {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #b4cbdc;
}

.demo-options button {
  color: #e1e9ed;
  background: transparent;
  border: 1px solid #7191a6;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 12px;
  min-height: 34px;
}

.demo-options button:hover {
  background: #294c67;
}

.demo-status {
  min-height: 49px;
  margin-top: 16px;
  color: var(--yellow);
  font-size: 14px!important;
  max-width: 390px;
}

.demo-scene {
  position: relative;
  min-height: 570px;
  --joint: 19%;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
}

.demo-score {
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--display);
  font-size: 22px;
  color: var(--yellow);
  z-index: 3;
}

.demo-score span {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.demo-incoming {
  position: absolute;
  top: 32px;
  width: 85%;
  left: 7.5%;
  transition: transform .15s ease-in;
}

.demo-incoming.falling {
  transform: translateY(var(--drop,79px));
}

.demo-incoming.flipping>.floor {
  animation: flip .15s ease-out;
}

.demo-stack {
  position: absolute;
  top: 246px;
  left: 7.5%;
  width: 85%;
  display: flex;
  flex-direction: column;
}

.demo-stack .floor+.floor {
  margin-top: -7.3%;
}

.impact {
  position: absolute;
  top: 374px;
  left: calc(7.5% + var(--joint)*.85);
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.impact b {
  position: absolute;
  right: 15px;
  bottom: 20px;
  color: var(--cream);
  font-family: var(--display);
  font-size: 32px;
  white-space: nowrap;
  transform: rotate(-9deg);
}

.impact i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--yellow);
  box-shadow: 0 0 12px #ffd43d;
  transform: rotate(calc(var(--i)*45deg)) translateX(13px);
}

.land .impact {
  animation: impact .5s ease-out;
}

.land .impact i {
  animation: spark .5s ease-out;
}

.land .demo-stack {
  animation: settle .22s ease-out;
}

.miss .demo-incoming {
  animation: shake .25s ease-in-out;
}

.journey {
  position: relative;
  height: 545px;
  overflow: hidden;
  background: #42aeed;
  color: white;
}

.journey:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#0828463b,transparent 65%);
  pointer-events: none;
}

.journey .section-inner {
  position: relative;
  padding-top: 48px;
  height: 100%;
  z-index: 1;
}

.journey h2 {
  font-size: 39px;
  margin-bottom: 15px;
  text-shadow: 0 3px 0 #163e5d33;
}

.journey p {
  font-size: 18px;
  text-shadow: 0 2px 3px #082846;
}

.download {
  padding: 57px 0 55px;
  overflow: hidden;
}

.download h2 {
  font-size: 29px;
  margin-bottom: 22px;
  text-align: center;
}

.download .store-links {
  justify-content: center;
}

.final-sign {
  font-size: 18px;
  transform: rotate(3deg);
  margin-left: 25px;
  white-space: nowrap;
}

.final-sign:after {
  top: 100%;
  left: 45%;
  height: 56px;
  width: 12px;
  border: 0;
  background: #786340;
  box-shadow: 3px 0 #ac8c54;
  z-index: -1;
}

/* Shared footer, release-preparation dialog, and document links. */
.site-footer {
  background: #061d34;
  color: #cbd7e1;
  padding: 36px max(32px,calc((100vw - 1200px)/2));
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 17px 28px;
  font-size: 12px;
}

.company-logo {
  font-family: var(--display);
  font-size: 23px;
  color: #fff;
}

.company-logo span,
.company-header .brand span {
  color: var(--yellow);
}

.site-footer>p {
  grid-column: 1;
  font-size: 12px;
  color: #9eb5c8;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  grid-column: 2;
  grid-row: 1;
}

.site-footer nav a {
  padding: 8px 0;
  min-height: 32px;
}

.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer small {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
  color: #9eb5c8;
}

dialog {
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--navy);
  border-radius: 8px;
  box-shadow: 8px 8px 0 #ffd43d;
  max-width: 480px;
  width: calc(100% - 48px);
  padding: 42px 30px;
}

dialog::backdrop {
  background: #061d34bb;
  backdrop-filter: blur(3px);
}

dialog h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

dialog p {
  margin-bottom: 24px;
}

dialog .eyebrow {
  color: #766039;
}

.dialog-close {
  position: absolute;
  right: 9px;
  top: 7px;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 40px;
  width: 44px;
}

.solid-link {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 15px 21px;
  font-weight: 700;
  border-radius: 4px;
}

/* Company home and information routes. */
.company-header {
  position: relative;
  background: var(--navy);
  color: #fff;
  max-width: none;
  padding-left: max(40px,calc((100vw - 1200px)/2));
  padding-right: max(40px,calc((100vw - 1200px)/2));
}

.company-main {
  max-width: 1200px;
  margin: auto;
  padding: 90px 40px;
}

.company-main>h1 {
  font-size: 64px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.company-main>p {
  font-size: 20px;
  margin: 24px 0 54px;
  color: #415970;
}

.company-main>.eyebrow {
  color: #746649;
}

.game-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 2px solid var(--navy);
  box-shadow: 8px 8px 0 var(--yellow);
  background: #fffdf7;
}

.company-art {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  background: url('/assets/ub/sky.webp') center 62%/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-art>img:first-child {
  width: 210px;
  margin-right: 40px;
  image-rendering: pixelated;
}

.company-builder {
  position: absolute;
  width: 88px;
  right: 25px;
  bottom: 20px;
}

.game-feature>div:last-child {
  padding: 54px 45px;
}

.game-feature h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.game-feature p {
  font-size: 17px;
  margin-bottom: 35px;
}

.feature-link {
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-link span {
  font-size: 28px;
}

.game-feature:hover .feature-link {
  text-decoration: underline;
}

.info-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 35px 110px;
  min-height: 70vh;
}

.back-link {
  display: block;
  width: fit-content;
  color: #3e5770;
  font-size: 14px;
  padding: 10px 0;
  margin-bottom: 44px;
}

.info-main h1 {
  font-size: 48px;
  line-height: 1.4;
  margin-bottom: 30px;
}

.info-main>.eyebrow {
  color: #7c6946;
}

.empty-state {
  padding: 60px 25px;
  text-align: center;
  background: #f2ead6;
  border-top: 1px solid #d4c298;
  margin-top: 38px;
}

.empty-mark {
  display: block;
  font: 50px var(--display);
  color: #7b705c;
  margin-bottom: 20px;
}

.empty-state h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.empty-state p {
  color: #4c6070;
}

.notice {
  padding: 28px 0;
  border-top: 1px solid #cab991;
}

.notice h2 {
  font-size: 23px;
  margin: 12px 0;
}

.notice time {
  font-size: 13px;
  color: #5c6f7d;
}

.notice p,
.legal-section p {
  white-space: pre-line;
}

.legal-section {
  margin: 40px 0;
}

.legal-section h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.service-document {
  overflow-wrap: anywhere;
}

.service-document [hidden] {
  display: none !important;
}

.service-document p {
  line-height: 1.9;
  margin-bottom: 16px;
}

.service-document .legal-section {
  scroll-margin-top: 110px;
}

.service-language,
.service-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.service-language button {
  min-height: 44px;
  padding: 10px 16px;
  color: #082846;
  background: #fff8e7;
  border: 2px solid #082846;
  border-radius: 3px;
  font: inherit;
  cursor: pointer;
}

.service-language button[aria-pressed="true"] {
  background: #ffd43d;
}

.service-contents a,
.service-links a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-links {
  padding-left: 22px;
  list-style: disc;
}

@media print {
  .site-header, .site-footer, .service-language, .back-link, .skip-link { display: none; }
  .service-document { max-width: none; padding: 0; }
}

/* Demo motion. The game-specific composition is maintained in src/ub.css. */
@keyframes impact {
  0% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes spark {
  from {
    transform: rotate(calc(var(--i)*45deg)) translateX(5px);
    opacity: 1;
  }

  to {
    transform: rotate(calc(var(--i)*45deg)) translateX(65px);
    opacity: 0;
  }
}

@keyframes settle {
  0% {
    transform: translateY(calc(-1 * var(--step,130px)));
  }

  90% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes shake {
  25% {
    transform: translateX(-7px);
  }

  75% {
    transform: translateX(7px);
  }
}

@keyframes flip {
  50% {
    transform: scaleX(.08);
  }
}

@media (min-width:1600px) {
  .hero {
    min-height: 880px;
  }
}

/* Shared and inherited responsive defaults. */
@media (max-width:1100px) {
  .hero {
    min-height: 810px;
  }

  .hero-copy {
    padding-left: 38px;
    width: 54%;
  }

  .hero-logo {
    width: 230px;
    margin-left: 8px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-copy>p {
    font-size: 17px;
  }

  .store-button {
    padding: 11px 15px;
    font-size: 15px;
    gap: 9px;
  }

  .crane-sign {
    right: 12px;
    top: 166px;
    font-size: 14px;
  }

  .record-sign {
    left: 140px;
    bottom: 95px;
    font-size: 18px;
  }

  .section-inner {
    width: calc(100% - 64px);
  }

  .how h2 {
    font-size: 33px;
  }

  .instruction {
    padding: 0 22px;
  }

  .feel h2 {
    font-size: 46px;
  }

  .demo-scene {
    min-height: 550px;
  }

  .feel-copy>p {
    font-size: 16px;
  }

  .journey h2 {
    font-size: 35px;
  }

  .final-sign {
    display: none;
  }

  .download h2 {
    font-size: 27px;
  }
}

@media (max-width:760px) {
  html {
    scroll-padding-top: 24px;
  }

  .section-inner {
    width: calc(100% - 40px);
  }

  .section-pad {
    padding: 52px 0;
  }

  .site-header {
    padding: 14px 20px;
    min-height: 76px;
  }

  .site-header nav {
    gap: 17px;
    font-size: 12px;
  }

  .nav-cta {
    padding: 9px 12px;
    box-shadow: 2px 2px 0 var(--navy);
  }

  .game-header .brand {
    width: 58px;
    height: 48px;
  }

  .hero {
    min-height: 1070px;
  }

  .hero-copy {
    width: 100%;
    padding: 95px 22px 0;
    text-align: center;
  }

  .hero-logo {
    width: 173px;
    margin: 0 auto 17px;
  }

  .hero h1 {
    font-size: 57px;
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .hero-copy>p {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .store-links {
    justify-content: center;
    gap: 9px;
  }

  .store-button {
    min-height: 58px;
    padding: 9px 15px;
    font-size: 15px;
  }

  .store-button svg {
    width: 23px;
    height: 25px;
  }

  .store-button small {
    font-size: 9px;
  }

  .crane-sign {
    font-size: 11px;
    top: 85px;
    right: 12px;
    padding: 8px;
    border-width: 3px;
  }

  .record-sign {
    font-size: 15px;
    left: calc(50% - 30px);
    bottom: 110px;
    padding: 10px 14px;
  }

  .how h2 {
    font-size: 25px;
    line-height: 1.5;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    margin: 20px 0 22px;
  }

  .instruction {
    padding: 14px 4px 26px;
  }

  .instruction+.instruction {
    border-left: none;
    border-top: 1px solid #d8c697;
    padding-top: 30px;
  }

  .flip-diagram {
    height: 125px;
    max-width: 480px;
    margin: auto;
    gap: 10px;
  }

  .flip-diagram .floor {
    width: 40%;
  }

  .flip-diagram>.diagram-arrow {
    width: 45px;
    height: 45px;
  }

  .stack-diagram {
    height: 191px;
  }

  .stack-diagram .floor {
    width: 185px;
  }

  .instruction h3 {
    font-size: 23px;
    margin: 13px 0 7px;
  }

  .instruction p {
    font-size: 15px;
  }

  .how-summary {
    font-size: 14px;
  }

  .how-summary span {
    margin: 0 3px;
  }

  .feel {
    padding: 46px 0 0;
  }

  .feel-copy {
    padding-bottom: 5px;
    text-align: center;
  }

  .feel h2 {
    font-size: 43px;
    margin-bottom: 20px;
  }

  .feel-copy>p {
    font-size: 16px;
  }

  .demo-controls {
    margin: 27px auto 48px;
    max-width: 310px;
    gap: 18px;
  }

  .game-button {
    height: 88px;
  }

  .game-button img {
    width: 76px;
    height: 66px;
  }

  .game-button span {
    top: 100px;
    font-size: 16px;
  }

  .game-button:before,
  .game-button:after {
    box-shadow: 0 63px 0 -1px var(--yellow);
  }

  .demo-options {
    justify-content: center;
    gap: 11px;
  }

  .demo-status {
    margin: 13px auto 0;
    min-height: 42px;
    font-size: 13px!important;
  }

  .demo-scene {
    width: 320px;
    max-width: 100%;
    min-height: 450px;
  }

  .demo-score {
    right: 4px;
  }

  .demo-incoming {
    top: 22px;
  }

  .demo-stack {
    top: 186px;
  }

  .impact {
    top: 282px;
  }

  .journey {
    height: 430px;
  }

  .journey .section-inner {
    padding-top: 35px;
  }

  .journey h2 {
    font-size: 28px;
    max-width: 280px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .journey p {
    font-size: 14px;
    max-width: 270px;
  }

  .download {
    padding: 40px 0 45px;
  }

  .download h2 {
    font-size: 23px;
    line-height: 1.5;
    margin-bottom: 21px;
  }

  .site-footer {
    padding: 30px 22px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer nav {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    gap: 18px;
    font-size: 11px;
    margin-top: 7px;
  }

  .site-footer small {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
    font-size: 10px;
  }

  .site-footer>p {
    grid-row: 2;
  }

  .company-logo {
    font-size: 22px;
  }

  .company-header .brand {
    font-size: 22px;
  }

  .company-header nav {
    gap: 15px;
  }

  .company-main {
    padding: 55px 23px 65px;
  }

  .company-main>h1 {
    font-size: 40px;
  }

  .company-main>p {
    font-size: 16px;
    margin: 24px 0 38px;
  }

  .game-feature {
    grid-template-columns: 1fr;
    box-shadow: 5px 5px 0 var(--yellow);
  }

  .company-art {
    min-height: 260px;
  }

  .company-art>img:first-child {
    width: 172px;
  }

  .company-builder {
    width: 75px;
    right: 20px;
  }

  .game-feature>div:last-child {
    padding: 29px 25px;
  }

  .game-feature h2 {
    font-size: 30px;
  }

  .game-feature p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .info-main {
    padding: 30px 22px 70px;
  }

  .info-main h1 {
    font-size: 33px;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .empty-state {
    padding: 45px 15px;
  }

  .empty-state h2 {
    font-size: 21px;
  }

  .empty-state p {
    font-size: 14px;
  }

  dialog {
    padding: 42px 24px 28px;
  }

  dialog h2 {
    font-size: 23px;
  }
}

@media (max-width:360px) {
  .site-header nav {
    gap: 10px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-copy {
    padding-left: 15px;
    padding-right: 15px;
  }

  .store-button {
    padding: 9px 12px;
    font-size: 14px;
  }

  .crane-sign {
    right: 2px;
  }

  .feel h2 {
    font-size: 38px;
  }

  .how h2 {
    font-size: 23px;
  }

  .download h2 {
    font-size: 21px;
  }
}

/* Reduced-motion preference applies to every route. */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation: none!important;
    transition: none!important;
  }

  .land .impact {
    opacity: 1;
  }

  .land .impact i {
    display: none;
  }

  .demo-incoming.falling {
    transform: none;
  }
}
