:root{color-scheme:light;--paper:#faf4e7;--paper-soft:#eee4d1;--ink:#2c4446;--muted:#5b706c;--jade:#4f817a;--gold:#ad8747;--edge:#bba784;--rose:#c07768;font-family:"Microsoft JhengHei","PingFang TC",system-ui,sans-serif;color:var(--ink)}
#game{background:#d7e3d3}canvas{image-rendering:auto}.painted-icon{display:inline-block;flex:0 0 auto;width:40px;height:40px;background-image:url('assets/v4/item-atlas.png');background-size:600% 600%;background-position:var(--icon-x) var(--icon-y);background-repeat:no-repeat;vertical-align:middle;pointer-events:none}.item-portrait{width:140px;height:140px}.illustrated-icon{width:58px;height:58px}
button{color:var(--ink);-webkit-tap-highlight-color:transparent}button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #166f75;outline-offset:3px}button:disabled{opacity:.53;filter:saturate(.55);cursor:default}
button:not(.rhythm-button),.button,.hud-icon,.action,.dpad button,.close{border-image:none!important;box-shadow:none;text-shadow:none;border:1px solid var(--edge);color:var(--ink);background:linear-gradient(160deg,#fffaf0,#eee6d1);border-radius:14px;transition:transform .1s,background .1s,box-shadow .15s;overflow:visible}
button:not(:disabled):hover{background:linear-gradient(160deg,#fff9e7,#dfebdc)}button.held,button:active:not(:disabled){transform:translateY(2px) scale(.97);background:linear-gradient(150deg,#d4e2d4,#eee6cf);box-shadow:inset 0 2px 4px #647b6430}
button.selected,button[aria-selected=true],button[aria-current=page]{background:linear-gradient(160deg,#e5efe4,#b8d0c0);border-color:#547f73;box-shadow:inset 0 0 0 1px #9bbdad}
.button,.return-game{font-size:16px;font-weight:700;min-height:50px;line-height:1.45;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;background:linear-gradient(140deg,#68978c,#416f68)!important;color:#fffaf0!important;border-color:#47726a!important;box-shadow:0 3px 0 #355f564d!important}.button.secondary{background:linear-gradient(160deg,#fffaf0,#ede4ce)!important;color:var(--ink)!important;border-color:var(--edge)!important}.button.danger{background:linear-gradient(160deg,#edd7c8,#ddb7a2)!important;color:#653f35!important}.button small{font-weight:400;font-size:14px}.button.wide{width:100%}
.hud{padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.pet-hud{background:#faf3e6ee;border:1px solid #bbaa81;border-radius:22px;padding:8px 12px;color:var(--ink);box-shadow:0 3px 12px #35554219}.pet-hud b{font-size:16px}.pet-hud small{font-size:14px;color:#455e5b}.pet-hud .portrait{width:42px;height:42px}.meters{gap:5px}.meter{height:7px;background:#ded5c3}.meter i{background:#cd8475}.meter.stamina i{background:#719f84}.meter.bond i{background:#7ab1b7}
.icons{gap:7px}.hud-icon{width:58px;height:62px;min-width:48px;min-height:48px;border-radius:18px;background:#fbf6e9ec!important;padding:5px;font-size:20px;box-shadow:0 2px 10px #33564317!important}.hud-icon>.painted-icon{width:29px;height:29px}.hud-icon img{width:30px;height:30px}.hud-icon small{font-size:14px;line-height:18px;color:var(--ink)}
.objective{font-size:16px;line-height:1.45;text-shadow:none;background:#fbf5e5eb;border:1px solid #ccba95;border-radius:14px;padding:8px 14px;color:var(--ink)}.objective small{font-size:14px;color:#586d65;line-height:1.5}.context{color:var(--ink);background:#fff8e8e8;border:1px solid #b8a882;border-radius:14px;line-height:1.5;font-size:16px;padding:10px 16px}.save-note{font-size:11px;background:#faf4e0ce;color:#566965;padding:3px 8px;border-radius:8px}.toast{color:#283e38;background:#fbf3d9;border:1px solid #b59e70;border-radius:16px;padding:13px 18px;font-size:16px;line-height:1.5;box-shadow:0 5px 20px #35544729}.action,.dpad button{background:#fbf6e9f2!important;color:var(--ink);border:1px solid #b9aa85!important;border-radius:50%!important;box-shadow:0 3px 0 #647e6938!important;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:4px;font-size:24px}.action.primary{background:linear-gradient(145deg,#def0df,#bad8c7)!important;border-color:#739c81!important}.action .painted-icon{width:34px;height:34px}.action span:not(.painted-icon){font-size:14px;color:var(--ink);line-height:17px}.action sup{font-size:12px;color:#344b4b}.action.skill{background:#e8f3eeee!important}.dpad button .painted-icon{width:30px;height:30px}.joystick{background:#faf6e6a6;border:1px solid #abaf85;box-shadow:inset 0 0 0 12px #fffaf050}.stick{background:#ceddbecc;border:2px solid #719484;box-shadow:0 3px 8px #47654c26}.joystick:after{font-size:14px;color:#405850;opacity:1}
dialog.game-dialog{width:min(980px,calc(100% - 32px));max-height:calc(100dvh - 28px);border:1px solid #b7a887;border-radius:24px;background:linear-gradient(135deg,#fffaf0,#f3ebdc);color:var(--ink);box-shadow:0 16px 60px #263f4950;background-image:radial-gradient(ellipse at 20% 0,#fffef699,transparent 65%),linear-gradient(135deg,#fffaf0,#f3ebdc);animation:paper-open .18s ease-out}
dialog::backdrop{background:#1b34366a;backdrop-filter:blur(5px)}dialog header{padding:15px 22px;background:#f6efdf;border-color:#c7b897;min-height:72px}dialog h2{font-size:21px;color:#3a5a53;letter-spacing:.04em}.close{height:48px;width:48px;border-radius:50%!important;background:#e9ead8!important;font-size:26px;box-shadow:none!important}.menu-body{padding:22px 24px;font-size:16px;line-height:1.75;scrollbar-color:#91a78d #eee8da}.menu-body h3{font-size:20px;color:#365d55;margin:18px 0 10px}.intro,.story p{font-size:16px;line-height:1.85;color:#4c615a}.muted,.inline-note{font-size:14px;color:#5d7066;line-height:1.7}.eyebrow{font-size:14px;letter-spacing:.08em;color:#7c7958}.inline-note{background:#e8eedf;border:1px solid #bac9a5;border-radius:14px;padding:12px 15px}.fulfilled{color:#36715e}
.game-menu-dock{border-top:1px solid #cbbd9e;background:#f7f0e0;padding:11px 16px 14px}.game-menu-dock nav{gap:7px;margin-top:10px}.game-menu-dock nav button{min-height:54px;padding:5px;font-size:14px;border-radius:13px!important;background:#faf5e8!important}.game-menu-dock nav .painted-icon{width:24px;height:24px}.game-menu-dock nav span:not(.painted-icon){font-size:14px;color:#3b5b52}.game-menu-dock .return-game{border-radius:16px!important;min-height:50px;background:linear-gradient(140deg,#709c8b,#4c7b6e)!important}.section-tabs{gap:8px;margin-bottom:18px}.section-tabs button{min-height:48px;font-size:16px;padding:10px 12px;flex:1;line-height:1.4;border-radius:12px!important;background:#f1e9d7!important}.section-tabs button.selected{background:#d7e7d7!important;border-color:#6e9580!important;color:#2e5b48}.companion-card{background:radial-gradient(ellipse at 28% 45%,#dcebd78c,transparent 65%);padding:14px 0;gap:18px}.companion-card>img{width:165px;height:190px;object-fit:contain}.companion-card h3{color:#3c5a4b}.companion-card h3 small{color:#7b886e;font-size:16px}.growth-meter>div{font-size:16px}.growth-meter>i{background:#ddd9c6;height:9px}.growth-meter>i em{background:#86ac79}.growth-meter.xp>i em{background:#c7a866}.growth-meter.bond>i em{background:#87bbc0}.pet-boons span{color:#4d695a;background:#e6eedc;border:1px solid #becbb0;font-size:14px}.care-actions{gap:14px}.care-actions button{min-height:120px;flex-direction:column;font-size:17px}.care-actions .painted-icon{width:46px;height:46px}.rename-fold summary{font-size:16px;min-height:48px;padding:10px;color:#547561}.rename-fold input{font-size:16px;min-height:48px;border-radius:12px;padding:8px 12px;background:#fffaf0;border:1px solid #aaad88;color:#314a42}
.resources span,.bag-materials>div{font-size:16px;color:#486155;background:#eaeedc;border:1px solid #c5ccb2;border-radius:12px;padding:10px 12px}.resources .painted-icon{width:28px;height:28px}.equipment-slots button{min-height:115px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;gap:5px}.equipment-slots .painted-icon{width:52px;height:52px}.equipment-slots span:not(.painted-icon){font-size:14px;color:#697968}.equipment-slots b{font-size:16px;line-height:1.4;color:#3d5e53}.bag-materials .painted-icon{width:38px;height:38px}.bag-materials small{font-size:14px;color:#6a7c66}.equipment-option{padding:13px 15px;min-height:82px;gap:14px;background:#faf5e6!important;color:#3a514b}.equipment-option>.painted-icon{width:58px;height:58px}.equipment-option b{font-size:17px}.equipment-option small{font-size:14px;color:#637765;line-height:1.6}.equipment-option i{color:#628b74}.forge-grid{gap:12px;grid-template-columns:repeat(3,1fr)}.forge-grid button{min-height:125px;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:16px;gap:7px}.forge-grid .painted-icon{width:62px;height:62px}.forge-grid button small{font-size:14px;color:#6c7b64}.forge-detail{border:1px solid #c1b28a;border-radius:18px;padding:18px;background:#fffaf0}.forge-heading .painted-icon{width:78px;height:78px}.forge-detail p{color:#566c5e;font-size:16px}.cost-progress{gap:10px}.cost-progress>div{background:#eee9d7;border-radius:10px;color:#715e47;padding:9px;font-size:14px}.cost-progress .painted-icon{width:30px;height:30px}.cost-progress .enough{background:#e3eddd;color:#396e4e}.cost-progress i{background:#d4d4bd}.cost-progress em{background:#83ac78}
.map-islands{gap:15px}.map-island{min-height:190px;background:#edf0e0!important;border-radius:22px!important;padding:18px}.map-island span{font-size:18px;color:#3c6256}.map-island small{font-size:14px;color:#687a68}.boss-preview{border-radius:50%;background-color:#d4e1c5}.map-route-line span{font-size:14px;color:#5a7565;background:#e7efdf}.mission-panel{background:#f7f1e1;border-color:#cdbb91;border-radius:18px}.mission-panel p{font-size:16px;color:#506f5f}.practice-tray{background:#e8efdf;border-radius:18px;padding:15px}.practice-buttons button{min-height:85px;font-size:16px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:8px}.practice-buttons .painted-icon{width:40px;height:40px}.plan-selector button{min-height:92px;font-size:16px;gap:8px;display:flex;flex-direction:column;align-items:center;justify-content:center}.plan-selector .painted-icon{width:36px;height:36px}.plan-selector i{color:#639374}.plan-consequence{background:#e2ecdf;border:1px solid #aec5ad;color:#426552;border-radius:16px}.plan-consequence small{color:#6b765e;font-size:14px}.promise-preview{color:#3d6450;background:#eef2e2;border:1px solid #c1d2b8;border-radius:16px}.promise-preview p{font-size:16px;color:#4d6e58}.promise-preview small{font-size:14px;color:#758063}.departure-stats span,.trail-status span{background:#eee9d8;border-radius:12px;color:#55745f;font-size:14px}.departure-stats b,.trail-status b{color:#365c4e;font-size:18px}.departure-banner h3,.transition-banner h3,.brief-banner h3{color:#395f52;font-size:21px}.brief-banner .painted-icon{width:58px;height:58px}.brief-rules li{font-size:16px;line-height:1.8;color:#4b6659}.brief-rules li::marker{color:#9b8858}.trail-camp,.star-cache{background:#f0ebd9;border-color:#c9bb99;color:#536a5a}.trail-camp p,.star-cache p{font-size:16px;line-height:1.75}
.talent-card{background:#f2eddd;border:1px solid #ccc2a0;border-radius:14px;padding:13px;gap:12px}.talent-card>.painted-icon{width:48px;height:48px}.talent-card p,.talent-card h3{color:#526b58}.talent-card p{font-size:15px}.talent-dots{color:#b49a59;font-size:16px}.points-banner{background:#e5edda;border-radius:14px;color:#3f644e;padding:14px}.points-banner>.painted-icon{width:44px;height:44px}.points-banner span{font-size:14px;color:#607660}.badge-option,.promise-record,.journal-entry{background:#f7f3e8;color:#4d6958;border:1px solid #cbbf9b;border-radius:16px;padding:15px}.badge-option small,.promise-record small{color:#657862;font-size:14px}.badge-option .painted-icon,.promise-record .painted-icon,.journal-mark .painted-icon{width:48px;height:48px}.journal-entry p{font-size:16px;color:#5e7260}.journal-entry h3,.empty-journal h3{color:#3e6553}.empty-journal{background:#edf1e1;border-radius:18px;padding:22px;color:#5b745f}.empty-journal>.painted-icon{width:80px;height:80px}.seal-row span{font-size:14px;background:#e6ead7;color:#6f7a60}.seal-row .earned{color:#4c7b56;background:#d8e9d3}
.setting label,.setting-block p{font-size:16px;color:#405f52}.setting small,.setting-block small{font-size:14px;line-height:1.7;color:#687c68}.setting input[type=checkbox]{width:28px;height:28px;accent-color:#588b73}.setting{min-height:65px;border-color:#bfc8ad}.setting-block{background:#eff1e3;border-radius:16px;border-color:#c7cfb5}.setting input[type=range]{accent-color:#5c8d73;min-height:44px}.guide section{background:#eaf0df;border:1px solid #c6d0b5}.guide h4{color:#466e55;font-size:17px}.guide p{font-size:15px;color:#5a735d;line-height:1.75}.pause-note{font-size:17px;color:#4e6c5b}.offer{background:#f4eddd;border:1px dashed #b5ae84}.offer b{font-size:17px;color:#65745b}.offer p,.offer small{font-size:14px;color:#718067}.offer button{min-height:48px;font-size:14px;color:#647061!important}.story h3{font-size:25px;color:#3b6654}.story img{max-height:180px;object-fit:contain}.care-stage{background:#e9efdf;border-color:#b9c9ac;border-radius:18px}.rhythm-score{color:#4d745d;font-size:16px}.rhythm-button{background:#e0bd78;color:#4f593d;border:1px solid #a39057;font-size:18px;min-height:52px}.rhythm-track{background:#bccdc0}.rhythm-target{background:#e5c880}.loading{background:#f2eddd;color:#5b7461}.loading b{color:#507964}.loading small{color:#7a8466}
@keyframes paper-open{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:600px){dialog.game-dialog{width:calc(100% - 18px);max-height:calc(100dvh - 16px);border-radius:21px}dialog header{padding:11px 15px;min-height:65px}dialog h2{font-size:20px}.menu-body{padding:17px 18px;line-height:1.7}.companion-card{gap:11px}.companion-card>img{width:112px;height:160px}.companion-card h3{font-size:21px}.growth-meter>div{font-size:14px}.pet-hud b{font-size:15px}.pet-hud small{font-size:14px}.hud-icon{width:50px;height:58px}.hud-icon small{font-size:14px}.objective{font-size:16px;padding:8px 10px}.objective small{font-size:14px}.forge-grid{grid-template-columns:repeat(2,1fr);gap:10px}.forge-grid button{min-height:122px}.map-islands{gap:8px}.map-island{min-height:136px;padding:10px 6px}.map-island span{font-size:15px}.map-island small{font-size:14px;line-height:1.4}.map-island .boss-preview{width:65px;height:65px}.care-actions button{min-height:130px}.equipment-slots{gap:8px}.equipment-slots button{padding:8px 5px;min-height:115px}.equipment-slots b{font-size:14px}.equipment-slots .painted-icon{width:47px;height:47px}.equipment-option>.painted-icon{width:48px;height:48px}.game-menu-dock{padding:9px 10px 11px}.game-menu-dock nav{gap:5px}.game-menu-dock nav button{min-height:52px;padding:4px}.game-menu-dock nav .painted-icon{width:23px;height:23px}.game-menu-dock nav span:not(.painted-icon){font-size:14px}.action .painted-icon{width:29px;height:29px}.context{font-size:15px;padding:9px 12px}.plan-selector button{padding:7px;gap:5px}.plan-selector b{font-size:16px;line-height:1.45}.bag-materials{grid-template-columns:repeat(2,1fr);gap:9px}.bag-materials>div{padding:10px}.resources span{padding:9px;font-size:14px}.equipment-option small{font-size:14px}}
@media(max-width:350px){.menu-body{padding:15px}.companion-card>img{width:95px;height:145px}.companion-card{gap:8px}.companion-card h3{font-size:19px}.section-tabs button{font-size:15px;padding:9px 7px}.hud-icon{width:48px;height:56px}.hud-icon .painted-icon{width:26px;height:26px}.action .painted-icon{width:26px;height:26px}.pet-hud{padding:8px 9px}.care-actions button{padding:10px;font-size:16px}.care-actions small{font-size:14px}.equipment-slots .painted-icon{width:42px;height:42px}}
@media(max-height:500px){dialog.game-dialog{max-height:calc(100dvh - 12px)}dialog header{min-height:55px;padding:7px 15px}.menu-body{padding:15px 20px}.game-menu-dock{padding:7px 12px}.game-menu-dock nav{margin-top:6px}.game-menu-dock nav button{min-height:48px}.hud-icon{height:52px;width:48px}.hud-icon .painted-icon{width:25px;height:25px}.hud-icon small{font-size:14px;line-height:16px}.pet-hud{padding:6px 10px}.pet-hud .portrait{width:32px;height:32px}.objective{font-size:15px;padding:6px 11px}.objective small{font-size:14px}.action .painted-icon{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){dialog.game-dialog{animation:none}button{transition:none}}

.pet-showcase{background-image:var(--pet-frame-atlas)!important;background-size:400% 400%!important}.pet-showcase.celebrate{background-position-y:100%!important}.coop-portrait{background-image:url(assets/pet.png)!important;background-size:contain!important;background-repeat:no-repeat;background-position:center!important}.coop-control{background:#fcf6e6f2!important;color:#3c6957!important;border:1px solid #aeb894!important;border-radius:18px!important}.coop-title,.coop-value{color:#467461!important}.coop-control>i{background:#d3d9bf}.coop-control>i>em{background:#7fac89}.context-action{color:#395e4c!important;background:#fdf5dfe8!important;border:1px solid #b4ae83!important;border-radius:16px!important;font-size:16px!important;min-height:48px!important;display:flex;align-items:center;gap:7px;padding:7px 12px}.context-action .painted-icon{width:32px;height:32px}.supply-hud{border-radius:14px!important;min-width:48px!important;min-height:48px!important;display:flex;align-items:center;justify-content:center;position:relative;background:#f5efdc!important}.supply-hud .painted-icon{width:30px;height:30px}.supply-hud span:not(.painted-icon){color:#436552;font-size:15px}.home-quick{background:#fdf6e6ed!important;border-color:#b6ac83!important;box-shadow:0 4px 15px #35533d20}.home-quick p,.home-quick b{color:#446452}.home-companion{background:#e7efdce8!important;color:#45664d!important;display:flex;align-items:center;justify-content:center;gap:6px}.home-companion .painted-icon{width:30px;height:30px}

.painted-icon{background-image:var(--item-frame-atlas,url(assets/v4/item-atlas.png))!important}
.section-tabs{background:transparent!important;border:0;padding:0}
.growth-meter>div,.growth-meter b,.growth-meter span{color:#426151!important}
.growth-meter.xp b,.growth-meter.xp span{color:#7a704d!important}
.menu-body .care-actions button:not(.secondary){background:linear-gradient(140deg,#719b88,#4d7d6a)!important;background-image:linear-gradient(140deg,#719b88,#4d7d6a)!important;color:#fff9e9!important}
.menu-body .care-actions button:not(.secondary) small{color:#fbf4df!important}
.button:not(.secondary):not(.danger),.return-game{background-image:linear-gradient(140deg,#739e8b,#497767)!important;color:#fff9eb!important}
.button.secondary{background-image:linear-gradient(150deg,#fff9e9,#eae2ca)!important;color:#355948!important}
.objective:empty{display:none}.home-quick .button{background-image:linear-gradient(140deg,#739e8b,#497767)!important;color:#fff9eb!important}
.skill-explanation,.skill-explanation p{background:#edf1e0;color:#4c7157}.skill-explanation b{color:#355f4b}.skill-explanation span{background:#d6e6ce;color:#456d50}.equipped-badge{background:#e2eccc;color:#4e754d}.reward-growth{background:#e7eccc;color:#3e6650}.reward-growth span{color:#687a5b}.promise-complete{background:#dce9d0;color:#4e6e4a}.promise-complete p{color:#5c7754}.debrief-pet h3{color:#3e6650}.debrief-pet p{color:#5c735d}.reward-loot summary{color:#486e51}

.forge-grid button.selected,.recipe-tile.selected{background:#dcebd7!important;color:#31553f!important;border-color:#67916f!important}.forge-grid button.selected small{color:#537356!important}
.workbench-layout{display:grid;grid-template-columns:155px minmax(0,1fr);gap:20px;align-items:start}.recipe-rail{display:flex;flex-direction:column;gap:10px;max-height:480px;overflow:auto;padding:3px 5px 8px;overscroll-behavior:contain}.recipe-tile{min-height:105px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:10px;font-size:15px;flex-shrink:0;border-radius:15px!important}.recipe-tile>.painted-icon{width:53px;height:53px}.recipe-tile b{font-size:15px;font-weight:600;color:#426044}.recipe-tile small{font-size:14px;color:#76816b}.workbench-layout .forge-detail{margin:0;min-width:0;padding:20px}.workbench-layout .forge-heading .painted-icon{width:105px;height:105px}.workbench-layout .forge-heading h3{font-size:23px}.workbench-layout .forge-heading{gap:15px}.comparison-link{background:transparent!important;min-height:46px;padding:9px 12px;font-size:15px;font-weight:600;border:1px solid #c0caae!important;color:#507555!important;border-radius:11px!important;width:100%;margin:0 0 14px}.cost-progress{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}.cost-progress>div{min-width:0}.cost-progress b{font-size:14px;color:#6c6751}.cost-progress span:not(.painted-icon){font-size:14px;color:#5b725a}.cost-progress>div.enough b{color:#487043}
.equipment-hero{display:flex;gap:22px;align-items:center;background:radial-gradient(ellipse at 20% 55%,#dcead4ab,transparent 67%);padding:5px 0 14px}.equipment-hero>div{flex:1;min-width:0}.equipment-hero h3{margin:6px 0;font-size:25px}.equipment-hero p:not(.eyebrow){margin:8px 0;font-size:16px;color:#5e705a;line-height:1.7}.item-state{display:inline-block;border-radius:20px;padding:4px 11px;background:#e2ead2;color:#597b50;font-size:14px}.gear-comparison{background:#eef1e3;border:1px solid #c3cdb4;border-radius:17px;padding:14px 17px;margin:14px 0}.comparison-heading{display:grid;grid-template-columns:1fr 25px 1fr;gap:8px;font-size:14px;text-align:center;align-items:center;color:#5d7158;margin:0 0 12px}.compare-row{display:grid;grid-template-columns:minmax(120px,1fr) 75px 20px 75px;align-items:center;gap:10px;padding:8px 0;border-top:1px solid #ccd6bd;color:#53694e;font-size:16px}.compare-row b{font-weight:600;text-align:right}.compare-row i{font-style:normal;color:#93916a;text-align:center}.compare-row .improved{color:#317250}.compare-row .tradeoff{color:#925743}.gear-tactics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.gear-tactics>div{background:#f5efdf;border:1px solid #ccc1a0;padding:14px;border-radius:16px}.gear-tactics p{font-size:15px;line-height:1.7;color:#5c7359;margin:8px 0 0}.gear-tactics b{display:block;color:#4a6a4c;font-size:16px;margin-bottom:5px}.material-needs{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.material-needs>span{display:flex;align-items:center;gap:5px;padding:8px 10px;background:#f1e9d9;border-radius:10px;font-size:14px;color:#85644a}.material-needs>.enough{color:#4c754b;background:#e2ecd8}.material-needs .painted-icon{width:30px;height:30px}
.quest-heading{display:flex;align-items:center;gap:14px}.quest-heading h3{font-size:23px;margin:5px 0}.quest-heading p:not(.eyebrow){font-size:16px;color:#66785e;margin:7px 0}.chapter-thread{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.chapter-thread>div{display:flex;align-items:center;gap:8px;padding:13px;border:1px solid #cbc6a8;border-radius:16px;background:#f3efdf;opacity:.65}.chapter-thread>.current,.chapter-thread>.complete{opacity:1;background:#e4ecd7;border-color:#a7c09b}.chapter-thread b{font-size:16px;display:block;color:#4b6d49}.chapter-thread small{font-size:14px;line-height:1.5;color:#778063;display:block}.chapter-thread .painted-icon{width:38px;height:38px}.current-quest{background:#f6f0df;border:1px solid #c7bc93;border-radius:18px;padding:17px;margin:16px 0}.current-quest h3{font-size:21px;color:#476744;margin:5px 0 12px}.current-quest p{font-size:16px;color:#65765b}.quest-check{display:flex;align-items:center;gap:11px;padding:10px;border-bottom:1px solid #d5d7ba}.quest-check>span{color:#968b5d}.quest-check b{font-size:16px;color:#65805a;flex:1}.quest-check small{font-size:14px;color:#8d845c}.quest-check.complete b,.quest-check.complete>span{color:#3e754e}.home-quest-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.home-quest-list button{display:flex;align-items:center;gap:12px;padding:14px;text-align:left;min-height:86px;border-radius:15px!important}.home-quest-list b{display:block;font-size:17px;color:#4c6c4c}.home-quest-list small{display:block;font-size:14px;line-height:1.5;color:#788062}.home-quest-list .painted-icon{width:45px;height:45px}
.first-guide{display:flex;align-items:center;gap:20px}.first-guide>img{width:150px;height:160px;object-fit:contain}.first-guide h3{font-size:23px;color:#487055}.first-guide p:not(.eyebrow){font-size:16px;color:#6c7b61}.first-steps{list-style:none;margin:18px 0;padding:0;display:grid;gap:12px}.first-steps li{display:flex;align-items:center;gap:16px;background:#eef2df;border:1px solid #c8d4b3;border-radius:16px;padding:14px;font-size:16px;color:#62785a;line-height:1.7}.first-steps .painted-icon{width:47px;height:47px}.first-steps b{display:block;color:#456c4d;font-size:17px}
dialog.menu-title{max-width:700px}dialog.menu-title>header{display:none}dialog.menu-title .menu-body{padding:0;max-height:calc(100dvh - 30px)}.title-painting{height:340px;position:relative;background-image:linear-gradient(#fbf7e9a6,#fbf7e910),url(assets/v4/home-dawn.png);background-size:cover;background-position:center 40%;overflow:hidden;border-bottom:1px solid #d5c39b}.title-wordmark{text-align:center;position:relative;z-index:1;padding-top:28px;color:#345c52}.title-wordmark>p{font-size:18px;letter-spacing:.25em;margin:0 0 10px}.title-wordmark>h3{font-size:30px;margin:0 0 7px;color:#345c52;font-weight:700;text-shadow:0 2px 10px #fff7df}.title-wordmark>span{font-size:16px;color:#4d705e;text-shadow:0 1px 4px #fff7df}.title-pet{position:absolute!important;left:50%;bottom:0;transform:translateX(-50%);width:200px!important;height:200px!important;filter:drop-shadow(0 7px 7px #5672543a)}.title-actions{padding:20px 28px 25px;text-align:center}.title-actions small{font-size:14px;color:#7b8268}.save-summary{font-size:15px;color:#6b7b61;margin:0 0 10px}.title-secondary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:13px 0 17px}.title-secondary .painted-icon{width:25px;height:25px}.title-secondary button{font-size:15px;padding:10px 8px}
@media(max-width:600px){.workbench-layout{display:flex;flex-direction:column;gap:12px}.recipe-rail{flex-direction:row;max-height:none;max-width:100%;width:100%;overflow-x:auto;overflow-y:hidden;gap:8px;padding:3px 3px 10px}.recipe-tile{width:103px;min-height:100px;padding:8px 4px}.recipe-tile>.painted-icon{width:45px;height:45px}.recipe-tile b{font-size:14px;line-height:1.4}.workbench-layout .forge-detail{width:100%;padding:13px}.workbench-layout .forge-heading .painted-icon{width:76px;height:76px}.workbench-layout .forge-heading h3{font-size:21px}.workbench-layout .forge-detail p{margin:8px 0 12px}.workbench-layout .cost-progress{gap:8px}.cost-progress>div{padding:7px}.equipment-hero{gap:10px;align-items:flex-start}.equipment-hero>.item-portrait{width:100px;height:120px}.equipment-hero h3{font-size:22px}.equipment-hero p:not(.eyebrow){font-size:15px;margin:6px 0}.gear-comparison{padding:12px}.compare-row{grid-template-columns:minmax(90px,1fr) 54px 18px 54px;gap:6px;font-size:15px;padding:8px 0}.gear-tactics{grid-template-columns:1fr;gap:9px}.gear-tactics>div{display:flex;align-items:center;gap:11px;padding:12px}.gear-tactics .painted-icon{width:36px;height:36px}.gear-tactics p{margin:0;font-size:14px}.gear-tactics b{font-size:15px;margin-bottom:3px}.chapter-thread{grid-template-columns:1fr;gap:8px;margin:15px 0}.chapter-thread>div{padding:10px;gap:10px}.chapter-thread small{font-size:14px}.chapter-thread .painted-icon{width:35px;height:35px}.quest-heading h3{font-size:21px}.quest-heading>.painted-icon{width:44px;height:44px}.home-quest-list{grid-template-columns:1fr;gap:9px}.home-quest-list button{min-height:78px}.first-guide{gap:12px;align-items:flex-start}.first-guide>img{width:90px;height:130px}.first-guide h3{font-size:21px}.first-steps li{padding:12px;gap:10px}.first-steps .painted-icon{width:36px;height:36px}.first-steps li{font-size:15px}.first-steps b{font-size:16px}.title-painting{height:325px}.title-wordmark{padding-top:30px}.title-wordmark>h3{font-size:25px}.title-wordmark>p{font-size:16px}.title-wordmark>span{font-size:15px}.title-actions{padding:18px 20px 23px}.title-pet{width:190px!important;height:190px!important}.title-secondary{gap:9px}.title-secondary button{font-size:15px}}
@media(max-height:500px){dialog.menu-title{max-width:780px}.menu-title .menu-body{display:grid;grid-template-columns:1fr 1fr;align-items:center}.title-painting{height:355px}.title-wordmark>h3{font-size:22px}.title-wordmark>p{font-size:15px}.title-wordmark>span{font-size:14px}.title-actions{padding:20px}.title-secondary{grid-template-columns:1fr;gap:9px}.title-secondary button{min-height:45px}.first-guide>img{width:100px;height:140px}.workbench-layout{grid-template-columns:120px minmax(0,1fr)}.recipe-tile{min-height:90px}}

/* Player audit: illustrated controls are the clickable objects, with no frame. */
.icons{max-width:none;flex-wrap:nowrap;gap:12px;flex-shrink:0}
.hud-icon,.hud-icon:hover,.hud-icon:active,.hud-icon.held,.action,.action:hover,.action:active,.action.held,.action.primary,.supply-hud,.coop-control,.context-action{background:none!important;background-image:none!important;border:0!important;border-image:none!important;box-shadow:none!important;border-radius:0!important}
.hud-icon{width:76px;height:88px;flex:none;padding:0;gap:2px}.hud-icon>.painted-icon,.hud-icon>img{width:58px;height:58px;filter:drop-shadow(0 3px 0 #31544266) drop-shadow(0 5px 5px #25483645);image-rendering:auto!important}
.hud-icon small,.action>span:not(.painted-icon){font-size:16px;line-height:23px;font-weight:700;color:#244d43;background:#fff7e9ee;padding:0 5px;border-radius:5px;text-shadow:none;white-space:nowrap}
.hud-icon:not(:disabled):hover>.painted-icon,.hud-icon:not(:disabled):hover>img,.action:not(:disabled):hover>.painted-icon{filter:drop-shadow(0 0 5px #fff6baff) drop-shadow(0 4px 4px #304a4955);transform:translateY(-2px)}
.hud-icon.held,.action.held{transform:translateY(3px) scale(.96)!important}.hud-icon.held>.painted-icon,.action.held>.painted-icon{filter:drop-shadow(0 1px 1px #20473388);transform:none}
.action>.painted-icon{width:57px;height:57px;filter:drop-shadow(0 3px 0 #294e4f80) drop-shadow(0 5px 4px #13363855)}.action.primary>.painted-icon{width:65px;height:65px}.action{gap:0;justify-content:flex-end}.action.primary{border:0!important;box-shadow:none!important}.action.charge-ready,.action.charged{filter:drop-shadow(0 0 8px #fff0a8)}.action:before,.action:after{display:none!important}.action .energy-number{background:#e2f2ec;color:#234b45;border:1px solid #5b8d7e;min-width:25px;height:25px;line-height:23px;top:1px;right:0;font-size:14px;border-radius:50%;font-style:normal;box-shadow:0 2px 4px #23473555}
.coop-control{position:relative;padding-top:2px;padding-bottom:8px;filter:drop-shadow(0 3px 3px #234e4a44)}.coop-title,.coop-value{background:#fff8e9ed;border-radius:4px;padding:0 3px}.coop-control>i{height:6px;background:#fff5da;border:1px solid #799489;border-radius:3px;left:12px;right:12px;bottom:0}.coop-portrait{width:44px;height:44px}.supply-hud .painted-icon{width:38px;height:38px}.context-action{color:#2a5046!important}.context-action>span:not(.painted-icon){background:#fff8e9f2;border-radius:6px;padding:5px 10px;font-weight:600}.context-action>.painted-icon{width:44px;height:44px;filter:drop-shadow(0 3px 3px #253b4b55)}
/* No UI plaques cover the garden's buildings. Canvas objects receive the taps. */
.scene-hotspots{position:absolute;inset:0;pointer-events:none;overflow:hidden}.scene-hotspots button{position:absolute;opacity:0;background:none!important;border:0!important;pointer-events:none}.scene-hotspots[hidden]{display:none}.courtyard-heading{position:absolute;top:115px;left:22px;display:flex;flex-direction:column;gap:4px;padding:12px 18px;background:#fff7e9;color:#294e45;border:1px solid #cab68b;border-radius:5px 18px 18px 5px;box-shadow:0 3px 14px #3b5b4938;pointer-events:none}.courtyard-heading b{font-size:23px;letter-spacing:.12em;line-height:1.35}.courtyard-heading span{font-size:16px;line-height:1.5;color:#355b4c}#game:not([data-stage=home]) .courtyard-heading{display:none}
.courtyard-quest{margin:0 auto;padding:11px 22px;background:#fff7e9f0;box-shadow:0 4px 16px #315b4e33;border-radius:18px;display:flex;gap:12px;align-items:center;color:#31594b}.courtyard-quest span{font-size:14px}.courtyard-quest b{font-size:17px}.courtyard-quest small{font-size:14px;color:#4b6c5c}.context.home{bottom:94px!important;font-size:15px!important;max-width:95%;color:#294e45;background:#fff7e9f2!important;border:0;padding:8px 14px;border-radius:12px;line-height:1.5}.controls-home{bottom:30px!important}.objective:not(:empty){top:112px;max-width:520px;width:42%}
/* Entry panel uses its content height, never the inherited full-screen menu. */
dialog.game-dialog.menu-title{height:fit-content!important;max-width:680px;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 24px)!important}
dialog.game-dialog.menu-title .menu-body{padding:0!important;flex:0 1 auto;display:block;max-height:calc(100dvh - 26px);overflow:auto}
.title-painting{height:285px;background-image:url(assets/v4/home-dawn.png);background-position:center 45%;border:0}.title-wordmark{background:#fff7e9;color:#284e46;padding:17px 16px 15px;position:relative;border-bottom:1px solid #d4c4a0}.title-wordmark>p{font-size:17px;letter-spacing:.24em;color:#345b4b;margin:0 0 6px;line-height:1.4}.title-wordmark>h3{font-size:28px;line-height:1.4;margin:0 0 5px!important;color:#254e45!important;text-shadow:none}.title-wordmark>span{display:block;font-size:16px;line-height:1.5;color:#4b6958;text-shadow:none}.title-pet{width:190px!important;height:190px!important;bottom:-3px;image-rendering:auto!important}.title-actions{padding:18px 24px 21px}.title-secondary{margin:11px 0 12px}.title-actions small{display:block;font-size:14px;line-height:1.6}.save-summary{line-height:1.5;margin:0 0 6px}.pet-showcase{image-rendering:auto!important}
@media(min-width:1000px) and (min-height:501px){.icons{gap:9px}.hud .top{gap:16px}.objective:not(:empty){top:114px}.hud-icon{width:76px;height:87px}}
@media(max-width:999px) and (min-width:601px){.hud-icon{width:60px;height:75px}.hud-icon>.painted-icon,.hud-icon>img{width:47px;height:47px}.icons{gap:6px}.hud-icon small{font-size:14px}}
@media(max-width:600px){.icons{gap:5px;max-width:none}.hud-icon{width:54px;height:72px;padding:0}.hud-icon>.painted-icon,.hud-icon>img{width:43px;height:43px}.hud-icon small{font-size:14px;line-height:20px;padding:0 3px}.courtyard-heading{top:106px;left:50%;transform:translateX(-50%);text-align:center;padding:10px 17px;border-radius:14px;min-width:248px}.courtyard-heading b{font-size:21px}.courtyard-heading span{font-size:16px}.courtyard-quest{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;width:min(100%,370px);padding:10px 15px}.courtyard-quest small{grid-column:1/-1;font-size:14px}.courtyard-quest b{font-size:16px}.context.home{bottom:112px!important;font-size:14px!important;padding:7px 11px;width:max-content;max-width:calc(100% - 24px)}.controls-home{bottom:29px!important}.objective:not(:empty){top:103px;width:calc(100% - 24px);max-width:none}.action>.painted-icon{width:48px;height:48px}.action.primary>.painted-icon{width:56px;height:56px}.action>span:not(.painted-icon){font-size:14px;line-height:20px}.title-painting{height:220px}.title-wordmark{padding:15px 10px 13px}.title-wordmark>h3{font-size:24px}.title-wordmark>p{font-size:16px}.title-wordmark>span{font-size:16px}.title-pet{width:190px!important;height:190px!important}.title-actions{padding:14px 18px 18px}.title-secondary button{font-size:15px}.title-secondary{gap:9px}.title-actions small{font-size:14px}}
@media(max-width:350px){.hud-icon{width:48px;height:69px}.hud-icon>.painted-icon,.hud-icon>img{width:39px;height:39px}.icons{gap:4px}.courtyard-heading{top:103px;min-width:238px}.title-painting{height:170px}.title-pet{width:155px!important;height:155px!important}.title-wordmark>h3{font-size:22px}.title-actions{padding:11px 15px 14px}.title-actions small{font-size:14px}.title-secondary{margin:9px 0}.title-secondary button{padding:8px 4px;gap:4px}.title-secondary .painted-icon{width:22px;height:22px}}
@media(max-height:500px){.hud-icon{width:51px;height:61px}.hud-icon>.painted-icon,.hud-icon>img{width:37px;height:37px}.hud-icon small{font-size:14px;line-height:18px}.icons{gap:5px}.courtyard-heading{top:91px;left:16px;transform:none;min-width:0;padding:8px 12px;text-align:left}.courtyard-heading b{font-size:19px}.courtyard-heading span{font-size:14px}.courtyard-quest{display:flex;width:auto;padding:8px 14px;gap:11px}.courtyard-quest small{display:none}.context.home{bottom:78px!important}.controls-home{bottom:25px!important}.action>.painted-icon{width:37px;height:37px}.action.primary>.painted-icon{width:45px;height:45px}.action>span:not(.painted-icon){font-size:14px;line-height:18px}.objective:not(:empty){top:9px;max-width:35%;width:35%}.menu-title .menu-body{display:grid!important;grid-template-columns:1.05fr 1fr;align-items:stretch}.title-painting{height:100%;min-height:330px;grid-column:1;grid-row:1/3}.title-wordmark{background:#fff7e9;padding:14px 13px;grid-column:2;grid-row:1;align-self:end;border:0}.title-wordmark>h3{font-size:22px}.title-wordmark>p{font-size:15px}.title-wordmark>span{font-size:14px}.title-pet{width:200px!important;height:200px!important}.title-actions{grid-column:2;grid-row:2;padding:0 14px 14px;align-self:start}.title-secondary{grid-template-columns:1fr 1fr;gap:7px;margin:9px 0}.title-secondary button{font-size:14px;padding:7px 4px;gap:4px}.title-secondary .painted-icon{width:23px;height:23px}.title-actions small{font-size:14px}.save-summary{font-size:14px}}

.painted-icon{background-image:var(--item-frame-atlas)!important}.context.home{display:block!important}
.map-island{position:relative;overflow:hidden!important;min-height:220px;padding:0 8px 13px;gap:6px;background:#f6f0df!important}.map-island.selected{background:#e8f0dc!important}.island-landscape{display:block!important;flex:none;width:calc(100% + 16px);height:112px;margin:0 -8px 0;background-image:url(assets/v4/world-atlas.png);background-size:200% 300%;background-position:100% var(--landscape-row);border-bottom:1px solid #c5c8a2}.boss-preview{background-image:var(--creature-frame-atlas)!important;background-size:600% 900%!important;background-position:0 var(--boss-row)!important;animation:none!important;image-rendering:auto!important;width:85px;height:85px;margin-top:-37px;position:relative;filter:drop-shadow(0 4px 3px #23493333)}.map-island span:not(.boss-preview):not(.island-landscape){font-size:18px;line-height:1.4;font-weight:700}.map-island small{font-size:14px;color:#4d6e59;line-height:1.5}.map-route-line{color:#5c745b}
@media(max-width:600px){.map-island{min-height:185px;padding-bottom:11px}.island-landscape{height:90px}.map-island .boss-preview{width:76px;height:76px;margin-top:-34px}.map-island span:not(.boss-preview):not(.island-landscape){font-size:16px}.map-island small{font-size:14px}}
@media(max-width:350px){.map-island span:not(.boss-preview):not(.island-landscape){font-size:15px}.map-island small{font-size:14px}.map-island{min-height:176px}.island-landscape{height:80px}.map-island .boss-preview{width:68px;height:68px}}

/* Individual normalized textures stay small and avoid CSS variable size limits. */
.painted-icon{background-image:var(--icon-image)!important;background-size:contain!important;background-position:center!important}.boss-preview{background-image:var(--boss-image)!important;background-size:contain!important;background-position:center!important;background-color:transparent!important;border-radius:0!important;box-shadow:none!important}.map-route-line{background:#e6ebd8;border:1px solid #b6c29d}.map-route-line span{background:none!important}
.supply-hud span:not(.painted-icon){background:#fff1c9!important;font-weight:700}.objective .route-step{color:#496753;opacity:1}.objective small{color:#527161;opacity:1}

.island-landscape{background-image:var(--landscape-image);background-size:cover;background-position:center}.toast{width:max-content;max-width:calc(100% - 32px);font-size:16px;line-height:1.6;top:215px;padding:11px 17px;background:#fff4d9;color:#34564a;border:1px solid #bda87b;border-radius:14px}.toast.visible{transform:translateX(-50%)}
@media(max-height:500px){.toast{top:80px;max-width:60%;font-size:15px}}

/* Final player review: soft storybook surfaces and large physical image controls. */
@font-face{font-family:"Lumechart Round UI";src:url("assets/v4/lumechart-round-ui.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root,body,button,input,textarea,select{font-family:"Lumechart Round UI","Microsoft JhengHei","PingFang TC",system-ui,sans-serif!important}
:root{--ink:#294e45;--muted:#4c6b5a;--paper:#fff7e7;--jade:#608a70;--gold:#bf984c}
dialog.game-dialog{border:24px solid transparent!important;border-image:url("assets/v4/storybook-panel.png") 185 fill stretch!important;border-image-width:34px!important;background:transparent!important;border-radius:34px!important;box-shadow:0 16px 50px #1d3e4859!important;max-width:990px;width:calc(100% - 36px);max-height:calc(100dvh - 28px);overflow:visible!important}
dialog.game-dialog::backdrop{background:#28423870;backdrop-filter:blur(5px)}
dialog.game-dialog header{background:none!important;border:0!important;min-height:56px;padding:3px 5px 10px;position:relative;flex:none;gap:12px}
dialog.game-dialog h2{color:#315a49!important;font-size:25px;letter-spacing:.07em;line-height:1.4;margin:0}
dialog.game-dialog header h2:before{content:'✦';font-size:18px;color:#b58e46;margin-right:10px;vertical-align:middle}
dialog.game-dialog .close{background:linear-gradient(#fff9e9,#ecdcb6)!important;color:#4b6655!important;border:2px solid #c5ae78!important;box-shadow:0 3px 0 #a7926555,inset 0 2px 1px #fff!important;border-radius:40% 54% 45% 52%!important;width:48px;height:48px;flex:none;min-height:48px;font-size:26px}
dialog.game-dialog .menu-body{background:transparent!important;min-height:0;padding:12px 7px 18px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bcab83 transparent;line-height:1.8}
.menu-body p,.menu-body .intro{font-size:16px;line-height:1.8;color:#426351}.menu-body small{font-size:14px;line-height:1.6;color:#4f6d5d}.menu-body h3{font-size:23px;color:#315a49;line-height:1.5}
.button,.return-game,.rhythm-button{border-radius:23px 29px 24px 28px!important;border:2px solid #78987d!important;background:linear-gradient(170deg,#90b19a 0%,#668f73 58%,#537e64 100%)!important;color:#fffaf0!important;box-shadow:0 4px 0 #385d474d,inset 0 2px 0 #dff0d391!important;min-height:52px;font-size:17px;letter-spacing:.025em;gap:9px;padding:11px 20px;transition:transform .13s,filter .15s,box-shadow .15s}
.button.secondary{background:linear-gradient(170deg,#fff8e2,#f3e3bf)!important;color:#355944!important;border-color:#d2bc87!important;box-shadow:0 4px 0 #ae95614d,inset 0 2px 0 #fff!important}
.button.danger{background:linear-gradient(170deg,#fae2d1,#e5bbab)!important;border-color:#c69380!important;color:#714a3a!important}
.button:active:not(:disabled),.button.held,.return-game:active,.rhythm-button:active{transform:translateY(3px) scale(.985)!important;box-shadow:0 1px 0 #385d474d,inset 0 1px 2px #5a72504d!important}
.button:disabled{opacity:.66;filter:saturate(.6)}
.section-tabs{gap:9px;padding:0 0 11px;border:0!important;overflow-x:auto;background:transparent!important}
.section-tabs button{border-radius:21px 24px 22px 18px!important;font-size:16px;min-height:46px;line-height:1.4;padding:10px 17px;white-space:nowrap;background:linear-gradient(#fff9e9,#eee0be)!important;box-shadow:0 3px 0 #d3c4a755,inset 0 2px 0 #fff!important;border:1px solid #cdb98b!important}
.section-tabs button.selected,.section-tabs button[aria-selected=true]{background:linear-gradient(#daead5,#b8d1b6)!important;border-color:#88aa85!important;color:#2b563e!important;box-shadow:0 3px 0 #73956b55,inset 0 2px 0 #eef8e7!important}
.mission-panel,.plan-consequence,.promise-preview,.points-banner,.skill-explanation,.setting-block,.gear-comparison,.gear-tactics>div,.first-steps li,.home-quest-list button,.equipment-option,.badge-option,.journal-entry,.promise-record,.forge-detail,.cost-progress>div,.companion-card,.bag-materials>div,.supply-panel,.talent-card,.offer,.guide section,.trail-camp,.star-cache,.empty-journal,.reward-growth,.promise-complete,.inline-note{border-radius:23px 28px 22px 30px!important;background:linear-gradient(140deg,#f3f1dc,#e4ecd5)!important;border:1px solid #ccd1a8!important;box-shadow:inset 0 2px 0 #fff9ecaa,0 2px 3px #5975500a;color:#365d47}
.forge-detail,.gear-comparison,.journal-entry,.guide section,.mission-panel{background:linear-gradient(145deg,#fff7e5,#f0e8cd)!important;border-color:#d3c19a!important}
.plan-selector button,.recipe-tile,.equipment-slots button{border-radius:24px 29px 22px 27px!important;background:linear-gradient(#fff8e8,#f1e5c8)!important;box-shadow:0 3px 0 #bdab8055,inset 0 2px 0 #fff!important;border:1px solid #cdb88c!important}
.plan-selector button.selected,.recipe-tile.selected,.equipment-slots button.selected{background:linear-gradient(#e4eed7,#c7dcc0)!important;box-shadow:0 3px 0 #78997466,inset 0 2px 0 #fff4!important;border-color:#8da67a!important}
.game-menu-dock{background:transparent!important;border:0!important;padding:12px 6px 2px;flex:none;box-shadow:none!important}
.game-menu-dock .return-game{font-size:16px;min-height:48px;width:100%;margin:0}
.game-menu-dock nav{gap:10px;padding:4px 7px 0;margin-top:4px;display:flex;justify-content:space-around}
.game-menu-dock nav button{background:none!important;border:0!important;box-shadow:none!important;min-height:70px;min-width:48px;width:70px;display:flex;flex-direction:column;align-items:center;gap:0;padding:0;border-radius:0!important;overflow:visible!important}
.game-menu-dock nav .painted-icon{width:45px;height:45px;filter:drop-shadow(0 3px 2px #43614655)}
.game-menu-dock nav span:not(.painted-icon){font-size:14px;background:none!important;font-weight:700;color:#315441;padding:0 5px;line-height:22px}
.game-menu-dock nav button[aria-current=page] .painted-icon{filter:drop-shadow(0 0 5px #fffcd0) drop-shadow(0 3px 2px #577e5155);transform:translateY(-2px)}
.story-chart.map-islands{display:block;position:relative;height:370px;max-width:100%;margin:0 -3px 8px;background:url("assets/v4/chart-map.png") center/100% 100% no-repeat;border:0;border-radius:25px 32px 25px 29px;box-shadow:inset 0 0 16px #e9d4a677;overflow:hidden}
.story-chart .map-island,.story-chart .map-island:hover,.story-chart .map-island.selected{position:absolute;top:10%;width:27%;height:79%;min-height:0;padding:0 2px 10px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;transition:filter .15s,transform .15s}
.story-chart .island-0{left:5%}.story-chart .island-1{left:36%;top:0!important}.story-chart .island-2{left:68%}
.story-chart .map-island span:not(.painted-icon),.story-chart .map-island small{display:block;background:#fff5def2;white-space:nowrap;color:#345845;border-radius:8px 14px 7px 12px;padding:2px 10px;line-height:1.5;font-size:18px;text-shadow:none;box-shadow:0 2px 3px #40574222}
.story-chart .map-island small{font-size:14px;background:#eef3def0;border-radius:10px;padding:1px 8px;font-weight:400;box-shadow:none}
.island-spark{position:absolute;top:12%;left:43%;font-size:37px;color:#fff3b9;text-shadow:0 2px 0 #a48039,0 0 15px #ffea9e;font-style:normal;transform:scale(.75);opacity:0;transition:opacity .2s,transform .2s}
.story-chart .selected .island-spark,.story-chart .complete .island-spark{opacity:1;transform:scale(1)}
.story-chart .map-island.selected span:not(.painted-icon){background:#e3edd4;border:1px solid #91ad76;box-shadow:0 3px 0 #718c6166}.story-chart .map-island:hover{filter:brightness(1.08)}
.map-route-line{border-radius:18px 25px 19px 24px!important;background:#ebedd7!important;padding:7px;font-size:16px}.map-route-line i{color:#b89753}.practice-tray{border:0!important;border-top:1px dashed #b8bc98!important;margin-top:20px;padding:5px 0 0;border-radius:0!important;background:none!important}.practice-tray h3{font-size:19px}
.practice-buttons{gap:12px}.practice-buttons button{background:none!important;border:0!important;box-shadow:none!important;min-height:85px;padding:2px 5px;display:flex;flex-direction:column;gap:0;align-items:center}.practice-buttons .painted-icon{width:54px;height:54px;filter:drop-shadow(0 3px 2px #415e4255)}.practice-buttons span:not(.painted-icon){font-size:15px;font-weight:700;color:#345940;background:#fff4dfe6;border-radius:7px;padding:2px 7px}
.pet-showcase{background:none!important;animation:none!important;background-image:none!important;overflow:visible!important}.pet-showcase:before,.pet-showcase:after{display:none!important}.pet-showcase canvas{display:block;position:absolute;inset:0;width:100%;height:100%;background:none!important;image-rendering:auto!important;pointer-events:none}
.action kbd,.context-action kbd{position:absolute;left:3px;top:6px;min-width:23px;line-height:20px;font-size:13px;font-weight:700;padding:0 4px;color:#274f45;background:#fffae8;border:1px solid #baa77d;border-bottom-width:3px;border-radius:7px;pointer-events:none}.action{position:relative}.context-action{position:relative}.context-action kbd{left:0;top:0}
.icons .home-return{display:flex}.icons .journey-resume{display:none}#game[data-stage=home] .icons .home-return{display:none}#game[data-parked=true] .icons .journey-resume{display:flex}
.hud-icon,.hud-icon:hover,.hud-icon.selected,.hud-icon.held,.action,.action:hover,.action.held,.action.primary,.coop-control,.supply-hud,.context-action{border:0!important;border-image:none!important;border-radius:0!important;background:none!important;box-shadow:none!important}
.hud-icon{width:78px;height:90px}.hud-icon>.painted-icon,.hud-icon>img{width:62px;height:62px}.hud-icon small{border-radius:7px 9px 7px 9px;font-size:16px}
.context.home{top:202px!important;bottom:auto!important;left:22px!important;transform:none!important;max-width:315px;pointer-events:none;font-size:15px!important;background:#fff7eae8!important;border-radius:15px 20px 16px 19px;color:#355642}.courtyard-heading{border-radius:22px 28px 22px 29px;border-color:#ccb682;box-shadow:0 4px 0 #9cba8655,0 4px 13px #30584622}.controls-home{bottom:26px!important}.courtyard-quest{border-radius:20px 29px 23px 28px;border:1px solid #c5c399;box-shadow:0 4px 0 #a5b58d55}
.objective:not(:empty){background:#fff6e9eb!important;border-radius:19px 25px 18px 24px!important;border:1px solid #d0bd91;box-shadow:0 3px 0 #52775122}.objective b{font-size:18px!important;line-height:1.6}.objective small{font-size:14px!important;line-height:1.6}.context:not(.home){background:#fff7e6ed!important;border-radius:18px 22px 17px 24px!important;color:#355640!important;font-size:16px!important;max-width:650px;line-height:1.5}
dialog.game-dialog.menu-title{width:min(680px,calc(100% - 24px));border-width:22px!important;max-height:calc(100dvh - 20px)!important}.menu-title .menu-body{max-height:calc(100dvh - 64px)!important;border-radius:18px}.title-wordmark{background:transparent!important;border:0!important;padding:13px 14px}.title-wordmark>p{font-size:20px;letter-spacing:.3em;color:#5b7658}.title-wordmark>h3{font-size:29px!important;letter-spacing:.07em}.title-wordmark>span{font-size:16px;line-height:1.6}.title-painting{border-radius:21px 28px 20px 27px;box-shadow:inset 0 0 10px #d0bf9b66;margin:0 8px;height:250px}.title-actions{padding:16px 10px 6px}.title-actions .save-summary{font-size:15px;line-height:1.6;margin-bottom:10px}.title-actions .button{font-size:18px;min-height:55px}.title-secondary .button{font-size:15px;min-height:49px}.title-actions small{font-size:14px;color:#526b53}.title-pet{width:190px!important;height:190px!important}
@media(max-width:999px) and (min-width:601px){.hud-icon{width:58px;height:77px}.hud-icon>.painted-icon,.hud-icon>img{width:48px;height:48px}.hud-icon small{font-size:14px}.icons{gap:5px}}
@media(max-width:600px){dialog.game-dialog{border-width:18px!important;border-image-width:26px!important;width:calc(100% - 14px);max-height:calc(100dvh - 12px)}dialog.game-dialog header{min-height:50px;padding:1px 1px 9px}dialog.game-dialog h2{font-size:22px;letter-spacing:.02em}dialog.game-dialog header h2:before{font-size:14px;margin-right:6px}.menu-body{padding:10px 1px 13px!important}.menu-body h3{font-size:21px}.menu-body p{font-size:16px}.menu-body small{font-size:14px}.game-menu-dock{padding:9px 0 0}.game-menu-dock nav{gap:5px;padding:3px 0 0}.game-menu-dock nav button{width:52px;min-height:65px;min-width:44px}.game-menu-dock nav .painted-icon{width:40px;height:40px}.story-chart.map-islands{height:auto;aspect-ratio:1.65;background-size:100% 100%;margin:0 -5px 8px;border-radius:17px 24px 18px 25px}.story-chart .map-island{top:12%;height:80%;width:31%;padding-bottom:2px}.story-chart .island-0{left:0}.story-chart .island-1{left:34%}.story-chart .island-2{left:67%}.story-chart .map-island span:not(.painted-icon){font-size:16px;padding:1px 5px;line-height:1.6}.story-chart .map-island small{font-size:14px;padding:1px 4px}.island-spark{font-size:28px;top:7%;left:40%}.practice-buttons{gap:4px}.practice-buttons span:not(.painted-icon){font-size:14px;padding:1px 4px}.practice-buttons .painted-icon{width:48px;height:48px}.section-tabs button{padding:8px 13px;font-size:16px;min-height:46px}.section-tabs{gap:6px}.hud-icon{width:51px;height:72px}.hud-icon>.painted-icon,.hud-icon>img{width:43px;height:43px}.hud-icon small{font-size:14px;line-height:20px}.icons{gap:4px}#game:not([data-stage=home]) .icons [data-menu=bag]{display:none}.action kbd,.context-action kbd{display:none}.context.home{top:185px!important;left:50%!important;transform:translateX(-50%)!important;max-width:calc(100% - 28px);width:max-content;text-align:center;font-size:14px!important;padding:6px 11px}.courtyard-heading{top:101px;padding:8px 17px;min-width:240px}.courtyard-heading b{font-size:22px}.courtyard-heading span{font-size:16px}.courtyard-quest{width:100%;padding:8px 12px}.courtyard-quest span,.courtyard-quest small{font-size:14px}.courtyard-quest small{display:none}.courtyard-quest b{font-size:16px}.objective:not(:empty){top:103px!important}.objective b{font-size:16px!important}.objective small{font-size:14px!important}.context:not(.home){font-size:15px!important;max-width:calc(100% - 20px)}.title-painting{height:210px;margin:0 2px}.title-wordmark{padding:12px 2px}.title-wordmark>h3{font-size:25px!important}.title-wordmark>p{font-size:19px}.title-wordmark>span{font-size:16px}.title-actions{padding:12px 2px 5px}.title-actions .button{font-size:17px}.title-secondary .button{font-size:14px;padding:8px 5px}.title-pet{width:185px!important;height:185px!important}dialog.game-dialog.menu-title{border-width:17px!important;width:calc(100% - 14px)}}
@media(max-width:350px){dialog.game-dialog{border-width:15px!important;border-image-width:23px!important}dialog.game-dialog h2{font-size:20px}.hud-icon{width:47px;height:70px}.hud-icon>.painted-icon,.hud-icon>img{width:40px;height:40px}.icons{gap:3px}.pet-hud{max-width:144px}.story-chart .map-island span:not(.painted-icon){font-size:15px}.story-chart .map-island small{font-size:14px}.title-wordmark>h3{font-size:23px!important}.title-wordmark>span{font-size:15px}.title-painting{height:163px}.title-pet{width:156px!important;height:156px!important}.title-secondary{gap:6px}.title-actions .save-summary{font-size:14px}.title-actions small{font-size:14px}.title-wordmark{padding:8px 0}.title-actions{padding:10px 0 1px}.title-actions .button{min-height:50px}}
@media(max-height:500px){dialog.game-dialog{border-width:16px!important;border-image-width:24px!important;max-height:calc(100dvh - 10px)}dialog.game-dialog header{min-height:48px}.hud-icon{width:49px;height:61px}.hud-icon>.painted-icon,.hud-icon>img{width:38px;height:38px}.hud-icon small{font-size:14px}.icons{gap:5px}.context.home{top:176px!important;left:17px!important;transform:none!important;width:280px;max-width:280px;font-size:14px!important}.courtyard-heading{top:91px}.courtyard-heading b{font-size:20px}.courtyard-heading span{font-size:14px}.objective:not(:empty){top:7px!important}.objective b{font-size:15px!important}.objective small{font-size:14px!important}.game-menu-dock nav{display:none}.game-menu-dock .return-game{min-height:47px}.game-menu-dock{padding:7px 0 0}.story-chart.map-islands{height:285px;aspect-ratio:auto}.title-painting{height:100%;min-height:290px;margin:0 6px 0 0}.title-wordmark{padding:9px 7px 7px}.title-wordmark>h3{font-size:23px!important}.title-wordmark>p{font-size:17px}.title-wordmark>span{font-size:14px}.title-actions{padding:0 8px 6px}.title-actions .button{font-size:16px;min-height:49px}.title-secondary .button{font-size:14px;padding:6px}.title-actions .save-summary{font-size:14px}.title-actions small{font-size:14px}.title-pet{width:190px!important;height:190px!important}}
@media(pointer:coarse){.action kbd,.context-action kbd{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Switches have a full finger target; the track remains a compact game toggle. */
.setting input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:56px!important;height:44px!important;min-width:56px!important;min-height:44px!important;flex:none;cursor:pointer;background:none;border:0;margin:0;padding:0}
.setting input[type=checkbox]:before{content:'';position:absolute;left:3px;top:7px;width:50px;height:29px;border-radius:18px;background:#cbd5be;border:2px solid #91a880;box-shadow:inset 0 2px 3px #657d5055}
.setting input[type=checkbox]:after{content:'';position:absolute;left:6px;top:10px;width:23px;height:23px;border-radius:50%;background:linear-gradient(#fffdf0,#f2deb4);border:1px solid #b29a66;box-shadow:0 2px 2px #52654b66;transition:transform .16s}
.setting input[type=checkbox]:checked:before{background:#88b29a;border-color:#628e6f}.setting input[type=checkbox]:checked:after{transform:translateX(21px)}
.skill-choice button,.skill-choice button.selected,.skill-choice button:hover{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;font-size:16px;min-height:90px;gap:3px}
.skill-choice .painted-icon{width:64px;height:64px;filter:drop-shadow(0 3px 2px #3f655055)}.skill-choice button.selected .painted-icon{filter:drop-shadow(0 0 8px #e2b352aa) drop-shadow(0 3px 2px #3f655055)}

.passive-prompt{display:flex;align-items:center;gap:7px;pointer-events:none!important}.passive-prompt kbd{position:static!important;display:inline-block;margin-left:3px;min-width:26px;font-size:14px;line-height:22px;align-self:center}.passive-prompt span:not(.painted-icon){background:none!important;padding:0!important}.passive-prompt .painted-icon{width:34px;height:34px}.context .context-action{min-width:44px;min-height:44px}.context:not(.home):not(.interactable){max-width:min(650px,calc(100% - 24px));padding:7px 12px}

@keyframes storybook-open{from{opacity:0}to{opacity:1}}
dialog.game-dialog{animation:storybook-open .18s ease-out}
.story-chart.map-islands{background-size:cover;background-position:center 35%}

.movement-keys{display:none}.movement-keys kbd{background:linear-gradient(#fff9e6,#e7d9b0);border:1px solid #ad9766;border-bottom:3px solid #9b8a63;border-radius:9px;color:#385843;width:29px;height:30px;line-height:26px;text-align:center;font-size:16px;box-shadow:0 2px 3px #233f3433}.movement-keys>kbd{margin:0 auto 4px;display:block}.movement-keys>span{display:flex;gap:4px;justify-content:center}.movement-keys small{display:block;font-size:14px;background:#fff7e6ee;color:#345541;border-radius:10px;padding:3px 8px;margin-top:7px;white-space:nowrap}
@media(hover:hover) and (pointer:fine) and (min-width:701px){.joystick{display:none}.movement-keys{display:block;margin-top:10px}.move-side{gap:8px}.context:not(.home):not(.interactable){bottom:190px;max-width:630px}.coop-control{align-self:flex-start}}

/* No inherited skill tint behind the illustration. */
.action.skill,.action.primary,.action.skill:hover,.action.skill.held{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important}

/* Keep the resumed-journey shortcut from squeezing the companion status. */
@media(max-width:699px){#game[data-parked=true] .icons [data-menu=map]{display:none}}
@media(max-width:360px){.pet-hud img.portrait{display:none}.pet-hud b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pet-hud small{white-space:normal;line-height:17px}}
