/* Dechový kruh — box breathing guide, warm apricot palette */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, oklch(0.97 0.01 60), oklch(0.93 0.02 40));
  color: oklch(0.35 0.03 40);
  font-family: "Cormorant Garamond", "Georgia", serif;
  -webkit-font-smoothing: antialiased;
}

#breath {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hint {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 16px;
  background: oklch(0.35 0.03 40 / 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(0.6 0.03 40 / 0.15);
  color: oklch(0.55 0.02 40);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  user-select: none;
  transition: opacity 1.6s ease 1.2s;
}

.hint.hidden {
  opacity: 0;
}

.center {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
}

.circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c98b6b, oklch(0.75 0.09 40));
  box-shadow: 0 0 80px oklch(0.8 0.08 45 / 0.5);
  transform: scale(0.55);
}

/* card preview is a short, non-square iframe — size the circle to fit
   inside it so it never gets clipped into an oval */
body.preview .circle {
  width: min(220px, 38vmin);
  height: min(220px, 38vmin);
}

.phase {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.phase.fade {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.controls {
  position: fixed;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid oklch(0.6 0.03 40 / 0.4);
  background: transparent;
  color: oklch(0.35 0.03 40);
  cursor: pointer;
  transition: background 200ms ease;
}

.btn:hover {
  background: oklch(0.9 0.02 40 / 0.5);
}
