/* Cube Smash — game-specific styles */

body {
  background: #0d1117;
  overflow: hidden;
}

canvas#c {
  position: fixed;
  top: 44px;
  left: 0;
  width: 100%;
  height: calc(100% - 44px);
  display: block;
}

.hud {
  position: fixed;
  z-index: 10;
  top: 52px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  pointer-events: none;
}

.hud__score {
  color: rgba(255, 255, 255, 0.9);
  font-family: -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.score-lbl {
  font-size: 1.4rem;
}

.menus {
  position: fixed;
  inset: 44px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(20, 24, 30, 0.88);
  padding: 36px 40px;
  border-radius: 16px;
  pointer-events: all;
  min-width: 240px;
  text-align: center;
}

.menu.active {
  display: flex;
}

.menu h1 {
  font-size: 2rem;
  color: #fff;
  margin: 0 0 8px;
}

.menu h2 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.menu button {
  background: rgba(103, 215, 240, 0.2);
  color: #67d7f0;
  border: 1px solid #67d7f0;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.menu button:hover {
  background: rgba(103, 215, 240, 0.35);
}

.final-score-lbl {
  font-size: 2.5rem;
  font-weight: 800;
  color: #67d7f0;
}

.high-score-lbl {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.pause-btn {
  pointer-events: all;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pause-btn > div,
.pause-btn > div::before {
  width: 4px;
  height: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  display: block;
  content: '';
}

.pause-btn > div {
  position: relative;
}

.pause-btn > div::before {
  position: absolute;
  left: 9px;
  top: 0;
}

.slowmo {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.slowmo__bar {
  height: 100%;
  width: 100%;
  background: #67d7f0;
  border-radius: 3px;
  transform-origin: left;
  transition: transform 0.1s;
}

/* Hide HUD initially (game handles visibility) */
.hud {
  display: none;
}
