:root {
  --bg-color: #0b0c10;
  --text-color: #c5c6c7;
  --peace-color: #66fcf1;
  --peace-glow: rgba(102, 252, 241, 0.6);
  --weight-color: #45a29e;
  --weight-heavy: #1f2833;
  --font-family: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #090a0f, #141724);
  transition: background 1s ease;
}

/* UI Overlay */
#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  pointer-events: none;
  z-index: 10;
}

.hud {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
}

.meter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meter-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 60px;
}

.meter-track {
  flex-grow: 1;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease-out;
}

.meter-fill.peace {
  background-color: var(--peace-color);
  box-shadow: 0 0 10px var(--peace-glow);
}

.meter-fill.weight {
  background-color: #888;
}

/* Overlays (Start/End Screens) */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

.overlay h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 2px;
}

.overlay .subtitle {
  font-size: 1.2rem;
  color: var(--peace-color);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.instructions {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 500px;
  color: #aaa;
}

.highlight-peace {
  color: var(--peace-color);
  text-shadow: 0 0 5px var(--peace-glow);
  font-weight: 600;
}

.highlight-weight {
  color: #888;
  font-weight: 600;
}

/* Buttons */
.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-family);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-decoration: none;
  margin: 0.5rem;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--peace-color);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
  transform: translateY(-2px);
}

.link-btn {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
}
