:root {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 246, 0.92);
  --line: #d6c7b2;
  --text: #2e2418;
  --muted: #73624f;
  --accent: #0f766e;
  --warn: #c27a18;
  --danger: #b42318;
  --ok: #3c7a3d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.15), transparent 30%),
    radial-gradient(circle at bottom left, rgba(194, 122, 24, 0.16), transparent 35%),
    var(--bg);
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: white;
  background: var(--accent);
}

button.secondary {
  color: var(--text);
  background: #e7ded0;
}

button:disabled {
  opacity: 0.5;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: white;
}

label,
.stack {
  display: grid;
  gap: 0.6rem;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(214, 199, 178, 0.8);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 0 20px 60px rgba(77, 62, 40, 0.08);
}

.status,
.eyebrow {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.clock-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.clock-wrap.large {
  min-height: 420px;
}

.clock {
  width: min(70vw, 320px);
  transform: rotate(-90deg);
}

.clock-track,
.clock-progress {
  fill: none;
  stroke-width: 12;
}

.clock-track {
  stroke: #eadfcf;
}

.clock-progress {
  stroke: var(--ok);
  stroke-linecap: round;
  transition: stroke 0.2s ease;
}

.clock-center {
  position: absolute;
  text-align: center;
}

.timer {
  margin: 0.25rem 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
}

.audio-unlock {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.hidden {
  display: none !important;
}

@media (max-width: 800px) {
  .clock {
    width: min(82vw, 320px);
  }
}
