/* The existing illustrated character, animated with aligned eye frames. */
.living-scene { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1; background: #352430; border-radius: inherit; }
.living-canvas { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 1; transform: translateX(-50%); }
.living-motion { position: absolute; inset: 0; transform-origin: 50% 85%; animation: idle-breathe 5.8s ease-in-out infinite; }
.living-frame { position: absolute; inset: 0; background-image: url('./assets/tsumugi-daily-scenes.png'); background-size: 400% 200%; background-position: var(--scene-x) var(--scene-y); background-repeat: no-repeat; }
.blink-layer { background-image: url('./assets/tsumugi-daily-scenes-blink.png'); clip-path: var(--eye-mask); opacity: 0; animation: eye-blink 6.2s steps(1,end) infinite; }
.pose-tired .living-motion { animation-duration: 8s; }
.pose-tired .blink-layer { animation-duration: 7.4s; }
.pose-warm .living-motion { animation-name: warm-breathe; }
.motion-paused .living-motion { animation: none; }
.motion-paused .blink-layer { animation: none; opacity: 0; }
.stage-art > .living-scene { height: 100%; min-height: 235px; aspect-ratio: auto; border-radius: 0; }
.motion-toggle { position: absolute; bottom: 10px; left: 10px; z-index: 2; display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 10px; border: 1px solid #dcb9c947; border-radius: 9px; background: #201322d9; color: #f6e7ef; font-size: .75rem; cursor: pointer; }
.motion-toggle .icon { width: 14px; height: 14px; }
@keyframes idle-breathe { 0%,100% { transform: scale(1.015,1.015); } 50% { transform: translateY(-1px) scale(1.018,1.025); } }
@keyframes warm-breathe { 0%,100% { transform: scale(1.015) rotate(-.12deg); } 50% { transform: translateY(-1px) scale(1.023) rotate(.18deg); } }
@keyframes eye-blink { 0%,39%,42%,85%,88%,100% { opacity: 0; } 40%,41%,86%,87% { opacity: 1; } }
.routine-auto { padding: 17px; border: 1px solid #79644188; border-radius: 13px; background: #b7934020; margin: 0 0 16px; }
.routine-auto.compact { margin-top: 18px; margin-bottom: 14px; padding: 14px; }
.auto-routine-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; color: #eed3a4; font-size: .9375rem; }
.auto-routine-heading > .icon { width: 18px; height: 18px; flex-shrink: 0; }
.auto-routine-heading label { font-weight: 500; }
.auto-routine-heading > span { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: .8125rem; margin-left: auto; }
.auto-routine-heading > span .icon { width: 14px; height: 14px; }
.routine-auto select { display: block; width: 100%; min-width: 0; max-width: 100%; height: auto; min-height: 44px; font: inherit; font-size: 1rem; color: #f3e7ec; border: 1px solid #8b71536e; border-radius: 8px; background: #231d2a; padding: 9px 30px 9px 10px; }
.auto-routine-preview { margin: 10px 0 0; font-size: .875rem; line-height: 1.7; color: #e5d5e1; overflow-wrap: anywhere; }
.auto-routine-note { margin: 5px 0 0; font-size: .8125rem; line-height: 1.7; color: var(--muted); }
.daily-routines > .routine-auto { margin-bottom: 18px; }
.receipt-routine,.support-recovery { padding: 16px; margin-top: 16px; border: 1px solid #79644188; border-radius: 13px; background: #b7934014; }
.receipt-routine h3,.support-recovery h3 { display: flex; gap: 7px; align-items: center; font-size: 1rem; line-height: 1.6; margin-bottom: 11px; color: var(--gold); }
.receipt-routine > div { margin: 12px 0 0; font-size: .9375rem; line-height: 1.7; }
.receipt-routine small { display: block; color: var(--muted); font-size: .8125rem; margin-bottom: 8px; }
.routine-skipped { display: flex; gap: 6px; margin-top: 15px; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.routine-skipped > .icon { flex-shrink: 0; margin-top: 2px; }
.support-recovery { background: #66354b2e; border-color: #995e7b; }
.support-recovery h3 { color: var(--pink); }
.support-recovery p { font-size: 1rem; line-height: 1.7; color: #eed6e4; }
.support-recovery > div { display: flex; gap: 10px 18px; flex-wrap: wrap; margin: 12px 0; }
.support-recovery > div > span { display: flex; align-items: center; gap: 6px; font-size: .9375rem; }
.support-recovery strong { font-size: 1.125rem; font-weight: 500; color: var(--teal); }
.support-recovery small { font-size: .8125rem; line-height: 1.7; color: var(--muted); display: block; }
.shift-scene > .living-scene { width: 100%; max-width: 285px; margin: auto; border-radius: 18px; }
.shift-scene .blink-layer { animation-delay: -1.5s; }
.shift-scene .shift-detail { min-height: 3.4em; margin: 0 0 16px; font-size: 1rem; line-height: 1.7; color: #d7c4d6; }
.shift-scene h2 { font-size: 1.125rem; line-height: 1.65; }
.shift-controls { display: flex; justify-content: center; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.shift-controls .button { width: auto; margin: 0; min-height: 44px; font-size: .9375rem; padding: 9px 15px; }
.shift-controls label { display: flex; gap: 7px; align-items: center; font-size: .875rem; color: var(--muted); }
.shift-controls select { font: inherit; font-size: 1rem; min-height: 44px; max-width: 130px; background: #2b2133; color: #f8eaf2; border: 1px solid #755d79; border-radius: 8px; padding: 7px; }
.shift-controls button:focus-visible,.routine-auto select:focus-visible,.motion-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
@media(max-width:520px) {
  .stage-art > .living-scene { min-height: 235px; }
  .routine-auto.compact { padding: 12px; }
  .auto-routine-heading { font-size: .875rem; }
  .shift-scene > .living-scene { max-width: 255px; }
  .motion-toggle { padding: 7px; }
  .auto-routine-heading > span { width: 100%; margin-left: 24px; }
}
@media(prefers-reduced-motion:reduce) {
  .living-motion,.blink-layer { animation: none; }
  .blink-layer { opacity: 0; }
}
