/* HUD, screens, touch controls and diagnostics.
   Layout rule: the driving HUD hugs the corners and leaves the middle of the
   screen empty, because the middle of the screen is where the road is. */

/* ============================================================ HUD ========= */
.hud {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.hud.dim {
  opacity: 0;
}

.hud-corner {
  position: absolute;
  display: flex;
  gap: 0.75em;
}

.hud-bl {
  left: var(--safe);
  bottom: calc(var(--safe) + 0.2em);
  align-items: flex-end;
}

.hud-br {
  right: var(--safe);
  bottom: calc(var(--safe) + 0.2em);
  align-items: flex-end;
  flex-direction: column;
  align-items: flex-end;
}

.hud-tl {
  left: var(--safe);
  top: var(--safe);
  flex-direction: column;
  gap: 0.4em;
}

.hud-tr {
  right: var(--safe);
  top: var(--safe);
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4em;
}

/* ---- speedometer ---- */
.speedo {
  position: relative;
  width: 9.5em;
  height: 5.4em;
}

.speedo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.speedo-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 5;
  stroke-linecap: round;
}

.speedo-fill {
  fill: none;
  stroke: var(--sodium);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 162, 58, 0.55));
  transition: stroke 0.3s ease;
}

.speedo.redline .speedo-fill {
  stroke: var(--police-red);
  filter: drop-shadow(0 0 8px rgba(255, 43, 60, 0.6));
}

.speedo-value {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35em;
  text-align: center;
  font-family: var(--font-num);
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  font-variant-numeric: tabular-nums;
}

.speedo-unit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25em;
  text-align: center;
  font-size: 0.62em;
  letter-spacing: 0.22em;
  color: var(--text-faint);
}

.speedo-gear {
  position: absolute;
  right: 0.1em;
  top: 0.9em;
  font-family: var(--font-num);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(47, 245, 255, 0.5);
}

/* ---- nitrous ---- */
.nitro {
  width: 0.85em;
  height: 5.2em;
  border: 1px solid var(--edge);
  border-radius: 0.45em;
  background: rgba(4, 8, 14, 0.6);
  position: relative;
  overflow: hidden;
}

.nitro-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(to top, #1d7f9c, var(--nitro));
  box-shadow: 0 0 12px rgba(102, 216, 255, 0.55);
  transition: height 0.08s linear;
}

.nitro.active .nitro-fill {
  background: linear-gradient(to top, var(--nitro), #ffffff);
}

.nitro-label {
  position: absolute;
  bottom: -1.35em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58em;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

/* ---- plates (position, timer, checkpoints) ---- */
.plate {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.45em;
  padding: 0.35em 0.6em;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  line-height: 1;
}

.plate-key {
  font-size: 0.6em;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.plate-val {
  font-family: var(--font-num);
  font-size: 1.15em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plate-val.wide {
  font-size: 1.35em;
}

.plate.pos .plate-val {
  color: var(--sodium);
}

/* ---- heat meter ---- */
.heat {
  min-width: 9em;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.45em;
  padding: 0.4em 0.6em 0.5em;
  backdrop-filter: blur(6px);
}

.heat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6em;
  margin-bottom: 0.35em;
}

.heat-label {
  font-size: 0.6em;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.heat-count {
  font-size: 0.62em;
  color: var(--police-red);
  letter-spacing: 0.1em;
}

.heat-bar {
  height: 0.42em;
  border-radius: 0.3em;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.heat-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--sodium), var(--police-red));
  transition: width 0.2s linear;
}

.heat-pips {
  display: flex;
  gap: 0.22em;
  margin-top: 0.35em;
}

.heat-pip {
  flex: 1;
  height: 0.2em;
  border-radius: 0.1em;
  background: rgba(255, 255, 255, 0.13);
}

.heat-pip.on {
  background: var(--police-red);
  box-shadow: 0 0 6px rgba(255, 43, 60, 0.7);
}

/* Colour-safe: police cues get a shape, not just a hue. */
.colorsafe .heat-pip.on {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px rgba(47, 245, 255, 0.7);
}

.colorsafe .heat-count::before {
  content: '▲ ';
}

/* ---- progress bar ---- */
.progress {
  width: 12em;
  height: 0.3em;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.2em;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(47, 245, 255, 0.6);
  transition: width 0.2s linear;
}

/* ---- style popups ---- */
.style-stack {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  text-align: center;
}

.style-pop {
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(6px);
}

.style-pop.on {
  animation: pop-in 1.5s ease-out forwards;
}

.style-pop b {
  color: var(--sodium);
  margin-left: 0.4em;
  font-family: var(--font-num);
}

.style-pop i {
  font-style: normal;
  color: var(--neon-magenta);
  margin-left: 0.35em;
  font-size: 0.85em;
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  12% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  justify-content: flex-end;
}

.score-val {
  font-family: var(--font-num);
  font-size: 1.1em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.combo {
  color: var(--neon-magenta);
  font-size: 0.85em;
  font-weight: 700;
}

/* ---- warnings and banners ---- */
.banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.banner.warn {
  top: 16%;
  color: var(--danger);
  font-size: 1.2em;
}

.banner.warn.blink {
  animation: blink 0.7s steps(2, end) infinite;
}

.reduced-flash .banner.warn.blink {
  animation: none;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.banner.info {
  top: 24%;
  color: var(--neon-cyan);
  font-size: 0.95em;
}

.banner.escape {
  top: 11%;
  color: var(--neon-lime);
  font-size: 1.05em;
}

.section-toast {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  font-size: 0.85em;
  letter-spacing: 0.34em;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section-toast.on {
  opacity: 1;
}

/* ---- countdown ---- */
.countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.countdown span {
  animation: count-pulse 0.6s ease-out;
}

.countdown.go span {
  color: var(--neon-lime);
}

@keyframes count-pulse {
  0% {
    transform: scale(1.6);
    opacity: 0;
  }
  25% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---- pursuit vignette ---- */
.pursuit-edge {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(255, 43, 60, 0.22) 100%);
}

.pursuit-edge.on {
  opacity: 1;
}

.reduced-flash .pursuit-edge {
  transition: opacity 1s ease;
}

/* ============================================================ SCREENS ==== */
.screen {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  padding: calc(var(--safe) + 1em);
  background: linear-gradient(180deg, rgba(3, 5, 9, 0.86), rgba(3, 5, 9, 0.95));
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.screen.sheet {
  justify-content: flex-start;
}

.title {
  font-size: 3.1em;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0;
  text-align: center;
  background: linear-gradient(100deg, #fff, var(--sodium) 45%, var(--police-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: -0.6em 0 0.4em;
  color: var(--text-dim);
  letter-spacing: 0.24em;
  font-size: 0.8em;
  text-transform: uppercase;
}

.screen h2 {
  font-size: 1.5em;
  letter-spacing: 0.14em;
  margin: 0 0 0.2em;
  text-transform: uppercase;
}

.cards {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 46em;
}

.card {
  pointer-events: auto;
  flex: 1 1 16em;
  min-width: 14em;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.7em;
  padding: 1em 1.1em;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--edge-strong);
  transform: translateY(-2px);
  outline: none;
}

.card.selected {
  border-color: var(--sodium);
  box-shadow: inset 0 0 0 1px rgba(255, 162, 58, 0.4);
}

.card h3 {
  margin: 0 0 0.3em;
  font-size: 1.05em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82em;
  line-height: 1.45;
}

.card .card-meta {
  margin-top: 0.6em;
  font-size: 0.72em;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.row {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  pointer-events: auto;
  padding: 0.6em 1.4em;
  border: 1px solid var(--edge-strong);
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85em;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.btn.primary {
  background: linear-gradient(100deg, var(--sodium), #ff6a1f);
  border-color: transparent;
  color: #100a04;
  font-weight: 700;
}

.btn.primary:hover {
  filter: brightness(1.1);
}

.btn.ghost {
  border-color: var(--edge);
  color: var(--text-dim);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hint {
  color: var(--text-faint);
  font-size: 0.74em;
  letter-spacing: 0.08em;
  text-align: center;
  max-width: 40em;
  line-height: 1.6;
}

/* ---- garage ---- */
.garage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.2em;
  width: 100%;
  max-width: 54em;
}

@media (max-width: 720px) {
  .garage-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.7em;
  padding: 1em 1.1em;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 0.6em;
}

.bar-row {
  display: grid;
  grid-template-columns: 7em 1fr auto;
  gap: 0.6em;
  align-items: center;
  font-size: 0.8em;
}

.bar-track {
  height: 0.5em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.3em;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--neon-cyan), var(--sodium));
  transition: width 0.25s ease;
}

.bar-ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(143, 255, 69, 0.45);
}

.upgrade-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.7em;
  align-items: center;
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85em;
}

.upgrade-row:last-child {
  border-bottom: none;
}

.pips {
  display: flex;
  gap: 0.2em;
}

.pip {
  width: 0.55em;
  height: 0.55em;
  border-radius: 0.15em;
  background: rgba(255, 255, 255, 0.15);
}

.pip.on {
  background: var(--neon-lime);
  box-shadow: 0 0 6px rgba(143, 255, 69, 0.5);
}

.credits {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--neon-lime);
}

/* ---- settings ---- */
.tabs {
  display: flex;
  gap: 0.4em;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  pointer-events: auto;
  padding: 0.45em 1em;
  border-radius: 0.4em;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 0.8em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tab.active {
  border-color: var(--edge-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.settings-body {
  width: 100%;
  max-width: 42em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.settings-panel .stat-key {
  margin-top: 1em;
  padding-bottom: 0.3em;
}

.setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14em);
  gap: 1em;
  align-items: center;
  padding: 0.55em 0.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85em;
}

.setting label {
  color: var(--text-dim);
}

.setting .value {
  font-family: var(--font-num);
  font-size: 0.85em;
  color: var(--text-faint);
  min-width: 3em;
  text-align: right;
}

.setting .ctl {
  display: flex;
  align-items: center;
  gap: 0.6em;
  justify-content: flex-end;
}

input[type='range'] {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.4em;
  background: transparent;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 0.3em;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0.2em;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  margin-top: -0.35em;
  border-radius: 50%;
  background: var(--sodium);
  box-shadow: 0 0 8px rgba(255, 162, 58, 0.5);
}

input[type='range']::-moz-range-track {
  height: 0.3em;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0.2em;
}

input[type='range']::-moz-range-thumb {
  width: 1em;
  height: 1em;
  border: none;
  border-radius: 50%;
  background: var(--sodium);
}

.switch {
  pointer-events: auto;
  width: 2.6em;
  height: 1.4em;
  border-radius: 1em;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background 0.15s ease;
}

.switch::after {
  content: '';
  position: absolute;
  top: 0.15em;
  left: 0.18em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform 0.15s ease, background 0.15s ease;
}

.switch[aria-checked='true'] {
  background: rgba(255, 162, 58, 0.28);
  border-color: var(--sodium);
}

.switch[aria-checked='true']::after {
  transform: translateX(1.2em);
  background: var(--sodium);
}

.seg {
  display: flex;
  gap: 0.25em;
}

.seg button {
  pointer-events: auto;
  padding: 0.3em 0.6em;
  font-size: 0.85em;
  border-radius: 0.3em;
  border: 1px solid var(--edge);
  color: var(--text-dim);
}

.seg button.on {
  border-color: var(--sodium);
  color: var(--text);
  background: rgba(255, 162, 58, 0.16);
}

.bind {
  pointer-events: auto;
  min-width: 5.5em;
  padding: 0.3em 0.6em;
  border: 1px solid var(--edge);
  border-radius: 0.3em;
  font-family: var(--font-num);
  font-size: 0.8em;
}

.bind.listening {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  animation: blink 0.8s steps(2, end) infinite;
}

/* ---- results ---- */
.result-head {
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.result-head.won,
.result-head.escaped {
  color: var(--neon-lime);
}

.result-head.busted,
.result-head.lost {
  color: var(--police-red);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr));
  gap: 0.7em;
  width: 100%;
  max-width: 40em;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 0.5em;
  padding: 0.6em 0.8em;
}

.stat-key {
  font-size: 0.62em;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.stat-val {
  font-family: var(--font-num);
  font-size: 1.2em;
  font-weight: 700;
  margin-top: 0.2em;
}

.badge {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.45em;
  font-size: 0.6em;
  letter-spacing: 0.14em;
  border-radius: 0.25em;
  background: var(--neon-lime);
  color: #05140a;
  font-weight: 700;
  vertical-align: middle;
}

.payout {
  font-family: var(--font-num);
  font-size: 1.6em;
  color: var(--neon-lime);
  font-weight: 700;
}

/* ---- loading ---- */
.loading-bar {
  width: 16em;
  height: 0.25em;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 0.2em;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: var(--sodium);
  transition: width 0.2s ease;
}

/* ---- toast ---- */
.toast {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%) translateY(8px);
  background: var(--panel-solid);
  border: 1px solid var(--edge);
  border-radius: 0.4em;
  padding: 0.5em 1em;
  font-size: 0.8em;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================ DIAGNOSTICS  */
.diag {
  position: absolute;
  left: var(--safe);
  top: var(--safe);
  font-family: var(--font-num);
  font-size: 11px;
  line-height: 1.5;
  color: var(--neon-lime);
  background: rgba(2, 4, 8, 0.72);
  border: 1px solid rgba(143, 255, 69, 0.25);
  border-radius: 0.3em;
  padding: 0.4em 0.6em;
  white-space: pre;
  pointer-events: none;
}

/* ============================================================ TOUCH ====== */
.touch-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  touch-action: none;
  z-index: 5;
}

.touch-steer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 42%;
  border-top-right-radius: 2em;
  background: linear-gradient(to top right, rgba(255, 255, 255, 0.05), transparent 60%);
}

.touch-layer.mirrored .touch-steer {
  left: auto;
  right: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 2em;
  background: linear-gradient(to top left, rgba(255, 255, 255, 0.05), transparent 60%);
}

.touch-steer-dot {
  position: absolute;
  left: 50%;
  bottom: 2.4em;
  width: 4.4em;
  height: 4.4em;
  margin-left: -2.2em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.05s linear, border-color 0.2s ease;
}

.touch-steer.active .touch-steer-dot {
  border-color: var(--sodium);
}

.touch-steer-hint {
  position: absolute;
  left: 50%;
  bottom: 1em;
  transform: translateX(-50%);
  font-size: 0.6em;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
}

.touch-steer-hint::after {
  content: '← DRAG →';
}

.touch-pedals {
  position: absolute;
  right: 1em;
  bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.touch-layer.mirrored .touch-pedals {
  right: auto;
  left: 1em;
}

.touch-side {
  position: absolute;
  right: 6.4em;
  bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.touch-layer.mirrored .touch-side {
  right: auto;
  left: 6.4em;
}

.touch-btn {
  width: 4.6em;
  height: 4.6em;
  border-radius: 1em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 14, 20, 0.5);
  color: var(--text);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
  transition: background 0.08s ease, transform 0.08s ease;
}

.touch-btn.pressed {
  background: rgba(255, 162, 58, 0.35);
  transform: scale(0.96);
}

.touch-gas {
  height: 5.6em;
  border-color: rgba(143, 255, 69, 0.5);
}

.touch-brake {
  border-color: rgba(255, 90, 60, 0.5);
}

.touch-nitro {
  width: 3.9em;
  height: 3.9em;
  font-size: 0.72em;
  border-color: rgba(102, 216, 255, 0.5);
}

.touch-hand {
  width: 3.9em;
  height: 3.9em;
  font-size: 0.66em;
}

@media (max-height: 480px) {
  .touch-btn {
    width: 3.8em;
    height: 3.8em;
  }
  .touch-gas {
    height: 4.4em;
  }
}
