/* ASHENREALM — jeden arkusz stylów.
   Scalony z 34 dawnych plików w dokładnie tej samej kolejności (kaskada bez zmian).
   Każda sekcja poniżej ma nagłówek z nazwą pliku źródłowego. */

/* ================================================================
   SEKCJA: styles.css
   ================================================================ */

*{box-sizing:border-box}:root{--gold:#d6a43a;--line:#30353d;--panel:#15171b;--text:#ebe8df}
body{margin:0;background:radial-gradient(circle at 50% 0,#2a2218,#090a0c 38%,#07080a);color:var(--text);font:14px/1.4 "Segoe UI",Arial,sans-serif}
header{display:flex;justify-content:space-between;align-items:center;padding:14px 22px;background:#0b0c0eee;border-bottom:1px solid #3b301f;position:sticky;top:0;z-index:5}
h1{margin:0;font-size:21px}h1 span{font-size:11px;color:var(--gold);border:1px solid #6e5520;border-radius:20px;padding:3px 8px}header p{margin:3px 0;color:#9298a0}.top{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.top span{color:var(--gold)}.top small{color:#6fa77a;border-left:1px solid #394038;padding-left:10px}
main{max-width:1580px;margin:12px auto;padding:0 10px;display:grid;grid-template-columns:310px minmax(500px,1fr) 350px;gap:11px}.center{display:flex;flex-direction:column;gap:11px}
.panel{background:linear-gradient(#17191e,#101216);border:1px solid #2d3239;border-radius:8px;overflow:hidden;box-shadow:0 10px 35px #0005}.title{padding:9px 12px;background:#1d2025;border-bottom:1px solid #343940;color:var(--gold);font-weight:800;letter-spacing:.7px}.sub{margin-top:11px;border-top:1px solid #343940}
.bars,.stats,.derived{margin:11px}.bars label{display:flex;justify-content:space-between;margin:6px 0 3px;color:#b9bec5}.bar{height:10px;background:#07080a;border:1px solid #30343b;border-radius:8px;overflow:hidden;position:relative}.bar.big{height:17px}.bar i{display:block;height:100%;transition:width .2s}.bar em{position:absolute;top:0;height:100%;width:1px;background:#fff6}.hp{background:linear-gradient(90deg,#772121,#c74339)}.mp{background:linear-gradient(90deg,#204b73,#408bc3)}.exp{background:linear-gradient(90deg,#745617,#d6a230)}.enemyhp{background:linear-gradient(90deg,#6c1b1b,#c43730)}
.points{margin:10px 11px;display:flex;justify-content:space-between;color:#9da3ab}.points b{color:var(--gold)}.stats{display:grid;grid-template-columns:1fr 1fr;gap:6px}.stats>div{display:grid;grid-template-columns:1fr auto auto auto;gap:5px;align-items:center;background:#0c0e11;border:1px solid #292e34;padding:7px}.stats i{font-size:11px;color:#62ad76}.derived{display:grid;grid-template-columns:1fr 1fr;gap:5px}.derived span{display:flex;justify-content:space-between;background:#0c0e11;padding:7px;border-left:2px solid #655026;color:#999fa7}.derived b{color:#eee}
.combat-stats{margin:11px;display:grid;grid-template-columns:1fr 1fr;gap:5px}.combat-stats span{display:flex;justify-content:space-between;background:#10150f;padding:7px;border-left:2px solid #477247;color:#a8b7a8}.combat-stats b{color:#8dd293}
button,select{background:#23272e;color:#e8e9eb;border:1px solid #414750;border-radius:5px;padding:8px;cursor:pointer;font-weight:700}button:hover{filter:brightness(1.15)}button:disabled{opacity:.3;cursor:not-allowed}.primary{background:linear-gradient(#9a7227,#694816);border-color:#c4973a}.wide{margin:0 11px;width:calc(100% - 22px)}
.equipment{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px}.eq{text-align:left;min-height:64px;background:#0c0e11}.eq small,.eq b,.eq span{display:block}.eq small{color:#858c94}.eq b{font-size:12px;margin:3px 0}.eq span{font-size:11px;color:#70b27f}.eq.filled{border-color:#665326}
.quick-pots{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px}.quick-pots button{font-size:11px;text-align:left}.quick-pots b{display:block;color:#d3a849}
.zones{display:flex;gap:5px;padding:8px;overflow:auto}.zone{min-width:130px;text-align:left}.zone b,.zone small{display:block}.zone small{color:#858c95}.zone.active{border-color:#c3983c;background:#292318}.enemy-list{display:flex;gap:5px;padding:0 8px 8px;overflow:auto}.enemy-row{min-width:155px;display:flex;justify-content:space-between;text-align:left;background:#101216}.enemy-row span{display:flex;flex-direction:column}.enemy-row small{color:#858c95;font-weight:400}.enemy-row>span:last-child{font-size:10px;color:#c87878}.enemy-row.active{border-color:#c3983c;background:#292318}
.fight{padding:14px;min-height:450px}.enemy-card{max-width:540px;margin:7px auto 12px;padding:20px;text-align:center;background:radial-gradient(circle,#29221b,#101216 70%);border:1px solid #393329;border-radius:10px;position:relative}.enemy-type{position:absolute;top:8px;right:10px;font-size:10px;color:#d6a43a;border:1px solid #665326;border-radius:12px;padding:2px 7px}.enemy-icon{font-size:55px}.enemy-card h2{margin:3px;font-size:25px}.enemy-card p{color:#9299a2}.enemy-card label{display:flex;justify-content:space-between}.fight-actions{max-width:540px;margin:0 auto 9px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.fight-actions #combatSpeed.active{color:#ffb26d;border-color:#a74f2f;background:#3a1d16;box-shadow:0 0 12px #b43f252e}.log{height:185px;overflow:auto;background:#08090b;border:1px solid #292d33;padding:8px}.log div{padding:2px;border-bottom:1px solid #15171a;color:#c3c7cc}.log .good{color:#70c486}.log .bad{color:#d07171}.log .crit{color:#efb33e}.log .loot{color:#78b2e3}.log .skill{color:#b995e4}.log .level{color:#d8c363}.log .warn{color:#d3945a}.log .book{color:#6fc7c4}.log .stone{color:#d9d9ef}.log .heal{color:#7cd9a2}.log .dot{color:#d58b5c}.log .boss-phase{color:#f0c56f}.log .boss-special{color:#ff815d;font-weight:700}
.skills{padding:7px}.skill-card{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 9px;border-bottom:1px solid #292d33}.skill-card b,.skill-card small{display:block}.skill-card small{color:#858c95}.skill-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.training-info{display:grid;grid-template-columns:1fr auto;gap:10px;padding:9px;border-top:1px solid #2e333a}.book-bag{display:flex;flex-wrap:wrap;gap:5px}.book-bag span{font-size:11px;background:#0b0d10;padding:4px 6px;border:1px solid #292e34}.settings{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;padding:9px;background:#0b0d10;border-top:1px solid #2e333a;color:#9ba1a9}
.inventory{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:7px;max-height:315px;overflow:auto}.inv{text-align:left;background:#0c0e11}.inv b,.inv small{display:block}.inv span{float:right;color:#d4a641}.inv small{color:#858c95}.inv.sel{border-color:#c1963b;background:#292318}.detail{min-height:135px;padding:9px;border-top:1px solid #30343b}.detail h3{margin:0}.detail p{font-size:11px;color:#777e87}.item-stat{padding:7px 0}.actions{display:grid;gap:4px;margin-top:7px}.actions button small{display:block;margin-top:2px;color:#9299a2;font-weight:500}.actions .normal-refine{border-color:#754545;background:#2b1b1b}.actions .normal-refine small{color:#cf8a8a}.actions .blessing-refine{border-color:#a68437;background:linear-gradient(#57451e,#302713);color:#f2d88b}.actions .blessing-refine small{color:#dbc27d}.empty{text-align:center;color:#777e87;padding:16px}
.shop{padding:6px}.shop-row{display:flex;justify-content:space-between;align-items:center;padding:7px;border-bottom:1px solid #292d33}.shop-row b,.shop-row small{display:block}.shop-row small{color:#858c95}.dev{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px}.dev button:last-child{grid-column:1/-1}
footer{max-width:1580px;margin:5px auto 18px;padding:0 10px;color:#707780;font-size:11px;display:flex;justify-content:space-between;gap:20px}
.overlay{position:fixed;inset:0;background:#050608ee;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px}.overlay.hidden{display:none}.create-box{max-width:900px;width:100%;background:#15171b;border:1px solid #3a4048;border-radius:12px;padding:20px;box-shadow:0 30px 80px #000}.create-box h1{text-align:center;font-size:28px}.create-box>p{text-align:center;color:#979da5}.class-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.class-card{background:#0d0f12;border:1px solid #30353c;padding:12px;border-radius:8px}.class-card h3{color:#d6a43a}.class-card p{font-size:12px;color:#8d949d}.class-card button{display:block;width:100%;margin-top:6px}
@media(max-width:1150px){main{grid-template-columns:1fr}.side{order:3}.class-choices{grid-template-columns:1fr 1fr}}@media(max-width:600px){.class-choices{grid-template-columns:1fr}.settings{grid-template-columns:1fr}footer{flex-direction:column}}

.auto-box{max-width:540px;margin:0 auto 9px;padding:7px 9px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#0b0d10;border:1px solid #292e34;color:#aeb4bc}
.auto-box label{display:flex;gap:5px;align-items:center}.auto-box select{padding:4px 7px}
.loop-status{max-width:540px;margin:0 auto 9px;padding:8px;background:#11150f;border:1px solid #334332;display:flex;gap:5px;flex-wrap:wrap}.loop-status b{width:100%;color:#b7d49b;font-size:11px}.loop-step{font-size:10px;padding:3px 6px;border:1px solid #38403a;border-radius:12px;color:#7d877f}.loop-step.done{color:#9bd38f;border-color:#4f714a;background:#182116}.loop-pity{margin-left:auto;color:#aab5aa;font-size:10px;padding:3px}
.quests{max-height:260px;overflow:auto}.quest-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 8px;border-bottom:1px solid #292d33}.quest-row b,.quest-row small{display:block}.quest-row small{color:#858c95}.quest-row button{font-size:11px;white-space:nowrap}
.log .quest{color:#e4c870}
.dev-tools{padding:8px;display:grid;gap:6px}.dev-exp{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.dev-exp:last-child{grid-template-columns:1fr 1fr}.dev-level{display:grid;grid-template-columns:1fr 1fr;gap:5px}.dev-label{font-size:11px;color:#aeb4bc;margin-top:3px}.dev-tools select{width:100%;min-width:0}.dev-tools #devItem{font-size:11px}

.zone-count{float:right;color:#8f97a0;font-size:11px;font-weight:600;letter-spacing:0}
.zones{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;overflow:visible!important}
.zone{min-width:0!important;width:100%;min-height:55px}
.zone:disabled{opacity:.48;filter:saturate(.45)}
@media(max-width:1350px){.zones{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.zones{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.zones{grid-template-columns:1fr}}

.skill-card.wrong-weapon{opacity:.62;border-left:3px solid #9b3f3f;background:#171113}
.skill-card.wrong-weapon small{color:#c17878}

.offline-box{max-width:1580px;margin:8px auto -2px;padding:7px 12px;border:1px solid #3b3f48;background:#10131a;color:#9da8b7;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px}.offline-box b{color:#d7b55b}.offline-box small{color:#727b88}
.rarity-common{border-color:#4a4f56!important}.rarity-rare{border-color:#4782c2!important;box-shadow:inset 0 0 0 1px #234462}.rarity-epic{border-color:#8d55c7!important;box-shadow:inset 0 0 0 1px #4f2b75}.rarity-legendary{border-color:#d19b39!important;box-shadow:0 0 8px #b2762833,inset 0 0 0 1px #75521d}.rarity-mythic{border-color:#d94b4b!important;box-shadow:0 0 10px #b5323255,inset 0 0 0 1px #7a2424}
.rarity-text-common{color:#d1d4d8}.rarity-text-rare{color:#75b6f2}.rarity-text-epic{color:#c28bf4}.rarity-text-legendary{color:#efbd59}.rarity-text-mythic{color:#ff6d64;text-shadow:0 0 8px #8e2626}
.log .rarity-common{color:#c6cbd0}.log .rarity-rare{color:#70b4ed}.log .rarity-epic{color:#c286ed}.log .rarity-legendary{color:#edbb58}.log .rarity-mythic{color:#ff766c}.log .offline{color:#91a9d8}
.inv.gear span{font-size:10px}.gear-bonuses{margin:7px 0;padding:7px;background:#0b0d10;border:1px solid #292e34;color:#9fd2aa;font-size:12px;line-height:1.55}.craft120{padding:8px}.craft-card{padding:9px;border:1px solid #4a3a23;background:#15120d}.craft-card b,.craft-card small{display:block}.craft-card small{color:#a99368;margin-bottom:7px}.craft-card button{width:100%;margin-top:8px;background:#624b1c;border-color:#a77d2f}.balance{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px}.balance div{display:flex;justify-content:space-between;padding:6px;background:#0b0d10;border:1px solid #292e34}.balance span{color:#858c95}.balance b{color:#d9dce0}
.gear-compare{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0;padding:7px;background:#11151a;border:1px solid #303842;font-size:10px}.gear-compare>b{width:100%;color:#c5ccd5}.gear-compare span{padding:2px 5px;border-radius:4px;background:#0a0d10}.gear-compare .up{color:#81cc8d}.gear-compare .down{color:#db7e7e}.gear-compare.locked{color:#d39a64}

.current-upgrade-drops{max-width:540px;margin:0 auto 8px;padding:7px;background:#0c0f12;border:1px solid #2b3138;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.current-upgrade-drops>b,.current-upgrade-drops>span{grid-column:1/-1;color:#aeb7c1;font-size:11px}
.current-upgrade-drops button{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:5px 7px;font-size:10px;text-align:left}
.current-upgrade-drops button small{color:#8fbc8f;white-space:nowrap}
.upgrade-drop-panel{padding:8px;display:grid;gap:7px}.upgrade-drop-panel>select{width:100%}
.upgrade-summary{display:grid;gap:2px;padding:8px;background:#11151a;border:1px solid #303842}.upgrade-summary>b{font-size:13px}.upgrade-summary span,.upgrade-summary small{color:#9ca5af}
.drop-coverage{padding:6px 8px;background:#0d1115;border:1px solid #272e36;color:#9ca5af;font-size:10px}
.upgrade-source-list{max-height:340px;overflow:auto;display:grid;gap:4px}
.upgrade-source{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;padding:6px;border:1px solid #272d33;background:#0b0d10}
.upgrade-source.playable{border-color:#38513c}.upgrade-source b,.upgrade-source small{display:block}.upgrade-source small{color:#7f8790}.upgrade-source>span{font-weight:800;color:#c8d0d8;white-space:nowrap}
.upgrade-source button{padding:4px 7px;font-size:10px}.drop-foot{display:block;color:#747d86;margin-top:5px;line-height:1.3}
.refine-materials{margin:7px 0;padding:7px;border:1px solid #343a42;background:#0e1115}.refine-materials>b{display:block;margin-bottom:4px}.refine-materials>div{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:2px 0}.refine-materials button{font-size:9px;padding:2px 6px}
@media(max-width:650px){.current-upgrade-drops{grid-template-columns:1fr}}

/* v0.8 FULL */
.bonus-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:7px 0}.bonus-tools button{font-size:10px}
.dungeon-status{padding:9px 12px;border:1px solid #8d6b2e;background:#251e12;display:flex;justify-content:space-between;gap:10px}.dungeon-status.hidden{display:none}.dungeon-status b{color:#e6c472}.dungeon-status span{color:#c8b88f}
.dungeons{max-height:310px;overflow:auto}.dungeon-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;padding:7px;border-bottom:1px solid #292d33}.dungeon-row.active{background:#282012;border-color:#82642d}.dungeon-row b,.dungeon-row small{display:block}.dungeon-row small{color:#858c95;line-height:1.35}.dungeon-row button{white-space:nowrap}
.gear-progression{display:grid;gap:5px;padding:7px}.progression-row{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:7px;border:1px solid #2e343b;background:#0f1216}.progression-row b{color:#d5b86b}.progression-row span{font-weight:700}.progression-row small{grid-column:1/-1;color:#858c95;line-height:1.35}
@media(max-width:650px){.bonus-tools{grid-template-columns:1fr}.dungeon-row{grid-template-columns:1fr}}

.source-bonus-panel{padding:8px;display:grid;gap:7px}.source-bonus-panel>select{width:100%}.source-bonus-list{display:grid;gap:4px;max-height:360px;overflow:auto}.source-bonus-row{padding:6px;border:1px solid #2d333b;background:#0c0f12;display:grid;gap:2px}.source-bonus-row b{font-size:11px}.source-bonus-row span{font-size:10px;color:#d1d5da}.source-bonus-row small{font-size:9px;color:#7f8790}.bonus-tools{grid-template-columns:1fr 1fr 1fr!important}

/* v0.9.2 — pełna itemizacja */
.bonus-rule{display:block;margin-top:6px;padding-top:5px;border-top:1px solid #26332a;color:#7f9b84;line-height:1.35}.bonus-tools button small{display:block;margin-top:2px;color:#8f98a3;font-size:9px;font-weight:500}
.socket-panel{margin:8px 0;padding:8px;background:#10131a;border:1px solid #343b47;border-radius:5px}.socket-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:6px}.socket-head>b{color:#91bce6}.socket-head small{color:#7f8b99;font-size:9px;text-align:right}.socket-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.socket-slot{min-height:48px;padding:5px;background:#090b0e;border:1px solid #2c323a;display:flex;gap:6px;align-items:flex-start}.socket-slot>b{display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:50%;background:#1b2027;color:#8993a0}.socket-slot span{font-size:10px;color:#aab2bd}.socket-slot small{display:block;color:#79a7d0;font-size:8px;margin-top:2px}.filled-socket{border-color:#3e6588}.broken-socket{border-color:#653737;background:#160d0e}.broken-socket span{color:#c87878}.empty-socket span{color:#646d78}.socket-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:6px}.socket-actions button{text-align:left;font-size:9px;padding:5px}.socket-actions button small{display:block;color:#85a5c0;font-size:8px;font-weight:500}.socket-actions>small{grid-column:1/-1;color:#747d88;text-align:center;padding:4px}.stone-stack-info{margin:6px 0;padding:7px;border:1px solid #3e6588;background:#0d151d}.stone-stack-info b,.stone-stack-info small{display:block}.stone-stack-info b{color:#91bce6}.stone-stack-info small{color:#7f8b99;margin-top:2px}
.itemization-status{padding:8px;display:grid;gap:6px}.itemization-resources{display:grid;grid-template-columns:1fr 1fr;gap:4px}.itemization-resources span{display:flex;justify-content:space-between;gap:5px;padding:5px 6px;background:#0b0e12;border:1px solid #29313a;color:#8f99a5;font-size:10px}.itemization-resources b{color:#d9bd6a}.itemization-rules{display:grid;gap:2px;padding:6px;background:#11151a;border-left:2px solid #476b89}.itemization-rules b{font-size:10px;color:#a8c6df}.itemization-rules small{font-size:9px;color:#7f8995}.itemization-milestones{display:grid;gap:3px}.itemization-milestones span{display:flex;justify-content:space-between;padding:4px 6px;background:#0b0d10;color:#818a94;font-size:9px}.itemization-milestones span.done{color:#83ba86;background:#101a11}.itemization-milestones small{color:inherit}#devResetDaily{grid-column:1/-1}
@media(max-width:650px){.socket-slots,.socket-actions{grid-template-columns:1fr}.itemization-resources{grid-template-columns:1fr}}

/* v0.9.3 — Berserk Rush: Pierwsza Furia */
.log .berserk{color:#f08a55;text-shadow:0 0 8px #a52e20}.berserk-panel{border-color:#5d2d22;box-shadow:0 10px 35px #0007,0 0 18px #7b241533}.berserk-title{color:#e87343;background:linear-gradient(90deg,#351612,#1d1716,#351612);border-color:#673125}.berserk-rush{padding:10px;background:radial-gradient(circle at 50% 0,#2d1713,#0f1013 58%);display:grid;gap:8px}.berserk-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 11px;border:1px solid #6e3528;background:linear-gradient(90deg,#28110f,#151317)}.berserk-banner b,.berserk-banner small{display:block}.berserk-banner b{color:#f08050;letter-spacing:.8px}.berserk-banner small{color:#a88372;font-size:10px}.berserk-banner strong{color:#f1a05d;white-space:nowrap}.fury-bar{height:12px;background:#070708;border:1px solid #4c2822;overflow:hidden;border-radius:8px}.fury-bar i{display:block;height:100%;background:linear-gradient(90deg,#7a1914,#e34d28,#ff9b45);box-shadow:0 0 12px #f44;transition:width .25s}.berserk-runs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.berserk-card{padding:8px;border:1px solid #45342d;background:linear-gradient(#1b1715,#0d0e10);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.berserk-card.active{border-color:#d05a34;background:#291411}.berserk-card.locked{filter:saturate(.45)}.berserk-card b,.berserk-card small{display:block}.berserk-card b{color:#d6aa6b}.berserk-card small{color:#897a6e;font-size:9px;margin-top:2px}.berserk-card button{background:#472018;border-color:#84402c;color:#f2b079;font-size:10px}.berserk-active{padding:6px;text-align:center;color:#ff9a68;border:1px solid #71311f;background:#28100d;font-weight:800;font-size:11px;letter-spacing:.5px}.berserk-shop-head{display:flex;justify-content:space-between;color:#bca078;font-size:11px;border-top:1px solid #40281f;padding-top:7px}.berserk-shop{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.berserk-shop button{padding:6px;background:#171413;border-color:#4b392d;font-size:9px}.berserk-shop span,.berserk-shop b{display:block}.berserk-shop span{color:#b7aa98}.berserk-shop b{color:#d97b4b;margin-top:3px}.dev-tools #devBerserkRush{grid-column:1/-1}
@media(max-width:900px){.berserk-runs{grid-template-columns:1fr}.berserk-shop{grid-template-columns:repeat(2,1fr)}}@media(max-width:500px){.berserk-shop{grid-template-columns:1fr}.berserk-banner{align-items:flex-start;flex-direction:column}}

.boss-mechanic{max-width:540px;margin:0 auto 9px;padding:9px 11px;border:1px solid #8a4b2d;background:linear-gradient(135deg,#2a1711,#121318);box-shadow:inset 0 0 18px #c34a211c}.boss-mechanic.hidden{display:none}.boss-mechanic[data-accent="forest"]{border-color:#657d38;background:linear-gradient(135deg,#172313,#111417)}.boss-mechanic[data-accent="shadow"]{border-color:#65508a;background:linear-gradient(135deg,#20182b,#111217)}.boss-mechanic[data-accent="dragon"]{border-color:#a3462e;background:linear-gradient(135deg,#30130f,#121216)}.boss-phase-head{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center}.boss-phase-head span{font-size:10px;font-weight:900;color:#ff9b5b;border:1px solid #79402b;padding:3px 6px}.boss-phase-head b{color:#f0cc88}.boss-phase-head strong{color:#e9825c;font-size:11px}.boss-mechanic p{margin:6px 0;color:#b7aba0;font-size:11px}.boss-phase-foot{border-top:1px solid #ffffff18;padding-top:6px;display:flex;justify-content:space-between;gap:9px;color:#c2785d;font-size:10px}.boss-phase-foot span:last-child{text-align:right;color:#9fa6ad}
@media(max-width:600px){.fight-actions{grid-template-columns:1fr}.boss-phase-head{grid-template-columns:auto 1fr}.boss-phase-head strong{grid-column:1/-1}.boss-phase-foot{flex-direction:column}.boss-phase-foot span:last-child{text-align:left}}

/* v0.13.6.3 — approved world progression to ~90 */
.location-subzones{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;margin:8px 0}.location-subzones span{display:flex;flex-direction:column;gap:2px;padding:7px 9px;border:1px solid rgba(211,171,92,.22);background:rgba(0,0,0,.18);border-radius:8px;font-size:12px}.location-subzones b{font-size:10px;letter-spacing:.08em;color:#d7b879}.location-note{margin:6px 0 8px;padding:7px 9px;border-left:3px solid #b88a43;background:rgba(184,138,67,.08);font-size:12px;color:#d9c9ad}

/* ================================================================
   SEKCJA: ashen.css
   ================================================================ */
/* ASHENREALM v0.9.5 — graphical vertical slice */
:root{
  --ink:#06080b;--ink-2:#0a0e13;--ink-3:#10161d;--panel:#11171d;--panel-2:#171d22;
  --gold:#c9933d;--gold-hi:#f0c573;--gold-deep:#65401c;--line:#5f492b;
  --text:#f1eadc;--muted:#9da09d;--ember:#d9552c;--ember-hi:#ff8b4a;
  --blood:#aa2d2a;--mana:#2869a9;--exp:#ba8b2e;--good:#5eb879;
  --rail:220px;--dock:76px;--shadow:0 18px 48px #000a;
}

*{box-sizing:border-box}
html{background:#05070a;scroll-behavior:smooth}
body{
  min-width:320px;margin:0;color:var(--text);font:500 15px/1.45 Inter,"Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at 78% -12%,#21313d55,transparent 34rem),
    radial-gradient(circle at 18% 22%,#3d241333,transparent 30rem),
    repeating-linear-gradient(115deg,#ffffff05 0 1px,transparent 1px 7px),
    linear-gradient(135deg,#070a0e,#0b1015 47%,#06080b);
  background-attachment:fixed;min-height:100vh;
}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:1000;opacity:.18;background:radial-gradient(ellipse at center,transparent 35%,#000 100%)}
button,select,input{font:inherit}
button,select{
  min-height:42px;color:#e9dfca;border:1px solid #5b472d;border-radius:3px;
  background:linear-gradient(180deg,#24231f,#111316 54%,#090b0e);box-shadow:inset 0 1px #ffffff12,0 2px 7px #0008;
}
button{cursor:pointer;transition:border-color .18s,filter .18s,transform .18s,background .18s}
button:hover{filter:brightness(1.15);border-color:#ad8144}
button:active{transform:translateY(1px)}
button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--gold-hi);outline-offset:2px}
button:disabled{opacity:.34;filter:grayscale(.45);cursor:not-allowed;transform:none}
input[type="checkbox"]{width:18px;height:18px;accent-color:var(--gold)}
select{padding:8px 34px 8px 10px;background-color:#11151a;color:var(--text)}
[hidden]{display:none!important}

.app-shell{min-height:100vh}
.game-rail{
  position:fixed;inset:0 auto 0 0;z-index:60;width:var(--rail);display:flex;flex-direction:column;
  background:linear-gradient(90deg,#07090c,#111419 80%,#090b0e);border-right:1px solid #6a4b23;box-shadow:12px 0 30px #000a;
}
.game-rail::after{content:"";position:absolute;inset:8px 5px;border:1px solid #8d663322;pointer-events:none}
.rail-brand{height:94px;padding:17px 17px 14px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #5e472c;background:radial-gradient(circle at 25% 0,#6f461d30,transparent 65%)}
.brand-sigil{display:grid;place-items:center;flex:0 0 auto;width:46px;height:52px;font:700 29px/1 Georgia,serif;color:var(--gold-hi);border:1px solid var(--gold);background:radial-gradient(circle,#342517,#090b0f 70%);clip-path:polygon(50% 0,95% 20%,95% 80%,50% 100%,5% 80%,5% 20%);text-shadow:0 0 14px #df9d4b77}
.rail-brand b{display:block;font:700 17px/1.1 Georgia,serif;letter-spacing:1.1px}.rail-brand small{color:var(--gold);letter-spacing:1px}
.rail-nav{position:relative;z-index:1;display:grid;gap:6px;padding:18px 11px;flex:1;align-content:start}
.rail-nav button{position:relative;display:grid;grid-template-columns:38px 1fr;text-align:left;column-gap:8px;padding:9px 10px;border-color:transparent;background:transparent;box-shadow:none}
.rail-nav button>span{grid-row:1/3;display:grid;place-items:center;font-size:25px;color:#98713c}
.rail-nav button>b{font-size:15px}.rail-nav button>small{color:#74797e;font-size:11px}
.rail-nav button.is-active{border-color:#9b7136;background:linear-gradient(90deg,#352113,#17171a 70%);box-shadow:inset 3px 0 var(--ember),0 6px 14px #0005}
.rail-nav button.is-active>span,.rail-nav button.is-active>b{color:var(--gold-hi)}
.rail-footer{position:relative;z-index:1;display:flex;gap:10px;align-items:center;margin:12px;padding:13px;border-top:1px solid #4b3926;color:#c8c0b1}
.rail-footer b,.rail-footer small{display:block}.rail-footer small{font-size:9px;color:#71777b}.live-dot{width:9px;height:9px;border-radius:50%;background:#56bf78;box-shadow:0 0 10px #56bf78}

.game-stage{min-height:100vh;margin-left:var(--rail)}
.top-hud{
  position:sticky;top:0;z-index:55;display:grid;grid-template-columns:minmax(330px,420px) minmax(330px,1fr) minmax(220px,285px);gap:18px;align-items:center;
  min-height:96px;padding:10px 24px;background:linear-gradient(180deg,#0d1117fa,#080b0ff2);border-bottom:1px solid #69502c;box-shadow:0 10px 30px #0009;
}
.top-hud::after{content:"";position:absolute;left:0;right:0;bottom:3px;border-bottom:1px solid #ad783a33}
.player-chip{display:grid;grid-template-columns:70px 1fr 62px;align-items:center;gap:11px;min-width:0}
.avatar-frame{width:68px;height:68px;overflow:hidden;border:2px solid #a77938;background:#08101a;clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);box-shadow:inset 0 0 20px #000,0 0 18px #ba7b3028}
.avatar-frame img{width:100%;height:100%;object-fit:cover;object-position:center 20%;transform:scale(1.2)}
.player-copy{min-width:0}.player-copy small,.player-copy b,.player-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-copy small{font-size:10px;color:#9c7138;letter-spacing:1.8px}.player-copy b{font:700 20px/1.2 Georgia,serif;color:#f1e4cc}.player-copy span{font-size:12px;color:#8d969e;margin-top:3px}
.level-medallion{display:grid;place-items:center;align-content:center;width:58px;height:58px;color:var(--gold-hi);border:1px solid #98703c;background:radial-gradient(circle,#2a2117,#0a0d11 66%);clip-path:polygon(50% 0,90% 14%,100% 50%,90% 86%,50% 100%,10% 86%,0 50%,10% 14%)}
.level-medallion small{font-size:8px;line-height:1;color:#9f845d}.level-medallion span{font:700 23px/1 Georgia,serif}
.hud-bars{margin:0!important;display:grid;gap:5px}.hud-meter{display:grid;grid-template-columns:72px 1fr;align-items:center;gap:7px}.hud-meter label{margin:0!important;display:flex!important;justify-content:space-between;gap:5px;color:#8e949a;font-size:10px}.hud-meter label b{font-weight:700;color:#d7d3cb}.hud-meter .bar{height:9px}
.bar{position:relative;overflow:hidden;border:1px solid #493d31;border-radius:2px;background:#030507;box-shadow:inset 0 1px 5px #000}
.bar i{display:block;height:100%;transition:width .22s ease}.bar em{position:absolute;top:0;height:100%;width:1px;background:#fff4}
.hp{background:linear-gradient(90deg,#661416,#bd2f2e 65%,#f16349);box-shadow:0 0 10px #e94d3b88}.mp{background:linear-gradient(90deg,#173866,#2369ac 65%,#55a6e0);box-shadow:0 0 10px #368ee088}.exp{background:linear-gradient(90deg,#68460d,#bb8623 65%,#edc15b)}.enemyhp{background:linear-gradient(90deg,#681215,#bc312a,#eb6745);box-shadow:0 0 12px #d6463199}
.hud-currencies{display:grid;grid-template-columns:1fr 1fr;gap:7px}.hud-currencies>div{display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:8px;padding:8px 9px;border:1px solid #4c3a26;background:#0a0d11}.currency-icon{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#ffe198;background:#654411;box-shadow:inset 0 0 0 2px #bc8b3a,0 0 10px #bd7d2633}.currency-icon.kills{border-radius:4px;background:#251a3f;color:#bb8cff;box-shadow:inset 0 0 0 2px #7755a2}.hud-currencies small{font-size:8px;color:#85898c}.hud-currencies b{font-size:13px;color:#ede2cf}

#gameMain{display:block!important;max-width:1500px!important;margin:0 auto!important;padding:22px 24px 44px!important}
.screen-view{animation:screen-in .24s ease both}
@keyframes screen-in{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
.screen-heading{height:67px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding:0 18px;border-left:3px solid var(--gold);background:linear-gradient(90deg,#1a1712aa,transparent 75%)}
.screen-heading small{display:block;color:#9b7443;font-size:9px;letter-spacing:2.6px}.screen-heading h1{margin:2px 0 0;font:700 30px/1 Georgia,serif;letter-spacing:.6px;color:#f2e7d2}.screen-heading.ember{border-color:var(--ember)}.screen-heading.ember small{color:#d56b49}.heading-rune{font:700 46px/1 Georgia,serif;color:#c18c3c22;text-shadow:0 0 18px #d7893744}

.panel{position:relative;overflow:hidden;border:1px solid #665033;border-radius:3px;background:linear-gradient(145deg,#171b1f,#0b0f13 67%);box-shadow:var(--shadow),inset 0 0 0 1px #b9904720}
.panel::before,.panel::after{content:"";position:absolute;z-index:3;width:18px;height:18px;pointer-events:none}.panel::before{top:4px;left:4px;border-top:2px solid #b58742;border-left:2px solid #b58742}.panel::after{right:4px;bottom:4px;border-right:2px solid #b58742;border-bottom:2px solid #b58742}
.panel-title{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;min-height:47px;padding:10px 17px;border-bottom:1px solid #6a4f2e;background:linear-gradient(90deg,#251b11,#13161a 55%,#1b1510);color:var(--gold-hi);font:700 14px/1 Georgia,serif;letter-spacing:1.7px}
.panel-title small{font:600 10px/1.2 Inter,"Segoe UI",sans-serif;color:#897b68;letter-spacing:.5px;text-transform:uppercase}
.inner-title{padding:9px 12px 5px;color:#7f715f;font-size:9px;letter-spacing:1.7px}

.battle-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,420px);gap:14px;align-items:start}
.adventure-side{display:grid;gap:14px;min-width:0}
.combat-panel{padding:0!important;min-height:0!important}
.battle-scene{position:relative;display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,.9fr);align-items:center;min-height:405px;overflow:hidden;background:radial-gradient(circle at 25% 58%,#34533733,transparent 34%),radial-gradient(circle at 80% 45%,#76282030,transparent 28%),linear-gradient(180deg,#111a20,#090d11 70%)}
.battle-scene::before{content:"";position:absolute;inset:0;opacity:.35;background:linear-gradient(142deg,transparent 47%,#c6843422 47.5%,transparent 48%),repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 6px)}
.battle-scene::after{content:"ᚨ ᚱ ᛃ ᛉ";position:absolute;left:4%;right:4%;bottom:14px;text-align:center;font:700 28px/1 Georgia,serif;letter-spacing:42px;color:#c7943a12}
.hero-figure{position:relative;z-index:1;align-self:stretch;min-width:0}
.hero-figure img{position:absolute;inset:9px 0 0;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 16px 13px #000c)}
.hero-aura{position:absolute;width:60%;aspect-ratio:1;border-radius:50%;left:21%;bottom:7%;background:radial-gradient(circle,#69aa6540,transparent 67%);filter:blur(8px)}
.versus-mark{position:absolute;z-index:2;left:51%;top:48%;display:grid;place-items:center;width:62px;height:62px;transform:translate(-50%,-50%) rotate(-9deg);font:900 22px/1 Georgia,serif;color:#f3d39c;background:#17110d;border:2px solid #a66a31;clip-path:polygon(50% 0,90% 20%,100% 60%,72% 100%,22% 91%,0 45%);box-shadow:0 0 28px #b44b2444}
.enemy-card{position:relative;z-index:1;max-width:none!important;margin:18px 22px!important;padding:27px 19px 20px!important;text-align:center;background:radial-gradient(circle at 50% 12%,#5f221f77,#141318 54%,#090b0e)!important;border:1px solid #783c2d!important;border-radius:3px!important;box-shadow:inset 0 0 28px #000,0 12px 25px #0008}
.enemy-icon{display:grid;place-items:center;width:102px;height:102px;margin:0 auto 8px;font-size:52px!important;color:#d26a47;border:1px solid #8d4c36;background:radial-gradient(circle,#51231e,#0d1014 72%);clip-path:polygon(50% 0,88% 17%,100% 55%,72% 100%,25% 92%,0 45%);text-shadow:0 0 18px #e44a2d88}
.enemy-card h2{margin:5px 0!important;font:700 25px/1.1 Georgia,serif!important;color:#f1ddc1}.enemy-card p{min-height:48px;margin:8px 0 14px!important;color:#8d9193!important;font-size:11px}.enemy-card label{display:flex;justify-content:space-between;color:#a99b86;font-size:9px}.bar.big{height:16px!important;margin-top:5px}
.fight-actions{max-width:none!important;margin:13px 14px 8px!important;display:grid!important;grid-template-columns:1.25fr 1fr .8fr!important;gap:8px!important}.fight-actions button{min-height:50px;font-weight:800;letter-spacing:.6px}.fight-actions .primary{color:#fff1dc;border-color:#c26e2f;background:linear-gradient(#b64f24,#762410 55%,#3e120c);box-shadow:inset 0 1px #ffb76a99,0 0 18px #d84c2738}.fight-actions #combatSpeed.active{color:#ffd4a8;border-color:#c36b39;background:#492016}
.auto-box{max-width:none!important;margin:0 14px 9px!important;padding:9px 11px!important;border-color:#3f382f!important;background:#090c10!important;color:#a7aaa9!important}.auto-box label{gap:7px!important}.auto-box select{min-height:34px;padding:4px 28px 4px 7px}
.loop-status,.current-upgrade-drops,.boss-mechanic{max-width:none!important;margin:0 14px 9px!important}
.boss-mechanic{border-radius:2px}.boss-mechanic.hidden{display:none}.log-panel{min-height:265px}.log{height:220px!important;margin:0;padding:10px 12px!important;background:#07090c!important;border:0!important}.log div{font-size:11px;color:#aeb2b3!important}.log .good{color:#74c687!important}.log .bad{color:#e06b62!important}.log .crit,.log .loot{color:#e7b65c!important}.log .berserk,.log .boss-special{color:#f17a4b!important}

.zones{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;max-height:285px;overflow:auto!important;padding:10px!important}.zone{min-width:0!important;min-height:58px!important;padding:8px!important;text-align:left}.zone b,.zone small{display:block}.zone b{color:#d8d0c3}.zone small{color:#747c82;font-size:10px}.zone.active{border-color:#d2913c!important;background:linear-gradient(#3b2817,#17120d)!important;box-shadow:inset 3px 0 var(--ember),0 0 14px #c5632830}.enemy-list{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;max-height:230px;overflow:auto!important;padding:5px 10px 11px!important}.enemy-row{min-width:0!important;display:flex!important;justify-content:space-between!important;align-items:center;text-align:left;background:#0b0e12!important}.enemy-row span{display:flex;flex-direction:column}.enemy-row small{font-size:10px;color:#737b81!important}.enemy-row>span:last-child{font-size:9px;color:#b77962!important}.enemy-row.active{border-color:#b97b38!important;background:#24180f!important}
.quick-pots{grid-template-columns:repeat(3,1fr)!important;padding:10px!important}.quick-pots button{min-width:0;padding:7px;font-size:9px!important}.quick-pots b{color:#dfad53!important}

.arena-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:14px;align-items:start}.berserk-panel{border-color:#79351f!important}.berserk-title{background:linear-gradient(90deg,#46170e,#171216 60%,#38130e)!important;color:#ff9c62!important}.berserk-rush{padding:16px!important;background:radial-gradient(circle at 50% 0,#3a1710,#0b0e12 62%)!important}.berserk-banner{border-color:#81412c!important;background:linear-gradient(90deg,#30110d,#111217)!important}.berserk-banner b{color:#ff8b4c!important}.fury-bar{height:15px!important}.berserk-runs{gap:8px!important}.berserk-card{min-height:102px;padding:11px!important}.berserk-card b{font:700 15px/1.2 Georgia,serif}.berserk-card button{min-width:104px}.berserk-shop{gap:7px!important}.berserk-shop button{min-height:70px!important}.dungeons{max-height:none!important}.dungeon-row{padding:12px!important;min-height:84px}.dungeon-row b{font:700 15px/1.2 Georgia,serif;color:#e4d1b2}

.city-intro{min-height:146px;margin-bottom:14px;padding:25px 28px;display:flex;justify-content:space-between;align-items:center;background:radial-gradient(circle at 15% 50%,#68461b55,transparent 35%),linear-gradient(120deg,#1e211f,#0b0f13 64%)}
.city-intro>div{display:flex;gap:18px;align-items:center}.city-seal{display:grid;place-items:center;width:86px;height:86px;font-size:44px;color:#d8a351;border:1px solid #99703a;background:#12100d;clip-path:polygon(50% 0,92% 14%,100% 60%,72% 100%,24% 92%,0 42%)}.city-intro small{font-size:9px;letter-spacing:2px;color:#b07c3d}.city-intro h2{margin:4px 0;font:700 26px/1 Georgia,serif}.city-intro p{margin:7px 0 0;color:#9ca09d}.city-intro button{min-width:170px}
.city-grid,.systems-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.shop{padding:8px 12px!important}.shop-row{padding:11px 6px!important}.shop-row b{color:#e4dbca}.shop-row button{min-width:125px;color:#e8be70}.craft120{padding:14px!important}.craft-card{padding:14px!important}.quests{max-height:390px!important}.quest-row{padding:11px 12px!important}.quest-row b{color:#e6dccb}

.profile-grid{display:grid;grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:14px;align-items:start}.profile-content{display:grid;gap:14px}.character-card{overflow:hidden}.character-display{position:relative;height:430px;background:radial-gradient(circle at 50% 48%,#4e5f443d,transparent 38%),linear-gradient(#0d151b,#090c10 73%)}.character-display::after{content:"";position:absolute;left:17%;right:17%;bottom:15px;height:18px;border-radius:50%;background:#000b;filter:blur(7px)}.character-display>img{position:absolute;z-index:1;inset:4px 0 32px;width:100%;height:calc(100% - 36px);object-fit:contain;filter:drop-shadow(0 18px 14px #000c)}.character-plinth{position:absolute;z-index:2;left:13px;right:13px;bottom:10px;display:flex;justify-content:space-between;padding:10px 14px;border:1px solid #755731;background:#090c0fe8}.character-plinth small{font-size:9px;letter-spacing:1.4px;color:#918575}.character-plinth b{color:#f0c879}.points{margin:11px 13px!important;padding:10px;border:1px solid #3b362d;background:#0b0e12}.stats{margin:10px 13px!important;grid-template-columns:1fr!important}.stats>div{min-height:48px!important;grid-template-columns:1fr auto auto 40px!important;border-color:#35312a!important;background:#0a0d11!important}.stats>div>span{font-size:11px;color:#a8a295}.stats b{color:#f0e6d5;font-size:16px}.stats i{min-width:34px;color:#65b77b!important}.stats button{min-height:34px;padding:2px}.derived,.combat-stats{margin:10px 13px!important;gap:6px!important}.derived span,.combat-stats span{border-left-color:#a07437!important;background:#0a0e12!important}.wide{margin:0 13px 14px!important;width:calc(100% - 26px)!important}
.equipment{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;padding:11px!important}.eq{position:relative;min-height:92px!important;padding:10px!important;background:linear-gradient(#11161b,#090c0f)!important}.eq small{color:#83765f!important;text-transform:uppercase;letter-spacing:1px}.eq b{margin:7px 0!important;color:#eee1cc}.eq span{color:#6eb07f!important}.inventory-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(290px,1.15fr);min-height:365px}.inventory{display:grid!important;grid-template-columns:repeat(2,1fr)!important;align-content:start;gap:7px!important;max-height:470px!important;padding:11px!important;border-right:1px solid #3c3227}.inv{min-height:70px;padding:9px!important;background:#090c10!important}.inv b{color:#ddd4c7}.inv span{color:#d5a64c!important}.inv small{font-size:9px;color:#737a7f!important}.detail{min-height:365px!important;padding:16px!important;border:0!important;background:#0a0d11}.detail h3{font:700 20px/1.2 Georgia,serif}.detail p{line-height:1.55}.actions button{min-height:42px}.skills{padding:9px!important}.skill-card{min-height:70px;padding:10px!important}.skill-card b{color:#e4dacb}.skill-card small{font-size:10px!important}.training-info{padding:12px!important}.book-bag span{background:#090c10!important}

.systems-grid>.dev-panel{grid-column:1/-1}.systems-grid>.panel{min-width:0}.itemization-status,.gear-progression,.upgrade-drop-panel,.source-bonus-panel{padding:12px!important}.itemization-resources{grid-template-columns:repeat(3,1fr)!important}.itemization-resources span{min-height:46px;align-items:center}.source-bonus-list,.upgrade-source-list{max-height:360px!important}.balance{grid-template-columns:repeat(3,1fr)!important;padding:12px!important}.balance div{min-height:48px;align-items:center;background:#090c10!important}.settings{padding:14px!important;background:#090c10!important}.dev-tools{padding:14px!important}.dev-tools button{font-size:11px}.dev-exp{gap:7px!important}.systems-grid footer{grid-column:1/-1;margin:0!important;max-width:none!important;padding:12px 3px!important;color:#6f7477!important}

.offline-box{max-width:1500px!important;margin:12px auto 0!important;padding:9px 16px!important;border:1px solid #4f422e!important;background:#0c1117e8!important;color:#a4a9ad!important}.offline-box b{color:#e0b764!important}.dungeon-status{max-width:1500px;margin:12px auto 0!important;padding:10px 16px!important;border-color:#9b6d31!important;background:#25190e!important}.dungeon-status.hidden{display:none!important}
.mobile-dock{display:none}

.overlay{z-index:200!important;overflow:auto;background:radial-gradient(circle at 50% 15%,#1d3240,#050709 67%)!important;padding:24px!important}.overlay.hidden{display:none!important}.create-box{max-width:1220px!important;padding:24px!important;border:1px solid #9b7139!important;border-radius:3px!important;background:linear-gradient(145deg,#171d23,#080b0f 72%)!important;box-shadow:0 35px 100px #000!important}.create-brand{display:flex;justify-content:center;gap:14px;align-items:center}.create-brand small{color:#a77a3f;letter-spacing:2.7px}.create-brand h1{margin:2px 0 0!important;font:700 34px/1 Georgia,serif!important;letter-spacing:1px}.create-box>p{max-width:720px;margin:14px auto 22px!important;color:#a1a5a5!important}.class-choices{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:12px!important}.class-card{position:relative;overflow:hidden;min-height:430px;padding:0 12px 13px!important;border:1px solid #5e4a31!important;border-radius:3px!important;background:linear-gradient(#131a20,#080b0f)!important}.class-card::before{content:"";position:absolute;inset:4px;border:1px solid #a67b3c22;pointer-events:none}.class-art{position:relative;height:245px;margin:0 -12px 10px;overflow:hidden;background:radial-gradient(circle at 50% 55%,#506d5038,transparent 45%),#0a1016}.class-art img{width:100%;height:100%;object-fit:cover;object-position:center 30%;filter:drop-shadow(0 10px 8px #000c);transition:transform .3s}.class-card:hover .class-art img{transform:scale(1.035)}.class-card h3{margin:10px 0 3px!important;font:700 21px/1.1 Georgia,serif;color:#efc171!important}.class-card>p{min-height:37px;margin:0 0 8px!important;font-size:10px!important;color:#7f8588!important}.class-card button{position:relative;width:100%;margin-top:6px!important;color:#e9dac2}.class-card button:first-of-type{border-color:#b26c31;background:linear-gradient(#643219,#2c160e)}.create-note{display:block;margin-top:15px;text-align:center;color:#666d72}

::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#07090c}::-webkit-scrollbar-thumb{background:#5a452c;border:2px solid #0a0c0f;border-radius:8px}

@media (max-width:1180px){
  :root{--rail:190px}.top-hud{grid-template-columns:minmax(295px,360px) 1fr;gap:12px}.hud-currencies{display:none}.battle-layout{grid-template-columns:minmax(0,1fr) 345px}.profile-grid{grid-template-columns:360px minmax(0,1fr)}.arena-grid{grid-template-columns:1fr}.itemization-resources{grid-template-columns:1fr 1fr!important}
}

@media (max-width:900px){
  :root{--rail:0px}.game-rail{display:none}.game-stage{margin-left:0;padding-bottom:calc(var(--dock) + env(safe-area-inset-bottom))}.top-hud{grid-template-columns:1fr;position:sticky;min-height:0;padding:8px 12px 10px}.player-chip{grid-template-columns:54px 1fr 52px}.avatar-frame{width:52px;height:52px}.level-medallion{width:48px;height:48px}.player-copy small{font-size:8px}.player-copy b{font-size:17px}.hud-bars{grid-template-columns:1fr 1fr}.hud-meter{grid-template-columns:52px 1fr}.hud-meter label{font-size:8px}.hud-meter.exp-meter{grid-column:1/-1}.top-hud .bar{height:7px}.offline-box,.dungeon-status{margin:8px 10px 0!important}.mobile-dock{position:fixed;z-index:90;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);padding:5px 5px max(5px,env(safe-area-inset-bottom));border-top:1px solid #7d5930;background:#080b0ff5;box-shadow:0 -10px 28px #000c}.mobile-dock button{display:grid;place-items:center;gap:1px;min-height:60px;padding:4px;border-color:transparent;background:transparent;box-shadow:none}.mobile-dock span{font-size:23px;color:#86643b}.mobile-dock b{font-size:10px}.mobile-dock button.is-active{border-color:#926633;background:linear-gradient(#382316,#17110d);box-shadow:inset 0 2px var(--ember)}.mobile-dock button.is-active span,.mobile-dock button.is-active b{color:#f0b866}#gameMain{padding:13px 10px 28px!important}.screen-heading{height:54px;margin-bottom:9px;padding:0 12px}.screen-heading h1{font-size:24px}.heading-rune{font-size:36px}.battle-layout,.profile-grid{grid-template-columns:1fr}.adventure-side{margin-top:14px}.profile-content{display:contents}.character-card{order:0}.equipment-panel{order:1}.inventory-panel{order:2}.profile-content>.panel:last-child{order:3}.character-display{height:390px}.city-grid,.systems-grid{grid-template-columns:1fr}.systems-grid>.dev-panel{grid-column:auto}.arena-grid{grid-template-columns:1fr}.city-intro{padding:18px}.city-intro p{max-width:500px}.battle-scene{min-height:360px}.inventory-layout{grid-template-columns:1fr 1fr}.systems-grid footer{grid-column:auto}
}

@media (max-width:600px){
  body{font-size:14px}.top-hud{gap:6px}.player-copy span{font-size:10px}.hud-meter{grid-template-columns:46px 1fr;gap:5px}.hud-meter label b{font-size:8px}.screen-heading small{font-size:8px}.panel-title{min-height:44px;padding:9px 12px;font-size:12px}.panel-title small{font-size:8px}.battle-scene{grid-template-columns:53% 47%;min-height:258px}.hero-figure img{inset:4px -10px 0;width:calc(100% + 20px)}.versus-mark{left:52%;width:43px;height:43px;font-size:15px}.enemy-card{margin:10px 8px!important;padding:15px 8px 12px!important}.enemy-icon{width:67px;height:67px;font-size:34px!important}.enemy-card h2{font-size:16px!important}.enemy-card p{min-height:32px;max-height:48px;overflow:hidden;margin:5px 0 9px!important;font-size:8px}.enemy-card label{font-size:7px}.bar.big{height:12px!important}.fight-actions{grid-template-columns:1fr 1fr!important;margin:9px 9px 7px!important}.fight-actions #combatSpeed{grid-column:1/-1;min-height:38px}.fight-actions button{min-height:47px}.auto-box{margin:0 9px 8px!important;gap:8px!important;font-size:10px}.auto-box label:nth-child(3){display:none}.loop-status,.current-upgrade-drops,.boss-mechanic{margin:0 9px 8px!important}.zones{display:flex!important;max-height:none;overflow:auto!important}.zone{flex:0 0 145px}.enemy-list{grid-template-columns:1fr 1fr!important;max-height:190px}.quick-pots{grid-template-columns:1fr 1fr!important}.log{height:180px!important}.berserk-runs,.berserk-shop{grid-template-columns:1fr!important}.berserk-banner{align-items:flex-start!important;flex-direction:column!important}.berserk-card{grid-template-columns:1fr!important}.berserk-card button{width:100%}.city-intro{display:grid;gap:14px}.city-intro>div{align-items:flex-start}.city-seal{width:58px;height:58px;font-size:30px}.city-intro h2{font-size:21px}.city-intro button{width:100%}.character-display{height:360px}.equipment{grid-template-columns:1fr 1fr!important}.eq{min-height:82px!important}.inventory-layout{grid-template-columns:1fr}.inventory{grid-template-columns:1fr 1fr!important;max-height:340px!important;border-right:0;border-bottom:1px solid #3c3227}.detail{min-height:240px!important}.skill-card{display:grid!important}.skill-actions{justify-content:start!important}.training-info{grid-template-columns:1fr!important}.itemization-resources,.balance{grid-template-columns:1fr 1fr!important}.settings{grid-template-columns:1fr!important}.dev-exp,.dev-level{grid-template-columns:1fr!important}.class-choices{grid-template-columns:1fr 1fr!important}.class-card{min-height:355px}.class-art{height:190px}.create-box{padding:15px!important}.create-brand h1{font-size:28px!important}
}

@media (max-width:420px){
  .mobile-dock{padding-left:2px;padding-right:2px}.mobile-dock button{min-width:0}.mobile-dock b{font-size:9px}.player-chip{grid-template-columns:48px 1fr 46px}.avatar-frame{width:46px;height:46px}.level-medallion{width:44px;height:44px}.player-copy b{font-size:15px}.hud-bars{grid-template-columns:1fr}.hud-meter.exp-meter{grid-column:auto}.battle-scene{grid-template-columns:50% 50%;min-height:238px}.enemy-card{margin:8px 5px!important}.enemy-card h2{font-size:14px!important}.enemy-icon{width:58px;height:58px;font-size:29px!important}.class-choices{grid-template-columns:1fr!important}.class-card{min-height:0}.class-art{height:250px}.itemization-resources,.balance{grid-template-columns:1fr!important}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ASHENREALM v0.9.6 — trzy postacie, profil ekwipunku i nawigacja X1–X4 */
:root{--rail:248px}
.game-rail{overflow:hidden}
.rail-brand{flex:0 0 auto}
.rail-nav{display:block;overflow-y:auto;overflow-x:hidden;padding:12px 9px 20px;scrollbar-width:thin}
.nav-group{display:grid;gap:4px;margin:0 0 13px}
.nav-heading{display:flex;align-items:center;gap:9px;margin:0 4px 3px;color:#b27d39;font:700 11px/1 Georgia,serif;letter-spacing:2px}
.nav-heading::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#8e632f,transparent)}
.rail-nav .nav-group button{min-height:43px;grid-template-columns:32px minmax(0,1fr) auto;padding:7px 9px}
.rail-nav .nav-group button>span{grid-row:auto;font-size:20px}
.rail-nav .nav-group button>b{align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-nav .nav-group button>em{color:#6e7479;font-size:9px;font-style:normal}
.rail-nav .nav-group button:disabled{opacity:.45}
.rail-nav .nav-group button.dev-nav{border-color:#693230;color:#ef8c7a}
.rail-footer{flex:0 0 auto;margin-top:0}

.top-hud{grid-template-columns:minmax(285px,360px) minmax(310px,1fr) minmax(300px,390px) auto;gap:13px;padding:9px 18px}
.hud-currencies{grid-template-columns:repeat(3,1fr)}
.currency-icon.diamonds{border-radius:4px;background:#112f42;color:#69d9ff;box-shadow:inset 0 0 0 2px #29758e,0 0 10px #23a7d733}
.switch-character{min-width:112px;padding:7px 10px;color:#d9b76f}

.character-select-overlay{align-items:flex-start!important;padding:5vh 24px!important}
.selection-shell{width:min(1420px,100%);margin:auto;padding:28px;border:1px solid #93682f;background:linear-gradient(145deg,#151b22f5,#070a0ef8 72%);box-shadow:0 36px 100px #000}
.selection-head{display:grid;grid-template-columns:1fr auto;gap:8px 30px;align-items:end;margin-bottom:26px;padding-bottom:19px;border-bottom:1px solid #654a2b}
.selection-head .create-brand{justify-content:flex-start;grid-column:1/-1}
.selection-head h1{margin:2px 0 0;font:700 clamp(30px,4vw,54px)/1 Georgia,serif;color:#f1e6d2;text-transform:uppercase}
.selection-head p{margin:0;color:#9ba1a3;font-size:16px}
.selection-head>strong{color:#e1b65f}
.character-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.character-slot{position:relative;min-height:570px;padding:18px;overflow:hidden;text-align:center;border:1px solid #695133;background:radial-gradient(circle at 50% 24%,#344f5238,transparent 40%),linear-gradient(#171b20,#090c10 72%);box-shadow:inset 0 0 0 4px #07090c,inset 0 0 0 5px #97703a55,0 18px 35px #0008}
.character-slot::before,.character-slot::after{content:"";position:absolute;width:28px;height:28px;border-color:#b98a45;pointer-events:none}.character-slot::before{left:8px;top:8px;border-left:2px solid;border-top:2px solid}.character-slot::after{right:8px;bottom:8px;border-right:2px solid;border-bottom:2px solid}
.slot-portrait{height:365px;margin:-5px 0 4px;overflow:hidden;border-bottom:1px solid #503d28}
.slot-portrait img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 20px 16px #000d)}
.character-slot>small{display:block;color:#98703b;letter-spacing:2px}
.character-slot h2{margin:6px 0 3px;font:700 28px/1 Georgia,serif;color:#f0d292}
.character-slot p{margin:0;color:#bd5548;text-transform:uppercase}
.slot-meta{display:flex;justify-content:center;gap:18px;margin:12px 0;color:#80878a;font-size:12px}
.character-slot>button{position:absolute;left:18px;right:18px;bottom:18px;width:calc(100% - 36px);border-color:#b18236;background:linear-gradient(#574821,#21190d);color:#f1ddb2;font-weight:800}
.empty-slot{display:grid;place-items:center;align-content:center;min-height:570px;padding-bottom:88px;border-style:dashed;background:radial-gradient(circle at 50% 35%,#3d2b1738,transparent 32%),#0b0e12}
.empty-slot-mark{display:grid;place-items:center;width:145px;height:145px;margin-bottom:25px;border:1px solid #705536;border-radius:50%;color:#bd8a43;font:300 70px/1 Georgia,serif;background:#0b0e12;box-shadow:inset 0 0 30px #000,0 0 35px #9c6c2730}
.overlay-back{position:absolute;left:18px;top:18px;z-index:3;padding:7px 13px}

.profile-grid{grid-template-columns:minmax(620px,1.15fr) minmax(470px,.85fr);gap:16px}
.loadout-panel{min-width:0}
.set-switcher{display:flex;justify-content:center;gap:8px;padding:12px;border-bottom:1px solid #3d3225;background:#0a0d11}
.set-switcher button{min-width:120px;min-height:38px}
.set-switcher button.is-active{border-color:#c68f36;color:#ffd77e;background:linear-gradient(#4e3417,#1e150d)}
.loadout-stage{position:relative;display:grid;grid-template-columns:145px minmax(250px,1fr) 145px;grid-template-rows:repeat(4,105px) 70px;gap:8px;padding:16px;background:radial-gradient(circle at 50% 44%,#2c536044,transparent 39%),linear-gradient(#0c151c,#080b0e 76%)}
.loadout-stage::before{content:"";position:absolute;inset:15px 31%;border:1px solid #80603c55;box-shadow:inset 0 0 45px #000;pointer-events:none}
.loadout-stage .equipment{display:contents!important;padding:0!important}
.loadout-stage .character-display{grid-column:2;grid-row:1/5;height:auto;min-height:440px;background:transparent;z-index:1}
.loadout-stage .character-display>img{inset:0 0 28px;height:calc(100% - 28px)}
.loadout-stage .eq{z-index:2;display:grid!important;grid-template-columns:33px 1fr!important;grid-template-rows:auto auto auto;gap:1px 6px;align-content:center;min-height:0!important;padding:7px!important;text-align:left;border-color:#4b493f!important;background:linear-gradient(145deg,#13191e,#080b0e)!important}
.loadout-stage .eq.filled{border-color:#88713e!important;box-shadow:inset 0 0 16px #c68b2621}
.loadout-stage .eq .slot-glyph{grid-row:1/4;display:grid;place-items:center;width:33px;height:33px;color:#cf9e50;font-style:normal;font-size:23px;border:1px solid #4d402d;background:#090c10}
.loadout-stage .eq small{font-size:9px!important}.loadout-stage .eq b{max-height:31px;margin:1px 0!important;overflow:hidden;font-size:10px!important;line-height:1.25}.loadout-stage .eq span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:8px!important}
.loadout-stage .eq:nth-child(1){grid-column:1;grid-row:3}.loadout-stage .eq:nth-child(2){grid-column:1;grid-row:2}.loadout-stage .eq:nth-child(3){grid-column:1;grid-row:1}.loadout-stage .eq:nth-child(4){grid-column:3;grid-row:2}.loadout-stage .eq:nth-child(5){grid-column:3;grid-row:4}.loadout-stage .eq:nth-child(6){grid-column:1;grid-row:4}.loadout-stage .eq:nth-child(7){grid-column:3;grid-row:1}.loadout-stage .eq:nth-child(8){grid-column:3;grid-row:3}.loadout-stage .eq:nth-child(9){grid-column:2;grid-row:5;width:min(180px,70%);justify-self:center}
.loadout-stage .character-plinth{bottom:2px}
.loadout-panel .stats{grid-template-columns:1fr 1fr!important}
.loadout-panel .derived,.loadout-panel .combat-stats{grid-template-columns:repeat(4,1fr)!important}
.inventory-panel{align-self:start}
.inventory-toolbar{display:flex;gap:5px;padding:10px;overflow-x:auto;border-bottom:1px solid #3d3227}
.inventory-toolbar button{flex:0 0 auto;min-height:34px;padding:5px 10px;font-size:11px}.inventory-toolbar button.is-active{border-color:#b78031;color:#f4c869;background:#40290f}
.inventory-panel .inventory-layout{display:block;min-height:720px}
.inventory-panel .inventory{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:470px!important;border-right:0;border-bottom:1px solid #3d3227}
.inventory-panel .inv{min-height:88px!important}
.inventory-panel .detail{min-height:270px!important;max-height:520px;overflow:auto}

.expedition-grid{display:grid;grid-template-columns:minmax(530px,1.2fr) minmax(390px,.8fr);gap:16px;align-items:start}
.route-zones{display:grid!important;grid-template-columns:1fr!important;gap:0!important;max-height:690px;padding:18px 16px!important}
.route-zones .zone{position:relative;display:grid;grid-template-columns:48px 1fr;align-items:center;gap:10px;min-height:70px!important;padding:8px 13px!important;border-color:transparent;background:transparent!important}
.route-zones .zone:not(:last-child)::after{content:"";position:absolute;left:36px;top:54px;width:2px;height:32px;background:#594426}
.zone-node{display:grid;place-items:center;width:38px;height:38px;border:2px solid #816033;border-radius:50%;background:#0a0d11;color:#d1a65e;font-weight:900}
.route-zones .zone.active{border-color:#b27d36!important;background:linear-gradient(90deg,#412716,#12151a 78%)!important}
.route-zones .zone.active .zone-node{border-color:#edb44c;box-shadow:0 0 18px #de96385e}
.route-zones .zone b{font:700 17px/1.2 Georgia,serif}.route-zones .zone small{font-size:11px}
.waypoint-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;max-height:610px!important;padding:14px!important}
.waypoint-list .enemy-row{display:grid!important;grid-template-columns:38px 1fr auto!important;gap:10px;min-height:72px;padding:10px!important}
.waypoint-index{display:grid!important;place-items:center;width:34px;height:34px;border:1px solid #6e5332;border-radius:50%;color:#d3a65a!important}
.enter-combat{width:calc(100% - 28px);margin:0 14px 14px;border-color:#b86c35;background:linear-gradient(#6e351b,#30150e);font-weight:800}

.rush-combat-layout{display:grid;grid-template-columns:minmax(285px,.78fr) minmax(420px,1.2fr) minmax(285px,.78fr);gap:14px;align-items:start}
.fighter-panel{min-height:690px}.battle-portrait{position:relative;height:350px;overflow:hidden;background:radial-gradient(circle at 50% 58%,#37614544,transparent 42%),linear-gradient(#101923,#090c10)}
.battle-portrait img{position:absolute;inset:5px 0 0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 13px #000d)}
.battle-bars{padding:13px 14px 4px}.battle-bars label{display:flex;justify-content:space-between;margin:7px 0 4px;color:#a99b82;font-size:11px}.battle-bars .bar{height:14px!important}
.combat-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:14px}.combat-summary span{display:flex;justify-content:space-between;padding:10px;border:1px solid #333b44;background:#0a0e12;color:#9ba3a8}.combat-summary b{color:#eac46f}
.player-fighter .quick-panel{margin:0 14px 14px;border-top:1px solid #3c3329}.player-fighter .quick-pots{grid-template-columns:1fr 1fr!important}
.combat-core{min-height:690px}.combat-core .log{height:350px!important;border-bottom:1px solid #463628!important}.combat-core .fight-actions{grid-template-columns:1.2fr 1fr .8fr!important;margin:13px!important}.combat-core .auto-box{margin:0 13px 10px!important}.combat-core .loop-status,.combat-core .current-upgrade-drops,.combat-core .boss-mechanic{margin:0 13px 10px!important}
.enemy-emblem{display:grid;place-items:center;width:150px;height:150px;margin:34px auto 13px;border:2px solid #913a32;border-radius:24px;color:#de5f4e;font-size:78px;background:radial-gradient(circle,#4f1c1b,#090c10 68%);box-shadow:0 0 30px #a52d273c}
.enemy-formation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 12px 16px}.group-target{position:relative;display:grid;place-items:center;gap:4px;min-width:0;min-height:142px;padding:12px 5px 16px;overflow:hidden;border:1px solid #69302b;border-radius:12px;background:radial-gradient(circle at 50% 35%,#4f1c1b,#090c10 72%);color:#d85c50}.group-target span{font-size:42px;line-height:1}.group-target b{display:grid;place-items:center;width:23px;height:23px;border:1px solid #8e443b;border-radius:50%;font-size:11px}.group-target small{font-size:7px;color:#bda9a1;white-space:nowrap}.group-target i{position:absolute;left:0;bottom:0;height:5px;background:linear-gradient(90deg,#8d1717,#e4553d);transition:width .2s}.group-target.active{border-color:#f0aa43;color:#ffc464;box-shadow:0 0 0 2px #e0902b55,0 0 24px #dc622c44}.group-target.defeated{filter:grayscale(1);opacity:.35}.group-target:disabled{cursor:default}.enemy-fighter>h2{text-align:center}.enemy-fighter>p{min-height:64px;padding:0 14px;text-align:center;color:#8f959b;line-height:1.45}
.enemy-fighter>h2{margin:10px 18px 5px;text-align:center;font:700 24px/1.15 Georgia,serif;color:#efcfbd}.enemy-fighter>p{min-height:70px;margin:7px 18px;color:#858b90;font-size:11px;text-align:center}
.enemy-summary{grid-template-columns:1fr 1fr}.enemy-summary b{color:#e27668}
.loot-preview{margin:8px 14px 14px;padding:13px;border-top:1px solid #4d382c}.loot-preview>small{color:#c6974b;letter-spacing:1.4px}.loot-preview>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.loot-preview span{display:flex;justify-content:space-between;padding:10px;border:1px solid #343c45;background:#090c10;color:#8e969c}.loot-preview b{color:#e8c071}

.service-tabs{display:flex;gap:7px;margin-bottom:14px;padding:9px;overflow-x:auto;border:1px solid #524029;background:#090c10}.service-tabs button{flex:0 0 auto;min-height:38px;padding:6px 12px}.service-tabs button.is-active{border-color:#ce903a;background:linear-gradient(#4c3016,#21140d);color:#ffd180}
.service-panel{min-height:540px}.service-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.npc-intro{display:flex;gap:18px;align-items:center;padding:24px;border-bottom:1px solid #3c3329;background:radial-gradient(circle at 8% 50%,#764e1c44,transparent 22%)}
.npc-intro>span{display:grid;place-items:center;flex:0 0 88px;height:88px;border:1px solid #8a6638;color:#e2ad52;font-size:45px;background:#0a0d11}.npc-intro h2{margin:0 0 5px;font:700 25px/1 Georgia,serif}.npc-intro p{margin:0;color:#9ca1a0}.npc-intro.compact{padding:17px 22px}.npc-intro.compact>span{flex-basis:66px;height:66px;font-size:34px}
.coming-service{display:grid;place-items:center;align-content:center;text-align:center}.coming-rune{font-size:76px;color:#b17a35}.coming-service h2{font:700 28px/1 Georgia,serif}.coming-service p{color:#92999c}.coming-service>span{padding:7px 15px;border:1px solid #645033;color:#d2a354;text-transform:uppercase;letter-spacing:1.5px}
.service-workspace{padding:14px}.service-gear-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:13px}.service-gear{text-align:left;padding:9px}.service-gear b,.service-gear small{display:block}.service-gear b{color:#e8ddcc}.service-gear small{color:#7f878d}.service-gear.active{border-color:#d2953d;background:#302014}
.service-empty{display:grid;gap:4px;padding:25px;text-align:center;border:1px dashed #55442f;color:#9da1a0}.service-empty small{color:#737a80}
.service-workbench{padding:15px;border:1px solid #4f3f2c;background:#090c10}.workbench-item small{color:#98703c;letter-spacing:1.4px}.workbench-item h3{margin:4px 0;font:700 23px/1 Georgia,serif}.workbench-item span{color:#8c9499}.ritual-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.ritual-actions button small{display:block;color:#8d959b;font-size:9px}.stone-workbench .socket-panel{margin-top:14px}.locked-socket{position:relative;align-items:center!important;border-color:#63482e!important;background:#120f0c!important}.locked-socket span{color:#c7a66c!important}.locked-socket button{margin-left:auto;min-height:34px;padding:4px 7px;font-size:9px}.smelting-note{display:flex;justify-content:space-between;margin:0 14px 14px;padding:13px;border:1px dashed #55432d;color:#9da1a0}.smelting-note b{color:#d5a857}

.more-menu{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:18px}.more-group{display:grid;gap:7px;align-content:start}.more-group>b{padding-bottom:8px;border-bottom:1px solid #594329;color:#d3a355;font:700 13px/1 Georgia,serif;letter-spacing:1px}.more-group button{text-align:left;padding:8px 11px}

@media (max-width:1380px){
  :root{--rail:220px}.top-hud{grid-template-columns:minmax(260px,330px) 1fr minmax(250px,330px)}.switch-character{display:none}.profile-grid{grid-template-columns:minmax(560px,1.1fr) minmax(400px,.9fr)}.loadout-stage{grid-template-columns:125px minmax(230px,1fr) 125px}.inventory-panel .inventory{grid-template-columns:1fr 1fr!important}.rush-combat-layout{grid-template-columns:minmax(250px,.72fr) minmax(390px,1.2fr) minmax(250px,.72fr)}
}
@media (max-width:1120px){
  .profile-grid{grid-template-columns:1fr}.inventory-panel .inventory-layout{min-height:0}.inventory-panel .inventory{grid-template-columns:repeat(4,1fr)!important}.expedition-grid{grid-template-columns:1fr}.rush-combat-layout{grid-template-columns:1fr 1fr;grid-template-areas:"player enemy" "core core"}.player-fighter{grid-area:player}.enemy-fighter{grid-area:enemy}.combat-core{grid-area:core}.fighter-panel{min-height:0}.service-columns{grid-template-columns:1fr}.more-menu{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  :root{--rail:0px}.top-hud{grid-template-columns:1fr}.hud-currencies{display:grid;grid-template-columns:repeat(3,1fr)}.character-select-overlay{padding:18px 10px!important}.selection-shell{padding:17px}.character-slots{grid-template-columns:1fr 1fr}.character-slot{min-height:480px}.slot-portrait{height:290px}.empty-slot{min-height:480px}.loadout-stage{grid-template-columns:115px minmax(220px,1fr) 115px}.inventory-panel .inventory{grid-template-columns:repeat(3,1fr)!important}.service-panel{min-height:420px}
}
@media (max-width:650px){
  .selection-head{grid-template-columns:1fr}.selection-head .create-brand{grid-column:auto}.character-slots{grid-template-columns:1fr}.character-slot,.empty-slot{min-height:520px}.slot-portrait{height:330px}.profile-grid{display:block}.loadout-stage{display:flex;flex-direction:column;padding:10px}.loadout-stage::before{display:none}.loadout-stage .character-display{order:0;min-height:380px}.loadout-stage .equipment{order:1;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important}.loadout-stage .eq{grid-column:auto!important;grid-row:auto!important;min-height:82px!important}.loadout-stage .eq:nth-child(9){width:auto}.loadout-panel .stats{grid-template-columns:1fr!important}.loadout-panel .derived,.loadout-panel .combat-stats{grid-template-columns:1fr 1fr!important}.inventory-panel{margin-top:14px}.inventory-panel .inventory{grid-template-columns:1fr 1fr!important}.rush-combat-layout{grid-template-columns:1fr;grid-template-areas:"player" "enemy" "core"}.battle-portrait{height:320px}.combat-core .fight-actions{grid-template-columns:1fr 1fr!important}.combat-core .fight-actions #combatSpeed{grid-column:1/-1}.service-gear-picker,.ritual-actions{grid-template-columns:1fr}.more-menu{grid-template-columns:1fr}.npc-intro{align-items:flex-start;padding:17px}.npc-intro>span{flex-basis:58px;height:58px;font-size:29px}.smelting-note{display:grid;gap:4px}.socket-slots{grid-template-columns:1fr!important}.locked-socket{display:grid!important;grid-template-columns:26px 1fr auto}.slot-meta{display:grid;gap:2px}.selection-head p{font-size:14px}
}
@media (max-width:420px){
  .hud-currencies>div{grid-template-columns:23px 1fr;padding:6px}.currency-icon{width:23px;height:23px}.hud-currencies b{font-size:10px}.loadout-stage .character-display{min-height:330px}.loadout-stage .equipment{grid-template-columns:1fr 1fr!important}.inventory-panel .inventory{grid-template-columns:1fr 1fr!important}.service-tabs{margin-left:-4px;margin-right:-4px}.enemy-emblem{width:115px;height:115px;font-size:58px}.character-slot,.empty-slot{min-height:480px}.slot-portrait{height:290px}
}

/* v0.9.6 — pełne sylwetki i rozdzielenie Kamieni Dusz od przetopów */
.class-art img{object-fit:contain;object-position:center bottom}
.smelting-preview{margin:0 14px 14px;padding:16px;border:1px solid #36596a;background:radial-gradient(circle at 85% 0,#17425a3d,transparent 35%),linear-gradient(145deg,#0b141b,#080b0f)}
.smelting-copy{display:flex;justify-content:space-between;gap:16px;align-items:end;padding-bottom:12px;border-bottom:1px solid #274452}
.smelting-copy small{color:#5ea8c9;letter-spacing:1.8px}.smelting-copy h3{margin:4px 0 0;font:700 21px/1 Georgia,serif;color:#d8edf4}.smelting-copy>span{max-width:460px;color:#82a9b9;font-size:12px;text-align:right}
.smelting-accessories{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.smelting-accessories article{padding:13px;border:1px solid #2f4955;background:#080d12}.smelting-accessories article>b,.smelting-accessories article>small{display:block}.smelting-accessories article>b{color:#d8c6a1}.smelting-accessories article>small{margin-top:8px;color:#697d86;font-size:10px}.smelting-accessories article>div{display:flex;gap:6px;margin-top:10px}.smelting-accessories i{display:grid;place-items:center;width:36px;height:36px;border:1px dashed #376277;color:#59a9c9;font-style:normal;background:#0a1720;opacity:.78}

@media (max-width:650px){
  .smelting-copy{display:grid;gap:7px}.smelting-copy>span{text-align:left}.smelting-accessories{grid-template-columns:1fr}
}

/* ASHENREALM v0.9.8 — pełny przebieg GUI */
.inventory-pages,.adventure-tabs,.merchant-tabs,.forge-tabs,.herbal-tabs,.arena-tabs,.market-tabs{display:flex;gap:7px;padding:10px;border-bottom:1px solid #4b3927;background:#090c10;overflow-x:auto}
.inventory-pages button,.adventure-tabs button,.merchant-tabs button,.forge-tabs button,.herbal-tabs button,.arena-tabs button,.market-tabs button{flex:0 0 auto;min-height:37px;padding:6px 13px}
.inventory-pages button{flex:1}.inventory-pages button.is-active,.adventure-tabs button.is-active,.merchant-tabs button.is-active,.forge-tabs button.is-active,.herbal-tabs button.is-active,.arena-tabs button.is-active,.market-tabs button.is-active{border-color:#d29a3e;color:#ffd679;background:linear-gradient(#523617,#20160d);box-shadow:inset 0 -2px #d07b31}
.inventory-panel .inventory{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:96px;max-height:none!important;padding:9px!important}
.inventory-panel .inv-slot{position:relative;min-width:0;min-height:96px!important;padding:5px!important;overflow:hidden;border:1px solid #55462e;background:radial-gradient(circle at 50% 35%,#28344055,#090c10 68%)!important}
.inventory-panel .inv-slot>i{display:block;color:#c99a4b;font:normal 27px/1 Georgia,serif}.inventory-panel .inv-slot>b{display:block;max-height:27px;overflow:hidden;font-size:9px;line-height:1.25}.inventory-panel .inv-slot>span{position:absolute;right:4px;bottom:3px;font-size:9px}.inventory-panel .inv-slot>small{position:absolute;left:4px;top:3px;font-size:7px!important}.inventory-panel .empty-slot{display:grid;place-items:start;min-height:96px;padding:4px;color:#454038;font-size:8px;border-style:solid;background:#080b0e!important}
.service-route-note{margin:12px 0;padding:10px;border-left:3px solid #aa7838;background:#17120d;color:#9b9386;font-size:11px}.service-route-note b{color:#e2bd73}
.adventure-tabs{margin-bottom:14px;border:1px solid #554129}.adventure-layout{grid-template-columns:minmax(470px,.9fr) minmax(520px,1.1fr)}
.location-cards{grid-template-columns:1fr!important;max-height:680px!important;padding:13px!important}.location-card{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:12px;min-height:82px;padding:10px 14px;text-align:left}.location-card>span{display:grid;place-items:center;width:44px;height:44px;border:1px solid #8b6534;border-radius:50%;color:#e1b561;background:#0a0d11}.location-card small,.location-card b,.location-card em{display:block}.location-card small{color:#8c6334;font-size:8px;letter-spacing:1.5px}.location-card b{font:700 17px/1.3 Georgia,serif}.location-card em{color:#858b8d;font-size:10px;font-style:normal}.location-card strong{font-size:9px;color:#cc9b48}.location-card.active{border-color:#c88736;background:linear-gradient(90deg,#3d2413,#12161a)}
.target-cards{display:grid!important;gap:9px!important;max-height:430px!important;padding:12px!important}.target-card{border:1px solid #41372c;background:#090d11}.target-card.active{border-color:#bd7f36;box-shadow:inset 3px 0 #d65e2f}.target-select{display:grid;width:100%;min-height:76px;padding:10px 12px;text-align:left;border:0;background:transparent;box-shadow:none}.target-select span{color:#b76243;font-size:8px;letter-spacing:1.4px}.target-select b{font:700 17px/1.2 Georgia,serif}.target-select small{color:#82898d}.group-choice{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 9px 9px}.group-choice button{min-height:35px;color:#e4b75d}.beast-book{margin:0 12px 12px;padding:15px;border:1px solid #55402b;background:radial-gradient(circle at 10% 0,#56351938,transparent 30%),#090c10}.beast-head{display:flex;gap:10px;align-items:center}.beast-head>span{font-size:35px;color:#c99445}.beast-head small,.beast-head b{display:block}.beast-head small{color:#98703e;font-size:8px;letter-spacing:1.6px}.beast-head b{font:700 20px/1.2 Georgia,serif}.beast-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.beast-stats span,.beast-drops span{display:flex;justify-content:space-between;padding:7px;border:1px solid #34312b;background:#070a0d;color:#959a9b}.beast-stats b,.beast-drops b{color:#dbad55}.beast-drops{display:grid;gap:4px}.beast-drops>small{color:#8b6a3f;font-size:8px}.adventure-coming,.adventure-index{display:grid;place-items:center;align-content:center;min-height:320px;padding:30px;text-align:center}.adventure-coming>span{font-size:66px;color:#a87536}.adventure-coming b,.adventure-index b{font:700 25px/1.2 Georgia,serif}.adventure-coming small,.adventure-index small{max-width:480px;color:#858b8e}
.skill-toolbar{display:flex;justify-content:space-between;gap:12px;padding:10px;border-bottom:1px solid #4d3b28}.skill-tabs,.skill-points{display:flex;gap:7px;align-items:center}.skill-points b{color:#d7a94f}.skill-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;padding:12px!important}.skill-grid .skill-card{display:grid;grid-template-columns:58px 1fr auto;gap:11px;min-height:165px!important;padding:14px!important;border:1px solid #4b3e2c;background:linear-gradient(145deg,#171713,#090c10)!important}.skill-icon{display:grid;place-items:center;width:56px;height:56px;border:2px solid #81602f;color:#e2b35b;font-size:28px;background:radial-gradient(circle,#43311a,#090c10)}.skill-copy p{margin:5px 0;color:#989b98;font-size:11px}.skill-copy em{display:block;margin-top:3px;color:#777d81;font-size:9px;font-style:normal}.skill-progress{height:8px;margin-top:12px;border:1px solid #4a3b29;background:#050709}.skill-progress i{display:block;height:100%;background:linear-gradient(90deg,#8f6225,#d8ad4c)}.skill-grid .skill-actions{display:grid;grid-template-columns:40px 40px;gap:6px;align-content:start}.skill-grid .skill-actions button{min-height:39px}.skill-grid .skill-actions button:nth-last-child(-n+2){grid-column:1/-1}.passive-placeholder{display:grid;place-items:center;align-content:center;min-height:360px;color:#8a9092}.passive-placeholder>span{font-size:56px;color:#8e6532}.training-info{display:grid;grid-template-columns:1fr auto;gap:14px}.spirit-counter{display:grid;place-items:center;min-width:160px;border-left:1px solid #4b3928}.spirit-counter b{font-size:30px;color:#d6a94e}
.combat-skill-box{margin:0 13px 10px;border:1px solid #40362c;background:#080b0e}.combat-skills{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px}.combat-skill{display:flex;gap:7px;align-items:center;padding:7px;border:1px solid #302f2c;color:#888f92}.combat-skill.active{border-color:#82622f;color:#e4c17c;background:#1a140d}.combat-skill span,.combat-skill small{display:block}.combat-skill small{font-size:8px;color:#747a7e}
.dungeon-complete{position:absolute;z-index:8;inset:48px 0 0;display:grid;place-items:center;align-content:center;padding:24px;text-align:center;background:#07090cf5}.dungeon-complete[hidden]{display:none}.complete-sigil{display:grid;place-items:center;width:88px;height:88px;border:2px solid #4cb878;border-radius:50%;color:#6bdd91;font-size:46px;box-shadow:0 0 30px #3fb56c44}.dungeon-complete h2{font:700 27px/1 Georgia,serif;color:#e7c978}.dungeon-complete p{color:#9da3a1}.dungeon-complete>div:not(.complete-sigil){display:flex;gap:7px;margin:10px}.dungeon-complete span{padding:9px;border:1px solid #3d473c}.dungeon-complete button{min-width:180px;margin:4px}.combat-core{position:relative}
.merchant-coming{display:grid;place-items:center;align-content:center;min-height:360px;text-align:center}.merchant-coming>span{font-size:68px;color:#ae7a38}.merchant-coming b{font:700 25px/1 Georgia,serif}.merchant-coming small{max-width:500px;color:#898f92}.shop-row{display:grid!important;grid-template-columns:48px 1fr minmax(310px,auto);gap:10px;align-items:center}.shop-glyph{display:grid;place-items:center;width:42px;height:42px;border:1px solid #5a442b;color:#d4a254;background:#090c10}.shop-stacks{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.shop-stacks button{min-width:0!important}.shop-stacks small{display:block;color:#858b8e;font-size:8px}
.service-resource-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.service-resource-row span{display:flex;justify-content:space-between;padding:10px;border:1px solid #43382a;background:#090c10}.service-resource-row b{color:#d6aa55}.stone-inventory{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:14px}.stone-inventory>div{grid-column:1/-1;display:flex;justify-content:space-between}.stone-inventory>span{display:grid;grid-template-columns:28px 1fr auto;gap:5px;padding:8px;border:1px solid #355165;background:#09131b}.stone-inventory i{grid-row:1/3;color:#61bde5;font-style:normal}.stone-inventory small{grid-column:2/-1;color:#6d8995;font-size:8px}.stone-equipment-title{margin:8px 0;color:#c7a156;font:700 14px Georgia,serif}.forge-workspace{padding:14px}.forge-comparison{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:14px}.forge-comparison>div{display:grid;gap:8px;align-content:start;min-height:290px;padding:18px;border:1px solid #49505a;background:#080b0f}.forge-comparison>div:last-child{border-color:#855b24;background:radial-gradient(circle at 50% 20%,#6b471c42,transparent 40%),#0b0b09}.forge-comparison small{color:#98713d;letter-spacing:1.2px}.forge-comparison b{color:#efca76;font:700 18px Georgia,serif}.forge-comparison p{font-size:10px;color:#b68bd6}.forge-requirements .refine-materials{margin:3px 0}.coming-inline{margin:14px;padding:25px;border:1px dashed #655139;text-align:center}.coming-inline b,.coming-inline span,.coming-inline small{display:block}.coming-inline b{font:700 23px Georgia,serif}.coming-inline span,.coming-inline small{color:#888f92}
.keeper-layout{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(300px,.7fr) minmax(330px,.85fr);gap:14px}.keeper-layout>.panel{min-height:650px}.storage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;align-content:start;padding:12px}.storage-item{display:grid;gap:4px;min-width:0;padding:7px;border:1px solid #4a412f;background:#090c10}.storage-item>i{color:#d1a04d;font:normal 25px Georgia}.storage-item>b{max-height:30px;overflow:hidden;font-size:9px}.storage-item>small{color:#858b8e}.storage-item>div{display:grid;grid-template-columns:1fr 1fr;gap:3px}.storage-item button{min-height:31px;padding:3px;font-size:8px}.keeper-avatar{display:grid;place-items:center;align-content:center;min-height:310px;padding:20px;text-align:center}.keeper-avatar>span{font-size:95px;color:#bc873e}.keeper-avatar h2{font:700 24px Georgia,serif}.keeper-avatar p{color:#8e9496}.account-deposit{padding:12px}.deposit-balances{display:grid;grid-template-columns:1fr 1fr;gap:5px}.deposit-balances span{display:grid;padding:9px;border:1px solid #4a3b29}.deposit-balances b{color:#dab15f}.account-deposit input{width:100%;min-height:40px;margin:8px 0;padding:8px;color:#eee;background:#090c10;border:1px solid #5c482d}.account-deposit>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:5px}.warehouse-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:10px}.warehouse-tabs button b,.warehouse-tabs button small{display:block}.warehouse-tabs button small{font-size:8px}.warehouse-tabs button.is-active{border-color:#c48935;color:#edc46b;background:#35220f}
.research-list{display:grid;gap:7px;padding:13px}.research-row{display:grid;grid-template-columns:38px 1fr auto 100px;gap:10px;align-items:center;padding:10px;border:1px solid #40382e;background:#090c10}.research-row>span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #785b32;border-radius:50%;color:#d0a355}.research-row small,.research-row b,.research-row em{display:block}.research-row small{color:#99703b;font-size:8px;letter-spacing:1.2px}.research-row em{color:#7f8689;font-size:10px;font-style:normal}.research-row strong{color:#d8b05d}.research-row.locked{opacity:.5}.recipe-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px}.recipe-card{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:13px;border:1px solid #3e4936;background:radial-gradient(circle at 0 0,#35533034,transparent 40%),#090c10}.recipe-card>span{color:#79b36b;font:700 26px Georgia}.recipe-card small,.recipe-card b,.recipe-card em{display:block}.recipe-card small{color:#6c9c64;font-size:8px}.recipe-card b{font:700 17px Georgia,serif}.recipe-card em{color:#8e9a89;font-size:10px}.recipe-card p{margin:4px 0;color:#d0b875;font-size:11px}
.arena-panel,.market-panel{min-height:640px}.arena-rules{display:grid;gap:4px;margin:14px;padding:15px;border:1px solid #60452c;background:#130d0b}.arena-rules b{font:700 19px Georgia,serif;color:#e0b057}.arena-rules span,.arena-rules small{color:#929799}.arena-opponents{display:grid;gap:8px;padding:0 14px 14px}.arena-opponents article{display:grid;grid-template-columns:54px 1fr 90px 110px;gap:10px;align-items:center;padding:10px;border:1px solid #4c3a2b;background:#090c10}.arena-avatar{display:grid;place-items:center;width:48px;height:48px;border:1px solid #76552e;color:#d8a852;background:#17110c}.arena-opponents small,.arena-opponents b{display:block}.arena-opponents strong{text-align:right;color:#e3bb68}.arena-opponents strong small{font-size:8px;color:#7b8184}.arena-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:15px}.arena-board div{display:grid;place-items:center;padding:20px;border:1px solid #4b3c2d;background:#090c10}.arena-board b{font-size:25px;color:#e1b65e}.demo-note{margin:14px;padding:13px;border:1px dashed #5c4932;color:#8d9293;text-align:center}.arena-rewards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:15px}.arena-rewards article{display:grid;gap:7px;min-height:180px;place-items:center;align-content:center;border:1px solid #705332;background:#0a0d11}.arena-rewards b{font:700 24px Georgia;color:#dfb15c}.market-layout{display:grid;grid-template-columns:280px 1fr;gap:14px;padding:14px}.market-filters{display:grid;gap:9px;align-content:start;padding:14px;border:1px solid #624129;background:#100d0a}.market-filters>b{color:#e0aa4e;font:700 17px Georgia}.market-filters label{display:grid;gap:4px;color:#bd9753;font-size:9px}.market-filters input,.market-filters select{width:100%;min-height:40px;padding:8px;color:#eee;border:1px solid #603d26;background:#17120f}.market-filters>small{color:#776f67;text-align:center}.market-head{display:flex;justify-content:space-between;padding:10px;color:#e1b45d}.market-offers{display:grid;gap:8px}.market-offers article{display:grid;grid-template-columns:52px 1fr 170px 180px;gap:10px;align-items:center;padding:11px;border:1px solid #855e2a;background:#090b0d}.market-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #6b4d28;color:#ddb35f}.market-offers small,.market-offers b,.market-offers em{display:block}.market-offers small{color:#ad7e39;font-size:8px}.market-offers em{color:#63b17a;font-size:10px;font-style:normal}
@media(max-width:1120px){.adventure-layout,.keeper-layout{grid-template-columns:1fr}.skill-grid{grid-template-columns:1fr}.forge-comparison{grid-template-columns:1fr}.market-layout{grid-template-columns:1fr}.market-filters{grid-template-columns:1fr 1fr}.keeper-layout>.panel{min-height:0}}
@media(max-width:650px){.inventory-panel .inventory{grid-template-columns:repeat(5,minmax(0,1fr))!important}.inventory-panel .inv-slot,.inventory-panel .empty-slot{min-height:78px!important}.inventory-panel .inv-slot>b{display:none}.adventure-tabs{display:grid;grid-template-columns:1fr 1fr}.shop-row{grid-template-columns:42px 1fr}.shop-stacks{grid-column:1/-1}.skill-toolbar{display:grid}.skill-grid .skill-card{grid-template-columns:48px 1fr}.skill-grid .skill-actions{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}.combat-skills{grid-template-columns:1fr}.keeper-layout{grid-template-columns:1fr}.storage-grid{grid-template-columns:repeat(3,1fr)}.recipe-grid{grid-template-columns:1fr}.research-row{grid-template-columns:34px 1fr}.research-row>strong,.research-row>button{grid-column:2}.arena-opponents article{grid-template-columns:48px 1fr}.arena-opponents strong,.arena-opponents button{grid-column:2}.arena-board,.arena-rewards{grid-template-columns:1fr}.market-filters{grid-template-columns:1fr}.market-offers article{grid-template-columns:48px 1fr}.market-offers article>div:nth-child(3),.market-offers button{grid-column:2}.stone-inventory{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.enemy-formation{gap:5px;margin:15px 7px 12px}.group-target{min-height:112px;padding:9px 3px 13px}.group-target span{font-size:34px}.group-target small{font-size:6px}.enemy-fighter>p{min-height:0}}

/* ===== v0.11.0 MOBILE PvE / LOCATION SPOTS ===== */
.location-card-v11{display:grid;gap:10px;padding:12px;border:1px solid #4d3a26;background:linear-gradient(180deg,#11161c,#0a0e12);box-shadow:inset 0 1px #ffffff08}
.location-card-v11.active{border-color:#b97a31;box-shadow:inset 0 0 0 1px #70451f}
.location-card-v11.locked{opacity:.62}
.location-card-head{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center}
.location-index{display:grid;place-items:center;width:40px;height:40px;border:1px solid #835f32;border-radius:50%;font:700 16px Georgia,serif;color:#e5b65d;background:#090c10}
.location-card-head small,.location-card-head b,.location-card-head em{display:block}.location-card-head small{font-size:8px;letter-spacing:1.3px;color:#946a38}.location-card-head b{font:700 17px Georgia,serif;color:#eee2cf}.location-card-head em{font-size:10px;font-style:normal;color:#818991}.location-card-head strong{font-size:9px;color:#d0a052}
.special-spots{display:grid;grid-template-columns:minmax(190px,1fr) minmax(260px,1.3fr);gap:10px;align-items:center;padding:9px;border:1px solid #493821;background:#0b0f14}
.spot-copy b,.spot-copy small{display:block}.spot-copy b{font-size:10px;letter-spacing:1.2px;color:#e2b864}.spot-copy small{margin-top:3px;color:#8e959c;font-size:9px}
.spot-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.spot-slots button{min-height:38px;padding:6px;font-size:9px}.spot-slots button.occupied{border-color:#c3822e;background:#3b2613;color:#ffd377}
.location-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:7px}.location-actions button{min-height:40px}.location-actions button:first-child{border-color:#9b6429;background:linear-gradient(#503116,#21150d);color:#ffd27a}
.active-spot-banner{display:grid;grid-template-columns:1fr auto;gap:2px 10px;margin-bottom:8px;padding:9px 10px;border:1px solid #b76f2c;background:linear-gradient(90deg,#4b2a11,#18100b);box-shadow:inset 0 1px #f3b65335}.active-spot-banner b{color:#ffd06b}.active-spot-banner span{font-weight:800;color:#fff}.active-spot-banner small{grid-column:1/-1;color:#d9b576}
.combat-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 9px}.combat-mode-switch button{min-height:40px}.combat-mode-switch button.is-active{border-color:#d3923b;background:linear-gradient(#4b2f15,#20140c);color:#ffd47a}
.service-picker-shell{margin-bottom:12px;border:1px solid #4e3b28;background:#0b0f14}.service-picker-shell>summary{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;cursor:pointer;padding:11px 12px;list-style:none}.service-picker-shell>summary::-webkit-details-marker{display:none}.service-picker-shell>summary:after{content:"▾";grid-column:2;grid-row:1/-1;color:#d19b50}.service-picker-shell[open]>summary:after{content:"▴"}.service-picker-shell>summary span{font-weight:700;color:#e8ddcc}.service-picker-shell>summary small{grid-column:1;color:#808890}.service-picker-toolbar{padding:7px 10px;border-top:1px solid #3d3023;border-bottom:1px solid #3d3023;color:#858d95;font-size:9px}.service-gear-picker.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:420px;overflow:auto;padding:9px;margin:0}.service-gear-picker.compact-grid .service-gear{display:grid;grid-template-columns:28px 1fr;gap:3px 7px;align-items:center;min-height:64px}.service-gear-picker.compact-grid .service-gear i{grid-row:1/3;font-size:20px;font-style:normal}.service-gear-picker.compact-grid .service-gear b{font-size:10px;line-height:1.15}.service-gear-picker.compact-grid .service-gear small{font-size:8px}
.offline-box [data-dismiss-offline]{margin-left:auto;min-width:28px;min-height:28px;padding:0 7px;font-size:18px;line-height:1}

@media(max-width:650px){
  /* Real mobile HUD: one compact strip, not a desktop header stacked vertically. */
  .top-hud{display:grid!important;grid-template-columns:1fr auto!important;gap:5px 8px!important;padding:5px 8px 6px!important;min-height:0!important;position:sticky!important;top:0!important}
  .player-chip{grid-template-columns:36px 1fr auto!important;gap:7px!important;min-width:0}.avatar-frame{width:36px!important;height:36px!important}.level-medallion{width:38px!important;height:36px!important;border-radius:8px!important}.level-medallion small{font-size:6px!important}.level-medallion span{font-size:15px!important}.player-copy small{display:none!important}.player-copy b{font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-copy span{font-size:8px!important}
  .hud-bars{grid-column:1/-1!important;display:grid!important;grid-template-columns:1.2fr .8fr!important;gap:4px 7px!important}.hud-meter{display:grid!important;grid-template-columns:34px 1fr!important;gap:4px!important;align-items:center}.hud-meter.exp-meter{grid-column:1/-1!important}.hud-meter label{font-size:7px!important}.hud-meter label b{display:none!important}.top-hud .bar{height:5px!important}.hud-currencies{position:absolute;right:49px;top:6px;display:flex!important;gap:4px!important;background:transparent!important}.hud-currencies>div{min-width:42px!important;padding:2px 4px!important;border:0!important;background:transparent!important}.hud-currencies small,.hud-currencies .currency-icon{display:none!important}.hud-currencies b{font-size:9px!important}.hud-currencies>div:nth-child(3){display:none!important}.switch-character{display:none!important}
  body[data-active-screen="combat"] .top-hud,body[data-active-screen="combat"] #offlineBox{display:none!important}
  .offline-box{margin:4px 8px 0!important;padding:6px 8px!important;gap:6px!important;font-size:9px!important;white-space:nowrap;overflow:hidden}.offline-box small{display:none!important}.offline-box span{overflow:hidden;text-overflow:ellipsis}
  #gameMain{padding-top:8px!important}.screen-heading{height:44px!important}.screen-heading h1{font-size:21px!important}.heading-rune{font-size:28px!important}
  .adventure-tabs{display:flex!important;grid-template-columns:none!important;margin-bottom:8px!important;padding:5px!important;gap:5px!important;scrollbar-width:none}.adventure-tabs::-webkit-scrollbar{display:none}.adventure-tabs button{min-height:32px!important;padding:5px 10px!important;font-size:9px!important}
  .adventure-layout{display:block!important}.map-panel{margin-bottom:8px}.waypoint-panel{margin-top:8px}.location-cards{max-height:none!important;padding:7px!important;display:grid!important;gap:8px!important}
  .location-card-v11{padding:9px;gap:8px}.location-card-head{grid-template-columns:36px 1fr auto;gap:7px}.location-index{width:32px;height:32px;font-size:13px}.location-card-head b{font-size:14px}.location-card-head strong{font-size:8px}.special-spots{grid-template-columns:1fr;gap:6px;padding:7px}.spot-copy{display:flex;justify-content:space-between;gap:8px;align-items:center}.spot-copy b{font-size:9px}.spot-copy small{margin:0;font-size:8px;text-align:right}.spot-slots{gap:4px}.spot-slots button{min-height:34px;padding:4px 3px;font-size:8px}.location-actions{gap:5px}.location-actions button{min-height:36px;padding:5px;font-size:9px}
  .waypoint-panel .location-hunt-control{padding:8px!important}.waypoint-panel .location-pool{grid-template-columns:1fr 1fr!important}.beast-book{margin-top:8px!important}
  .rush-combat-layout{display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"player enemy" "core core"!important;gap:6px!important}.player-fighter{grid-area:player}.enemy-fighter{grid-area:enemy}.combat-core{grid-area:core}.fighter-panel{padding:7px!important}.fighter-panel .panel-title{padding:5px!important}.battle-portrait{height:135px!important}.hero-figure img{max-height:132px!important}.enemy-emblem{width:64px!important;height:64px!important;margin:8px auto!important;font-size:32px!important}.enemy-fighter h2{font-size:13px!important;margin:4px 0!important}.enemy-fighter #mobMeta{font-size:8px!important;line-height:1.2!important;max-height:30px;overflow:hidden}.battle-bars{gap:2px!important}.battle-bars label{font-size:7px!important}.combat-summary{grid-template-columns:1fr 1fr!important;gap:3px!important}.combat-summary span{padding:4px!important;font-size:7px!important}.player-fighter .quick-panel{display:none!important}.loot-preview{padding:6px!important}.loot-preview small{font-size:7px!important}.loot-preview span{font-size:8px!important}.combat-core{padding:8px!important}.combat-core>.panel-title{display:none!important}.combat-core .log{max-height:115px!important;min-height:0!important;order:5}.combat-core{display:flex!important;flex-direction:column!important}.combat-mode-switch{order:0;margin-bottom:5px}.fight-actions{order:1!important;display:grid!important;grid-template-columns:1.25fr 1fr .8fr!important;gap:5px!important;margin-bottom:6px!important}.fight-actions button{min-height:42px!important;padding:5px!important;font-size:10px!important}.combat-core .fight-actions #combatSpeed{grid-column:auto!important}.auto-box{order:2!important;padding:6px!important;font-size:8px!important}.loop-status{order:3!important}.current-upgrade-drops{order:4!important}.combat-skill-box{order:6!important}.boss-mechanic,.dungeon-complete,.respawn-status{order:0!important}.active-spot-banner{margin:2px 0 5px;padding:6px 8px}.active-spot-banner b,.active-spot-banner span{font-size:9px}.active-spot-banner small{font-size:8px}
  .service-picker-shell>summary{padding:9px}.service-gear-picker.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:48vh;padding:6px;gap:5px}.service-gear-picker.compact-grid .service-gear{display:block!important;min-height:72px!important;padding:6px!important;text-align:center!important}.service-gear-picker.compact-grid .service-gear i{display:block;font-size:20px;margin-bottom:3px}.service-gear-picker.compact-grid .service-gear b{display:block;font-size:8px;max-height:20px;overflow:hidden}.service-gear-picker.compact-grid .service-gear small{font-size:7px}.forge-comparison{grid-template-columns:1fr!important}.forge-requirements{order:3}
}

/* v0.11.0 FINAL — bestiary readability */
.beast-drops span{align-items:center;gap:8px}.beast-drops span i{margin-left:auto;color:#777f84;font-size:8px;font-style:normal;text-transform:uppercase;letter-spacing:.5px}.beast-drops span b{min-width:68px;text-align:right}
@media(max-width:720px){.beast-stats{grid-template-columns:1fr 1fr}.beast-drops span{padding:6px;font-size:9px}.beast-drops span i{font-size:7px}.beast-drops span b{min-width:56px;font-size:9px}}

/* v0.11.2 accumulated mobile/UI feedback */
.profile-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 10px;padding:6px;border:1px solid #5b4228;background:#090c10}.profile-view-tabs button{min-height:44px}.profile-view-tabs button.is-active{border-color:#c78b34;background:linear-gradient(#5a3515,#21140b);color:#ffd174}
.collapsible-panel>summary{cursor:pointer;list-style:none;padding:11px 14px;font-weight:800;letter-spacing:1.2px;color:#d9b166}.collapsible-panel>summary::-webkit-details-marker{display:none}.collapsible-panel>summary:after{content:"＋";float:right}.collapsible-panel[open]>summary:after{content:"−"}.expedition-summary>summary{border-bottom:1px solid #4a3927}.expedition-summary:not([open]){min-height:0!important}.combat-skill-box:not([open]){padding:0!important}.combat-skill-box>summary{font-size:10px}
.set-switcher{display:grid!important;grid-template-columns:repeat(4,1fr)!important}.set-switcher button{min-width:0!important}.set-switcher button.premium{opacity:.65}
.storage-item{aspect-ratio:1/1;position:relative;place-content:center;text-align:center}.storage-item>b,.storage-item>small,.storage-item>button,.storage-item>div{display:none!important}.storage-item>i{font-size:26px!important}.storage-item:after{content:"";position:absolute;inset:3px;border:1px solid #6d512d33;pointer-events:none}
.fighter-panel{height:690px;min-height:690px;overflow:hidden}

@media(max-width:650px){
  /* HUD: HP and MP each half width, EXP full width; only bars remain. */
  .hud-bars{grid-template-columns:1fr 1fr!important;gap:5px 8px!important}.hud-meter{display:block!important}.hud-meter label{display:none!important}.hud-meter.exp-meter{grid-column:1/-1!important}.top-hud .bar{height:7px!important}
  .hud-currencies{display:none!important}
  .profile-view-tabs{position:sticky;top:0;z-index:15;margin-bottom:7px}.profile-view-tabs button{font-size:9px;padding:5px;min-height:38px}
  .profile-grid.profile-view-gear .loadout-panel .points,.profile-grid.profile-view-gear .loadout-panel .stats,.profile-grid.profile-view-gear .loadout-panel .derived,.profile-grid.profile-view-gear .loadout-panel .combat-stats,.profile-grid.profile-view-gear .loadout-panel #heal{display:none!important}
  .profile-grid.profile-view-stats .loadout-panel .set-switcher,.profile-grid.profile-view-stats .loadout-panel .loadout-stage,.profile-grid.profile-view-stats .inventory-panel{display:none!important}
  .profile-grid.profile-view-stats .loadout-panel .stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.profile-grid.profile-view-stats .loadout-panel .stats>div{min-height:58px!important;padding:8px!important}.profile-grid.profile-view-stats .loadout-panel .stats span{font-size:0}.profile-grid.profile-view-stats .loadout-panel .stats>div:nth-child(1) span:after{content:"SIŁ";font-size:11px}.profile-grid.profile-view-stats .loadout-panel .stats>div:nth-child(2) span:after{content:"WIT";font-size:11px}.profile-grid.profile-view-stats .loadout-panel .stats>div:nth-child(3) span:after{content:"ZRĘ";font-size:11px}.profile-grid.profile-view-stats .loadout-panel .stats>div:nth-child(4) span:after{content:"INT";font-size:11px}
  .set-switcher{grid-template-columns:repeat(4,1fr)!important;gap:4px!important;padding:6px!important}.set-switcher button{font-size:8px!important;min-height:34px!important;padding:3px!important}
  .inventory-panel .inventory{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;padding:6px!important;max-height:none!important}.inventory-panel .inv-slot,.inventory-panel .empty-slot{min-height:0!important;aspect-ratio:1/1!important;padding:3px!important}.inventory-panel .inv-slot i{font-size:18px!important}.inventory-panel .inv-slot>b,.inventory-panel .inv-slot>small{display:none!important}.inventory-panel .inv-slot span{font-size:8px!important}.inventory-toolbar{display:flex!important;overflow-x:auto;gap:4px!important}.inventory-toolbar button{flex:0 0 auto;font-size:8px!important;padding:5px 7px!important}.inventory-pages button{min-height:32px!important}
  .inventory-panel .detail:not(:empty){position:fixed!important;z-index:180;left:12px;right:12px;bottom:calc(74px + env(safe-area-inset-bottom));top:auto;max-height:70vh;overflow:auto;border:1px solid #9b6d31!important;box-shadow:0 20px 80px #000;background:#0a0d11!important}.inventory-panel .detail:empty{display:none!important}
  .storage-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;padding:7px!important}.storage-item{min-height:0!important;padding:3px!important}.storage-item>i{font-size:19px!important}
  .fighter-panel{height:330px!important;min-height:330px!important}.battle-portrait{height:132px!important}.enemy-emblem{margin:5px auto!important}.combat-core .fight-actions{grid-template-columns:1fr 1fr 1fr!important}.combat-core .fight-actions #combatSpeed{grid-column:auto!important}.combat-skill-box{margin:5px 0!important}.expedition-summary{margin-top:7px!important}.oracle-blessing{margin-top:7px!important}
  .character-select-overlay{padding:8px!important}.selection-shell{padding:10px!important}.character-slots{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}.character-slot,.empty-slot{min-height:220px!important;padding:8px!important}.character-slot.last-used{grid-column:1/-1;min-height:285px!important;order:-1}.slot-portrait{height:125px!important}.character-slot.last-used .slot-portrait{height:180px!important}.character-slot h2{font-size:17px!important;margin:5px 0!important}.character-slot p{font-size:9px!important}.slot-meta{display:none!important}.character-slot button{min-height:34px!important;font-size:9px!important}
  #createOverlay{align-items:flex-start!important;padding:0 8px 12px!important}.create-box{margin-top:0!important;padding-top:8px!important}.overlay-back{position:sticky!important;top:0!important;z-index:4;margin-bottom:5px!important}.class-choices{grid-template-columns:1fr 1fr!important;gap:7px!important}.class-card{min-height:0!important;padding:0 7px 8px!important}.class-art{height:150px!important}.class-card h3{font-size:16px!important}.class-card>p{font-size:8px!important;min-height:32px!important}.class-card button{font-size:9px!important;min-height:34px!important}
}
.detail{position:relative}.detail-close{position:absolute;right:8px;top:8px;z-index:3;width:34px;min-width:34px;height:34px;padding:0;font-size:20px}

/* v0.11.2.1 — character selector hotfix */
@media (max-width:720px){
  .character-slot,.empty-slot{box-sizing:border-box;padding-bottom:58px!important}
  .character-slot>button{left:8px!important;right:8px!important;bottom:8px!important;width:calc(100% - 16px)!important}
  .empty-slot .empty-slot-mark{width:92px!important;height:92px!important;margin:4px auto 6px!important;font-size:50px!important}
  .empty-slot>small{margin-top:2px!important}
  .empty-slot h2{margin:3px 0 2px!important}
  .empty-slot p{margin:0!important;line-height:1.15!important;white-space:normal!important}
}

/* v0.11.3 — consolidated feedback pass */
.game-modal{position:fixed;inset:0;z-index:2200;display:grid;place-items:center;padding:14px;background:rgba(2,4,8,.84);backdrop-filter:blur(3px)}
.game-modal[hidden]{display:none}.game-modal-card{position:relative;width:min(620px,100%);max-height:86vh;overflow:auto;padding:18px;border:2px solid #95672e;border-radius:16px;background:linear-gradient(145deg,#151a21,#090c11 72%);box-shadow:0 30px 90px #000}
.game-modal-close{position:absolute;right:10px;top:10px;width:38px;height:38px;min-width:38px;padding:0;font-size:25px;color:#e6bd73;background:#10141a;border-color:#5f4528}.game-modal-title{padding:4px 48px 12px 0;border-bottom:1px solid #594024}.game-modal-title small{color:#b47a37;letter-spacing:2px}.game-modal-title h2{margin:3px 0 0;font:700 24px Georgia,serif}.game-modal-body{padding:14px 0;color:#d8d2c7}.game-modal-actions{display:grid;gap:8px}.game-modal-actions button{min-height:44px}.game-modal-actions .primary{border-color:#b37730;background:linear-gradient(#6d3a16,#2a190e);color:#ffd693}.premium-lock{text-align:center;font-size:44px}.modal-note{color:#a8a096}
.loadout-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.loadout-preview-slot{position:relative;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;gap:2px 7px;min-height:62px;padding:8px;border:1px solid #55452f;background:#0a0e13}.loadout-preview-slot i{grid-row:1/3;display:grid;place-items:center;font-style:normal;font-size:23px;color:#d1a04d}.loadout-preview-slot small{color:#8e8374;font-size:8px;text-transform:uppercase}.loadout-preview-slot b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.loadout-preview-slot em{position:absolute;right:5px;bottom:4px;color:#e6b658;font-style:normal;font-size:8px}.loadout-preview-slot.empty{opacity:.55}.loadout-preview-skills{display:grid;gap:4px;margin-top:10px;padding:10px;border:1px solid #4c3b28}.loadout-preview-skills span{color:#aaa49a;font-size:10px}
.profile-stat-block{margin:10px 13px;padding:10px;border:1px solid #3d352a;background:#090c10}.profile-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#cfa458;letter-spacing:1.3px;font-weight:800}.profile-section-title>b{font-size:16px}.compact-attributes{margin:0!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.compact-attributes>div{min-height:50px!important;margin:0!important;padding:7px!important}.main-stat-grid,.extra-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.main-stat-grid span,.extra-stat-grid span{display:flex;justify-content:space-between;gap:8px;padding:9px;border:1px solid #3d372f;background:#0b0f14}.main-stat-grid b,.extra-stat-grid b{color:#e9d7b3}.profile-skills{display:grid;gap:6px}.profile-skill-row{display:grid;grid-template-columns:34px 1fr 40px;gap:8px;align-items:center;padding:7px;border:1px solid #3c352d;background:#0a0d11}.profile-skill-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #654823;color:#d8a64f}.profile-skill-row b,.profile-skill-row small{display:block}.profile-skill-row small{color:#878d91;font-size:8px}.profile-skill-row button{min-height:34px;padding:2px}.profile-extra-stats{margin:8px 13px;border:1px solid #5b4328;background:#0a0d11}.profile-extra-stats>summary{list-style:none;cursor:pointer;padding:11px 12px;color:#d7ae62;font-weight:800;letter-spacing:1px}.profile-extra-stats>summary::-webkit-details-marker{display:none}.profile-extra-stats>summary span{float:right}.profile-extra-stats[open]>summary span{transform:rotate(45deg)}.extra-stat-grid{padding:0 9px 9px}
.oracle-blessing{box-sizing:border-box;overflow:hidden;padding:12px!important;border-color:#80562d!important}.oracle-copy{min-width:0}.oracle-copy small,.oracle-copy b,.oracle-copy span{display:block}.oracle-copy small{color:#e5b76f;letter-spacing:1px}.oracle-copy b{margin:3px 0;color:#f2dfba}.oracle-copy span{color:#aaa49b;font-size:10px}.oracle-blessing button{white-space:normal}

@media(max-width:650px){
  /* Profile: gear view and stats view are truly separate. */
  .profile-grid.profile-view-gear .loadout-panel .profile-stat-block,.profile-grid.profile-view-gear .loadout-panel .profile-extra-stats,.profile-grid.profile-view-gear .loadout-panel #heal{display:none!important}
  .profile-grid.profile-view-stats .loadout-panel .panel-title{display:none!important}.profile-grid.profile-view-stats .loadout-panel{padding-top:1px!important}.profile-grid.profile-view-stats .profile-stat-block,.profile-grid.profile-view-stats .profile-extra-stats{display:block!important}
  .profile-stat-block{margin:7px!important;padding:8px!important}.profile-section-title{font-size:9px}.compact-attributes{display:grid!important;grid-template-columns:1fr 1fr!important}.compact-attributes>div{grid-template-columns:1fr auto auto 34px!important;min-height:48px!important}.compact-attributes span{font-size:10px!important}.main-stat-grid span,.extra-stat-grid span{padding:7px;font-size:9px}.profile-skill-row{padding:6px}.profile-extra-stats{margin:7px!important}.profile-extra-stats>summary{padding:9px;font-size:9px}.extra-stat-grid{gap:4px;padding:0 7px 7px}
  /* Inventory: dense 6-column grid, no blocking placeholder. */
  .inventory-panel .inventory{gap:2px!important;padding:4px!important}.inventory-panel .inv-slot,.inventory-panel .empty-slot{border-width:1px!important}.inventory-panel .detail:not(:empty){left:8px!important;right:8px!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;max-height:74vh!important;padding:14px!important;border-radius:12px}.detail-close{right:6px!important;top:6px!important}
  /* Character selector keeps chosen sizes but fixes text/button collisions. */
  .character-slot{display:flex!important;flex-direction:column!important;align-items:stretch}.character-slot .slot-portrait{flex:0 0 auto}.character-slot>small,.character-slot h2,.character-slot p{position:relative;z-index:1}.character-slot p{min-height:20px!important;margin-bottom:42px!important;line-height:1.25!important}.empty-slot .empty-slot-mark{flex:0 0 auto}.empty-slot h2{font-size:14px!important}.empty-slot p{font-size:8px!important}.character-slot>button{z-index:3!important}
  /* Combat panels never collide with heading and have equal height. */
  body[data-active-screen="combat"] .screen-heading{height:auto!important;min-height:58px!important;margin-bottom:12px!important;padding-top:4px!important}.rush-combat-layout{margin-top:0!important;align-items:stretch!important}.fighter-panel{height:342px!important;min-height:342px!important;max-height:342px!important;box-sizing:border-box!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}.fighter-panel .panel-title{flex:0 0 auto}.battle-portrait{flex:0 0 130px!important}.enemy-formation{flex:0 0 auto;max-height:92px!important}.enemy-fighter .combat-summary,.player-fighter .combat-summary{margin-top:auto!important}.combat-mode-switch button:disabled{opacity:.42!important;cursor:not-allowed}.fight-actions{grid-template-columns:1fr 1fr 1fr!important}.fight-actions button{white-space:nowrap!important;font-size:9px!important}
  .oracle-blessing{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin:7px 12px 12px!important;padding:10px!important}.oracle-blessing button{width:100%!important;min-height:40px!important;font-size:9px!important}.oracle-copy b{font-size:11px!important}.oracle-copy span{font-size:8px!important}
  .game-modal-card{padding:14px!important}.loadout-preview-grid{grid-template-columns:repeat(3,1fr);gap:4px}.loadout-preview-slot{grid-template-columns:26px 1fr;min-height:52px;padding:5px}.loadout-preview-slot i{width:25px;font-size:18px}.loadout-preview-slot b{font-size:8px}.loadout-preview-slot small{font-size:6px}.game-modal-actions button{font-size:9px!important}
}

/* v0.11.4.1 — mobile inventory interaction hotfix */
@media(max-width:650px){
  .inventory-panel .inventory-layout{display:block!important;min-height:0!important;height:auto!important;overflow:visible!important}
  .inventory-panel #inventory.inventory{display:grid!important;visibility:visible!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:2px!important;padding:4px!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .inventory-panel #inventory .inv-slot{display:grid!important;place-items:center!important;width:100%!important;aspect-ratio:1/1!important;min-height:0!important;pointer-events:auto!important}
  .inventory-panel #inventory .empty-slot{color:#554a3c!important;background:#080b0e!important}
}

/* v0.11.5 — feedback stabilization pass */
.compact-wallet{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto}
.compact-wallet>div{display:flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid #5b4328;background:#090c10}
.compact-wallet .currency-icon{display:inline-grid!important;width:18px;height:18px;font-size:10px}.compact-wallet b{font-size:11px;color:#e7c779}
.battle-level-badge{display:inline-flex!important;align-items:center;gap:4px;color:#d7ae62!important;letter-spacing:.7px}.battle-level-badge span{font-weight:900;font-size:12px}

@media(max-width:650px){
  /* Wallet stays between character identity and level medallion. */
  .player-chip{grid-template-columns:36px minmax(0,1fr) auto auto!important}.compact-wallet{position:static!important;display:flex!important;gap:3px!important}.compact-wallet>div{min-width:0!important;padding:2px 3px!important;border:0!important;background:transparent!important}.compact-wallet .currency-icon{display:inline-grid!important;width:14px!important;height:14px!important;font-size:8px!important}.compact-wallet b{font-size:8px!important}.hud-currencies.compact-wallet{display:flex!important}
  /* Do not synthesize duplicate attribute labels. */
  .profile-grid.profile-view-stats .loadout-panel .stats span{font-size:10px!important}.profile-grid.profile-view-stats .loadout-panel .stats>div span:after{content:none!important}
  /* RPG equipment layout: compact side slots around the hero instead of a technical card list. */
  .loadout-stage{display:grid!important;grid-template-columns:58px minmax(0,1fr) 58px!important;grid-template-rows:repeat(4,70px) 52px!important;gap:5px!important;padding:8px!important;align-items:stretch}.loadout-stage::before{display:block!important;inset:8px 18%!important}.loadout-stage .character-display{grid-column:2!important;grid-row:1/5!important;order:initial!important;min-height:285px!important;height:auto!important}.loadout-stage .character-display>img{inset:0 0 28px!important;height:calc(100% - 28px)!important}.loadout-stage .equipment{display:contents!important}.loadout-stage .eq{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1fr!important;place-items:center!important;padding:3px!important;min-height:0!important;overflow:hidden}.loadout-stage .eq .slot-glyph{grid-row:auto!important;width:40px!important;height:40px!important;font-size:22px!important}.loadout-stage .eq small,.loadout-stage .eq b,.loadout-stage .eq span{display:none!important}.loadout-stage .eq:nth-child(1){grid-column:1!important;grid-row:3!important}.loadout-stage .eq:nth-child(2){grid-column:1!important;grid-row:2!important}.loadout-stage .eq:nth-child(3){grid-column:1!important;grid-row:1!important}.loadout-stage .eq:nth-child(4){grid-column:3!important;grid-row:2!important}.loadout-stage .eq:nth-child(5){grid-column:3!important;grid-row:4!important}.loadout-stage .eq:nth-child(6){grid-column:1!important;grid-row:4!important}.loadout-stage .eq:nth-child(7){grid-column:3!important;grid-row:1!important}.loadout-stage .eq:nth-child(8){grid-column:3!important;grid-row:3!important}.loadout-stage .eq:nth-child(9){grid-column:2!important;grid-row:5!important;width:58px!important;justify-self:center!important}.loadout-stage .character-plinth{bottom:1px!important}
  /* Tighter character selector cards. */
  .character-slot,.empty-slot{padding-bottom:48px!important}.character-slot p{margin-bottom:8px!important;min-height:0!important}.character-slot>button{bottom:7px!important}.character-slot.last-used{min-height:250px!important}.character-slot.last-used .slot-portrait{height:155px!important}.character-slot:not(.last-used),.empty-slot:not(.last-used){min-height:205px!important}.slot-portrait{height:110px!important}
}

/* Arena v1 */
.arena-summary-v1{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:14px}.arena-summary-v1>div{display:grid;gap:3px;min-height:82px;padding:12px;border:1px solid #5b432c;background:linear-gradient(180deg,#15100c,#090c10);align-content:center}.arena-summary-v1 small{font-size:8px;letter-spacing:.08em;color:#8f8373}.arena-summary-v1 b{font:700 23px/1 Georgia,serif;color:#e4b85c}.arena-summary-v1 span{font-size:9px;color:#8d9294}.arena-toolbar-v1{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin:0 14px 12px;padding:12px;border:1px solid #5a4029;background:#100d0a}.arena-toolbar-v1>div{display:grid;gap:4px}.arena-toolbar-v1>div>b{font:700 16px Georgia,serif;color:#dbad59}.arena-toolbar-v1>div>small{max-width:760px;color:#83898b}.arena-opponents-v1{gap:9px}.arena-opponent-v1{grid-template-columns:54px minmax(160px,1fr) 160px 150px 110px!important}.arena-opponent-main{display:grid;gap:2px}.arena-opponent-main>small{font-size:8px;text-transform:uppercase;color:#c59b55}.arena-opponent-main>b{font:700 17px Georgia,serif;color:#e5d0ae}.arena-opponent-main>span{font-size:10px;color:#91979a}.arena-opponent-stats{display:grid;grid-template-columns:1fr 1fr;gap:5px}.arena-opponent-stats span{display:grid;padding:6px;border:1px solid #3a3026;background:#0c0f12}.arena-opponent-stats small{font-size:7px;color:#757b7e}.arena-opponent-stats b{font-size:12px;color:#d8b36a}.arena-risk{display:grid;gap:3px;font-size:9px}.arena-win{color:#69b87c}.arena-loss{color:#cf7770}.arena-opponent-v1.difficulty-risky{border-color:#8a4c34}.arena-opponent-v1.difficulty-hard{border-color:#735138}.arena-opponent-v1.difficulty-easy{border-color:#445e48}.arena-footnote-v1{margin:0 14px 14px;padding:10px;border:1px dashed #514638;color:#767c80;text-align:center;font-size:9px}.arena-ranking-head{display:grid;gap:4px;margin:0 14px 8px;padding:10px;border-bottom:1px solid #5c452e}.arena-ranking-head>b{color:#dcb05b}.arena-ranking-head>small{color:#7f8588}.arena-ranking-list{display:grid;gap:4px;padding:0 14px 14px;max-height:520px;overflow:auto}.arena-ranking-row{display:grid;grid-template-columns:44px 34px 1fr auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid #332b24;background:#090c10}.arena-ranking-row.is-player{position:sticky;top:0;z-index:2;border-color:#c78b38;background:linear-gradient(90deg,#36220f,#0d1013)}.arena-ranking-row>strong{color:#d5a654}.arena-ranking-row>span{font-size:20px;color:#a87b3d}.arena-ranking-row div{display:grid}.arena-ranking-row div>b{color:#d9c8aa}.arena-ranking-row div>small{font-size:8px;color:#7e8588}.arena-ranking-row>em{font-style:normal;color:#e1b761}.arena-history{display:grid;gap:6px;padding:14px}.arena-history article{display:grid;grid-template-columns:90px 1fr 70px 130px;gap:8px;align-items:center;padding:10px;border:1px solid #3d3329;background:#090c10}.arena-history article.win{border-left:3px solid #5f9b6a}.arena-history article.loss{border-left:3px solid #a85a54}.arena-history article>span{font-size:9px}.arena-history .win>span,.arena-history .win>strong{color:#6fbd7d}.arena-history .loss>span,.arena-history .loss>strong{color:#cf746e}.arena-history div{display:grid}.arena-history small{font-size:8px;color:#808689}.arena-history em{font-style:normal;color:#b99a62}.arena-season-card{display:grid;gap:14px;padding:18px}.arena-season-card>div:first-child{display:grid;gap:4px;padding:16px;border:1px solid #60462e;background:#100d0a}.arena-season-card>div:first-child small{color:#957445}.arena-season-card>div:first-child b{font:700 25px Georgia,serif;color:#e4b45c}.arena-season-card>div:first-child span{color:#8b9193}.arena-season-prizes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.arena-season-prizes article{display:grid;place-items:center;gap:6px;min-height:110px;border:1px solid #6a4d30;background:#0a0d11}.arena-season-prizes strong{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid #a87935;color:#e7b75f}.arena-season-prizes b{font-size:20px;color:#e4c27c}.arena-rules-v1,.arena-last-season{display:grid;gap:5px;margin:0 18px 16px;padding:13px;border:1px solid #493a2d;background:#0b0e11}.arena-rules-v1 b,.arena-last-season small{color:#c79850}.arena-rules-v1 span,.arena-last-season span{color:#858b8d}.arena-result{display:grid;gap:8px;place-items:center;padding:18px;border:1px solid #58432e;background:#0c0f12}.arena-result>b{font:700 28px Georgia,serif}.arena-result.win>b{color:#74c383}.arena-result.loss>b{color:#d06f68}.arena-result>span{color:#dfbb71}.arena-result>small{color:#8a9092;text-align:center}
@media(max-width:800px){.arena-summary-v1{grid-template-columns:1fr 1fr;padding:10px}.arena-summary-v1>div{min-height:70px;padding:9px}.arena-summary-v1 b{font-size:19px}.arena-toolbar-v1{grid-template-columns:1fr 1fr;margin:0 10px 10px}.arena-toolbar-v1>div{grid-column:1/-1}.arena-toolbar-v1 button{min-height:42px;padding:6px 8px;font-size:10px}.arena-opponents-v1{padding:0 10px 10px!important}.arena-opponent-v1{grid-template-columns:44px 1fr!important;padding:9px!important}.arena-opponent-v1 .arena-avatar{width:42px;height:42px}.arena-opponent-stats,.arena-risk,.arena-opponent-v1>button{grid-column:2}.arena-opponent-stats{grid-template-columns:1fr 1fr}.arena-risk{grid-template-columns:1fr 1fr}.arena-opponent-v1>button{width:100%;min-height:40px}.arena-ranking-list{padding:0 10px 10px;max-height:460px}.arena-ranking-row{grid-template-columns:34px 28px 1fr}.arena-ranking-row>em{grid-column:3}.arena-history{padding:10px}.arena-history article{grid-template-columns:72px 1fr 52px}.arena-history article>em{grid-column:2/-1}.arena-season-card{padding:10px}.arena-season-prizes article{min-height:90px}.arena-season-prizes b{font-size:16px}.arena-rules-v1,.arena-last-season{margin:0 10px 10px}.arena-footnote-v1{margin:0 10px 10px}}

/* v0.12.1 Arena Fight + inventory discard */
.danger-action{border-color:#7f3b35!important;color:#e49a91!important;background:linear-gradient(#351715,#160d0d)!important}.discard-amount-label{display:grid;gap:7px;margin:12px 0;color:#c9a86d}.discard-amount-label input{min-height:44px;padding:9px;border:1px solid #715033;background:#0a0d10;color:#eee;font-size:16px}.arena-avatar{cursor:pointer}.arena-fight-v11{display:grid;grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr);gap:12px;align-items:stretch;padding:14px}.arena-fighter{display:grid;gap:8px;align-content:start;justify-items:center;min-height:310px;padding:18px;border:1px solid #5d452f;background:radial-gradient(circle at 50% 15%,#241b12,#090c10 65%)}.arena-fighter.enemy{border-color:#684038}.arena-fighter-avatar{display:grid;place-items:center;width:112px;height:112px;border-radius:10px;border:1px solid #9b6c32;background:linear-gradient(145deg,#2b1c10,#0b0e11);color:#e6b85f;font-size:50px;cursor:pointer}.arena-fighter>small{color:#8f9496;text-align:center}.arena-fighter>b{font:700 23px Georgia,serif;color:#ead7b5}.arena-vs{display:grid;place-items:center;color:#b9823e;font:700 25px Georgia,serif}.arena-bar{position:relative;width:100%;height:24px;overflow:hidden;border:1px solid #46382c;background:#080a0c}.arena-bar i{display:block;height:100%;transition:width .25s linear}.arena-bar.hp i{background:linear-gradient(90deg,#6f1f1d,#c84a3f)}.arena-bar.mp i{background:linear-gradient(90deg,#1d3c6d,#397fc5)}.arena-bar span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:10px;text-shadow:0 1px 2px #000}.arena-fight-actions{display:flex;justify-content:center;gap:9px;padding:0 14px 10px}.arena-fight-actions button{min-width:150px}.arena-fight-actions button small{display:block}.arena-pvp-note{margin:0 14px 10px;padding:9px;border:1px dashed #594635;color:#9c9488;text-align:center}.arena-combat-log{display:grid;gap:4px;margin:0 14px 14px;padding:10px;border:1px solid #3e3329;background:#090c10}.arena-combat-log span{color:#aeb2b3;font-size:9px}.arena-eq-preview{display:grid;gap:10px}.arena-eq-preview>small{color:#c69b53}.arena-eq-preview>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.arena-eq-preview span{display:grid;place-items:center;gap:4px;min-height:72px;border:1px solid #5c442e;background:#0a0d10}.arena-eq-preview i{font-style:normal;font-size:26px;color:#d8ad5d}.arena-eq-preview em{font-style:normal;font-size:8px;color:#81878a}.arena-eq-preview p{margin:0;color:#8b9092}
@media(max-width:800px){.arena-fight-v11{grid-template-columns:1fr 34px 1fr;gap:5px;padding:9px}.arena-fighter{min-height:255px;padding:9px}.arena-fighter-avatar{width:78px;height:78px;font-size:36px}.arena-fighter>b{font-size:17px}.arena-vs{font-size:16px}.arena-bar{height:22px}.arena-fight-actions{display:grid;grid-template-columns:1fr 1fr;padding:0 9px 8px}.arena-fight-actions button{min-width:0}.arena-pvp-note,.arena-combat-log{margin-left:9px;margin-right:9px}}

/* v0.12.2 Arena stabilization */
.arena-tabs[hidden]{display:none!important}
.arena-tactics{display:grid;grid-template-columns:1.2fr .8fr .9fr;gap:10px;padding:14px}
.arena-tactics-block{display:grid;align-content:start;gap:9px;padding:13px;border:1px solid #59422d;background:linear-gradient(180deg,#120f0c,#090c10)}
.arena-tactics-block>b{font:700 16px Georgia,serif;color:#ddb15e}.arena-tactics-block>small{color:#858b8e}
.arena-tactics-block>label{display:flex;gap:9px;align-items:center;padding:9px;border:1px solid #332b24;background:#0b0e11}.arena-tactics-block label span{display:grid;gap:2px}.arena-tactics-block label small{color:#858b8e}.arena-tactics-block select{margin-left:auto;min-height:36px}
.arena-set-choice{display:grid;grid-template-columns:1fr 1fr;gap:7px}.arena-set-choice button.is-active{border-color:#d29a3e;color:#ffd679;background:linear-gradient(#523617,#20160d)}
.arena-fighter{position:relative}.arena-float-hit{position:absolute;top:82px;left:50%;z-index:3;transform:translateX(-50%);font:800 28px Georgia,serif;color:#ef7770;text-shadow:0 2px 4px #000;pointer-events:none;animation:arenaHitFloat .65s ease-out both}
@keyframes arenaHitFloat{from{opacity:1;transform:translate(-50%,10px) scale(.9)}to{opacity:0;transform:translate(-50%,-24px) scale(1.08)}}
@media(max-width:800px){.arena-tactics{grid-template-columns:1fr;padding:9px}.arena-float-hit{top:55px;font-size:22px}}

/* v0.12.3 Arena lifecycle + class avatar pass */
.arena-avatar,.arena-fighter-avatar{overflow:hidden;padding:0}
.arena-avatar img,.arena-fighter-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.arena-avatar img{border-radius:2px}
.arena-fighter-avatar img{border-radius:9px}

/* v0.12.4 — Arena tactics modal */
.arena-tabs .arena-tactics-button{margin-left:auto;border-color:#9b6c32;color:#ffd679;background:linear-gradient(#3b2815,#17100b);box-shadow:inset 0 0 0 1px #2b1b0d}
.arena-tabs .arena-tactics-button:hover{border-color:#d29a3e}
.game-modal-body .arena-tactics-modal{padding:0;grid-template-columns:1.2fr .8fr .9fr;min-width:min(760px,80vw)}
@media(max-width:800px){.arena-tabs .arena-tactics-button{margin-left:0}.game-modal-body .arena-tactics-modal{grid-template-columns:1fr;min-width:0}}

/* v0.12.5 — Arena visual master pass */
.hud-power-badge{display:grid;align-content:center;justify-items:center;min-width:86px;height:52px;padding:3px 12px;border:1px solid #6d4b29;clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%);background:linear-gradient(180deg,#17130f,#090b0e);box-shadow:inset 0 0 0 1px #24170d}
.hud-power-badge small{font-size:7px;letter-spacing:1px;color:#a78d69}.hud-power-badge b{font:700 17px Georgia,serif;color:#e7bf73}
body[data-active-screen="arena"] #gameMain{background:radial-gradient(circle at 50% 0,#17130e 0,#090c10 38%,#07090c 100%)}
.arena-heading-premium{height:auto;min-height:86px;display:grid;grid-template-columns:72px 1fr minmax(250px,330px);gap:14px;align-items:center;padding:12px 18px!important;border:1px solid #5b4026;background:linear-gradient(180deg,#15110d,#090c10)!important}
.arena-heading-icon{font-size:48px;color:#e3aa54;text-align:center;text-shadow:0 0 18px #b56724}.arena-heading-premium h1{font-size:38px!important;color:#f0d29b}.arena-heading-premium small{color:#99918a;font-size:12px}
.arena-tactics-hero{display:grid!important;grid-template-columns:44px 1fr 18px;grid-template-rows:auto auto;align-items:center;text-align:left;padding:10px 12px!important;border:1px solid #70502d!important;background:linear-gradient(180deg,#201810,#0d0f12)!important}.arena-tactics-hero>span{grid-row:1/3;font-size:30px;color:#e9b45e}.arena-tactics-hero>b{color:#e7c58c;font:700 16px Georgia,serif}.arena-tactics-hero>small{font-size:9px;color:#8d8983}.arena-tactics-hero>em{grid-column:3;grid-row:1/3;font:normal 28px Georgia;color:#d9a65a}
.arena-panel-premium{border-color:#4e3824;background:#080b0e}.arena-panel-premium .arena-tabs{justify-content:center;border-bottom-color:#5a4028}.arena-panel-premium .arena-tabs button{min-width:105px}
.arena-action-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px}.arena-action-card{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;min-height:84px;padding:12px 14px;border:1px solid #5b4028;background:linear-gradient(180deg,#13110e,#090c10)}.arena-action-icon{font-size:32px;color:#e3a957}.arena-action-card>div{display:grid}.arena-action-card small{color:#9b938b;letter-spacing:1px}.arena-action-card b{font:700 24px Georgia,serif;color:#e9bd72}.arena-action-card em{font-style:normal;font-size:9px;color:#85898a}.arena-action-card button{min-width:130px;min-height:46px;border-color:#835c30;background:linear-gradient(#332313,#17120d);color:#e9c17a}
.arena-match-head{display:grid;gap:4px;margin:0 14px 8px;padding:11px 14px;border:1px solid #503923;background:#0c0d0e}.arena-match-head b{font:700 22px Georgia,serif;color:#ebc57f}.arena-match-head small{color:#85898b}
.arena-opponents-v1{display:grid!important;gap:10px!important;padding:0 14px 14px!important}.arena-opponent-v1{display:grid!important;grid-template-columns:190px minmax(260px,1fr) 190px!important;gap:18px!important;align-items:center!important;min-height:150px;padding:0 14px 0 0!important;overflow:hidden;border:1px solid #6a4b2d!important;background:linear-gradient(90deg,#15100d 0,#0a0d11 36%,#090c10 100%)!important;box-shadow:inset 0 0 28px #0008}
.arena-opponent-v1 .arena-avatar{width:190px!important;height:150px!important;border:0!important;border-right:1px solid #75502c!important;border-radius:0!important;background:#120e0b!important}.arena-opponent-v1 .arena-avatar img{object-fit:cover!important;object-position:center 16%!important;transform:scale(1.12)}
.arena-opponent-main{display:grid;gap:4px!important;align-content:center}.arena-opponent-main>small{font-size:10px!important;font-weight:800;letter-spacing:.6px;color:#d7a14d!important}.arena-opponent-main>b{font:700 27px Georgia,serif!important;color:#f0d6a8!important}.arena-opponent-main>span{font-size:12px!important;color:#aaa29a!important}.arena-inline-stats{display:flex;gap:30px;margin-top:5px}.arena-inline-stats span{font-size:10px;color:#8e9294}.arena-inline-stats b{margin-left:7px;font:700 15px Georgia,serif;color:#e2bb73}.arena-risk{display:flex!important;gap:28px!important;margin-top:8px;font-size:11px!important}.arena-fight-cta{min-height:62px!important;font:700 21px Georgia,serif!important;border-color:#a17034!important;background:linear-gradient(#70471e,#28190e)!important;color:#f2d59b!important;box-shadow:inset 0 0 0 2px #2b1b0e,0 0 10px #8e531633}.arena-fight-cta span{margin-right:8px}.arena-opponent-v1.difficulty-easy{border-color:#536a50!important}.arena-opponent-v1.difficulty-hard,.arena-opponent-v1.difficulty-risky{border-color:#744633!important}
@media(max-width:800px){.top-hud{grid-template-columns:1fr auto!important}.player-chip{grid-template-columns:44px minmax(0,1fr) auto auto auto!important}.avatar-frame{width:44px!important;height:44px!important}.hud-power-badge{min-width:62px;height:40px;padding:2px 7px}.hud-power-badge b{font-size:12px}.hud-power-badge small{font-size:5px}.arena-heading-premium{grid-template-columns:46px 1fr!important;min-height:72px;padding:9px 10px!important}.arena-heading-icon{font-size:34px}.arena-heading-premium h1{font-size:30px!important}.arena-heading-premium>div>small{font-size:9px}.arena-tactics-hero{grid-column:1/-1;min-width:0}.arena-panel-premium .arena-tabs{justify-content:flex-start}.arena-action-summary{grid-template-columns:1fr;padding:10px}.arena-action-card{grid-template-columns:38px 1fr auto;min-height:70px;padding:9px}.arena-action-card button{min-width:105px;font-size:9px}.arena-match-head{margin:0 10px 8px}.arena-match-head b{font-size:19px}.arena-opponents-v1{padding:0 10px 10px!important}.arena-opponent-v1{grid-template-columns:112px minmax(0,1fr) 92px!important;gap:10px!important;min-height:126px!important;padding-right:8px!important}.arena-opponent-v1 .arena-avatar{grid-column:1!important;width:112px!important;height:126px!important}.arena-opponent-main{grid-column:2!important}.arena-opponent-main>b{font-size:21px!important}.arena-opponent-main>span{font-size:10px!important}.arena-inline-stats{display:grid;grid-template-columns:1fr;gap:1px;margin-top:3px}.arena-inline-stats b{font-size:12px}.arena-risk{display:grid!important;grid-template-columns:1fr!important;gap:1px!important;margin-top:4px;font-size:8px!important}.arena-fight-cta{grid-column:3!important;grid-row:1!important;width:100%!important;min-height:58px!important;padding:5px!important;font-size:14px!important}.arena-fight-cta span{display:block;margin:0;font-size:20px}}
@media(max-width:430px){.arena-opponent-v1{grid-template-columns:98px minmax(0,1fr) 76px!important;gap:7px!important;min-height:118px!important}.arena-opponent-v1 .arena-avatar{width:98px!important;height:118px!important}.arena-opponent-main>b{font-size:18px!important}.arena-fight-cta{font-size:12px!important}.arena-action-card{grid-template-columns:32px 1fr auto}.arena-action-icon{font-size:24px}}

/* v0.12.7 — Arena mobile-first reference rebuild (clean override over stable v0.12.5) */
body[data-active-screen="arena"] .screen-view[data-screen-panel="arena"]{overflow-x:hidden}
body[data-active-screen="arena"] .arena-heading-premium{box-sizing:border-box;grid-template-columns:64px minmax(0,1fr) minmax(280px,34%);gap:12px;min-height:96px;padding:14px 18px!important;background:linear-gradient(180deg,#12100e 0,#090c10 100%)!important;border-color:#543a25!important}
body[data-active-screen="arena"] .arena-heading-icon{font-size:50px;line-height:1;color:#e8ad58}
body[data-active-screen="arena"] .arena-heading-premium>div{min-width:0}
body[data-active-screen="arena"] .arena-heading-premium h1{margin:0;font:700 42px/1 Georgia,serif!important;white-space:nowrap;color:#efd19a!important}
body[data-active-screen="arena"] .arena-heading-premium>div>small{display:block;margin-top:5px;font-size:12px;line-height:1.2;letter-spacing:.02em;color:#9f9992}
body[data-active-screen="arena"] .arena-tactics-hero{box-sizing:border-box;min-width:0;width:100%;height:70px;grid-template-columns:42px minmax(0,1fr) 16px;column-gap:8px;padding:9px 12px!important}
body[data-active-screen="arena"] .arena-tactics-hero>b{font-size:18px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-active-screen="arena"] .arena-tactics-hero>small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-active-screen="arena"] .arena-panel-premium{overflow:hidden}
body[data-active-screen="arena"] .arena-panel-premium .arena-tabs{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;justify-content:flex-start;padding:0;border-bottom:1px solid #4d3725}
body[data-active-screen="arena"] .arena-panel-premium .arena-tabs::-webkit-scrollbar{display:none}
body[data-active-screen="arena"] .arena-panel-premium .arena-tabs button{flex:1 0 auto;min-width:0;padding:7px 14px;font-size:9px;letter-spacing:.04em}
body[data-active-screen="arena"] .arena-action-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 12px 12px}
body[data-active-screen="arena"] .arena-action-card{box-sizing:border-box;grid-template-columns:44px minmax(0,1fr) minmax(108px,34%);gap:10px;min-width:0;min-height:86px;padding:10px 12px}
body[data-active-screen="arena"] .arena-action-icon{font-size:32px}
body[data-active-screen="arena"] .arena-action-card>div{min-width:0}
body[data-active-screen="arena"] .arena-action-card small{text-transform:none;font-size:11px;line-height:1.1;letter-spacing:0;color:#aaa29a}
body[data-active-screen="arena"] .arena-action-card b{margin-top:3px;font-size:25px;line-height:1;color:#edc177;white-space:nowrap}
body[data-active-screen="arena"] .arena-action-card em{margin-top:4px;font-size:9px;line-height:1.2;white-space:normal;color:#878b8d}
body[data-active-screen="arena"] .arena-action-card button{box-sizing:border-box;min-width:0;width:100%;min-height:54px;padding:6px 8px;font:700 13px/1.05 Georgia,serif;color:#edca88}
body[data-active-screen="arena"] .arena-opponents-v1{gap:8px!important;padding:0 12px 14px!important}
body[data-active-screen="arena"] .arena-opponent-v1{box-sizing:border-box;display:grid!important;grid-template-columns:31% 45% 24%!important;gap:0!important;min-width:0;width:100%;min-height:142px!important;padding:0!important;overflow:hidden;border:1px solid #6c4b2d!important;background:linear-gradient(90deg,#15100d 0,#0a0d11 42%,#080b0e 100%)!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{box-sizing:border-box;grid-column:1!important;grid-row:1!important;width:100%!important;height:142px!important;min-width:0;border:0!important;border-right:1px solid #6e4b2c!important;background:#100d0b!important;overflow:hidden}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{display:block;width:100%;height:100%;object-fit:cover!important;object-position:center 18%!important;transform:none!important}
body[data-active-screen="arena"] .arena-opponent-main{box-sizing:border-box;grid-column:2!important;grid-row:1!important;min-width:0;height:142px;padding:10px 8px;align-content:center;gap:2px!important;overflow:hidden}
body[data-active-screen="arena"] .arena-opponent-main>small{font-size:10px!important;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#dea94e!important}
body[data-active-screen="arena"] .arena-opponent-main>b{font:700 27px/.98 Georgia,serif!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f1d6a4!important}
body[data-active-screen="arena"] .arena-opponent-main>span{font-size:11px!important;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a7a19a!important}
body[data-active-screen="arena"] .arena-inline-stats{display:flex!important;gap:18px!important;margin-top:6px;min-width:0}
body[data-active-screen="arena"] .arena-inline-stats span{display:flex;align-items:baseline;gap:5px;min-width:0;font-size:9px;white-space:nowrap;color:#929698}
body[data-active-screen="arena"] .arena-inline-stats b{margin:0!important;font:700 15px/1 Georgia,serif!important;color:#e5bd72!important}
body[data-active-screen="arena"] .arena-risk{display:flex!important;flex-wrap:nowrap;gap:13px!important;margin-top:8px;min-width:0;font-size:9px!important;line-height:1;white-space:nowrap}
body[data-active-screen="arena"] .arena-risk span{overflow:hidden;text-overflow:ellipsis}
body[data-active-screen="arena"] .arena-fight-cta{box-sizing:border-box;grid-column:3!important;grid-row:1!important;align-self:center;justify-self:stretch;width:auto!important;min-width:0;min-height:68px!important;margin:0 10px 0 2px;padding:7px 5px!important;font:700 19px/1 Georgia,serif!important;white-space:nowrap;overflow:hidden}
body[data-active-screen="arena"] .arena-fight-cta span{display:inline!important;margin-right:5px!important;font-size:20px!important}
body[data-active-screen="arena"] .arena-footnote-v1{display:none}

@media(max-width:800px){
  body[data-active-screen="arena"] .arena-heading-premium{grid-template-columns:38px minmax(0,1fr) minmax(145px,42%);gap:5px;min-height:76px;padding:8px 8px!important}
  body[data-active-screen="arena"] .arena-heading-icon{font-size:34px}
  body[data-active-screen="arena"] .arena-heading-premium h1{font-size:29px!important}
  body[data-active-screen="arena"] .arena-heading-premium>div>small{margin-top:4px;font-size:8px;line-height:1.15;white-space:normal}
  body[data-active-screen="arena"] .arena-tactics-hero{grid-column:3!important;grid-row:1!important;height:60px;grid-template-columns:32px minmax(0,1fr) 12px;column-gap:5px;padding:6px 7px!important}
  body[data-active-screen="arena"] .arena-tactics-hero>span{font-size:25px}
  body[data-active-screen="arena"] .arena-tactics-hero>b{font-size:13px}
  body[data-active-screen="arena"] .arena-tactics-hero>small{font-size:7px}
  body[data-active-screen="arena"] .arena-tactics-hero>em{font-size:20px}
  body[data-active-screen="arena"] .arena-panel-premium .arena-tabs button{padding:6px 10px;font-size:8px}
  body[data-active-screen="arena"] .arena-action-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px 7px 8px}
  body[data-active-screen="arena"] .arena-action-card{grid-template-columns:28px minmax(0,1fr) 72px;gap:5px;min-height:72px;padding:7px 6px}
  body[data-active-screen="arena"] .arena-action-icon{font-size:23px}
  body[data-active-screen="arena"] .arena-action-card small{font-size:8px}
  body[data-active-screen="arena"] .arena-action-card b{font-size:18px}
  body[data-active-screen="arena"] .arena-action-card em{font-size:7px}
  body[data-active-screen="arena"] .arena-action-card button{min-height:48px;padding:4px;font-size:9px}
  body[data-active-screen="arena"] .arena-opponents-v1{gap:6px!important;padding:0 7px 10px!important}
  body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:31% 45% 24%!important;min-height:116px!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{width:100%!important;height:116px!important}
  body[data-active-screen="arena"] .arena-opponent-main{height:116px;padding:6px 6px;gap:1px!important}
  body[data-active-screen="arena"] .arena-opponent-main>small{font-size:8px!important}
  body[data-active-screen="arena"] .arena-opponent-main>b{font-size:20px!important}
  body[data-active-screen="arena"] .arena-opponent-main>span{font-size:8.5px!important}
  body[data-active-screen="arena"] .arena-inline-stats{gap:9px!important;margin-top:4px}
  body[data-active-screen="arena"] .arena-inline-stats span{gap:3px;font-size:7px}
  body[data-active-screen="arena"] .arena-inline-stats b{font-size:12px!important}
  body[data-active-screen="arena"] .arena-risk{gap:7px!important;margin-top:5px;font-size:7px!important}
  body[data-active-screen="arena"] .arena-fight-cta{min-height:56px!important;margin:0 6px 0 1px;padding:5px 2px!important;font-size:12px!important}
  body[data-active-screen="arena"] .arena-fight-cta span{display:block!important;margin:0 0 3px!important;font-size:19px!important}
}

@media(max-width:390px){
  body[data-active-screen="arena"] .arena-heading-premium{grid-template-columns:34px minmax(0,1fr) 142px;gap:4px;padding-left:6px!important;padding-right:6px!important}
  body[data-active-screen="arena"] .arena-heading-premium h1{font-size:27px!important}
  body[data-active-screen="arena"] .arena-tactics-hero{height:58px;grid-template-columns:28px minmax(0,1fr) 10px;padding:5px!important}
  body[data-active-screen="arena"] .arena-tactics-hero>b{font-size:12px}
  body[data-active-screen="arena"] .arena-action-card{grid-template-columns:25px minmax(0,1fr) 67px;gap:4px;padding:6px 5px}
  body[data-active-screen="arena"] .arena-action-card b{font-size:17px}
  body[data-active-screen="arena"] .arena-action-card button{font-size:8.5px}
  body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:31% 45% 24%!important;min-height:112px!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{height:112px!important}
  body[data-active-screen="arena"] .arena-opponent-main{height:112px;padding:5px}
  body[data-active-screen="arena"] .arena-opponent-main>b{font-size:19px!important}
  body[data-active-screen="arena"] .arena-inline-stats{gap:7px!important}
  body[data-active-screen="arena"] .arena-risk{gap:5px!important;font-size:6.6px!important}
  body[data-active-screen="arena"] .arena-fight-cta{margin-right:5px;font-size:11px!important}
}

/* v0.12.8 feedback pass */
.loadout-skill-order-list{display:grid;gap:6px;margin-top:9px}.loadout-skill-order{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:7px;align-items:center;padding:7px;border:1px solid #3f3428;background:#090c10}.loadout-skill-order.active{border-color:#76542f}.loadout-skill-order>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #6a4b2e;color:#e2b769}.loadout-skill-order>b{font-size:10px;color:#d9cfbf}.loadout-skill-order>div{display:flex;gap:4px}.loadout-skill-order button{min-height:30px!important;padding:4px 7px!important;font-size:8px!important}.loadout-preview-skills>small{display:block;margin-top:4px;color:#858b8e}
@media(max-width:800px){
  .compact-wallet{display:grid!important;grid-template-columns:1fr!important;gap:0!important;align-content:center!important}.compact-wallet>div{justify-content:flex-start!important;padding:0 2px!important;line-height:1.05!important}.compact-wallet b{font-size:8px!important;white-space:nowrap!important}
  .character-display .character-plinth{display:none!important}
  .combat-core{height:auto!important;min-height:0!important}.combat-skill-box{min-height:0!important;height:auto!important}.combat-skill-box[open]{padding-bottom:0!important}.combat-skill-box #combatSkills{min-height:0!important;height:auto!important;padding-bottom:4px!important}
  body[data-active-screen="arena"] .arena-heading-premium{grid-template-columns:30px minmax(0,1fr) minmax(120px,36%)!important;gap:5px!important;min-height:66px!important;padding:6px 7px!important}
  body[data-active-screen="arena"] .arena-heading-icon{font-size:28px!important}
  body[data-active-screen="arena"] .arena-heading-premium h1{font-size:25px!important}
  body[data-active-screen="arena"] .arena-heading-premium>div>small{font-size:7px!important;line-height:1.05!important;max-width:170px}
  body[data-active-screen="arena"] .arena-tactics-hero{height:50px!important;grid-template-columns:24px minmax(0,1fr) 9px!important;padding:4px 5px!important;column-gap:4px!important}
  body[data-active-screen="arena"] .arena-tactics-hero>span{font-size:20px!important}body[data-active-screen="arena"] .arena-tactics-hero>b{font-size:10px!important}body[data-active-screen="arena"] .arena-tactics-hero>small{font-size:6px!important}body[data-active-screen="arena"] .arena-tactics-hero>em{font-size:15px!important}
  body[data-active-screen="arena"] .arena-action-summary{gap:5px!important;padding:6px!important}
  body[data-active-screen="arena"] .arena-action-card{grid-template-columns:22px minmax(0,1fr) 62px!important;gap:4px!important;min-height:64px!important;padding:5px!important}body[data-active-screen="arena"] .arena-action-icon{font-size:19px!important}body[data-active-screen="arena"] .arena-action-card small{font-size:7px!important}body[data-active-screen="arena"] .arena-action-card b{font-size:16px!important}body[data-active-screen="arena"] .arena-action-card em{font-size:6px!important}body[data-active-screen="arena"] .arena-action-card button{min-height:42px!important;font-size:8px!important;padding:3px!important}
  body[data-active-screen="arena"] .arena-opponents-v1{gap:5px!important;padding:0 6px 9px!important}
  body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:29% 47% 24%!important;min-height:104px!important;height:104px!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{height:104px!important;padding:2px!important;background:radial-gradient(circle at 50% 55%,#1a2025,#080b0e 70%)!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{object-fit:contain!important;object-position:center bottom!important;transform:scale(.88)!important;transform-origin:center bottom!important}
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{transform:scale(.74)!important}
  body[data-active-screen="arena"] .arena-opponent-main{height:104px!important;padding:5px 5px!important;align-content:center!important;gap:1px!important}
  body[data-active-screen="arena"] .arena-opponent-main>small{font-size:7px!important}body[data-active-screen="arena"] .arena-opponent-main>b{font-size:17px!important;line-height:1!important}body[data-active-screen="arena"] .arena-opponent-main>span{font-size:7.5px!important}
  body[data-active-screen="arena"] .arena-inline-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3px 6px!important;margin-top:3px!important}body[data-active-screen="arena"] .arena-inline-stats span{font-size:6.5px!important;gap:2px!important}body[data-active-screen="arena"] .arena-inline-stats b{font-size:10px!important}
  body[data-active-screen="arena"] .arena-risk{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px!important;margin-top:4px!important;font-size:6px!important}body[data-active-screen="arena"] .arena-risk span{white-space:nowrap!important}
  body[data-active-screen="arena"] .arena-fight-cta{min-height:50px!important;margin:0 5px 0 1px!important;padding:4px 2px!important;font-size:10px!important}body[data-active-screen="arena"] .arena-fight-cta span{font-size:16px!important;margin-bottom:1px!important}
}

/* v0.12.9 — arena readability, ranking avatars, compact HUD wallet */
.player-chip .compact-wallet{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;min-width:96px!important;max-width:132px!important;position:static!important}
.player-chip .compact-wallet>div{display:flex!important;align-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;line-height:1.05!important}
.player-chip .compact-wallet .currency-icon{display:inline-grid!important;flex:0 0 auto!important;width:16px!important;height:16px!important;font-size:9px!important}
.player-chip .compact-wallet b{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

body[data-active-screen="arena"] .arena-tactics-hero{grid-template-rows:1fr!important}
body[data-active-screen="arena"] .arena-tactics-hero>b{display:grid!important;grid-template-rows:auto auto!important;gap:0!important;align-content:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:.95!important}
body[data-active-screen="arena"] .arena-tactics-hero>b>span{display:block!important}
body[data-active-screen="arena"] .arena-tactics-hero>small{display:none!important}

body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:27% 50% 23%!important;gap:0!important;background:#080c10!important;border-color:#513d2b!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{position:relative!important;border-right:0!important;background:#071018!important;overflow:hidden!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{position:relative!important;z-index:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;transform:scale(.84)!important;transform-origin:center bottom!important;-webkit-mask-image:radial-gradient(ellipse 88% 96% at 50% 55%,#000 0 68%,transparent 100%)!important;mask-image:radial-gradient(ellipse 88% 96% at 50% 55%,#000 0 68%,transparent 100%)!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;box-shadow:inset -16px 0 18px #080c10,inset 0 9px 10px #080c1044,inset 0 -8px 10px #080c1066}
body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{transform:scale(.67)!important;object-position:center 56%!important}
body[data-active-screen="arena"] .arena-opponent-main{min-width:0!important;display:grid!important;grid-template-rows:auto auto auto auto!important;align-content:center!important;gap:3px!important;padding:6px 7px!important;overflow:hidden!important}
body[data-active-screen="arena"] .arena-opponent-main>small{display:none!important}
body[data-active-screen="arena"] .arena-opponent-main>b{margin:0!important;font:700 20px/1 Georgia,serif!important;color:#efd3a0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-active-screen="arena"] .arena-opponent-main>span{font-size:9px!important;line-height:1.1!important;color:#aaa39a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-active-screen="arena"] .arena-inline-stats{display:flex!important;align-items:baseline!important;justify-content:flex-start!important;gap:12px!important;margin:1px 0 0!important;min-width:0!important}
body[data-active-screen="arena"] .arena-inline-stats span{display:flex!important;align-items:baseline!important;gap:3px!important;min-width:0!important;font-size:7px!important;color:#8f9192!important;white-space:nowrap!important}
body[data-active-screen="arena"] .arena-inline-stats b{margin:0!important;font:700 11px/1 Georgia,serif!important;color:#dfb86e!important}
body[data-active-screen="arena"] .arena-risk{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;margin:2px 0 0!important;font-size:7px!important;line-height:1!important;min-width:0!important}
body[data-active-screen="arena"] .arena-risk span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-active-screen="arena"] .arena-fight-cta{align-self:center!important;width:calc(100% - 8px)!important;min-width:0!important;min-height:52px!important;margin:0 7px 0 1px!important;padding:4px 2px!important;font-size:11px!important;line-height:1!important}
body[data-active-screen="arena"] .arena-fight-cta span{display:block!important;margin:0 0 2px!important;font-size:17px!important}

.arena-summary-v1{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;padding:10px 12px!important}
.arena-summary-v1>div{min-height:62px!important;padding:8px 4px!important;border:1px solid #493726!important;border-right:0!important;text-align:center!important;place-content:center!important}
.arena-summary-v1>div:last-child{border-right:1px solid #493726!important}
.arena-summary-v1 small{font-size:7px!important;white-space:nowrap!important}
.arena-summary-v1 b{font-size:17px!important;white-space:nowrap!important}
.arena-ranking-row{grid-template-columns:38px 52px minmax(0,1fr) auto!important;gap:8px!important;min-height:64px!important;padding:6px 9px!important}
.arena-ranking-avatar{display:block!important;width:48px!important;height:48px!important;overflow:hidden!important;border:1px solid #66503a!important;background:#071018!important;box-shadow:inset 0 0 0 1px #0008!important}
.arena-ranking-avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;transform:scale(.82)!important;transform-origin:center bottom!important;-webkit-mask-image:radial-gradient(ellipse 90% 96% at 50% 56%,#000 0 70%,transparent 100%)!important;mask-image:radial-gradient(ellipse 90% 96% at 50% 56%,#000 0 70%,transparent 100%)!important}
.arena-ranking-avatar.rank-1{border-color:#e4b84f!important;box-shadow:0 0 8px #d99d3266,inset 0 0 0 1px #fff2a333!important}
.arena-ranking-avatar.rank-2{border-color:#bfc5cc!important;box-shadow:0 0 7px #c8d2dd55,inset 0 0 0 1px #ffffff22!important}
.arena-ranking-avatar.rank-3{border-color:#b27646!important;box-shadow:0 0 7px #b2764655,inset 0 0 0 1px #ffd6a522!important}
.arena-ranking-row>em{white-space:nowrap!important}

@media(max-width:650px){
  .player-chip{grid-template-columns:44px minmax(0,1fr) 88px 48px 66px!important;gap:5px!important}
  .player-chip .compact-wallet{min-width:0!important;max-width:88px!important;width:88px!important}
  .player-chip .compact-wallet .currency-icon{width:13px!important;height:13px!important;font-size:7px!important}
  .player-chip .compact-wallet b{font-size:9px!important}
  body[data-active-screen="arena"] .arena-tactics-hero{height:46px!important;grid-template-columns:22px minmax(0,1fr) 9px!important;padding:4px 5px!important}
  body[data-active-screen="arena"] .arena-tactics-hero>span{font-size:18px!important}
  body[data-active-screen="arena"] .arena-tactics-hero>b{font-size:10px!important;line-height:.93!important}
  body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:27% 50% 23%!important;min-height:104px!important;height:104px!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{height:104px!important;padding:0!important}
  body[data-active-screen="arena"] .arena-opponent-main{height:104px!important;padding:6px!important;gap:3px!important}
  body[data-active-screen="arena"] .arena-opponent-main>b{font-size:18px!important}
  body[data-active-screen="arena"] .arena-opponent-main>span{font-size:8px!important}
  body[data-active-screen="arena"] .arena-inline-stats{gap:10px!important}
  body[data-active-screen="arena"] .arena-inline-stats span{font-size:6.5px!important}
  body[data-active-screen="arena"] .arena-inline-stats b{font-size:10px!important}
  body[data-active-screen="arena"] .arena-risk{gap:8px!important;font-size:6.4px!important}
  body[data-active-screen="arena"] .arena-fight-cta{min-height:48px!important;margin-right:5px!important;font-size:10px!important}
  .arena-summary-v1{grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:7px!important}
  .arena-summary-v1>div{min-height:54px!important;padding:6px 2px!important}
  .arena-summary-v1 small{font-size:5.8px!important;letter-spacing:.03em!important}
  .arena-summary-v1 b{font-size:13px!important}
  .arena-ranking-list{padding:0 7px 10px!important}
  .arena-ranking-row{grid-template-columns:30px 44px minmax(0,1fr)!important;gap:6px!important;min-height:58px!important;padding:5px 6px!important}
  .arena-ranking-avatar{width:42px!important;height:42px!important}
  .arena-ranking-row>em{grid-column:3!important;font-size:10px!important;margin-top:-2px!important}
  .arena-ranking-row div>b{font-size:13px!important}
  .arena-ranking-row div>small{font-size:7px!important}
}

/* v0.13.0 — responsive pass + combat start lifecycle + transparent character art */
/* Character art is now real RGBA WebP; never paint a second rectangular avatar background. */
.avatar-frame,
.slot-portrait,
.character-display,
.battle-portrait,
.arena-avatar,
.arena-ranking-avatar,
.arena-fighter-avatar{background-color:transparent!important}
.avatar-frame img,
.slot-portrait img,
.character-display>img,
.battle-portrait img,
.arena-avatar img,
.arena-ranking-avatar img,
.arena-fighter-avatar img{background:transparent!important;-webkit-mask-image:none!important;mask-image:none!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{background:transparent!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar:after{display:none!important}

/* Equipment stage: belt moves to the top of the right column; the character sits slightly higher. */
@media(max-width:800px){
  .loadout-stage{grid-template-columns:58px minmax(0,1fr) 58px!important;grid-template-rows:repeat(5,60px)!important;gap:5px!important;padding:8px!important}
  .loadout-stage .character-display{grid-column:2!important;grid-row:1/6!important;min-height:300px!important}
  .loadout-stage .character-display>img{inset:-8px 0 10px!important;height:calc(100% - 2px)!important;object-position:center top!important}
  .loadout-stage .eq:nth-child(1){grid-column:1!important;grid-row:3!important}
  .loadout-stage .eq:nth-child(2){grid-column:1!important;grid-row:2!important}
  .loadout-stage .eq:nth-child(3){grid-column:1!important;grid-row:1!important}
  .loadout-stage .eq:nth-child(6){grid-column:1!important;grid-row:4!important}
  .loadout-stage .eq:nth-child(9){grid-column:3!important;grid-row:1!important;width:auto!important;justify-self:stretch!important}
  .loadout-stage .eq:nth-child(7){grid-column:3!important;grid-row:2!important}
  .loadout-stage .eq:nth-child(4){grid-column:3!important;grid-row:3!important}
  .loadout-stage .eq:nth-child(8){grid-column:3!important;grid-row:4!important}
  .loadout-stage .eq:nth-child(5){grid-column:3!important;grid-row:5!important}
}

/* Arena cards: reserve independent win/loss columns so +30 and -8 can never collide. */
body[data-active-screen="arena"] .arena-risk{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;width:100%!important;min-width:0!important}
body[data-active-screen="arena"] .arena-risk .arena-win{text-align:left!important;overflow:visible!important;text-overflow:clip!important}
body[data-active-screen="arena"] .arena-risk .arena-loss{text-align:left!important;overflow:visible!important;text-overflow:clip!important}

/* Ranking is a real touch-scrolling list; last row stays above the fixed dock. */
body[data-active-screen="arena"] .arena-ranking-list{
  max-height:min(58vh,620px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
  padding-bottom:calc(84px + env(safe-area-inset-bottom))!important;
}

/* Group labels sit under the large target number instead of over it. */
body[data-active-screen="combat"] .group-target{grid-template-rows:1fr auto auto!important;align-content:center!important;padding-top:8px!important}
body[data-active-screen="combat"] .group-target>span{grid-row:1!important;align-self:end!important}
body[data-active-screen="combat"] .group-target>b{grid-row:2!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;font-size:8px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;margin-top:4px!important}
body[data-active-screen="combat"] .group-target>small{grid-row:3!important;margin-top:2px!important}

/* Responsive system: preserve the accepted 390–430 px composition, tighten only at the edges. */
html,body{max-width:100%;overflow-x:hidden}
.game-stage,#gameMain,.screen-view,.panel{min-width:0;max-width:100%}
.top-hud,.player-chip,.arena-opponent-v1,.arena-summary-v1,.loadout-stage{min-width:0}
.player-chip{column-gap:clamp(4px,1.5vw,10px)!important}
.player-copy b{font-size:clamp(14px,4vw,18px)!important}
.player-chip .compact-wallet b{font-size:clamp(8px,2.6vw,11px)!important}
.hud-power-badge b{font-size:clamp(11px,3.3vw,15px)!important}

@media(max-width:374px){
  .top-hud{padding-left:7px!important;padding-right:7px!important}
  .player-chip{grid-template-columns:40px minmax(0,1fr) 72px 42px 58px!important;gap:3px!important}
  .avatar-frame{width:40px!important;height:40px!important}
  .player-chip .compact-wallet{width:72px!important;max-width:72px!important}
  .level-medallion{width:40px!important;height:40px!important}
  .hud-power-badge{min-width:58px!important;width:58px!important;padding:2px 4px!important}
  body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:25% 51% 24%!important;height:100px!important;min-height:100px!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{height:100px!important}
  body[data-active-screen="arena"] .arena-opponent-main{height:100px!important;padding:5px!important}
  body[data-active-screen="arena"] .arena-opponent-main>b{font-size:16px!important}
  body[data-active-screen="arena"] .arena-opponent-main>span{font-size:7.4px!important}
  body[data-active-screen="arena"] .arena-inline-stats{gap:7px!important}
  body[data-active-screen="arena"] .arena-risk{gap:3px!important;font-size:5.8px!important}
  body[data-active-screen="arena"] .arena-fight-cta{font-size:9px!important;padding:3px 1px!important}
  .arena-summary-v1 small{font-size:5.2px!important}.arena-summary-v1 b{font-size:12px!important}
  #gameMain{padding-left:6px!important;padding-right:6px!important}
}

@media(min-width:431px) and (max-width:600px){
  #gameMain{padding-left:14px!important;padding-right:14px!important}
  body[data-active-screen="arena"] .arena-opponent-v1{max-width:560px;margin-left:auto!important;margin-right:auto!important}
  body[data-active-screen="arena"] .arena-action-summary,.arena-summary-v1,.arena-ranking-head,.arena-ranking-list{max-width:560px;margin-left:auto!important;margin-right:auto!important}
}

@media(min-width:601px) and (max-width:900px){
  #gameMain{width:min(100%,760px);margin-inline:auto!important}
  .top-hud{width:100%}
  body[data-active-screen="arena"] .arena-opponent-v1{max-width:720px;margin-inline:auto!important}
  .profile-grid{max-width:760px;margin-inline:auto!important}
}

/* v0.13.1 — gender-aware character creator */
.gender-choices{display:grid;grid-template-columns:repeat(2,minmax(0,220px));justify-content:center;gap:10px;margin:0 auto 16px}.gender-choice{min-height:48px;border:1px solid #5e4a31;background:linear-gradient(#171d23,#0a0d11);color:#d9c7aa;font:700 14px/1 Georgia,serif;letter-spacing:.4px}.gender-choice span{margin-left:6px}.gender-choice.is-active{border-color:#d49a47;background:linear-gradient(#6a381b,#2b170e);color:#ffd994;box-shadow:inset 0 0 0 1px #e0a65b55}.gender-choice:focus-visible{outline:2px solid #efc171;outline-offset:2px}@media(max-width:430px){.gender-choices{grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}.gender-choice{min-height:42px;font-size:12px}}


/* v0.13.3 — equipment layout hotfix: 4 slots left + 4 right + [future][belt][future] under hero. */
.loadout-stage .future-eq-slot{display:none}
@media(max-width:800px){
  .loadout-stage{
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr) 58px!important;
    grid-template-rows:repeat(4,60px) 58px!important;
    gap:5px!important;
    padding:8px!important;
    align-items:stretch!important;
  }
  .loadout-stage .equipment{display:contents!important}
  .loadout-stage .character-display{
    grid-column:2!important;
    grid-row:1/5!important;
    min-height:240px!important;
    height:auto!important;
  }
  .loadout-stage .character-display>img{
    inset:-12px 0 0!important;
    height:calc(100% + 6px)!important;
    object-position:center top!important;
  }
  .loadout-stage .eq{
    width:auto!important;
    min-width:0!important;
    justify-self:stretch!important;
    min-height:0!important;
  }
  .loadout-stage .eq[data-slot="helmet"]{grid-column:1!important;grid-row:1!important}
  .loadout-stage .eq[data-slot="armor"]{grid-column:1!important;grid-row:2!important}
  .loadout-stage .eq[data-slot="weapon"]{grid-column:1!important;grid-row:3!important}
  .loadout-stage .eq[data-slot="bracelet"]{grid-column:1!important;grid-row:4!important}
  .loadout-stage .eq[data-slot="necklace"]{grid-column:3!important;grid-row:1!important}
  .loadout-stage .eq[data-slot="shield"]{grid-column:3!important;grid-row:2!important}
  .loadout-stage .eq[data-slot="earrings"]{grid-column:3!important;grid-row:3!important}
  .loadout-stage .eq[data-slot="boots"]{grid-column:3!important;grid-row:4!important}
  .loadout-stage .eq[data-slot="belt"]{
    grid-column:2!important;
    grid-row:5!important;
    width:58px!important;
    justify-self:center!important;
  }
  .loadout-stage .future-eq-slot{
    display:grid!important;
    place-items:center!important;
    grid-row:5!important;
    width:58px!important;
    min-height:0!important;
    border:1px solid #4b493f!important;
    background:linear-gradient(145deg,#13191e,#080b0e)!important;
    box-shadow:inset 0 0 0 1px #17120c!important;
    color:#7f6843!important;
  }
  .loadout-stage .future-eq-slot i{
    display:grid!important;
    place-items:center!important;
    width:40px!important;
    height:40px!important;
    border:1px solid #4d402d!important;
    background:#090c10!important;
    font-style:normal!important;
    font-size:21px!important;
    color:#8a7048!important;
    opacity:.55!important;
  }
  .loadout-stage .future-eq-left{grid-column:1!important}
  .loadout-stage .future-eq-right{grid-column:3!important}
}

/* v0.13.4 — character master replacement + per-character mobile stage scaling.
   Scale is applied by class/gender, never baked into source PNGs. */
@media(max-width:800px){
  .loadout-stage .character-display>img{transform-origin:center top!important;transform:scale(.95)!important}
  .loadout-stage .character-display>img[data-player-class="sura"][data-player-gender="male"]{transform:scale(.85)!important}
}


/* v0.13.4.2 — corrected equipment grid per user sketch:
   left 4 vertical slots, hero in center, right 4 vertical slots,
   bottom row: bracelet | future | belt | future | boots */
@media(max-width:800px){
  .loadout-stage{
    display:grid!important;
    grid-template-columns:58px 42px minmax(0,1fr) 42px 58px!important;
    grid-template-rows:repeat(4,58px)!important;
    gap:6px!important;
    padding:8px!important;
    align-items:stretch!important;
  }
  .loadout-stage .equipment{display:contents!important}
  .loadout-stage .character-display{
    grid-column:2 / 5!important;
    grid-row:1 / 4!important;
    min-height:186px!important;
    height:auto!important;
    align-self:end!important;
  }
  .loadout-stage .character-display>img{
    inset:-10px 0 0!important;
    height:calc(100% + 10px)!important;
    object-position:center top!important;
  }
  .loadout-stage .eq{
    width:auto!important;
    min-width:0!important;
    justify-self:stretch!important;
    min-height:0!important;
    padding:3px!important;
  }
  .loadout-stage .eq[data-slot="helmet"]{grid-column:1!important;grid-row:1!important}
  .loadout-stage .eq[data-slot="armor"]{grid-column:1!important;grid-row:2!important}
  .loadout-stage .eq[data-slot="weapon"]{grid-column:1!important;grid-row:3!important}
  .loadout-stage .eq[data-slot="bracelet"]{grid-column:1!important;grid-row:4!important}

  .loadout-stage .eq[data-slot="necklace"]{grid-column:5!important;grid-row:1!important}
  .loadout-stage .eq[data-slot="shield"]{grid-column:5!important;grid-row:2!important}
  .loadout-stage .eq[data-slot="earrings"]{grid-column:5!important;grid-row:3!important}
  .loadout-stage .eq[data-slot="boots"]{grid-column:5!important;grid-row:4!important}

  .loadout-stage .eq[data-slot="belt"]{
    grid-column:3!important;
    grid-row:4!important;
    width:48px!important;
    justify-self:center!important;
  }
  .loadout-stage .future-eq-slot{
    display:grid!important;
    place-items:center!important;
    grid-row:4!important;
    width:42px!important;
    min-height:0!important;
    justify-self:center!important;
    border:1px solid #4b493f!important;
    background:linear-gradient(145deg,#13191e,#080b0e)!important;
    box-shadow:inset 0 0 0 1px #17120c!important;
    color:#7f6843!important;
  }
  .loadout-stage .future-eq-slot i{
    display:grid!important;
    place-items:center!important;
    width:28px!important;
    height:28px!important;
    border:1px solid #4d402d!important;
    background:#090c10!important;
    font-style:normal!important;
    font-size:16px!important;
    color:#8a7048!important;
    opacity:.55!important;
  }
  .loadout-stage .future-eq-left{grid-column:2!important}
  .loadout-stage .future-eq-right{grid-column:4!important}
}


/* v0.13.4.3 — avatar asset repair + final mobile layout cleanup */

/* Global avatar presentation: show the whole body, never a cropped torso. */
.avatar-frame img,
.slot-portrait img,
.character-display>img,
.arena-avatar img,
.arena-ranking-avatar img,
.arena-fighter-avatar img,
.battle-portrait img{
  background:transparent!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}

.avatar-frame{background:radial-gradient(circle at 50% 40%,#162029,#07090c 75%)!important}
.avatar-frame img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:scale(1)!important;
}

.slot-portrait{
  display:grid!important;
  place-items:center!important;
  background:radial-gradient(circle at 50% 38%,#18303a55,transparent 52%),linear-gradient(#10161b,#080b0e 78%)!important;
}
.slot-portrait img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:none!important;
}

@media(max-width:800px){
  /* Final equipment composition requested by the user:
     left 4 slots | hero | right 4 slots,
     bottom row: [bracelet][nowy][belt][nowy][boots] */
  .loadout-stage{
    display:grid!important;
    grid-template-columns:56px 34px minmax(0,1fr) 34px 56px!important;
    grid-template-rows:56px 56px 56px 50px!important;
    gap:6px!important;
    padding:8px!important;
    align-items:stretch!important;
  }
  .loadout-stage::before{display:none!important}
  .loadout-stage .equipment{display:contents!important}
  .loadout-stage .character-display{
    grid-column:2 / 5!important;
    grid-row:1 / 4!important;
    min-height:180px!important;
    height:auto!important;
    background:radial-gradient(circle at 50% 38%,#1b394555,transparent 55%)!important;
    overflow:hidden!important;
  }
  .loadout-stage .character-display::after{display:none!important}
  .loadout-stage .character-display>img{
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:scale(.90)!important;
    transform-origin:center bottom!important;
    filter:drop-shadow(0 10px 12px #000c)!important;
  }
  .loadout-stage .character-display>img[data-player-class="sura"][data-player-gender="male"]{transform:scale(.78)!important}
  .loadout-stage .eq{
    width:auto!important;
    min-width:0!important;
    min-height:0!important;
    padding:2px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:1fr!important;
    place-items:center!important;
    justify-self:stretch!important;
    overflow:hidden!important;
  }
  .loadout-stage .eq .slot-glyph{
    grid-row:auto!important;
    width:32px!important;
    height:32px!important;
    font-size:18px!important;
  }
  .loadout-stage .eq small,
  .loadout-stage .eq b,
  .loadout-stage .eq span{display:none!important}

  .loadout-stage .eq[data-slot="helmet"]{grid-column:1!important;grid-row:1!important}
  .loadout-stage .eq[data-slot="armor"]{grid-column:1!important;grid-row:2!important}
  .loadout-stage .eq[data-slot="weapon"]{grid-column:1!important;grid-row:3!important}
  .loadout-stage .eq[data-slot="bracelet"]{grid-column:1!important;grid-row:4!important}
  .loadout-stage .eq[data-slot="necklace"]{grid-column:5!important;grid-row:1!important}
  .loadout-stage .eq[data-slot="shield"]{grid-column:5!important;grid-row:2!important}
  .loadout-stage .eq[data-slot="earrings"]{grid-column:5!important;grid-row:3!important}
  .loadout-stage .eq[data-slot="boots"]{grid-column:5!important;grid-row:4!important}
  .loadout-stage .eq[data-slot="belt"]{
    grid-column:3!important;
    grid-row:4!important;
    width:46px!important;
    justify-self:center!important;
  }

  .loadout-stage .future-eq-slot{
    display:grid!important;
    place-items:center!important;
    grid-row:4!important;
    width:34px!important;
    min-height:0!important;
    justify-self:center!important;
    border:1px solid #4b493f!important;
    background:linear-gradient(145deg,#13191e,#080b0e)!important;
    box-shadow:inset 0 0 0 1px #17120c!important;
  }
  .loadout-stage .future-eq-slot i{
    display:grid!important;
    place-items:center!important;
    width:22px!important;
    height:22px!important;
    border:1px solid #4d402d!important;
    background:#090c10!important;
    font-style:normal!important;
    font-size:12px!important;
    color:#8a7048!important;
    opacity:.60!important;
  }
  .loadout-stage .future-eq-left{grid-column:2!important}
  .loadout-stage .future-eq-right{grid-column:4!important}

  /* Arena cards on phone: 4 clean text rows. */
  body[data-active-screen="arena"] .arena-opponent-v1{
    grid-template-columns:94px minmax(0,1fr) 78px!important;
    gap:8px!important;
    min-height:116px!important;
    padding:8px!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{
    width:94px!important;
    height:116px!important;
    padding:0!important;
    border-right:0!important;
    background:radial-gradient(circle at 50% 48%,#17222a,#090c10 72%)!important;
    overflow:hidden!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar:after{display:none!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:scale(.84)!important;
    transform-origin:center bottom!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{transform:scale(.72)!important}
  body[data-active-screen="arena"] .arena-opponent-main{
    display:grid!important;
    grid-template-rows:auto auto auto auto!important;
    align-content:center!important;
    gap:2px!important;
    min-width:0!important;
    height:auto!important;
    padding:4px 2px!important;
    overflow:hidden!important;
  }
  body[data-active-screen="arena"] .arena-opponent-main>small{display:none!important}
  body[data-active-screen="arena"] .arena-opponent-main>b{
    margin:0!important;
    font:700 18px/1 Georgia,serif!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body[data-active-screen="arena"] .arena-opponent-main>span{
    font-size:8px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body[data-active-screen="arena"] .arena-inline-stats{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:1px!important;
    margin:0!important;
  }
  body[data-active-screen="arena"] .arena-inline-stats span{
    display:flex!important;
    align-items:baseline!important;
    gap:4px!important;
    font-size:7px!important;
    white-space:nowrap!important;
  }
  body[data-active-screen="arena"] .arena-inline-stats b{font-size:11px!important}
  body[data-active-screen="arena"] .arena-risk{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
    margin:0!important;
    font-size:6.8px!important;
    line-height:1!important;
  }
  body[data-active-screen="arena"] .arena-fight-cta{
    grid-column:3!important;
    grid-row:1!important;
    align-self:center!important;
    width:100%!important;
    min-height:54px!important;
    margin:0!important;
    padding:4px 2px!important;
    font-size:11px!important;
    line-height:1!important;
  }
  body[data-active-screen="arena"] .arena-fight-cta span{display:block!important;margin:0 0 2px!important;font-size:16px!important}
}

/* v0.13.4.4 — engineering repair pass
   Goals:
   1) force fresh avatar assets / no stale cached squares,
   2) make character-slot portraits fit cleanly,
   3) enlarge male Sura on the main equipment screen,
   4) stretch the newly added lower equipment slots,
   5) lift arena avatars so legs are no longer visually cut.
*/

.avatar-frame,
.slot-portrait,
.character-display,
.battle-portrait,
.arena-avatar,
.arena-ranking-avatar,
.arena-fighter-avatar{
  background:transparent!important;
}

.avatar-frame img,
.slot-portrait img,
.character-display>img,
.battle-portrait img,
.arena-avatar img,
.arena-ranking-avatar img,
.arena-fighter-avatar img{
  background:transparent!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  image-rendering:auto!important;
}

@media(min-width:801px){
  .slot-portrait{
    height:388px!important;
    margin:0 0 8px!important;
    display:grid!important;
    place-items:end center!important;
    overflow:hidden!important;
  }
  .character-slot.last-used .slot-portrait{height:412px!important}
  .slot-portrait img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:scale(.98)!important;
    transform-origin:center bottom!important;
    filter:drop-shadow(0 18px 16px #000c)!important;
  }
  .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{transform:scale(.96)!important}

  .character-display>img{
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
  .character-display>img[data-player-class="sura"][data-player-gender="male"]{
    transform:scale(1.11)!important;
    transform-origin:center 60%!important;
  }
}

@media(max-width:800px){
  /* Character selection cards */
  .character-slots{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .character-slot,
  .empty-slot{
    min-height:252px!important;
    padding:10px!important;
    padding-bottom:64px!important;
    overflow:hidden!important;
  }
  .character-slot.last-used,
  .empty-slot.last-used{
    grid-column:1/-1!important;
    min-height:326px!important;
  }
  .slot-portrait{
    height:150px!important;
    margin:0 0 7px!important;
    display:grid!important;
    place-items:end center!important;
    overflow:hidden!important;
    border-bottom:1px solid #503d28!important;
    background:radial-gradient(circle at 50% 38%,#18303a55,transparent 52%),linear-gradient(#10161b,#080b0e 78%)!important;
  }
  .character-slot.last-used .slot-portrait{height:214px!important}
  .slot-portrait img{
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:scale(.96)!important;
    transform-origin:center bottom!important;
    filter:drop-shadow(0 12px 12px #000c)!important;
  }
  .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{transform:scale(.90)!important}
  .character-slot h2{font-size:18px!important;margin:5px 0 3px!important}
  .character-slot p{font-size:9px!important;line-height:1.2!important;margin-bottom:36px!important}
  .occupied-slot .slot-actions{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    gap:6px!important;
  }
  .character-slot>.slot-actions button{min-height:36px!important;font-size:9px!important}
  .occupied-slot .slot-delete{min-width:78px!important}

  /* Equipment layout: keep the user-approved position, but stretch the two new lower slots */
  .loadout-stage{
    display:grid!important;
    grid-template-columns:62px 54px minmax(0,1fr) 54px 62px!important;
    grid-template-rows:repeat(4,62px)!important;
    gap:8px!important;
    padding:10px!important;
    align-items:stretch!important;
  }
  .loadout-stage .character-display{
    grid-column:2 / 5!important;
    grid-row:1 / 4!important;
    min-height:198px!important;
    height:auto!important;
    align-self:end!important;
    overflow:hidden!important;
  }
  .loadout-stage .character-display>img{
    inset:-6px 0 0!important;
    width:100%!important;
    height:calc(100% + 6px)!important;
    object-fit:contain!important;
    object-position:center top!important;
    transform:scale(.98)!important;
    transform-origin:center top!important;
  }
  .loadout-stage .character-display>img[data-player-class="sura"][data-player-gender="male"]{transform:scale(1.02)!important}
  .loadout-stage .eq,
  .loadout-stage .future-eq-slot{
    min-height:62px!important;
  }
  .loadout-stage .eq[data-slot="belt"]{
    grid-column:3!important;
    grid-row:4!important;
    width:62px!important;
    justify-self:center!important;
  }
  .loadout-stage .future-eq-slot{
    display:grid!important;
    place-items:center!important;
    grid-row:4!important;
    width:54px!important;
    justify-self:center!important;
  }
  .loadout-stage .future-eq-slot i{
    width:36px!important;
    height:36px!important;
    font-size:18px!important;
  }

  /* Arena: lift portraits up so feet are fully visible inside the frame */
  body[data-active-screen="arena"] .arena-opponent-v1{
    grid-template-columns:92px minmax(0,1fr) 80px!important;
    min-height:122px!important;
    gap:8px!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{
    width:92px!important;
    height:122px!important;
    overflow:hidden!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:translateY(-10px) scale(.80)!important;
    transform-origin:center bottom!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{
    transform:translateY(-12px) scale(.70)!important;
  }
}

@media(max-width:430px){
  .character-slot,
  .empty-slot{min-height:238px!important}
  .character-slot.last-used,
  .empty-slot.last-used{min-height:308px!important}
  .slot-portrait{height:138px!important}
  .character-slot.last-used .slot-portrait{height:198px!important}
}


/* v0.13.4.6 — slot polish + arena/select portrait scaling */
@media(max-width:800px){
  /* Reserve slots under the avatar: soften edges and match the other equipment frames. */
  .loadout-stage .future-eq-slot{
    position:relative!important;
    border-radius:4px!important;
    border:1px solid #5b4b37!important;
    background:radial-gradient(circle at 50% 32%,#20313c44,transparent 56%),linear-gradient(145deg,#13191e,#080b0e)!important;
    box-shadow:inset 0 0 0 1px #17120c,inset 0 0 16px #000b!important;
    overflow:hidden!important;
  }
  .loadout-stage .future-eq-slot::after{
    content:"";
    position:absolute;
    inset:3px;
    border:1px solid #6d512d22;
    pointer-events:none;
  }
  .loadout-stage .future-eq-slot i{
    border:1px solid #56432b!important;
    background:#090c10!important;
    box-shadow:inset 0 0 0 1px #120f0a!important;
    opacity:.62!important;
  }

  /* Character selection: slightly smaller portraits so the whole avatar stays inside the card. */
  .slot-portrait{
    height:140px!important;
  }
  .character-slot.last-used .slot-portrait{
    height:188px!important;
  }
  .slot-portrait img{
    transform:scale(.82)!important;
    transform-origin:center bottom!important;
    object-position:center bottom!important;
  }
  .character-slot.last-used .slot-portrait img{
    transform:scale(.80)!important;
  }
  .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    transform:scale(.78)!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    transform:scale(.76)!important;
  }

  /* Arena: slightly smaller portraits so the full body breathes inside the frame. */
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{
    transform:translateY(-7px) scale(.72)!important;
    transform-origin:center bottom!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{
    transform:translateY(-8px) scale(.64)!important;
  }
}

@media(max-width:430px){
  .slot-portrait{height:130px!important}
  .character-slot.last-used .slot-portrait{height:178px!important}
}


/* v0.13.4.7 — final mobile avatar scale normalization */
@media(max-width:800px){
  /* Lobby / character selection: keep the whole avatar comfortably inside the portrait area. */
  .slot-portrait{
    height:136px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .character-slot.last-used .slot-portrait{
    height:184px!important;
  }
  .slot-portrait img{
    display:block!important;
    width:auto!important;
    height:84%!important;
    max-width:84%!important;
    max-height:84%!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
    transform-origin:center bottom!important;
  }
  .character-slot.last-used .slot-portrait img{
    height:80%!important;
    max-width:80%!important;
    max-height:80%!important;
  }
  .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:76%!important;
    max-width:76%!important;
    max-height:76%!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:74%!important;
    max-width:74%!important;
    max-height:74%!important;
  }

  /* Arena list: make avatars visibly smaller so the full body fits in the left frame. */
  body[data-active-screen="arena"] .arena-opponent-v1{
    grid-template-columns:86px minmax(0,1fr) 82px!important;
    min-height:116px!important;
    gap:8px!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{
    width:86px!important;
    height:108px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{
    display:block!important;
    width:auto!important;
    height:74%!important;
    max-width:78%!important;
    max-height:74%!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
    transform-origin:center bottom!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{
    height:68%!important;
    max-width:72%!important;
    max-height:68%!important;
  }
}

@media(max-width:430px){
  .slot-portrait{height:126px!important}
  .character-slot.last-used .slot-portrait{height:172px!important}
  body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:80px minmax(0,1fr) 78px!important;min-height:110px!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{width:80px!important;height:100px!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{height:72%!important;max-width:76%!important;max-height:72%!important}
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{height:66%!important;max-width:70%!important;max-height:66%!important}
}


/* v0.13.4.8 — lobby / arena / ranking / arena-fight avatar tuning */
@media(max-width:800px){
  /* Lobby: smaller, tighter cards than v0.13.4.7, but avatars visibly larger. */
  .character-slot,
  .empty-slot{
    min-height:214px!important;
    padding:8px!important;
    padding-bottom:54px!important;
  }
  .character-slot.last-used,
  .empty-slot.last-used{
    min-height:268px!important;
  }

  .slot-portrait{
    height:118px!important;
    margin-bottom:5px!important;
  }
  .character-slot.last-used .slot-portrait{
    height:150px!important;
  }

  .slot-portrait img{
    width:auto!important;
    height:92%!important;
    max-width:92%!important;
    max-height:92%!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
  .character-slot.last-used .slot-portrait img{
    height:90%!important;
    max-width:90%!important;
    max-height:90%!important;
  }
  .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:88%!important;
    max-width:88%!important;
    max-height:88%!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:86%!important;
    max-width:86%!important;
    max-height:86%!important;
  }

  .character-slot h2{font-size:17px!important;margin:4px 0 2px!important}
  .character-slot p{font-size:8px!important;margin-bottom:28px!important}
  .occupied-slot .slot-actions{left:8px!important;right:8px!important;bottom:8px!important}

  /* Arena opponent list: Sura grows clearly; others grow only slightly. */
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{
    height:79%!important;
    max-width:82%!important;
    max-height:79%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{
    height:84%!important;
    max-width:86%!important;
    max-height:84%!important;
  }

  /* Ranking: slightly larger avatar and row. */
  body[data-active-screen="arena"] .arena-ranking-row{
    grid-template-columns:30px 48px minmax(0,1fr)!important;
    min-height:62px!important;
    padding:6px 7px!important;
    gap:7px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar{
    width:46px!important;
    height:46px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar img{
    transform:scale(.90)!important;
    transform-origin:center bottom!important;
  }

  /* Arena fight: portraits slightly smaller than v0.13.4.7. */
  body[data-active-screen="arena"] .arena-fighter-avatar{
    width:72px!important;
    height:72px!important;
    padding:4px!important;
  }
  body[data-active-screen="arena"] .arena-fighter-avatar img{
    width:88%!important;
    height:88%!important;
    margin:auto!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
}

@media(max-width:430px){
  .character-slot,
  .empty-slot{min-height:202px!important}
  .character-slot.last-used,
  .empty-slot.last-used{min-height:252px!important}
  .slot-portrait{height:110px!important}
  .character-slot.last-used .slot-portrait{height:142px!important}

  body[data-active-screen="arena"] .arena-ranking-row{
    grid-template-columns:28px 48px minmax(0,1fr)!important;
    min-height:60px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar{
    width:46px!important;
    height:46px!important;
  }
}


/* v0.13.4.9 — final micro-tuning for lobby / arena / ranking */
@media(max-width:800px){
  /* Lobby: avatars slightly larger, but the highlighted first card a touch smaller. */
  .character-slot,
  .empty-slot{
    min-height:210px!important;
    padding:8px!important;
    padding-bottom:54px!important;
  }
  .character-slot.last-used,
  .empty-slot.last-used{
    min-height:258px!important;
  }
  .slot-portrait{
    height:122px!important;
    margin-bottom:5px!important;
  }
  .character-slot.last-used .slot-portrait{
    height:144px!important;
  }
  .slot-portrait img{
    width:auto!important;
    height:96%!important;
    max-width:96%!important;
    max-height:96%!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
  .character-slot.last-used .slot-portrait img{
    height:94%!important;
    max-width:94%!important;
    max-height:94%!important;
  }
  .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:97%!important;
    max-width:97%!important;
    max-height:97%!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:95%!important;
    max-width:95%!important;
    max-height:95%!important;
  }

  /* Arena fight: portraits and frames move slightly upward and feel a bit stronger. */
  body[data-active-screen="arena"] .arena-fighter-avatar{
    width:78px!important;
    height:78px!important;
    padding:5px!important;
    border-width:2px!important;
  }
  body[data-active-screen="arena"] .arena-fighter-avatar img{
    width:90%!important;
    height:90%!important;
    margin:auto!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:translateY(-4px)!important;
  }

  /* Ranking: avatars a bit higher and visually larger inside the row. */
  body[data-active-screen="arena"] .arena-ranking-row{
    grid-template-columns:30px 50px minmax(0,1fr)!important;
    min-height:63px!important;
    padding:6px 7px!important;
    gap:7px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar{
    width:48px!important;
    height:48px!important;
    align-self:start!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar img{
    transform:translateY(-3px) scale(.94)!important;
    transform-origin:center bottom!important;
  }
}

@media(max-width:430px){
  .character-slot,
  .empty-slot{min-height:198px!important}
  .character-slot.last-used,
  .empty-slot.last-used{min-height:244px!important}
  .slot-portrait{height:114px!important}
  .character-slot.last-used .slot-portrait{height:138px!important}

  body[data-active-screen="arena"] .arena-ranking-row{
    grid-template-columns:28px 50px minmax(0,1fr)!important;
    min-height:61px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar{
    width:48px!important;
    height:48px!important;
  }
}


/* v0.13.5.0 — arena PvP window parity with PvM + ranking readability + slot avatar emphasis */
.arena-battle-layout{align-items:start}
body[data-active-screen="arena"] .arena-fighter-panel{min-height:690px!important}
body[data-active-screen="arena"] .arena-battle-portrait{position:relative!important;display:grid!important;place-items:center!important;overflow:hidden!important}
body[data-active-screen="arena"] .arena-battle-portrait-button{display:flex!important;align-items:flex-end!important;justify-content:center!important;width:100%!important;height:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body[data-active-screen="arena"] .arena-battle-portrait-button img{width:auto!important;height:92%!important;max-width:92%!important;max-height:92%!important;object-fit:contain!important;object-position:center bottom!important;margin:auto!important;background:transparent!important}
body[data-active-screen="arena"] .arena-battle-portrait.enemy .arena-battle-portrait-button img{height:88%!important;max-width:90%!important;max-height:88%!important}
body[data-active-screen="arena"] .arena-battle-portrait.enemy .arena-battle-portrait-button img[data-player-class="sura"],
body[data-active-screen="arena"] .arena-battle-portrait .arena-battle-portrait-button img[data-player-class="sura"]{height:84%!important;max-width:86%!important;max-height:84%!important}
body[data-active-screen="arena"] .arena-battle-hit{position:absolute!important;top:12px!important;right:12px!important;z-index:4!important;padding:6px 10px!important;border:1px solid #7b4f2a!important;background:#090c10eb!important;color:#ffd37d!important;font:700 16px/1 Georgia,serif!important;box-shadow:0 8px 20px #000a!important}
body[data-active-screen="arena"] .arena-battle-hit.enemy{color:#ffb28f!important;border-color:#91412c!important}
body[data-active-screen="arena"] .arena-battle-name{text-align:center!important;margin:10px 14px 3px!important;font:700 24px/1.1 Georgia,serif!important;color:#edd6ad!important}
body[data-active-screen="arena"] .arena-battle-meta{min-height:0!important;padding:0 14px 10px!important;margin:0!important;text-align:center!important;color:#9fa7ab!important;line-height:1.35!important}
body[data-active-screen="arena"] .arena-combat-core .panel-title{margin-bottom:0!important}
body[data-active-screen="arena"] .arena-combat-log{height:350px!important;border-bottom:1px solid #463628!important}
body[data-active-screen="arena"] .arena-fight-actions-pvm{grid-template-columns:1fr 1fr!important}
body[data-active-screen="arena"] .arena-duel-score{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:0 13px 12px!important}
body[data-active-screen="arena"] .arena-duel-score span{display:flex!important;justify-content:space-between!important;gap:6px!important;padding:10px!important;border:1px solid #333b44!important;background:#0a0e12!important;color:#9ba3a8!important;font-size:11px!important}
body[data-active-screen="arena"] .arena-duel-score b{color:#eac46f!important}
body[data-active-screen="arena"] .arena-ranking-row{grid-template-columns:46px 66px minmax(0,1fr) auto!important;gap:10px!important;min-height:84px!important;padding:9px 12px!important}
body[data-active-screen="arena"] .arena-ranking-avatar{display:flex!important;align-items:flex-end!important;justify-content:center!important;width:62px!important;height:62px!important;overflow:hidden!important}
body[data-active-screen="arena"] .arena-ranking-avatar img{width:auto!important;height:98%!important;max-width:98%!important;max-height:98%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important}
body[data-active-screen="arena"] .arena-ranking-avatar.rank-1,body[data-active-screen="arena"] .arena-ranking-avatar.rank-2,body[data-active-screen="arena"] .arena-ranking-avatar.rank-3{box-shadow:0 0 10px #0008,inset 0 0 0 1px #ffffff22!important}
body[data-active-screen="arena"] .arena-ranking-row>div>b{font-size:20px!important;line-height:1!important}
body[data-active-screen="arena"] .arena-ranking-row>div>small{font-size:10px!important;line-height:1.25!important}
body[data-active-screen="arena"] .arena-ranking-row>em{font-size:18px!important}

@media(max-width:800px){
  .character-slot.last-used,
  .empty-slot.last-used{min-height:252px!important}
  .character-slot.last-used .slot-portrait{height:138px!important}
  .character-slot.last-used .slot-portrait img{height:102%!important;max-width:100%!important;max-height:102%!important}
  .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{height:104%!important;max-width:100%!important;max-height:104%!important}

  body[data-active-screen="arena"] .arena-battle-portrait{height:320px!important}
  body[data-active-screen="arena"] .arena-battle-name{font-size:21px!important;margin-top:8px!important}
  body[data-active-screen="arena"] .arena-battle-meta{font-size:11px!important;padding:0 10px 9px!important}
  body[data-active-screen="arena"] .arena-battle-hit{top:10px!important;right:10px!important;font-size:14px!important;padding:5px 8px!important}
  body[data-active-screen="arena"] .arena-combat-log{height:240px!important}
  body[data-active-screen="arena"] .arena-duel-score{grid-template-columns:1fr!important;gap:5px!important}
  body[data-active-screen="arena"] .arena-duel-score span{font-size:10px!important;padding:8px!important}
  body[data-active-screen="arena"] .arena-ranking-list{padding:0 8px 12px!important}
  body[data-active-screen="arena"] .arena-ranking-row{grid-template-columns:34px 62px minmax(0,1fr)!important;min-height:76px!important;padding:7px 8px!important;gap:8px!important}
  body[data-active-screen="arena"] .arena-ranking-avatar{width:58px!important;height:58px!important}
  body[data-active-screen="arena"] .arena-ranking-row>em{grid-column:3!important;font-size:15px!important;margin-top:1px!important}
}

@media(max-width:430px){
  .character-slot.last-used,
  .empty-slot.last-used{min-height:238px!important}
  .character-slot.last-used .slot-portrait{height:132px!important}
  .character-slot.last-used .slot-portrait img{height:101%!important;max-width:100%!important;max-height:101%!important}
  .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{height:103%!important;max-width:100%!important;max-height:103%!important}

  body[data-active-screen="arena"] .arena-battle-portrait{height:286px!important}
  body[data-active-screen="arena"] .arena-combat-log{height:210px!important}
  body[data-active-screen="arena"] .arena-ranking-row{grid-template-columns:30px 56px minmax(0,1fr)!important;min-height:72px!important;padding:7px!important}
  body[data-active-screen="arena"] .arena-ranking-avatar{width:54px!important;height:54px!important}
  body[data-active-screen="arena"] .arena-ranking-row>div>b{font-size:17px!important}
  body[data-active-screen="arena"] .arena-ranking-row>div>small{font-size:8px!important}
  body[data-active-screen="arena"] .arena-ranking-row>em{font-size:13px!important}
}

/* v0.13.5.1 — slot / PvP / ranking visual correction pass */
@media(max-width:800px){
  /* Character select: top featured slot should match the larger reference framing. */
  .character-slot,
  .empty-slot{
    padding-bottom:16px!important;
  }
  .character-slot.last-used,
  .empty-slot.last-used{
    min-height:236px!important;
    padding:7px 8px 14px!important;
  }
  .character-slot.last-used .slot-portrait{
    height:174px!important;
    margin:-2px 0 2px!important;
  }
  .character-slot.last-used .slot-portrait img{
    object-fit:contain!important;
    object-position:center bottom!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="ninja"]{
    height:124%!important;
    max-width:none!important;
    max-height:none!important;
    transform:translateY(4px)!important;
  }
  .occupied-slot:not(.last-used) .slot-portrait{
    height:132px!important;
  }
  .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:116%!important;
    max-width:none!important;
    max-height:none!important;
    transform:translateY(4px)!important;
  }

  /* Arena ranking: enlarge portrait frame and the character itself. */
  body[data-active-screen="arena"] .arena-ranking-list{
    padding:0 8px 12px!important;
    max-height:440px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
  body[data-active-screen="arena"] .arena-ranking-row{
    grid-template-columns:34px 70px minmax(0,1fr)!important;
    min-height:86px!important;
    gap:10px!important;
    padding:8px 9px!important;
    align-items:center!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar{
    width:68px!important;
    height:68px!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar img{
    width:auto!important;
    height:112%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:translateY(4px)!important;
  }
  body[data-active-screen="arena"] .arena-ranking-row>div>b{
    font-size:20px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-row>div>small{
    font-size:10px!important;
    line-height:1.25!important;
  }
  body[data-active-screen="arena"] .arena-ranking-row>em{
    grid-column:3!important;
    margin-top:2px!important;
    font-size:15px!important;
  }

  /* PvP fight: remove the large dead vertical space. */
  body[data-active-screen="arena"] .arena-battle-layout{
    gap:8px!important;
    align-items:start!important;
  }
  body[data-active-screen="arena"] .arena-fighter-panel{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  body[data-active-screen="arena"] .arena-battle-portrait{
    height:188px!important;
  }
  body[data-active-screen="arena"] .arena-battle-portrait .arena-battle-portrait-button img{
    height:102%!important;
    max-width:none!important;
    max-height:none!important;
  }
  body[data-active-screen="arena"] .arena-battle-portrait.enemy .arena-battle-portrait-button img[data-player-class="sura"],
  body[data-active-screen="arena"] .arena-battle-portrait .arena-battle-portrait-button img[data-player-class="sura"]{
    height:96%!important;
  }
  body[data-active-screen="arena"] .arena-battle-name{
    margin:8px 10px 2px!important;
    font-size:20px!important;
  }
  body[data-active-screen="arena"] .arena-battle-meta{
    padding:0 10px 8px!important;
  }
  body[data-active-screen="arena"] .battle-bars{
    padding:8px 10px 2px!important;
  }
  body[data-active-screen="arena"] .combat-summary{
    padding:8px 10px 10px!important;
    gap:5px!important;
  }
  body[data-active-screen="arena"] .combat-summary span{
    padding:8px!important;
    font-size:9px!important;
  }
  body[data-active-screen="arena"] .arena-combat-log{
    height:170px!important;
    margin:0 10px 10px!important;
  }
  body[data-active-screen="arena"] .arena-duel-score{
    margin:0 10px 10px!important;
  }
  body[data-active-screen="arena"] .arena-duel-score span{
    padding:8px!important;
    font-size:10px!important;
  }
  body[data-active-screen="arena"] .arena-fight-actions-pvm{
    padding:0 10px 10px!important;
  }
}

@media(max-width:430px){
  .character-slot.last-used,
  .empty-slot.last-used{
    min-height:228px!important;
  }
  .character-slot.last-used .slot-portrait{
    height:165px!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="ninja"]{
    height:121%!important;
  }
  .occupied-slot:not(.last-used) .slot-portrait{
    height:126px!important;
  }
  .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"][data-player-gender="male"]{
    height:113%!important;
  }

  body[data-active-screen="arena"] .arena-ranking-row{
    grid-template-columns:30px 64px minmax(0,1fr)!important;
    min-height:80px!important;
    gap:8px!important;
    padding:7px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar{
    width:62px!important;
    height:62px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-row>div>b{
    font-size:18px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-row>div>small{
    font-size:8px!important;
  }
  body[data-active-screen="arena"] .arena-ranking-row>em{
    font-size:13px!important;
  }

  body[data-active-screen="arena"] .arena-battle-portrait{
    height:176px!important;
  }
  body[data-active-screen="arena"] .arena-combat-log{
    height:150px!important;
  }
}

/* v0.13.5.2 — context-scoped avatar normalization (selector + arena ranking only) */
@media(max-width:800px){
  /* Selector: one baseline per slot type, then only class compensation. */
  .character-slot.last-used .slot-portrait img{
    height:100%!important;max-height:100%!important;max-width:100%!important;
    transform:none!important;object-fit:contain!important;object-position:center bottom!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="ninja"]{
    height:96%!important;max-height:96%!important;max-width:96%!important;transform:none!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="shaman"]{
    height:112%!important;max-height:112%!important;max-width:112%!important;transform:none!important;
  }
  .character-slot.last-used .slot-portrait img[data-player-class="sura"]{
    height:100%!important;max-height:100%!important;max-width:100%!important;transform:none!important;
  }
  .occupied-slot:not(.last-used) .slot-portrait img{
    object-fit:contain!important;object-position:center bottom!important;transform:none!important;
  }
  .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"]{
    height:94%!important;max-height:94%!important;max-width:94%!important;transform:none!important;
  }

  /* Ranking: keep the accepted frame for every class; compensate Sura only. */
  body[data-active-screen="arena"] .arena-ranking-avatar img{
    height:112%!important;max-height:none!important;max-width:none!important;
    object-fit:contain!important;object-position:center bottom!important;transform:translateY(4px)!important;
  }
  body[data-active-screen="arena"] .arena-ranking-avatar img[data-player-class="sura"]{
    height:101%!important;transform:translateY(3px)!important;
  }
}
@media(max-width:430px){
  .character-slot.last-used .slot-portrait img[data-player-class="ninja"]{height:96%!important;max-height:96%!important}
  .character-slot.last-used .slot-portrait img[data-player-class="shaman"]{height:112%!important;max-height:112%!important}
  .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"]{height:94%!important;max-height:94%!important}
  body[data-active-screen="arena"] .arena-ranking-avatar img[data-player-class="sura"]{height:101%!important}
}

/* v0.13.5.3 — isolated character-selector composition */
@media(max-width:800px){
  #characterSelectOverlay .character-slots{grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:stretch!important}
  #characterSelectOverlay .occupied-slot{display:flex!important;flex-direction:column!important;min-height:390px!important;padding:9px!important;padding-bottom:9px!important;overflow:hidden!important}
  #characterSelectOverlay .occupied-slot.last-used{grid-column:1/-1!important;min-height:458px!important}
  #characterSelectOverlay .occupied-slot .slot-portrait{flex:0 0 220px!important;height:220px!important;margin:0 0 8px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important}
  #characterSelectOverlay .occupied-slot.last-used .slot-portrait{flex-basis:286px!important;height:286px!important}
  #characterSelectOverlay .occupied-slot .slot-portrait img,#characterSelectOverlay .occupied-slot.last-used .slot-portrait img{display:block!important;width:auto!important;height:92%!important;max-width:none!important;max-height:none!important;margin:0 auto!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;transform-origin:center bottom!important}
  #characterSelectOverlay .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"]{height:84%!important}
  #characterSelectOverlay .occupied-slot>small{margin-top:0!important;line-height:1.1!important}
  #characterSelectOverlay .occupied-slot h2{margin:5px 0 3px!important;line-height:1.05!important}
  #characterSelectOverlay .occupied-slot p{min-height:13px!important;margin:0 0 12px!important;line-height:1.2!important}
  #characterSelectOverlay .occupied-slot .slot-actions{position:static!important;inset:auto!important;width:100%!important;margin-top:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important}
  #characterSelectOverlay .occupied-slot>.slot-actions button{min-height:38px!important}
}
@media(max-width:430px){
  #characterSelectOverlay .occupied-slot{min-height:374px!important}
  #characterSelectOverlay .occupied-slot.last-used{min-height:438px!important}
  #characterSelectOverlay .occupied-slot .slot-portrait{flex-basis:207px!important;height:207px!important}
  #characterSelectOverlay .occupied-slot.last-used .slot-portrait{flex-basis:270px!important;height:270px!important}
  #characterSelectOverlay .occupied-slot .slot-portrait img,#characterSelectOverlay .occupied-slot.last-used .slot-portrait img{height:92%!important}
  #characterSelectOverlay .occupied-slot:not(.last-used) .slot-portrait img[data-player-class="sura"]{height:84%!important}
  #characterSelectOverlay .occupied-slot p{margin-bottom:10px!important}
}

/* v0.13.5.4 — isolated Arena avatar composition. Selector v0.13.5.3 is intentionally untouched. */
@media(max-width:800px){
  /* PvP duel: both sides share exactly one portrait geometry. */
  body[data-active-screen="arena"] .arena-battle-portrait,
  body[data-active-screen="arena"] .arena-battle-portrait.enemy{height:188px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important}
  body[data-active-screen="arena"] .arena-battle-portrait .arena-battle-portrait-button,
  body[data-active-screen="arena"] .arena-battle-portrait.enemy .arena-battle-portrait-button{height:100%!important;width:100%!important;display:flex!important;align-items:flex-end!important;justify-content:center!important}
  body[data-active-screen="arena"] .arena-battle-portrait .arena-battle-portrait-button img,
  body[data-active-screen="arena"] .arena-battle-portrait.enemy .arena-battle-portrait-button img{height:92%!important;width:auto!important;max-height:92%!important;max-width:92%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;margin:0 auto!important}
  /* Opponent list: isolated cropped Arena art; Sura gets only local optical compensation. */
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important}
  body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{height:88%!important;width:auto!important;max-height:88%!important;max-width:88%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;margin:0 auto!important}
  body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{height:96%!important;max-height:96%!important;max-width:96%!important}
  /* Ranking: one grid, one frame, one baseline. */
  body[data-active-screen="arena"] .arena-ranking-row{grid-template-columns:34px 72px minmax(0,1fr)!important;min-height:90px!important;gap:10px!important;padding:8px 10px!important;align-items:center!important}
  body[data-active-screen="arena"] .arena-ranking-avatar{width:70px!important;height:70px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important}
  body[data-active-screen="arena"] .arena-ranking-avatar img{height:91%!important;width:auto!important;max-height:91%!important;max-width:91%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;margin:0 auto!important}
  body[data-active-screen="arena"] .arena-ranking-avatar img[data-player-class="sura"]{height:96%!important;max-height:96%!important;max-width:96%!important}
}
@media(max-width:430px){
  body[data-active-screen="arena"] .arena-battle-portrait,
  body[data-active-screen="arena"] .arena-battle-portrait.enemy{height:176px!important}
  body[data-active-screen="arena"] .arena-ranking-row{grid-template-columns:30px 66px minmax(0,1fr)!important;min-height:84px!important;gap:8px!important;padding:7px!important}
  body[data-active-screen="arena"] .arena-ranking-avatar{width:64px!important;height:64px!important}
}

/* v0.13.5.5 — Arena compact professional pass. Selector/login intentionally untouched. */
body[data-active-screen="arena"] .arena-ranking-row{grid-template-columns:34px 66px minmax(0,1fr) auto!important;min-height:76px!important;height:auto!important;gap:9px!important;padding:7px 10px!important;align-items:center!important}
body[data-active-screen="arena"] .arena-ranking-row>em{grid-column:4!important;grid-row:1!important;align-self:center!important;justify-self:end!important;margin:0!important;white-space:nowrap!important;font-size:15px!important;font-style:normal!important;font-weight:800!important;color:#e5b960!important}
body[data-active-screen="arena"] .arena-ranking-row>div{min-width:0!important;align-self:center!important}
body[data-active-screen="arena"] .arena-ranking-row>div>b{display:block!important;margin-bottom:3px!important}
body[data-active-screen="arena"] .arena-ranking-row>div>small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar img{height:91%!important;max-height:91%!important;max-width:91%!important}
body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{height:112%!important;max-height:112%!important;max-width:112%!important}
body[data-active-screen="arena"] .arena-opponent-main{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:3px!important;padding:7px 8px!important;min-width:0!important}
body[data-active-screen="arena"] .arena-opponent-main>b{line-height:1.05!important}
body[data-active-screen="arena"] .arena-inline-stats{display:block!important;margin:0!important}
body[data-active-screen="arena"] .arena-inline-stats span{white-space:nowrap!important}
body[data-active-screen="arena"] .arena-risk{display:flex!important;gap:14px!important;margin:1px 0 0!important;white-space:nowrap!important}
body[data-active-screen="arena"] .arena-battle-topbar{display:flex;justify-content:flex-start;margin:0 0 8px}
body[data-active-screen="arena"] .arena-battle-topbar button{min-height:38px;padding:7px 14px;border:1px solid #7b5834;background:#111014;color:#e6c68e;font-weight:800}
body[data-active-screen="arena"] .arena-battle-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;align-items:start!important}
body[data-active-screen="arena"] .arena-battle-layout .arena-fighter-panel{grid-row:1!important;min-width:0!important}
body[data-active-screen="arena"] .arena-battle-layout .player-fighter{grid-column:1!important}
body[data-active-screen="arena"] .arena-battle-layout .enemy-fighter{grid-column:2!important}
body[data-active-screen="arena"] .arena-battle-layout .arena-combat-core{grid-column:1/-1!important;grid-row:2!important;min-height:0!important;height:auto!important}
body[data-active-screen="arena"] .arena-battle-portrait-button{display:flex!important;align-items:flex-end!important;justify-content:center!important;width:100%!important;height:100%!important}
body[data-active-screen="arena"] .arena-battle-portrait-button img{width:auto!important;height:94%!important;max-width:94%!important;max-height:94%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;margin:0 auto!important}
body[data-active-screen="arena"] .arena-clean-stats{grid-template-columns:1fr 1fr!important}
body[data-active-screen="arena"] .arena-turn-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;margin-bottom:8px;border:1px solid #55422f;background:#0b0d10}
body[data-active-screen="arena"] .arena-turn-panel small{font-size:9px;color:#8e8b87;letter-spacing:.8px}
body[data-active-screen="arena"] .arena-turn-panel b{font:800 18px Georgia,serif;color:#e7c17d}
body[data-active-screen="arena"] .arena-log-title{margin-top:10px!important}
body[data-active-screen="arena"] .arena-surrender{display:block;width:100%;min-height:42px;margin-top:10px;border:1px solid #7d3c34;background:linear-gradient(#351814,#1b0d0b);color:#e9aaa0;font-weight:900}
@media(max-width:600px){
 body[data-active-screen="arena"] .arena-ranking-row{grid-template-columns:28px 62px minmax(0,1fr) auto!important;min-height:72px!important;gap:7px!important;padding:6px 7px!important}
 body[data-active-screen="arena"] .arena-ranking-avatar{width:60px!important;height:60px!important}
 body[data-active-screen="arena"] .arena-ranking-row>em{grid-column:4!important;font-size:12px!important}
 body[data-active-screen="arena"] .arena-ranking-row>div>b{font-size:17px!important}
 body[data-active-screen="arena"] .arena-ranking-row>div>small{font-size:8px!important}
 body[data-active-screen="arena"] .arena-opponent-main{padding:5px 6px!important;gap:2px!important}
 body[data-active-screen="arena"] .arena-risk{gap:9px!important;font-size:8px!important}
 body[data-active-screen="arena"] .arena-battle-layout{gap:7px!important}
 body[data-active-screen="arena"] .arena-clean-stats span{font-size:10px!important;padding:7px 4px!important}
}

/* v0.13.5.6 — Arena optical micro-tuning. Selector/login remains frozen. */
/* Opponent list: Warrior stays the optical reference; only requested classes are tuned locally. */
body[data-active-screen="arena"] .arena-opponent-v1.arena-class-ninja .arena-avatar img{height:94%!important;max-height:94%!important;max-width:94%!important}
body[data-active-screen="arena"] .arena-opponent-v1.arena-class-shaman .arena-avatar img{height:88%!important;max-height:88%!important;max-width:88%!important}
body[data-active-screen="arena"] .arena-opponent-v1.arena-class-sura .arena-avatar img{height:120%!important;max-height:120%!important;max-width:120%!important}
/* Duel: same portrait geometry on both sides, with tiny class-only optical compensation. */
body[data-active-screen="arena"] .arena-battle-portrait-button img[data-player-class="ninja"]{height:97%!important;max-height:97%!important;max-width:97%!important}
body[data-active-screen="arena"] .arena-battle-portrait-button img[data-player-class="shaman"]{height:91%!important;max-height:91%!important;max-width:91%!important}
/* Duel cards are a matched pair: centered titles and identical vertical tracks. */
body[data-active-screen="arena"] .arena-battle-layout{align-items:stretch!important}
body[data-active-screen="arena"] .arena-battle-layout .arena-fighter-panel{height:100%!important;display:flex!important;flex-direction:column!important}
body[data-active-screen="arena"] .arena-fighter-panel>.panel-title{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
body[data-active-screen="arena"] .arena-fighter-panel>.panel-title>span{width:100%!important;text-align:center!important}
body[data-active-screen="arena"] .arena-battle-meta{min-height:42px!important;display:flex!important;align-items:flex-start!important;justify-content:center!important}
body[data-active-screen="arena"] .arena-fighter-panel .battle-bars{margin-top:0!important}
body[data-active-screen="arena"] .arena-fighter-panel .arena-clean-stats{margin-top:auto!important}
@media(max-width:600px){
 body[data-active-screen="arena"] .arena-battle-meta{min-height:38px!important}
}

/* v0.13.5.7 — Ranking micro-scale closeout. Arena ranking only. */
body[data-active-screen="arena"] .arena-ranking-avatar img[data-player-class="ninja"]{height:96%!important;max-height:96%!important;max-width:96%!important}
body[data-active-screen="arena"] .arena-ranking-avatar img[data-player-class="warrior"]{height:96%!important;max-height:96%!important;max-width:96%!important}

/* v0.13.5.8 — final Arena avatar optical polish. Selector/login intentionally untouched. */
/* Ranking: Ninja receives one last minimal increase; all other ranking classes keep v0.13.5.7 values. */
body[data-active-screen="arena"] .arena-ranking-avatar img[data-player-class="ninja"]{height:100%!important;max-height:100%!important;max-width:100%!important}
/* Opponent picker: Shaman is reduced slightly only in this context. */
body[data-active-screen="arena"] .arena-opponent-v1.arena-class-shaman .arena-avatar img{height:85%!important;max-height:85%!important;max-width:85%!important}

/* v0.13.6.0 — Arena League v1 */
body[data-active-screen="arena"] .arena-ranking-row.zone-promote{border-left:3px solid rgba(77,190,105,.75)}
body[data-active-screen="arena"] .arena-ranking-row.zone-demote{border-left:3px solid rgba(194,75,75,.75)}
body[data-active-screen="arena"] .arena-ranking-row.zone-stay{border-left:3px solid rgba(180,180,180,.25)}
body[data-active-screen="arena"] .arena-last-season>div{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:8px 0;border-top:1px solid rgba(255,255,255,.08)}
body[data-active-screen="arena"] .arena-last-season>div span{grid-column:1/2;font-size:12px;opacity:.82}
body[data-active-screen="arena"] .arena-last-season>div button{grid-column:2;grid-row:1/3}

/* v0.13.6.1 — Arena league browser + rewards presentation + DEV season close */
body[data-active-screen="arena"] .arena-league-browser{display:grid;gap:8px;max-width:560px;margin:0 auto 14px;padding:0 10px}
body[data-active-screen="arena"] .arena-league-panel{border:1px solid #49392b;background:linear-gradient(180deg,#100d0a,#090c10);box-shadow:inset 0 1px rgba(255,255,255,.025)}
body[data-active-screen="arena"] .arena-league-panel.is-open{border-color:#765532}
body[data-active-screen="arena"] .arena-league-toggle{width:100%;display:grid;grid-template-columns:42px 1fr 28px;gap:9px;align-items:center;text-align:left;padding:11px 12px;border:0;background:transparent;color:#d9c8aa}
body[data-active-screen="arena"] .arena-league-toggle .arena-league-medal{font-size:24px;text-align:center}
body[data-active-screen="arena"] .arena-league-toggle>span:nth-child(2){display:grid;gap:2px}
body[data-active-screen="arena"] .arena-league-toggle b{font:700 16px Georgia,serif;color:#e1bd78}
body[data-active-screen="arena"] .arena-league-toggle small{font-size:9px;color:#81878a}
body[data-active-screen="arena"] .arena-league-toggle em{font:normal 22px/1 Georgia,serif;color:#b88b49;text-align:center}
body[data-active-screen="arena"] .arena-league-body{border-top:1px solid #3b3026}
body[data-active-screen="arena"] .arena-league-body .arena-ranking-head{margin:0;padding:10px 12px}
body[data-active-screen="arena"] .arena-league-body .arena-ranking-list{padding:0 8px 8px;max-height:420px}
body[data-active-screen="arena"] .arena-rewards-hero{max-width:560px;margin:0 auto 10px;padding:18px 16px;border:1px solid #70502e;background:radial-gradient(circle at 50% 0,rgba(180,126,53,.16),transparent 55%),linear-gradient(180deg,#17110c,#090c10);text-align:center}
body[data-active-screen="arena"] .arena-rewards-hero small{font-size:9px;letter-spacing:.14em;color:#9b7b4d}
body[data-active-screen="arena"] .arena-rewards-hero h2{margin:5px 0 3px;font:700 25px Georgia,serif;color:#e6bd70}
body[data-active-screen="arena"] .arena-rewards-hero p{margin:0;color:#9a9d9e;font-size:11px}
body[data-active-screen="arena"] .arena-season-progress{height:5px;margin:12px auto 5px;max-width:300px;background:#28221b;border:1px solid #4a3a29;overflow:hidden}
body[data-active-screen="arena"] .arena-season-progress span{display:block;height:100%;background:linear-gradient(90deg,#8f622b,#dfb45e)}
body[data-active-screen="arena"] .arena-rewards-hero em{font-style:normal;font-size:9px;color:#7f8588}
body[data-active-screen="arena"] .arena-podium-rewards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:560px;margin:0 auto 10px;padding:0 10px}
body[data-active-screen="arena"] .arena-podium-rewards article{display:grid;justify-items:center;align-content:start;gap:5px;min-height:156px;padding:13px 8px;border:1px solid #54412d;background:linear-gradient(180deg,#12100d,#090c10);text-align:center}
body[data-active-screen="arena"] .arena-podium-rewards article.place-1{border-color:#a87935;box-shadow:inset 0 0 20px rgba(184,130,52,.08)}
body[data-active-screen="arena"] .arena-podium-rewards article>span{font-size:28px}
body[data-active-screen="arena"] .arena-podium-rewards article>small{font-size:8px;letter-spacing:.1em;color:#8d8374}
body[data-active-screen="arena"] .arena-podium-rewards article>b{font:700 19px Georgia,serif;color:#e3b75f}
body[data-active-screen="arena"] .arena-podium-rewards article>em{font-style:normal;font-size:9px;color:#9b9b95}
body[data-active-screen="arena"] .arena-podium-rewards article>strong{margin-top:auto;font-size:8px;color:#caa35e}
body[data-active-screen="arena"] .arena-promotion-rewards{display:grid;grid-template-columns:1.45fr repeat(4,.7fr);gap:6px;max-width:560px;margin:0 auto 10px;padding:10px;border:1px solid #493a2d;background:#0b0e11}
body[data-active-screen="arena"] .arena-promotion-rewards>div{display:grid;align-content:center;gap:3px;padding:5px}
body[data-active-screen="arena"] .arena-promotion-rewards>div small{font-size:8px;color:#a47e45;letter-spacing:.08em}
body[data-active-screen="arena"] .arena-promotion-rewards>div b{color:#d9c8aa}
body[data-active-screen="arena"] .arena-promotion-rewards>div p{margin:0;font-size:8px;color:#777e81}
body[data-active-screen="arena"] .arena-promotion-rewards>span{display:grid;justify-items:center;align-content:center;gap:3px;padding:8px 4px;border:1px solid #342c25;background:#090c10;text-align:center}
body[data-active-screen="arena"] .arena-promotion-rewards>span i{font-style:normal;font-size:18px}
body[data-active-screen="arena"] .arena-promotion-rewards>span b{font-size:8px;color:#aaa093}
body[data-active-screen="arena"] .arena-promotion-rewards>span strong{font-size:11px;color:#dfb45e}
body[data-active-screen="arena"] .arena-promotion-rewards>span.earned{box-shadow:inset 0 0 0 1px #6d8b5b}
body[data-active-screen="arena"] .arena-rules-polished{max-width:540px;margin-left:auto!important;margin-right:auto!important}
@media(max-width:800px){body[data-active-screen="arena"] .arena-podium-rewards{gap:5px}body[data-active-screen="arena"] .arena-podium-rewards article{min-height:145px;padding:10px 5px}body[data-active-screen="arena"] .arena-podium-rewards article>b{font-size:16px}body[data-active-screen="arena"] .arena-promotion-rewards{grid-template-columns:repeat(2,1fr)}body[data-active-screen="arena"] .arena-promotion-rewards>div{grid-column:1/-1}body[data-active-screen="arena"] .arena-league-body .arena-ranking-list{max-height:390px}}

/* v0.13.6.2 — Arena mobile UX: turn counter shares return row. */
body[data-active-screen="arena"] .arena-battle-topbar{justify-content:space-between;align-items:stretch;gap:8px}
body[data-active-screen="arena"] .arena-turn-inline{min-width:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 12px;border:1px solid #55422f;background:#0b0d10}
body[data-active-screen="arena"] .arena-turn-inline small{font-size:8px;color:#8e8b87;letter-spacing:.7px}
body[data-active-screen="arena"] .arena-turn-inline b{font:800 15px Georgia,serif;color:#e7c17d}

/* v0.13.6.3 — approved world progression to ~90 */
.location-subzones{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;margin:8px 0}.location-subzones span{display:flex;flex-direction:column;gap:2px;padding:7px 9px;border:1px solid rgba(211,171,92,.22);background:rgba(0,0,0,.18);border-radius:8px;font-size:12px}.location-subzones b{font-size:10px;letter-spacing:.08em;color:#d7b879}.location-note{margin:6px 0 8px;padding:7px 9px;border-left:3px solid #b88a43;background:rgba(184,138,67,.08);font-size:12px;color:#d9c9ad}
/* v0.13.6.5 — selectable location subzones */
.location-subzones .location-subzone{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:1px solid rgba(211,171,92,.24);background:rgba(0,0,0,.22);border-radius:8px;color:inherit;text-align:left;min-height:68px}
.location-subzones .location-subzone b{font-size:10px;letter-spacing:.08em;color:#d7b879}
.location-subzones .location-subzone span{font-size:14px;color:#eee5d6}
.location-subzones .location-subzone.selected{border-color:#d59b51;background:linear-gradient(180deg,rgba(120,63,20,.34),rgba(55,27,10,.42));box-shadow:inset 0 0 0 1px rgba(240,176,88,.16)}
.location-subzones .location-subzone:disabled{opacity:.5}

/* v0.13.6.6 — Księga Bestii podzielona według stref lokalizacji */
.bestiary-zone-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:0 2px}
.bestiary-zone-tabs button{min-width:0;padding:10px 8px;border:1px solid rgba(190,139,67,.45);border-radius:10px;background:rgba(8,12,18,.8);color:#d9d2c5;text-align:left}
.bestiary-zone-tabs button b{display:block;font-size:11px;letter-spacing:.12em;color:#cfa765;margin-bottom:4px}
.bestiary-zone-tabs button span{display:block;font-size:12px;line-height:1.2;white-space:normal}
.bestiary-zone-tabs button.active{border-color:#d79a4a;background:linear-gradient(180deg,rgba(91,47,20,.78),rgba(36,24,14,.9));box-shadow:0 0 0 1px rgba(215,154,74,.25) inset}
@media(max-width:640px){.bestiary-zone-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.bestiary-zone-tabs button{padding:9px 7px}.bestiary-zone-tabs button span{font-size:11px}}

/* v0.13.6.9 — compact summoned Metin mobs */
body[data-active-screen="combat"] .enemy-formation:has(.stone-add){display:flex!important;flex-direction:column!important;gap:5px!important;margin:8px 10px 10px!important;max-height:none!important}
body[data-active-screen="combat"] .group-target.stone-add{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;min-height:42px!important;height:42px!important;padding:5px 8px 8px!important;text-align:left!important;place-items:stretch!important;align-content:center!important;border-radius:8px!important}
body[data-active-screen="combat"] .group-target.stone-add>b{grid-row:1!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;font-size:10px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;text-align:left!important}
body[data-active-screen="combat"] .group-target.stone-add>small{grid-row:2!important;font-size:7px!important;line-height:1.1!important;margin-top:3px!important;text-align:left!important;color:#c9b7ae!important}
body[data-active-screen="combat"] .group-target.stone-add>i{height:4px!important}
body[data-active-screen="combat"] #enemySoloEmblem.stone-target-active{outline:1px solid #f0aa43;box-shadow:0 0 0 2px #e0902b44}
.target-card.cooldown{opacity:.68}

/* v0.13.6.18 build diagnostics */
.build-id-card{display:grid;gap:6px;padding:10px 12px;border:1px solid rgba(211,146,59,.45);border-radius:8px;background:rgba(12,10,9,.65);font-size:12px;line-height:1.35}
.build-id-card span{display:flex;justify-content:space-between;gap:10px;align-items:center}.build-id-card strong{font-family:monospace;letter-spacing:.02em}.build-id-card [data-ok="1"]{font-weight:700}.build-id-card [data-ok="0"]{font-weight:700}
@media(max-width:760px){.build-id-card{font-size:11px;padding:9px 10px}.build-diagnostics{display:block!important}}

/* v0.13.6.19 — compact group targets, activity card and combat instance badge */
.activity-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:10px 12px;border:1px solid #7d5b30;border-radius:10px;background:linear-gradient(135deg,#21180f,#0b0e12);box-shadow:inset 0 0 0 1px #c0903c18}.activity-panel[hidden]{display:none!important}.activity-panel div{display:grid;gap:2px;min-width:0}.activity-panel small{font-size:8px;letter-spacing:.16em;color:#b88948}.activity-panel b{font-size:13px;color:#f0d39b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-panel span{font-size:9px;color:#a8a7a2}.activity-panel button{flex:0 0 auto;min-height:36px;padding:7px 10px;font-size:9px}
body[data-active-screen="combat"] .screen-heading{position:relative;padding-right:150px!important}.combat-instance-badge{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:132px;min-width:0;padding:7px 9px;border:1px solid #805c2d;border-radius:9px;background:linear-gradient(160deg,#21170f,#0b0e12);display:grid;gap:1px;text-align:left;box-shadow:inset 0 0 0 1px #d7a54a14}.combat-instance-badge small{font-size:7px;letter-spacing:.14em;color:#b98544}.combat-instance-badge b{font-size:10px;line-height:1.1;color:#f0cf91;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.combat-instance-badge span{font-size:8px;color:#aaa39a}
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)){display:flex!important;gap:5px!important;margin:7px 6px 6px!important;max-height:none!important;min-height:0!important}.enemy-formation:not(:has(.stone-add)) .group-target{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;flex:1 1 0!important;min-width:0!important;min-height:48px!important;height:48px!important;padding:5px 5px 8px!important;border-radius:8px!important;text-align:left!important}.enemy-formation:not(:has(.stone-add)) .group-target .mob-thumb{display:grid!important;place-items:center!important;flex:0 0 28px!important;width:28px!important;height:28px!important;border:1px solid #82423d!important;border-radius:50%!important;background:#1a0f10!important;font-size:13px!important;color:#d76155!important}.enemy-formation:not(:has(.stone-add)) .group-target.active .mob-thumb{border-color:#d69b42!important;color:#ffc367!important}.group-target-copy{display:grid;gap:2px;min-width:0;overflow:hidden}.enemy-formation:not(:has(.stone-add)) .group-target .group-target-copy>b{display:block!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;margin:0!important;font-size:8px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:inherit!important}.enemy-formation:not(:has(.stone-add)) .group-target .group-target-copy>small{display:block!important;font-size:6.5px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#bba9a1!important}.enemy-formation:not(:has(.stone-add)) .group-target>i{height:3px!important}.group-target-policy{display:flex;align-items:center;gap:7px;margin:0 7px 5px;padding:5px 7px;border:1px solid #4d4033;border-radius:7px;background:#0b0e12}.group-target-policy[hidden]{display:none!important}.group-target-policy span{font-size:7px;letter-spacing:.11em;color:#b88948;white-space:nowrap}.group-target-policy select{min-width:0;flex:1;height:30px;padding:3px 7px;font-size:8px}
@media(max-width:650px){body[data-active-screen="combat"] .screen-heading{padding-right:132px!important}.combat-instance-badge{right:7px;width:114px;padding:6px 7px}.combat-instance-badge b{font-size:9px}.activity-panel{margin:0 0 8px;padding:8px 9px}.activity-panel b{font-size:11px}.activity-panel span{font-size:8px}.activity-panel button{min-height:32px;padding:5px 8px;font-size:8px}.enemy-formation:not(:has(.stone-add)) .group-target{height:44px!important;min-height:44px!important;padding:4px 4px 7px!important;gap:4px!important}.enemy-formation:not(:has(.stone-add)) .group-target .mob-thumb{flex-basis:24px!important;width:24px!important;height:24px!important;font-size:11px!important}.enemy-formation:not(:has(.stone-add)) .group-target .group-target-copy>b{font-size:7px!important}.enemy-formation:not(:has(.stone-add)) .group-target .group-target-copy>small{font-size:5.8px!important}}

/* v0.13.6.20 — avatar-only group targets */
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target{display:grid!important;place-items:center!important;height:46px!important;min-height:46px!important;padding:4px 4px 7px!important}
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target .mob-thumb{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;flex:none!important;border:1px solid #82423d!important;border-radius:50%!important;background:#1a0f10!important;font-size:14px!important;color:#d76155!important}
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target.active .mob-thumb{border-color:#d69b42!important;color:#ffc367!important}
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target-copy{display:none!important}
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target>i{height:4px!important}
@media(max-width:650px){body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target{height:42px!important;min-height:42px!important}.enemy-formation:not(:has(.stone-add)) .group-target .mob-thumb{width:27px!important;height:27px!important;font-size:12px!important}}


/* v0.13.6.21 — per-location Challenges + unified PvE combat report */
.location-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.zone-challenge-modal{display:grid;gap:14px}.zone-challenge-modal>p{margin:0;color:#aaa49a;font-size:12px}.zone-challenge-modal section{display:grid;gap:7px;padding:10px;border:1px solid #4d3c2b;background:#0b0e12}.zone-challenge-modal h3{margin:0 0 2px;font:700 13px Georgia,serif;letter-spacing:.12em;color:#d4a860}.challenge-entry{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px;border:1px solid #3d342c;background:linear-gradient(180deg,#15110d,#0a0d10)}.challenge-entry.cooldown{opacity:.66}.challenge-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #79572f;border-radius:50%;color:#e1b45e;background:#15100b}.challenge-entry>div:nth-child(2){display:grid;gap:1px;min-width:0}.challenge-entry small{font-size:7px;letter-spacing:.12em;color:#a97942}.challenge-entry b{font-size:12px;color:#eee0c8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.challenge-entry span{font-size:8px;color:#92918d}.challenge-entry button{min-height:34px;padding:6px 9px;font-size:8px}.challenge-empty{padding:9px;border:1px dashed #3a342d;color:#74777a;font-size:9px}
.pve-report-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.78);backdrop-filter:blur(3px)}.pve-report-modal[hidden]{display:none!important}.pve-report-card{position:relative;width:min(680px,100%);max-height:min(88vh,900px);overflow:auto;padding:18px;border:1px solid #8a6735;background:radial-gradient(circle at 50% -10%,rgba(139,93,38,.18),transparent 38%),linear-gradient(180deg,#17120d,#090c10 72%);box-shadow:0 20px 70px #000,inset 0 0 0 1px #e4b76818}.pve-report-close{position:absolute;right:10px;top:10px;width:34px;height:34px;padding:0;border:1px solid #5d4630;background:#110e0b;color:#d2ab70;font-size:20px;z-index:2}.pve-report-head{padding-right:46px}.pve-report-head small{font-size:8px;letter-spacing:.16em;color:#a9783d}.pve-report-head h2{margin:4px 0;font:700 28px Georgia,serif;color:#f0dfc0}.pve-report-head p{margin:0;color:#99938a;font-size:11px}.pve-report-result{display:inline-flex;margin:13px 0 10px;padding:6px 10px;border:1px solid #3d7248;color:#71d487;background:#0b2413;font-size:10px;font-weight:800;letter-spacing:.08em}.pve-report-result.neutral{border-color:#6e5a3c;color:#d1b27b;background:#20170e}.pve-report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:3px 0 16px}.pve-report-stats span{display:grid;place-items:center;gap:4px;min-height:70px;padding:8px;border:1px solid #403528;background:#0a0c0f;text-align:center}.pve-report-stats b{font:700 17px Georgia,serif;color:#e8cf9c}.pve-report-stats small{font-size:7px;letter-spacing:.09em;color:#878783}.pve-loot-head{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:0 0 8px}.pve-loot-head>div:first-child{display:grid}.pve-loot-head small{font-size:8px;letter-spacing:.14em;color:#c18d4c}.pve-loot-head b{font-size:12px;color:#ead8b9}.pve-loot-head>div:last-child{display:flex;gap:5px}.pve-loot-head button{padding:6px 8px;min-height:30px;font-size:7px}.pve-loot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-height:58px}.pve-loot-item{position:relative;min-width:0;border:1px solid #3e342b;background:#0b0d10}.pve-loot-item.selected{border-color:#d39b48;box-shadow:inset 0 0 0 1px #d39b4828}.pve-loot-item label{display:grid;grid-template-columns:auto 34px minmax(0,1fr);gap:5px;align-items:center;padding:7px 28px 7px 6px;min-height:52px;cursor:pointer}.pve-loot-item input{width:14px;height:14px}.pve-loot-item i{display:grid;place-items:center;width:32px;height:32px;border:1px solid #5d4730;background:#16100a;color:#e5b969;font-style:normal;font-size:17px}.pve-loot-item span{display:grid;min-width:0}.pve-loot-item b{font-size:8px;color:#ddd2c1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pve-loot-item small{font-size:7px;color:#8e8c86}.pve-loot-item>button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:22px;height:28px;padding:0;border:1px solid #4b4034;background:#111;color:#b99055;font:bold 11px Georgia,serif}.pve-loot-empty{grid-column:1/-1;padding:18px;border:1px dashed #3a342c;text-align:center;color:#777;font-size:9px}.pve-loot-preview{display:grid;grid-template-columns:46px 1fr;gap:10px;align-items:center;margin-top:9px;padding:9px;border:1px solid #5b452d;background:#0c0e11}.pve-loot-preview>i{display:grid;place-items:center;width:44px;height:44px;border:1px solid #7b5a31;color:#e8b75c;font-size:22px;font-style:normal}.pve-loot-preview>div{display:grid;gap:2px}.pve-loot-preview b{color:#f0d9af}.pve-loot-preview span{font-size:9px;color:#afaaa1}.pve-loot-preview small{font-size:8px;color:#898a88}.pve-report-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-top:12px}.pve-report-actions button{min-height:42px}.pve-report-actions .primary{border-color:#b78338;background:linear-gradient(180deg,#6d421c,#35200f);color:#ffe0a3}.pve-report-sale{margin-top:8px;padding:7px;border-left:3px solid #b58543;background:#b5854312;color:#d6b77f;font-size:9px}
@media(max-width:650px){.location-actions{grid-template-columns:1fr 1fr!important}.location-actions [data-open-bestiary]{grid-column:1/-1}.pve-report-modal{padding:8px}.pve-report-card{max-height:91vh;padding:14px 10px}.pve-report-head h2{font-size:22px}.pve-report-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.pve-report-stats span{min-height:58px}.pve-loot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.pve-loot-head{align-items:stretch;flex-direction:column}.pve-loot-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.challenge-entry{grid-template-columns:30px minmax(0,1fr) auto;gap:6px;padding:7px}.challenge-icon{width:28px;height:28px}.challenge-entry b{font-size:10px}.challenge-entry span{font-size:7px}.challenge-entry button{padding:5px 7px;font-size:7px}}


/* v0.13.6.76.4 — service inventory preview + more compact forge */
.service-gear-picker.board-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-rows:72px!important;gap:6px!important;max-height:min(48vh,520px)!important;overflow:auto!important;padding:10px!important;background:radial-gradient(circle at 50% 15%,#1c2b3421,transparent 44%)!important}
.service-gear-picker.board-grid .empty-slot{border:1px solid #353b40;background:linear-gradient(145deg,#0d1216,#06080b);box-shadow:inset 0 0 10px #0008}
.service-gear-picker.board-grid .service-gear{position:relative!important;display:grid!important;place-items:center!important;min-height:0!important;padding:3px!important;overflow:hidden!important;border:1px solid #55534c!important;background:radial-gradient(circle at 50% 35%,#19242c55,transparent 58%),linear-gradient(#11161b,#070a0d)!important;box-shadow:inset 0 0 13px #000b!important;text-align:center!important}
.service-gear-picker.board-grid .service-gear.active{outline:2px solid #ffd264!important;outline-offset:-2px}
.service-gear-picker.board-grid .service-gear>i{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;font-style:normal!important;font-size:22px!important}
.service-gear-picker.board-grid .service-gear>b{display:none!important}
.service-gear-picker.board-grid .service-gear small{position:absolute;left:4px;bottom:4px;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px!important;line-height:1;color:#716b62!important}
.service-gear-picker.board-grid .service-gear .service-gear-stage{position:absolute;right:4px;bottom:4px;font:700 8px/1 Georgia,serif;color:#e5b45f;text-shadow:0 1px #000}
.service-gear-picker.board-grid .service-gear[data-cells="2"]::after{content:"";position:absolute;left:2px;right:2px;top:50%;height:1px;background:#71522f7a;z-index:1}
.service-gear-picker.board-grid .service-gear[data-cells="3"]::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent calc(33.333% - .5px),#71522f7a calc(33.333% - .5px) calc(33.333% + .5px),transparent calc(33.333% + .5px) calc(66.666% - .5px),#71522f7a calc(66.666% - .5px) calc(66.666% + .5px),transparent calc(66.666% + .5px));z-index:1;pointer-events:none}
.forge-comparison.forge-comparison-compact>div{min-height:180px!important;padding:14px!important}
.forge-item-head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:center;margin:2px 0 8px}
.forge-item-head .v76-gear-icon{width:56px;height:78px;border:1px solid #6f5130;background:radial-gradient(circle at 50% 35%,#25333d66,transparent 60%),linear-gradient(145deg,#11171d,#07090d);box-shadow:inset 0 0 18px #000c;color:#d4a052;font-style:normal;font-size:28px}
.forge-item-head b{display:block;margin:0 0 2px;color:#efca76;font:700 18px/1.1 Georgia,serif}
.forge-item-head span{display:block;color:#a7afb5;font-size:11px}
@media (max-width: 760px){
  .service-gear-picker.board-grid{grid-auto-rows:64px!important;gap:5px!important;padding:8px!important}
  .forge-comparison.forge-comparison-compact>div{min-height:0!important;padding:12px!important}
  .forge-item-head{grid-template-columns:50px minmax(0,1fr);gap:8px}
  .forge-item-head .v76-gear-icon{width:50px!important;height:68px!important;font-size:24px!important}
}

/* ================================================================
   SEKCJA: master-ui.css
   ================================================================ */
:root{
  --master-surface:#0d1117;
  --master-line:#694b29;
  --master-gold:#d4a34f;
  --master-gold-hi:#f4d38b;
}

.skip-link{position:fixed;z-index:999;left:12px;top:-60px;padding:12px 16px;background:#f0bd5b;color:#111;font-weight:800;border-radius:4px;transition:top .18s}
.skip-link:focus{top:12px}
.rail-brand small{font-size:10px;letter-spacing:.7px;color:#b99153}
.nav-heading{font-size:11px!important;letter-spacing:2px!important}
.rail-nav .nav-group button{border-radius:3px}
.rail-nav .nav-group button:focus-visible,.mobile-dock button:focus-visible,.city-service-card:focus-visible{outline:2px solid var(--master-gold-hi);outline-offset:2px}

.city-hero{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:165px;padding:28px 34px;overflow:hidden;background:radial-gradient(circle at 85% 40%,#7e4c1b33,transparent 28%),linear-gradient(115deg,#1b1712,#0c1118 72%)}
.city-hero::after{content:"";position:absolute;inset:8px;border:1px solid #b7813a24;pointer-events:none}
.city-hero>div{position:relative;z-index:1;max-width:720px}
.city-hero small{color:#c7944e;font-weight:800;letter-spacing:2.4px}
.city-hero h2{margin:7px 0 9px;font:700 clamp(26px,3vw,42px)/1 Georgia,serif;color:#f3dfb3}
.city-hero p{margin:0;color:#b6b0a7;font-size:15px;line-height:1.65}
.city-crest{position:relative;z-index:1;display:grid;place-items:center;width:96px;height:112px;clip-path:polygon(50% 0,92% 20%,84% 79%,50% 100%,16% 79%,8% 20%);background:linear-gradient(145deg,#472c15,#17130f);color:#f1c46f;font:700 51px/1 Georgia,serif;filter:drop-shadow(0 10px 18px #000a)}

.master-city-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:14px}
.city-service-card{min-height:142px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:15px;padding:18px;text-align:left;border:1px solid #5a422a;background:linear-gradient(145deg,#171713,#0b1016);box-shadow:inset 0 0 0 1px #d6a4540a,0 12px 28px #0005;transition:transform .16s,border-color .16s,background .16s}
.city-service-card:hover{transform:translateY(-2px);border-color:#ba8136;background:linear-gradient(145deg,#241b10,#0e141c)}
.city-service-card>span{display:grid;place-items:center;width:58px;height:58px;border:1px solid #8a602b;background:#0a0e14;color:#e3ad51;font-size:31px;box-shadow:inset 0 0 16px #b36e1726}
.city-service-card div{display:grid;gap:5px}
.city-service-card small{font-size:11px;color:#9b7443;letter-spacing:1.4px}
.city-service-card b{font:700 21px/1.1 Georgia,serif;color:#f0dfbe}
.city-service-card em{color:#949a9f;font-size:13px;font-style:normal;line-height:1.4}
.city-service-card strong{align-self:end;color:#d6a654;font-size:11px;letter-spacing:1px}
.city-service-card.featured{border-color:#8b5a25;background:radial-gradient(circle at 10% 0,#5f36132b,transparent 42%),linear-gradient(145deg,#1c1711,#0b1016)}
.city-service-card.planned{opacity:.72}
.city-service-card.planned strong{color:#8f9499}

.master-placeholder{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 24px;text-align:center;background:radial-gradient(circle at center,#a36a1821,transparent 36%),linear-gradient(145deg,#151714,#0a0e13)}
.placeholder-sigil{display:grid;place-items:center;width:112px;height:112px;margin-bottom:24px;border:1px solid #8d632d;background:#0a0e14;color:#d5a24c;font-size:54px;box-shadow:inset 0 0 25px #b1701a22,0 15px 35px #0008}
.master-placeholder small{color:#9b7443;font-size:12px;font-weight:800;letter-spacing:2.2px}
.master-placeholder h2{margin:9px 0 10px;font:700 31px/1.15 Georgia,serif;color:#efe1c7}
.master-placeholder p{max-width:650px;margin:0;color:#a5a9ad;font-size:15px;line-height:1.65}
.master-placeholder strong{margin-top:24px;padding:10px 18px;border:1px solid #5a4630;color:#aaa39a;background:#111318;font-size:12px;letter-spacing:1.8px}

@media(min-width:901px){
  #gameMain{max-width:1780px;margin-inline:auto}
  .screen-view{animation:masterReveal .2s ease-out}
}
@keyframes masterReveal{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}

@media(max-width:1320px){.master-city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
  .master-city-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .city-service-card{grid-template-columns:48px minmax(0,1fr);min-height:128px;padding:14px}
  .city-service-card>span{width:48px;height:48px;font-size:26px}
  .city-service-card strong{grid-column:2}
  .city-service-card b{font-size:19px}
  .city-hero{min-height:145px;padding:22px}
  .city-crest{width:72px;height:86px;font-size:40px}
  .master-placeholder{min-height:360px}
}
@media(max-width:600px){
  .top-hud{backdrop-filter:blur(12px)}
  .hud-currencies small{font-size:10px!important}
  .hud-currencies b{font-size:12px!important}
  .screen-heading small{font-size:10px!important}
  .screen-heading h1{font-size:27px!important}
  .master-city-grid{grid-template-columns:1fr;gap:9px}
  .city-service-card{min-height:112px}
  .city-service-card em{font-size:12px}
  .city-hero{align-items:flex-start}
  .city-hero p{font-size:14px}
  .city-crest{width:54px;height:65px;font-size:29px;flex:0 0 auto}
  .master-placeholder h2{font-size:26px}
  .master-placeholder p{font-size:14px}
  .mobile-dock b{font-size:10px!important}
}

/* v0.10.0 — location encounter controls and independent 3x formation */
.location-hunt-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:18px;margin-bottom:14px;border:1px solid #cb92348c;background:linear-gradient(135deg,#5c2a0cb8,#0c1219f0);box-shadow:inset 0 0 30px #ff82120f}
.location-hunt-control div:first-child{display:grid;gap:5px}.location-hunt-control small{color:#d9a44d;letter-spacing:.14em}.location-hunt-control b{color:#f4dfb1;font:700 1.08rem Georgia,serif}.location-hunt-control span{color:#9d9b94;font-size:.82rem}
.location-mode-buttons{display:flex;gap:8px}.location-mode-buttons button{min-width:138px;min-height:44px}.location-mode-buttons button:last-child{border-color:#a8452d;background:linear-gradient(#632315,#35130f);color:#ffd9c5}
.location-pool{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.target-pool{display:grid;gap:8px}
.respawn-status{display:grid;place-items:center;gap:5px;min-height:108px;margin:10px 0;border:1px solid #8e3028;background:radial-gradient(circle,#7d191359,#18080af0);color:#e8d2c5;text-align:center}.respawn-status[hidden]{display:none}.respawn-status b{color:#ff715f;font:700 1.5rem Georgia,serif;letter-spacing:.12em}.respawn-status span{color:#ffd0bc;font-weight:700}.respawn-status small{color:#a99086}
.enemy-formation .group-target b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.location-hunt-control{grid-template-columns:1fr}.location-mode-buttons{display:grid;grid-template-columns:1fr 1fr}.location-mode-buttons button{min-width:0}}
@media(max-width:560px){.location-pool{grid-template-columns:1fr}}
/* v0.11.1 feedback pass */
.bestiary-modal{position:fixed;inset:0;z-index:1200;background:rgba(2,5,10,.82);display:grid;place-items:center;padding:18px}.bestiary-modal[hidden]{display:none}.bestiary-dialog{width:min(760px,100%);max-height:88vh;overflow:auto;background:#0d1119;border:2px solid #9a6429;box-shadow:0 18px 70px #000;border-radius:18px;padding:16px}.bestiary-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #71451f;padding-bottom:12px}.bestiary-title h2{margin:2px 0}.bestiary-title button{font-size:28px;background:none;border:0;color:#e8c17b}.bestiary-tabs{display:flex;gap:8px;overflow:auto;padding:12px 0}.bestiary-tabs button{min-width:128px;display:grid;grid-template-columns:38px 1fr;text-align:left;gap:2px 8px;align-items:center}.bestiary-tabs button.active{border-color:#d69a43}.beast-thumb{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;border:1px solid #87592c;border-radius:8px}.bestiary-body{display:grid;gap:14px}.beast-profile{display:flex;gap:16px;align-items:center}.beast-profile>div:last-child{display:grid;gap:5px}.beast-large-thumb{width:110px;aspect-ratio:1;display:grid;place-items:center;font-size:42px;border:2px solid #9a6429;border-radius:16px}.beast-combat-stats,.session-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.beast-combat-stats span,.session-stats span{padding:10px;border:1px solid #493d31;background:#121722}.beast-loot-table>div{display:grid;grid-template-columns:34px 1fr auto auto;gap:8px;align-items:center;padding:9px;border-bottom:1px solid #342b23}.expedition-summary,.oracle-blessing{margin-top:14px}.session-items{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.session-items span{padding:7px 10px;border:1px solid #443729}.oracle-blessing{display:flex;justify-content:space-between;gap:14px;align-items:center;background:linear-gradient(100deg,#24150d,#251228)}.oracle-blessing>div{display:grid;gap:5px}.oracle-blessing button{min-height:48px}.waypoint-panel{display:none!important}.adventure-layout{grid-template-columns:1fr!important}.enemy-summary{grid-template-columns:repeat(2,1fr)}
@media(max-width:760px){.top-hud .hud-meter label{display:none!important}.top-hud .hud-currencies{display:none!important}.top-hud{padding:7px 10px!important;gap:6px!important}.top-hud .player-chip{min-height:50px!important}.top-hud .hud-bars{gap:4px!important}.top-hud .hud-meter .bar{height:6px!important}.bestiary-modal{padding:8px}.bestiary-dialog{max-height:92vh;padding:12px;border-radius:12px}.beast-profile{align-items:flex-start}.beast-large-thumb{width:82px}.oracle-blessing{display:grid}.oracle-blessing button{width:100%}.expedition-summary,.oracle-blessing{margin:10px 12px}.rush-combat-layout{align-items:start}}
.subscreen-back{margin:0 0 6px;padding:6px 10px;min-height:0;border:1px solid #6b4a2b;background:#111722;color:#d7b77a;border-radius:8px;font-size:12px}

/* v0.11.5 mobile wallet exception: keep Yang and Diamonds visible in the player chip. */
@media(max-width:760px){.top-hud .hud-currencies.compact-wallet{display:flex!important}}

/* v0.11.6 mobile stabilization */
.selection-head-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.selection-logout{min-height:42px;padding:9px 16px;border:1px solid rgba(218,180,105,.45);border-radius:10px;background:rgba(20,16,13,.86);color:#ead7ae;font-weight:800}
.session-logout-overlay{z-index:120}
.session-logout-card{width:min(92vw,440px);padding:24px;border:1px solid rgba(218,180,105,.35);border-radius:18px;background:#0d1014;box-shadow:0 20px 70px rgba(0,0,0,.65)}
.session-logout-card p{color:#aeb4bc;margin:14px 0 20px}
.session-logout-card button{width:100%;min-height:46px}


/* v0.11.7.1 — character deletion hotfix */
.occupied-slot .slot-actions{position:absolute;z-index:6;left:18px;right:18px;bottom:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.character-slot>.slot-actions button{position:static!important;inset:auto!important;width:auto!important;min-height:42px!important;margin:0!important}
.occupied-slot .slot-enter{border-color:#b18236!important;background:linear-gradient(#574821,#21190d)!important;color:#f1ddb2!important;font-weight:800!important}
.occupied-slot .slot-delete{min-width:100px!important;padding:7px 10px!important;border:1px solid rgba(180,77,64,.55)!important;border-radius:8px!important;background:rgba(38,14,13,.92)!important;color:#e2a59d!important;font-size:10px!important;font-weight:800!important}
.occupied-slot .slot-delete:hover{border-color:#d16d5f!important;color:#ffd3cd!important}
.delete-character-overlay{z-index:320!important}
.delete-character-card{width:min(92vw,460px);padding:24px;border:1px solid rgba(180,77,64,.42);border-radius:18px;background:#0d1014;box-shadow:0 20px 70px rgba(0,0,0,.72)}
.delete-character-card>p{margin:14px 0;color:#c2c6cc;text-align:center}.delete-character-card .delete-warning{color:#b98f8a;font-size:13px}
.delete-character-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.delete-character-actions button{min-height:46px}.delete-character-actions .danger{border-color:#8f3b32;background:linear-gradient(#5b221d,#28100e);color:#ffd4ce}
@media(max-width:650px){.occupied-slot .slot-actions{left:8px;right:8px;bottom:7px;grid-template-columns:minmax(0,1fr) auto;gap:5px}.character-slot>.slot-actions button{min-height:34px!important;font-size:9px!important}.occupied-slot .slot-delete{min-width:76px!important;padding:4px 6px!important;font-size:8px!important}.delete-character-card{padding:18px}.delete-character-actions{grid-template-columns:1fr}}

/* ================================================================
   SEKCJA: pixel-profile.css
   ================================================================ */
/* ASHENREALM v0.13.6.26 — REAL UI / Premium HUD pass
   Mobile-first 864x1536 reference stage. No baked HUD values. */
:root{
  --px-gold:#b77b2f;
  --px-gold2:#e7b556;
  --px-gold3:#ffd98a;
  --px-ink:#05080b;
  --px-panel:#091016;
  --px-line:#60401f;
  --px-cream:#f1e7d8;
}
.pixel-profile-host{display:none;background:#030507;min-height:100vh;overflow:hidden}
body.pixel-profile-active{margin:0;background:#030507!important;overflow-x:hidden}
body.pixel-profile-active>.app-shell{display:none!important}
body.pixel-profile-active>.pixel-profile-host{display:block}
.pixel-profile-wrap{position:relative;width:100%;margin:0 auto;background:#030507;overflow:hidden}
.pixel-profile-stage{position:relative;width:864px;height:1536px;transform-origin:top left;background:#05080a;color:var(--px-cream);font-family:Georgia,"Times New Roman",serif;user-select:none}
@media(min-width:865px){.pixel-profile-wrap{width:864px}}

/* Lower MASTER surfaces remain visual references while HUD is now a real component. */
.pixel-surface{position:absolute;left:0;width:864px;pointer-events:none;display:block}
.pixel-banner{top:205px;height:110px}.pixel-tabs{top:315px;height:90px}.pixel-attrs{top:405px;height:365px}.pixel-stats{top:770px;height:605px}.pixel-nav{top:1375px;height:161px}

/* -------------------- PREMIUM LIVE HUD -------------------- */
.px-hud{position:absolute;z-index:12;left:0;top:0;width:864px;height:205px;box-sizing:border-box;overflow:hidden;
  background:
    radial-gradient(ellipse at 52% -28%,#5b3a191b 0 28%,transparent 50%),
    repeating-linear-gradient(113deg,#ffffff05 0 1px,transparent 1px 9px),
    linear-gradient(180deg,#080d12 0%,#05090d 54%,#05080b 100%);
  box-shadow:inset 0 0 60px #000b,inset 0 -16px 28px #0007;
}
.px-hud::before{content:"";position:absolute;z-index:1;inset:4px 12px 6px;border:1px solid #6b4824;box-shadow:inset 0 0 0 1px #24180d,0 0 0 1px #090706}
.px-hud::after{content:"";position:absolute;z-index:2;left:17px;right:17px;top:125px;height:1px;background:linear-gradient(90deg,transparent,#8d612f 6%,#4c331b 42%,#4c331b 58%,#8d612f 94%,transparent);box-shadow:0 1px #000}
.px-hud-corner{position:absolute;z-index:4;width:31px;height:31px;pointer-events:none}
.px-hud-corner::before,.px-hud-corner::after{content:"";position:absolute;background:linear-gradient(90deg,#5d3c1c,#c28a3b,#5d3c1c)}
.px-hud-corner::before{width:31px;height:2px}.px-hud-corner::after{width:2px;height:31px}
.px-hud-corner.tl{left:3px;top:3px}.px-hud-corner.tr{right:3px;top:3px;transform:scaleX(-1)}
.px-hud-corner.bl{left:3px;bottom:3px;transform:scaleY(-1)}.px-hud-corner.br{right:3px;bottom:3px;transform:scale(-1)}

/* portrait */
.px-hud-portrait{position:absolute;z-index:5;left:38px;top:14px;width:108px;height:108px;padding:5px;box-sizing:border-box;
  background:linear-gradient(135deg,#ddb15b,#4d3014 22%,#a86d28 48%,#f0bd5a 74%,#513315);
  clip-path:polygon(8% 0,92% 0,100% 8%,100% 92%,92% 100%,8% 100%,0 92%,0 8%);
  filter:drop-shadow(0 5px 8px #000a)
}
.px-hud-portrait::before{content:"";position:absolute;inset:4px;z-index:0;background:#06090c;clip-path:inherit;box-shadow:inset 0 0 20px #000}
.px-hud-portrait::after{content:"";position:absolute;inset:9px;z-index:2;border:1px solid #9c7138;clip-path:inherit;pointer-events:none}
#pxAvatar{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;object-position:50% 17%;clip-path:polygon(7% 0,93% 0,100% 7%,100% 93%,93% 100%,7% 100%,0 93%,0 7%);filter:drop-shadow(0 8px 8px #000b)}

/* identity */
.px-hud-identity{position:absolute;z-index:5;left:164px;top:16px;width:165px;height:105px;min-width:0}
#pxName{display:block;height:42px;font-size:31px;line-height:42px;font-weight:700;color:#f7ecda;text-shadow:0 2px 3px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.px-hud-specrow{display:flex;align-items:center;gap:9px;height:41px;margin-top:5px;color:#d9d0c3}
.px-hud-specicon{position:relative;width:23px;height:29px;flex:0 0 23px}
.px-hud-specicon::before,.px-hud-specicon::after{content:"";position:absolute;left:10px;top:2px;width:2px;height:27px;background:linear-gradient(#f0c479,#7d5327);transform-origin:50% 80%}
.px-hud-specicon::before{transform:rotate(43deg)}.px-hud-specicon::after{transform:rotate(-43deg)}
#pxSpec{font-size:18px;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* wallet */
.px-wallet{position:absolute;z-index:5;left:338px;top:18px;width:205px;height:100px;display:grid;grid-template-rows:50px 50px}
.px-wallet-row{display:flex;align-items:center;gap:15px;min-width:0}
.px-coin{position:relative;width:31px;height:31px;border:5px solid #f2b632;border-radius:50%;box-sizing:border-box;box-shadow:0 0 10px #d98c1d66,inset 0 0 5px #000;background:#37220d;flex:0 0 31px}
.px-coin::after{content:"";position:absolute;inset:5px;border:2px solid #f6c850;border-radius:50%}
.px-diamond{width:25px;height:25px;transform:rotate(45deg);margin-left:4px;margin-right:2px;border:1px solid #6ce0ff;background:linear-gradient(135deg,#72e6ff 0 32%,#179cd9 33% 68%,#05558a 69%);box-shadow:0 0 12px #28b8ff55;flex:0 0 25px}
#pxGold,#pxDiamonds{font-size:25px;font-weight:700;color:#f7d178;text-shadow:0 2px 3px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pxDiamonds{color:#ece8df}

/* level medallion */
.px-level-card{position:absolute;z-index:5;left:548px;top:11px;width:116px;height:112px;display:grid;place-items:center;text-align:center;
  clip-path:polygon(50% 0,76% 9%,94% 29%,100% 54%,91% 79%,70% 95%,50% 100%,30% 95%,9% 79%,0 54%,6% 29%,24% 9%);
  background:linear-gradient(135deg,#e0ad54,#5b3917 19%,#c38b3a 38%,#f0c069 53%,#6b431c 71%,#d69c43);
  filter:drop-shadow(0 5px 6px #000a)
}
.px-level-card::before{content:"";position:absolute;inset:4px;clip-path:inherit;background:radial-gradient(circle at 50% 37%,#2b2115,#0b0d0e 69%);box-shadow:inset 0 0 24px #000}
.px-level-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;height:86px;margin-top:2px}
.px-level-inner small{font:700 13px/1 Georgia,serif;letter-spacing:1.5px;color:#caa66f;text-shadow:0 1px #000;margin-bottom:4px}
#pxLevel{font:700 37px/.95 Georgia,serif;color:#ffd98b;text-shadow:0 2px 3px #000,0 0 8px #cd8f2b33}

/* power badge */
.px-power-card{position:absolute;z-index:5;left:682px;top:18px;width:145px;height:98px;clip-path:polygon(8% 0,92% 0,100% 17%,93% 50%,100% 83%,92% 100%,8% 100%,0 83%,7% 50%,0 17%);
  padding:3px;box-sizing:border-box;background:linear-gradient(135deg,#c48b39,#5a3918 23%,#a36b2a 47%,#e5b15c 72%,#5d3d1c);filter:drop-shadow(0 5px 6px #0009)
}
.px-power-card::before{content:"";position:absolute;inset:3px;clip-path:inherit;background:linear-gradient(180deg,#16130f,#0a0c0d 70%);box-shadow:inset 0 0 22px #000}
.px-power-inner{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.px-power-inner small{font:700 13px/1 Georgia,serif;letter-spacing:2px;color:#c9a36b;margin-bottom:9px;text-shadow:0 1px #000}
#pxPower{font:700 30px/1 Georgia,serif;color:#ffd98b;text-shadow:0 2px 3px #000}

/* meters */
.px-meters{position:absolute;z-index:5;left:43px;right:41px;top:130px;height:64px;display:grid;grid-template-columns:1.03fr .88fr 1.12fr;gap:26px}
.px-meterbox{display:grid;grid-template-rows:27px 19px;gap:5px;min-width:0}
.px-meterline{display:grid;align-items:center;grid-template-columns:auto 1fr auto;gap:8px;min-width:0;color:#d9cfc0;font-size:17px;line-height:27px}
.px-meterlabel{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#d4c3a9}
.px-meterlabel .heart{font-size:22px;color:#ff4549;text-shadow:0 0 8px #b60000aa}
.px-drop{width:15px;height:20px;border-radius:60% 40% 64% 36%/70% 45% 55% 30%;transform:rotate(45deg);background:linear-gradient(135deg,#74e5ff,#0792dd 62%,#034d89);box-shadow:0 0 8px #22b6ff88;margin-right:3px}
.px-meterlabel.exp{font-weight:700;letter-spacing:.7px;color:#c9a16d}
.px-metertext{justify-self:end;font-size:16px;color:#eee5da;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.px-track{position:relative;height:17px;padding:3px;box-sizing:border-box;border:1px solid #74522c;border-radius:4px;background:linear-gradient(#121416,#050708);box-shadow:inset 0 0 5px #000,0 1px #000}
.px-track::before{content:"";position:absolute;inset:2px;border:1px solid #26211a;border-radius:2px;pointer-events:none}
.px-fill{position:relative;z-index:1;display:block;height:100%;width:0;border-radius:2px;box-shadow:inset 0 1px #ffffff26,0 0 5px currentColor;transition:width .16s linear}
.px-hp-fill{background:linear-gradient(90deg,#9b0b15,#e8423e);color:#db282d}.px-mp-fill{background:linear-gradient(90deg,#045c9e,#42b8ee);color:#149ee1}.px-exp-fill{background:linear-gradient(90deg,#805009,#ffc95a 68%,#ffe396);color:#d49b2d}

/* live lower overlays */
.pixel-live{position:absolute;z-index:10;display:flex;align-items:center;color:#f4ecdf;text-shadow:0 2px 3px #000;font-weight:700;white-space:nowrap}
.pixel-erase{position:absolute;z-index:8;pointer-events:none;background:#070b0f}

/* points: redraw full right header to avoid truncation/ghost text */
.px-points-clean{position:absolute;z-index:11;left:544px;top:415px;width:272px;height:50px;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding-right:67px;box-sizing:border-box;background:linear-gradient(90deg,transparent 0,#0a0d10 18% 100%);color:#d7c7b1;font-size:17px}
.px-points-clean b{font-size:20px;color:#f2e9dc;font-weight:400;min-width:34px;text-align:center}
.px-attr-bg{width:92px;height:48px;background:linear-gradient(90deg,transparent 0,#0c0f11 22% 100%)}
.px-attr{width:86px;height:48px;justify-content:flex-end;padding-right:10px;box-sizing:border-box;font-size:27px;font-weight:400}
.px-str-bg{left:617px;top:487px}.px-str{left:618px;top:486px}.px-dex-bg{left:617px;top:555px}.px-dex{left:618px;top:554px}.px-vit-bg{left:617px;top:622px}.px-vit{left:618px;top:621px}.px-int-bg{left:617px;top:689px}.px-int{left:618px;top:688px}

/* proxy hit zones */
.pixel-hit{position:absolute;z-index:20;border:0;background:transparent;box-shadow:none;padding:0;margin:0;cursor:pointer;min-height:0;color:transparent}
.pixel-hit:active{background:#ffbc4322}
#pxAddStr{left:731px;top:486px;width:64px;height:57px}#pxAddDex{left:731px;top:554px;width:64px;height:57px}#pxAddVit{left:731px;top:621px;width:64px;height:57px}#pxAddInt{left:731px;top:688px;width:64px;height:57px}
#pxTabGear{left:37px;top:322px;width:390px;height:70px}#pxTabStats{left:439px;top:322px;width:388px;height:70px}

/* basic stats dynamic column */
.px-stat-bg{left:357px;width:118px;height:31px;background:linear-gradient(90deg,#080b0d 0 92%,transparent)}
.px-stat{left:363px;width:104px;height:31px;justify-content:flex-end;font-size:20px;font-weight:400}
#pxStatHpBg{top:847px}#pxStatHp{top:846px}#pxStatMpBg{top:888px}#pxStatMp{top:887px}#pxStatAtkBg{top:929px}#pxStatAtk{top:928px}#pxStatDefBg{top:970px}#pxStatDef{top:969px}#pxStatAspdBg{top:1012px}#pxStatAspd{top:1011px}#pxStatMspdBg{top:1053px}#pxStatMspd{top:1052px}#pxStatCritBg{top:1094px}#pxStatCrit{top:1093px}#pxStatBlockBg{top:1135px}#pxStatBlock{top:1134px}#pxStatDodgeBg{top:1176px}#pxStatDodge{top:1175px}
#pxDetails{left:63px;top:1244px;width:574px;height:72px}

/* ======================================================================
   ASHENREALM v0.13.6.27 — PREMIUM GEAR TAB
   Real HTML/CSS equipment + backpack surface. No baked equipment values.
   ====================================================================== */
.px-profile-tabs{position:absolute;z-index:18;left:24px;right:24px;top:315px;height:90px;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px;box-sizing:border-box;border:1px solid #6e4b25;background:linear-gradient(180deg,#0b0d0f,#050709);box-shadow:inset 0 0 0 1px #b6873b20,0 8px 22px #0009}
.px-profile-tabs::before,.px-profile-tabs::after{content:"";position:absolute;width:18px;height:18px;pointer-events:none}.px-profile-tabs::before{left:4px;top:4px;border-left:2px solid #b9853c;border-top:2px solid #b9853c}.px-profile-tabs::after{right:4px;bottom:4px;border-right:2px solid #b9853c;border-bottom:2px solid #b9853c}
#pxTabGear,#pxTabStats{position:relative;left:auto;top:auto;width:auto;height:auto;min-height:0;display:flex;align-items:center;justify-content:center;gap:14px;border:1px solid #4d3822;background:linear-gradient(180deg,#111417,#090b0d);box-shadow:inset 0 0 18px #0008;color:#d5c9b8;font:400 20px/1 Georgia,serif;letter-spacing:.2px;clip-path:polygon(1.5% 0,98.5% 0,100% 12%,100% 88%,98.5% 100%,1.5% 100%,0 88%,0 12%)}
#pxTabGear span,#pxTabStats span{font-size:25px;color:#b58a51}#pxTabGear b,#pxTabStats b{font-weight:400}
#pxTabGear.is-active,#pxTabStats.is-active{border-color:#e2a84a;color:#ffe2a1;background:radial-gradient(circle at 50% 45%,#7f4a1c55,transparent 55%),linear-gradient(180deg,#4b2d15,#1c110b 72%);box-shadow:inset 0 0 0 1px #ffcc6d3b,inset 0 0 28px #d486292d,0 0 15px #d88f3238}
#pxTabGear.is-active::after,#pxTabStats.is-active::after{content:"";position:absolute;bottom:-1px;left:42%;right:42%;height:3px;background:#f0b64c;box-shadow:0 0 10px #ffb741}

.px-view{position:absolute;z-index:9;left:0;top:0;width:864px}
.px-stats-view{height:1375px}.px-gear-view{height:1859px}

/* Equipment shell */
.px-gear-panel{position:absolute;left:24px;right:24px;top:416px;height:632px;overflow:hidden;border:1px solid #74502a;background:linear-gradient(145deg,#0d1217,#07090c 66%,#0b0d10);box-shadow:inset 0 0 0 1px #c6954821,inset 0 0 56px #000b,0 18px 32px #0009}
.px-gear-panel::before,.px-bag-panel::before{content:"";position:absolute;inset:5px;pointer-events:none;border:1px solid #7a572d38;clip-path:polygon(0 0,27px 0,27px 2px,2px 2px,2px 27px,0 27px,0 0,100% 0,100% 27px,98% 27px,98% 2px,calc(100% - 27px) 2px,calc(100% - 27px) 0,100% 0,100% 100%,calc(100% - 27px) 100%,calc(100% - 27px) 98%,98% 98%,98% calc(100% - 27px),100% calc(100% - 27px),100% 100%,0 100%,0 calc(100% - 27px),2px calc(100% - 27px),2px 98%,27px 98%,27px 100%,0 100%)}
.px-section-head{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #634521;background:linear-gradient(90deg,#2a1a0e,#121518 45%,#101214 75%,#25180d);box-shadow:inset 0 -1px #110b07}
.px-section-head small,.px-bag-head small{display:block;margin-bottom:3px;font:700 10px/1.1 Arial,sans-serif;letter-spacing:3px;color:#9a7040}.px-section-head h2,.px-bag-head h2{margin:0;font:700 27px/1 Georgia,serif;color:#f0dfc5;text-shadow:0 2px 4px #000}.px-section-head>span{font:700 10px/1 Arial,sans-serif;letter-spacing:1.6px;color:#8c7a64}
.px-loadout-strip{height:72px;padding:10px 14px;box-sizing:border-box;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border-bottom:1px solid #44311f;background:#07090b}
.px-loadout-strip button{position:relative;min-height:0;padding:5px 8px;border:1px solid #4b3825;background:linear-gradient(180deg,#121416,#080a0c);color:#bcb2a3;display:grid;grid-template-columns:24px 1fr;grid-template-rows:1fr 1fr;align-items:center;text-align:left;clip-path:polygon(4% 0,96% 0,100% 15%,100% 85%,96% 100%,4% 100%,0 85%,0 15%)}
.px-loadout-strip button>span{grid-row:1/3;display:grid;place-items:center;font-size:17px;color:#a2763f}.px-loadout-strip button>b{font:700 15px/1 Georgia,serif}.px-loadout-strip button>small{font:700 8px/1 Arial,sans-serif;letter-spacing:1px;color:#746b5f}.px-loadout-strip button.is-active{border-color:#cf9035;color:#ffd98a;background:linear-gradient(180deg,#4b2c13,#1b1009);box-shadow:inset 0 0 15px #e39b2d24,0 0 11px #d9862b25}.px-loadout-strip button.is-active>small{color:#d79f4d}.px-loadout-strip button.premium{opacity:.58}

.px-hero-stage{position:relative;height:492px;overflow:hidden;background:radial-gradient(circle at 50% 42%,#253f4a46 0 18%,transparent 43%),radial-gradient(ellipse at 50% 100%,#9f60251f 0 19%,transparent 41%),linear-gradient(180deg,#0a1218,#070a0d 70%,#08090a)}
.px-hero-stage::before{content:"";position:absolute;left:205px;right:205px;top:28px;bottom:30px;border:1px solid #8a643736;clip-path:polygon(50% 0,92% 16%,100% 50%,92% 84%,50% 100%,8% 84%,0 50%,8% 16%);box-shadow:inset 0 0 54px #000b}
.px-hero-ring{position:absolute;left:263px;top:58px;width:286px;height:286px;border:1px solid #956a333d;border-radius:50%;box-shadow:0 0 28px #bb76242a,inset 0 0 36px #0009}.px-hero-ring::before,.px-hero-ring::after{content:"";position:absolute;inset:20px;border:1px dashed #a77a3b24;border-radius:50%}.px-hero-ring::after{inset:46px;border-style:solid;opacity:.5}
.px-hero-floor{position:absolute;left:257px;bottom:38px;width:300px;height:54px;border:1px solid #8058286c;border-radius:50%;background:radial-gradient(ellipse,#b674282b 0 19%,#080a0dcc 67%);box-shadow:0 0 30px #bc74252d,inset 0 0 16px #000;transform:perspective(190px) rotateX(60deg)}
#pxGearHero{position:absolute;z-index:4;left:232px;top:26px;width:350px;height:420px;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 24px 13px #000e) drop-shadow(0 0 16px #c8883023)}
.px-hero-caption{position:absolute;z-index:6;left:278px;bottom:19px;width:258px;min-height:48px;text-align:center;padding:6px 12px;box-sizing:border-box;border-top:1px solid #77512a;background:linear-gradient(90deg,transparent,#0b0d0ee8 16% 84%,transparent)}.px-hero-caption small{display:block;font:700 8px/1 Arial,sans-serif;letter-spacing:2.3px;color:#8d714f}.px-hero-caption b{display:block;margin-top:4px;font:700 16px/1 Georgia,serif;color:#e9d3ae}

.px-eq-slot{position:absolute;z-index:8;width:102px;height:92px;min-height:0;padding:7px 6px;border:1px solid #57442f;background:linear-gradient(145deg,#13181d,#080a0d 72%);box-shadow:inset 0 0 18px #000b,0 7px 12px #0008;color:#9d8e79;display:grid;grid-template-columns:36px 1fr;grid-template-rows:29px 1fr;gap:2px 5px;text-align:left;clip-path:polygon(8% 0,92% 0,100% 8%,100% 92%,92% 100%,8% 100%,0 92%,0 8%)}
.px-eq-slot::before{content:"";position:absolute;inset:4px;border:1px solid #9c723b25;clip-path:inherit;pointer-events:none}.px-eq-slot i{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;align-self:center;border:1px solid #604927;background:#080b0e;color:#bd8b43;font:normal 21px/1 Georgia,serif;box-shadow:inset 0 0 10px #000}.px-eq-slot span{font:700 8px/1 Arial,sans-serif;letter-spacing:1px;color:#786f63;text-transform:uppercase;align-self:end}.px-eq-slot b{font:700 11px/1.05 Georgia,serif;color:#b5aa99;white-space:normal;overflow:hidden;max-height:24px;align-self:start}.px-eq-slot.filled{border-color:#a67735;box-shadow:inset 0 0 18px #b876201a,0 0 12px #bd79201d}.px-eq-slot.filled i{color:#e8b75d;border-color:#8e642e}.px-eq-slot.filled b{color:#eadbc3}.px-eq-slot.rarity-rare{border-color:#3d78a2}.px-eq-slot.rarity-epic{border-color:#7d4ca4}.px-eq-slot.rarity-legendary{border-color:#b87823}.px-eq-slot.rarity-mythic{border-color:#bd4d3d}
.slot-helmet{left:27px;top:34px}.slot-weapon{left:27px;top:140px}.slot-bracelet{left:27px;top:246px}.slot-necklace{left:27px;top:352px}.slot-armor{right:27px;top:34px}.slot-shield{right:27px;top:140px}.slot-earrings{right:27px;top:246px}.slot-boots{right:27px;top:352px}.slot-belt{left:356px;bottom:19px;width:102px;height:72px;grid-template-columns:34px 1fr;grid-template-rows:22px 1fr}.slot-belt i{width:34px;height:34px}

/* Backpack */
.px-bag-panel{position:absolute;left:24px;right:24px;top:1064px;height:782px;overflow:hidden;border:1px solid #74502a;background:linear-gradient(145deg,#0c1014,#06080b 68%);box-shadow:inset 0 0 0 1px #c6954821,inset 0 0 56px #000b,0 18px 32px #0008}
.px-bag-head{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #634521;background:linear-gradient(90deg,#291a0e,#121518 55%,#23170d)}.px-bag-head>b{font:700 11px/1 Arial,sans-serif;letter-spacing:1.3px;color:#8e806d}.px-bag-head>b span{color:#d8a655;font-size:15px}
.px-bag-pages{height:62px;box-sizing:border-box;padding:9px 14px;display:grid;grid-template-columns:repeat(4,1fr);gap:9px;border-bottom:1px solid #3f2f20;background:#07090b}.px-bag-pages button{min-height:0;border:1px solid #4b3926;background:linear-gradient(#111417,#080a0c);color:#a99e90;font:700 17px/1 Georgia,serif}.px-bag-pages button.is-active{border-color:#c98930;background:linear-gradient(#4a2b13,#1b1009);color:#ffd67e;box-shadow:inset 0 0 12px #d98e2b24}
.px-bag-filters{height:62px;box-sizing:border-box;padding:9px 14px;display:flex;gap:7px;overflow:hidden;border-bottom:1px solid #403020;background:#090b0d}.px-bag-filters button{flex:1 1 0;min-width:0;min-height:0;padding:4px;border:1px solid #453626;background:#0d1013;color:#a69c8f;font:700 10px/1 Arial,sans-serif}.px-bag-filters button.is-active{border-color:#aa762d;background:#32200f;color:#f0c56e}
.px-bag-grid{height:590px;box-sizing:border-box;padding:14px;display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(5,1fr);gap:9px;align-content:stretch;background:radial-gradient(circle at 50% 15%,#1c2b3421,transparent 44%)}
.px-bag-slot{position:relative;min-width:0;min-height:0;border:1px solid #3e454a;background:radial-gradient(circle at 50% 35%,#1a252e44,transparent 62%),linear-gradient(145deg,#11171c,#07090c 76%);box-shadow:inset 0 0 15px #000b;color:#a58a5c;display:grid;place-items:center;padding:4px;overflow:hidden;clip-path:polygon(6% 0,94% 0,100% 6%,100% 94%,94% 100%,6% 100%,0 94%,0 6%)}
.px-bag-slot::after{content:"";position:absolute;inset:4px;border:1px solid #9a713623;pointer-events:none;clip-path:inherit}.px-bag-slot>i{font:normal 28px/1 Georgia,serif;color:#c18c43;text-shadow:0 0 10px #c37d2430}.px-bag-slot>b{position:absolute;right:8px;bottom:7px;font:700 12px/1 Georgia,serif;color:#e0b45e;text-shadow:0 1px #000}.px-bag-slot>small{position:absolute;left:7px;bottom:7px;max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 7px/1 Arial,sans-serif;letter-spacing:.4px;color:#716b62;text-transform:uppercase}.px-bag-slot.empty i{font-size:16px;color:#534a3d}.px-bag-slot.empty em{position:absolute;left:8px;top:7px;font:normal 8px/1 Arial,sans-serif;color:#3d3f40}.px-bag-slot.filled:hover{border-color:#966b34;filter:brightness(1.08)}.px-bag-slot.sel{border-color:#f0ad43;box-shadow:inset 0 0 18px #d58b2c2b,0 0 12px #d88a2b44}.px-bag-slot.rarity-rare{border-color:#3d78a2}.px-bag-slot.rarity-epic{border-color:#7d4ca4}.px-bag-slot.rarity-legendary{border-color:#b87823}.px-bag-slot.rarity-mythic{border-color:#bd4d3d}

/* Item inspection / unequip overlays */
.px-gear-detail{position:absolute;z-index:40;left:24px;right:24px;top:1064px;height:782px;display:grid;place-items:center;background:#020406dc;backdrop-filter:blur(4px)}.px-gear-detail[hidden]{display:none!important}.px-detail-card{position:relative;width:670px;max-height:620px;overflow:auto;padding:32px 36px;border:1px solid #a97732;background:radial-gradient(circle at 75% 15%,#70431b20,transparent 28%),linear-gradient(145deg,#11171d,#07090d 70%);box-shadow:inset 0 0 0 1px #d2a15721,0 24px 50px #000d;color:#ded4c6}.px-detail-card::before,.px-detail-card::after{content:"";position:absolute;width:27px;height:27px;pointer-events:none}.px-detail-card::before{left:6px;top:6px;border-left:2px solid #d0a050;border-top:2px solid #d0a050}.px-detail-card::after{right:6px;bottom:6px;border-right:2px solid #d0a050;border-bottom:2px solid #d0a050}.px-detail-close{position:absolute;right:18px;top:15px;width:42px;height:42px;min-height:0;border:1px solid #684724;background:#0a0c0f;color:#d7b16e;font-size:27px}.px-detail-card>small{font:700 10px/1 Arial,sans-serif;letter-spacing:2.6px;color:#a1763f}.px-detail-card h3{margin:7px 48px 5px 0;font:700 31px/1.1 Georgia,serif;color:#f0dfc7}.px-detail-card>p{margin:0 0 22px;color:#968b7b;font-size:15px}.px-detail-body{display:grid;gap:10px}.px-detail-body>div{padding:13px 15px;border-left:2px solid #9c6e32;background:#090c0f}.px-detail-body small{display:block;margin-bottom:5px;font:700 8px/1 Arial,sans-serif;letter-spacing:1.8px;color:#88745b}.px-detail-body b,.px-detail-body span{font:400 15px/1.45 Georgia,serif;color:#dbd0bf}.px-detail-actions{display:flex;gap:9px;margin-top:24px}.px-detail-actions button{flex:1;min-height:52px;border:1px solid #664724;background:linear-gradient(#17191a,#090b0d);color:#d8c7ad}.px-detail-actions button.primary{border-color:#cb8d34;background:linear-gradient(#533014,#1c110a);color:#ffda86}.px-detail-actions button.danger{border-color:#70332c;color:#e5a29a}.px-confirm-card{width:510px;text-align:center}.px-confirm-card p{margin-bottom:18px}

/* v0.13.6.33 — the premium profile uses the one global body-level mobile dock. */
body.pixel-profile-active>.pixel-profile-host{
  padding-bottom:calc(var(--pr-dock,78px) + env(safe-area-inset-bottom));
  box-sizing:border-box;
  overflow-x:hidden;
  overflow-y:visible
}
.pixel-nav,.px-nav-hit{display:none!important}

/* ======================================================================
   ASHENREALM v0.13.6.39 — approved 3-tab profile + Metin fixed-cell grid
   Stable v34 stage retained; only the presentation layer is extended.
   ====================================================================== */
.px-profile-tabs{grid-template-columns:repeat(3,1fr)!important;gap:7px!important}
#pxTabGear,#pxTabStats,#pxTabSkills{position:relative;left:auto;top:auto;width:auto;height:auto;min-height:0;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #4d3822;background:linear-gradient(180deg,#111417,#090b0d);box-shadow:inset 0 0 18px #0008;color:#d5c9b8;font:400 17px/1 Georgia,serif;letter-spacing:.1px;clip-path:polygon(2% 0,98% 0,100% 12%,100% 88%,98% 100%,2% 100%,0 88%,0 12%)}
#pxTabGear span,#pxTabStats span,#pxTabSkills span{font-size:23px;color:#b58a51}#pxTabGear b,#pxTabStats b,#pxTabSkills b{font-weight:400;white-space:nowrap}
#pxTabGear.is-active,#pxTabStats.is-active,#pxTabSkills.is-active{border-color:#e2a84a;color:#ffe2a1;background:radial-gradient(circle at 50% 45%,#7f4a1c55,transparent 55%),linear-gradient(180deg,#4b2d15,#1c110b 72%);box-shadow:inset 0 0 0 1px #ffcc6d3b,inset 0 0 28px #d486292d,0 0 15px #d88f3238}
#pxTabGear.is-active::after,#pxTabStats.is-active::after,#pxTabSkills.is-active::after{content:"";position:absolute;bottom:-1px;left:39%;right:39%;height:3px;background:#f0b64c;box-shadow:0 0 10px #ffb741}

/* Equipment board – fixed cells. Weapon/armor visually span two cells; other equipment remains one cell. */
.px-gear-panel{height:632px!important}
.px-hero-stage{height:492px!important;background:radial-gradient(circle at 50% 45%,#18303d55 0 18%,transparent 43%),radial-gradient(ellipse at 50% 100%,#a4632828 0 18%,transparent 42%),linear-gradient(180deg,#09131a,#06090c 72%,#08090a)!important}
.px-eq-grid-bg{position:absolute;inset:12px 18px 14px;pointer-events:none;background:
 linear-gradient(#72502955 1px,transparent 1px) 0 0/100% 82px,
 linear-gradient(90deg,#72502955 1px,transparent 1px) 0 0/102px 100%;opacity:.45;mask-image:linear-gradient(90deg,#000 0 29%,transparent 30% 70%,#000 71% 100%)}
.px-hero-stage::before{left:250px!important;right:250px!important;top:18px!important;bottom:24px!important;border-color:#8a643744!important}
.px-hero-floor{left:272px!important;bottom:24px!important;width:270px!important;height:52px!important}
#pxGearHero{left:245px!important;top:18px!important;width:325px!important;height:440px!important;z-index:5!important}
.px-hero-caption{display:none!important}
.px-eq-slot{width:98px!important;height:78px!important;padding:5px 5px!important;grid-template-columns:1fr!important;grid-template-rows:1fr 19px!important;gap:0!important;text-align:center!important;clip-path:none!important;border-radius:0!important;background:radial-gradient(circle at 50% 35%,#1b273043,transparent 58%),linear-gradient(145deg,#12181e,#07090c 76%)!important}
.px-eq-slot::before{inset:3px!important;clip-path:none!important;border-color:#9c723b31!important}
.px-eq-slot i{grid-row:1!important;justify-self:center;width:auto!important;height:auto!important;border:0!important;background:transparent!important;color:#d19b4b!important;font-size:30px!important;box-shadow:none!important}
.px-eq-slot span{grid-row:2!important;display:block!important;align-self:center!important;font:400 12px/1 Georgia,serif!important;letter-spacing:0!important;color:#dac4a3!important;text-transform:none!important;text-shadow:0 1px 2px #000}
.px-eq-slot b{display:none!important}
.px-eq-slot.filled{border-color:#c58a36!important;box-shadow:inset 0 0 0 1px #e4aa4b2b,inset 0 0 20px #ce812322,0 0 8px #d88c252a!important}
.px-eq-slot.filled i{color:#ffd171!important;text-shadow:0 0 10px #e1993238!important}
.px-eq-slot.future{opacity:.55;pointer-events:none}
.slot-weapon{left:31px!important;top:30px!important;height:172px!important}.slot-weapon::after,.slot-armor::after{content:"";position:absolute;left:5px;right:5px;top:50%;height:1px;background:#76532f7d;pointer-events:none}
.slot-armor{left:139px!important;top:30px!important;height:172px!important}
.slot-boots{left:31px!important;top:211px!important}.slot-belt{left:139px!important;top:211px!important;width:98px!important;height:78px!important}
.slot-helmet{right:139px!important;top:30px!important}.slot-necklace{right:31px!important;top:30px!important}.slot-bracelet{right:31px!important;top:116px!important}.slot-earrings{right:31px!important;top:202px!important}.slot-shield{right:139px!important;top:116px!important}.slot-talisman{right:139px!important;top:202px!important}

/* Bag is a literal 6×5 board. Items keep the row/column/span supplied by the game engine. */
.px-bag-grid{display:grid!important;grid-template-columns:repeat(6,1fr)!important;grid-template-rows:repeat(5,1fr)!important;grid-auto-flow:row!important;gap:6px!important;padding:10px!important}
.px-bag-slot{clip-path:none!important;border-radius:0!important}
.px-bag-slot[data-cells="2"]::before{content:"";position:absolute;left:3px;right:3px;top:50%;height:1px;background:#79573191;z-index:3;pointer-events:none}
.px-bag-slot[data-cells="3"]::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent calc(33.333% - .5px),#79573191 calc(33.333% - .5px) calc(33.333% + .5px),transparent calc(33.333% + .5px) calc(66.666% - .5px),#79573191 calc(66.666% - .5px) calc(66.666% + .5px),transparent calc(66.666% + .5px));z-index:3;pointer-events:none}

/* Skills tab */
.px-skills-view{height:1710px}
.px-skills-panel{position:absolute;left:24px;right:24px;top:416px;min-height:1220px;border:1px solid #74502a;background:radial-gradient(circle at 80% 0,#6e421b1d,transparent 26%),linear-gradient(145deg,#0d1217,#06090c 68%);box-shadow:inset 0 0 0 1px #c6954821,inset 0 0 60px #000a,0 18px 32px #0009;padding:0 14px 16px;box-sizing:border-box}
.px-skills-panel::before,.px-skills-panel::after{content:"";position:absolute;width:26px;height:26px;pointer-events:none}.px-skills-panel::before{left:6px;top:6px;border-left:2px solid #c49247;border-top:2px solid #c49247}.px-skills-panel::after{right:6px;bottom:6px;border-right:2px solid #c49247;border-bottom:2px solid #c49247}
.px-skills-head{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #674622}.px-skills-head small{display:block;font:700 9px Arial,sans-serif;letter-spacing:2.5px;color:#a9783d}.px-skills-head h2{margin:5px 0 0;font:700 31px/1 Georgia,serif;color:#f1dfc3}.px-skills-head>b{font:700 21px Georgia,serif;color:#e6b65c}
.px-skill-subtabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 2px}.px-skill-subtabs button{height:54px;border:1px solid #543b23;background:#0a0d10;color:#b9ad9c;font:700 16px Georgia,serif}.px-skill-subtabs button.is-active{border-color:#d49337;color:#ffdc91;background:linear-gradient(#553116,#21130b);box-shadow:inset 0 0 18px #dd902727}
.px-skills-list{display:grid;gap:10px}.px-skill-card{display:grid;grid-template-columns:92px minmax(0,1fr) 72px;gap:13px;align-items:center;min-height:124px;padding:11px 12px;border:1px solid #5e4428;background:linear-gradient(90deg,#11171c,#090c10 66%,#0b0d10);box-shadow:inset 0 0 20px #0008}.px-skill-card.preview{opacity:.52}.px-skill-icon{width:80px;height:80px;display:grid;place-items:center;border:1px solid #b5792b;background:#170e08;color:#ffc15d;font-size:34px;box-shadow:inset 0 0 18px #000}.px-skill-icon img{width:100%;height:100%;object-fit:cover}.px-skill-copy{min-width:0}.px-skill-copy h3{margin:0;font:700 25px/1.05 Georgia,serif;color:#f2e1c7}.px-skill-copy p{margin:5px 0 4px;font:400 13px/1.25 Arial,sans-serif;color:#a8a095}.px-skill-copy small{display:block;color:#d0a15b;font:400 11px/1.2 Arial,sans-serif}.px-skill-progress{height:7px;margin-top:8px;border:1px solid #443728;background:#040607}.px-skill-progress i{display:block;height:100%;background:linear-gradient(90deg,#8d510f,#ffd262)}.px-skill-actions{display:grid;gap:7px}.px-skill-actions button{min-height:50px;border:1px solid #b8782a;background:linear-gradient(#442612,#160d08);color:#ffd079;font-weight:800}.px-skill-plus{font-size:31px}.px-skill-use{font-size:10px}.px-skill-actions button:disabled{opacity:.42}
.px-passive-placeholder{height:300px;display:grid;place-items:center;align-content:center;text-align:center;border:1px dashed #5a4128;background:#080b0e}.px-passive-placeholder span{font-size:54px;color:#c28a3d}.px-passive-placeholder h3{margin:10px 0 3px;font:700 26px Georgia,serif}.px-passive-placeholder p{max-width:450px;color:#9f9587}.px-skills-panel footer{margin-top:14px;padding:12px;border-top:1px solid #654622;text-align:center;color:#d0a05a;font:400 12px Georgia,serif}

@media(max-width:540px){#pxTabGear b,#pxTabStats b,#pxTabSkills b{white-space:normal;font-size:15px}.px-skill-card{grid-template-columns:82px minmax(0,1fr) 65px}.px-skill-copy h3{font-size:22px}}

/* ================================================================
   SEKCJA: premium-game.css
   ================================================================ */
/* ========================================================================
   ASHENREALM v0.13.6.29 — FULL PREMIUM UI + COMBAT CLARITY
   Mobile-first visual system for every real game screen.
   Does not replace gameplay DOM or bake dynamic values into images.
   ======================================================================== */
:root{
  --pr-bg:#040608;
  --pr-bg2:#070a0d;
  --pr-panel:#0a0e12;
  --pr-panel2:#10151a;
  --pr-panel3:#15191d;
  --pr-gold:#b8792c;
  --pr-gold2:#dda64d;
  --pr-gold3:#ffd684;
  --pr-line:#68471f;
  --pr-line2:#3b2d1d;
  --pr-text:#f2e7d4;
  --pr-muted:#948a7d;
  --pr-red:#d6543e;
  --pr-blue:#299bd3;
  --pr-green:#66a873;
  --pr-shadow:0 18px 44px #000b;
  --pr-dock:78px;
}

html,body{background:var(--pr-bg)!important}
body{
  color:var(--pr-text)!important;
  background:
    radial-gradient(ellipse at 50% -4%,#6e411b1e,transparent 34%),
    repeating-linear-gradient(118deg,#ffffff03 0 1px,transparent 1px 10px),
    linear-gradient(180deg,#080b0e 0,#040608 48%,#020406 100%)!important;
}
body::before{
  opacity:.34!important;
  background:radial-gradient(ellipse at center,transparent 26%,#000 100%)!important;
}

/* ---------- universal premium controls ---------- */
button,select,input{font-family:Inter,"Segoe UI",Arial,sans-serif}
button,select{
  border:1px solid #5a4025!important;
  border-radius:4px!important;
  color:#e7dac6!important;
  background:linear-gradient(180deg,#181a1c,#0b0d10 68%,#07090b)!important;
  box-shadow:inset 0 1px #ffffff0d,0 3px 8px #0008!important;
}
button:hover{border-color:#a97635!important;filter:brightness(1.08)}
button:active{transform:translateY(1px)}
button.is-active,button.primary{
  border-color:#c98a32!important;
  color:#ffda89!important;
  background:linear-gradient(180deg,#523013,#26170c 64%,#120c08)!important;
  box-shadow:inset 0 0 16px #df942735,0 0 12px #d88b2723!important;
}
select,input:not([type="checkbox"]){background:#090c0f!important;border-color:#5a4025!important;color:#eee3d2!important}

/* ---------- app shell ---------- */
.app-shell{min-height:100vh;background:transparent!important}
.game-stage{background:transparent!important}
#gameMain{
  width:min(100%,1100px)!important;
  max-width:1100px!important;
  margin:0 auto!important;
  padding:12px 10px calc(var(--pr-dock) + 24px)!important;
  box-sizing:border-box!important;
}
.screen-view{min-width:0}

/* ---------- global premium HUD (real existing HUD) ---------- */
body:not(.pixel-profile-active) .top-hud{
  position:sticky!important;top:0!important;z-index:80!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
  width:100%!important;min-height:0!important;
  padding:max(7px,env(safe-area-inset-top)) 10px 8px!important;
  box-sizing:border-box!important;
  border-bottom:1px solid #865b2a!important;
  background:
    radial-gradient(ellipse at 45% -35%,#67401d26,transparent 46%),
    repeating-linear-gradient(112deg,#ffffff04 0 1px,transparent 1px 9px),
    linear-gradient(180deg,#0a0e12f8,#05080bf8)!important;
  box-shadow:0 12px 32px #000c,inset 0 -1px #d79b3922!important;
}
body:not(.pixel-profile-active) .top-hud::before{
  content:"";position:absolute;inset:4px 7px 5px;pointer-events:none;
  border:1px solid #5e4022;box-shadow:inset 0 0 0 1px #1e150e;
}
body:not(.pixel-profile-active) .top-hud::after{
  content:""!important;position:absolute!important;left:12px!important;right:12px!important;bottom:3px!important;
  border-bottom:1px solid #d79a3933!important;
}
body:not(.pixel-profile-active) .player-chip{
  position:relative;z-index:1;
  display:grid!important;
  grid-template-columns:52px minmax(78px,1fr) minmax(88px,auto) 48px 66px!important;
  gap:7px!important;align-items:center!important;min-width:0!important;
}
body:not(.pixel-profile-active) .avatar-frame{
  width:50px!important;height:50px!important;border:1px solid #bf8738!important;border-radius:0!important;
  clip-path:polygon(8% 0,92% 0,100% 8%,100% 92%,92% 100%,8% 100%,0 92%,0 8%)!important;
  box-shadow:inset 0 0 14px #000,0 0 0 2px #24170e,0 0 12px #c17e2725!important;
  background:#06090c!important;
}
body:not(.pixel-profile-active) .avatar-frame img{transform:scale(1.06)!important;object-position:center 20%!important}
body:not(.pixel-profile-active) .player-copy{min-width:0!important}
body:not(.pixel-profile-active) .player-copy small{display:none!important}
body:not(.pixel-profile-active) .player-copy b{
  font:700 clamp(15px,4vw,21px)/1.05 Georgia,serif!important;color:#fff0d7!important;
  text-shadow:0 2px 3px #000!important;
}
body:not(.pixel-profile-active) .player-copy span{margin-top:5px!important;font-size:10px!important;color:#b9ad9b!important}
body:not(.pixel-profile-active) .compact-wallet{
  display:grid!important;grid-template-columns:1fr!important;gap:2px!important;min-width:0!important;
}
body:not(.pixel-profile-active) .compact-wallet>div{
  display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;
  padding:0!important;border:0!important;background:transparent!important;
}
body:not(.pixel-profile-active) .compact-wallet b{font:700 10px/1.1 Georgia,serif!important;color:#f2cd78!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.pixel-profile-active) .currency-icon{width:16px!important;height:16px!important;display:grid!important;place-items:center!important;font-size:9px!important}
body:not(.pixel-profile-active) .currency-icon.yang{border:3px solid #dda12e!important;border-radius:50%!important;color:transparent!important;background:#31200e!important}
body:not(.pixel-profile-active) .currency-icon.diamonds{transform:rotate(45deg)!important;border:1px solid #62d5ff!important;border-radius:1px!important;background:linear-gradient(135deg,#74e5ff,#0d9bd8 60%,#065580)!important;color:transparent!important}
body:not(.pixel-profile-active) .level-medallion{
  width:46px!important;height:46px!important;border:0!important;border-radius:0!important;
  clip-path:polygon(50% 0,82% 12%,100% 50%,82% 88%,50% 100%,18% 88%,0 50%,18% 12%)!important;
  background:linear-gradient(135deg,#d6a04a,#533516 26%,#e1ae59 52%,#68431c 76%,#d69c42)!important;
  box-shadow:none!important;padding:2px!important;
}
body:not(.pixel-profile-active) .level-medallion::before{content:"";position:absolute;inset:3px;clip-path:inherit;background:radial-gradient(circle,#282016,#090b0d 70%)}
body:not(.pixel-profile-active) .level-medallion small,body:not(.pixel-profile-active) .level-medallion span{position:relative;z-index:1}
body:not(.pixel-profile-active) .level-medallion small{font-size:6px!important;color:#c8a16b!important}
body:not(.pixel-profile-active) .level-medallion span{font-size:18px!important;color:#ffd783!important}
body:not(.pixel-profile-active) .hud-power-badge{
  position:relative!important;display:grid!important;place-items:center!important;align-content:center!important;
  width:64px!important;height:43px!important;padding:0!important;border:1px solid #8f622c!important;border-radius:0!important;
  clip-path:polygon(8% 0,92% 0,100% 18%,94% 50%,100% 82%,92% 100%,8% 100%,0 82%,6% 50%,0 18%)!important;
  background:linear-gradient(180deg,#17130f,#080a0c)!important;
  box-shadow:inset 0 0 12px #000!important;
}
body:not(.pixel-profile-active) .hud-power-badge small{font:700 6px/1 Georgia,serif!important;letter-spacing:1px!important;color:#b99662!important}
body:not(.pixel-profile-active) .hud-power-badge b{margin-top:3px!important;font:700 15px/1 Georgia,serif!important;color:#ffd27b!important}
body:not(.pixel-profile-active) .switch-character{display:none!important}

body:not(.pixel-profile-active) .hud-bars{
  position:relative;z-index:1;display:grid!important;grid-template-columns:1fr 1fr 1.16fr!important;gap:8px!important;margin:0 2px!important;
}
body:not(.pixel-profile-active) .hud-meter{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;min-width:0!important;margin:0!important}
body:not(.pixel-profile-active) .hud-meter label{display:flex!important;justify-content:space-between!important;gap:5px!important;min-width:0!important;font-size:7px!important;color:#cdbb9f!important}
body:not(.pixel-profile-active) .hud-meter label span{font-weight:800!important}
body:not(.pixel-profile-active) .hud-meter label b{font-size:7px!important;color:#eee4d8!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.pixel-profile-active) .top-hud .bar{height:7px!important;border:1px solid #67451f!important;background:#050709!important;box-shadow:inset 0 0 4px #000!important}
body:not(.pixel-profile-active) .top-hud .bar i{height:100%!important}
body:not(.pixel-profile-active) .top-hud .bar .hp{background:linear-gradient(90deg,#970e17,#e2443e)!important}
body:not(.pixel-profile-active) .top-hud .bar .mp{background:linear-gradient(90deg,#075b97,#35ade3)!important}
body:not(.pixel-profile-active) .top-hud .bar .exp{background:linear-gradient(90deg,#82520a,#f7c24b 70%,#ffe58b)!important}

/* ---------- common heading ---------- */
body:not(.pixel-profile-active) .screen-heading{
  position:relative!important;overflow:hidden!important;height:auto!important;min-height:78px!important;
  margin:0 0 10px!important;padding:13px 15px 12px 19px!important;
  border:1px solid #6c4922!important;border-left:3px solid #c48a38!important;border-radius:0!important;
  background:
    radial-gradient(circle at 78% 15%,#bd78251d,transparent 24%),
    linear-gradient(90deg,#17120eeb,#0b0e11ef 48%,#070a0ddc)!important;
  box-shadow:inset 0 0 0 1px #c28a3214,0 9px 23px #0008!important;
}
body:not(.pixel-profile-active) .screen-heading::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(112deg,transparent 55%,#d59b3610 55% 56%,transparent 56%);
}
body:not(.pixel-profile-active) .screen-heading::after{
  content:"ASHENREALM";position:absolute;right:13px;bottom:10px;
  font:700 8px/1 Georgia,serif;letter-spacing:1.7px;color:#c68e47a0;
}
body:not(.pixel-profile-active) .screen-heading>div{position:relative;z-index:2;min-width:0}
body:not(.pixel-profile-active) .screen-heading small{font-size:7px!important;letter-spacing:2.2px!important;color:#b17d41!important}
body:not(.pixel-profile-active) .screen-heading h1{margin:3px 0 0!important;font:700 clamp(28px,8vw,43px)/.95 Georgia,serif!important;color:#fff0d6!important;text-shadow:0 3px 10px #000!important}
body:not(.pixel-profile-active) .heading-rune{position:absolute!important;right:23%!important;top:11px!important;font-size:52px!important;color:#db9b3420!important}
body:not(.pixel-profile-active) .screen-heading.ember{border-left-color:#c95c32!important}

/* ---------- universal ornate panels ---------- */
body:not(.pixel-profile-active) .panel{
  position:relative!important;overflow:hidden!important;border:1px solid #614522!important;border-radius:0!important;
  background:
    radial-gradient(circle at 82% 2%,#7d4a1b10,transparent 26%),
    linear-gradient(145deg,#11171c,#080b0e 68%)!important;
  box-shadow:var(--pr-shadow),inset 0 0 0 1px #c58b3418!important;
}
body:not(.pixel-profile-active) .panel::before,body:not(.pixel-profile-active) .panel::after{
  width:18px!important;height:18px!important;border-color:#bd8740!important;opacity:.9!important;
}
body:not(.pixel-profile-active) .panel-title{
  min-height:47px!important;padding:10px 14px!important;border-bottom:1px solid #694a25!important;
  background:linear-gradient(90deg,#271b10,#121519 55%,#1a130d)!important;
  color:#f0c979!important;font:700 13px/1.1 Georgia,serif!important;letter-spacing:1.3px!important;
}
body:not(.pixel-profile-active) .panel-title small{font:700 7px/1.2 Inter,sans-serif!important;color:#8e806e!important;letter-spacing:.8px!important}

/* ---------- mobile bottom navigation ---------- */
.mobile-dock{
  position:fixed!important;z-index:100!important;left:0!important;right:0!important;bottom:0!important;
  display:grid!important;grid-template-columns:repeat(5,1fr)!important;
  padding:5px 4px max(5px,env(safe-area-inset-bottom))!important;
  border-top:1px solid #8a5d2a!important;
  background:linear-gradient(180deg,#090c0ff8,#040608fc)!important;
  box-shadow:0 -12px 30px #000d,inset 0 1px #d69a3520!important;
}
.mobile-dock button{
  position:relative!important;display:grid!important;place-items:center!important;gap:2px!important;
  min-width:0!important;min-height:64px!important;padding:5px 2px!important;border-color:transparent!important;border-radius:3px!important;
  background:transparent!important;box-shadow:none!important;
}
.mobile-dock button::after{content:"";position:absolute;right:0;top:13%;bottom:13%;width:1px;background:linear-gradient(transparent,#4d351f,transparent)}
.mobile-dock button:last-child::after{display:none}
.mobile-dock span{font-size:23px!important;color:#9a6f3a!important}
.mobile-dock b{font:700 9px/1.1 Georgia,serif!important;color:#cfc3b1!important}
.mobile-dock button.is-active{
  border-color:#c18031!important;background:linear-gradient(180deg,#402411,#1c110a)!important;
  box-shadow:inset 0 0 18px #e4982b28,inset 0 2px #eda942!important;
}
.mobile-dock button.is-active::before{content:"";position:absolute;left:20%;right:20%;top:-5px;height:2px;background:linear-gradient(90deg,transparent,#ffd066,transparent);box-shadow:0 0 8px #eaa13b}
.mobile-dock button.is-active span,.mobile-dock button.is-active b{color:#ffd17b!important}

/* ========================================================================
   ADVENTURE
   ======================================================================== */
body[data-active-screen="expeditions"] .screen-heading{background:radial-gradient(circle at 82% 15%,#b97c2529,transparent 25%),linear-gradient(90deg,#11150f,#0b1012 50%,#080b0d)!important}
body[data-active-screen="expeditions"] .screen-heading::before{content:"✥";display:grid;place-items:center;position:absolute;right:28%;top:7px;width:58px;height:58px;font:700 36px/1 Georgia;color:#d8a04418;background:none}
.adventure-tabs{
  display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:5px!important;margin:0 0 9px!important;padding:6px!important;
  border:1px solid #5d4326!important;background:#06090c!important;box-shadow:inset 0 0 0 1px #aa743020!important;
}
.adventure-tabs button{min-width:0!important;min-height:42px!important;padding:5px 3px!important;font-size:8px!important}
.adventure-tabs button.is-active{color:#ffd37d!important}
.expedition-grid.adventure-layout{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.map-panel,.waypoint-panel{min-width:0!important}
.location-cards{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;max-height:none!important;padding:9px!important}
.location-card,.location-card-v11{
  position:relative!important;overflow:hidden!important;min-height:82px!important;padding:11px 12px!important;
  border:1px solid #493a2a!important;border-radius:0!important;
  background:radial-gradient(circle at 12% 50%,#8b57211c,transparent 22%),linear-gradient(90deg,#11171b,#080b0e)!important;
  box-shadow:inset 0 0 0 1px #a87a3520!important;
}
.location-card::before,.location-card-v11::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#60401f}
.location-card.active,.location-card-v11.active{border-color:#bc8031!important;background:radial-gradient(circle at 12% 50%,#b873282d,transparent 25%),linear-gradient(90deg,#2c1c0f,#0d1114)!important;box-shadow:inset 3px 0 #e19a37,0 0 14px #b7702620!important}
.location-card b,.location-card-v11 b{font-family:Georgia,serif!important;color:#f1e3ce!important}
.location-card small,.location-card-v11 small{color:#b07c3d!important}
.location-card em,.location-card-v11 em{color:#8f9698!important}
.location-subzones{display:grid!important;gap:5px!important;padding:6px 0 0!important}
.location-subzone{border-color:#3f352b!important;background:#070a0d!important}
.location-subzone.is-active,.location-subzone.active{border-color:#a87535!important;background:#26190e!important}
.target-cards{display:grid!important;gap:7px!important;max-height:none!important;padding:9px!important}
.target-card{border:1px solid #45372a!important;background:linear-gradient(145deg,#10151a,#070a0d)!important}
.target-card.active{border-color:#ba7c31!important;box-shadow:inset 3px 0 #d17d2d!important}
.target-select{min-height:70px!important;padding:10px 11px!important}
.target-select b{font-family:Georgia,serif!important;color:#f1dfc5!important}
.group-choice{gap:5px!important}.group-choice button{min-height:38px!important}
.beast-book{border-color:#634623!important;background:radial-gradient(circle at 15% 0,#79502226,transparent 35%),#080b0e!important}
.dungeon-row{border:1px solid #44362a!important;background:linear-gradient(90deg,#11171c,#080b0e)!important}
.dungeon-row.active{border-color:#b87a30!important;background:linear-gradient(90deg,#2e1c0f,#0b0f12)!important}

/* ========================================================================
   COMBAT
   ======================================================================== */
.rush-combat-layout{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
.fighter-panel,.combat-core{min-height:0!important}
.battle-portrait{height:295px!important;background:radial-gradient(circle at 50% 55%,#6b4a2629,transparent 42%),linear-gradient(#111a21,#070a0d)!important}
.battle-portrait img{filter:drop-shadow(0 16px 12px #000d) drop-shadow(0 0 12px #bc792228)!important}
.combat-summary{gap:5px!important;padding:10px!important}
.combat-summary span{padding:9px!important;border-color:#40382f!important;background:#080b0e!important}
.combat-summary b{color:#e6b65b!important}
.combat-core .log{height:240px!important;background:#05080b!important;border-color:#3f3021!important}
.combat-core .fight-actions{display:grid!important;grid-template-columns:1.25fr 1fr .9fr!important;gap:5px!important;margin:9px!important}
.combat-core .fight-actions button{min-height:47px!important;font-size:10px!important}
.enemy-emblem{width:120px!important;height:120px!important;margin:22px auto 10px!important;border-color:#8b3f35!important;border-radius:50%!important;font-size:60px!important}
.combat-mode-switch{gap:5px!important;margin:9px!important;padding:5px!important;border:1px solid #45331f!important;background:#070a0d!important}

/* ========================================================================
   ARENA
   ======================================================================== */
body[data-active-screen="arena"] .screen-heading{border-left-color:#c56635!important;background:radial-gradient(circle at 80% 20%,#8f381d2c,transparent 27%),linear-gradient(90deg,#17100e,#0b0e11 58%,#080a0d)!important}
.arena-heading-premium{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
.arena-heading-icon{font-size:29px!important;color:#dc9b45!important}
.arena-heading-premium h1{font-size:32px!important}
.arena-heading-premium small{font-size:7px!important;letter-spacing:.5px!important;color:#9d8e7e!important}
.arena-tactics-hero{min-width:76px!important;min-height:44px!important;padding:5px 7px!important}
.arena-tactics-hero>span{font-size:16px!important}.arena-tactics-hero b{font-size:8px!important}.arena-tactics-hero em{font-size:18px!important}
.arena-panel-premium{min-height:0!important}
.arena-tabs{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:5px!important;padding:7px!important;border-bottom:1px solid #53391e!important;background:#07090c!important}
.arena-tabs button{min-width:0!important;min-height:39px!important;padding:4px!important;font-size:8px!important}
.arena-summary-v1,.arena-rules-v1,.arena-history,.arena-rewards-hero{border-color:#5b4128!important;background:linear-gradient(145deg,#11151a,#080a0d)!important}
.arena-opponents-v1{display:grid!important;gap:7px!important;padding:9px!important}
.arena-opponent-v1{
  display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;
  min-width:0!important;padding:9px!important;border:1px solid #48372a!important;background:linear-gradient(90deg,#11161a,#070a0d)!important;
}
.arena-opponent-v1 .arena-avatar{width:48px!important;height:48px!important;border-color:#9a6b31!important;background:#0a0d10!important}
.arena-opponent-main{min-width:0!important}.arena-opponent-main b{font-family:Georgia,serif!important;color:#f2dfc5!important}
.arena-inline-stats{display:flex!important;gap:8px!important;flex-wrap:wrap!important;font-size:8px!important;color:#b7a47f!important}
.arena-fight-cta{min-width:80px!important;min-height:42px!important;color:#ffd17b!important}
.arena-ranking-row{border-color:#41352b!important;background:#080b0e!important}
.arena-league-panel{border-color:#594126!important;background:#080b0e!important}
.arena-battle-layout{grid-template-columns:1fr 1fr!important;grid-template-areas:"player enemy" "core core"!important}
.arena-fighter-panel{min-height:0!important}.arena-combat-core{grid-area:core!important;min-height:0!important}

/* ========================================================================
   CITY + SERVICES + MARKET
   ======================================================================== */
body[data-active-screen="city"] .screen-heading{background:radial-gradient(circle at 82% 10%,#c4812a24,transparent 24%),linear-gradient(90deg,#16140f,#0a0e11 56%,#07090c)!important}
.city-hero{
  min-height:125px!important;margin-bottom:9px!important;padding:20px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;
  background:radial-gradient(circle at 18% 50%,#9b632829,transparent 30%),linear-gradient(120deg,#171b1a,#0a0d10 64%)!important;
}
.city-hero small{font-size:8px!important;letter-spacing:2px!important;color:#b98040!important}.city-hero h2{margin:6px 0 0!important;font:700 28px/1 Georgia,serif!important;color:#f4e4ca!important}
.city-crest{display:grid!important;place-items:center!important;width:74px!important;height:74px!important;border:1px solid #a87a39!important;color:#e1ad56!important;font:700 37px/1 Georgia,serif!important;background:#0a0d10!important;clip-path:polygon(50% 0,88% 15%,100% 50%,82% 90%,50% 100%,18% 90%,0 50%,12% 15%)!important}
.master-city-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
.city-service-card{
  position:relative!important;display:grid!important;grid-template-columns:50px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;
  min-width:0!important;min-height:92px!important;padding:12px!important;text-align:left!important;border:1px solid #4a3828!important;border-radius:0!important;
  background:radial-gradient(circle at 8% 50%,#84531e24,transparent 25%),linear-gradient(90deg,#11171a,#070a0d)!important;
  box-shadow:inset 0 0 0 1px #9d713322!important;
}
.city-service-card>span{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border:1px solid #8c6230!important;color:#e6b25c!important;font-size:24px!important;background:#090c0f!important}
.city-service-card>div{min-width:0!important}.city-service-card small,.city-service-card b,.city-service-card em{display:block!important}
.city-service-card small{font-size:7px!important;letter-spacing:1.4px!important;color:#a57339!important}.city-service-card b{margin:4px 0!important;font:700 19px/1.1 Georgia,serif!important;color:#f1e1c8!important}.city-service-card em{font-size:9px!important;font-style:normal!important;color:#8e9698!important}
.city-service-card strong{font-size:8px!important;color:#d9a753!important}.city-service-card.featured{border-color:#735026!important}.city-service-card.planned{opacity:.55!important}

.service-tabs,.merchant-tabs,.forge-tabs,.herbal-tabs,.market-tabs{
  display:flex!important;gap:5px!important;margin:0 0 9px!important;padding:6px!important;overflow-x:auto!important;
  border:1px solid #573d22!important;background:#07090c!important;
}
.service-tabs button,.merchant-tabs button,.forge-tabs button,.herbal-tabs button,.market-tabs button{flex:0 0 auto!important;min-height:39px!important;padding:5px 10px!important;font-size:8px!important}
.service-panel{min-height:0!important}
.npc-intro{padding:17px!important;gap:13px!important;background:radial-gradient(circle at 10% 50%,#7e512527,transparent 28%),#080b0e!important}
.npc-intro>span{flex:0 0 67px!important;height:67px!important;border-color:#8c6230!important;color:#e0ad58!important;font-size:34px!important}
.npc-intro h2{font-size:21px!important;color:#f0dec4!important}.npc-intro p{font-size:10px!important;color:#92999b!important}
.shop-row,.service-resource-row,.service-gear,.research-list article,.recipe-grid article{border-color:#41362e!important;background:#080b0e!important}
.keeper-layout,.service-columns{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
.storage-grid{gap:5px!important;padding:8px!important}
.market-layout{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:9px!important}
.market-filters{padding:10px!important;border-color:#5d4126!important;background:#0b0c0d!important}
.market-offers{gap:6px!important}.market-offers article{border-color:#44372c!important;background:#080b0e!important}

/* ========================================================================
   SKILLS / EVENTS / SETTINGS / PLANNED SCREENS
   ======================================================================== */
.skill-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:9px!important;background:#07090c!important}
.skill-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}.skill-points{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
.skill-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:9px!important}
.skill-card{border:1px solid #45382b!important;background:linear-gradient(90deg,#11171b,#080b0e)!important}
.training-info{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;border-top-color:#513820!important;background:#080b0e!important}
.book-bag{display:flex!important;gap:5px!important;flex-wrap:wrap!important}.book-bag span{border-color:#46392c!important;background:#070a0d!important}

.berserk-panel{border-color:#74351e!important}.berserk-rush{padding:10px!important;background:radial-gradient(circle at 50% 0,#4a1d1027,transparent 42%),#080b0e!important}
.berserk-banner,.berserk-card,.berserk-shop button{border-color:#6b3c28!important;background:linear-gradient(90deg,#1d100c,#090b0e)!important}

.master-placeholder,.coming-service{
  min-height:330px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:9px!important;text-align:center!important;padding:28px 20px!important;
  background:radial-gradient(circle at 50% 25%,#75491e28,transparent 32%),linear-gradient(145deg,#11161a,#070a0d)!important;
}
.placeholder-sigil,.coming-rune{font-size:62px!important;color:#c18a40!important;text-shadow:0 0 18px #c47d2835!important}.master-placeholder h2,.coming-service h2{font:700 27px/1.1 Georgia,serif!important;color:#f0dfc5!important}.master-placeholder p,.coming-service p{max-width:520px!important;color:#92999b!important;line-height:1.5!important}.master-placeholder strong,.coming-service>span{color:#d7a453!important;letter-spacing:2px!important}

.systems-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.settings,.itemization-status,.gear-progression,.upgrade-drop-panel,.source-bonus-panel,.balance{padding:10px!important;background:#080b0e!important}.balance{grid-template-columns:1fr 1fr!important;gap:5px!important}.balance div{background:#07090c!important;border-color:#3d342b!important}
.dev-tools{padding:10px!important}.dev-exp,.dev-level{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}.dev-tools button,.dev-tools select{min-width:0!important;font-size:8px!important}

/* ========================================================================
   MORE
   ======================================================================== */
body[data-active-screen="more"] .screen-heading{background:radial-gradient(circle at 82% 20%,#a96b2322,transparent 26%),linear-gradient(90deg,#17120e,#0b0e11 58%,#07090c)!important}
.more-menu{
  display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:9px!important;
  border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
.more-menu::before,.more-menu::after{display:none!important}
.more-group{
  position:relative!important;display:grid!important;grid-template-columns:1fr!important;gap:5px!important;
  padding:12px!important;border:1px solid #5a4024!important;
  background:radial-gradient(circle at 8% 0,#784d1e1e,transparent 28%),linear-gradient(145deg,#10151a,#070a0d)!important;
  box-shadow:inset 0 0 0 1px #a7773220,0 10px 22px #0007!important;
}
.more-group>b{display:block!important;padding:0 2px 7px!important;border-bottom:1px solid #3e3021!important;font:700 17px/1.1 Georgia,serif!important;color:#e7bd69!important;letter-spacing:.6px!important}
.more-group button{
  position:relative!important;min-height:50px!important;padding:9px 36px 9px 13px!important;text-align:left!important;border-color:#3f342a!important;background:linear-gradient(90deg,#0c1013,#080a0d)!important;color:#e4d9c8!important;
}
.more-group button::after{content:"›";position:absolute;right:14px;top:50%;transform:translateY(-52%);font:700 24px/1 Georgia,serif;color:#d7a653}
.more-group button:hover{border-color:#8d6534!important}
.build-diagnostics{opacity:.62!important}.build-id-card{background:#06080a!important;border-color:#3f342a!important}

/* ---------- overlays ---------- */
.game-modal-card,.pve-report-card,.arena-tactics-modal,.bestiary-modal{border-color:#98672e!important;background:linear-gradient(145deg,#11171d,#070a0d 70%)!important;box-shadow:0 26px 70px #000e,inset 0 0 0 1px #d79c3a1e!important}

/* ---------- tablet / desktop ---------- */
@media(min-width:700px){
  #gameMain{padding-left:16px!important;padding-right:16px!important}
  body:not(.pixel-profile-active) .player-chip{grid-template-columns:62px minmax(145px,1fr) 175px 58px 86px!important;gap:10px!important}
  body:not(.pixel-profile-active) .avatar-frame{width:60px!important;height:60px!important}
  body:not(.pixel-profile-active) .player-copy small{display:block!important;font-size:7px!important}
  body:not(.pixel-profile-active) .compact-wallet{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body:not(.pixel-profile-active) .compact-wallet b{font-size:13px!important}
  body:not(.pixel-profile-active) .level-medallion{width:55px!important;height:55px!important}.hud-power-badge{height:51px!important}
  body:not(.pixel-profile-active) .hud-meter label,body:not(.pixel-profile-active) .hud-meter label b{font-size:9px!important}
  .master-city-grid{grid-template-columns:1fr 1fr!important}
  .skill-grid{grid-template-columns:1fr 1fr!important}
  .systems-grid{grid-template-columns:1fr 1fr!important}
  .more-menu{grid-template-columns:1fr 1fr!important}
  .keeper-layout{grid-template-columns:1fr 1fr!important}.keeper-storage{grid-column:1/-1}
  .market-layout{grid-template-columns:245px 1fr!important}
  .rush-combat-layout{grid-template-columns:1fr 1fr!important;grid-template-areas:"player enemy" "core core"!important}.player-fighter{grid-area:player}.enemy-fighter{grid-area:enemy}.combat-core{grid-area:core}
}

@media(min-width:901px){
  #gameMain{padding-bottom:44px!important}
  body:not(.pixel-profile-active)>.mobile-dock{display:none!important}
  body.pixel-profile-active>.mobile-dock{display:grid!important;left:50%!important;right:auto!important;width:min(864px,100vw)!important;transform:translateX(-50%)!important}
  body:not(.pixel-profile-active) .top-hud{grid-template-columns:minmax(480px,1fr) minmax(420px,.9fr)!important;padding:9px 18px!important}
  body:not(.pixel-profile-active) .player-chip{grid-template-columns:66px minmax(160px,1fr) 190px 62px 96px!important}
  body:not(.pixel-profile-active) .avatar-frame{width:64px!important;height:64px!important}
  body:not(.pixel-profile-active) .hud-bars{align-self:center!important}
  .expedition-grid.adventure-layout{grid-template-columns:1.05fr .95fr!important}
  .rush-combat-layout{grid-template-columns:minmax(285px,.78fr) minmax(400px,1.2fr) minmax(285px,.78fr)!important;grid-template-areas:"player core enemy"!important}
  .arena-opponents-v1{grid-template-columns:1fr 1fr!important}
  .master-city-grid{grid-template-columns:repeat(3,1fr)!important}
  .systems-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .more-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:380px){
  body:not(.pixel-profile-active) .player-chip{grid-template-columns:46px minmax(68px,1fr) 78px 43px 57px!important;gap:4px!important}
  body:not(.pixel-profile-active) .avatar-frame{width:44px!important;height:44px!important}
  body:not(.pixel-profile-active) .player-copy b{font-size:14px!important}.player-copy span{font-size:9px!important}
  body:not(.pixel-profile-active) .compact-wallet b{font-size:9px!important}.level-medallion{width:42px!important;height:42px!important}.hud-power-badge{width:55px!important}
  body:not(.pixel-profile-active) .hud-bars{gap:5px!important}
  .adventure-tabs button,.arena-tabs button{font-size:7px!important}
  .arena-opponent-v1{grid-template-columns:44px minmax(0,1fr) 72px!important}.arena-opponent-v1 .arena-avatar{width:40px!important;height:40px!important}.arena-fight-cta{min-width:68px!important;font-size:8px!important}
  .city-service-card{grid-template-columns:44px minmax(0,1fr) auto!important;padding:9px!important}.city-service-card>span{width:38px!important;height:38px!important;font-size:20px!important}.city-service-card b{font-size:17px!important}
}

/* ========================================================================
   v0.13.6.29 — COMBAT CLARITY + MOBILE NAV SAFETY
   ======================================================================== */
.mobile-dock{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:2100!important;box-sizing:border-box!important;padding-bottom:max(5px,env(safe-area-inset-bottom))!important}
#loopStatus{display:none!important}

/* Group target: avatar exactly centered inside its outer target tile. */
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target{
  display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1fr 4px!important;place-items:center!important;align-items:center!important;justify-items:center!important;padding:3px 4px 0!important;box-sizing:border-box!important;
}
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target .mob-thumb{
  grid-row:1!important;margin:0!important;align-self:center!important;justify-self:center!important;display:grid!important;place-items:center!important;line-height:1!important;box-sizing:border-box!important;transform:none!important;
}
body[data-active-screen="combat"] .enemy-formation:not(:has(.stone-add)) .group-target>i{grid-row:2!important;position:absolute!important;left:0!important;right:auto!important;bottom:0!important;margin:0!important}

/* Metin2-style combat affects: compact and readable on mobile. */
.combat-status-strip{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;min-height:0;margin:5px 4px 7px}
.combat-status-strip[hidden]{display:none!important}
.combat-status-chip{position:relative;display:grid;place-items:center;width:30px;height:30px;border:1px solid #65513a;background:radial-gradient(circle at 50% 35%,#20242a,#090b0e 72%);box-shadow:inset 0 0 8px #000a,0 2px 5px #0008;border-radius:6px;color:#ddc293}
.combat-status-chip>i{font-style:normal;font-size:16px;line-height:1}.combat-status-chip>small{position:absolute;right:-3px;bottom:-4px;max-width:24px;padding:1px 3px;border:1px solid #46331f;border-radius:5px;background:#08090b;color:#e6cf9d;font:700 6px/1 Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.combat-status-chip.buff{border-color:#6d8b59;color:#a9db8c}.combat-status-chip.debuff{border-color:#87463f;color:#f08372}

/* Details = loot thumbnails only. */
.expedition-summary>summary{font-size:10px!important;letter-spacing:1.5px!important}.session-items-thumbs{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(42px,42px));gap:6px!important;padding:8px 10px 10px!important;margin:0!important}
.session-items-thumbs .session-loot-thumb{position:relative;width:42px;height:42px;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #5a462e!important;background:linear-gradient(145deg,#10151a,#07090c)!important;box-shadow:inset 0 0 10px #000b!important;color:#d7a653!important;overflow:hidden}
.session-loot-thumb>i{font-style:normal;font-size:20px;line-height:1}.session-loot-thumb>b{position:absolute;right:2px;bottom:2px;min-width:13px;padding:1px 2px;border-radius:3px;background:#07090ddd;color:#f1cf89;font:700 7px/1 Arial,sans-serif;text-align:center}.session-loot-empty{grid-column:1/-1;color:#777;font-size:8px}

/* ================================================================
   SEKCJA: premium-v34.css
   ================================================================ */
/* ============================================================================
   ASHENREALM v0.13.6.34 — FULL PREMIUM GUI PASS
   Mobile-first production skin built on the real v0.13.6.33 DOM and mechanics.
   The generated concept art is used only as cropped decorative scenery assets;
   dynamic text, values, buttons and game state remain real HTML/JS.
   ============================================================================ */
:root{
  --v34-ink:#030507;
  --v34-ink-2:#070a0d;
  --v34-surface:#0b1014;
  --v34-surface-2:#11171c;
  --v34-surface-3:#171c20;
  --v34-gold:#b8782c;
  --v34-gold-2:#dca54e;
  --v34-gold-3:#ffd67d;
  --v34-line:#6f4a23;
  --v34-line-soft:#3e3021;
  --v34-text:#f4e8d5;
  --v34-muted:#9c9180;
  --v34-danger:#cb513f;
  --v34-blue:#38a8e1;
  --v34-green:#7eae70;
  --v34-dock:78px;
  --v34-radius:3px;
  --v34-shadow:0 14px 32px #000b;
}

/* ------------------------------- foundation -------------------------------- */
html,body{background:#030507!important;color:var(--v34-text)!important}
body{
  background:
    radial-gradient(ellipse at 50% -8%,#5b391d28,transparent 34%),
    radial-gradient(ellipse at 12% 45%,#7f4a1810,transparent 28%),
    repeating-linear-gradient(118deg,#ffffff025 0 1px,transparent 1px 11px),
    linear-gradient(180deg,#080b0e 0,#030507 52%,#020304 100%)!important;
}
body::before{opacity:.43!important;background:radial-gradient(ellipse at center,transparent 31%,#000 100%)!important}

#gameMain{
  width:min(100%,980px)!important;
  max-width:980px!important;
  margin:0 auto!important;
  padding:10px 9px calc(var(--v34-dock) + 22px + env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;
}
.screen-view{min-width:0!important}

/* Ornate reusable frame. */
.panel,
.more-group,
.city-service-card,
.location-card,
.location-card-v11,
.target-card,
.arena-opponent-v1,
.arena-league-panel,
.arena-ranking-row,
.shop-row,
.service-gear,
.service-resource-row,
.recipe-grid article,
.research-list article,
.master-placeholder,
.coming-service{
  border:1px solid var(--v34-line)!important;
  border-radius:0!important;
  background:
    radial-gradient(circle at 8% 0,#9b602019,transparent 24%),
    linear-gradient(145deg,#11171c,#070a0d 66%,#0b0e11)!important;
  box-shadow:inset 0 0 0 1px #d9a34a15,inset 0 0 24px #0008,0 7px 18px #0006!important;
}
.panel{position:relative!important;overflow:hidden!important}
.panel::before,.panel::after{
  content:"";position:absolute;z-index:2;pointer-events:none;width:18px;height:18px;opacity:.8;
}
.panel::before{left:5px;top:5px;border-left:1px solid #c69348;border-top:1px solid #c69348}
.panel::after{right:5px;bottom:5px;border-right:1px solid #c69348;border-bottom:1px solid #c69348}

.panel-title{
  min-height:49px!important;padding:10px 14px!important;box-sizing:border-box!important;
  border-bottom:1px solid #745027!important;
  background:linear-gradient(90deg,#2b1b0ef0,#151719 44%,#0d1013 72%,#24170dd9)!important;
  color:#f3d089!important;
  box-shadow:inset 0 -1px #0e0906,inset 0 1px #dca55013!important;
}
.panel-title>span{font:700 15px/1.1 Georgia,serif!important;letter-spacing:.8px!important;color:#f1d39a!important}
.panel-title>small{font:700 7px/1 Arial,sans-serif!important;letter-spacing:1.2px!important;color:#8f816f!important;text-transform:uppercase}

/* Real controls. */
body:not(.pixel-profile-active) button,
body:not(.pixel-profile-active) select{
  border:1px solid #5b4024!important;border-radius:var(--v34-radius)!important;
  color:#e9dcc8!important;background:linear-gradient(180deg,#171a1d,#0a0d10 72%,#06080a)!important;
  box-shadow:inset 0 1px #ffffff0a,inset 0 0 11px #0006,0 3px 8px #0007!important;
}
body:not(.pixel-profile-active) button.is-active,
body:not(.pixel-profile-active) button.primary{
  border-color:#c88a35!important;color:#ffda85!important;
  background:radial-gradient(circle at 50% 35%,#86501c38,transparent 52%),linear-gradient(180deg,#4d2d14,#22140b 72%)!important;
  box-shadow:inset 0 0 0 1px #ffcb6a23,inset 0 0 20px #d8892927,0 0 12px #cb802624!important;
}
@media(hover:hover) and (pointer:fine){body:not(.pixel-profile-active) button:hover{border-color:#a97534!important;filter:brightness(1.08)}}

/* ------------------------------- shared HUD --------------------------------- */
body:not(.pixel-profile-active) .top-hud{
  position:sticky!important;top:0!important;z-index:150!important;
  padding:max(7px,env(safe-area-inset-top)) 9px 8px!important;
  border-bottom:1px solid #8a5d2a!important;
  background:
    radial-gradient(ellipse at 47% -45%,#75491d30,transparent 45%),
    linear-gradient(180deg,#0a0e12fb,#040609fb)!important;
  box-shadow:0 12px 30px #000d,inset 0 -1px #dca54a25!important;
}
body:not(.pixel-profile-active) .top-hud::before{inset:4px 5px 4px!important;border-color:#624322!important;box-shadow:inset 0 0 0 1px #1a110a!important}
body:not(.pixel-profile-active) .player-chip{grid-template-columns:54px minmax(74px,1fr) minmax(90px,auto) 49px 66px!important;gap:6px!important}
body:not(.pixel-profile-active) .avatar-frame{
  width:51px!important;height:51px!important;border:1px solid #c28939!important;background:#06090c!important;
  box-shadow:inset 0 0 17px #000,0 0 0 2px #25170e,0 0 12px #ce81252d!important;
}
body:not(.pixel-profile-active) .player-copy b{font:700 16px/1 Georgia,serif!important;color:#fff0d7!important}
body:not(.pixel-profile-active) .player-copy span{font:400 9px/1.2 Georgia,serif!important;color:#baaa94!important}
body:not(.pixel-profile-active) .compact-wallet b{font:700 11px/1.1 Georgia,serif!important;color:#efd18b!important}
body:not(.pixel-profile-active) .level-medallion{filter:drop-shadow(0 3px 6px #000a)}
body:not(.pixel-profile-active) .hud-power-badge{border-color:#95632d!important}
body:not(.pixel-profile-active) .hud-bars{gap:7px!important}
body:not(.pixel-profile-active) .hud-meter label,body:not(.pixel-profile-active) .hud-meter label b{font-size:7px!important}
body:not(.pixel-profile-active) .top-hud .bar{height:8px!important;border-color:#704a22!important}

/* ------------------------------ screen banners ------------------------------ */
body:not(.pixel-profile-active) .screen-heading{
  position:relative!important;isolation:isolate;overflow:hidden!important;
  min-height:91px!important;margin:0 0 9px!important;padding:17px 18px 15px 21px!important;
  border:1px solid #80572a!important;border-left:0!important;
  background:#080b0e!important;
  box-shadow:inset 0 0 0 1px #d19b4318,0 10px 25px #0009!important;
}
body:not(.pixel-profile-active) .screen-heading::before{
  content:""!important;position:absolute!important;z-index:-2!important;inset:0!important;
  background:
    linear-gradient(90deg,#07090cf5 0 32%,#07090cbd 58%,#07090c80 100%),
    radial-gradient(circle at 80% 25%,#c6812730,transparent 26%),
    linear-gradient(90deg,#17110d,#090c0f)!important;
  opacity:1!important;
}
body:not(.pixel-profile-active) .screen-heading::after{
  content:"ASHENREALM"!important;position:absolute!important;z-index:1!important;right:15px!important;bottom:14px!important;
  font:700 10px/1 Georgia,serif!important;letter-spacing:2px!important;color:#d2a25b!important;text-shadow:0 2px 4px #000!important;
}
body:not(.pixel-profile-active) .screen-heading>div{position:relative;z-index:2}
body:not(.pixel-profile-active) .screen-heading small{font:700 8px/1 Arial,sans-serif!important;letter-spacing:2.4px!important;color:#bc8848!important}
body:not(.pixel-profile-active) .screen-heading h1{margin:6px 0 0!important;font:700 clamp(31px,8vw,44px)/.92 Georgia,serif!important;color:#fff0d7!important;text-shadow:0 3px 9px #000!important;letter-spacing:.3px!important}
body:not(.pixel-profile-active) .heading-rune{position:absolute!important;right:18px!important;top:7px!important;z-index:0!important;font-size:66px!important;color:#d69b3a20!important}

/* Scenic concept crops: art only, no dynamic UI baked in. */
body[data-active-screen="expeditions"] .screen-heading::before{
  background:linear-gradient(90deg,#05080bf8 0 29%,#05080bbd 56%,#05080b48 100%),url("assets/ui/premium-v34/adventure-header.webp") center/cover no-repeat!important;
}
body[data-active-screen="arena"] .screen-heading::before{
  background:linear-gradient(90deg,#05080bf9 0 30%,#05080bbd 58%,#05080b4a 100%),url("assets/ui/premium-v34/arena-header.webp") center/cover no-repeat!important;
}
body[data-active-screen="city"] .screen-heading::before,
body[data-active-screen="services"] .screen-heading::before,
body[data-active-screen="market"] .screen-heading::before{
  background:linear-gradient(90deg,#05080bf9 0 30%,#05080bbd 58%,#05080b48 100%),url("assets/ui/premium-v34/city-header.webp") center/cover no-repeat!important;
}
body[data-active-screen="more"] .screen-heading::before{
  background:linear-gradient(90deg,#05080bf9 0 30%,#05080bbd 58%,#05080b48 100%),url("assets/ui/premium-v34/more-header.webp") center/cover no-repeat!important;
}

/* ------------------------------- global dock -------------------------------- */
body>.mobile-dock{
  position:fixed!important;z-index:2500!important;left:0!important;right:0!important;bottom:0!important;
  height:auto!important;min-height:var(--v34-dock)!important;padding:5px 5px max(6px,env(safe-area-inset-bottom))!important;
  display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:2px!important;
  border-top:1px solid #97662e!important;background:linear-gradient(180deg,#0a0d10fb,#040609fd)!important;
  box-shadow:0 -15px 34px #000e,inset 0 1px #d5a14920!important;
}
body>.mobile-dock button{
  position:relative!important;min-width:0!important;min-height:66px!important;padding:7px 2px 5px!important;
  display:grid!important;place-items:center!important;align-content:center!important;gap:5px!important;
  border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;
}
body>.mobile-dock button::after{content:"";position:absolute;right:-2px;top:16%;bottom:16%;width:1px;background:linear-gradient(transparent,#513820,transparent)}
body>.mobile-dock button:last-child::after{display:none}
body>.mobile-dock span{font-size:25px!important;line-height:1!important;color:#b17c3d!important}
body>.mobile-dock b{font:700 10px/1 Georgia,serif!important;color:#d7cbbb!important}
body>.mobile-dock button.is-active{
  border-color:#c88734!important;background:radial-gradient(circle at 50% 35%,#a45c1b37,transparent 55%),linear-gradient(180deg,#472811,#1e120a)!important;
  box-shadow:inset 0 0 18px #e08f2928,inset 0 2px #e9aa49,0 0 10px #d2822526!important;
}
body>.mobile-dock button.is-active::before{content:"";position:absolute;left:18%;right:18%;top:-5px;height:2px;background:linear-gradient(90deg,transparent,#ffd36a,transparent);box-shadow:0 0 8px #eaa23b}
body>.mobile-dock button.is-active span,body>.mobile-dock button.is-active b{color:#ffd27d!important}

/* -------------------------- PROFILE / PIXEL SURFACE ------------------------- */
/* v33 regression fix: premium global button rules must never paint the proxy hit-zones. */
body.pixel-profile-active .pixel-hit{
  background:transparent!important;border:0!important;box-shadow:none!important;color:transparent!important;
  filter:none!important;transform:none!important;outline-offset:2px!important;
}
body.pixel-profile-active .pixel-hit:focus-visible{outline:2px solid #f0b34a!important}
body.pixel-profile-active .pixel-hit:active{background:#ffb63b20!important}

/* Make the generated + buttons and details CTA remain perfectly visible and tappable. */
#pxAddStr,#pxAddDex,#pxAddVit,#pxAddInt,#pxDetails{isolation:isolate!important}
#pxAddStr::after,#pxAddDex::after,#pxAddVit::after,#pxAddInt::after{
  content:"+";position:absolute;inset:5px;display:grid;place-items:center;
  border:1px solid #d18e34;border-radius:5px;
  background:radial-gradient(circle at 50% 25%,#8c4f1f70,transparent 54%),linear-gradient(180deg,#3c2412cc,#160e09e8);
  color:#ffd276;font:700 42px/1 Georgia,serif;text-shadow:0 2px 3px #000;box-shadow:inset 0 0 15px #e99b2925,0 0 8px #c4782428;pointer-events:none;
}
#pxDetails::after{
  content:"▥   Szczegółowe statystyki   ›";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:14px;
  border:1px solid #cf8d36;border-radius:5px;
  background:radial-gradient(circle at 50% 30%,#9a581e52,transparent 62%),linear-gradient(180deg,#4a2a13dd,#1c110ae8);
  color:#ffd98d;font:700 25px/1 Georgia,serif;text-shadow:0 2px 4px #000;box-shadow:inset 0 0 0 1px #ffca6723,inset 0 0 18px #d98a2827,0 0 10px #c67d2528;pointer-events:none;
}

/* Detailed-statistics sheet rendered as real DOM. */
.px-stats-sheet[hidden]{display:none!important}
.px-stats-sheet{position:fixed;z-index:4300;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:16px 10px max(16px,env(safe-area-inset-bottom));background:#000b;backdrop-filter:blur(4px)}
.px-stats-sheet-card{width:min(100%,720px);max-height:min(82vh,820px);overflow:auto;border:1px solid #b67a32;background:linear-gradient(160deg,#11171d,#06090c 75%);box-shadow:0 26px 70px #000f,inset 0 0 0 1px #e4ae5224;position:relative}
.px-stats-sheet-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #704c26;background:linear-gradient(90deg,#2c1c0e,#111518 65%,#19120c)}
.px-stats-sheet-head small{display:block;font:700 8px/1 Arial;letter-spacing:2px;color:#aa7940}.px-stats-sheet-head h2{margin:4px 0 0;font:700 25px/1 Georgia;color:#f5dfb8}.px-stats-sheet-close{width:44px;height:44px!important;min-height:44px!important;padding:0!important;font-size:27px!important}
.px-stats-sheet-body{padding:12px}.px-stats-sheet-section{margin-bottom:12px;border:1px solid #4c3928;background:#080b0e}.px-stats-sheet-section h3{margin:0;padding:11px 13px;border-bottom:1px solid #51391f;font:700 17px/1 Georgia;color:#dfb366;background:#15110d}.px-stats-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px}.px-stats-sheet-grid span{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #332c25;background:#0b0f12;color:#bcb1a1;font-size:11px}.px-stats-sheet-grid b{color:#f2d691}

/* ------------------------------- ADVENTURE ---------------------------------- */
body[data-active-screen="expeditions"] .adventure-tabs{
  display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:5px!important;margin-bottom:8px!important;padding:6px!important;
  border:1px solid #644721!important;background:#05080b!important;box-shadow:inset 0 0 0 1px #b37a3020!important;
}
body[data-active-screen="expeditions"] .adventure-tabs button{min-width:0!important;min-height:44px!important;padding:5px 3px!important;font-size:8px!important}
body[data-active-screen="expeditions"] .adventure-layout{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
body[data-active-screen="expeditions"] .map-panel::after{
  content:"";position:absolute;z-index:0;left:0;right:0;top:50px;height:150px;pointer-events:none;
  background:linear-gradient(180deg,#05080b28,#05080bf0),url("assets/ui/premium-v34/adventure-hero.webp") center/cover no-repeat;opacity:.72;
}
body[data-active-screen="expeditions"] .map-panel>*{position:relative;z-index:1}
body[data-active-screen="expeditions"] .location-cards{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;padding:10px!important;max-height:none!important}
body[data-active-screen="expeditions"] .location-card,body[data-active-screen="expeditions"] .location-card-v11{min-height:92px!important;padding:12px 12px 12px 15px!important;overflow:hidden!important}
body[data-active-screen="expeditions"] .location-card::after,body[data-active-screen="expeditions"] .location-card-v11::after{content:"›";position:absolute;right:13px;top:50%;transform:translateY(-55%);font:700 28px/1 Georgia;color:#dca34d}
body[data-active-screen="expeditions"] .location-card.active,body[data-active-screen="expeditions"] .location-card-v11.active{border-color:#c48835!important;background:radial-gradient(circle at 10% 50%,#b46a232e,transparent 27%),linear-gradient(90deg,#2a1b0f,#0b0f12)!important;box-shadow:inset 4px 0 #e29a37,0 0 14px #bf762421!important}
body[data-active-screen="expeditions"] .target-cards{display:grid!important;gap:6px!important;padding:9px!important;max-height:none!important}
body[data-active-screen="expeditions"] .target-card{overflow:hidden!important}.target-select{min-height:74px!important}.target-select b{font:700 15px/1.1 Georgia,serif!important;color:#f2dfc3!important}
body[data-active-screen="expeditions"] .beast-book{border-color:#704d27!important;background:radial-gradient(circle at 8% 0,#9a5b1d24,transparent 27%),#080b0e!important}

/* -------------------------------- COMBAT ------------------------------------ */
body[data-active-screen="combat"] .screen-heading::before{background:linear-gradient(90deg,#090807f7 0 30%,#090807bf 58%,#09080755),url("assets/ui/premium-v34/arena-header.webp") center/cover no-repeat!important}
body[data-active-screen="combat"] .rush-combat-layout{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
body[data-active-screen="combat"] .fighter-panel,body[data-active-screen="combat"] .combat-core{border-color:#704922!important}
body[data-active-screen="combat"] .battle-portrait{height:300px!important;background:radial-gradient(circle at 50% 50%,#87532628,transparent 44%),linear-gradient(#101820,#06090c)!important}
body[data-active-screen="combat"] .battle-portrait img{filter:drop-shadow(0 17px 13px #000e) drop-shadow(0 0 11px #c17b2525)!important}
body[data-active-screen="combat"] .combat-summary{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:5px!important;padding:9px!important}
body[data-active-screen="combat"] .combat-summary span{border:1px solid #3f342a!important;background:#080b0e!important;padding:8px!important}
body[data-active-screen="combat"] .combat-summary b{color:#e7b95d!important}
body[data-active-screen="combat"] .fight-actions{display:grid!important;grid-template-columns:1.3fr 1fr .8fr!important;gap:5px!important;margin:8px!important}.fight-actions button{min-height:49px!important}
body[data-active-screen="combat"] .log{height:235px!important;border-color:#43331f!important;background:#05080b!important}

/* --------------------------------- ARENA ------------------------------------ */
body[data-active-screen="arena"] .arena-panel-premium{border-color:#7a5025!important}
body[data-active-screen="arena"] .arena-tabs{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:4px!important;padding:6px!important;background:#05080b!important;border-bottom:1px solid #63431f!important}
body[data-active-screen="arena"] .arena-tabs button{min-width:0!important;min-height:42px!important;padding:4px!important;font-size:8px!important}
body[data-active-screen="arena"] .arena-summary-v1,body[data-active-screen="arena"] .arena-rules-v1,body[data-active-screen="arena"] .arena-history,body[data-active-screen="arena"] .arena-rewards-hero{border-color:#624321!important;background:radial-gradient(circle at 8% 10%,#8e571c22,transparent 25%),linear-gradient(145deg,#11171b,#070a0d)!important}
body[data-active-screen="arena"] .arena-opponents-v1{display:grid!important;gap:6px!important;padding:9px!important}
body[data-active-screen="arena"] .arena-opponent-v1{grid-template-columns:54px minmax(0,1fr) 92px!important;gap:8px!important;min-height:76px!important;padding:8px!important;border-color:#5d4024!important}
body[data-active-screen="arena"] .arena-opponent-v1 .arena-avatar{width:50px!important;height:50px!important;border:1px solid #a77031!important;box-shadow:inset 0 0 10px #000,0 0 0 1px #34200e!important}
body[data-active-screen="arena"] .arena-opponent-main>b{font:700 16px/1.1 Georgia,serif!important;color:#f1dec3!important}.arena-inline-stats{font-size:8px!important;color:#bba276!important}
body[data-active-screen="arena"] .arena-fight-cta{min-width:88px!important;min-height:47px!important;font:700 13px/1 Georgia,serif!important;color:#ffd17e!important}
body[data-active-screen="arena"] .arena-heading-icon{color:#e0a049!important}

/* ---------------------------------- CITY ------------------------------------ */
body[data-active-screen="city"] .city-hero{
  position:relative!important;isolation:isolate;overflow:hidden!important;min-height:182px!important;margin-bottom:8px!important;padding:22px 18px!important;
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;border-color:#8c5e2a!important;background:#080b0e!important;
}
body[data-active-screen="city"] .city-hero::before{content:"";position:absolute;z-index:-2;inset:0;background:url("assets/ui/premium-v34/city-hero.webp") center/cover no-repeat;opacity:.9}
body[data-active-screen="city"] .city-hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#05080bf0 0 38%,#05080b9a 63%,#05080b20),linear-gradient(180deg,#05080b18,#05080bb8)}
body[data-active-screen="city"] .city-hero small{font-size:8px!important;letter-spacing:2px!important;color:#c28c48!important}.city-hero h2{font:700 29px/1 Georgia,serif!important;color:#f8e8cc!important}.city-crest{width:66px!important;height:66px!important;background:#080b0dd4!important;border-color:#c08436!important;color:#e4b45b!important}
body[data-active-screen="city"] .master-city-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
body[data-active-screen="city"] .city-service-card{
  position:relative!important;isolation:isolate;overflow:hidden!important;display:block!important;min-height:148px!important;padding:77px 9px 10px!important;text-align:left!important;border-color:#6c4926!important;background:#080b0e!important;
}
body[data-active-screen="city"] .city-service-card::before{content:"";position:absolute;z-index:-2;left:0;right:0;top:0;height:78px;background-position:center;background-size:cover;background-repeat:no-repeat;filter:saturate(.85)}
body[data-active-screen="city"] .city-service-card::after{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;height:94px;background:linear-gradient(180deg,transparent,#080b0e 92%)}
body[data-active-screen="city"] .city-service-card:nth-child(1)::before{background-image:url("assets/ui/premium-v34/traders.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(2)::before{background-image:url("assets/ui/premium-v34/blacksmith.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(3)::before{background-image:url("assets/ui/premium-v34/keeper.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(4)::before{background-image:url("assets/ui/premium-v34/enchanter.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(5)::before{background-image:url("assets/ui/premium-v34/stones.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(6)::before{background-image:url("assets/ui/premium-v34/biologist.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(7)::before{background-image:url("assets/ui/premium-v34/biologist.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(8)::before{background-image:url("assets/ui/premium-v34/pets.webp")}
body[data-active-screen="city"] .city-service-card:nth-child(9)::before{background-image:url("assets/ui/premium-v34/market.webp")}
body[data-active-screen="city"] .city-service-card>span{position:absolute!important;left:10px!important;top:56px!important;width:38px!important;height:38px!important;border-color:#9c6b30!important;background:#080b0edb!important;font-size:20px!important}
body[data-active-screen="city"] .city-service-card>div{min-width:0!important}.city-service-card small{font-size:6px!important;letter-spacing:1.1px!important}.city-service-card b{font:700 17px/1.05 Georgia,serif!important;color:#f3dfc3!important}.city-service-card em{margin-top:4px!important;font-size:8px!important;line-height:1.25!important}.city-service-card strong{position:absolute!important;right:8px!important;bottom:9px!important;font-size:7px!important;color:#dca84f!important}
body[data-active-screen="city"] .city-service-card.planned{opacity:.58!important}

/* ---------------------------- CITY SUB-SCREENS ------------------------------ */
body[data-active-screen="services"] .service-tabs,body[data-active-screen="services"] .merchant-tabs,body[data-active-screen="services"] .forge-tabs,body[data-active-screen="services"] .herbal-tabs,body[data-active-screen="market"] .market-tabs{
  display:flex!important;gap:5px!important;overflow-x:auto!important;padding:6px!important;margin-bottom:8px!important;border:1px solid #5e4022!important;background:#05080b!important;
}
body[data-active-screen="services"] .service-tabs button,body[data-active-screen="services"] .merchant-tabs button,body[data-active-screen="services"] .forge-tabs button,body[data-active-screen="services"] .herbal-tabs button,body[data-active-screen="market"] .market-tabs button{flex:0 0 auto!important;min-height:42px!important;padding:6px 10px!important;font-size:8px!important}
body[data-active-screen="services"] .npc-intro{position:relative!important;overflow:hidden!important;padding:17px!important;background:radial-gradient(circle at 10% 50%,#8d572026,transparent 30%),#080b0e!important}.npc-intro>span{border-color:#96662e!important;color:#e0aa51!important;background:#070a0d!important}.npc-intro h2{font:700 21px/1 Georgia,serif!important;color:#f2dec3!important}.npc-intro p{font-size:10px!important;color:#9ba0a0!important}
body[data-active-screen="services"] .shop-row,body[data-active-screen="services"] .service-resource-row,body[data-active-screen="services"] .service-gear,body[data-active-screen="services"] .research-list article,body[data-active-screen="services"] .recipe-grid article{border-color:#4d3928!important;background:linear-gradient(90deg,#101519,#070a0d)!important}
body[data-active-screen="services"] .keeper-layout,body[data-active-screen="services"] .service-columns{grid-template-columns:1fr!important;gap:8px!important}
body[data-active-screen="market"] .market-layout{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:9px!important}.market-filters{border-color:#694822!important;background:#090b0d!important}.market-offers article{border-color:#4b392a!important;background:#080b0e!important}

/* -------------------------------- SKILLS ------------------------------------ */
body[data-active-screen="skills"] .screen-heading::before{background:linear-gradient(90deg,#05080bf8 0 34%,#05080bc9 60%,#05080b65),url("assets/ui/premium-v34/more-hero.webp") center/cover no-repeat!important}
body[data-active-screen="skills"] .skill-toolbar{padding:8px!important;border-bottom:1px solid #5d4022!important;background:#05080b!important}.skill-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}.skill-points{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}.skill-grid{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;padding:9px!important}.skill-card{border-color:#563d28!important;background:linear-gradient(90deg,#11171b,#070a0d)!important}.training-info{background:#070a0d!important;border-top-color:#66451f!important}

/* --------------------------- PLANNED / SETTINGS / DEV ----------------------- */
body[data-active-screen="companion"] .screen-heading::before,body[data-active-screen="mount"] .screen-heading::before,body[data-active-screen="alchemy"] .screen-heading::before,body[data-active-screen="guild"] .screen-heading::before,body[data-active-screen="mail"] .screen-heading::before,body[data-active-screen="itemshop"] .screen-heading::before,body[data-active-screen="settings"] .screen-heading::before,body[data-active-screen="dev"] .screen-heading::before,body[data-active-screen="events"] .screen-heading::before{
  background:linear-gradient(90deg,#05080bf8 0 34%,#05080bc9 60%,#05080b62),url("assets/ui/premium-v34/more-system.webp") center/cover no-repeat!important;
}
.master-placeholder,.coming-service{min-height:360px!important;padding:28px 20px!important;background:radial-gradient(circle at 50% 23%,#7d4c1e2b,transparent 34%),linear-gradient(145deg,#11171b,#070a0d)!important}.placeholder-sigil,.coming-rune{font-size:64px!important;color:#ca9141!important;text-shadow:0 0 18px #ca7e272f!important}.master-placeholder h2,.coming-service h2{font:700 27px/1.1 Georgia,serif!important;color:#f2dfc4!important}
.systems-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.settings,.itemization-status,.gear-progression,.upgrade-drop-panel,.source-bonus-panel,.balance{padding:10px!important;background:#080b0e!important}.balance{grid-template-columns:1fr 1fr!important;gap:5px!important}.balance div{border-color:#3f3329!important;background:#07090c!important}
.dev-tools{padding:10px!important}.dev-exp,.dev-level{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}

/* ---------------------------------- MORE ------------------------------------ */
body[data-active-screen="more"] .more-menu{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body[data-active-screen="more"] .more-menu::before,body[data-active-screen="more"] .more-menu::after{display:none!important}
body[data-active-screen="more"] .more-group{position:relative!important;isolation:isolate;overflow:hidden!important;display:grid!important;grid-template-columns:43% 57%!important;gap:5px!important;padding:11px!important;min-height:210px!important}
body[data-active-screen="more"] .more-group::before{content:"";position:absolute;z-index:-2;left:0;top:0;bottom:0;width:44%;background-position:center;background-size:cover;background-repeat:no-repeat;opacity:.85}
body[data-active-screen="more"] .more-group::after{content:"";position:absolute;z-index:-1;left:0;top:0;bottom:0;width:57%;background:linear-gradient(90deg,#05080b20,#05080bf0 80%)}
body[data-active-screen="more"] .more-group:nth-child(1)::before{background-image:url("assets/ui/premium-v34/more-hero.webp")}
body[data-active-screen="more"] .more-group:nth-child(2)::before{background-image:url("assets/ui/premium-v34/more-adventure.webp")}
body[data-active-screen="more"] .more-group:nth-child(3)::before{background-image:url("assets/ui/premium-v34/more-city.webp")}
body[data-active-screen="more"] .more-group:nth-child(5)::before{background-image:url("assets/ui/premium-v34/more-system.webp")}
body[data-active-screen="more"] .more-group>b{grid-column:1/-1!important;align-self:start!important;padding:0 0 8px!important;border-bottom:1px solid #57401f!important;font:700 20px/1 Georgia,serif!important;color:#f0cf8b!important;letter-spacing:0!important;text-shadow:0 2px 4px #000}
body[data-active-screen="more"] .more-group button{grid-column:2!important;min-height:46px!important;padding:8px 33px 8px 12px!important;text-align:left!important;border-color:#503923!important;background:#080b0ee6!important;font:400 14px/1.1 Georgia,serif!important}.more-group button::after{content:"›"!important;right:12px!important;font-size:25px!important;color:#e0a84c!important}
body[data-active-screen="more"] .more-group.build-diagnostics{display:block!important;min-height:0!important;opacity:.55!important}.more-group.build-diagnostics::before,.more-group.build-diagnostics::after{display:none!important}.more-group.build-diagnostics>b{display:block!important}.build-id-card{background:#06080a!important;border-color:#3e3229!important}

/* -------------------------- responsive production rules --------------------- */
@media(max-width:380px){
  #gameMain{padding-left:6px!important;padding-right:6px!important}
  body:not(.pixel-profile-active) .player-chip{grid-template-columns:46px minmax(63px,1fr) 78px 42px 57px!important;gap:4px!important}
  body:not(.pixel-profile-active) .avatar-frame{width:44px!important;height:44px!important}.player-copy b{font-size:14px!important}.compact-wallet b{font-size:9px!important}
  body:not(.pixel-profile-active) .screen-heading{min-height:82px!important;padding-left:16px!important}.screen-heading h1{font-size:29px!important}.screen-heading::after{font-size:8px!important}
  body[data-active-screen="city"] .master-city-grid{gap:4px!important}.city-service-card{min-height:142px!important;padding-left:7px!important;padding-right:7px!important}.city-service-card b{font-size:15px!important}.city-service-card em{font-size:7px!important}
  body[data-active-screen="more"] .more-group{grid-template-columns:39% 61%!important;padding:8px!important}.more-group button{font-size:12px!important;min-height:43px!important}
  .px-stats-sheet-grid{grid-template-columns:1fr!important}
}

@media(min-width:620px){
  #gameMain{padding-left:14px!important;padding-right:14px!important}
  body[data-active-screen="city"] .master-city-grid{grid-template-columns:repeat(3,1fr)!important}
  body[data-active-screen="city"] .city-service-card{min-height:165px!important;padding-top:88px!important}.city-service-card::before{height:90px!important}.city-service-card::after{height:106px!important}
  body[data-active-screen="more"] .more-menu{grid-template-columns:1fr 1fr!important}.more-group.build-diagnostics{grid-column:1/-1!important}
  .skill-grid{grid-template-columns:1fr 1fr!important}.systems-grid{grid-template-columns:1fr 1fr!important}
}

@media(min-width:901px){
  #gameMain{padding-bottom:44px!important}.app-shell{min-height:100vh!important}
  body:not(.pixel-profile-active)>.mobile-dock{display:none!important}
  body.pixel-profile-active>.mobile-dock{display:grid!important;left:50%!important;right:auto!important;width:min(864px,100vw)!important;transform:translateX(-50%)!important}
  body:not(.pixel-profile-active) .top-hud{grid-template-columns:minmax(500px,1fr) minmax(410px,.9fr)!important;padding:9px 18px!important}
  body:not(.pixel-profile-active) .player-chip{grid-template-columns:64px minmax(150px,1fr) 190px 60px 92px!important;gap:10px!important}
  body:not(.pixel-profile-active) .avatar-frame{width:62px!important;height:62px!important}.player-copy b{font-size:21px!important}.compact-wallet b{font-size:13px!important}.hud-meter label,.hud-meter label b{font-size:9px!important}
  body[data-active-screen="expeditions"] .adventure-layout{grid-template-columns:1.04fr .96fr!important}
  body[data-active-screen="combat"] .rush-combat-layout{grid-template-columns:minmax(285px,.8fr) minmax(420px,1.25fr) minmax(285px,.8fr)!important;grid-template-areas:"player core enemy"!important}.player-fighter{grid-area:player}.enemy-fighter{grid-area:enemy}.combat-core{grid-area:core}
  body[data-active-screen="arena"] .arena-opponents-v1{grid-template-columns:1fr 1fr!important}
  body[data-active-screen="services"] .keeper-layout{grid-template-columns:1fr 1fr!important}.keeper-storage{grid-column:1/-1!important}
  body[data-active-screen="market"] .market-layout{grid-template-columns:245px 1fr!important}
}

/* ================================================================
   SEKCJA: premium-v39.css
   ================================================================ */
/* ASHENREALM v0.13.6.39 — v34 stable restore + approved premium UI pass
   Mobile-first, real DOM only. No full-screen mockup/screenshot renderer. */
:root{
  --v35-gold:#d29a43;--v35-gold-hi:#ffd47b;--v35-line:#765025;--v35-line-soft:#3e2c1c;
  --v35-ink:#06090c;--v35-card:#0b0f13;--v35-card-2:#11161b;--v35-text:#f4e8d1;--v35-muted:#a89b86;
  --v35-inv-cell:clamp(48px,14vw,64px);
}
html[data-premium-ui]{background:#030507}
body{background:radial-gradient(circle at 50% 10%,#5f391619,transparent 28%),linear-gradient(180deg,#06090d,#030507 65%)!important}

/* ---------------- PROFILE: three production tabs ---------------- */
body[data-active-screen="profile"] .profile-view-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
body[data-active-screen="profile"] .profile-view-tabs button{min-width:0!important;padding:8px 5px!important;font-size:clamp(9px,2.7vw,12px)!important;white-space:normal!important}
.profile-skills-view-v39{border:1px solid var(--v35-line)!important;background:linear-gradient(145deg,#11161b,#070a0d 68%)!important;box-shadow:inset 0 0 0 1px #e6ac4b12,0 14px 35px #0009;padding:8px;margin-bottom:10px}
.profile-skill-subtabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:8px}
.profile-skill-subtabs button{min-height:46px;border:1px solid #584027;background:#090d11;color:#b7aa98;font:700 13px Georgia,serif}
.profile-skill-subtabs button.is-active{border-color:#d69637;color:#ffe0a0;background:linear-gradient(#5c3515,#24150c);box-shadow:inset 0 0 15px #e4952b22}
.profile-skill-head-v39{display:flex;justify-content:space-between;align-items:end;padding:10px 8px;border-bottom:1px solid #5d4122;margin-bottom:6px}
.profile-skill-head-v39 small{display:block;color:#ae7a3a;letter-spacing:2px;font-size:9px}.profile-skill-head-v39 h2{margin:2px 0 0;font:700 25px Georgia,serif;color:#f8e7c7}.profile-skill-head-v39>b{color:#f2bd5d}
.profile-active-skills-v39{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;padding:2px!important}
.skill-card.v35{display:grid!important;grid-template-columns:52px minmax(0,1fr) 52px!important;gap:8px!important;align-items:center!important;padding:8px!important;min-height:78px!important;border:1px solid #5b4126!important;background:linear-gradient(90deg,#11171c,#090d10 64%,#0b0d10)!important}
.skill-card.v35 .skill-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #a16a28;background:radial-gradient(circle,#5d361c,#140d08 68%);color:#ffbe52;font-size:24px}
.skill-card.v35 .skill-icon img,.skill-dev-icon img{width:100%;height:100%;object-fit:cover;display:block}
.skill-card.v35 .skill-copy{min-width:0}.skill-card.v35 .skill-copy>b{font:700 16px Georgia,serif;color:#f5e8d0}.skill-card.v35 .skill-copy p{margin:2px 0;color:#a9a094;font-size:10px;line-height:1.25}.skill-card.v35 .skill-copy small{display:block;color:#c69c5f;font-size:9px!important}
.skill-card.v35 .skill-progress{height:4px;margin-top:5px;background:#050607;border:1px solid #3e3328}.skill-card.v35 .skill-progress i{display:block;height:100%;background:linear-gradient(90deg,#9f5c14,#ffd261)}
.skill-actions-v35{display:grid;gap:5px}.skill-actions-v35 button{min-width:46px;min-height:46px;padding:3px;border-color:#c1802c!important;color:#ffd37b!important;background:linear-gradient(#422614,#180f09)!important;font-weight:800;font-size:20px}.skill-actions-v35 button+button{font-size:9px}
.preview-skill{opacity:.58}.preview-skill .skill-icon{filter:grayscale(.6)}
.profile-details-v39{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:50px;margin-top:10px;border:1px solid #b6782c!important;background:linear-gradient(180deg,#4e2c12,#1d120b)!important;color:#ffd477!important;font:700 14px Georgia,serif;box-shadow:inset 0 0 15px #e3922b1a}.profile-details-v39 span{font-size:24px}

/* ---------------- Metin-style equipped item cells: fixed 6 + 6 ---------------- */
body[data-active-screen="profile"] .loadout-stage{display:grid!important;grid-template-columns:64px minmax(0,1fr) 64px!important;grid-template-rows:repeat(6,58px)!important;gap:5px!important;padding:8px!important;min-height:358px!important;align-items:stretch!important;background:radial-gradient(circle at 50% 58%,#b36c251d,transparent 28%),linear-gradient(180deg,#101821,#080b0e)!important}
body[data-active-screen="profile"] .loadout-stage::before{display:block!important;inset:8px 19%!important}
body[data-active-screen="profile"] .loadout-stage #equipment{display:contents!important}
body[data-active-screen="profile"] .loadout-stage .character-display{grid-column:2!important;grid-row:1/7!important;min-height:0!important;height:auto!important;z-index:1!important}
body[data-active-screen="profile"] .loadout-stage .character-display>img{inset:-4px -7px 4px!important;width:calc(100% + 14px)!important;height:calc(100% - 1px)!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;filter:drop-shadow(0 12px 10px #000d)!important}
body[data-active-screen="profile"] .loadout-stage>.future-eq-slot{display:none!important}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot{position:relative!important;z-index:3!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1fr!important;place-items:center!important;min-width:0!important;min-height:0!important;width:auto!important;height:auto!important;padding:2px!important;overflow:hidden!important;border:1px solid #675036!important;background:linear-gradient(145deg,#141a20,#07090c)!important;box-shadow:inset 0 0 15px #000c!important}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot.left{grid-column:1!important;grid-row:var(--eq-row)/span var(--eq-span)!important}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot.right{grid-column:3!important;grid-row:var(--eq-row)/span var(--eq-span)!important}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot.filled{border-color:#c58a36!important;box-shadow:inset 0 0 18px #d88b2428,0 0 9px #c7832620!important}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot .slot-glyph{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border:0!important;background:transparent!important;color:#e4ae58!important;font-style:normal!important;font-size:25px!important;grid-row:auto!important}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot small{display:block!important;position:absolute;left:2px;right:2px;bottom:1px;text-align:center;font-size:7px!important;line-height:1;color:#e0c49a!important;text-transform:none!important;letter-spacing:0!important;text-shadow:0 1px #000}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot b,body[data-active-screen="profile"] .loadout-stage .metin-eq-slot span{display:none!important}
body[data-active-screen="profile"] .loadout-stage .metin-eq-slot[style*="--eq-span:2"]::after{content:"";position:absolute;left:3px;right:3px;top:50%;height:1px;background:#5d452d66;pointer-events:none}
body[data-active-screen="profile"] .loadout-stage .future-talisman{opacity:.45;pointer-events:none}

/* ---------------- Backpack: immutable 6×5 cell grid, items span exact cells ---------------- */
.inventory-panel .inventory-layout{display:block!important;min-height:0!important;height:auto!important;overflow:visible!important}
.inventory-panel #inventory.inventory{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(5,var(--v35-inv-cell))!important;grid-auto-rows:var(--v35-inv-cell)!important;gap:3px!important;padding:6px!important;min-height:calc(var(--v35-inv-cell)*5 + 24px)!important;max-height:none!important;overflow:visible!important;border-right:0!important}
.inventory-panel #inventory .fixed-cell{display:block!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;border:1px solid #424548!important;background:linear-gradient(145deg,#11161b,#070a0d)!important;box-shadow:inset 0 0 10px #000b!important;color:transparent!important}
.inventory-panel #inventory .fixed-cell-item{position:relative!important;display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;padding:2px!important;overflow:hidden!important;border:1px solid #55534c!important;background:radial-gradient(circle at 50% 35%,#19242c55,transparent 58%),linear-gradient(#11161b,#070a0d)!important;box-shadow:inset 0 0 13px #000b!important}
.inventory-panel #inventory .fixed-cell-item i{font-size:clamp(18px,6vw,28px)!important;z-index:2}.inventory-panel #inventory .fixed-cell-item span{position:absolute!important;right:3px!important;bottom:2px!important;font-size:8px!important;color:#e5b45f!important;z-index:3}.inventory-panel #inventory .fixed-cell-item>b,.inventory-panel #inventory .fixed-cell-item>small{display:none!important}
.inventory-panel #inventory .fixed-cell-item[data-cells="2"]::after{content:"";position:absolute;left:2px;right:2px;top:50%;height:1px;background:#71522f7a;z-index:1}
.inventory-panel #inventory .fixed-cell-item[data-cells="3"]::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent calc(33.333% - .5px),#71522f7a calc(33.333% - .5px) calc(33.333% + .5px),transparent calc(33.333% + .5px) calc(66.666% - .5px),#71522f7a calc(66.666% - .5px) calc(66.666% + .5px),transparent calc(66.666% + .5px));z-index:1;pointer-events:none}
.inventory-panel #inventory .fixed-cell-item.rarity-rare{border-color:#3d90d4!important}.inventory-panel #inventory .fixed-cell-item.rarity-epic{border-color:#a34ee3!important}.inventory-panel #inventory .fixed-cell-item.rarity-legendary{border-color:#d28a2d!important}.inventory-panel #inventory .fixed-cell-item.sel{outline:2px solid #ffd264!important;outline-offset:-2px}

/* ---------------- Adventure production layout ---------------- */
.adventure-shell-v35{overflow:hidden!important}.adventure-shell-v35>.panel-title{background:linear-gradient(90deg,#2a1b0e,#0b0e11 65%)!important}
.adventure-zones-v35{display:block!important;max-height:none!important;overflow:visible!important;padding:0!important}
.adventure-inner-nav-v35{display:flex;gap:5px;padding:7px;border-bottom:1px solid #51391f;background:#07090b}.adventure-inner-nav-v35 button{flex:1;min-height:38px;border-color:#4b3826;color:#c8b89f;font:700 11px Georgia,serif}.adventure-inner-nav-v35 button.is-active{border-color:#c98731;color:#ffd47d;background:#3c2412}
.adventure-view-v35{padding:7px;background:linear-gradient(180deg,#090c0f,#050709)}
.adventure-land-bar-v35{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px;border:1px solid #614421;background:#0c1013}.adventure-land-bar-v35 small{display:block;color:#9b7040;font-size:8px;letter-spacing:1.5px}.adventure-land-bar-v35 b{display:block;color:#f1dec0;font:700 15px Georgia,serif}.adventure-land-bar-v35 button{min-height:40px;border-color:#a9732f;color:#efc36f;background:#25170d}
.adventure-hero-v35{display:grid;gap:12px;min-height:220px;margin-top:7px;padding:18px 14px;align-content:end;border:1px solid #865c28;background:linear-gradient(90deg,#06090cd4,#06090c72),url('assets/ui/premium-v34/adventure-hero.webp') center/cover no-repeat;box-shadow:inset 0 0 55px #000b}.adventure-hero-v35 small{color:#c68b3c;letter-spacing:2px}.adventure-hero-v35 h2{margin:2px 0;font:700 clamp(25px,7vw,38px) Georgia,serif;color:#fff0d0}.adventure-hero-v35 p{max-width:520px;margin:0;color:#d1c5b2;line-height:1.4}.adventure-hero-v35 span{color:#dcb16d;font-size:11px}.adventure-hero-v35>button{justify-self:stretch;min-height:52px;border-color:#e4a144;color:#ffe09b;background:linear-gradient(#6b3e18,#2c190d);font:700 16px Georgia,serif;box-shadow:inset 0 0 14px #ffc05725}
.adventure-section-head{display:flex;justify-content:space-between;align-items:end;gap:8px;padding:9px 3px 7px;border-bottom:1px solid #5b4023}.adventure-section-head b{font:700 18px Georgia,serif;color:#f1dfc2}.adventure-section-head small{color:#a78f6d;font-size:9px;text-align:right}
.adventure-zone-selector-v35>div:last-child{display:flex;gap:5px;overflow-x:auto;padding:7px 0}.adventure-zone-selector-v35 button{flex:1 0 110px;min-height:48px;padding:6px;border-color:#4f3d29;color:#b8ad9e;background:#0a0d10}.adventure-zone-selector-v35 button small{display:block;margin-top:2px;font-size:7px;color:#776b5a}.adventure-zone-selector-v35 button.is-active{border-color:#d19034;color:#ffe19a;background:linear-gradient(#5a3416,#21140c)}
.adventure-content-cards-v35,.adventure-special-cards-v35{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px 0}.adventure-content-cards-v35 button,.adventure-special-cards-v35 button{display:grid;align-content:end;min-height:122px;padding:9px;border-color:#5b4228;text-align:left;background:linear-gradient(180deg,#10171d,#070a0d)}.adventure-content-cards-v35 button span,.adventure-special-cards-v35 button span{font-size:28px;color:#d89f4b}.adventure-content-cards-v35 button b,.adventure-special-cards-v35 button b{font:700 13px Georgia,serif;color:#f1dfc2}.adventure-content-cards-v35 button small,.adventure-special-cards-v35 button small{font-size:8px;color:#8d8477}.adventure-special-cards-v35 button:disabled{opacity:.42}
.adventure-info-v35{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:5px}.adventure-info-v35>div{padding:10px;border:1px solid #493724;background:#090c0f}.adventure-info-v35 b{display:block;color:#d3a35b}.adventure-info-v35 span{font-size:9px;color:#aaa093}
.adventure-detail-head{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #614421;background:linear-gradient(90deg,#15110d,#0a0d10)}.adventure-detail-head>span{font-size:36px;color:#d59b44}.adventure-detail-head h2{margin:0;font:700 26px Georgia,serif;color:#f4e2c5}.adventure-detail-head p{margin:3px 0 0;color:#a89e90;font-size:10px}
.adventure-detail-list{display:grid;gap:7px;margin-top:7px}.adventure-detail-card{display:grid;grid-template-columns:76px minmax(0,1fr) 92px;gap:8px;align-items:center;padding:7px;border:1px solid #553d24;background:#090c0f}.adventure-detail-card.selected{border-color:#bd7d2e}.adventure-card-art{display:grid;place-items:center;align-self:stretch;min-height:88px;border:1px solid #564127;background:linear-gradient(135deg,#253c36,#101a1a)}.adventure-card-art span{font:700 25px Georgia,serif;color:#d6a252}.adventure-card-copy small{color:#9e743e}.adventure-card-copy h3{margin:2px 0;font:700 17px Georgia,serif;color:#f0dec2}.adventure-card-copy p{margin:2px 0;color:#bbb0a0;font-size:9px}.adventure-card-copy>span{font-size:8px;color:#c99a54}.adventure-card-actions{display:grid;gap:5px}.adventure-card-actions button{min-height:39px;padding:4px;font-size:9px}
.adventure-target-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px}.adventure-target-card{display:grid;gap:5px;padding:12px;border:1px solid #5c4226;background:radial-gradient(circle at 50% 0,#40251233,transparent 45%),#090c0f}.target-emblem{display:grid;place-items:center;width:54px;height:54px;border:1px solid #7c5429;background:#160e09;color:#d99d46;font-size:28px}.target-emblem.metin{font-size:33px}.adventure-target-card small{color:#a77b42}.adventure-target-card h3{margin:0;font:700 18px Georgia,serif;color:#f0dfc4}.adventure-target-card p{margin:0;color:#a69c8f;font-size:9px}.adventure-target-card button{min-height:42px;margin-top:4px;border-color:#c0802f;color:#ffd47b;background:#351f10}.adventure-empty-v35{margin-top:7px;padding:18px;border:1px dashed #604529;background:#080b0e;text-align:center}.adventure-empty-v35 b{display:block;color:#e5c795}.adventure-empty-v35 small{display:block;margin-top:4px;color:#8d8478}
.adventure-dungeon-grid-v35{display:grid;gap:7px;margin-top:7px}.adventure-dungeon-card-v35{display:grid;grid-template-columns:62px minmax(0,1fr) 92px;gap:9px;align-items:center;padding:9px;border:1px solid #5d4225;background:#090c0f}.dungeon-art-v35{display:grid;place-items:center;width:58px;height:74px;border:1px solid #805628;background:linear-gradient(#23160d,#0a0806);font-size:30px;color:#d69a43}.adventure-dungeon-card-v35 small{color:#9e733b}.adventure-dungeon-card-v35 h3{margin:2px 0;font:700 17px Georgia,serif;color:#f1dfc1}.adventure-dungeon-card-v35 p{margin:0;color:#a69b8c;font-size:9px}.adventure-dungeon-card-v35 button{min-height:44px;border-color:#c07d2e;color:#ffd37b;background:#352010}
.land-picker-v35{display:grid;gap:6px;max-height:58vh;overflow:auto}.land-picker-v35 button{display:grid;grid-template-columns:68px 1fr;grid-template-rows:auto auto;min-height:62px;text-align:left;padding:8px;border-color:#4f3b27;background:#0a0d10}.land-picker-v35 button small{grid-row:1/3;align-self:center;color:#9a703a}.land-picker-v35 button b{color:#f0dec0}.land-picker-v35 button span{font-size:9px;color:#958b7d}.land-picker-v35 button.selected{border-color:#c48330;background:#2e1c0e}

/* ---------------- Skill development modal ---------------- */
.skill-dev-v35{display:grid;gap:7px}.skill-dev-hero{display:flex;gap:10px;align-items:center;padding:8px;border-bottom:1px solid #664722}.skill-dev-icon{display:grid;place-items:center;width:58px;height:58px;border:1px solid #a66b26;background:#21130b;color:#ffc15d;font-size:28px}.skill-dev-hero small{color:#a8793e;letter-spacing:1.5px}.skill-dev-hero h3{margin:2px 0;font:700 23px Georgia,serif;color:#f5e4c8}.skill-dev-hero b{color:#d5a45a;font-size:10px}.skill-dev-stage{display:grid;gap:7px;padding:10px;border:1px solid #594027;background:#090c0f}.skill-dev-stage>div:first-child{display:flex;gap:8px;align-items:center}.skill-dev-stage>div:first-child>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid #795129;color:#e4a84c;font-weight:800}.skill-dev-stage b{display:block;color:#eddbc0}.skill-dev-stage small{color:#968b7c}.skill-dev-stage>button{min-height:42px;border-color:#bc7b2c;color:#ffd174;background:#38210f}.skill-dev-stage.locked{opacity:.48}.skill-dev-stage.done{opacity:.62}.skill-dev-options{display:grid!important;grid-template-columns:1fr 1fr;gap:5px!important}.skill-dev-options label{display:flex!important;align-items:center;gap:5px;padding:7px;border:1px solid #413222;background:#07090b;color:#bcb09e;font-size:9px}.skill-dev-options em{margin-left:auto;color:#d4a457;font-style:normal}.skill-dev-foot{padding:7px;text-align:center;border-top:1px solid #4e3924;color:#d1a15b;font-size:9px}

/* Stats sheet now uses the real game DOM, not the old pixel overlay. */
.v35-stats-sheet{position:fixed;z-index:260;inset:0;display:grid;align-items:end;background:#000b;padding:14px 10px max(14px,env(safe-area-inset-bottom))}.v35-stats-sheet[hidden]{display:none!important}.v35-stats-card{max-height:82vh;overflow:auto;border:1px solid #a66f2d;background:#080b0e;box-shadow:0 18px 70px #000;padding:12px}.v35-stats-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #5c4022;padding-bottom:8px}.v35-stats-head h2{margin:0;font:700 22px Georgia,serif;color:#f2dfc0}.v35-stats-head button{width:44px;height:44px}.v35-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:8px}.v35-stat-grid span{display:flex;justify-content:space-between;gap:8px;padding:7px;border:1px solid #352a20;background:#0b0e11}.v35-stat-grid em{color:#9f9587;font-style:normal}.v35-stat-grid b{color:#efbd67}

@media (max-width:390px){
  :root{--v35-inv-cell:48px}
  body[data-active-screen="profile"] .loadout-stage{grid-template-columns:57px minmax(0,1fr) 57px!important;grid-template-rows:repeat(6,52px)!important;min-height:325px!important}
  body[data-active-screen="profile"] .loadout-stage .metin-eq-slot .slot-glyph{width:36px!important;height:36px!important;font-size:21px!important}
  .adventure-content-cards-v35,.adventure-special-cards-v35{grid-template-columns:1fr!important}.adventure-content-cards-v35 button,.adventure-special-cards-v35 button{min-height:75px;grid-template-columns:42px 1fr;align-items:center}.adventure-content-cards-v35 button span,.adventure-special-cards-v35 button span{grid-row:1/3}.adventure-detail-card{grid-template-columns:62px minmax(0,1fr);}.adventure-card-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.adventure-target-grid{grid-template-columns:1fr}.adventure-dungeon-card-v35{grid-template-columns:52px minmax(0,1fr)}.adventure-dungeon-card-v35 button{grid-column:1/-1}.v35-stat-grid{grid-template-columns:1fr}
}

@media (min-width:700px){
  :root{--v35-inv-cell:72px}
  body[data-active-screen="profile"] .loadout-stage{grid-template-columns:92px minmax(300px,1fr) 92px!important;grid-template-rows:repeat(6,72px)!important}
  .profile-active-skills-v39{grid-template-columns:1fr 1fr!important}.adventure-view-v35{padding:12px}.adventure-hero-v35{min-height:300px}.adventure-content-cards-v35 button,.adventure-special-cards-v35 button{min-height:150px}
}

/* v39 — stabilny układ Przygody zgodny z zaakceptowanym mockupem. */
body[data-active-screen="expeditions"] .adventure-shell-v39{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body[data-active-screen="expeditions"] .adventure-shell-v39>.panel-title{display:none!important}
body[data-active-screen="expeditions"] .adventure-view-v35{padding:0 8px 12px!important}
body[data-active-screen="expeditions"] .adventure-special-cards-v35{grid-template-columns:1fr!important}
body[data-active-screen="expeditions"] .adventure-special-cards-v35 button{min-height:94px!important}
body[data-active-screen="expeditions"] .adventure-content-cards-v35 button:nth-child(1){
  background:linear-gradient(180deg,#08101555,#05080bea 68%),url("assets/ui/premium-v34/adventure-hero.webp") center/cover no-repeat!important;
}
body[data-active-screen="expeditions"] .adventure-content-cards-v35 button:nth-child(2){
  background:linear-gradient(180deg,#0b0b0b55,#05080bea 68%),url("assets/ui/premium-v34/more-adventure.webp") center/cover no-repeat!important;
}
body[data-active-screen="expeditions"] .adventure-content-cards-v35 button:nth-child(3){
  background:linear-gradient(180deg,#120a0555,#05080bea 68%),url("assets/ui/premium-v34/adventure-header.webp") center/cover no-repeat!important;
}
body[data-active-screen="expeditions"] .adventure-special-cards-v35 button{
  background:linear-gradient(90deg,#0d1116d9,#07090cee),url("assets/ui/premium-v34/more-system.webp") center/cover no-repeat!important;
}

/* ================================================================
   SEKCJA: premium-v40.css
   ================================================================ */
/* ASHENREALM v0.13.6.40 — approved mobile UI correction
   v39 stable base retained. This layer only fixes the accepted layout contract. */
:root{
  --v40-gold:#d39a3e;
  --v40-gold-hi:#f1bd58;
  --v40-line:#79562d;
  --v40-ink:#05080b;
  --v40-panel:#090d11;
  --v40-cream:#f0dfc4;
}
html,body{max-width:100%;overflow-x:hidden!important}
.app-shell,.game-stage,#gameMain,.screen-view{min-width:0!important;max-width:100vw!important;box-sizing:border-box!important}
.game-stage{overflow-x:clip!important}
#gameMain{overflow-x:clip!important}
.screen-view{overflow-x:hidden!important}

/* ------------------------------------------------------------------
   SHARED CHARACTER HUD — same geometry on every normal main screen.
   Profile still uses the already-approved pixel HUD; this mirrors it.
   ------------------------------------------------------------------ */
body:not(.pixel-profile-active) .top-hud{
  width:min(100%,864px)!important;
  margin:0 auto!important;
  min-height:0!important;
  padding:8px 12px 10px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  position:sticky!important;
  top:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  background:
    radial-gradient(ellipse at 52% -28%,#5b3a1918 0 30%,transparent 52%),
    linear-gradient(180deg,#080d12 0%,#05090d 58%,#05080b 100%)!important;
}
body:not(.pixel-profile-active) .top-hud::before{inset:4px 8px 5px!important;border:1px solid #674621!important}
body:not(.pixel-profile-active) .player-chip{
  display:grid!important;
  grid-template-columns:clamp(44px,12vw,62px) minmax(0,1fr) clamp(74px,21vw,150px) clamp(46px,12vw,72px) clamp(62px,18vw,96px)!important;
  gap:clamp(3px,1vw,8px)!important;
  align-items:center!important;
  min-width:0!important;
}
body:not(.pixel-profile-active) .avatar-frame{width:clamp(44px,12vw,62px)!important;height:clamp(44px,12vw,62px)!important}
body:not(.pixel-profile-active) .player-copy{min-width:0!important}
body:not(.pixel-profile-active) .player-copy small{display:none!important}
body:not(.pixel-profile-active) .player-copy b{font-size:clamp(15px,4.6vw,22px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body:not(.pixel-profile-active) .player-copy span{font-size:clamp(9px,2.6vw,13px)!important;margin-top:2px!important}
body:not(.pixel-profile-active) .compact-wallet{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;width:auto!important;max-width:none!important;position:static!important}
body:not(.pixel-profile-active) .compact-wallet>div{display:flex!important;align-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important}
body:not(.pixel-profile-active) .compact-wallet b{font-size:clamp(9px,2.9vw,14px)!important}
body:not(.pixel-profile-active) .compact-wallet .currency-icon{display:inline-grid!important;width:clamp(13px,3.8vw,19px)!important;height:clamp(13px,3.8vw,19px)!important}
body:not(.pixel-profile-active) .level-medallion{width:clamp(46px,12vw,66px)!important;height:clamp(46px,12vw,66px)!important}
body:not(.pixel-profile-active) .level-medallion small{font-size:clamp(6px,1.8vw,9px)!important}
body:not(.pixel-profile-active) .level-medallion span{font-size:clamp(18px,5vw,27px)!important}
body:not(.pixel-profile-active) .hud-power-badge{min-width:0!important;width:100%!important;height:clamp(44px,11vw,61px)!important;padding:3px 5px!important}
body:not(.pixel-profile-active) .hud-power-badge small{font-size:clamp(6px,1.7vw,8px)!important}
body:not(.pixel-profile-active) .hud-power-badge b{font-size:clamp(15px,4.1vw,22px)!important}
body:not(.pixel-profile-active) .hud-bars{
  display:grid!important;
  grid-template-columns:1fr 1fr 1.1fr!important;
  gap:clamp(7px,2.4vw,18px)!important;
  min-width:0!important;
}
body:not(.pixel-profile-active) .hud-meter{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;min-width:0!important}
body:not(.pixel-profile-active) .hud-meter.exp-meter{grid-column:auto!important}
body:not(.pixel-profile-active) .hud-meter label{display:flex!important;justify-content:space-between!important;gap:3px!important;font-size:clamp(7px,2vw,10px)!important;min-width:0!important}
body:not(.pixel-profile-active) .hud-meter label b{display:block!important;font-size:inherit!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body:not(.pixel-profile-active) .top-hud .bar{height:clamp(6px,1.8vw,9px)!important}
body:not(.pixel-profile-active) .switch-character{display:none!important}
body[data-active-screen="combat"] .top-hud{display:none!important}

/* ------------------------------------------------------------------
   PROFILE EQUIPMENT — literal fixed-cell board.
   Weapon slot = 3 cells high. Armor = 2 cells. Every other slot = 1.
   The equipped weapon itself occupies the top 1/2/3 cells according to type.
   ------------------------------------------------------------------ */
body.pixel-profile-active .px-hero-stage{
  --eq-cell-h:74px;
  --eq-cell-w:86px;
  --eq-gap:7px;
  height:492px!important;
  overflow:hidden!important;
}
body.pixel-profile-active .px-eq-grid-bg{
  inset:18px 18px 18px!important;
  background:
    linear-gradient(#6d4d2950 1px,transparent 1px) 0 0/100% calc(var(--eq-cell-h) + var(--eq-gap)),
    linear-gradient(90deg,#6d4d2950 1px,transparent 1px) 0 0/calc(var(--eq-cell-w) + var(--eq-gap)) 100%!important;
  opacity:.38!important;
  mask-image:linear-gradient(90deg,#000 0 28%,transparent 30% 70%,#000 72% 100%)!important;
}
body.pixel-profile-active .px-hero-stage::before{left:218px!important;right:218px!important;top:20px!important;bottom:24px!important}
body.pixel-profile-active #pxGearHero{left:213px!important;top:30px!important;width:388px!important;height:424px!important;object-position:center bottom!important}
body.pixel-profile-active .px-hero-floor{left:254px!important;bottom:20px!important;width:305px!important}
body.pixel-profile-active .px-eq-slot{
  width:var(--eq-cell-w)!important;
  height:var(--eq-cell-h)!important;
  padding:0!important;
  overflow:visible!important;
  display:block!important;
  border:1px solid #59452e!important;
  background:linear-gradient(145deg,#12181e,#07090c 76%)!important;
  box-shadow:inset 0 0 14px #000b!important;
}
body.pixel-profile-active .px-eq-slot::before{content:""!important;position:absolute!important;inset:3px!important;border:1px solid #9a713626!important;pointer-events:none!important;z-index:1!important}
body.pixel-profile-active .px-eq-slot>span{
  position:absolute!important;z-index:8!important;left:-6px!important;right:-6px!important;top:-17px!important;
  display:block!important;text-align:center!important;font:400 12px/1 Georgia,serif!important;color:#e1c9a5!important;text-transform:none!important;letter-spacing:0!important;
  text-shadow:0 1px 2px #000!important;white-space:nowrap!important;
}
body.pixel-profile-active .px-eq-slot>b{display:none!important}
body.pixel-profile-active .px-eq-slot>i{
  position:absolute!important;z-index:5!important;left:4px!important;right:4px!important;top:4px!important;
  display:grid!important;place-items:center!important;width:auto!important;height:calc(100% - 8px)!important;
  border:0!important;background:transparent!important;color:#b98a48!important;font-size:29px!important;box-shadow:none!important;
}
body.pixel-profile-active .px-eq-slot.filled>i{border:1px solid #bd8236!important;background:radial-gradient(circle at 50% 38%,#7f4e1e2d,transparent 62%)!important;color:#ffd16f!important;box-shadow:inset 0 0 16px #c47b2022,0 0 8px #d78c2522!important}

/* physical positions: two columns left, two columns right, centered hero */
body.pixel-profile-active .slot-weapon{left:24px!important;top:112px!important;height:calc(var(--eq-cell-h)*3 + var(--eq-gap)*2)!important}
body.pixel-profile-active .slot-armor{left:117px!important;top:112px!important;height:calc(var(--eq-cell-h)*2 + var(--eq-gap))!important}
body.pixel-profile-active .slot-helmet{left:117px!important;top:24px!important}
body.pixel-profile-active .slot-boots{left:24px!important;top:362px!important}
body.pixel-profile-active .slot-belt{left:117px!important;top:362px!important;width:var(--eq-cell-w)!important;height:var(--eq-cell-h)!important}
body.pixel-profile-active .slot-necklace{right:117px!important;top:24px!important}
body.pixel-profile-active .slot-bracelet{right:24px!important;top:112px!important}
body.pixel-profile-active .slot-shield{right:117px!important;top:200px!important}
body.pixel-profile-active .slot-earrings{right:24px!important;top:200px!important}
body.pixel-profile-active .slot-talisman{right:24px!important;top:288px!important}

/* visible internal cell boundaries */
body.pixel-profile-active .slot-weapon{
  background:
    linear-gradient(to bottom,transparent calc(33.333% - .5px),#72512f8a calc(33.333% - .5px) calc(33.333% + .5px),transparent calc(33.333% + .5px) calc(66.666% - .5px),#72512f8a calc(66.666% - .5px) calc(66.666% + .5px),transparent calc(66.666% + .5px)),
    linear-gradient(145deg,#12181e,#07090c 76%)!important;
}
body.pixel-profile-active .slot-armor{
  background:
    linear-gradient(to bottom,transparent calc(50% - .5px),#72512f8a calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(145deg,#12181e,#07090c 76%)!important;
}
/* weapon item uses only the top cells of the 3-cell socket */
body.pixel-profile-active .slot-weapon[data-item-cells="1"]>i{height:calc(33.333% - 6px)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="2"]>i{height:calc(66.666% - 6px)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="3"]>i{height:calc(100% - 8px)!important}
body.pixel-profile-active .slot-armor>i{height:calc(100% - 8px)!important}
body.pixel-profile-active .slot-weapon.filled,body.pixel-profile-active .slot-armor.filled{border-color:#6d5132!important;box-shadow:inset 0 0 14px #000b!important}

/* Backpack stays a fixed 6×5 board. Each base cell has exactly the same dimensions. */
body.pixel-profile-active .px-bag-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-template-rows:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;
  padding:10px!important;
  align-items:stretch!important;
  justify-items:stretch!important;
}
body.pixel-profile-active .px-bag-slot{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important}

/* ------------------------------------------------------------------
   ADVENTURE — accepted composition, no legacy horizontal flex layout.
   ------------------------------------------------------------------ */
body[data-active-screen="expeditions"] #gameMain{width:min(100%,864px)!important;margin:0 auto!important;padding:8px 8px calc(88px + env(safe-area-inset-bottom))!important}
body[data-active-screen="expeditions"] .screen-view[data-screen-panel="expeditions"]{width:100%!important;max-width:100%!important;overflow:hidden!important}
body[data-active-screen="expeditions"] .screen-heading{
  min-height:92px!important;height:auto!important;margin:0 0 8px!important;padding:14px 18px!important;
  border:1px solid #79542a!important;
  background:linear-gradient(90deg,#06090cd9,#06090c6e),url('assets/ui/premium-v34/adventure-header.webp') center/cover no-repeat!important;
}
body[data-active-screen="expeditions"] .screen-heading small{display:none!important}
body[data-active-screen="expeditions"] .screen-heading h1{text-transform:uppercase!important;font:700 clamp(33px,9vw,54px)/1 Georgia,serif!important;letter-spacing:.5px!important}
body[data-active-screen="expeditions"] .screen-heading .heading-rune{left:16px!important;right:auto!important;top:18px!important;font-size:42px!important;color:#d5a34c!important;opacity:.92!important}
body[data-active-screen="expeditions"] .screen-heading>div{padding-left:52px!important}
body[data-active-screen="expeditions"] .adventure-shell-v39{width:100%!important;max-width:100%!important;overflow:visible!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body[data-active-screen="expeditions"] .adventure-shell-v39>.panel-title{display:none!important}
body[data-active-screen="expeditions"] .adventure-zones-v39{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;padding:0!important;margin:0!important}
body[data-active-screen="expeditions"] .adventure-view-v40{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;box-sizing:border-box!important}
body[data-active-screen="expeditions"] .adventure-inner-nav-v40{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:0 0 7px!important}
body[data-active-screen="expeditions"] .adventure-inner-nav-v40 button{min-width:0!important;min-height:40px!important;padding:6px!important;border:1px solid #5b4227!important;background:#090c0f!important;color:#d8c5a5!important}

.adventure-land-bar-v40{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid #765128;background:linear-gradient(90deg,#0b0f13,#080b0e)}
.adventure-land-label-v40{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#ead8ba;font:700 14px Georgia,serif}.adventure-land-label-v40 span{color:#e0a74c;font-size:22px}
.adventure-land-current-v40,.adventure-land-change-v40{min-width:0;min-height:42px;border:1px solid #7a552b;background:#0b0e11;color:#f1ddbc}
.adventure-land-current-v40{display:flex;justify-content:space-between;align-items:center;padding:0 12px;font:700 15px Georgia,serif}.adventure-land-current-v40 span{color:#e1a94a}
.adventure-land-change-v40{padding:0 13px;color:#efc674;background:#22150c}

.adventure-hero-v40{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto;min-height:310px;margin-top:7px;padding:20px 18px;border:1px solid #855d2d;overflow:hidden;background:linear-gradient(90deg,#05080de8 0%,#05080d8e 52%,#05080d27 100%),url('assets/ui/premium-v34/adventure-hero.webp') center/cover no-repeat;box-shadow:inset 0 0 50px #000b}
.adventure-hero-copy-v40{align-self:end;max-width:64%;z-index:2}.adventure-hero-copy-v40 h2{margin:0 0 8px;font:700 clamp(25px,6.5vw,42px)/1.05 Georgia,serif;color:#fff0d2;text-shadow:0 3px 7px #000}.adventure-hero-copy-v40 p{margin:0;color:#e0d4c3;font-size:clamp(10px,2.5vw,15px);line-height:1.35}.adventure-hero-meta-v40{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;color:#e0b66f;font-size:clamp(8px,2.1vw,11px)}
.adventure-legend-v40{position:absolute;right:20px;top:28px;text-align:center;color:#e2ae59;font:700 clamp(9px,2.3vw,13px)/1.35 Georgia,serif;letter-spacing:2px;text-shadow:0 2px 4px #000}
.adventure-start-v40{grid-column:2;grid-row:2;align-self:end;min-height:58px;min-width:245px;padding:8px 18px;border:1px solid #edb04b!important;background:linear-gradient(#684019,#28170c)!important;color:#ffe09b!important;font:700 clamp(15px,3.8vw,22px) Georgia,serif!important;box-shadow:inset 0 0 17px #ffbf4c2c,0 0 10px #d78b2a35!important}

.adventure-section-head-v40{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:7px 6px;border-bottom:1px solid #694925}.adventure-section-head-v40 b{font:700 clamp(16px,4.2vw,24px) Georgia,serif;color:#f0dfc3}.adventure-section-head-v40 small{font-size:clamp(8px,2vw,11px);color:#b49a76;text-align:right}
.adventure-zone-buttons-v40{display:grid;grid-template-columns:repeat(var(--zone-count),minmax(0,1fr));gap:6px;padding:7px 0}
.adventure-zone-buttons-v40 button{min-width:0;min-height:48px;padding:5px;border:1px solid #574128;background:#0a0d10;color:#d4c8b7;font:700 clamp(12px,3.2vw,17px) Georgia,serif}.adventure-zone-buttons-v40 button small{display:none}.adventure-zone-buttons-v40 button.is-active{border-color:#e0a244;color:#ffdc8e;background:linear-gradient(#563316,#21130b);box-shadow:inset 0 0 15px #dc8d2828,0 0 8px #d98b2933}

.adventure-content-cards-v40{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:7px 0}
.adventure-content-cards-v40 button{position:relative;display:grid;align-content:end;min-width:0;min-height:155px;padding:9px;border:1px solid #624626;text-align:left;overflow:hidden;color:#f0dfc4;background:#090c0f}
.adventure-content-cards-v40 button::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,#05080bea 72%);pointer-events:none}.adventure-content-cards-v40 button>*{position:relative;z-index:2}.adventure-content-cards-v40 button>span{font-size:24px;color:#e0a44a}.adventure-content-cards-v40 button>b{font:700 clamp(12px,3.2vw,18px) Georgia,serif}.adventure-content-cards-v40 button>small{font-size:clamp(7px,1.8vw,10px);color:#d1c4b1;line-height:1.2}.adventure-card-spots-v40{background:url('assets/ui/premium-v34/adventure-hero.webp') 25% 50%/cover no-repeat!important}.adventure-card-bosses-v40{background:url('assets/ui/premium-v34/more-adventure.webp') center/cover no-repeat!important}.adventure-card-metins-v40{background:url('assets/ui/premium-v34/adventure-header.webp') right center/cover no-repeat!important}

.adventure-dungeon-card-v40{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;gap:10px;align-items:center;width:100%;min-height:92px;padding:11px 14px;border:1px solid #684a29;background:linear-gradient(90deg,#080b0edb,#080b0ef3),url('assets/ui/premium-v34/more-system.webp') center/cover no-repeat;color:#eee0c9;text-align:left}.adventure-dungeon-card-v40>span{font-size:32px;color:#dda14b}.adventure-dungeon-card-v40 b{display:block;font:700 18px Georgia,serif}.adventure-dungeon-card-v40 small{display:block;margin-top:3px;color:#a99e8d;font-size:10px}.adventure-dungeon-card-v40 i{font:normal 30px Georgia,serif;color:#dca54e}
.adventure-info-v40{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.adventure-info-v40>div{display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center;min-height:72px;padding:9px 12px;border:1px solid #584027;background:#090c0f}.adventure-info-v40>div>span{font-size:30px;color:#dda34d}.adventure-info-v40 b{display:block;color:#e9be73;font:700 14px Georgia,serif}.adventure-info-v40 small{display:block;margin-top:3px;color:#aaa091;font-size:9px}

/* Details retain the real data views, but may never widen the page. */
body[data-active-screen="expeditions"] .adventure-detail-card,body[data-active-screen="expeditions"] .adventure-dungeon-card-v35,body[data-active-screen="expeditions"] .adventure-target-card{min-width:0!important;max-width:100%!important}
body[data-active-screen="expeditions"] .adventure-detail-list,body[data-active-screen="expeditions"] .adventure-target-grid,body[data-active-screen="expeditions"] .adventure-dungeon-grid-v35{max-width:100%!important;overflow:hidden!important}

@media(max-width:430px){
  body:not(.pixel-profile-active) .top-hud{padding:6px 7px 8px!important}
  body:not(.pixel-profile-active) .player-chip{grid-template-columns:42px minmax(0,1fr) 70px 42px 56px!important;gap:3px!important}
  body:not(.pixel-profile-active) .avatar-frame{width:42px!important;height:42px!important}
  body:not(.pixel-profile-active) .compact-wallet b{font-size:9px!important}
  body:not(.pixel-profile-active) .hud-meter label{font-size:7px!important}
  body[data-active-screen="expeditions"] #gameMain{padding-left:5px!important;padding-right:5px!important}
  body[data-active-screen="expeditions"] .screen-heading{min-height:70px!important;padding:10px 12px!important}
  body[data-active-screen="expeditions"] .screen-heading h1{font-size:31px!important}
  body[data-active-screen="expeditions"] .screen-heading>div{padding-left:38px!important}
  body[data-active-screen="expeditions"] .screen-heading .heading-rune{font-size:32px!important;left:10px!important;top:15px!important}
  .adventure-land-bar-v40{grid-template-columns:92px minmax(0,1fr) 86px;gap:4px;padding:6px}.adventure-land-label-v40{gap:3px;font-size:10px}.adventure-land-label-v40 span{font-size:16px}.adventure-land-current-v40{padding:0 6px;font-size:11px}.adventure-land-change-v40{padding:0 5px;font-size:10px}
  .adventure-hero-v40{min-height:225px;padding:12px 10px}.adventure-hero-copy-v40{max-width:72%}.adventure-legend-v40{right:10px;top:17px;font-size:7px}.adventure-start-v40{min-width:0;width:175px;min-height:47px;padding:5px 8px;font-size:13px}
  .adventure-section-head-v40{min-height:36px}.adventure-section-head-v40 b{font-size:15px}.adventure-section-head-v40 small{font-size:7px}
  .adventure-zone-buttons-v40{gap:4px}.adventure-zone-buttons-v40 button{min-height:40px;font-size:10px}
  .adventure-content-cards-v40{gap:4px}.adventure-content-cards-v40 button{min-height:112px;padding:6px}.adventure-content-cards-v40 button>span{font-size:18px}.adventure-content-cards-v40 button>b{font-size:10px}.adventure-content-cards-v40 button>small{font-size:6.5px}
  .adventure-dungeon-card-v40{min-height:76px;grid-template-columns:34px minmax(0,1fr) 16px;padding:8px}.adventure-dungeon-card-v40>span{font-size:24px}.adventure-dungeon-card-v40 b{font-size:14px}.adventure-dungeon-card-v40 small{font-size:7px}
  .adventure-info-v40{gap:4px}.adventure-info-v40>div{grid-template-columns:28px 1fr;min-height:58px;padding:6px}.adventure-info-v40>div>span{font-size:22px}.adventure-info-v40 b{font-size:11px}.adventure-info-v40 small{font-size:7px}
  body[data-active-screen="expeditions"] .adventure-detail-card{grid-template-columns:52px minmax(0,1fr)!important}.adventure-card-actions{grid-column:1/-1!important;grid-template-columns:1fr 1fr!important}
  body[data-active-screen="expeditions"] .adventure-target-grid{grid-template-columns:1fr!important}
  body[data-active-screen="expeditions"] .adventure-dungeon-card-v35{grid-template-columns:48px minmax(0,1fr)!important}body[data-active-screen="expeditions"] .adventure-dungeon-card-v35 button{grid-column:1/-1!important}
}

/* ================================================================
   SEKCJA: premium-v41.css
   ================================================================ */
/* ASHENREALM v0.13.6.40 — approved mobile UI correction
   v39 stable base retained. This layer only fixes the accepted layout contract. */
:root{
  --v40-gold:#d39a3e;
  --v40-gold-hi:#f1bd58;
  --v40-line:#79562d;
  --v40-ink:#05080b;
  --v40-panel:#090d11;
  --v40-cream:#f0dfc4;
}
html,body{max-width:100%;overflow-x:hidden!important}
.app-shell,.game-stage,#gameMain,.screen-view{min-width:0!important;max-width:100vw!important;box-sizing:border-box!important}
.game-stage{overflow-x:clip!important}
#gameMain{overflow-x:clip!important}
.screen-view{overflow-x:hidden!important}

/* ------------------------------------------------------------------
   SHARED CHARACTER HUD — same geometry on every normal main screen.
   Profile still uses the already-approved pixel HUD; this mirrors it.
   ------------------------------------------------------------------ */
body:not(.pixel-profile-active) .top-hud{
  width:min(100%,864px)!important;
  margin:0 auto!important;
  min-height:0!important;
  padding:8px 12px 10px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  position:sticky!important;
  top:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  background:
    radial-gradient(ellipse at 52% -28%,#5b3a1918 0 30%,transparent 52%),
    linear-gradient(180deg,#080d12 0%,#05090d 58%,#05080b 100%)!important;
}
body:not(.pixel-profile-active) .top-hud::before{inset:4px 8px 5px!important;border:1px solid #674621!important}
body:not(.pixel-profile-active) .player-chip{
  display:grid!important;
  grid-template-columns:clamp(44px,12vw,62px) minmax(0,1fr) clamp(74px,21vw,150px) clamp(46px,12vw,72px) clamp(62px,18vw,96px)!important;
  gap:clamp(3px,1vw,8px)!important;
  align-items:center!important;
  min-width:0!important;
}
body:not(.pixel-profile-active) .avatar-frame{width:clamp(44px,12vw,62px)!important;height:clamp(44px,12vw,62px)!important}
body:not(.pixel-profile-active) .player-copy{min-width:0!important}
body:not(.pixel-profile-active) .player-copy small{display:none!important}
body:not(.pixel-profile-active) .player-copy b{font-size:clamp(15px,4.6vw,22px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body:not(.pixel-profile-active) .player-copy span{font-size:clamp(9px,2.6vw,13px)!important;margin-top:2px!important}
body:not(.pixel-profile-active) .compact-wallet{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;width:auto!important;max-width:none!important;position:static!important}
body:not(.pixel-profile-active) .compact-wallet>div{display:flex!important;align-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important}
body:not(.pixel-profile-active) .compact-wallet b{font-size:clamp(9px,2.9vw,14px)!important}
body:not(.pixel-profile-active) .compact-wallet .currency-icon{display:inline-grid!important;width:clamp(13px,3.8vw,19px)!important;height:clamp(13px,3.8vw,19px)!important}
body:not(.pixel-profile-active) .level-medallion{width:clamp(46px,12vw,66px)!important;height:clamp(46px,12vw,66px)!important}
body:not(.pixel-profile-active) .level-medallion small{font-size:clamp(6px,1.8vw,9px)!important}
body:not(.pixel-profile-active) .level-medallion span{font-size:clamp(18px,5vw,27px)!important}
body:not(.pixel-profile-active) .hud-power-badge{min-width:0!important;width:100%!important;height:clamp(44px,11vw,61px)!important;padding:3px 5px!important}
body:not(.pixel-profile-active) .hud-power-badge small{font-size:clamp(6px,1.7vw,8px)!important}
body:not(.pixel-profile-active) .hud-power-badge b{font-size:clamp(15px,4.1vw,22px)!important}
body:not(.pixel-profile-active) .hud-bars{
  display:grid!important;
  grid-template-columns:1fr 1fr 1.1fr!important;
  gap:clamp(7px,2.4vw,18px)!important;
  min-width:0!important;
}
body:not(.pixel-profile-active) .hud-meter{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;min-width:0!important}
body:not(.pixel-profile-active) .hud-meter.exp-meter{grid-column:auto!important}
body:not(.pixel-profile-active) .hud-meter label{display:flex!important;justify-content:space-between!important;gap:3px!important;font-size:clamp(7px,2vw,10px)!important;min-width:0!important}
body:not(.pixel-profile-active) .hud-meter label b{display:block!important;font-size:inherit!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body:not(.pixel-profile-active) .top-hud .bar{height:clamp(6px,1.8vw,9px)!important}
body:not(.pixel-profile-active) .switch-character{display:none!important}
body[data-active-screen="combat"] .top-hud{display:none!important}

/* ------------------------------------------------------------------
   PROFILE EQUIPMENT — literal fixed-cell board.
   Weapon slot = 3 cells high. Armor = 2 cells. Every other slot = 1.
   The equipped weapon itself occupies the top 1/2/3 cells according to type.
   ------------------------------------------------------------------ */
body.pixel-profile-active .px-hero-stage{
  --eq-cell-h:74px;
  --eq-cell-w:86px;
  --eq-gap:7px;
  height:492px!important;
  overflow:hidden!important;
}
body.pixel-profile-active .px-eq-grid-bg{
  inset:18px 18px 18px!important;
  background:
    linear-gradient(#6d4d2950 1px,transparent 1px) 0 0/100% calc(var(--eq-cell-h) + var(--eq-gap)),
    linear-gradient(90deg,#6d4d2950 1px,transparent 1px) 0 0/calc(var(--eq-cell-w) + var(--eq-gap)) 100%!important;
  opacity:.38!important;
  mask-image:linear-gradient(90deg,#000 0 28%,transparent 30% 70%,#000 72% 100%)!important;
}
body.pixel-profile-active .px-hero-stage::before{left:218px!important;right:218px!important;top:20px!important;bottom:24px!important}
body.pixel-profile-active #pxGearHero{left:213px!important;top:30px!important;width:388px!important;height:424px!important;object-position:center bottom!important}
body.pixel-profile-active .px-hero-floor{left:254px!important;bottom:20px!important;width:305px!important}
body.pixel-profile-active .px-eq-slot{
  width:var(--eq-cell-w)!important;
  height:var(--eq-cell-h)!important;
  padding:0!important;
  overflow:visible!important;
  display:block!important;
  border:1px solid #59452e!important;
  background:linear-gradient(145deg,#12181e,#07090c 76%)!important;
  box-shadow:inset 0 0 14px #000b!important;
}
body.pixel-profile-active .px-eq-slot::before{content:""!important;position:absolute!important;inset:3px!important;border:1px solid #9a713626!important;pointer-events:none!important;z-index:1!important}
body.pixel-profile-active .px-eq-slot>span{
  position:absolute!important;z-index:8!important;left:-6px!important;right:-6px!important;top:-17px!important;
  display:block!important;text-align:center!important;font:400 12px/1 Georgia,serif!important;color:#e1c9a5!important;text-transform:none!important;letter-spacing:0!important;
  text-shadow:0 1px 2px #000!important;white-space:nowrap!important;
}
body.pixel-profile-active .px-eq-slot>b{display:none!important}
body.pixel-profile-active .px-eq-slot>i{
  position:absolute!important;z-index:5!important;left:4px!important;right:4px!important;top:4px!important;
  display:grid!important;place-items:center!important;width:auto!important;height:calc(100% - 8px)!important;
  border:0!important;background:transparent!important;color:#b98a48!important;font-size:29px!important;box-shadow:none!important;
}
body.pixel-profile-active .px-eq-slot.filled>i{border:1px solid #bd8236!important;background:radial-gradient(circle at 50% 38%,#7f4e1e2d,transparent 62%)!important;color:#ffd16f!important;box-shadow:inset 0 0 16px #c47b2022,0 0 8px #d78c2522!important}

/* physical positions: two columns left, two columns right, centered hero */
body.pixel-profile-active .slot-weapon{left:24px!important;top:112px!important;height:calc(var(--eq-cell-h)*3 + var(--eq-gap)*2)!important}
body.pixel-profile-active .slot-armor{left:117px!important;top:112px!important;height:calc(var(--eq-cell-h)*2 + var(--eq-gap))!important}
body.pixel-profile-active .slot-helmet{left:117px!important;top:24px!important}
body.pixel-profile-active .slot-boots{left:24px!important;top:362px!important}
body.pixel-profile-active .slot-belt{left:117px!important;top:362px!important;width:var(--eq-cell-w)!important;height:var(--eq-cell-h)!important}
body.pixel-profile-active .slot-necklace{right:117px!important;top:24px!important}
body.pixel-profile-active .slot-bracelet{right:24px!important;top:112px!important}
body.pixel-profile-active .slot-shield{right:117px!important;top:200px!important}
body.pixel-profile-active .slot-earrings{right:24px!important;top:200px!important}
body.pixel-profile-active .slot-talisman{right:24px!important;top:288px!important}

/* visible internal cell boundaries */
body.pixel-profile-active .slot-weapon{
  background:
    linear-gradient(to bottom,transparent calc(33.333% - .5px),#72512f8a calc(33.333% - .5px) calc(33.333% + .5px),transparent calc(33.333% + .5px) calc(66.666% - .5px),#72512f8a calc(66.666% - .5px) calc(66.666% + .5px),transparent calc(66.666% + .5px)),
    linear-gradient(145deg,#12181e,#07090c 76%)!important;
}
body.pixel-profile-active .slot-armor{
  background:
    linear-gradient(to bottom,transparent calc(50% - .5px),#72512f8a calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(145deg,#12181e,#07090c 76%)!important;
}
/* weapon item uses only the top cells of the 3-cell socket */
body.pixel-profile-active .slot-weapon[data-item-cells="1"]>i{height:calc(33.333% - 6px)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="2"]>i{height:calc(66.666% - 6px)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="3"]>i{height:calc(100% - 8px)!important}
body.pixel-profile-active .slot-armor>i{height:calc(100% - 8px)!important}
body.pixel-profile-active .slot-weapon.filled,body.pixel-profile-active .slot-armor.filled{border-color:#6d5132!important;box-shadow:inset 0 0 14px #000b!important}

/* Backpack stays a fixed 6×5 board. Each base cell has exactly the same dimensions. */
body.pixel-profile-active .px-bag-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-template-rows:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;
  padding:10px!important;
  align-items:stretch!important;
  justify-items:stretch!important;
}
body.pixel-profile-active .px-bag-slot{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important}

/* ------------------------------------------------------------------
   ADVENTURE — accepted composition, no legacy horizontal flex layout.
   ------------------------------------------------------------------ */
body[data-active-screen="expeditions"] #gameMain{width:min(100%,864px)!important;margin:0 auto!important;padding:8px 8px calc(88px + env(safe-area-inset-bottom))!important}
body[data-active-screen="expeditions"] .screen-view[data-screen-panel="expeditions"]{width:100%!important;max-width:100%!important;overflow:hidden!important}
body[data-active-screen="expeditions"] .screen-heading{
  min-height:92px!important;height:auto!important;margin:0 0 8px!important;padding:14px 18px!important;
  border:1px solid #79542a!important;
  background:linear-gradient(90deg,#06090cd9,#06090c6e),url('assets/ui/premium-v34/adventure-header.webp') center/cover no-repeat!important;
}
body[data-active-screen="expeditions"] .screen-heading small{display:none!important}
body[data-active-screen="expeditions"] .screen-heading h1{text-transform:uppercase!important;font:700 clamp(33px,9vw,54px)/1 Georgia,serif!important;letter-spacing:.5px!important}
body[data-active-screen="expeditions"] .screen-heading .heading-rune{left:16px!important;right:auto!important;top:18px!important;font-size:42px!important;color:#d5a34c!important;opacity:.92!important}
body[data-active-screen="expeditions"] .screen-heading>div{padding-left:52px!important}
body[data-active-screen="expeditions"] .adventure-shell-v39{width:100%!important;max-width:100%!important;overflow:visible!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body[data-active-screen="expeditions"] .adventure-shell-v39>.panel-title{display:none!important}
body[data-active-screen="expeditions"] .adventure-zones-v39{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;padding:0!important;margin:0!important}
body[data-active-screen="expeditions"] .adventure-view-v40{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;box-sizing:border-box!important}
body[data-active-screen="expeditions"] .adventure-inner-nav-v40{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:0 0 7px!important}
body[data-active-screen="expeditions"] .adventure-inner-nav-v40 button{min-width:0!important;min-height:40px!important;padding:6px!important;border:1px solid #5b4227!important;background:#090c0f!important;color:#d8c5a5!important}

.adventure-land-bar-v40{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid #765128;background:linear-gradient(90deg,#0b0f13,#080b0e)}
.adventure-land-label-v40{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#ead8ba;font:700 14px Georgia,serif}.adventure-land-label-v40 span{color:#e0a74c;font-size:22px}
.adventure-land-current-v40,.adventure-land-change-v40{min-width:0;min-height:42px;border:1px solid #7a552b;background:#0b0e11;color:#f1ddbc}
.adventure-land-current-v40{display:flex;justify-content:space-between;align-items:center;padding:0 12px;font:700 15px Georgia,serif}.adventure-land-current-v40 span{color:#e1a94a}
.adventure-land-change-v40{padding:0 13px;color:#efc674;background:#22150c}

.adventure-hero-v40{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr auto;min-height:310px;margin-top:7px;padding:20px 18px;border:1px solid #855d2d;overflow:hidden;background:linear-gradient(90deg,#05080de8 0%,#05080d8e 52%,#05080d27 100%),url('assets/ui/premium-v34/adventure-hero.webp') center/cover no-repeat;box-shadow:inset 0 0 50px #000b}
.adventure-hero-copy-v40{align-self:end;max-width:64%;z-index:2}.adventure-hero-copy-v40 h2{margin:0 0 8px;font:700 clamp(25px,6.5vw,42px)/1.05 Georgia,serif;color:#fff0d2;text-shadow:0 3px 7px #000}.adventure-hero-copy-v40 p{margin:0;color:#e0d4c3;font-size:clamp(10px,2.5vw,15px);line-height:1.35}.adventure-hero-meta-v40{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;color:#e0b66f;font-size:clamp(8px,2.1vw,11px)}
.adventure-legend-v40{position:absolute;right:20px;top:28px;text-align:center;color:#e2ae59;font:700 clamp(9px,2.3vw,13px)/1.35 Georgia,serif;letter-spacing:2px;text-shadow:0 2px 4px #000}
.adventure-start-v40{grid-column:2;grid-row:2;align-self:end;min-height:58px;min-width:245px;padding:8px 18px;border:1px solid #edb04b!important;background:linear-gradient(#684019,#28170c)!important;color:#ffe09b!important;font:700 clamp(15px,3.8vw,22px) Georgia,serif!important;box-shadow:inset 0 0 17px #ffbf4c2c,0 0 10px #d78b2a35!important}

.adventure-section-head-v40{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:7px 6px;border-bottom:1px solid #694925}.adventure-section-head-v40 b{font:700 clamp(16px,4.2vw,24px) Georgia,serif;color:#f0dfc3}.adventure-section-head-v40 small{font-size:clamp(8px,2vw,11px);color:#b49a76;text-align:right}
.adventure-zone-buttons-v40{display:grid;grid-template-columns:repeat(var(--zone-count),minmax(0,1fr));gap:6px;padding:7px 0}
.adventure-zone-buttons-v40 button{min-width:0;min-height:48px;padding:5px;border:1px solid #574128;background:#0a0d10;color:#d4c8b7;font:700 clamp(12px,3.2vw,17px) Georgia,serif}.adventure-zone-buttons-v40 button small{display:none}.adventure-zone-buttons-v40 button.is-active{border-color:#e0a244;color:#ffdc8e;background:linear-gradient(#563316,#21130b);box-shadow:inset 0 0 15px #dc8d2828,0 0 8px #d98b2933}

.adventure-content-cards-v40{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:7px 0}
.adventure-content-cards-v40 button{position:relative;display:grid;align-content:end;min-width:0;min-height:155px;padding:9px;border:1px solid #624626;text-align:left;overflow:hidden;color:#f0dfc4;background:#090c0f}
.adventure-content-cards-v40 button::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,#05080bea 72%);pointer-events:none}.adventure-content-cards-v40 button>*{position:relative;z-index:2}.adventure-content-cards-v40 button>span{font-size:24px;color:#e0a44a}.adventure-content-cards-v40 button>b{font:700 clamp(12px,3.2vw,18px) Georgia,serif}.adventure-content-cards-v40 button>small{font-size:clamp(7px,1.8vw,10px);color:#d1c4b1;line-height:1.2}.adventure-card-spots-v40{background:url('assets/ui/premium-v34/adventure-hero.webp') 25% 50%/cover no-repeat!important}.adventure-card-bosses-v40{background:url('assets/ui/premium-v34/more-adventure.webp') center/cover no-repeat!important}.adventure-card-metins-v40{background:url('assets/ui/premium-v34/adventure-header.webp') right center/cover no-repeat!important}

.adventure-dungeon-card-v40{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;gap:10px;align-items:center;width:100%;min-height:92px;padding:11px 14px;border:1px solid #684a29;background:linear-gradient(90deg,#080b0edb,#080b0ef3),url('assets/ui/premium-v34/more-system.webp') center/cover no-repeat;color:#eee0c9;text-align:left}.adventure-dungeon-card-v40>span{font-size:32px;color:#dda14b}.adventure-dungeon-card-v40 b{display:block;font:700 18px Georgia,serif}.adventure-dungeon-card-v40 small{display:block;margin-top:3px;color:#a99e8d;font-size:10px}.adventure-dungeon-card-v40 i{font:normal 30px Georgia,serif;color:#dca54e}
.adventure-info-v40{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.adventure-info-v40>div{display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center;min-height:72px;padding:9px 12px;border:1px solid #584027;background:#090c0f}.adventure-info-v40>div>span{font-size:30px;color:#dda34d}.adventure-info-v40 b{display:block;color:#e9be73;font:700 14px Georgia,serif}.adventure-info-v40 small{display:block;margin-top:3px;color:#aaa091;font-size:9px}

/* Details retain the real data views, but may never widen the page. */
body[data-active-screen="expeditions"] .adventure-detail-card,body[data-active-screen="expeditions"] .adventure-dungeon-card-v35,body[data-active-screen="expeditions"] .adventure-target-card{min-width:0!important;max-width:100%!important}
body[data-active-screen="expeditions"] .adventure-detail-list,body[data-active-screen="expeditions"] .adventure-target-grid,body[data-active-screen="expeditions"] .adventure-dungeon-grid-v35{max-width:100%!important;overflow:hidden!important}

@media(max-width:430px){
  body:not(.pixel-profile-active) .top-hud{padding:6px 7px 8px!important}
  body:not(.pixel-profile-active) .player-chip{grid-template-columns:42px minmax(0,1fr) 70px 42px 56px!important;gap:3px!important}
  body:not(.pixel-profile-active) .avatar-frame{width:42px!important;height:42px!important}
  body:not(.pixel-profile-active) .compact-wallet b{font-size:9px!important}
  body:not(.pixel-profile-active) .hud-meter label{font-size:7px!important}
  body[data-active-screen="expeditions"] #gameMain{padding-left:5px!important;padding-right:5px!important}
  body[data-active-screen="expeditions"] .screen-heading{min-height:70px!important;padding:10px 12px!important}
  body[data-active-screen="expeditions"] .screen-heading h1{font-size:31px!important}
  body[data-active-screen="expeditions"] .screen-heading>div{padding-left:38px!important}
  body[data-active-screen="expeditions"] .screen-heading .heading-rune{font-size:32px!important;left:10px!important;top:15px!important}
  .adventure-land-bar-v40{grid-template-columns:92px minmax(0,1fr) 86px;gap:4px;padding:6px}.adventure-land-label-v40{gap:3px;font-size:10px}.adventure-land-label-v40 span{font-size:16px}.adventure-land-current-v40{padding:0 6px;font-size:11px}.adventure-land-change-v40{padding:0 5px;font-size:10px}
  .adventure-hero-v40{min-height:225px;padding:12px 10px}.adventure-hero-copy-v40{max-width:72%}.adventure-legend-v40{right:10px;top:17px;font-size:7px}.adventure-start-v40{min-width:0;width:175px;min-height:47px;padding:5px 8px;font-size:13px}
  .adventure-section-head-v40{min-height:36px}.adventure-section-head-v40 b{font-size:15px}.adventure-section-head-v40 small{font-size:7px}
  .adventure-zone-buttons-v40{gap:4px}.adventure-zone-buttons-v40 button{min-height:40px;font-size:10px}
  .adventure-content-cards-v40{gap:4px}.adventure-content-cards-v40 button{min-height:112px;padding:6px}.adventure-content-cards-v40 button>span{font-size:18px}.adventure-content-cards-v40 button>b{font-size:10px}.adventure-content-cards-v40 button>small{font-size:6.5px}
  .adventure-dungeon-card-v40{min-height:76px;grid-template-columns:34px minmax(0,1fr) 16px;padding:8px}.adventure-dungeon-card-v40>span{font-size:24px}.adventure-dungeon-card-v40 b{font-size:14px}.adventure-dungeon-card-v40 small{font-size:7px}
  .adventure-info-v40{gap:4px}.adventure-info-v40>div{grid-template-columns:28px 1fr;min-height:58px;padding:6px}.adventure-info-v40>div>span{font-size:22px}.adventure-info-v40 b{font-size:11px}.adventure-info-v40 small{font-size:7px}
  body[data-active-screen="expeditions"] .adventure-detail-card{grid-template-columns:52px minmax(0,1fr)!important}.adventure-card-actions{grid-column:1/-1!important;grid-template-columns:1fr 1fr!important}
  body[data-active-screen="expeditions"] .adventure-target-grid{grid-template-columns:1fr!important}
  body[data-active-screen="expeditions"] .adventure-dungeon-card-v35{grid-template-columns:48px minmax(0,1fr)!important}body[data-active-screen="expeditions"] .adventure-dungeon-card-v35 button{grid-column:1/-1!important}
}


/* v0.13.6.41 — spot ownership/PvP + compact report */
.adventure-land-bar-v40{grid-template-columns:auto minmax(0,1fr)!important}
.adventure-land-current-v40{width:100%;cursor:pointer}
.adventure-land-change-v40{display:none!important}
.adventure-card-actions{grid-template-columns:1fr!important}
.adventure-card-actions button[data-open-spot-picker]{min-height:42px}
.spot-picker-v41{display:grid;gap:10px}.spot-time-v41{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #6d4b28;background:#0b0e11}.spot-time-v41 span{font-size:10px;color:#b8aa96}.spot-time-v41 b{font:700 20px Georgia,serif;color:#edc06d}.spot-choice-card-v41{display:grid;gap:9px;padding:11px;border:1px solid #5b4228;background:linear-gradient(145deg,#11161b,#080b0e)}.spot-choice-card-v41.free{border-color:#806037}.spot-choice-card-v41.mine{border-color:#c28a35;box-shadow:inset 0 0 0 1px #c28a3525}.spot-choice-title-v41{display:grid;gap:3px}.spot-choice-title-v41 small{font-size:8px;letter-spacing:.14em;color:#bd8646}.spot-choice-title-v41 b{font:700 14px Georgia,serif;color:#ead7b5}.spot-choice-card-v41 p{margin:0;color:#9d978d;font-size:10px}.spot-choice-card-v41>button{min-height:42px}.spot-owner-free-v41,.spot-owner-player-v41{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #3e352b;background:#090c0f}.spot-owner-free-v41>span{display:grid;place-items:center;width:40px;height:40px;border:1px solid #557247;color:#81bd70;font-size:20px}.spot-owner-free-v41{display:grid;grid-template-columns:40px 1fr}.spot-owner-free-v41 b,.spot-owner-player-v41 b{color:#eadbc0}.spot-owner-free-v41 small,.spot-owner-player-v41 small{color:#989187;font-size:8px}.spot-owner-player-v41>span{width:48px;height:48px;overflow:hidden;border:1px solid #7b562f;background:#111}.spot-owner-player-v41 img{width:100%;height:100%;object-fit:cover}.spot-owner-player-v41>div{display:grid;gap:3px}.spot-test-note-v41{margin:0;padding:8px;border-left:2px solid #6b4b2a;color:#777;font-size:8px}
@media(max-width:650px){.adventure-land-bar-v40{grid-template-columns:82px minmax(0,1fr)!important}.pve-report-modal{inset:4px 4px 92px!important;padding:2px!important;align-items:start!important}.pve-report-card{width:100%!important;max-height:100%!important;padding:9px 8px!important}.pve-report-head h2{font-size:19px!important}.pve-report-head p{font-size:9px!important}.pve-report-result{margin:7px 0!important;padding:4px 8px!important}.pve-report-stats{gap:4px!important;margin:2px 0 9px!important}.pve-report-stats span{min-height:48px!important;padding:5px!important}.pve-report-stats b{font-size:15px!important}.pve-loot-head{margin-bottom:5px!important}.pve-loot-grid{gap:4px!important}.pve-loot-item label{min-height:44px!important;padding-top:5px!important;padding-bottom:5px!important}.pve-report-actions{margin-top:7px!important;gap:5px!important}.pve-report-actions button{min-height:36px!important;font-size:9px!important}.spot-picker-v41{gap:7px}.spot-choice-card-v41{padding:8px;gap:6px}.spot-owner-player-v41>span{width:42px;height:42px}}

/* ================================================================
   SEKCJA: premium-v42.css
   ================================================================ */
/* ASHENREALM v0.13.6.42 — profile equipment repair + Adventure spot control UI */
:root{--v42-gold:#c88d36;--v42-gold-hi:#f1bd58;--v42-line:#664722;--v42-bg:#06090c;--v42-panel:#0a0e12;--v42-cream:#efe1ca}

/* =====================================================================
   ONE SHARED HUD GEOMETRY ON EVERY NON-COMBAT SCREEN.
   The profile pixel HUD remains the visual master; this is its live twin.
   ===================================================================== */
body:not(.pixel-profile-active) .top-hud{
  width:min(100%,864px)!important;aspect-ratio:864/205!important;height:auto!important;min-height:0!important;
  margin:0 auto!important;padding:1.6% 2.2% 1.3%!important;box-sizing:border-box!important;display:grid!important;
  grid-template-rows:61% 31%!important;gap:4%!important;overflow:hidden!important;position:sticky!important;top:0!important;
  background:radial-gradient(ellipse at 52% -28%,#5b3a191b 0 28%,transparent 50%),repeating-linear-gradient(113deg,#ffffff05 0 1px,transparent 1px 9px),linear-gradient(180deg,#080d12,#05080b)!important
}
body:not(.pixel-profile-active) .top-hud::before{inset:2% 1.4% 2.5%!important;border:1px solid #6b4824!important;box-shadow:inset 0 0 0 1px #24180d!important}
body:not(.pixel-profile-active) .player-chip{display:grid!important;grid-template-columns:13% 22% 22% 13% 21%!important;gap:2.25%!important;align-items:center!important;min-width:0!important;height:100%!important}
body:not(.pixel-profile-active) .avatar-frame{width:100%!important;height:auto!important;aspect-ratio:1!important;max-width:none!important}
body:not(.pixel-profile-active) .player-copy{min-width:0!important;align-self:center!important}.player-copy small{display:none!important}
body:not(.pixel-profile-active) .player-copy b{font:700 clamp(18px,5.2vw,31px)/1 Georgia,serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#f4e7d4!important}
body:not(.pixel-profile-active) .player-copy span{font:400 clamp(10px,3vw,17px)/1.2 Georgia,serif!important;color:#c9bda9!important;margin-top:10%!important}
body:not(.pixel-profile-active) .compact-wallet{display:grid!important;grid-template-rows:1fr 1fr!important;gap:2%!important;align-self:stretch!important;position:static!important;width:100%!important;min-width:0!important}
body:not(.pixel-profile-active) .compact-wallet>div{display:grid!important;grid-template-columns:28% minmax(0,1fr)!important;align-items:center!important;gap:5%!important;padding:0!important;border:0!important;background:transparent!important}
body:not(.pixel-profile-active) .compact-wallet .currency-icon{width:100%!important;height:auto!important;aspect-ratio:1!important;max-width:28px!important}.compact-wallet b{font:700 clamp(11px,3.3vw,18px)/1 Georgia,serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body:not(.pixel-profile-active) .level-medallion{width:100%!important;height:auto!important;aspect-ratio:1!important;max-width:none!important;display:grid!important;place-items:center!important}.level-medallion small{font-size:clamp(6px,1.7vw,9px)!important}.level-medallion span{font-size:clamp(18px,5vw,31px)!important}
body:not(.pixel-profile-active) .hud-power-badge{width:100%!important;height:68%!important;min-width:0!important;align-self:center!important;padding:4% 5%!important}.hud-power-badge small{font-size:clamp(6px,1.7vw,9px)!important}.hud-power-badge b{font-size:clamp(16px,4.8vw,28px)!important}
body:not(.pixel-profile-active) .hud-bars{display:grid!important;grid-template-columns:1fr 1fr 1.08fr!important;gap:3%!important;align-items:end!important;min-width:0!important;height:100%!important}
body:not(.pixel-profile-active) .hud-meter{display:grid!important;grid-template-rows:43% 44%!important;gap:6%!important;min-width:0!important}.hud-meter label{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:4%!important;align-items:center!important;font:700 clamp(7px,2vw,11px)/1 Arial,sans-serif!important}.hud-meter label b{text-align:right!important;font-size:inherit!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.top-hud .bar{height:100%!important;min-height:0!important}.switch-character{display:none!important}
body[data-active-screen="combat"] .top-hud{display:none!important}

/* =====================================================================
   PROFILE EQUIPMENT — no overlap, fixed physical cells.
   weapon socket = 3 x 1, armor socket = 2 x 1, all others = 1 x 1.
   ===================================================================== */
body.pixel-profile-active .px-hero-stage{--eqw:90px;--eqh:66px;--eqg:8px;height:430px!important;overflow:hidden!important}
body.pixel-profile-active .px-gear-panel{height:570px!important}
body.pixel-profile-active .px-hero-stage::before{left:218px!important;right:218px!important;top:20px!important;bottom:18px!important}
body.pixel-profile-active #pxGearHero{left:222px!important;top:26px!important;width:420px!important;height:374px!important;object-position:center bottom!important}
body.pixel-profile-active .px-hero-floor{left:260px!important;bottom:12px!important;width:344px!important;height:45px!important}
body.pixel-profile-active .px-eq-grid-bg{inset:24px 20px 18px!important;background:linear-gradient(#72502948 1px,transparent 1px) 0 0/100% calc(var(--eqh) + var(--eqg)),linear-gradient(90deg,#72502948 1px,transparent 1px) 0 0/calc(var(--eqw) + var(--eqg)) 100%!important;mask-image:linear-gradient(90deg,#000 0 27%,transparent 28% 72%,#000 73% 100%)!important}
body.pixel-profile-active .px-eq-slot{width:var(--eqw)!important;height:var(--eqh)!important;padding:3px!important;overflow:hidden!important;display:block!important;background:radial-gradient(circle at 50% 34%,#24333c34,transparent 62%),linear-gradient(145deg,#12181e,#07090c 76%)!important}
body.pixel-profile-active .px-eq-slot::before{inset:3px!important}
body.pixel-profile-active .px-eq-slot>span{position:absolute!important;left:3px!important;right:3px!important;top:4px!important;bottom:auto!important;text-align:center!important;font:400 10px/1 Georgia,serif!important;color:#dec6a1!important;white-space:nowrap!important;z-index:8!important}
body.pixel-profile-active .px-eq-slot>i{position:absolute!important;left:4px!important;right:4px!important;top:18px!important;width:auto!important;height:calc(100% - 22px)!important;display:grid!important;place-items:center!important;font-size:27px!important;color:#ca9448!important;border:0!important;background:transparent!important;z-index:5!important}
body.pixel-profile-active .px-eq-slot.filled>i{border:1px solid #a67434!important;background:radial-gradient(circle at 50% 36%,#80511e2e,transparent 65%)!important;color:#ffd06c!important}
body.pixel-profile-active .slot-necklace{left:24px!important;top:28px!important}.slot-bracelet{left:24px!important;top:102px!important}.slot-boots{left:24px!important;top:324px!important}
body.pixel-profile-active .slot-helmet{left:122px!important;top:28px!important}.slot-weapon{left:122px!important;top:102px!important;height:214px!important}.slot-belt{left:122px!important;top:324px!important}
body.pixel-profile-active .slot-armor{right:122px!important;top:28px!important;height:140px!important}.slot-shield{right:122px!important;top:176px!important}.slot-earrings{right:24px!important;top:102px!important}.slot-talisman{right:24px!important;top:250px!important}
body.pixel-profile-active .slot-weapon{background:linear-gradient(to bottom,transparent calc(33.333% - .5px),#72512f88 calc(33.333% - .5px) calc(33.333% + .5px),transparent calc(33.333% + .5px) calc(66.666% - .5px),#72512f88 calc(66.666% - .5px) calc(66.666% + .5px),transparent calc(66.666% + .5px)),linear-gradient(145deg,#12181e,#07090c 76%)!important}
body.pixel-profile-active .slot-armor{background:linear-gradient(to bottom,transparent calc(50% - .5px),#72512f88 calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(145deg,#12181e,#07090c 76%)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="1"]>i{height:calc(33.333% - 20px)!important}.slot-weapon[data-item-cells="2"]>i{height:calc(66.666% - 20px)!important}.slot-weapon[data-item-cells="3"]>i{height:calc(100% - 22px)!important}
body.pixel-profile-active .slot-armor>i{height:calc(100% - 22px)!important}

/* =====================================================================
   ADVENTURE — accepted region hero + direct spot ownership board.
   ===================================================================== */
body[data-active-screen="expeditions"] #gameMain{padding:0 8px calc(var(--pr-dock,78px) + 14px)!important}
body[data-active-screen="expeditions"] .screen-heading{min-height:112px!important;margin:0!important;background:linear-gradient(90deg,#05080ca8,#05080c32),url('assets/ui/premium-v34/adventure-header.webp') center/cover no-repeat!important;border:1px solid #6f4d25!important}
body[data-active-screen="expeditions"] .screen-heading h1{font:700 clamp(35px,8vw,58px)/1 Georgia,serif!important;color:#f4e6cf!important;text-transform:uppercase!important}.screen-heading>div>small{display:none!important}
.adventure-view-v42{display:grid;gap:8px;min-width:0;width:100%}
.adventure-land-bar-v42{display:grid;grid-template-columns:minmax(122px,28%) minmax(0,1fr);gap:8px;padding:8px 10px;border:1px solid #624522;background:#080c10}.adventure-land-label-v42{display:flex;align-items:center;gap:9px;color:#e5d2b4;font:700 clamp(12px,3vw,18px)/1 Georgia,serif}.adventure-land-label-v42 span{font-size:28px;color:#dfac52}.adventure-land-current-v42{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:0 14px;border:1px solid #7a5529;background:linear-gradient(180deg,#151719,#080b0d);color:#f1dfc4}.adventure-land-current-v42 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 clamp(12px,3.3vw,19px) Georgia,serif}.adventure-land-current-v42 span{color:#e0a64c;font-size:20px}
.adventure-hero-v42{position:relative;min-height:270px;padding:22px 22px 20px;overflow:hidden;border:1px solid #76542c;background:linear-gradient(90deg,#05080df2 0 38%,#05080d66 62%,#05080d17 100%),url('assets/ui/premium-v34/adventure-hero.webp') center/cover no-repeat}.adventure-hero-v42::after{content:"";position:absolute;inset:6px;border:1px solid #b57e3827;pointer-events:none}.adventure-hero-copy-v42{position:relative;z-index:2;max-width:58%}.adventure-hero-copy-v42 h2{margin:0 0 12px;font:700 clamp(25px,6vw,46px)/1.05 Georgia,serif;color:#f4e7d2}.adventure-hero-copy-v42 p{margin:0;color:#d7cab6;font:400 clamp(12px,2.8vw,18px)/1.35 Georgia,serif}.adventure-hero-meta-v42{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:17px;color:#e4bd77;font:700 clamp(9px,2.2vw,13px) Georgia,serif}.adventure-legend-v42{position:absolute;z-index:2;right:18px;top:18px;color:#dca955;text-align:center;letter-spacing:.18em;font:700 clamp(8px,2vw,12px)/1.35 Georgia,serif}
.adventure-tabs-v42{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0}.adventure-tabs-v42 button{min-height:58px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #5b4226;background:linear-gradient(#111417,#080b0d);color:#e4d7c5;font:700 clamp(11px,2.8vw,17px) Georgia,serif}.adventure-tabs-v42 button span{font-size:20px;color:#dba24b}.adventure-tabs-v42 button.is-active{border-color:#e3a447;color:#ffe09b;background:radial-gradient(circle at 50% 45%,#87501f55,transparent 58%),linear-gradient(#4c2d15,#1b100a);box-shadow:inset 0 0 18px #e4972a33,0 0 9px #d88e283d}
.adventure-spots-v42{display:grid;gap:8px}.adventure-spots-head-v42{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,34%);gap:8px;align-items:stretch;border-top:1px solid #6d4c27;border-bottom:1px solid #6d4c27;padding:8px 0}.adventure-spots-head-v42>div{display:flex;align-items:center;gap:12px;padding:7px 8px}.adventure-spots-head-v42>div>span{font-size:34px;color:#dba34c}.adventure-spots-head-v42 h2{margin:0;color:#f0dfc5;font:700 clamp(21px,5vw,34px) Georgia,serif}.adventure-spots-head-v42 p{margin:4px 0 0;color:#a69d90;font-size:10px}.beastbook-v42{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;grid-template-rows:1fr 1fr;column-gap:8px;align-items:center;padding:8px 10px;border:1px solid #8b612d;background:linear-gradient(180deg,#2f1c0e,#0b0d10);color:#ecd5ab;text-align:left}.beastbook-v42>span{grid-row:1/3;font-size:28px;color:#e0a74c}.beastbook-v42>b{align-self:end;font:700 16px Georgia,serif}.beastbook-v42>small{align-self:start;color:#ae9b80;font-size:8px}.beastbook-v42>em{grid-column:3;grid-row:1/3;font:normal 25px Georgia,serif;color:#d9a14b}
.spot-time-strip-v42{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 12px;border:1px solid #4f3c28;background:#090d10;color:#a89b88;font-size:9px}.spot-time-strip-v42 b{color:#e6bb70;font-size:11px}
.spot-zones-v42{display:grid;gap:8px}.spot-zone-v42{border:1px solid #644725;background:#070b0f;box-shadow:inset 0 0 22px #000a}.spot-zone-main-v42{display:grid;grid-template-columns:70px 112px minmax(0,1fr) minmax(112px,23%);min-height:100px;align-items:stretch}.spot-zone-number-v42{display:grid;place-items:center;border-right:1px solid #5e4327;background:linear-gradient(145deg,#11171a,#081012);color:#e0b35e}.spot-zone-number-v42 b{font:700 36px/1 Georgia,serif}.spot-zone-number-v42 small{font:700 9px Arial,sans-serif;letter-spacing:.12em}.spot-zone-art-v42{border-right:1px solid #5c4023;background:url('assets/ui/premium-v34/adventure-hero.webp') center/cover no-repeat;filter:saturate(.8) brightness(.74)}.spot-zone-art-2{background-image:url('assets/ui/premium-v34/more-adventure.webp')}.spot-zone-art-3{background-image:url('assets/ui/premium-v34/adventure-header.webp')}.spot-zone-art-4{background-image:url('assets/ui/premium-v34/more-system.webp')}.spot-zone-copy-v42{align-self:center;padding:10px 14px;min-width:0}.spot-zone-copy-v42 small{color:#b7803e;font-size:9px;letter-spacing:.12em}.spot-zone-copy-v42 h3{margin:2px 0 4px;color:#efdec5;font:700 clamp(17px,4vw,25px) Georgia,serif}.spot-zone-copy-v42 p{margin:0;color:#a79e91;font-size:9px}.spot-normal-v42{margin:12px;min-height:54px;border:1px solid #b27a32;background:linear-gradient(#4a2b14,#150e09);color:#f2d18d;font:700 clamp(12px,3vw,18px) Georgia,serif}
.spot-zone-specials-v42{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border-top:1px solid #3e3021}.spot-inline-v42{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) 16px;align-items:center;gap:8px;min-height:54px;padding:6px 10px;border:1px solid #5b4329;background:#0a0d10;color:#e0d2bd;text-align:left}.spot-inline-v42.occupied{border-color:#805c31}.spot-inline-v42.mine{border-color:#d29338;box-shadow:inset 0 0 16px #e0912824}.spot-inline-badge-v42{display:flex;align-items:center;gap:5px;color:#d9a24d;white-space:nowrap;font-size:11px}.spot-inline-badge-v42 b{font:700 11px Georgia,serif}.spot-inline-state-v42{display:flex;align-items:center;gap:5px;color:#8eaf7f;font-size:10px}.spot-inline-player-v42{display:flex;align-items:center;gap:7px;min-width:0}.spot-inline-player-v42>i{width:32px;height:32px;overflow:hidden;border:1px solid #75532d;background:#111}.spot-inline-player-v42 img{width:100%;height:100%;object-fit:cover}.spot-inline-player-v42>span{display:grid;min-width:0}.spot-inline-player-v42 small{font-size:6px;color:#8f7b61;letter-spacing:.1em}.spot-inline-player-v42 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 10px Georgia,serif}.spot-inline-v42>em{font:normal 20px Georgia,serif;color:#dba24b}
.spot-info-v42{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;padding:10px 12px;border:1px solid #5c4328;background:#090d10}.spot-info-v42>span{font-size:25px;color:#dda64d}.spot-info-v42 p{margin:0;color:#b5aa9a;font-size:9px;line-height:1.4}
.spot-duel-v42{display:grid;gap:9px}.spot-duel-title-v42 small{display:block;color:#b98746;font-size:8px;letter-spacing:.12em}.spot-duel-title-v42 b{display:block;margin-top:4px;color:#ead8bb;font:700 19px Georgia,serif}.spot-duel-bonus-v42{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.spot-duel-bonus-v42 span{padding:8px;border:1px solid #584027;background:#0a0d10;color:#dfb769;text-align:center;font-size:10px}.spot-duel-time-v42{display:flex;justify-content:space-between;padding:8px 10px;border:1px solid #584027}.spot-duel-time-v42 span{color:#9e9588;font-size:9px}.spot-duel-time-v42 b{color:#edc06d}.spot-duel-v42 p{margin:0;color:#aaa095;font-size:9px;line-height:1.4}
.adventure-dungeons-v42{display:grid;gap:6px}.adventure-section-head-v42{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px;border-bottom:1px solid #674824}.adventure-section-head-v42 b{font:700 20px Georgia,serif;color:#eddcc2}.adventure-section-head-v42 small{font-size:9px;color:#a69275}.adventure-dungeon-card-v42{display:grid;grid-template-columns:46px 1fr 18px;gap:10px;align-items:center;padding:12px;border:1px solid #674a2b;background:linear-gradient(90deg,#080b0ef0,#080b0ec9),url('assets/ui/premium-v34/more-system.webp') center/cover no-repeat;color:#eadbc4;text-align:left}.adventure-dungeon-card-v42>span{font-size:31px;color:#daa249}.adventure-dungeon-card-v42 b{display:block;font:700 18px Georgia,serif}.adventure-dungeon-card-v42 small{font-size:9px;color:#a89b88}.adventure-dungeon-card-v42>i{font:normal 26px Georgia,serif;color:#dda44b}
.adventure-target-section-v42{display:grid;gap:8px}.adventure-target-section-v42 .adventure-detail-head{margin-top:0!important}

@media(max-width:520px){
  body:not(.pixel-profile-active) .top-hud{position:sticky!important;padding:1.5% 2% 1.2%!important}.player-chip{grid-template-columns:12.5% 23% 22% 13.5% 20%!important;gap:2.2%!important}.player-copy b{font-size:clamp(16px,4.4vw,23px)!important}.compact-wallet b{font-size:clamp(9px,2.6vw,12px)!important}.hud-meter label{font-size:clamp(6px,1.7vw,8px)!important}
  body[data-active-screen="expeditions"] #gameMain{padding-left:5px!important;padding-right:5px!important}.adventure-land-bar-v42{grid-template-columns:95px minmax(0,1fr);gap:4px;padding:6px}.adventure-land-label-v42{font-size:10px;gap:4px}.adventure-land-label-v42 span{font-size:19px}.adventure-land-current-v42{padding:0 7px;min-height:48px}.adventure-land-current-v42 b{font-size:11px}.adventure-hero-v42{min-height:220px;padding:13px 11px}.adventure-hero-copy-v42{max-width:72%}.adventure-hero-copy-v42 h2{font-size:28px}.adventure-hero-copy-v42 p{font-size:10px}.adventure-hero-meta-v42{font-size:8px;gap:6px 10px;margin-top:10px}.adventure-legend-v42{font-size:6.5px;right:10px;top:13px}.adventure-tabs-v42{gap:4px}.adventure-tabs-v42 button{min-height:48px;gap:4px;font-size:9px;padding:4px}.adventure-tabs-v42 button span{font-size:16px}
  .adventure-spots-head-v42{grid-template-columns:1fr 148px;gap:4px}.adventure-spots-head-v42>div{gap:7px;padding:5px}.adventure-spots-head-v42>div>span{font-size:24px}.adventure-spots-head-v42 h2{font-size:20px}.adventure-spots-head-v42 p{font-size:7px}.beastbook-v42{grid-template-columns:24px 1fr 12px;column-gap:4px;padding:5px}.beastbook-v42>span{font-size:20px}.beastbook-v42>b{font-size:11px}.beastbook-v42>small{font-size:5.8px}.beastbook-v42>em{font-size:17px}.spot-time-strip-v42{font-size:6.7px;padding:6px}.spot-time-strip-v42 b{font-size:7.5px}.spot-zone-main-v42{grid-template-columns:46px 66px minmax(0,1fr) 94px;min-height:82px}.spot-zone-number-v42 b{font-size:25px}.spot-zone-number-v42 small{font-size:6px}.spot-zone-copy-v42{padding:6px}.spot-zone-copy-v42 small{font-size:6px}.spot-zone-copy-v42 h3{font-size:14px;margin:1px 0 3px}.spot-zone-copy-v42 p{font-size:6.5px}.spot-normal-v42{margin:7px;min-height:43px;font-size:9px;padding:4px}.spot-zone-specials-v42{gap:4px;padding:4px}.spot-inline-v42{min-height:44px;padding:4px 6px;gap:4px;grid-template-columns:auto minmax(0,1fr) 10px}.spot-inline-badge-v42{font-size:7px}.spot-inline-badge-v42 b{font-size:7px}.spot-inline-player-v42>i{width:25px;height:25px}.spot-inline-player-v42 small{font-size:4.7px}.spot-inline-player-v42 b{font-size:7px}.spot-inline-state-v42{font-size:7px}.spot-inline-v42>em{font-size:13px}.spot-info-v42{grid-template-columns:24px 1fr;padding:7px}.spot-info-v42>span{font-size:18px}.spot-info-v42 p{font-size:6.5px}.adventure-section-head-v42 b{font-size:15px}.adventure-section-head-v42 small{font-size:6px}.adventure-dungeon-card-v42{grid-template-columns:31px 1fr 12px;padding:8px}.adventure-dungeon-card-v42>span{font-size:23px}.adventure-dungeon-card-v42 b{font-size:13px}.adventure-dungeon-card-v42 small{font-size:6px}
}
/* keep the bag tight under the repaired 570px gear panel */
body.pixel-profile-active .px-bag-panel{top:1002px!important}
body.pixel-profile-active .px-gear-detail{top:1002px!important}

/* ================================================================
   SEKCJA: premium-v43.css
   ================================================================ */
/* ASHENREALM v0.13.6.43 — approved premium UI batch
   - exact shared character HUD on every main screen
   - fixed 4x2 equipment columns around hero
   - premium Bestiary
   - Adventure root tabs: Lokacje / Lochy / Przetrwanie / Wieża
*/
:root{--v43-gold:#c9903b;--v43-gold-hi:#f2be5d;--v43-line:#65451f;--v43-cream:#f1e2ca;--v43-bg:#05080b;--v43-panel:#0a0e12}

/* ====================================================================
   ONE HUD COMPONENT. The live pixel HUD from Postać is physically moved
   to the current main screen by pixel-profile.js. No second geometry.
   ==================================================================== */
.shared-pixel-hud-host{display:block;width:100%;background:#030507;overflow:hidden;border-bottom:1px solid #62411f}
.shared-pixel-hud-host[hidden]{display:none!important}
.shared-pixel-hud-wrap{position:relative;margin:0 auto;overflow:hidden;background:#030507}
.shared-pixel-hud-stage{position:relative;transform-origin:top left;background:#030507}
body.premium-shared-hud-ready:not(.pixel-profile-active) .top-hud{display:none!important}
body[data-active-screen="combat"] .shared-pixel-hud-host{display:none!important}

/* No special glowing plaque behind the EXP label. */
.px-meterlabel.exp{background:none!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;color:#c9a16d!important;padding:0!important}

/* ====================================================================
   PROFILE EQUIPMENT — 4 rows x 2 columns on each side of the hero.
   Left C1: weapon 3 rows + talisman. Left C2: helmet / armor 2 / boots.
   Right C3: earrings / necklace / shield / bracelet.
   Right C4: 3 reserve rows / belt.
   ==================================================================== */
body.pixel-profile-active .px-gear-panel{height:590px!important}
body.pixel-profile-active .px-hero-stage{
  --eqw:82px;--eqh:78px;--eqg:8px;
  height:450px!important;overflow:hidden!important;
  background:radial-gradient(circle at 50% 46%,#a86c2a20 0 16%,#2c1c1020 22%,transparent 43%),linear-gradient(180deg,#09131a,#06090c 72%,#08090a)!important
}
body.pixel-profile-active .px-hero-stage::before{left:218px!important;right:218px!important;top:19px!important;bottom:22px!important;border-color:#9b713b48!important;z-index:1!important}
body.pixel-profile-active .px-hero-stage::after{
  content:"";position:absolute;z-index:2;left:50%;top:47%;width:330px;height:330px;transform:translate(-50%,-50%);pointer-events:none;border-radius:50%;
  background:radial-gradient(circle,#c8893428 0 18%,#9e61221f 32%,#6a431516 47%,transparent 69%);
  box-shadow:0 0 42px #c6812a18,inset 0 0 32px #d39a4b0d;
}
body.pixel-profile-active #pxGearHero{left:245px!important;top:38px!important;width:374px!important;height:360px!important;object-position:center bottom!important;z-index:5!important;filter:drop-shadow(0 15px 11px #000e)!important}
body.pixel-profile-active .px-hero-floor{left:282px!important;bottom:18px!important;width:300px!important;height:42px!important;z-index:4!important}
body.pixel-profile-active .px-eq-grid-bg{display:none!important}
body.pixel-profile-active .px-eq-slot{
  width:var(--eqw)!important;height:var(--eqh)!important;padding:3px!important;overflow:hidden!important;display:block!important;clip-path:none!important;border-radius:0!important;
  border:1px solid #644822!important;background:radial-gradient(circle at 50% 35%,#27343a32,transparent 62%),linear-gradient(145deg,#11171d,#07090c 76%)!important;
  box-shadow:inset 0 0 0 1px #a3743520,inset 0 0 17px #000a!important;z-index:8!important
}
body.pixel-profile-active .px-eq-slot::before{inset:3px!important;border-color:#a9783b38!important}
body.pixel-profile-active .px-eq-slot>span{position:absolute!important;left:3px!important;right:3px!important;top:4px!important;text-align:center!important;font:400 9px/1 Georgia,serif!important;color:#dcc6a5!important;white-space:nowrap!important;z-index:8!important}
body.pixel-profile-active .px-eq-slot>i{position:absolute!important;left:4px!important;right:4px!important;top:18px!important;width:auto!important;height:calc(100% - 22px)!important;display:grid!important;place-items:center!important;border:0!important;background:transparent!important;color:#cf994a!important;font-size:25px!important;z-index:5!important}
body.pixel-profile-active .px-eq-slot.filled{border-color:#c78d37!important;box-shadow:inset 0 0 0 1px #e8af522b,inset 0 0 22px #c87e2528,0 0 7px #d78b2824!important}
body.pixel-profile-active .px-eq-slot.future.reserve{opacity:.36!important}
body.pixel-profile-active .px-eq-slot.future.reserve>span{color:#8f7d64!important}

/* Row positions: 28, 114, 200, 286. */
body.pixel-profile-active .slot-weapon{left:24px!important;top:28px!important;height:250px!important}
body.pixel-profile-active .slot-talisman{left:24px!important;top:286px!important}
body.pixel-profile-active .slot-helmet{left:114px!important;top:28px!important}
body.pixel-profile-active .slot-armor{left:114px!important;top:114px!important;height:164px!important}
body.pixel-profile-active .slot-boots{left:114px!important;top:286px!important}
body.pixel-profile-active .slot-earrings{right:114px!important;top:28px!important}
body.pixel-profile-active .slot-necklace{right:114px!important;top:114px!important}
body.pixel-profile-active .slot-shield{right:114px!important;top:200px!important}
body.pixel-profile-active .slot-bracelet{right:114px!important;top:286px!important}
body.pixel-profile-active .slot-reserve-1{right:24px!important;top:28px!important}
body.pixel-profile-active .slot-reserve-2{right:24px!important;top:114px!important}
body.pixel-profile-active .slot-reserve-3{right:24px!important;top:200px!important}
body.pixel-profile-active .slot-belt{right:24px!important;left:auto!important;top:286px!important}
body.pixel-profile-active .slot-weapon{
  background:linear-gradient(to bottom,transparent calc(33.333% - .5px),#74532e78 calc(33.333% - .5px) calc(33.333% + .5px),transparent calc(33.333% + .5px) calc(66.666% - .5px),#74532e78 calc(66.666% - .5px) calc(66.666% + .5px),transparent calc(66.666% + .5px)),linear-gradient(145deg,#11171d,#07090c 76%)!important
}
body.pixel-profile-active .slot-armor{background:linear-gradient(to bottom,transparent calc(50% - .5px),#74532e78 calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(145deg,#11171d,#07090c 76%)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="1"]>i{top:18px!important;height:56px!important}
body.pixel-profile-active .slot-weapon[data-item-cells="2"]>i{top:18px!important;height:136px!important}
body.pixel-profile-active .slot-weapon[data-item-cells="3"]>i{top:18px!important;height:226px!important}
body.pixel-profile-active .slot-armor>i{height:140px!important}
body.pixel-profile-active .px-bag-panel{top:1022px!important}
body.pixel-profile-active .px-gear-detail{top:1022px!important}

/* ====================================================================
   ADVENTURE ROOT NAVIGATION
   ==================================================================== */
body[data-active-screen="expeditions"] .adventure-shell-v39>.panel-title{display:none!important}
.adventure-view-v43{gap:9px!important}
.adventure-root-tabs-v43{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px;border:1px solid #654722;background:#06090c;box-shadow:inset 0 0 22px #000a}
.adventure-root-tabs-v43 button{position:relative;min-height:58px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr;align-items:center;justify-items:center;gap:6px;padding:7px 9px;border:1px solid #4f3a24;background:linear-gradient(180deg,#111417,#080b0d);color:#d7c9b5;font:700 14px/1 Georgia,serif}
.adventure-root-tabs-v43 button>span{font-size:21px;color:#bd8740}.adventure-root-tabs-v43 button>b{font:700 14px Georgia,serif}.adventure-root-tabs-v43 button>small{position:absolute;right:4px;top:3px;font:700 5px Arial,sans-serif;letter-spacing:.08em;color:#6f665b}
.adventure-root-tabs-v43 button.is-active{border-color:#e0a044;background:radial-gradient(circle at 50% 45%,#86501f59,transparent 62%),linear-gradient(#4a2b13,#17100a);color:#ffe0a0;box-shadow:inset 0 0 18px #df90282b,0 0 9px #d58c2d2b}
.adventure-tabs-v43{grid-template-columns:repeat(4,minmax(0,1fr))!important}.adventure-tabs-v43 .beastbook-tab-v43 span{color:#e2b460!important}
.adventure-spots-head-v42.simple-v43{grid-template-columns:minmax(0,1fr) minmax(150px,28%)!important}.spot-time-badge-v43{display:grid!important;place-content:center!important;padding:7px 10px!important;border:1px solid #674823!important;background:#090c10!important;text-align:center!important}.spot-time-badge-v43 small{font:700 6px Arial,sans-serif!important;letter-spacing:.12em!important;color:#967b58!important}.spot-time-badge-v43 b{margin-top:4px;color:#f0bd68;font:700 17px Georgia,serif!important}
.adventure-coming-v43{min-height:430px;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;border:1px solid #624622;background:linear-gradient(#080c10e8,#05080bef),url('assets/ui/premium-v34/more-adventure.webp') center/cover no-repeat;color:#ddcfbb;box-shadow:inset 0 0 60px #000d}.adventure-coming-v43>span{font-size:64px;color:#c88e3e}.adventure-coming-v43>small{margin-top:12px;letter-spacing:.2em;color:#9f7745}.adventure-coming-v43 h2{margin:8px 0 6px;font:700 39px Georgia,serif;color:#f2dfc3}.adventure-coming-v43 p{max-width:520px;margin:0;color:#a89c8b}.adventure-coming-v43>b{margin-top:20px;padding:10px 20px;border:1px solid #644621;color:#d5a95f}
.adventure-root-content-v43{padding-top:5px}

/* ====================================================================
   PREMIUM BESTIARY
   ==================================================================== */
.bestiary-modal{background:rgba(1,3,6,.91)!important;backdrop-filter:blur(4px);padding:10px!important}
.bestiary-dialog-v43{width:min(820px,100%)!important;max-height:94vh!important;padding:14px!important;border:1px solid #aa7734!important;border-radius:0!important;background:radial-gradient(circle at 15% 0,#72501c1b,transparent 25%),linear-gradient(145deg,#0a0f14,#05080b 75%)!important;box-shadow:inset 0 0 0 1px #e0ac5030,inset 0 0 70px #000c,0 22px 70px #000e!important;color:#ede0cc!important}
.bestiary-dialog-v43::before{content:"";position:absolute;pointer-events:none}
.bestiary-title-v43{display:grid!important;grid-template-columns:54px 1fr 54px;gap:10px;align-items:center;padding:5px 5px 14px!important;border-bottom:1px solid #775125!important}.bestiary-sigil-v43{width:48px;height:48px;display:grid;place-items:center;border:1px solid #75502b;background:#0b0e11;color:#dba14a;font-size:28px}.bestiary-title-v43 small{display:block;color:#b88749;font:700 9px Arial,sans-serif;letter-spacing:.2em}.bestiary-title-v43 h2{margin:4px 0 0!important;color:#f3dfc0;font:700 34px/1 Georgia,serif}.bestiary-title-v43>button{width:50px;height:50px;border:1px solid #7e572b!important;background:linear-gradient(#181a1b,#090b0d)!important;color:#efc36f!important;font:400 34px/1 Georgia,serif!important}
.bestiary-zone-tabs-v43{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:11px 0!important}.bestiary-zone-tabs-v43 button{min-height:66px;text-align:left;padding:9px 13px;border:1px solid #5d4328;background:linear-gradient(#11161a,#080b0e);color:#dbcdb8}.bestiary-zone-tabs-v43 button b{display:block;color:#c9974e;font:700 12px Arial,sans-serif;letter-spacing:.12em}.bestiary-zone-tabs-v43 button span{display:block;margin-top:5px;font:700 18px Georgia,serif}.bestiary-zone-tabs-v43 button.active{border-color:#e1a344;background:linear-gradient(#422713,#17100a);box-shadow:inset 0 0 16px #dc8e2726,0 0 8px #d58b2924;color:#ffe0a0}
.bestiary-tabs-v43{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(142px,1fr);gap:8px;overflow-x:auto;padding:2px 1px 12px!important;scrollbar-width:thin;scrollbar-color:#8c6639 #050709}.bestiary-tabs-v43 button{min-width:0!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:124px auto auto!important;gap:3px!important;padding:0 0 8px!important;border:1px solid #5b4126;background:#080b0e;color:#ddd0bd;text-align:center!important;overflow:hidden}.bestiary-tabs-v43 button.active{border-color:#e7ad4d!important;box-shadow:inset 0 0 0 1px #e2a34236,0 0 10px #d68b2b2c}.beast-thumb-v43{width:100%;height:124px;display:block;overflow:hidden;border:0;background:#0b0e11}.beast-thumb-v43 img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 32%;filter:saturate(.88) contrast(1.04) brightness(.88)}.bestiary-tabs-v43 button b{padding:5px 7px 0;font:700 15px/1.08 Georgia,serif}.bestiary-tabs-v43 button small{color:#b88c52;font-size:9px}
.bestiary-body-v43{display:grid!important;gap:10px!important}.beast-profile-v43{display:grid;grid-template-columns:minmax(210px,34%) minmax(0,1fr);min-height:350px;border:1px solid #6f4c25;background:linear-gradient(90deg,#070a0d 0 35%,#080c10d9 58%,#080c10eb),url('assets/ui/bestiary-v43/detail-bg.webp') right center/cover no-repeat;box-shadow:inset 0 0 42px #000c}.beast-large-thumb-v43{height:100%;min-height:350px;overflow:hidden;border-right:1px solid #805a2b;background:#0a0c0e}.beast-large-thumb-v43 img{width:100%;height:100%;object-fit:cover;object-position:center top;filter:saturate(.86) contrast(1.05) brightness(.83)}.beast-profile-copy-v43{align-self:center;padding:20px 20px;display:grid;gap:7px}.beast-profile-copy-v43>small{color:#b98343;font:700 8px Arial,sans-serif;letter-spacing:.18em}.beast-profile-copy-v43 h2{margin:0 0 7px;color:#f1dfc6;font:700 32px/1.05 Georgia,serif}.beast-profile-copy-v43>span{display:flex;align-items:center;gap:8px;color:#d6c8b4;font:400 14px Georgia,serif}.beast-profile-copy-v43>span i{width:24px;text-align:center;color:#dba14b;font-style:normal}.beast-profile-copy-v43>span b{color:#f0e4d4}
.beast-combat-stats-v43{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.beast-combat-stats-v43 span{display:grid!important;grid-template-columns:24px 1fr auto;align-items:center;padding:9px 10px!important;border:1px solid #584026!important;background:#080b0f!important;color:#d6c8b3}.beast-combat-stats-v43 span i{font-style:normal;color:#d5a04f}.beast-combat-stats-v43 span b{color:#f1e5d4;font-size:16px}
.beast-loot-table-v43{border:1px solid #6c4a27;background:#070a0e;padding:8px 11px 11px}.beast-loot-table-v43 h3{margin:0 0 5px;padding:4px 3px 9px;border-bottom:1px solid #795328;color:#efd9b7;font:700 22px Georgia,serif}.beast-loot-table-v43 h3 span{margin-right:9px;color:#dda54f}.beast-loot-table-v43>div{display:grid!important;grid-template-columns:38px minmax(0,1fr) minmax(80px,22%) 80px!important;gap:8px;align-items:center;padding:8px 5px!important;border-bottom:1px solid #392c1f!important}.loot-thumb-v43{width:30px;height:30px;display:grid;place-items:center;border:1px solid #6b4c2a;background:#0c1014;color:#e2aa53;font-size:17px}.beast-loot-table-v43 b{font:700 13px Georgia,serif;color:#e8dac6}.beast-loot-table-v43 small{color:#a99b88;font-size:9px}.beast-loot-table-v43 strong{text-align:right;color:#f0dfc4;font:700 13px Georgia,serif}.bestiary-note-v43{padding:8px 2px 2px;color:#796f63;font-size:8px;text-align:center}

@media(max-width:560px){
  .adventure-root-tabs-v43{gap:4px;padding:5px}.adventure-root-tabs-v43 button{min-height:48px;padding:4px;gap:3px}.adventure-root-tabs-v43 button>span{font-size:16px}.adventure-root-tabs-v43 button>b{font-size:9px}.adventure-root-tabs-v43 button>small{font-size:4px}.adventure-tabs-v43{gap:4px!important}.adventure-tabs-v43 button{font-size:7.4px!important;padding:3px!important;gap:3px!important}.adventure-tabs-v43 button span{font-size:14px!important}
  .adventure-spots-head-v42.simple-v43{grid-template-columns:minmax(0,1fr) 120px!important}.spot-time-badge-v43 small{font-size:4.5px!important}.spot-time-badge-v43 b{font-size:11px!important}
  .bestiary-modal{padding:5px!important}.bestiary-dialog-v43{max-height:calc(100vh - 84px)!important;padding:8px!important}.bestiary-title-v43{grid-template-columns:38px 1fr 40px;gap:6px}.bestiary-sigil-v43{width:34px;height:34px;font-size:19px}.bestiary-title-v43 h2{font-size:23px}.bestiary-title-v43 small{font-size:6px}.bestiary-title-v43>button{width:38px;height:38px;font-size:25px}.bestiary-zone-tabs-v43{gap:4px;padding:7px 0!important}.bestiary-zone-tabs-v43 button{min-height:50px;padding:7px}.bestiary-zone-tabs-v43 button b{font-size:8px}.bestiary-zone-tabs-v43 button span{font-size:11px}.bestiary-tabs-v43{grid-auto-columns:118px;gap:5px;padding-bottom:8px!important}.bestiary-tabs-v43 button{grid-template-rows:88px auto auto!important}.beast-thumb-v43{height:88px}.bestiary-tabs-v43 button b{font-size:10px}.bestiary-tabs-v43 button small{font-size:6px}.beast-profile-v43{grid-template-columns:35% 65%;min-height:270px}.beast-large-thumb-v43{min-height:270px}.beast-profile-copy-v43{padding:10px 9px;gap:4px}.beast-profile-copy-v43 h2{font-size:19px}.beast-profile-copy-v43>small{font-size:5px}.beast-profile-copy-v43>span{font-size:8px;gap:4px}.beast-profile-copy-v43>span i{width:16px}.beast-combat-stats-v43{gap:4px;margin-top:5px}.beast-combat-stats-v43 span{grid-template-columns:15px 1fr auto;padding:6px 5px!important;font-size:7px}.beast-combat-stats-v43 span b{font-size:9px}.beast-loot-table-v43 h3{font-size:15px}.beast-loot-table-v43>div{grid-template-columns:28px minmax(0,1fr) 58px 54px!important;gap:5px;padding:6px 3px!important}.loot-thumb-v43{width:24px;height:24px;font-size:13px}.beast-loot-table-v43 b{font-size:8px}.beast-loot-table-v43 small{font-size:6px}.beast-loot-table-v43 strong{font-size:8px}.bestiary-note-v43{font-size:5px}
}

/* ================================================================
   SEKCJA: premium-v44.css
   ================================================================ */
/* ASHENREALM v0.13.6.44 — equipment grid, shared HUD consistency, Adventure cleanup, inventory item dialog */
:root{--v44-gold:#c9903b;--v44-line:#644620;--v44-cream:#f0dfc7}

/* Never show the old duplicated Adventure strip directly below the HUD. */
body[data-active-screen="expeditions"] .legacy-adventure-tabs-v39,
body[data-active-screen="expeditions"] #screen-expeditions > .legacy-adventure-tabs-v39{display:none!important}

/* The physical HUD is the same node on every screen; keep the exact profile typography too. */
.shared-pixel-hud-stage,.shared-pixel-hud-stage .px-hud{font-family:Georgia,"Times New Roman",serif!important}
.shared-pixel-hud-stage #pxName,.shared-pixel-hud-stage #pxSpec,.shared-pixel-hud-stage #pxGold,.shared-pixel-hud-stage #pxDiamonds,
.shared-pixel-hud-stage .px-meterline,.shared-pixel-hud-stage .px-meterlabel,.shared-pixel-hud-stage .px-metertext{font-family:Georgia,"Times New Roman",serif!important}

/* Equipment: four equal slot columns (two left + two right) around one central hero column.
   Rows are mathematical, not hand-positioned pixels. */
body.pixel-profile-active .px-hero-stage{
  --eq-gap:8px;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(286px,2.35fr) minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  gap:var(--eq-gap)!important;
  padding:18px 18px 20px!important;
  box-sizing:border-box!important;
  height:450px!important;
  overflow:hidden!important;
}
body.pixel-profile-active .px-hero-stage::before{left:31%!important;right:31%!important;top:19px!important;bottom:22px!important}
body.pixel-profile-active .px-hero-stage::after{left:50%!important;top:47%!important;width:315px!important;height:315px!important}
body.pixel-profile-active #pxGearHero{
  position:relative!important;inset:auto!important;left:auto!important;top:auto!important;
  grid-column:3!important;grid-row:1/5!important;align-self:stretch!important;justify-self:stretch!important;
  width:100%!important;height:100%!important;padding:8px 0 15px!important;box-sizing:border-box!important;object-fit:contain!important;object-position:center bottom!important;z-index:5!important
}
body.pixel-profile-active .px-hero-floor{left:34%!important;right:34%!important;width:auto!important;bottom:14px!important;z-index:4!important}
body.pixel-profile-active .px-eq-slot{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;align-self:stretch!important;justify-self:stretch!important
}
body.pixel-profile-active .slot-weapon{grid-column:1!important;grid-row:1/4!important}
body.pixel-profile-active .slot-talisman{grid-column:1!important;grid-row:4!important}
body.pixel-profile-active .slot-helmet{grid-column:2!important;grid-row:1!important}
body.pixel-profile-active .slot-armor{grid-column:2!important;grid-row:2/4!important}
body.pixel-profile-active .slot-boots{grid-column:2!important;grid-row:4!important}
body.pixel-profile-active .slot-earrings{grid-column:4!important;grid-row:1!important}
body.pixel-profile-active .slot-necklace{grid-column:4!important;grid-row:2!important}
body.pixel-profile-active .slot-shield{grid-column:4!important;grid-row:3!important}
body.pixel-profile-active .slot-bracelet{grid-column:4!important;grid-row:4!important}
body.pixel-profile-active .slot-reserve-1{grid-column:5!important;grid-row:1!important}
body.pixel-profile-active .slot-reserve-2{grid-column:5!important;grid-row:2!important}
body.pixel-profile-active .slot-reserve-3{grid-column:5!important;grid-row:3!important}
body.pixel-profile-active .slot-belt{grid-column:5!important;grid-row:4!important}
body.pixel-profile-active .px-eq-slot>i{left:5px!important;right:5px!important;top:20px!important;height:calc(100% - 25px)!important;width:auto!important}
body.pixel-profile-active .slot-weapon[data-item-cells="1"]>i{height:calc(33.333% - 20px)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="2"]>i{height:calc(66.666% - 20px)!important}
body.pixel-profile-active .slot-weapon[data-item-cells="3"]>i{height:calc(100% - 25px)!important}
body.pixel-profile-active .slot-armor>i{height:calc(100% - 25px)!important}

/* Strefa 3 used an image containing baked-in horizontal header lines. */
.spot-zone-art-3{background-image:url('assets/ui/premium-v34/adventure-hero.webp')!important;background-position:76% center!important;background-size:cover!important;background-repeat:no-repeat!important}

/* Premium inventory detail popup: item avatar + information + context actions. */
.px-detail-top{display:grid;grid-template-columns:132px minmax(0,1fr);gap:18px;align-items:start;margin-bottom:18px}
.px-detail-thumb{width:128px;height:128px;display:grid;place-items:center;box-sizing:border-box;border:1px solid #72512c;background:radial-gradient(circle at 50% 35%,#25333d66,transparent 60%),linear-gradient(145deg,#11171d,#07090d);box-shadow:inset 0 0 22px #000c;color:#d4a052;font:normal 56px/1 Georgia,serif}
.px-detail-thumb.rarity-rare{border-color:#3d90d4}.px-detail-thumb.rarity-epic{border-color:#a34ee3}.px-detail-thumb.rarity-legendary{border-color:#d28a2d}.px-detail-thumb.rarity-mythic{border-color:#bd4d3d}
.px-detail-copy{min-width:0;padding-top:4px}.px-detail-copy>small{font:700 10px/1 Arial,sans-serif;letter-spacing:2.6px;color:#a1763f}.px-detail-copy h3{margin:7px 48px 5px 0!important}.px-detail-copy p{margin:0;color:#968b7b;font-size:15px}
.px-detail-actions button.primary{border-color:#d79b3b!important;background:linear-gradient(#5c3515,#201208)!important;color:#ffdc8e!important;box-shadow:inset 0 0 16px #dc92252c}

@media(max-width:560px){
  body.pixel-profile-active .px-hero-stage{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(245px,2.15fr) minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;padding:14px 12px 16px!important}
  body.pixel-profile-active #pxGearHero{padding:20px 0 20px!important}
  .px-detail-top{grid-template-columns:92px minmax(0,1fr);gap:12px}.px-detail-thumb{width:90px;height:90px;font-size:40px}.px-detail-copy h3{font-size:24px!important}.px-detail-copy p{font-size:12px}
}

/* ================================================================
   SEKCJA: premium-v45.css
   ================================================================ */
/* ASHENREALM v0.13.6.45 — item inspection fix, piercing stat, grounded rune character stage */
:root{--v45-gold:#d09a45;--v45-line:#6b4926}

/* Replace the obsolete movement-speed row in the baked stats artwork. */
body.pixel-profile-active .px-stat-label-mask{position:absolute;z-index:9;left:70px;top:1048px;width:286px;height:36px;background:#070b0f;pointer-events:none}
body.pixel-profile-active .px-stat-label-replace{position:absolute;z-index:10;left:78px;top:1050px;width:275px;height:32px;display:flex;align-items:center;color:#e8dece;font:400 14px/1.05 Georgia,"Times New Roman",serif;pointer-events:none}
#pxStatPen{top:1052px!important}

/* Hero presentation: a real visual ground + rune halo. The character no longer floats. */
body.pixel-profile-active .px-hero-stage{isolation:isolate!important;background:radial-gradient(circle at 50% 43%,#60411f24 0 19%,#18222a24 36%,transparent 58%),linear-gradient(180deg,#081016,#05080b 78%,#050607)!important}
body.pixel-profile-active .px-hero-stage::before{content:""!important;position:absolute!important;z-index:2!important;left:50%!important;top:47%!important;width:342px!important;height:342px!important;transform:translate(-50%,-50%)!important;border:0!important;clip-path:none!important;background:url('assets/ui/premium-v45/hero-rune.svg') center/contain no-repeat!important;opacity:.78!important;filter:drop-shadow(0 0 18px #c889363d)!important;box-shadow:none!important;pointer-events:none!important}
body.pixel-profile-active .px-hero-stage::after{content:""!important;position:absolute!important;z-index:1!important;left:50%!important;top:46%!important;width:330px!important;height:330px!important;transform:translate(-50%,-50%)!important;border-radius:50%!important;background:radial-gradient(circle,#c88b3935 0 9%,#a66c261c 35%,transparent 70%)!important;box-shadow:0 0 52px #bb79252c!important;pointer-events:none!important}
body.pixel-profile-active .px-hero-floor{left:50%!important;right:auto!important;bottom:4px!important;width:360px!important;height:104px!important;transform:translateX(-50%)!important;border:0!important;border-radius:0!important;background:url('assets/ui/premium-v45/hero-platform.svg') center bottom/contain no-repeat!important;box-shadow:none!important;z-index:4!important}
body.pixel-profile-active #pxGearHero{z-index:5!important;object-position:center bottom!important;padding:18px 0 52px!important;filter:drop-shadow(0 18px 10px #000e) drop-shadow(0 0 10px #c2832b18)!important}

/* Item detail must be an interactive layer above the bag, never behind it. */
body.pixel-profile-active .px-gear-detail{z-index:90!important;pointer-events:auto!important}
body.pixel-profile-active .px-detail-card,body.pixel-profile-active .px-detail-card *{pointer-events:auto!important}
body.pixel-profile-active .px-bag-slot.filled{cursor:pointer!important;touch-action:manipulation!important}
body.pixel-profile-active .px-bag-slot.filled:active{transform:scale(.985);filter:brightness(1.12)}

@media(max-width:560px){
  body.pixel-profile-active .px-stat-label-replace{font-size:13px!important}
  body.pixel-profile-active .px-hero-stage::before{width:312px!important;height:312px!important}
  body.pixel-profile-active .px-hero-floor{width:330px!important;height:96px!important}
}

/* ================================================================
   SEKCJA: premium-v46.css
   ================================================================ */
/* ASHENREALM v0.13.6.46 — exact equipment portrait + premium shared item inspector + stat label polish */
:root{--v46-gold:#d9a34c;--v46-gold-2:#ffcc67;--v46-ink:#070a0e;--v46-line:#6c4c2b}

/* ------------------------------------------------------------------
   BASIC STATS — labels are real rows, not small annotations.
   ------------------------------------------------------------------ */
body.pixel-profile-active .px-stat-label-mask{position:absolute!important;z-index:9!important;background:#080b0d!important;pointer-events:none!important}
body.pixel-profile-active .px-stat-label-replace{position:absolute!important;z-index:10!important;display:flex!important;align-items:center!important;color:#e9dece!important;text-shadow:0 2px 3px #000!important;font:400 20px/1 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;pointer-events:none!important}
body.pixel-profile-active .px-stat-pen-mask{left:117px!important;top:1048px!important;width:238px!important;height:37px!important}
body.pixel-profile-active .px-stat-pen-label{left:122px!important;top:1049px!important;width:228px!important;height:34px!important}
body.pixel-profile-active .px-stat-crit-mask{left:117px!important;top:1089px!important;width:238px!important;height:37px!important}
body.pixel-profile-active .px-stat-crit-label{left:122px!important;top:1090px!important;width:228px!important;height:34px!important}
#pxStatPen{top:1052px!important}
#pxStatCrit{top:1093px!important}

/* ------------------------------------------------------------------
   EQUIPMENT HERO — use the exact approved Ninja asset supplied by user.
   The rune halo and physical pedestal are baked into this art, so the
   synthetic v45 halo/floor are disabled to avoid double-rendering.
   ------------------------------------------------------------------ */
body.pixel-profile-active .px-hero-stage.px-exact-hero-art{background:#05080b!important}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art::before,
body.pixel-profile-active .px-hero-stage.px-exact-hero-art::after{display:none!important}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art .px-hero-floor{display:none!important}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
  left:247px!important;top:8px!important;width:370px!important;height:476px!important;
  padding:0!important;object-fit:contain!important;object-position:center center!important;
  filter:none!important;z-index:5!important
}

/* ------------------------------------------------------------------
   ITEM INSPECTOR — compact premium modal based on approved reference.
   One component is used for bag items and already-equipped gear.
   ------------------------------------------------------------------ */
body.pixel-profile-active .px-gear-detail{
  z-index:120!important;left:0!important;right:0!important;top:914px!important;height:650px!important;
  display:grid!important;place-items:start center!important;box-sizing:border-box!important;padding-top:30px!important;
  background:linear-gradient(180deg,transparent,#0204051c 18%,#0204052a 82%,transparent)!important;
  backdrop-filter:none!important;pointer-events:none!important
}
body.pixel-profile-active .px-gear-detail[hidden]{display:none!important}
body.pixel-profile-active .px-item-detail-card{
  pointer-events:auto!important;position:relative!important;width:514px!important;max-height:520px!important;overflow:auto!important;
  box-sizing:border-box!important;padding:18px 20px 18px!important;border:1px solid #b77e32!important;
  background:radial-gradient(circle at 17% 17%,#17426624,transparent 25%),radial-gradient(circle at 82% 10%,#70421920,transparent 27%),linear-gradient(145deg,#0c1116,#05080b 72%)!important;
  box-shadow:inset 0 0 0 1px #e7b45620,inset 0 0 38px #0008,0 22px 52px #000e!important;color:#e7dccd!important
}
body.pixel-profile-active .px-item-detail-card::before,
body.pixel-profile-active .px-item-detail-card::after{content:""!important;position:absolute!important;width:30px!important;height:30px!important;pointer-events:none!important}
body.pixel-profile-active .px-item-detail-card::before{left:5px!important;top:5px!important;border-left:2px solid #e0a84d!important;border-top:2px solid #e0a84d!important}
body.pixel-profile-active .px-item-detail-card::after{right:5px!important;bottom:5px!important;border-right:2px solid #e0a84d!important;border-bottom:2px solid #e0a84d!important}
body.pixel-profile-active .px-detail-close{
  position:absolute!important;right:12px!important;top:10px!important;width:45px!important;height:45px!important;min-height:0!important;
  border:1px solid #9c6b32!important;background:linear-gradient(#171a1d,#080a0c)!important;color:#f2cf8a!important;
  font:400 31px/1 Georgia,serif!important;box-shadow:inset 0 0 12px #000b!important;z-index:4!important
}
body.pixel-profile-active .px-detail-top{display:grid!important;grid-template-columns:116px minmax(0,1fr)!important;gap:16px!important;align-items:start!important;padding-right:46px!important}
body.pixel-profile-active .px-detail-thumb{
  width:112px!important;height:142px!important;display:grid!important;place-items:center!important;overflow:hidden!important;box-sizing:border-box!important;
  border:1px solid #9c6d32!important;background:radial-gradient(circle at 50% 35%,#152431,#05080b 72%)!important;
  color:#e8b756!important;font:400 47px/1 Georgia,serif!important;box-shadow:inset 0 0 22px #000d!important
}
body.pixel-profile-active .px-detail-thumb.rarity-rare{border-color:#2786c7!important;box-shadow:inset 0 0 22px #0a3659cc,0 0 10px #2194da32!important}
body.pixel-profile-active .px-detail-thumb.rarity-epic{border-color:#8958c4!important}
body.pixel-profile-active .px-detail-thumb.rarity-legendary{border-color:#d09331!important}
body.pixel-profile-active .px-detail-thumb.rarity-mythic{border-color:#d25c48!important}
body.pixel-profile-active .px-detail-copy{padding-top:4px!important;min-width:0!important}
body.pixel-profile-active .px-detail-copy small{display:block!important;margin-bottom:7px!important;color:#a98255!important;font:700 9px/1 Arial,sans-serif!important;letter-spacing:2.2px!important}
body.pixel-profile-active .px-detail-copy h3{margin:0 0 4px!important;padding:0!important;color:#f4e6d0!important;font:700 27px/1.08 Georgia,"Times New Roman",serif!important;text-shadow:0 2px 3px #000!important}
body.pixel-profile-active .px-detail-copy p{margin:0!important;color:#2ea1e8!important;font:700 14px/1.3 Georgia,"Times New Roman",serif!important}
body.pixel-profile-active .px-detail-body{display:grid!important;gap:3px!important;margin:13px 0 0 128px!important;padding-top:8px!important;border-top:1px solid #5d4226!important}
body.pixel-profile-active .px-detail-body>div{padding:0!important;border:0!important;background:transparent!important}
body.pixel-profile-active .px-item-stat-row{min-height:29px!important;display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;color:#e6dbcb!important}
body.pixel-profile-active .px-item-stat-row i{display:grid!important;place-items:center!important;color:#dca748!important;font:400 18px/1 Georgia,serif!important;font-style:normal!important}
body.pixel-profile-active .px-item-stat-row.bonus i{color:#b65fe3!important}
body.pixel-profile-active .px-item-stat-row span{font:400 16px/1.22 Georgia,"Times New Roman",serif!important;color:#eee2d2!important}
body.pixel-profile-active .px-detail-flavor{margin:12px 0 0 128px!important;color:#c9a873!important;font:italic 15px/1.25 Georgia,"Times New Roman",serif!important}
body.pixel-profile-active .px-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:14px!important}
body.pixel-profile-active .px-detail-actions button:only-child{grid-column:1/-1}
body.pixel-profile-active .px-detail-actions button{
  min-height:58px!important;border:1px solid #8b6231!important;background:linear-gradient(#171a1d,#080a0c)!important;color:#e8dac5!important;
  font:700 20px/1 Georgia,"Times New Roman",serif!important;box-shadow:inset 0 0 15px #000a!important
}
body.pixel-profile-active .px-detail-actions button::before{content:attr(data-icon);margin-right:10px;color:#e5b45c;font-size:20px}
body.pixel-profile-active .px-detail-actions button.primary{border-color:#e1a446!important;background:radial-gradient(circle at 50% 50%,#92531f55,transparent 66%),linear-gradient(#6a3c16,#28170b)!important;color:#ffe09c!important;box-shadow:inset 0 0 0 1px #ffd27232,inset 0 0 23px #e2922b31,0 0 13px #e2952d32!important}
body.pixel-profile-active .px-detail-actions button.danger{border-color:#805728!important;color:#e4d4bd!important}

@media(max-width:560px){
  body.pixel-profile-active .px-stat-label-replace{font-size:19px!important}
  body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{left:255px!important;width:354px!important;height:466px!important}
}

/* ================================================================
   SEKCJA: premium-v47.css
   ================================================================ */
/* ASHENREALM v0.13.6.47 — reference-matched premium item modal + unified bag/equipment item language */
:root{--v47-gold:#d9a34c;--v47-gold-hi:#ffd26f;--v47-gold-dim:#79542b;--v47-panel:#070a0e;--v47-cream:#efe1ca}

/* Bag items now use the same framed dark-fantasy language as equipped slots. */
body.pixel-profile-active .px-bag-slot{
  border:1px solid #4d402f!important;background:radial-gradient(circle at 50% 34%,#26343d30,transparent 58%),linear-gradient(145deg,#11171d,#06090c 78%)!important;
  box-shadow:inset 0 0 18px #000c!important;color:#c39149!important;overflow:hidden!important
}
body.pixel-profile-active .px-bag-slot::after{inset:3px!important;border:1px solid #9f753635!important;box-shadow:inset 0 0 9px #0007!important}
body.pixel-profile-active .px-bag-slot.filled{border-color:#a67635!important;box-shadow:inset 0 0 0 1px #e0a84b1f,inset 0 0 20px #b8752026,0 0 8px #c9862628!important}
body.pixel-profile-active .px-bag-slot.filled>i{font-size:32px!important;color:#f0bb5e!important;text-shadow:0 0 12px #d88a2d3d!important;transform:translateY(-2px)}
body.pixel-profile-active .px-bag-slot>small{left:5px!important;right:5px!important;top:5px!important;bottom:auto!important;max-width:none!important;text-align:center!important;color:#d8c19f!important;font:400 9px/1 Georgia,"Times New Roman",serif!important;letter-spacing:0!important;text-transform:none!important}
body.pixel-profile-active .px-bag-slot>b{right:7px!important;bottom:6px!important;color:#f2c96f!important;font:700 12px/1 Georgia,"Times New Roman",serif!important}
body.pixel-profile-active .px-bag-slot.empty{border-color:#3d352c!important;background:linear-gradient(145deg,#0d1115,#06080b)!important}
body.pixel-profile-active .px-bag-slot.empty::after{border-color:#73533220!important}
body.pixel-profile-active .px-bag-slot.sel{border-color:#efb34f!important;box-shadow:inset 0 0 0 1px #ffd06a4d,inset 0 0 24px #c77a2438,0 0 14px #d68b2d55!important}
body.pixel-profile-active .px-bag-slot.rarity-rare{border-color:#3485bd!important}.pixel-profile-active .px-bag-slot.rarity-epic{border-color:#8c52bd!important}.pixel-profile-active .px-bag-slot.rarity-legendary{border-color:#d08a2c!important}.pixel-profile-active .px-bag-slot.rarity-mythic{border-color:#cf5945!important}

/* Shared inspector: same component for equipped gear and bag gear. */
body.pixel-profile-active .px-gear-detail{top:858px!important;height:710px!important;padding-top:26px!important;background:linear-gradient(180deg,transparent,#01020312 10%,#0102032e 90%,transparent)!important}
body.pixel-profile-active .px-item-detail-card{
  width:548px!important;max-height:600px!important;padding:18px 18px 18px!important;overflow:auto!important;
  border:1px solid #bd8538!important;background:radial-gradient(circle at 14% 13%,#23465f2a,transparent 22%),radial-gradient(circle at 83% 8%,#7f4d2028,transparent 26%),linear-gradient(150deg,#0d1217,#05080b 72%)!important;
  box-shadow:inset 0 0 0 1px #f0bd6330,inset 0 0 42px #0009,0 22px 54px #000e!important
}
body.pixel-profile-active .px-item-detail-card::before{left:5px!important;top:5px!important;width:38px!important;height:38px!important;border-left:2px solid #f0b957!important;border-top:2px solid #f0b957!important;filter:drop-shadow(0 0 4px #d68d2d55)}
body.pixel-profile-active .px-item-detail-card::after{right:5px!important;bottom:5px!important;width:38px!important;height:38px!important;border-right:2px solid #f0b957!important;border-bottom:2px solid #f0b957!important;filter:drop-shadow(0 0 4px #d68d2d55)}
body.pixel-profile-active .px-detail-close{right:11px!important;top:10px!important;width:43px!important;height:43px!important;border-color:#a46f2d!important;background:linear-gradient(#17191b,#080a0d)!important;color:#f2bd5d!important;font-size:30px!important}
body.pixel-profile-active .px-detail-top{grid-template-columns:126px minmax(0,1fr)!important;gap:15px!important;padding-right:42px!important}
body.pixel-profile-active .px-detail-thumb{width:122px!important;height:154px!important;border:1px solid #b57d35!important;background:radial-gradient(circle at 50% 35%,#203b4d70,#071017 70%)!important;box-shadow:inset 0 0 0 1px #ddae5b25,inset 0 0 24px #000c,0 0 10px #ac74232b!important;font-size:52px!important}
body.pixel-profile-active .px-detail-copy{padding-top:1px!important}
body.pixel-profile-active .px-detail-copy small{margin-bottom:5px!important;color:#b08a5b!important;font:700 8px/1 Arial,sans-serif!important;letter-spacing:2.1px!important}
body.pixel-profile-active .px-detail-copy h3{margin:0 0 3px!important;font-size:25px!important;line-height:1.04!important;color:#f4e6d1!important}
body.pixel-profile-active .px-detail-copy p{font-size:13px!important;color:#2f9fe1!important}
body.pixel-profile-active .px-detail-facts{display:grid!important;gap:3px!important;margin-top:8px!important;color:#cfc2b1!important}
body.pixel-profile-active .px-detail-facts[hidden]{display:none!important}
body.pixel-profile-active .px-detail-facts span{font:400 12px/1.18 Georgia,"Times New Roman",serif!important;color:#d7cbbc!important}
body.pixel-profile-active .px-detail-body{margin:12px 0 0!important;padding-top:8px!important;border-top:1px solid #5d4327!important;gap:2px!important}
body.pixel-profile-active .px-item-stat-row{min-height:27px!important;grid-template-columns:25px minmax(0,1fr)!important;gap:7px!important}
body.pixel-profile-active .px-item-stat-row i{font-size:17px!important}.pixel-profile-active .px-item-stat-row span{font-size:15px!important}
body.pixel-profile-active .px-detail-divider{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:8px 0 6px!important;height:22px!important;color:#b89362!important}
body.pixel-profile-active .px-detail-divider::before,body.pixel-profile-active .px-detail-divider::after{content:""!important;flex:1!important;height:1px!important;background:linear-gradient(90deg,transparent,#8a5e2d)!important}
body.pixel-profile-active .px-detail-divider::after{transform:scaleX(-1)}
body.pixel-profile-active .px-detail-divider span{padding:0 12px!important;font:400 12px/1 Georgia,"Times New Roman",serif!important;color:#b89362!important;white-space:nowrap!important}
body.pixel-profile-active .px-detail-flavor{margin:9px 0 0!important;padding-top:2px!important;color:#c9a873!important;font-size:14px!important}
body.pixel-profile-active .px-detail-actions{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;gap:9px!important;margin-top:13px!important}
body.pixel-profile-active .px-detail-actions button{min-height:55px!important;font-size:18px!important}

@media(max-width:560px){
  body.pixel-profile-active .px-item-detail-card{width:530px!important;max-height:585px!important}
  body.pixel-profile-active .px-detail-top{grid-template-columns:118px minmax(0,1fr)!important}
  body.pixel-profile-active .px-detail-thumb{width:114px!important;height:146px!important}
  body.pixel-profile-active .px-detail-copy h3{font-size:24px!important}
  body.pixel-profile-active .px-bag-slot.filled>i{font-size:30px!important}
}

/* ================================================================
   SEKCJA: premium-v48.css
   ================================================================ */
/* ASHENREALM v0.13.6.49 — centered/scaled Ninja equipment stage + premium vector stat/bonus symbols */
:root{--v48-gold:#e1aa4c;--v48-gold-hi:#ffd275;--v48-violet:#bc62e6}

/* The approved Ninja art is a full 3:4 scene (rune halo + character + pedestal).
   v46 positioned a grid item with pixel offsets, which shifted the whole scene right.
   Keep the same approved asset, but anchor it to the actual stage centre. */
body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
  position:absolute!important;
  left:50%!important;right:auto!important;top:-10px!important;bottom:auto!important;
  width:360px!important;height:472px!important;
  transform:translateX(-50%)!important;transform-origin:50% 50%!important;
  justify-self:auto!important;align-self:auto!important;
  padding:0!important;margin:0!important;
  object-fit:contain!important;object-position:center center!important;
  z-index:5!important;pointer-events:none!important
}

/* Item inspector symbols are real vector marks, not Unicode/fallback glyphs. */
body.pixel-profile-active .px-item-stat-row{grid-template-columns:28px minmax(0,1fr)!important;column-gap:8px!important}
body.pixel-profile-active .px-item-stat-row .px-stat-symbol{
  width:26px!important;height:26px!important;display:grid!important;place-items:center!important;
  font-size:0!important;line-height:0!important;color:var(--v48-gold)!important;
  filter:drop-shadow(0 0 3px #c9822c3f)!important
}
body.pixel-profile-active .px-item-stat-row .px-stat-symbol.violet{
  color:var(--v48-violet)!important;filter:drop-shadow(0 0 4px #8f3dba66)!important
}
body.pixel-profile-active .px-item-stat-row .px-stat-symbol svg{
  display:block!important;width:22px!important;height:22px!important;overflow:visible!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;
  stroke-linecap:round!important;stroke-linejoin:round!important
}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="crit"] .px-stat-symbol svg{width:23px!important;height:23px!important;stroke-width:1.45!important}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="speed"] .px-stat-symbol svg{width:24px!important;height:24px!important;stroke-width:1.9!important}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="dark"] .px-stat-symbol svg{stroke-width:1.8!important}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="claw"] .px-stat-symbol svg{stroke-width:1.85!important}
body.pixel-profile-active .px-item-stat-row.empty-properties .px-stat-symbol{opacity:.72!important}
body.pixel-profile-active .px-item-stat-row span{padding-left:1px!important}

@media(max-width:560px){
  body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
    left:50%!important;top:-8px!important;width:354px!important;height:466px!important;transform:translateX(-50%)!important
  }
  body.pixel-profile-active .px-item-stat-row .px-stat-symbol{width:25px!important;height:25px!important}
  body.pixel-profile-active .px-item-stat-row .px-stat-symbol svg{width:21px!important;height:21px!important}
}

/* ================================================================
   SEKCJA: premium-v49.css
   ================================================================ */
/* ASHENREALM v0.13.6.49 — refined gold stat icons + calmer centered Ninja equipment scene */
:root{--v49-gold:#e3ae55;--v49-gold-hi:#ffd789;--v49-ink:#090c10;--v49-edge:#7c5928}

/* The full approved Ninja art stays unchanged, but it is shown a bit smaller and cleaner
   so the scene reads as a centered character stage instead of feeling pushed into the slots. */
body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
  position:absolute!important;
  left:50%!important;right:auto!important;top:16px!important;bottom:auto!important;
  width:326px!important;height:428px!important;
  transform:translateX(-50%)!important;transform-origin:50% 50%!important;
  object-fit:contain!important;object-position:center center!important;
  z-index:5!important;pointer-events:none!important;
  filter:drop-shadow(0 16px 12px #000d) drop-shadow(0 0 10px #ca8e3024)!important
}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art .future.reserve{opacity:.34!important}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art .px-eq-grid-bg{opacity:.30!important}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art::before{left:262px!important;right:262px!important;top:20px!important;bottom:30px!important;opacity:.72!important}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art .px-hero-floor{left:274px!important;bottom:24px!important;width:264px!important;height:48px!important;opacity:.9!important}

/* All property symbols are premium gold marks — no purple trinket look. */
body.pixel-profile-active .px-item-stat-row{
  min-height:31px!important;
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr)!important;
  column-gap:10px!important;
  align-items:center!important
}
body.pixel-profile-active .px-item-stat-row .px-stat-symbol,
body.pixel-profile-active .px-item-stat-row .px-stat-symbol.violet,
body.pixel-profile-active .px-item-stat-row.bonus .px-stat-symbol{
  width:28px!important;height:28px!important;display:grid!important;place-items:center!important;
  font-size:0!important;line-height:0!important;
  color:var(--v49-gold)!important;
  border:1px solid #6d4e23!important;border-radius:999px!important;
  background:radial-gradient(circle at 50% 38%,#1a2025,#0a0d10 72%)!important;
  box-shadow:inset 0 0 0 1px #e5b96914,inset 0 0 10px #000a,0 0 8px #cc8d301e!important;
  filter:none!important
}
body.pixel-profile-active .px-item-stat-row .px-stat-symbol svg{
  display:block!important;width:20px!important;height:20px!important;overflow:visible!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;
  stroke-linecap:round!important;stroke-linejoin:round!important
}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="crit"] .px-stat-symbol svg{width:21px!important;height:21px!important;stroke-width:1.55!important}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="speed"] .px-stat-symbol svg{width:21px!important;height:21px!important;stroke-width:1.95!important}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="dark"] .px-stat-symbol svg{width:20px!important;height:20px!important;stroke-width:1.8!important}
body.pixel-profile-active .px-item-stat-row[data-icon-kind="claw"] .px-stat-symbol svg{width:20px!important;height:20px!important;stroke-width:1.85!important}
body.pixel-profile-active .px-item-stat-row span{padding-left:1px!important;color:#eadfce!important;font:400 15px/1.24 Georgia,"Times New Roman",serif!important}
body.pixel-profile-active .px-item-stat-row.empty-properties .px-stat-symbol{opacity:.82!important}

@media(max-width:560px){
  body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
    top:14px!important;width:318px!important;height:418px!important
  }
  body.pixel-profile-active .px-item-stat-row{grid-template-columns:30px minmax(0,1fr)!important;column-gap:9px!important}
  body.pixel-profile-active .px-item-stat-row .px-stat-symbol{width:27px!important;height:27px!important}
  body.pixel-profile-active .px-item-stat-row .px-stat-symbol svg{width:19px!important;height:19px!important}
}

/* ================================================================
   SEKCJA: premium-v50.css
   ================================================================ */
/* ASHENREALM v0.13.6.50 — hero-stage alignment fix + clean bonus labels */

/* The approved Ninja asset stays the same, but its visual center is shifted left
   because the content inside the PNG is weighted to the right. This corrects the
   mobile composition without creating a new image. */
body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
  left:calc(50% - 30px)!important;
  top:18px!important;
  width:314px!important;
  height:418px!important;
  transform:translateX(-50%)!important;
  object-fit:contain!important;
  object-position:center center!important;
}

@media(max-width:560px){
  body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
    left:calc(50% - 34px)!important;
    top:16px!important;
    width:304px!important;
    height:404px!important;
  }
}

/* ================================================================
   SEKCJA: premium-v51.css
   ================================================================ */
/* ASHENREALM v0.13.6.51 — structural avatar centering in equipment stage */

/* Final correction: do not compensate the Ninja scene with hard-coded pixel nudges.
   The approved art sits in the exact middle column of the equipment grid, and the
   image is centered inside that stage mathematically so the same layout logic holds
   across device widths. */
body.pixel-profile-active .px-hero-stage.px-exact-hero-art{
  --eq-gap:8px;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(286px,2.35fr) minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  gap:var(--eq-gap)!important;
  padding:18px 18px 20px!important;
  box-sizing:border-box!important;
  align-items:stretch!important;
}
body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  grid-column:3!important;
  grid-row:1 / 5!important;
  justify-self:center!important;
  align-self:center!important;
  width:100%!important;
  max-width:332px!important;
  height:100%!important;
  max-height:100%!important;
  padding:10px 0 12px!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center center!important;
  filter:none!important;
  z-index:5!important;
}
@media(max-width:560px){
  body.pixel-profile-active .px-hero-stage.px-exact-hero-art{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(245px,2.15fr) minmax(0,1fr) minmax(0,1fr)!important;
    gap:6px!important;
    padding:14px 12px 16px!important;
  }
  body.pixel-profile-active .px-hero-stage.px-exact-hero-art #pxGearHero{
    max-width:308px!important;
    padding:12px 0 14px!important;
  }
}

/* ================================================================
   SEKCJA: premium-v52.css
   ================================================================ */
/* ASHENREALM v0.13.6.52 — basic-stat typography unification */

/* These two labels replace baked text in stats.png. They must visually match the
   other baked labels, so both now share one explicit typography rule. */
body.pixel-profile-active .px-stat-label-replace,
body.pixel-profile-active .px-stat-pen-label,
body.pixel-profile-active .px-stat-crit-label{
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:25px!important;
  font-weight:400!important;
  font-style:normal!important;
  line-height:1!important;
  letter-spacing:0!important;
  color:#e8dece!important;
  text-shadow:0 2px 3px #000!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:geometricPrecision!important;
}

/* Both replacement rows use the same geometry relative to their live value row. */
body.pixel-profile-active .px-stat-pen-label,
body.pixel-profile-active .px-stat-crit-label{
  left:122px!important;
  width:228px!important;
  height:34px!important;
  display:flex!important;
  align-items:center!important;
}

/* Do not shrink these two labels separately on mobile; the whole 864px stage is
   already scaled responsively by pixel-profile.js. */
@media(max-width:560px){
  body.pixel-profile-active .px-stat-label-replace,
  body.pixel-profile-active .px-stat-pen-label,
  body.pixel-profile-active .px-stat-crit-label{
    font-size:25px!important;
  }
}

/* ================================================================
   SEKCJA: premium-v53.css
   ================================================================ */
/* ASHENREALM v0.13.6.53 — new premium basic-stats art with live values centered in baked empty fields */

/* The new asset contains every static label/icon/decoration. Only the numeric values
   remain live HTML so equipment, level and bonuses can update them at runtime. */
body.pixel-profile-active .pixel-stats{
  top:770px!important;
  width:864px!important;
  height:1037px!important;
  object-fit:fill!important;
}
body.pixel-profile-active .px-stats-view{height:1807px!important}

/* No paint-over rectangles or replacement labels are needed with the new artwork. */
body.pixel-profile-active .px-stat-bg,
body.pixel-profile-active .px-stat-label-mask,
body.pixel-profile-active .px-stat-label-replace{display:none!important}

/* Source-art value boxes are x=512..669 in a 1145px-wide image.
   At the 864px reference stage this maps to x=386.35..504.82.
   Every value is centered in the same 119×54 reference box. */
body.pixel-profile-active .px-stat-value{
  left:386px!important;
  width:119px!important;
  height:54px!important;
  padding:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:25px!important;
  font-weight:400!important;
  font-style:normal!important;
  line-height:1!important;
  letter-spacing:0!important;
  color:#f1e6d6!important;
  text-shadow:0 2px 3px #000!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:geometricPrecision!important;
}

/* Exact row geometry derived from the empty boxes in stats-v53.png. */
#pxStatHp{top:910px!important}
#pxStatMp{top:989px!important}
#pxStatAtk{top:1067px!important}
#pxStatDef{top:1146px!important}
#pxStatAspd{top:1224px!important}
#pxStatPen{top:1303px!important}
#pxStatCrit{top:1381px!important}
#pxStatBlock{top:1459px!important}
#pxStatDodge{top:1537px!important}

/* Hit area follows the baked premium button in the new asset. */
#pxDetails{
  left:49px!important;
  top:1630px!important;
  width:765px!important;
  height:90px!important;
}

/* ================================================================
   SEKCJA: premium-v54.css
   ================================================================ */
/* ASHENREALM v0.13.6.54 — switch the profile stats stage to the approved wide artwork. */
body.pixel-profile-active .pixel-stats{
  top:770px!important;
  width:864px!important;
  height:720px!important;
  object-fit:fill!important;
}
body.pixel-profile-active .px-stats-view{height:1498px!important}

/* Old value-box geometry is no longer used on the wide panel. */
body.pixel-profile-active .px-stat-bg,
body.pixel-profile-active .px-stat-label-mask,
body.pixel-profile-active .px-stat-label-replace{display:none!important}

body.pixel-profile-active .px-main-stats-overlay{
  position:absolute!important;
  z-index:11!important;
  left:42px!important;
  top:874px!important;
  width:436px!important;
  height:495px!important;
  display:grid!important;
  grid-template-rows:repeat(9,1fr)!important;
  pointer-events:none!important;
}
body.pixel-profile-active .px-main-stat-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:0 18px 0 86px!important;
  box-sizing:border-box!important;
}
body.pixel-profile-active .px-main-stat-label{
  min-width:0!important;
  color:#f0e3cf!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:24px!important;
  font-weight:400!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-shadow:0 2px 3px #000!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.pixel-profile-active .px-stat-value{
  min-width:110px!important;
  text-align:right!important;
  color:#f2e7d7!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:24px!important;
  font-weight:400!important;
  font-style:normal!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-shadow:0 2px 3px #000!important;
  white-space:nowrap!important;
  justify-self:end!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:geometricPrecision!important;
}

/* Use the baked button art; only overlay the readable label. */
#pxDetails{
  left:49px!important;
  top:1372px!important;
  width:747px!important;
  height:80px!important;
}
#pxDetails::after{
  content:"Szczegółowe statystyki"!important;
  position:absolute!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 96px!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  color:#f7d998!important;
  font:700 24px/1 Georgia,serif!important;
  text-shadow:0 2px 4px #000!important;
  pointer-events:none!important;
}

/* ================================================================
   SEKCJA: premium-v55.css
   ================================================================ */
/* ASHENREALM v0.13.6.55 — detailed stats modal scroll/stacking repair. */
body.v39-stats-sheet-open{overflow:hidden!important;overscroll-behavior:none!important}

/* Keep the modal above the global mobile dock so the final PvP rows can be reached. */
.v35-stats-sheet{
  z-index:4300!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  padding:10px 8px max(10px,env(safe-area-inset-bottom))!important;
  overflow:hidden!important;
}
.v35-stats-sheet[hidden]{display:none!important}

/* Header and scroller are separate layout regions. The card itself never scrolls. */
.v35-stats-card{
  width:min(100%,720px)!important;
  height:min(91dvh,900px)!important;
  max-height:calc(100dvh - 20px - env(safe-area-inset-bottom))!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  border:1px solid #a66f2d!important;
  background:#080b0e!important;
  box-shadow:0 18px 70px #000,inset 0 0 0 1px #d9a75414!important;
}

/* Global styles.css makes every <header> sticky. Explicitly neutralize that here. */
.v35-stats-head{
  position:relative!important;
  top:auto!important;
  z-index:3!important;
  flex:0 0 auto!important;
  min-height:88px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 16px!important;
  margin:0!important;
  border-bottom:1px solid #704c26!important;
  background:linear-gradient(90deg,#2c1c0e 0%,#111518 66%,#19120c 100%)!important;
  box-shadow:0 8px 18px #0008!important;
}
.v35-stats-head h2{
  margin:0!important;
  color:#f2dfc0!important;
  font:700 28px/1.05 Georgia,serif!important;
}
.v35-stats-head button{
  flex:0 0 52px!important;
  width:52px!important;
  height:52px!important;
  min-height:52px!important;
  padding:0!important;
}

.v35-stats-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable!important;
  padding:12px 12px 28px!important;
  box-sizing:border-box!important;
  background:#080b0e!important;
}
.v35-stats-scroll>h3{
  margin:14px 0 8px!important;
  color:#d8c7ab!important;
  font:700 19px/1.15 Georgia,serif!important;
}
.v35-stats-scroll>h3:first-child{margin-top:2px!important}
.v35-stat-grid{margin-top:0!important}

@media(max-width:650px){
  .v35-stats-sheet{padding:6px 5px max(6px,env(safe-area-inset-bottom))!important}
  .v35-stats-card{
    width:100%!important;
    height:calc(100dvh - 12px - env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - 12px - env(safe-area-inset-bottom))!important;
  }
  .v35-stats-head{min-height:82px!important;padding:12px 14px!important}
  .v35-stats-head h2{font-size:25px!important;max-width:calc(100% - 66px)!important}
  .v35-stats-head button{width:50px!important;height:50px!important;min-height:50px!important}
  .v35-stats-scroll{padding:10px 10px 34px!important}
  .v35-stat-grid{grid-template-columns:1fr!important;gap:7px!important}
  .v35-stat-grid span{min-height:52px!important;box-sizing:border-box!important;align-items:center!important;font-size:15px!important;padding:10px 12px!important}
  .v35-stat-grid em{min-width:0!important;overflow-wrap:anywhere!important}
  .v35-stat-grid b{flex:0 0 auto!important;font-size:15px!important}
}

/* ================================================================
   SEKCJA: premium-v56.css
   ================================================================ */
/* ASHENREALM v0.13.6.56 — character lobby isolation + reliable empty-slot creation */

/* Lobby and creator are standalone flows. The game navigation dock must never sit
   above them, regardless of the previously active profile screen. */
body.selection-open > .mobile-dock,
body.creator-open > .mobile-dock{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* The legacy dock uses z-index:2500, so keep the lobby/creator above every game
   surface as a second line of defence even if a stale class is present. */
#characterSelectOverlay,
#createOverlay,
#sessionLogoutOverlay{
  z-index:3100!important;
}
#deleteCharacterOverlay{z-index:3200!important}

/* Free slots are actions themselves, not cards with a hard-to-reach action hidden
   near the mobile safe area. */
#characterSelectOverlay .empty-slot[data-create-slot]{
  cursor:pointer!important;
  touch-action:manipulation;
}
#characterSelectOverlay .empty-slot[data-create-slot]:focus-visible{
  outline:2px solid #efc171!important;
  outline-offset:3px!important;
}
#characterSelectOverlay .empty-slot[data-create-slot] .empty-slot-mark{
  pointer-events:none!important;
}

@media(max-width:800px){
  #characterSelectOverlay{
    padding-bottom:max(10px,env(safe-area-inset-bottom))!important;
  }
  #characterSelectOverlay .empty-slot{
    min-height:205px!important;
    padding:10px 8px 52px!important;
  }
  #characterSelectOverlay .empty-slot>button{
    display:block!important;
    left:8px!important;
    right:8px!important;
    bottom:8px!important;
    width:calc(100% - 16px)!important;
    z-index:5!important;
  }
}

/* ================================================================
   SEKCJA: premium-v57.css
   ================================================================ */

/* v0.13.6.57 — Biolog, uporządkowana Księga Bestii, diagnostyka dropu */
.research-row.active{outline:1px solid rgba(218,170,82,.55);box-shadow:0 0 0 1px rgba(218,170,82,.12) inset}.research-row.done{opacity:.72}.research-row p{margin:.25rem 0 0;font-size:.72rem;opacity:.72}.biolog-choice{display:flex;flex-direction:column;gap:.3rem}.biolog-choice button{font-size:.68rem}.beast-drop-group{display:grid;gap:.28rem;margin:.5rem 0}.beast-drop-group>small,.beast-drop-group summary{font-weight:800;letter-spacing:.06em;opacity:.78}.beast-drop-group.global{border-top:1px solid rgba(255,255,255,.08);padding-top:.45rem}.beast-drop-group.global summary{cursor:pointer}.drop-diagnostics-panel{margin-top:1rem;padding:1rem;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(0,0,0,.18)}.drop-diag-head,.drop-diag-sources span{display:flex;justify-content:space-between;gap:.6rem}.drop-diag-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin:.65rem 0}.drop-diag-grid span{padding:.45rem;background:rgba(255,255,255,.05);border-radius:8px;text-align:center}.drop-diag-grid b{display:block}.drop-diag-sources{display:grid;gap:.25rem;margin:.5rem 0 .7rem;font-size:.75rem}

/* ================================================================
   SEKCJA: premium-v58.css
   ================================================================ */
/* ASHENREALM v0.13.6.58 — v57 consolidated mobile hotfix */
.service-panel[hidden],.coming-service[hidden]{display:none!important}
.session-loot-thumb{appearance:none;-webkit-appearance:none;cursor:pointer}
.session-loot-modal{display:grid;grid-template-columns:58px 1fr;gap:12px;align-items:center}.session-loot-modal>i{display:grid;place-items:center;width:56px;height:56px;border:1px solid #8a6735;background:#0a0d10;color:#e5b969;font-style:normal;font-size:28px}.session-loot-modal>div{display:grid;gap:4px}.session-loot-modal p,.session-loot-modal small{margin:0;color:#aaa39a}.session-loot-modal strong{color:#f0cb83}.biolog-complete-modal{display:grid;gap:9px;text-align:center}.biolog-complete-modal>b{font:700 24px Georgia,serif;color:#efd8ad}.biolog-complete-modal p{margin:0;color:#a9a39a}.biolog-complete-modal small{margin-top:7px;letter-spacing:.14em;color:#a77a42}.biolog-complete-modal strong{padding:11px;border:1px solid #72512c;background:#0b0e11;color:#f2cb7b}
@media(max-width:650px){
 body[data-active-screen="combat"] .rush-combat-layout{grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr)!important;grid-template-areas:"player enemy" "core core"!important}
 body[data-active-screen="combat"] .rush-combat-layout>*{min-width:0!important;width:auto!important}
 body[data-active-screen="combat"] .player-fighter,body[data-active-screen="combat"] .enemy-fighter{width:auto!important;max-width:none!important;min-width:0!important}
 body[data-active-screen="combat"] .combat-summary span{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;align-items:center!important;min-width:0!important;padding:4px 3px!important}
 body[data-active-screen="combat"] .combat-summary span>b{margin-left:0!important;white-space:nowrap!important;font-size:7px!important}
 body[data-active-screen="combat"] .player-fighter .combat-summary span{font-size:6.5px!important}
 body[data-active-screen="combat"] .auto-box{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
 body[data-active-screen="combat"] .auto-box label{min-width:0!important;justify-content:space-between!important}
 body[data-active-screen="combat"] .auto-box select{min-width:64px!important;max-width:78px!important}
 body[data-active-screen="combat"] .auto-box label:nth-child(3){grid-column:1/-1;display:none!important}
}

/* ================================================================
   SEKCJA: combat-v62.css
   ================================================================ */
/* ASHENREALM v0.13.6.62 — targeted combat/skills layout fixes. */
body[data-active-screen="combat"] .combat-core .fight-actions{
  display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important;
  gap:8px!important;
}
body[data-active-screen="combat"] .combat-core .fight-actions #attack,
body[data-active-screen="combat"] .combat-core .fight-actions #auto{width:100%;min-width:0}
body[data-active-screen="arena"] .arena-fight-actions-pvm{grid-template-columns:minmax(0,1fr)!important}

/* Buffs have their own normal-flow space BELOW the primary stats. */
body[data-active-screen="combat"] .player-fighter .combat-summary{flex:0 0 auto!important}
body[data-active-screen="combat"] .battle-effects-panel{flex:0 0 auto;min-width:0;margin:8px 9px 10px;padding:9px 7px 10px;border:1px solid #473927;border-radius:7px;background:linear-gradient(180deg,#141719,#090c0f)}
body[data-active-screen="combat"] .battle-effects-title{margin:0 0 7px;color:#c7a16a;font:700 10px/1.25 Georgia,serif;letter-spacing:.08em}
body[data-active-screen="combat"] #playerStatusIcons.combat-status-strip{position:static!important;inset:auto!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:flex-start!important;gap:8px!important;min-height:34px!important;margin:0!important;padding:2px 2px 6px!important;overflow:visible!important;transform:none!important}
body[data-active-screen="combat"] #playerStatusIcons .combat-status-chip{position:relative!important;flex:0 0 31px;width:31px!important;height:31px!important;box-sizing:border-box}
body[data-active-screen="combat"] #playerStatusIcons .combat-status-chip.inactive{opacity:.4;filter:grayscale(1)}
body[data-active-screen="combat"] #playerStatusIcons .combat-status-chip.active{opacity:1;filter:none;border-color:#d9af54!important;box-shadow:0 0 9px #c8a04e44,inset 0 0 8px #c8a04e2c}
body[data-active-screen="combat"] #playerStatusIcons .combat-status-chip small{bottom:-6px!important;max-width:36px!important;overflow:visible!important;font-size:7px!important}

/* A metin plus its summoned mobs may never force the emblem outside the panel. */
body[data-active-screen="combat"] .enemy-fighter{min-width:0!important}
body[data-active-screen="combat"] #enemySoloEmblem.enemy-emblem{box-sizing:border-box!important;flex:0 0 auto!important;align-self:center!important;width:min(120px,70%)!important;max-width:calc(100% - 18px)!important;height:auto!important;aspect-ratio:1!important;margin:10px auto!important;line-height:1!important;font-size:clamp(32px,9vw,58px)!important;border-radius:50%!important;overflow:hidden!important}
body[data-active-screen="combat"] .enemy-fighter:has(.stone-add) #enemyFormation{flex:0 0 auto!important;min-width:0!important;max-height:none!important;min-height:0!important;margin:6px 5px!important;gap:5px!important;grid-template-columns:1fr!important;display:grid!important}
body[data-active-screen="combat"] .enemy-fighter:has(.stone-add) #enemyFormation .stone-add{box-sizing:border-box!important;min-width:0!important;min-height:42px!important;height:auto!important;padding:5px 7px!important;gap:1px!important;overflow:hidden!important}
body[data-active-screen="combat"] .enemy-fighter:has(.stone-add) #enemyFormation .stone-add b{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;border:0!important;font-size:10px!important;line-height:1.25!important;text-align:center!important}
body[data-active-screen="combat"] .enemy-fighter:has(.stone-add) #enemyFormation .stone-add small{display:block!important;font-size:8px!important;line-height:1.2!important;text-align:center!important}

/* Current and next skill values always follow the live combat formula & player stats. */
.skill-value-preview{min-width:0;display:grid;gap:6px;margin:3px 0 10px;padding:10px;border:1px solid #806039;border-radius:7px;background:linear-gradient(180deg,#17191b,#090c0f)}
.skill-value-head{display:grid;gap:3px}.skill-value-head>b{font:700 15px Georgia,serif;color:#e9cb94}.skill-value-head>small{color:#b3a38b;font-size:10px;line-height:1.4}
.skill-value-row{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,.7fr));gap:5px;align-items:center;min-height:29px;padding:4px 0;border-top:1px solid #ffffff0e;font-size:11px;font-variant-numeric:tabular-nums}
.skill-value-row>span{min-width:0;color:#c5b6a1;overflow-wrap:anywhere}.skill-value-row>b,.skill-value-row>strong{font-size:11px;text-align:right;white-space:nowrap;color:#d1c5aa}.skill-value-row>.gain{color:#89d6a2}.skill-value-row>.cost{color:#dbad7e}.skill-value-row>.neutral{color:#9f9b93}.skill-value-row.headings{font-size:9px;color:#ae9066}.skill-value-row.headings>b,.skill-value-row.headings>strong{font-size:9px;color:#beaa8a}
.skill-value-preview>p{margin:4px 0 0;font-size:9px;line-height:1.5;color:#a49a8e}
@media(max-width:650px){
  /* Older responsive rules gave fighters a fixed 342px and cut off statuses and the Metin emblem. */
  body[data-active-screen="combat"] .rush-combat-layout{align-items:stretch!important}
  body[data-active-screen="combat"] .rush-combat-layout>.fighter-panel{height:auto!important;min-height:420px!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;min-width:0!important}
  body[data-active-screen="combat"] .fighter-panel .battle-portrait{flex:0 0 114px!important;height:114px!important;min-height:0!important}
  body[data-active-screen="combat"] .player-fighter .battle-bars{flex:0 0 auto!important}
  body[data-active-screen="combat"] .player-fighter .combat-summary{padding:5px!important;gap:4px!important}
  body[data-active-screen="combat"] .player-fighter .combat-summary span{padding:5px 3px!important;min-height:26px!important;min-width:0!important;font-size:9px!important;overflow-wrap:anywhere}
  body[data-active-screen="combat"] .player-fighter .combat-summary span b{white-space:nowrap;font-size:9px!important}
  body[data-active-screen="combat"] .battle-effects-panel{margin:8px 3px!important;padding:7px 4px 9px!important}
  body[data-active-screen="combat"] .battle-effects-title{font-size:9px!important}
  body[data-active-screen="combat"] #enemySoloEmblem.enemy-emblem{width:min(76px,62%)!important;max-width:calc(100% - 12px)!important;font-size:38px!important;margin:7px auto!important}
  body[data-active-screen="combat"] .enemy-fighter:has(.stone-add) #enemyFormation .stone-add{min-height:39px!important;padding:4px 5px!important}
  body[data-active-screen="combat"] .enemy-fighter:has(.stone-add) #enemyFormation .stone-add b{font-size:9px!important}
  .skill-value-preview{padding:8px 6px}.skill-value-row{grid-template-columns:minmax(0,1.25fr) repeat(3,minmax(0,.66fr));gap:3px;font-size:9px}.skill-value-row>b,.skill-value-row>strong{font-size:10px}
}

/* v65: lightweight DEV battle diagnostics; no overlay on portraits or stats. */
.fight-diagnostics-panel,.fight-diag-dev,.fight-diag-report{margin:12px 0;padding:12px;border:1px solid #785b38;border-radius:8px;background:#121317;color:#e1d7c8;max-width:100%;box-sizing:border-box}
.fight-diagnostics-panel summary,.fight-diag-report summary{cursor:pointer;font-weight:700;color:#dcbc80;padding:5px 0}
.fight-diagnostics-body{padding-top:10px;font-size:13px;line-height:1.5}
.fight-diag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.fight-diag-grid span{padding:8px;border:1px solid #493b2c;border-radius:4px;display:flex;flex-wrap:wrap;gap:5px;justify-content:space-between}
.fight-diag-grid b{font-variant-numeric:tabular-nums;color:#e5be76}
.fight-diag-skill-list{margin-top:12px;display:grid;gap:7px}
.fight-diag-skill{padding:9px;border:1px solid #463e32;border-radius:5px;display:grid;gap:3px}
.fight-diag-skill b{color:#e7c78c}.fight-diag-skill span,.fight-diag-dev small,.diag-muted{font-size:12px;color:#beb8ad}
.fight-diag-dev{display:grid;gap:8px}.fight-diag-dev select{background:#1b1b1e;color:#f5e9d8;border:1px solid #80623a;min-height:44px;padding:7px;font-size:15px;width:100%}
.fight-diag-report{margin:14px 0}.fight-diag-report .fight-diag-grid{margin-top:10px}

/* v66: isolated developer training range, mobile-first */
.dev-poligon-panel,.poligon-combat-banner{padding:14px;margin:12px 0;border:1px solid #93724c;border-radius:12px;background:#17191b;color:#e7d1aa}.dev-poligon-panel h3{margin:0 0 7px;font-size:1.2rem}.dev-poligon-panel p{font-size:.9rem;line-height:1.45;color:#b9b9b9}.dev-poligon-panel label{display:block;margin:10px 0 5px}.dev-poligon-panel select{width:100%;max-width:100%;background:#111416;color:#f3e2c7;border:1px solid #725737;border-radius:7px;padding:10px}.dev-poligon-grid,.dev-poligon-buttons,.poligon-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dev-poligon-panel .poligon-toggle{display:flex;align-items:center;gap:8px;font-size:.9rem}.dev-poligon-panel button,.poligon-actions button,.poligon-manual-skills button{padding:10px 8px;min-height:40px;color:#f9d9a5;background:#242120;border:1px solid #7b5c37;border-radius:8px;white-space:normal}.dev-poligon-panel button:disabled,.poligon-manual-skills button:disabled{opacity:.45}.dev-poligon-panel small{display:block;margin-top:8px;line-height:1.4}.poligon-combat-banner strong{display:block;margin-bottom:8px}.poligon-manual-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}.poligon-diagnostics-label{padding:8px;border:1px solid #936a3b;margin-bottom:7px}.fight-diag-grid small{display:block;color:#d2b48c;margin-top:3px}.enemy-formation.poligon-formation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.enemy-formation.poligon-formation .group-target{min-width:0;padding:4px}.enemy-formation.poligon-formation .mob-thumb{font-size:15px}@media(max-width:420px){.dev-poligon-grid,.dev-poligon-buttons{grid-template-columns:1fr}.poligon-actions button{font-size:12px}}

.poligon-last-report{margin:12px 0;border-top:1px solid #6b5333;padding-top:10px}.poligon-last-report summary{cursor:pointer;color:#e4c69b;font-weight:700}.poligon-last-report .fight-diag-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ================================================================
   SEKCJA: dev-auto-v67.css
   ================================================================ */
.dev-auto-diagnostics{margin:14px 0;padding:16px;border:1px solid #5b7186;border-radius:12px;background:#142335;color:#e8f1fc;display:grid;gap:10px}.dev-auto-diagnostics h3{margin:0;color:#eec983;font-size:1.12rem}.dev-auto-diagnostics p{margin:0;line-height:1.55}.dev-auto-diagnostics details{background:#1b2e41;padding:10px;border-radius:8px}.dev-auto-diagnostics details summary{cursor:pointer;font-weight:700}.dev-auto-diagnostics details ul{padding-left:20px;line-height:1.7}.dev-auto-diagnostics .dev-auto-warning{font-size:.88rem;color:#d8d0ab}.dev-auto-buttons{display:flex;flex-wrap:wrap;gap:9px}.dev-auto-buttons button{min-width:140px;flex:1;min-height:42px;padding:9px;border-radius:8px;border:1px solid #987d4c;background:#34475c;color:white;font-weight:650;white-space:normal}.dev-auto-buttons button:disabled{opacity:.43;cursor:default}.dev-auto-diagnostics #devAutoDiagStatus,.dev-auto-diagnostics #devAutoDiagSummary{overflow-wrap:anywhere;font-size:.93rem}.dev-auto-diagnostics #devAutoDiagSummary{color:#a8e4c0}@media(max-width:550px){.dev-auto-diagnostics{padding:10px}.dev-auto-buttons{flex-direction:column}.dev-auto-buttons button{width:100%}}

/* ================================================================
   SEKCJA: progression-v75.css
   ================================================================ */
.v75-stack{display:grid;gap:12px;color:var(--text,#e9dbc8);font-size:14px;padding:10px 0}.v75-stack h3{margin:6px 0 0;color:#efc684;font-size:18px}.v75-stack p{margin:0;line-height:1.5}.v75-actions{display:flex;flex-wrap:wrap;gap:8px}.v75-stack button,.dev-v75-panel button{min-height:42px;border-radius:9px;padding:9px 12px;background:#273146;border:1px solid #826d50;color:#f8e5bd;font-size:13px;cursor:pointer}.v75-stack button:disabled{opacity:.45;cursor:not-allowed}.v75-entry{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;border:1px solid #56452f;border-radius:10px;padding:10px;background:#101720}.v75-entry div{flex:1;min-width:120px}.v75-entry small{display:block;opacity:.8;margin-top:4px;line-height:1.35}.v75-entries{display:grid;gap:6px;max-height:400px;overflow:auto}.v75-fusion{display:grid;gap:8px;border:1px solid #76603c;padding:10px;border-radius:10px}.v75-fusion select{width:100%;max-width:100%;padding:10px;background:#111c2c;color:#e4cda0;border:1px solid #79643c;border-radius:7px}.v75-active{border-left:3px solid #d0ad67;padding:8px 12px;background:#182536}.v75-horse-scene{display:flex;align-items:center;gap:20px;border:1px solid #80623c;border-radius:12px;padding:16px;background:radial-gradient(ellipse at 50% 75%,#4d4032,#0a1423 75%);min-height:142px}.v75-mount-visual{font-size:82px;line-height:1.25;filter:drop-shadow(0 6px 5px #000);min-width:94px;text-align:center}.v75-black{filter:brightness(.75) drop-shadow(0 6px 5px #000)}.v75-horse-scene small{display:block;margin-top:6px}.v75-skin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v75-skin{display:grid;justify-items:center;gap:5px;text-align:center;min-width:0}.v75-skin span{font-size:42px}.v75-skin small{font-size:11px}.v75-skin.active{border-color:#f9d27d;background:#503c22}.v75-skin em{font-size:10px}.v75-survival-hud{display:flex;flex-wrap:wrap;gap:8px;background:#202b3e;border:1px solid #7e6539;border-radius:12px;padding:12px}.v75-survival-hud>*{padding:4px}.v75-dev-group{border:1px solid #675238;border-radius:10px;margin:8px 0;background:#101925}.v75-dev-group>summary{cursor:pointer;padding:14px;color:#ead09b;font-size:15px;font-weight:700;list-style-position:inside}.v75-dev-group>*:not(summary){margin:8px;padding:8px}.v75-dev-group .dev-v75-panel{display:grid;gap:9px}.v75-adventure-link{display:flex;flex-direction:column;gap:10px;margin-top:10px}.v75-adventure-link button{align-self:flex-start;min-height:42px;padding:8px 12px;background:#273146;border:1px solid #80623c;border-radius:8px;color:#f2d6a4}

.character-display,.battle-portrait{position:relative}.v75-inline-mount{position:absolute;bottom:3%;right:4%;z-index:5;display:grid;place-items:center;min-width:46px;height:46px;padding:4px;border:1px solid #ba9257;background:#151b24dc;border-radius:12px;box-shadow:0 4px 12px #000b;font-size:29px;pointer-events:none}.v75-inline-mount[hidden]{display:none!important}

/* ================================================================
   SEKCJA: progression-v76.css
   ================================================================ */
/* v76: same dark-navy / muted-gold materials as the existing ASHENREALM v75 UI. */
.v76-quality-label{display:inline-block;font-size:11px;font-weight:800;padding:2px 6px;border-radius:5px;letter-spacing:.015em}.v76-quality-damaged{--v76-accent:#767b87;--v76-glow:#6e7583;color:#bdc2cb!important}.v76-quality-normal{--v76-accent:#a3a9b0;--v76-glow:#5a6474;color:#e8e2d7!important}.v76-quality-rare{--v76-accent:#528dc4;--v76-glow:#2d76bf;color:#8bc2fa!important}.v76-quality-epic{--v76-accent:#9867ce;--v76-glow:#8853d2;color:#cda7fb!important}.v76-quality-legendary{--v76-accent:#d3a145;--v76-glow:#bd8b35;color:#ffcf76!important}.v76-quality-mythic{--v76-accent:#d95676;--v76-glow:#9d304c;color:#ff93af!important}
.inv.gear[class*="v76-quality-"],.eq.filled[class*="v76-quality-"],.service-gear[class*="v76-quality-"]{outline:2px solid var(--v76-accent)!important;outline-offset:-2px;box-shadow:inset 0 0 0 1px #0008,0 0 8px color-mix(in srgb,var(--v76-glow) 24%,transparent)}
.v76-quality-label.v76-quality-damaged{background:#3c4048}.v76-quality-label.v76-quality-normal{background:#343a43}.v76-quality-label.v76-quality-rare{background:#183451}.v76-quality-label.v76-quality-epic{background:#342448}.v76-quality-label.v76-quality-legendary{background:#403018}.v76-quality-label.v76-quality-mythic{background:#462130}
.v76-forge,.v76-survival{min-width:0;max-width:100%;box-sizing:border-box}.v76-forge h3,.v76-survival h3{font-weight:900;letter-spacing:.025em}.v76-forge-counters,.v76-survival-stat{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}.v76-forge-counters>span{border:1px solid #665133;background:#101b2c;padding:9px 11px;border-radius:8px;flex:1}.v76-forge-counters b{display:block;color:#ffce78;font-size:16px}.v76-gear-icon{display:grid;place-items:center;width:48px;height:48px;min-width:48px;background:linear-gradient(135deg,#24364d,#070f1b);border:2px solid var(--v76-accent,#967746);border-radius:7px;font-size:25px}.v76-smelt-row{flex-wrap:nowrap;min-width:0;cursor:pointer}.v76-smelt-row>input{width:18px;height:18px;flex-shrink:0;accent-color:#e9bc69}.v76-smelt-row>strong{color:#f2c879;white-space:nowrap}.v76-smelt-row>div{min-width:0;overflow-wrap:anywhere}.v76-quality-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.v76-quality-legend>span{padding:9px 10px;border:1px solid #5c4b37;background:#101a29;border-radius:6px;font-size:12px}.v76-forge select{width:100%;margin-top:7px;max-width:100%;padding:12px;color:#f1d8ac;background:#151f31;border:1px solid #866947;border-radius:8px}.v76-forge-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v76-forge-duo button{display:grid;gap:5px;font-weight:800;min-width:0}.v76-forge-duo button small{font-weight:500;font-size:11px}
.v76-survival-head{padding:18px 16px;border:1px solid #926d35;border-radius:12px;background:radial-gradient(ellipse at top,#2c3040,#101826 76%);box-shadow:inset 0 0 0 1px #edc87c20;display:grid;gap:10px}.v76-survival-head>small,.v76-survival-zone>small{font-size:10px;color:#c6ad7d;letter-spacing:.14em}.v76-survival-head h3{margin:0;color:#f6d392;font-size:25px}.v76-survival-head p{color:#bdc5d0}.v76-survival-track,.v76-hp-bar{height:9px;background:#070e19;border:1px solid #655235;border-radius:99px;overflow:hidden}.v76-survival-track>span{display:block;height:100%;background:linear-gradient(90deg,#92713c,#f8d58b)}.v76-hp-bar>span{display:block;height:100%;background:linear-gradient(90deg,#8a2c35,#da6873)}.v76-survival-stat{font-size:12px}.v76-survival-stat b{color:#f4d29c}.v76-survival-zone{border:1px solid #6f5736;background:linear-gradient(110deg,#171e2b,#222a38);border-radius:10px;padding:14px;display:grid;gap:7px}.v76-survival-zone h3{font-size:17px;margin:0}.v76-survival-zone>span{font-size:12px;color:#adb8c7}.v76-survival-rules{display:grid;gap:6px;border-top:1px solid #574630;padding-top:11px;color:#c6ced7}.v76-survival-rules>b{color:#e4c68e}.v76-survival-rules>small{font-size:11px;color:#9ca9bc}.v76-survival-route{display:grid;gap:12px;padding:16px;color:#dec291}.v76-survival-route button{padding:10px;border:1px solid #9f7940;border-radius:8px;background:#29344a;color:#f6d89e}
@media(max-width:400px){.v76-forge-duo{grid-template-columns:1fr}.v76-smelt-row{gap:6px;padding:8px}.v76-gear-icon{width:38px;height:38px;min-width:38px}.v76-survival-head h3{font-size:22px}}

.v76-unclaimed{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #886938;border-radius:7px;background:#202536;color:#f3d599}.v76-unclaimed button{white-space:nowrap;padding:7px 12px;color:#f9ddac;background:#25344b;border:1px solid #94753f;border-radius:6px}.pve-loot-item[class*='v76-quality-']>label>i{outline:2px solid var(--v76-accent)!important;outline-offset:2px;border-radius:4px}

.px-bag-slot.gear[class*='v76-quality-'],.px-eq-slot.filled[class*='v76-quality-'],.px-detail-thumb[class*='v76-quality-']{outline:2px solid var(--v76-accent)!important;outline-offset:-2px;box-shadow:inset 0 0 0 1px #0009,0 0 7px color-mix(in srgb,var(--v76-glow) 25%,transparent)}

/* v76.1: prevent the fixed phone dock from covering the final selected-item card.
   The picker itself scrolls internally, independently of the main page. */
body[data-active-screen="services"] .game-stage{padding-bottom:calc(118px + env(safe-area-inset-bottom))!important}
body[data-active-screen="services"] .service-panel{scroll-margin-bottom:105px}
body[data-active-screen="services"] .service-picker-shell{min-width:0;max-width:100%;overflow:visible}
body[data-active-screen="services"] .service-gear-picker.compact-grid{overscroll-behavior:contain;scrollbar-gutter:stable;touch-action:pan-y}
body[data-active-screen="services"] .service-gear-picker.compact-grid .service-gear{min-width:0;overflow-wrap:anywhere}
body[data-active-screen="services"] .service-workbench,body[data-active-screen="services"] .v76-forge{scroll-margin-bottom:105px}
@media(max-width:650px){
 body[data-active-screen="services"] .service-gear-picker.compact-grid{max-height:min(42dvh,440px)!important}
 body[data-active-screen="services"] .service-gear-picker.compact-grid .service-gear b{font-size:10px!important;max-height:none!important;line-height:1.2}
 body[data-active-screen="services"] .service-gear-picker.compact-grid .service-gear small{font-size:9px!important;line-height:1.15}
 body[data-active-screen="services"] .service-picker-toolbar{font-size:11px}
}

/* ================================================================
   SEKCJA: asset-items-v763.css
   ================================================================ */
/* ASHENREALM v0.13.6.76.4 — first approved V30 weapon art set. */
.ar-item-art{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
/* Production inventory: keep a small breathing margin inside 1/2/3-cell footprints. */
.inventory-panel #inventory .fixed-cell-item>i{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important}
.inventory-panel #inventory .fixed-cell-item>i>.ar-item-art{max-width:90%!important;max-height:90%!important}
.inventory-panel #inventory .fixed-cell-item[data-cells="1"]>i>.ar-item-art{max-width:88%!important;max-height:88%!important}
/* Pixel-profile bag used on phone. Slightly smaller than the previous test mock. */
body.pixel-profile-active .px-bag-slot>i{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;transform:none!important}
body.pixel-profile-active .px-bag-slot>i>.ar-item-art{max-width:88%!important;max-height:90%!important}
body.pixel-profile-active .px-bag-slot[data-cells="1"]>i>.ar-item-art{max-width:86%!important;max-height:86%!important}
/* Equipped weapon: preserve the artwork instead of falling back to the sword glyph. */
.loadout-stage .metin-eq-slot .slot-glyph>.ar-item-art,
body.pixel-profile-active .px-eq-slot>i>.ar-item-art{max-width:92%!important;max-height:92%!important;margin:auto!important}
body.pixel-profile-active .px-eq-slot>i{display:grid!important;place-items:center!important}
/* Generic places that use itemGlyph(): reports, forge, loadouts, etc. */
.pve-loot-item i>.ar-item-art,.pve-loot-preview i>.ar-item-art,.loadout-preview-slot i>.ar-item-art,
.service-gear i>.ar-item-art,.v76-gear-icon>.ar-item-art,.session-loot-thumb i>.ar-item-art,
.session-loot-modal i>.ar-item-art,.arena-eq-preview i>.ar-item-art{max-width:90%!important;max-height:90%!important;margin:auto!important}
/* Weapon equipment slot is a true 3-cell column. v42 already draws equal 1/3 + 2/3 lines;
   remove the legacy 50% pseudo-divider that made the sections look uneven. */
body.pixel-profile-active .slot-weapon::after{display:none!important;content:none!important}


/* Hotfix v0.13.6.76.4 — smaller previews for 2/3-cell items and bow tuning. */
body.pixel-profile-active .px-detail-thumb{overflow:hidden!important}
body.pixel-profile-active .px-detail-thumb>.ar-item-art{max-width:84%!important;max-height:84%!important;margin:auto!important}
body.pixel-profile-active .px-detail-thumb[data-cells="2"]>.ar-item-art{max-width:72%!important;max-height:72%!important}
body.pixel-profile-active .px-detail-thumb[data-cells="3"]>.ar-item-art{max-width:66%!important;max-height:66%!important}
body.pixel-profile-active .px-detail-thumb[data-slot="weapon"][data-cells="2"]>.ar-item-art{max-width:78%!important;max-height:72%!important}
body.pixel-profile-active .px-detail-thumb[data-slot="weapon"][data-cells="3"]>.ar-item-art{max-width:72%!important;max-height:68%!important}
body.pixel-profile-active .px-eq-slot.slot-weapon>i>.ar-item-art{max-width:84%!important;max-height:88%!important}
body.pixel-profile-active .px-eq-slot.slot-weapon>i>.ar-item-02150{max-width:90%!important;max-height:78%!important}
.loadout-stage .metin-eq-slot[data-slot="weapon"] .slot-glyph>.ar-item-art{max-width:84%!important;max-height:88%!important}
.loadout-stage .metin-eq-slot[data-slot="weapon"] .slot-glyph>.ar-item-02150{max-width:90%!important;max-height:78%!important}
.service-gear-picker.board-grid .service-board-slot>i,.forge-item-head .v76-gear-icon,.v75-entry .v76-gear-icon{display:grid!important;place-items:center!important;overflow:hidden!important}
.service-gear-picker.board-grid .service-board-slot>i>.ar-item-art,.forge-item-head .v76-gear-icon>.ar-item-art,.v75-entry .v76-gear-icon>.ar-item-art{max-width:88%!important;max-height:88%!important;margin:auto!important}
.service-gear-picker.board-grid .service-board-slot[data-cells="2"]>i>.ar-item-art,.forge-item-head .v76-gear-icon[data-cells="2"]>.ar-item-art,.v75-entry .v76-gear-icon[data-cells="2"]>.ar-item-art{max-width:78%!important;max-height:78%!important}
.service-gear-picker.board-grid .service-board-slot[data-cells="3"]>i>.ar-item-art,.forge-item-head .v76-gear-icon[data-cells="3"]>.ar-item-art,.v75-entry .v76-gear-icon[data-cells="3"]>.ar-item-art{max-width:72%!important;max-height:72%!important}

/* ================================================================
   SEKCJA: farm-report.css
   ================================================================ */
/* Raport farmienia: samodzielny panel pod polem walki, mobilny i bez wpływu na HUD. */
.farm-report-panel{padding:16px;min-width:0}
.farm-report-panel[hidden]{display:none!important}
.farm-report-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.farm-report-heading h3{margin:3px 0;font-size:1.05rem;line-height:1.25}
.farm-report-heading small,.farm-report-grid small{display:block;color:#a9b6c9;font-size:.7rem;letter-spacing:.045em}
.farm-report-heading span{font-size:.75rem;color:#c7d7b9}
.farm-report-heading button{padding:7px 10px;flex:0 0 auto;font-size:.78rem}
.farm-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.farm-report-grid>span{min-width:0;border:1px solid rgba(186,199,216,.14);border-radius:8px;padding:9px 7px;background:rgba(14,19,32,.34)}
.farm-report-grid b{display:block;margin-top:3px;font-variant-numeric:tabular-nums;font-size:.96rem;overflow-wrap:anywhere}
.farm-report-panel details{margin-top:12px}
.farm-report-panel summary{cursor:pointer;font-weight:700;font-size:.82rem}
.farm-report-loot{max-height:200px;overflow:auto;display:grid;gap:5px;padding-top:8px}
.farm-report-loot>div{display:flex;justify-content:space-between;gap:12px;padding:5px 8px;border-radius:5px;background:rgba(14,19,32,.34);font-size:.82rem}
.farm-report-loot b{white-space:nowrap;font-variant-numeric:tabular-nums}
.farm-report-note{display:block;margin:11px 0 0;color:#a9b6c9;font-size:.7rem;line-height:1.45}
.farm-report-final{margin:12px 0;padding:12px;border:1px solid rgba(186,199,216,.18);border-radius:9px}
.farm-report-final h3{margin:0 0 10px;font-size:1rem}
@media(max-width:700px){.farm-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.farm-report-panel{padding:12px}.farm-report-heading h3{font-size:.98rem}}

/* ================================================================
   SEKCJA: bestiary-progress-v73.css
   ================================================================ */
/* v73 — postęp polowania w istniejącej Księdze Bestii. */
.bestiary-dialog-v43 .beast-hunt-v73{min-width:0;display:grid;gap:9px;padding:13px 15px;border:1px solid #79542d;background:linear-gradient(145deg,#171b20,#0b0e12 65%);box-shadow:inset 0 0 22px #b37d2610;color:#e7d9c3}
.beast-hunt-head-v73{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.beast-hunt-head-v73 small{color:#b98d55;font:700 10px/1.4 Arial,sans-serif;letter-spacing:.11em}
.beast-hunt-head-v73 h3{margin:4px 0 0;font:700 22px/1.2 Georgia,serif;color:#eddcc1}
.beast-hunt-head-v73 h3 strong{color:#f4c674;font-variant-numeric:tabular-nums}
.beast-hunt-status-v73{flex:0 0 auto;padding:6px 10px;border:1px solid #836038;background:#2b1d0f;color:#f4cd85;font:700 12px Arial,sans-serif}
.beast-hunt-track-v73{height:9px;border:1px solid #634827;background:#090a0d;overflow:hidden;border-radius:6px}
.beast-hunt-track-v73>span{display:block;height:100%;background:linear-gradient(90deg,#97612a,#e5ac56);border-radius:6px}
.beast-hunt-next-v73,.beast-hunt-info-v73{margin:0;color:#c5b7a3;font:400 12px/1.5 Arial,sans-serif}
.beast-hunt-next-v73 b{color:#f2c370}
.beast-hunt-tiers-v73{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.beast-hunt-tier{min-width:0;display:flex;flex-direction:column;gap:4px;padding:9px 7px;border:1px solid #4a3a2a;background:#0b0f13;color:#afa391}
.beast-hunt-tier>span{font:700 20px/1 Arial,sans-serif;color:#826f56}
.beast-hunt-tier b{font:700 13px/1.2 Georgia,serif;overflow-wrap:anywhere}
.beast-hunt-tier small{font:400 10px Arial,sans-serif}
.beast-hunt-tier em{font:400 10px/1.3 Arial,sans-serif;font-style:normal;color:#988771}
.beast-hunt-tier.earned{border-color:#9b7038;background:linear-gradient(#2c1f13,#14110f);color:#f2d9af}
.beast-hunt-tier.earned>span,.beast-hunt-tier.earned em{color:#f2c577}
.beast-hunt-info-v73{padding-top:7px;border-top:1px solid #4d3824;color:#a89c8a;font-size:10px}
@media(max-width:560px){
  .bestiary-dialog-v43 .beast-hunt-v73{padding:10px 9px;gap:7px}
  .beast-hunt-head-v73 small{font-size:8px}
  .beast-hunt-head-v73 h3{font-size:19px}
  .beast-hunt-status-v73{font-size:10px;padding:5px 7px}
  .beast-hunt-tiers-v73{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .beast-hunt-tier{padding:7px;gap:3px}
  .beast-hunt-tier b{font-size:13px}
  .beast-hunt-tier small,.beast-hunt-tier em{font-size:10px}
  .beast-hunt-next-v73{font-size:11px}
  .beast-hunt-info-v73{font-size:10px}
}

/* ================================================================
   SEKCJA: hotfix-v74.css
   ================================================================ */
/* ASHENREALM v74 mobile nav and report acknowledgement */
@media(max-width:900px){
  body:not(.selection-open):not(.creator-open)>.mobile-dock{
    display:grid!important;visibility:visible!important;opacity:1!important;
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    transform:none!important;z-index:4500!important;
    width:100%!important;box-sizing:border-box!important;
    padding-bottom:max(6px,env(safe-area-inset-bottom))!important;
  }
  body:not(.selection-open):not(.creator-open) #gameMain,
  body.pixel-profile-active>.pixel-profile-host{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
}
/* A report is a blocking end-of-run checkpoint. Loot already lives in the bag;
   the player has to acknowledge the report before navigating onward. */
body:has(#pveReportModal:not([hidden]))>.mobile-dock{visibility:hidden!important;pointer-events:none!important}
#pveReportModal:not([hidden]){z-index:5800!important}
.dev-m2-raid{margin:16px 0;padding:14px;border:1px solid #82582b;background:linear-gradient(145deg,#15181b,#090c0f);color:#e1d0b4}
.dev-m2-raid h3{margin:0 0 8px;color:#e3b86c;font:700 18px Georgia,serif}
.dev-m2-raid p{font-size:12px;line-height:1.5;color:#bdb0a0}
.dev-m2-raid label{display:block;margin:10px 0;font-size:12px;color:#d6bb88}
.dev-m2-raid select{display:block;width:100%;max-width:100%;min-height:40px;margin-top:4px}
.dev-m2-raid pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 Arial,sans-serif;color:#f4e2c0}

/* ================================================================
   SEKCJA: v77 — portret przeciwnika (Arena / walka o spot na ekranie Walki)
   ================================================================ */
.enemy-emblem.has-portrait{background-size:cover!important;background-position:center 12%!important;background-repeat:no-repeat!important;font-size:0!important;color:transparent!important}
