.current-panel{border:7px solid #88663c;border-image:url('assets/woodland-frame-inset-c-v1.webp') 86 fill/7px;background:#21170f url('assets/woodland-panel-leather-v1.webp') center/cover;padding:12px}.current-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.current-title h1{font-size:28px;margin:0}.current-title span{font-size:12px;color:#bda783}.current-hero{display:grid;grid-template-columns:minmax(230px,1fr) minmax(260px,1fr);grid-template-rows:auto auto auto 1fr;gap:12px;max-width:1020px;margin:auto;color:#ecd7b1}.current-title,.current-tabs{grid-column:1/-1}.current-tabs{display:flex;gap:7px}.current-tabs button{flex:1;min-height:40px}.current-summary{grid-column:2;grid-row:3}.current-summary>small{float:right}.current-summary>div{display:flex;justify-content:space-between;margin-top:9px;font-size:13px}.current-portrait{grid-column:1;grid-row:3/span 2;position:relative;height:430px;min-height:0;padding:0;isolation:isolate;overflow:hidden}.current-portrait>img{height:100%;width:100%;object-fit:contain;object-position:center;background:radial-gradient(#73694444,#0b0f0c)}.current-tag{position:absolute;left:8px;top:8px;background:#100e0bbb;padding:6px;font-size:11px;border:1px solid #88683e}.current-gear{position:absolute;bottom:9px;width:77px;border:1px solid #987543;background:#15110ce8;padding:5px;isolation:isolate}.current-gear-weapon{left:8px}.current-gear-armor{right:8px}.current-gear svg{width:100%;height:67px;display:block}.current-gear small{display:block;font:10px Georgia}.current-empty{display:block;height:60px;font-size:30px}.current-bag{grid-column:2;grid-row:4}.current-bag>header{display:flex;justify-content:space-between;align-items:center}.current-bag h2{font-size:19px;margin:0}.current-bag>header small{font-size:11px;display:flex;align-items:center;gap:4px}.current-bag .icon{width:20px;height:20px}.current-cells{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}.current-cell{position:relative;height:76px;border:1px solid #86673b;background:#110e0bbd;min-width:0;padding:5px}.current-cell>svg{width:100%;height:100%;display:block}.current-cell>small{position:absolute;bottom:2px;right:3px;font-size:10px;background:#100d0999}.current-vacant{opacity:.45}.current-bag>nav{display:flex;justify-content:space-between;align-items:center;margin-top:7px;font-size:12px}.current-bag>nav button{min-height:31px}.current-item-dialog{width:min(440px,calc(100vw - 16px));max-height:calc(100dvh - 24px);overflow:auto;padding:16px;background:#21170f url('assets/woodland-panel-leather-v1.webp') center/cover;border:7px solid #96703e;border-image:url('assets/woodland-frame-inset-c-v1.webp') 86 fill/7px;color:#ecd7b1;position:fixed;inset:auto 0 10px;margin:auto;box-shadow:0 0 0 100vmax #000b;z-index:200;font:14px Georgia}.current-item-dialog .current-item-top{display:flex;align-items:center;gap:11px}.current-item-top>svg{width:76px;height:92px;flex-shrink:0;padding:5px;border:1px solid #85663b}.current-item-top>div{flex:1}.current-item-top h2{font-size:21px;margin:5px 0}.current-item-top small{font-size:11px;color:#c0aa82}.current-compare{width:100%;border-collapse:collapse;margin:13px 0;font-size:13px}.current-compare td,.current-compare th{text-align:right;padding:8px 3px;border-bottom:1px solid #74532d88}.current-compare th{font-size:10px;font-weight:normal;color:#bda681}.current-compare td:first-child,.current-compare th:first-child{text-align:left}.current-compare .positive{color:#b4d38b}.current-compare .negative{color:#e7a28e}.current-detail-actions{display:flex;gap:8px}.current-detail-actions button{flex:1;min-height:44px}.current-sale-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0}.current-sale-row small{font-size:11px;color:#bda780}.current-sale-confirm{border:1px solid #a77a3a;padding:10px;background:#1c100b}.current-sale-confirm h3{margin:0;font-size:18px}.current-item-extra{font-size:12px}.current-kitchen{max-width:1100px;margin:auto}.current-kitchen-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:15px;margin-top:12px}.current-interior{width:100%;height:200px;object-fit:cover;border:1px solid #94703b}.current-food-active{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid #7d643d;background:#10160be0;margin-top:10px}.current-food-active img{width:55px;height:55px;object-fit:contain}.current-food-active strong,.current-food-active small{display:block}.current-food-active small{font-size:11px;color:#b9a47e}.current-food-active time{margin-left:auto;color:#ebc77b;font-size:15px;white-space:nowrap}.current-muted{font-size:12px;color:#bfa882;line-height:1.5}.current-food-recipes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.current-food-recipes button{min-width:0;min-height:100px;padding:6px;font-size:12px}.current-food-recipes img{display:block;width:100%;height:52px;object-fit:contain}.current-food-recipes .smith-button-label>span{display:block}.current-food-recipes .smith-button-skin{display:grid!important}.current-food-recipes .smith-button-label{display:flex;flex-direction:column;align-items:center;position:relative;z-index:1}.current-food-bonus{display:flex;justify-content:space-between;gap:10px;padding:10px;background:#120e09;border:1px solid #7d5d31}.current-kitchen button.primary{color:#28180b!important}.current-kitchen button.primary .smith-button-label{color:#28180b!important;font-weight:bold}
@media(max-width:850px){body[data-layout=sidebar][data-view=hero]:has(.current-hero) .layout-footer{display:none!important}body[data-layout=sidebar][data-view=hero]:has(.current-hero) .view-content{height:100%!important;min-height:0!important}.current-hero{height:100%;gap:6px;grid-template-columns:1fr;grid-template-rows:auto 36px 61px minmax(110px,1fr) auto}.current-title h1{font-size:24px}.current-title span{font-size:10px}.current-tabs{grid-column:1;grid-row:2}.current-tabs button{min-height:34px;padding:5px;font-size:12px}.current-summary{grid-column:1;grid-row:3;padding:7px}.current-summary>div{font-size:12px;margin-top:7px}.current-portrait{grid-column:1;grid-row:4;height:100%;min-height:110px}.current-bag{grid-column:1;grid-row:5;padding:7px}.current-cells{gap:5px;margin-top:5px}.current-cell{height:48px}.current-bag h2{font-size:17px}.current-bag>nav{margin-top:4px}.current-gear{width:64px}.current-gear svg{height:49px}.current-gear small{font-size:9px}.current-kitchen-layout{grid-template-columns:1fr;gap:9px}.current-kitchen .current-panel{padding:9px}.current-interior{height:110px}.current-food-recipes button{min-height:84px}.current-kitchen h2{font-size:22px}.current-food-active time{font-size:13px}.current-item-dialog{font-size:13px}.current-item-top h2{font-size:19px}}
@media(max-height:660px) and (max-width:850px){.current-cell{height:40px}.current-hero{gap:4px;grid-template-rows:auto 32px 56px minmax(95px,1fr) auto}.current-title h1{font-size:21px}.current-tabs button{min-height:31px}.current-item-top>svg{height:65px}.current-item-dialog{padding:10px}.current-compare td{padding:6px 3px}}

.current-hero-section>.current-tabs{margin-bottom:12px}.current-hero-section{min-height:0}.current-hero-section h1{font-size:24px}

.current-hero.smith-design button.current-cell,.current-hero.smith-design button.current-gear{border:1px solid #987543!important;background:#15110ce8!important;padding:5px!important;min-height:0!important}.current-hero.smith-design button.current-cell{height:76px}.current-hero.smith-design .current-cell>svg{width:100%;height:100%}.current-hero .current-gear>svg{width:100%;height:67px}.current-hero .current-title,.current-hero .current-summary,.current-hero .current-bag>header{position:relative;z-index:1}.current-hero .current-title h1{display:block!important;color:#ecd7b1!important}.current-hero .current-summary>strong,.current-hero .current-summary>small,.current-hero .current-summary>div{display:revert!important;color:#ecd7b1!important}.current-hero .current-summary>div{display:flex!important}.current-hero .current-bag h2{display:block!important;color:#ecd7b1!important}@media(max-width:850px){.current-hero.smith-design button.current-cell{height:48px}.current-hero .current-gear>svg{height:49px}}@media(max-height:660px) and (max-width:850px){.current-hero.smith-design button.current-cell{height:40px}}
.current-hero.smith-design button.current-gear{position:absolute!important;bottom:9px!important;height:auto!important;display:block!important;max-height:none!important}.current-hero.smith-design .current-tabs button,.current-hero.smith-design .current-tabs .smith-button-label{font-size:12px!important;line-height:1.1!important;white-space:nowrap!important}.current-hero.smith-design .current-tabs button{padding:5px 4px!important}@media(max-width:850px){.current-hero.smith-design button.current-gear{width:64px!important}.current-hero.smith-design .current-tabs button,.current-hero.smith-design .current-tabs .smith-button-label{font-size:11px!important}}

/* One native mobile scroll owner for long screens; combat keeps its fitted layout. */
@media(max-width:900px){
 body[data-layout=sidebar]:not([data-combat=true]) .main-content{display:block!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:8px 24px}
 body[data-layout=sidebar]:not([data-combat=true]) .view-content{display:block!important;flex:none!important;height:auto!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important;padding-bottom:24px}
 body[data-layout=sidebar][data-view=hero]:not([data-combat=true]) .view-content:has(.current-hero){height:100%!important;box-sizing:border-box;padding-bottom:0}
 body[data-layout=sidebar]:not([data-combat=true]) .growth-screen{height:auto!important;max-height:none!important;overflow:visible!important}
}

/* Mobile shop uses the browser document scroll, without a viewport-sized inner pane. */
@media(max-width:900px){
 html[data-view=shop]{height:auto!important;min-height:100%!important;overflow-x:clip!important;overflow-y:auto!important;touch-action:auto!important;overscroll-behavior:auto!important}
 body[data-layout=sidebar][data-view=shop]{height:auto!important;min-height:100svh!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important}
 body[data-layout=sidebar][data-view=shop] #app{height:auto!important;min-height:100svh!important;max-height:none!important;overflow:visible!important;grid-template-rows:62px auto auto!important;touch-action:auto!important}
 body[data-layout=sidebar][data-view=shop] .main-content{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important;-webkit-overflow-scrolling:auto;padding-bottom:20px!important}
 body[data-layout=sidebar][data-view=shop] .view-content,body[data-layout=sidebar][data-view=shop] .growth-screen{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important}
 body[data-layout=sidebar][data-view=shop] .layout-topbar{position:sticky!important;top:0;align-self:start;background:#080705!important;margin:0!important;padding:0 7px!important}
 body[data-layout=sidebar][data-view=shop] .layout-footer{position:relative!important;inset:auto!important}
 body[data-layout=sidebar][data-view=shop] .shop-grid,body[data-layout=sidebar][data-view=shop] .offer,body[data-layout=sidebar][data-view=shop] .item-picture{touch-action:auto!important}
}

/* Account gate is an ordinary responsive document, including Safari and the keyboard. */
html[data-view=login]{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
body[data-layout=auth]{margin:0!important;padding:0!important;height:auto!important;min-height:100svh!important;overflow:visible!important;background:#0b0d09!important;color:#ecd7b1;font-family:Georgia,serif}
body[data-layout=auth] #app{display:block!important;height:auto!important;min-height:100svh!important;overflow:visible!important;padding:0!important;background:linear-gradient(90deg,#080c0866,#080a08dd),url('assets/arena-forest-v06.webp') center/cover fixed}
.auth-screen{box-sizing:border-box;max-width:1320px;min-height:100svh;margin:auto;padding:40px 50px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:70px;align-items:center}
.auth-story{display:grid;gap:22px;text-shadow:0 2px 5px #000}.auth-logo{width:230px;height:245px;object-fit:contain;filter:drop-shadow(0 6px 10px #0009)}.auth-eyebrow{font:11px Georgia;letter-spacing:3px;color:#dfbf7c}.auth-story h1{font:700 clamp(30px,3.4vw,48px)/1.14 Georgia;margin:15px 0;color:#f1dab0}.auth-story p{font:17px/1.7 Georgia;color:#d2c5ab;max-width:490px}.auth-features{display:flex;gap:12px;flex-wrap:wrap;font:12px Georgia;color:#dfc79c}.auth-features span{padding:9px 12px;border:1px solid #94723f88;background:#15180fbb}
.auth-card{border:9px solid #917043;border-image:url('assets/woodland-panel-leather-v1.webp') 82 fill/9px!important;background:#21170f url('assets/woodland-panel-leather-v1.webp') center/cover!important;padding:24px!important;box-shadow:0 12px 65px #0009;min-width:0}.auth-card-mark{display:flex;align-items:center;justify-content:center;gap:10px;color:#bd9f67;letter-spacing:1.8px;font:10px Georgia;border-bottom:1px solid #8f703c66;padding-bottom:12px}.auth-card-mark img{width:35px;height:42px;object-fit:contain}.auth-card fieldset{border:0;padding:0;margin:0;min-width:0}.auth-card h2{font:700 28px Georgia;margin:20px 0 18px;color:#f3d9a7}.auth-card .account-tabs{display:flex;gap:7px;margin-bottom:17px}.auth-card .account-tabs button{flex:1}.auth-card form{display:grid;gap:14px}.auth-card form>label:not(.auth-remember){display:grid;gap:7px;font:14px Georgia;color:#dec8a4}.auth-card input:not([type=checkbox]){box-sizing:border-box;width:100%;height:46px;min-height:46px;padding:10px 12px;border:1px solid #8f7044;border-radius:3px;background:#0e0f0bd9;color:#f3dfb9;font:16px Georgia;box-shadow:inset 0 2px 8px #0007}.auth-card input:focus-visible{outline:2px solid #d6ad60;outline-offset:2px}.auth-card .auth-remember{display:flex;align-items:center;gap:10px;min-height:44px;font:14px Georgia;cursor:pointer}.auth-remember input{width:20px;height:20px;accent-color:#c49a4e;flex-shrink:0}.auth-remember small{display:block;font:11px/1.5 Georgia;color:#b8a584;margin-top:4px}.auth-card .muted{font:12px/1.5 Georgia;color:#bda784;margin:0}.auth-card .warning{font:13px/1.5 Georgia;color:#ffccb4;background:#30160fd9;border:1px solid #9c5c3b;padding:10px}.auth-card .warning[hidden]{display:none}.auth-card .primary{min-height:48px!important;font-size:18px!important}.auth-footnote{font:12px/1.6 Georgia;color:#b8a584;text-align:center;margin:12px 0 0}.auth-version{display:block;text-align:center;color:#9b865f;font:11px Georgia;margin-top:6px}.auth-card .auth-remember>span{display:block}
@media(max-width:900px){.auth-screen{padding:24px;gap:25px;grid-template-columns:minmax(0,1fr) minmax(290px,1fr)}.auth-logo{width:180px;height:200px}.auth-story p{font-size:15px}.auth-card{padding:18px!important}}
@media(max-width:650px){body[data-layout=auth] #app{background-attachment:scroll}.auth-screen{display:block;padding:14px 12px max(22px,env(safe-area-inset-bottom))}.auth-story{display:block;text-align:center}.auth-logo{height:105px;width:130px;display:block;margin:0 auto 12px}.auth-story h1,.auth-story p,.auth-features,.auth-eyebrow{display:none}.auth-card{max-width:430px;margin:auto;padding:14px 17px!important}.auth-card-mark{padding-bottom:8px}.auth-card-mark img{height:32px;width:28px}.auth-card h2{font-size:25px;margin:15px 0}.auth-card form{gap:11px}.auth-card .account-tabs{margin-bottom:14px}.auth-card input:not([type=checkbox]){height:44px;min-height:44px}.auth-card .muted{font-size:11px}.auth-footnote{font-size:11px}}

.password-request{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #8b693c;padding:14px 0}.password-request h3{margin:0}.password-request p{font-size:13px}.temporary-password{display:block;user-select:all;-webkit-user-select:all;overflow-wrap:anywhere;padding:18px;background:#100e09;border:1px solid #b89454;font:20px monospace;color:#ffe0a0}@media(max-width:700px){.password-request{display:block}.password-request .actions{display:flex;flex-wrap:wrap}.auth-card .quiet{font-size:13px!important}}

.inspection-dialog{bottom:max(8px,env(safe-area-inset-bottom));max-height:calc(100dvh - 20px)}.inspection-effects{border:1px solid #86613b;padding:10px;background:#17130e}.inspection-effects h3{font-size:17px;margin:0 0 8px}.inspection-effects p{font-size:12px;line-height:1.5}.current-compare caption{text-align:left;font:14px Georgia;padding:8px 0}.current-item-description{font:13px/1.5 Georgia;color:#d3be99}[data-inspect-kind],button[data-action=current-item]{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:auto}.current-compare .positive{color:#b7e08d!important}.current-compare .negative{color:#ff9f86!important}

.current-building-upgrade{margin-top:18px;padding:12px;border:1px solid #906c3c;background:#17120ed9}.current-building-upgrade summary{min-height:44px;cursor:pointer;font:17px Georgia;color:#e3c393}.current-building-upgrade .muted{font:12px/1.5 Georgia;color:#b8a17f}

.current-item-dialog.smith-design{display:block!important;height:auto!important;box-sizing:border-box;background:#21170f url('assets/woodland-panel-leather-v1.webp') center/cover!important;border:7px solid #96703e!important;border-image:url('assets/woodland-frame-inset-c-v1.webp') 86 fill/7px!important;border-radius:0!important;padding:14px!important;top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;left:0!important;right:0!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;color:#ecd7b1!important;overscroll-behavior:contain;touch-action:pan-y}.current-item-dialog .current-compare{margin:8px 0}.current-item-dialog .current-muted{margin:8px 0}.inspection-dialog .inspection-effects{margin:9px 0}.inspection-dialog .current-item-top>svg{height:74px}

.rarity-badge{display:inline-block!important;width:fit-content;font:11px Georgia;color:var(--item-rarity,#c6c9c0);border:1px solid var(--item-rarity,#c6c9c0);background:#12100bcc;padding:4px 7px;margin:4px 0}.growth-screen .offer[data-inspect-kind]{border-color:var(--item-rarity)!important}.current-hero.smith-design button.current-cell[data-rarity]{border-color:var(--item-rarity)!important;box-shadow:inset 0 0 8px color-mix(in srgb,var(--item-rarity) 18%,transparent)}
.community-screen{width:100%;max-width:1100px;margin:auto;color:#ecd7b1}.community-screen form{display:grid;gap:12px}.community-screen label{display:grid;gap:7px;font:14px Georgia}.community-screen input,.community-screen textarea,.community-screen select{font:16px Georgia!important;background:#12100b;color:#ecd7b1;border:1px solid #927044;padding:10px;width:100%;box-sizing:border-box}.community-screen textarea{resize:vertical;min-height:90px}.community-screen .muted{font:12px/1.5 Georgia;color:#bba784}.community-screen .panel{margin-top:14px}.bug-entry{padding:14px 0;border-top:1px solid #916b3b}.bug-entry header{display:flex;justify-content:space-between;align-items:center;gap:10px}.bug-entry h3{margin:5px 0}.bug-details{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.community-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.community-heading h2{font-size:24px;margin:4px 0}.notification-bell{position:relative!important;display:grid!important;place-items:center;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;background:#21170f!important;border:1px solid #9c773d!important;color:#e4c58d!important;padding:6px!important;border-radius:5px!important}.notification-bell .smith-button-skin{display:none!important}.notification-bell svg{width:23px;height:23px}.notification-bell [data-notification-count]{position:absolute;right:-4px;top:-5px;padding:2px 4px;background:#a93f23;color:#fff3ca;border:1px solid #e1af52;border-radius:20px;font:10px Georgia}.notification-bell [hidden]{display:none!important}.notification-bell .smith-button-label{position:static!important}.current-item-dialog.notifications-popover{top:72px!important;bottom:auto!important;left:15px!important;right:auto!important;width:min(380px,calc(100vw - 30px));max-height:calc(100dvh - 90px)!important}.notification-list{margin-top:12px;overflow-wrap:anywhere}.notification-list article{position:relative;border-top:1px solid #8b6339;padding:12px 33px 12px 0}.notification-list .notification-link{display:block!important;width:100%;text-align:left;min-height:50px;padding:4px!important;border:0!important;background:none!important;color:#ecd7b1;box-shadow:none!important}.notification-link p{font:13px/1.5 Georgia;margin:7px 0}.notification-link time{font:11px Georgia;color:#b9a17a}.notification-link>.smith-button-skin{display:none!important}.notification-link>.smith-button-label{display:block!important;text-align:left}.notification-list .notification-remove{position:absolute!important;right:0;top:12px;width:32px;min-width:32px;min-height:32px;padding:4px!important}.layout-navigation .top-actions{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:1fr 1fr;gap:5px!important;width:100%!important;margin:6px 0 0!important;padding:0!important;transform:none!important}.layout-navigation .top-actions>*{position:relative!important;inset:auto!important;width:auto!important;transform:none!important}.layout-navigation .top-actions .layout-language{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:7px}.layout-navigation .top-actions button{min-width:0;width:100%!important;max-width:none!important}.layout-navigation .top-actions .layout-language select{width:65px!important}.layout-nav-heading .notification-bell{margin-left:auto}.layout-nav-heading{gap:8px}
@media(max-width:900px){body[data-layout=sidebar]{--layout-sidebar:360px}body[data-layout=sidebar] .layout-sidebar-background{width:min(360px,96vw)!important}body[data-layout=sidebar] .layout-navigation{left:14px!important;top:max(60px,env(safe-area-inset-top))!important;bottom:14px!important;width:min(332px,calc(96vw - 28px))!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(44px,auto);align-content:start!important;gap:6px!important;padding:0!important;overflow:visible!important}body[data-layout=sidebar] .layout-navigation>button,body[data-layout=sidebar] .layout-navigation>button.account-button,body[data-layout=sidebar] .layout-navigation>button.layout-account-link{height:44px!important;min-height:44px!important;max-height:44px!important;font-size:14px!important;padding:5px 8px!important;white-space:normal!important}body[data-layout=sidebar] .layout-navigation>button .smith-button-label{padding:0!important;font-size:14px!important;line-height:1.15!important;gap:5px!important;white-space:normal!important}.layout-navigation>button .woodland-nav-icon{width:22px!important;min-width:22px!important;height:26px!important}.layout-navigation .layout-nav-hint,.layout-navigation .layout-nav-divider{display:none!important}.layout-navigation .layout-nav-heading{grid-column:1/-1;padding:0 0 4px!important;min-height:40px}.layout-navigation .top-actions{grid-column:1/-1;align-self:start}.layout-navigation .top-actions button{min-height:38px!important;height:38px!important;font-size:12px!important;display:block!important;max-width:none!important}.layout-navigation .top-actions button>.smith-button-label{display:flex!important;font-size:12px!important;gap:4px}.layout-navigation .top-actions .icon{width:20px!important;height:20px!important}.layout-navigation .top-actions .layout-language{font-size:13px;min-height:34px}.layout-navigation .top-actions select{min-height:32px!important}.community-screen{padding-bottom:20px}.community-screen h1{font-size:25px}.bug-entry header{display:block}.admin-tabs{flex-wrap:wrap!important}}
@media(max-width:900px) and (max-height:500px){body[data-layout=sidebar] .layout-navigation{top:40px!important;bottom:5px!important;grid-auto-rows:minmax(35px,auto);gap:3px!important}body[data-layout=sidebar] .layout-navigation>button{height:35px!important;min-height:35px!important;max-height:35px!important;font-size:12px!important}.layout-navigation .layout-nav-heading{min-height:32px}.layout-navigation .top-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.layout-navigation .top-actions .layout-language{grid-column:auto;font-size:0}.layout-navigation .top-actions button{height:34px!important;min-height:34px!important}}

.equipment-upgrade-feedback{position:fixed;z-index:260;left:50%;top:44%;transform:translate(-50%,-50%);pointer-events:none;width:230px;height:255px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#ffe5ab;font:700 23px Georgia;text-shadow:0 2px 5px #000;isolation:isolate}.equipment-upgrade-feedback small{font:13px Georgia;color:var(--upgrade-color);margin-top:7px}.upgrade-item{width:130px;height:150px;position:relative;overflow:hidden;border:2px solid var(--upgrade-color);background:#15140ee8;box-shadow:0 0 35px var(--upgrade-color)}.upgrade-item>svg{width:100%;height:100%}.upgrade-item i{position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 40%,#fff4c6a8 49%,transparent 58%);transform:translateX(-90%);animation:upgrade-sheen var(--upgrade-duration) ease-out forwards}.upgrade-flare{position:absolute;inset:-25px;z-index:-1;background:radial-gradient(ellipse,var(--upgrade-color),transparent 65%);opacity:0;animation:upgrade-flare var(--upgrade-duration) ease-out forwards}.upgrade-spark{position:absolute;left:50%;top:38%;width:5px;height:5px;background:#fff1ac;box-shadow:0 0 6px var(--upgrade-color);border-radius:50%;opacity:0;animation:upgrade-spark var(--upgrade-duration) ease-out var(--spark-delay) forwards}.equipment-upgrade-feedback strong{margin-top:15px}.equipment-upgrade-feedback[data-motion=false] .upgrade-spark,.equipment-upgrade-feedback[data-motion=false] .upgrade-flare,.equipment-upgrade-feedback[data-motion=false] .upgrade-item i{animation:none;display:none}@keyframes upgrade-sheen{to{transform:translateX(90%)}}@keyframes upgrade-flare{15%{opacity:.75;transform:scale(.6)}70%{opacity:.25}100%{opacity:0;transform:scale(1.3)}}@keyframes upgrade-spark{15%{opacity:1}100%{opacity:0;transform:translate(var(--spark-x),var(--spark-y)) scale(.2)}}@media(prefers-reduced-motion:reduce){.equipment-upgrade-feedback .upgrade-spark,.equipment-upgrade-feedback .upgrade-item i,.equipment-upgrade-feedback .upgrade-flare{animation:none!important;display:none}}

/* Long mobile screens share Safari document scrolling. Compact hero and combat stay fitted. */
@media(max-width:900px){
 html[data-native-scroll=true]{height:auto!important;min-height:100%!important;overflow-x:clip!important;overflow-y:auto!important;touch-action:auto!important;overscroll-behavior:auto!important}
 body[data-layout=sidebar][data-native-scroll=true]{height:auto!important;min-height:100svh!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important}
 body[data-layout=sidebar][data-native-scroll=true] #app{height:auto!important;min-height:100svh!important;max-height:none!important;overflow:visible!important;grid-template-rows:62px auto auto!important;touch-action:auto!important}
 body[data-layout=sidebar][data-native-scroll=true] .main-content{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important;-webkit-overflow-scrolling:auto;padding-bottom:20px!important}
 body[data-layout=sidebar][data-native-scroll=true] .view-content,body[data-layout=sidebar][data-native-scroll=true] .growth-screen{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:auto!important;overscroll-behavior:auto!important}
 body[data-layout=sidebar][data-native-scroll=true] .layout-topbar{position:sticky!important;top:0;align-self:start;background:#080705!important;margin:0!important;padding:0 7px!important}
 body[data-layout=sidebar][data-native-scroll=true] .layout-footer{position:relative!important;inset:auto!important}
 body[data-layout=sidebar][data-native-scroll=true] .shop-grid,body[data-layout=sidebar][data-native-scroll=true] .offer,body[data-layout=sidebar][data-native-scroll=true] .item-picture{touch-action:auto!important}
}


/* Retire the old floating utility strip now that utilities live inside the menu. */
body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions{position:static!important;inset:auto!important;grid-row:auto!important;grid-column:1/-1!important;grid-template-columns:1fr 1fr!important;width:100%!important;height:auto!important;min-height:0!important;gap:5px!important;visibility:inherit!important;transform:none!important}
body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language{min-height:34px!important;height:34px!important;padding:0 5px!important;font-size:13px!important;grid-column:1/-1!important}
body[data-layout=sidebar] .layout-navigation .top-actions>button{height:38px!important;min-height:38px!important;padding:5px!important;font-size:12px!important;max-width:none!important}
body[data-layout=sidebar] .layout-navigation>.account-button>.smith-button-skin{display:grid!important;max-width:none!important;overflow:visible!important}
@media(max-width:900px) and (max-height:500px){body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language{grid-column:auto!important;font-size:0!important}}

@media(max-width:900px){body[data-layout=sidebar][data-native-scroll=true] .live-building-drawer,body[data-layout=sidebar][data-native-scroll=true] .smith-c-drawer,body[data-layout=sidebar][data-native-scroll=true] .smith-card-stage{height:auto!important;max-height:none!important;overflow:visible!important}}

@media(max-width:900px){body[data-layout=sidebar][data-native-scroll=true] .mobile-building-detail{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}body[data-layout=sidebar][data-native-scroll=true] .live-building-drawer{position:relative!important;inset:auto!important;transform:none!important;flex:none!important;width:100%!important;margin:0!important}}

/* Shared woodland frame for the native, keyboard- and touch-accessible language select. */
body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language{position:relative;isolation:isolate;display:block!important;width:100%;min-width:0;height:38px!important;min-height:38px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
.layout-language>.smith-button-skin{pointer-events:none;grid-template-columns:10px minmax(0,1fr) 10px;grid-template-rows:10px minmax(0,1fr) 10px}
.layout-language:hover>.smith-button-skin.hover,.layout-language:focus-within>.smith-button-skin.hover{opacity:1}
.layout-language-caption{position:absolute;inset:0 auto 0 13px;display:flex;align-items:center;font:13px Georgia,serif;color:#e9d4af;pointer-events:none;z-index:2}
body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language>select{appearance:none;-webkit-appearance:none;position:relative;z-index:1;display:block;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;padding:0 33px 0 78px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#f3dfb6!important;font:15px Georgia,serif!important;cursor:pointer;touch-action:manipulation}
.layout-language:after{content:'';position:absolute;right:16px;top:calc(50% - 4px);width:7px;height:7px;border-right:2px solid #d9b778;border-bottom:2px solid #d9b778;transform:rotate(45deg);pointer-events:none;z-index:2}
.layout-language:focus-within{outline:2px solid #f2d394;outline-offset:2px}
.layout-language option{background:#24190f;color:#f3dfb6}
@media(max-width:900px){body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language{height:44px!important;min-height:44px!important}}
@media(max-width:900px) and (max-height:500px){.layout-language-caption{display:none}body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language>select{padding-left:13px!important}}

/* Approved background C: quiet olive parchment with subdued edge engraving. */
html:has(body[data-layout=sidebar]){background:#242317}
body[data-layout=sidebar]{background-color:#242317!important;background-image:linear-gradient(#151a1252,#211b1366),url('assets/application-background-c-v1.webp')!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;background-attachment:fixed!important}
body[data-layout=sidebar] #app,body[data-layout=sidebar] .main-content,body[data-layout=sidebar] .view-content{background-color:transparent!important}
body[data-layout=sidebar] .layout-footer{background:linear-gradient(100deg,#26251bee,#302719e8),url('assets/application-background-c-v1.webp') center 65%/cover!important;border-image:none!important;border:1px solid #927344!important;box-shadow:inset 0 0 0 3px #17170f,inset 0 0 0 4px #74603a,0 -3px 16px #10150d33!important;padding:12px 15px!important}
body[data-layout=sidebar] .layout-footer .layout-jobs{color:#e3cf9e!important;border:0!important;background:none!important;box-shadow:none!important;min-height:24px;padding:0!important;justify-content:flex-start;font:12px Georgia,serif!important}
body[data-layout=sidebar] .layout-footer .layout-jobs>.smith-button-skin{display:none!important}
@media(max-width:900px){body[data-layout=sidebar]{background-attachment:scroll!important}body[data-layout=sidebar] .layout-footer{padding:8px 9px!important}body[data-layout=sidebar][data-native-scroll=true] .layout-topbar{background:#26271bed!important}}

.tower-preview-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px;margin-bottom:12px;background:#27261ee8;border:1px solid #947445}.tower-preview-controls label{display:flex;align-items:center;gap:6px;font:13px Georgia}.tower-preview-controls input{width:62px}.tower-preview-controls select,.tower-preview-controls input,.tower-preview-controls button{color:#efd8ab;background:#282116;border:1px solid #a17c43;padding:8px;font:13px Georgia}

body[data-layout=sidebar] .layout-navigation .top-actions>button{white-space:normal!important;line-height:1.1!important}body[data-layout=sidebar] .layout-navigation .top-actions>button>.smith-button-label{min-width:0;white-space:normal!important;font-size:11px!important;gap:4px;line-height:1.1}

body[data-layout=sidebar] .layout-navigation>button>.smith-button-label{position:static!important}
body[data-layout=sidebar] .layout-navigation>button .layout-nav-hint{top:auto!important;bottom:7px!important}
.layout-footer .footer-resource-badge[data-compact=true] .footer-count-full{display:none!important}
.layout-footer .footer-resource-badge[data-compact=true] .footer-count-short{display:inline!important}
@media(max-width:900px){body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language>select{font-size:16px!important}}

@media(max-width:900px){body[data-layout=sidebar] .layout-topbar>.citadel-brand{width:0!important;max-width:calc(100% - 62px)!important;flex:1 1 0!important;overflow:hidden}}

.market-refresh{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 14px}.market-refresh>small{font:12px/1.45 Georgia;color:#bda882;max-width:500px}.job-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.premium-rush{border-color:#9979ac!important;color:#e3c8f4!important;white-space:normal!important}.smith-production-strip{flex-wrap:wrap}.cl-design>.queue{margin-top:15px}@media(max-width:700px){.market-refresh>button{width:100%;min-height:44px}.job-actions>button{flex:1;min-height:40px}}
/* Desktop menu fits the available viewport; mobile drawer keeps its own layout. */
@media(min-width:901px){
 body[data-layout=sidebar]{--desktop-brand-height:clamp(56px,11dvh,132px)}
 body[data-layout=sidebar] .citadel-brand{top:7px;height:var(--desktop-brand-height)!important}
 body[data-layout=sidebar] .layout-navigation{top:calc(var(--desktop-brand-height) + 18px);bottom:66px;gap:4px;min-width:0;overflow:visible;padding:0;}
 body[data-layout=sidebar] .layout-navigation>button,
 body[data-layout=sidebar] .layout-navigation>button.account-button,
 body[data-layout=sidebar] .layout-navigation>button.account-register-button,
 body[data-layout=sidebar] .layout-navigation>button.layout-account-link{flex:1 1 0;min-height:28px;height:auto;max-height:58px;padding:4px 10px!important;white-space:normal;font-size:clamp(14px,1.8dvh,18px)}
 body[data-layout=sidebar] .layout-navigation>button>.smith-button-label{min-width:0;white-space:normal;line-height:1.1;gap:7px;padding-bottom:0;overflow-wrap:anywhere}
 body[data-layout=sidebar] .layout-navigation>button .woodland-nav-icon{width:27px;min-width:27px;height:29px}
 body[data-layout=sidebar] .layout-navigation .layout-nav-hint{display:none}
 body[data-layout=sidebar] .layout-nav-heading{flex:0 0 30px;min-height:30px;padding:0 5px;font-size:9px}
 body[data-layout=sidebar] .layout-nav-heading .notification-bell{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:3px!important}
 body[data-layout=sidebar] .layout-nav-divider{flex:0 0 8px;height:8px;min-height:8px;padding:0;font-size:10px}
 body[data-layout=sidebar] .layout-navigation .top-actions{flex:none;gap:4px!important;margin:2px 0 0!important;grid-template-columns:minmax(0,1fr)!important}
 body[data-layout=sidebar] .layout-navigation .top-actions>button{height:30px!important;min-height:30px!important;padding:3px 7px!important}
 body[data-layout=sidebar] .layout-navigation .top-actions>.layout-language{height:30px!important;min-height:30px!important}
 body[data-layout=sidebar] .layout-navigation .top-actions>button>.smith-button-label{justify-content:flex-start!important;font-size:12px!important;white-space:normal!important}
 body[data-layout=sidebar] .layout-navigation .top-actions .icon{width:21px!important;height:21px!important}
 body[data-layout=sidebar] .layout-profile{bottom:9px;padding-top:7px;min-width:0}
 body[data-layout=sidebar] .layout-profile>img{height:34px;width:29px}
 body[data-layout=sidebar] .layout-profile strong{font-size:14px}
 body[data-layout=sidebar] .layout-profile small{font-size:10px;margin-top:2px}
}
@media(min-width:901px) and (max-height:620px){
 body[data-layout=sidebar] .layout-navigation{bottom:49px;gap:2px}
 body[data-layout=sidebar] .layout-navigation>button{min-height:24px;font-size:13px}
 body[data-layout=sidebar] .layout-navigation>button .woodland-nav-icon{width:22px;min-width:22px;height:24px}
 body[data-layout=sidebar] .layout-profile{padding-top:3px;bottom:5px}
 body[data-layout=sidebar] .layout-profile>img{height:27px}
 body[data-layout=sidebar] .layout-profile small{font-size:9px}
}
/* Equal desktop controls, including account and utilities. */
@media(min-width:901px){
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions{display:contents!important}
 body[data-layout=sidebar] .layout-navigation>button,
 body[data-layout=sidebar] .layout-navigation>button.account-button,
 body[data-layout=sidebar] .layout-navigation>button.account-register-button,
 body[data-layout=sidebar] .layout-navigation>button.layout-account-link,
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button,
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>.layout-language{flex:1 1 0!important;min-height:24px!important;height:auto!important;max-height:58px!important;margin:0!important;width:100%!important}
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button{padding:4px 10px!important;font-size:clamp(14px,1.8dvh,18px)!important}
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button>.smith-button-label{font-size:inherit!important;gap:7px!important}
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions .icon{width:27px!important;height:29px!important}
}
@media(min-width:901px){
 body[data-layout=sidebar] .layout-navigation>button,
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button,
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>.layout-language{box-sizing:border-box!important;min-width:0!important;max-width:none!important;align-self:stretch!important}
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button{justify-content:flex-start!important}
}
@media(min-width:901px){
 body[data-layout=sidebar]{--desktop-control-height:clamp(24px,calc((100dvh - var(--desktop-brand-height) - 178px)/13),58px)}
 body[data-layout=sidebar] .layout-navigation>button,
 body[data-layout=sidebar] .layout-navigation>button.account-button,
 body[data-layout=sidebar] .layout-navigation>button.account-register-button,
 body[data-layout=sidebar] .layout-navigation>button.layout-account-link,
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button,
 body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>.layout-language{flex:0 0 var(--desktop-control-height)!important;height:var(--desktop-control-height)!important;min-height:var(--desktop-control-height)!important;max-height:var(--desktop-control-height)!important}
}

/* All eight actual equipment slots share the character composition. */
.current-hero.smith-design button.current-gear-eight{top:calc(3% + var(--gear-row)*24%)!important;bottom:auto!important;left:auto!important;right:auto!important;width:clamp(34px,18%,76px)!important;height:21%!important;max-height:84px!important;min-height:24px!important;padding:3px!important;overflow:hidden!important}
.current-hero.smith-design button.current-gear-eight[style*="--gear-side:left"]{left:6px!important}
.current-hero.smith-design button.current-gear-eight[style*="--gear-side:right"]{right:6px!important}
.current-hero.smith-design button.current-gear-eight>svg,.current-hero.smith-design button.current-gear-eight>img{width:100%!important;height:calc(100% - 13px)!important;object-fit:contain;display:block}
.current-hero.smith-design button.current-gear-eight .current-empty{height:calc(100% - 13px)!important;line-height:1;font-size:24px}
.current-hero.smith-design button.current-gear-eight small{font-size:9px!important;line-height:12px!important;white-space:nowrap}
.current-portrait>.current-tag{left:50%;transform:translateX(-50%);white-space:nowrap}
