* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus, currentColor);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  z-index: 99;
  left: 8px;
  top: -100px;
  padding: 10px 16px;
  background: #fff;
  color: #161616;
}
.skip:focus {
  top: 8px;
}
.mark {
  width: 1.4em;
  height: 1.4em;
  flex: none;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
:root {
  --shell: #2958ba;
  --lcd: #c2d6cb;
  --ink: #242f39;
  --focus: #f5af3a;
}
body {
  color: var(--ink);
  background: #c7dac6;
  font:
    700 15px/1.3 "Courier New",
    monospace;
}
.field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px 5vw;
}
.scenery,
.field:before {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.scenery {
  object-fit: cover;
  object-position: center 49%;
}
.field:before {
  content: "";
  z-index: -1;
  background: linear-gradient(
    90deg,
    #02160f2b 0%,
    transparent 45%,
    #05181167 100%
  );
}
.fieldword {
  align-self: start;
  justify-self: start;
  margin: 0;
}
.logolink {
  display: inline-block;
  line-height: 0;
}
.fieldword img {
  width: clamp(105px, 14vw, 235px);
  image-rendering: pixelated;
  filter: drop-shadow(1px 3px 0 #1118);
}
.console {
  width: min(100%, 465px, calc((100svh - 64px) * 0.9));
  min-width: 300px;
  filter: drop-shadow(8px 16px 12px #05150c80);
}
.lid,
.base {
  position: relative;
  border: 3px solid #19385e;
  background: linear-gradient(
    135deg,
    #75aafa 0%,
    #346bce 11%,
    #1e4aaf 72%,
    #407bd5 100%
  );
  box-shadow:
    inset 2px 3px 0 #a2cdfe,
    inset -3px -5px 0 #133889;
}
.lid {
  border-radius: 27px 27px 16px 16px;
  padding: 7% 9% 6%;
}
.topbezel,
.smallbezel {
  background: #162335;
  border: 3px inset #527bb1;
  border-radius: 10px;
  padding: 4%;
}
.lcd {
  position: relative;
  background: #9cb7af;
  aspect-ratio: 1.9;
  overflow: hidden;
  border: 2px solid #212e39;
}
.lcd img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}
.lcd:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 3px, #12251c25 4px);
}
#screenLabel {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: 8px;
  padding: 3px 7px;
  background: #c4f2dd;
  color: #192b35;
  font:
    bold 15px "Courier New",
    monospace;
}
.speakers {
  position: absolute;
  bottom: 3%;
  left: 46%;
  width: 8%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #12316d 0 3px,
    transparent 3px 5px
  );
}
.hinge {
  margin: -4px 4%;
  height: 13px;
  position: relative;
  z-index: 1;
  border: 1px solid #19376d;
  border-radius: 5px;
  background: linear-gradient(#193777, #7aacf6 30%, #19449d 85%);
}
.base {
  border-radius: 12px 12px 32px 32px;
  padding: 5% 9% 4%;
}
.smallbezel {
  border-radius: 6px;
  padding: 2.5%;
}
.menulcd {
  background: #b9cfc2;
  padding: 4px;
  display: grid;
}
.menulcd a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  text-decoration: none;
  padding: 3px 10px;
  color: #253831;
  border: 1px solid transparent;
}
.menulcd a[data-current],
.menulcd a:hover {
  background: #2d473d;
  color: #e4ffde;
  border-color: #839d8f;
}
.menulcd .mark {
  width: 22px;
  height: 22px;
  stroke-linejoin: miter;
}
.hardware {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}
.keyhint {
  font:
    700 10px/1.4 "Courier New",
    monospace;
  color: #dbe7ff;
  text-align: center;
}
.pad {
  display: grid;
  grid-template-columns: repeat(3, 27px);
  grid-template-rows: repeat(3, 23px);
  position: relative;
}
.pad:before {
  content: "";
  background: #1b2a42;
  grid-area: 2/2;
}
.pad button,
.ab button {
  color: #dfecff;
  background: linear-gradient(#374865, #1b2a42);
  border: 1px solid #101c2e;
  box-shadow:
    inset 0 1px #70849e,
    0 2px #132241;
  font: 700 17px/1 monospace;
  display: grid;
  place-content: center;
}
.pad button {
  border-radius: 3px;
}
#up {
  grid-area: 1/2;
}
#left {
  grid-area: 2/1;
}
#right {
  grid-area: 2/3;
}
#down {
  grid-area: 3/2;
}
.hardware button:active {
  transform: translateY(2px);
}
.ab {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ab button {
  width: 39px;
  height: 39px;
  border-radius: 50%;
}
#akey {
  margin-top: -20px;
}
.innerhead {
  background: #b7d6be;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  border-bottom: 3px solid #4b6460;
  gap: 8px;
}
.innerhead .logolink img {
  width: 76px;
}
.innerhead nav {
  display: flex;
  gap: clamp(5px, 2vw, 32px);
}
.innerhead nav a,
.cartaction,
.linkschip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  text-decoration: none;
  min-height: 44px;
}
.innerhead nav a:hover,
.innerhead nav [aria-current] {
  background: #294835;
  color: #dff0dc;
}
.page {
  min-height: calc(100svh - 80px);
  padding: clamp(16px, 4vw, 60px);
  background:
    linear-gradient(#1f3a29aa, #1c3729bb),
    url(/art/creek-handheld.webp) center/cover;
}
.cartridge {
  max-width: 940px;
  margin: auto;
  padding: clamp(15px, 3vw, 40px);
  border: 6px solid #253746;
  border-radius: 12px;
  background: #d3dfd0;
  box-shadow:
    inset 0 0 0 3px #a5b4a2,
    5px 6px #1732478c;
}
.label {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #214891;
}
.label h1 {
  margin: 0 0 10px;
  font:
    700 clamp(32px, 5vw, 64px)/1 "Courier New",
    monospace;
  letter-spacing: -0.075em;
}
.label .mark {
  width: 32px;
  height: 32px;
}
.albums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.albums a {
  text-decoration: none;
}
.albums b {
  display: block;
  padding-top: 6px;
}
.albums img,
.tourgrid img {
  border: 3px solid #4b5e60;
  width: 100%;
}
.tourgrid,
.puzzleworld {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.tourgrid ul {
  padding: 0;
  list-style: none;
}
.tourgrid li {
  padding: 7px 0;
  display: flex;
  gap: 14px;
  border-bottom: 1px dotted;
}
.tourgrid h2,
.puzzleworld h2,
.linkschip h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 44px);
  letter-spacing: -0.08em;
}
.cartaction,
.linkschip a {
  border: 2px outset #9bada0;
  background: #32483e;
  color: #edffe9;
  margin: 3px 0;
}
.linkschip {
  max-width: 480px;
  margin: auto;
  display: grid;
}
.linkschip img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  image-rendering: pixelated;
}
.page:has(.linkschip) .cartridge {
  max-width: 500px;
}
.puzzleworld #board {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  aspect-ratio: 1;
  align-self: start;
  background: #234787;
  gap: 2px;
}
.puzzleworld #board button {
  background-image: url(/art/whiplash.webp);
  background-size: 300% 300%;
  border: 0;
  min-width: 0;
}
.puzzleworld #board [aria-pressed="true"] {
  box-shadow: inset 0 0 0 5px #ffcf58;
}
.puzzleworld #board :focus-visible {
  outline-offset: -5px;
}
.recovery {
  font-size: 26px;
}
@media (max-width: 720px) {
  .field {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 15px 4vw max(15px, env(safe-area-inset-bottom));
    gap: 8px;
    min-height: 100svh;
  }
  .fieldword {
    align-self: flex-start;
    margin: 0 auto auto 0;
  }
  .fieldword img {
    width: 85px;
  }
  .scenery {
    object-position: 44% center;
  }
  .console {
    width: min(94vw, 385px);
    min-width: 0;
  }
  .lid {
    padding: 5% 9%;
  }
  .lcd {
    aspect-ratio: 2.8;
  }
  .base {
    padding: 4% 8%;
  }
  .hardware {
    margin-top: 10px;
  }
  .menulcd a {
    min-height: 44px;
  }
  .innerhead {
    padding: 0 2vw;
  }
  .innerhead .logolink img {
    width: 52px;
  }
  .innerhead nav a {
    flex-direction: column;
    gap: 1px;
    font-size: 11px;
    padding: 6px 5px;
  }
  .innerhead nav .mark {
    width: 17px;
    height: 17px;
  }
  .albums {
    grid-template-columns: 1fr 1fr;
  }
  .puzzleworld,
  .tourgrid {
    grid-template-columns: 1fr;
  }
  .tourgrid img {
    max-width: 350px;
  }
  .pad {
    grid-template-columns: repeat(3, 35px);
    grid-template-rows: repeat(3, 32px);
  }
  .ab button {
    width: 44px;
    height: 44px;
  }
}
@media (max-height: 650px) and (min-width: 721px) {
  .field {
    padding: 12px;
  }
  .console {
    width: 330px;
  }
  .lid {
    padding: 4% 9%;
  }
  .menulcd a {
    min-height: 32px;
  }
}
@media (min-width: 721px) {
  .scenery {
    object-position: 50% 8%;
  }
}
.fieldword img {
  filter: drop-shadow(1px 1px 0 #e5f1d8) drop-shadow(-1px -1px 0 #e5f1d8)
    drop-shadow(1px 2px 0 #1d3924);
}
