:root {
  color-scheme: dark;
  --green: #b0ff28;
  --mint: #4dff92;
  --dark: #050b08;
  --muted: #90a49b;
  font-family: Arial, Helvetica, sans-serif;
  color: #f0f7ee;
  background: var(--dark);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.stage-column {
  width: 100%;
  height: 100svh;
  min-height: 480px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 40%, #103223 0, transparent 60%), #050b08;
}
#main {
  position: absolute;
  inset: 0;
  z-index: -1;
}
#main canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.topbar {
  height: 94px;
  padding: 26px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
  border-bottom: 1px solid #b0ff2820;
}
.wordmark {
  color: #f4ffe9;
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 0.9;
}
.wordmark > span {
  color: var(--green);
  margin-left: 5px;
}
.wordmark small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: normal;
  margin-top: 9px;
}
.edition {
  font: 10px monospace;
  letter-spacing: 2px;
  color: #b5cbb8;
}
.edition i {
  color: var(--green);
  font-style: normal;
  margin: 0 10px;
}
#fullscreen {
  background: transparent;
  border: 1px solid #4b684f;
  color: var(--green);
  font-size: 24px;
  width: 40px;
  height: 40px;
}
.panel {
  position: absolute;
  inset: 94px 0 0;
}
.intro {
  display: flex;
  align-items: center;
  padding: 4% 6%;
  padding-bottom: 85px;
}
.intro-copy {
  width: 53%;
  z-index: 2;
}
.eyebrow {
  font: 11px monospace;
  letter-spacing: 3px;
  color: var(--green);
  margin: 0 0 25px;
}
h1 {
  font-size: clamp(56px, 7.5vw, 122px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.07em;
  margin: 0 0 26px;
}
h1 span {
  color: var(--green);
  text-shadow: 0 0 60px #b0ff2830;
}
.description {
  font-size: clamp(14px, 1.4vw, 19px);
  line-height: 1.6;
  color: #b5c4b8;
  margin: 0 0 25px;
}
.setup {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
}
.setup label {
  display: grid;
  gap: 8px;
  font: 10px monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
select {
  background: #0c1911;
  border: 1px solid #34503a;
  color: #e3f3df;
  padding: 9px 12px;
  min-width: 130px;
  border-radius: 0;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--green);
  color: #0a1704;
  border: 0;
  padding: 20px 25px;
  min-width: 255px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 0 38px #b0ff2812;
}
.primary:hover {
  background: #c8ff73;
  box-shadow: 0 0 30px #b0ff2840;
}
.primary b {
  font-size: 22px;
}
.controls-copy {
  color: var(--muted);
  font: 10px/1.9 monospace;
  margin-top: 19px;
}
.hero-art {
  position: absolute;
  right: -3%;
  top: 2%;
  width: 57%;
  height: 91%;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%);
}
.orb {
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid #a5ff2940;
  border-radius: 50%;
  top: 5%;
  left: 15%;
  box-shadow:
    inset 0 0 100px #b0ff280a,
    0 0 100px #b0ff280a;
}
.orb:after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed #b0ff2830;
  border-radius: 50%;
}
.hero-grid {
  position: absolute;
  inset: 40% -70% -100%;
  background:
    linear-gradient(#74ff4c20 1px, transparent 1px),
    linear-gradient(90deg, #74ff4c20 1px, transparent 1px);
  background-size: 65px 65px;
  transform: perspective(320px) rotateX(55deg);
  transform-origin: top;
}
.hero-art img {
  position: absolute;
  inset: 10% 0;
  width: 100%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px #73ff3335);
}
.art-label {
  position: absolute;
  bottom: 6%;
  right: 12%;
  font: 40px monospace;
  color: #d5ffbf;
}
.art-label small {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--green);
}
footer {
  position: absolute;
  bottom: 0;
  left: 4%;
  right: 4%;
  height: 60px;
  border-top: 1px solid #b0ff2825;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px monospace;
  letter-spacing: 2px;
  color: var(--muted);
}
footer button {
  color: var(--muted);
  background: none;
  border: 0;
  font: 10px monospace;
}
.center-panel {
  position: absolute;
  inset: 94px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: #040b09e8;
  z-index: 5;
  padding: 25px;
  backdrop-filter: blur(10px);
}
h2 {
  font-size: clamp(30px, 5vw, 65px);
  letter-spacing: -2px;
  margin: 0 0 30px;
  line-height: 1;
}
.center-panel .primary {
  margin: 14px 0;
}
.secondary {
  background: transparent;
  border: 1px solid #496644;
  color: #d9e8d5;
  padding: 13px 22px;
  font-size: 11px;
  letter-spacing: 1px;
  margin: 7px;
}
.secondary:hover {
  border-color: var(--green);
  color: var(--green);
}
progress {
  width: min(340px, 80%);
  height: 5px;
  accent-color: var(--green);
}
#load-status {
  color: var(--muted);
  font: 13px monospace;
  max-width: 450px;
  line-height: 1.6;
}
#hud {
  position: absolute;
  inset: 94px 0 0;
  pointer-events: none;
}
.hud-top {
  display: flex;
  justify-content: space-between;
  padding: 24px 4%;
  background: linear-gradient(#050b08a0, transparent);
}
.hud-top > div {
  min-width: 100px;
}
.hud-top small {
  display: block;
  color: var(--green);
  letter-spacing: 3px;
  font: 9px monospace;
  margin-bottom: 8px;
}
.hud-top b {
  font: 28px monospace;
}
.hud-top b span {
  font-size: 14px;
  color: #8a9d8b;
}
.clock {
  text-align: center;
}
.shield-track,
.speed-track {
  height: 3px;
  background: #334434;
  margin-top: 8px;
}
.shield-track i,
.speed-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
#message {
  position: absolute;
  top: 35%;
  width: 100%;
  text-align: center;
  font-size: clamp(32px, 7vw, 90px);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--green);
  text-shadow: 0 0 35px #b0ff2870;
}
.speed {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  text-align: center;
}
.speed b {
  font-size: 70px;
  letter-spacing: -4px;
  font-weight: normal;
  line-height: 1;
}
.speed span {
  font: 10px monospace;
  margin-left: 8px;
  color: var(--green);
}
.speed-track i {
  width: 0;
}
.race-actions {
  position: absolute;
  bottom: 30px;
  right: 4%;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}
.race-actions button {
  background: #07140cd9;
  border: 1px solid #476331;
  color: #c7edb3;
  padding: 12px;
  font: 10px monospace;
}
.touch-controls {
  position: absolute;
  bottom: 30px;
  left: 4%;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.touch-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid #638c48;
  background: #07140cbb;
  color: var(--green);
  font-size: 23px;
  touch-action: none;
  user-select: none;
}
.touch-controls .gas {
  font: 12px monospace;
  width: 64px;
}
.touch-controls button:active {
  background: var(--green);
  color: #07140c;
}
.result-time {
  font: 42px monospace;
  color: var(--green);
  margin: 0 0 15px;
}
dialog {
  max-width: 600px;
  width: 90%;
  border: 1px solid #7dab49;
  background: #0c1610;
  color: #d3e4d4;
  padding: 30px;
  z-index: 10;
}
dialog::backdrop {
  background: #000b;
}
dialog h2 {
  font-size: 27px;
}
dialog p {
  font-size: 14px;
  line-height: 1.65;
}
dialog a {
  color: var(--green);
}
@media (max-height: 700px) and (min-width: 761px) {
  .topbar {
    height: 72px;
    padding-block: 15px;
  }
  .panel,
  .center-panel {
    inset-block-start: 72px;
  }
  #hud {
    top: 72px;
  }
  .intro {
    padding-top: 25px;
    padding-bottom: 65px;
  }
  h1 {
    font-size: 65px;
    margin-bottom: 18px;
  }
  .eyebrow {
    margin-bottom: 18px;
  }
  .description {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .setup {
    margin-bottom: 16px;
  }
  .primary {
    padding: 14px 22px;
  }
  .controls-copy {
    margin-top: 12px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 72px;
    padding: 17px 5%;
  }
  .wordmark {
    font-size: 21px;
  }
  .edition {
    font-size: 8px;
    letter-spacing: 0;
  }
  .edition i {
    margin: 0 4px;
  }
  .wordmark small {
    font-size: 6px;
  }
  #fullscreen {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .panel,
  .center-panel {
    inset-block-start: 72px;
  }
  .intro {
    padding: 30px 7% 75px;
    align-items: center;
  }
  .intro-copy {
    width: 100%;
  }
  h1 {
    font-size: clamp(56px, 13vw, 90px);
  }
  .hero-art {
    opacity: 0.28;
    right: -30%;
    width: 100%;
    top: 6%;
    height: 95%;
    z-index: -1;
  }
  .description {
    max-width: 270px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .setup {
    gap: 12px;
  }
  .setup select {
    min-width: 115px;
  }
  .primary {
    width: 100%;
    max-width: 360px;
  }
  .hud-top {
    padding: 20px 5%;
    gap: 10px;
  }
  .hud-top b {
    font-size: 20px;
  }
  .hud-top > div {
    min-width: 65px;
  }
  .hud-top small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  #hud {
    top: 72px;
  }
  .speed {
    bottom: 110px;
  }
  .speed b {
    font-size: 55px;
  }
  .touch-controls {
    bottom: 22px;
    left: 5%;
  }
  .race-actions {
    bottom: 26px;
    right: 5%;
    flex-direction: column;
    gap: 5px;
  }
  .race-actions button {
    padding: 8px;
    font-size: 9px;
  }
  .center-panel h2 {
    font-size: 36px;
  }
  footer {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .controls-copy {
    font-size: 10px;
  }
}
@media (max-height: 540px) {
  .intro {
    align-items: flex-start;
    padding-top: 20px;
    overflow: auto;
  }
  .intro-copy {
    padding-bottom: 60px;
  }
  h1 {
    font-size: 48px;
  }
  .description {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .eyebrow {
    margin-bottom: 12px;
  }
  .hero-art {
    position: fixed;
    top: 70px;
  }
  .intro footer {
    position: fixed;
    background: #050b08;
    bottom: 0;
  }
  #message {
    top: 25%;
  }
  .speed {
    bottom: 15px;
  }
  .speed b {
    font-size: 45px;
  }
  .hud-top {
    padding-top: 10px;
  }
}

.description,
.controls-copy {
  white-space: pre-line;
}

.setup {
  flex-wrap: wrap;
  gap: 12px 18px;
}
.setup select {
  min-width: 115px;
  max-width: 220px;
}
#wheel-panel {
  width: 174px;
  padding: 8px;
  border: 1px solid #b0ff2866;
  background: #06110eef;
  position: absolute;
  right: 4%;
  top: 210px;
  z-index: 6;
  pointer-events: none;
}
#wheel-slot #wheel-panel {
  position: relative;
  inset: auto;
  width: 240px;
  margin: 14px auto 0;
}
.wheel-video {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #071c11;
}
.wheel-video video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: scaleX(-1);
}
#wheel-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--green);
  stroke-width: 5;
  fill: #b0ff2840;
  visibility: hidden;
}
#wheel-status {
  font: 10px/1.5 monospace;
  margin-top: 7px;
  color: #e4ffca;
}
.wheel-meter {
  height: 3px;
  background: #23412a;
  margin-top: 8px;
}
.wheel-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
}
.steering-meter {
  height: 10px;
  position: relative;
  border-bottom: 1px solid #345b3b;
  margin: 2px 0;
}
.steering-meter:after {
  content: "";
  position: absolute;
  left: 50%;
  height: 100%;
  border-left: 1px solid #a2c794;
}
#steering-dot {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  background: var(--green);
  border-radius: 50%;
}
.wheel-instruction {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #c4d6c1;
}
.wheel-privacy {
  font: 10px/1.5 monospace;
  max-width: 470px;
  color: var(--muted);
}
#camera h2 {
  margin-bottom: 15px;
}
#camera .eyebrow {
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  #wheel-panel {
    top: 175px;
    right: 5%;
    width: 120px;
  }
  #wheel-status {
    font-size: 8px;
  }
  #camera {
    padding: 18px;
    overflow: auto;
  }
  #camera h2 {
    font-size: 28px;
  }
  .wheel-instruction {
    font-size: 12px;
  }
  #wheel-slot #wheel-panel {
    width: 190px;
  }
  #camera .secondary {
    padding: 10px;
    margin: 4px;
  }
}
@media (max-height: 600px) {
  #camera {
    justify-content: flex-start;
    overflow: auto;
  }
  #wheel-slot #wheel-panel {
    width: 150px;
  }
  #camera h2 {
    font-size: 28px;
  }
}
