/* 호흡 훈련 페이지: 홈페이지 수첩 종이(site.css) 위에 풍선 무대 */
.breath-sheet { max-width: 640px; text-align: center; }
.breath-sheet h1 { font-family: var(--serif-ko); font-size: clamp(28px, 6vw, 38px); margin: 4px 0 14px; color: #23252c; }
.breath-stage { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; margin: 0 auto; }
.breath-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: transparent; }
#instructionText {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); width: 100%; text-align: center; pointer-events: none;
    font-family: var(--serif-ko); font-weight: 700; font-size: clamp(28px, 7vw, 38px); color: #fff;
    transition: opacity .6s ease, text-shadow .6s ease; text-shadow: 0 2px 14px rgba(16, 36, 77, 0.35);
}
#countdownText {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, 90%); pointer-events: none;
    font-family: var(--print); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 8px rgba(16, 36, 77, 0.35);
}
.breath-guide { margin: 6px 0 0; color: var(--ink-soft); }

/* 풍선 방향: 종이 위 두 칸짜리 탭 */
.direction-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 999px; background: rgba(60, 58, 70, 0.06); border: 1px solid var(--line); }
.direction-toggle button {
    font: 600 15px/1.2 var(--print); color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px;
    padding: 10px 16px; min-height: 44px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.direction-toggle button[aria-pressed="true"] { background: #fffdf8; color: var(--accent); box-shadow: 0 4px 12px -6px rgba(40, 30, 20, 0.45); }

/* 연습 시간 */
#timerDisplay {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px;
    background: #fffdf8; border: 1px solid var(--line); box-shadow: 0 10px 22px -14px rgba(40, 30, 20, 0.5);
    transition: transform .6s cubic-bezier(.2, .9, .3, 1.3), box-shadow .6s ease;
}
#timerDisplay.minute-pulse { transform: scale(1.06); box-shadow: 0 14px 30px -12px rgba(155, 47, 53, 0.45); }
.timer-ring { width: 44px; height: 44px; flex: none; overflow: visible; }
.timer-ring-bg { fill: none; stroke: rgba(60, 58, 70, 0.1); stroke-width: 4; }
.timer-ring-fg { fill: none; stroke: url(#timerGrad); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 22px 22px; }
.timer-ring-bead { fill: #fff; stroke: #4d7cff; stroke-width: 2; }
.timer-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.timer-label { font-size: 13px; color: var(--ink-soft); }
.timer-digits { display: inline-flex; align-items: center; font-family: var(--print); font-weight: 700; font-size: 24px; color: var(--pen); font-variant-numeric: tabular-nums; }
.digit { display: inline-block; height: 1.25em; overflow: hidden; position: relative; width: 0.6em; }
.digit-col { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.2, .9, .25, 1.15); }
.digit-col span { height: 1.25em; line-height: 1.25em; text-align: center; }
.digit::before, .digit::after { content: ""; position: absolute; left: 0; right: 0; height: 0.3em; z-index: 1; pointer-events: none; }
.digit::before { top: 0; background: linear-gradient(#fffdf8, rgba(255, 253, 248, 0)); }
.digit::after { bottom: 0; background: linear-gradient(rgba(255, 253, 248, 0), #fffdf8); }
.digit-colon { padding: 0 0.08em 0.1em; color: var(--ink-soft); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.breath-note { text-align: left; margin-top: 22px; }
.back-home { margin: 14px 0 0; font-weight: 700; }
.footer-mini .footer-in { padding: 22px 16px 26px; display: block; }
.footer-mini p { margin: 0 0 6px; }
.footer-mini .legal { border: 0; padding: 0; }
@media (max-width: 560px) { .breath-sheet { padding-left: 14px; padding-right: 14px; } .direction-toggle button { font-size: 14px; padding: 10px 12px; } }
