html, body { height: 100%; }

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 28px;
}

.top {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-count {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}

.progress-track {
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--state-normal);
  transition: width 0.3s ease, background 0.3s ease;
}

.beat-title {
  margin: 0;
  max-width: 720px;
  text-align: center;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  background: var(--panel);
  transition: all 0.3s ease;
}

.chip.active {
  color: var(--bg);
  background: var(--chip-color, var(--state-critical));
  border-color: var(--chip-color, var(--state-critical));
}

.advance-btn {
  width: min(90vw, 420px);
  height: 200px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(180deg, #2a3844, #1e2731);
  border: 1px solid var(--hairline);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(214, 69, 69, 0);
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.advance-btn:hover {
  background: linear-gradient(180deg, #303f4d, #232e39);
}

.advance-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 10px rgba(214, 69, 69, 0.15);
}

.advance-label {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.advance-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.ghost-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.toggle input {
  accent-color: var(--state-critical);
  width: 16px;
  height: 16px;
}

.speed-group {
  display: flex;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}

.speed-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
}

.speed-btn.active {
  background: var(--panel-raised);
  color: var(--text);
}
