html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #1b1020;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #eee;
  overflow: hidden;
}

#stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 12px auto 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
}

#c {
  display: block;
  width: 100%;
  height: auto;
  background: #2b2640;
}

#hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

#counter {
  font-size: 20px;
  font-weight: 700;
  color: #ffd76a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

#replay {
  pointer-events: auto;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff5b5b, #c92b2b);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 4px 0 #7d1515, 0 6px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.05s ease;
}

#replay:hover {
  filter: brightness(1.08);
}

#replay:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #7d1515, 0 3px 6px rgba(0, 0, 0, 0.4);
}
