:root {
  color-scheme: light;
  --ink: #172e3b;
  --cream: #fff9ea;
  --pink: #ff88ad;
  --mint: #9de8d2;
  --yellow: #ffdc70;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
  border: 2px solid var(--ink);
  color: var(--ink);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 4px solid #ff704b;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(1.06);
}
button:active {
  transform: translateY(2px);
}
[hidden] {
  display: none !important;
}
#app {
  max-width: 1480px;
  margin: auto;
  padding: 0 36px;
}
header {
  height: 79px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.wordmark {
  color: var(--cream);
  text-decoration: none;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1px;
}
.wordmark span {
  color: var(--pink);
  padding: 0 5px;
}
.header-note {
  font-size: 11px;
  letter-spacing: 2px;
  color: #b4c8cd;
}
nav {
  margin-left: auto;
  display: flex;
  gap: 9px;
}
nav button {
  height: 36px;
  min-width: 38px;
  padding: 0 10px;
  background: #29424e;
  color: var(--cream);
  border: 1px solid #59707a;
  border-radius: 9px;
}
.game-shell {
  overflow: hidden;
  border: 3px solid #091e2b;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 8px 0 #0b1f2c;
}
.hud {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 17px 26px 15px;
  min-height: 94px;
  border-bottom: 3px solid var(--ink);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 900;
  display: block;
}
.hud strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  margin-top: 3px;
}
.hud .order {
  margin: auto;
  max-width: 580px;
  width: 52%;
  text-align: center;
}
.hud .order strong {
  font-size: 19px;
  letter-spacing: -0.3px;
}
.timer {
  text-align: right;
  min-width: 75px;
}
.fill-track {
  height: 7px;
  border-radius: 8px;
  background: #e7dfcb;
  margin: 9px auto 0;
  max-width: 270px;
  overflow: hidden;
}
.fill-track i {
  display: block;
  background: #e66c49;
  width: 0;
  height: 100%;
  transition: width 0.2s;
}
#playfield {
  position: relative;
  background: #bde7e5;
  aspect-ratio: 1200/670;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.toast {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--cream);
  color: var(--ink);
  padding: 10px 22px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.on {
  opacity: 1;
}
.aim-hint {
  position: absolute;
  bottom: 13px;
  right: 21px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #26464b;
  background: #f6fbecbd;
  border-radius: 20px;
  padding: 7px 12px;
  pointer-events: none;
}
.control-deck {
  display: flex;
  gap: 24px;
  padding: 17px 22px 21px;
  color: var(--ink);
  border-top: 3px solid var(--ink);
}
.punch-controls {
  flex: 1.3;
}
.launcher-controls {
  flex: 1;
}
.station {
  display: block;
  font-size: 10px;
  letter-spacing: 1.6px;
  margin: 0 0 10px;
}
.buttons {
  display: flex;
  gap: 9px;
}
.action {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 59px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 9px 12px;
  overflow: hidden;
  flex: 1;
  font-size: 12px;
  white-space: nowrap;
}
.action small {
  font-size: 10px;
  display: block;
  font-weight: 500;
  margin-top: 4px;
}
kbd {
  font:
    900 12px "Trebuchet MS",
    sans-serif;
  padding: 5px;
  border: 1px solid #172e3b70;
  border-radius: 5px;
  background: #ffffff4d;
}
.pink {
  background: var(--pink);
}
.mint {
  background: var(--mint);
}
.yellow {
  background: var(--yellow);
}
.launch {
  background: var(--ink);
  color: var(--cream);
  justify-content: space-between;
  padding: 9px 20px;
}
.launch kbd {
  border-color: #ffffff60;
  background: #ffffff10;
}
.launch b {
  font-size: 23px;
  vertical-align: middle;
  margin-left: 12px;
}
.catch-controls {
  display: flex;
  gap: 5px;
}
.catch-controls button {
  border-radius: 9px;
  background: var(--mint);
  width: 42px;
}
#charge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: #b75429;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #b4c8cd;
  padding: 19px 3px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #122936b8;
  backdrop-filter: blur(7px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.menu-card,
.dialog {
  position: relative;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 9px 10px 0 #0b1e2bbc;
  padding: 34px 44px;
  text-align: center;
  width: 470px;
  max-width: 100%;
  margin: auto;
}
.menu-card:before {
  content: "✦";
  position: absolute;
  left: 22px;
  top: 124px;
  font-size: 47px;
  color: #f1744f;
  transform: rotate(-13deg);
}
.menu-card:after {
  content: "✦";
  position: absolute;
  right: 26px;
  top: 210px;
  font-size: 31px;
  color: #4c9c93;
}
.sticker {
  position: absolute;
  right: -22px;
  top: 27px;
  transform: rotate(12deg);
  padding: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 1px;
}
h1 {
  font-size: 86px;
  line-height: 0.82;
  letter-spacing: -6px;
  margin: 28px 0 13px;
  font-weight: 1000;
  transform: rotate(-4deg);
  text-shadow:
    3px 3px 0 var(--cream),
    5px 5px 0 var(--ink);
}
h1 span {
  color: #f37f91;
}
p {
  line-height: 1.6;
}
.tagline {
  font-size: 20px;
  margin: 21px 0 6px;
  letter-spacing: -0.5px;
}
.intro {
  font-size: 13px;
  font-weight: 500;
  color: #4a6068;
}
.steps {
  display: flex;
  justify-content: space-between;
  margin: 24px -9px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.steps b {
  display: block;
  font-size: 18px;
  color: #c95738;
  margin-bottom: 4px;
}
.start,
.secondary {
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 0 var(--ink);
  font-size: 14px;
}
.start {
  background: var(--pink);
  font-weight: 900;
}
.start > span,
.secondary > span {
  float: right;
}
.start small {
  display: block;
  font-size: 9px;
  margin: 7px 0 0;
  letter-spacing: 1px;
}
.secondary {
  margin-top: 14px;
  background: var(--cream);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 12px;
}
.chill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 23px;
}
.chill span {
  font-weight: 500;
  font-size: 11px;
}
.chill input {
  accent-color: var(--ink);
  width: 17px;
  height: 17px;
}
.best {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #637778;
  min-height: 12px;
}
.dialog {
  width: 540px;
  padding: 32px;
}
.dialog h2 {
  font-size: 38px;
  margin: 12px 0;
  letter-spacing: -1px;
}
.dialog #modal-body {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 23px;
}
.help-list {
  text-align: left;
  display: grid;
  gap: 13px;
}
.help-list strong {
  color: #af452c;
}
.results {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}
.results b {
  display: block;
  font-size: 34px;
}
.results span {
  font-size: 11px;
}
.stars {
  font-size: 43px;
  color: #dc8f13;
  letter-spacing: 8px;
}
.warn {
  color: #c34437 !important;
}
@media (min-width: 1450px) {
  #app {
    max-width: 1360px;
  }
  header {
    height: 88px;
  }
}
@media (max-width: 900px) {
  #app {
    padding: 0 14px;
  }
  header {
    height: 60px;
  }
  .header-note {
    display: none;
  }
  .hud {
    padding: 12px 17px;
    min-height: 80px;
    gap: 12px;
  }
  .hud strong {
    font-size: 25px;
  }
  .hud .order strong {
    font-size: 15px;
  }
  .control-deck {
    gap: 12px;
    padding: 13px;
  }
  .action {
    padding: 7px 9px;
    gap: 5px;
    font-size: 10px;
  }
  .action kbd {
    display: none;
  }
  .action small {
    font-size: 9px;
  }
  .station {
    font-size: 9px;
    letter-spacing: 0.6px;
  }
}
@media (max-width: 600px) {
  #app {
    padding: 0 8px;
  }
  .wordmark {
    font-size: 21px;
  }
  header {
    height: 58px;
  }
  .hud {
    padding: 10px 13px;
    gap: 8px;
    min-height: 79px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .hud strong {
    font-size: 24px;
  }
  .hud .order {
    width: 58%;
  }
  .hud .order strong {
    font-size: 12px;
  }
  .timer {
    min-width: 44px;
  }
  .game-shell {
    border-radius: 17px;
  }
  #playfield {
    aspect-ratio: 4/5;
  }
  canvas {
    object-fit: fill;
  }
  .control-deck {
    display: block;
    padding: 12px 11px 15px;
  }
  .launcher-controls {
    margin-top: 15px;
  }
  .action {
    min-height: 57px;
    font-size: 10px;
  }
  .action small {
    font-size: 10px;
  }
  .action kbd {
    display: none;
  }
  .launch {
    min-height: 51px;
    padding: 9px 18px;
  }
  .launch span {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
  }
  .launch small {
    margin: 0;
  }
  .station {
    margin-bottom: 8px;
  }
  .aim-hint {
    bottom: 8px;
    right: 8px;
    font-size: 8px;
    padding: 5px 8px;
  }
  .toast {
    font-size: 12px;
    padding: 9px 11px;
    max-width: 96%;
    white-space: normal;
    text-align: center;
  }
  footer {
    font-size: 8px;
    padding: 14px 5px;
    letter-spacing: 0.5px;
  }
  footer span:last-child {
    display: none;
  }
  .menu-card {
    padding: 29px 25px;
    width: 355px;
  }
  .sticker {
    right: -6px;
    font-size: 8px;
  }
  h1 {
    font-size: 78px;
  }
  .intro {
    font-size: 12px;
  }
  .menu-card:before {
    left: 13px;
    font-size: 34px;
  }
  .menu-card:after {
    right: 16px;
  }
  .chill {
    font-size: 11px;
  }
  .chill span {
    font-size: 10px;
  }
  .dialog {
    padding: 25px 20px;
  }
  .dialog h2 {
    font-size: 30px;
  }
}
@media (max-height: 750px) and (min-width: 700px) {
  #app {
    max-width: 1120px;
  }
  header {
    height: 54px;
  }
  .hud {
    min-height: 70px;
    padding: 9px 20px;
  }
  #playfield {
    max-height: calc(100dvh - 260px);
  }
  .control-deck {
    padding: 11px 18px 14px;
  }
  .menu-card {
    padding: 22px 34px;
    width: 420px;
  }
  h1 {
    font-size: 72px;
    margin-top: 20px;
  }
  .steps {
    margin: 17px 0;
  }
  .intro {
    margin: 8px 0;
  }
  .chill {
    margin-top: 18px;
  }
  footer {
    padding: 13px 3px;
  }
}

@media (min-width: 901px) {
  #app {
    max-width: min(1360px, calc((100dvh - 370px) * 1.79 + 72px));
  }
}
