﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #080a0f;
  color: #e6edf3;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

#game-container {
  width: 100vw;
  max-width: 900px;
  height: 100vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  border: 2px solid #30363d;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #161b22;
  border-bottom: 2px solid #21262d;
  font-weight: bold;
}

.brand {
  color: #ff6b00;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

#level-title {
  color: #58a6ff;
}

#canvas-wrapper {
  flex: 1;
  position: relative;
  background: #12161f;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0c10;
  cursor: crosshair;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay h1 {
  color: #ff6b00;
  font-size: 2rem;
  letter-spacing: 1px;
}

.overlay p {
  max-width: 500px;
  color: #8b949e;
  line-height: 1.5;
}

.btn {
  background: #ff6b00;
  color: #000;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #ff8533;
  transform: scale(1.03);
}

.hud-footer {
  display: flex;
  justify-content: space-around;
  padding: 12px 20px;
  background: #161b22;
  border-top: 2px solid #21262d;
  gap: 20px;
}

.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.label {
  font-size: 0.75rem;
  color: #8b949e;
  font-weight: 600;
}

.bar-outer {
  width: 100%;
  height: 14px;
  background: #21262d;
  border-radius: 7px;
  overflow: hidden;
}

.bar-inner {
  height: 100%;
  width: 0%;
  background: #238636;
  transition: width 0.1s linear, background-color 0.2s;
}

.bar-inner.heat {
  background: #da3633;
}
