@font-face {
  font-family: 'Pixelify Sans';
  src: url('../arcade/fonts/PixelifySans.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../arcade/fonts/montserrat-core.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+20-7E, U+A0-BF, U+200B-200D, U+2010-2027, U+2030-203A, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../arcade/fonts/montserrat-rest.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+C0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-200A,
    U+200E-200F, U+2028-202F, U+203B-206F, U+2191, U+2193, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mollie Glaston';
  src: url('../arcade/fonts/mollie-glaston-core.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+20-7E, U+A0-BF, U+200B-200D, U+2010-2027, U+2030-203A, U+20AC, U+2122, U+2212, U+FB00-FB01,
    U+FB03, U+FB06;
}
@font-face {
  font-family: 'Mollie Glaston';
  src: url('../arcade/fonts/mollie-glaston-rest.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+C0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-200A,
    U+200E-200F, U+2028-202F, U+203B-206F, U+2191, U+2193, U+2215, U+FEFF, U+FFFD;
}
:root {
  --paper: #fefbf6;
  --ink: #164c63;
  --mint: #cbe7ef;
  --coral: #ec6608;
  --yellow: #fdb301;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: inherit;
  touch-action: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #0578a8;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
header {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d7e5eb;
  gap: 20px;
  padding: 23px 0;
}
.back,
.download {
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.wordmark {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 31px;
  text-decoration: none;
  line-height: 0.9;
}
.wordmark > span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 5px;
  margin: 8px 0 0 2px;
}
.download {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
}
main {
  max-width: 1020px;
  margin: auto;
  padding: 32px;
}
.player-intro {
  text-align: center;
  margin: 0 0 30px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 10px;
}
h1 {
  font-family: 'Pixelify Sans', sans-serif;
  font-weight: 400;
  font-size: 52px;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.1;
}
.player-intro > p:last-child {
  font-size: 13px;
  color: #526b77;
  margin: 13px 0 0;
}
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}
.console {
  background: var(--mint);
  padding: 21px;
  border: 2px solid var(--ink);
  border-radius: 22px 22px 44px 22px;
  box-shadow: 6px 7px 0 #7aaec1;
}
.console-top {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.4px;
  margin-bottom: 13px;
}
.screen {
  background: #08667f;
  border: 2px solid var(--ink);
  padding: 15px;
  border-radius: 12px 12px 22px 12px;
  position: relative;
}
canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 10/9;
  image-rendering: pixelated;
  background: var(--paper);
  display: block;
}
#welcome {
  position: absolute;
  inset: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fefbf6;
  padding: 18px;
}
#welcome > img {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  margin-bottom: 18px;
}
h2 {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0 0 20px;
}
#welcome h2 {
  font-size: 25px;
}
#launch {
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 7px;
  padding: 11px 27px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
}
#status {
  font-size: 10px;
  line-height: 1.5;
  margin: 18px 0 0;
  max-width: 235px;
}
.controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 23px;
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(3, 34px);
  filter: drop-shadow(2px 3px 0 #113c53);
}
.dpad button {
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 22px;
  padding: 0;
  line-height: 1;
}
.up {
  grid-column: 2;
}
.left {
  grid-column: 1;
  grid-row: 2;
}
.right {
  grid-column: 3;
  grid-row: 2;
}
.down {
  grid-column: 2;
  grid-row: 3;
}
.dpad-center {
  background: var(--ink);
  grid-column: 2;
  grid-row: 2;
}
.small-controls {
  display: flex;
  gap: 7px;
  align-self: flex-end;
  margin-bottom: 10px;
}
.small-controls button {
  background: var(--ink);
  color: var(--paper);
  font-size: 7px;
  letter-spacing: 0.5px;
  border: 0;
  border-radius: 12px;
  padding: 7px 8px;
}
.actions {
  display: flex;
  gap: 10px;
  transform: rotate(-15deg);
  padding-bottom: 5px;
}
.actions button {
  width: 47px;
  height: 47px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 2px 3px 0 #7aaec1;
  font-size: 18px;
}
.controls button.pressed {
  filter: brightness(0.8);
  transform: translateY(2px);
}
.player-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #8fb9ca;
}
.player-toolbar button {
  font-size: 9px;
  padding: 7px 9px;
  background: #fefbf6;
  border: 1px solid #427c92;
  border-radius: 5px;
  touch-action: manipulation;
}
.player-toolbar > span {
  font-size: 8px;
  text-align: center;
  max-width: 110px;
  color: #17526b;
}
.play-guide h2 {
  font-size: 34px;
  margin-bottom: 17px;
}
.guide-star {
  display: block;
  font-size: 42px;
  color: #ec6608;
  line-height: 1;
  margin-bottom: 22px;
}
.play-guide p {
  color: #526b77;
  font-size: 12px;
  line-height: 1.85;
}
.keyboard-guide {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 25px 0;
  font-size: 10px;
  font-weight: 700;
}
.keyboard-guide > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
kbd {
  font:
    9px 'Montserrat',
    sans-serif;
  font-weight: 850;
  border: 1px solid #bfd6e0;
  border-bottom-width: 3px;
  border-radius: 4px;
  padding: 3px 7px;
  min-width: 25px;
  text-align: center;
  background: #eaf3f6;
}
.touch-note {
  font-size: 10px !important;
  margin-top: 22px;
}
.save-note {
  border-top: 1px solid #d7e5eb;
  padding-top: 22px;
  margin-top: 25px;
  font-size: 11px;
}
.save-note p {
  font-size: 10px;
}
.cartridge-title {
  font-size: 9px !important;
  margin-top: 22px;
  color: #526b77 !important;
}
footer {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 25px auto 0;
  padding: 25px 0 30px;
  border-top: 1px solid #d7e5eb;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #526b77;
}
#controller {
  display: none !important;
}
@media (max-width: 800px) {
  .player-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .console {
    padding: 15px;
  }
  .screen {
    padding: 10px;
  }
  #welcome {
    inset: 10px;
  }
  #welcome > img {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }
  #welcome h2 {
    font-size: 21px;
  }
  #status {
    font-size: 9px;
  }
  .dpad {
    grid-template-columns: repeat(3, 28px);
    grid-template-rows: repeat(3, 28px);
  }
  .actions {
    gap: 7px;
  }
  .actions button {
    width: 37px;
    height: 37px;
    font-size: 15px;
  }
  .small-controls {
    gap: 4px;
  }
  .small-controls button {
    font-size: 6px;
    padding: 6px;
  }
  .controls {
    gap: 5px;
  }
  .player-toolbar > span {
    display: none;
  }
  .play-guide h2 {
    font-size: 29px;
  }
}
@media (max-width: 600px) {
  header {
    width: calc(100% - 32px);
    padding: 20px 0;
    gap: 10px;
  }
  .wordmark {
    font-size: 27px;
  }
  .wordmark > span {
    font-size: 6px;
    letter-spacing: 4px;
  }
  .back {
    font-size: 10px;
  }
  .download {
    font-size: 9px;
    padding: 7px 9px;
  }
  main {
    padding: 25px 19px;
  }
  .player-intro {
    margin-bottom: 25px;
  }
  h1 {
    font-size: 42px;
  }
  .player-intro > p:last-child {
    font-size: 12px;
  }
  .player-layout {
    display: flex;
    flex-direction: column;
    gap: 45px;
  }
  .console {
    width: 100%;
    max-width: 440px;
    padding: 16px;
    box-shadow: 4px 5px 0 #7aaec1;
  }
  .screen {
    padding: 11px;
  }
  #welcome {
    inset: 11px;
  }
  #welcome > img {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
  }
  #welcome h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }
  #status {
    margin-top: 15px;
    font-size: 9px;
  }
  .dpad {
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(3, 34px);
  }
  .actions button {
    width: 45px;
    height: 45px;
    font-size: 17px;
  }
  .actions {
    gap: 9px;
  }
  .small-controls {
    gap: 5px;
    margin-bottom: 7px;
  }
  .small-controls button {
    font-size: 6px;
    padding: 7px;
  }
  .player-toolbar {
    margin-top: 20px;
    padding-top: 13px;
  }
  .player-toolbar > span {
    display: block;
    font-size: 7px;
    max-width: 100px;
  }
  .player-toolbar button {
    font-size: 9px;
  }
  .play-guide {
    max-width: 440px;
    width: 100%;
  }
  .guide-star {
    display: none;
  }
  .play-guide h2 {
    font-size: 32px;
    margin-bottom: 14px;
  }
  .play-guide p {
    font-size: 12px;
  }
  .keyboard-guide {
    margin: 20px 0;
  }
  .touch-note {
    margin-top: 18px;
  }
  .save-note {
    margin-top: 20px;
    padding-top: 18px;
  }
  footer {
    width: calc(100% - 40px);
    font-size: 9px;
    margin-top: 0;
  }
}
@media (max-width: 360px) {
  .wordmark {
    display: none;
  }
  .dpad {
    grid-template-columns: repeat(3, 30px);
    grid-template-rows: repeat(3, 30px);
  }
  .actions button {
    width: 37px;
    height: 37px;
  }
  .actions {
    gap: 7px;
  }
  .player-toolbar > span {
    display: none;
  }
  #welcome > img {
    width: 48px;
    height: 48px;
  }
  #welcome h2 {
    font-size: 21px;
  }
  #launch {
    padding: 8px 20px;
  }
}
/* The website's /play page supplies its own title, help and surrounding chrome. */
body.embedded-player { background: transparent; }
.embedded-player > header, .embedded-player > footer,
.embedded-player .player-intro, .embedded-player .play-guide { display: none; }
.embedded-player main { padding: 0; margin: 0; width: 100%; max-width: none; }
.embedded-player .player-layout { display: block; margin: 0; }
.embedded-player .console { width: 100%; max-width: 480px; margin: 0 auto; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Mollie Glaston', Georgia, serif;
  color: #ec6608;
}
.wordmark img {
  width: 34px;
  height: 42px;
  object-fit: contain;
}
.wordmark > .wordmark-name {
  font-family: 'Mollie Glaston', Georgia, serif;
  font-size: 29px;
  letter-spacing: -0.5px;
  font-weight: 400;
  margin: 0;
}
.wordmark-name > span {
  display: block;
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: #077b9a;
  margin-top: 7px;
}
.console {
  border-radius: 8px 8px 24px 8px;
}
.screen {
  border-radius: 0 0 8px 0;
}
#launch {
  background: #c74a0a;
  color: #fff;
  border-radius: 0;
}
.player-toolbar button,
.download,
kbd {
  border-radius: 0;
}
h1 {
  color: #0578a8;
  font-weight: 600;
  font-size: 56px;
}
.play-guide h2 {
  color: #0578a8;
  font-weight: 600;
}
.guide-star {
  font-family: 'Pixelify Sans', monospace;
  font-size: 38px;
}
@media (max-width: 600px) {
  .wordmark > .wordmark-name {
    font-size: 23px;
  }
  .wordmark img {
    display: none;
  }
  .wordmark-name > span {
    font-size: 9px;
  }
  h1 {
    font-size: 44px;
  }
  .wordmark {
    display: flex;
  }
  .console {
    border-radius: 6px 6px 20px 6px;
  }
}
@media (max-width: 360px) {
  .wordmark {
    display: none;
  }
}
