* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: #0a0a0a;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

#gameCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

#hud {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

#hud > div {
  margin-bottom: 6px;
}

#score {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
}

#ai-status {
  color: #00e5ff;
  font-weight: 600;
}

#speed-display {
  color: #b0bec5;
}

#brain-stats {
  color: #ce93d8;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

#ai-log {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 260px;
  max-height: 50vh;
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  padding: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}

#ai-log-title {
  color: #00e5ff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#ai-log-entries {
  color: #cfd8dc;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-y: auto;
  max-height: calc(50vh - 60px);
}

#ai-log-entries div {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

#ai-log-entries .action-left   { color: #ff9800; }
#ai-log-entries .action-right  { color: #ff9800; }
#ai-log-entries .action-jump   { color: #76ff03; }
#ai-log-entries .action-duck   { color: #e040fb; }
#ai-log-entries .action-idle   { color: #607d8b; }

#game-over {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  color: #fff;
}

#game-over h1 {
  font-size: 4rem;
  color: #ff1744;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255, 23, 68, 0.6);
}

#game-over p {
  font-size: 1.4rem;
  color: #cfd8dc;
}

.hidden {
  display: none !important;
}
