:root {
  --header-color: #f3e8c9;
  --nav-active: #f3cb76;
  --nav-ink: #182b49;
  --accent: #f3cb76;
}
body {
  background: #172b40;
  color: #f3e8c9;
  font-family: monospace;
  overflow-x: hidden;
}
.site-header {
  position: absolute;
}
.arcade-hero {
  padding: 135px 5% 70px;
  max-width: 1460px;
  margin: auto;
}
.arcade-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 35px;
  gap: 24px;
}
.arcade-heading .sample-label {
  font-size: 9px;
  color: #9bdbc3;
}
.arcade-heading h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(36px, 4.8vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-top: 20px;
  font-weight: 800;
}
.arcade-heading h1 span {
  color: #f3cb76;
}
.arcade-heading > p {
  font-size: 12px;
  line-height: 2;
  color: #c9d8d7;
}
.arcade-machine {
  background: #31485b;
  border: 3px solid #0d1930;
  box-shadow: 9px 9px 0 #0d1930;
  padding: 12px;
}
.machine-top,
.machine-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 18px;
  font-size: 9px;
  letter-spacing: 0.06em;
}
.power-light {
  color: #9bdbc3;
}
.game-screen {
  position: relative;
  aspect-ratio: 16/9;
  background: #9dc5da;
  border: 5px solid #0d1930;
  overflow: hidden;
}
#arcade {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  outline: none;
  touch-action: none;
}
.screen-gloss {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    #0d19300a 3px,
    #0d19300a 4px
  );
  pointer-events: none;
  z-index: 4;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  color: #fff5d8;
  background: #122c4659;
}
.game-overlay[hidden] {
  display: none;
}
.pixel-label {
  font: 10px monospace;
  letter-spacing: 0.14em;
}
.game-overlay h2 {
  font-family: monospace;
  font-size: clamp(32px, 5.5vw, 83px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
  color: #fff1bf;
  text-shadow:
    4px 4px 0 #182b49,
    7px 7px 0 #f17b6d;
  margin: 22px 0;
}
.game-overlay > p {
  font-size: 12px;
  margin-bottom: 24px;
  text-shadow: 1px 1px #182b49;
  line-height: 1.8;
}
.pixel-button {
  background: #f3cb76;
  color: #182b49;
  border: 3px solid #182b49;
  box-shadow: 5px 5px 0 #182b49;
  padding: 18px 24px;
  font: 700 12px monospace;
  letter-spacing: 0.04em;
}
.pixel-button:hover {
  background: #fff0be;
  transform: translate(-1px, -1px);
}
.pixel-button:active {
  box-shadow: 2px 2px 0 #182b49;
  transform: translate(3px, 3px);
}
.pixel-button.alternate {
  background: #9bdbc3;
}
.game-overlay > small {
  font-size: 9px;
  margin-top: 20px;
  color: #f3e8c9;
}
.machine-bottom {
  padding: 18px 12px 6px;
}
.machine-bottom p {
  font-size: 11px;
  margin-top: 10px;
  line-height: 1.8;
}
.machine-bottom p > span {
  font-size: 9px;
  margin-left: 15px;
  color: #bacbc7;
}
kbd {
  border: 1px solid #91a7b0;
  padding: 4px 8px;
  font-family: monospace;
}
.game-buttons {
  display: flex;
  gap: 12px;
}
.game-buttons button {
  border: 2px solid #0d1930;
  box-shadow: 3px 3px 0 #0d1930;
  padding: 12px 20px;
  background: #e59180;
  color: #172b40;
  font: 700 15px monospace;
  touch-action: none;
  user-select: none;
}
.game-buttons button:first-child {
  background: #849f9f;
}
.game-buttons button.held {
  background: #f3cb76;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #0d1930;
}
.arcade-status {
  font-size: 10px;
  text-align: center;
  color: #b9d2d0;
  margin-top: 28px;
  min-height: 20px;
}
.result-buttons {
  display: flex;
  gap: 16px;
}
.ad-story {
  padding: 90px 7%;
  background: #f3e8c9;
  color: #182b49;
  border-top: 10px solid #f17b6d;
}
.ad-story > .sample-label {
  font-size: 9px;
}
.ad-story h2 {
  font-size: clamp(29px, 3.8vw, 56px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.04em;
  margin: 35px 0 50px;
}
.ad-story h2 span {
  background: #9bdbc3;
}
.ad-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
.ad-examples article {
  border-top: 2px solid #182b49;
  padding-top: 20px;
}
.ad-examples article > span {
  font-size: 9px;
}
.ad-examples h3 {
  font-size: 19px;
  letter-spacing: -0.04em;
  margin: 22px 0 15px;
}
.ad-examples p {
  font-size: 12px;
  line-height: 2;
}
.arcade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 5%;
  font-size: 8px;
  gap: 20px;
}
.arcade-footer .motion-toggle {
  font-size: 8px;
}
.paused-overlay {
  background: #182b49d4;
}
.game-screen:has(canvas:focus-visible) {
  outline: 3px solid #f3cb76;
  outline-offset: 5px;
}
@media (max-width: 700px) {
  .arcade-hero {
    padding: 110px 4% 45px;
  }
  .arcade-heading {
    display: block;
    margin-bottom: 25px;
  }
  .arcade-heading h1 {
    font-size: 12vw;
  }
  .arcade-heading > p {
    font-size: 11px;
    margin-top: 22px;
  }
  .arcade-heading .sample-label {
    font-size: 7px;
  }
  .arcade-machine {
    padding: 7px;
    box-shadow: 5px 5px 0 #0d1930;
  }
  .machine-top {
    font-size: 6px;
    padding: 7px 2px 12px;
    gap: 8px;
  }
  .machine-top > span:nth-child(2) {
    display: none;
  }
  .game-screen {
    aspect-ratio: 16/9;
  }
  #arcade {
    object-fit: contain;
  }
  .game-overlay h2 {
    font-size: 27px;
    margin: 8px 0;
    text-shadow:
      2px 2px 0 #182b49,
      4px 4px 0 #f17b6d;
  }
  .game-overlay > .pixel-label {
    font-size: 7px;
  }
  .game-overlay > p {
    font-size: 8px;
    margin: 0 12px 9px;
  }
  .game-overlay > small {
    font-size: 6px;
    margin-top: 9px;
  }
  .pixel-button {
    font-size: 9px;
    padding: 12px 14px;
    box-shadow: 3px 3px 0 #182b49;
  }
  .machine-bottom {
    padding: 12px 3px 4px;
    gap: 10px;
  }
  .machine-bottom .pixel-label {
    font-size: 7px;
  }
  .machine-bottom p {
    font-size: 9px;
    margin-top: 8px;
  }
  .machine-bottom p > span {
    display: block;
    font-size: 7px;
    margin: 4px 0 0;
  }
  .game-buttons {
    gap: 7px;
  }
  .game-buttons button {
    padding: 12px;
    font-size: 12px;
  }
  .arcade-status {
    font-size: 9px;
    line-height: 1.8;
    margin: 24px 12px 0;
  }
  .result-buttons {
    gap: 8px;
    flex-direction: row;
  }
  .result-buttons .pixel-button {
    font-size: 8px;
    padding: 9px 8px;
  }
  .ad-story {
    padding: 55px 6%;
  }
  .ad-story > .sample-label {
    font-size: 7px;
  }
  .ad-story h2 {
    font-size: 7vw;
    margin: 30px 0;
  }
  .ad-examples {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ad-examples h3 {
    font-size: 19px;
    margin: 16px 0 10px;
  }
  .ad-examples p {
    font-size: 11px;
  }
  .arcade-footer {
    flex-wrap: wrap;
    font-size: 7px;
  }
  .arcade-footer > span {
    display: none;
  }
}
