/* Pixel Farm · unified main-game presentation. World geometry stays in scene styles. */
:root{--pf-ink:#24372f;--pf-muted:#778277;--pf-paper:#f0ebdc;--pf-card:#fbf8ed;--pf-forest:#142f29;--pf-deep:#0c201d;--pf-gold:#d8b776;--pf-line:#cfc9b2;--pf-ui:Inter,"Segoe UI",Arial,sans-serif;--pf-title:Georgia,"Times New Roman",serif}
body{background:#0c201d;color:var(--pf-ink)}
button,input,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #70d2b5;outline-offset:3px}
button{transition:background-color .16s,border-color .16s,box-shadow .16s}
body #game-loading{background:linear-gradient(90deg,#071b1ded,#142d2670),url('../../assets/ui/renewal/world-journal-v1.png') center/cover}
.loading-card{background:#102e29eb;border:1px solid #b39c69;border-radius:12px;padding:38px;backdrop-filter:blur(12px);box-shadow:0 30px 100px #0007;font-family:var(--pf-ui)}
.loading-card h1{font:32px/1.2 var(--pf-title);color:#fff2d6}.loading-brand{font:700 12px var(--pf-ui);letter-spacing:5px}.loading-hint{line-height:1.6}
body #profile-panel{position:fixed!important;left:20px!important;top:20px!important;width:298px!important;min-height:104px!important;padding:14px!important;border:1px solid #b79b63!important;border-radius:10px!important;background:linear-gradient(130deg,#1d3c32f5,#102b26f2)!important;box-shadow:0 10px 35px #00110e55,inset 0 1px #e9d6a333!important;grid-template-columns:57px minmax(0,1fr) 23px!important;gap:10px!important;font-family:var(--pf-ui)!important;backdrop-filter:blur(12px)}
body #profile-panel .profile-portrait{width:57px!important;height:67px!important;padding:3px!important;border:1px solid #b7975a!important;border-radius:6px!important;background:#0d2822!important;box-shadow:none!important}
body #profile-panel .profile-title{font:600 15px var(--pf-ui)!important;letter-spacing:.03em;color:#ffedc7!important;margin:0 0 7px!important;text-shadow:none!important}
body #profile-panel .profile-stat-row{gap:5px!important;margin:4px 0!important}body #profile-panel .profile-stat-icon{background:transparent!important;border:0!important;box-shadow:none!important;color:#cfb985!important;font-size:12px!important;width:13px!important}
body #profile-panel .profile-stat-bar{height:15px!important;border:1px solid #0a1a17!important;border-radius:4px!important;background:#091d19!important;box-shadow:none!important;overflow:hidden}
body #profile-panel .profile-stat-text{font:600 9px var(--pf-ui)!important;text-shadow:0 1px 2px #000!important;text-align:center!important}
body #profile-panel .profile-fill.health{background:linear-gradient(90deg,#9e3545,#db6971)!important}body #profile-panel .profile-fill.energy{background:linear-gradient(90deg,#a47b34,#e8ca7a)!important}
body #profile-panel .profile-currencies{gap:9px!important;margin-top:5px!important}body #profile-panel .profile-currency{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;font:600 10px var(--pf-ui)!important;color:#ead8ab!important}
body #profile-gear{border:1px solid #746747!important;background:#234337!important;color:#e9ce8e!important;box-shadow:none!important;border-radius:5px!important;font-size:15px!important;width:24px!important;height:25px!important}
body #minimap{position:fixed!important;top:20px!important;right:20px!important;width:166px!important;padding:10px!important;border:1px solid #a98f60!important;border-radius:10px!important;background:#142f29ec!important;box-shadow:0 8px 25px #00110e55!important;backdrop-filter:blur(10px)}
body #minimap::before{font:600 9px var(--pf-ui)!important;letter-spacing:3px!important;color:#d9c496!important;margin-bottom:7px!important}body #minimap-canvas{display:block!important;width:144px!important;height:114px!important;border-radius:5px}
#renewal-location{position:fixed;top:23px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;background:#102b27e8;border:1px solid #9c8c6455;padding:9px 18px;border-radius:6px;z-index:88;pointer-events:none;color:#e1ca95;box-shadow:0 5px 20px #0003}
#renewal-location>span{font-size:22px}#renewal-location small{display:block;font:600 8px var(--pf-ui);letter-spacing:3px;margin-bottom:3px}#renewal-location strong{font:16px var(--pf-title);color:#fff3d4}
body #market-top-button{position:fixed!important;top:81px!important;left:50%!important;transform:translateX(-50%)!important;border:1px solid #9a875d!important;border-radius:5px!important;padding:7px 13px!important;background:#17372ce8!important;color:#e2c790!important;box-shadow:0 4px 15px #00110e33!important}
body #market-top-button b{font:600 9px var(--pf-ui)!important;letter-spacing:1px}body #market-top-button .storefront-icon{width:20px;height:20px;transform:scale(.8)}
body #quick-hub{position:fixed!important;top:193px!important;right:20px!important;display:flex!important;flex-direction:column!important;gap:5px!important;width:150px!important;padding:0!important;background:none!important;z-index:88!important}
#quick-hub .renewal-nav-button,#quick-hub .progression-launch{border:1px solid #a993625c;background:#142f29e8;color:#f1e7ce;padding:10px 11px;border-radius:5px;box-shadow:0 3px 10px #0002;font:500 12px var(--pf-ui);display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;margin:0;min-height:37px}
#quick-hub .progression-launch{order:5;font-size:10px;color:#cdbb91}#quick-hub button:hover{background:#2d4e3e;border-color:#d8b776}#quick-hub kbd{font:10px var(--pf-ui);border:1px solid #ab966e55;background:#091e19;padding:2px 5px;border-radius:3px;color:#c1b58e}
body #inventory{position:fixed!important;left:50%!important;bottom:18px!important;transform:translateX(-50%)!important;display:flex!important;gap:6px!important;width:auto!important;padding:9px!important;border:1px solid #aa9364!important;border-radius:9px!important;background:#122d27ee!important;box-shadow:0 8px 30px #00100d88!important;backdrop-filter:blur(10px)}
body #inventory>.inventory-slot{width:49px!important;height:49px!important;min-width:0!important;border:1px solid #617361!important;border-radius:5px!important;background:linear-gradient(145deg,#3c5142,#243d32)!important;box-shadow:inset 0 1px #d1c99b1a!important}
body #inventory>.inventory-slot.inventory-empty{background:#294035!important;border-color:#596e5855!important}body #inventory>.inventory-slot.selected{border-color:#efd08c!important;box-shadow:0 0 0 1px #e0b45b,0 0 18px #e0b45b30!important}
body #inventory .inventory-key{color:#d1ba87!important;font:9px var(--pf-ui)!important;top:3px!important;left:4px!important}
body #inventory .item-icon,body #inventory img{max-width:37px!important;max-height:37px!important}body #inventory .inventory-count{font:600 9px var(--pf-ui)!important;background:#0a221cdd!important;color:#f0dfb7!important;padding:2px 4px!important;border-radius:3px!important}
body #rock-coordinates{display:none!important}
body #player-nameplate{font:600 9px var(--pf-ui);padding:3px 8px;background:#17352be8;border:1px solid #d1b67877;border-radius:4px;text-shadow:0 1px #000;letter-spacing:.06em}
body #profile-panel{height:auto!important;align-items:start!important}
body #profile-panel .profile-main{display:grid!important;grid-template-rows:auto 16px 16px 17px!important;gap:3px!important;align-content:start!important}
body #profile-panel .profile-stat-row{grid-template-columns:16px minmax(0,1fr)!important;min-height:0!important;margin:0!important}
body #profile-avatar{width:100%!important;height:100%!important;object-fit:cover}
/* Mochila: the original item nodes and actions are retained. */
body #inventory-panel{position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:min(980px,94vw)!important;height:min(720px,88dvh)!important;max-height:88dvh!important;padding:0!important;border:1px solid #9e906c!important;border-radius:10px!important;background:var(--pf-paper)!important;box-shadow:0 28px 100px #00110cb3!important;grid-template-columns:minmax(0,1fr) 260px!important;grid-template-rows:83px auto 56px minmax(0,1fr) auto!important;overflow:hidden!important;font:13px var(--pf-ui)!important;z-index:280!important}
body #inventory-panel .inventory-heading{grid-column:1/-1!important;min-height:0!important;padding:20px 26px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;border:0!important;border-bottom:1px solid #ad945a!important;background:linear-gradient(110deg,#193e31,#102b26)!important;box-shadow:none!important;border-radius:0!important;text-shadow:none!important;cursor:default!important}
body #inventory-panel .inventory-heading>span{font:29px var(--pf-title)!important;letter-spacing:0!important;color:#ffedc6!important}
body #inventory-panel .inventory-heading small{display:block;font:600 8px var(--pf-ui);letter-spacing:2px;color:#c4b58d;margin-bottom:6px}
body #inventory-panel .inventory-close{position:static!important;width:35px!important;height:35px!important;border:1px solid #a28d5b88!important;border-radius:5px!important;background:#204235!important;color:#e8d4a6!important;box-shadow:none!important;font:20px var(--pf-ui)!important}
body #inventory-panel .inventory-tabs{grid-column:1/-1!important;display:flex!important;gap:0!important;flex-wrap:nowrap!important;overflow:auto!important;padding:0 20px!important;background:#e5dfcd!important;border:0!important;border-bottom:1px solid #cec5ad!important}
body #inventory-panel .inventory-tab{flex:0 0 auto!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:none!important;color:#777461!important;font:600 10px var(--pf-ui)!important;padding:16px 12px!important;box-shadow:none!important;letter-spacing:.03em}
body #inventory-panel .inventory-tab.active{color:#20553e!important;border-bottom-color:#47725b!important;background:#f3eddf!important}
.renewal-bag-tools{grid-column:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 20px;background:#ede7d7}.renewal-bag-tools label{display:flex;align-items:center;gap:8px;flex:1;padding:7px 10px;border:1px solid #c8c1ac;border-radius:5px;background:#faf6e9}.renewal-bag-tools label>span{font-size:19px;color:#667661}.renewal-bag-tools input{min-width:0;width:100%;border:0;background:none;color:#2f4738;font:12px var(--pf-ui);outline-offset:5px}.renewal-bag-total{font-size:10px;white-space:nowrap;color:#777b68}
body #inventory-panel .inventory-bag{grid-column:1!important;grid-row:4!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-rows:min-content!important;align-content:start!important;gap:10px!important;padding:12px 20px 22px!important;overflow:auto!important;background:none!important;border:0!important;box-shadow:none!important;min-height:0!important}
body #inventory-panel .inventory-bag .inventory-slot{position:relative!important;display:grid;place-items:center;aspect-ratio:1;min-height:0!important;width:100%!important;height:auto!important;border:1px solid #c2bea7!important;border-radius:7px!important;background:radial-gradient(ellipse at 50% 30%,#fffcf0,#dddcc8)!important;box-shadow:inset 0 1px #fff,0 2px 4px #263d2910!important;transition:background .15s,box-shadow .15s;cursor:pointer}
body #inventory-panel .inventory-bag .inventory-slot:hover{border-color:#699078!important;background:#e2ead8!important}body #inventory-panel .inventory-bag .inventory-slot.selected{border:2px solid #426c52!important;background:#d5e2ca!important;box-shadow:0 0 0 2px #8fa77c55!important}
body #inventory-panel .inventory-bag .item-icon,body #inventory-panel .inventory-bag img{width:70%!important;height:70%!important;max-width:58px!important;max-height:58px!important;position:static!important;transform:none!important;object-fit:contain!important;filter:drop-shadow(0 3px 2px #132d2526)}
body #inventory-panel .inventory-count{position:absolute!important;right:3px!important;bottom:3px!important;font:700 10px var(--pf-ui)!important;color:#ffefc4!important;text-shadow:none!important;background:#345241!important;border:0!important;border-radius:3px!important;padding:2px 5px!important}
body #inventory-panel .inventory-slot[hidden],body #inventory-panel .inventory-slot.filtered-out,body #inventory-panel .inventory-slot.renewal-search-hidden{display:none!important}
.renewal-item-detail{grid-column:2;grid-row:3/5;overflow:auto;background:linear-gradient(#f8f3e5,#e6e0cb);padding:22px;border-left:1px solid #ccc3a9;color:#3b4a38}
.renewal-detail-icon{width:125px;height:125px;margin:10px auto 25px;border-radius:50%;background:radial-gradient(#ece9c6,#f9f4df00);display:grid;place-items:center}.renewal-detail-icon .item-icon,.renewal-detail-icon img{position:static!important;width:94px!important;height:94px!important;max-height:none!important;max-width:none!important;transform:none!important;object-fit:contain!important;filter:drop-shadow(0 6px 3px #20392925)}
.renewal-item-detail small{text-transform:uppercase;letter-spacing:2px;color:#82805e;font:600 9px var(--pf-ui)}.renewal-item-detail h3{font:25px/1.15 var(--pf-title);margin:8px 0 14px;color:#294e3b}.renewal-item-detail p{font:12px/1.7 var(--pf-ui);color:#7b7a63}.renewal-item-detail dl{border-top:1px solid #d4ccb3;padding-top:12px}.renewal-item-detail dl>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;font-size:11px}.renewal-item-detail dd{margin:0;font-weight:600;color:#345d43}.renewal-item-detail button{background:#345b42;border:1px solid #23422e;border-radius:4px;padding:10px;color:#f7e9c9;font:600 12px var(--pf-ui);cursor:pointer}
.renewal-detail-empty{margin-top:30px;text-align:center}.renewal-detail-empty>span{font:60px var(--pf-title);color:#b6ba96}.renewal-detail-empty strong{font:22px var(--pf-title);display:block;color:#5b7053}
body #inventory-panel .inventory-footer{grid-row:5!important;grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:8px!important;padding:14px 20px!important;border:0!important;border-top:1px solid #c5bba0!important;background:#e3ddc9!important;border-radius:0!important;box-shadow:none!important}
body #inventory-panel .inventory-weight{flex:1;min-width:0;color:#6b765e!important;font:10px var(--pf-ui)!important;background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
body #inventory-panel .inventory-action{font:600 10px var(--pf-ui)!important;padding:10px 12px!important;min-width:0!important;min-height:36px!important;border:1px solid #9fa58c!important;background:#f8f2de!important;color:#39553c!important;border-radius:4px!important;box-shadow:none!important;text-shadow:none!important}
body #inventory-panel #inventory-discard{color:#985d4c!important;border-color:#cba893!important}body #inventory-panel #inventory-trash{min-width:33px!important}
/* Ofícios, shops, crafting and dialogs share materials, typography and spacing. */
body #skills-panel{position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:min(810px,94vw)!important;max-height:88dvh!important;height:auto!important;border:1px solid #9e906c!important;border-radius:10px!important;background:var(--pf-paper)!important;color:#2f4938!important;padding:0!important;overflow:auto!important;box-shadow:0 28px 100px #00110cb3!important;z-index:280!important}
body #skills-panel .skills-title{position:sticky;top:0;z-index:2;padding:20px 24px!important;background:linear-gradient(110deg,#193e31,#102b26)!important;border:0!important;border-bottom:1px solid #ad945a!important;box-shadow:none!important;color:#f4dfb5!important;cursor:default!important}
body #skills-panel .skills-title-copy strong{font:29px var(--pf-title)!important;letter-spacing:0!important;text-shadow:none!important}body #skills-panel .skills-title-copy small{font:600 8px var(--pf-ui)!important;letter-spacing:2px;color:#c6b38a!important}body #skills-panel .skills-title-mark{border:1px solid #ad945a55!important;background:#203e30!important;color:#d7bd83!important;box-shadow:none!important}body #skills-panel .skills-drag-hint{display:none!important}
body #skills-panel .skills-intro{font:13px/1.6 var(--pf-ui)!important;color:#77806b!important;padding:5px 24px!important;background:none!important;border:0!important}
body #skills-panel .skills-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;padding:8px 24px 18px!important}
body #skills-panel .skill-row{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;gap:13px!important;padding:15px!important;min-height:115px!important;border:1px solid #c8c5ac!important;border-radius:7px!important;background:#faf6e8!important;box-shadow:0 3px 10px #33452608!important}
body #skills-panel .skill-portrait{width:68px!important;height:77px!important;background:radial-gradient(#dbdec1,#d3d8b800)!important;border:0!important;box-shadow:none!important;font-size:42px;color:#467657;text-align:center}
body #skills-panel .skill-portrait img{position:static!important;width:100%!important;height:100%!important;object-fit:contain!important}
body #skills-panel .skill-heading>span{font:20px var(--pf-title)!important;color:#34563f!important;text-shadow:none!important}body #skills-panel .skill-level{font:600 10px var(--pf-ui)!important;background:#e6ead4!important;color:#5d774b!important;border:1px solid #c6d0ae!important;border-radius:4px;padding:4px!important}
body #skills-panel .skill-details p{font:11px/1.5 var(--pf-ui)!important;color:#82836e!important;margin:7px 0!important}body #skills-panel .skill-progress{height:5px!important;border:0!important;border-radius:3px!important;background:#dadbc6!important;box-shadow:none!important}body #skills-panel .skill-progress>span{background:linear-gradient(90deg,#6e9564,#c2cc82)!important}body #skills-panel .skills-help{font:10px var(--pf-ui)!important;color:#7c816d!important;background:#e4e2ce!important;margin:0!important;padding:12px 24px!important}
body #skills-panel button{border:1px solid #9baf86;background:#e2e9d0;color:#365e3f;border-radius:4px;padding:5px 8px;font:600 10px var(--pf-ui);cursor:pointer}
body #character-panel,body #settings-panel{background:var(--pf-paper)!important;border:1px solid #ae9b72!important;border-radius:9px!important;color:#35543e!important;box-shadow:0 25px 90px #00110c99!important;font-family:var(--pf-ui)!important}
body #character-panel h2,body #settings-panel h2{font:25px var(--pf-title)!important;text-shadow:none!important;color:#35543e!important;letter-spacing:0!important}body #character-panel label,body #character-panel .custom-avatar-title{color:#526647!important}body #character-panel .character-preview-wrap{background:radial-gradient(ellipse at center,#bdcba0,#eae5d0)!important;border:1px solid #c2c2a3!important;border-radius:7px!important}
body #character-panel input,body #settings-panel select{color:#2e4f38!important;background:#faf6e7!important;border:1px solid #b9b79a!important}body #character-panel button:not(.character-swatch){box-shadow:none!important;border:1px solid #acb08e!important;border-radius:4px!important;background:#e2e6cc!important;color:#3e5e3e!important;text-shadow:none!important}
body .village-shop-dialog,body #fisher-dialog{padding:0!important;width:min(780px,94vw)!important;max-height:88dvh!important;overflow:auto!important;border:1px solid #a28b60!important;border-radius:10px!important;background:var(--pf-paper)!important;color:#354c39!important;font:13px/1.6 var(--pf-ui)!important;box-shadow:0 24px 100px #00110caa!important}
body .village-shop-dialog>header,body #fisher-dialog>h2{background:linear-gradient(110deg,#1b3c30,#122d26)!important;margin:0!important;padding:22px 25px!important;color:#f5e2bd!important;border-bottom:1px solid #b2945d!important;font:27px var(--pf-title)!important;text-shadow:none!important}
body .village-shop-dialog>header h2{font:27px var(--pf-title)!important;margin:0!important;color:#f5e2bd!important}body .village-shop-dialog>p,body #fisher-dialog>p{padding:0 25px!important;color:#79806b!important}
body .village-shop-dialog footer{padding:18px 25px!important;background:#e4dfca!important;border-top:1px solid #c5bca2!important}body .village-shop-dialog button,body #fisher-dialog button{border:1px solid #a6ad8b!important;border-radius:5px!important;background:#f7f2df!important;color:#365840!important;box-shadow:none!important;text-shadow:none!important;font-family:var(--pf-ui)!important;cursor:pointer}body .seed-shop-list{gap:14px!important;padding:10px 24px 22px!important}body .seed-shop-list>button{padding:18px 12px!important;background:radial-gradient(ellipse at 50% 15%,#e3e7c9,#faf6e8)!important}body .seed-shop-list strong{font:19px var(--pf-title)!important}body .seed-shop-list .item-icon{width:60px!important;height:60px!important}body .seed-shop-list small,body .seed-shop-list em{color:#7a866b!important}body .seed-shop-list b{color:#8b7339!important}body #fisher-fish-list{padding:16px 25px!important}body #fisher-dialog .fisher-row{background:#fcf8e9!important;border:1px solid #c6c3a8!important;border-radius:6px!important;padding:12px!important;margin-bottom:8px!important;color:#335744!important}body #fisher-dialog .fisher-empty{font:15px/1.7 var(--pf-ui)!important;padding:30px!important;text-align:center;color:#788369!important}
/* Generated forge markup uses its original functional controls. */
body #blacksmith-dialog.forge-dialog,body #blacksmith-dialog.forge-ui{background:var(--pf-paper)!important}
body #blacksmith-dialog{border-color:#95835d!important;border-radius:10px!important;box-shadow:0 25px 100px #00110caa!important}
body #blacksmith-dialog .forge-header{background:linear-gradient(110deg,#244235,#112a24)!important;border-color:#a58e5c!important;color:#f4dfb4!important}
body #blacksmith-dialog .forge-header h2{font:27px var(--pf-title)!important;text-shadow:none!important;letter-spacing:0!important}body #blacksmith-dialog .forge-header p{font:12px var(--pf-ui)!important;color:#c4b58e!important}
body #blacksmith-dialog .forge-left,body #blacksmith-dialog .forge-right{background:#e6e0cc!important;color:#506247!important;border-color:#c6bda0!important}body #blacksmith-dialog .forge-center{background:#f2edde!important;background-image:none!important;color:#37523f!important}
body #blacksmith-dialog .forge-product-head,body #blacksmith-dialog .forge-materials,body #blacksmith-dialog .forge-preview,body #blacksmith-dialog .forge-right>section{background:#faf5e6!important;border:1px solid #cdc4a9!important;border-radius:6px!important;box-shadow:none!important;color:#526249!important}
body #blacksmith-dialog h3{color:#385a40!important;text-shadow:none!important;font-family:var(--pf-ui)!important}body #blacksmith-dialog .forge-product-head h3{font:26px var(--pf-title)!important}body #blacksmith-dialog .forge-product-head p{color:#7b7d65!important}body #blacksmith-dialog .forge-product-head li span{color:#707e63!important}body #blacksmith-dialog .forge-product-head li strong{color:#385940!important}body #blacksmith-dialog .forge-recipe-row{background:#f6f0df!important;border:1px solid #cbc4a8!important;border-radius:5px!important;box-shadow:none!important;color:#496443!important}body #blacksmith-dialog .forge-recipe-row.active{background:#dbe4c6!important;border-color:#729167!important}body #blacksmith-dialog .forge-preview-stage{background:radial-gradient(#d5e1bf,#eee9d5)!important;border:0!important;box-shadow:none!important}body #blacksmith-dialog .forge-craft-footer{background:#dedcc6!important;border-color:#bab898!important}body #blacksmith-dialog button{font-family:var(--pf-ui)!important;text-shadow:none!important;box-shadow:none!important;border-radius:4px!important}body #blacksmith-dialog .forge-action{background:#365f42!important;color:#fff0c8!important;border:1px solid #1f452f!important}
body .profession-window{background:var(--pf-paper);color:#37523d;border:1px solid #a59060;border-radius:10px;box-shadow:0 25px 90px #00110c99;font:13px/1.6 var(--pf-ui)}body .profession-window h2{font:29px var(--pf-title);color:#31503c}body .profession-note{color:#788068}body .profession-recipes article{background:#faf7e9;border-width:1px;border-left-width:3px;border-radius:6px}body .profession-recipes h3{color:#3e5e41}body .profession-recipes small{color:#7e8168}body .profession-window button{background:#385d42;color:#f9edcc;border:1px solid #244d30}body .profession-active{background:#dfe6cd;color:#40593c}body .profession-utensil{border-color:#babd9a;background:#ece8d5}body .profession-window .missing{color:#ab5745}
body :is(#inventory,#inventory-panel) .item-icon.hoe{background:url('../../assets/forge-ui/individual/stone-hoe.png') center/contain no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;clip-path:none!important}
body :is(#inventory,#inventory-panel) .item-icon.water{background:url('../../assets/forge-ui/individual/iron-watering-can.png') center/contain no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important;clip-path:none!important}
body :is(#inventory,#inventory-panel) :is(.item-icon.hoe,.item-icon.water)::before,body :is(#inventory,#inventory-panel) :is(.item-icon.hoe,.item-icon.water)::after{display:none!important}
body #blacksmith-dialog{background:#eee8d5!important;color:#486343!important;font-family:var(--pf-ui)!important}
body #blacksmith-dialog .forge-shell{padding:14px!important;gap:14px!important}
body #blacksmith-dialog .forge-mode-tabs{background:#d7dfc2!important}
body #blacksmith-dialog :is(.forge-mode-tabs button,.forge-category){background:#f2edda!important;border:1px solid #c1c4a1!important;color:#5d7650!important}
body #blacksmith-dialog :is(.forge-mode-tabs button.active,.forge-category.active){background:#527149!important;color:#fff0c8!important;border-color:#435d39!important}
body #blacksmith-dialog :is(.forge-left h3,.forge-right h3,.forge-materials h3,.forge-preview h3){background:#e4e7cf!important;color:#5d714b!important;border-bottom:1px solid #ccd0ab!important;font:600 11px var(--pf-ui)!important;letter-spacing:1px;padding:14px!important}
body #blacksmith-dialog :is(.forge-material-card,.forge-queue-empty,.forge-queue-locked){background:#efedd9!important;color:#7d8969!important;border:1px solid #bfc8a1!important;border-radius:5px!important}
body #blacksmith-dialog .forge-material-card.missing{border-color:#caaa82!important}body #blacksmith-dialog .forge-material-card.missing>span:last-child{color:#ae604b!important}
body #blacksmith-dialog :is(.forge-info p,.forge-fuel p){color:#7a866a!important;font:12px/1.7 var(--pf-ui)!important}body #blacksmith-dialog .forge-fuel>div>span>b{color:#5d7d42!important}
body #blacksmith-dialog .forge-craft-footer>div>span{color:#7e8d69!important;font:9px var(--pf-ui)!important;letter-spacing:.6px}body #blacksmith-dialog .forge-quantity button{background:#f3eedc!important;color:#4d6e42!important;border-color:#b0bb94!important}
body #blacksmith-dialog .forge-queue-item{background:#e0e6c7!important;color:#4b6c40!important;border:1px solid #9caf78!important;border-radius:4px!important}
@media(min-width:821px) and (max-width:1100px){body #blacksmith-dialog .forge-shell{grid-template-columns:210px minmax(0,1fr)!important}body #blacksmith-dialog .forge-main-icon{width:80px!important}body #blacksmith-dialog .forge-product-head{grid-template-columns:80px minmax(0,1fr)!important}}
/* Adventure journal: native modal keeps keyboard focus and world input contained. */
#adventure-journal{width:min(1150px,95vw);height:min(850px,92dvh);max-width:none;max-height:94dvh;margin:auto;padding:0;border:1px solid #b99b63;border-radius:12px;background:var(--pf-paper);color:var(--pf-ink);box-shadow:0 30px 120px #0009;font:14px/1.5 var(--pf-ui);overflow:hidden}
#adventure-journal:not([open]){display:none}#adventure-journal::backdrop{background:#071d19ad;backdrop-filter:blur(5px)}#adventure-journal *{box-sizing:border-box}#adventure-journal img{position:static;object-fit:contain;image-rendering:auto}#adventure-journal button{cursor:pointer;font-family:var(--pf-ui)}
.journal-frame{height:100%;display:grid;grid-template-rows:78px minmax(0,1fr) 52px}.journal-header{background:linear-gradient(105deg,#1c3e31,#112d26);border-bottom:1px solid #c1a269;display:flex;justify-content:space-between;align-items:center;padding:0 25px}.journal-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#f4dfae;font:600 17px var(--pf-ui);letter-spacing:3px}.journal-brand>span{font-size:31px;color:#d8b776}.journal-brand small{display:block;font:500 8px var(--pf-ui);letter-spacing:2px;color:#aebc9a;margin-top:5px}.journal-close{width:36px;height:36px;border:1px solid #b29c6255;border-radius:5px;background:#264538;color:#e6cea0;font-size:24px}.journal-close:hover{background:#405e48}
.journal-layout{display:grid;grid-template-columns:215px minmax(0,1fr);min-height:0}.journal-nav{padding:25px 15px;display:flex;flex-direction:column;gap:7px;background:#19382d;color:#f0e4c6;border-right:1px solid #a2916666}.journal-nav>button{display:flex;gap:11px;align-items:center;text-align:left;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:5px;background:transparent;color:#b6c3a8;font-size:12px}.journal-nav>button>span{font:23px var(--pf-title);width:25px;text-align:center;color:#9fab80}.journal-nav>button:hover{background:#2a4c39;color:#fff1c9}.journal-nav>button[aria-current=page]{border-color:#b39c5755;background:linear-gradient(90deg,#46573b,#304b35);color:#ffe1a4}.journal-nav>button[aria-current=page]>span{color:#e8c074}.journal-nav-bottom{margin-top:auto;border-top:1px solid #acaf7930;padding:30px 10px 0}.journal-nav-bottom>span{font:600 8px var(--pf-ui);letter-spacing:1.5px;color:#adac7c}.journal-nav-bottom p{font:italic 15px/1.6 var(--pf-title);color:#9aac8d}
.journal-page{min-width:0;overflow:auto;overscroll-behavior:contain;padding:28px 32px;background:linear-gradient(130deg,#f6f0df,#ede8d9);scrollbar-color:#b5b89a transparent;scrollbar-width:thin}.journal-page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.journal-kicker{font:600 8px var(--pf-ui);letter-spacing:2px;color:#93916d}.journal-page h1{font:34px/1.15 var(--pf-title);margin:6px 0 0;color:#284e3a}.journal-page-number{color:#a3a384;font:10px var(--pf-ui)}.journal-page h2,.journal-page h3{font-family:var(--pf-title)}.journal-hero{min-height:240px;display:flex;align-items:center;background:linear-gradient(90deg,#112e26ed 0%,#142f2570 50%,#102b2410),url('../../assets/ui/renewal/world-journal-v1.png') 50% 45%/cover;border-radius:8px;border:1px solid #9d9c71;padding:30px;color:#fbeac6;box-shadow:0 8px 22px #3e4e3420}.journal-hero small{font:600 8px var(--pf-ui);letter-spacing:2px;color:#d5c596}.journal-hero h2{font:40px/1 var(--pf-title);margin:13px 0}.journal-hero p{font:13px/1.6 var(--pf-ui);color:#d0d3b3}.journal-hero button{background:#e5c17d;color:#203f2d;border:1px solid #f9d995;border-radius:4px;padding:10px 16px;font:600 11px var(--pf-ui);display:flex;gap:25px}
.journal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.journal-stat{padding:16px 18px;background:#fbf7e9;border:1px solid #d2ccb5;border-radius:6px}.journal-stat small{display:block;font:500 9px var(--pf-ui);text-transform:uppercase;letter-spacing:1px;color:#8b8b6d}.journal-stat strong{display:block;font:28px var(--pf-title);color:#30583d;margin-top:7px}.journal-stat em{font:12px var(--pf-ui);font-style:normal;color:#8d9977}
.journal-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:26px 0 15px}.journal-section-title h2{font:23px var(--pf-title);margin:0;color:#34543b}.journal-section-title>span{font:10px var(--pf-ui);color:#939273}.journal-section-title>button{border:0;background:none;color:#64804f;font-size:11px}.journal-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.journal-feature{display:flex;gap:12px;align-items:center;text-align:left;padding:15px;border:1px solid #cfccb3;border-radius:6px;background:#faf5e5;color:#36543b}.journal-feature:hover{background:#e4ead3;border-color:#9daf88}.journal-feature img{width:65px;height:65px;filter:drop-shadow(0 5px 2px #20392922)}.journal-feature h3{font:18px var(--pf-title);margin:0 0 6px}.journal-feature p{font:11px/1.5 var(--pf-ui);color:#8b8b71;margin:0}.journal-feature>span{margin-left:auto;color:#9d996c}
.journal-footer{display:flex;align-items:center;gap:14px;background:#e1ddc8;border-top:1px solid #c6bfa2;padding:0 24px;color:#747e62;font:10px var(--pf-ui)}.journal-footer>span:first-child{margin-right:auto}.journal-footer>span:last-child{margin-left:10px}.journal-footer button{background:none;border:0;color:#4c6b43;font:600 11px var(--pf-ui);padding:7px}.journal-footer kbd{font:9px var(--pf-ui);padding:2px 4px;border:1px solid #afba95;border-radius:3px;margin-left:6px}
.journal-filters{display:flex;gap:12px;margin:0 0 22px}.journal-filters[hidden]{display:none}.journal-filters label{display:flex;align-items:center;flex:1;border:1px solid #c3c5a8;border-radius:5px;background:#fcf8e9;padding:9px 12px;gap:14px}.journal-filters label>span{font-size:10px;color:#849176}.journal-filters input{min-width:0;width:100%;border:0;background:none;font:12px var(--pf-ui);color:#385940}.journal-filters select{border:1px solid #c3c5a8;border-radius:5px;background:#f8f3e2;color:#526449;padding:9px;font:12px var(--pf-ui)}
.journal-callout{border-left:3px solid #8c9e66;background:#e5e8d2;padding:18px 21px;margin-bottom:22px;border-radius:0 6px 6px 0}.journal-callout strong{font:22px var(--pf-title);color:#476245}.journal-callout p{font:12px/1.7 var(--pf-ui);color:#758061;margin:7px 0 0}.journal-callout small{font:11px/1.6 var(--pf-ui);color:#6b8b79}.fish-callout{background:#dce8da;border-color:#75a891}
.journal-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.journal-item{border:1px solid #d0c9ad;border-radius:8px;background:#faf6e8;overflow:hidden}.journal-item-art{height:145px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 70%,#d5ddbd,#f0eedb);border-bottom:1px solid #d0c9ad55}.journal-item-art img{width:85%;height:120px;filter:drop-shadow(0 8px 4px #1d342a26)}.journal-item[data-rarity=rare] .journal-item-art{background:radial-gradient(#c7e0d7,#e1e9d9)}.journal-item[data-rarity=epic] .journal-item-art{background:radial-gradient(#d8cddd,#e7e3dc)}.journal-item[data-rarity=legendary] .journal-item-art{background:radial-gradient(#eed69a,#eee6cb)}.journal-item[data-rarity=divine] .journal-item-art,.journal-item[data-rarity=celestial] .journal-item-art{background:radial-gradient(#abd8da,#e1ecdd)}.journal-item-copy{padding:16px}.journal-item h3{font:20px/1.15 var(--pf-title);color:#335a40;margin:9px 0 14px}.journal-item p{font:12px/1.7 var(--pf-ui);color:#828269}.journal-rarity{font:700 8px var(--pf-ui);letter-spacing:1px;text-transform:uppercase;color:#7d896d}.journal-rarity[data-rarity=uncommon]{color:#4b8753}.journal-rarity[data-rarity=rare]{color:#407b98}.journal-rarity[data-rarity=epic]{color:#8d5e9d}.journal-rarity[data-rarity=legendary]{color:#a37c25}.journal-rarity[data-rarity=divine],.journal-rarity[data-rarity=celestial]{color:#46989a}.journal-item dl{margin:12px 0 0}.journal-item dl>div{display:flex;justify-content:space-between;gap:6px;border-top:1px solid #d9d2bb;padding:8px 0;font:10px var(--pf-ui)}.journal-item dt{color:#8b8b71}.journal-item dd{margin:0;color:#4f714a;font-weight:600}.journal-item button{border:0;background:none;padding:10px 0 0;color:#648448;text-align:left;font:600 10px var(--pf-ui)}.journal-empty{text-align:center;padding:30px 20px;background:#ecebd8;border:1px dashed #bbc4a1;border-radius:6px;color:#8b9476}.journal-empty>span{font:40px var(--pf-title);color:#a4b491}.journal-empty h3{font:21px var(--pf-title);color:#56724c;margin:9px}.journal-empty p{font:12px/1.8 var(--pf-ui);max-width:400px;margin:auto}
.journal-character{display:grid;grid-template-columns:235px minmax(0,1fr);gap:25px}.journal-paperdoll{background:linear-gradient(#284632,#102e27);border:1px solid #a4a075;border-radius:8px;padding:22px 18px;text-align:center;color:#e8d9ab;align-self:start}.journal-paperdoll>small{font:600 8px var(--pf-ui);letter-spacing:2px;color:#afbb90}.journal-paperdoll h2{font:27px var(--pf-title);margin:8px 0}.journal-avatar-stage{height:245px;background:radial-gradient(ellipse at 50% 80%,#adbe7766,#14302500 65%);position:relative;display:grid;place-items:center}.journal-avatar-stage:after{content:'';position:absolute;width:90px;height:12px;background:#071e17aa;border:1px solid #93a76844;bottom:12px;border-radius:50%;z-index:0}.journal-avatar-stage canvas{position:relative;z-index:1;width:140px;height:210px;image-rendering:pixelated}.journal-paperdoll button{background:#4a6240;border:1px solid #b4ac7455;border-radius:4px;padding:9px;color:#ebdfbc;font:10px var(--pf-ui)}.journal-current-tool{margin-top:25px;border-top:1px solid #9fa96d40;padding-top:20px}.journal-current-tool small{display:block;font:8px var(--pf-ui);letter-spacing:1px;color:#a7b78b}.journal-current-tool strong{display:block;font:17px var(--pf-title);margin:8px}.journal-character .journal-section-title{margin-top:0}.journal-equipment{display:grid;grid-template-columns:1fr 1fr;gap:12px}.journal-equipment article{display:flex;flex-direction:column;align-items:center;padding:15px;border:1px solid #cac5aa;border-radius:6px;background:#faf5e4;text-align:center}.journal-equipment article>small{text-transform:uppercase;font:600 9px var(--pf-ui);letter-spacing:2px;color:#929171}.journal-equipment-icon{display:grid;place-items:center;width:75px;height:82px}.journal-equipment-icon img{width:68px;height:75px}.journal-equipment-icon>span{font:37px var(--pf-title);color:#bec4a0}.journal-equipment strong{font:17px var(--pf-title);color:#59734c}.journal-equipment p{font:10px var(--pf-ui);color:#95977b}.journal-equipment button{border:0;background:none;font:10px var(--pf-ui);color:#9a674c;margin-top:7px}.journal-character .journal-stats{grid-template-columns:1fr 1fr;gap:8px}.journal-character .journal-stat{padding:12px}.journal-character .journal-stat strong{font-size:24px}.journal-note{font:11px/1.7 var(--pf-ui);color:#818a6c}.journal-character h3{font:19px var(--pf-title);color:#507048}.journal-gear-list{display:grid;gap:8px}.journal-gear-list button{display:flex;align-items:center;gap:10px;text-align:left;background:#f9f4df;border:1px solid #c5c5a4;border-radius:5px;padding:10px;color:#4d7047}.journal-gear-list img{width:35px;height:40px}.journal-gear-list strong{font-size:12px}.journal-gear-list small{display:block;font-size:10px;color:#879476}.journal-gear-list b{margin-left:auto;font-size:10px}.journal-mastery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.journal-mastery article{display:flex;gap:8px;align-items:center;background:#f9f3df;border:1px solid #cbc6a9;border-radius:5px;padding:12px}.journal-mastery img{width:38px;height:48px}.journal-mastery strong{font:600 9px var(--pf-ui);color:#4f7247}.journal-mastery small{display:block;font:9px var(--pf-ui);color:#8b9678;margin:4px 0}.journal-mastery progress{width:100%;height:4px;accent-color:#729759}
.journal-island-banner{min-height:200px;border-radius:7px;padding:30px;background:linear-gradient(90deg,#17382df2,#17382d00),url('../../assets/ui/renewal/world-journal-v1.png') center/cover;color:#efdfba}.journal-island-banner small{font:8px var(--pf-ui);letter-spacing:2px}.journal-island-banner h2{font:33px var(--pf-title);margin:12px 0}.journal-island-banner p{max-width:240px;font:12px/1.7 var(--pf-ui);color:#c1ccb0}.journal-owned-islands{display:grid;grid-template-columns:1fr 1fr;gap:12px}.journal-owned-islands article{display:flex;gap:15px;align-items:center;background:#faf5e4;border:1px solid #c7c5a8;border-radius:6px;padding:15px}.journal-island-symbol{width:95px;height:95px}.journal-owned-islands h3{font:21px var(--pf-title);margin:5px 0;color:#4b6e42}.journal-owned-islands p,.journal-owned-islands small{font:10px var(--pf-ui);color:#8b9876}.journal-biomes{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.journal-biomes article{padding:20px;border:1px solid #cac7a9;border-radius:6px;background:#faf4e1}.journal-biomes article>span{font:32px var(--pf-title);color:#8ba772}.journal-biomes h3{font:23px var(--pf-title);color:#446e42;margin:8px 0}.journal-biomes p{font:11px/1.7 var(--pf-ui);color:#899575}.journal-primary{margin-top:20px;background:#3b6342;border:1px solid #254b32;border-radius:4px;color:#fff0c8;padding:12px 18px;font:600 12px var(--pf-ui)}
/* Responsive controls remain large enough to tap, with scroll inside each panel. */
@media(max-width:1100px){#renewal-location{display:none}body #market-top-button{top:20px!important}body #inventory-panel{width:94vw!important;grid-template-columns:minmax(0,1fr) 215px!important}body #inventory-panel .inventory-bag{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}.journal-layout{grid-template-columns:180px minmax(0,1fr)}.journal-nav{padding:20px 9px}.journal-nav>button{font-size:11px;padding:8px;gap:6px}.journal-page{padding:23px}.journal-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-character{grid-template-columns:190px minmax(0,1fr);gap:18px}.journal-mastery{grid-template-columns:repeat(2,1fr)}.journal-paperdoll{padding:18px 10px}}
@media(max-width:700px){body #profile-panel{left:10px!important;top:10px!important;width:235px!important;min-height:87px!important;padding:10px!important;grid-template-columns:43px minmax(0,1fr) 21px!important;gap:7px!important}body #profile-panel .profile-portrait{width:43px!important;height:53px!important}body #profile-panel .profile-title{font-size:12px!important}body #minimap{right:10px!important;top:10px!important;width:95px!important;padding:6px!important}body #minimap-canvas{width:81px!important;height:62px!important}body #minimap::before{font-size:7px!important;letter-spacing:1px!important}body #market-top-button{left:12px!important;top:107px!important;transform:none!important}body #quick-hub{display:none!important}body #inventory{bottom:12px!important;max-width:95vw!important;gap:4px!important;padding:6px!important}body #inventory>.inventory-slot{width:calc((95vw - 58px)/10)!important;height:calc((95vw - 58px)/10)!important;max-width:47px!important;max-height:47px!important}body #inventory .item-icon,body #inventory img{max-width:80%!important;max-height:80%!important}body #inventory-panel{height:88dvh!important;max-height:88dvh!important;inset:50% auto auto 50%!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:70px auto 49px minmax(90px,1fr) auto auto!important}body #inventory-panel .inventory-heading{padding:15px 18px!important}body #inventory-panel .inventory-heading>span{font-size:25px!important}body #inventory-panel .inventory-tab{font-size:9px!important;padding:12px 10px!important}.renewal-bag-tools{padding:8px 13px}body #inventory-panel .inventory-bag{grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:8px 13px!important}.renewal-item-detail{grid-row:5;grid-column:1;display:flex;align-items:center;gap:12px;max-height:148px;overflow:auto;padding:12px 15px;border-left:0;border-top:1px solid #c7c2a8}.renewal-detail-icon{width:64px;height:64px;flex:none;margin:0}.renewal-detail-icon .item-icon,.renewal-detail-icon img{width:52px!important;height:52px!important}.renewal-item-detail h3{font-size:19px;margin:4px 0}.renewal-item-detail p{font-size:10px;margin:4px 0}.renewal-item-detail dl{display:flex;gap:15px;flex-wrap:wrap;margin:5px 0 0;padding:0;border:0}.renewal-item-detail dl>div{padding:2px 0;font-size:10px}.renewal-detail-empty{display:flex;gap:15px;align-items:center;margin:0;text-align:left}.renewal-detail-empty>span{font-size:30px}.renewal-detail-empty strong{font-size:18px}body #inventory-panel .inventory-footer{grid-row:6!important;flex-wrap:wrap!important;padding:10px 12px!important;gap:5px!important}body #inventory-panel .inventory-weight{flex-basis:100%}body #inventory-panel .inventory-action{flex:1;padding:8px 7px!important;font-size:9px!important}body #skills-panel .skills-grid{grid-template-columns:1fr!important;padding:8px 16px 18px!important}body #skills-panel .skill-row{min-height:95px!important}body #skills-panel{max-height:88dvh!important}#adventure-journal{width:97vw;height:96dvh;max-height:96dvh;border-radius:8px}.journal-frame{grid-template-rows:64px minmax(0,1fr) 45px}.journal-header{padding:0 15px}.journal-brand{font-size:14px;letter-spacing:2px}.journal-brand small{font-size:7px}.journal-layout{display:flex;flex-direction:column}.journal-nav{flex-direction:row;overflow-x:auto;flex-shrink:0;padding:8px;gap:4px;border-bottom:1px solid #9f9c6855}.journal-nav>button{white-space:nowrap;flex:0 0 auto;font-size:10px;min-height:36px;padding:7px 10px}.journal-nav>button>span{font-size:18px;width:16px}.journal-nav-bottom{display:none}.journal-page{padding:19px 16px;min-height:0;flex:1}.journal-page h1{font-size:27px}.journal-page-heading{margin-bottom:18px}.journal-kicker{font-size:7px}.journal-hero{padding:23px;min-height:215px}.journal-hero h2{font-size:34px}.journal-feature-grid{grid-template-columns:1fr}.journal-feature{padding:12px}.journal-feature img{width:52px;height:52px}.journal-stats{gap:6px}.journal-stat{padding:12px}.journal-stat small{font-size:7px}.journal-stat strong{font-size:23px}.journal-section-title>span{display:none}.journal-footer{padding:0 12px;gap:6px}.journal-footer>span:first-child{display:none}.journal-footer>span:last-child{font-size:9px;margin-left:auto}.journal-footer button{font-size:10px}.journal-catalog{gap:10px}.journal-item-art{height:117px}.journal-item-art img{height:99px}.journal-item-copy{padding:12px}.journal-item h3{font-size:18px}.journal-item dl>div{flex-direction:column;gap:4px}.journal-callout{padding:15px}.journal-callout strong{font-size:20px}.journal-filters{gap:6px}.journal-filters label>span{display:none}.journal-filters select{max-width:135px;font-size:10px}.journal-character{grid-template-columns:1fr}.journal-paperdoll{display:grid;grid-template-columns:140px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;padding:16px}.journal-paperdoll>small{grid-column:2}.journal-paperdoll h2{grid-column:2;margin:3px}.journal-avatar-stage{grid-column:1;grid-row:1/5;height:180px}.journal-avatar-stage canvas{height:168px;width:112px}.journal-current-tool{grid-column:2;margin-top:10px;padding-top:10px}.journal-paperdoll>button{grid-column:2}.journal-character .journal-stats{grid-template-columns:repeat(2,1fr)}.journal-owned-islands{grid-template-columns:1fr}.journal-biomes{grid-template-columns:1fr}.journal-biomes article{display:grid;grid-template-columns:40px 1fr;gap:0 10px;padding:14px}.journal-biomes article>span{grid-row:1/3}.journal-biomes h3{margin:0}.journal-biomes p{margin:5px 0 0}.journal-island-banner{padding:22px}body .village-shop-dialog,body #fisher-dialog{max-height:86dvh!important}}
@media(max-width:400px){body #profile-panel{width:212px!important}.journal-stats{grid-template-columns:repeat(3,1fr)}.journal-stat{padding:10px 8px}.journal-stat strong{font-size:20px}.journal-item h3{font-size:17px}body #inventory-panel .inventory-bag{grid-template-columns:repeat(4,minmax(0,1fr))!important}.journal-mastery article{padding:9px}.journal-mastery img{width:30px}.journal-footer>span:last-child{display:none}}
@media(max-height:520px) and (min-width:701px){body #profile-panel{transform:scale(.8);transform-origin:top left}body #minimap{width:108px!important;padding:6px!important}body #minimap-canvas{width:94px!important;height:66px!important}body #quick-hub{top:127px!important;width:115px!important}body #quick-hub button{padding:6px 9px;min-height:29px;font-size:10px}body #inventory-panel{height:94dvh!important;max-height:94dvh!important;grid-template-rows:60px auto 44px minmax(0,1fr) auto!important}body #inventory-panel .inventory-heading{padding:10px 20px!important}#adventure-journal{height:96dvh;max-height:96dvh}.journal-frame{grid-template-rows:56px minmax(0,1fr) 40px}}
.journal-frame{grid-template-columns:minmax(0,1fr);min-width:0;width:100%}
.journal-wardrobe{margin-top:19px;padding-top:15px;border-top:1px solid #afac6e44}.journal-wardrobe>small{font:8px var(--pf-ui);letter-spacing:1px;color:#b8c198}.journal-wardrobe>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}.journal-wardrobe button{display:grid;place-items:center;height:63px;padding:3px;background:#253f2e;border:1px solid #81945f55;color:#c6cfab;font-size:9px}.journal-wardrobe img{width:45px;height:55px!important;image-rendering:pixelated!important}.journal-wardrobe button[aria-pressed=true]{background:#66764d;border-color:#d3bb79;box-shadow:0 0 0 1px #b29c53}.journal-wardrobe button:hover{background:#4d6640}
@media(max-width:700px){.journal-wardrobe{grid-column:1/-1;width:100%;margin-top:10px}.journal-wardrobe>div{grid-template-columns:repeat(6,minmax(0,1fr))}.journal-wardrobe button{height:58px}.journal-wardrobe img{width:38px;height:50px!important}}
.journal-layout,.journal-header,.journal-footer,.journal-nav{min-width:0;max-width:100%}
.journal-nav{scrollbar-color:#718663 #19382d;scrollbar-width:thin}
@media(max-width:700px){.journal-layout,.journal-page,.journal-nav{width:100%}.journal-footer>span:last-child{display:none}.journal-footer>button{min-height:36px}.journal-stats{min-width:0}.journal-stat{min-width:0;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}#adventure-journal::backdrop{backdrop-filter:none}}

/* The legacy .open rules are more specific than body #panel. Keep both states
   in the same coordinate system, including touch devices wider than 820px. */
body.adventure-renewal #inventory-panel,
body.adventure-renewal #inventory-panel.open,
body.adventure-renewal #skills-panel,
body.adventure-renewal #skills-panel.open {
  transform:translate(-50%,-50%)!important;
  box-sizing:border-box!important;
}
@media (max-width:820px), (hover:none) and (pointer:coarse) {
  body.adventure-renewal {--pf-edge:max(8px,env(safe-area-inset-left));--pf-top:max(8px,env(safe-area-inset-top));--pf-bottom:max(8px,env(safe-area-inset-bottom))}
  body.adventure-renewal #quick-hub,body.adventure-renewal #renewal-location {display:none!important}
  body.adventure-renewal #profile-panel {left:var(--pf-edge)!important;top:var(--pf-top)!important;width:min(218px,calc(100vw - 120px))!important;min-height:0!important;height:96px!important;box-sizing:border-box!important;padding:8px!important;gap:6px!important;grid-template-columns:40px minmax(0,1fr) 20px!important;transform:none!important}
  body.adventure-renewal #profile-panel .profile-portrait {width:40px!important;height:48px!important;box-sizing:border-box!important;padding:2px!important}
  body.adventure-renewal #profile-avatar {width:34px!important;height:40px!important}
  body.adventure-renewal #profile-panel .profile-title {font-size:11px!important;margin:0!important;line-height:14px!important}
  body.adventure-renewal #profile-panel .profile-main {grid-template-rows:14px 15px 15px 14px!important;gap:3px!important}
  body.adventure-renewal #profile-panel .profile-currencies {margin:0!important;font-size:9px!important}
  body.adventure-renewal #profile-gear {width:20px!important;height:24px!important;font-size:12px!important}
  body.adventure-renewal #minimap {right:max(8px,env(safe-area-inset-right))!important;top:var(--pf-top)!important;width:88px!important;height:86px!important;box-sizing:border-box!important;padding:5px!important}
  body.adventure-renewal #minimap-canvas {width:76px!important;height:60px!important}
  body.adventure-renewal #minimap::before {font-size:7px!important;margin-bottom:3px!important}
  body.adventure-renewal .mobile-shortcuts {top:calc(var(--pf-top) + 94px)!important;right:max(8px,env(safe-area-inset-right))!important;grid-template-columns:repeat(2,44px)!important;gap:4px!important}
  body.adventure-renewal .mobile-shortcuts button {width:44px!important;height:40px!important;font:600 10px var(--pf-ui)!important;background:#193b30!important;border:1px solid #ac9666!important;box-shadow:0 2px 6px #0004!important}
  body.adventure-renewal #market-top-button {left:var(--pf-edge)!important;top:calc(var(--pf-top) + 104px)!important;width:44px!important;height:40px!important;padding:4px!important;box-sizing:border-box!important;transform:none!important;align-items:center!important;justify-content:center!important}
  body.adventure-renewal #market-top-button b {display:none!important}
  body.adventure-renewal #island-creator-kiosk {left:calc(var(--pf-edge) + 50px)!important;top:calc(var(--pf-top) + 104px)!important;width:156px!important;max-width:calc(100vw - 170px)!important;height:40px!important;box-sizing:border-box!important;padding:5px!important;font:600 10px var(--pf-ui)!important;line-height:1.2!important;border:1px solid #ac9666!important;border-radius:5px!important;background:#193b30!important;box-shadow:0 2px 6px #0004!important}
  body.adventure-renewal #inventory {left:50%!important;bottom:var(--pf-bottom)!important;width:min(300px,calc(100vw - 152px))!important;max-width:none!important;box-sizing:border-box!important;gap:4px!important;padding:5px!important;transform:translateX(-50%)!important;overflow-x:auto!important;touch-action:pan-x!important}
  body.adventure-renewal #inventory>.inventory-slot {flex:0 0 38px!important;width:38px!important;height:42px!important;min-width:38px!important;min-height:42px!important;max-width:38px!important;max-height:42px!important;box-sizing:border-box!important}
  body.adventure-renewal #mobile-action {right:max(8px,env(safe-area-inset-right))!important;bottom:var(--pf-bottom)!important;width:60px!important;height:60px!important}
  body.adventure-renewal #online-local-test-status {right:8px!important;bottom:calc(var(--pf-bottom) + 68px)!important;z-index:180!important}
  body.adventure-renewal #inventory-panel,
  body.adventure-renewal #inventory-panel.open,
  body.adventure-renewal #skills-panel,
  body.adventure-renewal #skills-panel.open {
    inset:var(--pf-top) max(8px,env(safe-area-inset-right)) var(--pf-bottom) var(--pf-edge)!important;
    width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;transform:none!important;transition:opacity .12s ease!important;
    overscroll-behavior:contain;touch-action:pan-y;
  }
  body.adventure-renewal #inventory-panel .inventory-bag,body.adventure-renewal #skills-panel .skills-grid,body.adventure-renewal .renewal-item-detail {touch-action:pan-y;overscroll-behavior:contain}
  body.adventure-renewal #inventory-panel .inventory-tabs {touch-action:pan-x;min-width:0!important}
  body.adventure-renewal #inventory-panel .inventory-close,body.adventure-renewal #skills-panel .panel-close {flex:none!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:22px!important}
  body.adventure-renewal #inventory-panel .inventory-heading {gap:8px!important;min-width:0!important}
  body.adventure-renewal #inventory-panel .inventory-heading small {font-size:7px!important;letter-spacing:1px!important}
  body.adventure-renewal #skills-panel .skills-title {padding:12px!important;grid-template-columns:30px minmax(0,1fr) 40px!important;gap:8px!important}
  body.adventure-renewal #skills-panel .skills-title-copy strong {font-size:23px!important}
  body.adventure-renewal #skills-panel .skills-intro {padding:6px 14px!important;font-size:12px!important}
  body.adventure-renewal:has(#inventory-panel.open,#skills-panel.open,#character-panel.open,#settings-panel.open,#adventure-journal[open]) :is(#mobile-game-controls,#inventory,#online-local-test-status,#island-creator-kiosk,#market-top-button,#owned-island-city-return-floating) {visibility:hidden!important;pointer-events:none!important}
}
@media (max-height:520px) and (orientation:landscape) {
  body.adventure-renewal #inventory-panel {grid-template-columns:minmax(0,1fr) 190px!important;grid-template-rows:48px 36px 40px minmax(50px,1fr) 48px!important}
  body.adventure-renewal #inventory-panel .inventory-heading {padding:4px 14px!important}
  body.adventure-renewal #inventory-panel .inventory-heading>span {font-size:22px!important}
  body.adventure-renewal #inventory-panel .inventory-heading small {display:none!important}
  body.adventure-renewal #inventory-panel .inventory-tab {padding:7px 10px!important;min-height:0!important}
  body.adventure-renewal #inventory-panel .inventory-bag {grid-template-columns:repeat(6,minmax(0,1fr))!important;padding:6px 12px!important;gap:6px!important}
  body.adventure-renewal .renewal-item-detail {grid-column:2!important;grid-row:3/5!important;display:block!important;max-height:none!important;border-top:0!important;border-left:1px solid #c7c2a8!important;padding:10px!important}
  body.adventure-renewal .renewal-detail-icon {width:54px;height:54px;margin:0 auto 5px}
  body.adventure-renewal .renewal-detail-icon img,body.adventure-renewal .renewal-detail-icon .item-icon {width:48px!important;height:48px!important}
  body.adventure-renewal .renewal-item-detail h3 {font-size:17px;margin:5px 0}
  body.adventure-renewal .renewal-item-detail p {font-size:10px;margin:4px 0}
  body.adventure-renewal .renewal-detail-empty {display:block;margin:0;text-align:center}
  body.adventure-renewal .renewal-detail-empty>span {font-size:24px}
  body.adventure-renewal .renewal-detail-empty strong {font-size:17px}
  body.adventure-renewal #inventory-panel .inventory-footer {grid-row:5!important;flex-wrap:nowrap!important;padding:5px 10px!important;gap:6px!important}
  body.adventure-renewal #inventory-panel .inventory-weight {flex:1!important;flex-basis:auto!important}
  body.adventure-renewal #inventory-panel .inventory-action {flex:0 1 auto!important;padding:6px!important;min-height:34px!important;font-size:9px!important}
  body.adventure-renewal #skills-panel .skills-grid {grid-template-columns:1fr 1fr!important;padding:8px 12px!important;gap:8px!important}
  body.adventure-renewal #skills-panel .skill-row {padding:9px!important;min-height:88px!important;grid-template-columns:50px minmax(0,1fr)!important;gap:8px!important}
  body.adventure-renewal #skills-panel .skill-portrait {width:48px!important;height:62px!important}
  body.adventure-renewal #skills-panel .skill-heading>span {font-size:18px!important}
}

/* Island travel belongs below the HUD, never over its health/energy bars. */
body.adventure-renewal #profile-panel {overflow:visible!important}
body.adventure-renewal #profile-panel #island-creator-kiosk {position:absolute!important;left:0!important;right:auto!important;top:calc(100% + 8px)!important;width:auto!important;max-width:100%!important;min-height:34px!important;height:auto!important;box-sizing:border-box!important;margin:0!important;padding:8px 12px!important;border:1px solid #ac9666!important;border-radius:6px!important;background:#193b30!important;box-shadow:0 3px 8px #0004!important;color:#f2dfb4!important;font:600 11px var(--pf-ui)!important;line-height:1.2!important}
@media (max-width:820px), (hover:none) and (pointer:coarse) {
 body.adventure-renewal #profile-panel #island-creator-kiosk {left:50px!important;width:calc(100% - 50px)!important;min-height:40px!important;padding:5px!important;font-size:10px!important}
}
.journal-wardrobe canvas {width:100%;height:64px;object-fit:contain;image-rendering:pixelated}
.custom-avatar-choice canvas {display:block;width:44px;height:66px;image-rendering:pixelated;margin:auto}
.journal-materials-controls select{display:block;max-width:100%;margin:.4rem 0 1rem;padding:.55rem;color:#1a3529;background:#f6efd8;border:1px solid #a68a58;border-radius:5px;font:inherit}
.journal-materials-list{display:grid;gap:.55rem;list-style:none;padding:0}
.journal-materials-list li{padding:.7rem .9rem;border:1px solid #aa99696b;background:#fbf3dc;border-radius:6px}
.journal-materials-list strong,.journal-materials-list span{display:block}
.journal-materials-list li[data-missing="0"] span{color:#315e3c}
.journal-materials-list p{margin:.35rem 0 0;color:#475944}
