:root {
  color-scheme: dark;
  font:
    16px/1.4 system-ui,
    sans-serif;
  color: #fff4e0;
  background: #111e20;
  --mint: #91eed0;
  --dark: #152527;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
  color: inherit;
  background: #293c3e;
  border: 1px solid #526366;
  border-radius: 9px;
  padding: 0.66rem 1rem;
  font-weight: 730;
}
button:hover,
button:focus-visible {
  border-color: var(--mint);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffd266;
  outline-offset: 2px;
}
.primary,
[data-key="jump"] {
  background: var(--mint);
  color: #10342c;
  border-color: transparent;
}
.primary {
  min-width: 138px;
}
a {
  color: var(--mint);
}
small,
header b {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 1.4rem;
}
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
#menu {
  position: fixed;
  inset: 0;
  overflow: auto;
  background: radial-gradient(ellipse at 80% 0, #36524d, #142426 65%);
  padding: clamp(12px, 3vh, 36px) 15px;
}
.shell {
  max-width: 1030px;
  margin: auto;
  background: #18282a;
  box-shadow: 0 22px 60px #0005;
  border: 1px solid #586763;
  border-radius: 18px;
  overflow: hidden;
}
header {
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a {
  color: #e0ece4;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
header b {
  color: var(--mint);
}
#hero {
  position: relative;
  min-height: 210px;
  height: clamp(210px, 32vh, 380px);
  background-position: center;
  background-size: cover;
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 3vw, 38px);
  background:
    linear-gradient(90deg, #101d26e0, transparent 75%),
    linear-gradient(0deg, #101b2588, transparent 65%);
}
.hero-copy small {
  color: var(--mint);
}
h1 {
  font:
    italic 1000 clamp(44px, 9vw, 110px)/0.98 system-ui,
    sans-serif;
  letter-spacing: -0.085em;
}
h1 span {
  font: 700 16px system-ui;
  vertical-align: top;
  letter-spacing: 0;
}
.hero-copy p {
  margin-top: 8px;
  font-weight: 650;
}
.content {
  padding: clamp(16px, 2.6vw, 30px);
}
.heading,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading {
  justify-content: space-between;
  margin-bottom: 12px;
}
.heading small,
.card small {
  color: var(--mint);
}
#parks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: #203234;
  border-width: 2px;
}
.card[aria-pressed="true"] {
  border-color: var(--mint);
  background: #29423d;
}
.card img {
  width: 100%;
  height: clamp(60px, 11vh, 112px);
  display: block;
  object-fit: cover;
}
.card div {
  padding: 10px 12px;
}
.card strong,
.card span {
  display: block;
}
.card span {
  font-size: 0.77rem;
  color: #c8d6d1;
}
.actions {
  margin-top: 18px;
  flex-wrap: wrap;
}
.actions button {
  flex: 1;
}
#error:not(:empty) {
  padding: 12px;
  color: #ffac9a;
}
dialog {
  max-width: min(560px, 94vw);
  width: 100%;
  max-height: 88dvh;
  background: #17292b;
  color: #fff5e2;
  border: 1px solid #637771;
  border-radius: 16px;
  padding: 22px;
}
dialog::backdrop {
  background: #09131bba;
}
dialog h2 {
  margin: 4px 0 14px;
}
dialog h3 {
  margin: 0.9rem 0 0.3rem;
  color: var(--mint);
  font-size: 1rem;
}
dialog p {
  margin: 8px 0;
  color: #d4dfdb;
}
dialog label {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
dialog input {
  width: 100%;
  accent-color: var(--mint);
}
dialog select {
  min-width: 0;
  width: 100%;
}
dialog button {
  margin: 4px;
}
#back {
  margin: 16px 0 0;
}
.rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  font-size: 0.92rem;
}
.rows span,
.rows b {
  border-bottom: 1px solid #455657;
  padding: 6px 0;
}
.rows span {
  padding-right: 12px;
}
.rows b {
  font-size: 0.82rem;
  color: var(--mint);
}
#ride {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
#ride button {
  pointer-events: auto;
  touch-action: none;
}
.stats,
#pause,
#reset,
#message {
  position: absolute;
  background: #142428e8;
  box-shadow: 0 4px 16px #0002;
}
.stats {
  display: flex;
  gap: 20px;
  left: max(12px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  padding: 9px 15px;
  border-radius: 11px;
}
.stats small,
.stats strong {
  display: block;
}
.stats small {
  color: var(--mint);
  font-size: 9px;
}
.stats strong {
  font-size: 1.3rem;
}
#pause,
#reset {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  min-width: 45px;
  min-height: 44px;
}
#reset {
  right: max(65px, calc(env(safe-area-inset-right) + 53px));
}
#message {
  left: 50%;
  transform: translateX(-50%);
  top: max(17%, 68px);
  max-width: 90%;
  width: max-content;
  text-align: center;
  border-radius: 10px;
  padding: 7px 14px;
  font-weight: 750;
}
#message:empty {
  display: none;
}
#touch {
  display: flex;
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  justify-content: space-between;
  align-items: flex-end;
}
.pad {
  display: grid;
  grid-template-columns: repeat(2, minmax(45px, 55px));
  gap: 5px;
}
.pad button {
  background: #142c32d9;
  padding: 0.55rem 0.15rem;
  font-size: 0.88rem;
  min-height: 44px;
}
.tricks {
  grid-template-columns: repeat(3, minmax(42px, 48px));
}
.tricks [data-key="jump"] {
  grid-column: span 3;
  background: #9aeed5;
}
.pad .pressed {
  background: #fbca76;
  color: #182326;
}
#touch #jumpStick {
  position: relative;
  grid-column: 1 / -1;
  justify-self: end;
  width: clamp(76px, 17vmin, 96px);
  padding: 0;
}
#jumpStick span {
  display: grid;
  place-items: center;
  color: #102226;
  background: var(--mint);
  font-size: .72rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 620px) {
  #parks {
    gap: 6px;
  }
  .card div {
    padding: 6px;
  }
  .card small {
    font-size: 0.53rem;
  }
  .card strong {
    font-size: 0.83rem;
  }
  .card span {
    font-size: 0.68rem;
  }
  header {
    padding: 10px 14px;
  }
  .actions button {
    font-size: 0.82rem;
    padding: 9px;
    min-width: 43%;
  }
  #hero {
    height: 25vh;
    min-height: 145px;
  }
}
@media (max-height: 450px) {
  #menu {
    padding: 5px 12px;
  }
  #hero {
    height: 120px;
    min-height: 120px;
  }
  .hero-copy {
    padding: 10px 24px;
  }
  h1 {
    font-size: 54px;
  }
  .card img {
    height: 38px;
  }
  .content {
    padding: 10px 18px;
  }
  .actions {
    margin-top: 8px;
  }
  .heading {
    margin-bottom: 5px;
  }
  .card div {
    padding: 4px 10px;
  }
  dialog {
    max-height: 93dvh;
  }
}

#jumpStick small, #jumpPreview {
  position: absolute;
  pointer-events: none;
}
#jumpStick small { opacity: .78; font-size: .69rem; line-height: 1; }
#jumpStick small:nth-of-type(1) { top: 4px; }
#jumpStick small:nth-of-type(2) { right: 4px; }
#jumpStick small:nth-of-type(3) { bottom: 4px; }
#jumpStick small:nth-of-type(4) { left: 4px; }
#jumpPreview:not(:empty) {
  right: calc(100% + 6px); bottom: 12%;
  white-space: nowrap; background: #142428ed; color: var(--mint);
  padding: 3px 7px; border-radius: 6px; font-size: .7rem;
}
