/* ================= RESET ================= */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ================= ROOT ================= */

body {
  background: #000;
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================= APP BACKGROUND ================= */

#app {
  min-height: 100vh;
  padding: 24px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;

  background:
    radial-gradient(circle at top, #262626 0%, #0d0d0d 60%),
    radial-gradient(circle at bottom, #1b1b1b, #000);
}

/* ================= TITLES ================= */

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 20px;
  text-align: center;
}

/* ================= BUTTONS ================= */

button {
  font-family: inherit;
  cursor: pointer;
}

.btn-start {
  width: 100%;
  max-width: 420px;
  margin: 12px 0 18px;
  background: linear-gradient(135deg, #ffb300, #f57c00);
  color: #000;
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}

.btn-start:active {
  transform: scale(0.97);
}

.btn-back {
  margin-top: 12px;
  background: transparent;
  border: none;
  color: #9e9e9e;
  font-size: 14px;
}

/* ================= CONTENT BLOCK ================= */

.recipe-profile,
.instruction,
.finish-text {
  max-width: 420px;
  width: 100%;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 22px;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

/* ================= TIMER ================= */

.timer-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 18px auto 10px;
}

.timer-ring svg {
  transform: rotate(-90deg);
}

.timer-main {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 600;
  color: #ffb300;
}

.timer-sub {
  font-size: 13px;
  opacity: 0.55;
  margin-bottom: 14px;
  text-align: center;
}

/* ================= STEP HIERARCHY (NEW – UNIFIED) ================= */

.step-block {
  max-width: 420px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(6px);
  text-align: center;
  margin-top: 10px;
}

.step-block.current {
  margin-top: 14px;
}

.step-block.next {
  opacity: 0.38;
}

.step-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 6px;
}

.step-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
}

/* ================= LEGACY SAFETY (IN CASE OLD DOM EXISTS) ================= */

.current-step {
  display: none;
}

.next-step {
  display: none;
}

/* ================= MOBILE ================= */

@media (max-width: 360px) {
  .timer-main {
    font-size: 42px;
  }

  .step-text {
    font-size: 15px;
  }
}
