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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0910;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #f3e9d2;
  user-select: none;
}

#space {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

#overlay {
  position: fixed;
  top: 2vh;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 5;
}

#title {
  font-size: clamp(1.1rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #ffe9a8;
  text-shadow: 0 0 12px rgba(255, 200, 90, 0.6), 0 0 28px rgba(255, 160, 40, 0.35);
}

#status {
  margin-top: 0.6vh;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  letter-spacing: 0.1em;
  color: #b7a98a;
}

#hud {
  position: fixed;
  bottom: 3vh;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2vh;
  z-index: 5;
}

#gloryCounter {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255, 200, 90, 0.55);
}

#gloryLabel {
  font-size: clamp(0.7rem, 1.6vw, 1.1rem);
  letter-spacing: 0.3em;
  color: #cdb98a;
}

#gloryValue {
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  color: #ffdf7a;
  min-width: 2ch;
  text-align: center;
}

#cheerBtn {
  pointer-events: auto;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: clamp(0.7rem, 1.8vh, 1.1rem) clamp(1.6rem, 5vw, 3rem);
  font-size: clamp(0.9rem, 2.4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #2a1c05;
  background: linear-gradient(180deg, #ffe07a 0%, #f5b53a 55%, #e08a1e 100%);
  box-shadow: 0 0 22px rgba(255, 180, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}

#cheerBtn:hover {
  box-shadow: 0 0 34px rgba(255, 200, 90, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#cheerBtn:active {
  transform: scale(0.94);
}

#cheerBtn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

#peerCount {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  letter-spacing: 0.1em;
  color: #a99b7c;
}
