/* Reuse the approved store artwork. Map geometry and icon art stay unchanged. */
:root{--cream:#fff5de;--ink:#5a3823;--wood:#9f6735;--line:#ddc59a;--red:#c25132;--green:#708e42;font-family:'BIZ UDPGothic','Yu Gothic',Meiryo,sans-serif;background:#dfd2b4}
html,body{width:100%;height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none}
body{padding:0;background:#dfd2b4}
img{image-rendering:pixelated}
.app{position:relative;width:min(100%,720px,75dvh);max-width:720px;height:100dvh;min-height:0;margin:0 auto;padding:0;border:0;border-radius:0;box-shadow:none;background:#f4e7c7;gap:0;overflow:hidden}
.app.expanded{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;margin:0;border:0;border-radius:0}
.heading{padding:max(9px,env(safe-area-inset-top)) 12px 7px;gap:8px;flex-shrink:0;min-height:49px}
.page-title{display:flex;align-items:center;gap:7px;min-width:0}
.page-title>img{width:24px;height:24px;object-fit:contain}
h1{font-size:17px;color:#93482f;letter-spacing:0;margin:0;white-space:nowrap}
.heading-actions{gap:6px;flex:none}
.quiet,.map-button,.categories button,.wallet-card,.growth,.map-panel,#detail,dialog{
 border:6px solid transparent;border-image:url('../store/art/ui-wood/panel.png') 12 / 6px / 0 stretch;border-radius:0;background:var(--cream);background-clip:padding-box;box-shadow:none;image-rendering:pixelated;
}
.quiet,.map-button{padding:5px 7px;min-height:33px;font-size:10px;font-weight:700;line-height:1.2}
.quiet:hover,.map-button:hover{background:#fff0ca;background-clip:padding-box}
.expand-icon{display:none}
.summary{display:grid;grid-template-columns:1.05fr 1fr;gap:7px;margin:0;padding:0 12px;border:0;flex:none}
.wallet-card,.growth{padding:4px 8px 5px;min-width:0;min-height:59px}
.wallet-card{background:#ffebbd;background-clip:padding-box}
.small-label{font-size:10px;line-height:1.25;color:#86633d;margin:0 0 3px}
.summary .small-label{display:flex;align-items:center;gap:5px;font-weight:700}
.small-label>img{display:block;flex:none;width:14px;height:14px;object-fit:contain}
.summary #money{font-size:20px;line-height:1.2;font-weight:800;color:#633c24;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.growth{display:grid;grid-template-columns:1fr auto;align-content:center;align-items:center;gap:2px 4px;width:auto;text-align:right;font-size:10px;color:#896842}
.growth .small-label{margin:0;white-space:nowrap}.growth>span{white-space:nowrap}.growth b{font-size:16px;color:#587839}.growth progress{grid-column:1/-1;height:5px;margin:3px 0 0;border-radius:1px;background:#e4d4af;box-shadow:inset 0 1px #c3a773}
.growth progress::-webkit-progress-bar{background:#e4d4af}.growth progress::-webkit-progress-value{background:#8eaa56;border-radius:0}
.categories{padding:7px 12px;gap:6px;flex:none}
.categories button{position:relative;display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:5px;padding:4px 3px 6px;min-height:40px;font-size:11px;font-weight:700;border-width:5px;border-image-width:5px;transition:none}
.categories button img{width:20px;height:20px;object-fit:contain}
.categories button:after{content:'';position:absolute;left:5px;right:5px;bottom:1px;height:3px;background:var(--category);pointer-events:none}
.categories button:hover{background:#ffedc5;background-clip:padding-box}
.workspace{display:flex;flex:1;min-height:0;flex-direction:column;gap:7px;padding:0 12px 8px;border:0;overflow:hidden}
.map-panel{flex:1;min-height:0;min-width:0;background:radial-gradient(circle,#d8c29788 .8px,transparent 1px) 0 0/24px 24px,#fff8e4;background-clip:padding-box}
.map-panel:after{display:none}
.skill-node{border:3px solid transparent;border-image:url('../store/art/ui-wood/panel.png') 12 / 5px / 0 stretch;border-radius:0;background:#fff0c7;background-clip:padding-box;box-shadow:0 2px #9c723829;image-rendering:pixelated}
.skill-node:before{display:none}
.skill-node.available{border-color:transparent;background:#fff0b7;background-clip:padding-box}
.skill-node.upgrade{border-color:transparent;background:#e5efc7;background-clip:padding-box}
.skill-node.max{border-color:transparent;background:#cce4db;background-clip:padding-box}
.skill-node.root,.skill-node.special{border-radius:0}
.skill-node.special{box-shadow:0 0 0 2px #fff9e9,0 0 0 4px #c99b42,0 3px 0 4px #b78a3b22}
.skill-node.special:before{display:none}
.skill-node.locked{border:2px dashed #b9b09a;border-image:none;background:#ece8d9;box-shadow:none;border-radius:9px}
.skill-node.special.locked{box-shadow:0 0 0 2px #fff9e9,0 0 0 4px #c8b58f}
.skill-node.preview{border:2px dashed #c5b692;border-image:none;background:#fff8e466;box-shadow:none;border-radius:9px}
.skill-node.selected{outline:3px solid #ce6748;outline-offset:5px}.skill-node.special.selected{outline-offset:8px}
.badge{border-radius:5px}.category-dot{border-radius:2px}
.map-top{top:10px;left:9px;right:9px;align-items:center}
.scene-label{font-size:9px;color:#8c6d44;background:#fff5deed;border:1px solid #dbc393;border-radius:4px;padding:5px 7px}
.map-top .map-button{font-size:9px;padding:4px 5px;min-height:30px;background:var(--cream);background-clip:padding-box}
.map-top .map-button[aria-pressed=true]{background:#f2dcaa;background-clip:padding-box;border-style:solid}
.map-bottom{bottom:10px;left:9px;right:9px;gap:8px;align-items:flex-end}
.map-bottom>div:first-child{flex:1;min-width:0}
.gesture-hint{font-size:9px;line-height:1.4;color:#997c51;background:#fff8e4e8}
.legend{font-size:9px;gap:5px 8px;line-height:1.4;margin-top:6px;color:#886c45;max-width:210px}
.legend span:before{width:6px;height:6px;margin-right:3px}
.camera-tools{flex:none;gap:5px}.view-tools{gap:5px}.view-tools .map-button{padding:4px 6px;font-size:9px;min-height:30px;background:var(--cream);background-clip:padding-box}
.zoom-tools{background:#fff5de;border:1px solid #b98d51;border-radius:4px;box-shadow:inset 0 2px #e0c697;overflow:hidden}
.zoom-tools button{width:31px;height:30px;font-size:17px;color:#84582d}.zoom-tools output{width:36px;font-size:9px;color:#795638}
#reopen{left:9px;bottom:92px;font-size:10px;min-height:32px;background:var(--cream);background-clip:padding-box}
#notice{bottom:100px;font-size:11px;border-radius:5px;background:#71503a;border-color:#dab780}
#detail{display:block;position:relative;flex:none;width:100%;min-height:0;max-height:min(330px,43dvh);padding:7px 10px 6px;overflow:auto;overscroll-behavior:contain}
.detail-header{display:flex;align-items:center;gap:9px;min-height:44px;margin-bottom:5px}
.detail-heading-copy{flex:1;min-width:0}
.detail-classification{gap:5px;font-size:10px;line-height:1.3;color:#97734b;margin-bottom:2px}
#detail-feature{border-radius:3px;padding:1px 4px;font-size:9px;color:#94672e;background:#ffedb6}
#detail-icon{width:43px;height:43px;padding:5px;border-radius:5px;margin:0;background:#fff9e9}
#detail-icon.special{border-radius:5px}
#detail-name{font-size:14px;line-height:1.4;color:#754328;overflow-wrap:anywhere}
#detail-state{font-size:10px;line-height:1.3;color:#718446;margin:2px 0 0}
#detail-close{align-self:flex-start;flex:none;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #c8a471;background:#f4e1b8;border-radius:4px;color:#8b603a;font-size:23px;line-height:1}
#effect{display:block;font-size:11px;line-height:1.6;min-height:0;overflow:visible;margin:0 0 6px;color:#795b39}
#growth-summary{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:5px 8px;margin:0 0 6px;border:1px solid #d8c291;border-radius:4px;background:#fffae9}
.growth-summary>span{font-size:10px;line-height:1.4;align-self:center;color:#96734a}
.growth-summary>div{margin:0;gap:5px;justify-content:flex-end;line-height:1.3}
.growth-summary>div>span{font-size:9px;color:#93744e}.growth-summary strong{font-size:15px;line-height:1.35;color:#64803e}
.growth-summary p{grid-column:1/-1;font-size:10px;line-height:1.4;margin:1px 0 0;color:#916c40}
.purchase{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:6px 0 0;border-top:1px solid #dfc89d}
.purchase>div{text-align:left;min-width:0}.purchase .small-label{font-size:9px;margin:0 0 2px}.purchase strong{font-size:17px;color:#8c5c2e;overflow-wrap:anywhere}.purchase strong.long{font-size:13px}
#buy,.primary{min-width:109px;min-height:37px;padding:7px 12px;border:2px solid #973d26;border-radius:4px;background:#bf5032;box-shadow:inset 0 2px #e98e61,0 2px #a45934;font-size:12px;color:#fffbea}
#buy:hover:not(:disabled),.primary:hover{background:#ce613d}
#buy:active:not(:disabled),.primary:active{transform:translateY(2px);box-shadow:inset 0 1px #e98e61}
#buy:disabled{background:#ded2b6;border-color:#bdaa88;color:#96805f;box-shadow:none}
.numbers{font-size:10px;line-height:1.6;margin:6px 0 0;padding:4px 0 0;border-top:1px dashed #dac7a0}
.numbers summary{font-size:10px;line-height:1.4;color:#9a764b}.numbers[open]{max-height:110px;overflow:auto}.numbers p{margin:7px 0}
#parent-hint{font-size:10px;line-height:1.6;margin:5px 0;color:#947249}.parent-link{font-size:10px;padding:0;line-height:1.7}.numbers #growth-context{font-size:10px;padding:0;margin:6px 0;border:0;line-height:1.6}
.bottom-tabs{flex:none;position:relative;display:flex;align-items:stretch;width:100%;height:calc(60px + env(safe-area-inset-bottom));padding:0 6% env(safe-area-inset-bottom);gap:5%;border:8px solid transparent;border-image:url('../store/art/ui-wood/counter.png') 18 fill / 8px / 0 stretch;image-rendering:pixelated}
.bottom-tabs a{flex:1;min-width:0;min-height:43px;display:flex;align-items:center;justify-content:center;gap:7px;padding:1px 5px;border:6px solid transparent;border-image:url('../store/art/ui-wood/tab-idle.png') 12 fill / 6px / 0 stretch;color:#79502d;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
.bottom-tabs a[aria-current]{border-image-source:url('../store/art/ui-wood/tab-active.png');color:#55371e}
.bottom-tabs a:active{transform:translateY(2px)}.bottom-tabs a:focus-visible{outline:3px solid #679e92;outline-offset:-2px}
.bottom-tabs a img{width:29px;height:29px;object-fit:contain}
.app.expanded .bottom-tabs{display:none}.app.expanded .heading{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:5px;min-height:42px}.app.expanded .summary{grid-template-columns:1fr 1fr}.app.expanded .wallet-card,.app.expanded .growth{min-height:45px;padding-top:2px;padding-bottom:2px}.app.expanded .summary #money{font-size:18px}.app.expanded .categories{padding-top:5px;padding-bottom:5px}.app.expanded .workspace{padding-bottom:max(8px,env(safe-area-inset-bottom))}
dialog{max-height:85dvh;overflow:auto;padding:18px;width:min(440px,calc(100% - 24px));color:var(--ink)}
.dialog-heading h2{font-size:18px;color:#754328}dialog p{color:#896744;font-size:12px}select{border-radius:4px;font-size:12px}dialog .primary{width:100%;margin-top:13px}dialog .quiet{width:100%}
dialog .dev-toggle{display:flex;align-items:center;gap:9px;margin:18px 0 14px;font-size:12px;line-height:1.5;cursor:pointer}dialog .dev-toggle input{width:18px;height:18px;margin:0;flex:none;accent-color:#708e42}
@media(max-width:370px){
 .heading{padding-left:9px;padding-right:9px}.page-title{gap:5px}.page-title>img{width:20px;height:20px}h1{font-size:15px}.heading-actions{gap:4px}.heading .quiet{font-size:9px;padding:4px 5px;min-height:32px}
 .summary{padding:0 9px;gap:6px}.summary #money{font-size:18px}.wallet-card,.growth{padding-left:6px;padding-right:6px}.growth{font-size:9px}.growth b{font-size:14px}.growth .small-label{font-size:9px;gap:3px}.summary .small-label>img{width:11px;height:11px}
 .categories{padding-left:9px;padding-right:9px;gap:5px}.categories button{gap:3px;font-size:10px}.categories button img{width:17px;height:19px}
 .workspace{padding-left:9px;padding-right:9px;gap:6px}.map-top{left:7px;right:7px}.map-bottom{left:7px;right:7px;gap:6px}.gesture-hint{font-size:8px}.legend{font-size:8px;gap:4px 6px}.view-tools .map-button{font-size:8px;padding:4px}.zoom-tools button{width:29px}.zoom-tools output{width:32px}
 #detail{padding:6px 8px;max-height:45dvh}.detail-header{gap:7px}#detail-icon{width:38px;height:38px}#detail-name{font-size:13px}#detail-state,.detail-classification{font-size:9px}#detail-feature{font-size:8px}#effect{font-size:10px}.growth-summary strong{font-size:14px}.growth-summary>span,.growth-summary p{font-size:9px}#buy{font-size:11px;min-width:101px}.purchase strong{font-size:16px}
 .bottom-tabs{gap:4%;padding-left:4%;padding-right:4%}.bottom-tabs a{font-size:11px;gap:5px;padding-left:2px;padding-right:2px}.bottom-tabs a img{width:25px;height:25px}
}
@media(max-height:600px){
 .heading{padding-top:5px;padding-bottom:4px;min-height:37px}.summary .wallet-card,.summary .growth{min-height:44px;padding-top:1px;padding-bottom:2px}.summary #money{font-size:17px}.categories{padding-top:4px;padding-bottom:4px}.categories button{min-height:33px;padding-top:2px;padding-bottom:3px}.categories button img{height:17px}
 #detail{max-height:45dvh}.detail-header{margin-bottom:3px}#effect{margin-bottom:4px}.gesture-hint,.scene-label{display:none}.map-top{justify-content:flex-end}.legend{font-size:8px}.map-bottom{bottom:7px}.bottom-tabs{height:calc(54px + env(safe-area-inset-bottom));border-width:6px;border-image-width:6px}.bottom-tabs a{min-height:40px}.workspace{padding-bottom:5px}
}
