@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Chakra+Petch:wght@400;600;700&display=swap");

:root {
  --sky: #102d38;
  --sky-soft: #184a46;
  --cloud: #95fff0;
  --red: #7d4cff;
  --red-dark: #29124c;
  --brown: #1c4737;
  --brick: #173d38;
  --brick-dark: #061f24;
  --grass: #5dff75;
  --grass-dark: #15965a;
  --coin: #ffe45d;
  --coin-dark: #8a6b08;
  --black: #06131a;
  --panel: #146f73;
  --panel-dark: #083d48;
  --text: #f4ffe2;
  --ink: #071a1f;
  --line: #020609;
  --pixel-font: "Press Start 2P", "Courier New", monospace;
  --body-font: "Chakra Petch", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
canvas,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
label {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 28px 16px;
  background:
    linear-gradient(90deg, #211045 0%, #0b3440 56%, #3b145d 100%);
  border-bottom: 7px solid var(--line);
  box-shadow: inset 0 -6px 0 #29e2bd, inset 0 -13px 0 var(--red-dark);
}

.brand-lockup,
.main-nav,
.pixel-btn,
.section-head,
.panel-label,
.quest-card span,
.footer-inner {
  font-family: var(--pixel-font);
  letter-spacing: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--coin);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  text-shadow: 3px 3px 0 var(--coin-dark);
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  object-position: 50% 36%;
  background: #fff2a4;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--coin-dark);
}

.coin-dot {
  width: 18px;
  height: 25px;
  display: inline-block;
  background: var(--coin);
  border: 3px solid var(--coin-dark);
  border-radius: 50%;
  box-shadow: inset 3px 0 0 #fff09f;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  min-width: 0;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
}

.main-nav a {
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--red-dark);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #62ffd6;
  outline: none;
}

.stage-section {
  position: relative;
  min-height: calc(100svh - 120px);
  padding: 66px 16px 138px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(98, 255, 214, .10) 0 1px, transparent 1px 100%) 0 0 / 96px 96px,
    linear-gradient(0deg, rgba(93, 255, 117, .12) 0 26%, transparent 26% 100%),
    linear-gradient(180deg, #102d38 0%, #153f4b 58%, #082228 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 94vw);
  margin: 0 auto;
  text-align: center;
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 72px;
  height: 22px;
  background: rgba(149, 255, 240, .78);
  box-shadow:
    24px -12px 0 rgba(149, 255, 240, .78),
    48px 0 0 rgba(149, 255, 240, .78),
    24px 12px 0 rgba(149, 255, 240, .78);
  opacity: .72;
}

.cloud-one {
  top: 96px;
  left: 11%;
}

.cloud-two {
  top: 154px;
  right: 16%;
}

.cloud-three {
  top: 52%;
  left: 31%;
}

.question-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 26px;
}

.question-row span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #082228;
  background: #57ffd0;
  border: 6px solid #158a7e;
  box-shadow: inset 6px 6px 0 #c8fff4, 5px 5px 0 rgba(0, 0, 0, .32);
  font: 20px var(--pixel-font);
}

.level-kicker {
  margin: 0 0 18px;
  font-family: var(--pixel-font);
  font-size: 10px;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  display: grid;
  gap: 14px;
  color: var(--coin);
  font-family: var(--pixel-font);
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--coin-dark), 8px 8px 0 rgba(53, 242, 189, .25);
}

.hero-title span {
  display: block;
  font-size: 54px;
}

.hero-title strong {
  display: block;
  color: #62ffd6;
  font-size: 24px;
  text-shadow: 4px 4px 0 var(--red-dark);
}

.hero-copy {
  width: min(760px, 92vw);
  margin: 24px auto 28px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .32);
}

.hero-stage {
  width: min(920px, 94vw);
  margin: 0 auto 26px;
}

.arcade-frame {
  padding: 12px;
  background: linear-gradient(135deg, #7d4cff 0%, #18cbb5 100%);
  border: 7px solid var(--red-dark);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .42), 0 0 0 5px rgba(98, 255, 214, .18);
}

.arcade-screen {
  position: relative;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(93, 255, 117, .18) 0 14px, transparent 14px 100%) bottom left / 92px 126px repeat-x,
    linear-gradient(180deg, #052231 0%, #0b6970 54%, #0b342b 54%, #0b342b 100%);
  border: 8px solid var(--line);
}

.arcade-screen::before,
.arcade-screen::after {
  content: "";
  position: absolute;
  bottom: 92px;
  z-index: 1;
  width: 68px;
  background: #17a06e;
  border: 8px solid #075540;
  border-bottom: 0;
  box-shadow: inset 12px 0 0 rgba(255, 255, 255, .13);
}

.arcade-screen::before {
  left: 10%;
  height: 144px;
}

.arcade-screen::after {
  right: 9%;
  height: 214px;
}

.screen-hud {
  position: absolute;
  top: 16px;
  right: 18px;
  left: 18px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.screen-stat {
  display: grid;
  grid-template-columns: 28px auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  width: 132px;
  color: #fff;
  font-family: var(--pixel-font);
  text-align: left;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--line);
}

.screen-stat-right {
  justify-self: end;
}

.life-gem,
.screen-stat .coin-dot {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  border: 4px solid var(--line);
  transform: rotate(45deg);
}

.life-gem {
  background: #48ff8c;
  box-shadow: inset 4px 4px 0 #c8fff4;
}

.screen-stat .coin-dot {
  border-radius: 50%;
  background: var(--coin);
  box-shadow: inset 5px 0 0 #ffe66e;
}

.screen-stat strong {
  align-self: end;
  color: var(--coin);
  font-size: 13px;
}

.screen-stat em,
.screen-stat b {
  grid-column: 1 / -1;
  font-style: normal;
  line-height: 1;
}

.screen-stat em {
  margin-top: 8px;
  font-size: 18px;
}

.screen-stat b {
  width: fit-content;
  margin-top: 6px;
  padding: 4px 6px;
  color: var(--coin);
  background: var(--line);
  font-size: 18px;
}

.screen-title-pill {
  position: absolute;
  top: 86px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: inline-block;
  padding: 9px 13px 7px;
  color: #62ffd6;
  background: var(--line);
  border: 4px solid #24d6b8;
  font-family: var(--pixel-font);
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.dupe-runner {
  --dupe-cycle: 9.2s;
  --walk-scale: .24;
  --fly-scale: .30;
  position: absolute;
  bottom: 82px;
  left: 6%;
  z-index: 5;
  width: 313px;
  height: 339px;
  isolation: isolate;
  transform: scale(var(--walk-scale));
  transform-origin: bottom center;
  animation: dupe-run-path var(--dupe-cycle) linear infinite;
  will-change: left, bottom, transform;
}

.dupe-walk-sprite,
.dupe-fly-layer,
.dupe-fly-sprite,
.dupe-shot,
.runner-shadow {
  position: absolute;
  display: block;
}

.dupe-walk-sprite {
  left: 34px;
  bottom: 0;
  z-index: 2;
  width: 250px;
  height: 250px;
  background: url("images/player-sheet2.png") no-repeat -1px -1px;
  image-rendering: pixelated;
  animation:
    dupe-walk-cycle .46s steps(1, end) infinite,
    dupe-walk-visibility var(--dupe-cycle) steps(1, end) infinite;
}

.dupe-fly-layer {
  inset: 0;
  z-index: 2;
  opacity: 0;
  animation: dupe-fly-visibility var(--dupe-cycle) steps(1, end) infinite;
}

.dupe-fly-sprite {
  inset: 0;
  background: url("images/player-sheet0.png") center / contain no-repeat;
  image-rendering: pixelated;
  animation: dupe-fly-frame-a .38s steps(1, end) infinite;
}

.dupe-fly-sprite-alt {
  background-image: url("images/player-sheet1.png");
  opacity: 0;
  animation-name: dupe-fly-frame-b;
}

.dupe-shot {
  left: 236px;
  top: 180px;
  z-index: 3;
  width: 74px;
  height: 74px;
  background: url("images/pump.png") center / cover no-repeat;
  border: 4px solid rgba(98, 255, 214, .7);
  border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(2, 6, 9, .6);
  image-rendering: pixelated;
  opacity: 0;
  animation: dupe-shot-burst var(--dupe-cycle) linear infinite;
}

.runner-shadow {
  left: 58px;
  bottom: 26px;
  z-index: 1;
  width: 176px;
  height: 26px;
  background: rgba(0, 0, 0, .24);
  border-radius: 50%;
  animation: dupe-shadow var(--dupe-cycle) steps(1, end) infinite;
}

.dupe-runner::after {
  content: "";
  position: absolute;
  left: 238px;
  top: 190px;
  z-index: 4;
  width: 34px;
  height: 30px;
  background:
    linear-gradient(90deg, transparent 0 6px, var(--coin) 6px 18px, transparent 18px 100%),
    linear-gradient(0deg, transparent 0 9px, #62ffd6 9px 21px, transparent 21px 100%);
  opacity: 0;
  image-rendering: pixelated;
  animation: dupe-muzzle-flash var(--dupe-cycle) steps(1, end) infinite;
}

.game-ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 92px;
  background:
    linear-gradient(90deg, var(--coin) 0 7px, transparent 7px 100%) 0 29px / 37px 31px repeat,
    linear-gradient(90deg, #24d66f 0 16px, #5dff75 16px 100%) top left / 34px 16px repeat-x,
    linear-gradient(180deg, #4eff80 0 18px, #183a36 18px 100%);
  border-top: 6px solid var(--line);
}

@keyframes dupe-walk-cycle {
  0%,
  32% {
    background-position: -1px -1px;
  }

  33%,
  65% {
    background-position: -253px -1px;
  }

  66%,
  100% {
    background-position: -1px -253px;
  }
}

@keyframes dupe-walk-visibility {
  0%,
  34%,
  76%,
  100% {
    opacity: 1;
  }

  35%,
  75% {
    opacity: 0;
  }
}

@keyframes dupe-fly-visibility {
  0%,
  34%,
  76%,
  100% {
    opacity: 0;
  }

  35%,
  75% {
    opacity: 1;
  }
}

@keyframes dupe-fly-frame-a {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes dupe-fly-frame-b {
  0%,
  49% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

@keyframes dupe-shot-burst {
  0%,
  55%,
  78%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(-14deg) scale(.58);
  }

  58% {
    opacity: 1;
    transform: translate(0, 0) rotate(-14deg) scale(.58);
  }

  69% {
    opacity: 1;
    transform: translate(390px, -34px) rotate(12deg) scale(.42);
  }

  77% {
    opacity: 0;
    transform: translate(470px, -48px) rotate(12deg) scale(.34);
  }
}

@keyframes dupe-muzzle-flash {
  0%,
  56%,
  60%,
  100% {
    opacity: 0;
  }

  57%,
  59% {
    opacity: 1;
  }
}

@keyframes dupe-run-path {
  0% {
    left: 7%;
    bottom: 82px;
    transform: scale(var(--walk-scale));
  }

  28% {
    left: 30%;
    bottom: 82px;
    transform: scale(var(--walk-scale));
  }

  40% {
    left: 42%;
    bottom: 156px;
    transform: scale(var(--fly-scale)) rotate(-4deg);
  }

  57% {
    left: 58%;
    bottom: 212px;
    transform: scale(var(--fly-scale)) rotate(-7deg);
  }

  70% {
    left: 69%;
    bottom: 138px;
    transform: scale(var(--fly-scale)) rotate(4deg);
  }

  78% {
    left: 73%;
    bottom: 82px;
    transform: scale(var(--walk-scale));
  }

  100% {
    left: 88%;
    bottom: 82px;
    transform: scale(var(--walk-scale));
  }
}

@keyframes dupe-shadow {
  0%,
  34%,
  76%,
  100% {
    opacity: 1;
  }

  35%,
  75% {
    opacity: .26;
  }
}

.cta-row,
.maker-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pixel-btn,
.square-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.pixel-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  background: #06131a;
  border: 4px solid var(--line);
  box-shadow: inset 0 -6px 0 #29124c, 5px 5px 0 rgba(0, 0, 0, .35);
  font-size: 10px;
  text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease;
}

.pixel-btn.primary {
  color: var(--ink);
  background: var(--coin);
  box-shadow: inset 0 -6px 0 var(--coin-dark), 5px 5px 0 rgba(0, 0, 0, .35);
}

.pixel-btn.small {
  min-height: 46px;
  padding: 0 14px;
  font-size: 9px;
}

.pixel-btn:hover,
.pixel-btn:focus-visible,
.square-btn:hover,
.square-btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: inset 0 -6px 0 #29124c, 7px 7px 0 rgba(0, 0, 0, .35);
  outline: none;
}

.pixel-btn.primary:hover,
.pixel-btn.primary:focus-visible {
  box-shadow: inset 0 -6px 0 var(--coin-dark), 7px 7px 0 rgba(0, 0, 0, .35);
}

.contract-panel {
  position: relative;
  width: min(790px, 94vw);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  text-align: left;
  background: linear-gradient(135deg, #146f73 0%, #183a62 100%);
  border: 5px solid #24d6b8;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .35);
}

.panel-label {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--panel-dark);
}

.contract-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: #fff;
  background: var(--line);
  border: 4px solid #24d6b8;
  outline: 0;
  font-family: var(--pixel-font);
  font-size: 10px;
}

.square-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #06131a;
  border: 4px solid var(--line);
  box-shadow: inset 0 -6px 0 #29124c, 5px 5px 0 rgba(0, 0, 0, .35);
}

.copy-tip {
  position: absolute;
  right: 16px;
  top: -28px;
  display: none;
  padding: 5px 8px;
  color: #fff;
  background: var(--line);
  border: 3px solid var(--coin-dark);
  font-family: var(--pixel-font);
  font-size: 9px;
}

.copy-tip.show {
  display: inline-block;
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 112px;
  background:
    linear-gradient(var(--grass) 0 18px, transparent 18px),
    linear-gradient(90deg, var(--grass-dark) 0 80px, var(--grass) 80px 160px) bottom / 160px 82px repeat-x;
  border-top: 6px solid #0d754f;
}

.ground::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  height: 42px;
  background:
    linear-gradient(90deg, transparent 0 78px, var(--brick-dark) 78px 82px) 0 0 / 82px 42px,
    var(--brick);
  border-top: 6px solid #24d6b8;
  border-bottom: 6px solid var(--brick-dark);
}

.section-pad {
  position: relative;
  padding: 86px 16px;
  background:
    linear-gradient(90deg, rgba(98, 255, 214, .09) 0 1px, transparent 1px 100%) 0 0 / 100px 100px,
    linear-gradient(180deg, #163c49 0%, var(--sky-soft) 100%);
  border-top: 6px solid #24d6b8;
}

.section-pad::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  background: linear-gradient(90deg, var(--brick) 0 76px, var(--brick-dark) 76px 80px) 0 0 / 80px 20px;
}

.section-head {
  width: min(1120px, 94vw);
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--coin);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--coin-dark);
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.star {
  color: #62ffd6;
  text-shadow: 3px 3px 0 var(--red-dark);
}

.dialog-panel {
  width: min(880px, 94vw);
  margin: 0 auto;
  padding: 36px 42px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0b3440 0%, #146f73 100%);
  border: 5px solid #24d6b8;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .38);
}

.dialog-panel p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.dialog-panel p + p {
  margin-top: 20px;
}

.quest-grid {
  position: relative;
  z-index: 1;
  width: min(1240px, 94vw);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.quest-card,
.maker-layout {
  border: 5px solid var(--line);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .34);
}

.quest-card:hover,
.quest-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .34);
  outline: none;
}

.maker-layout {
  width: min(1050px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 460px) 1fr;
  gap: 26px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #0b3440 0%, #183a62 100%);
}

.maker-stage {
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--line);
  border: 5px solid #24d6b8;
}

#makerCanvas {
  width: min(420px, 72vw);
  height: auto;
  display: block;
  background: var(--sky);
}

.maker-controls {
  min-width: 0;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 20px;
}

.swatch {
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  background: var(--sw);
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .3);
}

.swatch.active {
  outline: 4px solid #62ffd6;
  outline-offset: 3px;
}

.quest-grid {
  width: min(760px, 94vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quest-card {
  min-height: 155px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 20px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #06131a 0%, #102d38 100%);
  transition: transform .16s ease, box-shadow .16s ease;
}

.quest-card i {
  color: #62ffd6;
  font-size: 34px;
}

.quest-card span {
  font-size: 10px;
  text-transform: uppercase;
}

.quest-card small {
  color: var(--coin);
  font-family: var(--pixel-font);
  font-size: 8px;
  text-transform: uppercase;
}

.quest-card.is-empty {
  cursor: default;
}

.site-footer {
  padding: 52px 16px;
  color: #a5d5c9;
  background: var(--black);
  border-top: 7px solid #24d6b8;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  display: none;
  transform: translateX(-50%);
  padding: 12px 14px;
  color: #fff;
  background: var(--line);
  border: 4px solid var(--coin-dark);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
  font-family: var(--pixel-font);
  font-size: 9px;
  text-transform: uppercase;
}

.site-toast.show {
  display: block;
}

.footer-inner {
  width: min(1040px, 94vw);
  margin: 0 auto;
  text-align: center;
  font-size: 10px;
  line-height: 2;
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .main-nav {
    grid-column: 1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-title span {
    font-size: 42px;
  }

  .hero-title strong {
    font-size: 20px;
  }

  .maker-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 10px 12px 14px;
    gap: 10px;
  }

  .brand-lockup {
    font-size: 12px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--coin-dark);
  }

  .main-nav {
    gap: 16px;
    font-size: 10px;
  }

  .stage-section {
    min-height: auto;
    padding-top: 40px;
  }

  .question-row span {
    width: 46px;
    height: 46px;
    border-width: 5px;
  }

  .hero-title span {
    font-size: 30px;
  }

  .hero-title strong {
    font-size: 14px;
  }

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

  .arcade-frame {
    padding: 8px;
  }

  .arcade-screen {
    min-height: 320px;
    padding: 18px;
    border-width: 6px;
  }

  .screen-hud {
    top: 12px;
    right: 12px;
    left: 12px;
    gap: 10px;
  }

  .screen-stat {
    width: 96px;
    grid-template-columns: 23px auto;
  }

  .life-gem,
  .screen-stat .coin-dot {
    width: 19px;
    height: 19px;
    border-width: 3px;
  }

  .screen-stat strong {
    font-size: 10px;
  }

  .screen-stat em,
  .screen-stat b {
    font-size: 13px;
  }

  .screen-title-pill {
    top: 78px;
    font-size: 8px;
  }

  .dupe-runner {
    --dupe-cycle: 7.2s;
    --walk-scale: .16;
    --fly-scale: .20;
  }

  .game-ground {
    height: 78px;
  }

  .contract-panel {
    grid-template-columns: 1fr;
  }

  .square-btn {
    width: 46px;
    height: 46px;
  }

  .section-pad {
    padding: 64px 12px;
  }

  .section-head {
    gap: 10px;
  }

  .section-head h2 {
    font-size: 16px;
  }

  .dialog-panel {
    padding: 24px 18px;
  }

  .dialog-panel p {
    font-size: 17px;
  }

  .quest-grid {
    grid-template-columns: 1fr;
  }

  .maker-layout {
    padding: 16px;
  }

  .maker-actions {
    justify-content: flex-start;
  }

  .pixel-btn {
    width: 100%;
    min-height: 50px;
  }

  .pixel-btn.small {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
