:root {
  --ink: #151d22;
  --chalk: #f5edd7;
  --orange: #ff783f;
  --mono: "Courier New", monospace;
  color: var(--chalk);
  background: #10171b;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
button[hidden],
[hidden] {
  display: none !important;
}
header {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 3.2%;
  background: var(--ink);
  border-bottom: 2px solid #43494a;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.48em;
  font-size: 19px;
  font-weight: 1000;
  letter-spacing: -1px;
  font-style: italic;
}
.brand em {
  color: #a3a9a7;
  font: 700 10px var(--mono);
  letter-spacing: 1px;
  margin-left: 6px;
  border-left: 1px solid #586166;
  padding-left: 13px;
}
.mark {
  display: flex;
  gap: 3px;
  align-items: center;
  transform: skewX(-16deg);
  margin-right: 4px;
}
.mark b {
  width: 6px;
  height: 18px;
  background: var(--orange);
}
.mark b:first-child {
  height: 9px;
}
.mark b:nth-child(2) {
  height: 14px;
}
.location,
header button,
.edition,
.series,
.scorehead,
.controls > b,
#livehud,
#meter b {
  font: 700 10px var(--mono);
  letter-spacing: 1.4px;
}
.location {
  margin-left: auto;
  color: #c4c8bd;
}
.location span {
  color: var(--orange);
  margin: 0 5px;
}
header button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid #50595b;
  letter-spacing: 0.8px;
}
header button:hover {
  background: #2d383c;
}
main {
  height: calc(100svh - 142px);
  min-height: 420px;
  max-height: 950px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #957478;
}
canvas,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: none;
}
.shade {
  background: linear-gradient(90deg, #111920e8 0, #111920b8 20%, #11192000 57%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.intro .shade {
  opacity: 1;
}
#menu {
  position: absolute;
  left: 5.4%;
  top: 48%;
  transform: translateY(-50%);
}
.series {
  color: var(--chalk);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.series span {
  width: 28px;
  height: 3px;
  background: var(--orange);
}
.series b {
  font: inherit;
  letter-spacing: 0.6px;
  color: #eeb991;
  border: 1px solid #b2957d85;
  padding: 3px 5px;
}
h1 {
  margin: 0.16em 0 0.13em;
  font-size: clamp(76px, min(10.6vw, 18vh), 170px);
  line-height: 0.78;
  font-style: italic;
  font-weight: 1000;
  letter-spacing: -0.085em;
  transform: scaleX(0.95);
  transform-origin: left;
}
h1 em,
h1 i {
  color: var(--orange);
}
h2 {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 25px);
  letter-spacing: 2px;
  font-weight: 900;
  font-style: italic;
}
#menu p,
#break p {
  color: #e6e2d5;
  font: 14px/1.4 Arial;
  margin: 10px 0 20px;
}
.play {
  padding: 14px 16px;
  background: var(--orange);
  border: 0;
  box-shadow: 4px 4px 0 #11191e;
  color: #141d21;
  font: 1000 italic 16px Arial;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.play:hover {
  background: #ff9b65;
}
.play i {
  font: 14px Arial;
}
.play small {
  font: 700 14px var(--mono);
  border: 1px solid #713b2a85;
  padding: 1px 4px;
}
.score {
  position: absolute;
  right: 3.2%;
  top: 5%;
  width: 161px;
  padding: 9px 12px;
  background: #182023f2;
  color: var(--chalk);
  border-top: 3px solid #ffe2ad;
  box-shadow: 4px 4px 0 #20212c50;
}
.scorehead {
  font-size: 8px;
  letter-spacing: 0.7px;
  display: flex;
  justify-content: space-between;
  color: #bac3b9;
  border-bottom: 1px solid #657071;
  padding-bottom: 6px;
}
.scoreline {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 900 italic 15px Arial;
  margin-top: 4px;
}
.scoreline strong {
  font: 900 20px var(--mono);
  margin-left: auto;
  line-height: 1;
}
.scoreline i {
  width: 6px;
  height: 11px;
  transform: skew(-12deg);
  background: var(--orange);
}
.scoreline:last-child i {
  background: #8fd5ca;
}
.edition {
  position: absolute;
  bottom: 14px;
  left: 3.2%;
  font-size: 9px;
  color: #efdec8;
  background: #1c252abd;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.edition i {
  width: 7px;
  height: 7px;
  background: #f7ad70;
}
.edition b {
  color: #cda98c;
}
.controls {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  height: 62px;
  padding: 0 3.2%;
  border-top: 2px solid #445052;
  white-space: nowrap;
  color: #d0d2c7;
}
.controls > b {
  font-size: 9px;
  color: #adb6ab;
}
.controls span {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 12px Arial;
}
kbd {
  border: 1px solid #67706d;
  border-bottom-width: 2px;
  color: #f6efd9;
  padding: 3px 5px;
  font: 700 10px var(--mono);
}
#livehud,
.edition {
  pointer-events: none;
}
#livehud {
  position: absolute;
  top: 5%;
  left: 3.2%;
  background: var(--ink);
  padding: 10px;
  border-left: 4px solid var(--orange);
}
#clock {
  margin-left: 12px;
  color: #f9ad6e;
}
#call {
  pointer-events: none;
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) skew(-6deg);
  background: var(--ink);
  color: var(--chalk);
  font: 900 italic clamp(15px, 2vw, 26px) Arial;
  text-align: center;
  padding: 6px 15px;
  white-space: nowrap;
}
#call:empty {
  display: none;
}
#meter {
  position: absolute;
  bottom: 17%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  background: var(--ink);
  padding: 8px;
}
#meter b {
  font-size: 9px;
}
#meter i {
  display: block;
  position: relative;
  height: 9px;
  background: #61666a;
  margin-top: 4px;
}
#meter em {
  position: absolute;
  left: 62%;
  width: 20%;
  height: 100%;
  background: #a4d790;
}
#meter s {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 13px;
  background: white;
}
#break {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #172025f7;
  padding: 28px;
  border-top: 4px solid var(--orange);
  min-width: min(330px, 90vw);
}
#break h2 {
  font-size: 38px;
  margin-top: 14px;
  line-height: 1;
  color: var(--orange);
}
#touch {
  padding: 8px 16px;
  display: flex;
  gap: 9px;
  align-items: center;
  background: var(--ink);
  user-select: none;
}
#touch button,
.stick {
  touch-action: none;
  min-height: 44px;
  border: 1px solid #657477;
  background: #29373c;
  padding: 12px;
  text-transform: uppercase;
  font: 700 11px var(--mono);
}
.stick {
  border-radius: 50%;
  height: 68px;
  width: 68px;
  display: grid;
  place-items: center;
  margin-right: auto;
}
.stick i {
  background: #b5c5b6;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  pointer-events: none;
}
#touch button:nth-of-type(2) {
  background: var(--orange);
  color: var(--ink);
}
@media (min-width: 641px) and (max-width: 1070px) {
  .controls {
    gap: 12px;
  }
  .controls > b {
    display: none;
  }
  .controls span {
    font-size: 11px;
  }
  .controls {
    align-items: flex-start;
    padding-top: 14px;
    height: 98px;
  }
  main {
    height: calc(100svh - 158px);
  }
}
@media (max-width: 640px) {
  header {
    height: 47px;
    gap: 6px;
  }
  .brand {
    font-size: 16px;
  }
  .brand em,
  .location,
  #sound span,
  .controls > b {
    display: none;
  }
  #sound {
    margin-left: auto;
  }
  main {
    height: calc(100svh - 144px);
    min-height: 390px;
    max-height: 820px;
  }
  .intro .shade {
    background: linear-gradient(
      0deg,
      #111920f2,
      #111920bf 31%,
      transparent 71%
    );
  }
  #menu {
    left: 6%;
    top: auto;
    bottom: 5%;
    transform: none;
  }
  h1 {
    font-size: clamp(44px, 13.9vw, 76px);
    line-height: 0.8;
    margin: 0.12em 0;
  }
  h1 br {
    display: none;
  }
  h1 {
    letter-spacing: -0.09em;
  }
  #menu h2 {
    font-size: 15px;
  }
  .series {
    font-size: 8px;
  }
  .series span {
    width: 18px;
  }
  #menu p {
    font-size: 13px;
    margin: 8px 0 12px;
  }
  .intro .edition {
    display: none;
  }
  .score {
    top: 12px;
    width: 125px;
    padding: 6px 8px;
  }
  .scorehead {
    font-size: 7px;
  }
  .scoreline {
    font-size: 12px;
  }
  .scoreline strong {
    font-size: 15px;
  }
  .controls {
    height: auto;
    padding: 14px;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .controls span {
    font-size: 11px;
  }
  body.playing .controls {
    display: none;
  }
  .controls > span {
    display: none;
  }
  .controls::after {
    content: "Drag the pad to drive. Hold Shoot and release in green.";
    font: 13px/1.5 Arial;
    max-width: calc(100% - 27px);
  }
  #livehud {
    top: 12px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .edition {
    font-size: 7px;
  }
  .play {
    font-size: 14px;
    padding: 12px;
  }
  #call {
    bottom: 11%;
  }
}
@media (max-height: 500px) and (min-width: 641px) {
  header {
    height: 40px;
  }
  main {
    min-height: 290px;
    height: calc(100svh - 80px);
  }
  .controls {
    height: 40px;
    padding-top: 6px;
  }
  h1 {
    font-size: 64px;
  }
  #menu p {
    margin: 4px 0 10px;
  }
  .play {
    padding: 8px 12px;
  }
}
