/* /breathing/: box-breathing pacer on black. Built by tools/build_breathing.py, driven by assets/breathing.js. */
.br-page { --br-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --br-card: #0B0B0B; --br-edge: #2E2E2E;
  --br-dim: #8A8A8A; --br-line: rgba(255, 255, 255, .28); --br-u: 52px; }
.br-page :where(p, h2, ol) { margin: 0; }
.br-page .br-lede { color: #BDBDBD; font-size: 17px; line-height: 1.55; max-width: 34em; }

.br-app { margin-top: 26px; }

/* Controls row: number strip | label | START */
.br-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.br-dial { position: relative; flex: 0 0 auto; width: 176px; height: 66px; border: 1px solid #3A3A3A; border-radius: 16px;
  background: var(--br-card); overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent); }
.br-dial:focus-visible { border-color: #fff; }
.br-dial.is-drag { cursor: grabbing; }
.br-strip { position: absolute; left: 50%; top: 0; height: 100%; will-change: transform; }
.br-num { position: absolute; top: 9px; width: var(--br-u); margin-left: calc(var(--br-u) / -2); text-align: center;
  font-family: var(--br-mono); font-size: 18px; line-height: 30px; color: #5E5E5E; transition: color .15s, font-size .15s; }
.br-num.is-on { color: #fff; font-size: 28px; font-weight: 600; }
.br-tick { position: absolute; bottom: 8px; width: 1px; height: 6px; background: #3C3C3C; }
.br-tick--int { height: 11px; background: #6A6A6A; }
.br-mark { position: absolute; left: 50%; bottom: 0; width: 2px; height: 20px; margin-left: -1px; background: #fff; border-radius: 1px; }
.br-static { display: block; text-align: center; font: 600 28px/66px var(--br-mono); color: #fff; }
.br-unit { font-family: var(--br-mono); font-size: 12px; line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; color: var(--br-dim); }
.br-go { margin-left: auto; min-width: 116px; height: 52px; padding: 0 26px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #000;
  font-family: var(--br-mono); font-size: 15px; font-weight: 700; letter-spacing: .18em; cursor: pointer; transition: background .2s, color .2s; }
.br-go:hover { background: #E6E6E6; }
.br-go[aria-pressed="true"] { background: #000; color: #fff; }
.br-go[aria-pressed="true"]:hover { background: #151515; }
.br-go:focus-visible, .br-snd:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.br-calc { margin-top: 14px; font-family: var(--br-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--br-dim); }
.br-calc b { color: #fff; font-weight: 600; }

/* The square. Labels sit outside each edge, so the stage leaves room around the box. */
.br-stage { margin-top: 26px; padding: 40px; border: 1px solid #1C1C1C; border-radius: 22px; background: #050505; }
.br-box { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; margin: 0 auto; }
.br-edge { position: absolute; background: var(--br-line); transition: background .35s, box-shadow .35s; border-radius: 2px; }
.br-edge--left, .br-edge--right { top: 0; bottom: 0; width: 2px; }
.br-edge--left { left: -1px; }
.br-edge--right { right: -1px; }
.br-edge--top, .br-edge--bottom { left: -1px; right: -1px; height: 2px; }
.br-edge--top { top: -1px; }
.br-edge--bottom { bottom: -1px; }
.br-edge.is-on { background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .45); }
.br-app:not(.is-run) .br-edge { background: rgba(255, 255, 255, .85); }

.br-lab { position: absolute; font-family: var(--br-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: #6A6A6A; transition: color .35s; }
.br-lab.is-on { color: #fff; }
.br-lab--top { left: 50%; top: -14px; transform: translate(-50%, -100%); }
.br-lab--bottom { left: 50%; bottom: -14px; transform: translate(-50%, 100%); }
.br-lab--left { left: -14px; top: 50%; transform: translate(-50%, -50%) translateX(-.6em) rotate(-90deg); }
.br-lab--right { right: -14px; top: 50%; transform: translate(50%, -50%) translateX(.6em) rotate(90deg); }

.br-ball { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .12), 0 0 22px 4px rgba(255, 255, 255, .55); will-change: transform; }

.br-center { position: absolute; inset: 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.br-now { font-family: var(--font-display, "Anton", Impact, sans-serif); font-size: clamp(30px, 8vw, 44px); line-height: 1.05; letter-spacing: .02em;
  text-transform: uppercase; color: #fff; }
.br-count { margin-top: 10px; min-height: 1.2em; font-family: var(--br-mono); font-size: 22px; color: var(--br-dim); font-variant-numeric: tabular-nums; }
.br-app:not(.is-run) .br-now { color: #8A8A8A; }

.br-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.br-stats { display: flex; gap: 18px; font-family: var(--br-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--br-dim); }
.br-stats b { margin-left: 6px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.br-snd { height: 34px; padding: 0 14px; border: 1px solid #3A3A3A; border-radius: 999px; background: transparent; color: #CFCFCF;
  font-family: var(--br-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.br-snd[aria-pressed="false"] { color: #6A6A6A; text-decoration: line-through; }
.br-nojs { margin-top: 12px; color: #FF7A66; }

.br-how { margin-top: 40px; padding-top: 26px; border-top: 1px solid #1E1E1E; }
.br-how h2 { font-size: 22px; color: #fff; }
.br-how ol { margin-top: 14px; padding-left: 1.3em; display: grid; gap: 10px; color: #C8C8C8; line-height: 1.6; }
.br-how strong { color: #fff; }
.br-warn { margin-top: 18px; padding: 12px 14px; border-left: 2px solid #F2C14E; background: #0D0B05; color: #BDB49A; font-size: 14.5px; line-height: 1.55; }

@media (max-width: 480px) {
  .br-stage { padding: 34px 32px; }
  .br-dial { width: 150px; }
  .br-go { min-width: 0; padding: 0 22px; }
  .br-lab { font-size: 10.5px; letter-spacing: .16em; }
}
@media (max-width: 380px) {
  .br-go { margin-left: 0; flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .br-edge, .br-lab, .br-num { transition: none; }
}
