@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ground: #101013;
  --ink: #f6f4ed;
  --muted: #c3c0c1;
  --line: #45434b;
  --yellow: #ffe555;
  --aqua: #74deda;
  --pink: #ffb5c8;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  font:
    100%/1.45 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
}
::selection {
  color: var(--ground);
  background: var(--yellow);
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
a:hover {
  color: var(--yellow);
}
.shell {
  width: min(100%, 82rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 clamp(1.2rem, 5vw, 4.65rem);
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.mast,
.brand,
.meta,
.footer,
.fnav,
.steps {
  display: flex;
  align-items: center;
}
.mast {
  gap: 1.2rem;
  min-height: 5.4rem;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand {
  gap: 0.7rem;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 670;
}
.brand img {
  width: 1.8rem;
  height: 1.8rem;
  image-rendering: pixelated;
}
.brand .slash {
  color: #756f72;
  font-weight: 400;
}
.meta {
  gap: 1.6rem;
  font-size: 0.86rem;
}
.cut {
  color: var(--muted);
}
.contents {
  position: relative;
}
.contents summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.55rem 0;
  font-weight: 600;
}
.contents summary::-webkit-details-marker {
  display: none;
}
.contents summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.contents[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.contents ol {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 100%;
  min-width: 15rem;
  margin: 0.3rem 0 0;
  padding: 0.45rem;
  list-style: none;
  background: #202026;
  border: 1px solid var(--line);
}
.contents li a {
  display: block;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}
.contents li a[aria-current] {
  color: var(--yellow);
}
.skip {
  position: fixed;
  top: -10rem;
  left: 1rem;
  background: var(--yellow);
  color: #101013;
  padding: 0.75rem;
  z-index: 9;
}
.skip:focus {
  top: 1rem;
}
.skip:hover {
  color: #101013;
}
main {
  min-width: 0;
  align-self: center;
  padding: clamp(2.4rem, 6vh, 4.8rem) 0;
}
h1,
h2,
p,
figure,
dl,
dd,
ol {
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
}
h1 {
  font: 700 clamp(3.3rem, 6vw, 5.4rem) / 0.96 var(--display);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.18rem;
  line-height: 1.25;
}
h3 {
  margin: 0;
  font-size: 1.06rem;
}
p {
  max-width: 62ch;
}
strong {
  font-weight: 700;
}
.intro,
.sub {
  color: var(--muted);
}
.intro {
  font-size: clamp(1.12rem, 1.9vw, 1.48rem);
  line-height: 1.4;
  margin-top: 1rem;
}
.intro strong {
  color: var(--ink);
}
.hero,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.1rem, 6vw, 6rem);
}
.hero {
  grid-template-columns: 1.08fr 0.92fr;
}
.hero h1 {
  font-size: clamp(4.4rem, 9vw, 6rem);
}
.hero .intro {
  max-width: 30ch;
  margin-top: 1.55rem;
}
.hero .sub {
  margin-top: 1.1rem;
  max-width: 41ch;
  font-size: 1.04rem;
}
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--yellow);
  color: #151413;
  padding: 0.82rem 1.05rem;
  margin-top: 1.9rem;
  text-decoration: none;
  font-weight: 720;
}
.play-link:hover {
  color: #121213;
  background: #fff09a;
}
.play-link svg {
  width: 1.05rem;
  height: 1.05rem;
}
.cabinet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 25rem);
  justify-self: center;
}
.cabinet img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(19rem, 54vh, 29rem);
  image-rendering: pixelated;
  background: #000;
}
figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.38;
}
.cabinet figcaption {
  width: 100%;
  text-align: center;
}
.roadcols {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: 2rem;
}
.section-name {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--yellow);
  font-size: 1.1rem;
}
.timeline,
.work {
  list-style: none;
  padding: 0;
}
.timeline li,
.work li {
  padding: 0.78rem 0;
  border-bottom: 1px solid #33323a;
  display: grid;
  gap: 0.65rem;
  align-items: baseline;
}
.timeline li {
  grid-template-columns: 5.1rem 1fr;
}
.rev,
.coords,
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.rev {
  font-size: 0.91rem;
  color: var(--aqua);
}
.work li {
  grid-template-columns: 1.25rem 1fr;
}
.work .count {
  color: var(--pink);
  font-size: 0.9rem;
}
.work p {
  font-size: 0.98rem;
  color: var(--muted);
  margin-top: 0.18rem;
}
.specs {
  grid-template-columns: 1fr 0.9fr;
}
.specs .intro {
  max-width: 32ch;
}
.rules {
  margin-top: 1.5rem;
}
.rules div {
  display: grid;
  grid-template-columns: 5.7rem 1fr;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}
.rules dt {
  font-weight: 680;
  color: var(--yellow);
}
.rules dd {
  color: var(--muted);
  line-height: 1.4;
}
.figure-map,
.route-figure {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}
.figure-map img {
  width: auto;
  max-width: 100%;
  max-height: clamp(20rem, 50vh, 27rem);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  white-space: nowrap;
}
.key {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--yellow);
}
.key.power {
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 50%;
  background: var(--pink);
}
.key.tunnel {
  width: 0.9rem;
  height: 0.48rem;
  background: var(--aqua);
}
.ghosts {
  grid-template-columns: 1.08fr 0.92fr;
}
.sprites {
  display: flex;
  align-items: flex-end;
  gap: 0.72rem;
  margin: 1.35rem 0;
}
.sprites img {
  width: 2.65rem;
  height: 2.65rem;
  image-rendering: pixelated;
}
.copy {
  margin-top: 1.12rem;
  font-size: 1.04rem;
  color: var(--muted);
}
.copy strong {
  color: var(--ink);
}
.route-figure {
  width: min(100%, 26rem);
  justify-self: center;
}
.route-figure img {
  width: 100%;
  max-height: 21.7rem;
  display: block;
}
.route-figure figcaption {
  max-width: 36ch;
  text-align: center;
}
.pellet-score {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.pellet-score .intro {
  max-width: 34ch;
}
.scores {
  margin-top: 1.7rem;
}
.scores div {
  padding: 0.68rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.scores div:last-child {
  border-bottom: 1px solid var(--line);
}
.scores dt {
  font-weight: 620;
}
.scores dd {
  color: var(--yellow);
}
.finish {
  border: 1px solid var(--line);
  background: #17171c;
  padding: clamp(1.5rem, 3.1vw, 2.6rem);
}
.finish img {
  image-rendering: pixelated;
  width: 3.2rem;
  height: 3.2rem;
}
.finish .pellet-track {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.55rem;
}
.pellet-track .dot,
.pellet-track .power-dot {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pink);
}
.pellet-track .power-dot {
  width: 1.05rem;
  height: 1.05rem;
}
.finish h2 {
  font: 700 clamp(2.25rem, 4.1vw, 3.45rem) / 1.03 var(--display);
}
.finish p {
  color: var(--muted);
  margin-top: 0.8rem;
}
.footer {
  min-height: 5rem;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 1rem;
}
.position {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-weight: 620;
}
.position b {
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 650;
}
.steps {
  gap: 0.18rem;
  margin-left: auto;
}
.steps a {
  display: grid;
  place-items: center;
  width: 1.7rem;
  min-height: 2.75rem;
}
.steps a::after {
  content: "";
  width: 100%;
  height: 0.23rem;
  background: #65616b;
}
.steps a[aria-current]::after,
.steps a:hover::after {
  background: var(--yellow);
}
.fnav {
  gap: 0.55rem;
  padding-left: 0.8rem;
}
.fnav a,
.fnav .disabled {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid #747078;
}
.fnav .disabled {
  opacity: 0.3;
}
.fnav svg {
  width: 1.1rem;
  height: 1.1rem;
}
.fnav a:hover {
  border-color: var(--yellow);
}
@media (min-width: 50.1rem) and (max-height: 680px) {
  .mast {
    min-height: 3.8rem;
  }
  main {
    padding: 1.6rem 0;
  }
  .footer {
    min-height: 3.9rem;
  }
  .timeline li,
  .work li {
    padding: 0.58rem 0;
  }
  .cabinet img {
    max-height: 54vh;
  }
}
@media (max-width: 50rem) {
  .shell {
    padding: 0 1.35rem;
  }
  .mast {
    min-height: 4.3rem;
  }
  .meta {
    gap: 1rem;
  }
  .hero,
  .split,
  .pellet-score {
    gap: 2rem;
  }
  .cut {
    font-size: 0.75rem;
  }
  .roadcols {
    gap: 1.5rem;
  }
  .timeline li {
    grid-template-columns: 4.4rem 1fr;
  }
}
@media (max-width: 43rem) {
  .mast {
    flex-wrap: wrap;
    padding: 0.75rem 0;
    row-gap: 0.25rem;
    column-gap: 0.6rem;
  }
  .brand {
    font-size: 1rem;
    gap: 0.48rem;
  }
  .brand img {
    width: 1.45rem;
    height: 1.45rem;
  }
  .meta {
    display: contents;
  }
  .cut {
    order: 3;
    flex-basis: 100%;
    font-size: 0.77rem;
  }
  .contents summary {
    font-size: 0.9rem;
    padding: 0.35rem 0;
  }
  main {
    padding: 2.25rem 0;
  }
  .hero,
  .split,
  .pellet-score,
  .roadcols {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(4rem, 18vw, 5.3rem);
  }
  .hero .intro {
    margin-top: 1.1rem;
  }
  .hero .sub {
    margin-top: 0.8rem;
  }
  .play-link {
    margin-top: 1.35rem;
  }
  .cabinet img {
    max-height: 21rem;
  }
  .figure-map img {
    max-height: 19rem;
  }
  .roadcols {
    margin-top: 1.5rem;
  }
  .route-figure {
    max-width: 19rem;
  }
  .footer {
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.5rem 0;
  }
  .position {
    gap: 0.45rem;
    font-size: 0.85rem;
  }
  .steps {
    display: none;
  }
  .fnav {
    padding-left: 0;
  }
}
@media (max-width: 21rem) {
  .shell {
    padding: 0 0.9rem;
  }
  .rules div {
    grid-template-columns: 4.5rem 1fr;
    gap: 0.6rem;
  }
}
