/* Lotus lanterns are resolution-independent UI, with a shared silhouette and material. */
.wish-lotus{--petal-light:#fff0dc;--petal-mid:#efa6a3;--petal-edge:#b95061;display:block;position:relative;width:230px;height:180px;pointer-events:none;flex-shrink:0}
.wish-lotus[data-color=ivory]{--petal-light:#ffffed;--petal-mid:#e9d8a7;--petal-edge:#a59b77}.wish-lotus[data-color=amber]{--petal-light:#fff0bc;--petal-mid:#edb275;--petal-edge:#b57044}
.lotus-flower{position:absolute;width:160px;height:120px;left:35px;top:13px;filter:drop-shadow(0 8px 7px #48292c33);animation:lantern-sway 7s ease-in-out infinite}
.petal{position:absolute;bottom:9px;left:49px;width:62px;height:86px;border-radius:75% 12% 65% 32%;background:radial-gradient(ellipse at 80% 86%,var(--petal-light),var(--petal-mid) 55%,var(--petal-edge));box-shadow:inset 1px 2px 2px #fff9,inset -3px -2px 6px #863d3b24;transform-origin:50% 90%}
.petal-0{transform:translateY(-9px) rotate(-45deg);width:68px;height:68px;left:45px;bottom:37px}.petal-1{transform:rotate(-68deg);left:33px;bottom:10px}.petal-2{transform:rotate(22deg);left:65px;bottom:10px}.petal-3{transform:rotate(-95deg) scale(.91);left:28px;bottom:-2px}.petal-4{transform:rotate(47deg) scale(.91);left:68px;bottom:-2px}.petal-5{transform:rotate(-67deg) scale(.72);left:41px;bottom:-4px}.petal-6{transform:rotate(18deg) scale(.72);left:61px;bottom:-4px}
.lotus-cup{position:absolute;bottom:5px;left:52px;width:56px;height:18px;border-radius:50%;background:radial-gradient(ellipse at 50% 15%,#fffbd2,#fbd38e 42%,var(--petal-mid) 73%);box-shadow:0 -8px 18px #ffdc9766}.lotus-flame{position:absolute;bottom:20px;left:72px;width:17px;height:32px;border-radius:75% 20% 70% 45%;transform:rotate(-10deg);background:radial-gradient(ellipse at 48% 85%,#fffef3 20%,#ffe7a4 55%,#ecae5d);box-shadow:0 0 13px #ffe8ab,0 0 36px #f8d294b3}
.lotus-halo{position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse,#ffd49c33,transparent 65%)}.lotus-ripple{position:absolute;left:20px;bottom:20px;width:190px;height:31px;border:1px solid #ca9d7933;border-radius:50%;box-shadow:0 2px 1px #ffffff15}.ripple-outer{left:0;bottom:12px;width:230px;height:47px;border-color:#ca9d7917}.lotus-reflection{position:absolute;bottom:13px;left:67px;width:97px;height:32px;border-radius:50%;background:radial-gradient(ellipse,#f6c8833b,transparent 70%);filter:blur(3px)}.lotus-small{width:90px;height:70px}.lotus-small>*{transform-origin:top left}.lotus-small .lotus-flower{scale:.39;left:14px;top:5px}.lotus-small .lotus-ripple{scale:.39;left:8px;bottom:-8px}.lotus-small .ripple-outer{left:0;bottom:-24px}.lotus-small .lotus-reflection{scale:.39;left:27px;bottom:-10px}
.nav-lantern{height:34px;width:34px;overflow:visible;position:relative}.nav-lantern .wish-lotus{position:absolute;left:-28px;top:-17px;scale:.46}.nav-item.active .nav-lantern{filter:saturate(1.2)}
/* One main action per screen. Extra choices stay folded away. */
.app-shell:has(.wish-view){grid-template-rows:minmax(0,1fr) auto;background:#fffdfb}.app-shell:has(.wish-view) .topbar{display:none}.app-shell:has(.wish-view) main{padding:0;overflow-y:auto;overscroll-behavior:contain}.app-shell:has(.wish-view:not([data-screen="home"])){grid-template-rows:minmax(0,1fr)}.app-shell:has(.wish-view:not([data-screen="home"])) #mobile-nav{display:none}
.wish-view{display:flex;flex:1;min-height:0}.wish-view #wishes-content{display:flex;flex-direction:column;flex:1;min-width:0;min-height:100%;padding:28px 24px calc(24px + env(safe-area-inset-bottom))}.wish-view h1{font-size:32px;letter-spacing:-.8px;line-height:1.4;word-break:keep-all}.wish-view h1:focus{outline:none}.wish-view .primary,.wish-view .secondary{font-size:21px;min-height:66px;border-radius:18px}.wish-view .text-button{font-size:18px;min-height:50px}
.wish-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.wish-balance{font-size:17px;font-weight:600;min-height:48px;padding:10px 14px;border-radius:24px;background:var(--weak);color:var(--accent);white-space:nowrap}.wish-balance span{margin-left:6px}.wish-home-art{flex:1;min-height:220px;display:grid;place-items:center;padding:28px 0}.wish-home-art>.wish-lotus{scale:1.2}.wish-home-links{margin-top:22px;display:flex;flex-direction:column;flex-shrink:0}.wish-home-links button{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;font-size:21px;min-height:68px;text-align:left;border-bottom:1px solid #eee8e3}.wish-home-links button:last-child{border:0}.wish-home-links span{font-size:28px;color:#a18d82}
.wish-step-header{min-height:52px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;margin:-12px 0 22px;color:#8b7c74}.wish-step-header .text-button{padding-left:0;color:#6b7684;font-weight:500}.wish-tabs{display:flex;gap:4px;padding:4px;background:#f2f0ed;border-radius:16px;margin:24px 0 12px;flex-shrink:0}.wish-tabs button{flex:1;min-height:54px;background:none;border-radius:12px;font-size:18px;color:#79706c}.wish-tabs button[aria-pressed=true]{background:#fff;color:var(--accent);font-weight:650}.wish-list{flex:1}.wish-empty{padding:52px 0;text-align:center;font-size:20px;color:#8b7c74}.wish-empty .primary{margin-top:28px}.wish-card{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:22px 0;background:none;border-bottom:1px solid #eee8e3}.wish-card>.lotus-small{width:65px;scale:.75;margin-left:-10px;margin-right:0}.wish-card-copy{flex:1;min-width:0}.wish-card-text{font-size:21px;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}.wish-card-meta{display:block;font-size:15px;color:#8b7c74;margin-top:10px}.wish-card-arrow{font-size:28px;color:#a18d82}
#wish-form{display:flex;flex-direction:column;flex:1;margin-top:24px}.wish-view textarea{font:inherit;font-size:24px;line-height:1.65;display:block;width:100%;min-height:220px;max-height:480px;resize:vertical;border:0;border-radius:20px;padding:22px;background:#f5f2ef;color:#3f342f;overflow-wrap:anywhere}.wish-view textarea::placeholder{color:#9a8e85}.wish-view textarea:read-only{opacity:.65}.wish-count{font-size:15px;color:#8b7c74;text-align:right;margin:8px 4px 20px}.wish-privacy{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;margin:0;font-size:20px;color:#4e5968}.wish-privacy input{appearance:none;width:52px;height:32px;border-radius:20px;background:#c8c1b9;position:relative;flex-shrink:0;cursor:pointer;margin:0}.wish-privacy input:before{content:'';position:absolute;top:3px;left:3px;width:26px;height:26px;background:white;border-radius:50%;transition:transform .15s}.wish-privacy input:checked{background:var(--accent)}.wish-privacy input:checked:before{transform:translateX(20px)}.wish-view details summary{font-size:18px;font-weight:550;min-height:56px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}.wish-view details summary::-webkit-details-marker{display:none}.wish-view details summary:after{content:'+';font-size:26px;color:#8b7c74;font-weight:400}.wish-view details[open] summary:after{content:'−'}.wish-view details summary:focus-visible{outline:3px solid #b95048;outline-offset:3px;border-radius:8px}.wish-color-options{margin:4px 0 20px}.wish-colors{display:flex;flex-wrap:wrap;gap:16px;border:0;padding:12px 0;margin:0}.wish-colors label{position:relative;display:flex;gap:8px;align-items:center;min-height:48px;font-size:17px;color:#786f69;margin:0;cursor:pointer}.wish-colors input{position:absolute;opacity:0;width:1px;height:1px}.wish-swatch{display:block;width:30px;height:30px;border:3px solid #fffdfb;border-radius:50%;background:linear-gradient(135deg,#f6d4c9,#c9727d);box-shadow:0 0 0 1px #e5dcd4}.wish-swatch[data-color=ivory]{background:linear-gradient(135deg,#ffffed,#d3c08c)}.wish-swatch[data-color=amber]{background:linear-gradient(135deg,#ffe4b8,#d99563)}.wish-colors input:checked+.wish-swatch{box-shadow:0 0 0 2px #a43e38}.wish-colors input:focus-visible+.wish-swatch{outline:3px solid #a43e38;outline-offset:4px}.wish-compose-bottom{margin-top:auto;padding-top:16px}.wish-cost{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#786f69;font-size:16px;margin-bottom:10px}.wish-cost span{color:var(--accent)}.wish-insufficient{font-size:18px;margin:16px 0 6px;color:var(--accent)}
.wish-detail-art{display:grid;place-items:center;min-height:160px;padding:20px 0 0;flex-shrink:0}.wish-detail-text{flex:1;white-space:pre-wrap;overflow-wrap:anywhere;font-size:26px;line-height:1.85;padding:20px 0}.wish-detail-meta{font-size:16px;color:#8b7c74;margin:20px 0}.wish-manage{margin-top:auto}.wish-confirm{display:flex;flex-direction:column;flex:1;justify-content:center}.wish-confirm>p{font-size:18px;color:#786f69;margin:16px 0}.wish-confirm blockquote{margin:16px 0;padding:20px;background:#f5f2ef;border-radius:18px;font-size:21px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow-y:auto}.wish-confirm>.primary{margin-top:24px}.wish-success{display:flex;flex-direction:column;flex:1;align-items:center;justify-content:center;text-align:center}.wish-success-art{height:220px;display:grid;place-items:center;margin-bottom:20px}.wish-success-art .wish-lotus{animation:lantern-release 1.3s ease-out both;scale:1.15}.wish-success h1{font-size:32px}.wish-success-text{font-size:24px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:28px 0;max-width:100%}.wish-success>.primary{margin-top:auto;flex-shrink:0}
.wallet-hero{padding:28px 0 42px;text-align:center}.wallet-hero>p{font-size:76px;line-height:1.3;color:#633b34;font-weight:650;letter-spacing:-2px;margin-top:24px}.wallet-hero>p>span{font-size:24px;font-weight:400;margin-left:8px;color:#8b7c74}.wallet-reward-row{display:flex;align-items:center;gap:16px;padding:24px 0;border-bottom:1px solid #eee8e3}.wallet-reward-row>span{flex:1}.wallet-reward-row b{display:block;font-size:22px;font-weight:600}.wallet-reward-row small{display:block;font-size:17px;color:#8b7c74;margin-top:8px}.wallet-reward-row button{min-width:90px;min-height:58px;padding:14px 18px;font-size:19px}.wallet-history{margin-top:30px}.wallet-history>div{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #eee8e3;font-size:18px;color:#786f69}.wallet-history small{display:block;font-size:15px;margin-top:6px;color:#8b7c74}.wallet-history>p{padding:20px 0;color:#8b7c74;font-size:18px}.wallet-return{margin-top:30px}
.wish-error{border-radius:14px;background:#fbefec;color:#914137;padding:14px;font-size:17px;line-height:1.6;margin:12px 0;overflow-wrap:anywhere}.wish-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.med-wallet-reward{font-size:14px;color:#a43e38;margin:16px auto 0;max-width:300px}.meditation-complete #med-wallet-retry[hidden]{display:none}
@keyframes lantern-sway{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -4px;rotate:1deg}}@keyframes lantern-release{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.wish-lotus *,.wish-success-art .wish-lotus{animation:none!important;transition:none!important}}.reduce-motion .wish-lotus *,.reduce-motion .wish-success-art .wish-lotus{animation:none!important;transition:none!important}
@media(max-height:740px){.wish-view #wishes-content{padding:20px 20px calc(20px + env(safe-area-inset-bottom))}.wish-home-art{min-height:170px;padding:12px 0}.wish-home-art>.wish-lotus{scale:1}.wish-home-links{margin-top:14px}.wish-home-links button{min-height:58px}.wish-view textarea{min-height:180px}.wish-step-header{margin-bottom:18px}.wallet-hero{padding:12px 0 24px}}
@media(max-width:350px){.wish-view #wishes-content{padding-left:18px;padding-right:18px}.wish-heading h1{font-size:28px}.wish-balance{font-size:16px;padding:10px}.wish-view textarea{font-size:22px}.wish-cost{font-size:15px}.wish-colors{gap:12px}.wish-colors label{font-size:16px}}

.lotus-currency-icon{display:inline-block;vertical-align:middle;object-fit:contain;flex:0 0 auto;width:28px;height:28px;margin-right:6px}.primary .lotus-currency-icon{width:28px;height:28px}.wish-cost{justify-content:flex-start;gap:6px}.wish-cost>span{margin-left:auto}.wallet-hero>.lotus-currency-icon{width:88px;height:88px;margin:0 0 16px}.wallet-reward-row .lotus-currency-icon{float:left;width:44px;height:44px;margin:4px 14px 0 0}.wish-balance{display:inline-flex;align-items:center;gap:6px}.counsel-cost>.lotus-currency-icon{float:left;width:36px;height:36px;margin:0 10px 0 0}

/* Confirmed wish offering: no artificial wait, autoplay sound, or fulfillment claim. */
.wish-prayer{display:block;text-align:center}.wish-prayer-scene{position:relative;width:100%;height:260px;border-radius:24px;background:#211e15;overflow:hidden;margin:0 0 28px;isolation:isolate}.wish-prayer-buddha{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 42%}.wish-prayer-scene:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#19170fe6);z-index:1}.wish-prayer-light{position:absolute;width:280px;height:220px;left:50%;bottom:-80px;translate:-50% 0;background:radial-gradient(ellipse,#ffd37e70,transparent 67%);animation:prayer-light 4s ease-in-out infinite;z-index:2}.wish-prayer-lantern{position:absolute;left:50%;bottom:-15px;transform:translateX(-50%);z-index:3;animation:prayer-offering 1.6s ease-out both}.wish-prayer-lantern>.wish-lotus{scale:.75;transform-origin:50% 80%}.wish-prayer h1{font-size:28px}.wish-prayer-intro{font-size:15px;line-height:1.7;color:#7a7265;margin:8px 0 0}.wish-prayer .wish-success-text{font-size:22px;font-weight:500;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:24px 0;padding:0 12px;border:0}.wish-prayer-monk{display:flex;align-items:center;text-align:left;gap:14px;padding:16px 0;margin:0 0 24px;border-top:1px solid #e9e4db;border-bottom:1px solid #e9e4db}.wish-prayer-monk>img{width:76px;height:76px;object-fit:contain;flex-shrink:0;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse,#000 55%,transparent 75%);animation:prayer-bow 2.4s ease-in-out 1}.wish-prayer-monk strong{display:block;font-size:15px;font-weight:600}.wish-prayer-monk span{display:block;font-size:13px;line-height:1.6;color:#838076;margin-top:6px}.wish-prayer>.primary{margin-top:0}.wish-prayer:has(.wish-success-text) .wish-success-text{max-height:none}@keyframes prayer-light{50%{opacity:.5;scale:.92}}@keyframes prayer-offering{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}@keyframes prayer-bow{50%{transform:translateY(4px) rotate(3deg)}}@media(max-width:760px){.wish-prayer-scene{height:230px;border-radius:20px;margin-bottom:24px}.wish-prayer .wish-success-text{font-size:20px}.wish-prayer-monk{gap:10px}.wish-prayer-monk>img{width:64px;height:64px}}@media(prefers-reduced-motion:reduce){.wish-prayer *{animation:none!important}}.reduce-motion .wish-prayer *{animation:none!important}

/* Wish offerings use the gentle 3D character, never a realistic statue. */
.wish-prayer-scene{background:#f7f5f0;height:280px}.wish-prayer-buddha{width:240px;height:240px;margin:8px auto 0;object-fit:contain;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse,#000 58%,transparent 76%)}.wish-prayer-scene:after{display:none}.wish-prayer-light{bottom:-110px;opacity:.45}.wish-prayer-lantern{bottom:8px}.wish-prayer-lantern>.wish-lotus{scale:.4;transform-origin:50% 100%}@media(max-width:760px){.wish-prayer-scene{height:250px}.wish-prayer-buddha{width:212px;height:212px;margin-top:6px}}

.prayer-poses{position:relative;width:240px;height:240px;margin:8px auto 0}.prayer-pose{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;animation:prayer-pose-cycle 18s linear infinite}.pose-0{opacity:1;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse,#000 58%,transparent 76%)}.pose-1{animation-delay:-12s}.pose-2{animation-delay:-6s}.prayer-pose:not(.pose-0){padding:8px 20px}.wish-prayer[data-paused=true] *,.wish-view[data-hidden=true] .wish-prayer *{animation-play-state:paused!important}.wish-view .prayer-motion{display:block;margin:-14px auto 8px;min-height:44px;padding:8px 12px;font-size:13px;color:#8a8378;background:none;border:0}.prayer-motion:focus-visible{outline:2px solid #8b642f;outline-offset:2px}@keyframes prayer-pose-cycle{0%,28%{opacity:1}34%,94%{opacity:0}100%{opacity:1}}@media(max-width:760px){.prayer-poses{width:212px;height:212px;margin-top:6px}}@media(prefers-reduced-motion:reduce){.prayer-pose{animation:none!important;opacity:0}.prayer-pose.pose-0{opacity:1}.wish-view .prayer-motion{display:none}}.reduce-motion .prayer-pose{animation:none!important;opacity:0}.reduce-motion .prayer-pose.pose-0{opacity:1}.reduce-motion .prayer-motion{display:none}
