@font-face {
  font-family: system;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #b1c9d9;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #a9ffec;
  outline-offset: 6px;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px #102b4322;
}
header {
  position: fixed;
  top: 30px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  text-shadow: 0 1px 10px #18395344;
  z-index: 2;
}
.brand {
  font-size: 24px;
  letter-spacing: -3px;
  font-weight: 900;
  transform: skew(-10deg);
}
.brand-mark {
  color: #83f5e0;
  margin: 0 4px;
}
.route {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
}
.route span {
  display: block;
  font-size: 8px;
  margin-top: 5px;
  opacity: 0.7;
  letter-spacing: 1.5px;
}
#sound {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 10px 0;
}
#sound span {
  margin-left: 12px;
  color: #aaffec;
}
.screen {
  position: fixed;
  inset: 0;
  padding: 125px 7vw 36px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background: linear-gradient(
    90deg,
    #0e2c4ae0 0%,
    #18375480 38%,
    #18375400 75%
  );
  z-index: 1;
}
#title .eyebrow {
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.eyebrow > span {
  width: 18px;
  height: 2px;
  background: #87ffe6;
}
h1 {
  margin: 0;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(65px, 8.5vw, 135px);
  line-height: 0.82;
  letter-spacing: -7px;
  text-shadow: 0 4px 50px #112d4133;
}
h1 > span {
  display: block;
  font-size: 14px;
  letter-spacing: 10px;
  font-style: normal;
  font-weight: 400;
  margin-top: 24px;
  margin-left: 7px;
}
.intro {
  font-size: 16px;
  line-height: 1.6;
  color: #d5e4ee;
  margin: 28px 0 23px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  background: #a1ffe7;
  color: #113c48;
  padding: 18px 22px;
  min-width: 230px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover {
  background: #d6fff4;
  transform: translateX(3px);
}
.primary span {
  font-size: 16px;
}
.subtle {
  font-size: 10px;
  color: #c1d5df;
  margin: 12px 0 0;
  min-height: 15px;
}
.controls {
  margin-top: auto;
  padding-top: 25px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 14px 35px;
  max-width: 660px;
}
.controls > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.controls span {
  font-size: 8px;
  letter-spacing: 1px;
  margin-left: 8px;
  color: #d7e3ee;
}
kbd {
  font-family: inherit;
  font-size: 9px;
  min-width: 23px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid #b1ccdf66;
  border-radius: 3px;
  color: #fff;
  background: #abc3db12;
}
.tip {
  font-size: 10px;
  color: #bcd4e3;
  margin-top: 20px;
}
.title-options {
  display: flex;
  gap: 28px;
  margin-top: 6px;
}
.title-options button,
.title-options a,
#pause-settings,
#reset-bindings {
  padding: 5px 0;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #bdd3df;
  text-decoration: none;
}
#touch-note {
  font-size: 13px;
  color: #a1ffe7;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.score {
  position: absolute;
  top: 105px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.label {
  font-size: 8px;
  letter-spacing: 2px;
  opacity: 0.75;
}
.score strong {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px #14324b50;
}
#pending {
  font-size: 12px;
  color: #9affdf;
  letter-spacing: 1px;
  min-height: 15px;
}
.pace {
  position: absolute;
  bottom: 65px;
  left: 40px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.pace strong {
  font-size: 56px;
  letter-spacing: -3px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px #14324b55;
}
.pace > span {
  font-size: 9px;
  letter-spacing: 2px;
}
.light {
  position: absolute;
  bottom: 76px;
  right: 40px;
  width: 205px;
}
.light-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.meter {
  height: 3px;
  background: #29496155;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #68ebdf, #bcb1ff);
  box-shadow: 0 0 15px #67ffe7;
}
#light-hint {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  margin-top: 10px;
  opacity: 0.8;
}
.runline {
  position: absolute;
  bottom: 34px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: #ffffff40;
}
.runline i {
  height: 1px;
  background: #b5ffee;
  display: block;
  width: 0;
}
.runline span {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid #e5fff7;
  background: #537586;
  transform: rotate(45deg);
}
.p1 {
  left: 13%;
}
.p2 {
  left: 42.5%;
}
.p3 {
  left: 65%;
}
.runkeys {
  position: absolute;
  right: 40px;
  top: 105px;
  font-size: 7px;
  letter-spacing: 1px;
  opacity: 0.7;
}
.runkeys span {
  margin-left: 20px;
}
#charge {
  position: absolute;
  left: calc(50% + 50px);
  top: 65%;
  width: 45px;
  height: 45px;
  opacity: 0;
  transition: opacity 0.1s;
}
#charge svg {
  width: 45px;
  height: 45px;
  transform: rotate(-90deg);
}
#charge circle {
  fill: none;
  stroke: #ffffff50;
  stroke-width: 2;
}
#charge #charge-ring {
  stroke: #a1ffe7;
  stroke-dasharray: 157.08;
  stroke-dashoffset: 157.08;
  stroke-width: 3;
}
#charge > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 7px;
  letter-spacing: 1px;
}
#trick {
  position: absolute;
  top: 27%;
  right: 7vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  transform: translateY(8px);
  text-shadow: 0 3px 15px #16334c88;
}
#trick.visible {
  opacity: 1;
  transform: none;
}
#quality {
  font-size: 9px;
  letter-spacing: 3px;
  color: #b0ffe8;
  margin-bottom: 10px;
}
#trick-name {
  font-size: 22px;
  font-weight: 400;
  max-width: 400px;
  text-align: right;
}
#points {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -2px;
  margin-top: 5px;
}
#cue {
  position: absolute;
  top: 20%;
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px #173651;
}
#countdown {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: 110px;
  font-style: italic;
  font-weight: 900;
  text-shadow: 0 8px 40px #102d4966;
}
#finish {
  padding-top: 19vh;
}
h2 {
  font-size: clamp(50px, 7vw, 95px);
  line-height: 0.9;
  letter-spacing: -5px;
  font-weight: 900;
  font-style: italic;
  margin: 26px 0;
}
h2 > span {
  color: #a1ffe7;
  display: inline-block;
  margin-left: 20px;
}
.results {
  display: flex;
  gap: 48px;
  margin: 15px 0 10px;
}
.results > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.results span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #bcd4e3;
}
.results strong {
  font-size: 30px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
#personal-best {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a1ffe7;
  margin: 20px 0 30px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #0f293bef;
  backdrop-filter: blur(12px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.modal h2 {
  font-size: 45px;
  letter-spacing: -2px;
  margin: 0;
}
.modal > p {
  font-size: 12px;
  color: #bcd4e3;
}
.modal label {
  font-size: 11px;
  color: #d3e6ef;
  display: flex;
  gap: 12px;
  align-items: center;
}
.modal select {
  background: #244453;
  color: white;
  border: 1px solid #708f9c;
  padding: 6px;
}
#bindings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  margin-bottom: 10px;
}
#bindings button {
  font-size: 10px;
  background: #ffffff10;
  padding: 9px 13px;
  text-align: left;
  min-width: 150px;
}
#bindings button span {
  float: right;
  color: #a1ffe7;
  margin-left: 14px;
}
.modal .primary {
  margin-top: 10px;
}
#error {
  position: fixed;
  inset: 25%;
  padding: 35px;
  background: #12374e;
  z-index: 10;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
@media (max-height: 760px) {
  .screen {
    padding-top: 110px;
  }
  h1 {
    font-size: 90px;
  }
  .intro {
    margin: 20px 0;
    font-size: 14px;
  }
  .controls {
    gap: 10px 25px;
  }
  .tip {
    margin-top: 13px;
  }
  #title .eyebrow {
    margin-bottom: 15px;
  }
}
@media (max-width: 750px) {
  header {
    left: 24px;
    right: 24px;
  }
  .screen {
    padding-left: 24px;
    padding-right: 24px;
  }
  .controls {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .controls span {
    font-size: 7px;
  }
  h1 {
    font-size: 74px;
  }
  .intro {
    font-size: 13px;
  }
  .tip {
    max-width: 320px;
  }
  .results {
    gap: 25px;
  }
  .runkeys {
    display: none;
  }
  #bindings {
    grid-template-columns: repeat(2, 1fr);
  }
  .light {
    right: 24px;
    width: 140px;
  }
  .pace {
    left: 24px;
  }
  #touch-note {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
/* The touch layout leaves the center line and jump lips open. All sizes are CSS px. */
.touch,
.touch body {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.touch body {
  position: fixed;
  width: var(--view-width, 100%);
  height: var(--view-height, 100%);
  transform: translate(var(--view-left, 0px), var(--view-top, 0px));
}
#touch-controls {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
#steer-zone {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  pointer-events: auto;
}
#steer-hint {
  position: absolute;
  left: max(30px, env(safe-area-inset-left));
  bottom: max(42px, env(safe-area-inset-bottom));
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 1px;
  opacity: 0.65;
  text-shadow: 0 1px 5px #102d49;
}
#steer-hint small {
  font-size: 9px;
}
#steer-origin {
  position: absolute;
  width: 104px;
  height: 104px;
  margin: -52px;
  border: 1px solid #e0fff580;
  border-radius: 50%;
  background: #16334c20;
}
#steer-knob {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  background: #a1ffe780;
}
.ride-button {
  position: absolute;
  pointer-events: auto;
  border: 1px solid #e0fff580;
  border-radius: 50%;
  background: #16334c70;
  width: 76px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
}
.ride-button span {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}
.ride-button small {
  font-size: 7px;
  letter-spacing: 0.3px;
}
.ride-button.touch-held {
  background: #a1ffe785;
  color: #12394b;
  border-color: #bffff0;
}
#touch-jump {
  right: max(22px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 88px;
  height: 88px;
  background: conic-gradient(#a1ffe7 var(--charge, 0deg), #16334c70 0);
  box-shadow: inset 0 0 0 5px #16334c90;
}
#touch-jump.touch-held {
  border-color: #a1ffe7;
  color: white;
}
#touch-grab {
  right: max(22px, env(safe-area-inset-right));
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 100px);
}
#touch-boost {
  right: calc(max(22px, env(safe-area-inset-right)) + 100px);
  bottom: max(24px, env(safe-area-inset-bottom));
  opacity: 0.4;
}
#touch-boost.available {
  opacity: 1;
  color: #bffff0;
  border-color: #a1ffe7;
  box-shadow: 0 0 18px #a1ffe730;
}
#touch-pause {
  position: fixed;
  top: max(0px, env(safe-area-inset-top));
  right: calc(max(12px, env(safe-area-inset-right)) + 64px);
  z-index: 4;
  width: 64px;
  height: 64px;
  font-size: 23px;
}
#rotate {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #102e43f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
#rotate > span {
  font-size: 80px;
  color: #a1ffe7;
}
#rotate h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
#rotate p {
  font-size: 15px;
  line-height: 1.7;
  color: #c5dce8;
}
.touch header {
  top: max(0px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  height: 64px;
  gap: 16px;
  pointer-events: none;
}
.touch #sound {
  width: 64px;
  height: 64px;
  padding: 19px;
  pointer-events: auto;
}
.touch #sound svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.touch .screen {
  padding: 76px max(32px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
}
.touch h1 {
  font-size: clamp(50px, 9vw, 82px);
  letter-spacing: -4px;
}
.touch h1 > span {
  font-size: 11px;
  letter-spacing: 7px;
  margin-top: 15px;
}
.touch #title .eyebrow {
  margin-bottom: 14px;
}
.touch .intro {
  font-size: 12px;
  margin: 16px 0;
}
.touch .primary {
  min-height: 64px;
  min-width: 240px;
  font-size: 12px;
}
.touch #start {
  margin-top: 4px;
}
.touch #start span,
.touch #again span,
.touch .controls,
.touch .tip,
.touch .runkeys,
.touch #charge {
  display: none;
}
.touch #load-status {
  font-size: 8px;
}
.touch #touch-note {
  position: absolute;
  left: 53%;
  right: max(30px, env(safe-area-inset-right));
  top: 110px;
  font-size: 13px;
  line-height: 1.7;
}
.touch #touch-note p + p {
  font-size: 11px;
  color: #d3e8f1;
}
.touch .title-options {
  position: absolute;
  left: 53%;
  bottom: max(24px, env(safe-area-inset-bottom));
  gap: 24px;
}
.touch .title-options button,
.touch .title-options a,
.touch #pause-settings {
  min-height: 64px;
  min-width: 64px;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.touch .score {
  top: 68px;
  left: max(24px, env(safe-area-inset-left));
}
.touch .score strong {
  font-size: 25px;
}
.touch .light {
  top: 73px;
  bottom: auto;
  right: max(24px, env(safe-area-inset-right));
  width: 150px;
}
.touch .light-label {
  margin-bottom: 6px;
}
.touch .pace {
  top: 10px;
  bottom: auto;
  left: 44%;
}
.touch .pace strong {
  font-size: 28px;
  letter-spacing: -1px;
}
.touch .pace > span {
  font-size: 7px;
}
.touch .runline {
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
}
.touch #cue {
  top: 80px;
  left: 25%;
  width: 50%;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 0 25px;
}
.touch #trick {
  top: 122px;
  right: max(24px, env(safe-area-inset-right));
  max-width: 190px;
}
.touch #quality {
  font-size: 8px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.touch #trick-name {
  font-size: 14px;
}
.touch #points {
  font-size: 25px;
  margin-top: 2px;
}
.touch #finish {
  padding-top: 74px;
}
.touch #finish .eyebrow {
  font-size: 8px;
}
.touch #finish h2 {
  font-size: 48px;
  letter-spacing: -3px;
  margin: 14px 0;
}
.touch #finish .results {
  position: absolute;
  left: 53%;
  top: 100px;
  gap: 20px;
}
.touch .results strong {
  font-size: 24px;
}
.touch .results span {
  font-size: 7px;
  letter-spacing: 1px;
}
.touch #personal-best {
  position: absolute;
  left: 53%;
  top: 168px;
  font-size: 9px;
}
.touch #again {
  margin-top: 10px;
}
.touch #bindings,
.touch #reset-bindings,
.touch #settings > p,
.touch #binding-message {
  display: none;
}
.touch .modal {
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) 24px
    max(12px, env(safe-area-inset-bottom));
}
.touch .modal h2 {
  font-size: 32px;
}
.touch .modal label {
  min-height: 36px;
}
.touch .modal select {
  font-size: 16px;
}
@media (max-height: 350px) {
  .touch .intro {
    display: none;
  }
  .touch #title .eyebrow {
    margin-bottom: 10px;
  }
  .touch #start {
    margin-top: 14px;
  }
  .touch #load-status {
    display: none;
  }
  .touch #touch-note {
    top: 82px;
  }
  .touch .title-options {
    bottom: 8px;
  }
}
#touch-jump::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #16334cd9;
}
#touch-jump > span,
#touch-jump > small {
  position: relative;
}
@media (max-height: 350px) {
  .touch #touch-jump {
    width: 76px;
    height: 76px;
  }
  .touch #touch-grab,
  .touch #touch-boost {
    width: 64px;
    height: 64px;
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .touch #touch-grab {
    right: calc(max(22px, env(safe-area-inset-right)) + 88px);
  }
  .touch #touch-boost {
    right: calc(max(22px, env(safe-area-inset-right)) + 164px);
  }
}
#touch-boost[aria-disabled="true"] {
  background: #16334c70;
  color: #fff;
  box-shadow: none;
}
