.breath-dial {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  box-sizing: border-box;
  width: min(12rem, 100%);
  aspect-ratio: 1;
  margin: 1rem auto;
  border: 1px solid #c4a36b;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 22%, #29485d, #182e40 72%);
  color: #fff9eb;
  box-shadow: inset 0 0 0 4px #1b3142, inset 0 0 0 5px #9e8458;
}
.breath-dial::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background:
    linear-gradient(#e7cd98, #e7cd98) center top / 1px 6px,
    linear-gradient(#e7cd98, #e7cd98) right center / 6px 1px,
    linear-gradient(#e7cd98, #e7cd98) center bottom / 1px 6px,
    linear-gradient(#e7cd98, #e7cd98) left center / 6px 1px;
  background-repeat: no-repeat;
}
.breath-dial-ring {
  position: absolute;
  inset: 10%;
  border: 1px solid #bda272;
  border-radius: 50%;
  transform: scale(var(--breath-scale, .86));
}
.breath-dial-face {
  position: relative;
  width: 76%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .3rem;
  text-align: center;
}
.breath-dial-count {
  color: #fff9eb;
  font: 400 clamp(3rem, 8vw, 4.3rem)/1 Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.breath-dial-count.is-caption { font-size: 1.65rem; }
.breath-dial-phase {
  color: #f2dba9;
  font: 600 .95rem/1.35 var(--sans, system-ui, sans-serif);
  letter-spacing: .03em;
}
@media (max-height: 520px) {
  .breath-dial { width: min(9rem, 100%); margin-block: .6rem; }
  .breath-dial-count { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .breath-dial-ring { transform: none !important; transition: none !important; }
}
@media print {
  .breath-dial { display: none; }
}
