﻿* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #0a0a2e; font-family: Arial, sans-serif; }
canvas { display: block; }
#ui {
  position: fixed; top: 15px; left: 15px;
  color: #fff; font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  pointer-events: none; z-index: 10;
}
#ui div { margin-bottom: 5px; }
#boostBar {
  width: 160px; height: 6px; background: rgba(255,255,255,0.15);
  border-radius: 3px; overflow: hidden; margin-top: 4px;
}
#boostFill {
  height: 100%; width: 100%; background: linear-gradient(90deg, #4CAF50, #a7ffeb);
  transition: width 0.1s linear;
}
#leaderboard {
  position: fixed; top: 15px; right: 15px;
  color: #fff; font-size: 13px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 10px;
  z-index: 10; pointer-events: none;
  min-width: 150px;
}
#leaderboard .title { font-weight: bold; margin-bottom: 4px; text-align: center; opacity: 0.9; }
#leaderboard .row { display: flex; justify-content: space-between; gap: 10px; opacity: 0.9; }
#leaderboard .row.me { color: #a7ffeb; font-weight: bold; }
#borderWarning {
  position: fixed; inset: 0; pointer-events: none; z-index: 8;
  box-shadow: inset 0 0 80px rgba(255,40,40,0);
  transition: box-shadow 0.2s ease;
}
#borderWarning.active {
  box-shadow: inset 0 0 120px rgba(255,40,40,0.35);
}
#gameOver {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; text-align: center; z-index: 20;
  background: rgba(10,10,46,0.7);
  padding: 30px 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
}
#gameOver h1 { font-size: 48px; margin-bottom: 10px; }
#gameOver p { font-size: 20px; margin-bottom: 20px; }
#gameOver button {
  padding: 12px 30px; font-size: 18px;
  background: #4CAF50; color: #fff; border: none;
  border-radius: 8px; cursor: pointer;
}
#gameOver button:hover { background: #45a049; }
#minimap {
  position: fixed; bottom: 15px; right: 15px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px; z-index: 10;
  background: rgba(0,0,0,0.4);
}
