:root{font-family:system-ui,-apple-system,'Noto Sans KR',sans-serif;color:#f6f1dd;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#234b4c;overflow:hidden}#world{position:fixed;inset:0;width:100%;height:100%;touch-action:none}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #ffdf88;outline-offset:4px}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}header{position:fixed;top:max(16px,env(safe-area-inset-top));left:20px;right:20px;display:flex;align-items:center;justify-content:flex-end;pointer-events:none}header>*{pointer-events:auto}#help{border:1px solid #e6dfb54a;border-radius:50%;background:#18312de8;color:#f4e8c8;width:36px;height:36px}.menu-dock{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:1px;border:1px solid #d8c59b55;border-radius:18px;background:#18302ded;box-shadow:0 8px 30px #13271d55;padding:5px;z-index:2}.menu-dock button{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;min-width:86px;height:63px;border:0;border-radius:12px;background:transparent;color:#efe3c6;font-size:11px}.menu-dock button:hover{background:#ffffff10}.menu-dock button span{font-size:24px;line-height:1.1;color:#e3c68a}#resourceAction{position:fixed;width:0;height:0;pointer-events:none;z-index:1;filter:drop-shadow(0 3px 8px #10251d80)}.radial-center{position:absolute;left:-38px;top:-23px;width:76px;height:46px;border:1px solid #e6d7a966;background:#19352bd9;border-radius:22px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px}.radial-center button{pointer-events:auto;border:0;background:none;color:#e3d4b6;padding:4px;font-size:18px}.radial-slot{position:absolute;width:86px;transform:translate(-50%,-50%);text-align:center}.slot-0{left:0;top:-109px}.slot-1{left:96px;top:-54px}.slot-2{left:96px;top:56px}.harvest-hex{display:block;position:relative;width:86px;height:96px;border:0;background:none;padding:0;margin:0 auto;pointer-events:auto;color:#f4e6be}.harvest-hex:disabled{opacity:.55}.harvest-hex svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.hex-base{fill:#1b3329ed;stroke:#ad9c75aa;stroke-width:2;stroke-linejoin:round}.hex-progress{fill:none;stroke:#f3cf78;stroke-width:5;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100}.harvest-hex.working{opacity:1}.harvest-hex.working .hex-base{fill:#42563aee;stroke:#dfc383}.hex-content{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}.hex-content img{width:29px;height:29px;object-fit:contain}.hex-content span{font-size:11px}.stock{position:absolute;right:12px;top:21px;font-size:12px;color:#fff2c5}.queued{position:absolute;left:5px;bottom:8px;border-radius:50%;background:#d6b573;color:#263b2d;font-size:11px;min-width:20px;line-height:20px}.queued:empty{display:none}.harvest-time{display:inline-block;background:#19352be8;border-radius:5px;padding:3px 7px;font-size:10px;color:#eee0bd;margin-top:2px}#toast{position:fixed;top:25%;left:50%;transform:translate(-50%,-50%);padding:11px 20px;border-radius:20px;background:#19382ef0;border:1px solid #f1d69770;font-size:13px;opacity:0;transition:opacity .2s;pointer-events:none;max-width:90vw;z-index:5;text-align:center}#toast.show{opacity:1}#loading{position:fixed;inset:0;background:#213e36;display:grid;place-items:center;z-index:9;font-size:15px}dialog{width:min(470px,92vw);max-height:84dvh;overflow:auto;padding:25px;border:1px solid #d6c39580;border-radius:18px;background:#21392f;color:#f6f1dd;box-shadow:0 30px 100px #0007}dialog::backdrop{background:#10282677;backdrop-filter:blur(3px)}small{font-size:9px;letter-spacing:2px;color:#ddc389}dialog h2{font-size:23px;margin:8px 0 16px}dialog h3{font-size:17px;margin:0 0 8px}dialog p{font-size:12px;line-height:1.8;color:#d3d9c7;margin:9px 0 15px}dialog button{width:100%;padding:13px;border:0;border-radius:9px;background:#e3c68a;color:#263b2d;font-weight:700}dialog article{border:1px solid #e3c68a35;border-radius:12px;padding:14px;margin:14px 0}#closeCraft{background:#425447;color:#eee}.muted,.panel-note{opacity:.7;font-size:11px!important}.panel-heading{display:flex;justify-content:space-between;align-items:start}.panel-heading h2{margin-bottom:4px}.close-panel{width:36px;height:36px;padding:0;font-size:26px;line-height:30px;background:#ffffff10;color:#e9dec2;font-weight:400}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.item-slot{position:relative;display:flex;align-items:center;flex-direction:column;min-height:152px;margin:0!important;padding:12px 6px!important;background:#142c2440}.item-slot img{width:75px;height:70px;object-fit:contain;filter:drop-shadow(0 3px 3px #0004)}.item-slot strong{font-size:13px;margin-top:4px}.item-slot b{position:absolute;right:9px;top:8px;font-size:16px;color:#f7dc9a}.item-slot span{font-size:9px;margin-top:6px;color:#c5ccb7}.item-slot.empty{opacity:.45}.tool-icon{display:grid;place-items:center;width:75px;height:70px;font-size:42px;color:#dfc38a}.character-layout{display:flex;align-items:center;gap:20px;margin:14px 0;border-radius:12px;background:#152d2444;padding:12px}.character-layout #portrait{position:static;display:block;width:128px;height:160px;flex-shrink:0;background:radial-gradient(ellipse at center,#abac7450,transparent 70%)}.character-layout p{margin:0}.character-stats{font-size:13px;margin:20px 0}.character-stats>div{display:flex;justify-content:space-between;padding:12px 2px;border-bottom:1px solid #d8c59b25}.character-stats dt{color:#bfc7b4}.character-stats dd{margin:0;color:#f1dbac}#placement{position:fixed;bottom:112px;left:50%;transform:translateX(-50%);padding:12px;border-radius:12px;background:#21392ff5;white-space:nowrap;border:1px solid #d6c39580;z-index:3}#placement span{display:block;text-align:center;font-size:12px;margin-bottom:9px}#placement button{padding:10px 15px;margin:0 4px;border:0;border-radius:7px;background:#e3c68a;color:#24372c}@media(max-width:480px){header{left:14px;right:14px}.menu-dock button{min-width:81px;height:58px}dialog{padding:20px}.item-grid{gap:6px}.item-slot{min-height:140px}.item-slot img,.tool-icon{width:65px;height:62px}.character-layout{gap:10px;padding:6px}.character-layout #portrait{width:112px;height:140px}.character-layout h3{font-size:16px}}
.menu-dock button img{width:26px;height:26px;object-fit:contain;opacity:.9}.hex-content img{width:30px;height:28px;object-fit:contain}.item-slot img,.hex-content img,.menu-dock img{filter:sepia(.4) saturate(.7) drop-shadow(0 2px 2px #0003)}
.menu-dock{bottom:auto;top:max(14px,env(safe-area-inset-top));left:auto;right:63px;transform:none;border-radius:12px;padding:3px}.menu-dock button{min-width:66px;height:49px;font-size:10px;gap:2px}.menu-dock button img{width:22px;height:22px}#placement{bottom:30px}@media(max-width:600px){header{left:12px;right:12px}.menu-dock{right:55px;top:max(13px,env(safe-area-inset-top))}.menu-dock button{min-width:56px;height:45px;font-size:9px}.menu-dock button img{width:19px;height:19px}.radial-slot{width:76px}.harvest-hex{width:76px;height:85px}.slot-0{top:-98px}.slot-1{left:85px;top:-49px}.slot-2{left:85px;top:51px}.hex-content span{font-size:10px}.hex-content img{width:25px;height:25px}.stock{right:10px;top:17px}}

.harvest-hex{width:100px;height:87px}.radial-slot{width:100px}.stock{right:19px;top:12px}.hex-content{gap:3px}.hex-content img{width:27px;height:27px}.queued{left:2px;bottom:3px}.opening .harvest-hex{animation:menu-reveal .18s both;animation-delay:.1s}.opening .slot-1 .harvest-hex{animation-delay:.15s}.opening .slot-2 .harvest-hex{animation-delay:.2s}@keyframes menu-reveal{from{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}
.bag-toolbar{display:flex;justify-content:space-between;align-items:center;margin:15px 0;font-size:11px;color:#d9d0b2}.bag-toolbar select{padding:7px 10px;border:1px solid #dcc49160;border-radius:7px;background:#1c3028;color:#eee3c7}#itemGrid{max-height:36vh;overflow:auto;padding:2px}.inventory-item{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:116px;background:#132c2455;color:#eee3c6;border:1px solid #dbca9e33;padding:9px 4px}.inventory-item.selected{background:#53604466;border-color:#ebd39a}.inventory-item img{width:49px;height:49px;object-fit:contain;filter:sepia(.3)}.inventory-item strong{font-size:11px;margin:7px 0 4px}.inventory-item span{font-size:9px;color:#b9c4ad;font-weight:400}#itemDetail{margin-top:18px;padding-top:16px;border-top:1px solid #e3c68a40}#itemDetail p{font-size:11px;margin:8px 0}#itemTags{font-size:10px;color:#e1c789;line-height:1.8}.item-actions{display:flex;gap:8px;margin-top:15px}.item-actions button{font-size:12px;padding:10px}.item-actions button:first-child{background:#435447;color:#efe5ce}@media(max-width:600px){.harvest-hex{width:92px;height:80px}.radial-slot{width:92px}.stock{right:17px;top:10px}.hex-content img{width:24px;height:24px}.character-layout h3{font-size:15px}}
.harvest-hex{width:104px;height:104px;isolation:isolate}.hex-ground,.hex-border{position:absolute;inset:0;object-fit:contain;width:100%;height:100%;pointer-events:none}.hex-ground{width:95%;height:95%;inset:2.5%}.hex-border{opacity:.75}.working .hex-border{opacity:1;filter:sepia(.4) saturate(.8)}.hex-fill{position:absolute;inset:11% 7%;background:conic-gradient(from 0deg,#d0c38aa6 0deg var(--sweep,0deg),transparent var(--sweep,0deg) 360deg);mask:url('assets/original-ui/bg_gather_item.webp') center/100% 100% no-repeat;-webkit-mask:url('assets/original-ui/bg_gather_item.webp') center/100% 100% no-repeat;pointer-events:none}.hex-content{z-index:2}.hex-content img{width:34px;height:34px}.stock{z-index:3;right:12px;top:23px;text-shadow:0 1px 3px #000}.queued{z-index:3;left:0;bottom:5px}.harvest-time{background:transparent;text-shadow:0 1px 4px #000;font-size:11px}.harvest-hex:disabled{opacity:.35}#queueStrip{position:absolute;top:180px;left:0;transform:translateX(-50%);display:flex;gap:3px;max-width:280px;overflow:auto;pointer-events:auto;scrollbar-width:thin}#queueStrip:empty{display:none}.queue-token{flex-shrink:0;width:30px;height:30px;padding:5px;border:1px solid #c4b78966;border-radius:7px;background:#1d332ce6}.queue-token img{width:100%;height:100%;object-fit:contain}#cancelGather{position:absolute;left:-24px;top:219px;width:48px;padding:5px 0;border:1px solid #c4b78955;border-radius:7px;background:#1d332ce6;color:#e9dfc6;font-size:10px;pointer-events:auto}.recipe-slot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0;font-size:12px}.recipe-slot select{min-width:0;max-width:70%;font:inherit;font-size:11px;background:#152e24;color:#e8ddc0;border:1px solid #c4b78966;padding:8px;border-radius:6px}.owned{display:block;color:#c4cbb7;font-size:10px;margin:6px 0 10px}#craftResult:empty{display:none}#craftResult{padding:10px;border-radius:8px;background:#e3c68a15;border:1px solid #e3c68a40;color:#f0d393}@media(max-width:600px){.harvest-hex{width:94px;height:94px}.radial-slot{width:94px}.stock{right:9px;top:20px}.hex-content img{width:30px;height:30px}#queueStrip{top:163px}#cancelGather{top:200px}}

.harvest-hex:disabled{opacity:.35!important}@media(prefers-reduced-motion:reduce){.opening .harvest-hex{animation:none}}

#resourceAction{transform-origin:0 0}

/* Display stacks retain individual item identity for locking and equipment. */
.inventory-item{position:relative;padding-top:16px}
.inventory-item .item-count{position:absolute;right:7px;top:6px;min-width:24px;padding:2px 5px;border-radius:7px;background:#172e24df;color:#f6dda1;font-size:12px;font-variant-numeric:tabular-nums}
.item-group-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 12px}
.item-group-navigation button{width:auto;min-width:54px;min-height:44px;padding:8px 12px;background:#435447;color:#efe5ce;font-size:12px}
.item-group-navigation span{font-size:10px;color:#c4cbb7;text-align:center}
#itemGroupPosition{font-variant-numeric:tabular-nums;color:#e1c789}


/* UI-02: source-sized radial buttons; viewport scale applies to the whole orbit. */
#resourceAction{transform-origin:0 0}
.radial-slot{width:126px;height:126px;transform:translate(-50%,-50%)}
.harvest-hex{width:126px;height:126px;margin:0;isolation:isolate}
.hex-ground{width:95.238%;height:95.238%;inset:2.381%}
.hex-content{gap:2px;padding-bottom:14px}
.hex-content img{width:34px;height:34px}.hex-content span{font-size:12px;max-width:84px;line-height:1.2}
.stock{right:13px;top:27px;font-size:13px}
.queued{left:14px;bottom:7px;border-radius:5px;padding:0 4px;font-size:10px;min-width:0;line-height:16px}
.harvest-time{position:absolute;left:24px;right:24px;top:90px;height:18px;line-height:18px;margin:0;padding:0;font-size:11px;pointer-events:none}
.radial-center{gap:0}.radial-center strong{font-size:11px;max-width:48px}
.radial-center button{min-width:28px;height:36px;padding:0;font-size:22px}
#gatherToolbar{position:fixed;z-index:3;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 20px));padding:8px 10px;border:1px solid #bda77c70;border-radius:12px;background:#162e29f2;box-shadow:0 8px 24px #071a1955}
.gather-status-row{display:flex;align-items:center;gap:8px;height:44px;font-size:12px}
#gatherStatus{flex:1;min-width:0;line-height:1.2}#queueCount{font-size:10px;color:#c8ccb5;white-space:nowrap}
#cancelGather{position:static;left:auto;top:auto;width:auto;min-width:74px;min-height:44px;padding:8px;background:#435447;border:1px solid #c4b78966;border-radius:7px;font-size:11px}
.gather-queue-row{display:flex;align-items:center;gap:6px;min-height:44px}
#queueStrip{position:static;top:auto;left:auto;transform:none;display:flex;gap:4px;max-width:none;min-width:0;height:44px;flex:1;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
#queueStrip:empty{display:block}.queue-token{position:relative;flex:0 0 44px;width:44px;height:44px;padding:6px;border-radius:8px}
.queue-token img{width:26px;height:26px}.queue-token span{position:absolute;right:2px;bottom:1px;font-size:9px;color:#fff2cb;background:#17352cd9;padding:1px 2px}
.gather-reward{display:flex;align-items:center;gap:4px;max-width:44%;font-size:10px;color:#e9d3a3}.gather-reward img{width:24px;height:24px}
#gatherViewportHint{font-size:11px;margin:3px 0}
.game-panel{width:min(860px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:22px}
.panel-heading{gap:14px;align-items:center}.panel-heading p{margin:2px 0 0;font-size:11px}.close-panel{flex-shrink:0;width:44px;height:44px}
.bag-controls{display:grid;grid-template-columns:minmax(140px,1fr) 100px 130px;gap:10px;margin:18px 0 12px}
.bag-controls label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#c9cdb7}
.bag-controls input,.bag-controls select{width:100%;min-width:0;height:44px;border:1px solid #a89b7060;border-radius:7px;padding:8px 10px;background:#172f27;color:#f2e8cc;font:inherit;font-size:12px}
.inventory-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:20px}
.bag-list{min-width:0}.bag-results-row{display:flex;justify-content:space-between;align-items:center;min-height:36px;font-size:11px;color:#c3ccb5;gap:6px}
#clearBagSearch{width:auto;padding:5px 8px;min-height:36px;background:#405445;color:#eee2c5;font-size:10px}
#itemGrid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:min(48vh,480px);overflow-y:auto;padding:3px;gap:8px}
.inventory-item{min-height:116px;border-radius:9px}.inventory-item strong{overflow-wrap:anywhere}.inventory-item:focus-visible{outline-offset:-3px}
.bag-detail{background:#142c244d;border:1px solid #b6a27933;border-radius:12px;padding:16px;min-width:0}
#itemDetail{margin:0;padding:0;border:0}#itemDetailEmpty{margin:35px 0;text-align:center;font-size:12px}
.item-detail-heading{display:flex;align-items:center;gap:12px;overflow-wrap:anywhere}.item-detail-heading img{width:62px;height:62px;object-fit:contain}
.item-detail-heading h3{font-size:17px}.back-to-bag{display:none}
#itemDescription{max-height:150px;overflow:auto;white-space:pre-line}#itemTags{overflow-wrap:anywhere}
.item-actions button,.item-group-navigation button{min-height:44px}.item-actions{flex-wrap:wrap}.item-actions button{flex:1;min-width:90px}
.pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px;font-size:11px}
.pagination button{width:auto;min-height:44px;padding:8px 12px;font-size:11px;background:#435447;color:#f0e5c6}
.profile-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;margin-top:16px}
.portrait-card{display:flex;flex-direction:column;align-items:center;background:radial-gradient(ellipse at 50% 40%,#a0a76744,transparent 72%);border:1px solid #b6a27933;border-radius:12px}
#portrait{position:static;width:128px;height:160px}
.portrait-controls{display:flex;align-items:center;justify-content:space-around;width:100%;gap:4px;margin-bottom:5px}
.portrait-controls button{width:44px;height:44px;padding:0;background:#435447;color:#f0e5c6;font-size:25px}.portrait-controls span{font-size:10px}
.equipped-card{border:1px solid #b6a27933;border-radius:12px;padding:16px;background:#142c244d;min-width:0}
.equipped-title{display:flex;gap:10px;align-items:center;margin-top:10px}.equipped-title img{width:48px;height:48px;object-fit:contain}.equipped-title h3{font-size:18px;margin:0}
.character-stats{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;margin:14px 0}
.character-stats>div{gap:10px;font-size:12px}
.equipment-section h3{font-size:15px;margin:20px 0 0}.equipment-hint{font-size:11px;margin:4px 0 10px}
#equipmentList{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:220px;overflow:auto;padding:3px}
.equipment-card{display:flex;align-items:center;gap:10px;text-align:left;padding:8px 10px;min-height:60px;background:#142c244d;border:1px solid #b6a27933;color:#e9dfc7;font-size:11px;font-weight:400}
.equipment-card img{width:38px;height:38px;object-fit:contain}.equipment-card.equipped{border-color:#e8cc8f;background:#52633d66}
.secondary-action{background:#435447;color:#f0e5c6;margin-top:14px}
#saveWarning{position:fixed;bottom:126px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100vw - 24px);padding:10px 14px;background:#6d382eee;color:#fff0d5;border:1px solid #e8bb84;border-radius:9px;font-size:12px}
@media(max-width:600px){
 .game-panel{padding:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .bag-controls{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.search-field{grid-column:1/-1}
 .profile-layout{grid-template-columns:120px minmax(0,1fr);gap:10px}.portrait-card{justify-content:center}#portrait{width:104px;height:130px}
 .portrait-controls button{width:36px;min-width:36px}.portrait-controls{gap:0}.portrait-controls span{font-size:9px}
 .equipped-card{padding:10px}.equipped-title{gap:6px}.equipped-title img{width:34px;height:34px}.equipped-title h3{font-size:14px}
 .equipped-card p{font-size:11px}.equipped-card .item-actions{display:block}.equipped-card .item-actions button{margin-top:6px;padding:8px;font-size:11px}
 #equipmentList{grid-template-columns:1fr}
}
@media(max-height:460px){.game-panel{max-height:calc(100dvh - 12px);padding:14px}#itemGrid{max-height:180px}.panel-heading h2{font-size:19px}.bag-controls{margin:10px 0}}

#dismissGather{width:44px;height:44px;flex:0 0 44px;border:1px solid #c4b78966;border-radius:7px;background:#435447;color:#eee2c5;font-size:24px}
/* Crafting uses the source recipe slots and individual inventory items. */
.crafting-panel{width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:22px;overflow:auto}
.craft-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px}
.recipe-list{display:flex;flex-direction:column;gap:8px;align-items:stretch}.recipe-list button{text-align:left;min-height:70px;padding:14px}.recipe-list small{display:block;margin-top:7px;opacity:.7}.recipe-list .selected{border-color:#d6bc79;background:#52614b}
.recipe-detail{min-width:0}.recipe-detail h3{margin:0}.recipe-detail h4{margin:20px 0 10px}.recipe-detail p{font-size:13px;line-height:1.65}.item-detail-heading img{object-fit:contain}
#craftSlots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.craft-slot-card{min-width:0}.material-slot{width:100%;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px 6px;border:1px solid #81917b;background:#182e26}.material-slot img{width:46px;height:46px;object-fit:contain}.material-slot strong{font-size:13px}.material-slot span{font-size:12px;line-height:1.4}.primary-craft{display:block;width:100%;min-height:48px;margin-top:12px;background:#a98c50;color:#fff5d9;font-weight:700}
#craftHint{min-height:42px;color:#e3ce9a}.camp-crafting{border-top:1px solid #70817155;margin-top:24px;padding-top:16px}.camp-crafting summary{cursor:pointer;min-height:40px}.camp-crafting button{min-height:44px}
#materialPicker{padding:16px;margin-top:18px;background:#10241e;border:1px solid #8c9b77;border-radius:8px}.picker-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.picker-heading h4{margin:0}.picker-heading button{min-height:44px}#materialSearch{width:100%;min-height:44px;margin-top:8px;padding:10px;background:#203b30;color:#fff;border:1px solid #74826a;border-radius:4px}#materialGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:300px;overflow:auto}.material-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 5px;min-height:124px}.material-item img{width:40px;height:40px;object-fit:contain}.material-item span{font-size:12px}.material-item small{color:#dfc985}.material-item[aria-pressed=true]{border-color:#efd38d}.material-item:disabled{opacity:.5}
#craftResultCard{margin-top:20px;border:1px solid #bba56b;padding:16px;border-radius:8px;background:#344632}#craftResult{color:#f0d797;font-weight:700}#craftResultCard .item-actions{flex-wrap:wrap}#craftResultCard button{min-height:44px}
@media(max-width:600px){.crafting-panel{padding:16px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.craft-layout{display:block}.recipe-list{flex-direction:row;margin-bottom:18px}.recipe-list button{flex:1;min-width:0}.material-slot{min-height:138px}#craftSlots{gap:6px}#materialGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.picker-heading{align-items:flex-start}}
.material-slot,.material-item,.recipe-list button{color:#f2eedb}.recipe-list button.selected{color:#fff2cb}.craft-slot-card>p{font-size:11px;color:#b9c3ac}.material-item[disabled]{color:#c7c9bc}
.recipe-list button{background:#1a3027;border:1px solid #6a7a60}.recipe-list button.selected{background:#52614b;border-color:#d6bc79}.recipe-list small{color:#d6c9a1;letter-spacing:.3px}

/* Source CardNews weaponcrafting_3: dark slot header, yellow property condition, outlined material cell. */
.material-slot{padding:0 0 12px;background:#333637;border-color:#8c8c86;gap:8px;justify-content:flex-start}.material-slot strong{align-self:stretch;background:#131615;padding:10px 4px;color:#f4f1e7}.material-slot p{margin:0;padding:2px 5px;color:#e8c951;font-size:11px;min-height:28px}.material-slot img{margin:auto 0 0}.material-slot span{padding:0 5px}

.locked-craft-confirm{border:1px solid #dbc16d;background:#23251f;padding:16px;margin-top:12px}.locked-craft-confirm h4{color:#edd676;margin:0 0 8px}

/* Native Remove footer icon; confirmation layout is a browser dialog adapter. */
.drop-confirm{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:24px;background:#24372e;color:#f0eddf;border:1px solid #aaae93;border-radius:4px;overflow:auto}.drop-confirm h2{font-size:20px;margin:0 0 16px}.drop-confirm p{white-space:pre-line;line-height:1.6;color:#e5cd8f}.drop-confirm ul{max-height:30dvh;overflow:auto;padding-left:24px;line-height:1.8}.drop-actions{display:flex;gap:12px;margin-top:20px}.drop-actions button{width:auto;flex:1;min-height:44px;padding:10px;color:#eee8d5;background:#425448;border:1px solid #8f9a80}.drop-actions #approveDrop{background:#645038}.drop-actions button:focus-visible{outline:2px solid #e9cd83;outline-offset:3px}

@media(max-width:600px){.native-selection-buttons{margin-left:auto}}
.bag-action-notice{position:absolute;left:16px;right:16px;bottom:74px;z-index:10;margin:0;padding:14px;text-align:center;background:#12231ff5;border:1px solid #c5ad6b;color:#f1e7c6;box-shadow:0 4px 14px #0008;pointer-events:none}

/* Portrait browser adaptation: smaller source orbit, readable physical labels. */
@media(max-width:599px) and (orientation:portrait){
 #resourceAction .hex-content span{font-size:calc(11px / var(--radial-zoom,1))}
 #resourceAction .harvest-time{font-size:calc(10px / var(--radial-zoom,1))}
 #resourceAction .stock{font-size:calc(11px / var(--radial-zoom,1))}
}
