.onboarding-shell{max-width:800px;margin:auto;padding:24px 16px 60px}.onboarding-shell header{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.onboarding-card{margin-top:28px;padding:32px;background:#fff;border:1px solid #dce3ea;border-radius:20px}.onboarding-card h1{font-size:clamp(24px,5vw,36px);line-height:1.35;margin:18px 0}.onboarding-card p{line-height:1.7;margin:16px 0}.onboarding-card>.pixel-sprite{display:block;width:180px;height:180px;object-fit:contain;margin:auto}.onboarding-card .field{margin:20px 0}.onboarding-card .textbtn{display:block;margin:18px auto;min-height:44px}.onboarding-day{border:1px solid #cbd5df;border-radius:12px;padding:16px;margin:12px 0;display:flex;flex-wrap:wrap;gap:12px}.onboarding-day label{min-height:44px;display:flex;align-items:center;gap:6px}.onboarding-speech,.onboarding-tour-example{padding:20px;background:#edf4df;border-radius:16px;color:#253119}.onboarding-preview-note{padding:12px;background:#fff0c9;color:#493919}.onboarding-egg,.onboarding-reveal{position:relative;width:220px;height:240px;margin:20px auto;display:grid;place-items:center}.onboarding-egg .pixel-sprite,.onboarding-reveal .pixel-sprite{width:220px;height:220px;object-fit:contain}.egg-crack{position:absolute;top:90px;left:100px;font-size:64px;color:#34442a;opacity:0}.is-hatching .egg-sprite{animation:egg-wobble 1.5s ease-in-out infinite}.is-hatching .egg-crack{animation:egg-crack 5s steps(3,end) forwards}.onboarding-reveal{animation:pet-arrives 1s ease-out both}@keyframes egg-wobble{0%,100%{transform:rotate(0)}25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}@keyframes egg-crack{to{opacity:1}}@keyframes pet-arrives{from{opacity:0;transform:scale(.7) translateY(20px)}to{opacity:1;transform:none}}@media(max-width:480px){.onboarding-card{padding:20px 16px}.onboarding-shell{padding:16px 10px 40px}}@media(prefers-reduced-motion:reduce){.onboarding-shell *{animation:none!important}.is-hatching .egg-crack{opacity:1}}
.onboarding-mascot{display:flex;align-items:center;gap:14px;padding:16px;background:#edf4df;color:#263519;border-radius:14px;margin:14px 0}.onboarding-mascot img{object-fit:contain;image-rendering:pixelated;flex-shrink:0}.onboarding-mascot b{font-size:12px}.onboarding-mascot p{margin:6px 0;font-size:14px;line-height:1.6}.onboarding-guide-label{font-size:13px;font-weight:700;color:#486023}.egg-shell{position:absolute;inset:0;pointer-events:none;z-index:2}.egg-shell .pixel-sprite{width:220px;height:220px}.shell-left{clip-path:polygon(0 0,52% 0,43% 35%,57% 50%,44% 68%,50% 100%,0 100%);animation:shell-left 1.2s ease-in forwards}.shell-right{clip-path:polygon(52% 0,100% 0,100% 100%,50% 100%,44% 68%,57% 50%,43% 35%);animation:shell-right 1.2s ease-in forwards}@keyframes shell-left{to{transform:translate(-70px,60px) rotate(-25deg);opacity:0}}@keyframes shell-right{to{transform:translate(70px,60px) rotate(25deg);opacity:0}}@media(prefers-reduced-motion:reduce){.egg-shell{display:none}}
/* Moa is an official guide, not the account's individually generated pet. */
.onboarding-mascot{background:transparent;padding:0;align-items:center;gap:14px}.mascot-hello{display:block;flex:0 0 96px;width:96px;min-height:112px;border:0;background:transparent;padding:0;cursor:pointer;transform-origin:50% 92%}.mascot-hello img{display:block;width:96px;height:112px;object-fit:contain;image-rendering:pixelated}.mascot-hello:focus-visible{outline:3px solid #718c19;outline-offset:4px;border-radius:12px}.mascot-bubble{position:relative;border:1px solid #d9e1cb;background:#f3f7e9;padding:16px 18px;border-radius:4px 18px 18px 18px;min-width:0;color:#263519;animation:bubble-appear .25s ease-out}.mascot-bubble:before{content:'';position:absolute;left:-9px;top:24px;width:14px;height:14px;transform:rotate(45deg);border-left:1px solid #d9e1cb;border-bottom:1px solid #d9e1cb;background:#f3f7e9}.mascot-bubble b{letter-spacing:.03em}.mascot-bubble p{font-size:15px!important;line-height:1.65!important;margin:7px 0 0!important;color:#263519!important}.mascot-hop{animation:mascot-hop .55s ease-in-out}.handoff-goodbye{animation:guide-farewell 1.8s ease-out both}.handoff-hello{animation:bubble-appear .45s 1s ease-out both}.onboarding-reveal{animation:none}.onboarding-reveal>.pixel-sprite,.onboarding-reveal>.sprite-wrap{animation:pet-arrives .7s .45s ease-out both}.onboarding-preview-note{font-size:12px;line-height:1.6;border-radius:10px}.onboarding-card .trait-group{min-width:0}.onboarding-shell{overflow-x:clip}.onboarding-card button:disabled{cursor:wait;opacity:.6}.onboarding-card .form-error:empty{display:none}
@keyframes bubble-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes mascot-hop{0%,100%{transform:none}25%{transform:translateY(-8px) rotate(-4deg)}65%{transform:translateY(-3px) rotate(3deg)}}@keyframes guide-farewell{0%,50%{opacity:1}100%{opacity:.65}}@media(max-width:480px){.onboarding-mascot{gap:8px}.mascot-hello{flex-basis:72px;width:72px;min-height:90px}.mascot-hello img{width:72px;height:90px}.mascot-bubble{padding:12px}.mascot-bubble b{font-size:10px}.mascot-bubble p{font-size:13px!important}.handoff-goodbye .mascot-hello{flex-basis:60px;width:60px}.handoff-goodbye .mascot-hello img{width:60px;height:74px}}@media(prefers-reduced-motion:reduce){.mascot-hop,.mascot-bubble,.handoff-goodbye,.handoff-hello,.onboarding-reveal>.pixel-sprite{animation:none!important}}
.tour-practice{border:1px solid #cad4df;border-radius:16px;margin:20px 0;padding:18px;background:#f8fafc}.tour-practice-label{display:block;font-size:11px;color:#546575;margin-bottom:12px}.tour-demo-recommend{background:#161b20;color:#f7f8f1;padding:20px;border-radius:12px}.tour-demo-recommend small{color:#d5ff45}.tour-demo-recommend h3{font-size:24px;margin:12px 0}.tour-demo-recommend p{font-size:14px;color:#ccd7df}.tour-set-row,.tour-set-head{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) 48px;gap:8px;align-items:center;text-align:center}.tour-set-head{font-size:12px;margin-bottom:8px;color:#526173}.tour-set-row input{width:100%;min-width:0;border:1px solid #b8c6d4;border-radius:8px;padding:12px 4px;text-align:center;font-size:20px;background:#fff;color:#161b20}.tour-set-row button{width:48px;height:48px;border:1px solid #adbccc;border-radius:9px;background:white;font-size:24px}.tour-set-row button[aria-pressed=true]{background:#d5ff45;color:#17200c;border-color:#69830e}.tour-practice-feedback{font-size:13px;color:#40561c}.tour-demo-tabs{display:flex;gap:8px}.tour-demo-tabs button{flex:1;min-height:44px;border:1px solid #b8c6d4;border-radius:8px;background:white}.tour-demo-tabs button[aria-pressed=true]{background:#161b20;color:#d5ff45}.tour-demo-record{padding:16px 0 0}.tour-demo-record p{font-size:14px}.tour-ready{display:flex;align-items:center;gap:12px;padding:20px;background:#161b20;color:#d5ff45;border-radius:12px;margin:20px 0}.tour-ready span{font-size:32px}@media(max-width:380px){.tour-practice{padding:12px}.tour-set-row,.tour-set-head{gap:5px;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 44px}.tour-set-row button{width:44px;height:44px}.tour-demo-recommend{padding:16px}.tour-demo-recommend .primary{padding:14px 12px;font-size:13px}.tour-ready{padding:16px;font-size:14px}}
.entry-world>.onboarding-mascot{max-width:430px;margin-top:24px}.onboarding-progress{display:flex;gap:8px;list-style:none;margin:22px 0 0;padding:0;flex-wrap:wrap}.onboarding-progress li{flex:1;min-width:60px;font-size:11px;color:#657383;border-top:3px solid #d5dde5;padding-top:8px}.onboarding-progress li[aria-current=step]{border-color:#6e8618;color:#263519;font-weight:700}.onboarding-progress li.is-past{border-color:#b1c76a}.onboarding-step-back{font-size:13px!important;margin:0 0 16px!important;min-height:44px}.onboarding-card h1:focus{outline:none}@media(max-width:760px){.entry-world>.onboarding-mascot{grid-column:1/-1;grid-row:3;margin-top:0;max-width:none}}@media(max-width:360px){.onboarding-progress{gap:5px}.onboarding-progress li{font-size:10px;min-width:45px}}
.onboarding-progress li{color:#526171}
/* Keep the lesson close to its practice controls on a phone. */
.onboarding-card:has(.tour-practice)>.pixel-sprite,.onboarding-card:has(.tour-ready)>.pixel-sprite{width:112px;height:112px;margin:10px auto}.onboarding-card:has(.tour-practice) h1,.onboarding-card:has(.tour-ready) h1{font-size:clamp(23px,4vw,30px);margin:14px 0}.onboarding-tour-example{padding:0;background:transparent;border-radius:0;font-size:12px;color:#526173;margin:14px 0}.onboarding-card:has(.tour-practice) .onboarding-speech{padding:16px;font-size:14px;margin:12px 0}.onboarding-card:has(.tour-practice) .tour-practice{margin:16px 0}.onboarding-card:has(.tour-practice) .tour-practice p{margin:10px 0}.entry-world .mascot-bubble{animation:none}
.handoff-goodbye{animation:none}

/* Guide portrait: keep the approved face readable without shrinking the full sheet. */
.mascot-hello{position:relative;aspect-ratio:1;height:auto;min-height:0;overflow:hidden;border-radius:14px;background:transparent}.mascot-hello img{position:absolute;width:210%!important;height:auto!important;max-width:none!important;left:-55%;top:-33%;object-fit:contain}

/* The egg stays closed until its actual image has decoded. */
.hatch-cracks{position:absolute;width:220px;height:220px;pointer-events:none;fill:none;stroke:var(--ink,#20231f);stroke-width:1;stroke-linejoin:miter}
.hatch-cracks path{opacity:0}
.is-hatching .hatch-cracks .crack-one{animation:hatch-line .1s 1s steps(1,end) forwards}
.is-hatching .hatch-cracks .crack-two{animation:hatch-line .1s 3s steps(1,end) forwards}
.is-hatching .hatch-cracks .crack-three{animation:hatch-line .1s 6s steps(1,end) forwards}
.is-ready-to-hatch .hatch-cracks .crack-one{animation:hatch-line .1s steps(1,end) forwards}
.is-ready-to-hatch .hatch-cracks .crack-two{animation:hatch-line .1s .5s steps(1,end) forwards}
.is-ready-to-hatch .hatch-cracks .crack-three{animation:hatch-line .1s 1s steps(1,end) forwards}
.is-ready-to-hatch{animation:egg-wobble .3s steps(3,end) 5}
@keyframes hatch-line{to{opacity:1}}
@media(prefers-reduced-motion:reduce){.is-hatching .hatch-cracks path{opacity:1}.is-ready-to-hatch{animation:none}}

.ptmon-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.ptmon-choices label{position:relative;display:grid;justify-items:center;padding:10px 4px;border:2px solid #e2e5dd;border-radius:14px;cursor:pointer;min-width:0}.ptmon-choices label:has(:checked){border-color:#657d22;background:#f3f8e7}.ptmon-choices label:focus-within{outline:3px solid #657d22;outline-offset:2px}.ptmon-choices input{position:absolute;top:6px;left:6px;accent-color:#657d22}.ptmon-choices img{width:100%;aspect-ratio:420/365;object-fit:contain;image-rendering:pixelated}.ptmon-choices span{font-size:14px;font-weight:700}.onboarding-egg canvas{width:100%;height:auto;image-rendering:pixelated;border-radius:12px}@media(max-width:380px){.ptmon-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ptmon-picker-field{border:0;padding:0;margin:22px 0;min-width:0}.ptmon-picker-field legend{font-size:14px;font-weight:800;margin-bottom:12px;color:#253119}.ptmon-family-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ptmon-family-choices label{position:relative;display:grid;justify-items:center;align-content:start;gap:4px;min-width:0;min-height:150px;padding:12px 5px 10px;border:2px solid #dfe5d7;border-radius:16px;background:#fff;cursor:pointer}.ptmon-family-choices label:has(:checked),.ptmon-color-group label:has(:checked){border-color:#698219;background:#f4f9e9}.ptmon-family-choices label:focus-within,.ptmon-color-group label:focus-within{outline:3px solid #698219;outline-offset:2px}.ptmon-family-choices input,.ptmon-color-group input{position:absolute;top:9px;left:9px;accent-color:#698219}.ptmon-family-choices .sample-pet{width:90px;height:90px;max-width:100%}.ptmon-family-choices label>span:last-child,.ptmon-color-group label>span:last-child{font-size:14px;font-weight:800}.ptmon-color-group{margin:0}.ptmon-color-group[hidden]{display:none!important}.ptmon-color-group .sample-pet{width:120px;height:120px;max-width:100%}.ptmon-color-group label{min-height:160px;padding-block:16px 9px}.onboarding-meeting{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:14px;margin:20px 0 30px}.onboarding-meeting .onboarding-reveal{width:170px;height:180px;margin:0}.onboarding-meeting .onboarding-reveal .pixel-sprite,.onboarding-meeting .onboarding-reveal .sample-pet{width:170px;height:170px}.ptmon-speech{position:relative;padding:16px 18px;border:1px solid #d9e1cb;border-radius:5px 18px 18px 18px;background:#f3f7e9;color:#263519}.ptmon-speech:before{content:'';position:absolute;left:-9px;top:30px;width:14px;height:14px;transform:rotate(45deg);border-left:1px solid #d9e1cb;border-bottom:1px solid #d9e1cb;background:#f3f7e9}.ptmon-speech p{margin:7px 0 0;line-height:1.55}.onboarding-name-warning{display:block;margin:-10px 0 25px;color:#56614d;font-size:12px;line-height:1.5}.onboarding-card .approved-egg{width:220px;height:220px}
@media(max-width:480px){.onboarding-meeting{grid-template-columns:115px minmax(0,1fr);gap:9px}.onboarding-meeting .onboarding-reveal{width:115px;height:135px}.onboarding-meeting .onboarding-reveal .pixel-sprite,.onboarding-meeting .onboarding-reveal .sample-pet{width:115px;height:115px}.ptmon-speech{padding:12px}.ptmon-speech p{font-size:13px}.ptmon-family-choices .sample-pet{width:72px;height:72px}.ptmon-family-choices label{min-height:130px}.ptmon-color-group .sample-pet{width:90px;height:90px}.ptmon-color-group label{min-height:135px}}
@media(max-width:380px){.ptmon-color-group{grid-template-columns:repeat(3,minmax(0,1fr))}.ptmon-family-choices label>span:last-child,.ptmon-color-group label>span:last-child{font-size:12px}}
.ptmon-family-choices .sample-pet,.ptmon-color-group .sample-pet{pointer-events:none}.ptmon-family-choices input,.ptmon-color-group input{z-index:1}
.first-run-target{outline:2px solid #9bbc41;outline-offset:4px;border-radius:16px}.first-run-guide{position:relative;z-index:2;max-width:560px;margin:12px auto 20px;padding:17px 18px;border:1px solid #b8ce80;border-radius:17px;background:#f4f9e6;color:#263519;box-shadow:0 12px 28px #33441c14}.first-run-guide b{display:block;font-size:15px}.first-run-guide p{margin:6px 0 14px;font-size:13px;line-height:1.6}.first-run-guide>div{display:flex;justify-content:flex-end;gap:8px}.first-run-guide button{min-height:44px;padding:10px 16px}.main[data-page="workout"]>.first-run-guide{margin-top:12px}
