@font-face {
  font-family: Geist;
  src: url("../assets/fonts/geist-variable.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("../assets/fonts/geist-mono-variable.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --desk: #eeedf2;
  --ink: #303137;
  --muted: #63616d;
  --mint: #236d67;
  --focus: #246e9b;
}
* {
  box-sizing: border-box;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: Geist, Arial, sans-serif;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
}
[hidden] {
  display: none !important;
}
.masthead {
  height: 84px;
  margin: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d5d3dc;
}
.identity {
  font-size: 23px;
  font-weight: 700;
  text-decoration: none;
}
.identity span {
  color: var(--mint);
  font-size: 12px;
  margin-left: 4px;
}
.edition,
.eyebrow,
footer {
  font:
    10px Mono,
    monospace;
}
.mode-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 12px;
  text-decoration: none;
}
.mode-switch small {
  font: 9px Mono;
}
.switch-track {
  width: 30px;
  height: 18px;
  border-radius: 12px;
  background: var(--mint);
  padding: 3px;
}
.switch-track:after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  transform: translateX(12px);
}
main {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 900px);
  align-items: center;
  gap: 0 28px;
  padding: 24px 4% 32px;
}
.intro {
  padding-left: 12px;
  padding-bottom: 90px;
}
.eyebrow {
  color: var(--muted);
  margin-bottom: 28px;
}
h1 {
  font:
    400 50px/1.06 Georgia,
    serif;
  margin: 0 0 26px;
}
h1 em {
  color: #657c75;
}
.intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.regular-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 12px;
  text-underline-offset: 5px;
}
.console-stage {
  min-width: 0;
}
.console {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
}
.hardware {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.upper-screen,
.lower-screen {
  position: absolute;
  overflow: auto;
  scrollbar-width: thin;
  border-radius: 2px;
  color: #193d3a;
  overscroll-behavior: contain;
}
.upper-screen {
  left: 21.45%;
  top: 12.76%;
  width: 56.94%;
  height: 33.65%;
  background: #a0d7cc url("city-wallpaper.webp") center/cover;
  display: flex;
  flex-direction: column;
  padding: 3%;
}
.screen-bar {
  display: flex;
  justify-content: space-between;
  font: 9px Mono;
  flex-shrink: 0;
}
.status-led {
  color: #225b45;
}
.upper-screen h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 14px 0 16px;
  font-weight: 600;
}
.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.apps a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #f6faf1f5;
  border: 1px solid #c0d0c0;
  border-radius: 6px;
  padding: 7px;
  font-size: 11px;
  font-weight: 550;
  min-height: 43px;
  transition:
    background 0.12s,
    transform 0.12s;
}
.apps a[data-selected="true"] {
  background: #fff9d9;
  border-color: #296f61;
  box-shadow: 0 0 0 2px #296f61;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  background: #d2e9cf;
  color: #214936;
  border-radius: 4px;
  font: 12px Mono;
}
.apps a:nth-child(2n) .app-icon {
  background: #d4e5f6;
  color: #304867;
}
.apps a:nth-child(3n) .app-icon {
  background: #f0d8df;
  color: #793850;
}
.screen-footer {
  margin-top: auto;
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
  font: 8px Mono;
  background: #e9f5e3df;
}
.lower-screen {
  left: 27.1%;
  top: 55.66%;
  width: 45.8%;
  height: 28.56%;
  background: #f2f5ec;
  padding: 2.4% 2.6%;
  display: flex;
  flex-direction: column;
}
.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #bdcbbb;
  padding-bottom: 10px;
  flex-shrink: 0;
}
.map-heading h2 {
  font-size: 16px;
  margin: 0;
}
.map-heading > span {
  font: 7px Mono;
}
.lower-screen nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 12px 0;
}
.lower-screen nav a {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid #d1daca;
}
.lower-screen nav a > span {
  font: 8px Mono;
  color: #566955;
}
.lower-screen nav a[data-selected="true"] {
  color: #174f44;
  background: #d9e9d2;
}
.full-section {
  font-size: 10px;
  margin-top: auto;
  min-height: 24px;
  display: flex;
  align-items: center;
  text-underline-offset: 3px;
}
#detail-view {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
#detail-view h2 {
  font-size: 22px;
  margin: 8px 0;
}
#detail-view p {
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0;
}
#detail-view > a {
  font-size: 11px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  font-weight: 600;
}
#back {
  border: 0;
  background: #edf6e9;
  color: #254b42;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  margin-top: 8px;
}
.upper-screen:has(#detail-view:not([hidden])) {
  background: #e5f1e4;
}
.hit {
  position: absolute;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  min-width: 0;
  z-index: 3;
}
.hit:hover {
  background: #25695615;
}
.hit:active,
.hit.pressed {
  background: #25695635;
  box-shadow: inset 0 2px 4px #18241d55;
}
.circle-pad {
  left: 11.5%;
  top: 57.9%;
  width: 10.8%;
  height: 9.2%;
}
.d-up {
  left: 14.7%;
  top: 70.1%;
  width: 4%;
  height: 3.9%;
}
.d-down {
  left: 14.7%;
  top: 75.4%;
  width: 4%;
  height: 4%;
}
.d-left {
  left: 11.5%;
  top: 73%;
  width: 4%;
  height: 3.8%;
}
.d-right {
  left: 18%;
  top: 73%;
  width: 3.6%;
  height: 3.8%;
}
.x-button {
  left: 80.1%;
  top: 59.2%;
  width: 4.5%;
  height: 4.5%;
}
.y-button {
  left: 75.9%;
  top: 63%;
  width: 4.5%;
  height: 4.5%;
}
.a-button {
  left: 84.2%;
  top: 63%;
  width: 4.5%;
  height: 4.5%;
}
.b-button {
  left: 80.2%;
  top: 66.6%;
  width: 4.5%;
  height: 4.5%;
}
.select-button {
  left: 32.5%;
  top: 86.5%;
  width: 9.3%;
  height: 3.1%;
  border-radius: 4px;
}
.home-button {
  left: 44%;
  top: 85.9%;
  width: 11.8%;
  height: 4.4%;
  border-radius: 4px;
}
.start-button {
  left: 57.9%;
  top: 86.5%;
  width: 9.4%;
  height: 3.1%;
  border-radius: 4px;
}
.power-button {
  left: 77.2%;
  top: 85.1%;
  width: 4.2%;
  height: 4.2%;
}
.toolbar {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: -18px;
}
.toolbar button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #464b49;
  font-size: 12px;
  padding: 8px;
}
.toolbar button:hover {
  color: var(--mint);
}
#audio-status {
  font-size: 11px;
  color: #8b362e;
}
#audio-status:empty {
  display: none;
}
#key-help {
  width: 100%;
  text-align: center;
  font: 11px/1.8 Mono;
  margin: 8px 0;
}
.console[data-off="true"] .upper-screen,
.console[data-off="true"] .lower-screen {
  background: #11191c;
}
.console[data-off="true"] .upper-screen > *,
.console[data-off="true"] .lower-screen > * {
  visibility: hidden;
}
footer {
  margin: 0 5%;
  padding: 24px 0;
  border-top: 1px solid #d5d3dc;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}
footer a {
  text-underline-offset: 4px;
  padding: 10px;
  margin: -10px;
}
.no-script {
  padding: 20px;
  text-align: center;
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    padding-inline: 2%;
  }
  h1 {
    font-size: 40px;
  }
  .intro {
    padding-bottom: 30px;
  }
  .upper-screen h2 {
    font-size: 20px;
    margin: 8px 0;
  }
  .apps {
    gap: 6px;
  }
  .apps a {
    font-size: 10px;
    padding: 5px;
    min-height: 34px;
  }
  .app-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .lower-screen nav {
    margin: 7px 0;
    gap: 3px 6px;
  }
  .lower-screen nav a {
    font-size: 10px;
    min-height: 27px;
  }
  .map-heading {
    padding-bottom: 6px;
  }
  .map-heading h2 {
    font-size: 14px;
  }
  .screen-footer {
    font-size: 7px;
  }
  .screen-bar {
    font-size: 8px;
  }
}
@media (max-width: 850px) {
  main {
    display: flex;
    flex-direction: column;
    padding: 30px 0 24px;
    gap: 12px;
  }
  .intro {
    text-align: center;
    padding: 0 16px;
  }
  .eyebrow {
    display: none;
  }
  h1 {
    font-size: 38px;
    margin-bottom: 10px;
  }
  h1 br {
    display: none;
  }
  h1 em {
    margin-left: 8px;
  }
  .intro > p:not(.eyebrow) {
    font-size: 13px;
    margin: 6px 0;
  }
  .intro > p br {
    display: none;
  }
  .regular-link {
    display: none;
  }
  .console-stage {
    width: min(760px, 100%);
  }
  .toolbar {
    margin-top: 0;
  }
  .edition {
    font-size: 8px;
  }
  .upper-screen h2 {
    font-size: 22px;
  }
  .apps a {
    font-size: 12px;
    min-height: 40px;
  }
  .app-icon {
    width: 24px;
    height: 24px;
  }
  .lower-screen nav a {
    font-size: 12px;
    min-height: 32px;
  }
}
@media (max-width: 520px) {
  .masthead {
    height: 64px;
  }
  .edition {
    display: none;
  }
  .identity {
    font-size: 20px;
  }
  .mode-switch {
    font-size: 11px;
  }
  main {
    padding-top: 24px;
    gap: 15px;
  }
  h1 {
    font-size: 30px;
  }
  .intro > p:not(.eyebrow) {
    font-size: 12px;
  }
  .upper-screen {
    padding: 2%;
  }
  .screen-bar {
    font-size: 6px;
  }
  .upper-screen h2 {
    font-size: 13px;
    margin: 6px 0;
  }
  .apps {
    gap: 5px;
  }
  .apps a {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 30px;
    padding: 3px 1px;
    font-size: 8px;
    border-radius: 3px;
  }
  .app-icon {
    display: none;
  }
  .screen-footer {
    font-size: 5px;
    padding-top: 4px;
  }
  .map-heading {
    padding-bottom: 4px;
  }
  .map-heading h2 {
    font-size: 10px;
  }
  .map-heading > span {
    font-size: 5px;
  }
  .lower-screen {
    padding: 1.8%;
  }
  .lower-screen nav {
    gap: 2px 5px;
    margin: 4px 0;
  }
  .lower-screen nav a {
    font-size: 8px;
    gap: 4px;
    min-height: 19px;
  }
  .lower-screen nav a > span {
    font-size: 6px;
  }
  .full-section {
    font-size: 7px;
    min-height: 15px;
  }
  #detail-view h2 {
    font-size: 12px;
    margin: 5px 0;
  }
  #detail-view p {
    font-size: 10px;
    margin: 5px 0;
    line-height: 1.4;
  }
  #detail-view > a {
    font-size: 9px;
    min-height: 25px;
  }
  #back {
    font-size: 8px;
    margin-top: 4px;
    padding: 3px 5px;
  }
  .toolbar {
    gap: 0 12px;
  }
  .toolbar button {
    font-size: 11px;
  }
  #key-help {
    font-size: 10px;
    padding: 0 15px;
  }
  .hit {
    min-width: 24px;
    min-height: 24px;
  }
  .d-up {
    transform: translate(-2px, -6px);
  }
  .d-down {
    transform: translate(-2px, 4px);
  }
  .d-left {
    transform: translate(-7px, -1px);
  }
  .d-right {
    transform: translate(1px, -1px);
  }
  footer {
    font-size: 8px;
  }
  .upper-screen,
  .lower-screen {
    scrollbar-width: none;
  }
}
@media (max-width: 360px) {
  .upper-screen h2 { margin-block: 4px; }
  .apps a { min-height: 26px; }
  .upper-screen .screen-footer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
