.mobile-app { background: #243d39; color: var(--linen); color-scheme: dark; }
.mobile-app main { max-width: 480px; }
.mobile-app .phone { width: min(100%, calc(100svh * 8 / 15)); margin: auto; border: 0; border-radius: 0; box-shadow: none; }
.mobile-app .phone[data-screen=practice] .phone-scene,
.mobile-app .phone[data-screen=practice] .garden-layers { transform: scale(var(--practice-zoom, 1.4)); transform-origin: var(--scene-anchor, 50% 72.7%); }
.mobile-app .garden-button, .mobile-app .text-button { min-height: 44px; padding: 8px 16px; border: 1px solid #ecedd347; border-radius: 999px; background: #263a35cf; color: var(--linen); font-size: 12px; text-align: center; backdrop-filter: blur(8px); }
.mobile-app .home-screen > .garden-button, .mobile-app #show-home { position: absolute; z-index: 3; top: max(18px, env(safe-area-inset-top)); left: 14px; }
.mobile-app .home-screen > .collection-button { left: auto; right: 14px; }
.mobile-app .screen-heading { top: 14%; font: 28px var(--serif); letter-spacing: 0; }
.mobile-app .begin-panel { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 8%; right: 8%; border: 1px solid #ecedd335; border-radius: 28px; padding: 18px 16px; background: #1b3331bf; backdrop-filter: blur(10px); text-align: center; }
.mobile-app .begin-panel .eyebrow { color: #e2d3b1; margin-bottom: 5px; font-size: 10px; }
.mobile-app .session-duration { font: 40px/1.1 var(--serif); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.mobile-app #session-summary { font-size: 11px; margin-bottom: 14px; }
.mobile-app .primary { display: block; width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid #ffefd38a; border-radius: 999px; background: #f3e0badb; color: #203b34; font-size: 14px; text-align: center; }
.mobile-app button:disabled { opacity: .55; cursor: default; }
.mobile-app .begin-panel .text-button { margin-top: 8px; padding: 4px 14px; }
.mobile-app #characters { position: absolute; inset: 0; pointer-events: none; }
.mobile-app #characters img { position: absolute; max-width: none; pointer-events: none; opacity: 0; }
.mobile-app .pause-button { top: max(18px, env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; z-index: 3; }
.mobile-app .practice-info { bottom: 9%; left: 5%; right: 5%; }
.mobile-app .posture-name { font-size: clamp(20px, 5vw, 26px); margin-bottom: 12px; }
.mobile-app .posture-timer { font-size: 44px; }
.mobile-app #preview-status { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 12px; right: 12px; color: var(--linen); text-align: center; font-size: 12px; margin: 0; }
.mobile-app .save-notice, .mobile-app .garden-status { color: #f0dbb2; padding: 0 16px; font-size: 12px; }
.mobile-app .review-links { justify-content: center; gap: 16px; font-size: 10px; padding: 16px 10px; flex-wrap: wrap; }
.mobile-app a { text-decoration: underline; text-underline-offset: 3px; }
.mobile-app button:focus-visible, .mobile-app a:focus-visible, .mobile-app h1:focus-visible, .mobile-app h2:focus-visible { outline: 3px solid #ecd098; outline-offset: 3px; }
.results-screen { padding: max(24px, env(safe-area-inset-top)) 22px 24px; background: linear-gradient(#2b4540, #203732); min-height: 100svh; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.results-screen .eyebrow { color: #dbcaa8; }
.results-screen h1 { font-size: 36px; letter-spacing: -.8px; margin-bottom: 10px; }
.results-screen h2 { font-size: 28px; letter-spacing: -.5px; margin-bottom: 14px; }
.result-panel { padding: 24px 20px; border: 1px solid #d6e1c833; border-radius: 28px; background: #192f2aad; margin-bottom: 32px; text-align: center; }
.result-panel p { font-size: 13px; }
.result-panel .earned { font: 18px var(--serif); color: #f3d5a3; }
.earned strong { display: block; font-size: 64px; }
.habit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid #d6e1c82a; padding-top: 20px; margin: 20px 0; }
.habit-grid dt { font-size: 11px; }
.habit-grid dd { font: 28px var(--serif); margin: 4px 0 0; }
#grace-label { font-size: 11px; }
.results-screen progress { display: block; width: 100%; height: 8px; accent-color: #d8b16f; margin: 10px 0 24px; }
.wallet { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px solid #d6e1c833; padding-bottom: 12px; }
.wallet strong { color: #f3d5a3; font-size: 20px; }
#shop-status, .collection-note { font-size: 12px; color: #d1d9cc; }
.reward-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid #d6e1c833; }
.reward-card img { width: 64px; height: 80px; object-fit: contain; }
.reward-card h3 { font-size: 22px; margin: 0 0 4px; }
.reward-card p { font-size: 12px; margin-bottom: 8px; }
.reward-card button { width: 100%; min-height: 44px; border: 1px solid #ecedd347; border-radius: 999px; background: #ffffff12; color: var(--linen); font-size: 12px; }
.reward-card .concept-mark { display: grid; place-items: center; color: #c9b7d2; font: 32px var(--serif); }
.collection-note { margin-top: 20px; }
dialog { color: var(--linen); background: #243d39; border: 1px solid #d6e1c855; border-radius: 24px; padding: 24px; width: min(90vw, 400px); }
dialog::backdrop { background: #102923a3; }
dialog h2 { font-size: 28px; }
dialog p { font-size: 14px; }
dialog form { display: flex; gap: 10px; }
dialog button { flex: 1; min-height: 48px; padding: 8px; border: 1px solid #d6e1c855; border-radius: 999px; background: #ffffff18; color: var(--linen); font-size: 13px; }
dialog button[value=restart] { background: #f3e0badb; color: #203b34; }
.live-setup .choice input:disabled + span { opacity: .55; }
@media (max-height: 640px) { .mobile-app .begin-panel { padding: 12px; } .mobile-app .screen-heading { top: 15%; font-size: 23px; } .mobile-app .session-duration { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .mobile-app * { scroll-behavior: auto; } }
