:root {
  color-scheme: dark;
  --bg: #151326;
  --bg-deep: #100f1d;
  --text: #f6f0ff;
  --muted: rgba(246, 240, 255, 0.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #1b1730 0%, var(--bg) 44%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

.start-screen,
.walk-screen {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.start-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(40px, 12vw, 72px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  -webkit-tap-highlight-color: transparent;
}

.start-button:active {
  transform: scale(0.985);
}

.start-button:disabled {
  opacity: 0.72;
}

.steps-display {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  min-width: 0;
  transform: translateY(-2vh);
}

.steps-number {
  max-width: 100%;
  color: var(--text);
  font-size: clamp(96px, min(34vw, 28vh), 220px);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.36);
}

.steps-label {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 5vw, 26px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0;
  text-align: center;
}

.debug-panel {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  max-height: 236px;
  margin: 0;
  border: 1px solid rgba(246, 240, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 15, 29, 0.92);
  color: var(--text);
  padding: 10px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}
