/* Eldoria: dark iron, aged brass and the world behind the interface. */
:root{--game-surface:#101c22ed;--game-ink:#f1e4c8;--game-muted:#c4bda9;--game-brass:#c7a365;--game-rule:#c7a36545;--game-field:#0b151cc9}
body :is(.wing-heading,.attribute-allocation,.training-scroll,.training-row,.selected-item,.ability-training,.encounter-rewards,.quest-objectives,.quest-rewards,.forge-cabinet-heading,.forge-shelves,.forge-cabinet-footer,.inspection-panels,.inspection-panel,.inspection-checkout){background:none!important;box-shadow:none!important;border-color:var(--game-rule)!important}
body :is(.parchment-button,.letter-button,.forge-buy,.training-tabs button,.energy-buy,.attack-button,.result-claim,.attribute-plus){background:linear-gradient(#554630,#292c27)!important;color:#ffe5a9!important;border:1px solid #a6864e!important;box-shadow:inset 0 1px #e0bb6733!important;text-shadow:none!important}
body :is(.parchment-button,.letter-button,.forge-buy,.training-tabs button,.energy-buy,.attack-button,.result-claim,.attribute-plus):hover:not(:disabled){background:#574b35!important}
.character-sheet .wing-heading{border-bottom:1px solid var(--game-rule);color:var(--game-ink);background:#141e21cc!important}
.character-sheet .wing-heading h2{color:var(--game-ink)!important;text-shadow:none}.character-sheet .character-resource strong{color:#fff6e6!important}.character-sheet .inventory-hint{color:var(--game-muted)!important}
.character-sheet .character-combat svg{color:var(--game-brass)}.character-sheet .attribute-plus:disabled{opacity:.35}
body :is(.training-footer,.ability-cost,.training-tabs,.character-combat,.character-resources,.character-purse,.wing-footer){border-color:var(--game-rule)!important}
.training-dialog .training-skill-glyph{background:#202e32;border-color:var(--game-brass);color:var(--game-brass)}.training-dialog .training-skill-glyph svg{color:var(--game-brass)}.training-dialog .ability-progress{background:#090f13}.training-dialog .ability-progress i{background:#b49351}
.quest-letter .wax-seal{box-shadow:none;background:#233a35;color:#d2e4c0;border:1px solid #809d72}.quest-letter .reward-coin{box-shadow:none}.quest-letter .quest-objectives li{border-color:var(--game-rule)}.quest-letter .objective-mark{background:#22362e!important;border-color:#a6bc80!important}
.quest-letter .quest-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.quest-letter .quest-actions>*{margin:0}.quest-letter .next-story{width:100%}
.page-pane{display:flex;flex-direction:column;gap:8px;overflow:hidden;min-width:0;min-height:0}.page-pane>h2,.page-pane>h3{flex:none;margin:0}.page-pane>p{margin:0;line-height:1.4}
.page-pane :is(ol,.purchase-history,.chat-messages,.guild-entry-list,.player-ledger){min-height:0;overflow:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}
.bounded-journal .journal-index nav{display:grid;grid-template-rows:repeat(11,minmax(0,1fr));gap:2px;overflow:hidden}
.bounded-journal .quest-bookmark{min-height:0;padding:3px 5px;gap:8px;border-bottom:1px solid #c7a36522}.bounded-journal .quest-bookmark strong{font-size:17px;line-height:1.05}.bounded-journal .quest-bookmark small{font-size:9px;margin:0 0 2px}.bounded-journal .bookmark-number{width:22px;min-width:22px;height:22px;font-size:15px}
.bounded-journal .quest-letter{display:flex;flex-direction:column;gap:10px;padding:18px 24px;overflow:hidden;clip-path:none}.bounded-journal .letter-heading{flex:none}.bounded-journal .quest-story{font-size:17px;line-height:1.35;margin:0;flex:none}
.bounded-journal .quest-objectives{padding:4px 0;flex:none}.bounded-journal .quest-objectives ol{overflow:visible;margin:0}.bounded-journal .quest-objectives li{padding:5px 0}.bounded-journal .quest-objectives strong{font-size:17px}
.bounded-journal .quest-rewards{padding:4px 0;flex:none}.bounded-journal .quest-actions{margin-top:auto!important;flex:none}.bounded-journal .quest-gold-note{font-size:11px;line-height:1.3;margin:4px 0}.bounded-journal .journal-completion{padding-block:4px}
.bounded-journal .letter-button{min-height:34px;padding:4px 12px;font-size:18px}.bounded-journal .letter-link{min-height:28px;font-size:15px;padding:2px 0}
.bounded-world :is(.collection-ledger,.guild-register){overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}.bounded-world .weapon-rule{padding:6px 0}.bounded-world .weapon-rule h2{font-size:23px}.bounded-world .weapon-rule p{font-size:14px;line-height:1.3}
.bounded-world .companion-story{justify-content:center}.bounded-world .dungeon-story{gap:8px}.bounded-world .dungeon-story>*{margin:0}.bounded-world .journey-story{gap:8px}.bounded-world .journey-story>*{margin:0}.bounded-world .journey-choices{margin:0}
.bounded-hub .event-conversation{gap:10px}.bounded-hub .event-conversation>*{margin:0}.bounded-hub .event-conversation h2{font-size:30px}.bounded-hub .event-conversation .muted{font-size:11px;line-height:1.3}
.bounded-hub .hub-nav{flex-wrap:wrap;overflow:visible;white-space:normal;gap:8px 20px}.bounded-hub .player-ledger{overflow-y:auto;overflow-x:hidden}.bounded-hub .chat-messages{display:block;overflow-y:auto;overflow-x:hidden}.bounded-hub .chat-messages p{overflow-wrap:anywhere}
.bounded-hub .bag-detail{overflow:hidden;display:flex;flex-direction:column;gap:8px}.bounded-hub .bag-detail>*{margin:0}.bounded-hub .bag-detail .comparison{margin:0}.bounded-hub .bag-detail .comparison>div{padding:6px 0}.bounded-hub .bag-detail .etched-button{flex:none}
.sheet-content{height:100%;min-height:0!important;display:flex;flex-direction:column;gap:10px;overflow:hidden!important}.sheet-content>*{flex:none;margin:0!important}.sheet-content h2{font-size:36px}.sheet-content h3{font-size:22px}.sheet-content .lead,.sheet-content .note{line-height:1.4}
.sheet-content:has(.treasury-exchanges){width:min(860px,100%);padding:52px 28px 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 24px;align-content:start}.sheet-content:has(.treasury-exchanges)>:is(.sheet-eyebrow,h2,.lead,.stat-line,.plain-action){grid-column:1/-1}.treasury-exchanges{grid-column:1;grid-row:6/9}.treasury-earnings,.treasury-packs{grid-column:2}
.treasury-exchanges h3,.treasury-earnings h3,.treasury-packs h3{margin:0 0 8px}.treasury-exchange{padding:6px 0;gap:6px;grid-template-columns:minmax(0,1fr) 50px auto}.treasury-exchange label{font-size:17px}.treasury-exchange input{min-height:30px;padding:4px}.treasury-exchange .plain-action{font-size:11px;margin:0;padding:6px 0}.treasury-exchange small{font-size:10px;margin:2px 0}
.treasury-earnings p{font-size:12px;line-height:1.4}.treasury-packs .plain-action{font-size:13px;display:block;padding:8px 0}.sheet-content .stat-line{margin:0;padding:8px 0}.sheet-content .stat-line strong{font-size:26px}
.bounded-arena .duel-banner{align-items:center;gap:5px}.bounded-arena .duel-banner>*{margin:0!important;flex:none}.bounded-arena .duel-banner .opponent-crest{margin:4px!important}.bounded-arena .mode-tabs{justify-content:center}
.bounded-arena :is(.hall-ledger ol,.rival-ledger,.opponent-inspection){overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.bounded-arena .season-ledger{display:flex;flex-direction:column;gap:8px}.bounded-arena .season-ledger>*{margin:0}
.bounded-account :is(.account-login,.recovery-section){gap:8px}.bounded-account .account-actions{flex-wrap:wrap}
.bounded-hub .bag-detail{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:min-content;align-content:start;gap:8px}
.bounded-hub .bag-detail>:not(.etched-button){grid-column:1/-1}.bounded-hub .bag-detail>.etched-button{font-size:14px;line-height:1.2;padding:5px;min-height:32px}
.bounded-hub .bag-item-heading{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:center}.bounded-hub .bag-item-heading .bag-inspect-art{width:42px;height:64px;margin:0}.bounded-hub .bag-item-heading h2{font-size:24px;line-height:1.05;margin:3px 0}.bounded-hub .bag-item-heading .eyebrow{font:9px/1.3 var(--sans);letter-spacing:.5px;margin:0}
.bounded-hub .bag-detail .item-sale-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.bounded-hub .bag-detail .sale-note{grid-column:1/-1}.bounded-hub .bag-detail [data-sale=ask]{grid-column:1/-1}.bounded-hub .bag-detail .item-sale-actions button{font-size:14px;min-height:32px;padding:5px}.bounded-hub .bag-detail .comparison>div{padding:5px 0;font-size:11px}
.bounded-hub .bag-grid{grid-template-rows:none;grid-auto-rows:max-content;align-content:start;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}.bounded-hub .bag-slot{aspect-ratio:1}
.bounded-hub #preferences{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:10px 18px;width:100%;max-width:760px;margin:0 auto}
.bounded-hub #preferences>label{margin:0;gap:4px;font-size:12px}.bounded-hub #preferences>label:first-child{grid-column:1/-1}.bounded-hub #preferences .check{min-height:30px;font-size:13px}.bounded-hub #preferences .muted{font-size:10px;line-height:1.3;margin:0}.bounded-hub #preferences input:not([type=checkbox]):not([type=range]),.bounded-hub #preferences select{min-height:32px;padding:6px 8px;font-size:12px}.bounded-hub #preferences .volume-label{min-height:44px}.bounded-hub #preferences .volume-label input{height:20px;min-height:20px;margin:0}.bounded-hub #preferences button{min-height:34px;padding:5px 10px;font-size:16px;align-self:end}
.forge-scene .forge-shelves{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain;align-content:start;grid-auto-rows:max-content;grid-template-rows:none}
.forge-scene .forge-stock-item{min-height:0}.forge-scene .forge-cabinet-footer p{margin:4px 0}.forge-scene .inspection-panels{display:block!important;overflow:hidden}.forge-scene .inspection-panel{display:block!important;padding:0}.forge-scene .inspection-tabs{display:none}.forge-scene .forge-compare{margin:6px 0}.forge-scene .forge-compare>div{padding:4px 0}.forge-scene .forge-inspection-identity h3{font-size:24px}.forge-scene .forge-inspection-art{height:68px;width:55px}.forge-scene .forge-technique{font-size:12px;line-height:1.3;margin:6px 0}.forge-scene .forge-technique-link{font-size:11px;margin:3px 0}.forge-scene .forge-weapon-stat{margin:4px 0}.forge-scene .forge-weapon-stat dd{font-size:24px}.forge-scene .forge-inspection .forge-compare strong{font-size:17px}.forge-scene .forge-inspection .forge-compare small{font-size:10px}
@media(max-height:600px){
 .bounded-journal .journal-header{min-height:48px;height:48px}.bounded-journal .journal-index h1{font-size:25px;margin:4px 0}.bounded-journal .journal-layout{padding-bottom:8px}.bounded-journal .quest-bookmark strong{font-size:14px}.bounded-journal .quest-bookmark small{font-size:8px}.bounded-journal .quest-letter{padding:12px 16px;gap:6px}.bounded-journal .letter-heading h2{font-size:28px;margin:3px 0}.bounded-journal .quest-story{font-size:14px;line-height:1.25}.bounded-journal .quest-giver{font-size:13px}
 .bounded-journal .quest-objectives li{padding:3px 0}.bounded-journal .quest-objectives strong{font-size:14px}.bounded-journal .quest-objectives small{font-size:10px}.bounded-journal .reward-line b{font-size:17px}.bounded-journal .reward-line .reward-coin{height:24px;width:24px;font-size:14px}.bounded-journal .reward-line .reward-xp{font-size:17px}.bounded-journal .quest-letter h3{font-size:9px}.bounded-journal .reward-line .title-reward b{font-size:13px}.bounded-journal .quest-gold-note{font-size:10px}.bounded-journal .quest-actions{gap:4px}.bounded-journal .letter-button{min-height:28px;font-size:16px}.bounded-journal .journal-completion>b{font-size:19px}
 .bounded-world .world-heading{margin:6px auto}.bounded-world .world-heading h1{font-size:27px}.bounded-world .world-heading p{font-size:13px}.bounded-world .dungeon-story h2,.bounded-world .journey-story h2{font-size:23px}.bounded-world .dungeon-story p,.bounded-world .journey-story p{font-size:13px;line-height:1.3}
 .bounded-hub .event-conversation{gap:6px;padding-top:4px}.bounded-hub .event-conversation h2{font-size:24px}.bounded-hub .event-conversation blockquote{font-size:15px;line-height:1.2}.bounded-hub .event-steps li{font-size:13px;padding:4px 0}.bounded-hub .event-steps strong{font-size:12px}.bounded-hub .event-reward{font-size:11px;gap:5px 12px}
 .sheet-content{gap:6px}.sheet-content:has(.treasury-exchanges){padding-top:38px;padding-bottom:12px;gap:4px 16px}.sheet-content h2{font-size:28px}.sheet-content h3{font-size:18px}.sheet-content .stat-line strong{font-size:21px}.treasury-exchange{padding:3px 0}.treasury-exchange label{font-size:15px}.treasury-earnings p{font-size:11px}
 .bounded-hub .hub-heading{margin:6px auto}.bounded-hub .hub-heading .eyebrow,.bounded-hub .hub-heading>p{display:none}.bounded-hub .hub-heading h1{font-size:28px;margin:4px 0}.bounded-hub #preferences{gap:5px 12px}.bounded-hub #preferences .volume-label{min-height:36px}.bounded-hub #preferences input:not([type=checkbox]):not([type=range]),.bounded-hub #preferences select{min-height:28px;padding:4px 6px}.bounded-hub #preferences .check{min-height:26px;font-size:11px}.bounded-hub #preferences button{min-height:30px;font-size:14px}
}
@media(max-width:600px){
 .bounded-journal .quest-letter{padding:12px 14px;gap:8px}.bounded-journal .quest-story{font-size:15px}.bounded-journal .quest-objectives strong{font-size:15px}.bounded-journal .quest-actions{gap:6px}.bounded-journal .quest-rewards .reward-line{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.bounded-journal .quest-gold-note{font-size:10px}
 .sheet-content:has(.treasury-exchanges){padding-inline:16px;display:flex;gap:6px}.treasury-exchanges{display:block}.treasury-exchange{grid-template-columns:minmax(0,1fr) 44px auto;gap:5px}.treasury-exchange .plain-action{grid-column:auto;font-size:11px}.treasury-exchange label{font-size:16px}.treasury-earnings p{font-size:11px}.treasury-packs{display:flex;gap:10px;flex-wrap:wrap}.treasury-packs h3{width:100%;margin:0}.treasury-packs .plain-action{padding:3px 0}
 .bounded-world .weapon-rule h2{font-size:19px}.bounded-world .weapon-rule p{font-size:12px}
 .bounded-journal .journal-index:has(.quest-navigation){height:42px}.bounded-journal .journal-index .quest-navigation{padding:0;margin:0}.bounded-journal .journal-index .quest-navigation select{min-height:32px}
}
/* Finite panels keep their actions in the same view as their content. */
.bounded-yard .yard-stage{overflow:hidden;pointer-events:none}.bounded-yard .loadout-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.bounded-yard .loadout-slot{min-width:0}.bounded-yard .training-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end}.bounded-yard .training-controls select{width:100%}.bounded-yard .loadout-gear:empty{display:none}.bounded-yard .training-note{display:block}
@media(max-height:600px){
 .bounded-yard #yard{padding:8px 3%}.bounded-yard .yard-heading{margin:6px 0}.bounded-yard .yard-heading h1{font-size:27px;margin:0}.bounded-yard .yard-heading p{display:none}.bounded-yard .loadout-slot{display:block;padding:5px 0}.bounded-yard .loadout-slot h2{font-size:20px}.bounded-yard .loadout-slot small{font-size:10px;line-height:1.2}.bounded-yard .loadout-gear{height:28px;margin:3px 0}.bounded-yard .loadout-gear .gear-art{height:28px;width:22px}.bounded-yard .loadout-slot button{font-size:12px;min-height:28px;padding:3px}.bounded-yard .training-controls label{font-size:12px}.bounded-yard .training-controls select{min-height:30px;padding:4px;font-size:13px}.bounded-yard .training-controls button{font-size:14px;min-height:30px;padding:5px}.bounded-yard .training-note{font-size:10px;line-height:1.3;margin:4px 0}.bounded-yard .yard-fighter>strong{font-size:15px}
 .bounded-hub .settings-aside{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:6px}.bounded-hub .settings-aside>:is(h2,p,#purchase-history){grid-column:1/-1}.bounded-hub .settings-aside .etched-button{font-size:14px;min-height:32px;padding:5px}
 .bounded-arena .personal-ledger{gap:5px;padding:4px 0}.bounded-arena .personal-ledger>*{margin:0!important}.bounded-arena .personal-ledger>strong{font-size:28px}.bounded-arena .personal-ledger h2{font-size:23px}.bounded-arena .personal-ledger .record{padding:3px 0;font-size:14px}.bounded-arena .personal-ledger>a{margin-top:0}
 .bounded-world :is(.weekly-siege,.fortress-ledger,#guild-decoration){gap:5px;padding:8px}.bounded-world :is(.weekly-siege,.fortress-ledger,#guild-decoration) :is(h2,h3){font-size:22px;margin:0}.bounded-world :is(.weekly-siege,.fortress-ledger,#guild-decoration)>p{font-size:12px;line-height:1.25;margin:0}.bounded-world :is(.weekly-siege,.fortress-ledger,#guild-decoration) button{min-height:30px;padding:4px 8px;font-size:15px}.bounded-world #guild-decoration{display:grid;grid-template-columns:1fr 1fr;align-content:start}.bounded-world #guild-decoration>:is(h3,button){grid-column:1/-1}.bounded-world #guild-decoration label{gap:4px}.bounded-world #guild-decoration select{min-height:30px;padding:4px;font-size:14px}
 .bounded-world .dungeon-story{gap:5px}.bounded-world .dungeon-story .world-button{min-height:30px;padding:4px;font-size:16px}.bounded-world .dungeon-story .fine-print{font-size:11px;line-height:1.2}.bounded-world .dungeon-story .energy-inline-action{min-height:24px;padding:2px;font-size:12px}
}
@media(min-width:601px) and (max-height:600px){
 .bounded-journal .journal-header{height:78px;min-height:78px}.bounded-journal .journal-index:has(.quest-navigation){height:36px;flex:none}.bounded-journal .quest-letter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;align-content:start;gap:5px 12px;padding:10px 14px}.bounded-journal .letter-heading{grid-column:1/-1}.bounded-journal .letter-heading h2{font-size:25px;line-height:1.1;margin:2px 0}.bounded-journal .letter-chapter{font-size:8px}.bounded-journal .quest-giver{font-size:12px}.bounded-journal .quest-story{grid-column:1;grid-row:2;font-size:13px;line-height:1.25}.bounded-journal .quest-objectives{grid-column:2;grid-row:2;padding:0;border:0}.bounded-journal .quest-rewards{grid-column:1/-1;grid-row:3;padding:2px 0}.bounded-journal .quest-objectives li{padding:2px 0;gap:6px}.bounded-journal .quest-objectives strong{font-size:13px;line-height:1.1}.bounded-journal .objective-mark{width:20px;height:20px;font-size:12px}.bounded-journal .quest-actions{grid-column:1/-1;grid-row:4;margin:0!important}.bounded-journal .next-story{width:auto}.bounded-journal .reward-line{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.bounded-journal .reward-line>span{display:grid;grid-template-columns:24px 1fr;gap:1px 5px;align-items:center}.bounded-journal .reward-line>span>i{grid-row:1/3}.bounded-journal .reward-line small{margin:0;font-size:9px}.bounded-journal .quest-complete-label{font-size:14px}.bounded-journal .locked-story{grid-column:1/-1}
 .bounded-world .world-nav{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:4px 8px}.bounded-world .world-nav a{font-size:12px;min-height:30px}.bounded-world .fortress-ledger{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:5px 16px}.bounded-world .fortress-ledger>.ink-eyebrow{grid-column:1/-1}.bounded-world .fortress-ledger>h2{grid-column:1;grid-row:2}.bounded-world .fortress-ledger>p:nth-of-type(1){grid-column:1;grid-row:3}.bounded-world .fortress-ledger>[data-action=guild-contribute]{grid-column:1;grid-row:4}.bounded-world .fortress-ledger>h3{grid-column:2;grid-row:2}.bounded-world .fortress-ledger>p:nth-of-type(2){grid-column:2;grid-row:3}.bounded-world .fortress-ledger>meter{grid-column:2;grid-row:4;width:100%}.bounded-world .fortress-ledger>.fine-print{grid-column:2;grid-row:5}.bounded-world .fortress-ledger>[data-action=guild-raid]{grid-column:2;grid-row:6}.bounded-world .fortress-ledger>p:last-child{grid-column:1;grid-row:5}
}
@media(max-width:800px) and (max-height:600px){
 .bounded-hub #hub-content[data-inspecting=true]>.hub-heading,.bounded-hub #hub-content[data-inspecting=true]>.bag-tabs{display:none}.bounded-hub .bag-detail .bag-item-heading .bag-inspect-art{height:44px}.bounded-hub .bag-detail .bag-item-heading h2{font-size:21px}.bounded-hub .bag-detail .comparison>div{padding:3px 0}.bounded-hub .bag-detail .comparison small{display:inline;margin-left:7px}.bounded-hub .bag-detail{gap:5px}
}
@media(max-width:600px){
 .bounded-yard .loadout-strip{grid-template-columns:1fr;gap:6px}.bounded-yard .loadout-slot{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:5px 0}.bounded-yard .loadout-slot h2{font-size:21px}.bounded-yard .loadout-slot small{margin:0;font-size:10px}.bounded-yard .loadout-gear{height:30px;margin:0;grid-column:2;grid-row:1/3}.bounded-yard .loadout-gear .gear-art{height:30px;width:24px}.bounded-yard .loadout-slot button{font-size:12px;min-height:28px;padding:3px 6px}.bounded-yard .yard-heading h1{font-size:28px}.bounded-yard .yard-heading p{font-size:12px;line-height:1.3}.bounded-yard .training-controls{grid-template-columns:1fr auto;gap:5px}.bounded-yard .training-controls label{font-size:12px}.bounded-yard .training-controls select{font-size:12px;padding:5px}.bounded-yard .training-controls button{font-size:13px;padding:6px}.bounded-yard .training-note{font-size:10px;line-height:1.3}
}
@media(max-height:600px){
 .bounded-account .account-page{padding:8px 12px}.bounded-account .account-page>h1{font-size:26px;margin:4px 0}.bounded-account .account-page>.folio-tabs{margin:0 0 5px}.bounded-account .account-page p{font-size:12px;line-height:1.25;margin:0}.bounded-account .account-page form{gap:5px;margin:3px 0;grid-template-columns:1fr 1fr;align-content:start}.bounded-account .account-page form>:is(small,.account-actions,button){grid-column:1/-1}.bounded-account .account-page label{font-size:13px;gap:3px}.bounded-account .account-page input,.bounded-account .recovery-section form input{min-height:30px;padding:5px;font-size:13px}.bounded-account .account-page form small{font-size:10px}.bounded-account .account-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.bounded-account .account-actions button{font-size:14px;min-height:30px;padding:4px}.bounded-account .account-login .training-note{font-size:10px;line-height:1.3}.bounded-account .recovery-section h2{font-size:23px}.bounded-account .recovery-section summary{font-size:14px;padding:3px 0}
 .tavern-scene{height:100dvh;min-height:0}.tavern-scene .tavern-stage{height:auto;min-height:0!important;padding:8px 15px 66px}.tavern-scene .event-launch h1,.tavern-scene .event-result h1{font-size:55px;margin:6px 0 14px}.tavern-scene .event-emblem{font-size:32px}.tavern-scene .launch-button{min-height:48px;padding:8px 20px}.tavern-scene .tavern-footer{min-height:54px;padding:8px 10px;font-size:11px;gap:10px}
 .bounded-world .guild-register>h2{font-size:23px}.bounded-world .guild-register>p{font-size:12px}.bounded-world .guild-register .guild-entry{padding:4px 0;gap:5px}.bounded-world .guild-register :is(input,button){min-height:30px;padding:4px;font-size:14px}
}
@media(min-width:601px) and (max-height:600px){
 .bounded-journal .letter-heading{line-height:1.1}.bounded-journal .letter-chapter,.bounded-journal .quest-giver{display:block}.bounded-journal .quest-story::first-letter{font:inherit;float:none;margin:0}.bounded-journal .quest-actions{padding:0}.bounded-journal .reward-line .title-reward>i{height:24px;font-size:22px}.bounded-journal .quest-rewards h3{margin:2px 0;font-size:8px}.bounded-journal .quest-gold-note{font-size:9px;line-height:1.15;margin:2px 0}
}
@media(max-width:600px){
 .bounded-world .fortress-ledger{gap:5px;padding:9px}.bounded-world .fortress-ledger>:is(h2,h3){font-size:23px;margin:0}.bounded-world .fortress-ledger>p{font-size:13px;line-height:1.3;margin:0}.bounded-world .fortress-ledger button{min-height:32px;font-size:15px;padding:4px 8px}.bounded-world .fortress-ledger>meter{margin:4px 0}
}
/* All visible shelf rows use their real item height, never the legacy two-row track. */
body .chamber .forge-scene .forge-workspace .forge-shelves{grid-template-rows:none!important;grid-auto-rows:max-content!important;row-gap:12px;overflow-y:auto;overflow-x:hidden}.forge-scene .forge-shelves::before,.forge-scene .forge-shelves::after{display:none}.forge-scene .forge-stock-item{align-self:stretch}.forge-scene .forge-inspection-close{color:var(--game-ink)!important}
.sheet-content .treasury-exchange{padding:5px 0;gap:6px;grid-template-columns:minmax(0,1fr) 46px auto}.sheet-content .treasury-exchange label{font-size:16px;line-height:1.2}.sheet-content .treasury-exchange small{font-size:10px;line-height:1.2;margin-top:3px}.sheet-content .treasury-exchange input{min-height:30px;padding:4px}.sheet-content .treasury-exchange .plain-action{grid-column:auto;font-size:11px;padding:5px 0}.sheet-content .treasury-earnings{padding:0 0 8px}.sheet-content .treasury-earnings p{font-size:12px;line-height:1.3}.sheet-content .treasury-packs .plain-action{font-size:13px;padding:6px 0}.sheet-content .treasury-exchanges h3,.sheet-content .treasury-earnings h3,.sheet-content .treasury-packs h3{margin:0 0 6px}
.result-dialog :is(.eyebrow,.result-xp,.result-xp small,.victory-loot small,.victory-materials,.result-note){color:var(--game-muted)!important}.result-dialog .reward-icon.experience{color:#e2c98e}.result-dialog .claim-button{background:linear-gradient(#554630,#292c27);color:#ffe5a9;border:1px solid #a6864e}
@media(max-height:600px){
 .sheet-content:has(.treasury-exchanges){padding:44px 22px 10px;gap:3px 16px}.sheet-content:has(.treasury-exchanges) .sheet-eyebrow{font-size:8px;letter-spacing:1px}.sheet-content:has(.treasury-exchanges) h2{font-size:27px;line-height:1.1}.sheet-content:has(.treasury-exchanges) .lead{font-size:11px;line-height:1.3}.sheet-content:has(.treasury-exchanges) .stat-line{padding:4px 0}.sheet-content:has(.treasury-exchanges) .stat-line strong{font-size:20px}.sheet-content:has(.treasury-exchanges)>.plain-action{font-size:11px;padding:5px 0}.sheet-content .treasury-exchange{padding:3px 0}.sheet-content .treasury-exchange label{font-size:14px}.sheet-content .treasury-exchange small{font-size:9px;margin-top:1px}.sheet-content .treasury-exchange input{min-height:26px;padding:3px}.sheet-content .treasury-exchange .plain-action{padding:3px 0;font-size:10px}.sheet-content .treasury-exchanges h3,.sheet-content .treasury-earnings h3,.sheet-content .treasury-packs h3{font-size:18px;margin-bottom:3px}.sheet-content .treasury-earnings p{font-size:10px}.sheet-content .treasury-packs .plain-action{font-size:11px}
 body .energy-dialog{width:min(650px,calc(100vw - 24px));padding:14px 20px 10px;overflow:hidden}.energy-dialog .energy-eyebrow{font-size:8px;margin:0}.energy-dialog h2{font-size:29px;margin:3px 0}.energy-dialog .energy-amount{font-size:30px;margin:3px 0}.energy-dialog .energy-copy,.energy-dialog .energy-novice{font-size:11px;line-height:1.25;margin:5px 0}.energy-dialog .energy-countdown{font-size:10px;margin:4px 0}.energy-dialog .energy-costs{display:flex;justify-content:space-between;gap:8px;font-size:11px;padding:6px 0;margin:6px 0}.energy-dialog .energy-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:7px 0}.energy-dialog .energy-offers>div{display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:4px;padding:5px 0}.energy-dialog .energy-offers strong{font-size:17px}.energy-dialog .energy-offers small{font-size:9px;line-height:1.25;margin:2px 0}.energy-dialog .energy-offers button{min-width:0!important;min-height:28px;padding:6px!important;font-size:11px}.energy-dialog .energy-rest-note,.energy-dialog .energy-notice{font-size:10px;line-height:1.25;margin:4px 0}.energy-dialog .energy-notice:empty{display:none}.energy-dialog .energy-wallet-link{min-height:22px;font-size:11px;padding:3px 0}
 .result-dialog{padding:12px 20px;overflow:hidden}.result-dialog .result-crest{width:24px;height:24px;margin-bottom:3px}.result-dialog h2{font-size:33px;margin:5px 0}.result-dialog .result-subtitle{font-size:14px;margin:4px 0 8px}.result-dialog .damage-summary{padding:6px 0;font-size:14px}.result-dialog .damage-summary strong{font-size:25px;margin:2px 0}.result-dialog .victory-loot{margin:7px 0;gap:14px}.result-dialog .reward-icon{height:26px;width:26px;font-size:18px;margin-bottom:3px}.result-dialog .victory-loot strong{font-size:20px}.result-dialog .victory-materials{padding:4px 0;gap:4px}.result-dialog .result-xp>div{margin:5px 0}.result-dialog .claim-button{min-height:32px;font-size:18px;padding:6px 12px;margin-top:8px}.result-dialog .result-note{margin-top:5px}
 .bounded-journal .quest-letter{gap:3px 12px;padding:8px 14px}.bounded-journal .quest-objectives small{font-size:9px;line-height:1.2}.bounded-journal .quest-objectives h3{margin:1px 0}.bounded-journal .quest-objectives li{padding:2px 0}.bounded-journal .quest-actions .letter-button{min-height:26px;padding:2px 10px}
}
@media(max-width:420px){
 .shop-dialog{padding:14px 16px;overflow:hidden}.shop-dialog .shop-product{grid-template-columns:24px minmax(0,1fr) 100px;gap:8px;padding:7px 8px}.shop-dialog .shop-product .product-symbol{width:24px;height:24px;font-size:17px}.shop-dialog .shop-product h3{font-size:16px;margin:0}.shop-dialog .shop-product small{font-size:10px;line-height:1.2;display:block}.shop-dialog .shop-product button{min-width:0;padding:6px;font-size:12px}.shop-dialog .shop-balances{font-size:11px;gap:8px}.shop-dialog h2{font-size:26px}.shop-dialog .commerce-link{font-size:10px;line-height:1.3;margin-top:5px}.shop-dialog footer>small,.shop-dialog .commerce-status{font-size:10px;line-height:1.3}.shop-dialog .shop-tabs{margin:7px 0}.shop-dialog .shop-tabs button{padding:7px 13px}
}
.bounded-world .guild-register{overflow:hidden;display:flex;flex-direction:column;gap:6px}.bounded-world .guild-register>*{margin:0}.bounded-world .guild-entry-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}.bounded-world .guild-register form{flex:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px}.bounded-world .guild-entry{min-width:0}.bounded-world .guild-entry strong{min-width:0;overflow-wrap:anywhere}
.menu-sheet .sheet-content .treasury-exchange{gap:4px 6px}.menu-sheet .sheet-content .treasury-exchange input{min-height:28px;padding:4px;height:28px}.menu-sheet .sheet-content .treasury-exchange label{font-size:15px;line-height:1.15}.menu-sheet .sheet-content .treasury-exchange small{font-size:10px;line-height:1.15;margin:2px 0 0}.menu-sheet .sheet-content .treasury-earnings p{font-size:11px;line-height:1.3;margin:5px 0}.menu-sheet .sheet-content .treasury-packs .plain-action{padding:4px 0;font-size:12px}.menu-sheet .sheet-content .stat-line>div{padding:0}.menu-sheet .sheet-content .stat-line strong{line-height:1.2}.menu-sheet .sheet-content .stat-line span{font-size:9px;margin-top:2px}
@media(max-height:600px){
 .menu-sheet .sheet-content .treasury-exchange input{height:24px;min-height:24px;padding:3px}.menu-sheet .sheet-content .treasury-exchange label{font-size:13px}.menu-sheet .sheet-content .treasury-exchange small{font-size:8px;line-height:1.2;margin-top:1px}.menu-sheet .sheet-content .treasury-exchange{padding:2px 0}.menu-sheet .sheet-content .treasury-exchange .plain-action{font-size:10px}.menu-sheet .sheet-content .treasury-earnings p{font-size:10px}.menu-sheet .sheet-content .stat-line{padding:3px 0}.menu-sheet .sheet-content .stat-line span{font-size:8px}
 body dialog.result-dialog[open]{padding:8px 16px;overflow:hidden}.result-dialog .damage-summary small{font-size:8px;margin-top:1px}.result-dialog .victory-loot{padding-bottom:4px}.result-dialog .victory-materials{margin:0 0 4px;padding:2px 0;font-size:10px}.result-dialog .victory-materials>small{font-size:10px}.result-dialog .result-xp,.result-dialog .result-xp small{font-size:10px}.result-dialog .result-note{font-size:9px;margin:4px 0 0}.result-dialog .result-subtitle{font-size:13px;margin:3px 0 5px}
}
@media(max-width:600px){.menu-sheet .sheet-content:has(.treasury-exchanges){padding-top:56px;gap:5px}.menu-sheet .sheet-content:has(.treasury-exchanges) h2{font-size:30px;line-height:1.1}.menu-sheet .sheet-content:has(.treasury-exchanges) .lead{font-size:12px;line-height:1.3}.menu-sheet .sheet-content:has(.treasury-exchanges) .stat-line{padding:6px 0}.menu-sheet .sheet-content:has(.treasury-exchanges) .stat-line strong{font-size:22px}.menu-sheet .sheet-content .treasury-exchange{padding:4px 0}.menu-sheet .sheet-content .treasury-exchanges h3,.menu-sheet .sheet-content .treasury-earnings h3,.menu-sheet .sheet-content .treasury-packs h3{font-size:20px;margin-bottom:4px}}
.forge-scene .forge-inspection{background:linear-gradient(135deg,#202d31fc,#101a20fc)!important}.forge-scene .inspection-panels{display:flex!important;flex-direction:column;justify-content:flex-start;gap:7px;flex:1;min-height:0;height:auto!important}.forge-scene .inspection-panel{display:block!important;height:auto!important;min-height:0!important;flex:0 0 auto!important}.forge-scene .inspection-panel .forge-compare{margin:3px 0}.forge-scene .forge-compare>div{padding:4px 0}.forge-scene .forge-compare :is(span,small){color:var(--game-muted)}
body :is(.encounter-dialog,.result-dialog,.forge-inspection) :is(.eyebrow,.difficulty-stars,.encounter-top .eyebrow,.encounter-foot,.encounter-loot .eyebrow,.dialog-close,.attack-button span,.forge-inspection-quality span){color:#dcc28d!important}body .encounter-dialog .energy-inline-action{color:#f1d7a6!important}.utilities .vip-utility{font-size:0;background:none;opacity:1}
@media(min-width:601px) and (max-height:600px){.forge-scene .inspection-panels{display:grid!important;grid-template-columns:1fr 1fr;align-content:start;gap:10px}.forge-scene .forge-technique{font-size:11px;line-height:1.25;margin:4px 0}.forge-scene .forge-technique-link{font-size:10px;margin:3px 0}.forge-scene .forge-weapon-stat dt{font-size:11px}.forge-scene .forge-weapon-stat dd{font-size:22px}.forge-scene .forge-compare>div{padding:3px 0}.forge-scene .forge-compare strong{font-size:16px}.forge-scene .forge-buy-note{font-size:10px;line-height:1.2}}
.forge-scene .forge-goal-button{color:#e1c796!important}.forge-scene .forge-compare .is-better{color:#bcd09d}.forge-scene .forge-compare .is-worse{color:#e3a99a}
@media(min-width:601px) and (max-height:600px){
 .forge-scene .forge-inspection{padding:10px;gap:5px}.forge-scene .forge-inspection-quality{font-size:9px;line-height:1.2}.forge-scene .forge-inspection-identity{min-height:40px;gap:8px}.forge-scene .forge-inspection-art{height:42px;width:42px}.forge-scene .forge-inspection-identity h3{font-size:21px;line-height:1.05}.forge-scene .forge-weapon-stat{padding:3px 0;margin:2px 0}.forge-scene .forge-compare{gap:4px}.forge-scene .forge-inspection .forge-compare small{font-size:9px;line-height:1.2}.forge-scene .forge-inspection .forge-compare span{font-size:11px;line-height:1.2}.forge-scene .inspection-checkout{gap:4px;padding-top:5px}.forge-scene .forge-buy-price{margin:2px 0;font-size:16px}.forge-scene .inspection-checkout .forge-buy{min-height:30px;font-size:17px;padding:4px}.forge-scene .forge-goal-button{min-height:26px;font-size:11px;padding:3px}.forge-scene .forge-bag-link{font-size:11px;min-height:16px;margin:2px 0}.forge-scene .forge-buy-note{margin:2px 0;font-size:9px;line-height:1.2}
}
@media(min-width:601px) and (max-height:600px){.menu-sheet .sheet-content:has(.treasury-exchanges) .stat-line>div{display:flex;align-items:baseline;gap:7px}.menu-sheet .sheet-content:has(.treasury-exchanges) .stat-line span{margin:0;font-size:8px}}

/* Room-only party geometry cannot leak into the forge or the hero panels. */
.chamber.room-party-ready:not(.city-view):not(.character-open):not(.forge-open):not(.market-open) .hero-stage{height:var(--room-hero-height);width:var(--room-hero-width);left:var(--room-hero-left);bottom:var(--room-party-bottom);max-width:none}
.chamber.room-party-ready:not(.city-view):not(.character-open):not(.forge-open):not(.market-open) .hero-caption{bottom:-38px;left:50%;max-width:100%;white-space:nowrap}
.chamber.room-party-ready .hero-caption strong{font-size:clamp(15px,2.3vw,25px);display:block;overflow:hidden;text-overflow:clip;line-height:1.15}
.chamber.room-party-ready .hero-caption span{line-height:1.3;margin-top:3px}

/* Large balances still leave room for all four header controls. */
@media(min-width:541px) and (max-width:800px){.chamber .top-hud{gap:8px}}
@media(max-width:420px){.chamber .wallet{gap:2px}.chamber .currency{gap:2px}}

.character-sheet .inventory-category-tabs button{color:#e9ddc4;opacity:1;text-shadow:0 1px 3px #000}
.character-sheet .inventory-category-tabs button[aria-pressed=true]{color:#ffe1a1;border-color:#ddbc7d}
.character-sheet .inventory-category-tabs button:hover,.character-sheet .inventory-category-tabs button:focus-visible{color:#fff0d1;background:#cfa75a12}
.chamber.room-party-ready .room-quest-tracker{bottom:155px}
@media(max-width:540px){.chamber.room-party-ready .room-quest-tracker{bottom:135px;left:80px}.chamber.room-party-ready .room-quest-tracker .quest-tracker{max-width:160px}.chamber.room-party-ready .room-quest-tracker strong{font-size:15px}}
/* The forge hero is scenery; its SVG must not intercept cabinet/exit controls. */
.forge-open .hero-figure,.forge-open .hero-figure *{pointer-events:none}
@media(max-width:540px) and (max-height:580px){.chamber .forge-scene .forge-workspace{bottom:42px}}

/* A navigation press is acknowledged while the destination is prepared. */
[data-navigation-pending]{cursor:progress!important;filter:brightness(1.15)}
button,a[href],summary,[role="button"],input[type="submit"]{touch-action:manipulation}
/* A press paints immediately; confirmed values still come from the server. */
:where(button,a[href],summary,[role="button"]):active:not(:disabled):not([aria-disabled="true"]){filter:brightness(1.15)}
