[hidden]{display:none!important}
#structuresOpen{position:relative;min-width:84px;flex-shrink:0}#structuresCount{position:absolute;top:2px;right:7px;color:#ffe1a1;font-size:11px}.houseIcon{font-family:monospace;font-size:38px;line-height:34px;color:#efd29b;text-shadow:2px 2px #302b39}
#nailToggle{position:fixed;left:12px;bottom:155px;z-index:12;font-size:10px;padding:8px 10px}#nailToggle[aria-pressed=true]{background:#496953;border-color:#acd5a0;color:#eeffd9}
.structurePanel{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 36px);padding:20px;color:#eee2cf;background:#292936;border:3px solid #766557;border-radius:8px;box-shadow:0 8px 0 #171922;overflow:auto}.structurePanel::backdrop{background:#11162299}.structurePanel header{display:flex;justify-content:space-between;gap:12px;align-items:center}.structurePanel h2{font-size:22px;margin:5px 0 12px}.structurePanel small{color:#caa97b;font-size:10px;letter-spacing:1px}.structurePanel p{font-size:12px;line-height:1.6;color:#d0c6b8}.structurePanel select{width:100%;padding:12px;background:#1c202c;color:#ffe1a1;border:2px solid #716252;border-radius:4px;font:inherit;margin-top:8px}.structurePanel progress{width:100%;height:14px;accent-color:#dca75e}.structurePanel label{font-size:11px}.structureNote{font-size:11px!important;color:#a9a3a1!important}.buildingActions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.buildingActions .btn{min-height:42px}.buildingActions label{display:flex;align-items:center;gap:6px}#buildingHero{background:linear-gradient(#364551,#25343a);border:2px solid #4c5354;margin:8px 0 12px;display:flex;justify-content:center;padding:16px 0 0}#buildingHero canvas{image-rendering:pixelated;width:auto;height:160px;max-width:100%;object-fit:contain}#buildingPack{width:100%;margin-top:14px}
#structureCards{display:grid;gap:10px}.structureCard{display:grid;grid-template-columns:100px 1fr;grid-template-rows:1fr 1fr;align-items:center;text-align:left;background:#353541;border:2px solid #746455;border-radius:5px;color:#ffe0a3;padding:10px;min-height:110px;font:700 15px monospace;touch-action:none;user-select:none;cursor:grab}.structureCard:active{cursor:grabbing}.structureCard:disabled{opacity:.48;cursor:default}.structureCard img{grid-row:1/3;width:90px;height:90px;object-fit:contain;image-rendering:pixelated;pointer-events:none}.structureCard small{display:block;margin-top:8px}.structureCard b{font-size:10px;color:#bcd6b0;letter-spacing:1px}.workshopStarter{margin-top:16px;padding:16px;border:2px solid #73644e;background:#33343d}.workshopStarter p{font-size:12px;line-height:1.6}.workshopStarter .btn{width:100%}#structureDragHint{position:fixed;top:110px;left:50%;transform:translateX(-50%);z-index:30;pointer-events:none;max-width:calc(100vw - 32px);width:max-content;background:#222633ee;border:2px solid #d5b47c;border-radius:5px;color:#ffe6b6;font:700 12px monospace;padding:12px;box-sizing:border-box;text-align:center}
@media(max-width:600px){.structurePanel{padding:14px}.structurePanel h2{font-size:19px}#nailToggle{bottom:151px;font-size:9px}.structureCard{min-height:94px;grid-template-columns:85px 1fr}.structureCard img{width:76px;height:76px}#buildingHero canvas{height:130px}}
#buildingHero canvas{position:static;inset:auto;flex:none}
.starterArt{float:right;margin:0 0 8px 12px}.starterArt img{width:100px;height:100px;image-rendering:pixelated}.workshopStarter .btn{clear:both}
/* Pixel-art UI: 32px source icons at 1:1; world art remains camera-scaled. */
#structuresPanel{position:fixed;inset:auto;margin:0;width:min(368px,calc(100vw - 16px));padding:14px;border:2px solid #8b7966;border-radius:0;box-shadow:4px 4px 0 #171923;z-index:25;overflow:auto;background:#292936;touch-action:pan-y}
#structuresPanel header{margin-bottom:10px}#structuresPanel h2{font-size:16px;margin:4px 0 0;letter-spacing:1px}#structuresPanel header small{font-size:8px;letter-spacing:1px}#structuresPanel header+p{font-size:10px;margin:0 0 12px;color:#c2b6a4}#structuresOpen[aria-expanded=true]{background:#3d4244;border-color:#d3ba89;box-shadow:inset 0 3px #d3ba89}
#structuresPanel .workshopStarter{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:10px 8px;background:#3a3b3e;border:1px solid #7d715d}#structuresPanel .workshopStarter>img{width:32px;height:32px;image-rendering:pixelated;flex:none}#structuresPanel .workshopStarter strong{font-size:11px}#structuresPanel .workshopStarter small{display:block;font-size:8px;letter-spacing:0;margin-top:5px}#structuresPanel .workshopStarter .btn{margin-left:auto;width:auto;min-height:36px;padding:8px;font-size:9px;clear:none}
#structuresPanel #structureCards{gap:6px}#structuresPanel .structureCard{grid-template-columns:40px 1fr auto;grid-template-rows:auto;min-height:58px;padding:8px;gap:8px;border:1px solid #5d5860;border-radius:0;font-size:12px;background:#32323e}#structuresPanel .structureCard img{width:32px;height:32px;grid-row:auto}#structuresPanel .structureCard small{font-size:8px;letter-spacing:0;margin-top:5px}#structuresPanel .structureCard b{font-size:8px;max-width:55px;line-height:1.5;letter-spacing:0;text-align:right}#structuresPanel .structureCard:disabled{opacity:.55}
.structureResources{border-top:1px solid #5d5860;margin-top:14px;padding-top:12px}.structureResources h3{font-size:9px;letter-spacing:1px;color:#c7b99f;margin:0 0 8px}#structuresPanel .industryResources{gap:4px;margin:0;grid-template-columns:1fr 1fr}#structuresPanel .resourceCard{padding:4px;gap:4px;border:none;background:#242530;font-size:9px;min-height:36px}#structuresPanel .resourceCard img{width:32px;height:32px;image-rendering:pixelated;flex:none}#structuresPanel .resourceCard b{font-size:11px;margin-left:auto;margin-right:4px}#structuresPanel .resourceCard span{line-height:1.3}
.houseIcon{display:block;width:32px;height:32px;background-size:32px 32px;image-rendering:pixelated}.rasterControl{display:inline-flex;align-items:center;justify-content:center;gap:2px}.rasterControl:before{content:'';display:inline-block;flex:none;width:32px;height:32px;background:var(--control-icon) center/32px 32px no-repeat;image-rendering:pixelated}.rasterControl{padding:2px 6px!important}#structuresClose,#buildingClose,#pickaxeClose{width:36px;height:36px;padding:0!important}.rasterLock{display:block!important;width:32px!important;height:32px!important;background-size:32px 32px;image-rendering:pixelated;border:0!important;background-color:transparent!important}
#buildingHero canvas{width:auto;height:auto;max-width:none}#buildingHero{padding-top:12px}#nailToggle{bottom:122px}
@media(max-width:600px){.cams{gap:3px}.cams .rasterControl{font-size:7px;padding:2px!important;gap:0}.cams .rasterControl:before{width:32px}#structuresPanel{padding:12px}#nailToggle{bottom:122px}}
.pixelAsset,#tipBtn.pixelAsset,.minerPortrait{background-size:32px 32px!important}.icon,.blk,.minerToolIcon{width:32px;height:32px}.pixelWarning{background-size:32px 32px;background-position:center;background-repeat:no-repeat;image-rendering:pixelated}.pixelCurrency{display:flex!important;align-items:center;gap:2px}.pixelCurrency:before{content:'';width:20px;height:20px;display:inline-block;background:var(--currency-icon) center/32px 32px no-repeat;image-rendering:pixelated}
#structuresOpen[aria-expanded=true]:after{content:'';position:absolute;left:-3px;right:-3px;top:-12px;height:12px;background:#292936;border-left:2px solid #8b7966;border-right:2px solid #8b7966;pointer-events:none}
@media(max-width:600px){.cams #top,.cams #down{font-size:0;padding:2px!important}}
#pickaxeShop{position:fixed;inset:auto;margin:0;width:min(344px,calc(100vw - 16px));padding:14px;border:2px solid #8b7966;border-radius:0;background:#292936;box-shadow:4px 4px 0 #171923;z-index:26}#pickaxeShop header{margin-bottom:10px}#pickaxeCurrent{line-height:1.6;color:#c9bda8}#pickaxeTiers{display:grid;gap:6px;margin:12px 0}.pickaxeOwnedRow{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:12px;padding:10px 8px;min-height:60px;border:1px solid #5d5860;background:#32323e;color:#e6d4b6;text-align:left;font:700 12px monospace;cursor:pointer}.pickaxeOwnedRow img{width:32px;height:32px;image-rendering:pixelated}.pickaxeOwnedRow small{display:block;margin-top:5px;font-size:9px;color:#bcae98}.pickaxeOwnedRow b{font-size:9px;color:#bccdb0}.pickaxeOwnedRow.equipped{border-color:#c7b077;background:#41433f}.pickaxeOwnedRow:disabled{opacity:.45;cursor:default}#pickaxeBuy{width:100%;min-height:38px}#pickaxeFunds{font-size:10px;line-height:1.6;color:#c5baa9}[data-tool=pick][aria-expanded=true]{border-color:#d3ba89;background:#3d4244}
#buildingPanel.workshopShop{width:min(620px,calc(100vw - 24px));padding:18px}.workshopShop #buildingNote{margin:0 0 16px;font-size:11px;max-width:440px}.workshopShop #buildingEyebrow{font-size:9px}.workshopShop #buildingTitle{margin-bottom:12px}#workshopGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.workshopRecipe{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px 0;background:#33343e;border:2px solid #676052;border-radius:0;color:#ead9b6;font:700 12px monospace;cursor:pointer;min-width:0}.workshopRecipe .recipeBuilding{width:32px;height:32px;image-rendering:pixelated}.workshopRecipe>small{font-size:9px;color:#bcb09a;letter-spacing:0}.recipeCosts{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;width:100%;margin:4px 0 8px}.recipeCost{display:flex;align-items:center;gap:1px;min-width:42px;font-size:12px}.recipeCost img{width:32px;height:32px;image-rendering:pixelated}.recipeCost.missing{color:#ee9c87}.recipeAction{width:calc(100% + 16px);padding:10px 2px;border-top:1px solid #676052;background:#292e32;color:#c7d5b4;font-size:9px;letter-spacing:.5px}.workshopRecipe:disabled{cursor:default}.workshopRecipe:disabled .recipeAction{color:#a9a39b}.workshopRecipe.crafting{border-color:#d3b57c;background:#424239}.workshopRecipe.crafting .recipeAction{color:#ffe0a0}.workshopRecipe:not(:disabled):hover{border-color:#c6b082;background:#414239}.workshopShop #buildingProgress{height:10px}.workshopShop #buildingStatus{font-size:11px;margin:6px 0 12px}.workshopShop #buildingPack{margin-top:8px}.workshopShop .structureNote{font-size:10px!important}
@media(max-width:520px){#buildingPanel.workshopShop{padding:14px}#workshopGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.workshopRecipe{padding-top:10px;gap:6px}.recipeCosts{margin:0 0 6px}.recipeCost{font-size:10px;min-width:40px}.workshopShop h2{font-size:19px}}
.workshopShop .buildingActions + .structureNote{display:none}
#buildingInventoryV60{border-top:1px solid #5d5860;margin-top:14px;padding-top:10px}#buildingInventoryV60 h3{font-size:10px;display:flex;justify-content:space-between;gap:8px}#stockCountV60{color:#bcd6b0;white-space:nowrap}#stockItemsV60{display:flex;flex-wrap:wrap;gap:8px}#stockItemsV60>span{display:flex;align-items:center;gap:4px;font-size:12px}#stockItemsV60 img{width:32px;height:32px;image-rendering:pixelated}.stockTransferV60{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.stockTransferV60 select{grid-column:1/-1;font-size:11px}.stockTransferV60 input{grid-column:1/-1;min-width:0;padding:8px;background:#1c202c;color:#ffe1a1;border:1px solid #716252;font:inherit}.stockTransferV60 .btn{font-size:10px;min-height:36px}#buildingPanel.storehousePanel{position:fixed;inset:auto;margin:0;width:min(368px,calc(100vw - 16px));z-index:26;border-radius:0}#buildingPanel [hidden]{display:none!important}
#structureCards .playerBuildingV61{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px;border:1px solid #5d5860;background:#32323e}#structuresPanel .playerBuildingV61 .structureCard{grid-column:1/-1;border:0;padding:0;min-height:38px;background:transparent}#structuresPanel .playerBuildingV61 .structureCard b{font-size:12px}#structuresPanel .playerBuildingV61 .structureCard:disabled{opacity:.75}.playerCostsV61{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.playerCostsV61>span{display:flex;align-items:center;gap:2px;font-size:11px;color:#c7d5b4}.playerCostsV61 img{width:32px;height:32px;image-rendering:pixelated}.playerCostsV61 .missing{color:#ee9c87}.playerCraftV61{font-size:9px;padding:6px;min-width:92px;min-height:36px;align-self:center}.playerBuildingV61 progress{grid-column:1/-1;width:100%;height:8px;accent-color:#dca75e}.playerBuildingV61 progress[hidden]{display:none}
