.moto-page .page-description {
  margin-bottom: 1rem;
}

/* HUD */
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  gap: 1rem;
}

.hud-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.hud-score,
.hud-best {
  font-size: 0.95rem;
  color: #ddd;
}

.hud-best {
  color: #c9a227;
}

.hud-right {
  display: flex;
  align-items: center;
}

/* Fuel meter */
.fuel-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fuel-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #aaa;
}

.fuel-track {
  width: 110px;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.fuel-bar {
  height: 100%;
  width: 100%;
  background: #4caf50;
  border-radius: 5px;
  transition: background 0.3s;
}

/* Canvas wrapper */
.moto-wrap {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: #0d0d0d;
  max-width: 100%;
}

#motoCanvas {
  display: block;
  background: #87CEEB;
  max-width: 100%;
}

/* Overlay */
.moto-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  transition: opacity 0.2s;
}

.moto-overlay.hidden {
  pointer-events: none;
  opacity: 0;
}

.moto-overlay-text {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.6;
}

.moto-restart-btn {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #c9a227;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.moto-restart-btn:hover {
  background: #e0b83a;
}

/* Touch controls */
.moto-touch-controls {
  display: none;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.moto-touch-left,
.moto-touch-right {
  display: flex;
  gap: 0.5rem;
}

.moto-touch-btn {
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  min-width: 80px;
  text-align: center;
}

.moto-touch-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.moto-touch-gas {
  background: rgba(76, 175, 80, 0.25);
  border-color: rgba(76, 175, 80, 0.5);
}

.moto-touch-gas:active {
  background: rgba(76, 175, 80, 0.45);
}

.moto-touch-jet {
  background: rgba(255, 106, 0, 0.25);
  border-color: rgba(255, 106, 0, 0.5);
}

.moto-touch-jet:active {
  background: rgba(255, 106, 0, 0.45);
}

/* Show touch controls on touch devices */
@media (hover: none) and (pointer: coarse) {
  .moto-touch-controls {
    display: flex;
  }
}

/* Keyboard controls hint */
.moto-controls {
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: #888;
  font-size: 0.82rem;
}

.moto-controls p {
  margin: 0;
}

.moto-controls kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  background: #2a2a2a;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.78em;
  color: #ccc;
}
