@font-face {
  font-family: ArcadeSystem;
  src: local("Avenir Next"), local("Avenir"), local("Segoe UI");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: ArcadeSystem, Inter, system-ui, sans-serif;
  color: #263d38;
  background: #f5f2e9;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
#world:focus-visible {
  outline: 3px solid #ef995c;
  outline-offset: 5px;
}
button {
  border: 0;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
[hidden] {
  display: none !important;
}
.game-page {
  height: 100svh;
  overflow: hidden;
  background: #bcd3c8;
}
.world {
  position: fixed;
  inset: 0;
  outline: none !important;
  touch-action: none;
}
.world canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(27, 50, 44, 0.2),
    transparent 19%,
    transparent 70%,
    rgba(18, 42, 35, 0.22)
  );
}
.game-header {
  position: fixed;
  z-index: 5;
  top: max(22px, env(safe-area-inset-top));
  left: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.back {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #f6f3e5e8;
  text-decoration: none;
  font-size: 23px;
  box-shadow: 0 5px 18px #183e3510;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 16px #e5efda;
  color: #24483b;
}
.brand-lockup small {
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.brand-lockup strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
}
.game-page[data-game="night-market"] .brand-lockup {
  color: #f0dec2;
  text-shadow: 0 1px 12px #1a292a;
}
.utility {
  position: fixed;
  z-index: 6;
  right: 26px;
  bottom: 24px;
  display: flex;
  gap: 7px;
}
.utility button,
.utility select {
  border: 1px solid #f5eedb66;
  background: #f5f2e5ec;
  color: #355046;
  padding: 9px 12px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 16px #183e3510;
}
.stats {
  position: fixed;
  z-index: 4;
  right: 26px;
  top: 22px;
  display: flex;
  gap: 0;
  border: 1px solid #f5eedb88;
  border-radius: 16px;
  background: #f6f3e9ef;
  box-shadow: 0 7px 26px #20463514;
  backdrop-filter: blur(14px);
}
.stats > div {
  min-width: 83px;
  padding: 13px 18px;
  text-align: center;
}
.stats > div + div {
  border-left: 1px solid #34534415;
}
.stats span {
  display: block;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #6c7f6d;
  font-weight: 800;
}
.stats strong {
  display: block;
  font-size: 18px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.objective {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  width: min(430px, 40vw);
  text-align: center;
  color: #fff8e7;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 2px 5px #17382ccc;
  pointer-events: none;
}
.progress-track {
  height: 3px;
  max-width: 190px;
  margin: 12px auto 0;
  background: #ffffef44;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff1b7;
  transition: width 0.15s;
}
.panel {
  z-index: 10;
  position: fixed;
  border: 1px solid #fffdf0aa;
  background: #faf7ecef;
  border-radius: 23px;
  padding: 31px 33px;
  box-shadow: 0 20px 70px #1d3e372e;
  backdrop-filter: blur(24px);
  max-width: 440px;
}
.intro {
  left: 40px;
  bottom: 64px;
  width: 400px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #7d8670;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.panel h1,
.panel h2 {
  font:
    normal 48px/0.98 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 0 0 17px;
  color: #24483b;
}
.panel p {
  font-size: 13px;
  line-height: 1.7;
  color: #627368;
  margin: 0 0 19px;
}
.panel .keys {
  font-size: 10px;
  line-height: 1.8;
  border-top: 1px solid #64795925;
  padding-top: 14px;
  margin-top: 20px;
  margin-bottom: 0;
}
.button-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  border-radius: 10px;
  min-height: 43px;
  padding: 12px 19px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
}
.primary {
  color: #fbf5e4;
  background: #295240;
  box-shadow: 0 5px 12px #24483b1a;
}
.primary:hover {
  background: #1f4032;
  transform: translateY(-1px);
}
.secondary {
  color: #3c5948;
  background: #e8ebdb;
}
.secondary:hover {
  background: #dee4d2;
}
.panel .micro {
  font-size: 10px;
  margin: 12px 0 0;
  color: #82917a;
}
.modal {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 38px);
  text-align: center;
  box-shadow:
    0 0 0 100vmax #14362d40,
    0 24px 90px #15372955;
}
.modal h2 {
  font-size: 37px;
  letter-spacing: -1.2px;
}
.modal .button-row {
  justify-content: center;
}
.score-number {
  font:
    normal 68px/1.2 Georgia,
    serif;
  color: #b57744;
  margin: 10px 0;
}
.modal .best {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
.modal textarea {
  width: 100%;
  height: 110px;
  margin-top: 14px;
  font-size: 12px;
}
.help p {
  text-align: left;
}
.toast {
  z-index: 9;
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translate(-50%, -12px);
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  background: #fff8e8ed;
  color: #365b48;
  padding: 12px 19px;
  border: 1px solid #fff9ed;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
  max-width: min(520px, 85vw);
  text-align: center;
  pointer-events: none;
  box-shadow: 0 5px 18px #253b3520;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.bad {
  color: #a65740;
}
.controls {
  position: fixed;
  z-index: 4;
  bottom: 80px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.joystick {
  pointer-events: auto;
  position: relative;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: 1px solid #f3efd780;
  background: #eff0db2b;
  box-shadow: inset 0 0 0 13px #f9f6e310;
  touch-action: none;
  display: grid;
  place-items: center;
  backdrop-filter: blur(3px);
}
.joystick:before {
  content: "↑";
  position: absolute;
  top: 4px;
  font-size: 14px;
  color: #fff5df;
}
.joystick-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f6f1ddba;
  border: 1px solid #fff9e9;
  box-shadow: 0 5px 15px #23463625;
  pointer-events: none;
}
.action-buttons {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  pointer-events: auto;
}
.action-buttons button {
  background: #f5f2e5eb;
  border: 1px solid #fff8e5;
  border-radius: 50px;
  color: #365640;
  min-width: 88px;
  min-height: 48px;
  padding: 12px 19px;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 6px 20px #1d422e20;
  touch-action: none;
  user-select: none;
}
.action-buttons #action {
  background: #2c5648ed;
  color: #fff3d4;
  border-color: #799584;
  min-height: 59px;
  min-width: 115px;
}
.action-buttons button.held {
  transform: scale(0.96);
  filter: brightness(1.2);
}
.desktop-keys {
  position: absolute;
  left: 0;
  bottom: -26px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: #faf1dc;
  text-shadow: 0 1px 3px #173f34;
}
.game-page:not([data-phase="playing"]) .controls,
.game-page:not([data-phase="playing"]) .objective,
.game-page:not([data-phase="playing"]) .stats,
.game-page:not([data-phase="playing"]) .order-board {
  visibility: hidden;
}
.loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #e7ecdf;
  color: #395545;
  text-align: center;
  padding: 30px;
}
.loading strong {
  font:
    normal 27px Georgia,
    serif;
}
.loading small {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.order-board {
  position: fixed;
  left: 28px;
  top: 102px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 4;
}
.order {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f5f1e5ed;
  border: 1px solid #f3ead080;
  border-radius: 10px;
  padding: 8px 12px 10px;
  min-width: 160px;
  font-size: 11px;
  color: #354e43;
  box-shadow: 0 5px 16px #14292712;
}
.order strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--meal);
  font:
    700 13px Georgia,
    serif;
}
.order i {
  position: absolute;
  height: 3px;
  background: var(--meal);
  bottom: 0;
  left: 0;
  transition: width 0.12s;
}
.game-page[data-game="night-market"] .objective {
  bottom: 40px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* Collection */
.collection {
  background: #f3f0e7;
}
.collection-header {
  max-width: 1260px;
  margin: auto;
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.collection-header a {
  text-decoration: none;
}
.collection-header .monogram {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 750;
}
.monogram i {
  display: grid;
  place-items: center;
  background: #315340;
  color: #f8efdb;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font:
    normal 22px Georgia,
    serif;
}
.collection-header nav {
  display: flex;
  gap: 26px;
  color: #65735d;
}
.collection-hero {
  position: relative;
  max-width: 1260px;
  margin: 32px auto 64px;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 35px;
}
.collection-hero h1 {
  font:
    normal clamp(67px, 7.4vw, 104px)/0.9 Georgia,
    serif;
  letter-spacing: -5px;
  margin: 22px 0;
  color: #294b3b;
}
.collection-hero h1 em {
  font-weight: normal;
  color: #b7764b;
}
.collection-hero p {
  max-width: 350px;
  font-size: 14px;
  line-height: 1.8;
  color: #75806c;
}
.collection-hero .eyebrow {
  font-size: 10px;
}
.hero-art {
  position: relative;
  border-radius: 48% 48% 15px 15px;
  overflow: hidden;
  background: #b8d5c5;
  aspect-ratio: 1/1.06;
  box-shadow: 0 20px 50px #37593d0c;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-art .live-world {
  position: absolute;
  inset: 0;
}
.hero-art .live-world canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-stamp {
  position: absolute;
  bottom: 23px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
  color: #f9f4db;
  background: #294d3dbb;
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border: 1px solid #edf0cd55;
  border-radius: 9px;
}
.hero-stamp a {
  font-size: 12px;
  text-decoration: none;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  margin-top: 18px;
  border-bottom: 1px solid #395442;
  padding-bottom: 9px;
}
.collection-main {
  max-width: 1260px;
  margin: auto;
  padding: 0 36px 70px;
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-top: 25px;
  border-top: 1px solid #36583c26;
}
.collection-heading h2 {
  font:
    normal 25px Georgia,
    serif;
  margin: 0;
  letter-spacing: -0.5px;
}
.collection-heading span {
  font-size: 10px;
  color: #7a856e;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 30px;
}
.world-card a {
  text-decoration: none;
}
.world-art {
  position: relative;
  display: block;
  aspect-ratio: 1.28;
  overflow: hidden;
  border-radius: 13px;
  background: #c4d5c4;
}
.world-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  display: block;
}
.world-card:hover .world-art img {
  transform: scale(1.035);
}
.world-number {
  position: absolute;
  left: 18px;
  top: 18px;
  background: #fff8e5d9;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font:
    italic 15px Georgia,
    serif;
  color: #5f7258;
}
.play-pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #f8f3e2ec;
  padding: 12px 19px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 750;
  color: #3e5944;
}
.world-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 15px;
  padding: 19px 3px 0;
}
.world-copy h3 {
  font:
    normal 30px Georgia,
    serif;
  letter-spacing: -1px;
  margin: 0;
}
.world-copy p {
  grid-column: 1/-1;
  max-width: 390px;
  margin: 6px 0;
  color: #7b8472;
  font-size: 13px;
  line-height: 1.7;
}
.world-copy .genre {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #89927c;
  align-self: center;
}
.collection-notes {
  margin-top: 60px;
  background: #e9eadc;
  border: 1px solid #47623c16;
  border-radius: 13px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.collection-notes h3 {
  font:
    normal 20px Georgia,
    serif;
  margin: 0 0 8px;
}
.collection-notes p {
  color: #7a846d;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.archive-link {
  margin-top: 45px;
  border-top: 1px solid #34533820;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #7d886f;
  font-size: 12px;
  line-height: 1.7;
}
.archive-link a {
  color: #375a42;
  text-decoration: none;
}
.collection-footer {
  max-width: 1260px;
  padding: 20px 36px 35px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #89917d;
}
@media (max-width: 850px) {
  .stats {
    top: 83px;
    right: 20px;
  }
  .stats > div {
    min-width: 68px;
    padding: 9px 12px;
  }
  .stats strong {
    font-size: 15px;
  }
  .game-header {
    left: 20px;
    top: 18px;
  }
  .toast {
    top: 158px;
  }
  .utility {
    right: 18px;
    bottom: 20px;
  }
  .objective {
    bottom: 31px;
    left: 20px;
    transform: none;
    width: 48vw;
    text-align: left;
  }
  .progress-track {
    margin-left: 0;
  }
  .order-board {
    top: 150px;
    left: 18px;
    gap: 5px;
  }
  .order {
    min-width: 130px;
    padding: 5px 8px 7px;
    font-size: 10px;
  }
  .collection-hero {
    gap: 20px;
    margin-top: 15px;
  }
  .collection-hero h1 {
    font-size: 72px;
  }
  .collection-header,
  .collection-main,
  .collection-hero {
    padding-left: 25px;
    padding-right: 25px;
  }
  .collection-notes {
    gap: 20px;
    padding: 24px;
  }
  .world-copy h3 {
    font-size: 26px;
  }
  .world-copy .genre {
    font-size: 8px;
  }
}
@media (max-width: 600px) {
  .game-header {
    left: 15px;
    gap: 10px;
  }
  .back {
    width: 35px;
    height: 35px;
    font-size: 19px;
  }
  .brand-lockup strong {
    font-size: 17px;
  }
  .brand-lockup small {
    font-size: 7px;
  }
  .stats {
    top: 76px;
    left: 15px;
    right: 15px;
    justify-content: space-around;
    border-radius: 12px;
  }
  .stats > div {
    min-width: 0;
    flex: 1;
    padding: 7px 6px;
  }
  .stats span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .stats strong {
    font-size: 15px;
  }
  .utility {
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 4px;
  }
  .utility button,
  .utility select {
    font-size: 9px;
    padding: 8px;
  }
  .utility #sound {
    max-width: 63px;
  }
  .intro {
    left: 16px;
    right: 16px;
    bottom: 70px;
    width: auto;
    max-width: 380px;
    padding: 23px 26px;
  }
  .panel h1 {
    font-size: 43px;
  }
  .panel p {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .panel .keys {
    font-size: 9px;
    padding-top: 10px;
    margin-top: 14px;
  }
  .intro .micro {
    display: none;
  }
  .controls {
    bottom: 92px;
    left: 20px;
    right: 20px;
  }
  .joystick {
    width: 86px;
    height: 86px;
  }
  .action-buttons {
    gap: 7px;
    max-width: 65%;
  }
  .action-buttons button {
    min-width: 64px;
    padding: 9px 12px;
    font-size: 10px;
    min-height: 42px;
  }
  .action-buttons #action {
    min-width: 98px;
    min-height: 53px;
  }
  .objective {
    left: 20px;
    bottom: 194px;
    width: calc(100% - 40px);
    text-align: center;
    font-size: 11px;
  }
  .progress-track {
    margin-left: auto;
  }
  .desktop-keys {
    font-size: 8px;
    bottom: -19px;
  }
  .toast {
    top: 142px;
    padding: 9px 13px;
    font-size: 11px;
  }
  .order-board {
    top: 136px;
    right: 15px;
    left: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .order {
    min-width: 0;
    font-size: 9px;
  }
  .order strong {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .game-page[data-game="night-market"] .objective {
    bottom: 190px;
  }
  .collection-header {
    padding: 22px 20px;
  }
  .collection-header nav {
    gap: 16px;
    font-size: 11px;
  }
  .collection-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 23px;
    margin: 25px auto 35px;
    gap: 30px;
  }
  .collection-hero h1 {
    font-size: 83px;
    margin: 16px 0;
    letter-spacing: -4px;
  }
  .collection-hero p {
    max-width: 310px;
    font-size: 13px;
  }
  .collection-hero .eyebrow {
    font-size: 9px;
  }
  .hero-art {
    aspect-ratio: 1.2;
    border-radius: 44% 44% 12px 12px;
  }
  .hero-stamp {
    left: 15px;
    right: 15px;
    bottom: 16px;
    padding: 12px;
    font-size: 8px;
  }
  .hero-cta {
    margin-top: 7px;
  }
  .collection-main {
    padding: 0 20px 40px;
  }
  .collection-heading h2 {
    font-size: 22px;
  }
  .collection-heading span {
    font-size: 8px;
  }
  .world-grid {
    grid-template-columns: 1fr;
    gap: 33px;
  }
  .world-art {
    aspect-ratio: 1.24;
  }
  .world-copy h3 {
    font-size: 28px;
  }
  .world-copy .genre {
    font-size: 9px;
  }
  .collection-notes {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
    padding: 25px;
  }
  .archive-link {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 30px;
    gap: 5px;
  }
  .collection-footer {
    padding: 15px 20px 28px;
    font-size: 9px;
    gap: 20px;
  }
  .modal {
    padding: 28px 25px;
  }
  .modal h2 {
    font-size: 33px;
  }
}
@media (max-height: 560px) and (min-width: 600px) {
  .intro {
    bottom: 25px;
    left: 25px;
    padding: 23px;
    max-width: 370px;
  }
  .panel h1 {
    font-size: 37px;
  }
  .panel .keys {
    margin-top: 12px;
  }
  .controls {
    bottom: 62px;
  }
  .objective {
    bottom: 20px;
  }
  .utility {
    bottom: 15px;
  }
  .stats {
    top: 18px;
  }
  .game-header {
    top: 18px;
  }
  .toast {
    top: 89px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.minimap {
  position: fixed;
  z-index: 3;
  left: 27px;
  top: 99px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 4px solid #fbf4dfcc;
  box-shadow: 0 5px 20px #274a3928;
  opacity: 0.95;
  pointer-events: none;
}
.game-page:not([data-phase="playing"]) .minimap {
  visibility: hidden;
}
@media (max-width: 850px) {
  .minimap {
    top: 145px;
    width: 108px;
    height: 108px;
    left: 20px;
  }
}
@media (max-width: 600px) {
  .minimap {
    top: 137px;
    left: 16px;
    width: 92px;
    height: 92px;
    border-width: 3px;
  }
}

@media (max-width: 600px) {
  .game-page[data-game="wake-runner"] .action-buttons {
    gap: 5px;
    max-width: none;
  }
  .game-page[data-game="wake-runner"] .action-buttons button {
    min-width: 48px;
    padding: 9px 7px;
  }
  .game-page[data-game="wake-runner"] .action-buttons #action {
    min-width: 82px;
  }
}

/* Wake Runner: clear summer colour, with high-contrast navigation. */
.game-page[data-game="wake-runner"] {
  color: #123d50;
}
.game-page[data-game="wake-runner"] .vignette {
  background: linear-gradient(
    180deg,
    #0c38560d,
    transparent 22%,
    transparent 80%,
    #073e581a
  );
}
.game-page[data-game="wake-runner"] .panel {
  background: #fff9eb;
  border: 1px solid #fffdf5;
  box-shadow: 0 20px 64px #003c5729;
}
.game-page[data-game="wake-runner"] .panel h1,
.game-page[data-game="wake-runner"] .brand-lockup {
  color: #093d56;
}
.game-page[data-game="wake-runner"] .primary,
.game-page[data-game="wake-runner"] .action-buttons #action {
  background: #f9bb28;
  color: #183e50;
  border-color: #ffe29a;
}
.game-page[data-game="wake-runner"] .stats,
.game-page[data-game="wake-runner"] .utility button,
.game-page[data-game="wake-runner"] .utility select {
  background: #fff9ebf5;
  color: #123d50;
}
.game-page[data-game="wake-runner"] .progress-track i {
  background: #ffd02b;
}

.welcome-sound {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 16px;
  background: #12455b;
  color: #fff5d9;
  border-radius: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.welcome-sound[hidden] {
  display: none;
}

/* Each world has its own strong accent and readable, warm control surfaces. */
.game-page[data-game="ridge-rush"] {
  --world-ink: #163e35;
  --world-accent: #ffc52d;
  --world-paper: #fff8e8;
}
.game-page[data-game="bucket-brigade"] {
  --world-ink: #103f54;
  --world-accent: #ffbd24;
  --world-paper: #fff9ea;
}
.game-page[data-game="night-market"] {
  --world-ink: #272441;
  --world-accent: #ffbe55;
  --world-paper: #fff2e5;
}
.game-page:is(
    [data-game="ridge-rush"],
    [data-game="bucket-brigade"],
    [data-game="night-market"]
  )
  .panel {
  background: var(--world-paper);
  color: var(--world-ink);
  border: 1px solid #fffaf0;
  box-shadow: 0 20px 65px #092c3e35;
}
.game-page:is(
    [data-game="ridge-rush"],
    [data-game="bucket-brigade"],
    [data-game="night-market"]
  )
  :is(.primary, .action-buttons #action) {
  background: var(--world-accent);
  color: var(--world-ink);
  border-color: #fff0b4;
}
.game-page:is(
    [data-game="ridge-rush"],
    [data-game="bucket-brigade"],
    [data-game="night-market"]
  )
  :is(.stats, .utility button, .utility select) {
  background: var(--world-paper);
  color: var(--world-ink);
}
.game-page:is([data-game="ridge-rush"], [data-game="bucket-brigade"])
  .vignette {
  background: linear-gradient(
    180deg,
    #0639470c,
    transparent 25%,
    transparent 80%,
    #06394718
  );
}
.game-page[data-game="night-market"] .vignette {
  background: linear-gradient(
    180deg,
    #100e3520,
    transparent 25%,
    transparent 80%,
    #100e3530
  );
}
.game-page[data-game="night-market"] .welcome-sound {
  background: #413258;
}
.station-bar {
  position: fixed;
  left: 50%;
  bottom: 135px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.station-bar button {
  min-height: 46px;
  padding: 11px 16px;
  border: 2px solid var(--station-color);
  border-radius: 13px;
  background: #211e3beb;
  color: #fff6e7;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 20px #090c2030;
  white-space: nowrap;
}
.station-bar button[data-state="ready"] {
  background: #176947;
  color: #f5ffe5;
  border-color: #6fffaf;
}
.station-bar button[data-state="burned"] {
  background: #8c294b;
  border-color: #ff829c;
}
.game-page:not([data-phase="playing"]) .station-bar {
  visibility: hidden;
}
@media (max-width: 600px) {
  .station-bar {
    width: calc(100% - 24px);
    bottom: 178px;
    gap: 5px;
  }
  .station-bar button {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 7px 5px;
    font-size: 10px;
    white-space: normal;
  }
}
@media (max-height: 580px) and (min-width: 601px) {
  .station-bar {
    bottom: 78px;
  }
}

@media (max-width: 600px) {
  .game-page[data-game="night-market"] .objective {
    bottom: 238px;
  }
}

@media (max-width: 600px) {
  .game-page[data-game="night-market"] .toast {
    top: 225px;
  }
}
