
:root{font-family:'Hiragino Maru Gothic ProN','Yu Gothic',Meiryo,sans-serif;color:#56516b;background:#faf7ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:4px solid #8472c3;outline-offset:5px}.app{max-width:1280px;margin:auto;padding:24px 46px 16px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:#8b7db4;font-size:36px}.brand>span{font-family:Georgia,serif;font-size:25px;font-weight:bold;letter-spacing:.2px}.brand small{display:block;font:10px 'Yu Gothic',sans-serif;letter-spacing:3px;margin-top:5px;color:#aaa0b4}.tools{display:flex;gap:12px;align-items:center}.round{width:44px;height:44px;border:1px solid #e6e0d8;border-radius:50%;background:#fffdf8;font-size:23px}.coin{display:flex;gap:10px;align-items:center;background:#fff1ce;color:#a17b38;border-radius:30px;padding:10px 21px}.concert{height:440px;position:relative;overflow:hidden;background:linear-gradient(#f0f3ea,#f0f4e4 75%,#e3edce);border-radius:30px;border:1px solid #e5e7d9}.stage-title{position:absolute;z-index:2;top:26px;left:30px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#879477}h1{font-size:23px;margin:10px 0;color:#686578;font-weight:600}.stage-title p{font-size:13px;color:#8c8798}.song-tag{position:absolute;right:28px;top:30px;font-size:12px;color:#859074}.song-tag span{display:block;text-align:right;font-size:10px;opacity:.7;margin-top:8px}.scene{height:100%;position:relative}.friend{width:290px;height:300px;position:absolute;bottom:43px;left:50%;transform:translateX(-50%);overflow:visible}.sun{position:absolute;top:135px;right:19%;font-size:73px;color:#e8d99e}.note{position:absolute;font-size:38px;color:#b9afd9}.n1{left:31%;top:47%;transform:rotate(-15deg)}.n2{right:32%;top:40%;color:#cfb1ba}.n3{left:42%;top:26%;color:#d1c281}.garden{position:absolute;bottom:45px;left:7%;font-size:66px;color:#e6b4b1;letter-spacing:8px;transform:rotate(-8deg)}.garden span{color:#e6c983;font-size:40px}.g2{left:auto;right:6%;transform:rotate(10deg);color:#beb6da}.name-tag{position:absolute;bottom:38px;left:50%;transform:translateX(-50%);font-size:12px;color:#898371}.name-tag span{color:#cf93ad}.progress-wrap{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);width:200px;display:flex;gap:10px;align-items:center;color:#a9ac8f;font-size:12px}.progress{height:5px;border-radius:10px;background:#d4dec3;flex:1;overflow:hidden}.progress>div{height:100%;width:0;background:#9b8ec1;transition:width .2s}.keyboard-area{padding:22px 70px 0}.keys{display:flex;gap:12px}.key{position:relative;flex:1;height:126px;min-width:0;background:#fffdf8;border:2px solid #e5dfd6;border-bottom-width:7px;border-radius:15px;touch-action:manipulation;transition:background .15s,transform .1s;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:14px;gap:6px}.key .symbol{font-size:22px;color:var(--color)}.key .label{font-size:14px;font-weight:bold;color:#9a92a2}.key.lit{border-color:#c6b5e9;background:#eee7fa;box-shadow:0 0 0 5px #ece7f46b}.key.lit:before{content:'▼';position:absolute;top:10px;color:#9c83ca;animation:guide 1s ease-in-out infinite}.key.pressed{transform:translateY(4px);border-bottom-width:3px;background:#e6dcf5}.hint{text-align:center;font-size:12px;color:#9b94a3;margin:16px 0 22px}footer{display:flex;justify-content:space-between;font-size:10px;color:#aaa3a8}footer b{font-size:9px;letter-spacing:1px;font-weight:normal;margin-left:10px}.body{transform-origin:160px 275px;animation:breathe 3s ease-in-out infinite}.antenna{transform-origin:160px 100px;animation:sway 3s ease-in-out infinite}.eye{transform-box:fill-box;transform-origin:center;animation:blink 5s infinite}.arm{transform-box:fill-box;transform-origin:50% 10%}.playing .left{animation:play .25s 2 alternate}.playing .right{animation:play .25s .1s 2 alternate}.playing .face{animation:nod .3s 2 alternate}.playing .antenna{animation:sway .3s 2 alternate}.floating{animation:float 4s ease-in-out infinite}dialog{border:0;border-radius:28px;max-width:480px;width:90%;padding:36px;color:#665b7b;background:#fffdf7;text-align:center;box-shadow:0 25px 80px #55456622}dialog::backdrop{background:#4f486650;backdrop-filter:blur(5px)}dialog p{font-size:14px;line-height:1.9}dialog h2{font-size:25px}.celebrate{font-size:46px;color:#b7a1d9}.reward{font-size:26px;color:#aa823d;margin:24px 0}.primary{border:0;border-radius:16px;padding:15px 28px;background:#a894cd;color:white;font-weight:bold;font-size:16px}.primary:disabled{opacity:.5;cursor:wait}#retry{margin:12px auto 0;border:0;background:transparent;text-decoration:underline}#info{text-align:left}#info .primary{display:block;margin:auto}#reward-status{font-size:12px}.confetti{position:fixed;pointer-events:none;top:-30px;z-index:5;font-size:25px;animation:fall 2.5s linear forwards}@keyframes fall{to{transform:translateY(100vh) rotate(360deg);opacity:0}}@keyframes breathe{50%{transform:translateY(-5px) rotate(1deg)}}@keyframes sway{50%{transform:rotate(8deg)}}@keyframes blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}@keyframes play{to{transform:rotate(-22deg) translateY(-9px)}}@keyframes nod{to{transform:translateY(3px)}}@keyframes guide{50%{transform:translateY(5px)}}@keyframes float{50%{translate:0 -9px}}@media(max-width:760px){.app{padding:15px}.brand>span{font-size:19px}.brand{font-size:28px}.tools{gap:6px}.round{width:38px;height:38px}.coin{padding:8px 14px}.concert{height:410px}.stage-title{left:20px;top:20px}h1{font-size:19px}.song-tag{display:none}.keyboard-area{padding:18px 0 0}.keys{gap:7px}.key{height:110px}.garden{font-size:34px;left:3%;bottom:64px}.g2{left:auto;right:2%}.garden span{font-size:23px}.friend{width:255px}.sun{right:7%}.n1{left:12%}.n2{right:12%}.n3{display:none}footer{gap:12px;font-size:9px}}@media(max-height:600px) and (orientation:landscape){.app{padding:10px 25px}header{margin-bottom:10px}.brand small{display:none}.concert{height:235px}.stage-title{top:16px}h1{font-size:18px}.friend{height:206px;width:200px;bottom:15px}.name-tag{bottom:12px;left:66%}.garden{font-size:40px;bottom:30px}.sun{top:70px;font-size:45px}.keyboard-area{padding:12px 80px 0}.key{height:87px}.hint{margin:7px}.song-tag{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}

.brand{border:0;background:none;text-align:left;padding:0}nav{display:flex;gap:8px;margin:-8px 0 18px}nav button,.secondary,.home-tabs button,.outfit-buttons button,.meal-buttons button{border:1px solid #e3dce9;border-radius:14px;background:#fffdf8;padding:12px 20px;font:inherit;font-size:13px;color:#786989;cursor:pointer}nav button[aria-current],button[aria-pressed=true]:not(#sound){background:#ece3f7;border-color:#b7a0d3}button:disabled{opacity:.45;cursor:default}footer{margin-top:20px}.town{background:linear-gradient(#edf3eb,#eff1dc);border:1px solid #e1e7d6;border-radius:28px;padding:30px 30px 12px;min-height:530px}.welcome{text-align:center}.welcome h1{font-size:27px}.welcome p,.panel>p{font-size:13px;color:#99909f}.town-buildings{display:flex;align-items:center;justify-content:center;gap:30px;padding:22px 0}.building{background:#fffdf7b0;border:1px solid #e5e5cf;border-radius:26px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 28px;min-width:0;width:28%;transition:transform .2s}.building:hover{transform:translateY(-5px)}.building-icon{font-size:84px;line-height:1.2}.building b{font-size:19px}.building small{font-size:10px;color:#948a92}.venue{background:#f8e8ee;border-color:#ead1df;width:33%;padding-top:23px}.venue .building-icon{font-size:106px}.visit{background:#ac93c7;color:white;border-radius:20px;font-size:11px;padding:7px 20px;margin-top:5px}.town-friends{display:flex;justify-content:center}.town-friend{border:0;background:none;width:115px;font-size:11px;color:#8b8193}.avatar{position:relative;width:170px;height:180px;flex-shrink:0}.avatar .friend{position:static;transform:none;width:100%;height:100%;display:block}.avatar .instrument{position:absolute;left:27%;bottom:5%;font-size:52px;transform:rotate(-12deg);filter:drop-shadow(0 3px 2px #433b5830)}.avatar .outfit{position:absolute;top:29%;right:24%;font-size:28px;transform:rotate(12deg)}.town-friend .avatar{width:100%;height:108px}.town-friend .instrument{font-size:30px}.town-friend .outfit{font-size:17px}.panel{border:1px solid #e8e1de;border-radius:26px;background:#fffcf6;padding:28px 35px;min-height:510px;text-align:center}.panel h1{font-size:26px}.friend-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:30px 0}.friend-card{background:#f6f2f7;border:2px solid transparent;border-radius:20px;position:relative;padding:12px 5px 22px;display:flex;align-items:center;flex-direction:column;min-width:0}.friend-card .avatar{width:100%;height:155px}.friend-card b{font-size:15px}.friend-card small{font-size:11px;margin-top:6px;color:#998b9b}.friend-card.selected{background:#eee4f5;border-color:#b39bce}.check{position:absolute;right:9px;top:8px;background:white;border-radius:50%;width:24px;height:24px;color:#a58abd}.selection-bottom{display:flex;justify-content:center;align-items:center;gap:30px}.selection-bottom p{font-size:13px}.song-list{display:flex;justify-content:center;gap:24px;margin:30px 0}.song-card{display:flex;flex-direction:column;align-items:center;gap:15px;padding:25px;width:300px;background:#f5edf5;border:1px solid #e0d1e9;border-radius:22px}.song-card>span{font-size:65px;color:#b19bc9}.song-card:nth-child(2){background:#eeeff8}.song-card small{font-size:11px;color:#958ba1}.song-card strong{background:#ac94c8;color:white;padding:10px 30px;border-radius:20px;font-size:13px}.live-stage{position:relative;overflow:hidden;border-radius:25px;background:linear-gradient(#4e416e,#776794 60%,#b09bb8);height:385px;border:6px solid #786686}.truss{position:absolute;top:12px;text-align:center;width:100%;font-size:12px;color:#eddb9a;letter-spacing:2px}.screen{position:absolute;top:43px;left:25%;width:50%;height:168px;border:7px solid #aa93bc;border-radius:10px;background:radial-gradient(ellipse at bottom,#a4a1ca,#6a608f);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff2c4;gap:10px}.screen>span{font-size:38px;animation:float calc(var(--beat)*4) infinite}.screen b{font-size:18px}.screen small{font-size:10px;color:#eee4f9}.beam{position:absolute;top:24px;width:28%;height:330px;background:linear-gradient(#f5d78980,#fff1c000);clip-path:polygon(48% 0,54% 0,100% 100%,0 100%);transform-origin:50% 0;animation:spotlight calc(var(--beat)*8) ease-in-out infinite alternate;pointer-events:none}.beam-left{left:4%;rotate:-15deg}.beam-right{right:4%;rotate:15deg;animation-direction:alternate-reverse;background:linear-gradient(#b8dedf90,#c8e7ff00)}.performers{position:absolute;bottom:32px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:42px}.performer{display:flex;flex-direction:column;align-items:center}.performer .avatar{width:200px;height:206px}.performer>span{color:#fdf5ff;font-size:11px;background:#736081;border-radius:20px;padding:3px 16px}.performer .body{animation:breathe calc(var(--beat)*2) ease-in-out infinite}.performer .antenna{animation:sway calc(var(--beat)*2) ease-in-out infinite}.audience{position:absolute;bottom:-11px;width:100%;display:flex;justify-content:space-around;font-size:32px;filter:brightness(.65)}.audience span{animation:audience calc(var(--beat)*2) ease-in-out infinite;animation-delay:var(--delay)}.audience.cheering span{animation:audience .25s infinite alternate}.live-message{position:absolute;top:56px;left:15px;background:#fff8e8e0;border-radius:18px;padding:10px 16px;font-size:11px;max-width:23%}.concert-progress{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;color:#b29bc7}progress{height:8px;width:200px;border:0;border-radius:8px;overflow:hidden;appearance:none}progress::-webkit-progress-bar{background:#e7e0eb}progress::-webkit-progress-value{background:#b09bc8}.keyboard-area{padding-top:12px}.playing .instrument{animation:instrument-play .25s 3 alternate}.instrument-mimi.playing .right{animation:bow .35s 3 alternate}.instrument-sol.playing .right{animation:bow .2s 3 alternate}.instrument-poco.playing .left{animation:play .15s 4 alternate}.instrument-pipi.playing .right{animation:play .4s 2 alternate}.result-friends{display:flex;justify-content:center;gap:20px}.result-actions{display:flex;justify-content:center;gap:16px}.result .reward{margin:10px}.result .celebrate{font-size:35px}.result h1{margin:10px}.food-grid{display:flex;justify-content:center;gap:24px;margin:30px 0}.food-card{border-radius:22px;background:#f6eee4;padding:25px 30px;flex:1;max-width:270px}.food-card>span{font-size:65px}.food-card h2{font-size:18px}.food-card p{font-size:12px;color:#988575}.home-tabs{display:flex;justify-content:center;gap:8px;margin:20px 0;flex-wrap:wrap}.home-content{display:flex;align-items:center;justify-content:center;gap:65px}.home-preview{border-radius:24px;background:#f4ebed;padding:15px 45px}.home-preview .avatar{width:220px;height:230px}.home-preview h2{font-size:18px;margin:0}.home-preview p{font-size:12px}.home-options{text-align:left}.home-options h2{font-size:17px;margin-top:25px}.home-options p{font-size:12px;color:#948794}.outfit-buttons,.meal-buttons{display:flex;gap:8px}.meal-buttons button{display:flex;flex-direction:column;align-items:center;gap:7px;padding:14px}.meal-buttons small{color:#a698ab}.home-options .outfit-buttons button{padding:12px}#action-message{min-height:20px;font-size:13px;color:#91749c}@keyframes spotlight{to{transform:rotate(25deg)}}@keyframes audience{50%{transform:translateY(-8px) rotate(5deg)}}@keyframes instrument-play{to{transform:rotate(8deg) translateY(-4px)}}@keyframes bow{to{transform:translateX(-12px) rotate(12deg)}}@media(max-width:900px){.friend-grid{grid-template-columns:repeat(3,1fr);margin:18px 0}.friend-card{padding:7px 5px 12px}.friend-card .avatar{height:130px}.panel{padding:22px}.home-content{gap:20px}.home-preview{padding:10px 20px}.building{padding:15px 12px}.town-buildings{gap:12px}.performers{gap:15px}.performer .avatar{width:170px;height:180px}.live-message{max-width:22%;font-size:10px;padding:8px}.food-card{padding:20px 12px}}@media(max-width:600px){nav{justify-content:center;gap:5px}nav button{padding:10px 12px;font-size:11px}.town{padding:24px 10px 10px}.welcome h1,.panel h1{font-size:21px}.building-icon{font-size:52px}.venue .building-icon{font-size:64px}.building b{font-size:14px}.building small{display:none}.visit{font-size:10px;padding:5px 8px}.town-buildings{gap:8px}.town-friends{flex-wrap:wrap}.town-friend{width:30%}.friend-card .avatar{height:116px}.friend-card .instrument{font-size:35px}.song-list{gap:12px}.song-card{padding:20px 10px;width:50%}.song-card b{font-size:13px}.song-card strong{padding:10px 15px}.song-card small{font-size:9px}.live-stage{height:330px}.performers{gap:0;bottom:32px}.performer .avatar{width:112px;height:130px}.performer .instrument{font-size:36px}.performer .outfit{font-size:20px}.screen{left:15%;width:70%;height:125px}.screen b{font-size:14px}.live-message{max-width:none;left:50%;transform:translateX(-50%);top:174px;white-space:nowrap;padding:5px 10px}.audience{font-size:22px}.food-grid{gap:8px}.food-card>span{font-size:42px}.food-card .primary{padding:10px;font-size:11px}.food-card h2{font-size:14px}.food-card p{font-size:10px}.home-content{flex-direction:column}.home-preview{width:100%;display:flex;flex-direction:column;align-items:center}.home-preview .avatar{height:160px}.home-options{text-align:center}.home-options h2{margin-top:15px}.result-friends{gap:0}.result-friends .avatar{width:105px;height:125px}.result-friends .instrument{font-size:34px}.result-actions{gap:8px}.result-actions button{padding:12px;font-size:13px}.home-tabs button{padding:9px 12px}.panel{padding:20px 12px}}@media(max-height:600px) and (orientation:landscape){nav{margin:0 0 10px}nav button{padding:6px 16px}.live-stage{height:225px}.screen{height:120px;top:28px}.screen>span{font-size:22px}.performer .avatar{height:147px;width:143px}.performer .instrument{font-size:40px}.performers{bottom:23px}.audience{font-size:24px}.keyboard-area .key{height:75px}.truss{font-size:9px;top:5px}.concert-progress{margin-top:5px}.town{min-height:0}.town-buildings{padding:5px 0}.building-icon{font-size:45px}.venue .building-icon{font-size:55px}.town-friend .avatar{height:80px}.friend-grid{grid-template-columns:repeat(6,1fr)}.friend-card .avatar{height:115px}.panel{min-height:0}.home-preview .avatar{height:160px}.home-content{gap:30px}}
.map-town{padding:24px 24px 18px;background:#f2f4e8;min-height:0}.map-town .welcome h1{margin:8px 0;font-size:26px}.map-town .welcome p{margin:8px 0 18px}.town-map{position:relative;height:480px;isolation:isolate;overflow:hidden;border-radius:26px}.map-ground{position:absolute;width:100%;height:100%;inset:0;z-index:-1}.map-place{position:absolute;display:flex;flex-direction:column;align-items:center;border:0;background:transparent;padding:8px;transform:translate(-50%,-50%);transition:filter .2s;min-width:125px}.map-place:hover{filter:brightness(1.08)}.map-place:hover .place-icon{translate:0 -5px}.place-icon{font-size:100px;line-height:1.15;filter:drop-shadow(0 9px 3px #65834c25);transition:translate .2s}.map-place b{background:#fffdf3;border:2px solid #e4d6b8;box-shadow:0 4px 0 #c7cda680;border-radius:24px;padding:10px 22px;color:#706451;font-size:16px}.map-place b span{color:#aa967a;margin-left:6px}.map-shop{left:27%;top:34%}.map-venue{left:70%;top:24%}.map-venue .place-icon{font-size:123px}.map-venue b{background:#fff0f4;border-color:#e4c4d8;color:#876888}.map-home{left:18%;top:76%}.map-decor{position:absolute;pointer-events:none}.tree{font-size:65px}.t1{left:7%;top:10%}.t2{left:44%;top:18%}.t3{right:3%;bottom:12%}.flowers{right:5%;top:48%;font-size:25px}.fountain{left:45%;top:63%;font-size:55px}.map-walkers{position:absolute;left:55%;bottom:4%;display:flex;align-items:center}.map-walkers .town-friend{width:76px;padding:0}.map-walkers .avatar{height:92px}.worn-accessory{transform-origin:205px 119px;animation:accessory-sway 3s ease-in-out infinite}.performer .worn-accessory{animation-duration:calc(var(--beat)*2)}@keyframes accessory-sway{50%{transform:rotate(4deg)}}@media(max-width:600px){.map-town{padding:20px 8px 8px}.town-map{height:480px}.place-icon{font-size:72px}.map-venue .place-icon{font-size:86px}.map-place{min-width:100px}.map-place b{font-size:13px;padding:9px 13px}.map-shop{left:25%;top:35%}.map-venue{left:70%;top:22%}.map-home{left:21%;top:77%}.tree{font-size:40px}.flowers{font-size:16px}.fountain{font-size:36px;left:44%;top:65%}.map-walkers{left:49%;bottom:5%}.map-walkers .town-friend{width:51px}.map-walkers .avatar{height:68px}.map-walkers .instrument{font-size:22px}}@media(max-height:600px) and (orientation:landscape){.map-town{padding:10px}.map-town .welcome h1{font-size:20px}.map-town .welcome p{margin-bottom:8px}.town-map{height:320px}.place-icon{font-size:70px}.map-venue .place-icon{font-size:85px}.map-place b{padding:6px 17px;font-size:13px}.map-walkers .avatar{height:65px}.tree{font-size:45px}.fountain{font-size:40px}}@media(prefers-reduced-motion:reduce){.worn-accessory{animation:none}}
.login-dialog label{display:block;text-align:left;margin:18px 0;font-size:16px}.login-dialog input{display:block;width:100%;box-sizing:border-box;border:1px solid #cdbeda;border-radius:10px;margin-top:8px;padding:12px;font:inherit}.login-dialog .login-error{color:#a04464;font-size:14px}.login-dialog{max-height:90dvh;overflow:auto}.login-dialog input[type=checkbox]{display:inline-block;width:24px;height:24px;vertical-align:middle}.auth-links{display:grid;gap:8px;margin-top:16px}.auth-links button{min-height:44px;font-size:14px}
/* Town garden and a playable one-octave piano. */
.map-town{background:#faf7eb;border:1px solid #e5dfcc;padding:22px 22px 16px;box-shadow:0 8px 30px #807c5610}.map-town .eyebrow{letter-spacing:4px;font-size:9px;color:#8b9b77}.map-town .welcome h1{font-size:28px;color:#667655;letter-spacing:3px}.illustrated-map{border:8px solid #f4edd9;box-shadow:inset 0 0 0 1px #d9dcc6,0 2px 0 #e6dcc7;height:520px;background:#dfeacb}.map-place .place-icon{font-size:112px;filter:drop-shadow(0 11px 0 #81926420)}.map-place.map-venue .place-icon{font-size:136px}.map-place b{border:2px solid #e2d4b8;box-shadow:0 5px 0 #a7ab7e35;background:#fffdf1;padding:10px 24px;letter-spacing:2px}.map-sign{font-size:10px;background:#ffffeee8;color:#8e836d;padding:4px 12px;border-radius:9px;margin:0 0 6px;white-space:nowrap}.map-shop{top:32%;left:27%}.map-venue{top:25%;left:67%}.map-home{top:75%;left:19%}.map-cloud{top:1%;left:45%;color:#fffdf0c9;font-size:70px;line-height:1}.little-garden{bottom:7%;left:33%;font-size:26px}.map-walkers{bottom:5%;left:57%}.map-place:focus-visible{outline:4px solid #9276b3;outline-offset:3px;border-radius:24px}.map-place:active .place-icon{translate:0 3px}
.keyboard-area{padding:14px 55px 0}.keys{position:relative;display:flex;gap:0;padding:15px 8px 8px;border:1px solid #725b53;border-top:14px solid #836951;border-radius:10px 10px 15px 15px;background:#66554d;box-shadow:0 7px 0 #56453f,0 13px 23px #64504820;isolation:isolate}.keys .key{height:145px;border:1px solid #c9c2b5;border-bottom:7px solid #ded7c9;background:linear-gradient(90deg,#f1eee5,#fffef8 12%,#fffef8 85%,#f0eade);border-radius:0 0 7px 7px;padding:12px 4px;gap:4px;box-shadow:inset 0 3px 6px #42332318;justify-content:flex-end;transition:background .15s,transform .08s}.keys .key .symbol{font-size:12px}.keys .key .label{font-size:13px;color:#a29a8e}.keys .key.lit{background:linear-gradient(#eadff7,#e4cff9);border-bottom-color:#b599d2;box-shadow:inset 0 0 20px #d4baf0}.keys .key.lit:before{top:auto;bottom:53px;font-size:18px;color:#9f77c2}.keys .key.pressed{transform:translateY(4px);border-bottom-width:3px;background:#ecdef8}.keys .black-key{position:absolute;z-index:2;top:15px;left:calc(8px + (100% - 16px)*var(--position)/7);transform:translateX(-50%);width:8%;height:88px;min-height:0;flex:none;border:1px solid #29262e;border-bottom:7px solid #191820;border-radius:0 0 5px 5px;background:linear-gradient(90deg,#302d36,#514955 48%,#312d36);box-shadow:2px 5px 4px #322a3a40,inset 0 -2px 0 #615565;padding:0}.keys .black-key.pressed{transform:translateX(-50%) translateY(3px);border-bottom-width:3px;background:#6c5c80}.keys .black-key:focus-visible{outline-offset:1px;z-index:3}.keys .key:nth-child(4) .symbol,.keys .key:nth-child(7) .symbol{display:none}
@media(max-width:600px){.map-town{padding:18px 5px 6px}.map-town .welcome h1{font-size:24px}.illustrated-map{height:500px;border-width:5px}.map-place .place-icon{font-size:77px}.map-place.map-venue .place-icon{font-size:96px}.map-place b{padding:8px 13px;font-size:13px;letter-spacing:1px}.map-sign{font-size:8px;padding:3px 7px}.map-cloud{font-size:44px;left:39%}.little-garden{font-size:18px}.map-walkers{left:54%}.keyboard-area{padding:14px 0 0}.keys .key{height:133px}.keys .black-key{height:78px}.keys .key .label{font-size:11px}.keys .key .symbol{font-size:10px}.keys .key.lit:before{bottom:51px}}
@media(max-height:600px) and (orientation:landscape){.map-town{padding:8px}.map-town .welcome h1{font-size:19px;margin:3px}.map-town .welcome p{margin:4px 0 7px}.illustrated-map{height:325px}.map-place .place-icon{font-size:65px}.map-place.map-venue .place-icon{font-size:80px}.map-sign{display:none}.map-place b{padding:6px 15px;font-size:12px}.keyboard-area{padding:8px 60px 0}.keys{border-top-width:8px;padding-top:8px}.keys .key{height:95px}.keys .black-key{height:51px;top:8px}.keys .key.lit:before{bottom:43px;font-size:13px}}
/* Storybook environment artwork, v1. Character artwork is unchanged. */
:root{background:#fff8f1;color:#755d70}body{background:linear-gradient(140deg,#fff9f1,#fff3f4 65%,#f6f4ee)}.app{max-width:1250px}.brand{color:#b27c99}.brand small{color:#b1919d}nav{justify-content:center;gap:12px}nav button{border-radius:22px;padding:11px 23px;background:#fffcf6;border-color:#ebd8cf;color:#947b7e;box-shadow:0 3px 0 #eadbd12b}nav button[aria-current]{background:#f9e5eb;border-color:#dcb6c8;color:#996b85}.round{border-color:#edddd4;background:#fffdf7}.primary{border-radius:25px;background:#bb829b;box-shadow:0 4px 0 #9e6f8350}.primary:hover:not(:disabled){background:#ac718e}.secondary{border-radius:23px;color:#9a7482;border-color:#e3c9cf;background:#fffaf2}.storybook-town{padding:20px 12px 8px;border:1px solid #ead7c9;background:#fffaf0;border-radius:32px;box-shadow:0 10px 40px #a8786820}.storybook-town .welcome h1{color:#936e81;letter-spacing:2px;font-size:26px;margin:6px 0}.storybook-town .eyebrow{color:#ba98a0;letter-spacing:3px}.storybook-town .welcome p{color:#a18d89;margin:8px 0 16px;font-size:12px}.storybook-map{position:relative;isolation:isolate;width:100%;height:auto;min-height:0;aspect-ratio:3/2;border:0;border-radius:23px;overflow:hidden;box-shadow:0 0 0 5px #f1e4d5;margin:0;background:#dfeacb}.town-art{display:block;width:100%;height:100%;object-fit:contain}.destination{position:absolute;border:0;background:transparent;border-radius:35%;display:flex;align-items:flex-end;justify-content:center;padding:0 0 3%;cursor:pointer;touch-action:manipulation}.destination-shop{left:6%;top:5%;width:35%;height:40%}.destination-concert{left:55%;top:1%;width:34%;height:40%}.destination-home{left:5%;top:46%;width:36%;height:40%}.destination-label{display:block;white-space:nowrap;background:#fffcf1f5;border:2px solid #e8cab5;border-radius:26px;padding:10px 26px;color:#866355;font-size:17px;font-weight:bold;letter-spacing:2px;box-shadow:0 4px 0 #94775a40,0 3px 10px #7c5a4020;transition:transform .2s}.destination-concert .destination-label{color:#8d709e;border-color:#d6bbdf;background:#fff5fff5}.destination-home .destination-label{color:#a77186;border-color:#e5bac6;background:#fff4f5f5}.destination-label>span{color:#ba9484;margin-left:7px}.destination:hover .destination-label{transform:translateY(-4px)}.destination:active .destination-label{transform:translateY(2px)}.destination:focus-visible{outline:4px dashed #fffdf0;outline-offset:-5px;background:#fff6e820}.storybook-map .map-walkers{left:57%;bottom:8%;pointer-events:none;gap:0}.storybook-map .town-friend{pointer-events:auto;width:85px}.storybook-map .town-friend .avatar{height:95px}.map-invitation{text-align:center;color:#aa8691;font-size:12px;margin:15px 0 5px}.storybook-shop{position:relative;background:#f3e2ce url('/art/shop-storybook-v1.png') center center / cover no-repeat;border:6px solid #ffefdf;border-radius:30px;min-height:680px;padding:95px 13% 28px;display:flex;align-items:center;flex-direction:column;box-shadow:0 9px 30px #ab7d6620}.shop-heading{background:#fff8eabf;padding:12px 25px;border-radius:35px;max-width:100%;color:#a4757e}.shop-heading h1{font-size:28px;margin:5px 0;color:#a4757e}.shop-heading .eyebrow{color:#b8948a;font-size:9px;letter-spacing:3px}.shop-heading p{font-size:12px;margin:8px 0;color:#a0897b}.storybook-shop .food-grid{width:100%;gap:20px;align-items:flex-end;margin:55px 0 10px}.storybook-shop .food-card{background:none;border:0;box-shadow:none;padding:0;min-width:0;display:flex;flex-direction:column;align-items:center}.food-plate{width:125px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fffaf0;border:5px double #eac8be;box-shadow:0 7px 0 #ba957b35,0 9px 16px #76574320;margin-bottom:12px}.food-plate>span{font-size:62px;display:block;transform:translateY(-16px);filter:drop-shadow(0 6px 3px #85512d25)}.storybook-shop .food-card h2{font-size:16px;color:#87614f;background:#fff9eae8;border-radius:14px;padding:5px 18px;margin:0}.storybook-shop .food-card p{font-size:11px;color:#795b4f;background:#fff8e5d9;padding:3px 10px;border-radius:10px;margin:6px 0 10px}.storybook-shop .food-card .primary{font-size:13px;padding:12px 23px;background:#c78b9c;border:2px solid #f9d7de;box-shadow:0 4px 0 #9a6a7445;white-space:nowrap}.storybook-shop .food-card .primary:disabled{opacity:1;background:#d9c3b3;color:#806d60;border-color:#e7d5c7;box-shadow:0 3px 0 #9d806730}.storybook-shop #action-message{background:#fff7eaf0;border-radius:17px;padding:8px 16px;color:#9a736c;max-width:100%;font-size:12px;margin:20px 0 12px;line-height:1.7}.storybook-shop #go-home{background:#fff9eeed;padding:10px 24px}.panel:not(.storybook-shop){border-radius:30px;border-color:#eeddd4}.home-preview{background:#fae9e9;border:3px solid #fff6ec;border-radius:35px}.friend-card{border-radius:28px}.food-card button:focus-visible{outline-offset:4px}
@media(max-width:600px){.app{padding:12px 10px}.brand>span{font-size:18px}nav{gap:5px}nav button{padding:10px 12px;font-size:11px}.storybook-town{padding:15px 5px 7px;border-radius:24px}.storybook-town .welcome h1{font-size:21px;letter-spacing:1px}.storybook-town .welcome p{font-size:11px;margin-bottom:12px}.storybook-map{height:auto;aspect-ratio:3/2;border-radius:16px;box-shadow:0 0 0 3px #f1e4d5}.destination{padding-bottom:0;border-radius:20px;min-height:48px}.destination-label{font-size:11px;letter-spacing:0;padding:7px 11px;border-width:1px;box-shadow:0 3px 0 #94775a30}.destination-label>span{margin-left:2px}.destination-shop{height:41%}.destination-concert{height:43%}.destination-home{height:41%}.storybook-map .map-walkers{left:58%;bottom:4%}.storybook-map .town-friend{width:40px}.storybook-map .town-friend .avatar{height:52px}.storybook-map .instrument{font-size:18px}.map-invitation{font-size:10px;margin-top:11px}.storybook-shop{min-height:560px;padding:92px 9px 20px;border-width:3px;border-radius:24px;background-position:center center}.shop-heading{padding:12px 15px}.shop-heading h1{font-size:23px}.storybook-shop .food-grid{gap:8px;margin:65px 0 10px}.food-plate{width:83px;height:58px;border-width:4px;margin-bottom:9px}.food-plate>span{font-size:44px;transform:translateY(-12px)}.storybook-shop .food-card h2{font-size:13px;padding:4px 12px}.storybook-shop .food-card p{font-size:9px;padding:3px 5px}.storybook-shop .food-card .primary{font-size:11px;padding:10px 11px;border-width:1px}.storybook-shop #action-message{font-size:11px;margin:16px 0 10px;padding:7px 10px}}
@media(max-height:600px) and (orientation:landscape){.storybook-town{padding-top:8px}.storybook-town .welcome h1{font-size:19px}.storybook-town .welcome p{margin:3px 0 9px}.storybook-map{width:min(100%,760px);height:auto;aspect-ratio:3/2;margin:auto}.storybook-shop{min-height:540px;padding-top:65px;background-size:cover}.storybook-shop .food-grid{margin-top:35px}.shop-heading h1{font-size:23px}}
/* Joyful home, shared character states, concert camera, and sound garden. */
.storybook-home{background:#f8e6d5 url('/art/home-storybook-v1.png') center / cover no-repeat;padding:28px 30px 35px;min-height:640px;border:5px solid #fff1e1}.storybook-home>h1,.storybook-home>.eyebrow{background:#fff6e9e8;display:table;margin:6px auto;padding:6px 18px;border-radius:20px}.storybook-home .home-tabs button{background:#fff8eaf0;border-radius:20px}.storybook-home .home-content{align-items:center;gap:35px}.storybook-home .home-preview{background:none;border:0;box-shadow:none;padding:25px 15px;min-width:260px;position:relative}.friend-touch{background:none;border:0;cursor:pointer;padding:0;border-radius:40%;touch-action:manipulation}.storybook-home .home-preview .avatar{width:260px;height:280px}.storybook-home .home-preview h2,.storybook-home .home-preview>p{background:#fff5e9e8;border-radius:16px;padding:6px 12px;display:table;margin:8px auto;color:#8e6a71}.storybook-home .home-options{background:#fff9edf0;border:3px solid #f3d7ce;border-radius:30px;padding:18px 22px;box-shadow:0 7px 0 #9e705f20;max-width:460px}.home-play{display:flex;gap:8px;flex-wrap:wrap}.home-play button{font-size:12px;padding:11px}.home-options #action-message{line-height:1.8;min-height:44px}.avatar .foot{transform-box:fill-box;transform-origin:50% 0}.happy .body{animation:happy-hop .45s ease-in-out 3!important}.happy .eye{transform:scaleY(.4)}.happy .arm.left{animation:cheer-arm .4s alternate 4}.happy .arm.right{animation:cheer-arm .4s .15s alternate 4}.dancing .body{animation:friend-dance .65s ease-in-out infinite!important}.dancing .left-foot{animation:foot-tap .32s infinite alternate}.dancing .right-foot{animation:foot-tap .32s .16s infinite alternate}.dancing .arm{animation:cheer-arm .6s infinite alternate}.eating .body{animation:chew-body .35s infinite!important}.eating .mouth{transform-box:fill-box;transform-origin:center;animation:chew-mouth .32s infinite}.eating .arm{animation:feed-arm .4s infinite alternate}.eating-food{position:absolute;left:43%;top:62%;font-size:45px;z-index:3;animation:food-to-mouth 2.1s forwards;pointer-events:none}.joy-particle{position:fixed;pointer-events:none;z-index:30;font-size:25px;color:#d58caa;animation:joy-rise 1.25s var(--delay) both ease-out;text-shadow:0 2px 0 #fff8}.expression-happy,.expression-eat{display:none}.custom-character.happy .expression-happy,.custom-character.eating .expression-eat{display:block}.custom-character.happy:has(.expression-happy) .expression-idle,.custom-character.eating:has(.expression-eat) .expression-idle{display:none}.concert-screen{overflow:hidden;display:block;padding:0;background:radial-gradient(ellipse at bottom,#f0d8ed,#9c87b6)}.screen-caption{position:absolute;z-index:3;top:5px;left:0;width:100%;font-size:9px!important;text-align:center;background:#6c53773d;padding:3px}.screen-camera{position:absolute;inset:13px 0 0;display:flex;justify-content:center;align-items:center;gap:0;animation:camera-pan 8s ease-in-out infinite alternate;transform-origin:center}.screen-camera .avatar{width:115px;height:133px;flex-shrink:0}.screen-camera .instrument{font-size:34px}.shot-1 .screen-camera{transform:scale(1.8) translateY(15px);animation:camera-close 8s ease-in-out infinite alternate}.shot-2 .screen-camera{animation:camera-pan 5s ease-in-out infinite alternate}.shot-2 .body{animation:friend-dance 1s infinite!important}.screen-song{position:absolute;bottom:4px;left:0;width:100%;text-align:center;font-size:9px!important;color:white;background:#77638b8c;padding:4px}.memory-album{background:linear-gradient(110deg,#fff8e7,#f9e8ee);border:7px solid #edcfdb}.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:25px 0}.memory-card{background:#fffdf6;border-radius:8px 8px 25px 8px;border:1px solid #eddcd0;padding:20px 12px;box-shadow:0 5px 0 #dbc4c540;display:flex;align-items:center;flex-direction:column}.memory-card>span{font-size:50px;color:#c697b6}.memory-card h2{font-size:16px}.memory-card p,.memory-card time{font-size:12px;color:#ac8c91}.memory-card .avatar{width:120px;height:135px}.memory-stamps{display:flex;gap:16px}.memory-stamps span{display:flex;flex-direction:column;font-size:26px;color:#d6c8c0}.memory-stamps small{font-size:9px}.memory-stamps .earned{color:#d789a8}.music-garden{background:linear-gradient(#fff4eaf0,#edf4dfed),url('/art/town-storybook-v1.png') center/cover;border:5px solid #dce4c6}.garden-friend{display:flex;justify-content:center;height:175px}.garden-friend .avatar{height:180px;width:180px}.sound-flowers{display:flex;justify-content:center;gap:12px;align-items:flex-end;margin:20px 0}.sound-flower{border:0;border-bottom:5px solid #a9c592;background:#ffffffa8;border-radius:45% 45% 25% 25%;padding:15px 20px;display:flex;flex-direction:column;align-items:center;gap:8px;touch-action:manipulation}.sound-flower>span{font-size:44px}.sound-flower small{color:#87a372}.sound-flower.bloom{animation:flower-bloom .3s}.garden-actions{display:flex;justify-content:center;gap:12px}#garden-message{color:#a48694;font-size:13px}.song-list{flex-wrap:wrap}.song-card{width:calc(33.33% - 20px);min-width:180px}nav{flex-wrap:wrap}.worn-accessory{transform-origin:0 0}@keyframes happy-hop{50%{transform:translateY(-12px) rotate(3deg)}}@keyframes friend-dance{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg) translateY(-7px)}}@keyframes foot-tap{to{transform:translateY(-6px) rotate(12deg)}}@keyframes cheer-arm{to{transform:rotate(-35deg) translateY(-8px)}}@keyframes feed-arm{to{transform:translateY(-15px) rotate(20deg)}}@keyframes chew-body{50%{transform:translateY(3px)}}@keyframes chew-mouth{50%{transform:scaleY(2) scaleX(.7)}}@keyframes food-to-mouth{0%{transform:translate(35px,45px) scale(1)}35%,50%{transform:translate(0,-20px) scale(.8)}70%{transform:translate(0,-20px) scale(.5)}100%{transform:translate(0,-20px) scale(0);opacity:0}}@keyframes joy-rise{from{opacity:0;transform:translate(0,0) scale(.7)}20%{opacity:1}to{opacity:0;transform:translate(var(--drift),-110px) scale(1.2)}}@keyframes camera-pan{from{translate:-10px 0;scale:1}to{translate:10px -3px;scale:1.15}}@keyframes camera-close{from{transform:scale(1.65) translate(-6px,16px)}to{transform:scale(1.85) translate(6px,21px)}}@keyframes flower-bloom{50%{transform:translateY(-8px) rotate(8deg)}}
@media(max-width:700px){.storybook-home{padding:18px 10px;min-height:0;background-position:35% center}.storybook-home .home-content{flex-direction:column;gap:4px}.storybook-home .home-preview{padding:0;min-width:0;width:100%}.storybook-home .home-preview .avatar{height:205px;width:200px}.storybook-home .home-options{width:100%;padding:14px 10px;max-width:430px}.home-play{justify-content:center}.home-options .meal-buttons,.home-options .outfit-buttons{justify-content:center}.eating-food{font-size:34px}.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.memory-card{padding:12px 8px}.memory-card h2{font-size:13px}.memory-card p{font-size:10px}.sound-flowers{gap:5px}.sound-flower{padding:12px 5px;min-width:0;flex:1}.sound-flower>span{font-size:29px}.song-card{width:calc(50% - 12px);min-width:0}.screen-camera .avatar{width:85px;height:105px}.screen-camera .instrument{font-size:25px}.screen-caption{font-size:8px!important}.garden-actions button{padding:12px 16px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.happy .body,.dancing .body,.eating .body,.shot-2 .body{animation:none!important}.joy-particle{display:none}.eating-food{animation:none;top:45%;left:44%}.screen-camera{animation:none!important}}
.playing .head{transform-origin:160px 170px;animation:nod .3s 2 alternate}.custom-character .arm.left{transform-box:view-box;transform-origin:90px 190px}.custom-character .arm.right{transform-box:view-box;transform-origin:230px 190px}.custom-character .foot{transform-box:view-box;transform-origin:160px 270px}.storybook-home .friend-touch:focus-visible{outline:3px dashed #bc87a0;outline-offset:4px}.home-options button:disabled{cursor:default}nav button{min-height:42px}.sound-flower{min-height:68px}.home-tabs button{min-height:42px}
/* Audience silhouettes, a slow stage camera, and nonverbal tap guidance. */
.camera-stage{perspective:1100px;background:linear-gradient(#4b3b65,#766080 75%,#40344e);isolation:isolate}.stage-scene{position:absolute;inset:0;transform-origin:50% 60%;--yaw:0deg;--pan:0%;--zoom:1;transform:translateX(var(--pan)) rotateY(var(--yaw)) scale(var(--zoom));transition:transform 3.5s cubic-bezier(.3,0,.3,1);will-change:transform;transform-style:preserve-3d}.view-left .stage-scene{--yaw:13deg;--pan:2%;--zoom:1.06}.view-right .stage-scene{--yaw:-13deg;--pan:-2%;--zoom:1.06}.stage-floor{position:absolute;bottom:0;left:-15%;width:130%;height:46%;background:repeating-linear-gradient(90deg,transparent 0 79px,#b29cac25 80px 81px),linear-gradient(#c3aec2,#917795);transform:rotateX(28deg);transform-origin:50% 100%;border-top:2px solid #e4cdd65c}.camera-stage .performers{bottom:41px;transform:translateZ(36px)}.camera-stage .concert-screen{transform:translateZ(-16px)}.camera-stage .live-message{z-index:5;pointer-events:none}.silhouette-audience{position:absolute;display:block;bottom:-8px;left:0;width:100%;height:68px;filter:none;pointer-events:none;z-index:4;overflow:hidden}.crowd-row{position:absolute;display:flex;justify-content:space-around;align-items:flex-end;width:106%;left:-3%;height:55px}.crowd-row.row-0{bottom:20px;opacity:.8;transform:translateX(1.5%) scale(.89)}.crowd-row.row-1{bottom:0}.silhouette-audience .crowd-friend{position:relative;display:block;flex:0 0 5%;height:49px;transform:scale(var(--size));animation:crowd-sway calc(var(--beat)*4) var(--delay) ease-in-out infinite;transform-origin:50% 100%}.crowd-friend i{position:absolute;display:block;background:#272331}.crowd-head{width:22px;height:22px;left:50%;top:3px;transform:translateX(-50%);border-radius:50%}.crowd-body{width:32px;height:29px;left:50%;top:22px;transform:translateX(-50%);border-radius:50% 50% 35% 35%;clip-path:polygon(30% 0,70% 0,100% 100%,0 100%)}.crowd-hand{width:10px;height:15px;border-radius:50%;top:16px;opacity:0;transition:opacity .25s;transform:translateY(13px)}.hand-left{left:calc(50% - 26px)}.hand-right{right:calc(50% - 26px)}.silhouette-audience.cheering .crowd-hand{opacity:1;animation:crowd-clap .35s var(--delay) ease-in-out infinite alternate}.silhouette-audience.cheering .hand-right{animation-direction:alternate-reverse}.silhouette-audience.cheering .crowd-friend{animation:crowd-bounce .5s var(--delay) ease-in-out infinite}.tap-guide{display:none;position:absolute;width:45px;height:56px;left:50%;bottom:24px;transform:translateX(-50%);z-index:4;pointer-events:none;filter:drop-shadow(0 2px 2px #8c657d22)}.tap-guide svg{display:block;width:100%;height:100%;overflow:visible}.keys .key.lit .tap-guide{display:block}.keys .key.lit:before{display:none}.tap-finger{animation:guide-tap 1.5s ease-in-out infinite;transform-origin:25px 15px}.tap-ring{animation:guide-ring 1.5s ease-out infinite;transform-origin:25px 15px}.keys .key.lit .symbol{opacity:.35}@keyframes crowd-sway{0%,100%{transform:scale(var(--size)) rotate(-3deg)}50%{transform:scale(var(--size)) rotate(3deg)}}@keyframes crowd-bounce{50%{transform:scale(var(--size)) translateY(-4px)}}@keyframes crowd-clap{from{transform:translate(0,-6px) rotate(-18deg)}to{transform:translate(5px,-10px) rotate(18deg)}}@keyframes guide-tap{0%,100%{transform:translateY(6px)}40%,55%{transform:translateY(0) scale(.94)}}@keyframes guide-ring{0%,35%{opacity:0;transform:scale(.65)}45%{opacity:.9}85%,100%{opacity:0;transform:scale(1.35)}}@media(max-width:600px){.silhouette-audience{height:50px;bottom:-8px}.crowd-row{height:43px}.crowd-row.row-0{bottom:15px}.silhouette-audience .crowd-friend{height:37px}.crowd-head{width:14px;height:14px;top:4px}.crowd-body{width:22px;height:21px;top:16px}.crowd-hand{width:7px;height:10px;top:12px}.hand-left{left:calc(50% - 16px)}.hand-right{right:calc(50% - 16px)}.camera-stage .performers{bottom:30px}.tap-guide{width:36px;height:45px;bottom:23px}.view-left .stage-scene{--yaw:10deg;--pan:1%;--zoom:1.03}.view-right .stage-scene{--yaw:-10deg;--pan:-1%;--zoom:1.03}}@media(max-height:600px) and (orientation:landscape){.tap-guide{width:29px;height:37px;bottom:23px}.silhouette-audience{height:48px}.crowd-head{width:17px;height:17px}.crowd-body{width:25px;height:24px;top:18px}.camera-stage .performers{bottom:26px}}@media(prefers-reduced-motion:reduce){.stage-scene{transform:none!important;transition:none!important}.silhouette-audience .crowd-friend,.silhouette-audience.cheering .crowd-hand,.tap-finger,.tap-ring{animation:none!important}.tap-ring{opacity:.65}}
/* The pointing hand is only visible after two seconds without input. */
.keys .key.lit .tap-guide{display:none}.keys.show-guide .key.lit .tap-guide{display:block}.spotlight-rig{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}.spotlight{position:absolute;left:calc(8% + var(--lamp)*20%);top:21px;width:25%;height:92%;transform-origin:50% 0;transform:translateX(-50%);animation:spot-sweep calc(var(--beat)*12) ease-in-out infinite alternate;animation-delay:calc(var(--lamp)*-1.7s);opacity:.45;transition:opacity 1.5s;mix-blend-mode:screen;pointer-events:none}.spotlight:before{content:'';position:absolute;inset:0;background:linear-gradient(var(--light),transparent 95%);clip-path:polygon(48% 0,52% 0,100% 100%,0 100%);filter:blur(2px)}.spotlight i{position:absolute;left:calc(50% - 8px);top:0;width:16px;height:9px;border-radius:50%;background:var(--light);box-shadow:0 0 16px var(--light)}.floor-lights{position:absolute;bottom:8%;left:0;width:100%;height:15%;pointer-events:none;opacity:.5;transition:opacity 1.5s}.floor-lights i{position:absolute;left:13%;width:22%;height:85%;border-radius:50%;background:radial-gradient(ellipse,#f3d5e999,transparent 70%);animation:pool-drift calc(var(--beat)*16) ease-in-out infinite alternate}.floor-lights i:nth-child(2){left:41%;background:radial-gradient(ellipse,#addcde99,transparent 70%);animation-delay:-3s}.floor-lights i:nth-child(3){left:68%;background:radial-gradient(ellipse,#f8dfa399,transparent 70%);animation-delay:-5s}.camera-stage .performers{z-index:2}.camera-stage .concert-screen{z-index:0}.light-finale .spotlight{opacity:.78}.light-finale .floor-lights{opacity:.85}.silhouette-audience{height:85px;bottom:-12px}.crowd-row{height:67px}.crowd-row.row-0{bottom:22px}.silhouette-audience .crowd-friend{flex-basis:7.15%;height:62px}.crowd-head{width:29px;height:29px}.crowd-body{width:41px;height:35px;top:28px}.crowd-hand{width:13px;height:18px;top:20px}.hand-left{left:calc(50% - 32px)}.hand-right{right:calc(50% - 32px)}.camera-stage .performers{bottom:53px}.visit-card{padding:18px 12px 12px;margin:15px 0 0;background:#fff1e8;border-radius:23px;border:1px solid #eed7cd;text-align:center}.visit-card h2{font-size:18px;color:#a07888;margin:2px}.visit-card p,.visit-card>small{font-size:10px;color:#aa9591}.visit-card>div{display:flex;gap:9px;justify-content:center;margin:12px 0}.visit-stop{border:1px solid #ead5c9;border-radius:18px;background:#fffaf0;padding:13px 10px;flex:1;color:#a1808c;display:flex;align-items:center;flex-direction:column;gap:6px}.visit-stop>span{font-size:25px}.visit-stop b{font-size:11px}.visit-stop small{font-size:9px}.visit-stop.visited{background:#f1f3e3;border-color:#cbd6b6;color:#8a9c70}.echo-play{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:16px 0}.echo-play button{font-size:14px}#echo-cues{display:flex;gap:6px}#echo-cues span{font-size:23px;padding:5px;border-radius:50%;border:2px solid transparent}#echo-cues .echo-next{border-color:#b697cb;background:#f3eafa}#echo-cues .echo-done{background:#e5efd7;opacity:.55}@keyframes spot-sweep{from{transform:translateX(-50%) rotate(-24deg)}to{transform:translateX(-50%) rotate(24deg)}}@keyframes pool-drift{to{translate:20px 0;scale:1.2}}
@media(max-width:600px){.silhouette-audience{height:62px;bottom:-9px}.crowd-row{height:47px}.crowd-row.row-0{bottom:16px}.silhouette-audience .crowd-friend{height:44px}.crowd-head{width:20px;height:20px}.crowd-body{width:28px;height:27px;top:19px}.crowd-hand{width:9px;height:12px;top:15px}.hand-left{left:calc(50% - 22px)}.hand-right{right:calc(50% - 22px)}.camera-stage .performers{bottom:37px}.visit-card>div{display:grid;grid-template-columns:1fr 1fr}.visit-stop{padding:9px}.spotlight{opacity:.35}#echo-cues span{font-size:20px;padding:3px}.visit-card p{line-height:1.7}}@media(max-height:600px) and (orientation:landscape){.camera-stage .performers{bottom:36px}.silhouette-audience{height:61px}.crowd-head{width:23px;height:23px}.crowd-body{width:31px;height:29px;top:22px}.silhouette-audience .crowd-friend{height:51px}}@media(prefers-reduced-motion:reduce){.spotlight,.floor-lights i{animation:none!important}.spotlight{opacity:.3}}
/* Shared brand and parent-controlled reminders */
.brand .game-logo{display:block;width:190px;height:80px;object-fit:contain}.brand{padding:0;background:transparent}.tools{flex-wrap:wrap;justify-content:flex-end;gap:8px}#language{font-size:13px;padding:8px 11px}#reminder-settings{padding:16px;background:#fff2ee;border-radius:18px;margin:18px 0}#reminder-settings label{display:flex;align-items:flex-start;gap:10px}#reminder-settings input{width:22px;height:22px;flex-shrink:0}.reminder-toast{position:fixed;z-index:100;bottom:20px;left:50%;transform:translateX(-50%);width:min(90vw,460px);padding:20px 50px 20px 20px;background:#fff8ef;border:2px solid #dabbd6;border-radius:22px;box-shadow:0 8px 30px #49384922;color:#604e67}.reminder-toast button{position:absolute;right:8px;top:8px;width:36px;height:36px;border:0;border-radius:50%;background:#f3e4ef;font-size:24px}html[lang=en] .destination-label{font-size:clamp(12px,2.4vw,22px)}html[lang=en] .song-card b{overflow-wrap:anywhere}@media(max-width:480px){.brand .game-logo{width:135px;height:64px}header{gap:4px}.tools{gap:4px}.tools .round{width:34px;height:34px}.coin{padding:6px}}
/* Object-based room and growing town */
.next-help-time{margin:8px 0 0;padding:7px 9px;border-radius:12px;background:#fff9ed;font-weight:700}
.life-panel{margin:18px 0;padding:24px;border:2px solid #ecdaca;border-radius:30px;background:#fff9ef;color:#785f78}.life-panel h2{font-size:22px}.life-panel p{line-height:1.7}.life-cards,.furniture-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:15px}.life-cards article,.furniture-catalog article{padding:18px;background:#fff0ed;border:2px solid #f6dddb;border-radius:23px;text-align:center}.life-cards article:nth-child(2n){background:#eff4e5;border-color:#e0e8cf}.world-label{font-size:19px;text-align:center;background:#f1ebfa;border-radius:20px;padding:12px}.world-label small{display:block;font-size:11px;margin:5px}.theme-options,.venue-options{display:flex;gap:10px;flex-wrap:wrap}.theme-options button,.venue-options button{flex:1;min-width:125px;padding:15px;background:#f1ebfa;border:2px solid #e0d1e9;border-radius:20px;color:#785f78}.theme-options small,.venue-options small{display:block;font-size:11px;margin-top:8px}.venue-options button>span{display:block;font-size:35px}.life-panel [aria-pressed=true]{border-color:#b779a1;background:#fbe0eb}.shop-host{display:flex;align-items:center;justify-content:center;gap:20px}.shop-host .avatar{width:90px;height:105px}.shop-host p{background:#fff0dc;border-radius:20px;padding:15px;max-width:260px}.furniture-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:15px;margin:16px 0}.furniture-slots label{display:grid;gap:8px}.furniture-slots select{font:inherit;padding:12px;border-radius:15px;border:2px solid #decbdc;background:#fff;color:#785f78}.storybook-home{background:linear-gradient(120deg,#f9e9ed,#f5ead7);min-height:0}.storybook-home .home-preview.object-room{isolation:isolate;overflow:hidden;min-height:370px;width:100%;max-width:460px;background:repeating-linear-gradient(90deg,#fbecde 0 28px,#f4e1d6 29px 31px);border:7px solid #fffbef;border-radius:100px 100px 25px 25px;padding:80px 8px 8px}.object-room:before{content:'';position:absolute;bottom:0;left:0;width:100%;height:35%;background:repeating-linear-gradient(0deg,#d9b495 0 25px,#cfa78b 26px 28px);z-index:-2;border-top:8px solid #d8af96}.object-room .friend-touch{position:relative;z-index:3}.storybook-home .object-room .avatar{width:185px;height:195px}.object-room>h2,.object-room>p{position:relative;z-index:4;pointer-events:none}.room-objects{position:absolute;inset:0;pointer-events:none;z-index:-1}.room-window{position:absolute;left:12%;top:9%;width:29%;height:35%;border:9px solid #fff6e6;border-radius:70px 70px 4px 4px;background:linear-gradient(#b4e1e9,#e9f7e1);box-shadow:0 0 0 4px #dbb5a0}.room-window:after{content:'';position:absolute;left:46%;top:0;height:100%;border-left:5px solid #fff6e6}.room-window span{font-size:32px;display:block;margin-top:25px}.room-object{position:absolute}.object-floor{left:12%;bottom:12%;width:76%;height:21%;border-radius:50%;background:repeating-radial-gradient(ellipse,#f0b4c8 0 10px,#f6d3df 11px 15px);border:5px solid #f9dfd4;display:grid;place-items:center}.object-floor span{font-size:27px;opacity:.5}.furniture-rug-moon{background:repeating-radial-gradient(ellipse,#a8addb 0 10px,#d5d8ed 11px 15px)}.object-table{left:9%;bottom:27%;width:30%;height:11%;background:#d4a27f;border:5px solid #efc9a3;border-radius:50%;box-shadow:0 7px 0 #b88364}.object-table:after{content:'';position:absolute;top:100%;left:15%;width:64%;height:40px;border-left:7px solid #b88364;border-right:7px solid #b88364}.object-table span{display:none}.object-tabletop{left:14%;bottom:38%;font-size:40px;z-index:2}.object-wall{right:13%;top:14%;font-size:70px}.object-cabinet{right:5%;bottom:29%;width:23%;height:24%;border-radius:12px;background:repeating-linear-gradient(#e7b9bb 0 28px,#d297a3 29px 32px);border:5px solid #f9dadd;box-shadow:0 6px 0 #be8794}.object-cabinet span{position:absolute;top:-30px;font-size:32px;left:15%}.furniture-swatch{position:relative;height:120px;background:#fff9f0;border-radius:20px;overflow:hidden}.furniture-swatch .room-object{left:25%;right:auto;top:auto;bottom:20%;width:50%}.furniture-swatch .object-tabletop,.furniture-swatch .object-wall{font-size:55px}.furniture-swatch .object-cabinet{height:55%}.furniture-swatch .object-floor{height:40%}.furniture-catalog h3{font-size:16px}.dance-cue{font-size:60px;text-align:center;padding:15px}.dance-pads{display:flex;justify-content:center;gap:15px}.dance-pads button{font-size:36px;background:#fbe2e8;border:3px solid #e6b9cc;padding:15px;border-radius:25px;min-width:75px}.map-walkers{inset:0;display:block;pointer-events:none}.map-walkers .town-friend{position:absolute;width:9%;left:52%;top:56%;animation:town-walk 26s linear infinite;pointer-events:auto;z-index:3}.map-walkers .town-friend:nth-child(2){animation-delay:-9s}.map-walkers .town-friend:nth-child(3){animation-delay:-18s}.map-walkers .avatar{height:auto;aspect-ratio:1}.map-walkers .foot{animation:walking-foot .5s ease-in-out infinite alternate}.map-walkers .right-foot{animation-delay:-.5s}.town-map:after{position:absolute;inset:0;content:'';pointer-events:none;border-radius:inherit}.town-map[data-weather=rain]:after{background:repeating-linear-gradient(110deg,transparent 0 38px,#afd7e333 39px 40px,transparent 41px 75px);animation:gentle-rain 3s linear infinite}.town-map[data-weather=cloud]:after{background:linear-gradient(#b1bacc25,transparent)}.town-map[data-theme=ocean]{box-shadow:0 0 0 8px #b7dce3}.town-map[data-theme=candy]{box-shadow:0 0 0 8px #ecc1dd}.town-map[data-theme=ocean]:before,.town-map[data-theme=candy]:before{position:absolute;bottom:3%;left:4%;z-index:2;font-size:clamp(20px,4vw,45px);content:'🐚 🐚 🪸';pointer-events:none}.town-map[data-theme=candy]:before{content:'🍬 🍭 🍬'}.town-map[data-season=autumn] .town-art{filter:sepia(.13) saturate(.9)}.town-map[data-season=winter] .town-art{filter:saturate(.65) brightness(1.06)}.camera-stage[data-venue=park]{background:radial-gradient(ellipse at 10% 35%,#8cbd8b 0 18%,transparent 19%),radial-gradient(ellipse at 90% 30%,#91bf94 0 20%,transparent 21%),linear-gradient(#b6e3e8 0 65%,#add299 66%)}.camera-stage[data-venue=park] .stage-floor{background:linear-gradient(#d2deab,#9bbe86)}.camera-stage[data-venue=outdoor]{background:radial-gradient(circle at 20% 15%,#fff7c2 0 2px,transparent 3px),radial-gradient(circle at 75% 22%,#fff7c2 0 3px,transparent 4px),linear-gradient(#302b62,#9a78a9)}.camera-stage[data-venue=ice]{background:linear-gradient(130deg,#c9eff4,#b6bbeb 50%,#e5f7f8)}.camera-stage[data-venue=ice] .stage-floor{background:repeating-linear-gradient(130deg,#d6eef388 0 25px,#ffffff66 26px 28px),linear-gradient(#a9d0e1,#d9eefa);box-shadow:inset 0 10px 30px #fff9}.camera-stage[data-venue=park]:after,.camera-stage[data-venue=outdoor]:after,.camera-stage[data-venue=ice]:after{position:absolute;left:12px;top:10px;font-size:22px;content:'🌳';pointer-events:none}.camera-stage[data-venue=outdoor]:after{content:'🌙'}.camera-stage[data-venue=ice]:after{content:'❄️'}@keyframes town-walk{0%,100%{left:49%;top:57%}25%{left:59%;top:64%}50%{left:67%;top:76%}75%{left:54%;top:70%}}@keyframes walking-foot{to{transform:translateY(-4px)}}@keyframes gentle-rain{to{background-position:-75px 40px}}@media(max-width:600px){.life-panel{padding:16px 12px}.life-cards{grid-template-columns:1fr}.furniture-catalog{grid-template-columns:1fr 1fr}.furniture-catalog article{padding:10px}.furniture-catalog button{font-size:12px;padding:10px}.map-walkers .town-friend{width:11%}.shop-host .avatar{width:70px}.shop-host{gap:8px}}@media(prefers-reduced-motion:reduce){.map-walkers .town-friend,.map-walkers .foot,.town-map[data-weather=rain]:after{animation:none}.map-walkers .town-friend:nth-child(2){left:59%;top:64%}.map-walkers .town-friend:nth-child(3){left:67%;top:76%}}
.purchase-receipt{position:fixed;z-index:110;left:50%;top:22%;transform:translateX(-50%);width:min(300px,85vw);display:grid;justify-items:center;gap:8px;padding:20px 35px;background:#fffaf0;border:3px solid #e9b6d0;border-radius:28px;box-shadow:0 12px 40px #71556d33;pointer-events:none;animation:receipt-in .25s ease-out}.purchase-item{font-size:42px;position:absolute;top:5px;animation:into-bag .85s ease-in forwards}.purchase-bag{font-size:65px;margin-top:22px;animation:bag-bounce .5s .7s ease-in-out}.purchase-receipt strong{color:#986581;font-size:18px;text-align:center}.purchase-receipt small{color:#927f82}.purchase-receipt button{position:absolute;right:8px;top:8px;border:0;background:#f8e8f0;border-radius:50%;width:32px;height:32px;font-size:23px;pointer-events:auto}.food-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.camera-stage[data-venue=beach]{background:linear-gradient(#bde9f2 0 42%,#64c9d6 43% 69%,#f3dab0 70%)}.camera-stage[data-venue=beach] .stage-floor{background:linear-gradient(#f9e8c2,#e8c68e);border-color:#ffefce}.camera-stage[data-venue=beach]:after{content:'🐚';position:absolute;bottom:18%;left:5%;font-size:38px;pointer-events:none}.camera-stage[data-venue=beach]:before{content:'';position:absolute;top:53%;left:-10%;width:120%;height:15%;border-bottom:7px solid #efffffaa;border-radius:50%;animation:seaside-wave 7s ease-in-out infinite alternate;pointer-events:none}.camera-stage[data-venue=cloud]{background:radial-gradient(ellipse at 10% 30%,#fff5fa 0 13%,transparent 14%),radial-gradient(ellipse at 83% 35%,#fff9ff 0 19%,transparent 20%),linear-gradient(#b7cff1,#e7d5ed 65%,#fff0ec)}.camera-stage[data-venue=cloud] .stage-floor{background:radial-gradient(ellipse at 25% 15%,#fff 0 30%,transparent 31%),linear-gradient(#fff5fb,#e4d9f1);border-radius:50% 50% 0 0;border-color:#fff}.camera-stage[data-venue=cloud]:after{content:'🌈';position:absolute;left:5%;top:10%;font-size:38px;pointer-events:none}@keyframes into-bag{0%{transform:translateY(-25px) scale(1);opacity:1}70%{opacity:1}100%{transform:translateY(55px) scale(.4);opacity:0}}@keyframes bag-bounce{50%{transform:translateY(-7px) rotate(-6deg)}}@keyframes receipt-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes seaside-wave{to{transform:translateY(8px) scaleX(1.1)}}@media(max-width:600px){.food-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-receipt{top:18%}}@media(prefers-reduced-motion:reduce){.purchase-receipt,.purchase-item,.purchase-bag,.camera-stage[data-venue=beach]:before{animation:none}.purchase-item{position:static;font-size:30px}.purchase-bag{margin:0;font-size:40px}}
/* Child-facing screens: visible choices, bounded lists, no long catalogues. */
[hidden]{display:none!important}.app{height:100dvh;min-height:0;margin:0 auto;padding:8px 12px;display:flex;flex-direction:column;gap:5px;box-sizing:border-box}header{flex:0 0 auto;min-height:46px;margin:0;padding:0}.brand .game-logo{height:48px;width:150px}#nav{flex:0 0 auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0}#nav button{min-height:44px;padding:6px 3px;font-size:12px;white-space:normal}#view{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}footer{flex:0 0 auto;font-size:10px;padding:2px;margin:0}.panel,.life-panel{margin:0;padding:12px;border-radius:22px}.scene-tabs{display:flex;gap:5px;margin:0 0 8px;flex-shrink:0}.scene-tab{flex:1;min-height:44px;border:2px solid #e8d7df;border-radius:16px;background:#fff9f0;color:#826477;font:inherit;font-size:13px;padding:6px}.scene-tab[aria-pressed=true]{background:#f7dfed;border-color:#bc88ab}.screen-pane h2,.pane-title{font-size:17px;margin:4px 0}.page-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:8px 0}.page-controls button{min-width:64px;min-height:44px;padding:4px}.page-label{min-width:45px;text-align:center}.shop-heading h1{font-size:22px;margin:2px}.shop-heading>p{display:none}.food-grid,.furniture-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:8px 0}.food-card,.furniture-catalog article{padding:8px}.food-card h2,.furniture-catalog h3{font-size:15px;margin:3px}.food-card p{font-size:11px;margin:3px}.food-plate{height:48px!important;min-height:0!important;margin:0!important}.food-plate>span{font-size:35px!important}.food-card button,.furniture-catalog button{min-height:40px;padding:7px 10px;font-size:13px}.furniture-swatch{height:60px}.life-panel .shop-host{display:none}.shop-panel .life-panel{border:0;background:transparent;padding:4px}.wardrobe-shop h2{font-size:18px;margin:4px}.wardrobe-shop p,.wardrobe-shop h3{font-size:12px;margin:4px}.wardrobe-shop .avatar{height:80px;width:100px;margin:auto}.home-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin:6px 0}.home-tabs button{min-height:40px;font-size:12px;padding:4px 1px}#action-message{font-size:12px;min-height:18px;margin:6px 0}.storybook-home{padding:8px}.storybook-home>h1{font-size:20px;padding:2px;margin:2px auto}.storybook-home .home-content{display:grid;grid-template-columns:minmax(110px,.75fr) minmax(190px,1.25fr);align-items:stretch;gap:8px}.storybook-home .home-preview.object-room{min-width:0;min-height:260px;padding:50px 2px 3px;border-width:3px;border-radius:45px 45px 18px 18px;max-width:none}.storybook-home .object-room .avatar{width:110px;height:135px}.storybook-home .home-options{padding:8px;min-width:0;width:auto;max-width:none;border-width:2px;border-radius:18px}.home-options .scene-tabs{display:grid;grid-template-columns:1fr 1fr}.home-options .scene-tab{font-size:12px;padding:4px}.home-options .home-play{display:flex;gap:4px;margin:6px 0}.home-play button{font-size:11px;padding:6px;min-height:42px}.meal-buttons{display:grid;grid-template-columns:1fr 1fr;gap:5px}.meal-buttons button{min-height:48px;font-size:13px;padding:6px}.home-options .outfit-buttons{display:grid;grid-template-columns:1fr 1fr;gap:5px}.outfit-buttons button{min-height:46px;padding:5px}.furniture-slots{grid-template-columns:1fr;gap:5px;margin:6px 0}.furniture-slots label{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;font-size:11px;gap:4px}.furniture-slots select{min-width:0;min-height:36px;padding:5px;font-size:12px}.home-options .primary,.home-options .secondary{font-size:12px;padding:8px}.home-preview h2{font-size:14px!important}.home-preview>p{font-size:10px!important}.object-wall{font-size:40px;right:8%}.object-tabletop{font-size:28px}.object-cabinet span{font-size:23px}.dance-cue{font-size:35px;padding:5px}.dance-pads{gap:4px}.dance-pads button{font-size:25px;min-width:0;flex:1;min-height:44px;padding:5px}.map-town{padding:0}.welcome{padding:0!important;margin:0!important}.welcome h1{font-size:20px;margin:2px}.welcome p{font-size:12px;margin:3px}.storybook-map{max-height:calc(100dvh - 225px);width:100%;aspect-ratio:3/2;margin:5px auto}.town-art{height:100%;width:100%;object-fit:fill}.town-map .destination-label{font-size:clamp(12px,2vw,20px)}.life-cards{grid-template-columns:1fr 1fr;gap:6px}.life-cards article{padding:10px}.life-cards h3{font-size:14px;margin:4px}.life-cards p{font-size:11px;margin:5px}.life-cards button{font-size:12px;min-height:40px;padding:5px}.visit-card{margin-top:8px;padding:8px}.visit-card>p,.visit-card>small{display:none}.visit-card>div{display:grid;grid-template-columns:1fr 1fr;margin:6px 0;gap:5px}.visit-stop{padding:6px}.visit-stop>span{font-size:18px}.friend-grid{gap:6px}.friend-card{padding:6px}.friend-card .avatar{height:100px}.friend-card b{font-size:13px}.friend-card small{font-size:11px}.song-list{gap:7px}.song-card{padding:10px!important;min-height:70px!important}.venue-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.venue-options button{min-width:0;min-height:92px;padding:8px;font-size:13px}.venue-options button>span{font-size:25px}.venue-options small{font-size:10px}.song-picker h1,.panel>h1{font-size:21px;margin:5px 0}.panel>p{font-size:12px;margin:6px 0}.selection-bottom{margin:8px 0}.theme-options{display:grid;grid-template-columns:1fr}.theme-options button{min-height:70px}.camera-stage{height:clamp(200px,43dvh,430px)}body[data-scene=concert] .life-panel{padding:5px;text-align:center;border:0;background:none}.keyboard-area{margin:5px 0}.keys{height:clamp(95px,19dvh,160px)}.hint{font-size:10px;margin:3px}.concert-progress{margin:5px}.screen-pane>p{font-size:12px}.room-window{border-width:5px}.home-options #action-message{font-size:10px}.world-label{display:none}@media(min-width:850px){.food-grid,.furniture-catalog{grid-template-columns:repeat(4,minmax(0,1fr))}.food-plate{height:85px!important}.food-plate>span{font-size:50px!important}.furniture-swatch{height:115px}.storybook-home .home-content{grid-template-columns:1fr 1fr}.storybook-home .object-room .avatar{width:200px;height:220px}.home-options .scene-tabs{display:flex}.home-options .furniture-slots{gap:10px}.venue-options{grid-template-columns:repeat(3,minmax(0,1fr))}.life-cards{grid-template-columns:1fr 1fr}.storybook-map{max-height:calc(100dvh - 240px);width:auto;max-width:100%;margin:auto}.friend-card .avatar{height:140px}}@media(max-width:380px){.app{padding:5px}.brand .game-logo{width:105px;height:42px}.tools{gap:2px}#language{padding:6px;font-size:11px}#nav button{font-size:10px}.storybook-home .home-content{grid-template-columns:95px minmax(0,1fr)}.storybook-home .object-room .avatar{width:90px;height:110px}.home-tabs button{font-size:10px}.home-options{padding:5px!important}.scene-tab{font-size:11px}.life-cards{grid-template-columns:1fr 1fr}}@media(max-height:500px){.app{height:auto;min-height:100dvh}#view{overflow:visible}.brand .game-logo{height:36px}.camera-stage{height:190px}}
.custom-furniture{background:none!important;border:0!important;box-shadow:none!important}.custom-furniture:after{display:none}.custom-furniture img{width:100%;height:100%;object-fit:contain}.food-art{height:45px;width:60px;object-fit:contain}.camera-stage{background-size:cover;background-position:center}#push-settings{padding:16px;background:#edf3f0;border-radius:18px;margin:18px 0}#push-settings button{margin:5px}
/* Compact-height adjustments keep primary actions above the fold. */
.shop-panel #go-home{display:none}.shop-panel .food-card{min-height:0!important}.shop-panel .food-plate{padding:0!important}.shop-panel .life-panel>h2{margin:3px;font-size:17px}.shop-panel .life-panel>p{font-size:11px}.home-options .home-play{display:grid;grid-template-columns:1fr 1fr}.home-options .home-play button{min-width:0;margin:0}.wardrobe-shop>p{display:none}.wardrobe-shop .food-grid{margin:4px 0}.food-card .primary{margin:0}.shop-panel .furniture-catalog article{min-height:0}.shop-panel .food-card h2{font-size:14px}.shop-panel .food-card .avatar{height:65px}@media(max-height:740px){.shop-heading{display:none}.life-cards article{padding:6px}.visit-card h2{font-size:14px}.visit-stop small{display:none}.storybook-home .home-preview.object-room{min-height:210px}.home-options .furniture-slots label{grid-template-columns:1fr 1.1fr}.furniture-slots{gap:2px}.furniture-slots select{min-height:34px}.home-options .scene-tabs{margin-bottom:3px}.home-options .pane-title{font-size:14px}.home-options #action-message{margin:2px 0;min-height:12px}.friend-card .avatar{height:70px}.friend-card small{display:none}.selection-bottom{margin:3px 0}.selection-bottom p{margin:3px}.friend-grid{margin:5px 0}.panel>p{margin:3px}.sound-flowers{gap:4px;margin:8px 0}.sound-flower{min-height:65px!important;height:65px!important}.sound-flower span{font-size:28px!important}.garden-scene{padding:8px!important;min-height:0!important}.garden-actions{margin:5px!important}.echo-play{gap:6px;margin:5px 0}.garden-panel>p{font-size:11px}.sound-garden{padding:10px!important}.sound-garden h1{margin:3px;font-size:20px}.sound-garden>p{margin:4px;font-size:11px}}
.storybook-shop{min-height:0;padding:10px;display:block}.storybook-shop .food-grid{margin:6px 0;gap:8px}.storybook-shop #action-message{margin:6px 0;padding:5px 9px}.storybook-shop .food-card h2{padding:3px 8px}.storybook-shop .food-card p{margin:3px;padding:3px 6px}.storybook-shop .food-card .primary{padding:8px 10px;min-height:40px}.storybook-shop .scene-tabs{width:100%}@media(max-height:740px){.friend-card .avatar{height:50px}.music-garden{padding:9px}.music-garden .hint{margin:2px}.music-garden .garden-friend .avatar{height:90px}}
.panel{min-height:0}.memory-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.memory-card{padding:10px}.memory-card .avatar{height:110px}.memory-card h2{font-size:14px}.memory-card p{font-size:11px}@media(max-height:740px){.memory-card .avatar{height:80px}.result .celebrate{font-size:40px}.result-friends .avatar{height:105px}.result .reward{font-size:24px}}
@media(max-height:740px){.camera-stage{height:clamp(180px,38dvh,300px)}}
/* Room coordinates are relative to one floor plane, not a tall side column. */
.storybook-home .home-content{display:flex;flex-direction:column;gap:6px}.storybook-home .home-preview.object-room{position:relative;min-height:0!important;padding:0!important;max-width:640px;width:100%;border:0;background:none;border-radius:0;overflow:visible}.object-room:before{display:none}.object-room .room-stage{position:relative;isolation:isolate;width:100%;aspect-ratio:1.9;max-height:240px;overflow:hidden;border:4px solid #fff6ec;border-radius:30px 30px 15px 15px;background:repeating-linear-gradient(90deg,#f7e7db 0 30px,#f1ddd4 31px 33px)}.room-stage:before{content:'';position:absolute;z-index:0;inset:53% 0 0;background:repeating-linear-gradient(0deg,#dcbaa0 0 24px,#d1ab8d 25px 27px);border-top:5px solid #cca78e}.room-stage .room-objects{z-index:1;pointer-events:none}.room-stage #touch-friend{position:absolute;z-index:5;left:46%;bottom:12%;width:28%;height:auto;margin:0;padding:0;transform:translateX(-50%);border:0;background:none;line-height:0}.storybook-home .room-stage .friend-touch .avatar{width:100%;height:auto;aspect-ratio:320/330;margin:0}.room-stage .friend{display:block;width:100%;height:100%}.object-room>h2{position:absolute!important;top:5px;left:12px;z-index:8;font-size:12px!important;margin:0!important;padding:3px 8px!important}.object-room>p{display:none!important}.room-stage .room-window{left:10%;top:9%;width:22%;height:34%;border-width:5px;box-shadow:0 0 0 2px #d4ad98}.room-stage .room-window span{font-size:18px;margin-top:8px}.room-stage .object-floor{left:27%;bottom:7%;width:48%;height:21%;border-width:3px;z-index:1;transform:none}.room-stage .object-table{left:7%;bottom:23%;width:23%;height:10%;border-width:3px;z-index:4}.room-stage .object-table:after{height:24px;border-width:5px}.room-stage .object-tabletop{left:13%;bottom:34%;font-size:clamp(20px,6vw,32px);z-index:5}.room-stage .object-wall{right:12%;top:13%;font-size:40px;z-index:2}.room-stage .object-cabinet{right:7%;bottom:25%;width:18%;height:22%;border-width:3px;z-index:3}.room-stage .object-cabinet span{font-size:22px;top:-18px}.room-stage .object-chair{left:7%;bottom:8%;font-size:36px;z-index:4}.room-stage .object-sofa{left:34%;bottom:39%;font-size:42px;z-index:2}.room-stage .object-bed{right:3%;bottom:7%;font-size:42px;z-index:4}.room-stage .object-plant{left:2%;bottom:43%;font-size:28px;z-index:2}.room-stage .object-light{left:49%;top:4%;font-size:26px;z-index:2}.room-stage .object-window{left:10%;top:10%;font-size:45px;z-index:3}.room-stage .object-toy{left:63%;bottom:9%;font-size:24px;z-index:5}.room-stage .object-music{right:1%;bottom:45%;font-size:32px;z-index:3}.room-object{filter:hue-rotate(var(--furniture-hue,0deg))}.custom-furniture{filter:none}.storybook-home .home-options{width:100%;max-width:640px;padding:7px!important}.home-options .scene-tabs{display:flex;gap:4px}.home-options .scene-tab{font-size:12px;min-height:40px}.home-options .home-play{display:flex;margin:4px 0;gap:6px}.home-options .home-play button{flex:1;min-height:36px}.home-options .meal-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.home-options .meal-buttons button{font-size:11px;min-height:44px;padding:4px}.home-options .furniture-slots{display:grid;grid-template-columns:1fr;gap:4px;margin:4px 0}.home-options .furniture-slots label{grid-template-columns:1fr 1.5fr}.home-options .page-controls{margin:3px 0;gap:12px}.home-options .page-controls button{min-height:36px}.home-options .pane-title{font-size:14px;margin:2px}.home-options .outfit-buttons{grid-template-columns:repeat(3,1fr)}.home-options #action-message{margin:3px;min-height:12px}.furniture-swatch .object-chair,.furniture-swatch .object-sofa,.furniture-swatch .object-bed,.furniture-swatch .object-plant,.furniture-swatch .object-light,.furniture-swatch .object-window,.furniture-swatch .object-toy,.furniture-swatch .object-music{font-size:42px;top:2%;bottom:auto;text-align:center}.storybook-home>h1{display:none}.storybook-home .home-tabs{margin:0 0 5px}.storybook-home{padding:6px}@media(min-width:900px) and (min-height:740px){.storybook-home .home-content{display:grid;grid-template-columns:1.2fr 1fr;align-items:center}.object-room .room-stage{aspect-ratio:1.5;max-height:400px}.home-options .meal-buttons{grid-template-columns:1fr 1fr}}@media(max-height:740px){.object-room .room-stage{aspect-ratio:2.2;max-height:170px}.home-options .scene-tabs{margin:0 0 3px}.home-options .meal-buttons button{min-height:40px}.home-options .furniture-slots select{min-height:30px}.storybook-home .home-tabs button{min-height:36px}.home-options #furniture-store{display:none}}@media(orientation:landscape) and (max-height:550px){.storybook-home .home-content{display:grid;grid-template-columns:1fr 1fr;align-items:start}.object-room .room-stage{aspect-ratio:1.8;max-height:200px}.app{height:auto;min-height:100dvh}}
.room-stage .object-floor span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:20px;line-height:1}.catalog-filter{display:flex;gap:8px;justify-content:center;align-items:center;font-size:12px;margin:7px 0}.catalog-filter select{min-width:0;max-width:190px;padding:7px;border-radius:12px;border:1px solid #dcb8cf;background:#fffaf4;font:inherit;min-height:40px}
.room-stage .object-chair,.room-stage .object-bed,.room-stage .object-sofa,.room-stage .object-plant,.room-stage .object-light,.room-stage .object-window,.room-stage .object-toy,.room-stage .object-music,.room-stage .object-tabletop{line-height:1}.room-stage .object-chair{left:1%;bottom:4%;font-size:32px}.room-stage .object-tabletop{bottom:32%}.room-stage .object-bed{right:2%;bottom:4%}
.adventure-tools{display:flex;justify-content:center;gap:8px;height:40px;margin:2px}.adventure-tools button{min-height:36px;padding:3px 15px;font-size:22px}.adventure-dialog{width:min(510px,90vw);max-height:86dvh;overflow:auto;border:3px solid #e8b8d3;border-radius:24px;background:#fff7ed;padding:16px;color:#72556e}.adventure-dialog::backdrop{background:#51446e80}.adventure-dialog h2{font-size:20px;margin:10px}.adventure-dialog button{margin:4px;min-height:42px}.adventure-grid,.more-activities-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.more-activities-grid button{min-height:64px;font-weight:800}.adventure-dialog section{background:#fff;border-radius:14px;padding:3px;margin:5px}.adventure-dialog section h3{font-size:15px;margin:4px}.friend-portrait,.purchase-preview>.avatar{width:130px;margin:auto}.adventure-toast{position:fixed;bottom:18%;left:50%;translate:-50%;background:#fff2d5;border:2px solid #dda8c7;border-radius:20px;padding:16px;z-index:10000;max-width:85%;text-align:center}.photo-preview{position:relative;background:#f9edda;border:10px solid #fff;border-radius:14px;overflow:hidden;pointer-events:none}.photo-preview>.town-map{width:100%;margin:0}.photo-preview>.room-stage{width:100%}.photo-preview *{animation-play-state:paused!important}.photo-preview[data-frame=flower]{border-color:#efbace}.photo-preview[data-frame=music]{border-color:#b8d6ef}.photo-preview[data-frame=ribbon]{border-color:#ceb8e7}.photo-preview[data-frame=heart]{border-color:#ee93bd}.photo-preview[data-frame]:after{content:'♫ ♡ ✿';position:absolute;bottom:0;left:20%;font-size:22px;color:#bb5685}.photo-preview[data-pose=wave] .arm-right{transform:rotate(-40deg)}.photo-preview[data-pose=hug] .arm-left{transform:rotate(-25deg)}.photo-preview[data-pose=dance] .avatar{transform:rotate(10deg)}.saved-photo{width:100%;border-radius:12px}.purchase-preview .room-stage{background:#f8e9da}.quest-current{box-shadow:0 0 0 4px #e3b1cd;font-size:32px}.adventure-pointer{position:fixed;z-index:100;font-size:42px;pointer-events:none;animation:guide-bob 1s infinite}.discovery-particle{position:fixed;top:50%;font-size:32px;z-index:10001;pointer-events:none;animation:discovery-rise 2.5s both}@keyframes discovery-rise{to{transform:translateY(-45vh) rotate(60deg);opacity:0}}.furniture-effect{position:absolute;top:10%;left:30%;font-size:32px;animation:guide-bob .6s infinite}#touch-friend[data-motion=sit]{transform:translateY(8%) scaleY(.85)}#touch-friend[data-motion=sleep]{transform:rotate(65deg) scale(.8)}#touch-friend[data-motion=pose],#touch-friend[data-motion=music]{animation:guide-bob .5s infinite}@media(max-width:600px){.adventure-dialog{padding:10px}.adventure-dialog button{font-size:14px}.adventure-tools{height:34px}.adventure-tools button{min-height:30px;font-size:19px;padding:1px 12px}body[data-scene=home] .room-stage{max-height:24dvh}}
.capture-ui-toggle{width:44px;min-height:42px;border:2px solid #dcc3d7;border-radius:12px;background:#fff9f1;display:grid;place-items:center;font-size:18px;cursor:pointer}.capture-ui-toggle input{position:absolute;opacity:0;pointer-events:none}.capture-ui-toggle:has(input:checked){background:#f3d6e8;box-shadow:0 0 0 3px #fff inset}.ensemble-mission{display:grid;gap:6px;margin:10px auto 16px;padding:12px;max-width:520px;border:2px solid #d8bfdf;border-radius:18px;background:#fff9e9}.ensemble-mission strong{color:#795b89}.ensemble-mission span{font-weight:700}.ensemble-mission small{color:#766b75}.ensemble-mission.is-complete{background:#fff2c9;border-color:#e5c36a}.ensemble-mission-summary{grid-template-columns:minmax(0,1fr) auto;align-items:center;text-align:left}.ensemble-mission-summary>span,.ensemble-mission-summary>small{grid-column:1}.ensemble-mission-summary>button{grid-column:2;grid-row:1/3;min-height:44px}.ensemble-mission-dialog{width:min(560px,90vw);max-height:86dvh;overflow:auto;border:3px solid #d8bfdf;border-radius:24px;background:#fff9e9;padding:18px;color:#72556e;text-align:center}.ensemble-mission-dialog::backdrop{background:#51446e80}.ensemble-mission-dialog h2{margin:8px}.ensemble-mission-dialog>p{font-weight:700}.ensemble-goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.ensemble-goals small{padding:8px;border-radius:10px;background:#fff;color:#725f73;text-align:left}.ensemble-goals small.done{background:#e7f4df;color:#477348}.room-view-controls,.room-edit-controls{display:contents}body[data-scene=home]:not([data-home-pane=decor]) .room-edit-controls{display:none}@media(max-width:430px){.ensemble-goals{grid-template-columns:1fr}.ensemble-mission-summary{grid-template-columns:1fr;text-align:center}.ensemble-mission-summary>button{grid-column:1;grid-row:auto}}
.ensemble-counts{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:6px auto}.ensemble-counts span{padding:7px 13px;border:2px solid #ddc8df;border-radius:999px;background:#fffaf1;font-size:13px;font-weight:800}.ensemble-friend-step{border-color:#e3bdcf;background:#fff1f5}.ensemble-stage-step{border-color:#c9bddf;background:#f6f0ff}.ensemble-mission-summary>small{font-weight:700}.ensemble-mission-summary:has(>small)>button{grid-row:1/4}
.world-quest-layer{position:absolute;inset:0;pointer-events:none;z-index:7;overflow:hidden}.world-quest-marker{position:absolute;translate:-50% -100%;pointer-events:auto;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;border:3px solid #fff8dc;background:#f3cf64;color:#684d62;font-size:27px;font-weight:900;line-height:1;box-shadow:0 4px 0 #bd9252,0 5px 16px #5b466055;animation:quest-marker-bob 1.35s ease-in-out infinite}.world-quest-marker.is-active{background:#bcdbe3;box-shadow:0 4px 0 #739bab,0 5px 16px #5b466055}.world-quest-marker.is-ready{background:#f1a9c6;box-shadow:0 4px 0 #bd6f91,0 0 0 5px #fff4b8,0 5px 16px #5b466055}.current-quests-button{position:relative}.current-quests-button:not([data-count="0"])::after{content:attr(data-count);position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;border-radius:9px;background:#d86f9d;color:white;font:bold 11px/18px system-ui}.quest-summary{padding:9px 12px;border-radius:14px;background:#f6e3a7;font-weight:800;text-align:center}.quest-card{padding:12px!important;border:2px solid #ead7c3}.quest-card.quest-ready{border-color:#ec96b9;background:#fff8ce}.quest-card p{margin:7px}.quest-progress{font-weight:900;color:#a35c82}.quest-pause{font-size:12px;opacity:.78}.quest-complete-celebration{position:fixed;z-index:10020;left:50%;top:50%;translate:-50% -50%;width:min(360px,82vw);padding:24px;border:4px solid #fff2a8;border-radius:26px;background:#fff9df;color:#704d68;text-align:center;box-shadow:0 18px 70px #5c3a6b66;animation:quest-pop 2.5s both}.quest-complete-celebration>*{display:block;margin:8px}.quest-complete-celebration strong{font-size:24px}.quest-complete-celebration b{font-size:21px;color:#b36b29}@keyframes quest-marker-bob{50%{translate:-50% calc(-100% - 7px)}}@keyframes quest-pop{0%{opacity:0;scale:.65}12%,82%{opacity:1;scale:1}100%{opacity:0;scale:1.06}}
.meal-spoon:after{content:'🥄';position:absolute;left:60%;top:25%}.meal-drink{animation:drink-tilt 1s infinite!important}@keyframes drink-tilt{50%{transform:translateY(-12px) rotate(-25deg)}}.photo-preview[data-pose=wave] .arm.right{transform:rotate(-40deg);transform-origin:230px 195px}.photo-preview[data-pose=hug] .arm.left{transform:rotate(-25deg);transform-origin:90px 195px}.earned-photo-frame{position:absolute;right:15%;top:13%;padding:6px;background:#fff2cb;border:3px solid #d9a8c4;border-radius:8px}.bond-wave .arm.right{animation:friend-wave 1.6s 1;transform-origin:230px 195px}@keyframes friend-wave{30%,70%{transform:rotate(-50deg)}50%{transform:rotate(-25deg)}}[data-bond=happy] .happy .face{transform:scaleY(.95)}[data-bond=dance] .dancing{animation:bond-dance .6s infinite alternate}@keyframes bond-dance{to{transform:rotate(12deg) translateY(-6px)}}
@media(max-height:740px){body[data-scene=town] .visit-card{padding:5px;margin:4px 0}body[data-scene=album] .panel{padding-top:8px;padding-bottom:8px}body[data-scene=album] .panel>p{margin:4px}body[data-scene=album] .memory-card{padding:8px}body[data-scene=album] .memory-grid{gap:6px}}
@media(max-height:740px){body[data-scene=town] .visit-card{margin:0;padding:3px}body[data-scene=album] .memory-card .avatar{max-height:90px}body[data-scene=album] .memory-card h2{margin:4px;font-size:16px}body[data-scene=album] .memory-card p{margin:3px;font-size:12px}body[data-scene=album] .memory-stamps{margin:4px}}
@media(max-height:740px){body[data-scene=album] .memory-card>span{font-size:32px}body[data-scene=album] .memory-grid{margin:6px 0}body[data-scene=album] .memory-stamps span{font-size:24px;padding:5px}body[data-scene=album] .memory-album>h1{margin:6px 0;font-size:21px}}
/* Short, wide phones use a side navigation so the play area keeps its height. */
@media (orientation:landscape) and (max-height:600px){
 html,body{height:100%;overflow:hidden}
 .app{width:100%;max-width:none;height:100dvh;min-height:0;display:grid;grid-template-columns:90px minmax(0,1fr);grid-template-rows:40px minmax(0,1fr);gap:5px;padding:5px max(8px,env(safe-area-inset-right)) 5px max(8px,env(safe-area-inset-left));box-sizing:border-box}
 header{grid-column:1/-1;min-height:0;height:40px}.brand .game-logo{width:105px;height:36px}.tools{gap:7px}.tools .round{height:36px;width:36px}.coin{padding:5px 10px}#language{min-height:36px;padding:4px 10px}
 #nav{grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));gap:4px;min-height:0}#nav button{min-height:0;font-size:12px;padding:3px;border-radius:14px}
 #view{grid-column:2;grid-row:2;position:relative;min-width:0;min-height:0;overflow:auto}footer{display:none}
 #view:has(>.adventure-tools){padding-right:52px}.adventure-tools{position:absolute;right:0;top:2px;display:flex;flex-direction:column;width:46px;height:auto;margin:0;gap:6px}.adventure-tools button{width:44px;min-height:42px;padding:3px;font-size:21px}
 .scene-tabs{margin:0 0 5px;gap:5px}.scene-tab{min-height:40px;padding:4px;font-size:13px}.panel,.life-panel{padding:7px}.panel>h1{font-size:18px;margin:3px}.panel>p{margin:3px;font-size:11px}
 .theme-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.theme-options button{min-width:0;min-height:120px;padding:12px;font-size:22px}.theme-options small{font-size:14px}.screen-pane>h2{font-size:17px;margin:5px}
 .welcome{display:none}.storybook-map{height:calc(100dvh - 108px);max-height:none;width:auto;max-width:100%;aspect-ratio:3/2;margin:auto}.town-art{object-fit:contain}.town-map .destination-label{font-size:15px}
 .life-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.life-cards article{padding:5px}.visit-card{padding:4px;margin:4px 0}.visit-card>div{grid-template-columns:repeat(4,minmax(0,1fr));margin:3px 0}.visit-stop{padding:4px}.visit-card h2{margin:2px}
 .storybook-home .home-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);align-items:center;gap:8px}.storybook-home .home-preview.object-room{width:100%;max-width:none}.storybook-home .room-stage{max-height:none!important;height:auto;aspect-ratio:1.7}.home-options .scene-tab{min-height:36px}.home-options .meal-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.home-options .page-controls{margin:2px}.home-options .home-play button{min-height:36px}.home-options #action-message{font-size:10px}.storybook-home .home-tabs button{min-height:34px}
 .food-grid,.furniture-catalog{grid-template-columns:repeat(2,minmax(0,1fr));margin:4px 0}.food-plate{height:38px!important}.food-plate>span{font-size:30px!important}.furniture-swatch{height:48px}.catalog-filter{margin:3px}.catalog-filter select{min-height:34px;padding:4px}.shop-panel .page-controls{margin:4px}.shop-panel .page-controls button{min-height:36px}.shop-panel #action-message{margin:2px;padding:2px}.wardrobe-shop .home-tabs{margin:3px 0}.shop-panel .food-card .avatar{height:48px}
 .friend-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:4px 0}.friend-card .avatar{height:70px}.friend-card{min-width:0;padding:4px}.friend-card b{font-size:12px}.selection-bottom{display:flex;justify-content:center;align-items:center;gap:12px}.song-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.song-card{width:auto;min-width:0}.venue-options{grid-template-columns:repeat(3,minmax(0,1fr))}.venue-options button{min-height:75px}.venue-options button>span{font-size:22px}
 .camera-stage{height:calc(100dvh - 174px);min-height:125px}.keys{height:72px}.concert-progress{margin:2px}.keyboard-area{margin:2px}.keyboard-area .hint{display:none}.live-message{font-size:12px}.camera-stage .performers .avatar{max-height:115px}.screen-caption{font-size:8px!important}
 .memory-grid{margin:4px;gap:5px}.memory-card{padding:5px}.memory-card>span{font-size:25px}.memory-card .avatar{height:65px}.memory-stamps{margin:3px}.memory-stamps span{font-size:19px;padding:3px}.memory-card h2{margin:3px;font-size:13px}.memory-card p{margin:2px}.memory-album>p{display:none}.memory-album .page-controls{margin:3px}.result .celebrate{display:none}.result-friends .avatar{height:80px}.result .reward{margin:4px;font-size:22px}.result-actions{margin:4px}
 .adventure-dialog{max-height:calc(100dvh - 20px);padding:8px;width:min(650px,85vw)}.adventure-dialog h2{margin:5px}.photo-preview{max-height:calc(100dvh - 150px)}.photo-preview>.town-map{height:calc(100dvh - 175px);width:auto}.friend-portrait{width:85px}
}
@media (orientation:portrait) and (max-width:480px){
 #nav button{font-size:11px;min-height:44px}.theme-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.theme-options button{min-width:0;padding:9px 3px;font-size:16px}.theme-options small{font-size:11px}
}
@media (orientation:landscape) and (max-height:600px){
 .storybook-map{height:calc(100dvh - 136px)}
 body[data-scene=town] .visit-card h2{font-size:12px;margin:0}.visit-stop strong{font-size:11px}.visit-card .visit-stop>span{font-size:15px}.visit-card>div{margin:0}
 .shop-panel .life-panel>h2{display:none}.shop-panel .furniture-catalog article{padding:4px}.shop-panel .furniture-catalog h3{margin:2px}.shop-panel .furniture-swatch{height:32px}.catalog-filter{margin:0}.shop-panel .food-card h2{padding:0}.shop-panel .food-card p{padding:0}.shop-panel .food-card .avatar{height:38px}.wardrobe-shop h2,.wardrobe-shop h3{display:none}
 .home-options .furniture-slots{gap:1px}.home-options .furniture-slots select{min-height:28px}.home-options .page-controls button{min-height:32px}.home-options .home-play{margin:2px}.home-options .meal-buttons button{min-height:36px}
 .music-garden{display:grid;grid-template-columns:110px minmax(0,1fr);gap:3px 8px;align-items:center}.music-garden>h1{grid-column:1/-1}.music-garden>p:not(#garden-message){display:none}.music-garden .garden-friend{grid-column:1;grid-row:2/5;margin:0}.music-garden .garden-friend .avatar{height:100px;width:100px}.sound-flowers{grid-column:2;display:flex;flex-wrap:nowrap;margin:3px 0;gap:5px}.sound-flower{min-width:0;flex:1;padding:4px!important;height:65px!important;min-height:65px!important}.echo-play{grid-column:2;margin:3px 0}.garden-actions{grid-column:2;margin:3px!important;display:flex;gap:6px}.garden-actions button{min-height:40px;padding:6px 12px;font-size:12px}#garden-message{grid-column:2;font-size:12px}
 body[data-scene=album] .memory-card{min-height:0;padding:5px}body[data-scene=album] .memory-card>span{font-size:25px}body[data-scene=album] .memory-stamps span{font-size:17px;padding:3px}body[data-scene=album] .memory-stamps{margin:2px}body[data-scene=album] .memory-card h2{font-size:13px;margin:2px}body[data-scene=album] .memory-card p{font-size:10px;margin:2px}.memory-album #album-home{min-height:40px;padding:7px 16px}.memory-album .memory-grid{margin:3px}
}
@media (orientation:landscape) and (max-height:380px){
 body[data-scene=town] .screen-pane:has(.life-cards){display:grid;grid-template-columns:1.2fr 1fr;gap:6px;align-items:start}body[data-scene=town] .screen-pane:has(.life-cards)>h2{grid-column:1/-1}.life-cards{grid-template-columns:1fr 1fr}.visit-card>div{grid-template-columns:1fr 1fr}.visit-card{margin:0!important}
 .shop-panel .furniture-swatch{height:24px}.storybook-home .home-content{align-items:start}.home-options .pane-title{display:none}.home-options #action-message{line-height:1.2;min-height:0}.home-options .home-play{margin:0}.home-options .furniture-slots{margin:1px 0}.home-options .scene-tabs{margin:0}.home-options .furniture-slots label{font-size:10px}
 body[data-scene=album] .memory-card>p{display:none}body[data-scene=album] .memory-album{padding:4px}body[data-scene=album] .memory-album>h1{font-size:17px;margin:2px}.memory-stamps small{font-size:9px}.memory-album .page-controls button{min-height:36px}.memory-card>span{line-height:1}
}
@media (orientation:landscape) and (max-height:600px){
 body[data-scene=concert] #view>.life-panel{position:absolute;right:8px;top:5px;z-index:12;margin:0;padding:0;background:none;border:0}body[data-scene=concert] #perform-dance{min-height:40px;padding:6px 10px;font-size:12px;background:#9c7dcbe8}.keyboard-area{padding:0 8px}.keys .key{height:72px;min-height:0}.keys .black-key{height:45px}.camera-stage .performers{bottom:35px}
}
/* Instruments share the character SVG coordinates at every display size. */
.instrument-art{transform-box:view-box;transform-origin:160px 250px;pointer-events:none}.instrument-art text{font-size:86px;filter:drop-shadow(0 3px 2px #433b5830)}.playing .instrument-art{animation:instrument-play .25s 3 alternate}

/* Adopted three-character preview: joint pivots are full viewBox coordinates. */
.friend-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px;margin:18px auto;gap:16px}
.friend-card .avatar{height:clamp(135px,27dvh,240px)}
.friend-model-preview{display:block;width:100%;height:clamp(135px,27dvh,240px);overflow:hidden;border-radius:16px;background:linear-gradient(#eef4eb,#f9eddf)}.friend-model-preview>.avatar{width:100%;height:100%}.selection-character-canvas{display:block;width:100%;height:100%;pointer-events:none}.friend-card.selected .friend-model-preview{box-shadow:inset 0 0 0 3px #b39bce}
.home-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.adopted-character .tail{animation:tail-sway 3.5s ease-in-out infinite alternate}
.adopted-character .head{transform-origin:160px 172px;transform-box:view-box}
.adopted-character.playing .head{animation:rig-nod .3s 2 alternate}
.adopted-character.playing .face{animation:none}
.adopted-character.eating .expression-happy{display:none}
.adopted-character .mouth{transform-box:fill-box;transform-origin:center}
@keyframes tail-sway{to{transform:rotate(-8deg)}}
@keyframes rig-nod{to{transform:rotate(3deg)}}
@media(max-width:600px){.friend-grid{gap:6px;margin:10px auto}.friend-card .avatar{height:130px}.friend-card small{display:block;font-size:10px}}
@media(max-height:500px){.friend-card .avatar{height:100px}.friend-grid{margin:4px auto}}
@media(prefers-reduced-motion:reduce){.adopted-character *{animation:none!important}}

/* Leave room above heads during the stage's perspective camera movement. */
.camera-stage .performers .avatar{height:clamp(85px,21dvh,155px);width:clamp(83px,20.5dvh,151px)}

/* Item-specific vector furniture: room and catalogue use the same artwork. */
.illustrated-furniture{background:none!important;border:0!important;box-shadow:none!important;filter:none!important;line-height:0;display:block}
.illustrated-furniture:after{display:none!important}
.illustrated-furniture .furniture-art,.illustrated-furniture>img{display:block;width:100%;height:100%;overflow:hidden;object-fit:contain}
.room-stage .illustrated-furniture.object-floor{left:24%;bottom:0;width:54%;height:43%;z-index:1}
.room-stage .illustrated-furniture.object-table{left:3%;bottom:12%;width:28%;height:41%;z-index:4}
.room-stage .illustrated-furniture.object-tabletop{left:9%;bottom:32%;width:17%;height:29%;z-index:5}
.room-stage .illustrated-furniture.object-cabinet{right:3%;bottom:22%;width:23%;height:40%;z-index:3}
.room-stage .illustrated-furniture.object-wall{right:10%;top:7%;width:21%;height:36%;z-index:2}
.room-stage .illustrated-furniture.object-chair{left:1%;bottom:0;width:20%;height:34%;z-index:4}
.room-stage .illustrated-furniture.object-sofa{left:34%;bottom:30%;width:30%;height:39%;z-index:2}
.room-stage .illustrated-furniture.object-bed{right:1%;bottom:1%;width:30%;height:37%;z-index:4}
.room-stage .illustrated-furniture.object-plant{left:0;bottom:40%;width:17%;height:31%;z-index:2}
.room-stage .illustrated-furniture.object-light{left:44%;top:0;width:18%;height:30%;z-index:2}
.room-stage .illustrated-furniture.object-window{left:8%;top:6%;width:22%;height:38%;z-index:3}
.room-stage .illustrated-furniture.object-toy{left:64%;bottom:0;width:17%;height:26%;z-index:5}
.room-stage .illustrated-furniture.object-music{right:0;bottom:42%;width:24%;height:33%;z-index:3}
/* Dense shelves retain a whole-card touch target and a readable price. */
.shop-panel{padding:10px!important;min-height:0!important}
.shop-panel .shop-heading{display:none}
.shop-panel>.life-panel{padding:0!important;min-height:0!important}
.shop-panel>.life-panel>h2{display:none}
.shop-panel .food-grid,.shop-panel .furniture-catalog{display:grid;grid-template-columns:repeat(var(--shop-columns,3),minmax(0,1fr));gap:8px;margin:8px 0}
.shop-panel .product-card{padding:0!important;margin:0;min-height:0!important;border:0!important;background:none!important;box-shadow:none!important}
.shop-panel .product-pick{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:2px;width:100%;height:118px;min-height:118px;margin:0;padding:5px!important;border:2px solid #eddcde;border-radius:16px;background:#fffaf1;color:#755d6d;font:inherit;text-align:center;cursor:pointer;overflow:hidden}
.shop-panel .product-pick:not(:disabled):hover{border-color:#b78cac;background:#fff4e7}
.shop-panel .product-pick:focus-visible{outline:3px solid #9067b0;outline-offset:2px}
.shop-panel .product-pick:disabled{opacity:1;cursor:default;background:#f7f1ed;color:#755d6d}
.shop-panel .product-pick:disabled .product-price{background:#eee4dc;color:#806648}
.shop-panel .product-art,.shop-panel .furniture-swatch{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:64px!important;min-height:64px!important;margin:0!important;padding:0!important;background:none;border-radius:0;overflow:hidden}
.shop-panel .product-art>.room-object{position:static!important;inset:auto!important;width:100%!important;height:100%!important;transform:none!important}
.shop-panel .product-art .furniture-art{height:100%;width:100%}
.shop-panel .product-art>img{max-width:100%;height:100%;object-fit:contain}
.shop-panel .product-art .food-icon{font-size:43px;line-height:1}
.shop-panel .product-art .avatar{width:74px!important;height:72px!important;flex-shrink:0}
.shop-panel .product-name{display:block;font-size:11px;line-height:14px;min-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-panel .product-meta{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;line-height:19px;white-space:nowrap}
.shop-panel .product-price{border-radius:8px;background:#f7e6b6;color:#8b692b;padding:0 7px;font-weight:700}
.shop-panel .product-stock{font-size:9px;color:#8b7a81;overflow:hidden;text-overflow:ellipsis}
.shop-panel .page-controls{margin:6px 0;gap:16px}
.shop-panel .page-controls button{min-height:36px;padding:4px 12px}
.shop-panel .catalog-filter{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin:4px 0}
.shop-panel .catalog-filter select{min-width:0;max-width:65%;min-height:36px;font:inherit;padding:4px 8px}
.shop-panel #action-message{font-size:11px;line-height:16px;margin:4px 0;min-height:16px}
@media(max-width:359px){.shop-panel .product-meta{gap:2px}.shop-panel .product-price{padding:0 4px}}

.shop-panel #action-message{padding:2px 8px!important}

@media(max-height:600px){.shop-panel .product-pick{height:108px;min-height:108px}.shop-panel .product-art,.shop-panel .furniture-swatch{height:54px!important;min-height:54px!important}}

.purchase-preview .room-stage{position:relative;isolation:isolate;width:100%;aspect-ratio:1.7;min-height:150px;max-height:260px;overflow:hidden;border-radius:16px}
.adventure-dialog>.purchase-preview{margin:8px 0}.adventure-dialog>h3{font-size:16px;line-height:1.5;margin:8px 0}


.room-stage #touch-friend{width:auto;height:80%;aspect-ratio:320/330}.room-stage #touch-friend .avatar{width:100%;height:100%;margin:0}
/* Minimum touch targets for the youngest players. */
.adventure-tools{height:auto;min-height:44px}.adventure-tools button{min-width:44px;min-height:44px}
@media(max-width:600px){.adventure-tools{height:auto;min-height:44px}.adventure-tools button{min-width:44px;min-height:44px;padding:3px 12px}}

/* Home care is a separate, calm task instead of a crowded strip under the room. */
.home-action-rail{display:flex;justify-content:center;padding:6px}.home-care-entry{width:min(100%,280px);min-height:112px;border:3px solid #e8b8c6;border-radius:26px;background:linear-gradient(145deg,#fff9ed,#ffe9ed);color:#98667c;box-shadow:0 6px 0 #b9829340;display:grid;grid-template-columns:66px 1fr;grid-template-rows:1fr 1fr;align-items:center;text-align:left;padding:14px 20px;position:relative}.home-care-entry>span{grid-row:1/3;font-size:48px;text-align:center}.home-care-entry>b{font-size:22px;align-self:end}.home-care-entry>small{font-size:12px;align-self:start}.home-care-screen{min-height:620px;padding:14px 20px;background:linear-gradient(135deg,#fff6e8,#f9e7e9);border:5px solid #fff}.care-header{display:flex;align-items:center;gap:20px}.care-header>div{margin:auto}.care-header h1{margin:2px 0}.care-header .secondary{min-width:96px}.home-care-screen .home-tabs{margin:4px 0 10px}.care-layout{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(320px,1.1fr);gap:18px;height:min(66dvh,540px);min-height:430px}.care-character-pane,.care-food-pane{background:#fffaf1d9;border:3px solid #efd5cc;border-radius:28px;padding:14px;min-height:0;position:relative}.care-character-pane{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.care-character{position:relative;width:min(100%,310px);height:min(390px,75%);border:0;border-radius:40%;background:transparent;padding:0;overflow:visible}.care-character:disabled{opacity:1;cursor:default}.care-character .avatar{width:100%;height:100%;margin:0}.care-character.is-ready{cursor:pointer;filter:drop-shadow(0 5px 8px #dca2b466)}.care-character.is-ready:after{content:'タッチ！';position:absolute;right:4%;top:8%;background:#d27f9b;color:#fff;border-radius:18px;padding:7px 12px;font-weight:bold;font-size:12px;animation:guide-bob 1s infinite}.care-selected-food{position:absolute;right:5%;bottom:18%;font-size:48px;filter:drop-shadow(0 4px 2px #7653);animation:guide-bob 1.4s infinite}.care-character-pane h2{margin:0}.care-character-pane #action-message{min-height:44px;margin:4px 0;line-height:1.6;color:#9a6c7d}.care-food-pane{display:flex;flex-direction:column}.care-food-pane>h2{font-size:17px;margin:0 0 8px;color:#8f6a77}.care-food-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 16px 2px}.care-food-card{position:relative;min-height:112px;border:2px solid #ead5cc;border-radius:20px;background:#fffdf7;display:grid;grid-template-columns:58px 1fr;grid-template-rows:1fr 1fr;align-items:center;text-align:left;padding:9px;box-shadow:0 3px 0 #c79b8d24}.care-food-card.selected{border-color:#d77e9e;background:#fff0f4;box-shadow:0 0 0 4px #f4ccda}.care-food-card:disabled{opacity:.65}.care-food-art{grid-row:1/3;font-size:42px;text-align:center}.care-food-art img{display:block;width:54px;height:54px;object-fit:contain}.care-food-name{font-size:14px;font-weight:bold;align-self:end}.care-food-card small{font-size:12px;align-self:start}.care-favorite{position:absolute;right:8px;top:7px;color:#dc618d;font-size:20px;filter:drop-shadow(0 2px #fff)}.care-empty{margin:auto;text-align:center}.care-empty>span{font-size:60px}.care-hand-guide{position:absolute;z-index:20;right:-7px;bottom:-10px;font-size:44px;pointer-events:none;filter:drop-shadow(0 3px 2px #7655);animation:care-hand 1s ease-in-out infinite}.room-three>canvas{touch-action:none!important;cursor:grab}.room-three>canvas:active{cursor:grabbing}@keyframes care-hand{50%{transform:translate(-8px,-12px) rotate(-8deg)}}
@media(max-width:700px){.home-care-screen{padding:8px;min-height:560px}.care-header{gap:5px}.care-header .secondary{min-width:78px;padding:10px}.care-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:7px;height:64dvh;min-height:410px}.care-character-pane,.care-food-pane{padding:7px;border-radius:20px}.care-character{height:min(310px,68%)}.care-character-pane #action-message{font-size:11px}.care-food-grid{gap:6px}.care-food-card{grid-template-columns:42px 1fr;min-height:92px;padding:6px}.care-food-art{font-size:33px}.care-food-art img{width:40px;height:40px}.care-food-name{font-size:11px}.care-favorite{font-size:16px}.care-hand-guide{font-size:36px}}
@media(min-width:850px) and (min-height:600px){.storybook-home .home-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);align-items:center}.storybook-home .home-options{width:100%;max-width:none}}

/* Care uses the same approved 3D actor as town, home and concert. */
.care-character.is-ready:after{content:none}.care-character-model{display:block;width:100%;height:100%;position:relative}.care-character-model .selection-character-canvas{width:100%;height:100%}.care-character .tap-guide{display:block;left:auto;right:1%;bottom:18%;transform:none;width:52px;height:65px}.care-character-model.eating .selection-character-canvas{animation:care-character-chew .38s ease-in-out 4}.hunger-status{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 10px;width:min(100%,290px);padding:8px 12px;border-radius:18px;background:#fff6dc;color:#8e6875}.hunger-status>b{grid-row:1/3}.hunger-status>small{font-size:10px;text-align:left}.hunger-meter{display:flex;gap:6px}.hunger-meter span{display:grid;place-items:center;flex:1;height:18px;border:2px solid #dbc8bd;border-radius:9px;background:#fff;color:transparent}.hunger-meter span.filled{border-color:#d8889f;background:#f3a8ba;color:#fff}.hunger-kind-note{font-size:10px;color:#9a8790}.care-character-pane>.hunger-status{flex:0 0 auto}@keyframes care-character-chew{50%{transform:translateY(5px) scale(.98)}}
@media(max-width:700px){.care-character .tap-guide{width:40px;height:50px}.hunger-status{padding:5px 7px}.hunger-status>small{font-size:8px}.hunger-kind-note{font-size:8px}}
.hunger-status>b{white-space:nowrap;writing-mode:horizontal-tb;word-break:keep-all}
@media(max-width:700px) and (orientation:portrait){.hunger-status{grid-template-columns:1fr;gap:4px}.hunger-status>b{grid-row:auto;text-align:left}.hunger-meter,.hunger-status>small{grid-column:1}.hunger-status>small{text-align:center}}
@media(max-height:650px) and (orientation:landscape){.home-care-screen{min-height:0;padding:5px 10px}.care-header{height:52px;gap:8px}.care-header .eyebrow{display:none}.care-header h1{margin:0;font-size:24px}.care-header .secondary{min-height:40px;padding:6px 12px}.home-care-screen .home-tabs{margin:1px 0 5px}.home-care-screen .home-tabs button{min-height:38px;padding:4px 10px}.care-layout{height:clamp(220px,calc(100dvh - 160px),285px);min-height:220px;gap:8px}.care-character-pane,.care-food-pane{padding:7px;border-radius:20px}.care-character-pane{justify-content:flex-start}.care-character{flex:1 1 auto;width:min(100%,250px);height:auto;min-height:150px}.care-character-pane>h2,.care-character-pane>#action-message,.care-character-pane>.hunger-kind-note{display:none}.hunger-status{padding:5px 8px}.care-food-pane>h2{margin-bottom:4px}.care-food-card{min-height:78px}}
.home-hunger-marker,.world-hunger-marker{display:grid;place-items:center;width:46px;height:46px;min-width:46px;min-height:46px;padding:0;border:3px solid #fff8e9;border-radius:50%;background:#fff2bb;box-shadow:0 4px 10px #5f4a3f55;font-size:25px;line-height:1;cursor:pointer;touch-action:manipulation;animation:guide-bob 1.8s ease-in-out infinite}.home-hunger-marker{position:absolute;z-index:8;left:calc(50% + 70px);top:18%}.world-hunger-marker{position:absolute;z-index:3;transform:translate(-50%,-50%)}
.quest-owner-3d{height:160px;width:160px!important;position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(#fff8df,#f5e6da)}.quest-owner-3d canvas{width:100%;height:100%;display:block}
.capture-ui-toggle{width:auto!important;padding:0 10px;font-size:12px!important;font-weight:800;white-space:nowrap}.town-decoration-nav{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin:8px 0}.town-decoration-nav button{min-height:40px;padding:6px 12px}.town-decoration-area{text-align:center;font-weight:800;color:#795f72}.town-decoration-list{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))}@media(max-width:430px){.capture-ui-toggle{padding:0 7px;font-size:10px!important}.town-decoration-list{grid-template-columns:1fr}.town-decoration-nav{gap:4px}.town-decoration-nav button{padding:5px 8px;font-size:11px}}
.delivery-counter{margin:0 0 18px;padding:16px;border:2px solid #f3c678;border-radius:22px;background:linear-gradient(135deg,#fffbed,#fff4dc);box-shadow:0 8px 20px #9b6b3320}
.delivery-counter h2,.delivery-counter p{margin:0 0 9px}.delivery-counter button{width:100%;min-height:60px;margin:7px 0;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border-radius:17px}.delivery-counter button small{display:block;font-weight:700;color:#775d6c}.capture-tools button{touch-action:manipulation}
.next-activity-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 0 8px;padding:10px 12px;border:2px solid #edc66f;border-radius:20px;background:linear-gradient(135deg,#fff7cf,#fffaf0);box-shadow:0 5px 0 #b9914b22}.next-activity-card>span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;font-size:27px}.next-activity-card small,.next-activity-card strong,.next-activity-card p{display:block;margin:0}.next-activity-card small{font-size:10px;color:#9a7967}.next-activity-card strong{font-size:15px;color:#77566e}.next-activity-card p{font-size:11px;line-height:1.45}.next-activity-card button{min-height:44px;white-space:nowrap}.quest-journey{display:grid;gap:4px;margin:8px 5px;padding:0;list-style:none;text-align:left}.quest-journey li{padding:7px 9px;border-radius:10px;background:#f1ede8;color:#8b7b76;font-size:12px}.quest-journey li.done{background:#e7f1dd;color:#607951}.quest-journey li.current{background:#fff1b8;color:#8d6530;font-weight:900}.collection-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.collection-tabs button{min-height:44px;margin:0!important;font-size:12px}.collection-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.collection-summary-card{min-height:74px!important;white-space:pre-line;font-weight:900}.concert-memory-card{width:100%;border:1px solid #e6caaa;background:linear-gradient(145deg,#fff8dc,#f6e8f3);color:#765d70;text-align:center}.concert-memory-card b{display:block;margin-top:6px;font-size:11px}.concert-record-card{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:3px 8px;padding:10px!important;text-align:left}.concert-record-card>span{grid-row:1/4;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff1c8;font-size:25px}.concert-record-card strong{font-size:14px}.concert-record-card small{font-size:10px}.concert-record-card p{grid-column:2/4;margin:2px;font-size:11px;line-height:1.55}@media(max-width:600px){.next-activity-card{grid-template-columns:auto minmax(0,1fr);padding:8px}.next-activity-card>span{width:38px;height:38px;font-size:22px}.next-activity-card button{grid-column:1/3;width:100%;min-height:40px}.next-activity-card strong{font-size:13px}.collection-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.parent-data-panel{margin:12px 0;padding:12px;border:1px solid #e3cfc1;border-radius:16px;background:#fffaf1}.parent-data-panel h3{margin:0 0 8px}.parent-data-panel dl{display:grid;gap:5px}.parent-data-panel dl div{display:flex;justify-content:space-between;gap:12px;padding:6px 8px;border-radius:9px;background:#f5efe9}.parent-data-panel dt{font-weight:800}.parent-data-panel dd{margin:0;text-align:right}.parent-data-panel button{width:100%;min-height:44px}.connection-error{text-align:center}.connection-error>span{font-size:48px}
.saved-photo-card{display:flex;flex-direction:column;gap:5px;padding:6px!important;overflow:hidden;background:#fff!important}.saved-photo-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.saved-photo-card small{font-size:12px}
.language-picker select{min-height:40px;max-width:108px;border:1px solid #e1d8cc;border-radius:18px;background:#fffdf8;color:#62566e;padding:6px 26px 6px 10px;font:700 12px 'Yu Gothic','Microsoft YaHei','Malgun Gothic',sans-serif}.language-picker select:focus-visible{outline:4px solid #8472c3;outline-offset:3px}html[lang=zh-CN],html[lang=ko]{font-family:'Microsoft YaHei','Malgun Gothic','Yu Gothic',sans-serif}@media(max-width:430px){.language-picker select{max-width:82px;padding-left:7px;padding-right:20px;font-size:11px}}
.song-card[data-paid]{position:relative;filter:saturate(.65);background:linear-gradient(145deg,#fffaf2,#eee8f4)!important}
.song-card[data-paid] strong{color:#765f82}
.song-card[data-paid]::after{content:'月額300円ですべてあそべる';position:absolute;inset:auto .7rem .45rem;font-size:.72rem;color:#765f82;pointer-events:none}

/* Local development only: the server does not expose the QA endpoint in production. */
#qa-launcher{position:fixed;right:12px;bottom:12px;z-index:1000;min-height:44px;padding:8px 14px;border:3px solid #fff;border-radius:22px;background:#6d4f8d;color:#fff;font-weight:900;box-shadow:0 5px 15px #39275055}
#qa-panel{width:min(560px,calc(100vw - 24px));max-height:88dvh;padding:18px;border:4px solid #8a6aa7;border-radius:24px;background:#fffaf1;color:#66546d;overflow:auto}
#qa-panel::backdrop{background:#241b2b99}.qa-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.qa-heading h2{margin:0}.qa-heading small{font-weight:900;color:#9c3e61}.qa-heading>[data-qa-close]{width:44px;min-width:44px;height:44px;padding:0;border-radius:50%;font-size:24px}.qa-warning,.qa-status{padding:9px 12px;border-radius:12px;background:#fff0bb;font-weight:800}.qa-status{background:#eee4f5}.qa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.qa-grid button{min-height:48px;padding:8px}.qa-heading+*{margin-top:10px}#qa-panel section{margin-top:16px}#qa-panel section h3{margin:0 0 7px}@media(max-width:430px){#qa-launcher{right:7px;bottom:7px}.qa-grid{grid-template-columns:1fr 1fr}#qa-panel{padding:12px}}
/* Seven friends and two food columns remain usable on narrow phones. */
.home-care-screen .home-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}
.home-care-screen .home-tabs button{min-width:0}
@media(max-width:700px){
 .home-care-screen{min-height:0}
 .home-care-screen .home-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
 .care-layout{height:clamp(310px,calc(100dvh - 310px),480px);min-height:310px}
 .care-character-pane{justify-content:flex-start}
 .care-character{flex:1 1 auto;min-height:140px;height:auto}
 .care-character-pane>h2{font-size:18px}
 .care-food-pane>h2{font-size:13px}
 .care-food-card{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:104px;padding:6px 3px;text-align:center}
 .care-food-name{align-self:center;width:100%;font-size:11px;line-height:1.4;overflow-wrap:normal;word-break:normal}
 .care-food-card small{align-self:center}
 .care-food-art{flex:0 0 auto}
}
.paid-friend-card{position:relative;filter:saturate(.72);background:#f7f2f8!important;border-style:dashed!important}.paid-friend-card .friend-model-preview{opacity:.7}.paid-friend-card .character-portrait-2d,.paid-friend-card .character-portrait-2d img{display:block;width:100%;height:100%;object-fit:contain}.paid-friend-card small{color:#765d7f;font-weight:700}
.friend-collection-card.is-paid{background:#fbf8f1;border-style:dashed}.friend-collection-card.is-paid .friend-character-portrait{filter:saturate(.65);opacity:.78}.friend-collection-card .friend-paid{margin-top:.45rem;font-size:.82rem}
.billing-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px}.billing-plan{min-width:0;border:2px solid #dfd3db;border-radius:18px;padding:16px;background:#fffcf4}.billing-plan h4{margin:0 0 10px}.billing-plan button{width:100%;min-height:48px;white-space:normal}

/* The sound garden uses a complete octave. Note names stay in their own label strip. */
.sound-keyboard{position:relative;isolation:isolate;width:min(100%,820px);margin:20px auto}.sound-keyboard .sound-flowers{margin:0;align-items:stretch}.sound-keyboard .sound-flower{position:relative;min-height:102px;padding:12px 5px 26px;gap:0;overflow:hidden}.sound-keyboard .sound-flower>span{line-height:1}.sound-keyboard .sound-flower small{position:absolute;z-index:2;inset:auto 3px 4px;display:block;padding:3px 1px;border-radius:8px;background:#fffdf2e8;color:#6f8960;font-size:13px;font-weight:900;line-height:1;white-space:nowrap}.sound-black-keys{position:absolute;z-index:4;inset:0;pointer-events:none}.sound-black-key{position:absolute;left:calc(var(--black-slot) * 100% / 7);top:0;translate:-50% 0;width:clamp(34px,8.5%,54px);height:62%;min-height:54px;padding:4px 2px;border:3px solid #fff7e9;border-radius:9px 9px 15px 15px;background:linear-gradient(#5d526b,#302c3c);box-shadow:0 5px 0 #17141f55;color:#fff;pointer-events:auto;touch-action:manipulation;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.sound-black-key>span{font-size:19px;line-height:1}.sound-black-key small{font-size:10px;font-weight:900;line-height:1;color:#fff;white-space:nowrap}.sound-black-key.bloom{animation:flower-bloom .3s}.sound-black-key:focus-visible{outline:4px solid #f0a9c5;outline-offset:2px}
@media(max-width:700px){.sound-keyboard .sound-flower{min-height:88px;padding-bottom:24px}.sound-keyboard .sound-flower small{font-size:11px}.sound-black-key{width:clamp(31px,9%,44px);min-height:48px}.sound-black-key>span{font-size:16px}.sound-black-key small{font-size:8px}}
@media(orientation:landscape) and (max-height:600px){.music-garden .sound-keyboard{grid-column:2;margin:3px 0;min-width:0}.music-garden .sound-flowers{grid-column:auto;margin:0}.music-garden .sound-flower{height:78px!important;min-height:78px!important;padding:5px 3px 22px!important}.music-garden .sound-flower>span{font-size:25px!important}.music-garden .sound-flower small{bottom:3px;font-size:10px}.music-garden .sound-black-key{height:48px;min-height:48px;padding:3px 1px}.music-garden .sound-black-key>span{font-size:14px}.music-garden .sound-black-key small{font-size:7px}}
