@font-face{font-family:StoneSerif;src:local('Georgia')}@font-face{font-family:StoneSans;src:local('Segoe UI')}
:root{--paper:#f6f4ed;--sand:#e7e4d8;--ink:#293e35;--muted:#667368;--moss:#829578;--clay:#b47b58;--line:#d5dace;--forest:#314b3e;--soft:#eaf0e4;--serif:StoneSerif,Georgia,serif;--sans:StoneSans,'Segoe UI',system-ui,sans-serif;--radius:18px}
*{box-sizing:border-box}body{margin:0;background:#dfe6db;color:var(--ink);font-family:var(--sans);min-height:100svh;display:flex;align-items:center;justify-content:center;gap:clamp(32px,6vw,105px);padding:34px 40px}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--clay);outline-offset:4px}button{border:0;background:none;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.4}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.studio{width:270px;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;padding:14px 0}.studio-wordmark{font-family:var(--serif);font-size:34px;letter-spacing:-1.5px;color:var(--ink);text-decoration:none}.studio-wordmark span{display:block;font-family:var(--sans);font-size:9px;letter-spacing:2px;margin-top:12px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;line-height:1.5}.studio-note h1{font-size:56px;line-height:1.07;letter-spacing:-2px;margin:22px 0}.studio-note p{font-size:14px;line-height:1.8;color:var(--muted)}.studio-footer{display:flex;flex-direction:column;gap:10px;font-size:10px;letter-spacing:.6px;color:var(--muted)}.phone{position:relative;width:390px;height:min(844px,calc(100svh - 68px));min-height:710px;flex-shrink:0;background:var(--paper);border-radius:36px;overflow:hidden;box-shadow:0 24px 70px #334b3820,0 0 0 9px #eff1e8,0 0 0 10px #bdc7b9}.screen{display:none;position:absolute;inset:0;overflow:auto;background:var(--paper);scrollbar-width:none}.screen.active{display:flex;flex-direction:column}.home{overflow:hidden;background:#f1f2e9}.home-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:29px 26px 15px}.brand{display:flex;gap:9px;align-items:center;font-family:var(--serif);font-size:30px;letter-spacing:-1.5px}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:27px;flex-shrink:0}.icon-button:hover{background:#314b3e0d}.home-art{position:absolute;inset:0 0 105px;pointer-events:none}.home-art canvas{width:100%;height:100%}.home-art.image-ready{background-position:center 44%;background-size:cover}.home-art.image-ready canvas{display:none}.home-art:after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#f1f2e9 90%)}.home-copy{position:relative;z-index:1;margin-top:auto;padding:0 30px 21px;text-align:center}.home-copy .eyebrow{font-size:9px;letter-spacing:1.6px}.home-copy h2{font-size:42px;line-height:1.06;letter-spacing:-1.8px;margin:14px 0 12px}.home-copy p{color:var(--muted);font-size:13px;margin-bottom:24px}.primary{min-height:52px;width:100%;background:var(--forest);color:#f8f8ed;border-radius:28px;padding:13px 23px;font-size:14px;font-weight:500;letter-spacing:.2px;display:flex;align-items:center;justify-content:center;gap:12px}.primary:hover{background:#263d30}.begin{justify-content:space-between}.begin span:last-child{font-size:23px}.caption{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:10px}.bottom-nav{position:relative;z-index:2;display:flex;padding:14px 25px 21px;background:#f1f2e9;border-top:1px solid #d7ded260;justify-content:space-between;flex-shrink:0}.nav-item{font-size:10px;display:flex;gap:5px;align-items:center;flex-direction:column;min-width:65px;min-height:45px;justify-content:center;color:#788474}.nav-item.selected{color:var(--ink)}.nav-item.selected:after{content:'';width:3px;height:3px;border-radius:50%;background:currentColor;position:absolute;bottom:10px}.design-caption{width:155px;align-self:center}.index{font-size:9px;letter-spacing:1.8px}.design-caption p{font-family:var(--serif);font-size:25px;line-height:1.3;margin:18px 0 30px}.palette{display:flex;gap:7px}.palette i{width:19px;height:19px;border-radius:50%;background:var(--paper)}.palette i:nth-child(2){background:var(--moss)}.palette i:nth-child(3){background:var(--forest)}.palette i:nth-child(4){background:var(--clay)}.prototype-note{font-size:10px;line-height:1.7;display:block;color:var(--muted);margin-top:22px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}dialog{border:0;border-radius:27px;background:var(--paper);color:var(--ink);padding:24px;width:340px;max-width:calc(100% - 32px);box-shadow:0 30px 100px #17251b30}dialog::backdrop{background:#142c2260;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.dialog-top .eyebrow{font-size:9px}dialog h2{font-size:34px;margin:10px 0 25px}.setting{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:18px 0;border-top:1px solid var(--line);font-size:14px}.setting small{display:block;color:var(--muted);line-height:1.5;font-size:11px;margin-top:5px}.setting input{accent-color:var(--forest);width:20px;height:20px;flex-shrink:0}dialog .primary{margin-top:22px}.toast{position:absolute;z-index:20;bottom:100px;left:25px;right:25px;background:var(--forest);color:var(--paper);padding:14px 18px;border-radius:16px;font-size:12px;text-align:center}.toast[hidden]{display:none}.view-header{padding:24px 19px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.view-header .title{text-align:center}.view-header h2{font-size:24px;letter-spacing:-.5px;margin-top:4px}.view-header .eyebrow{font-size:8px;letter-spacing:1.6px}.placeholder{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px;padding:32px}
.home-art{height:62%;bottom:auto}.home-art.image-ready{background-size:auto 115%;background-position:center 72%;background-repeat:no-repeat}.home-art:after{inset:77% 0 0;background:linear-gradient(transparent,#f1f2e9)}
.build-progress{display:flex;align-items:center;justify-content:space-between;padding:2px 30px 17px;color:var(--muted);font-size:11px}.build-progress>div{display:flex;gap:7px}.build-progress i{width:5px;height:5px;border-radius:50%;background:#d9dfd1}.build-progress i.placed{background:var(--forest)}.play-scene{position:relative;flex:1;min-height:235px;background:#eef1e7}.play-scene canvas{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none;cursor:grab}.play-scene canvas:active{cursor:grabbing}.scene-label{position:absolute;left:28px;top:22px;font-size:8px;letter-spacing:2px;color:#7e8d79;pointer-events:none}.contact-message{position:absolute;bottom:13px;width:100%;text-align:center;font-family:var(--serif);font-style:italic;font-size:13px;color:#5d705d;pointer-events:none}.play-controls{padding:20px 25px 22px;background:var(--paper);flex-shrink:0}.tray-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.tray-heading .eyebrow{font-size:8px;letter-spacing:1.3px}.tray-heading>span:last-child{font-size:10px;color:var(--muted)}.stone-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;min-height:85px}.stone-option{padding:3px 4px 10px;min-height:83px;border:1px solid transparent;background:#eceee5;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.stone-option.chosen{border-color:var(--moss);background:#e4ebdc}.stone-option:hover{border-color:var(--moss)}.stone-option canvas{width:80px;height:41px;max-width:100%}.stone-option span{font-size:10px;letter-spacing:.1px}.position-row{display:flex;gap:13px;align-items:center;margin:8px 0 10px;height:30px}.position-row input{width:100%;height:28px;accent-color:var(--forest);cursor:ew-resize}.position-side{font-size:16px;color:var(--muted)}.placement-actions{display:flex;gap:8px;align-items:center}.round-control{border:1px solid var(--line);border-radius:50%;width:42px;height:44px;min-width:42px;display:flex;align-items:center;justify-content:center}.round-control svg{width:17px;height:17px}.round-control:hover{background:var(--soft)}.place-button{min-height:46px;font-size:12px;padding:10px 14px;flex:1;white-space:nowrap}.control-note{text-align:center;color:var(--muted);font-size:9px;margin-top:12px;line-height:1.5}.page-intro{padding:22px 29px 26px}.chapter-number{font-family:var(--serif);font-size:13px;font-style:italic;color:var(--clay);display:block;margin-bottom:12px}.page-intro h3{font-size:40px;letter-spacing:-1.3px;line-height:1.1}.page-intro p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:12px}.journey-list{padding:0 23px}.journey-card{display:flex;align-items:center;text-align:left;width:100%;border-top:1px solid var(--line);padding:19px 0;gap:14px;min-height:127px}.journey-card:last-child{border-bottom:1px solid var(--line)}.journey-card:hover .journey-info h3{color:var(--clay)}.journey-art{width:82px;height:90px;flex-shrink:0;border-radius:42px 42px 10px 10px;overflow:hidden;background:var(--soft)}.journey-art canvas{width:100%;height:100%}.journey-info{flex:1}.journey-info .eyebrow{font-size:7px;letter-spacing:1.2px}.journey-info h3{font-size:21px;line-height:1.18;margin:7px 0}.journey-info p{font-size:9px;line-height:1.6;color:var(--muted)}.journey-arrow{font-size:19px;color:var(--muted);margin-right:3px}.journey-closing{text-align:center;padding:29px 20px;margin-top:auto}.journey-closing .eyebrow{font-size:8px;letter-spacing:1.5px}.journey-closing p{font-family:var(--serif);font-style:italic;font-size:14px;line-height:1.7;color:var(--muted);margin-top:12px}#journey .bottom-nav,#garden .bottom-nav{margin-top:auto;background:var(--paper)}.garden-intro{text-align:center;padding:24px 25px 27px}.garden-grid{padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:18px 14px}.garden-card{text-align:left;padding-bottom:12px}.garden-card canvas{width:100%;height:170px;border-radius:70px 70px 9px 9px;display:block;margin-bottom:14px}.garden-card .eyebrow{font-size:7px;letter-spacing:1.3px}.garden-card h3{font-size:18px;line-height:1.2;margin-top:7px}.garden-card .caption{font-size:8px;margin-top:6px}.garden-empty{grid-column:1/-1;min-height:335px;text-align:center;border:1px solid var(--line);border-radius:100px 100px 20px 20px;padding:42px 24px 28px;background:linear-gradient(#e7eddf88,transparent)}.garden-empty img{opacity:.6}.garden-empty h3{font-size:28px;line-height:1.1;margin:18px 0 12px}.garden-empty p{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:22px}.garden-empty .primary{font-size:12px;min-height:46px}.garden-footnote{text-align:center;font-family:var(--serif);font-style:italic;font-size:12px;color:var(--muted);padding:22px}.complete-header{display:flex;align-items:center;justify-content:space-between;padding:28px}.complete-header .eyebrow{font-size:8px;letter-spacing:1.5px}.completion-art{position:relative;flex:1;min-height:220px}.completion-art canvas{position:absolute;inset:0;width:100%;height:100%}.completion-copy{text-align:center;padding:22px 29px 29px;background:var(--paper)}.completion-copy>.eyebrow{font-size:8px;letter-spacing:1.6px}.completion-copy h2{font-size:44px;letter-spacing:-1.8px;line-height:1.03;margin:14px 0}.completion-copy p{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 25px}.completion-options{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;color:var(--muted)}.completion-options button{font-size:11px;min-height:44px;padding:6px}.completion-options button:hover{text-decoration:underline}.completion-options span{font-size:10px}#settings-dialog{max-height:calc(100svh - 40px);overflow:auto}#settings-dialog .setting{padding:12px 0}#settings-dialog h2{margin-bottom:20px}
@media(max-width:1120px){body{gap:50px}.design-caption{display:none}.studio{width:260px}}@media(max-width:760px){body{padding:0;background:var(--paper)}.studio,.design-caption{display:none}.phone{width:min(100%,480px);height:100svh;min-height:620px;border-radius:0;box-shadow:none}.home-header{padding-top:max(23px,env(safe-area-inset-top))}.bottom-nav{padding-bottom:max(17px,env(safe-area-inset-bottom))}.play-controls{padding-bottom:max(18px,env(safe-area-inset-bottom))}}@media(max-height:760px) and (min-width:761px){body{padding:16px 40px}.phone{height:740px;min-height:740px}}@media(max-height:740px){.home-copy h2{font-size:35px;margin:10px 0}.home-copy p{margin-bottom:16px}.home-copy{padding-bottom:13px}.home-copy .caption{margin-top:7px}.home-header{padding-top:18px}.bottom-nav{padding-top:10px;padding-bottom:14px}.view-header{padding-top:15px}.play-controls{padding-top:13px;padding-bottom:15px}.completion-copy h2{font-size:36px}.completion-copy{padding-top:15px;padding-bottom:15px}.completion-copy p{margin-bottom:17px}.page-intro{padding-top:12px;padding-bottom:19px}.journey-card{min-height:113px;padding:13px 0}.journey-closing{padding:19px}.garden-empty{min-height:290px;padding-top:26px}}@media(max-width:350px){.brand{font-size:27px}.home-copy{padding-left:24px;padding-right:24px}.play-controls{padding-left:16px;padding-right:16px}.placement-actions{gap:6px}.round-control{min-width:40px;width:40px}.view-header h2{font-size:21px}.view-header .eyebrow{font-size:7px}.journey-info h3{font-size:19px}.journey-art{width:66px}.garden-card h3{font-size:16px}.garden-grid{padding:0 18px;gap:12px}.completion-options{gap:7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:760px){.home-header,.view-header,.complete-header{padding-top:max(20px,env(safe-area-inset-top))}.bottom-nav,.play-controls,.completion-copy{padding-bottom:max(18px,env(safe-area-inset-bottom))}}
/* Release interface: readable type, safe touch targets, small-screen scrolling. */
[hidden]{display:none!important}a{color:var(--forest);text-underline-offset:4px}.phone{width:420px;height:min(900px,calc(100svh - 48px));min-height:680px}.brand h2{font-size:30px;letter-spacing:-1.5px}.home-copy h1{font-size:44px;line-height:1.06;letter-spacing:-1.8px;margin:12px 0}.home-copy p{font-size:15px;margin-bottom:20px}.home-copy .eyebrow{font-size:11px;letter-spacing:1.1px}.home-art.image-ready{background-image:url('./assets/stonehush-opening.png')}.quiet-link{margin:8px auto 0}.home-copy .caption{font-size:12px;margin-top:0}.eyebrow,.studio-wordmark span,.studio-footer,.index,.prototype-note{font-size:12px}.eyebrow{letter-spacing:1.3px}.nav-item{font-size:12px;min-height:48px}.bottom-nav{padding-top:10px;padding-bottom:15px}.view-header{padding:20px 16px 10px}.view-header h2{font-size:25px}.view-header .eyebrow{font-size:11px;letter-spacing:1px}.build-progress{padding:0 24px 8px;font-size:13px}.text-button{font-size:13px;min-height:44px;padding:8px 5px;text-decoration:underline;text-underline-offset:4px}.text-button.full{display:block;width:100%;text-align:center}.goals{display:flex;gap:6px;flex-wrap:wrap;padding:0 22px 12px;flex-shrink:0}.goal{font-size:12px;line-height:1.45;background:#e9ece2;border:1px solid #d5dccf;border-radius:12px;padding:5px 9px;color:#52624f}.goal.met{background:#dbe7d2;color:#2d4b33;border-color:#aaba9e}.play-scene{min-height:250px}.scene-label{font-size:11px;top:14px;left:22px;letter-spacing:1px}.contact-message{font-size:14px;bottom:7px;padding:0 15px}.play-controls{padding:15px 22px 14px}.tray-heading .eyebrow{font-size:11px;letter-spacing:1px}.tray-heading>span:last-child{font-size:12px}.stone-option span{font-size:12px}.stone-option{min-height:80px}.stone-tray{min-height:80px}.tray-empty{grid-column:1/-1;text-align:center;font-size:14px;color:var(--muted);padding:15px}.round-control{min-width:44px;width:44px;height:46px}.place-button{font-size:14px;min-height:48px}.position-row{height:40px;margin:4px 0}.position-row input{height:40px}.control-footer{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);gap:8px}.control-footer .text-button{font-size:12px}.chapter-tabs{display:grid;grid-template-columns:repeat(4,1fr);margin:8px 20px;border:1px solid var(--line);border-radius:16px;overflow:hidden;flex-shrink:0}.chapter-tabs button{padding:12px 3px;min-height:62px;font-size:15px;border-right:1px solid var(--line)}.chapter-tabs button:last-child{border:0}.chapter-tabs span{display:block;font-size:11px;margin-top:5px}.chapter-tabs .selected{background:var(--forest);color:var(--paper)}.page-intro p{font-size:14px}.page-intro{padding:20px 27px}.unlock-note{padding:12px;background:var(--soft);border-radius:12px}.journey-info .eyebrow{font-size:10px;letter-spacing:.7px}.journey-info h3{font-size:23px}.journey-info p{font-size:12px}.journey-art{width:75px}.journey-card{gap:12px}.journey-closing p{font-size:15px}.garden-card .eyebrow{font-size:10px;letter-spacing:.6px}.garden-card .caption{font-size:11px}.garden-card h3{font-size:21px;overflow-wrap:anywhere}.garden-empty p{font-size:14px}.garden-footnote{font-size:14px}.caption,.setting small{font-size:13px}.complete-header .eyebrow,.completion-copy>.eyebrow{font-size:11px;letter-spacing:1px}.completion-copy p{font-size:14px}.completion-options button{font-size:14px}.campaign-finished{margin-top:15px!important;font-style:italic}.completion-art{min-height:235px}dialog{width:380px;max-height:calc(100svh - 32px);overflow:auto;padding:22px}.dialog-top .eyebrow{font-size:11px;letter-spacing:1px}dialog h2{font-size:32px;margin-bottom:20px}.dialog-copy{font-size:15px;line-height:1.65;margin-bottom:15px}.field{display:flex;flex-direction:column;gap:9px;margin:17px 0;font-size:14px}.field input:not([type=range]),.field select{font:inherit;color:var(--ink);border:1px solid #b9c5b2;background:#fcfbf6;border-radius:10px;min-height:46px;width:100%;padding:10px}.field input[type=range]{accent-color:var(--forest);min-height:40px;width:100%}.setting input{height:25px;width:25px}.setting small{font-size:12px}.settings-section{padding:20px 0 5px;border-top:1px solid var(--line);margin-top:20px}.settings-section h3{font-size:24px}.dialog-actions{display:flex;gap:18px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:10px;font-size:14px}.dialog-actions a{min-height:44px;display:flex;align-items:center}.danger{color:#87513d}.detail-art{display:block;width:100%;height:280px;border-radius:22px}.toast{position:fixed;left:50%;right:auto;transform:translateX(-50%);bottom:max(28px,env(safe-area-inset-bottom));width:min(360px,calc(100vw - 32px));font-size:14px;z-index:100}.save-warning{position:absolute;top:0;left:0;right:0;background:#f5d8ad;color:#57351f;padding:8px 12px;font-size:12px;z-index:50}.save-warning button{text-decoration:underline}.studio-footer a{font-size:13px}.home{overflow:auto}.home-header{flex-shrink:0}.home-copy{padding-top:235px}.home-art{height:62%;max-height:520px}.screen{scrollbar-width:thin}.phone:has(#play.active){background:var(--paper)}
@media(max-width:760px){.phone{width:min(100%,500px);height:100svh;min-height:0;overflow:hidden}.screen{padding-top:env(safe-area-inset-top)}.home-header,.view-header,.complete-header{padding-top:18px}.home-copy{padding-top:200px}.home-art{height:61%}.bottom-nav,.play-controls,.completion-copy{padding-bottom:max(16px,env(safe-area-inset-bottom))}.play-scene{flex:1 0 250px}.home-copy{margin-top:auto}.screen.home{padding-bottom:0}}
@media(max-height:780px){body{padding:12px 30px}.phone{min-height:660px;height:calc(100svh - 24px)}.home-copy{padding-top:170px}.home-copy h1{font-size:38px}.home-art{height:58%}.home-copy p{margin-bottom:12px}.home-copy{padding-bottom:10px}.completion-copy{padding-top:15px}.view-header h2{font-size:22px}.view-header{padding-top:14px}.play-controls{padding-top:12px}.goals{padding-bottom:8px}.play-scene{min-height:225px}}
@media(max-width:760px) and (max-height:780px){body{padding:0}.phone{height:100svh;min-height:0}.home-copy{padding-top:180px}.screen.home{overflow:auto}.play-scene{flex-basis:220px}.view-header{flex-shrink:0}.home-art{height:360px}.home-copy h1{font-size:37px}}
@media(max-width:360px){.goals{padding-left:16px;padding-right:16px}.play-controls{padding-left:14px;padding-right:14px}.view-header h2{font-size:20px}.view-header .eyebrow{font-size:10px}.home-copy{padding-left:22px;padding-right:22px}.home-copy .caption{font-size:11px}.placement-actions{gap:5px}.round-control{min-width:42px;width:42px}.journey-list{padding:0 18px}.journey-info h3{font-size:21px}.journey-art{width:64px}}

/* Hand interaction has a dedicated canvas with a stable coordinate space. */
#play{overflow-y:auto}.physical-progress{display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:13px;flex-shrink:0}.hand-scene{position:relative;flex:1 0 330px;min-height:330px;background:#e6ece1;overflow:hidden}.hand-scene canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}.hand-scene canvas:active{cursor:grabbing}.hand-notice{position:absolute;top:14px;left:20px;right:20px;text-align:center;pointer-events:none;font-size:13px;line-height:1.5;color:#465c48}.hand-controls{padding:12px 20px max(10px,env(safe-area-inset-bottom));background:var(--paper);flex-shrink:0}.hand-controls .stone-tray{min-height:72px}.hand-controls .stone-option{min-height:72px;padding:1px 4px 8px}.hand-controls .stone-option canvas{height:36px}.hand-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);gap:8px}.hand-toolbar .text-button{font-size:12px}.precision-controls{border-top:1px solid var(--line);padding:4px 0 12px}.hand-controls .control-footer{min-height:35px}.hand-controls .tray-heading{margin-bottom:7px}.hand-controls .tray-empty{font-size:13px;padding:9px}.hand-controls .caption{font-size:12px;text-align:center}#detail-dialog main{font-size:14px;line-height:1.65}#detail-dialog main h2{font-size:23px;margin-top:25px}
@media(max-width:760px){.hand-scene{flex-basis:340px;min-height:340px}.hand-controls{padding-left:20px;padding-right:20px}}
@media(max-height:740px){.hand-scene{min-height:300px;flex-basis:300px}.physical-progress .text-button{min-height:36px}.hand-controls{padding-top:10px}.hand-controls .stone-option{min-height:68px}.hand-controls .stone-tray{min-height:68px}.hand-controls .hand-toolbar{min-height:40px}}

/* Give the shared ground and every stone the space previously used by the tray. */
.hand-scene{min-height:430px;flex-basis:430px}.precision-controls .field{margin:10px 0}.hand-controls .hand-toolbar{min-height:44px}
@media(max-width:760px){.hand-scene{min-height:440px;flex-basis:440px}}
@media(max-height:740px){.hand-scene{min-height:370px;flex-basis:370px}}

/* Goals and the next step stay readable alongside the hands-on play area. */
.goal-summary{padding:12px 22px 4px;flex-shrink:0}.goal-summary .eyebrow{font-size:12px;letter-spacing:1.2px}.goal-summary p{font-size:16px;line-height:1.4;margin:5px 0;color:var(--forest)}#physical-goals{font-size:13px;gap:6px;padding-top:3px}.completion-next{display:grid;gap:10px}.completion-next .primary{width:100%;display:flex;justify-content:center;gap:12px}.replay-button{width:100%;min-height:48px;border:1px solid var(--forest);border-radius:12px;font-size:15px}.completion-copy .next-goal{font-size:13px;line-height:1.4;margin:14px 0 6px}.journey-card:disabled{opacity:.5}.journey-info p{font-size:12px}.home-copy>p{font-size:15px;line-height:1.45}

/* Play-first framing: a large, centered working surface on every phone. */
.phone:has(#play.active){width:480px}.phone:has(#play.active) .screen{background:#eef1e7}
#play{overflow:hidden}.play-header{padding:12px 14px 2px;flex-shrink:0}.play-header h2{font-size:23px;margin-top:3px}.play-header .eyebrow{font-size:10px;letter-spacing:1.2px}.play-goalbar{display:flex;align-items:center;justify-content:center;position:relative;min-height:42px;margin:0 20px;flex-shrink:0}.goal-title{font-size:15px;font-weight:600}.help-button{position:absolute;right:0;font-family:var(--serif);font-size:18px;width:44px;height:44px}.compact-goals{justify-content:center;padding:0 16px 9px;gap:6px;min-height:29px}.compact-goals:empty{display:none}.compact-goals .goal{border:0;background:#e1e7d9;padding:5px 10px;border-radius:20px;font-size:12px}.compact-goals .goal.met{background:#d1e1c8;color:#345c36}.hand-scene{flex:1 1 0;min-height:180px;isolation:isolate}.hand-notice{top:18px;font-size:12px;letter-spacing:.3px}.hand-notice:empty{display:none}.hand-controls{background:#dbe2cf;padding:4px 18px max(8px,env(safe-area-inset-bottom));max-height:48%;overflow-y:auto}.hand-toolbar{gap:12px}.hand-toolbar .text-button{font-size:13px;text-decoration:none;min-height:44px}.precision-controls{padding-top:0}.hand-controls .caption{margin:3px}.balance-cue{position:absolute;top:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap;background:#f6f4eddb;border-radius:24px;padding:10px 16px;pointer-events:none}.settle-ring{width:16px;height:16px;border:2px solid #b6c5aa;border-top-color:#3e623d;border-radius:50%}.phone[data-motion=true] .settle-ring{animation:settling 2.5s linear infinite}@keyframes settling{to{transform:rotate(360deg)}}
.complete-header{padding:24px 26px 10px;gap:12px;align-items:center;flex-shrink:0}.complete-header h2{font-size:30px;margin-top:7px;letter-spacing:-.9px}.journey-beads{display:grid;grid-template-columns:repeat(24,1fr);gap:4px;padding:4px 28px 12px}.journey-beads i{height:5px;border-radius:5px;background:#d6ddcd}.journey-beads i.done{background:#6b8761}.completion-art{position:relative;flex:1 1 220px;min-height:180px}.accomplishment{position:absolute;left:0;right:0;top:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px}.balance-seal{display:inline-flex;align-items:center;justify-content:center;background:#d5e4cb;border-radius:50%;width:28px;height:28px;color:#41653f}.phone[data-motion=true] #complete.active .balance-seal{animation:arrive .7s ease-out}@keyframes arrive{from{transform:scale(.65);opacity:0}to{transform:scale(1);opacity:1}}.completion-copy{padding:10px 26px max(15px,env(safe-area-inset-bottom));flex-shrink:0}.completion-copy .quiet-moment{font-family:var(--serif);font-style:italic;font-size:15px;margin:0 0 13px;color:#65735e}.discovery-card{text-align:left;background:#e6ecdf;border:1px solid #d3ddc9;border-radius:18px;padding:15px 18px;margin-bottom:14px}.discovery-card .eyebrow{font-size:10px;letter-spacing:1.1px;color:#62775a}.discovery-card h3{font-size:24px;margin:6px 0}.completion-copy .discovery-card p{font-size:13px;margin:0;line-height:1.45}.completion-next .primary{min-height:54px;font-size:16px}.completion-options{justify-content:space-between;margin-top:8px;gap:16px}.completion-options button{min-height:44px;font-size:13px}.completion-copy .completion-options{display:flex}
@media(max-width:760px){.phone:has(#play.active){width:min(100%,560px)}.play-header{padding-top:10px}.hand-scene{flex-basis:0;min-height:180px}.complete-header{padding-top:18px}.completion-copy{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(max-height:680px){.play-header h2{font-size:20px}.play-header{padding-top:5px}.play-goalbar{min-height:36px}.compact-goals{padding-bottom:5px}.complete-header h2{font-size:25px}.complete-header{padding-top:10px}.completion-art{min-height:135px;flex-basis:150px}.completion-copy{padding-top:5px}.discovery-card{padding:10px 15px;margin-bottom:10px}.completion-copy .quiet-moment{margin-bottom:8px}.discovery-card h3{font-size:22px}.journey-beads{padding-bottom:6px}}
@media(prefers-reduced-motion:reduce){.phone[data-motion=true] .settle-ring,.phone[data-motion=true] #complete.active .balance-seal{animation:none}}

/* Sculptures lead the journey; mastery stays an invitation. */
.goal-idea{position:absolute;left:0;width:45px;height:44px;padding:3px;border-radius:12px;overflow:hidden;background:#e0e8d7}
.goal-idea canvas{display:block;width:100%;height:100%;pointer-events:none;border-radius:9px}
.play-goalbar{padding:0 47px}.goal-title{text-align:center}
.harmony-progress{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:0 18px 5px;flex-shrink:0}
.harmony-chip{font-size:12px;min-height:32px;padding:3px 9px;color:#755733;border-radius:20px;background:#f0e5cd}
#harmony-detail{font-size:12px;line-height:1.4;text-align:center;color:#5d654e}
.journey-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 20px 20px}
.journey-card{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:0;padding:0 0 15px;border:1px solid #cbd5c4;border-radius:20px;overflow:hidden;background:#eef1e7;min-width:0}
.journey-art{width:100%;height:145px;flex:none;margin:0}.journey-art canvas{width:100%;height:100%;display:block}
.journey-info{padding:13px 13px 0}.journey-info h3{font-size:21px;line-height:1.1;margin:5px 0 7px}.journey-info .eyebrow{font-size:11px;letter-spacing:.4px}
.journey-info p{font-size:12px;line-height:1.45}.journey-arrow{position:absolute;top:10px;right:10px;border-radius:50%;background:#f6f4ede6;color:#4a6b49;font-size:20px;width:29px;height:29px;text-align:center}
.journey-card:disabled{opacity:.65}.journey-closing{padding-top:2px}
.complete-header{display:flex;justify-content:space-between;padding:8px 22px 0;min-height:48px}
.journey-beads{padding:4px 24px 5px;gap:3px}.journey-beads i.harmony{background:#b18945}
.completion-art{flex:1 0 220px;min-height:220px;isolation:isolate;overflow:hidden}
.completion-art canvas{position:absolute;inset:0 0 24px;width:100%;height:calc(100% - 24px);display:block}
.sculpture-caption{position:absolute;bottom:6px;left:0;right:0;text-align:center;color:#596b51;font-size:12px;letter-spacing:.4px}
.completion-copy{position:relative;padding:8px 20px max(12px,env(safe-area-inset-bottom));text-align:center}
.success-popup{position:relative;border:1px solid #d0dcc6;border-radius:24px;padding:19px 17px 13px;background:#fbfcf6;box-shadow:0 10px 28px #344d3410;margin-bottom:12px}
.success-popup>.eyebrow{font-size:11px;letter-spacing:1.4px;color:#607453;display:block}
.success-popup h2{font-size:29px;line-height:1.08;letter-spacing:-.8px;margin:7px 0 12px}
.success-popup .balance-seal{position:absolute;top:-14px;left:calc(50% - 15px);width:30px;height:30px;box-shadow:0 0 0 5px var(--paper);font-size:17px}
.harmony-reward{display:flex;align-items:center;gap:10px;text-align:left;border-top:1px solid #e0e4d7;padding:11px 0 0;color:#687060}
.harmony-reward>span{font-size:29px;color:#9a7c4a;line-height:1}.harmony-reward strong{font-size:13px;font-weight:600}
.harmony-reward p{font-size:12px;line-height:1.4;margin:3px 0 0!important}.harmony-reward.earned{color:#6b562b}
.discovery-card{display:flex;align-items:center;gap:13px;padding:9px 12px 9px 8px;margin-bottom:12px;border-radius:18px}
.discovery-card canvas{width:76px;height:85px;flex:none;border-radius:12px}.discovery-card>div{min-width:0}
.discovery-card h3{font-size:20px;line-height:1.05;margin:4px 0}.completion-copy .discovery-card p{font-size:12px;line-height:1.35}
.discovery-card .eyebrow{font-size:10px;letter-spacing:.5px}.completion-next{gap:7px}
.refine-button{min-height:44px;border:1px solid #c7b58d;border-radius:24px;color:#725933;background:#f3ead8;font-size:14px}
.completion-options{margin-top:2px}.completion-options button{min-height:44px;font-size:13px}.completion-next .primary{min-height:50px}
.celebration-lights{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.celebration-lights i{position:absolute;left:calc(14% + var(--n)*10%);top:53%;width:5px;height:5px;border-radius:50%;background:#b9934a;opacity:0}
#complete .balance-seal{animation:none!important}
.phone[data-motion=true] #complete.active[data-celebrate=true] .success-popup{animation:sculpture-arrival .6s cubic-bezier(.2,.8,.2,1) both}
.phone[data-motion=true] #complete.active[data-celebrate=true] .completion-art canvas{animation:sculpture-reveal .8s ease-out both}
.phone[data-motion=true] #complete.active[data-celebrate=true] .celebration-lights i{animation:quiet-spark 1.35s ease-out both;animation-delay:calc(var(--n)*45ms)}
.phone[data-motion=true] #complete.active[data-celebrate=true] .discovery-card{animation:sculpture-arrival .6s .15s ease-out both}
@keyframes sculpture-arrival{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
@keyframes sculpture-reveal{from{opacity:.45;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes quiet-spark{0%{opacity:0;transform:translateY(14px) scale(.4)}20%{opacity:.7}100%{opacity:0;transform:translateY(-90px) scale(1.15)}}
@media(max-height:720px){.completion-art{min-height:170px;flex-basis:170px}.success-popup{padding-top:16px}.success-popup h2{font-size:26px}.discovery-card canvas{height:66px;width:65px}.completion-copy{padding-top:8px}}
@media(max-width:350px){.journey-list{gap:10px;padding:0 14px 15px}.journey-info{padding:10px}.journey-info h3{font-size:19px}.completion-copy{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){.phone[data-motion=true] #complete.active[data-celebrate=true] .success-popup,.phone[data-motion=true] #complete.active[data-celebrate=true] .completion-art canvas,.phone[data-motion=true] #complete.active[data-celebrate=true] .celebration-lights i,.phone[data-motion=true] #complete.active[data-celebrate=true] .discovery-card{animation:none}}
