:root{color-scheme:light;--ink:#26495b;--green:#38bd87;--pink:#f9aaca;--cream:#fffdf4;--line:#9eb7b9}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden;font-family:Nunito,"Trebuchet MS",system-ui,sans-serif;color:var(--ink);user-select:none}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.43;cursor:not-allowed}#game{display:block;width:100vw;height:100dvh;touch-action:none;background:linear-gradient(#96defb,#eaf9df)}#hud{position:fixed;top:0;left:0;right:0;display:flex;gap:9px;align-items:center;justify-content:space-between;padding:10px max(12px,env(safe-area-inset-right));z-index:15;pointer-events:none}.brand,.hud-stats,.menu-button{pointer-events:auto}.brand{display:flex;align-items:center;gap:8px;background:#fffcf1f0;border:3px solid white;border-radius:18px;padding:7px 11px;box-shadow:0 4px 10px #234a5247;white-space:nowrap}.brand-emoji{font-size:28px}.brand strong{display:block;font-size:13px;letter-spacing:.3px}.brand small{display:block;color:#738899;font-weight:700;font-size:11px}.hud-stats{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.stat{background:#fffef5ed;min-width:78px;border:2px solid white;border-bottom:4px solid #d7ded2;border-radius:13px;text-align:center;padding:5px 9px;box-shadow:0 4px 10px #25424b25}.stat span{display:block;color:#6e7d8b;text-transform:uppercase;font-size:10px;letter-spacing:.4px;font-weight:900}.stat b{font-size:16px;color:#344f62}.coin b{color:#a66e0d}.gems b{color:#9a55c6}.menu-button{border:3px solid white;border-radius:15px;background:#ffc2dc;color:#693a57;box-shadow:0 4px #e58fae;padding:9px 14px;font-weight:900}#bottomBar{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:20;display:flex;gap:5px;padding:7px;background:#fffdf4e8;border:3px solid white;border-radius:22px;box-shadow:0 4px 18px #345b5d44}#bottomBar button{border:0;border-radius:14px;padding:8px 15px;background:transparent;font-size:12px;font-weight:900;color:#45677a;min-width:71px}#bottomBar button:hover,#bottomBar button.active{background:#a5efdc;color:#176852}#bottomBar button span{display:block;font-size:23px;margin-bottom:2px}#contextBar{position:fixed;bottom:99px;left:50%;transform:translateX(-50%);z-index:11;display:flex;gap:8px;align-items:center;background:#fffbf0e8;border:2px solid white;box-shadow:0 3px 10px #192a3330;border-radius:17px;padding:7px 12px;font-size:12px;font-weight:800;text-align:center;max-width:min(670px,90vw)}#contextAction{border:0;border-radius:10px;background:#51c89b;color:white;font-weight:900;padding:8px 12px;white-space:nowrap}#sidebar{position:fixed;top:85px;right:14px;bottom:101px;width:min(400px,calc(100vw - 28px));z-index:30;background:#fffcf5f5;border:3px solid white;border-radius:22px;box-shadow:0 14px 40px #244e5b66;display:flex;flex-direction:column;overflow:hidden;backdrop-filter:blur(8px)}.hidden{display:none!important}.panelHead{display:flex;justify-content:space-between;align-items:center;padding:13px 17px;background:#b9f4e3;flex:none}.panelHead h2{margin:0;font-size:21px}.panelHead button{background:white;border:0;border-radius:11px;font-weight:900;padding:6px 10px}.tablinks{display:flex;gap:5px;padding:8px;overflow-x:auto;flex:none;border-bottom:1px solid #e5e4d4}.tablinks button{background:#eff4f1;border:0;border-radius:11px;white-space:nowrap;padding:7px 9px;font-size:12px;font-weight:800}.tablinks button.active{background:#ffbed9}#panelBody{padding:13px;overflow-y:auto;overscroll-behavior:contain;flex:1}.sectionTitle{font-size:12px;font-weight:900;color:#62938a;text-transform:uppercase;letter-spacing:1px;margin:12px 2px 7px}.sectionTitle:first-child{margin-top:0}.cardItem{background:white;border:2px solid #e9e9dc;border-radius:15px;padding:10px;margin-bottom:8px}.cardItem h3{margin:0 0 4px;font-size:15px}.cardItem p{font-size:12px;color:#6f8090;margin:4px 0 8px;line-height:1.42}.itemRow{display:flex;align-items:center;gap:9px}.itemRow .portrait{width:43px;height:43px;display:grid;place-items:center;flex:none;background:#ecf8ef;border-radius:12px;font-size:27px}.itemRow .info{flex:1;min-width:0}.itemRow .info small{display:block;color:#688;line-height:1.35;margin-top:2px}.btn{border:0;border-radius:11px;background:#3ec78e;color:white;padding:8px 13px;font-weight:900;box-shadow:0 3px #249a6d;font-size:12px}.btn.secondary{background:#e6eff1;color:#547183;box-shadow:0 3px #bbcdd0}.btn.purple{background:#a77fe9;box-shadow:0 3px #8060bc}.btn.pink{background:#ee8cac;box-shadow:0 3px #ce6e90}.btn.big{font-size:19px;padding:14px 35px;border-radius:17px}.btnrow{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.pills{display:flex;gap:5px;flex-wrap:wrap}.pill{display:inline-block;background:#e2f5e7;border-radius:12px;padding:4px 8px;font-size:11px;font-weight:900}.meter{height:9px;border-radius:9px;background:#ecedf0;overflow:hidden;margin:5px 0}.meter>span{display:block;background:#67d5ad;height:100%;border-radius:9px}.tiny{font-size:11px;color:#779;line-height:1.45}.split{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bigNumber{font-size:25px;font-weight:950;color:#328f77}.catalogCats{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:12px}.catalogCats button{font-weight:800;padding:7px;border-radius:10px;border:1px solid #c9dfd5;background:white;color:#47677a;font-size:12px}.catalogCats button.active{background:#78d9b3;color:#134c41}.warning{color:#a95458;font-size:12px;font-weight:800}#toast{position:fixed;top:83px;left:50%;transform:translateX(-50%);z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,top .2s;background:#344e63f0;color:white;padding:10px 16px;border-radius:14px;box-shadow:0 4px 20px #142b4a44;font-weight:800;max-width:85vw;text-align:center;font-size:14px}#toast.show{top:93px;opacity:1}#buildTip{position:fixed;top:97px;left:50%;transform:translateX(-50%);z-index:24;background:#fff9cff5;padding:10px;border:3px solid white;border-radius:15px;box-shadow:0 5px 20px #52694c66;font-size:12px;font-weight:800;max-width:60vw}#buildTip button{margin-left:10px;border:0;background:#f9a4b4;border-radius:10px;padding:6px 8px;font-weight:900}#worldLabel{position:fixed;top:86px;left:13px;font-size:12px;font-weight:900;color:#23465d;background:#ffffffce;padding:7px 10px;border-radius:12px;pointer-events:none}#modal{position:fixed;inset:0;z-index:60;background:#102c3eb3;display:grid;place-items:center;padding:14px}.modalBox{width:min(485px,94vw);max-height:87dvh;overflow:auto;background:#fffdf4;border:5px solid white;box-shadow:0 15px 60px #1117;border-radius:23px;padding:18px;text-align:center}.modalBox h2{margin-top:0;color:#2d7868}.modalBox .btn{margin:5px}.choiceGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.choiceGrid button{min-height:66px;border-radius:13px;border:2px solid #c6e1dc;background:white;font-size:18px;font-weight:900}.choiceGrid button:hover{background:#c8f9e4}.splash{position:fixed;inset:0;background:linear-gradient(150deg,#c2f5dd,#85d6de 57%,#f8d6db);z-index:90;display:grid;place-items:center;padding:16px}.splash-inner{text-align:center;background:#fffdf0;border:6px solid white;border-radius:32px;box-shadow:0 20px 65px #28645c6b;padding:30px;max-width:540px}.splash h1{font-size:clamp(27px,5vw,46px);line-height:1;margin:10px 0;color:#319c79}.splash h2{color:#e887b2;margin:3px 0 12px}.splash p{line-height:1.6}.splash-art{font-size:58px;white-space:nowrap}.splash .sub{font-size:11px;color:#889}.splash.off{display:none}#controls{position:fixed;bottom:101px;left:18px;z-index:16;display:none;align-items:end;gap:8px;pointer-events:none}#joystick{width:116px;height:116px;border-radius:50%;border:4px solid #fff8;background:#d6faf2a8;position:relative;pointer-events:auto;touch-action:none}#stick{width:48px;height:48px;border-radius:50%;position:absolute;top:30px;left:30px;background:#76cbb5;border:4px solid white;box-shadow:0 3px 7px #4565;pointer-events:none}.touchExtra{display:grid;grid-template-columns:repeat(3,42px);gap:4px;pointer-events:auto}.touchExtra button{border:2px solid white;background:#fffdf5e8;border-radius:11px;color:#3e807b;font-size:21px;font-weight:900;height:43px}.touchExtra #actionButton{background:#ffe29b}@media(pointer:coarse),(max-width:800px){#controls{display:flex}.brand{padding:4px 7px}.brand strong{font-size:11px}.brand-emoji{font-size:20px}#hud{gap:5px;padding:5px 6px}.hud-stats{gap:3px}.stat{min-width:55px;padding:2px 5px}.stat span{font-size:9px}.stat b{font-size:12px}.menu-button{padding:6px}.menu-button span{display:none}#bottomBar{bottom:4px;max-width:98vw;gap:0;padding:4px;border-radius:16px}#bottomBar button{min-width:0;padding:6px 9px;font-size:10px}#bottomBar button span{font-size:20px}#sidebar{top:59px;bottom:70px;right:6px}#contextBar{bottom:78px;left:auto;right:9px;transform:none;max-width:min(43vw,270px);font-size:10px}#worldLabel{top:60px;left:5px}#buildTip{top:60px;max-width:70vw;left:50%}#toast{top:58px}#toast.show{top:66px}}
@media(max-width:440px){.stat:nth-child(4),.stat:nth-child(5){display:none}.brand small{display:none}#controls{left:6px;bottom:69px}#joystick{width:88px;height:88px}#stick{top:20px;left:20px;width:42px;height:42px}.touchExtra{grid-template-columns:repeat(3,35px)}.touchExtra button{width:35px;height:36px;font-size:18px}#contextBar{bottom:73px;max-width:43vw}} 

/* Batch 3: gentle, readable animal care and family controls */
.animalMeters,.petCardMeters{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;margin-top:9px;padding:9px;background:#f1faef;border-radius:13px}
.needRow{display:grid;grid-template-columns:minmax(54px,1fr) minmax(35px,1.3fr) auto;gap:5px;align-items:center;font-size:11px;font-weight:800;color:#5d7f7a;min-width:0}
.needRow .meter{margin:0;height:8px;min-width:30px}.needRow b{font-size:11px;color:#2e8d7a}.needRow b.lowNeed{color:#d96e69}
.petCardMeters{text-align:left;grid-template-columns:1fr 1fr;margin:12px 0}.careSummary{padding:10px;margin:10px 0;background:#fff3e6;border:2px solid #fff;border-radius:13px;font-size:12px;font-weight:800}.careSummary b{float:right;color:#368e78}.careSummary .meter{clear:both}
.growthHint{margin-top:7px;font-size:11px;font-weight:800;color:#a26c90}.growthHint .meter>span{background:#f7a1c4}
.familyGuide{font-size:11px;color:#527a70;border-radius:10px;background:#e5f8e9;padding:9px;line-height:1.6;font-weight:800}.familyList{max-height:41dvh;overflow:auto;text-align:left;margin:9px 0;padding-right:3px}.familyList .cardItem{padding:10px}.familyPair{background:#f8faf3;border-radius:11px;padding:9px;margin:7px 0;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-weight:800;font-size:12px}.familyPair small{color:#82918c;font-size:10px}.familyHint{color:#c47777!important;line-height:1.4}.familyPair .btn{margin:0}.careBtnRow{justify-content:center}.careBtnRow .btn{min-height:40px}
.careGameHead{display:flex;text-align:left;gap:12px;align-items:center;justify-content:center}.careGameHead h2{margin:2px 0 4px;font-size:22px}.careGameHead p{margin:0;color:#71858a;font-size:12px;line-height:1.5}.carePetPortrait{flex:none;width:64px;height:64px;display:grid;place-items:center;font-size:44px;background:linear-gradient(130deg,#ffe9cb,#f7d5ec);border:3px solid white;border-radius:20px;box-shadow:0 4px 10px #4352}
.gameProgress{margin:12px 0 14px;background:#eaf8ef;padding:9px 13px;border-radius:12px;text-align:left;font-size:12px;font-weight:900;color:#4a957d}.gameProgress b{float:right}.gameProgress .meter{height:10px;margin-top:8px}.foodHint{font-size:16px;font-weight:800;color:#536b76!important;margin:13px 0!important}
.careChoices{grid-template-columns:repeat(2, minmax(0,1fr));gap:10px}.careChoices button{min-height:85px;background:#fffefd;border:3px solid #dcece4;box-shadow:0 4px #d4e4dd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:31px;transition:transform .1s,background .12s}.careChoices button:active{transform:translateY(3px);box-shadow:0 1px #c5d5ce}.careChoices button small{font-size:13px;color:#678;line-height:1.2}.careChoices button:hover{border-color:#9bdcbd}
.groomScene{height:178px;border:3px solid white;border-radius:18px;background:linear-gradient(#d9f3fc,#f3ecf8);display:flex;align-items:center;justify-content:center;flex-direction:column;margin:12px auto;position:relative;overflow:hidden}.groomMascot{font-size:72px;filter:drop-shadow(0 7px 0 #7cb5b522);animation:pet-bounce 1.5s ease-in-out infinite}.groomBubbles{font-size:23px;position:absolute;top:9px;animation:pet-bounce 1.25s ease-in-out infinite}.groomCaption{font-size:12px;font-weight:900;color:#538595}.groomAction{width:min(290px,100%);min-height:56px}.petCardMeters .needRow{grid-template-columns:minmax(60px,1fr) minmax(25px,1fr) auto}
@keyframes pet-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (max-width:480px){.animalMeters,.petCardMeters{grid-template-columns:1fr 1fr;gap:4px}.needRow{grid-template-columns:1fr auto;font-size:10px}.needRow .meter{grid-row:2;grid-column:1/3}.careGameHead h2{font-size:19px}.carePetPortrait{width:54px;height:54px;font-size:36px}.careChoices button{min-height:75px}.familyList{max-height:36dvh}}

@media(max-width:440px){.stat:nth-child(3){display:none}#worldLabel{top:61px;max-width:93vw;font-size:10px}#toast.show{top:102px}}

/* Batch 4: operating businesses and work logs */
.ledger{background:#f1f8f2;border-radius:13px;padding:10px}.ledger>div{display:flex;justify-content:space-between;gap:9px;font-size:12px;padding:6px 0;border-bottom:1px solid #dce9df}.ledger b{color:#287f68}.ledger .ledgerTotal{border:0;font-weight:900;font-size:13px}.shopProgress{margin-top:8px}.shopProgress .meter>span{background:#f5bb83}@media(max-width:440px){#bottomBar button{padding:6px 6px;font-size:9px}#bottomBar button span{font-size:18px}}

/* Batch 5 — accessible construction controls and nine thematic districts */
#buildTip{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:center;max-width:min(650px,90vw);min-width:260px;background:#fff7d8f7;padding:8px 10px;pointer-events:auto}
#buildTip[hidden]{display:none}#buildTipText{flex:1 1 145px;color:#436754}
#buildTip button{margin:0;white-space:nowrap;padding:7px 8px;border:2px solid #ffffff;border-radius:9px;box-shadow:0 2px 0 #a8b9a4;background:#d7f1e4;color:#325a50;cursor:pointer}
#buildTip #cancelBuild{background:#f9c6d3}#buildTip button:disabled{opacity:.5;cursor:default}
.constructionActions{padding:10px 12px;margin:14px 0;background:#fff7df;border-radius:13px;border:1px solid #f3e1bc;text-align:left}
.constructionActions h3{margin:0 0 6px;font-size:15px;color:#7d7455}.constructionActions .btnrow{justify-content:center}.constructionActions .btn{min-height:37px}
.districtGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.districtButton{min-width:0;min-height:72px;border:2px solid #d7e5dd;background:#f4f8ec;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px;cursor:pointer;color:#436b61}.districtButton b{font-size:26px}.districtButton span{font-weight:850;font-size:9px;line-height:1.1}.districtButton.active{border:3px solid #3cbd96;background:#c9f5dd;box-shadow:0 2px 0 #9ecfb6}
@media(max-width:550px){#buildTip{top:70px;max-width:90vw;padding:5px}#buildTip button{font-size:10px;padding:5px}#buildTipText{font-size:11px} .districtButton{min-height:67px}}

/* Batch 6: production dashboard, rare-rescue card styling and scrollable mobile menu */
#bottomBar{max-width:96vw;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
#bottomBar button{flex:0 0 auto}
.factoryLine{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 4px;border-bottom:1px solid #dbeee7;font-size:12px}
.factoryLine b{color:#26866b;white-space:nowrap}
.rarePortrait.rare{background:#fff1c8}.rarePortrait.epic{background:#dbebff}.rarePortrait.legendary{background:#f4dafc}
.rarityFlag{display:inline-block;padding:2px 7px;border-radius:12px;background:#e7f0e4;color:#49866e;font-size:10px;letter-spacing:.2px;text-transform:capitalize}
.rarityFlag.rare{background:#ffe6ac;color:#a57725}.rarityFlag.epic{background:#dbe8ff;color:#5a6aba}.rarityFlag.legendary{background:#f3d5ff;color:#9d52b5}
.rareActions{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:76px}.rareActions .btn{padding:6px 8px;font-size:11px;box-shadow:0 2px #247755}
.rescueList{max-height:50dvh;overflow:auto;text-align:left;padding-right:2px}.rescueList .cardItem{padding:8px}
@media(max-width:440px){#bottomBar{justify-content:flex-start}#bottomBar button{min-width:46px;padding:5px 7px}.rescueList{max-height:41dvh}.rareActions{min-width:70px}}

/* Batch 7: accessible discovery tree, reputation audit, and milestone rewards */
.techFilter{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0 9px}.techFilter button{background:#f1f8f1;color:#46796e;border:2px solid #dfebe4;border-radius:11px;padding:7px 9px;font-size:11px;font-weight:900}.techFilter button.active{background:#baf3dc;border-color:#61cba5;color:#216d53}
.techCard{border-color:#dbece9;background:linear-gradient(120deg,#fff,#f4fff8)}.techLocked{background:#f5f5f2}.techCard .meter{height:10px}.techCard .meter>span{background:#83b5f1}.techFooter{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:7px}.techFooter .tiny{flex:1}.techFooter button{min-width:82px}
.ratingFactor{background:#fff;border:2px solid #e0edea;border-radius:13px;padding:10px 12px;margin-bottom:8px}.ratingFactorHead{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:12px}.ratingFactorHead span{white-space:nowrap;color:#578d77;font-weight:900}.ratingFactor .meter{height:11px}.ratingFactor .meter>span{background:linear-gradient(90deg,#ffcb86,#83dcb8)}.ratingFactor small{color:#758a86;font-size:11px}.ratingAdvice{padding:5px;background:#fffae9;border-radius:10px}.starReward{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px;margin:7px 0;background:#fffaf1;border:2px solid #f2e8d8;border-radius:13px;font-size:11px}.starReward b{color:#b6843b}.starReward span{font-size:11px;text-align:right}.starClaimed{background:#e8faed;border-color:#ccebd4}.milestoneCard{flex-wrap:wrap}.milestoneCard .btn{min-width:64px}.milestoneCard .info small{line-height:1.4}.milestoneClaimed{background:#edf7ef}.milestoneClaimed .portrait{background:#d8efdd}
@media(max-width:440px){.techFilter button{padding:6px;font-size:10px}.milestoneCard .portrait{width:35px;height:35px;font-size:23px}.milestoneCard .info{min-width:145px}.milestoneCard .btn{padding:6px 8px}.starReward{flex-wrap:wrap}.ratingFactorHead{font-size:11px}}

/* Batch 8 — priority dashboard, mission cards, trophy cabinet and analytics */
.priorityGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}
.priorityGrid>div{background:#f1faf5;border:1px solid #d0e8dd;border-radius:13px;padding:10px;min-width:0}
.priorityGrid b{display:block;font-size:12px;color:#398476}.priorityGrid small{display:block;font-size:11px;color:#698479;line-height:1.4;margin-top:4px}
.missionItem{padding:10px;margin:8px 0}.missionItem .portrait{background:#fff5d5}.missionDone{border-color:#aee2c7;background:#f4fcf7}.missionItem .btn{white-space:nowrap}
.awardCard.earned{border-color:#c7dfbd;background:#f7fff4}.awardCard .meter{margin:11px 0 5px}
.trophyGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.trophyTile{background:#eff8ff;border:2px solid #c9e6d9;border-radius:14px;padding:11px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.trophyTile.locked{filter:grayscale(.7);opacity:.67}.trophyTile .trophyIcon{font-size:28px}.trophyTile b{font-size:12px}.trophyTile small{color:#627783;font-size:10px}
.miniChart{height:116px;border-radius:13px;background:linear-gradient(#edf8f5,#fff);padding:10px 8px 6px;display:flex;align-items:flex-end;gap:4px;overflow:hidden}.chartColumn{height:100%;min-width:4px;flex:1;display:flex;align-items:end}.chartFill{background:linear-gradient(#80dfb5,#39b7a3);border-radius:5px 5px 0 0;width:100%;min-height:3px}
@media(max-width:425px){.priorityGrid{grid-template-columns:1fr}.missionItem .itemRow{flex-wrap:wrap}.missionItem .btn{margin-left:auto}}

/* Batch 10 — weather effects, outfits, accessibility, and safe-area polish */
#weatherLayer{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}
#fpsCounter{position:fixed;z-index:12;top:122px;left:13px;background:#253e4be0;color:#fff;border-radius:8px;font:800 11px system-ui;padding:5px 8px;pointer-events:none;display:none}
.outfitCard{padding:10px 6px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:5px}
.outfitCard.outfitSelected{border-color:#76cda8;background:#f1fcf4}
.outfitPortrait{width:87px;height:95px;border-radius:18px;background:linear-gradient(#dff7ff,#fff7f4);display:flex;flex-direction:column;align-items:center;justify-content:end;overflow:hidden;margin:5px auto 3px}
.outfitHat{font-size:22px;height:27px;z-index:1;line-height:1}.outfitFace{font-size:36px;line-height:1.05;z-index:1}
.outfitTorso{height:29px;width:48px;border:2px solid #ffffffb8;border-radius:14px 14px 0 0;background:var(--outfit)}
.outfitCard .btn{min-width:82px}.outfitCard .tiny{min-height:25px;margin:0}
button:focus-visible{outline:3px solid #254d8f;outline-offset:3px}
@media(max-width:600px){#bottomBar{bottom:max(5px,env(safe-area-inset-bottom))}#contextBar{bottom:96px;max-width:94vw}#controls{bottom:max(90px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* Seasonal matching games: large, accessible, touch-friendly tiles */
.seasonTileGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px auto;max-width:370px}
.seasonTile{cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:72px;border-radius:16px;background:#fff8e8;border:3px solid #e7cfdf;font-size:35px;box-shadow:0 4px 0 #e5c1bc;touch-action:manipulation}
.seasonTile:hover,.seasonTile:focus-visible{background:#ffedf5;border-color:#dc88b2;outline:2px solid #ae6ab5;outline-offset:2px}
.seasonTile:active{transform:translateY(3px);box-shadow:0 1px 0 #e5c1bc}
.seasonTarget{font-size:32px;white-space:nowrap}
#game{touch-action:none;user-select:none;-webkit-user-select:none}
@media(max-width:520px){.seasonTileGrid{gap:7px}.seasonTile{min-height:61px;font-size:31px}}

/* CUTE ICON ART — menu images, independent of the 3D park models. */
.nav-art{display:block;width:34px;height:34px;object-fit:contain;margin:0 auto 2px;pointer-events:none;filter:drop-shadow(0 2px 1px #52607a1a)}
.brand-art{width:40px;height:40px;display:block;flex:none}
.menu-art{width:26px;height:26px;object-fit:contain;vertical-align:middle;pointer-events:none}
.menu-button{display:flex;align-items:center;gap:5px}
.tab-art{width:24px;height:24px;object-fit:contain;flex:none;pointer-events:none}
.tablinks button{display:flex;gap:4px;align-items:center;justify-content:center}
.panelIdentity{display:flex;align-items:center;gap:8px;min-width:0}
#panelIcon{height:36px;width:36px;object-fit:contain;flex:none}
.hud-art{width:20px;height:20px;object-fit:contain;float:left;margin:1px 5px 0 -4px;pointer-events:none}
.splash-art{display:flex;align-items:center;justify-content:center;gap:0;white-space:normal}
.splash-art img{width:25%;max-width:110px;height:auto;aspect-ratio:1;object-fit:contain;margin:0 -2px;filter:drop-shadow(0 6px 3px #69948c30)}
@media(max-width:820px){.nav-art{width:29px;height:29px}.brand-art{width:31px;height:31px}.menu-art{width:27px;height:27px}.tab-art{width:22px;height:22px}.hud-art{display:none}}
@media(max-width:430px){.nav-art{width:26px;height:26px}#bottomBar button{padding:5px 7px!important}.splash-art img{max-width:75px}}

/* Expansion: readable structure-management actions on small screens */
.manageButtons{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end;max-width:185px}
.manageButtons .btn{padding:7px 9px;font-size:12px;flex:1 0 auto}
.manageFilters{gap:6px;flex-wrap:wrap}
.manageFilters .btn{font-size:12px;padding:7px 9px}
@media(max-width:600px){.manageButtons{max-width:none;width:100%;justify-content:flex-start}.manageButtons .btn{min-width:60px}.cardItem.itemRow:has(.manageButtons){flex-wrap:wrap}.manageFilters .btn{flex:1 0 auto}}
/* Five-system expansion: wide but scrollable navigation, card readability. */
#bottomBar{max-width:calc(100vw - 12px);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;justify-content:flex-start;white-space:nowrap}
#bottomBar button{flex:none}
#panelBody .btnrow{align-items:center}
#panelBody .cardItem .btnrow .btn{white-space:normal;min-height:34px}
@media(max-width:800px){#bottomBar{width:calc(100vw - 8px);left:4px;transform:none;padding-bottom:4px}#bottomBar button{flex:none;min-width:59px}}
/* Click-to-place interior design studio (five by five editable floor tiles). */
.roomLayout{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:10px;background:var(--room-wall,#eddce4);border:4px solid #9b91af;border-radius:15px;max-width:440px;margin:12px auto;box-shadow:inset 0 0 0 5px rgba(255,255,255,.6)}
.roomCell{aspect-ratio:1;min-width:0;border:2px solid rgba(137,107,106,.35);border-radius:6px;background:var(--cell-wood,#efe2d1);font-size:clamp(16px,2.3vw,29px);cursor:pointer;transition:transform .12s ease,background .12s ease;display:grid;place-items:center}
.roomCell:hover,.roomCell:focus{outline:3px solid #a476d3;outline-offset:0;transform:scale(.98);background:#fff6df}
.roomCell.room-wall{background:#bc98ae}.roomCell.room-window{background:#b7e8fa}.roomCell.room-door{background:#b88a69}.roomCell.room-stairs{background:#dfb5a1}
@media(max-width:480px){.roomLayout{padding:6px;gap:3px}.roomCell{font-size:19px}}

/* Illustrated interface upgrade — local, individual kawaii SVG assets. */
.inline-illustration {display:inline-block;width:1.42em;height:1.42em;vertical-align:-.29em;object-fit:contain;pointer-events:none;margin:0 .035em;filter:drop-shadow(0 1px 1px #42607522)}
.portrait .card-illustration,.trophyIcon .card-illustration {width:100%;height:100%;max-height:56px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 2px #44627725)}
.outfitHat .card-illustration {width:38px;height:38px;object-fit:contain}
.itemRow .portrait {width:52px;height:52px;padding:2px;box-shadow:inset 0 0 0 2px #fff,0 2px 5px #4f637a13;background:#f8fffb}
#bottomBar button.active .nav-art,.tablinks button.active .tab-art {filter:drop-shadow(0 3px 2px #539b824d);transform:translateY(-1px) scale(1.09)}
#bottomBar button:hover .nav-art,.tablinks button:hover .tab-art {transform:translateY(-2px) scale(1.07)}
.nav-art,.tab-art{transition:transform .16s ease,filter .16s ease}
.portrait{overflow:hidden}
.seasonTile .inline-illustration{width:40px;height:40px;vertical-align:middle;margin:0}
.seasonTarget .inline-illustration{width:38px;height:38px;vertical-align:middle}
.bigNumber .inline-illustration{width:36px;height:36px;vertical-align:-.27em}
.modalBox h2 .inline-illustration{width:34px;height:34px}
@media(max-width:430px){.itemRow .portrait{width:44px;height:44px}.inline-illustration{width:1.25em;height:1.25em}.seasonTile .inline-illustration{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.nav-art,.tab-art{transition:none}}
/* Keep every illustrated navigation tab reachable on narrow devices. */
#bottomBar{max-width:calc(100vw - 12px);overflow-x:auto;overflow-y:hidden;justify-content:flex-start;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-snap-type:x proximity}
#bottomBar button{flex:0 0 auto;scroll-snap-align:start}
#bottomBar::-webkit-scrollbar{height:4px}
#bottomBar::-webkit-scrollbar-thumb{background:#a2d7c9;border-radius:6px}

/* 3D object relocation helper: usable on touch or desktop. */
#moveModeBanner{position:fixed;z-index:17;left:50%;transform:translateX(-50%);bottom:125px;max-width:min(95vw,650px);background:rgba(255,251,239,.97);color:#345a62;border:3px solid #92d9b7;box-shadow:0 5px 18px #30586855;border-radius:19px;padding:9px 12px;font-weight:800;font-size:13px;display:flex;gap:12px;justify-content:center;align-items:center;text-align:center;pointer-events:auto}
#moveModeBanner[hidden]{display:none!important}
#finishMoveMode{border:0;background:#efb0c9;border-radius:11px;padding:7px 10px;font-weight:900;color:#673e53}
@media(max-width:600px){#moveModeBanner{bottom:145px;font-size:11px;gap:6px;padding:7px;max-width:90vw}#finishMoveMode{font-size:11px}}
