/* === 4-7-8 BREATHING PAGE === */

/* Circle stage */
.circle-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.circle-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer glow */
.circle-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,122,90,0.12) 0%, transparent 70%);
  transform: scale(1);
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* Main breathing circle */
.circle-main {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: var(--green-light);
  border: 3px solid var(--green-mid);
  transform: translate(-50%, -50%) scale(0.55);
  transition: transform 0.1s linear;
  width: 240px;
  height: 240px;
}

/* Progress ring */
.circle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: conic-gradient(
    from -90deg,
    var(--green-dark) calc(var(--p, 0) * 360deg),
    var(--border) 0deg
  );
  -webkit-mask: radial-gradient(farthest-side,
    transparent calc(100% - 7px),
    #000 calc(100% - 5px) calc(100% - 1px),
    transparent 100%
  );
          mask: radial-gradient(farthest-side,
    transparent calc(100% - 7px),
    #000 calc(100% - 5px) calc(100% - 1px),
    transparent 100%
  );
}

/* Phase text inside circle */
.circle-text {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.circle-phase {
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.circle-seconds {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Phase strip */
.phase-strip {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  width: 100%;
  max-width: 340px;
}

.phase-pill {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
}

.phase-pill.active {
  background: var(--green-light);
  color: var(--green-dark);
}

.phase-pill .dur {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.phase-pill.active .dur { color: var(--green-dark); }

/* Hint */
.hint-text {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  min-height: 1.5rem;
}

/* Cycle counter row */
.cycle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cycle-dot.done { background: var(--green-dark); }

@media (max-width: 480px) {
  .circle-wrap { width: 240px; height: 240px; }
  .circle-main { width: 200px; height: 200px; }
  .circle-seconds { font-size: 2.2rem; }
  .circle-stage { gap: 12px; margin-bottom: 12px; }
  .circle-wrap { margin-bottom: 12px; }
  .cycle-row { margin-bottom: 32px; }
}
