/* Aldos RPG v1.146.281 CSS bundle · generated from release sources */
/* Aldos RPG v1.146.278 CSS bundle · generated from release sources */
/* Aldos RPG v1.146.278 CSS bundle · generated from release sources */
/* Aldos RPG v1.146.278 CSS bundle · generated from release sources */
/* Aldos RPG v1.146.277 CSS bundle · generated from release sources */
/* ===== dist/app.c21150f1cd49bede.css ===== */
/* ---- css/style.css ---- */
:root{--bg:#11121a;--card:#1b1d2a;--card2:#25283a;--text:#f4f4f7;--muted:#a9afc3;--gold:#ffd166;--red:#ef476f;--green:#06d6a0;--blue:#118ab2;--purple:#7b2cbf;--border:rgba(255,255,255,.12);--shadow:0 14px 40px rgba(0,0,0,.35)}*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:Arial,system-ui,sans-serif;background:radial-gradient(circle at top,#282b42,#101118 65%);color:var(--text)}button,input,select{font:inherit}button{border:0;border-radius:14px;padding:10px 14px;background:#34384f;color:#fff;cursor:pointer;box-shadow:0 4px 0 rgba(0,0,0,.25);transition:.12s transform,.12s filter}button:hover{filter:brightness(1.12);transform:translateY(-1px)}button:active{transform:translateY(2px);box-shadow:none}.primary{background:linear-gradient(135deg,#2bb673,#0f9d58)}.danger{background:linear-gradient(135deg,#ef476f,#a4133c)}.ghost{background:rgba(255,255,255,.08);border:1px solid var(--border)}.big{font-size:18px;padding:16px 20px}.muted{color:var(--muted)}.app-shell{min-height:100%;padding-bottom:86px}.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(920px,100%);background:linear-gradient(145deg,rgba(33,36,55,.96),rgba(18,20,31,.98));border:1px solid var(--border);border-radius:28px;padding:26px;box-shadow:var(--shadow)}.logo{font-size:36px;font-weight:900;color:var(--gold);letter-spacing:1px}.login-card label,.panel label{display:grid;gap:7px;margin:12px 0;color:var(--muted)}input,select{width:100%;border:1px solid var(--border);background:#10121c;color:var(--text);border-radius:14px;padding:12px 14px;outline:none}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.class-pick{min-height:132px;text-align:left;background:#22263a}.class-pick small{display:block;color:var(--muted);margin-top:8px;line-height:1.35}.class-pick.active{outline:3px solid var(--gold)}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;min-height:76px;padding:12px 18px;background:rgba(16,17,26,.86);backdrop-filter:blur(16px);border-bottom:1px solid var(--border)}.topbar h1{font-size:22px;margin:0}.topbar p{margin:4px 0 0;color:var(--muted)}.hamburger{font-size:24px;width:52px;height:52px;border-radius:16px;background:#312244}.net-pill{margin-left:auto;padding:8px 12px;border-radius:99px;background:#333;color:var(--muted);font-size:13px}.net-pill.lan{background:rgba(6,214,160,.14);color:#70f7cd}.net-pill.offline{background:rgba(255,209,102,.15);color:#ffe08a}.screen{padding:18px;max-width:1280px;margin:0 auto}.location-hero,.panel,.loot-pile,.monster-card,.ability-card,.fighter,.battle-log,.party{background:rgba(27,29,42,.92);border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:0 8px 28px rgba(0,0,0,.22)}.location-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.location-btn{background:linear-gradient(135deg,#495057,#25283a)}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:16px}.monster-card{position:relative;text-align:center}.monster-icon{font-size:50px}.monster-card h3{margin:4px 0}.monster-card .ghost{position:absolute;right:10px;top:10px;width:36px;height:36px;padding:0}.bar{height:13px;background:#0c0d14;border:1px solid rgba(255,255,255,.12);border-radius:999px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,#06d6a0,#ffd166)}.bar.hp i{background:linear-gradient(90deg,#ef476f,#ffd166)}.bar.mp i{background:linear-gradient(90deg,#118ab2,#64d2ff)}.loot-pile{margin-top:16px}.item-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:12px;margin:8px 0;background:rgba(255,255,255,.055);border:1px solid var(--border);border-radius:16px}.item-name{min-width:0}.row-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.rarity-Необычный{border-color:rgba(6,214,160,.35)}.rarity-Редкий{border-color:rgba(17,138,178,.55)}.rarity-Эпический{border-color:rgba(123,44,191,.65)}.rarity-Легендарный{border-color:rgba(255,209,102,.75)}.bottom-nav{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);width:min(760px,calc(100% - 24px));display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:8px;background:rgba(16,17,26,.82);backdrop-filter:blur(16px);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);z-index:30}.bottom-nav button{display:grid;gap:2px;place-items:center;padding:9px 6px;border-radius:16px;background:rgba(255,255,255,.08)}.bottom-nav span{font-size:12px;color:var(--muted)}.side{position:fixed;z-index:50;left:0;top:0;bottom:0;width:300px;max-width:86vw;background:#161824;border-right:1px solid var(--border);box-shadow:var(--shadow);padding:14px;transform:translateX(-105%);transition:.22s transform;overflow:auto}.side.open{transform:translateX(0)}.side-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid var(--border);margin-bottom:10px}.side button{width:100%;margin:6px 0}.mini-card{display:flex;justify-content:space-between;gap:8px;padding:10px;margin:7px 0;border-radius:14px;background:#242738}.mini-card.red{background:rgba(239,71,111,.18)}.mini-card.blue{background:rgba(17,138,178,.2)}.character-layout{display:grid;grid-template-columns:300px 1fr;gap:16px}.paperdoll{text-align:center;background:rgba(27,29,42,.92);border:1px solid var(--border);border-radius:24px;padding:20px}.avatar{font-size:86px;width:150px;height:150px;display:grid;place-items:center;border-radius:38px;margin:0 auto 12px;background:radial-gradient(circle,#34384f,#141620)}.slot{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;border:1px solid var(--border);padding:12px;border-radius:14px;margin:8px 0;background:rgba(255,255,255,.04)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.battle-screen{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'p m' 'a a' 'l l' 'party party';gap:14px;padding:18px;max-width:1180px;margin:auto}.fighter.blue{grid-area:p;background:linear-gradient(145deg,rgba(17,138,178,.25),rgba(27,29,42,.9))}.fighter.red{grid-area:m;background:linear-gradient(145deg,rgba(239,71,111,.24),rgba(27,29,42,.9))}.battle-actions{grid-area:a;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.battle-log{grid-area:l}.battle-log p{margin:7px 0;padding:8px 10px;background:rgba(255,255,255,.05);border-radius:10px}.party{grid-area:party}.party span,.friend-pill{display:inline-block;margin:5px;padding:8px 10px;border-radius:99px;background:rgba(255,255,255,.08)}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}.modal-back{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.65);display:grid;place-items:center;padding:18px}.modal{position:relative;width:min(760px,100%);max-height:88vh;overflow:auto;background:#1a1d2b;border:1px solid var(--border);border-radius:26px;padding:22px;box-shadow:var(--shadow)}.modal-close{position:absolute;right:12px;top:12px;width:42px;height:42px;border-radius:15px}.toast{animation:toastIn .2s ease;min-width:240px;max-width:min(420px,calc(100vw - 24px));padding:12px 14px;margin:8px;border-radius:16px;background:#2b2e43;border:1px solid var(--border);box-shadow:var(--shadow)}.toast-success{background:rgba(6,214,160,.22)}.toast-warning{background:rgba(255,209,102,.22)}.toast-error{background:rgba(239,71,111,.28)}.toast-level{background:rgba(123,44,191,.35)}#toast-root{position:fixed;z-index:150;right:10px;top:86px}@keyframes toastIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}.empty{padding:22px;text-align:center;color:var(--muted)}@media(max-width:820px){.screen{padding:12px}.grid-3{grid-template-columns:1fr}.topbar{min-height:66px;padding:9px 12px}.topbar h1{font-size:18px}.topbar p{font-size:12px}.net-pill{display:none}.cards-grid,.two-col,.character-layout{grid-template-columns:1fr}.battle-screen{grid-template-columns:1fr;grid-template-areas:'p' 'm' 'a' 'l' 'party';padding:12px}.item-row{grid-template-columns:1fr}.row-actions{justify-content:stretch}.row-actions button,.item-row button{width:100%}.bottom-nav{bottom:8px;border-radius:18px}.bottom-nav span{font-size:10px}.side{width:285px}.login-card{padding:18px;border-radius:22px}.logo{font-size:28px}.location-hero,.panel,.loot-pile,.monster-card,.ability-card,.fighter,.battle-log,.party{border-radius:18px;padding:14px}}

/* === Обновление RPG-интерфейса: профиль, слоты, умения, бой === */
button:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.25);transform:none}.monster-grid{align-items:stretch}.monster-card{overflow:hidden}.monster-card.dead{opacity:.62}.monster-help{position:absolute;right:12px;top:12px}.monster-portrait{width:94px;height:94px;margin:0 auto 10px;border-radius:26px;display:grid;place-items:center;background:radial-gradient(circle at 45% 30%,rgba(255,255,255,.18),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 0 22px rgba(255,255,255,.06),0 12px 28px rgba(0,0,0,.24)}.monster-portrait span{font-size:56px;line-height:1;display:block;transform:none}.monster-portrait.battle{width:118px;height:118px;margin:0}.monster-portrait.battle span{font-size:72px}.monster-stats{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px 0;color:var(--muted);font-size:13px}.profile-layout{display:grid;grid-template-columns:260px minmax(240px,330px) 1fr;gap:16px;align-items:start}.profile-card,.equipment-panel{background:rgba(27,29,42,.92);border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:0 8px 28px rgba(0,0,0,.22)}.paperdoll.fancy{position:sticky;top:92px;background:linear-gradient(145deg,rgba(54,36,83,.95),rgba(27,29,42,.95));min-height:380px}.avatar-ring{width:176px;height:176px;margin:0 auto 14px;border-radius:48px;padding:12px;background:linear-gradient(135deg,rgba(255,209,102,.65),rgba(123,44,191,.45));box-shadow:0 20px 46px rgba(0,0,0,.35)}.avatar-ring .avatar{width:100%;height:100%;margin:0;border-radius:38px}.slot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.equip-slot{text-align:left;min-height:142px;display:grid;grid-template-rows:auto auto 1fr auto;gap:5px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));border:1px solid var(--border);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 8px 24px rgba(0,0,0,.2)}.equip-slot.filled{outline:1px solid rgba(255,209,102,.34);background:linear-gradient(145deg,rgba(255,209,102,.14),rgba(255,255,255,.04))}.equip-slot .slot-icon{font-size:34px}.equip-slot small{color:var(--text);line-height:1.25}.equip-slot em{font-size:12px;color:var(--muted);font-style:normal}.current-equip{border:1px solid rgba(255,209,102,.25);border-radius:18px;padding:10px;margin:10px 0;background:rgba(255,209,102,.06)}.abilities-layout{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:16px}.ability-card{display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;margin:10px 0;background:rgba(255,255,255,.055);border:1px solid var(--border);border-radius:18px;padding:14px}.ability-card.equipped{border-color:rgba(255,209,102,.5);box-shadow:0 0 0 1px rgba(255,209,102,.12)}.ability-icon{width:48px;height:48px;border-radius:16px;background:rgba(255,255,255,.08);display:grid;place-items:center;font-size:28px}.battle-screen.upgraded{grid-template-columns:1fr 1fr;grid-template-areas:'timers timers' 'party monster' 'actions actions' 'log log';align-items:start}.battle-timers{grid-area:timers;display:grid;grid-template-columns:1fr 1fr;gap:12px}.timer-card{padding:13px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid var(--border)}.timer-card.active{outline:2px solid rgba(6,214,160,.3)}.timer-card.danger-timer.active{outline-color:rgba(239,71,111,.35)}.timer-card b{display:block;margin-bottom:6px}.timer-card span{color:var(--gold);font-weight:800}.party-panel{grid-area:party;background:rgba(27,29,42,.92);border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:0 8px 28px rgba(0,0,0,.22)}.battle-party-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.battle-player{padding:14px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid var(--border)}.battle-player.self{border-color:rgba(6,214,160,.35)}.battle-player.acted{opacity:.78}.battle-player em{display:inline-block;margin-top:8px;color:var(--muted);font-style:normal}.monster-battle-card{grid-area:monster;display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center;background:linear-gradient(145deg,rgba(239,71,111,.2),rgba(27,29,42,.95));border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:0 8px 28px rgba(0,0,0,.22)}.fancy-actions{grid-area:actions}.fancy-actions .ability{display:grid;gap:3px;background:linear-gradient(135deg,#7b2cbf,#3a0ca3)}.fancy-actions small{display:block;font-size:11px;color:#eee}.battle-log{grid-area:log}.battle-log p{position:relative;animation:logPop .18s ease}@keyframes logPop{from{opacity:.2;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:980px){.profile-layout,.abilities-layout{grid-template-columns:1fr}.paperdoll.fancy{position:static}.battle-screen.upgraded{grid-template-columns:1fr;grid-template-areas:'timers' 'party' 'monster' 'actions' 'log'}.battle-timers{grid-template-columns:1fr}.monster-battle-card{grid-template-columns:1fr;text-align:center}.monster-portrait.battle{margin:0 auto}.ability-card{grid-template-columns:44px 1fr}.ability-card .row-actions{grid-column:1/-1}.slot-grid{grid-template-columns:1fr}}


/* === v3: компактный телефон, красивые предметы, один таймер, активные бои, обмен === */
html{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) rgba(255,255,255,.05)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:99px}::-webkit-scrollbar-thumb{background:rgba(255,255,255,.24);border-radius:99px;border:2px solid rgba(16,17,26,.9)}::-webkit-scrollbar-thumb:hover{background:rgba(255,209,102,.45)}
.top-title{min-width:0}.top-title h1,.top-title p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-list{display:grid;gap:10px;margin-top:12px}.item-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;margin:8px 0;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.03));border:1px solid var(--border);border-radius:18px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 8px 22px rgba(0,0,0,.16)}.item-card .item-left{min-width:0;display:grid;gap:5px}.item-card small{color:var(--muted);line-height:1.35}.item-emblem{width:42px;height:42px;display:inline-grid;place-items:center;margin-right:10px;border-radius:14px;background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.24),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.14);font-size:24px;vertical-align:middle}.rarity-Обычный .item-emblem{box-shadow:0 0 14px rgba(255,255,255,.04)}.rarity-Необычный .item-emblem{box-shadow:0 0 18px rgba(6,214,160,.18)}.rarity-Редкий .item-emblem{box-shadow:0 0 20px rgba(17,138,178,.22)}.rarity-Эпический .item-emblem{box-shadow:0 0 20px rgba(123,44,191,.28)}.rarity-Легендарный .item-emblem{box-shadow:0 0 24px rgba(255,209,102,.34)}.active-battles{margin-top:16px;background:rgba(27,29,42,.92);border:1px solid var(--border);border-radius:24px;padding:16px;box-shadow:0 8px 28px rgba(0,0,0,.22)}.active-battles.compact{padding:12px}.active-battles h2{margin:0 0 10px}.active-battle-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;margin:8px 0;border:1px solid rgba(255,209,102,.18);border-radius:18px;background:rgba(255,209,102,.06)}.single-turn-timer{grid-area:timers;display:grid;gap:10px;padding:16px;border-radius:22px;border:1px solid var(--border);box-shadow:0 10px 30px rgba(0,0,0,.25)}.single-turn-timer>div:first-child{display:flex;align-items:flex-start;gap:14px;justify-content:space-between}.single-turn-timer b{font-size:20px}.single-turn-timer span{font-size:24px;font-weight:900;color:var(--gold)}.single-turn-timer p{margin:4px 0 0;color:var(--muted)}.single-turn-timer.player-turn{background:linear-gradient(145deg,rgba(6,214,160,.16),rgba(27,29,42,.96))}.single-turn-timer.monster-turn{background:linear-gradient(145deg,rgba(239,71,111,.18),rgba(27,29,42,.96))}.single-turn-timer.monster-turn .bar i{background:linear-gradient(90deg,#ef476f,#ffd166)}.result-banner{text-align:center;padding:18px;border-radius:22px;background:linear-gradient(145deg,rgba(255,209,102,.14),rgba(255,255,255,.04));border:1px solid rgba(255,209,102,.24);margin-bottom:14px}.result-icon{font-size:58px}.reward-line{display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:16px;background:rgba(255,255,255,.06);margin:10px 0}.reward-line b{color:var(--gold);font-size:22px}.chance-pill{display:inline-block;padding:7px 10px;margin:5px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid var(--border);color:var(--muted)}.friends-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.friends-layout .trade-panel{grid-column:1/-1}.friend-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border-radius:16px;background:rgba(255,255,255,.055);border:1px solid var(--border);margin:8px 0}.friend-row>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(min-width:821px){.item-card{min-height:78px}.monster-card{min-height:268px}.screen{padding-bottom:34px}}
@media(max-width:820px){body{font-size:14px}.app-shell{padding-bottom:70px}.screen{padding:9px;max-width:100%}.topbar{min-height:58px;padding:7px 9px;gap:8px}.hamburger{width:42px;height:42px;border-radius:13px;font-size:20px}.topbar h1{font-size:16px}.topbar p{font-size:11px}.location-hero,.panel,.loot-pile,.monster-card,.ability-card,.battle-log,.party-panel,.monster-battle-card,.active-battles,.single-turn-timer{padding:11px;border-radius:16px}.cards-grid{gap:10px;margin-top:10px}.monster-portrait{width:72px;height:72px;border-radius:20px}.monster-portrait span{font-size:43px}.monster-card{min-height:auto}.monster-stats{font-size:12px;gap:6px}.item-card{grid-template-columns:1fr;gap:8px;padding:9px;border-radius:14px;margin:6px 0}.item-emblem{width:34px;height:34px;border-radius:12px;font-size:20px;margin-right:7px}.item-card small{font-size:12px}.row-actions{display:grid;grid-template-columns:1fr;gap:6px}.row-actions button,.item-card button{width:100%;padding:8px 10px;border-radius:12px}.bottom-nav{bottom:6px;width:calc(100% - 16px);padding:6px;gap:5px;border-radius:17px}.bottom-nav button{padding:6px 4px;border-radius:12px}.bottom-nav span{font-size:9px}.side{width:260px;padding:10px}.mini-card{padding:8px;margin:5px 0;border-radius:12px}.profile-layout{gap:10px}.profile-card,.equipment-panel{padding:11px;border-radius:16px}.paperdoll.fancy{padding:14px;min-height:auto}.avatar-ring{width:132px;height:132px;border-radius:36px;padding:8px}.avatar-ring .avatar{font-size:58px;border-radius:28px}.slot-grid{gap:8px}.equip-slot{min-height:104px;border-radius:14px;padding:9px}.equip-slot .slot-icon{font-size:27px}.abilities-layout{gap:10px}.ability-card{grid-template-columns:38px 1fr;padding:10px;gap:9px;border-radius:14px}.ability-icon{width:36px;height:36px;border-radius:12px;font-size:22px}.battle-screen.upgraded{padding:9px;gap:10px}.single-turn-timer{gap:8px}.single-turn-timer>div:first-child{display:grid;gap:4px}.single-turn-timer b{font-size:16px}.single-turn-timer span{font-size:20px}.single-turn-timer p{font-size:12px}.battle-party-cards{grid-template-columns:1fr;gap:8px}.battle-player{padding:10px;border-radius:14px}.monster-battle-card{gap:8px}.monster-portrait.battle{width:82px;height:82px}.monster-portrait.battle span{font-size:52px}.fancy-actions{display:grid;grid-template-columns:1fr;gap:7px}.battle-log p{font-size:12px;padding:7px}.active-battle-card{grid-template-columns:1fr;padding:10px}.friends-layout{grid-template-columns:1fr;gap:10px}.friend-row{grid-template-columns:1fr}.friend-row>div{display:grid;grid-template-columns:1fr;justify-content:stretch}.modal-back{padding:8px}.modal{max-height:92vh;padding:14px;border-radius:18px}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{border-width:1px}}

/* === v4: узкий мобильный бой, честный обмен, мягкие эффекты === */
.v4-battle{max-width:1180px;margin:0 auto}.battle-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.battle-section-title h2{margin:0}.small{padding:8px 11px;font-size:12px}.turn-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.bar.turn{height:15px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.player-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.player-title h3{margin:0}.pulse-hit:not(:disabled){animation:pulseHit 1.8s ease-in-out infinite}@keyframes pulseHit{0%,100%{box-shadow:0 0 0 rgba(239,71,111,0)}50%{box-shadow:0 0 24px rgba(239,71,111,.28)}}.battle-side{z-index:60}.battle-help-row button{white-space:nowrap}.battle-player,.monster-battle-card,.battle-log,.party-panel,.single-turn-timer{backdrop-filter:blur(14px)}.battle-player{position:relative;overflow:hidden}.battle-player:before{content:'';position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#06d6a0,#ffd166);opacity:.65}.battle-player.acted:before{background:linear-gradient(90deg,#8d99ae,#adb5bd)}.monster-battle-info{min-width:0}.monster-battle-info h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-card{transition:transform .16s ease,border-color .16s ease,background .16s ease}.item-card:hover{transform:translateY(-1px);border-color:rgba(255,209,102,.32);background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.04))}.inventory-tools{display:flex;gap:8px;flex-wrap:wrap}.trade-window{display:grid;gap:14px}.trade-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.trade-side{padding:14px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.055)}.trade-side.self{border-color:rgba(6,214,160,.3)}.trade-empty{padding:18px;border:1px dashed rgba(255,255,255,.18);border-radius:16px;text-align:center;color:var(--muted)}.trade-countdown{padding:13px;border-radius:16px;background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.25);text-align:center}.trade-countdown b{color:var(--gold);font-size:20px}.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.modal-actions button{flex:1 1 150px}.chance-pill.winner{background:rgba(6,214,160,.18);border-color:rgba(6,214,160,.38);color:#b8f7e7}.v4-result .result-banner{position:relative;overflow:hidden}.result-glow{position:absolute;inset:-40px;background:radial-gradient(circle at 50% 0%,rgba(255,209,102,.25),transparent 55%);pointer-events:none}.v4-result .result-icon{position:relative;animation:trophyPop .9s ease both}@keyframes trophyPop{0%{transform:scale(.6);opacity:.2}70%{transform:scale(1.1)}100%{transform:scale(1);opacity:1}}
@media(max-width:820px){.v4-battle{width:min(100%,440px);margin:0 auto;padding:7px;gap:8px}.battle-top{position:sticky;top:0;z-index:30}.single-turn-timer{position:sticky;top:62px;z-index:25;padding:9px!important;border-radius:14px!important}.turn-head{gap:6px}.turn-head p{display:none}.single-turn-timer b{font-size:15px!important}.single-turn-timer span{font-size:18px!important}.bar.turn{height:10px}.party-panel,.monster-battle-card,.battle-log{padding:10px!important;border-radius:15px!important}.battle-party-cards{grid-template-columns:1fr 1fr!important;gap:7px!important}.battle-player{padding:8px!important;border-radius:13px!important}.battle-player p,.battle-player small{font-size:11px}.player-title{display:grid;gap:2px}.player-title h3{font-size:13px}.monster-battle-card{display:grid!important;grid-template-columns:70px 1fr!important;text-align:left!important;gap:9px!important}.monster-portrait.battle{width:64px!important;height:64px!important;border-radius:18px!important;margin:0!important}.monster-portrait.battle span{font-size:40px!important}.monster-battle-info h2{font-size:16px;margin:0 0 5px}.monster-battle-info p{font-size:11px;margin:4px 0}.fancy-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}.fancy-actions button{min-height:44px;padding:8px;border-radius:13px}.fancy-actions .big{grid-column:auto}.fancy-actions .ghost:last-child{grid-column:1/-1}.fancy-actions small{font-size:10px}.battle-log h3{font-size:14px;margin:0 0 6px}.battle-log p{font-size:11px!important;margin:4px 0!important}.battle-side{width:min(82vw,280px)!important}.trade-grid{grid-template-columns:1fr}.trade-side{padding:10px;border-radius:14px}.modal-actions{display:grid;grid-template-columns:1fr}.modal-actions button{width:100%}.result-icon{font-size:48px}.reward-line{padding:9px}.chance-pill{font-size:12px;padding:6px 8px}.item-card:hover{transform:none}.item-card{box-shadow:0 5px 14px rgba(0,0,0,.12)}}
.v4-inventory{background:linear-gradient(145deg,rgba(27,29,42,.96),rgba(48,31,74,.72))}.inventory-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.inventory-head h2{margin:0}.bag-weight{min-width:88px;text-align:center;border-radius:18px;padding:10px;background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.22)}.bag-weight b{display:block;font-size:20px;color:var(--gold)}.bag-weight span{font-size:12px;color:var(--muted)}.inventory-list{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.inventory-list .item-card{min-height:92px}@media(max-width:820px){.inventory-head{align-items:flex-start}.bag-weight{min-width:74px;padding:8px;border-radius:14px}.bag-weight b{font-size:16px}.inventory-list{grid-template-columns:1fr}.inventory-tools .chance-pill{font-size:11px}}

/* ===== v5: аккуратные предметы, мобильный бой и верхние уведомления ===== */
#toast-root{position:fixed!important;z-index:180!important;left:50%!important;right:auto!important;top:72px!important;transform:translateX(-50%)!important;display:grid;justify-items:center;gap:8px;pointer-events:none;width:min(520px,calc(100vw - 18px))}.toast{pointer-events:auto!important;display:flex;align-items:center;justify-content:center;gap:10px;min-width:min(420px,calc(100vw - 24px));max-width:100%;padding:13px 16px!important;margin:0!important;border-radius:18px!important;text-align:center;font-weight:800;color:#fff;border:2px solid rgba(255,255,255,.18)!important;background:linear-gradient(135deg,rgba(43,46,67,.96),rgba(16,17,26,.98))!important;box-shadow:0 18px 44px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.08) inset!important;backdrop-filter:blur(18px)}.toast b{font-size:20px}.toast span{line-height:1.25}.toast-success{background:linear-gradient(135deg,rgba(6,214,160,.92),rgba(16,17,26,.98))!important}.toast-warning{background:linear-gradient(135deg,rgba(255,209,102,.95),rgba(75,52,15,.98))!important;color:#fff!important}.toast-error{background:linear-gradient(135deg,rgba(239,71,111,.95),rgba(56,9,24,.98))!important}.toast-level{background:linear-gradient(135deg,rgba(123,44,191,.95),rgba(24,16,40,.98))!important}.toast.leaving{opacity:0;transform:translateY(-10px) scale(.98);transition:.28s ease}
.item-list,.inventory-list{display:grid;gap:10px}.item-card{position:relative;display:grid!important;grid-template-columns:74px minmax(0,1fr) auto!important;align-items:center!important;gap:13px!important;text-align:left!important;padding:12px 14px!important;min-height:116px;border-radius:20px!important;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;border:1px solid var(--border)!important;box-shadow:0 10px 26px rgba(0,0,0,.2);overflow:hidden;cursor:pointer}.item-card:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--gold),rgba(255,255,255,.18));opacity:.55}.item-card:hover{transform:translateY(-2px);border-color:rgba(255,209,102,.38)!important}.item-icon-wrap{display:grid;place-items:center;align-content:center;gap:5px;min-width:0}.item-emblem{display:grid!important;place-items:center;width:54px!important;height:54px!important;margin:0!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.13);font-size:31px!important;box-shadow:inset 0 0 24px rgba(255,255,255,.04)}.item-type-label{font-size:11px;color:#9da3b7;text-transform:lowercase;letter-spacing:.2px;text-align:center}.item-body{min-width:0;padding-right:8px}.item-body h3{margin:0 0 5px;font-size:16px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-description{margin:0;color:#d8dcec;font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item-stats-line{display:block;margin-top:5px;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-weight{align-self:start;justify-self:end;white-space:nowrap;padding:6px 9px;border-radius:999px;background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.28);color:var(--gold);font-weight:900;font-size:12px}.item-actions{grid-column:1/-1;display:flex!important;justify-content:flex-start!important;gap:8px!important;flex-wrap:wrap;margin-top:9px}.item-actions button{min-width:120px;padding:8px 11px;border-radius:12px;font-size:13px}.rarity-Необычный:before{background:#06d6a0}.rarity-Редкий:before{background:#118ab2}.rarity-Эпический:before{background:#7b2cbf}.rarity-Легендарный:before{background:#ffd166}.item-detail-card{position:relative;display:grid;justify-items:center;text-align:center;gap:10px;padding:20px;border-radius:24px;border:1px solid var(--border);background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));box-shadow:0 16px 38px rgba(0,0,0,.24);overflow:hidden}.item-detail-card:before{content:'';position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.8}.item-detail-icon{width:94px;height:94px;border-radius:28px;display:grid;place-items:center;font-size:56px;background:radial-gradient(circle at 40% 20%,rgba(255,255,255,.2),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.15);box-shadow:0 14px 36px rgba(0,0,0,.24)}.item-detail-card h2{margin:3px 0 0;font-size:24px}.item-detail-desc{max-width:680px;margin:0;color:#e5e8f3;line-height:1.45}.detail-line{width:min(680px,100%);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);text-align:left}.detail-line span{color:var(--muted)}.detail-line b{color:#fff;text-align:right}.detail-line.weight b{color:var(--gold);font-size:18px}.item-detail-actions{width:min(520px,100%);display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.item-detail-actions button:only-child{grid-column:1/-1}.v5-inventory .inventory-list{grid-template-columns:repeat(auto-fit,minmax(330px,1fr))}.v5-battle{max-width:1120px}.v5-actions{position:relative;display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:10px!important;align-items:stretch}.v5-actions button{min-height:54px}.mini-ability-panel{display:none;position:absolute;right:0;top:calc(100% + 12px);z-index:80;width:min(460px,100%);padding:12px;border-radius:20px;background:rgba(16,17,26,.96);border:1px solid rgba(255,255,255,.14);box-shadow:var(--shadow);backdrop-filter:blur(16px)}.mini-ability-panel.open{display:grid;gap:8px;animation:toastIn .15s ease}.mini-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px}.mini-panel-head .small{width:auto}.mini-ability{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:0 9px;text-align:left;background:linear-gradient(135deg,rgba(123,44,191,.7),rgba(44,48,72,.92));border:1px solid rgba(255,255,255,.1)}.mini-ability span{grid-row:1/3;font-size:24px}.mini-ability b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-ability small{color:#e8ddff}.v5-monster-card{align-items:center}.v5-result .item-card{cursor:pointer}
@media(max-width:820px){#toast-root{top:62px!important;width:calc(100vw - 12px)}.toast{min-width:0!important;width:100%;padding:11px 12px!important;border-radius:15px!important;font-size:13px}.screen{padding-left:8px!important;padding-right:8px!important}.v5-inventory .inventory-list{grid-template-columns:1fr!important;gap:8px}.item-card{grid-template-columns:54px minmax(0,1fr) 58px!important;gap:8px!important;padding:9px!important;min-height:102px!important;border-radius:16px!important}.item-card:hover{transform:none}.item-emblem{width:43px!important;height:43px!important;border-radius:14px!important;font-size:25px!important}.item-type-label{font-size:10px}.item-body h3{font-size:14px;margin-bottom:3px}.item-description{font-size:11.5px;-webkit-line-clamp:2}.item-stats-line{font-size:10.5px;margin-top:3px}.item-weight{font-size:10.5px;padding:5px 6px;white-space:normal;text-align:center}.item-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:7px}.item-actions button{min-width:0!important;width:100%;padding:7px 6px!important;font-size:11.5px!important;border-radius:10px!important}.item-detail-card{padding:14px;border-radius:18px}.item-detail-icon{width:76px;height:76px;border-radius:22px;font-size:46px}.item-detail-card h2{font-size:20px}.item-detail-desc{font-size:13px}.detail-line{padding:8px 9px;font-size:12px}.item-detail-actions{grid-template-columns:1fr 1fr;gap:8px}.item-detail-actions button{padding:9px 8px}.v5-battle{width:100%!important;max-width:440px!important;margin:0 auto!important;padding:7px!important;gap:8px!important}.battle-top .net-pill{display:none}.single-turn-timer{top:58px!important;padding:10px!important}.single-turn-timer .turn-head{display:flex!important;align-items:flex-start;justify-content:space-between}.single-turn-timer .turn-head p{display:block!important;font-size:11px!important;line-height:1.25;margin-top:2px}.party-panel,.monster-battle-card,.battle-log{padding:10px!important}.battle-party-cards{grid-template-columns:1fr!important;gap:8px!important}.battle-player{display:grid;gap:4px;padding:9px!important;border-radius:14px!important}.battle-player p{margin:0;font-size:11px}.battle-player small{font-size:11px}.v5-monster-card{grid-template-columns:62px minmax(0,1fr)!important;gap:9px!important}.v5-monster-card .monster-portrait.battle{width:58px!important;height:58px!important;border-radius:17px!important}.v5-monster-card .monster-portrait.battle span{font-size:37px!important}.monster-battle-info h2{font-size:15px!important}.monster-battle-info p{font-size:11px!important;margin:3px 0!important}.v5-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}.v5-actions button{min-height:46px!important;padding:8px!important;font-size:13px!important}.v5-actions #leave-battle{grid-column:1/-1;min-height:40px!important}.mini-ability-panel{position:fixed!important;left:10px!important;right:10px!important;bottom:78px!important;top:auto!important;width:auto!important;max-height:48vh;overflow:auto;padding:10px;border-radius:17px}.mini-ability{grid-template-columns:30px minmax(0,1fr);padding:9px!important}.mini-ability span{font-size:22px}.mini-ability b{font-size:13px}.mini-ability small{font-size:11px}.battle-log p{font-size:11px!important;line-height:1.25}.bottom-nav{z-index:35}}

/* ===== v6: бой 1-4 игрока, лут по игрокам, друзья/обмен, сохранения ===== */
#toast-root{left:auto!important;right:12px!important;top:78px!important;transform:none!important;justify-items:end;width:min(440px,calc(100vw - 18px))}.toast{animation:v6ToastIn .22s ease!important;text-align:left!important;justify-content:flex-start!important}.toast.leaving{transform:translateX(20px) scale(.98)!important}@keyframes v6ToastIn{from{opacity:0;transform:translateX(28px) scale(.98)}to{opacity:1;transform:none}}
#notice-root{position:fixed;z-index:220;right:12px;top:80px;display:grid;gap:10px;width:min(390px,calc(100vw - 18px));pointer-events:none}.timed-notice{pointer-events:auto;background:linear-gradient(145deg,rgba(29,32,48,.98),rgba(13,15,24,.98));border:1px solid rgba(255,255,255,.16);border-radius:20px;padding:12px;box-shadow:0 18px 46px rgba(0,0,0,.42);animation:v6ToastIn .2s ease}.timed-notice.closing{opacity:0;transform:translateX(18px);transition:.18s ease}.notice-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.notice-head button{width:34px;height:34px;padding:0;border-radius:12px}.timed-notice p{margin:8px 0;color:#e9ecf8}.notice-progress{height:7px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}.notice-progress i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#06d6a0,#ffd166);transition:width .12s linear}.notice-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.notice-actions button{padding:9px 10px;border-radius:13px}
.v6-battle{height:calc(100dvh - 80px);max-width:1180px;margin:0 auto;padding:12px;display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(112px,auto) minmax(150px,1fr) auto minmax(92px,120px);gap:10px;overflow:hidden}.v6-battle .single-turn-timer{position:relative;top:auto!important;z-index:1;margin:0;padding:10px 12px;border-radius:18px;background:linear-gradient(145deg,rgba(33,36,55,.95),rgba(17,18,28,.96));border:1px solid rgba(255,255,255,.12)}.v6-battle .turn-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.v6-battle .turn-head p{margin:2px 0 0;color:var(--muted);font-size:13px}.v6-battle #turn-time{font-weight:900;color:var(--gold);white-space:nowrap}.v6-monster-top{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:center;margin:0;padding:12px 14px!important;border-radius:22px;background:linear-gradient(145deg,rgba(111,28,44,.32),rgba(27,29,42,.94));border:1px solid rgba(239,71,111,.24);box-shadow:0 12px 32px rgba(0,0,0,.25)}.v6-monster-top .monster-portrait.battle{width:98px;height:98px;border-radius:26px}.v6-monster-top .monster-portrait.battle span{font-size:60px}.v6-party-panel{min-height:0;padding:12px!important;overflow:hidden}.battle-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.battle-section-title h2{margin:0;font-size:17px}.battle-section-title .small{width:auto;padding:8px 10px;border-radius:12px;font-size:12px}.v6-party-grid{height:calc(100% - 38px);display:grid;gap:10px}.v6-party-grid.count-1{grid-template-columns:1fr;grid-template-rows:1fr}.v6-party-grid.count-2{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.v6-party-grid.count-3,.v6-party-grid.count-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.v6-player{min-height:0;display:grid;place-items:center;text-align:center;align-content:center;gap:5px;padding:10px;border-radius:20px;background:linear-gradient(145deg,rgba(17,138,178,.24),rgba(27,29,42,.92));border:1px solid rgba(255,255,255,.12);position:relative;overflow:hidden}.v6-player.self{border-color:rgba(255,209,102,.42);box-shadow:inset 0 0 0 1px rgba(255,209,102,.12)}.v6-player.acted:after{content:'готов';position:absolute;right:9px;top:8px;padding:4px 7px;border-radius:999px;background:rgba(6,214,160,.18);color:#8bf8d3;font-size:11px;font-weight:900}.v6-player .player-avatar{font-size:28px;width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}.v6-player h3{margin:0;font-size:16px;line-height:1.15}.v6-player small{font-size:12px;color:#e8ebf8}.v6-player em{font-style:normal;color:var(--muted);font-size:11px}.v6-player .bar{width:min(280px,90%);height:10px}.v6-actions{position:relative;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important}.v6-actions button{min-height:52px}.v6-ability-panel{width:min(560px,calc(100vw - 24px));right:0;top:auto;bottom:calc(100% + 10px);padding:14px;border-radius:22px}.ability-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.v6-ability-panel .mini-ability{min-height:86px;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto auto}.v6-ability-panel .mini-ability p{grid-column:2;margin:2px 0 0;color:#d6d9eb;font-size:11px;line-height:1.25}.v6-battle-log{min-height:0;padding:10px!important;overflow:hidden}.v6-battle-log h3{margin:0 0 7px;font-size:15px}.battle-log-scroll{height:calc(100% - 28px);overflow:auto;padding-right:5px}.battle-log-scroll::-webkit-scrollbar,.modal::-webkit-scrollbar,.mini-ability-panel::-webkit-scrollbar,.side::-webkit-scrollbar{width:8px}.battle-log-scroll::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb,.mini-ability-panel::-webkit-scrollbar-thumb,.side::-webkit-scrollbar-thumb{background:linear-gradient(#7b2cbf,#118ab2);border-radius:999px}.battle-log-scroll::-webkit-scrollbar-track,.modal::-webkit-scrollbar-track,.mini-ability-panel::-webkit-scrollbar-track,.side::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px}.v6-battle-log p{font-size:12px!important;margin:5px 0!important;padding:7px 9px!important}.battle-top.compact-battle-top{min-height:68px}.battle-top.compact-battle-top + .v6-battle{height:calc(100dvh - 68px)}
/* цвет редкости только рамкой и заливкой, без текста редкости */
.item-card.rarity-Обычный,.item-detail-card.rarity-Обычный{border-color:rgba(255,255,255,.12)!important;background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025))!important}.item-card.rarity-Необычный,.item-detail-card.rarity-Необычный{border-color:rgba(6,214,160,.55)!important;background:linear-gradient(145deg,rgba(6,214,160,.16),rgba(255,255,255,.025))!important}.item-card.rarity-Редкий,.item-detail-card.rarity-Редкий{border-color:rgba(17,138,178,.62)!important;background:linear-gradient(145deg,rgba(17,138,178,.18),rgba(255,255,255,.025))!important}.item-card.rarity-Эпический,.item-detail-card.rarity-Эпический{border-color:rgba(123,44,191,.72)!important;background:linear-gradient(145deg,rgba(123,44,191,.22),rgba(255,255,255,.03))!important}.item-card.rarity-Легендарный,.item-detail-card.rarity-Легендарный{border-color:rgba(255,209,102,.82)!important;background:linear-gradient(145deg,rgba(255,209,102,.20),rgba(255,255,255,.035))!important}.item-card.rarity-Обычный:before{background:#9da3b7}.item-card.rarity-Необычный:before{background:#06d6a0}.item-card.rarity-Редкий:before{background:#118ab2}.item-card.rarity-Эпический:before{background:#7b2cbf}.item-card.rarity-Легендарный:before{background:#ffd166}.loot-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.loot-tab{width:auto!important;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}.loot-tab.active{background:linear-gradient(135deg,#7b2cbf,#118ab2);outline:2px solid rgba(255,209,102,.42)}.loot-tab small{padding:2px 6px;margin-left:4px;border-radius:999px;background:rgba(0,0,0,.22)}.result-loot-owner{display:grid;gap:10px}.result-loot-owner h3{margin-bottom:0}.friend-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;margin:8px 0;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.045)}.friend-row>div{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.friend-row button{padding:8px 10px;border-radius:12px}.friend-pill{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap}.friend-pill button{width:auto;padding:6px 8px;font-size:12px}.request-wait{padding:10px;margin:8px 0;border-radius:14px;background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.22);color:#ffe5a0}.v6-friends{display:grid;grid-template-columns:1.2fr .9fr 1fr;gap:16px}.v6-trade .trade-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.trade-side{border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:12px;background:rgba(255,255,255,.045)}.trade-countdown{padding:12px;margin:12px 0;border-radius:16px;background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.24);text-align:center;font-weight:900}.profile-mini{text-align:center}.profile-mini .avatar{margin:0 auto 10px}
@media(max-width:820px){#toast-root{right:7px!important;top:62px!important;width:min(340px,calc(100vw - 14px))}.toast{width:auto!important;min-width:min(260px,calc(100vw - 14px))!important;font-size:12.5px!important;padding:10px 11px!important}#notice-root{right:7px;top:62px;width:min(340px,calc(100vw - 14px))}.timed-notice{border-radius:16px;padding:10px}.notice-actions button{padding:8px;font-size:12px}.compact-battle-top{min-height:56px!important;padding:6px 8px!important}.compact-battle-top .top-title h1{font-size:15px}.compact-battle-top .top-title p{font-size:10px}.compact-battle-top .hamburger{width:42px;height:42px;border-radius:13px;font-size:20px}.battle-top.compact-battle-top + .v6-battle{height:calc(100dvh - 56px)}.v6-battle{max-width:430px!important;padding:6px!important;gap:6px!important;grid-template-rows:auto 76px minmax(188px,1fr) 46px minmax(78px,94px);overflow:hidden}.v6-battle .single-turn-timer{padding:7px 8px!important;border-radius:14px}.v6-battle .turn-head b{font-size:13px}.v6-battle .turn-head p{font-size:10px!important;line-height:1.15}.v6-battle #turn-time{font-size:12px}.v6-battle .bar{height:8px}.v6-monster-top{grid-template-columns:54px minmax(0,1fr)!important;gap:8px!important;padding:8px!important;border-radius:16px!important}.v6-monster-top .monster-portrait.battle{width:50px!important;height:50px!important;border-radius:15px!important}.v6-monster-top .monster-portrait.battle span{font-size:32px!important}.v6-monster-top h2{font-size:14px!important;margin:0 0 4px}.v6-monster-top p,.v6-monster-top small{font-size:10.5px!important;line-height:1.15}.v6-party-panel{padding:7px!important;border-radius:16px!important}.battle-section-title{margin-bottom:5px}.battle-section-title h2{font-size:13px}.battle-section-title .small{font-size:10px;padding:6px 7px}.v6-party-grid{gap:6px;height:calc(100% - 29px)}.v6-player{padding:6px!important;border-radius:14px!important;gap:3px}.v6-player .player-avatar{width:32px;height:32px;border-radius:11px;font-size:20px}.v6-player h3{font-size:12.5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v6-player small{font-size:9.8px}.v6-player em{display:none}.v6-player .bar{height:7px;width:88%}.v6-player.acted:after{font-size:9px;padding:2px 5px;right:5px;top:4px}.v6-actions{gap:6px!important}.v6-actions button{min-height:42px!important;padding:7px!important;font-size:12.5px!important;border-radius:12px}.v6-ability-panel{position:fixed!important;left:7px!important;right:7px!important;bottom:70px!important;width:auto!important;max-height:58vh!important;padding:10px!important;border-radius:17px!important;overflow:auto}.ability-choice-grid{grid-template-columns:1fr!important;gap:7px}.v6-ability-panel .mini-ability{min-height:74px;padding:8px!important}.v6-battle-log{padding:7px!important;border-radius:16px!important}.v6-battle-log h3{font-size:12px;margin-bottom:4px}.battle-log-scroll{height:calc(100% - 20px)}.v6-battle-log p{font-size:10.5px!important;line-height:1.18!important;margin:4px 0!important;padding:6px!important}.item-card{grid-template-columns:50px minmax(0,1fr) 52px!important;min-height:96px!important}.item-body h3{font-size:13.5px}.item-description{font-size:11px}.item-actions{grid-template-columns:1fr 1fr!important}.v6-friends{grid-template-columns:1fr;gap:10px}.friend-row{display:grid}.friend-row>div{justify-content:stretch}.friend-row button{flex:1}.v6-trade .trade-grid{grid-template-columns:1fr}.modal{max-height:86dvh;padding:15px;border-radius:20px}.loot-tabs{gap:6px}.loot-tab{padding:8px 9px;font-size:12px}}

/* ===== v7: стабильный бой, умения, вход, мобильная аккуратность ===== */
.v7-login{position:relative;overflow:hidden;background:radial-gradient(circle at 20% 10%,rgba(123,44,191,.35),transparent 34%),radial-gradient(circle at 80% 18%,rgba(17,138,178,.28),transparent 32%),#0d0f18}.login-aura{position:absolute;inset:-20%;background:conic-gradient(from 90deg,transparent,rgba(255,209,102,.12),transparent,rgba(6,214,160,.1),transparent);filter:blur(18px);animation:v7Aura 9s linear infinite}.v7-login-card{position:relative;z-index:1;border-radius:32px;background:linear-gradient(145deg,rgba(34,37,58,.94),rgba(13,15,24,.98));border:1px solid rgba(255,255,255,.16);box-shadow:0 28px 90px rgba(0,0,0,.52),inset 0 0 0 1px rgba(255,255,255,.04)}.class-grid-v7 .class-pick{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:linear-gradient(145deg,rgba(36,40,60,.96),rgba(23,25,38,.98));min-height:150px}.class-grid-v7 .class-pick:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 0,rgba(255,255,255,.13),transparent 32%);pointer-events:none}.class-grid-v7 .class-pick em{display:block;margin-top:10px;color:#ffd166;font-style:normal;font-size:12px}.login-main-btn{width:100%;margin-top:8px;box-shadow:0 10px 26px rgba(6,214,160,.18)}@keyframes v7Aura{to{transform:rotate(360deg)}}
.v7-battle-top{min-height:62px;padding:8px 14px}.v7-battle{height:calc(100dvh - 62px);max-width:1120px;margin:0 auto;padding:10px;display:grid;grid-template-columns:1fr;grid-template-rows:auto 106px minmax(178px,1fr) 62px minmax(105px,132px);gap:9px;overflow:hidden}.v7-timer{padding:9px 12px!important;border-radius:18px;background:linear-gradient(145deg,rgba(32,35,54,.98),rgba(14,16,25,.98));border:1px solid rgba(255,255,255,.13);box-shadow:0 8px 24px rgba(0,0,0,.22)}.v7-timer.monster-turn{border-color:rgba(239,71,111,.35)}.v7-timer.player-turn{border-color:rgba(6,214,160,.28)}.v7-timer .turn-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.v7-timer b{font-size:15px}.v7-timer p{margin:2px 0 0;color:var(--muted);font-size:12px}.v7-timer #turn-time{font-weight:900;color:var(--gold);white-space:nowrap}.v7-monster-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;min-height:0;padding:10px 12px!important;border-radius:20px;background:linear-gradient(145deg,rgba(102,24,38,.35),rgba(27,29,42,.95));border:1px solid rgba(239,71,111,.28);box-shadow:0 14px 34px rgba(0,0,0,.25)}.v7-monster-card.dead{opacity:.35;transform:scale(.985)}.v7-monster-card .monster-portrait.battle{width:82px;height:82px;border-radius:22px;margin:0}.v7-monster-card .monster-portrait.battle span{font-size:52px}.v7-monster-card h2{margin:0 0 6px;font-size:20px}.v7-monster-card p{margin:6px 0 3px}.v7-monster-card small{color:var(--muted)}.v7-party-panel{min-height:0;overflow:hidden;padding:10px!important;border-radius:20px!important}.v7-party-grid{height:calc(100% - 34px);display:grid;gap:9px;min-height:0}.v7-party-grid.count-1{grid-template-columns:1fr;grid-template-rows:1fr}.v7-party-grid.count-2{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.v7-party-grid.count-3,.v7-party-grid.count-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.v7-player{min-height:0;display:grid;grid-template-rows:auto auto 10px auto 10px auto auto;align-content:center;justify-items:center;gap:4px;text-align:center;border-radius:18px;padding:8px;background:linear-gradient(145deg,rgba(17,138,178,.2),rgba(27,29,42,.94));border:1px solid rgba(255,255,255,.12);overflow:hidden;position:relative}.v7-player.self{border-color:rgba(255,209,102,.48);box-shadow:inset 0 0 0 1px rgba(255,209,102,.1)}.v7-player.acted:after{content:'готов';position:absolute;right:8px;top:7px;padding:3px 7px;border-radius:999px;background:rgba(6,214,160,.18);color:#8bf8d3;font-size:10px;font-weight:900}.v7-player .player-avatar{font-size:26px;width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}.v7-player h3{margin:0;font-size:15px;line-height:1.1;max-width:96%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v7-player small{font-size:12px;color:#eef1ff}.v7-player em{font-style:normal;color:var(--muted);font-size:11px}.v7-player .bar{width:min(270px,92%);height:9px}.spectator-note{position:absolute;left:14px;right:14px;bottom:14px;padding:8px 10px;border-radius:14px;background:rgba(255,209,102,.14);border:1px solid rgba(255,209,102,.28);font-size:12px;color:#ffe8a8}.v7-actions{position:relative;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:stretch;margin:0!important}.v7-actions button{min-height:52px;border-radius:16px}.v7-ability-panel{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%) scale(.98);width:min(720px,calc(100vw - 30px));max-height:min(520px,72vh);opacity:0;pointer-events:none;overflow:auto;padding:16px;border-radius:24px;background:linear-gradient(145deg,rgba(27,29,42,.98),rgba(13,15,24,.98));border:1px solid rgba(255,255,255,.16);box-shadow:0 24px 70px rgba(0,0,0,.5);transition:.16s}.v7-ability-panel.open{opacity:1;pointer-events:auto;transform:translateX(-50%) scale(1)}.v7-ability-panel .mini-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.v7-ability-panel .ability-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v7-ability-panel .mini-ability{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:start;text-align:left;min-height:105px;padding:11px;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.1);box-shadow:none}.v7-ability-panel .mini-ability span{font-size:30px}.v7-ability-panel .mini-ability b{font-size:14px}.v7-ability-panel .mini-ability small{color:#ffd166;font-size:11.5px}.v7-ability-panel .mini-ability p{grid-column:2;margin:2px 0 0;color:#d6d9eb;font-size:11.5px;line-height:1.25}.v7-ability-panel .mini-ability.locked{opacity:.55}.v7-battle-log{min-height:0;overflow:hidden;padding:9px!important;border-radius:18px!important}.v7-battle-log h3{margin:0 0 6px;font-size:14px}.battle-log-scroll{height:calc(100% - 25px);overflow:auto;display:flex;flex-direction:column;padding-right:5px}.battle-log-scroll p{flex:0 0 auto;font-size:12px!important;line-height:1.25!important;margin:4px 0!important;padding:7px 9px!important;background:rgba(255,255,255,.052);border-radius:10px;border-left:3px solid rgba(255,209,102,.24)}.battle-log-scroll::-webkit-scrollbar,.v7-ability-panel::-webkit-scrollbar{width:7px}.battle-log-scroll::-webkit-scrollbar-thumb,.v7-ability-panel::-webkit-scrollbar-thumb{background:linear-gradient(#7b2cbf,#118ab2);border-radius:999px}.battle-log-scroll::-webkit-scrollbar-track,.v7-ability-panel::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px}.compact-help-row{grid-template-columns:1fr auto}.v7-skill-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:12px;align-items:center}.v7-skill-card.locked{opacity:.58}.v7-skill-card.equipped{border-color:rgba(6,214,160,.42);background:linear-gradient(145deg,rgba(6,214,160,.12),rgba(27,29,42,.95))}.v7-skill-card .ability-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:rgba(255,255,255,.08);font-size:30px}.v7-abilities{display:grid;grid-template-columns:1fr 1fr;gap:16px}.v7-abilities .locked-abilities{grid-column:1/-1}.v7-result .result-banner{position:relative;overflow:hidden}.v7-result.win .result-banner{background:linear-gradient(135deg,rgba(6,214,160,.18),rgba(255,209,102,.14));border-color:rgba(255,209,102,.32)}.v7-result.lose .result-banner{background:linear-gradient(135deg,rgba(239,71,111,.25),rgba(27,29,42,.9));border-color:rgba(239,71,111,.38)}
@media(max-width:820px){.v7-battle-top{min-height:54px!important;padding:6px 8px!important}.v7-battle-top .hamburger{width:40px;height:40px;border-radius:12px;font-size:18px}.v7-battle-top .top-title h1{font-size:15px}.v7-battle-top .top-title p{font-size:10px}.v7-battle{height:calc(100dvh - 54px);max-width:440px;padding:6px;gap:5px;grid-template-rows:58px 72px minmax(164px,1fr) 42px 84px}.v7-timer{padding:6px 8px!important;border-radius:14px}.v7-timer b{font-size:12.5px}.v7-timer p{font-size:9.7px!important;line-height:1.15;display:block!important}.v7-timer #turn-time{font-size:11.5px}.v7-timer .bar{height:7px}.v7-monster-card{grid-template-columns:50px minmax(0,1fr);gap:7px;padding:7px!important;border-radius:15px}.v7-monster-card .monster-portrait.battle{width:46px!important;height:46px!important;border-radius:14px!important}.v7-monster-card .monster-portrait.battle span{font-size:30px!important}.v7-monster-card h2{font-size:13.5px;margin:0 0 3px}.v7-monster-card p,.v7-monster-card small{font-size:9.8px!important;line-height:1.12;margin:2px 0}.v7-monster-card .bar{height:7px}.v7-party-panel{padding:6px!important;border-radius:15px!important}.battle-section-title{margin-bottom:4px}.battle-section-title h2{font-size:12px}.battle-section-title .small{font-size:9.5px;padding:5px 6px}.v7-party-grid{height:calc(100% - 25px);gap:5px}.v7-player{padding:5px!important;border-radius:12px;gap:2px;grid-template-rows:auto auto 6px auto 6px auto}.v7-player .player-avatar{width:28px;height:28px;border-radius:10px;font-size:18px}.v7-player h3{font-size:11.4px}.v7-player small{font-size:9px}.v7-player em{display:none}.v7-player .bar{height:6px;width:88%}.v7-player.acted:after{font-size:8.5px;padding:2px 4px;right:4px;top:3px}.spectator-note{left:8px;right:8px;bottom:8px;font-size:9.5px;padding:6px}.v7-actions{gap:6px!important}.v7-actions button{min-height:40px!important;padding:6px!important;font-size:12px;border-radius:11px}.v7-ability-panel{position:fixed;left:7px;right:7px;bottom:58px;transform:translateY(8px) scale(.98);width:auto;max-height:64vh;padding:10px;border-radius:17px}.v7-ability-panel.open{transform:none}.v7-ability-panel .ability-choice-grid{grid-template-columns:1fr;gap:7px}.v7-ability-panel .mini-ability{min-height:82px;padding:8px;grid-template-columns:34px minmax(0,1fr)}.v7-ability-panel .mini-ability span{font-size:24px}.v7-ability-panel .mini-ability b{font-size:12.5px}.v7-ability-panel .mini-ability small,.v7-ability-panel .mini-ability p{font-size:10.5px}.v7-battle-log{padding:6px!important;border-radius:14px!important}.v7-battle-log h3{font-size:11.5px;margin-bottom:3px}.battle-log-scroll{height:calc(100% - 18px)}.battle-log-scroll p{font-size:9.8px!important;line-height:1.13!important;margin:3px 0!important;padding:5px 6px!important}.v7-abilities{grid-template-columns:1fr}.v7-skill-card{grid-template-columns:44px minmax(0,1fr);gap:8px}.v7-skill-card .row-actions{grid-column:1/-1}.v7-skill-card .row-actions button{width:100%}.v7-skill-card .ability-icon{width:40px;height:40px;font-size:24px}.class-grid-v7{grid-template-columns:1fr!important}.class-grid-v7 .class-pick{min-height:116px}.v7-login-card{border-radius:22px;padding:16px}.item-card{max-width:100%;overflow:hidden}.item-card .item-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}


/* ===================== V8 FIX: бой не должен расползаться ===================== */
.v8-battle, .v8-battle *{min-width:0}
.v8-battle{height:calc(100dvh - 62px)!important;width:min(1120px,100%)!important;margin:0 auto!important;padding:10px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:72px 112px minmax(170px,1fr) 66px minmax(110px,138px)!important;gap:9px!important;overflow:hidden!important;grid-template-areas:none!important}
.v8-battle>.battle-timer,.v8-battle>.monster-battle-card,.v8-battle>.party-panel,.v8-battle>.battle-actions,.v8-battle>.battle-log{grid-area:auto!important;position:relative!important;inset:auto!important;max-width:100%!important}
.v8-timer{height:72px!important;overflow:hidden!important}.v8-timer .turn-head{height:42px!important}.v8-timer .turn-head p{display:block;max-width:720px;overflow:hidden;line-height:1.18}.v8-timer .bar.turn{height:10px!important;margin-top:6px!important}
.v8-monster-card{height:112px!important;overflow:hidden!important;display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;align-items:center!important}.v8-monster-card .monster-portrait.battle{width:78px!important;height:78px!important}.v8-monster-card .monster-portrait.battle span{font-size:50px!important}
.v8-party-panel{height:100%!important;overflow:hidden!important}.v8-party-grid{height:calc(100% - 34px)!important;display:grid!important;gap:9px!important;overflow:hidden!important}.v8-party-grid.count-1{grid-template-columns:1fr!important;grid-template-rows:1fr!important}.v8-party-grid.count-2{grid-template-columns:1fr 1fr!important;grid-template-rows:1fr!important}.v8-party-grid.count-3,.v8-party-grid.count-4{grid-template-columns:1fr 1fr!important;grid-template-rows:1fr 1fr!important}.v8-party-grid.count-3 .v7-player:nth-child(3){grid-column:1!important;grid-row:2!important}
.v8-battle .v7-player{height:100%!important;min-height:0!important;overflow:hidden!important}.v8-actions{height:66px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:stretch!important;margin:0!important;overflow:visible!important}.v8-actions>button{height:58px!important;min-height:0!important;padding:10px!important;border-radius:16px!important;font-size:16px!important}.v8-battle-log{height:100%!important;min-height:0!important;overflow:hidden!important}.v8-battle-log h3{height:22px!important;margin:0 0 6px!important}.v8-battle-log .battle-log-scroll{height:calc(100% - 28px)!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important}.v8-battle-log .battle-log-scroll p{flex:0 0 auto!important;white-space:normal!important;word-break:break-word!important}
/* умения — вкладки */
.abilities-tabs-panel{display:grid;gap:12px}.ability-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;border:1px solid var(--border);border-radius:22px;background:rgba(255,255,255,.04);position:sticky;top:88px;z-index:5}.ability-tabs button{box-shadow:none;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08)}.ability-tabs button.active{background:linear-gradient(135deg,rgba(123,44,191,.9),rgba(17,138,178,.75));border-color:rgba(255,255,255,.18)}.ability-tabs span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:6px;border-radius:999px;background:rgba(0,0,0,.25);color:var(--gold)}.ability-tab-page{display:none}.ability-tab-page.active{display:block}.v8-skill-card{display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;border-radius:20px!important}.v8-skill-card .skill-main h3{margin:0 0 5px}.v8-skill-card .skill-main p{margin:0 0 7px;color:#dfe3f7}.v8-skill-card.equipped{border-color:rgba(6,214,160,.42)!important;background:linear-gradient(145deg,rgba(6,214,160,.13),rgba(27,29,42,.94))!important}.v8-skill-card.locked{opacity:.6;filter:grayscale(.25)}
/* вход/регистрация */
.v8-auth .auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.v8-auth .auth-tabs button{background:rgba(255,255,255,.07);border:1px solid var(--border)}.v8-auth .auth-tabs button.active{background:linear-gradient(135deg,#2bb673,#118ab2);color:white}.v8-auth .register-extra{display:grid;gap:12px}.v8-auth .register-extra[hidden]{display:none!important}.v8-login-card{overflow:hidden;position:relative}.v8-login-card:before{content:'';position:absolute;inset:-80px auto auto -80px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,209,102,.22),transparent 70%);pointer-events:none}.v8-auth input[type=password]{letter-spacing:.04em}
@media(max-width:820px){
  .v8-battle-top{min-height:50px!important;padding:5px 8px!important}.v8-battle{height:calc(100dvh - 50px)!important;max-width:430px!important;padding:5px!important;gap:5px!important;grid-template-rows:54px 66px minmax(150px,1fr) 42px 92px!important;overflow:hidden!important}.v8-timer{height:54px!important;padding:6px 8px!important}.v8-timer .turn-head{height:31px!important;align-items:start!important}.v8-timer b{font-size:12px!important}.v8-timer p{font-size:9px!important;line-height:1.05!important;max-height:21px!important}.v8-timer #turn-time{font-size:11px!important}.v8-timer .bar.turn{height:6px!important;margin-top:3px!important}.v8-monster-card{height:66px!important;grid-template-columns:44px minmax(0,1fr)!important;gap:6px!important;padding:6px!important;border-radius:13px!important}.v8-monster-card .monster-portrait.battle{width:40px!important;height:40px!important;border-radius:12px!important}.v8-monster-card .monster-portrait.battle span{font-size:26px!important}.v8-monster-card h2{font-size:12.5px!important;margin:0 0 2px!important}.v8-monster-card p,.v8-monster-card small{font-size:8.8px!important;line-height:1.05!important;margin:1px 0!important}.v8-monster-card .bar{height:5px!important}.v8-party-panel{padding:5px!important;border-radius:13px!important}.v8-party-grid{height:calc(100% - 22px)!important;gap:4px!important}.v8-party-grid.count-1{grid-template-columns:1fr!important}.v8-party-grid.count-2{grid-template-columns:1fr 1fr!important}.v8-party-grid.count-3,.v8-party-grid.count-4{grid-template-columns:1fr 1fr!important;grid-template-rows:1fr 1fr!important}.v8-battle .battle-section-title{height:19px!important;margin:0 0 3px!important}.v8-battle .battle-section-title h2{font-size:10.5px!important}.v8-battle .battle-section-title button{font-size:8.5px!important;padding:3px 5px!important;border-radius:8px!important}.v8-battle .v7-player{padding:4px!important;border-radius:10px!important;gap:1px!important;grid-template-rows:auto auto 5px auto 5px auto!important}.v8-battle .v7-player .player-avatar{width:24px!important;height:24px!important;border-radius:8px!important;font-size:15px!important}.v8-battle .v7-player h3{font-size:10px!important;line-height:1!important}.v8-battle .v7-player small{font-size:8px!important;line-height:1!important}.v8-battle .v7-player .bar{height:5px!important;width:88%!important}.v8-actions{height:42px!important;gap:5px!important}.v8-actions>button{height:38px!important;min-height:0!important;font-size:11.5px!important;padding:5px!important;border-radius:10px!important}.v8-battle-log{padding:5px!important;border-radius:12px!important}.v8-battle-log h3{height:16px!important;font-size:10.5px!important;margin:0 0 3px!important}.v8-battle-log .battle-log-scroll{height:calc(100% - 18px)!important}.v8-battle-log .battle-log-scroll p{font-size:9px!important;line-height:1.08!important;margin:2px 0!important;padding:4px 5px!important;border-radius:8px!important}.v8-ability-panel{bottom:48px!important;max-height:70vh!important}.ability-tabs{grid-template-columns:1fr;position:static;border-radius:16px;padding:6px}.ability-tabs button{font-size:12px;padding:8px}.v8-skill-card{grid-template-columns:42px minmax(0,1fr)!important;gap:8px!important;padding:9px!important;border-radius:14px!important}.v8-skill-card .row-actions{grid-column:1/-1!important}.v8-skill-card .row-actions button{width:100%!important}.v8-skill-card .ability-icon{width:38px!important;height:38px!important;font-size:23px!important}.v8-skill-card .skill-main h3{font-size:14px}.v8-skill-card .skill-main p,.v8-skill-card .skill-main small{font-size:11px}.v8-auth .login-card{padding:14px!important;border-radius:20px!important}.v8-auth .logo{font-size:24px}.v8-auth h2{font-size:19px}.v8-auth p{font-size:12px}.v8-auth .auth-tabs button{padding:8px}.v8-auth label{font-size:12px}.v8-auth input,.v8-auth select{padding:10px!important}.v8-auth .login-main-btn{font-size:14px!important;padding:11px!important}
}

/* ===================== V9 FIX: компактный бой, профиль телефона, обмен 4 предмета ===================== */
.v9-battle-top{min-height:58px!important;padding:7px 12px!important}
.v9-battle{height:calc(100dvh - 58px)!important;width:min(960px,100%)!important;margin:0 auto!important;padding:9px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:62px 90px 218px 56px minmax(116px,1fr)!important;gap:8px!important;overflow:hidden!important;grid-template-areas:none!important}
.v9-battle>.battle-timer,.v9-battle>.monster-battle-card,.v9-battle>.party-panel,.v9-battle>.battle-actions,.v9-battle>.battle-log{grid-area:auto!important;position:relative!important;inset:auto!important;max-width:100%!important;min-width:0!important}
.v9-timer{height:62px!important;padding:8px 12px!important;border-radius:18px!important;overflow:hidden!important}.v9-timer .turn-head{height:34px!important;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.v9-timer b{font-size:15px!important}.v9-timer p{font-size:11px!important;line-height:1.15!important;margin:2px 0 0!important;max-height:26px!important;overflow:hidden}.v9-timer #turn-time{font-size:15px!important;color:var(--gold);font-weight:900}.v9-timer .bar.turn{height:8px!important;margin-top:5px!important}
.v9-monster-card{height:90px!important;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important;padding:10px!important;border-radius:18px!important;overflow:hidden!important}.v9-monster-card .monster-portrait.battle{width:58px!important;height:58px!important;border-radius:16px!important;margin:0!important}.v9-monster-card .monster-portrait.battle span{font-size:38px!important}.v9-monster-card h2{font-size:17px!important;margin:0 0 4px!important}.v9-monster-card p,.v9-monster-card small{font-size:11px!important;line-height:1.15!important;margin:2px 0!important}.v9-monster-card .bar{height:7px!important}
.v9-party-panel{height:218px!important;min-height:0!important;overflow:hidden!important;padding:10px!important;border-radius:18px!important}.v9-battle .battle-section-title{height:26px!important;margin:0 0 7px!important}.v9-battle .battle-section-title h2{font-size:14px!important;margin:0}.v9-battle .battle-section-title button{font-size:11px!important;padding:5px 8px!important;border-radius:10px!important}.v9-party-grid{height:calc(100% - 33px)!important;display:grid!important;gap:8px!important;overflow:hidden!important;align-items:center!important;justify-items:stretch!important}.v9-party-grid.count-1{grid-template-columns:minmax(220px,420px)!important;grid-template-rows:1fr!important;justify-content:center!important}.v9-party-grid.count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:1fr!important}.v9-party-grid.count-3,.v9-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,1fr)!important}.v9-party-grid.count-3 .v9-player:nth-child(3){grid-column:1!important;grid-row:2!important}
.v9-player{height:100%!important;max-height:156px!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto 1fr auto!important;place-items:center!important;align-content:center!important;text-align:center!important;gap:3px!important;padding:9px!important;border-radius:16px!important;overflow:hidden!important}.v9-player .player-avatar{width:38px!important;height:38px!important;border-radius:13px!important;display:grid!important;place-items:center!important;font-size:25px!important;margin:0 auto!important;background:rgba(255,255,255,.08)!important}.v9-player h3{font-size:14px!important;line-height:1.05!important;margin:0!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v9-player .player-bars{width:100%;display:grid;gap:2px!important}.v9-player .bar{height:6px!important;width:86%!important;max-width:360px!important;margin:0 auto!important}.v9-player small{font-size:10px!important;line-height:1!important}.v9-player em{font-size:10px!important;line-height:1!important;margin-top:1px!important;color:var(--muted)}
.v9-actions{height:56px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;align-items:stretch!important;overflow:visible!important;margin:0!important}.v9-actions>button{height:50px!important;min-height:0!important;padding:8px!important;border-radius:15px!important;font-size:15px!important}.v9-ability-panel{position:absolute!important;left:0!important;right:0!important;bottom:64px!important;max-height:360px!important;overflow:auto!important;border:1px solid rgba(255,255,255,.16)!important;background:#191c2b!important;border-radius:20px!important;padding:12px!important;box-shadow:var(--shadow)!important}.v9-ability-panel .ability-choice-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:10px!important}.v9-ability-panel .mini-ability{min-height:112px!important;text-align:left!important}
.v9-battle-log{height:100%!important;min-height:0!important;overflow:hidden!important;padding:9px!important;border-radius:16px!important}.v9-battle-log h3{height:20px!important;font-size:13px!important;margin:0 0 5px!important}.v9-battle-log .battle-log-scroll{height:calc(100% - 25px)!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important;padding-right:4px!important}.v9-battle-log .battle-log-scroll p{flex:0 0 auto!important;font-size:11px!important;line-height:1.18!important;margin:3px 0!important;padding:6px 8px!important;border-radius:10px!important;white-space:normal!important;word-break:break-word!important}.v9-battle-log .battle-log-scroll::-webkit-scrollbar,.v9-ability-panel::-webkit-scrollbar,.modal::-webkit-scrollbar{width:7px}.v9-battle-log .battle-log-scroll::-webkit-scrollbar-thumb,.v9-ability-panel::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb{background:linear-gradient(#7b2cbf,#118ab2);border-radius:999px}.v9-battle-log .battle-log-scroll::-webkit-scrollbar-track,.v9-ability-panel::-webkit-scrollbar-track,.modal::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px}
/* профиль на телефоне */
@media(max-width:820px){.profile-layout{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.profile-card,.equipment-panel,.paperdoll.fancy{padding:10px!important;border-radius:16px!important;position:static!important;min-height:0!important}.profile-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.profile-stats .mini-card{margin:0!important;font-size:11px!important;padding:7px!important}.avatar-ring{width:88px!important;height:88px!important;border-radius:26px!important;padding:7px!important;margin-bottom:7px!important}.avatar-ring .avatar{font-size:44px!important;border-radius:20px!important}.paperdoll.fancy h2{font-size:17px!important;margin:5px 0}.paperdoll.fancy p{font-size:11px!important;margin:4px 0}.slot-grid{grid-template-columns:1fr 1fr!important;gap:7px!important}.equip-slot{min-height:92px!important;padding:8px!important;border-radius:14px!important;gap:3px!important}.equip-slot .slot-icon{font-size:24px!important}.equip-slot b{font-size:12px!important}.equip-slot small,.equip-slot em{font-size:10px!important;line-height:1.1!important}.equipment-panel h2{font-size:15px!important}.equipment-panel .muted{font-size:11px!important}}
/* обмен */
.trade-waiting{text-align:center;display:grid;gap:10px;place-items:center}.loader-ring{width:72px;height:72px;border-radius:50%;border:6px solid rgba(255,255,255,.12);border-top-color:var(--gold);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.v9-trade .trade-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.v9-trade .trade-side{padding:12px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.045)}.trade-offer-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;margin:10px 0}.trade-offer-slot{min-height:118px;border:1px dashed rgba(255,255,255,.16);border-radius:16px;background:rgba(0,0,0,.12);display:grid;place-items:center;overflow:hidden}.trade-offer-slot>span{font-size:22px;color:rgba(255,255,255,.22);font-weight:900}.trade-offer-slot>small{color:var(--muted)}.trade-offer-slot.filled{border-style:solid;background:rgba(255,255,255,.04)}.trade-offer-slot .item-card{width:100%;height:100%;margin:0!important;padding:7px!important;border-radius:14px!important}.trade-offer-slot .item-description,.trade-offer-slot .item-stats-line{display:none!important}.trade-offer-slot .item-actions{margin-top:4px}.trade-bag-list{max-height:60vh;overflow:auto;padding-right:5px}.trade-result .result-banner{text-align:center}.trade-result-cols{margin:12px 0}@media(max-width:820px){.v9-battle-top{min-height:48px!important;padding:5px 7px!important}.v9-battle-top .hamburger{width:38px!important;height:38px!important;font-size:17px!important}.v9-battle-top .top-title h1{font-size:14px!important}.v9-battle-top .top-title p{font-size:9.5px!important}.v9-battle{height:calc(100dvh - 48px)!important;max-width:430px!important;padding:5px!important;gap:5px!important;grid-template-rows:48px 58px 138px 40px minmax(92px,1fr)!important;overflow:hidden!important}.v9-timer{height:48px!important;padding:5px 7px!important;border-radius:13px!important}.v9-timer .turn-head{height:28px!important}.v9-timer b{font-size:11.5px!important}.v9-timer p{font-size:8.7px!important;line-height:1.05!important;max-height:19px!important}.v9-timer #turn-time{font-size:10.5px!important}.v9-timer .bar.turn{height:5px!important;margin-top:3px!important}.v9-monster-card{height:58px!important;grid-template-columns:38px minmax(0,1fr)!important;gap:5px!important;padding:5px!important;border-radius:12px!important}.v9-monster-card .monster-portrait.battle{width:34px!important;height:34px!important;border-radius:10px!important}.v9-monster-card .monster-portrait.battle span{font-size:22px!important}.v9-monster-card h2{font-size:11.8px!important;margin:0 0 1px!important}.v9-monster-card p,.v9-monster-card small{font-size:8px!important;line-height:1!important;margin:1px 0!important}.v9-monster-card .bar{height:4px!important}.v9-party-panel{height:138px!important;padding:5px!important;border-radius:12px!important}.v9-battle .battle-section-title{height:18px!important;margin-bottom:3px!important}.v9-battle .battle-section-title h2{font-size:10px!important}.v9-battle .battle-section-title button{font-size:8px!important;padding:2px 5px!important;border-radius:7px!important}.v9-party-grid{height:calc(100% - 21px)!important;gap:4px!important}.v9-party-grid.count-1{grid-template-columns:minmax(150px,260px)!important}.v9-player{max-height:116px!important;padding:4px!important;border-radius:10px!important;gap:1px!important}.v9-player .player-avatar{width:24px!important;height:24px!important;border-radius:8px!important;font-size:15px!important}.v9-player h3{font-size:9.8px!important}.v9-player small{font-size:7.8px!important}.v9-player em{display:none!important}.v9-player .bar{height:4px!important;width:82%!important}.v9-actions{height:40px!important;gap:5px!important}.v9-actions>button{height:36px!important;font-size:11px!important;padding:4px!important;border-radius:9px!important}.v9-ability-panel{position:fixed!important;left:6px!important;right:6px!important;bottom:46px!important;max-height:68vh!important;border-radius:16px!important;padding:9px!important}.v9-ability-panel .ability-choice-grid{grid-template-columns:1fr!important;gap:7px!important}.v9-ability-panel .mini-ability{min-height:82px!important;padding:8px!important}.v9-battle-log{padding:5px!important;border-radius:11px!important}.v9-battle-log h3{height:15px!important;font-size:10px!important;margin:0 0 2px!important}.v9-battle-log .battle-log-scroll{height:calc(100% - 17px)!important}.v9-battle-log .battle-log-scroll p{font-size:8.5px!important;line-height:1.05!important;margin:2px 0!important;padding:4px 5px!important}.v9-trade .trade-grid,.trade-result-cols{grid-template-columns:1fr!important}.trade-offer-slot{min-height:92px}.trade-offer-slot .item-card{grid-template-columns:1fr!important}.trade-offer-slot .item-weight{display:none!important}.trade-offer-slot .item-icon-wrap{display:none!important}}


/* ================= V10 FIXES: компактный бой, правильные карточки, сундук и обмен ================= */
.v10-battle{max-width:760px!important;margin:0 auto!important;padding:10px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-areas:'timer' 'monster' 'party' 'actions' 'log'!important;gap:8px!important;min-height:auto!important;align-content:start!important;overflow:visible!important}.v10-timer{grid-area:timer!important;padding:9px 12px!important;border-radius:16px!important}.v10-timer .turn-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.v10-timer p{margin:3px 0 0!important;font-size:12px!important;line-height:1.25!important}.v10-timer #turn-time{font-weight:900;color:#ffe16a;white-space:nowrap}.v10-monster-card{grid-area:monster!important;display:grid!important;grid-template-columns:70px 1fr!important;gap:12px!important;align-items:center!important;padding:10px 12px!important;border-radius:18px!important;min-height:88px!important;background:linear-gradient(135deg,rgba(239,71,111,.16),rgba(27,29,42,.96))!important}.v10-monster-card .monster-portrait.battle{width:58px!important;height:58px!important;border-radius:16px!important;margin:0!important}.v10-monster-card .monster-portrait.battle span{font-size:38px!important}.v10-monster-card h2{font-size:18px!important;margin:0 0 4px!important}.v10-monster-card p{font-size:12px!important;margin:5px 0 2px!important}.v10-monster-card small{font-size:11px!important;color:var(--muted)!important}.v10-party-panel{grid-area:party!important;height:auto!important;min-height:0!important;padding:10px!important;border-radius:18px!important;overflow:hidden!important}.v10-party-panel .battle-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.v10-party-panel .battle-section-title h2{font-size:16px!important;margin:0!important}.v10-party-grid{display:grid!important;gap:8px!important;height:auto!important;min-height:0!important;max-height:none!important}.v10-party-grid.count-1{grid-template-columns:minmax(220px,360px)!important;justify-content:center!important}.v10-party-grid.count-2,.v10-party-grid.count-3,.v10-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v10-party-grid.count-3 .v10-player:nth-child(3){grid-column:1/2}.v10-player{position:relative!important;min-height:118px!important;max-height:none!important;padding:10px!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(17,138,178,.18),rgba(27,29,42,.92))!important;border:1px solid rgba(255,255,255,.12)!important;display:grid!important;grid-template-rows:auto 1fr auto!important;gap:5px!important;overflow:hidden!important}.v10-player.self{border-color:rgba(255,209,102,.55)!important}.v10-player.acted{opacity:.82!important}.v10-player .player-card-head{display:grid;place-items:center;gap:2px!important}.v10-player .player-avatar{width:38px!important;height:38px!important;border-radius:13px!important;font-size:24px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.12)!important;margin:0!important}.v10-player h3{font-size:14px!important;margin:0!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}.v10-player .player-bars{display:grid!important;gap:4px!important;align-content:center!important;width:100%!important}.v10-player .stat-row{display:grid!important;grid-template-columns:66px 1fr!important;gap:6px!important;align-items:center!important}.v10-player .stat-row span{font-size:11px!important;white-space:nowrap!important;color:#f4f4f7!important}.v10-player .bar{height:6px!important;width:100%!important}.v10-player em{font-style:normal!important;font-size:10px!important;color:var(--muted)!important;text-align:center!important}.v10-actions{grid-area:actions!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;height:auto!important;margin:0!important}.v10-actions>button{height:48px!important;font-size:16px!important;border-radius:16px!important;padding:8px!important}.v10-battle-log{grid-area:log!important;height:180px!important;max-height:180px!important;padding:10px!important;border-radius:18px!important;overflow:hidden!important}.v10-battle-log h3{font-size:15px!important;margin:0 0 7px!important;height:auto!important}.v10-battle-log .battle-log-scroll{height:136px!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-right:5px!important}.v10-battle-log .battle-log-scroll p{font-size:12px!important;line-height:1.25!important;margin:4px 0!important;padding:7px 9px!important;border-radius:10px!important;background:rgba(255,255,255,.055)!important}.v10-battle-log .battle-log-scroll::-webkit-scrollbar,.modal::-webkit-scrollbar,.side::-webkit-scrollbar,.trade-bag-list::-webkit-scrollbar{width:6px}.v10-battle-log .battle-log-scroll::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb,.side::-webkit-scrollbar-thumb,.trade-bag-list::-webkit-scrollbar-thumb{background:linear-gradient(#ffd166,#06d6a0);border-radius:99px}.v10-ability-panel{z-index:80!important}.chest-location-card{border-color:rgba(255,209,102,.5)!important;background:linear-gradient(145deg,rgba(255,209,102,.14),rgba(27,29,42,.95))!important}.chest-transfer .item-card{min-width:0}.trade-offer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.trade-offer-slot{min-height:128px!important;overflow:hidden!important;border-radius:16px!important}.trade-offer-slot .item-card{height:100%!important;min-height:112px!important;grid-template-columns:44px minmax(0,1fr)!important;padding:7px!important;gap:6px!important}.trade-offer-slot .item-emblem{font-size:22px!important}.trade-offer-slot .item-type-label{font-size:8px!important}.trade-offer-slot .item-body h3{font-size:12px!important;margin:0 0 2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.trade-offer-slot .item-description{display:none!important}.trade-offer-slot .item-stats-line{font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.trade-offer-slot .item-weight{right:6px!important;top:5px!important;font-size:9px!important;padding:2px 5px!important}.trade-offer-slot .item-actions{margin-top:4px!important}.trade-offer-slot .item-actions button{font-size:10px!important;padding:5px 7px!important;border-radius:9px!important;max-width:100%!important}.trade-bag-list .item-card{max-width:100%}.profile-layout{align-items:start!important}.profile-card,.equipment-panel,.paperdoll.fancy{min-width:0!important}.item-card{min-width:0!important}.item-body{min-width:0!important}
@media(max-width:820px){.app-shell{padding-bottom:72px!important}.battle-top{min-height:64px!important}.battle-top .hamburger{width:48px!important;height:48px!important}.v10-battle{max-width:100%!important;padding:8px 10px!important;gap:7px!important}.v10-timer{padding:8px 10px!important}.v10-timer p{font-size:11px!important}.v10-monster-card{grid-template-columns:54px 1fr!important;min-height:76px!important;padding:8px 10px!important;gap:9px!important}.v10-monster-card .monster-portrait.battle{width:48px!important;height:48px!important;border-radius:14px!important}.v10-monster-card .monster-portrait.battle span{font-size:31px!important}.v10-monster-card h2{font-size:16px!important}.v10-monster-card p{font-size:11px!important}.v10-monster-card small{font-size:10px!important}.v10-party-panel{padding:8px!important}.v10-party-grid{gap:7px!important}.v10-party-grid.count-1{grid-template-columns:1fr!important}.v10-party-grid.count-2,.v10-party-grid.count-3,.v10-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v10-player{min-height:98px!important;padding:7px!important;border-radius:14px!important;gap:3px!important}.v10-player .player-avatar{width:30px!important;height:30px!important;font-size:20px!important;border-radius:10px!important}.v10-player h3{font-size:11.5px!important}.v10-player .stat-row{grid-template-columns:54px 1fr!important;gap:5px!important}.v10-player .stat-row span{font-size:9.5px!important}.v10-player .bar{height:5px!important}.v10-player em{font-size:9px!important}.v10-actions{gap:8px!important}.v10-actions>button{height:44px!important;font-size:15px!important}.v10-battle-log{height:150px!important;max-height:150px!important;padding:8px!important}.v10-battle-log h3{font-size:13px!important;margin-bottom:5px!important}.v10-battle-log .battle-log-scroll{height:116px!important}.v10-battle-log .battle-log-scroll p{font-size:11px!important;line-height:1.18!important;margin:3px 0!important;padding:6px 8px!important}.v10-ability-panel{left:8px!important;right:8px!important;bottom:74px!important;max-height:66vh!important}.profile-layout{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.paperdoll.fancy{position:relative!important;top:auto!important;min-height:0!important;padding:14px!important}.avatar-ring{width:118px!important;height:118px!important;border-radius:30px!important}.profile-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}.profile-stats .mini-card{font-size:12px!important;padding:8px!important}.slot-grid{grid-template-columns:1fr!important}.equip-slot{min-height:62px!important;padding:9px!important}.trade-grid,.trade-result-cols{grid-template-columns:1fr!important}.trade-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.trade-offer-slot{min-height:104px!important}.trade-offer-slot .item-card{min-height:98px!important;grid-template-columns:34px minmax(0,1fr)!important}.trade-offer-slot .item-emblem{font-size:18px!important}.trade-offer-slot .item-body h3{font-size:10.5px!important}.trade-offer-slot .item-stats-line{font-size:8px!important}.trade-offer-slot .item-actions button{font-size:9px!important;padding:4px 6px!important}.item-card{grid-template-columns:52px minmax(0,1fr)!important;padding:9px!important}.item-emblem{font-size:28px!important}.item-type-label{font-size:9px!important}.item-description{font-size:11px!important;line-height:1.2!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.item-weight{font-size:10px!important;padding:3px 6px!important}.item-actions button{font-size:11px!important;padding:7px 8px!important}.modal{max-height:84vh!important;padding:16px!important;border-radius:20px!important}}
@media(max-width:390px){.v10-battle{padding:7px!important}.v10-player{min-height:92px!important}.v10-player h3{font-size:10.5px!important}.v10-player .stat-row{grid-template-columns:48px 1fr!important}.v10-player .stat-row span{font-size:8.8px!important}.v10-battle-log{height:132px!important}.v10-battle-log .battle-log-scroll{height:98px!important}.v10-battle-log .battle-log-scroll p{font-size:10px!important;padding:5px 7px!important}.v10-actions>button{height:40px!important;font-size:14px!important}}


/* ================= V11: исправление боя, таймера, логов и редких предметов ================= */
.v11-battle{max-width:860px!important;gap:12px!important;grid-template-rows:auto auto auto auto auto!important;overflow:visible!important}.v11-party-panel{overflow:visible!important;margin-bottom:6px!important}.v11-party-grid{gap:10px!important;align-items:stretch!important}.v11-party-grid.count-1{grid-template-columns:minmax(260px,420px)!important;justify-content:center!important}.v11-party-grid.count-2,.v11-party-grid.count-3,.v11-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v11-party-grid.count-3 .v11-player:nth-child(3){grid-column:1/2!important}.v11-player{min-height:92px!important;padding:9px 10px!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:5px 9px!important;align-items:center!important}.v11-player .player-card-head{grid-column:1/3!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;text-align:left!important;gap:9px!important}.v11-player .player-avatar{width:38px!important;height:38px!important;font-size:23px!important;margin:0!important}.v11-player h3{text-align:left!important;font-size:13px!important}.v11-player .player-bars{grid-column:1/3!important;gap:4px!important}.v11-player .stat-row{grid-template-columns:76px 1fr!important}.v11-player em{grid-column:1/3!important;text-align:left!important;font-size:10.5px!important;color:#dfe7ff!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:99px!important;padding:3px 7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v11-actions{position:relative!important;margin-top:4px!important;z-index:6!important}.v11-battle-log{margin-top:10px!important;height:150px!important;max-height:150px!important;z-index:1!important}.v11-battle-log .battle-log-scroll{height:107px!important}.v11-battle-log .battle-log-scroll p{font-size:11.5px!important;line-height:1.2!important;margin:3px 0!important;padding:6px 8px!important}.v11-ability-panel{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:92px!important;transform:translateX(-50%)!important;width:min(720px,calc(100vw - 24px))!important;max-height:min(70vh,560px)!important;overflow:auto!important;padding:14px!important;border-radius:22px!important}.v11-ability-panel .ability-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v11-ability-panel .mini-ability{min-height:96px!important}.v11-ability-panel .mini-ability p{display:block!important;grid-column:2!important;margin:4px 0 0!important;color:#d5daee!important;font-size:11px!important;line-height:1.25!important}.rare-drop-cinematic{position:relative;text-align:center;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:26px;padding:26px;background:radial-gradient(circle at top,rgba(255,255,255,.22),rgba(27,29,42,.96) 54%);min-height:360px;display:grid;place-items:center;gap:8px}.rare-drop-cinematic:before{content:"";position:absolute;inset:-30%;background:conic-gradient(from 0deg,transparent,rgba(255,255,255,.55),transparent,rgba(255,209,102,.75),transparent);animation:rareSpin 2.6s linear infinite;opacity:.5}.rare-drop-cinematic>*{position:relative;z-index:1}.rare-item-icon{width:132px;height:132px;border-radius:36px;display:grid;place-items:center;font-size:76px;background:radial-gradient(circle,white,rgba(255,255,255,.18));box-shadow:0 0 26px rgba(255,255,255,.75),0 0 70px rgba(255,209,102,.36);animation:rarePulse 1.6s ease-in-out infinite}.rare-drop-cinematic h2{margin:6px 0 0;font-size:28px}.rare-drop-cinematic h3{margin:0;color:#ffe16a}.rare-drop-cinematic.rarity-Эпический{box-shadow:0 0 50px rgba(170,86,255,.42)}.rare-drop-cinematic.rarity-Легендарный,.rare-drop-cinematic.rarity-Мифический{box-shadow:0 0 70px rgba(255,209,102,.55)}.rare-card-shine{position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.7),transparent 24%),repeating-linear-gradient(120deg,transparent 0 18px,rgba(255,255,255,.06) 18px 22px);animation:rareWhite 2.2s ease-in-out infinite;pointer-events:none}@keyframes rareSpin{to{transform:rotate(360deg)}}@keyframes rarePulse{0%,100%{transform:scale(1) rotate(-1deg)}50%{transform:scale(1.08) rotate(1.5deg);filter:brightness(1.8)}}@keyframes rareWhite{0%,100%{opacity:.2}50%{opacity:.9}}
@media(max-width:820px){.v11-battle{padding:8px 10px 12px!important;gap:8px!important;max-width:100%!important}.v11-party-panel{margin-bottom:5px!important;padding:8px!important}.v11-party-grid{gap:7px!important}.v11-player{min-height:74px!important;padding:6px 7px!important;grid-template-columns:34px minmax(0,1fr)!important;gap:3px 6px!important;border-radius:13px!important}.v11-player .player-card-head{grid-template-columns:30px minmax(0,1fr)!important;gap:6px!important}.v11-player .player-avatar{width:29px!important;height:29px!important;font-size:18px!important;border-radius:9px!important}.v11-player h3{font-size:10.5px!important}.v11-player .stat-row{grid-template-columns:54px 1fr!important;gap:4px!important}.v11-player .stat-row span{font-size:8.6px!important}.v11-player .bar{height:5px!important}.v11-player em{font-size:8.7px!important;padding:2px 5px!important}.v11-actions{margin-top:3px!important}.v11-actions>button{height:42px!important;font-size:14px!important;border-radius:15px!important}.v11-battle-log{height:122px!important;max-height:122px!important;margin-top:8px!important;padding:8px!important}.v11-battle-log h3{font-size:12.5px!important;margin-bottom:4px!important}.v11-battle-log .battle-log-scroll{height:88px!important}.v11-battle-log .battle-log-scroll p{font-size:10px!important;line-height:1.15!important;margin:2.5px 0!important;padding:5px 7px!important}.v11-timer .turn-head{align-items:center!important}.v11-timer #turn-time{font-size:14px!important}.v11-ability-panel{bottom:62px!important;max-height:62vh!important;padding:10px!important;border-radius:18px!important}.v11-ability-panel .ability-choice-grid{grid-template-columns:1fr!important;gap:7px!important}.v11-ability-panel .mini-ability{min-height:74px!important;grid-template-columns:30px minmax(0,1fr)!important;padding:8px!important}.v11-ability-panel .mini-ability span{font-size:22px!important}.v11-ability-panel .mini-ability b{font-size:12px!important}.v11-ability-panel .mini-ability small,.v11-ability-panel .mini-ability p{font-size:10px!important}.rare-drop-cinematic{min-height:310px;padding:18px}.rare-item-icon{width:104px;height:104px;font-size:58px}.rare-drop-cinematic h2{font-size:22px}}
@media(max-width:390px){.v11-player{min-height:69px!important}.v11-player .stat-row{grid-template-columns:48px 1fr!important}.v11-battle-log{height:112px!important}.v11-battle-log .battle-log-scroll{height:80px!important}}


/* ================= V12: бой на телефоне/ПК, карточки игроков, логи ниже, пароль ================= */
.password-field{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;align-items:center}.password-field input{min-width:0}.password-eye{height:46px;padding:0;border-radius:14px;display:grid;place-items:center}.v12-active-battles{margin:14px 0}.v12-active-battle-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.active-battle-main{min-width:0}.active-battle-players{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.active-battle-players span{font-size:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:4px 8px;color:#dbe3ff}
.v11-battle.v12-battle,.v11-battle{max-width:900px!important;grid-template-areas:'timer' 'monster' 'party' 'actions' 'logs'!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto auto auto!important;align-items:start!important;gap:12px!important;overflow:visible!important}.v11-timer{grid-area:timer!important}.v11-monster-card{grid-area:monster!important}.v11-party-panel{grid-area:party!important;height:auto!important;min-height:0!important;overflow:visible!important;margin-bottom:0!important}.v11-actions{grid-area:actions!important}.v11-battle-log{grid-area:logs!important;position:relative!important;margin-top:14px!important;clear:both!important;z-index:1!important}.v11-party-grid{display:grid!important;gap:12px!important;align-items:stretch!important}.v11-party-grid.count-1{grid-template-columns:minmax(320px,560px)!important;justify-content:center!important}.v11-party-grid.count-2,.v11-party-grid.count-3,.v11-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v11-party-grid.count-3 .v11-player:nth-child(3){grid-column:1/2!important}.v11-player{min-height:112px!important;padding:12px 14px!important;border-radius:18px!important;grid-template-columns:52px minmax(0,1fr)!important;gap:7px 12px!important;background:linear-gradient(135deg,rgba(25,50,72,.96),rgba(23,29,43,.96))!important;border:1px solid rgba(255,255,255,.14)!important}.v11-player .player-card-head{grid-column:1/3!important;grid-template-columns:44px minmax(0,1fr) auto!important;gap:10px!important}.v11-player .player-avatar{width:42px!important;height:42px!important;font-size:25px!important;border-radius:12px!important}.v11-player h3{font-size:14px!important;line-height:1.1!important}.v11-player .player-bars{grid-column:1/3!important;display:grid!important;gap:6px!important}.v11-player .stat-row{grid-template-columns:86px minmax(0,1fr)!important;align-items:center!important;gap:8px!important}.v11-player .stat-row span{font-size:12px!important;white-space:nowrap!important}.v11-player .bar{height:8px!important}.v11-player em{grid-column:1/3!important;font-size:11.5px!important;padding:4px 8px!important;min-height:22px!important}.v11-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin-top:0!important}.v11-actions>button{height:56px!important;font-size:16px!important;border-radius:18px!important}.v11-battle-log{height:146px!important;max-height:146px!important;padding:10px!important;border-radius:18px!important}.v11-battle-log .battle-log-scroll{height:104px!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-right:4px!important}.v11-battle-log .battle-log-scroll p{font-size:12px!important;line-height:1.22!important;margin:4px 0!important;padding:6px 9px!important}.v11-battle-log .battle-log-scroll::-webkit-scrollbar{width:8px}.v11-battle-log .battle-log-scroll::-webkit-scrollbar-thumb{background:linear-gradient(#ffd166,#6f7cff);border-radius:99px}.v11-battle-log .battle-log-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:99px}
@media(max-width:820px){html,body{overflow-x:hidden}.app-shell{padding-bottom:30px}.topbar{min-height:64px!important}.v11-battle{padding:8px 12px 16px!important;gap:10px!important;max-width:100%!important}.v11-timer{padding:10px!important}.v11-timer #turn-hint{font-size:12px!important}.v11-monster-card{min-height:92px!important;padding:10px!important}.v11-monster-card .monster-portrait.battle{width:58px!important;height:58px!important;border-radius:16px!important}.v11-monster-card .monster-portrait.battle span{font-size:38px!important}.v11-monster-card h2{font-size:17px!important}.v11-party-panel{padding:10px!important;border-radius:18px!important}.v11-party-grid{gap:10px!important}.v11-party-grid.count-1{grid-template-columns:minmax(0,1fr)!important}.v11-party-grid.count-2,.v11-party-grid.count-3,.v11-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v11-player{min-height:104px!important;padding:10px 9px!important;border-radius:16px!important;grid-template-columns:42px minmax(0,1fr)!important;gap:6px 8px!important}.v11-player .player-card-head{grid-template-columns:36px minmax(0,1fr)!important;gap:8px!important}.v11-player .player-avatar{width:36px!important;height:36px!important;font-size:22px!important}.v11-player h3{font-size:12.5px!important}.v11-player .player-bars{gap:5px!important}.v11-player .stat-row{grid-template-columns:64px minmax(0,1fr)!important;gap:5px!important}.v11-player .stat-row span{font-size:10.5px!important}.v11-player .bar{height:7px!important}.v11-player em{font-size:9.8px!important;padding:3px 6px!important}.v11-actions{grid-template-columns:1fr 1fr!important;gap:10px!important}.v11-actions>button{height:50px!important;font-size:15px!important}.v11-battle-log{margin-top:14px!important;height:142px!important;max-height:142px!important}.v11-battle-log .battle-log-scroll{height:100px!important}.v11-battle-log .battle-log-scroll p{font-size:11px!important;line-height:1.18!important;margin:3px 0!important;padding:6px 8px!important}.password-field{grid-template-columns:minmax(0,1fr) 42px}.password-eye{height:42px}.v12-active-battle-card{grid-template-columns:1fr;gap:8px}.v12-active-battle-card button{width:100%}}
@media(max-width:430px){.v11-party-grid.count-2,.v11-party-grid.count-3,.v11-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v11-player{min-height:98px!important;padding:9px 7px!important}.v11-player .stat-row{grid-template-columns:58px minmax(0,1fr)!important}.v11-player .stat-row span{font-size:9.8px!important}.v11-player h3{font-size:11.5px!important}.v11-player em{font-size:9px!important}.v11-battle-log{height:134px!important}.v11-battle-log .battle-log-scroll{height:92px!important}}


/* ================= v13: агрессия, яма, обмен, профиль и бой ================= */
.v13-loot-pile{max-width:100%; overflow:hidden;}
.loot-pile-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px;}
.loot-pile-head h2{margin:0;}
.loot-pile-scroll{max-height:430px;overflow:auto;display:grid;gap:10px;padding-right:6px;}
.loot-pile-scroll::-webkit-scrollbar,.battle-log-scroll::-webkit-scrollbar,.modal::-webkit-scrollbar,.trade-offer-grid::-webkit-scrollbar{width:8px;height:8px;}
.loot-pile-scroll::-webkit-scrollbar-thumb,.battle-log-scroll::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb,.trade-offer-grid::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#35e0a1,#6d5dfc);border-radius:999px;}
.loot-pile-scroll::-webkit-scrollbar-track,.battle-log-scroll::-webkit-scrollbar-track,.modal::-webkit-scrollbar-track,.trade-offer-grid::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px;}
.monster-card{position:relative;}
.aggro-badge{position:absolute;left:10px;top:10px;font-size:11px;font-weight:800;padding:4px 8px;border-radius:999px;background:linear-gradient(135deg,#ffca3a,#ff3b72);color:#180b12;box-shadow:0 0 18px rgba(255,59,114,.35);z-index:2;}
.monster-card.aggressive-monster{border-color:rgba(255,110,80,.65);box-shadow:0 0 0 1px rgba(255,110,80,.16), 0 14px 35px rgba(255,70,70,.08);}
.respawn-note{margin:8px 0 0;color:#ffe98a;font-weight:700;font-size:12px;}
.v13-admin select,.v13-admin input{min-height:38px;}
.v13-admin .check-line{display:flex;align-items:center;gap:10px;min-height:36px;}
.v13-admin .check-line input{width:auto;min-height:auto;}
.admin-editor-box{display:grid;gap:8px;padding:10px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);}
.rare-drop-cinematic{position:relative;overflow:hidden;text-align:center;padding:34px 22px;border-radius:28px;min-height:360px;display:grid;place-items:center;gap:8px;animation:rareCardEntry .8s ease both;}
.rare-drop-cinematic:before{content:"";position:absolute;inset:-80px;background:radial-gradient(circle, rgba(255,255,255,.88), transparent 35%), conic-gradient(from 90deg, rgba(255,255,255,.0), rgba(255,255,255,.75), rgba(255,215,80,.55), rgba(255,255,255,.0));filter:blur(12px);animation:rareSpin 2.5s linear infinite;opacity:.75;}
.rare-drop-cinematic:after{content:"🎉 ✨ 🎊 ✨ 🎉";position:absolute;left:0;right:0;top:-30px;font-size:28px;letter-spacing:18px;animation:confettiFall 2.8s ease-in infinite;}
.rare-drop-cinematic>*{position:relative;z-index:1;}
.rare-item-icon{font-size:80px;width:132px;height:132px;border-radius:32px;display:grid;place-items:center;background:rgba(255,255,255,.14);box-shadow:0 0 45px rgba(255,255,255,.65);animation:rarePulse 1.6s ease-in-out infinite;}
.rare-rarity-line{font-weight:900;color:#fff2a8;text-shadow:0 0 12px rgba(255,255,255,.55);}
@keyframes rareCardEntry{0%{transform:scale(.84);filter:brightness(.5)}60%{transform:scale(1.05);filter:brightness(1.85)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes rarePulse{0%,100%{transform:scale(1) rotate(-1deg)}35%{transform:scale(1.08) rotate(1deg);filter:brightness(2.2)}60%{transform:scale(1.03) rotate(-1deg)}}
@keyframes rareSpin{to{transform:rotate(360deg)}}
@keyframes confettiFall{0%{transform:translateY(-20px);opacity:0}20%{opacity:1}100%{transform:translateY(420px);opacity:0}}
.trade-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:420px;overflow:auto;padding:4px;}
.trade-offer-slot{min-width:0;overflow:hidden;}
.trade-offer-slot .item-card{min-height:104px;padding:10px 10px 10px 8px;grid-template-columns:54px minmax(0,1fr);}
.trade-offer-slot .item-emblem{font-size:26px;width:42px;height:42px;}
.trade-offer-slot .item-body h3{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.trade-offer-slot .item-description,.trade-offer-slot .item-stats-line{display:none;}
.trade-offer-slot .item-weight{font-size:10px;right:8px;top:8px;}
.trade-offer-slot .item-actions{margin-top:22px;}
.trade-offer-slot .item-actions button{font-size:11px;padding:6px 8px;min-height:28px;}
.profile-layout .equip-slot{min-height:110px;}
.equip-slot .slot-icon{font-size:34px;}
.battle-player.v11-player{min-height:86px;padding:12px 14px;display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;}
.battle-player .player-card-head{display:flex;align-items:center;gap:8px;min-width:0;}
.battle-player .player-avatar{width:44px;height:44px;font-size:24px;}
.battle-player .player-bars{grid-column:1 / -1;display:grid;gap:5px;}
.battle-player em{grid-column:1 / -1;display:block;font-size:12px;color:#ffe98a;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.v11-party-grid{gap:10px;}
.v11-party-panel{margin-bottom:18px;}
.v11-battle-log{margin-top:18px;max-height:190px;}
.v11-battle-log .battle-log-scroll{max-height:140px;}
@media (max-width:700px){
  .screen{padding-left:10px;padding-right:10px;}
  .battle-screen{gap:10px;padding-bottom:72px;}
  .battle-player.v11-player{min-height:92px;padding:12px;grid-template-columns:46px 1fr;}
  .battle-player .player-avatar{width:42px;height:42px;}
  .battle-player .player-card-head h3{font-size:13px;}
  .battle-player .stat-row span{font-size:11px;min-width:64px;}
  .battle-player em{font-size:11px;}
  .v11-party-grid.count-1{grid-template-columns:1fr;}
  .v11-party-grid.count-1 .battle-player{max-width:100%;}
  .v11-party-grid.count-2,.v11-party-grid.count-3,.v11-party-grid.count-4{grid-template-columns:1fr 1fr;}
  .v11-battle-log{max-height:170px;margin-top:20px;}
  .v11-battle-log .battle-log-scroll{max-height:122px;}
  .battle-actions{position:sticky;bottom:4px;z-index:3;}
  .profile-layout{grid-template-columns:1fr!important;}
  .slot-grid{grid-template-columns:1fr 1fr!important;gap:10px;}
  .profile-layout .equip-slot{min-height:96px;padding:10px;}
  .equip-slot .slot-icon{font-size:30px;}
  .item-card{grid-template-columns:58px minmax(0,1fr);padding:10px 10px;min-height:112px;}
  .item-emblem{width:48px;height:48px;font-size:30px;}
  .item-body h3{font-size:14px;padding-right:44px;}
  .item-description{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .item-actions button{font-size:12px;padding:7px 9px;}
  .loot-pile-scroll{max-height:300px;}
  .trade-window .trade-grid{grid-template-columns:1fr;}
  .trade-offer-grid{max-height:260px;}
}


/* ================= v14: mobile trade cards + rare drop cleanup ================= */
.rare-drop-cinematic:after{
  content:"" !important;
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 14%, rgba(255,215,80,.95) 0 3px, transparent 4px),
    radial-gradient(circle at 26% 36%, rgba(255,255,255,.82) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 32%, rgba(255,215,80,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 62%, rgba(255,255,255,.92) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 58%, rgba(255,215,80,.88) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 78%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 82%, rgba(255,215,80,.8) 0 2px, transparent 3px);
  animation: confettiFallClean 2.8s ease-in infinite;
  pointer-events:none;
  opacity:.85;
}
@keyframes confettiFallClean{
  0%{transform:translateY(-22px);opacity:0}
  18%{opacity:1}
  100%{transform:translateY(230px);opacity:0}
}

@media (max-width: 820px){
  .trade-offer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    align-items:stretch !important;
  }
  .trade-offer-slot{
    min-height:128px !important;
    border-radius:16px !important;
    overflow:hidden !important;
  }
  .trade-offer-slot .item-card{
    position:relative !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-rows:auto 1fr auto !important;
    gap:5px !important;
    min-height:128px !important;
    height:100% !important;
    padding:8px 8px 7px !important;
    margin:0 !important;
    align-content:start !important;
  }
  .trade-offer-slot .item-icon-wrap{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    min-width:0 !important;
    padding-right:36px !important;
  }
  .trade-offer-slot .item-emblem{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    margin:0 !important;
    font-size:17px !important;
    border-radius:10px !important;
  }
  .trade-offer-slot .item-type-label{
    font-size:8px !important;
    line-height:1.05 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .trade-offer-slot .item-body{
    min-width:0 !important;
    display:grid !important;
    gap:3px !important;
    align-content:start !important;
  }
  .trade-offer-slot .item-body h3{
    font-size:10px !important;
    line-height:1.12 !important;
    margin:0 !important;
    padding-right:34px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .trade-offer-slot .item-description,
  .trade-offer-slot .item-stats-line{
    display:none !important;
  }
  .trade-offer-slot .item-weight{
    position:absolute !important;
    right:7px !important;
    top:7px !important;
    font-size:8px !important;
    line-height:1 !important;
    padding:2px 5px !important;
    max-width:48px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .trade-offer-slot .item-actions{
    margin-top:1px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:4px !important;
  }
  .trade-offer-slot .item-actions button{
    width:100% !important;
    min-height:26px !important;
    font-size:9px !important;
    line-height:1.05 !important;
    padding:5px 6px !important;
    border-radius:9px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
}

/* ================= v16: цель кликом + выезжающая панель умений ================= */
.v16-battle-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:12px!important;position:relative!important;}
.battle-top-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;}
.battle-top-btn{min-height:42px;padding:10px 14px;font-weight:900;white-space:nowrap;}
.v16-battle{position:relative!important;gap:14px!important;max-width:1160px!important;margin:0 auto!important;padding-bottom:28px!important;}
.v16-target-zone{display:grid;gap:12px;}
.v16-monster-target{display:grid!important;grid-template-columns:auto minmax(0,1fr) 76px!important;align-items:center!important;gap:16px!important;cursor:pointer!important;position:relative!important;min-height:158px!important;border:1px solid rgba(255,255,255,.14)!important;transition:.16s transform,.16s border-color,.16s box-shadow,.16s filter!important;}
.v16-monster-target:hover{transform:translateY(-2px)!important;border-color:rgba(255,209,102,.5)!important;box-shadow:0 18px 42px rgba(0,0,0,.32),0 0 0 1px rgba(255,209,102,.08)!important;}
.v16-monster-target.selected-target{border-color:rgba(255,209,102,.95)!important;box-shadow:0 0 0 2px rgba(255,209,102,.25),0 0 32px rgba(255,209,102,.22),0 20px 48px rgba(0,0,0,.38)!important;filter:brightness(1.06)!important;}
.v16-monster-target.selected-target:after{content:"";position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;background:linear-gradient(90deg,rgba(255,209,102,.0),rgba(255,209,102,.32),rgba(255,209,102,.0));opacity:.55;mix-blend-mode:screen;}
.v16-monster-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.v16-monster-title-line h2{margin:0!important;}
.target-pill{display:inline-flex;align-items:center;min-height:24px;padding:5px 9px;border-radius:999px;background:rgba(255,209,102,.18);border:1px solid rgba(255,209,102,.4);color:#ffe68a;font-weight:900;font-size:12px;}
.muted-pill{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:var(--muted);font-weight:700;}
.v16-target-actions{display:flex;justify-content:flex-end;align-items:center;min-width:68px;z-index:2;}
.v16-sword-btn{width:62px!important;height:62px!important;border-radius:20px!important;display:grid!important;place-items:center!important;padding:0!important;font-size:30px!important;background:linear-gradient(135deg,#ffd166,#ef476f)!important;color:#181018!important;box-shadow:0 8px 0 rgba(0,0,0,.25),0 0 24px rgba(255,209,102,.35)!important;}
.v16-sword-btn:disabled{opacity:.46!important;filter:grayscale(.4)!important;cursor:not-allowed!important;}
.v16-empty-actions{min-height:0!important;height:0!important;padding:0!important;margin:0!important;display:block!important;position:static!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:hidden!important;}
.v16-party-panel{margin-top:0!important;}
.v16-battle-log{margin-top:8px!important;}
.v16-drawer-fade{position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:70;backdrop-filter:blur(1px);}
.v16-skill-drawer{position:fixed;right:0;top:0;bottom:0;width:min(430px,92vw);z-index:80;background:linear-gradient(145deg,rgba(33,36,55,.98),rgba(17,18,28,.99));border-left:1px solid rgba(255,255,255,.14);box-shadow:-20px 0 54px rgba(0,0,0,.46);transform:translateX(104%);transition:transform .22s ease;display:grid;grid-template-rows:auto minmax(0,1fr);padding:18px;}
.v16-skill-drawer.open{transform:translateX(0);}
.v16-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.1);}
.v16-drawer-head b{display:block;font-size:22px;color:var(--gold);}
.v16-drawer-head small{display:block;color:var(--muted);margin-top:4px;}
.v16-skill-scroll{overflow:auto;display:grid;align-content:start;gap:10px;padding:12px 4px 22px 0;}
.v16-skill-scroll::-webkit-scrollbar{width:8px;}
.v16-skill-scroll::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#35e0a1,#6d5dfc);border-radius:999px;}
.v16-skill-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px;}
.v16-skill-scroll h3{margin:8px 0 2px;color:#fff;font-size:15px;letter-spacing:.2px;}
.v16-drawer-ability{border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.055);overflow:hidden;}
.v16-drawer-ability.active{border-color:rgba(6,214,160,.65);box-shadow:0 0 0 1px rgba(6,214,160,.18),0 0 24px rgba(6,214,160,.08);}
.v16-drawer-ability.disabled{opacity:.68;}
.v16-ability-main{width:100%;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important;text-align:left!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;padding:12px!important;}
.v16-ability-main span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.1);font-size:25px;}
.v16-ability-main b{display:block;font-size:15px;margin-bottom:3px;}
.v16-ability-main small{display:block;color:#ffe68a;font-size:12px;font-weight:800;margin-bottom:4px;}
.v16-ability-main p{margin:0;color:var(--muted);font-size:12px;line-height:1.28;}
.v16-ability-main:disabled{cursor:not-allowed;}
.v16-ability-targets{display:grid;gap:7px;padding:0 12px 12px 70px;animation:v16TargetOpen .16s ease both;}
.v16-ability-targets small{color:var(--muted);font-weight:800;}
.v16-ability-targets button{width:100%;text-align:left;background:linear-gradient(135deg,rgba(255,209,102,.22),rgba(239,71,111,.2));border:1px solid rgba(255,209,102,.22);box-shadow:none;font-size:13px;padding:9px 10px;border-radius:12px;}
@keyframes v16TargetOpen{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.small-note{font-size:12px;margin:2px 0 8px;}
@media(max-width:760px){
  .v16-battle-top{grid-template-columns:1fr!important;gap:8px!important;}
  .battle-top-actions{order:2;display:grid;grid-template-columns:1fr 1fr;width:100%;}
  .battle-top-actions .battle-top-btn{width:100%;font-size:13px;min-height:38px;padding:8px 10px;}
  .v16-battle-top .net-pill{justify-self:start;}
  .v16-battle{gap:10px!important;padding-left:8px!important;padding-right:8px!important;}
  .v16-monster-target{grid-template-columns:58px minmax(0,1fr) 50px!important;gap:9px!important;min-height:124px!important;padding:10px!important;}
  .v16-monster-target .monster-portrait{width:56px!important;height:56px!important;font-size:34px!important;}
  .v16-monster-title-line{gap:5px;}
  .target-pill{font-size:10px;min-height:20px;padding:3px 7px;}
  .v16-target-actions{min-width:46px;}
  .v16-sword-btn{width:46px!important;height:46px!important;border-radius:15px!important;font-size:24px!important;}
  .v16-monster-target .monster-battle-info h2{font-size:17px!important;}
  .v16-monster-target .monster-battle-info p{font-size:11px!important;margin:5px 0!important;}
  .v16-monster-target .monster-battle-info small{font-size:10.5px!important;}
  .v16-skill-drawer{width:min(360px,94vw);padding:14px;}
  .v16-drawer-head b{font-size:19px;}
  .v16-ability-main{grid-template-columns:42px minmax(0,1fr)!important;padding:10px!important;}
  .v16-ability-main span{width:38px;height:38px;font-size:21px;border-radius:12px;}
  .v16-ability-main b{font-size:13px;}
  .v16-ability-main small,.v16-ability-main p{font-size:11px;}
  .v16-ability-targets{padding-left:60px;}
  .v16-ability-targets button{font-size:12px;padding:8px;}
}
@media(max-width:430px){
  .v16-monster-target{grid-template-columns:50px minmax(0,1fr) 44px!important;gap:7px!important;min-height:116px!important;}
  .v16-monster-target .monster-portrait{width:48px!important;height:48px!important;font-size:29px!important;}
  .v16-sword-btn{width:42px!important;height:42px!important;font-size:22px!important;}
  .target-pill{display:none;}
  .v16-skill-drawer{width:96vw;}
}

/* ================= v17: группа монстров, угловые кнопки, панели слева/справа ================= */
.v17-battle-top{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:10px!important;
  max-width:1160px!important;
  margin:0 auto 10px!important;
}
.v17-battle-top .top-title{text-align:center!important;min-width:0!important;}
.v17-battle-top .top-title h1{margin:0!important;}
.v17-corner-btn{
  min-width:50px!important;
  min-height:48px!important;
  border-radius:16px!important;
  display:inline-grid!important;
  place-items:center!important;
  gap:2px!important;
  padding:7px 10px!important;
  font-size:22px!important;
  font-weight:900!important;
  z-index:6!important;
}
.v17-corner-btn span{font-size:11px;line-height:1;font-weight:900;}
.v17-help-btn{background:linear-gradient(135deg,rgba(6,214,160,.22),rgba(77,150,255,.18))!important;border-color:rgba(6,214,160,.35)!important;}
.v17-skill-btn{background:linear-gradient(135deg,rgba(255,209,102,.32),rgba(109,93,252,.18))!important;border-color:rgba(255,209,102,.38)!important;}
.v17-battle{max-width:1160px!important;}
.v17-monsters-panel,.v17-party-panel{border:1px solid rgba(255,255,255,.09);border-radius:22px;padding:12px;background:rgba(255,255,255,.035);box-shadow:0 14px 36px rgba(0,0,0,.18);}
.v17-section-title{margin-bottom:8px;}
.v17-monster-grid{display:grid;gap:10px;align-items:stretch;}
.v17-monster-grid.count-1{grid-template-columns:minmax(280px,720px);justify-content:center;}
.v17-monster-grid.count-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.v17-monster-grid.count-3,.v17-monster-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr));}
.v17-monster-target{
  min-height:132px!important;
  display:grid!important;
  grid-template-columns:70px minmax(0,1fr) 60px!important;
  gap:12px!important;
  padding:12px!important;
  border-radius:22px!important;
  overflow:hidden!important;
}
.v17-monster-target .monster-portrait{width:68px!important;height:68px!important;font-size:42px!important;border-radius:18px!important;}
.v17-monster-title-line{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap;}
.v17-monster-title-line h2{font-size:19px!important;line-height:1.05!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;}
.v17-mob-index{width:24px;height:24px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.09);color:var(--gold);font-weight:900;font-size:12px;}
.pack-pill{background:rgba(6,214,160,.14)!important;border-color:rgba(6,214,160,.35)!important;color:#9dffd7!important;}
.v17-target-actions{min-width:52px!important;}
.v17-sword-btn{width:52px!important;height:52px!important;border-radius:17px!important;font-size:26px!important;}
.v17-player.taunting{border-color:rgba(255,209,102,.65)!important;box-shadow:0 0 0 1px rgba(255,209,102,.2),0 0 26px rgba(255,209,102,.12)!important;}
.v17-taunt-badge{font-size:10px;font-weight:900;color:#181018;background:#ffd166;border-radius:999px;padding:4px 7px;white-space:nowrap;}
.v17-battle-log{margin-top:10px!important;}
.v17-drawer-fade{position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:70;backdrop-filter:blur(1px);}
.v17-skill-drawer{right:0!important;left:auto!important;width:min(440px,92vw)!important;}
.v17-help-drawer{
  position:fixed;left:0;top:0;bottom:0;width:min(380px,92vw);z-index:80;
  background:linear-gradient(145deg,rgba(33,36,55,.98),rgba(17,18,28,.99));
  border-right:1px solid rgba(255,255,255,.14);box-shadow:20px 0 54px rgba(0,0,0,.46);
  transform:translateX(-104%);transition:transform .22s ease;display:grid;grid-template-rows:auto minmax(0,1fr);padding:18px;
}
.v17-help-drawer.open{transform:translateX(0);}
.v17-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.1);}
.v17-drawer-head b{display:block;font-size:22px;color:var(--gold);}
.v17-drawer-head small{display:block;color:var(--muted);margin-top:4px;}
.v17-help-scroll{overflow:auto;display:grid;align-content:start;gap:10px;padding:12px 4px 22px 0;}
.v17-help-friend{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);}
.v17-help-friend span{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.v17-help-friend button{min-height:34px;padding:7px 10px;font-size:12px;}
.v17-skill-scroll{gap:9px!important;}
.v17-drawer-ability{border-radius:16px!important;}
.v17-ability-main{grid-template-columns:44px minmax(0,1fr)!important;padding:10px!important;}
.v17-ability-main span{width:40px!important;height:40px!important;font-size:22px!important;border-radius:13px!important;}
.v17-ability-main b{font-size:14px!important;}
.v17-ability-main small{font-size:12px!important;color:#ffe68a!important;}
.v17-ability-main p{font-size:11.5px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.v17-ability-targets{padding:0 10px 10px 58px!important;gap:6px!important;}
.v17-ability-targets button{font-size:12px!important;padding:8px 9px!important;}
.v17-cooldown-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.v17-cooldown-ability{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);border-radius:14px;padding:8px 9px;min-width:0;}
.v17-cooldown-ability span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.09);font-size:17px;}
.v17-cooldown-ability b{font-size:11px;line-height:1.08;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.v17-cooldown-ability em{font-style:normal;color:var(--muted);font-size:14px;font-weight:900;}
.v17-cooldown-ability strong{font-size:24px;color:#ffe68a;line-height:.9;}
.v17-location-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;}
.v17-location-monster{
  min-height:138px!important;padding:12px!important;border-radius:20px!important;
  display:grid!important;gap:9px!important;align-content:start!important;position:relative!important;
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.03))!important;
}
.location-monster-top{display:grid;grid-template-columns:28px 54px minmax(0,1fr);align-items:center;gap:8px;min-width:0;}
.location-mob-index{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;background:rgba(255,209,102,.14);color:#ffe68a;font-weight:900;font-size:12px;}
.v17-location-monster .monster-portrait{width:52px!important;height:52px!important;font-size:31px!important;border-radius:16px!important;margin:0!important;}
.location-monster-name{min-width:0;}
.location-monster-name h3{font-size:15px!important;line-height:1.08!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.location-monster-name small{font-size:10.5px;color:var(--muted);font-weight:800;}
.v17-location-monster .monster-help{position:absolute;right:8px;top:8px;width:26px;height:26px;min-height:26px;padding:0;border-radius:9px;font-size:12px;z-index:2;}
.v17-location-monster .aggro-badge{right:40px!important;top:8px!important;padding:4px 6px!important;font-size:11px!important;}
.v17-location-monster .monster-stats{font-size:11px!important;gap:5px!important;}
.v17-location-monster button[data-battle]{min-height:34px!important;font-size:12px!important;padding:7px 10px!important;border-radius:12px!important;}
@media(max-width:760px){
  .v17-battle-top{grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px!important;padding-top:4px!important;}
  .v17-battle-top .net-pill{display:none!important;}
  .v17-battle-top .top-title h1{font-size:18px!important;}
  .v17-battle-top .top-title p{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .v17-corner-btn{min-width:46px!important;min-height:44px!important;border-radius:15px!important;font-size:23px!important;padding:6px!important;}
  .v17-corner-btn span{display:none!important;}
  .v17-help-btn{justify-self:start!important;}
  .v17-skill-btn{justify-self:end!important;}
  .v17-monsters-panel,.v17-party-panel{padding:9px!important;border-radius:18px!important;}
  .v17-section-title small{display:none;}
  .v17-monster-grid.count-1,.v17-monster-grid.count-2,.v17-monster-grid.count-3,.v17-monster-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .v17-monster-target{grid-template-columns:46px minmax(0,1fr) 38px!important;gap:6px!important;min-height:112px!important;padding:8px!important;border-radius:17px!important;}
  .v17-monster-target .monster-portrait{width:44px!important;height:44px!important;font-size:27px!important;border-radius:13px!important;}
  .v17-monster-title-line{gap:4px;}
  .v17-monster-title-line h2{font-size:12px!important;max-width:90px!important;}
  .v17-mob-index{width:18px;height:18px;font-size:10px;border-radius:6px;}
  .v17-monster-target .monster-battle-info p{font-size:9.5px!important;margin:4px 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .v17-monster-target .monster-battle-info small{font-size:9px!important;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .v17-monster-target .target-pill{display:none!important;}
  .v17-target-actions{min-width:36px!important;}
  .v17-sword-btn{width:36px!important;height:36px!important;font-size:19px!important;border-radius:12px!important;}
  .v17-skill-drawer{width:min(360px,94vw)!important;padding:14px!important;}
  .v17-help-drawer{width:min(340px,94vw)!important;padding:14px!important;}
  .v17-cooldown-grid{grid-template-columns:1fr;}
  .v17-location-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  .v17-location-monster{min-height:124px!important;padding:9px!important;border-radius:17px!important;}
  .location-monster-top{grid-template-columns:22px 42px minmax(0,1fr);gap:6px;}
  .location-mob-index{width:21px;height:21px;font-size:10px;border-radius:7px;}
  .v17-location-monster .monster-portrait{width:40px!important;height:40px!important;font-size:24px!important;border-radius:12px!important;}
  .location-monster-name h3{font-size:12px!important;}
  .location-monster-name small{font-size:9px;}
  .v17-location-monster .monster-stats{font-size:9.5px!important;}
  .v17-location-monster button[data-battle]{min-height:30px!important;font-size:10.5px!important;}
}
@media(max-width:430px){
  .v17-monster-grid.count-1,.v17-monster-grid.count-2,.v17-monster-grid.count-3,.v17-monster-grid.count-4{gap:7px!important;}
  .v17-monster-target{grid-template-columns:40px minmax(0,1fr) 34px!important;min-height:104px!important;padding:7px!important;}
  .v17-monster-target .monster-portrait{width:38px!important;height:38px!important;font-size:23px!important;}
  .v17-sword-btn{width:32px!important;height:32px!important;font-size:18px!important;}
  .v17-location-monster-grid{gap:7px!important;}
}

/* ================= v18: фиксированная сетка монстров и чистая стая из локации ================= */
.v18-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(118px,auto)!important;
  gap:12px!important;
  align-items:stretch!important;
  width:100%!important;
}
.v18-monster-target,
.v18-monster-empty{
  min-width:0!important;
  min-height:128px!important;
  height:100%!important;
  position:relative!important;
  contain:layout paint!important;
}
.v18-monster-target{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr) 54px!important;
  align-items:center!important;
  gap:10px!important;
  padding:11px!important;
  border-radius:20px!important;
}
.v18-monster-target .monster-battle-info{min-width:0!important;overflow:hidden!important;}
.v18-monster-target .monster-portrait{margin:0!important;align-self:center!important;justify-self:center!important;}
.v18-monster-target .bar{height:10px!important;margin:7px 0!important;}
.v18-monster-target p,
.v18-monster-target small{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v18-monster-empty{
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
  border:1px dashed rgba(255,255,255,.105)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.028),rgba(255,255,255,.012))!important;
  color:rgba(255,255,255,.22)!important;
  box-shadow:inset 0 0 28px rgba(0,0,0,.16)!important;
}
.v18-monster-empty span{width:24px;height:24px;border-radius:9px;display:grid;place-items:center;background:rgba(255,255,255,.055);font-weight:900;}
.v18-monster-empty small{font-size:11px;font-weight:800;color:rgba(255,255,255,.26);}
.v18-monster-target.selected-target{outline:2px solid rgba(255,209,102,.72)!important;box-shadow:0 0 0 1px rgba(255,209,102,.16),0 0 26px rgba(255,209,102,.11)!important;}
.v18-skill-drawer .v17-ability-targets,
.v17-ability-targets{grid-template-columns:1fr!important;padding-left:12px!important;border-top:1px solid rgba(255,255,255,.08)!important;margin-top:2px!important;}
.v17-ability-targets button{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;}
.v18-location-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;}
.v18-location-monster{min-width:0!important;}
.v18-location-monster .bar{height:9px!important;}
.active-battles .active-battle-card{border-color:rgba(255,209,102,.22)!important;background:linear-gradient(145deg,rgba(255,209,102,.07),rgba(255,255,255,.035))!important;}
@media(max-width:760px){
  .v17-battle{max-width:100%!important;padding:8px!important;gap:8px!important;}
  .v17-timer{padding:9px!important;border-radius:16px!important;}
  .v17-timer .turn-head{gap:8px!important;}
  .v17-timer b{font-size:13px!important;}
  .v17-timer p{font-size:10.5px!important;}
  .v18-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;grid-auto-rows:minmax(106px,auto)!important;}
  .v18-monster-target{grid-template-columns:38px minmax(0,1fr) 31px!important;gap:5px!important;min-height:106px!important;padding:6px!important;border-radius:15px!important;}
  .v18-monster-empty{min-height:106px!important;border-radius:15px!important;}
  .v18-monster-empty small{display:none!important;}
  .v18-monster-target .monster-portrait{width:37px!important;height:37px!important;border-radius:12px!important;}
  .v18-monster-target .monster-portrait span{font-size:23px!important;}
  .v18-monster-target .v17-monster-title-line{display:grid!important;grid-template-columns:17px minmax(0,1fr)!important;gap:4px!important;align-items:center!important;}
  .v18-monster-target .v17-monster-title-line h2{font-size:11.5px!important;line-height:1.05!important;max-width:none!important;}
  .v18-monster-target .v17-mob-index{width:17px!important;height:17px!important;border-radius:6px!important;font-size:9px!important;}
  .v18-monster-target .pack-pill,
  .v18-monster-target .target-pill{position:absolute!important;left:5px!important;top:5px!important;font-size:8px!important;min-height:14px!important;padding:1px 4px!important;}
  .v18-monster-target .pack-pill + .target-pill{top:21px!important;}
  .v18-monster-target p{font-size:9px!important;line-height:1.1!important;margin:3px 0!important;white-space:nowrap!important;}
  .v18-monster-target small{font-size:8.7px!important;line-height:1.1!important;display:block!important;white-space:nowrap!important;}
  .v18-monster-target .bar{height:7px!important;margin:4px 0!important;}
  .v18-monster-target .v17-target-actions{min-width:30px!important;display:grid!important;place-items:center!important;}
  .v18-monster-target .v17-sword-btn{width:30px!important;height:30px!important;min-height:30px!important;border-radius:10px!important;font-size:16px!important;padding:0!important;}
  .v17-monsters-panel,.v17-party-panel{padding:7px!important;border-radius:16px!important;}
  .v17-section-title h2,.battle-section-title h2{font-size:14px!important;margin:0!important;}
  .v17-skill-drawer{width:min(330px,92vw)!important;padding:12px!important;}
  .v17-drawer-head b{font-size:18px!important;}
  .v17-drawer-head small{font-size:11px!important;}
  .v17-skill-scroll h3{font-size:13px!important;margin:8px 0 4px!important;}
  .v17-ability-main{grid-template-columns:34px minmax(0,1fr)!important;padding:8px!important;gap:7px!important;}
  .v17-ability-main span{width:32px!important;height:32px!important;font-size:18px!important;border-radius:10px!important;}
  .v17-ability-main b{font-size:12px!important;}
  .v17-ability-main small,.v17-ability-main p{font-size:10px!important;}
  .v17-ability-targets{padding:7px!important;gap:5px!important;}
  .v17-ability-targets button{font-size:10.5px!important;padding:7px!important;border-radius:10px!important;}
  .v17-cooldown-ability{grid-template-columns:26px minmax(0,1fr) auto!important;padding:7px!important;}
  .v17-cooldown-ability span{width:26px!important;height:26px!important;font-size:15px!important;}
  .v17-cooldown-ability strong{font-size:20px!important;}
}
@media(max-width:430px){
  .v18-monster-grid{gap:6px!important;grid-auto-rows:minmax(102px,auto)!important;}
  .v18-monster-target{grid-template-columns:34px minmax(0,1fr) 28px!important;min-height:102px!important;padding:6px!important;}
  .v18-monster-target .monster-portrait{width:33px!important;height:33px!important;}
  .v18-monster-target .monster-portrait span{font-size:21px!important;}
  .v18-monster-target p{font-size:8.5px!important;}
  .v18-monster-target small{font-size:8.2px!important;}
  .v18-monster-target .v17-sword-btn{width:28px!important;height:28px!important;font-size:15px!important;}
}
.v18-monster-grid > .v18-monster-target,
.v18-monster-grid > .v18-monster-empty{grid-area:auto!important;place-self:stretch!important;width:100%!important;max-width:none!important;}

/* ================= v19: адаптивная сетка врагов, реген и стая ================= */
.v19-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(124px,auto))!important;
  gap:12px!important;
  align-items:stretch!important;
  width:100%!important;
}
.v19-monster-grid > .v19-monster-target,
.v19-monster-grid > .v18-monster-target,
.v19-monster-grid > .v18-monster-empty{
  grid-area:auto!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  place-self:stretch!important;
}
.v19-monster-grid.count-1 > .v19-monster-target{grid-column:1 / 3!important;grid-row:1 / 3!important;min-height:254px!important;}
.v19-monster-grid.count-2 > .v19-monster-target:nth-child(1){grid-column:1 / 3!important;grid-row:1 / 2!important;}
.v19-monster-grid.count-2 > .v19-monster-target:nth-child(2){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v19-monster-grid.count-3 > .v19-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
.v19-monster-grid.count-3 > .v19-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
.v19-monster-grid.count-3 > .v19-monster-target:nth-child(3){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v19-monster-grid.count-4 > .v19-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
.v19-monster-grid.count-4 > .v19-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
.v19-monster-grid.count-4 > .v19-monster-target:nth-child(3){grid-column:1 / 2!important;grid-row:2 / 3!important;}
.v19-monster-grid.count-4 > .v19-monster-target:nth-child(4){grid-column:2 / 3!important;grid-row:2 / 3!important;}
.v19-monster-target{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr) 52px!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  gap:10px!important;
  overflow:hidden!important;
  contain:layout paint!important;
}
.v19-monster-target .monster-battle-info{display:grid!important;grid-template-rows:auto auto auto auto!important;gap:5px!important;min-width:0!important;overflow:hidden!important;align-self:center!important;}
.v19-monster-title-line{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;align-items:center!important;gap:6px!important;min-width:0!important;width:100%!important;}
.v19-monster-title-line h2{max-width:none!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;}
.v19-monster-stats{display:flex!important;gap:9px!important;align-items:center!important;min-width:0!important;font-size:12px!important;font-weight:900!important;color:rgba(255,255,255,.84)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v19-monster-stats span{min-width:0!important;white-space:nowrap!important;}
.v19-monster-hint{font-size:11px!important;color:var(--muted)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v19-regen-line{display:block;margin-top:3px;color:#9dffd7;font-weight:900;font-size:11px;}
.admin-mon-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:10px;}
.admin-mon-actions button{min-height:38px;font-size:12px;padding:8px 10px;}
.v19-location-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(112px,auto))!important;gap:12px!important;align-items:stretch!important;}
.v19-location-monster-grid.count-1 > .v19-location-monster{grid-column:1 / 3!important;grid-row:1 / 3!important;}
.v19-location-monster-grid.count-2 > .v19-location-monster:nth-child(1){grid-column:1 / 3!important;}
.v19-location-monster-grid.count-2 > .v19-location-monster:nth-child(2){grid-column:1 / 3!important;}
.v19-location-monster-grid.count-3 > .v19-location-monster:nth-child(3){grid-column:1 / 3!important;}
.v19-location-monster{overflow:hidden!important;}
@media(max-width:760px){
  .v19-monster-grid{grid-template-rows:repeat(2,minmax(108px,auto))!important;gap:7px!important;}
  .v19-monster-grid.count-1 > .v19-monster-target{min-height:220px!important;}
  .v19-monster-target{grid-template-columns:42px minmax(0,1fr) 32px!important;gap:6px!important;padding:7px!important;border-radius:16px!important;min-height:108px!important;}
  .v19-monster-target .monster-portrait{width:40px!important;height:40px!important;border-radius:12px!important;margin:0!important;}
  .v19-monster-target .monster-portrait span{font-size:24px!important;}
  .v19-monster-title-line{grid-template-columns:18px minmax(0,1fr) auto!important;gap:4px!important;}
  .v19-monster-title-line h2{font-size:12px!important;line-height:1.05!important;}
  .v19-monster-title-line .pack-pill{display:inline-grid!important;position:static!important;font-size:8px!important;min-height:14px!important;padding:1px 4px!important;}
  .v19-monster-title-line .target-pill:not(.pack-pill){display:none!important;}
  .v19-monster-stats{font-size:9px!important;gap:5px!important;}
  .v19-monster-hint{font-size:8.5px!important;}
  .v19-monster-target .bar{height:7px!important;margin:2px 0!important;}
  .v19-monster-target .v17-target-actions{min-width:30px!important;display:grid!important;place-items:center!important;}
  .v19-monster-target .v17-sword-btn{width:30px!important;height:30px!important;min-height:30px!important;border-radius:10px!important;font-size:16px!important;padding:0!important;}
  .v19-location-monster-grid{grid-template-rows:repeat(2,minmax(104px,auto))!important;gap:8px!important;}
  .v19-location-monster{min-height:110px!important;}
  .admin-mon-actions{grid-template-columns:1fr!important;}
}
@media(max-width:430px){
  .v19-monster-grid{grid-template-rows:repeat(2,minmax(104px,auto))!important;gap:6px!important;}
  .v19-monster-grid.count-1 > .v19-monster-target{min-height:212px!important;}
  .v19-monster-target{grid-template-columns:38px minmax(0,1fr) 28px!important;min-height:104px!important;padding:6px!important;gap:5px!important;}
  .v19-monster-target .monster-portrait{width:36px!important;height:36px!important;}
  .v19-monster-target .monster-portrait span{font-size:22px!important;}
  .v19-monster-title-line h2{font-size:11px!important;}
  .v19-monster-stats{font-size:8.4px!important;gap:4px!important;}
  .v19-monster-hint{font-size:8px!important;}
  .v19-monster-target .v17-sword-btn{width:28px!important;height:28px!important;font-size:15px!important;}
}

/* ================= v20: чистые карточки монстров, отдых-реген, мобильный бой ================= */
.v20-location-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:132px!important;
  grid-template-rows:repeat(2,132px)!important;
  gap:12px!important;
  align-items:stretch!important;
  min-height:0!important;
}
.v20-location-monster-grid.count-1 > .v20-location-monster{grid-column:1 / 3!important;grid-row:1 / 3!important;}
.v20-location-monster-grid.count-2 > .v20-location-monster:nth-child(1){grid-column:1 / 3!important;grid-row:1 / 2!important;}
.v20-location-monster-grid.count-2 > .v20-location-monster:nth-child(2){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v20-location-monster-grid.count-3 > .v20-location-monster:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
.v20-location-monster-grid.count-3 > .v20-location-monster:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
.v20-location-monster-grid.count-3 > .v20-location-monster:nth-child(3){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v20-location-monster{
  position:relative!important;
  display:grid!important;
  grid-template-columns:1fr 88px!important;
  grid-template-rows:auto 8px auto!important;
  gap:8px 10px!important;
  min-height:0!important;
  height:100%!important;
  padding:12px!important;
  overflow:hidden!important;
  align-content:center!important;
}
.v20-location-monster .monster-help{position:absolute!important;right:10px!important;top:10px!important;width:26px!important;height:26px!important;min-height:26px!important;padding:0!important;border-radius:9px!important;z-index:2!important;}
.v20-location-monster .location-monster-top{grid-column:1 / 2!important;display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-width:0!important;}
.v20-location-monster .location-mob-index{position:absolute!important;left:8px!important;top:8px!important;width:20px!important;height:20px!important;font-size:10px!important;border-radius:8px!important;z-index:2!important;}
.v20-location-monster .monster-portrait{width:44px!important;height:44px!important;border-radius:14px!important;margin:0!important;}
.v20-location-monster .monster-portrait span{font-size:28px!important;}
.v20-location-monster .location-monster-name{min-width:0!important;display:grid!important;gap:3px!important;}
.v20-location-monster .location-monster-name h3{font-size:17px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;}
.v20-monster-flags{display:flex!important;gap:5px!important;height:16px!important;align-items:center!important;}
.v20-monster-flags span{display:grid!important;place-items:center!important;width:16px!important;height:16px!important;border-radius:6px!important;background:rgba(255,255,255,.1)!important;font-size:10px!important;}
.v20-location-monster .bar.hp{grid-column:1 / 3!important;height:8px!important;margin:0!important;align-self:center!important;}
.v20-location-monster .monster-stats{grid-column:1 / 2!important;display:flex!important;gap:10px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;align-self:center!important;}
.v20-location-monster .v20-location-attack{grid-column:2 / 3!important;grid-row:1 / 4!important;align-self:center!important;justify-self:stretch!important;min-height:76px!important;border-radius:16px!important;padding:0!important;font-size:0!important;}
.v20-location-monster .v20-location-attack::before{content:'⚔️';font-size:24px!important;}
.v20-location-monster .v20-location-attack:disabled::before{content:'…';font-size:24px!important;}
.v20-location-monster.dead{display:none!important;}

.v20-battle{gap:10px!important;padding-bottom:86px!important;}
.v20-battle .battle-timer{padding:10px 12px!important;border-radius:18px!important;}
.v20-battle .turn-head{gap:8px!important;align-items:center!important;}
.v20-battle .turn-head p{font-size:12px!important;line-height:1.25!important;margin-top:2px!important;}
.v20-battle .turn-head span{font-size:18px!important;white-space:nowrap!important;}
.v20-battle .v17-monsters-panel,.v20-battle .v17-party-panel,.v20-battle .battle-log{overflow:hidden!important;}
.v20-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(116px,auto))!important;
  gap:10px!important;
  width:100%!important;
  align-items:stretch!important;
}
.v20-monster-grid.count-1 > .v20-monster-target{grid-column:1 / 3!important;grid-row:1 / 3!important;min-height:244px!important;}
.v20-monster-grid.count-2 > .v20-monster-target:nth-child(1){grid-column:1 / 3!important;grid-row:1 / 2!important;}
.v20-monster-grid.count-2 > .v20-monster-target:nth-child(2){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v20-monster-grid.count-3 > .v20-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
.v20-monster-grid.count-3 > .v20-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
.v20-monster-grid.count-3 > .v20-monster-target:nth-child(3){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v20-monster-grid.count-4 > .v20-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
.v20-monster-grid.count-4 > .v20-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
.v20-monster-grid.count-4 > .v20-monster-target:nth-child(3){grid-column:1 / 2!important;grid-row:2 / 3!important;}
.v20-monster-grid.count-4 > .v20-monster-target:nth-child(4){grid-column:2 / 3!important;grid-row:2 / 3!important;}
.v20-monster-target{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) 46px!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  overflow:hidden!important;
  padding:12px!important;
  border-radius:18px!important;
  contain:layout paint!important;
}
.v20-monster-target .monster-portrait{width:56px!important;height:56px!important;border-radius:16px!important;margin:0!important;align-self:center!important;}
.v20-monster-target .monster-portrait span{font-size:34px!important;}
.v20-monster-target .monster-battle-info{display:grid!important;gap:6px!important;min-width:0!important;width:100%!important;align-self:center!important;}
.v20-monster-target .v19-monster-title-line{grid-template-columns:22px minmax(0,1fr) auto auto!important;min-width:0!important;gap:6px!important;}
.v20-monster-target .v17-mob-index{width:22px!important;height:22px!important;border-radius:8px!important;font-size:11px!important;position:static!important;}
.v20-monster-target .v19-monster-title-line h2{font-size:18px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v20-monster-target .target-pill{min-height:18px!important;padding:2px 7px!important;font-size:10px!important;position:static!important;}
.v20-monster-target .v19-monster-stats{font-size:12px!important;gap:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v20-monster-target .v19-monster-hint{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v20-monster-target .bar{height:8px!important;margin:0!important;}
.v20-monster-target .v17-target-actions{display:grid!important;place-items:center!important;min-width:42px!important;}
.v20-monster-target .v17-sword-btn{width:42px!important;height:42px!important;min-height:42px!important;border-radius:14px!important;font-size:22px!important;padding:0!important;}
.v20-player{min-width:0!important;overflow:hidden!important;}

@media(max-width:760px){
  .topbar.battle-top{padding:8px 10px!important;min-height:56px!important;}
  .topbar.battle-top .top-title h1{font-size:17px!important;}
  .topbar.battle-top .top-title p{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:52vw!important;}
  .topbar.battle-top .net-pill{display:none!important;}
  .v17-corner-btn{width:42px!important;height:42px!important;min-height:42px!important;border-radius:14px!important;font-size:20px!important;}
  .v17-corner-btn span{display:none!important;}
  .v20-battle{padding:8px!important;gap:9px!important;}
  .v20-battle .battle-section-title{gap:6px!important;align-items:center!important;}
  .v20-battle .battle-section-title h2{font-size:14px!important;}
  .v20-battle .battle-section-title small{font-size:10px!important;line-height:1.15!important;}
  .v20-battle .battle-timer{padding:8px 10px!important;border-radius:16px!important;}
  .v20-battle .turn-head b{font-size:13px!important;}
  .v20-battle .turn-head p{font-size:10px!important;max-width:68vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v20-battle .turn-head span{font-size:16px!important;}
  .v20-monster-grid{grid-template-rows:repeat(2,minmax(88px,auto))!important;gap:7px!important;}
  .v20-monster-grid.count-1 > .v20-monster-target{min-height:182px!important;}
  .v20-monster-target{grid-template-columns:44px minmax(0,1fr) 34px!important;gap:7px!important;padding:8px!important;border-radius:16px!important;min-height:88px!important;}
  .v20-monster-target .monster-portrait{width:42px!important;height:42px!important;border-radius:13px!important;}
  .v20-monster-target .monster-portrait span{font-size:27px!important;}
  .v20-monster-target .monster-battle-info{gap:4px!important;}
  .v20-monster-target .v19-monster-title-line{grid-template-columns:18px minmax(0,1fr) auto!important;gap:4px!important;}
  .v20-monster-target .v17-mob-index{width:18px!important;height:18px!important;font-size:10px!important;}
  .v20-monster-target .v19-monster-title-line h2{font-size:13px!important;}
  .v20-monster-target .target-pill.pack-pill{display:none!important;}
  .v20-monster-target .target-pill:not(.pack-pill){display:none!important;}
  .v20-monster-target .v19-monster-stats{font-size:9.5px!important;gap:6px!important;}
  .v20-monster-target .v19-monster-hint{font-size:9px!important;}
  .v20-monster-target .bar{height:7px!important;}
  .v20-monster-target .v17-target-actions{min-width:32px!important;}
  .v20-monster-target .v17-sword-btn{width:32px!important;height:32px!important;min-height:32px!important;border-radius:11px!important;font-size:17px!important;}
  .v20-battle .v17-monsters-panel,.v20-battle .v17-party-panel{padding:8px!important;border-radius:16px!important;}
  .v20-player{padding:8px!important;border-radius:14px!important;}
  .v20-player .player-card-head{grid-template-columns:32px minmax(0,1fr) auto!important;gap:6px!important;}
  .v20-player .player-avatar{width:32px!important;height:32px!important;font-size:18px!important;}
  .v20-player h3{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v20-player .stat-row span{font-size:10px!important;min-width:62px!important;}
  .v20-player em{font-size:10px!important;}
  .battle-log-scroll{max-height:96px!important;}
  .battle-log-scroll p{font-size:10px!important;line-height:1.2!important;padding:5px 7px!important;}
  .v20-location-monster-grid{grid-template-rows:repeat(2,104px)!important;grid-auto-rows:104px!important;gap:8px!important;}
  .v20-location-monster{grid-template-columns:1fr 56px!important;padding:8px!important;gap:6px!important;border-radius:16px!important;}
  .v20-location-monster .location-monster-top{grid-template-columns:36px minmax(0,1fr)!important;gap:7px!important;}
  .v20-location-monster .monster-portrait{width:36px!important;height:36px!important;border-radius:12px!important;}
  .v20-location-monster .monster-portrait span{font-size:24px!important;}
  .v20-location-monster .location-monster-name h3{font-size:13px!important;}
  .v20-location-monster .v20-location-attack{min-height:62px!important;border-radius:14px!important;}
  .v20-location-monster .v20-location-attack::before{font-size:20px!important;}
  .v20-location-monster .monster-stats{font-size:9.5px!important;gap:5px!important;}
  .v20-location-monster .monster-help{right:6px!important;top:6px!important;width:23px!important;height:23px!important;min-height:23px!important;}
}
@media(max-width:430px){
  .v20-battle{padding:6px!important;gap:8px!important;}
  .v20-monster-grid{grid-template-rows:repeat(2,minmax(82px,auto))!important;gap:6px!important;}
  .v20-monster-grid.count-1 > .v20-monster-target{min-height:170px!important;}
  .v20-monster-target{grid-template-columns:39px minmax(0,1fr) 30px!important;gap:5px!important;padding:7px!important;min-height:82px!important;}
  .v20-monster-target .monster-portrait{width:38px!important;height:38px!important;}
  .v20-monster-target .monster-portrait span{font-size:24px!important;}
  .v20-monster-target .v19-monster-title-line{grid-template-columns:16px minmax(0,1fr)!important;}
  .v20-monster-target .v17-mob-index{width:16px!important;height:16px!important;font-size:9px!important;}
  .v20-monster-target .v19-monster-title-line h2{font-size:12px!important;}
  .v20-monster-target .v19-monster-stats{font-size:8.8px!important;gap:4px!important;}
  .v20-monster-target .v19-monster-hint{font-size:8.3px!important;}
  .v20-monster-target .v17-sword-btn{width:29px!important;height:29px!important;min-height:29px!important;font-size:15px!important;}
  .v20-location-monster-grid{grid-template-rows:repeat(2,96px)!important;grid-auto-rows:96px!important;gap:7px!important;}
  .v20-location-monster{grid-template-columns:1fr 48px!important;padding:7px!important;}
  .v20-location-monster .location-monster-top{grid-template-columns:32px minmax(0,1fr)!important;gap:6px!important;}
  .v20-location-monster .monster-portrait{width:32px!important;height:32px!important;}
  .v20-location-monster .monster-portrait span{font-size:21px!important;}
  .v20-location-monster .location-monster-name h3{font-size:12px!important;}
  .v20-location-monster .monster-stats{font-size:8.6px!important;}
  .v20-location-monster .v20-location-attack{min-height:56px!important;}
}

/* ================= v21: фикс мобильных карточек монстров в бою ================= */
.v21-monster-target .target-pill,
.v21-monster-target .pack-pill{display:none!important;}
.v21-monster-target.dead{display:none!important;}
.v21-monster-empty{grid-column:1 / 3!important;min-height:120px!important;display:grid!important;place-items:center!important;color:var(--muted)!important;}
.v21-monster-title-line{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-width:0!important;}
.v21-monster-hint{opacity:.86!important;}
.v21-monster-target.selected-target{box-shadow:0 0 0 2px rgba(255,209,102,.9),0 0 22px rgba(255,209,102,.2)!important;}

@media(max-width:760px){
  html,body{overflow-x:hidden!important;}
  .battle-screen.v20-battle{width:100%!important;max-width:100%!important;grid-template-columns:1fr!important;gap:10px!important;padding:8px 8px 16px!important;}
  .v20-battle .v17-monsters-panel,.v20-battle .v17-party-panel,.v20-battle .battle-log{width:100%!important;max-width:100%!important;overflow:hidden!important;}
  .v20-battle .battle-section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;}
  .v20-battle .battle-section-title small{max-width:45vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}

  .v20-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,112px)!important;grid-auto-rows:112px!important;gap:8px!important;width:100%!important;min-width:0!important;}
  .v20-monster-grid.count-1 > .v21-monster-target{grid-column:1 / 3!important;grid-row:1 / 3!important;min-height:232px!important;}
  .v20-monster-grid.count-2 > .v21-monster-target:nth-child(1){grid-column:1 / 3!important;grid-row:1 / 2!important;}
  .v20-monster-grid.count-2 > .v21-monster-target:nth-child(2){grid-column:1 / 3!important;grid-row:2 / 3!important;}
  .v20-monster-grid.count-3 > .v21-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
  .v20-monster-grid.count-3 > .v21-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
  .v20-monster-grid.count-3 > .v21-monster-target:nth-child(3){grid-column:1 / 3!important;grid-row:2 / 3!important;}
  .v20-monster-grid.count-4 > .v21-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
  .v20-monster-grid.count-4 > .v21-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
  .v20-monster-grid.count-4 > .v21-monster-target:nth-child(3){grid-column:1 / 2!important;grid-row:2 / 3!important;}
  .v20-monster-grid.count-4 > .v21-monster-target:nth-child(4){grid-column:2 / 3!important;grid-row:2 / 3!important;}

  .v21-monster-target{position:relative!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;gap:6px 8px!important;align-items:center!important;min-width:0!important;min-height:112px!important;height:100%!important;padding:9px!important;border-radius:17px!important;overflow:hidden!important;}
  .v21-monster-target .monster-portrait{grid-column:1!important;grid-row:1 / 3!important;width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important;margin:0!important;align-self:center!important;justify-self:center!important;}
  .v21-monster-target .monster-portrait span{font-size:27px!important;line-height:1!important;}
  .v21-monster-target .monster-battle-info{grid-column:2!important;grid-row:1 / 3!important;display:grid!important;grid-template-rows:auto 7px auto auto!important;gap:5px!important;min-width:0!important;width:100%!important;align-self:center!important;}
  .v21-monster-title-line{grid-template-columns:18px minmax(0,1fr)!important;gap:5px!important;}
  .v21-monster-target .v17-mob-index{position:static!important;width:18px!important;height:18px!important;min-width:18px!important;border-radius:7px!important;font-size:10px!important;line-height:18px!important;}
  .v21-monster-title-line h2{font-size:13px!important;line-height:1.05!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v21-monster-target .bar.hp{height:7px!important;margin:0!important;width:100%!important;}
  .v21-monster-stats{display:flex!important;align-items:center!important;gap:6px!important;font-size:9.5px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;}
  .v21-monster-stats span{min-width:auto!important;}
  .v21-monster-hint{font-size:9px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#cfd5ea!important;}
  .v21-monster-target .v17-target-actions{position:absolute!important;right:7px!important;bottom:7px!important;min-width:0!important;display:block!important;z-index:3!important;}
  .v21-monster-target .v17-sword-btn{width:30px!important;height:30px!important;min-height:30px!important;border-radius:10px!important;font-size:16px!important;padding:0!important;box-shadow:0 8px 20px rgba(0,0,0,.35)!important;}
  .v21-monster-target:not(.selected-target) .v17-target-actions{display:none!important;}
  .v20-monster-grid.count-1 .v21-monster-target{grid-template-columns:54px minmax(0,1fr)!important;padding:12px!important;}
  .v20-monster-grid.count-1 .v21-monster-target .monster-portrait{width:54px!important;height:54px!important;min-width:54px!important;}
  .v20-monster-grid.count-1 .v21-monster-target .monster-portrait span{font-size:34px!important;}
  .v20-monster-grid.count-1 .v21-monster-title-line h2{font-size:18px!important;}
  .v20-monster-grid.count-1 .v21-monster-stats{font-size:12px!important;gap:10px!important;}
  .v20-monster-grid.count-1 .v21-monster-hint{font-size:11px!important;}

  .v20-player{min-height:108px!important;padding:10px!important;}
  .v20-player .player-card-head{grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;}
  .v20-player .player-bars{display:grid!important;gap:6px!important;}
  .v20-player .stat-row{grid-template-columns:70px minmax(0,1fr)!important;gap:6px!important;align-items:center!important;}
  .v20-player .stat-row span{font-size:10px!important;white-space:nowrap!important;}
}

@media(max-width:430px){
  .v20-monster-grid{grid-template-rows:repeat(2,108px)!important;grid-auto-rows:108px!important;gap:7px!important;}
  .v20-monster-grid.count-1 > .v21-monster-target{min-height:224px!important;}
  .v21-monster-target{grid-template-columns:38px minmax(0,1fr)!important;min-height:108px!important;padding:8px!important;gap:5px 7px!important;}
  .v21-monster-target .monster-portrait{width:38px!important;height:38px!important;min-width:38px!important;}
  .v21-monster-target .monster-portrait span{font-size:24px!important;}
  .v21-monster-title-line{grid-template-columns:16px minmax(0,1fr)!important;gap:4px!important;}
  .v21-monster-target .v17-mob-index{width:16px!important;height:16px!important;min-width:16px!important;font-size:9px!important;line-height:16px!important;}
  .v21-monster-title-line h2{font-size:12px!important;}
  .v21-monster-stats{font-size:8.6px!important;gap:4px!important;}
  .v21-monster-hint{font-size:8.2px!important;}
  .v21-monster-target .v17-sword-btn{width:28px!important;height:28px!important;min-height:28px!important;font-size:15px!important;}
  .v20-battle .battle-section-title small{display:none!important;}
}

/* ================= v22: аккуратные карточки монстров в локации + чистый мобильный бой ================= */
.v22-location-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:126px!important;
  grid-template-rows:none!important;
  gap:12px!important;
  align-items:stretch!important;
  margin-top:14px!important;
}
.v22-location-monster-grid.count-1 > .v22-location-monster,
.v22-location-monster-grid.count-2 > .v22-location-monster,
.v22-location-monster-grid.count-3 > .v22-location-monster,
.v22-location-monster-grid.count-4 > .v22-location-monster{
  grid-column:auto!important;
  grid-row:auto!important;
}
.v22-location-monster{
  min-height:0!important;
  height:126px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 46px!important;
  grid-template-rows:48px 8px 30px!important;
  gap:8px 9px!important;
  align-content:center!important;
  align-items:center!important;
  padding:10px!important;
  border-radius:18px!important;
  text-align:left!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.10), transparent 36%),
    linear-gradient(145deg, rgba(74,43,72,.74), rgba(26,29,42,.96))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.24)!important;
}
.v22-location-monster.aggressive-monster{border-color:rgba(239,71,111,.55)!important;box-shadow:0 10px 26px rgba(0,0,0,.24), inset 0 0 0 1px rgba(239,71,111,.18)!important;}
.v22-location-monster.dead{display:none!important;}
.v22-location-monster .location-monster-top{
  grid-column:1 / 2!important;
  grid-row:1 / 2!important;
  display:grid!important;
  grid-template-columns:20px 42px minmax(0,1fr)!important;
  gap:7px!important;
  align-items:center!important;
  min-width:0!important;
}
.v22-location-monster .location-mob-index{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  border-radius:8px!important;
  font-size:10px!important;
  line-height:20px!important;
  background:rgba(255,209,102,.15)!important;
  color:#ffe58d!important;
  align-self:start!important;
}
.v22-location-monster .monster-portrait{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  margin:0!important;
  border-radius:13px!important;
  place-self:center!important;
  background:radial-gradient(circle at 42% 32%, rgba(255,255,255,.24), rgba(255,255,255,.055))!important;
}
.v22-location-monster .monster-portrait span{font-size:27px!important;line-height:1!important;}
.v22-location-monster .location-monster-name{min-width:0!important;display:grid!important;gap:2px!important;align-content:center!important;}
.v22-location-monster .location-monster-name h3{
  margin:0!important;
  font-size:15px!important;
  line-height:1.08!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#fff!important;
  text-align:left!important;
}
.v22-location-monster .v20-monster-flags,
.v22-location-monster .target-pill,
.v22-location-monster .pack-pill,
.v22-location-monster .aggro-badge,
.v22-location-monster small:not(.location-mob-index){display:none!important;}
.v22-location-monster .bar.hp{
  grid-column:1 / 3!important;
  grid-row:2 / 3!important;
  height:8px!important;
  width:100%!important;
  margin:0!important;
  border-radius:999px!important;
  background:rgba(7,8,14,.82)!important;
}
.v22-location-monster .monster-stats{
  grid-column:1 / 2!important;
  grid-row:3 / 4!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  margin:0!important;
  min-width:0!important;
  color:#dfe5f6!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.v22-location-monster .monster-stats span{min-width:auto!important;}
.v22-location-monster .monster-help{
  right:8px!important;
  top:8px!important;
  width:25px!important;
  height:25px!important;
  min-height:25px!important;
  padding:0!important;
  border-radius:10px!important;
  font-size:12px!important;
  background:rgba(255,255,255,.08)!important;
  z-index:4!important;
}
.v22-location-monster .v20-location-attack{
  grid-column:2 / 3!important;
  grid-row:1 / 4!important;
  width:42px!important;
  min-width:42px!important;
  min-height:70px!important;
  height:70px!important;
  align-self:center!important;
  justify-self:end!important;
  padding:0!important;
  border-radius:15px!important;
  font-size:0!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,#ef476f,#8f1538)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.28)!important;
}
.v22-location-monster .v20-location-attack::before{content:'⚔️'!important;font-size:22px!important;line-height:1!important;}
.v22-location-monster .v20-location-attack:disabled::before{content:'…'!important;font-size:24px!important;}

/* отмена старого растягивания карточек локации из v19/v20 */
.v20-location-monster-grid.count-1 > .v20-location-monster,
.v20-location-monster-grid.count-2 > .v20-location-monster:nth-child(1),
.v20-location-monster-grid.count-2 > .v20-location-monster:nth-child(2),
.v20-location-monster-grid.count-3 > .v20-location-monster:nth-child(1),
.v20-location-monster-grid.count-3 > .v20-location-monster:nth-child(2),
.v20-location-monster-grid.count-3 > .v20-location-monster:nth-child(3),
.v19-location-monster-grid.count-1 > .v19-location-monster,
.v19-location-monster-grid.count-2 > .v19-location-monster:nth-child(1),
.v19-location-monster-grid.count-2 > .v19-location-monster:nth-child(2),
.v19-location-monster-grid.count-3 > .v19-location-monster:nth-child(3){
  grid-column:auto!important;
  grid-row:auto!important;
}

/* бой: внутри большой карточки монстр больше не разлетается по углам */
.v22-monster-target .v21-monster-hint,
.v22-monster-target .v19-monster-hint{display:none!important;}
.v22-monster-target .v17-target-actions{z-index:5!important;}
.v22-monster-grid.count-1 > .v22-monster-target{
  display:grid!important;
  grid-template-columns:70px minmax(0,1fr) 48px!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  min-height:168px!important;
  padding:16px!important;
}
.v22-monster-grid.count-1 > .v22-monster-target .monster-portrait{
  width:68px!important;height:68px!important;min-width:68px!important;border-radius:18px!important;grid-column:1!important;grid-row:1!important;
}
.v22-monster-grid.count-1 > .v22-monster-target .monster-portrait span{font-size:43px!important;}
.v22-monster-grid.count-1 > .v22-monster-target .monster-battle-info{
  grid-column:2!important;grid-row:1!important;display:grid!important;gap:8px!important;align-self:center!important;
}
.v22-monster-grid.count-1 .v21-monster-title-line{grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;}
.v22-monster-grid.count-1 .v21-monster-title-line h2{text-align:left!important;font-size:20px!important;}
.v22-monster-grid.count-1 .v21-monster-stats{justify-content:flex-start!important;font-size:12px!important;gap:10px!important;}
.v22-monster-grid.count-1 .v17-target-actions{grid-column:3!important;grid-row:1!important;position:static!important;justify-self:end!important;align-self:center!important;}
.v22-monster-grid.count-1 .v17-sword-btn{width:44px!important;height:44px!important;min-height:44px!important;border-radius:14px!important;font-size:22px!important;}

@media(max-width:760px){
  .v22-location-monster-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:112px!important;
    gap:8px!important;
    margin-top:10px!important;
  }
  .v22-location-monster{
    height:112px!important;
    grid-template-columns:minmax(0,1fr) 36px!important;
    grid-template-rows:42px 7px 24px!important;
    gap:6px!important;
    padding:8px!important;
    border-radius:16px!important;
  }
  .v22-location-monster .location-monster-top{grid-template-columns:18px 34px minmax(0,1fr)!important;gap:5px!important;}
  .v22-location-monster .location-mob-index{width:18px!important;height:18px!important;min-width:18px!important;font-size:9px!important;line-height:18px!important;}
  .v22-location-monster .monster-portrait{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;}
  .v22-location-monster .monster-portrait span{font-size:22px!important;}
  .v22-location-monster .location-monster-name h3{font-size:12px!important;line-height:1.05!important;}
  .v22-location-monster .monster-stats{font-size:9px!important;gap:4px!important;}
  .v22-location-monster .monster-help{width:22px!important;height:22px!important;min-height:22px!important;border-radius:8px!important;font-size:10px!important;right:6px!important;top:6px!important;}
  .v22-location-monster .v20-location-attack{width:34px!important;min-width:34px!important;height:58px!important;min-height:58px!important;border-radius:12px!important;}
  .v22-location-monster .v20-location-attack::before{font-size:18px!important;}

  .v22-monster-grid.count-1 > .v22-monster-target{
    grid-template-columns:52px minmax(0,1fr) 34px!important;
    min-height:154px!important;
    padding:11px!important;
    gap:8px!important;
  }
  .v22-monster-grid.count-1 > .v22-monster-target .monster-portrait{width:50px!important;height:50px!important;min-width:50px!important;border-radius:15px!important;}
  .v22-monster-grid.count-1 > .v22-monster-target .monster-portrait span{font-size:32px!important;}
  .v22-monster-grid.count-1 .v21-monster-title-line h2{font-size:16px!important;text-align:left!important;}
  .v22-monster-grid.count-1 .v21-monster-stats{font-size:10px!important;gap:7px!important;}
  .v22-monster-grid.count-1 .v17-sword-btn{width:34px!important;height:34px!important;min-height:34px!important;font-size:18px!important;}
}
@media(max-width:430px){
  .v22-location-monster-grid{gap:7px!important;grid-auto-rows:104px!important;}
  .v22-location-monster{height:104px!important;grid-template-columns:minmax(0,1fr) 32px!important;grid-template-rows:39px 6px 22px!important;padding:7px!important;gap:5px!important;}
  .v22-location-monster .location-monster-top{grid-template-columns:16px 31px minmax(0,1fr)!important;gap:4px!important;}
  .v22-location-monster .location-mob-index{width:16px!important;height:16px!important;min-width:16px!important;font-size:8px!important;line-height:16px!important;}
  .v22-location-monster .monster-portrait{width:31px!important;height:31px!important;min-width:31px!important;}
  .v22-location-monster .monster-portrait span{font-size:20px!important;}
  .v22-location-monster .location-monster-name h3{font-size:11.5px!important;}
  .v22-location-monster .monster-stats{font-size:8px!important;gap:3px!important;}
  .v22-location-monster .v20-location-attack{width:30px!important;min-width:30px!important;height:52px!important;min-height:52px!important;}
  .v22-location-monster .v20-location-attack::before{font-size:16px!important;}
  .v22-location-monster .monster-help{width:20px!important;height:20px!important;min-height:20px!important;font-size:9px!important;}
}

/* ================= v23: нормальные компактные карточки монстров + главный сундук без ямы ================= */
.v23-home-tools{
  width:min(100%,760px)!important;
  margin:14px 0 0!important;
  display:grid!important;
  gap:12px!important;
}
.v23-chest-card{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) 120px!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px!important;
  border:1px solid rgba(105,220,190,.45)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,rgba(35,48,58,.94),rgba(17,21,33,.96))!important;
  box-shadow:0 18px 36px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.v23-chest-icon{width:58px!important;height:58px!important;display:grid!important;place-items:center!important;border-radius:17px!important;background:rgba(105,220,190,.12)!important;font-size:32px!important;box-shadow:inset 0 0 18px rgba(105,220,190,.12)!important;}
.v23-chest-body h2{margin:0 0 3px!important;font-size:20px!important;line-height:1.1!important;}
.v23-chest-body p{margin:0!important;color:#b7c1d8!important;font-size:13px!important;line-height:1.35!important;}
.v23-chest-card button{min-height:42px!important;border-radius:13px!important;}

.v23-location-monster-grid{
  width:min(100%,720px)!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(250px,340px))!important;
  grid-auto-rows:112px!important;
  justify-content:start!important;
  align-items:stretch!important;
  gap:12px!important;
  margin:14px 0 0!important;
}
.v23-location-monster-grid.count-1 > .v23-location-monster,
.v23-location-monster-grid.count-2 > .v23-location-monster,
.v23-location-monster-grid.count-3 > .v23-location-monster,
.v23-location-monster-grid.count-4 > .v23-location-monster{
  grid-column:auto!important;
  grid-row:auto!important;
}
.v23-location-monster{
  min-width:0!important;
  height:112px!important;
  max-height:112px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 44px!important;
  grid-template-rows:46px 8px 24px!important;
  gap:8px!important;
  padding:10px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,rgba(94,55,87,.74),rgba(29,32,48,.92))!important;
  border:1px solid rgba(239,71,111,.38)!important;
  box-shadow:0 12px 26px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.v23-location-monster.aggressive-monster{border-color:rgba(255,107,107,.62)!important;box-shadow:0 12px 28px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,107,107,.12)!important;}
.v23-location-monster .location-monster-top{
  grid-column:1 / 2!important;
  grid-row:1 / 2!important;
  display:grid!important;
  grid-template-columns:19px 40px minmax(0,1fr)!important;
  gap:7px!important;
  align-items:center!important;
  min-width:0!important;
}
.v23-location-monster .location-mob-index{
  width:19px!important;height:19px!important;min-width:19px!important;line-height:19px!important;
  border-radius:8px!important;text-align:center!important;font-size:9px!important;font-weight:900!important;
  background:rgba(255,209,102,.16)!important;color:#ffe58d!important;align-self:start!important;
}
.v23-location-monster .monster-portrait{width:40px!important;height:40px!important;min-width:40px!important;border-radius:13px!important;margin:0!important;place-self:center!important;background:radial-gradient(circle at 42% 32%,rgba(255,255,255,.26),rgba(255,255,255,.06))!important;}
.v23-location-monster .monster-portrait span{font-size:26px!important;line-height:1!important;}
.v23-location-monster .location-monster-name{display:grid!important;gap:4px!important;align-content:center!important;min-width:0!important;}
.v23-location-monster .location-monster-name h3{margin:0!important;color:#fff!important;font-size:14px!important;line-height:1.05!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important;}
.v23-location-monster .v20-monster-flags{display:flex!important;align-items:center!important;gap:4px!important;min-height:16px!important;overflow:hidden!important;}
.v23-location-monster .v20-monster-flags .flag{display:inline-flex!important;align-items:center!important;height:15px!important;padding:0 6px!important;border-radius:999px!important;font-size:9px!important;font-weight:900!important;line-height:15px!important;letter-spacing:.02em!important;text-transform:lowercase!important;white-space:nowrap!important;}
.v23-location-monster .v20-monster-flags .pack{background:rgba(105,220,190,.16)!important;color:#95ffe1!important;border:1px solid rgba(105,220,190,.22)!important;}
.v23-location-monster .v20-monster-flags .aggro{background:rgba(239,71,111,.16)!important;color:#ff9ab3!important;border:1px solid rgba(239,71,111,.22)!important;}
.v23-location-monster .target-pill,
.v23-location-monster .pack-pill,
.v23-location-monster .aggro-badge,
.v23-location-monster small:not(.location-mob-index){display:none!important;}
.v23-location-monster .bar.hp{grid-column:1 / 3!important;grid-row:2 / 3!important;width:100%!important;height:8px!important;margin:0!important;border-radius:999px!important;background:rgba(7,8,14,.82)!important;overflow:hidden!important;}
.v23-location-monster .bar.hp i{display:block!important;height:100%!important;border-radius:999px!important;}
.v23-location-monster .monster-stats{grid-column:1 / 2!important;grid-row:3 / 4!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;margin:0!important;min-width:0!important;color:#e6ecfb!important;font-size:11px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;}
.v23-location-monster .monster-stats span{min-width:auto!important;display:inline-flex!important;align-items:center!important;}
.v23-location-monster .monster-help{right:7px!important;top:7px!important;width:23px!important;height:23px!important;min-height:23px!important;padding:0!important;border-radius:9px!important;font-size:11px!important;z-index:4!important;background:rgba(13,16,27,.65)!important;border:1px solid rgba(255,255,255,.12)!important;}
.v23-location-monster .v20-location-attack{grid-column:2 / 3!important;grid-row:1 / 4!important;width:42px!important;min-width:42px!important;height:66px!important;min-height:66px!important;align-self:center!important;justify-self:end!important;padding:0!important;border-radius:15px!important;font-size:0!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,#ef476f,#9a1940)!important;box-shadow:0 10px 20px rgba(0,0,0,.28)!important;overflow:hidden!important;}
.v23-location-monster .v20-location-attack::before{content:'⚔️'!important;font-size:21px!important;line-height:1!important;}
.v23-location-monster .v20-location-attack:disabled::before{content:'…'!important;font-size:24px!important;}

/* бой: компактная, но читаемая карточка монстра + бейджи цель/стая */
.v23-monster-badges{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important;min-height:18px!important;margin:-2px 0 1px!important;}
.v23-battle-badge{display:inline-flex!important;align-items:center!important;height:18px!important;padding:0 7px!important;border-radius:999px!important;font-size:10px!important;line-height:18px!important;font-weight:900!important;letter-spacing:.01em!important;white-space:nowrap!important;text-transform:lowercase!important;}
.v23-battle-badge.target{background:rgba(255,209,102,.18)!important;color:#ffe58d!important;border:1px solid rgba(255,209,102,.3)!important;}
.v23-battle-badge.pack{background:rgba(105,220,190,.15)!important;color:#95ffe1!important;border:1px solid rgba(105,220,190,.25)!important;}
.v23-battle-badge.aggro{background:rgba(239,71,111,.17)!important;color:#ff9ab3!important;border:1px solid rgba(239,71,111,.28)!important;}
.v23-battle-badge.stun{background:rgba(150,130,255,.16)!important;color:#cfc5ff!important;border:1px solid rgba(150,130,255,.25)!important;}
.v23-battle .v20-monster-grid{gap:10px!important;}
.v23-battle .v20-monster-grid.count-1 > .v23-monster-target,
.v23-battle .v22-monster-grid.count-1 > .v23-monster-target{
  grid-column:1 / 3!important;
  grid-row:1 / 2!important;
  min-height:132px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) 48px!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px!important;
}
.v23-battle .v23-monster-target .monster-portrait{width:52px!important;height:52px!important;min-width:52px!important;border-radius:16px!important;}
.v23-battle .v23-monster-target .monster-portrait span{font-size:34px!important;}
.v23-battle .v23-monster-target .monster-battle-info{min-width:0!important;display:grid!important;gap:6px!important;align-self:center!important;}
.v23-battle .v23-monster-target .v21-monster-title-line{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-width:0!important;}
.v23-battle .v23-monster-target .v21-monster-title-line h2{font-size:17px!important;line-height:1.05!important;margin:0!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v23-battle .v23-monster-target .v17-mob-index{width:22px!important;height:22px!important;line-height:22px!important;font-size:10px!important;text-align:center!important;}
.v23-battle .v23-monster-target .bar.hp{height:8px!important;margin:0!important;width:100%!important;}
.v23-battle .v23-monster-target .v21-monster-stats{font-size:11px!important;gap:8px!important;justify-content:flex-start!important;white-space:nowrap!important;overflow:hidden!important;}
.v23-battle .v23-monster-target .v17-target-actions{position:static!important;grid-column:3!important;grid-row:1!important;justify-self:end!important;align-self:center!important;z-index:4!important;}
.v23-battle .v23-monster-target .v17-sword-btn{width:42px!important;height:42px!important;min-height:42px!important;border-radius:14px!important;font-size:21px!important;}

@media(max-width:760px){
  .v23-home-tools{width:100%!important;margin-top:12px!important;}
  .v23-chest-card{grid-template-columns:48px minmax(0,1fr) 86px!important;padding:12px!important;gap:10px!important;border-radius:17px!important;}
  .v23-chest-icon{width:48px!important;height:48px!important;border-radius:14px!important;font-size:26px!important;}
  .v23-chest-body h2{font-size:17px!important;}
  .v23-chest-body p{font-size:11.5px!important;line-height:1.25!important;}
  .v23-chest-card button{min-height:38px!important;padding:0 10px!important;}

  .v23-location-monster-grid{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:96px!important;gap:8px!important;margin-top:12px!important;}
  .v23-location-monster{height:96px!important;max-height:96px!important;grid-template-columns:minmax(0,1fr) 34px!important;grid-template-rows:40px 7px 21px!important;padding:7px!important;gap:6px!important;border-radius:15px!important;}
  .v23-location-monster .location-monster-top{grid-template-columns:17px 32px minmax(0,1fr)!important;gap:5px!important;}
  .v23-location-monster .location-mob-index{width:17px!important;height:17px!important;line-height:17px!important;min-width:17px!important;font-size:8px!important;}
  .v23-location-monster .monster-portrait{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important;}
  .v23-location-monster .monster-portrait span{font-size:21px!important;}
  .v23-location-monster .location-monster-name h3{font-size:12px!important;line-height:1.02!important;}
  .v23-location-monster .v20-monster-flags{gap:3px!important;min-height:14px!important;}
  .v23-location-monster .v20-monster-flags .flag{height:13px!important;line-height:13px!important;font-size:8px!important;padding:0 4px!important;}
  .v23-location-monster .bar.hp{height:7px!important;}
  .v23-location-monster .monster-stats{font-size:8.8px!important;gap:4px!important;}
  .v23-location-monster .monster-help{width:20px!important;height:20px!important;min-height:20px!important;right:5px!important;top:5px!important;font-size:9px!important;border-radius:8px!important;}
  .v23-location-monster .v20-location-attack{width:32px!important;min-width:32px!important;height:54px!important;min-height:54px!important;border-radius:11px!important;}
  .v23-location-monster .v20-location-attack::before{font-size:17px!important;}

  .v23-battle .v20-monster-grid{grid-template-rows:repeat(2,96px)!important;grid-auto-rows:96px!important;gap:8px!important;}
  .v23-battle .v20-monster-grid.count-1 > .v23-monster-target,
  .v23-battle .v22-monster-grid.count-1 > .v23-monster-target{min-height:118px!important;grid-template-columns:48px minmax(0,1fr) 36px!important;padding:9px!important;gap:8px!important;}
  .v23-battle .v23-monster-target{padding:8px!important;border-radius:17px!important;}
  .v23-battle .v23-monster-target .monster-portrait{width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important;}
  .v23-battle .v23-monster-target .monster-portrait span{font-size:27px!important;}
  .v23-battle .v23-monster-target .monster-battle-info{gap:4px!important;}
  .v23-battle .v23-monster-target .v21-monster-title-line{grid-template-columns:19px minmax(0,1fr)!important;gap:5px!important;}
  .v23-battle .v23-monster-target .v21-monster-title-line h2{font-size:14px!important;}
  .v23-battle .v23-monster-target .v17-mob-index{width:19px!important;height:19px!important;line-height:19px!important;font-size:9px!important;}
  .v23-battle .v23-monster-target .v23-monster-badges{min-height:15px!important;gap:3px!important;margin:-1px 0 0!important;}
  .v23-battle .v23-monster-target .v23-battle-badge{height:15px!important;line-height:15px!important;font-size:8px!important;padding:0 5px!important;}
  .v23-battle .v23-monster-target .bar.hp{height:7px!important;}
  .v23-battle .v23-monster-target .v21-monster-stats{font-size:9px!important;gap:5px!important;}
  .v23-battle .v23-monster-target .v17-sword-btn{width:34px!important;height:34px!important;min-height:34px!important;border-radius:11px!important;font-size:18px!important;}
}
@media(max-width:430px){
  .v23-location-monster-grid{grid-auto-rows:90px!important;gap:7px!important;}
  .v23-location-monster{height:90px!important;max-height:90px!important;grid-template-columns:minmax(0,1fr) 30px!important;grid-template-rows:38px 6px 19px!important;padding:6px!important;gap:5px!important;}
  .v23-location-monster .location-monster-top{grid-template-columns:15px 29px minmax(0,1fr)!important;gap:4px!important;}
  .v23-location-monster .location-mob-index{width:15px!important;height:15px!important;line-height:15px!important;min-width:15px!important;font-size:7.5px!important;}
  .v23-location-monster .monster-portrait{width:29px!important;height:29px!important;min-width:29px!important;border-radius:10px!important;}
  .v23-location-monster .monster-portrait span{font-size:19px!important;}
  .v23-location-monster .location-monster-name h3{font-size:11.2px!important;}
  .v23-location-monster .v20-monster-flags .flag{height:12px!important;line-height:12px!important;font-size:7.5px!important;padding:0 3px!important;}
  .v23-location-monster .monster-stats{font-size:7.9px!important;gap:3px!important;}
  .v23-location-monster .v20-location-attack{width:29px!important;min-width:29px!important;height:49px!important;min-height:49px!important;}
  .v23-location-monster .v20-location-attack::before{font-size:15px!important;}

  .v23-battle .v20-monster-grid{grid-template-rows:repeat(2,88px)!important;grid-auto-rows:88px!important;}
  .v23-battle .v20-monster-grid.count-1 > .v23-monster-target,
  .v23-battle .v22-monster-grid.count-1 > .v23-monster-target{min-height:108px!important;grid-template-columns:44px minmax(0,1fr) 34px!important;padding:8px!important;}
  .v23-battle .v23-monster-target .monster-portrait{width:38px!important;height:38px!important;min-width:38px!important;}
  .v23-battle .v23-monster-target .monster-portrait span{font-size:24px!important;}
  .v23-battle .v23-monster-target .v21-monster-title-line h2{font-size:13.2px!important;}
  .v23-battle .v23-monster-target .v21-monster-stats{font-size:8.3px!important;gap:4px!important;}
}

/* ================= v24: пересборка карточек монстров в локации ================= */
.v24-location-monster-grid{
  width:min(100%,980px)!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(340px,1fr))!important;
  grid-auto-rows:128px!important;
  gap:12px!important;
  align-items:stretch!important;
  justify-content:start!important;
  margin:14px 0 0!important;
}
.v24-location-monster-grid.count-1 > .v24-location-monster,
.v24-location-monster-grid.count-2 > .v24-location-monster,
.v24-location-monster-grid.count-3 > .v24-location-monster,
.v24-location-monster-grid.count-4 > .v24-location-monster{
  grid-column:auto!important;
  grid-row:auto!important;
}
.v24-location-monster{
  position:relative!important;
  min-width:0!important;
  height:128px!important;
  max-height:128px!important;
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) 54px!important;
  grid-template-rows:auto 9px auto!important;
  gap:8px 12px!important;
  align-items:center!important;
  padding:13px 12px!important;
  border-radius:20px!important;
  overflow:hidden!important;
  text-align:left!important;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.13), transparent 34%),
    linear-gradient(135deg, rgba(82,45,75,.86), rgba(25,28,43,.96))!important;
  border:1px solid rgba(239,71,111,.36)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.v24-location-monster.aggressive-monster{border-color:rgba(255,88,132,.66)!important;box-shadow:0 12px 28px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,88,132,.15)!important;}
.v24-location-monster.dead{display:none!important;}
.v24-location-monster .location-monster-top{display:contents!important;}
.v24-location-monster .location-mob-index{
  position:absolute!important;
  left:9px!important;
  top:9px!important;
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  line-height:21px!important;
  border-radius:9px!important;
  text-align:center!important;
  font-size:10px!important;
  font-weight:900!important;
  background:rgba(255,209,102,.20)!important;
  color:#ffe58d!important;
  z-index:3!important;
}
.v24-location-monster .monster-portrait{
  grid-column:1 / 2!important;
  grid-row:1 / 4!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  margin:0!important;
  place-self:center!important;
  border-radius:17px!important;
  display:grid!important;
  place-items:center!important;
  background:radial-gradient(circle at 42% 30%,rgba(255,255,255,.27),rgba(255,255,255,.065))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:inset 0 0 16px rgba(255,255,255,.06)!important;
}
.v24-location-monster .monster-portrait span{font-size:36px!important;line-height:1!important;display:block!important;}
.v24-location-monster .location-monster-name{
  grid-column:2 / 3!important;
  grid-row:1 / 2!important;
  min-width:0!important;
  display:grid!important;
  gap:5px!important;
  align-self:end!important;
}
.v24-location-monster .location-monster-name h3{
  margin:0!important;
  font-size:18px!important;
  line-height:1.05!important;
  font-weight:900!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
}
.v24-location-monster .v20-monster-flags{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:17px!important;
  overflow:hidden!important;
}
.v24-location-monster .v20-monster-flags .flag{
  display:inline-flex!important;
  align-items:center!important;
  height:16px!important;
  line-height:16px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  text-transform:lowercase!important;
  white-space:nowrap!important;
}
.v24-location-monster .v20-monster-flags .pack{background:rgba(105,220,190,.16)!important;color:#95ffe1!important;border:1px solid rgba(105,220,190,.25)!important;}
.v24-location-monster .v20-monster-flags .aggro{background:rgba(239,71,111,.17)!important;color:#ff9ab3!important;border:1px solid rgba(239,71,111,.28)!important;}
.v24-location-monster .target-pill,
.v24-location-monster .pack-pill,
.v24-location-monster .aggro-badge,
.v24-location-monster small:not(.location-mob-index){display:none!important;}
.v24-location-monster .bar.hp{
  grid-column:2 / 3!important;
  grid-row:2 / 3!important;
  width:100%!important;
  height:9px!important;
  margin:0!important;
  align-self:center!important;
  border-radius:999px!important;
  background:rgba(7,8,14,.84)!important;
  overflow:hidden!important;
}
.v24-location-monster .bar.hp i{display:block!important;height:100%!important;border-radius:999px!important;}
.v24-location-monster .monster-stats{
  grid-column:2 / 3!important;
  grid-row:3 / 4!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  margin:0!important;
  min-width:0!important;
  color:#edf2ff!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.v24-location-monster .monster-stats span{display:inline-flex!important;align-items:center!important;min-width:auto!important;}
.v24-location-monster .monster-help{
  position:absolute!important;
  right:9px!important;
  top:9px!important;
  width:25px!important;
  height:25px!important;
  min-height:25px!important;
  padding:0!important;
  border-radius:9px!important;
  font-size:12px!important;
  line-height:25px!important;
  text-align:center!important;
  z-index:5!important;
  background:rgba(13,16,27,.72)!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
.v24-location-monster .v24-location-attack,
.v24-location-monster .v20-location-attack{
  grid-column:3 / 4!important;
  grid-row:1 / 4!important;
  width:48px!important;
  min-width:48px!important;
  height:76px!important;
  min-height:76px!important;
  align-self:center!important;
  justify-self:end!important;
  padding:0!important;
  border-radius:17px!important;
  display:grid!important;
  place-items:center!important;
  font-size:22px!important;
  line-height:1!important;
  color:#fff!important;
  text-indent:0!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#ef476f,#9a1940)!important;
  box-shadow:0 10px 20px rgba(0,0,0,.30)!important;
}
.v24-location-monster .v24-location-attack::before,
.v24-location-monster .v20-location-attack::before{content:none!important;}
.v24-location-monster .v24-location-attack:disabled,
.v24-location-monster .v20-location-attack:disabled{opacity:.45!important;filter:grayscale(.45)!important;}

@media(max-width:900px){
  .v24-location-monster-grid{grid-template-columns:repeat(2,minmax(260px,1fr))!important;width:100%!important;grid-auto-rows:120px!important;}
  .v24-location-monster{height:120px!important;max-height:120px!important;grid-template-columns:54px minmax(0,1fr) 46px!important;padding:11px!important;gap:7px 10px!important;}
  .v24-location-monster .monster-portrait{width:50px!important;height:50px!important;min-width:50px!important;border-radius:15px!important;}
  .v24-location-monster .monster-portrait span{font-size:32px!important;}
  .v24-location-monster .location-monster-name h3{font-size:16px!important;}
  .v24-location-monster .monster-stats{font-size:11px!important;gap:8px!important;}
  .v24-location-monster .v24-location-attack,.v24-location-monster .v20-location-attack{width:43px!important;min-width:43px!important;height:68px!important;min-height:68px!important;font-size:20px!important;border-radius:15px!important;}
}
@media(max-width:560px){
  .v24-location-monster-grid{grid-template-columns:1fr!important;grid-auto-rows:112px!important;gap:9px!important;margin-top:11px!important;}
  .v24-location-monster{height:112px!important;max-height:112px!important;grid-template-columns:50px minmax(0,1fr) 42px!important;grid-template-rows:auto 8px auto!important;padding:10px!important;border-radius:17px!important;gap:7px 9px!important;}
  .v24-location-monster .location-mob-index{left:8px!important;top:8px!important;width:19px!important;height:19px!important;min-width:19px!important;line-height:19px!important;font-size:9px!important;}
  .v24-location-monster .monster-portrait{width:46px!important;height:46px!important;min-width:46px!important;border-radius:14px!important;}
  .v24-location-monster .monster-portrait span{font-size:30px!important;}
  .v24-location-monster .location-monster-name h3{font-size:15px!important;}
  .v24-location-monster .v20-monster-flags{min-height:15px!important;gap:4px!important;}
  .v24-location-monster .v20-monster-flags .flag{height:14px!important;line-height:14px!important;font-size:8px!important;padding:0 5px!important;}
  .v24-location-monster .bar.hp{height:8px!important;}
  .v24-location-monster .monster-stats{font-size:10px!important;gap:7px!important;}
  .v24-location-monster .monster-help{width:22px!important;height:22px!important;min-height:22px!important;right:7px!important;top:7px!important;font-size:10px!important;line-height:22px!important;}
  .v24-location-monster .v24-location-attack,.v24-location-monster .v20-location-attack{width:40px!important;min-width:40px!important;height:62px!important;min-height:62px!important;font-size:19px!important;border-radius:14px!important;}
}
@media(max-width:380px){
  .v24-location-monster-grid{grid-auto-rows:106px!important;gap:8px!important;}
  .v24-location-monster{height:106px!important;max-height:106px!important;grid-template-columns:45px minmax(0,1fr) 38px!important;padding:8px!important;gap:6px 8px!important;}
  .v24-location-monster .monster-portrait{width:42px!important;height:42px!important;min-width:42px!important;}
  .v24-location-monster .monster-portrait span{font-size:27px!important;}
  .v24-location-monster .location-monster-name h3{font-size:14px!important;}
  .v24-location-monster .monster-stats{font-size:9.2px!important;gap:5px!important;}
  .v24-location-monster .v24-location-attack,.v24-location-monster .v20-location-attack{width:36px!important;min-width:36px!important;height:58px!important;min-height:58px!important;font-size:17px!important;}
}

/* ================= v25: вопросик не залезает на меч + новые карточки игроков в бою ================= */
.v25-help-note{
  margin:8px 0 10px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  background:rgba(255,209,102,.08)!important;
  border:1px solid rgba(255,209,102,.14)!important;
  color:#dbe3ff!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.v25-help-friend{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  padding:9px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.09)!important;
}
.v25-help-friend span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.v25-help-friend button{min-height:34px!important;border-radius:11px!important;white-space:nowrap!important;}

/* В локации кнопка лута (?) теперь стоит перед мечом, а не поверх него. */
.v24-location-monster .monster-help,
.v23-location-monster .monster-help,
.v22-location-monster .monster-help{
  right:66px!important;
  top:10px!important;
  z-index:8!important;
}
.v24-location-monster .v24-location-attack,
.v24-location-monster .v20-location-attack{
  z-index:4!important;
}

.party-panel.v17-party-panel,
.party-panel.v11-party-panel,
.party-panel.v10-party-panel{
  background:linear-gradient(145deg,rgba(21,27,42,.94),rgba(14,17,28,.98))!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.025)!important;
}
.battle-player.v25-player{
  position:relative!important;
  min-height:116px!important;
  padding:12px!important;
  display:grid!important;
  grid-template-rows:auto auto auto!important;
  gap:9px!important;
  border-radius:20px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 12% 14%,rgba(105,220,190,.13),transparent 32%),
    linear-gradient(135deg,rgba(25,49,68,.96),rgba(21,26,42,.98))!important;
  border:1px solid rgba(150,180,255,.18)!important;
  box-shadow:0 12px 26px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.035)!important;
  opacity:1!important;
}
.battle-player.v25-player.self{
  border-color:rgba(6,214,160,.45)!important;
  box-shadow:0 12px 26px rgba(0,0,0,.26), inset 0 0 0 1px rgba(6,214,160,.14)!important;
}
.battle-player.v25-player.acted{
  opacity:.92!important;
  background:
    radial-gradient(circle at 12% 14%,rgba(255,209,102,.10),transparent 32%),
    linear-gradient(135deg,rgba(32,42,60,.96),rgba(18,23,37,.98))!important;
}
.battle-player.v25-player:before{
  height:4px!important;
  background:linear-gradient(90deg,#06d6a0,#6f7cff,#ffd166)!important;
  opacity:.78!important;
}
.battle-player.v25-player.acted:before{background:linear-gradient(90deg,#ffd166,#ef476f)!important;}
.battle-player.v25-player .player-card-head{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  min-width:0!important;
}
.battle-player.v25-player .player-avatar{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  border-radius:15px!important;
  display:grid!important;
  place-items:center!important;
  font-size:25px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.045))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:inset 0 0 18px rgba(255,255,255,.06)!important;
}
.battle-player.v25-player .v25-player-title{min-width:0!important;display:grid!important;gap:1px!important;}
.battle-player.v25-player .v25-player-title h3{
  margin:0!important;
  font-size:14px!important;
  line-height:1.08!important;
  color:#fff!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v25-player .v25-player-title small{
  color:#aeb9d2!important;
  font-size:10.5px!important;
  line-height:1.1!important;
}
.battle-player.v25-player .v17-taunt-badge{
  height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
}
.battle-player.v25-player .player-bars{
  grid-column:1 / -1!important;
  display:grid!important;
  gap:7px!important;
}
.battle-player.v25-player .stat-row{
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
}
.battle-player.v25-player .stat-row span{
  min-width:0!important;
  color:#e8efff!important;
  font-size:11.5px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
.battle-player.v25-player .bar{
  height:8px!important;
  border-radius:999px!important;
  background:rgba(7,8,14,.82)!important;
  overflow:hidden!important;
}
.battle-player.v25-player .v25-player-status,
.battle-player.v25-player em.v25-player-status{
  grid-column:1 / -1!important;
  width:100%!important;
  min-height:26px!important;
  margin:0!important;
  padding:5px 9px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  border-radius:12px!important;
  font-size:11.5px!important;
  line-height:1.15!important;
  font-style:normal!important;
  font-weight:900!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  color:#dce7ff!important;
  background:rgba(255,255,255,.065)!important;
  border:1px solid rgba(255,255,255,.09)!important;
}
.battle-player.v25-player .v25-player-status span{font-size:13px!important;line-height:1!important;}
.battle-player.v25-player .v25-player-status.attack{color:#ffe6a0!important;background:rgba(255,209,102,.11)!important;border-color:rgba(255,209,102,.22)!important;}
.battle-player.v25-player .v25-player-status.skill{color:#d7ccff!important;background:rgba(150,130,255,.12)!important;border-color:rgba(150,130,255,.22)!important;}
.battle-player.v25-player .v25-player-status.help{color:#aef7df!important;background:rgba(6,214,160,.10)!important;border-color:rgba(6,214,160,.20)!important;}
.battle-player.v25-player .v25-player-status.skip{color:#b7c1d8!important;background:rgba(255,255,255,.045)!important;border-color:rgba(255,255,255,.08)!important;}
.battle-player.v25-player .v25-player-status.taunt{color:#ffe58d!important;background:rgba(255,209,102,.12)!important;border-color:rgba(255,209,102,.24)!important;}

@media(max-width:820px){
  .v24-location-monster .monster-help,
  .v23-location-monster .monster-help,
  .v22-location-monster .monster-help{right:58px!important;top:8px!important;}
  .battle-player.v25-player{min-height:110px!important;padding:10px!important;border-radius:18px!important;gap:8px!important;}
  .battle-player.v25-player .player-card-head{grid-template-columns:40px minmax(0,1fr) auto!important;gap:8px!important;}
  .battle-player.v25-player .player-avatar{width:39px!important;height:39px!important;min-width:39px!important;border-radius:13px!important;font-size:23px!important;}
  .battle-player.v25-player .v25-player-title h3{font-size:13px!important;}
  .battle-player.v25-player .v25-player-title small{font-size:10px!important;}
  .battle-player.v25-player .stat-row{grid-template-columns:66px minmax(0,1fr)!important;gap:6px!important;}
  .battle-player.v25-player .stat-row span{font-size:10.5px!important;}
  .battle-player.v25-player .bar{height:7px!important;}
  .battle-player.v25-player .v25-player-status{min-height:25px!important;font-size:10.5px!important;padding:5px 8px!important;}
}
@media(max-width:560px){
  .v11-party-grid.count-1,
  .v11-party-grid.count-2,
  .v11-party-grid.count-3,
  .v11-party-grid.count-4,
  .v10-party-grid.count-1,
  .v10-party-grid.count-2,
  .v10-party-grid.count-3,
  .v10-party-grid.count-4{grid-template-columns:1fr!important;}
  .battle-player.v25-player{min-height:104px!important;}
  .battle-player.v25-player .v17-taunt-badge{font-size:9px!important;height:20px!important;padding:0 6px!important;}
  .v24-location-monster .monster-help,
  .v23-location-monster .monster-help,
  .v22-location-monster .monster-help{right:52px!important;top:8px!important;}
}
@media(max-width:380px){
  .battle-player.v25-player .player-card-head{grid-template-columns:36px minmax(0,1fr)!important;}
  .battle-player.v25-player .player-avatar{width:35px!important;height:35px!important;min-width:35px!important;font-size:21px!important;}
  .battle-player.v25-player .v25-player-title h3{font-size:12px!important;}
  .battle-player.v25-player .stat-row{grid-template-columns:58px minmax(0,1fr)!important;}
  .battle-player.v25-player .stat-row span{font-size:9.5px!important;}
  .battle-player.v25-player .v25-player-status{font-size:9.8px!important;}
}

/* ================= v26: аккуратная карточка монстра в локации ================= */
/* Главная цель: текст бейджей больше не вылезает из мини-рамки, а карточка не выглядит сжатой/кривой. */
.v24-location-monster-grid,
.v23-location-monster-grid,
.v22-location-monster-grid{
  width:min(100%, 920px)!important;
  max-width:920px!important;
  display:grid!important;
  grid-template-columns:repeat(2, minmax(300px, 420px))!important;
  grid-auto-rows:108px!important;
  gap:10px!important;
  align-items:stretch!important;
  justify-content:start!important;
  margin:14px 0 0!important;
}
.v24-location-monster-grid.count-1 > .v24-location-monster,
.v24-location-monster-grid.count-2 > .v24-location-monster,
.v24-location-monster-grid.count-3 > .v24-location-monster,
.v24-location-monster-grid.count-4 > .v24-location-monster,
.v23-location-monster-grid.count-1 > .v23-location-monster,
.v23-location-monster-grid.count-2 > .v23-location-monster,
.v23-location-monster-grid.count-3 > .v23-location-monster,
.v23-location-monster-grid.count-4 > .v23-location-monster{
  grid-column:auto!important;
  grid-row:auto!important;
}
.v24-location-monster,
.v23-location-monster,
.v22-location-monster{
  position:relative!important;
  height:108px!important;
  min-height:108px!important;
  max-height:108px!important;
  width:100%!important;
  max-width:420px!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:52px minmax(0, 1fr) 46px!important;
  grid-template-rows:34px 8px 22px!important;
  gap:6px 10px!important;
  align-items:center!important;
  padding:10px!important;
  overflow:hidden!important;
  border-radius:18px!important;
  text-align:left!important;
  background:
    radial-gradient(circle at 16% 16%, rgba(255,255,255,.12), transparent 34%),
    linear-gradient(135deg, rgba(76,43,72,.92), rgba(22,25,39,.98))!important;
  border:1px solid rgba(239,71,111,.42)!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.v24-location-monster .location-monster-top,
.v23-location-monster .location-monster-top,
.v22-location-monster .location-monster-top{display:contents!important;}
.v24-location-monster .location-mob-index,
.v23-location-monster .location-mob-index,
.v22-location-monster .location-mob-index{
  position:absolute!important;
  left:7px!important;
  top:7px!important;
  width:20px!important;
  min-width:20px!important;
  height:20px!important;
  line-height:20px!important;
  border-radius:9px!important;
  font-size:9px!important;
  font-weight:900!important;
  text-align:center!important;
  background:rgba(255,209,102,.24)!important;
  color:#ffe58d!important;
  z-index:6!important;
}
.v24-location-monster .monster-portrait,
.v23-location-monster .monster-portrait,
.v22-location-monster .monster-portrait{
  grid-column:1/2!important;
  grid-row:1/4!important;
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  margin:0!important;
  place-self:center!important;
  border-radius:15px!important;
  display:grid!important;
  place-items:center!important;
  background:radial-gradient(circle at 42% 30%,rgba(255,255,255,.26),rgba(255,255,255,.06))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:inset 0 0 15px rgba(255,255,255,.055)!important;
}
.v24-location-monster .monster-portrait span,
.v23-location-monster .monster-portrait span,
.v22-location-monster .monster-portrait span{font-size:31px!important;line-height:1!important;display:block!important;}
.v24-location-monster .location-monster-name,
.v23-location-monster .location-monster-name,
.v22-location-monster .location-monster-name{
  grid-column:2/3!important;
  grid-row:1/2!important;
  min-width:0!important;
  max-width:100%!important;
  align-self:center!important;
  display:grid!important;
  gap:4px!important;
  overflow:visible!important;
}
.v24-location-monster .location-monster-name h3,
.v23-location-monster .location-monster-name h3,
.v22-location-monster .location-monster-name h3{
  margin:0!important;
  min-width:0!important;
  max-width:100%!important;
  font-size:16px!important;
  line-height:1.05!important;
  font-weight:900!important;
  color:#fff!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-align:left!important;
}
.v24-location-monster .v20-monster-flags,
.v23-location-monster .v20-monster-flags,
.v22-location-monster .v20-monster-flags{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  min-height:17px!important;
  overflow:visible!important;
  max-width:100%!important;
}
.v24-location-monster .v20-monster-flags .flag,
.v23-location-monster .v20-monster-flags .flag,
.v22-location-monster .v20-monster-flags .flag{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-width:36px!important;
  max-width:none!important;
  height:16px!important;
  line-height:16px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  font-size:8.7px!important;
  font-weight:900!important;
  letter-spacing:0!important;
  text-transform:lowercase!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.v24-location-monster .v20-monster-flags .pack,
.v23-location-monster .v20-monster-flags .pack,
.v22-location-monster .v20-monster-flags .pack{background:rgba(105,220,190,.16)!important;color:#95ffe1!important;border:1px solid rgba(105,220,190,.26)!important;}
.v24-location-monster .v20-monster-flags .aggro,
.v23-location-monster .v20-monster-flags .aggro,
.v22-location-monster .v20-monster-flags .aggro{background:rgba(239,71,111,.18)!important;color:#ff9ab3!important;border:1px solid rgba(239,71,111,.30)!important;}
.v24-location-monster .bar.hp,
.v23-location-monster .bar.hp,
.v22-location-monster .bar.hp{
  grid-column:2/3!important;
  grid-row:2/3!important;
  width:100%!important;
  height:8px!important;
  margin:0!important;
  border-radius:999px!important;
  background:rgba(7,8,14,.86)!important;
  overflow:hidden!important;
}
.v24-location-monster .monster-stats,
.v23-location-monster .monster-stats,
.v22-location-monster .monster-stats{
  grid-column:2/3!important;
  grid-row:3/4!important;
  min-width:0!important;
  max-width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:9px!important;
  margin:0!important;
  color:#edf2ff!important;
  font-size:10.7px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.v24-location-monster .monster-stats span,
.v23-location-monster .monster-stats span,
.v22-location-monster .monster-stats span{display:inline-flex!important;align-items:center!important;min-width:auto!important;}
.v24-location-monster .monster-help,
.v23-location-monster .monster-help,
.v22-location-monster .monster-help{
  position:absolute!important;
  right:9px!important;
  top:8px!important;
  width:23px!important;
  min-width:23px!important;
  height:23px!important;
  min-height:23px!important;
  padding:0!important;
  border-radius:9px!important;
  font-size:10px!important;
  line-height:23px!important;
  text-align:center!important;
  z-index:9!important;
  background:rgba(13,16,27,.76)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:none!important;
}
.v24-location-monster .v24-location-attack,
.v24-location-monster .v20-location-attack,
.v23-location-monster .v20-location-attack,
.v22-location-monster .v20-location-attack{
  grid-column:3/4!important;
  grid-row:1/4!important;
  width:42px!important;
  min-width:42px!important;
  height:50px!important;
  min-height:50px!important;
  align-self:end!important;
  justify-self:end!important;
  margin:0 0 1px 0!important;
  padding:0!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  font-size:19px!important;
  line-height:1!important;
  text-indent:0!important;
  overflow:hidden!important;
  color:#fff!important;
  background:linear-gradient(145deg,#ef476f,#a4133c)!important;
  box-shadow:0 9px 18px rgba(0,0,0,.30)!important;
  z-index:4!important;
}
.v24-location-monster .v24-location-attack::before,
.v24-location-monster .v20-location-attack::before,
.v23-location-monster .v20-location-attack::before,
.v22-location-monster .v20-location-attack::before{content:none!important;}

@media(max-width:900px){
  .v24-location-monster-grid,
  .v23-location-monster-grid,
  .v22-location-monster-grid{grid-template-columns:repeat(2,minmax(270px,1fr))!important;grid-auto-rows:104px!important;max-width:100%!important;gap:9px!important;}
  .v24-location-monster,.v23-location-monster,.v22-location-monster{max-width:none!important;height:104px!important;min-height:104px!important;max-height:104px!important;grid-template-columns:48px minmax(0,1fr) 42px!important;padding:9px!important;gap:6px 9px!important;}
  .v24-location-monster .monster-portrait,.v23-location-monster .monster-portrait,.v22-location-monster .monster-portrait{width:44px!important;min-width:44px!important;height:44px!important;}
  .v24-location-monster .monster-portrait span,.v23-location-monster .monster-portrait span,.v22-location-monster .monster-portrait span{font-size:28px!important;}
  .v24-location-monster .location-monster-name h3,.v23-location-monster .location-monster-name h3,.v22-location-monster .location-monster-name h3{font-size:14.5px!important;}
  .v24-location-monster .monster-stats,.v23-location-monster .monster-stats,.v22-location-monster .monster-stats{font-size:9.8px!important;gap:6px!important;}
  .v24-location-monster .v24-location-attack,.v24-location-monster .v20-location-attack,.v23-location-monster .v20-location-attack,.v22-location-monster .v20-location-attack{width:38px!important;min-width:38px!important;height:48px!important;min-height:48px!important;font-size:17px!important;}
}
@media(max-width:620px){
  .v24-location-monster-grid,
  .v23-location-monster-grid,
  .v22-location-monster-grid{grid-template-columns:1fr!important;grid-auto-rows:102px!important;gap:9px!important;margin-top:11px!important;}
  .v24-location-monster,.v23-location-monster,.v22-location-monster{height:102px!important;min-height:102px!important;max-height:102px!important;grid-template-columns:46px minmax(0,1fr) 40px!important;grid-template-rows:33px 8px 20px!important;padding:9px!important;border-radius:17px!important;gap:6px 8px!important;}
  .v24-location-monster .location-mob-index,.v23-location-monster .location-mob-index,.v22-location-monster .location-mob-index{left:7px!important;top:7px!important;width:18px!important;min-width:18px!important;height:18px!important;line-height:18px!important;font-size:8px!important;border-radius:8px!important;}
  .v24-location-monster .monster-portrait,.v23-location-monster .monster-portrait,.v22-location-monster .monster-portrait{width:42px!important;min-width:42px!important;height:42px!important;border-radius:13px!important;}
  .v24-location-monster .monster-portrait span,.v23-location-monster .monster-portrait span,.v22-location-monster .monster-portrait span{font-size:27px!important;}
  .v24-location-monster .location-monster-name h3,.v23-location-monster .location-monster-name h3,.v22-location-monster .location-monster-name h3{font-size:14px!important;}
  .v24-location-monster .v20-monster-flags,.v23-location-monster .v20-monster-flags,.v22-location-monster .v20-monster-flags{gap:4px!important;min-height:16px!important;}
  .v24-location-monster .v20-monster-flags .flag,.v23-location-monster .v20-monster-flags .flag,.v22-location-monster .v20-monster-flags .flag{min-width:34px!important;height:15px!important;line-height:15px!important;font-size:8px!important;padding:0 5px!important;}
  .v24-location-monster .monster-stats,.v23-location-monster .monster-stats,.v22-location-monster .monster-stats{font-size:9.2px!important;gap:5px!important;}
  .v24-location-monster .monster-help,.v23-location-monster .monster-help,.v22-location-monster .monster-help{right:8px!important;top:7px!important;width:21px!important;min-width:21px!important;height:21px!important;min-height:21px!important;line-height:21px!important;font-size:9px!important;}
  .v24-location-monster .v24-location-attack,.v24-location-monster .v20-location-attack,.v23-location-monster .v20-location-attack,.v22-location-monster .v20-location-attack{width:36px!important;min-width:36px!important;height:45px!important;min-height:45px!important;font-size:16px!important;border-radius:13px!important;}
}
@media(max-width:380px){
  .v24-location-monster,.v23-location-monster,.v22-location-monster{grid-template-columns:42px minmax(0,1fr) 36px!important;height:98px!important;min-height:98px!important;max-height:98px!important;padding:8px!important;gap:5px 7px!important;}
  .v24-location-monster .monster-portrait,.v23-location-monster .monster-portrait,.v22-location-monster .monster-portrait{width:39px!important;min-width:39px!important;height:39px!important;}
  .v24-location-monster .monster-portrait span,.v23-location-monster .monster-portrait span,.v22-location-monster .monster-portrait span{font-size:25px!important;}
  .v24-location-monster .location-monster-name h3,.v23-location-monster .location-monster-name h3,.v22-location-monster .location-monster-name h3{font-size:13px!important;}
  .v24-location-monster .monster-stats,.v23-location-monster .monster-stats,.v22-location-monster .monster-stats{font-size:8.6px!important;gap:4px!important;}
  .v24-location-monster .v20-monster-flags .flag,.v23-location-monster .v20-monster-flags .flag,.v22-location-monster .v20-monster-flags .flag{min-width:32px!important;font-size:7.6px!important;padding:0 4px!important;}
  .v24-location-monster .v24-location-attack,.v24-location-monster .v20-location-attack,.v23-location-monster .v20-location-attack,.v22-location-monster .v20-location-attack{width:33px!important;min-width:33px!important;height:42px!important;min-height:42px!important;font-size:15px!important;}
}

/* ================= v27: возврат правильной сетки монстров в бою + новый профиль ================= */
.v27-battle .v27-monster-grid,
.v27-battle .v20-monster-grid,
.v27-battle .v22-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(112px,auto))!important;
  grid-auto-rows:minmax(112px,auto)!important;
  gap:10px!important;
  width:100%!important;
  align-items:stretch!important;
  min-width:0!important;
}
.v27-battle .v27-monster-grid > .v27-monster-target,
.v27-battle .v20-monster-grid > .v27-monster-target,
.v27-battle .v22-monster-grid > .v27-monster-target{
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:112px!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) 48px!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:11px!important;
  padding:12px!important;
  overflow:hidden!important;
  border-radius:20px!important;
}
.v27-battle .v27-monster-target .monster-battle-info{min-width:0!important;display:grid!important;gap:6px!important;align-self:center!important;}
.v27-battle .v27-monster-target .monster-portrait.battle{width:54px!important;height:54px!important;min-width:54px!important;margin:0!important;border-radius:16px!important;}
.v27-battle .v27-monster-target .monster-portrait.battle span{font-size:34px!important;}
.v27-battle .v27-monster-target .v21-monster-title-line{display:grid!important;grid-template-columns:23px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;}
.v27-battle .v27-monster-target .v21-monster-title-line h2{font-size:16px!important;line-height:1.05!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;}
.v27-battle .v27-monster-target .v17-mob-index{width:23px!important;height:23px!important;line-height:23px!important;font-size:10px!important;text-align:center!important;}
.v27-battle .v27-monster-target .v23-monster-badges{min-height:17px!important;gap:4px!important;margin:0!important;}
.v27-battle .v27-monster-target .v23-battle-badge{height:17px!important;line-height:17px!important;font-size:9px!important;padding:0 6px!important;}
.v27-battle .v27-monster-target .bar.hp{width:100%!important;height:8px!important;margin:0!important;}
.v27-battle .v27-monster-target .v21-monster-stats{font-size:10.5px!important;gap:8px!important;justify-content:flex-start!important;white-space:nowrap!important;overflow:hidden!important;}
.v27-battle .v27-monster-target .v17-target-actions{position:static!important;grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;z-index:5!important;}
.v27-battle .v27-monster-target .v17-sword-btn{width:42px!important;height:42px!important;min-height:42px!important;border-radius:14px!important;font-size:21px!important;padding:0!important;display:grid!important;place-items:center!important;}
.v27-battle .v27-monster-grid.count-1 > .v27-monster-target,
.v27-battle .v20-monster-grid.count-1 > .v27-monster-target,
.v27-battle .v22-monster-grid.count-1 > .v27-monster-target{
  grid-column:1 / 3!important;
  grid-row:1 / 3!important;
  min-height:234px!important;
}
.v27-battle .v27-monster-grid.count-2 > .v27-monster-target:nth-child(1),
.v27-battle .v20-monster-grid.count-2 > .v27-monster-target:nth-child(1),
.v27-battle .v22-monster-grid.count-2 > .v27-monster-target:nth-child(1){grid-column:1 / 3!important;grid-row:1 / 2!important;}
.v27-battle .v27-monster-grid.count-2 > .v27-monster-target:nth-child(2),
.v27-battle .v20-monster-grid.count-2 > .v27-monster-target:nth-child(2),
.v27-battle .v22-monster-grid.count-2 > .v27-monster-target:nth-child(2){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v27-battle .v27-monster-grid.count-3 > .v27-monster-target:nth-child(1),
.v27-battle .v20-monster-grid.count-3 > .v27-monster-target:nth-child(1),
.v27-battle .v22-monster-grid.count-3 > .v27-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
.v27-battle .v27-monster-grid.count-3 > .v27-monster-target:nth-child(2),
.v27-battle .v20-monster-grid.count-3 > .v27-monster-target:nth-child(2),
.v27-battle .v22-monster-grid.count-3 > .v27-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
.v27-battle .v27-monster-grid.count-3 > .v27-monster-target:nth-child(3),
.v27-battle .v20-monster-grid.count-3 > .v27-monster-target:nth-child(3),
.v27-battle .v22-monster-grid.count-3 > .v27-monster-target:nth-child(3){grid-column:1 / 3!important;grid-row:2 / 3!important;}
.v27-battle .v27-monster-grid.count-4 > .v27-monster-target:nth-child(1),
.v27-battle .v20-monster-grid.count-4 > .v27-monster-target:nth-child(1),
.v27-battle .v22-monster-grid.count-4 > .v27-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
.v27-battle .v27-monster-grid.count-4 > .v27-monster-target:nth-child(2),
.v27-battle .v20-monster-grid.count-4 > .v27-monster-target:nth-child(2),
.v27-battle .v22-monster-grid.count-4 > .v27-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
.v27-battle .v27-monster-grid.count-4 > .v27-monster-target:nth-child(3),
.v27-battle .v20-monster-grid.count-4 > .v27-monster-target:nth-child(3),
.v27-battle .v22-monster-grid.count-4 > .v27-monster-target:nth-child(3){grid-column:1 / 2!important;grid-row:2 / 3!important;}
.v27-battle .v27-monster-grid.count-4 > .v27-monster-target:nth-child(4),
.v27-battle .v20-monster-grid.count-4 > .v27-monster-target:nth-child(4),
.v27-battle .v22-monster-grid.count-4 > .v27-monster-target:nth-child(4){grid-column:2 / 3!important;grid-row:2 / 3!important;}

.v27-profile-layout{
  max-width:1120px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:320px minmax(0,1fr)!important;
  grid-template-areas:"hero equip" "stats equip"!important;
  gap:14px!important;
  align-items:start!important;
}
.v27-profile-hero{grid-area:hero!important;position:relative!important;top:auto!important;min-height:0!important;padding:18px!important;border-radius:26px!important;text-align:center!important;background:linear-gradient(155deg,rgba(58,36,88,.96),rgba(23,26,41,.97))!important;border:1px solid rgba(255,209,102,.22)!important;box-shadow:0 18px 44px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.035)!important;}
.v27-avatar-ring{width:148px!important;height:148px!important;border-radius:40px!important;padding:10px!important;margin:0 auto 12px!important;background:linear-gradient(135deg,rgba(255,209,102,.76),rgba(123,44,191,.55),rgba(17,138,178,.36))!important;}
.v27-avatar-ring .avatar{width:100%!important;height:100%!important;margin:0!important;border-radius:31px!important;font-size:74px!important;}
.v27-hero-info h2{margin:0!important;font-size:25px!important;line-height:1.08!important;}
.v27-hero-info p{margin:5px 0 0!important;color:#d8ddef!important;font-size:13px!important;}
.v27-exp-box{margin:14px 0 0!important;padding:11px!important;border-radius:17px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.09)!important;}
.v27-exp-box>div:first-child{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:7px!important;font-size:12px!important;color:#c7cee3!important;}
.v27-exp-box b{color:#ffe78b!important;}
.v27-exp-box .bar{height:9px!important;}
.v27-record{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:12px 0!important;}
.v27-record span{padding:8px 9px!important;border-radius:14px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important;font-size:12px!important;color:#dfe5f6!important;}
.v27-skill-settings{width:100%!important;min-height:43px!important;border-radius:15px!important;}
.v27-profile-card{grid-area:stats!important;padding:12px!important;border-radius:24px!important;background:linear-gradient(145deg,rgba(24,27,43,.96),rgba(16,18,29,.96))!important;}
.v27-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
.v27-stat-card{min-width:0!important;display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:1px 8px!important;padding:10px!important;border-radius:16px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.09)!important;}
.v27-stat-card.hp{background:linear-gradient(145deg,rgba(239,71,111,.17),rgba(255,255,255,.045))!important;}
.v27-stat-card.mp{background:linear-gradient(145deg,rgba(17,138,178,.20),rgba(255,255,255,.045))!important;}
.v27-stat-card span{grid-row:1 / 3!important;width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:rgba(0,0,0,.16)!important;font-size:18px!important;}
.v27-stat-card small{font-size:10px!important;color:#aeb7cf!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v27-stat-card b{font-size:14px!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v27-equipment-panel{grid-area:equip!important;border-radius:26px!important;padding:16px!important;background:linear-gradient(145deg,rgba(28,31,48,.97),rgba(15,17,27,.98))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 16px 42px rgba(0,0,0,.26)!important;}
.v27-panel-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;margin-bottom:13px!important;}
.v27-panel-head h2{margin:0!important;font-size:22px!important;}
.v27-panel-head p{margin:4px 0 0!important;font-size:12px!important;}
.v27-panel-head>span{padding:6px 10px!important;border-radius:999px!important;background:rgba(255,209,102,.13)!important;color:#ffe390!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;}
.v27-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.v27-equip-slot{min-width:0!important;min-height:96px!important;display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;align-items:center!important;text-align:left!important;gap:10px!important;padding:12px!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 8px 18px rgba(0,0,0,.17)!important;}
.v27-equip-slot.filled{border-color:rgba(255,209,102,.35)!important;background:linear-gradient(145deg,rgba(255,209,102,.13),rgba(42,34,57,.62))!important;}
.v27-equip-slot.empty{opacity:.88!important;}
.v27-equip-slot:hover{filter:brightness(1.1)!important;transform:translateY(-1px)!important;}
.v27-slot-icon{width:50px!important;height:50px!important;min-width:50px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 40% 25%,rgba(255,255,255,.17),rgba(255,255,255,.045))!important;border:1px solid rgba(255,255,255,.12)!important;font-size:28px!important;margin:0!important;}
.v27-slot-text{min-width:0!important;display:grid!important;gap:2px!important;}
.v27-slot-text b{font-size:14px!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v27-slot-text small{font-size:12px!important;color:#dce2f7!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v27-slot-text em{font-style:normal!important;font-size:11px!important;color:#aeb7cf!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v27-equip-slot.slot-weapon{grid-column:1 / 3!important;}
.v27-equip-slot.slot-weapon .v27-slot-icon{background:linear-gradient(145deg,rgba(239,71,111,.22),rgba(255,255,255,.055))!important;}

@media(max-width:820px){
  .v27-battle .v27-monster-grid,.v27-battle .v20-monster-grid,.v27-battle .v22-monster-grid{grid-template-rows:repeat(2,minmax(96px,auto))!important;grid-auto-rows:minmax(96px,auto)!important;gap:8px!important;}
  .v27-battle .v27-monster-grid > .v27-monster-target,.v27-battle .v20-monster-grid > .v27-monster-target,.v27-battle .v22-monster-grid > .v27-monster-target{min-height:96px!important;grid-template-columns:44px minmax(0,1fr) 38px!important;padding:9px!important;gap:8px!important;border-radius:18px!important;}
  .v27-battle .v27-monster-grid.count-1 > .v27-monster-target,.v27-battle .v20-monster-grid.count-1 > .v27-monster-target,.v27-battle .v22-monster-grid.count-1 > .v27-monster-target{min-height:198px!important;}
  .v27-battle .v27-monster-target .monster-portrait.battle{width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important;}
  .v27-battle .v27-monster-target .monster-portrait.battle span{font-size:27px!important;}
  .v27-battle .v27-monster-target .v21-monster-title-line{grid-template-columns:19px minmax(0,1fr)!important;gap:5px!important;}
  .v27-battle .v27-monster-target .v21-monster-title-line h2{font-size:13.5px!important;}
  .v27-battle .v27-monster-target .v17-mob-index{width:19px!important;height:19px!important;line-height:19px!important;font-size:8.5px!important;}
  .v27-battle .v27-monster-target .v23-monster-badges{min-height:14px!important;gap:3px!important;}
  .v27-battle .v27-monster-target .v23-battle-badge{height:14px!important;line-height:14px!important;font-size:7.7px!important;padding:0 4px!important;}
  .v27-battle .v27-monster-target .bar.hp{height:7px!important;}
  .v27-battle .v27-monster-target .v21-monster-stats{font-size:8.6px!important;gap:4px!important;}
  .v27-battle .v27-monster-target .v17-sword-btn{width:34px!important;height:34px!important;min-height:34px!important;font-size:18px!important;border-radius:12px!important;}
  .v27-profile-layout{grid-template-columns:1fr!important;grid-template-areas:"hero" "stats" "equip"!important;gap:10px!important;}
  .v27-profile-hero{display:grid!important;grid-template-columns:94px minmax(0,1fr)!important;grid-template-areas:"avatar info" "exp exp" "record record" "button button"!important;text-align:left!important;padding:14px!important;align-items:center!important;}
  .v27-avatar-ring{grid-area:avatar!important;width:88px!important;height:88px!important;border-radius:26px!important;padding:7px!important;margin:0!important;}
  .v27-avatar-ring .avatar{font-size:43px!important;border-radius:21px!important;}
  .v27-hero-info{grid-area:info!important;min-width:0!important;}
  .v27-hero-info h2{font-size:20px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v27-exp-box{grid-area:exp!important;margin-top:10px!important;}
  .v27-record{grid-area:record!important;margin:9px 0!important;}
  .v27-skill-settings{grid-area:button!important;}
  .v27-profile-card,.v27-equipment-panel{padding:12px!important;border-radius:20px!important;}
  .v27-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .v27-stat-card{grid-template-columns:24px minmax(0,1fr)!important;padding:8px!important;border-radius:14px!important;}
  .v27-stat-card span{width:24px!important;height:24px!important;font-size:15px!important;border-radius:8px!important;}
  .v27-stat-card small{font-size:9px!important;}
  .v27-stat-card b{font-size:12px!important;}
  .v27-panel-head h2{font-size:19px!important;}
  .v27-panel-head p{font-size:11px!important;}
  .v27-slot-grid{grid-template-columns:1fr!important;gap:8px!important;}
  .v27-equip-slot,.v27-equip-slot.slot-weapon{grid-column:auto!important;min-height:74px!important;grid-template-columns:44px minmax(0,1fr)!important;padding:10px!important;border-radius:17px!important;}
  .v27-slot-icon{width:44px!important;height:44px!important;min-width:44px!important;font-size:24px!important;border-radius:14px!important;}
  .v27-slot-text b{font-size:13px!important;}
  .v27-slot-text small{font-size:11px!important;}
  .v27-slot-text em{font-size:10px!important;}
}
@media(max-width:420px){
  .v27-battle .v27-monster-grid,.v27-battle .v20-monster-grid,.v27-battle .v22-monster-grid{grid-template-rows:repeat(2,minmax(88px,auto))!important;gap:7px!important;}
  .v27-battle .v27-monster-grid.count-1 > .v27-monster-target,.v27-battle .v20-monster-grid.count-1 > .v27-monster-target,.v27-battle .v22-monster-grid.count-1 > .v27-monster-target{min-height:184px!important;}
  .v27-battle .v27-monster-grid > .v27-monster-target,.v27-battle .v20-monster-grid > .v27-monster-target,.v27-battle .v22-monster-grid > .v27-monster-target{min-height:88px!important;grid-template-columns:40px minmax(0,1fr) 34px!important;padding:8px!important;gap:7px!important;}
  .v27-battle .v27-monster-target .monster-portrait.battle{width:38px!important;height:38px!important;min-width:38px!important;}
  .v27-battle .v27-monster-target .monster-portrait.battle span{font-size:24px!important;}
  .v27-battle .v27-monster-target .v21-monster-title-line h2{font-size:12.5px!important;}
  .v27-battle .v27-monster-target .v21-monster-stats{font-size:8px!important;}
  .v27-battle .v27-monster-target .v17-sword-btn{width:31px!important;height:31px!important;min-height:31px!important;font-size:16px!important;}
  .v27-profile-hero{grid-template-columns:80px minmax(0,1fr)!important;padding:12px!important;}
  .v27-avatar-ring{width:76px!important;height:76px!important;border-radius:23px!important;}
  .v27-avatar-ring .avatar{font-size:38px!important;}
  .v27-record span{font-size:10.5px!important;padding:7px!important;}
}


/* ================= v28: мобильный бой для Яндекс.Браузера + аккуратные выезжающие панели ================= */
:root{--v28-safe-bottom:env(safe-area-inset-bottom,0px);--v28-safe-top:env(safe-area-inset-top,0px);}

@media(max-width:820px){
  html,body{overflow-x:hidden!important;}
  .battle-screen.v28-battle{
    width:100%!important;
    max-width:100%!important;
    padding:10px 8px calc(88px + var(--v28-safe-bottom))!important;
    gap:10px!important;
  }
  .v28-battle .battle-timer{
    padding:9px 10px!important;
    border-radius:17px!important;
    min-height:auto!important;
  }
  .v28-battle .battle-timer .turn-head{gap:8px!important;align-items:center!important;}
  .v28-battle .battle-timer b{font-size:15px!important;line-height:1.05!important;}
  .v28-battle .battle-timer p{font-size:12px!important;line-height:1.15!important;margin-top:3px!important;}
  .v28-battle #turn-time{font-size:18px!important;min-width:64px!important;text-align:right!important;}
  .v28-battle .v17-monsters-panel,
  .v28-battle .v17-party-panel,
  .v28-battle .battle-log{
    width:100%!important;
    max-width:100%!important;
    padding:10px!important;
    border-radius:19px!important;
    overflow:hidden!important;
  }
  .v28-battle .battle-section-title{margin-bottom:8px!important;}
  .v28-battle .battle-section-title h2{font-size:19px!important;line-height:1.05!important;}
  .v28-battle .battle-section-title small{font-size:10.5px!important;}

  .v28-battle .v28-monster-grid,
  .v28-battle .v27-monster-grid,
  .v28-battle .v20-monster-grid,
  .v28-battle .v22-monster-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:auto!important;
    grid-auto-rows:auto!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  .v28-battle .v28-monster-grid > .v28-monster-target,
  .v28-battle .v27-monster-grid > .v28-monster-target,
  .v28-battle .v20-monster-grid > .v28-monster-target,
  .v28-battle .v22-monster-grid > .v28-monster-target{
    min-width:0!important;
    min-height:102px!important;
    height:auto!important;
    grid-template-columns:46px minmax(0,1fr) 44px!important;
    grid-template-rows:auto!important;
    padding:10px!important;
    gap:8px!important;
    align-items:center!important;
    border-radius:18px!important;
  }
  .v28-battle .v28-monster-target .monster-portrait.battle{
    width:44px!important;height:44px!important;min-width:44px!important;border-radius:14px!important;
  }
  .v28-battle .v28-monster-target .monster-portrait.battle span{font-size:28px!important;}
  .v28-battle .v28-monster-target .monster-battle-info{gap:5px!important;min-width:0!important;align-self:center!important;}
  .v28-battle .v28-monster-target .v21-monster-title-line{grid-template-columns:20px minmax(0,1fr)!important;gap:6px!important;}
  .v28-battle .v28-monster-target .v17-mob-index{width:20px!important;height:20px!important;line-height:20px!important;font-size:9px!important;border-radius:8px!important;}
  .v28-battle .v28-monster-target .v21-monster-title-line h2{font-size:14px!important;line-height:1.04!important;}
  .v28-battle .v28-monster-target .v23-monster-badges{min-height:16px!important;gap:4px!important;overflow:hidden!important;}
  .v28-battle .v28-monster-target .v23-battle-badge{height:16px!important;line-height:16px!important;font-size:8px!important;padding:0 5px!important;border-radius:999px!important;}
  .v28-battle .v28-monster-target .bar.hp{height:7px!important;width:92%!important;max-width:320px!important;margin:0!important;}
  .v28-battle .v28-monster-target .v21-monster-stats{font-size:9.5px!important;gap:6px!important;line-height:1.1!important;flex-wrap:wrap!important;white-space:normal!important;overflow:visible!important;}
  .v28-battle .v28-monster-target .v17-target-actions{width:44px!important;min-width:44px!important;align-self:center!important;justify-self:end!important;}
  .v28-battle .v28-monster-target .v17-sword-btn{width:42px!important;height:42px!important;min-height:42px!important;border-radius:14px!important;font-size:21px!important;}

  /* Один монстр: не огромная пустая простыня, а крупная читаемая карточка */
  .v28-battle .v28-monster-grid.count-1 > .v28-monster-target,
  .v28-battle .v27-monster-grid.count-1 > .v28-monster-target,
  .v28-battle .v20-monster-grid.count-1 > .v28-monster-target,
  .v28-battle .v22-monster-grid.count-1 > .v28-monster-target{
    grid-column:1 / 3!important;
    grid-row:auto!important;
    min-height:148px!important;
    grid-template-columns:72px minmax(0,1fr) 58px!important;
    padding:14px!important;
    gap:12px!important;
    border-radius:23px!important;
  }
  .v28-battle .v28-monster-grid.count-1 .monster-portrait.battle,
  .v28-battle .v27-monster-grid.count-1 .monster-portrait.battle,
  .v28-battle .v20-monster-grid.count-1 .monster-portrait.battle,
  .v28-battle .v22-monster-grid.count-1 .monster-portrait.battle{
    width:68px!important;height:68px!important;min-width:68px!important;border-radius:19px!important;
  }
  .v28-battle .v28-monster-grid.count-1 .monster-portrait.battle span,
  .v28-battle .v27-monster-grid.count-1 .monster-portrait.battle span,
  .v28-battle .v20-monster-grid.count-1 .monster-portrait.battle span,
  .v28-battle .v22-monster-grid.count-1 .monster-portrait.battle span{font-size:43px!important;}
  .v28-battle .v28-monster-grid.count-1 .v21-monster-title-line,
  .v28-battle .v27-monster-grid.count-1 .v21-monster-title-line,
  .v28-battle .v20-monster-grid.count-1 .v21-monster-title-line,
  .v28-battle .v22-monster-grid.count-1 .v21-monster-title-line{grid-template-columns:24px minmax(0,1fr)!important;gap:8px!important;}
  .v28-battle .v28-monster-grid.count-1 .v17-mob-index,
  .v28-battle .v27-monster-grid.count-1 .v17-mob-index,
  .v28-battle .v20-monster-grid.count-1 .v17-mob-index,
  .v28-battle .v22-monster-grid.count-1 .v17-mob-index{width:24px!important;height:24px!important;line-height:24px!important;font-size:10px!important;}
  .v28-battle .v28-monster-grid.count-1 .v21-monster-title-line h2,
  .v28-battle .v27-monster-grid.count-1 .v21-monster-title-line h2,
  .v28-battle .v20-monster-grid.count-1 .v21-monster-title-line h2,
  .v28-battle .v22-monster-grid.count-1 .v21-monster-title-line h2{font-size:19px!important;line-height:1.08!important;}
  .v28-battle .v28-monster-grid.count-1 .v23-battle-badge,
  .v28-battle .v27-monster-grid.count-1 .v23-battle-badge,
  .v28-battle .v20-monster-grid.count-1 .v23-battle-badge,
  .v28-battle .v22-monster-grid.count-1 .v23-battle-badge{height:18px!important;line-height:18px!important;font-size:9px!important;padding:0 6px!important;}
  .v28-battle .v28-monster-grid.count-1 .bar.hp,
  .v28-battle .v27-monster-grid.count-1 .bar.hp,
  .v28-battle .v20-monster-grid.count-1 .bar.hp,
  .v28-battle .v22-monster-grid.count-1 .bar.hp{width:86%!important;max-width:370px!important;height:8px!important;}
  .v28-battle .v28-monster-grid.count-1 .v21-monster-stats,
  .v28-battle .v27-monster-grid.count-1 .v21-monster-stats,
  .v28-battle .v20-monster-grid.count-1 .v21-monster-stats,
  .v28-battle .v22-monster-grid.count-1 .v21-monster-stats{font-size:11px!important;gap:10px!important;}
  .v28-battle .v28-monster-grid.count-1 .v17-target-actions,
  .v28-battle .v27-monster-grid.count-1 .v17-target-actions,
  .v28-battle .v20-monster-grid.count-1 .v17-target-actions,
  .v28-battle .v22-monster-grid.count-1 .v17-target-actions{width:58px!important;min-width:58px!important;}
  .v28-battle .v28-monster-grid.count-1 .v17-sword-btn,
  .v28-battle .v27-monster-grid.count-1 .v17-sword-btn,
  .v28-battle .v20-monster-grid.count-1 .v17-sword-btn,
  .v28-battle .v22-monster-grid.count-1 .v17-sword-btn{width:56px!important;height:56px!important;min-height:56px!important;font-size:28px!important;border-radius:18px!important;}

  .v28-battle .battle-log{max-height:176px!important;margin-top:0!important;}
  .v28-battle .battle-log .battle-log-scroll{max-height:124px!important;}
  .v28-battle .battle-log .battle-log-scroll p{font-size:11px!important;line-height:1.22!important;padding:6px 8px!important;margin:4px 0!important;}
}

@media(max-width:620px){
  .v28-skill-drawer.v16-skill-drawer,
  .v28-help-drawer.v17-help-drawer{
    top:calc(68px + var(--v28-safe-top))!important;
    bottom:calc(82px + var(--v28-safe-bottom))!important;
    width:calc(100vw - 22px)!important;
    max-width:380px!important;
    min-height:0!important;
    height:auto!important;
    max-height:calc(100dvh - 150px - var(--v28-safe-bottom))!important;
    padding:12px!important;
    border-radius:24px!important;
    overflow:hidden!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  .v28-skill-drawer.v16-skill-drawer{
    right:10px!important;left:auto!important;
    transform:translateX(calc(100% + 24px))!important;
    border-left:1px solid rgba(255,255,255,.14)!important;
    border-right:1px solid rgba(255,255,255,.08)!important;
  }
  .v28-skill-drawer.v16-skill-drawer.open{transform:translateX(0)!important;}
  .v28-help-drawer.v17-help-drawer{
    left:10px!important;right:auto!important;
    transform:translateX(calc(-100% - 24px))!important;
    border-right:1px solid rgba(255,255,255,.14)!important;
    border-left:1px solid rgba(255,255,255,.08)!important;
  }
  .v28-help-drawer.v17-help-drawer.open{transform:translateX(0)!important;}
  .v28-skill-drawer .v17-drawer-head,
  .v28-help-drawer .v17-drawer-head,
  .v28-skill-drawer .v16-drawer-head{padding-bottom:9px!important;gap:8px!important;}
  .v28-skill-drawer .v17-drawer-head b,
  .v28-help-drawer .v17-drawer-head b,
  .v28-skill-drawer .v16-drawer-head b{font-size:20px!important;}
  .v28-skill-drawer .v17-drawer-head small,
  .v28-help-drawer .v17-drawer-head small,
  .v28-skill-drawer .v16-drawer-head small{font-size:12px!important;line-height:1.2!important;}
  .v28-skill-drawer .ghost.small,
  .v28-help-drawer .ghost.small{width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:15px!important;font-size:18px!important;}
  .v28-skill-drawer .v17-skill-scroll,
  .v28-skill-drawer .v16-skill-scroll,
  .v28-help-drawer .v17-help-scroll{min-height:0!important;max-height:100%!important;overflow:auto!important;padding:10px 2px 14px 0!important;}
  .v28-skill-drawer .v16-skill-scroll h3{font-size:14.5px!important;margin:8px 0 5px!important;}
  .v28-skill-drawer .v17-drawer-ability,
  .v28-skill-drawer .v16-drawer-ability{border-radius:16px!important;}
  .v28-skill-drawer .v17-ability-main,
  .v28-skill-drawer .v16-ability-main{grid-template-columns:42px minmax(0,1fr)!important;padding:10px!important;gap:10px!important;}
  .v28-skill-drawer .v17-ability-main span,
  .v28-skill-drawer .v16-ability-main span{width:40px!important;height:40px!important;font-size:22px!important;}
  .v28-skill-drawer .v17-ability-main b,
  .v28-skill-drawer .v16-ability-main b{font-size:14px!important;line-height:1.1!important;}
  .v28-skill-drawer .v17-ability-main small,
  .v28-skill-drawer .v16-ability-main small{font-size:11.5px!important;}
  .v28-skill-drawer .v17-ability-main p,
  .v28-skill-drawer .v16-ability-main p{font-size:11px!important;line-height:1.24!important;-webkit-line-clamp:2!important;}
  .v28-skill-drawer .v17-ability-targets,
  .v28-skill-drawer .v16-ability-targets{padding:0 10px 10px 52px!important;gap:6px!important;}
  .v28-skill-drawer .v17-ability-targets button,
  .v28-skill-drawer .v16-ability-targets button{min-height:34px!important;font-size:11.5px!important;padding:8px 9px!important;}
  .v28-skill-drawer .v17-cooldown-grid{grid-template-columns:1fr!important;gap:7px!important;}
  .v28-skill-drawer .v17-cooldown-ability{min-height:42px!important;}
  .v17-drawer-fade{backdrop-filter:blur(1px)!important;background:rgba(0,0,0,.22)!important;}
}

@media(max-width:430px){
  .battle-screen.v28-battle{padding-left:7px!important;padding-right:7px!important;gap:9px!important;}
  .v28-battle .v17-monsters-panel,
  .v28-battle .v17-party-panel,
  .v28-battle .battle-log{padding:9px!important;border-radius:18px!important;}
  .v28-battle .v28-monster-grid > .v28-monster-target,
  .v28-battle .v27-monster-grid > .v28-monster-target,
  .v28-battle .v20-monster-grid > .v28-monster-target,
  .v28-battle .v22-monster-grid > .v28-monster-target{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    min-height:96px!important;
    padding:8px!important;
    gap:7px!important;
  }
  .v28-battle .v28-monster-target .monster-portrait.battle{width:40px!important;height:40px!important;min-width:40px!important;}
  .v28-battle .v28-monster-target .monster-portrait.battle span{font-size:26px!important;}
  .v28-battle .v28-monster-target .v21-monster-title-line h2{font-size:13px!important;}
  .v28-battle .v28-monster-target .v21-monster-stats{font-size:8.8px!important;gap:5px!important;}
  .v28-battle .v28-monster-grid.count-1 > .v28-monster-target,
  .v28-battle .v27-monster-grid.count-1 > .v28-monster-target,
  .v28-battle .v20-monster-grid.count-1 > .v28-monster-target,
  .v28-battle .v22-monster-grid.count-1 > .v28-monster-target{
    min-height:136px!important;
    grid-template-columns:62px minmax(0,1fr) 54px!important;
    padding:12px!important;
    gap:10px!important;
  }
  .v28-battle .v28-monster-grid.count-1 .monster-portrait.battle,
  .v28-battle .v27-monster-grid.count-1 .monster-portrait.battle,
  .v28-battle .v20-monster-grid.count-1 .monster-portrait.battle,
  .v28-battle .v22-monster-grid.count-1 .monster-portrait.battle{width:60px!important;height:60px!important;min-width:60px!important;}
  .v28-battle .v28-monster-grid.count-1 .monster-portrait.battle span,
  .v28-battle .v27-monster-grid.count-1 .monster-portrait.battle span,
  .v28-battle .v20-monster-grid.count-1 .monster-portrait.battle span,
  .v28-battle .v22-monster-grid.count-1 .monster-portrait.battle span{font-size:38px!important;}
  .v28-battle .v28-monster-grid.count-1 .v21-monster-title-line h2,
  .v28-battle .v27-monster-grid.count-1 .v21-monster-title-line h2,
  .v28-battle .v20-monster-grid.count-1 .v21-monster-title-line h2,
  .v28-battle .v22-monster-grid.count-1 .v21-monster-title-line h2{font-size:17px!important;}
  .v28-battle .v28-monster-grid.count-1 .v17-sword-btn,
  .v28-battle .v27-monster-grid.count-1 .v17-sword-btn,
  .v28-battle .v20-monster-grid.count-1 .v17-sword-btn,
  .v28-battle .v22-monster-grid.count-1 .v17-sword-btn{width:52px!important;height:52px!important;min-height:52px!important;font-size:26px!important;}
  .v28-skill-drawer.v16-skill-drawer,
  .v28-help-drawer.v17-help-drawer{
    top:calc(62px + var(--v28-safe-top))!important;
    bottom:calc(72px + var(--v28-safe-bottom))!important;
    width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 134px - var(--v28-safe-bottom))!important;
    padding:10px!important;
    border-radius:22px!important;
  }
  .v28-skill-drawer.v16-skill-drawer{right:8px!important;}
  .v28-help-drawer.v17-help-drawer{left:8px!important;}
}

/* ================= v29: мобильный бой без наложений в Яндекс.Браузере ================= */
@media(max-width:820px){
  .battle-top.v17-battle-top{
    position:sticky!important;
    top:0!important;
    z-index:35!important;
  }
  .battle-screen.v29-battle{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:1fr!important;
    grid-template-areas:none!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:9px 9px calc(98px + env(safe-area-inset-bottom,0px))!important;
    gap:10px!important;
    margin:0 auto!important;
    overflow:visible!important;
  }
  .v29-battle .battle-timer,
  .v29-battle .v17-monsters-panel,
  .v29-battle .v17-party-panel,
  .v29-battle .battle-actions,
  .v29-battle .battle-log{
    grid-area:auto!important;
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    flex:0 0 auto!important;
    transform:none!important;
    margin:0!important;
    clear:both!important;
  }
  .v29-battle .v17-monsters-panel,
  .v29-battle .v17-party-panel{
    overflow:visible!important;
    padding:10px!important;
    border-radius:22px!important;
  }
  .v29-battle .battle-section-title{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    margin:0 0 9px!important;
  }
  .v29-battle .battle-section-title h2{
    font-size:22px!important;
    line-height:1.06!important;
    margin:0!important;
  }
  .v29-battle .battle-section-title small{
    font-size:10.5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:48vw!important;
  }

  .v29-battle .v28-monster-grid,
  .v29-battle .v27-monster-grid,
  .v29-battle .v20-monster-grid,
  .v29-battle .v22-monster-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(100px,auto))!important;
    grid-auto-rows:minmax(100px,auto)!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }
  .v29-battle .v28-monster-grid > .v29-monster-fix,
  .v29-battle .v28-monster-grid > .v28-monster-target,
  .v29-battle .v27-monster-grid > .v28-monster-target,
  .v29-battle .v20-monster-grid > .v28-monster-target,
  .v29-battle .v22-monster-grid > .v28-monster-target{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    min-height:100px!important;
    max-height:none!important;
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr) 48px!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:9px!important;
    padding:10px!important;
    overflow:hidden!important;
    border-radius:20px!important;
  }
  .v29-battle .v28-monster-grid.count-1,
  .v29-battle .v27-monster-grid.count-1,
  .v29-battle .v20-monster-grid.count-1,
  .v29-battle .v22-monster-grid.count-1{
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
    grid-auto-rows:auto!important;
  }
  .v29-battle .v28-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v27-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v20-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v22-monster-grid.count-1 > .v28-monster-target{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    min-height:160px!important;
    grid-template-columns:74px minmax(0,1fr) 68px!important;
    padding:15px!important;
    gap:13px!important;
    border-radius:24px!important;
  }
  .v29-battle .v28-monster-target .monster-battle-info{
    min-width:0!important;
    display:grid!important;
    gap:6px!important;
    align-self:center!important;
  }
  .v29-battle .v28-monster-target .monster-portrait.battle{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    border-radius:15px!important;
    margin:0!important;
  }
  .v29-battle .v28-monster-target .monster-portrait.battle span{font-size:29px!important;}
  .v29-battle .v28-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v27-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v20-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v22-monster-grid.count-1 .monster-portrait.battle{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
    border-radius:20px!important;
  }
  .v29-battle .v28-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v27-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v20-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v22-monster-grid.count-1 .monster-portrait.battle span{font-size:46px!important;}
  .v29-battle .v28-monster-target .v21-monster-title-line{
    display:grid!important;
    grid-template-columns:23px minmax(0,1fr)!important;
    align-items:center!important;
    gap:7px!important;
  }
  .v29-battle .v28-monster-target .v17-mob-index{
    width:23px!important;
    height:23px!important;
    line-height:23px!important;
    border-radius:9px!important;
    font-size:10px!important;
  }
  .v29-battle .v28-monster-target .v21-monster-title-line h2{
    font-size:17px!important;
    line-height:1.05!important;
    margin:0!important;
  }
  .v29-battle .v28-monster-grid.count-1 .v21-monster-title-line h2,
  .v29-battle .v27-monster-grid.count-1 .v21-monster-title-line h2,
  .v29-battle .v20-monster-grid.count-1 .v21-monster-title-line h2,
  .v29-battle .v22-monster-grid.count-1 .v21-monster-title-line h2{font-size:24px!important;}
  .v29-battle .v28-monster-target .v23-monster-badges{
    display:flex!important;
    gap:5px!important;
    min-height:19px!important;
    overflow:hidden!important;
  }
  .v29-battle .v28-monster-target .v23-battle-badge{
    height:18px!important;
    line-height:18px!important;
    font-size:9px!important;
    padding:0 7px!important;
    border-radius:999px!important;
  }
  .v29-battle .v28-monster-grid.count-1 .v23-battle-badge,
  .v29-battle .v27-monster-grid.count-1 .v23-battle-badge,
  .v29-battle .v20-monster-grid.count-1 .v23-battle-badge,
  .v29-battle .v22-monster-grid.count-1 .v23-battle-badge{
    height:22px!important;
    line-height:22px!important;
    font-size:11px!important;
    padding:0 9px!important;
  }
  .v29-battle .v28-monster-target .bar.hp{
    width:82%!important;
    max-width:240px!important;
    height:7px!important;
    margin:0!important;
  }
  .v29-battle .v28-monster-grid.count-1 .bar.hp,
  .v29-battle .v27-monster-grid.count-1 .bar.hp,
  .v29-battle .v20-monster-grid.count-1 .bar.hp,
  .v29-battle .v22-monster-grid.count-1 .bar.hp{
    width:76%!important;
    max-width:285px!important;
    height:8px!important;
  }
  .v29-battle .v28-monster-target .v21-monster-stats{
    display:flex!important;
    justify-content:flex-start!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    white-space:normal!important;
    overflow:visible!important;
    font-size:11px!important;
    line-height:1.1!important;
  }
  .v29-battle .v28-monster-grid.count-1 .v21-monster-stats,
  .v29-battle .v27-monster-grid.count-1 .v21-monster-stats,
  .v29-battle .v20-monster-grid.count-1 .v21-monster-stats,
  .v29-battle .v22-monster-grid.count-1 .v21-monster-stats{
    font-size:17px!important;
    gap:14px!important;
  }
  .v29-battle .v28-monster-target .v17-target-actions{
    width:48px!important;
    min-width:48px!important;
    align-self:center!important;
    justify-self:end!important;
  }
  .v29-battle .v28-monster-target .v17-sword-btn{
    width:48px!important;
    height:48px!important;
    min-height:48px!important;
    border-radius:16px!important;
    font-size:24px!important;
  }
  .v29-battle .v28-monster-grid.count-1 .v17-target-actions,
  .v29-battle .v27-monster-grid.count-1 .v17-target-actions,
  .v29-battle .v20-monster-grid.count-1 .v17-target-actions,
  .v29-battle .v22-monster-grid.count-1 .v17-target-actions{
    width:66px!important;
    min-width:66px!important;
  }
  .v29-battle .v28-monster-grid.count-1 .v17-sword-btn,
  .v29-battle .v27-monster-grid.count-1 .v17-sword-btn,
  .v29-battle .v20-monster-grid.count-1 .v17-sword-btn,
  .v29-battle .v22-monster-grid.count-1 .v17-sword-btn{
    width:64px!important;
    height:64px!important;
    min-height:64px!important;
    border-radius:20px!important;
    font-size:31px!important;
  }

  .v29-battle .battle-party-cards,
  .v29-battle .v11-party-grid,
  .v29-battle .v10-party-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-rows:auto!important;
    gap:10px!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .v29-battle .battle-player.v25-player{
    height:auto!important;
    min-height:126px!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  .v29-battle .battle-log{
    z-index:1!important;
    padding:10px!important;
    border-radius:20px!important;
    max-height:170px!important;
    overflow:hidden!important;
  }
  .v29-battle .battle-log h3{margin:0 0 8px!important;font-size:17px!important;}
  .v29-battle .battle-log .battle-log-scroll{
    max-height:118px!important;
    height:auto!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
  .v29-battle .battle-log .battle-log-scroll p{
    font-size:13px!important;
    line-height:1.23!important;
    padding:8px 10px!important;
    margin:5px 0!important;
  }

  .v29-skill-drawer.v16-skill-drawer,
  .v29-help-drawer.v17-help-drawer{
    top:calc(72px + env(safe-area-inset-top,0px))!important;
    bottom:auto!important;
    width:calc(100vw - 24px)!important;
    max-width:390px!important;
    max-height:72dvh!important;
    height:auto!important;
    min-height:0!important;
    padding:13px!important;
    border-radius:24px!important;
    overflow:hidden!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  .v29-skill-drawer .v17-skill-scroll,
  .v29-skill-drawer .v16-skill-scroll,
  .v29-help-drawer .v17-help-scroll{
    max-height:calc(72dvh - 118px)!important;
    overflow:auto!important;
    padding-right:3px!important;
  }
}

@media(max-width:430px){
  .battle-screen.v29-battle{
    padding:8px 8px calc(118px + env(safe-area-inset-bottom,0px))!important;
    gap:9px!important;
  }
  .v29-battle .battle-timer{padding:9px 10px!important;border-radius:18px!important;}
  .v29-battle .battle-timer b{font-size:20px!important;line-height:1!important;}
  .v29-battle .battle-timer p{font-size:13px!important;max-width:64vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v29-battle #turn-time{font-size:24px!important;min-width:78px!important;}
  .v29-battle .v17-monsters-panel,
  .v29-battle .v17-party-panel{padding:9px!important;border-radius:21px!important;}
  .v29-battle .battle-section-title h2{font-size:24px!important;}
  .v29-battle .v28-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v27-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v20-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v22-monster-grid.count-1 > .v28-monster-target{
    min-height:164px!important;
    grid-template-columns:76px minmax(0,1fr) 66px!important;
    padding:14px!important;
    gap:12px!important;
  }
  .v29-battle .v28-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v27-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v20-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v22-monster-grid.count-1 .monster-portrait.battle{
    width:74px!important;
    height:74px!important;
    min-width:74px!important;
  }
  .v29-battle .v28-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v27-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v20-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v22-monster-grid.count-1 .monster-portrait.battle span{font-size:48px!important;}
  .v29-battle .v28-monster-grid.count-1 .v21-monster-title-line h2,
  .v29-battle .v27-monster-grid.count-1 .v21-monster-title-line h2,
  .v29-battle .v20-monster-grid.count-1 .v21-monster-title-line h2,
  .v29-battle .v22-monster-grid.count-1 .v21-monster-title-line h2{font-size:24px!important;}
  .v29-battle .v28-monster-grid.count-1 .v21-monster-stats,
  .v29-battle .v27-monster-grid.count-1 .v21-monster-stats,
  .v29-battle .v20-monster-grid.count-1 .v21-monster-stats,
  .v29-battle .v22-monster-grid.count-1 .v21-monster-stats{font-size:17px!important;}
  .v29-battle .battle-log{max-height:162px!important;}
  .v29-battle .battle-log .battle-log-scroll{max-height:108px!important;}
  .v29-skill-drawer.v16-skill-drawer,
  .v29-help-drawer.v17-help-drawer{
    top:68px!important;
    width:calc(100vw - 28px)!important;
    max-height:68dvh!important;
    border-radius:24px!important;
  }
  .v29-skill-drawer .v17-skill-scroll,
  .v29-skill-drawer .v16-skill-scroll,
  .v29-help-drawer .v17-help-scroll{max-height:calc(68dvh - 112px)!important;}
}

@media(max-width:370px){
  .v29-battle .v28-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v27-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v20-monster-grid.count-1 > .v28-monster-target,
  .v29-battle .v22-monster-grid.count-1 > .v28-monster-target{
    grid-template-columns:68px minmax(0,1fr) 60px!important;
    min-height:154px!important;
    padding:12px!important;
  }
  .v29-battle .v28-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v27-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v20-monster-grid.count-1 .monster-portrait.battle,
  .v29-battle .v22-monster-grid.count-1 .monster-portrait.battle{width:66px!important;height:66px!important;min-width:66px!important;}
  .v29-battle .v28-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v27-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v20-monster-grid.count-1 .monster-portrait.battle span,
  .v29-battle .v22-monster-grid.count-1 .monster-portrait.battle span{font-size:42px!important;}
  .v29-battle .v28-monster-grid.count-1 .v17-sword-btn,
  .v29-battle .v27-monster-grid.count-1 .v17-sword-btn,
  .v29-battle .v20-monster-grid.count-1 .v17-sword-btn,
  .v29-battle .v22-monster-grid.count-1 .v17-sword-btn{width:58px!important;height:58px!important;min-height:58px!important;font-size:28px!important;}
}

/* ================= v31: мобильная сетка боя без огромных карточек ================= */
/* На телефоне бой снова раскладывается по количеству врагов/игроков, как задумывалось:
   1 = одна компактная широкая карточка, 2 = две равные карточки, 3 = две сверху + широкая снизу, 4 = 2x2. */
@media(max-width:760px){
  .battle-screen.v31-battle{
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
    padding:9px 8px calc(112px + env(safe-area-inset-bottom,0px))!important;
    overflow:visible!important;
  }
  .v31-battle .battle-timer{
    flex:0 0 auto!important;
    padding:9px 10px!important;
    border-radius:18px!important;
  }
  .v31-battle .battle-timer .turn-head{gap:8px!important;align-items:center!important;}
  .v31-battle .battle-timer b{font-size:18px!important;line-height:1.05!important;}
  .v31-battle .battle-timer p{font-size:12.5px!important;line-height:1.15!important;max-width:58vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v31-battle #turn-time{font-size:22px!important;min-width:70px!important;text-align:right!important;}

  .v31-battle .v17-monsters-panel,
  .v31-battle .v17-party-panel,
  .v31-battle .battle-log{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    position:relative!important;
    transform:none!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    overflow:visible!important;
    border-radius:21px!important;
    padding:9px!important;
  }
  .v31-battle .battle-section-title{margin:0 0 8px!important;}
  .v31-battle .battle-section-title h2{font-size:23px!important;line-height:1.05!important;}
  .v31-battle .battle-section-title small{font-size:10.5px!important;max-width:44vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}

  /* Монстры: возвращаем распределение по количеству, но без гигантской высоты. */
  .v31-battle .v28-monster-grid,
  .v31-battle .v27-monster-grid,
  .v31-battle .v20-monster-grid,
  .v31-battle .v22-monster-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:none!important;
    grid-auto-rows:minmax(122px,auto)!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .v31-battle .v28-monster-grid > .v28-monster-target,
  .v31-battle .v27-monster-grid > .v28-monster-target,
  .v31-battle .v20-monster-grid > .v28-monster-target,
  .v31-battle .v22-monster-grid > .v28-monster-target{
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:122px!important;
    height:auto!important;
    max-height:none!important;
    display:grid!important;
    grid-template-columns:54px minmax(0,1fr) 52px!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    gap:9px!important;
    padding:10px!important;
    border-radius:20px!important;
    overflow:hidden!important;
  }
  .v31-battle .v28-monster-grid.count-1 > .v28-monster-target,
  .v31-battle .v27-monster-grid.count-1 > .v28-monster-target,
  .v31-battle .v20-monster-grid.count-1 > .v28-monster-target,
  .v31-battle .v22-monster-grid.count-1 > .v28-monster-target{
    grid-column:1 / 3!important;
    grid-row:auto!important;
    min-height:142px!important;
    grid-template-columns:66px minmax(0,1fr) 64px!important;
    gap:11px!important;
    padding:12px!important;
  }
  .v31-battle .v28-monster-grid.count-2 > .v28-monster-target:nth-child(1),
  .v31-battle .v27-monster-grid.count-2 > .v28-monster-target:nth-child(1),
  .v31-battle .v20-monster-grid.count-2 > .v28-monster-target:nth-child(1),
  .v31-battle .v22-monster-grid.count-2 > .v28-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
  .v31-battle .v28-monster-grid.count-2 > .v28-monster-target:nth-child(2),
  .v31-battle .v27-monster-grid.count-2 > .v28-monster-target:nth-child(2),
  .v31-battle .v20-monster-grid.count-2 > .v28-monster-target:nth-child(2),
  .v31-battle .v22-monster-grid.count-2 > .v28-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
  .v31-battle .v28-monster-grid.count-3 > .v28-monster-target:nth-child(1),
  .v31-battle .v27-monster-grid.count-3 > .v28-monster-target:nth-child(1),
  .v31-battle .v20-monster-grid.count-3 > .v28-monster-target:nth-child(1),
  .v31-battle .v22-monster-grid.count-3 > .v28-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
  .v31-battle .v28-monster-grid.count-3 > .v28-monster-target:nth-child(2),
  .v31-battle .v27-monster-grid.count-3 > .v28-monster-target:nth-child(2),
  .v31-battle .v20-monster-grid.count-3 > .v28-monster-target:nth-child(2),
  .v31-battle .v22-monster-grid.count-3 > .v28-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
  .v31-battle .v28-monster-grid.count-3 > .v28-monster-target:nth-child(3),
  .v31-battle .v27-monster-grid.count-3 > .v28-monster-target:nth-child(3),
  .v31-battle .v20-monster-grid.count-3 > .v28-monster-target:nth-child(3),
  .v31-battle .v22-monster-grid.count-3 > .v28-monster-target:nth-child(3){grid-column:1 / 3!important;grid-row:2 / 3!important;}
  .v31-battle .v28-monster-grid.count-4 > .v28-monster-target:nth-child(1),
  .v31-battle .v27-monster-grid.count-4 > .v28-monster-target:nth-child(1),
  .v31-battle .v20-monster-grid.count-4 > .v28-monster-target:nth-child(1),
  .v31-battle .v22-monster-grid.count-4 > .v28-monster-target:nth-child(1){grid-column:1 / 2!important;grid-row:1 / 2!important;}
  .v31-battle .v28-monster-grid.count-4 > .v28-monster-target:nth-child(2),
  .v31-battle .v27-monster-grid.count-4 > .v28-monster-target:nth-child(2),
  .v31-battle .v20-monster-grid.count-4 > .v28-monster-target:nth-child(2),
  .v31-battle .v22-monster-grid.count-4 > .v28-monster-target:nth-child(2){grid-column:2 / 3!important;grid-row:1 / 2!important;}
  .v31-battle .v28-monster-grid.count-4 > .v28-monster-target:nth-child(3),
  .v31-battle .v27-monster-grid.count-4 > .v28-monster-target:nth-child(3),
  .v31-battle .v20-monster-grid.count-4 > .v28-monster-target:nth-child(3),
  .v31-battle .v22-monster-grid.count-4 > .v28-monster-target:nth-child(3){grid-column:1 / 2!important;grid-row:2 / 3!important;}
  .v31-battle .v28-monster-grid.count-4 > .v28-monster-target:nth-child(4),
  .v31-battle .v27-monster-grid.count-4 > .v28-monster-target:nth-child(4),
  .v31-battle .v20-monster-grid.count-4 > .v28-monster-target:nth-child(4),
  .v31-battle .v22-monster-grid.count-4 > .v28-monster-target:nth-child(4){grid-column:2 / 3!important;grid-row:2 / 3!important;}

  .v31-battle .v28-monster-target .monster-portrait.battle{width:52px!important;height:52px!important;min-width:52px!important;border-radius:16px!important;margin:0!important;}
  .v31-battle .v28-monster-target .monster-portrait.battle span{font-size:33px!important;}
  .v31-battle .v28-monster-grid.count-1 .monster-portrait.battle,
  .v31-battle .v27-monster-grid.count-1 .monster-portrait.battle,
  .v31-battle .v20-monster-grid.count-1 .monster-portrait.battle,
  .v31-battle .v22-monster-grid.count-1 .monster-portrait.battle{width:64px!important;height:64px!important;min-width:64px!important;}
  .v31-battle .v28-monster-grid.count-1 .monster-portrait.battle span,
  .v31-battle .v27-monster-grid.count-1 .monster-portrait.battle span,
  .v31-battle .v20-monster-grid.count-1 .monster-portrait.battle span,
  .v31-battle .v22-monster-grid.count-1 .monster-portrait.battle span{font-size:42px!important;}
  .v31-battle .v28-monster-target .monster-battle-info{min-width:0!important;display:grid!important;gap:5px!important;align-self:center!important;}
  .v31-battle .v28-monster-target .v21-monster-title-line{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;gap:6px!important;align-items:center!important;}
  .v31-battle .v28-monster-target .v17-mob-index{width:22px!important;height:22px!important;line-height:22px!important;border-radius:9px!important;font-size:10px!important;}
  .v31-battle .v28-monster-target .v21-monster-title-line h2{font-size:17px!important;line-height:1.05!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v31-battle .v28-monster-grid.count-1 .v21-monster-title-line h2,
  .v31-battle .v27-monster-grid.count-1 .v21-monster-title-line h2,
  .v31-battle .v20-monster-grid.count-1 .v21-monster-title-line h2,
  .v31-battle .v22-monster-grid.count-1 .v21-monster-title-line h2{font-size:21px!important;}
  .v31-battle .v28-monster-target .v23-monster-badges{display:flex!important;gap:4px!important;min-height:20px!important;overflow:hidden!important;flex-wrap:nowrap!important;}
  .v31-battle .v28-monster-target .v23-battle-badge{height:19px!important;line-height:19px!important;font-size:9.5px!important;padding:0 7px!important;border-radius:999px!important;white-space:nowrap!important;}
  .v31-battle .v28-monster-target .bar.hp{width:100%!important;max-width:100%!important;height:8px!important;margin:0!important;}
  .v31-battle .v28-monster-grid.count-1 .bar.hp,
  .v31-battle .v27-monster-grid.count-1 .bar.hp,
  .v31-battle .v20-monster-grid.count-1 .bar.hp,
  .v31-battle .v22-monster-grid.count-1 .bar.hp{width:82%!important;max-width:260px!important;}
  .v31-battle .v28-monster-target .v21-monster-stats{display:flex!important;gap:9px!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;font-size:12px!important;line-height:1.05!important;white-space:normal!important;overflow:visible!important;}
  .v31-battle .v28-monster-grid.count-1 .v21-monster-stats,
  .v31-battle .v27-monster-grid.count-1 .v21-monster-stats,
  .v31-battle .v20-monster-grid.count-1 .v21-monster-stats,
  .v31-battle .v22-monster-grid.count-1 .v21-monster-stats{font-size:14px!important;gap:12px!important;}
  .v31-battle .v28-monster-target .v17-target-actions{width:52px!important;min-width:52px!important;justify-self:end!important;align-self:center!important;}
  .v31-battle .v28-monster-target .v17-sword-btn{width:52px!important;height:52px!important;min-height:52px!important;border-radius:17px!important;font-size:25px!important;}
  .v31-battle .v28-monster-grid.count-1 .v17-sword-btn,
  .v31-battle .v27-monster-grid.count-1 .v17-sword-btn,
  .v31-battle .v20-monster-grid.count-1 .v17-sword-btn,
  .v31-battle .v22-monster-grid.count-1 .v17-sword-btn{width:60px!important;height:60px!important;min-height:60px!important;font-size:29px!important;}

  /* Игроки: на телефоне тоже работает распределение 1/2/3/4, а не бесконечный столбик. */
  .v31-battle .battle-party-cards,
  .v31-battle .v11-party-grid,
  .v31-battle .v10-party-grid,
  .v31-battle .v9-party-grid,
  .v31-battle .v7-party-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:minmax(112px,auto)!important;
    gap:8px!important;
    width:100%!important;
    height:auto!important;
    overflow:visible!important;
  }
  .v31-battle .battle-party-cards.count-1 > .battle-player,
  .v31-battle .v11-party-grid.count-1 > .battle-player,
  .v31-battle .v10-party-grid.count-1 > .battle-player{grid-column:1 / 3!important;}
  .v31-battle .battle-party-cards.count-2 > .battle-player:nth-child(1),
  .v31-battle .v11-party-grid.count-2 > .battle-player:nth-child(1),
  .v31-battle .v10-party-grid.count-2 > .battle-player:nth-child(1){grid-column:1 / 2!important;}
  .v31-battle .battle-party-cards.count-2 > .battle-player:nth-child(2),
  .v31-battle .v11-party-grid.count-2 > .battle-player:nth-child(2),
  .v31-battle .v10-party-grid.count-2 > .battle-player:nth-child(2){grid-column:2 / 3!important;}
  .v31-battle .battle-party-cards.count-3 > .battle-player:nth-child(1),
  .v31-battle .v11-party-grid.count-3 > .battle-player:nth-child(1),
  .v31-battle .v10-party-grid.count-3 > .battle-player:nth-child(1){grid-column:1 / 2!important;}
  .v31-battle .battle-party-cards.count-3 > .battle-player:nth-child(2),
  .v31-battle .v11-party-grid.count-3 > .battle-player:nth-child(2),
  .v31-battle .v10-party-grid.count-3 > .battle-player:nth-child(2){grid-column:2 / 3!important;}
  .v31-battle .battle-party-cards.count-3 > .battle-player:nth-child(3),
  .v31-battle .v11-party-grid.count-3 > .battle-player:nth-child(3),
  .v31-battle .v10-party-grid.count-3 > .battle-player:nth-child(3){grid-column:1 / 3!important;}
  .v31-battle .battle-player.v25-player{
    min-height:112px!important;
    height:auto!important;
    padding:9px!important;
    gap:6px!important;
    border-radius:18px!important;
  }
  .v31-battle .battle-player.v25-player .player-card-head{grid-template-columns:38px minmax(0,1fr) auto!important;gap:7px!important;}
  .v31-battle .battle-player.v25-player .player-avatar{width:38px!important;height:38px!important;min-width:38px!important;border-radius:13px!important;font-size:22px!important;}
  .v31-battle .battle-player.v25-player .v25-player-title h3{font-size:13px!important;}
  .v31-battle .battle-player.v25-player .v25-player-title small{font-size:10px!important;}
  .v31-battle .battle-player.v25-player .stat-row{grid-template-columns:58px minmax(0,1fr)!important;gap:6px!important;}
  .v31-battle .battle-player.v25-player .stat-row span{font-size:10px!important;}
  .v31-battle .battle-player.v25-player .bar{height:7px!important;}
  .v31-battle .battle-player.v25-player .v25-player-status{min-height:24px!important;font-size:10.5px!important;line-height:1.12!important;padding:5px 7px!important;white-space:normal!important;}

  .v31-battle .battle-log{max-height:158px!important;overflow:hidden!important;}
  .v31-battle .battle-log .battle-log-scroll{max-height:108px!important;overflow:auto!important;}
}

@media(max-width:430px){
  .v31-battle .v28-monster-grid,
  .v31-battle .v27-monster-grid,
  .v31-battle .v20-monster-grid,
  .v31-battle .v22-monster-grid{gap:7px!important;grid-auto-rows:minmax(112px,auto)!important;}
  .v31-battle .v28-monster-grid > .v28-monster-target,
  .v31-battle .v27-monster-grid > .v28-monster-target,
  .v31-battle .v20-monster-grid > .v28-monster-target,
  .v31-battle .v22-monster-grid > .v28-monster-target{
    min-height:112px!important;
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    gap:7px!important;
    padding:9px!important;
    border-radius:18px!important;
  }
  .v31-battle .v28-monster-grid.count-1 > .v28-monster-target,
  .v31-battle .v27-monster-grid.count-1 > .v28-monster-target,
  .v31-battle .v20-monster-grid.count-1 > .v28-monster-target,
  .v31-battle .v22-monster-grid.count-1 > .v28-monster-target{
    min-height:128px!important;
    grid-template-columns:60px minmax(0,1fr) 58px!important;
    padding:10px!important;
  }
  .v31-battle .v28-monster-target .monster-portrait.battle{width:45px!important;height:45px!important;min-width:45px!important;}
  .v31-battle .v28-monster-target .monster-portrait.battle span{font-size:29px!important;}
  .v31-battle .v28-monster-grid.count-1 .monster-portrait.battle,
  .v31-battle .v27-monster-grid.count-1 .monster-portrait.battle,
  .v31-battle .v20-monster-grid.count-1 .monster-portrait.battle,
  .v31-battle .v22-monster-grid.count-1 .monster-portrait.battle{width:58px!important;height:58px!important;min-width:58px!important;}
  .v31-battle .v28-monster-grid.count-1 .monster-portrait.battle span,
  .v31-battle .v27-monster-grid.count-1 .monster-portrait.battle span,
  .v31-battle .v20-monster-grid.count-1 .monster-portrait.battle span,
  .v31-battle .v22-monster-grid.count-1 .monster-portrait.battle span{font-size:38px!important;}
  .v31-battle .v28-monster-target .v21-monster-title-line h2{font-size:15px!important;}
  .v31-battle .v28-monster-grid.count-1 .v21-monster-title-line h2,
  .v31-battle .v27-monster-grid.count-1 .v21-monster-title-line h2,
  .v31-battle .v20-monster-grid.count-1 .v21-monster-title-line h2,
  .v31-battle .v22-monster-grid.count-1 .v21-monster-title-line h2{font-size:20px!important;}
  .v31-battle .v28-monster-target .v23-battle-badge{font-size:8.5px!important;height:18px!important;line-height:18px!important;padding:0 6px!important;}
  .v31-battle .v28-monster-target .v21-monster-stats{font-size:10.8px!important;gap:7px!important;}
  .v31-battle .v28-monster-grid.count-1 .v21-monster-stats,
  .v31-battle .v27-monster-grid.count-1 .v21-monster-stats,
  .v31-battle .v20-monster-grid.count-1 .v21-monster-stats,
  .v31-battle .v22-monster-grid.count-1 .v21-monster-stats{font-size:13.5px!important;}
  .v31-battle .v28-monster-target .v17-target-actions{width:46px!important;min-width:46px!important;}
  .v31-battle .v28-monster-target .v17-sword-btn{width:46px!important;height:46px!important;min-height:46px!important;font-size:23px!important;border-radius:15px!important;}
  .v31-battle .v28-monster-grid.count-1 .v17-sword-btn,
  .v31-battle .v27-monster-grid.count-1 .v17-sword-btn,
  .v31-battle .v20-monster-grid.count-1 .v17-sword-btn,
  .v31-battle .v22-monster-grid.count-1 .v17-sword-btn{width:56px!important;height:56px!important;min-height:56px!important;font-size:27px!important;}

  .v31-battle .battle-party-cards,
  .v31-battle .v11-party-grid,
  .v31-battle .v10-party-grid,
  .v31-battle .v9-party-grid,
  .v31-battle .v7-party-grid{gap:7px!important;grid-auto-rows:minmax(104px,auto)!important;}
  .v31-battle .battle-player.v25-player{min-height:104px!important;padding:8px!important;gap:5px!important;}
  .v31-battle .battle-player.v25-player .player-card-head{grid-template-columns:34px minmax(0,1fr) auto!important;gap:6px!important;}
  .v31-battle .battle-player.v25-player .player-avatar{width:34px!important;height:34px!important;min-width:34px!important;font-size:20px!important;}
  .v31-battle .battle-player.v25-player .v25-player-title h3{font-size:12px!important;}
  .v31-battle .battle-player.v25-player .v25-player-title small{font-size:9px!important;}
  .v31-battle .battle-player.v25-player .stat-row{grid-template-columns:48px minmax(0,1fr)!important;gap:5px!important;}
  .v31-battle .battle-player.v25-player .stat-row span{font-size:9px!important;}
  .v31-battle .battle-player.v25-player .v25-player-status{font-size:9.6px!important;padding:4px 6px!important;}
}

/* ================= v32: серверный бой, респавн и адаптация ПК/ноут/телефон ================= */
.status-help-card{display:grid;gap:14px;font-size:16px;line-height:1.45}.status-help-card button{justify-self:end;min-width:120px}
.v23-battle-badge,.flag{border:1px solid rgba(255,255,255,.13)!important;box-shadow:none!important;transform:none!important;cursor:pointer!important;display:inline-grid!important;place-items:center!important;min-width:0!important;text-decoration:none!important;}
.v23-battle-badge:hover,.flag:hover{filter:brightness(1.18)!important;transform:none!important}
.v23-battle-badge.target{background:rgba(255,209,102,.22)!important;color:#ffe99a!important;border-color:rgba(255,209,102,.35)!important}.v23-battle-badge.pack,.flag.pack{background:rgba(6,214,160,.16)!important;color:#9effd8!important;border-color:rgba(6,214,160,.28)!important}.v23-battle-badge.aggro,.flag.aggro{background:rgba(239,71,111,.18)!important;color:#ff9fbd!important;border-color:rgba(239,71,111,.32)!important}.v23-battle-badge.stun{background:rgba(120,120,255,.18)!important;color:#c8cbff!important;border-color:rgba(140,140,255,.3)!important}
.v25-player-status{border:1px solid rgba(255,255,255,.1)!important;box-shadow:none!important;transform:none!important;text-align:left!important;cursor:pointer!important;color:#ffe98a!important;background:rgba(255,255,255,.06)!important;font-weight:900!important;display:flex!important;align-items:center!important;gap:7px!important;width:100%!important}.v25-player-status.attack{background:rgba(255,209,102,.12)!important}.v25-player-status.skill{background:rgba(123,92,255,.15)!important}.v25-player-status.help{background:rgba(6,214,160,.14)!important}.v25-player-status.skip{background:rgba(255,255,255,.08)!important}.v25-player-status.taunt{background:rgba(255,209,102,.18)!important;border-color:rgba(255,209,102,.3)!important}.v25-player-status span{display:inline-grid!important;place-items:center!important;width:20px!important;min-width:20px!important}

@media(min-width:1200px){.bottom-nav{width:min(980px,calc(100% - 120px))!important;grid-template-columns:repeat(4,minmax(180px,1fr))!important}.bottom-nav button{min-height:60px!important;font-size:16px!important}.bottom-nav span{font-size:13px!important}}
@media(min-width:821px){
  .battle-top.v17-battle-top{max-width:min(1540px,calc(100vw - 40px))!important;width:100%!important;margin:0 auto 10px!important}.battle-top .v17-corner-btn span{display:inline!important}
  .battle-screen.v32-battle{width:min(1540px,calc(100vw - 40px))!important;max-width:none!important;display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr)!important;grid-template-areas:'timer timer' 'monsters party' 'log log'!important;gap:12px!important;align-items:start!important;padding:14px!important;margin:0 auto 100px!important;}
  .v32-battle .battle-timer{grid-area:timer!important;margin:0!important}.v32-battle .v17-monsters-panel{grid-area:monsters!important;margin:0!important}.v32-battle .v17-party-panel{grid-area:party!important;margin:0!important}.v32-battle .battle-log{grid-area:log!important;margin:0!important}.v32-battle .battle-actions{display:none!important}
  .v32-battle .v17-monsters-panel,.v32-battle .v17-party-panel,.v32-battle .battle-log{border-radius:22px!important;overflow:hidden!important}
  .v32-battle .v28-monster-grid,.v32-battle .v27-monster-grid,.v32-battle .v20-monster-grid,.v32-battle .v22-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(126px,auto)!important;gap:10px!important;width:100%!important}
  .v32-battle .v28-monster-grid.count-1,.v32-battle .v27-monster-grid.count-1,.v32-battle .v20-monster-grid.count-1,.v32-battle .v22-monster-grid.count-1{grid-template-columns:1fr!important;grid-auto-rows:minmax(154px,auto)!important}
  .v32-battle .v28-monster-grid.count-1>.v28-monster-target,.v32-battle .v27-monster-grid.count-1>.v28-monster-target,.v32-battle .v20-monster-grid.count-1>.v28-monster-target,.v32-battle .v22-monster-grid.count-1>.v28-monster-target{grid-column:1/-1!important;min-height:154px!important}
  .v32-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(1),.v32-battle .v27-monster-grid.count-2>.v28-monster-target:nth-child(1),.v32-battle .v20-monster-grid.count-2>.v28-monster-target:nth-child(1),.v32-battle .v22-monster-grid.count-2>.v28-monster-target:nth-child(1){grid-column:1/2!important}.v32-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(2),.v32-battle .v27-monster-grid.count-2>.v28-monster-target:nth-child(2),.v32-battle .v20-monster-grid.count-2>.v28-monster-target:nth-child(2),.v32-battle .v22-monster-grid.count-2>.v28-monster-target:nth-child(2){grid-column:2/3!important}
  .v32-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(1),.v32-battle .v27-monster-grid.count-3>.v28-monster-target:nth-child(1),.v32-battle .v20-monster-grid.count-3>.v28-monster-target:nth-child(1),.v32-battle .v22-monster-grid.count-3>.v28-monster-target:nth-child(1){grid-column:1/2!important}.v32-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(2),.v32-battle .v27-monster-grid.count-3>.v28-monster-target:nth-child(2),.v32-battle .v20-monster-grid.count-3>.v28-monster-target:nth-child(2),.v32-battle .v22-monster-grid.count-3>.v28-monster-target:nth-child(2){grid-column:2/3!important}.v32-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(3),.v32-battle .v27-monster-grid.count-3>.v28-monster-target:nth-child(3),.v32-battle .v20-monster-grid.count-3>.v28-monster-target:nth-child(3),.v32-battle .v22-monster-grid.count-3>.v28-monster-target:nth-child(3){grid-column:1/3!important}
  .v32-battle .v28-monster-target{display:grid!important;grid-template-columns:64px minmax(0,1fr) 58px!important;gap:12px!important;align-items:center!important;min-height:126px!important;padding:12px!important}.v32-battle .v28-monster-target .monster-portrait.battle{width:62px!important;height:62px!important;min-width:62px!important;margin:0!important}.v32-battle .v28-monster-target .monster-portrait.battle span{font-size:40px!important}.v32-battle .v28-monster-target .v21-monster-title-line h2{font-size:18px!important}.v32-battle .v28-monster-target .bar.hp{width:100%!important;max-width:360px!important;height:9px!important}.v32-battle .v28-monster-target .v23-monster-badges{display:flex!important;gap:5px!important;flex-wrap:wrap!important;min-height:20px!important}.v32-battle .v28-monster-target .v23-battle-badge{height:20px!important;font-size:10px!important;padding:0 7px!important;border-radius:999px!important}.v32-battle .v28-monster-target .v21-monster-stats{font-size:12px!important;gap:10px!important;flex-wrap:wrap!important}.v32-battle .v28-monster-target .v17-sword-btn{width:54px!important;height:54px!important;min-height:54px!important;font-size:26px!important}
  .v32-battle .battle-party-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.v32-battle .battle-party-cards.count-1>.battle-player{grid-column:1/3!important}.v32-battle .battle-party-cards.count-3>.battle-player:nth-child(3){grid-column:1/3!important}.v32-battle .battle-player.v25-player{min-height:126px!important;padding:11px!important;border-radius:18px!important}.v32-battle .battle-player.v25-player .v25-player-status{font-size:12px!important;line-height:1.15!important;min-height:32px!important;padding:6px 9px!important;white-space:normal!important}.v32-battle .battle-log{max-height:190px!important}.v32-battle .battle-log .battle-log-scroll{max-height:132px!important;overflow:auto!important}
  .v32-skill-drawer,.v32-help-drawer{top:88px!important;bottom:auto!important;width:25vw!important;min-width:300px!important;max-width:420px!important;max-height:calc(100dvh - 120px)!important;border-radius:24px!important;overflow:hidden!important}.v32-skill-drawer .v17-skill-scroll,.v32-help-drawer .v17-help-scroll{max-height:calc(100dvh - 230px)!important;overflow:auto!important}.v32-help-drawer .v17-help-scroll{display:grid!important;place-content:start center!important}.v32-help-drawer .v17-help-friend{width:100%!important;max-width:340px!important}
}
@media(min-width:821px) and (max-height:780px){
  .topbar.battle-top{min-height:58px!important;padding:6px 12px!important}.battle-top .top-title h1{font-size:18px!important}.battle-top .top-title p{font-size:12px!important}.battle-top .v17-corner-btn{min-height:42px!important;min-width:46px!important;padding:5px 8px!important}
  .battle-screen.v32-battle{gap:9px!important;padding:9px!important;margin-bottom:84px!important}.v32-battle .battle-timer{padding:8px 10px!important}.v32-battle .v17-monsters-panel,.v32-battle .v17-party-panel{padding:9px!important;max-height:calc(100dvh - 330px)!important;overflow:auto!important}.v32-battle .battle-section-title h2{font-size:18px!important;margin:0!important}.v32-battle .battle-section-title small{display:none!important}.v32-battle .v28-monster-grid{grid-auto-rows:minmax(98px,auto)!important}.v32-battle .v28-monster-target{min-height:98px!important;grid-template-columns:50px minmax(0,1fr) 48px!important;padding:9px!important}.v32-battle .v28-monster-target .monster-portrait.battle{width:48px!important;height:48px!important;min-width:48px!important}.v32-battle .v28-monster-target .monster-portrait.battle span{font-size:31px!important}.v32-battle .v28-monster-target .v21-monster-title-line h2{font-size:15px!important}.v32-battle .v28-monster-target .v21-monster-stats{font-size:10.5px!important}.v32-battle .v28-monster-target .v17-sword-btn{width:46px!important;height:46px!important;min-height:46px!important;font-size:22px!important}.v32-battle .battle-player.v25-player{min-height:102px!important;padding:8px!important}.v32-battle .battle-log{max-height:150px!important}.v32-battle .battle-log .battle-log-scroll{max-height:100px!important}.bottom-nav{bottom:8px!important}.bottom-nav button{min-height:48px!important;padding:5px!important}.bottom-nav span{font-size:11px!important}
}

@media(max-width:760px){
  .battle-top.v17-battle-top{grid-template-columns:auto minmax(0,1fr) auto!important;padding:8px 12px!important}.battle-top .v17-corner-btn{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;border-radius:18px!important}.battle-top .v17-corner-btn span{display:none!important}.battle-top .top-title h1{font-size:20px!important}.battle-top .top-title p{font-size:12px!important}
  .battle-screen.v32-battle{display:flex!important;flex-direction:column!important;gap:9px!important;padding:8px 8px calc(112px + env(safe-area-inset-bottom,0px))!important;overflow:visible!important}
  .v32-battle .battle-timer,.v32-battle .v17-monsters-panel,.v32-battle .v17-party-panel,.v32-battle .battle-log{width:100%!important;min-width:0!important;position:relative!important;margin:0!important}.v32-battle .v17-monsters-panel,.v32-battle .v17-party-panel{padding:9px!important;border-radius:21px!important;overflow:visible!important}.v32-battle .battle-section-title h2{font-size:22px!important}.v32-battle .battle-section-title small{font-size:10px!important;max-width:45vw!important}
  .v32-battle .v28-monster-grid,.v32-battle .v27-monster-grid,.v32-battle .v20-monster-grid,.v32-battle .v22-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(92px,auto)!important;gap:7px!important;width:100%!important;overflow:visible!important}.v32-battle .v28-monster-grid.count-1,.v32-battle .v27-monster-grid.count-1,.v32-battle .v20-monster-grid.count-1,.v32-battle .v22-monster-grid.count-1{grid-template-columns:1fr!important;grid-auto-rows:auto!important}.v32-battle .v28-monster-grid.count-1>.v28-monster-target,.v32-battle .v27-monster-grid.count-1>.v28-monster-target,.v32-battle .v20-monster-grid.count-1>.v28-monster-target,.v32-battle .v22-monster-grid.count-1>.v28-monster-target{grid-column:1/-1!important;min-height:128px!important;grid-template-columns:58px minmax(0,1fr) 54px!important;padding:11px!important;gap:9px!important}.v32-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(1),.v32-battle .v27-monster-grid.count-2>.v28-monster-target:nth-child(1),.v32-battle .v20-monster-grid.count-2>.v28-monster-target:nth-child(1),.v32-battle .v22-monster-grid.count-2>.v28-monster-target:nth-child(1){grid-column:1/2!important}.v32-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(2),.v32-battle .v27-monster-grid.count-2>.v28-monster-target:nth-child(2),.v32-battle .v20-monster-grid.count-2>.v28-monster-target:nth-child(2),.v32-battle .v22-monster-grid.count-2>.v28-monster-target:nth-child(2){grid-column:2/3!important}.v32-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(3),.v32-battle .v27-monster-grid.count-3>.v28-monster-target:nth-child(3),.v32-battle .v20-monster-grid.count-3>.v28-monster-target:nth-child(3),.v32-battle .v22-monster-grid.count-3>.v28-monster-target:nth-child(3){grid-column:1/3!important}
  .v32-battle .v28-monster-target{min-height:92px!important;grid-template-columns:40px minmax(0,1fr) 42px!important;gap:6px!important;padding:7px!important;border-radius:17px!important;overflow:hidden!important;display:grid!important;align-items:center!important}.v32-battle .v28-monster-target .monster-portrait.battle{width:40px!important;height:40px!important;min-width:40px!important;border-radius:13px!important;margin:0!important}.v32-battle .v28-monster-target .monster-portrait.battle span{font-size:26px!important}.v32-battle .v28-monster-grid.count-1 .monster-portrait.battle{width:56px!important;height:56px!important;min-width:56px!important}.v32-battle .v28-monster-grid.count-1 .monster-portrait.battle span{font-size:36px!important}.v32-battle .v28-monster-target .monster-battle-info{display:grid!important;gap:4px!important;min-width:0!important}.v32-battle .v28-monster-target .v21-monster-title-line{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;gap:5px!important;align-items:center!important}.v32-battle .v28-monster-target .v17-mob-index{width:20px!important;height:20px!important;font-size:9px!important;border-radius:8px!important}.v32-battle .v28-monster-target .v21-monster-title-line h2{font-size:13px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v32-battle .v28-monster-grid.count-1 .v21-monster-title-line h2{font-size:17px!important}.v32-battle .v28-monster-target .v23-monster-badges{display:flex!important;gap:3px!important;flex-wrap:nowrap!important;overflow:hidden!important;min-height:16px!important}.v32-battle .v28-monster-target .v23-battle-badge{height:16px!important;line-height:16px!important;font-size:8px!important;padding:0 5px!important;border-radius:999px!important;max-width:48px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v32-battle .v28-monster-grid.count-1 .v23-battle-badge{height:18px!important;font-size:9px!important;max-width:58px!important}.v32-battle .v28-monster-target .bar.hp{width:100%!important;max-width:180px!important;height:6px!important;margin:0!important}.v32-battle .v28-monster-grid.count-1 .bar.hp{max-width:210px!important;height:7px!important}.v32-battle .v28-monster-target .v21-monster-stats{font-size:9.2px!important;gap:5px!important;line-height:1.05!important;display:flex!important;flex-wrap:wrap!important;overflow:visible!important}.v32-battle .v28-monster-grid.count-1 .v21-monster-stats{font-size:12px!important;gap:8px!important}.v32-battle .v28-monster-target .v17-target-actions{width:42px!important;min-width:42px!important}.v32-battle .v28-monster-target .v17-sword-btn{width:42px!important;height:42px!important;min-height:42px!important;font-size:21px!important;border-radius:14px!important}.v32-battle .v28-monster-grid.count-1 .v17-sword-btn{width:52px!important;height:52px!important;min-height:52px!important;font-size:25px!important}
  .v32-battle .battle-party-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v32-battle .battle-party-cards.count-1>.battle-player{grid-column:1/3!important}.v32-battle .battle-party-cards.count-3>.battle-player:nth-child(3){grid-column:1/3!important}.v32-battle .battle-player.v25-player{min-height:102px!important;padding:8px!important;border-radius:17px!important}.v32-battle .battle-player.v25-player .player-card-head{grid-template-columns:34px minmax(0,1fr) auto!important;gap:6px!important}.v32-battle .battle-player.v25-player .player-avatar{width:34px!important;height:34px!important;min-width:34px!important;font-size:20px!important}.v32-battle .battle-player.v25-player .v25-player-title h3{font-size:12px!important}.v32-battle .battle-player.v25-player .v25-player-title small{font-size:9px!important}.v32-battle .battle-player.v25-player .stat-row{grid-template-columns:48px minmax(0,1fr)!important;gap:5px!important}.v32-battle .battle-player.v25-player .stat-row span{font-size:9px!important}.v32-battle .battle-player.v25-player .bar{height:7px!important}.v32-battle .battle-player.v25-player .v25-player-status{font-size:9.4px!important;line-height:1.1!important;min-height:25px!important;padding:4px 6px!important;white-space:normal!important}
  .v32-battle .battle-log{max-height:150px!important;border-radius:19px!important;padding:9px!important;overflow:hidden!important}.v32-battle .battle-log .battle-log-scroll{max-height:98px!important;overflow:auto!important}.v32-battle .battle-log p{font-size:11.5px!important;line-height:1.2!important;padding:6px 8px!important;margin:4px 0!important}
  .v32-skill-drawer.v16-skill-drawer,.v32-help-drawer.v17-help-drawer{top:76px!important;bottom:auto!important;width:min(46vw,230px)!important;max-width:230px!important;min-width:176px!important;max-height:42dvh!important;padding:9px!important;border-radius:20px!important;overflow:hidden!important}.v32-skill-drawer.v16-skill-drawer{right:8px!important;left:auto!important}.v32-help-drawer.v17-help-drawer{left:8px!important;right:auto!important}.v32-skill-drawer .v17-drawer-head b,.v32-help-drawer .v17-drawer-head b{font-size:15px!important}.v32-skill-drawer .v17-drawer-head small,.v32-help-drawer .v17-drawer-head small{display:none!important}.v32-skill-drawer .ghost.small,.v32-help-drawer .ghost.small{width:34px!important;height:34px!important;min-height:34px!important;border-radius:12px!important;padding:0!important}.v32-skill-drawer .v17-skill-scroll,.v32-skill-drawer .v16-skill-scroll,.v32-help-drawer .v17-help-scroll{max-height:calc(42dvh - 62px)!important;overflow:auto!important;padding:7px 2px 8px 0!important}.v32-drawer-mini-note{display:none!important}.v32-skill-drawer h3{font-size:12px!important;margin:6px 0 4px!important}.v32-drawer-ability{border-radius:13px!important}.v32-ability-main{grid-template-columns:34px minmax(0,1fr)!important;padding:6px!important;gap:6px!important}.v32-ability-main span{width:32px!important;height:32px!important;font-size:19px!important;border-radius:10px!important}.v32-ability-main b{font-size:10.5px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v32-ability-main small{font-size:9px!important}.v32-self-cast-note{display:none!important}.v32-ability-targets{padding:5px!important;gap:4px!important}.v32-ability-targets button{font-size:9px!important;min-height:28px!important;padding:5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v32-help-drawer .v17-help-scroll{display:grid!important;align-content:start!important;justify-items:center!important}.v32-help-drawer .v17-help-friend{width:100%!important;grid-template-columns:1fr!important;text-align:center!important;padding:7px!important;gap:6px!important}.v32-help-drawer .v17-help-friend span{font-size:10px!important}.v32-help-drawer .v17-help-friend button{width:100%!important;font-size:10px!important;min-height:28px!important}.v25-help-note{font-size:10px!important;line-height:1.2!important;margin:6px 0!important}
}
@media(max-width:390px){.v32-battle .battle-party-cards{grid-template-columns:1fr!important}.v32-battle .battle-party-cards>.battle-player{grid-column:1/-1!important}.v32-battle .v28-monster-grid.count-2,.v32-battle .v28-monster-grid.count-3,.v32-battle .v28-monster-grid.count-4{grid-template-columns:1fr!important}.v32-battle .v28-monster-grid.count-2>.v28-monster-target,.v32-battle .v28-monster-grid.count-3>.v28-monster-target,.v32-battle .v28-monster-grid.count-4>.v28-monster-target{grid-column:1/-1!important}.v32-skill-drawer.v16-skill-drawer,.v32-help-drawer.v17-help-drawer{width:48vw!important;min-width:168px!important}}

/* ================= v33: фиксация размеров боя, статус-окна, боковые панели, инвентарь/профиль/друзья ================= */
.net-pill.lan{background:linear-gradient(135deg,rgba(6,214,160,.22),rgba(89,220,255,.14))!important;color:#a8ffe5!important;border-color:rgba(6,214,160,.38)!important;}
.net-pill.offline{background:rgba(255,209,102,.12)!important;color:#ffe4a0!important;border-color:rgba(255,209,102,.28)!important;}
.bottom-nav{width:min(860px,calc(100vw - 32px))!important;max-width:none!important;}
@media(min-width:1000px){.screen{max-width:1320px!important}.battle-screen{max-width:1360px!important}.bottom-nav button{min-height:62px!important;font-size:14px!important}}

/* Бой: не меняем расположение блоков, только фиксируем размеры и убираем лишние заголовки. */
.battle-top.v17-battle-top{height:0!important;min-height:0!important;padding:0!important;border:0!important;overflow:visible!important;position:relative!important;z-index:65!important;}
.battle-top .top-title,.battle-top .net-pill{display:none!important;}
.battle-top .v17-corner-btn{position:fixed!important;top:12px!important;z-index:100!important;width:54px!important;height:54px!important;border-radius:18px!important;font-size:23px!important;padding:0!important;box-shadow:0 14px 32px rgba(0,0,0,.32)!important;}
.battle-top .v17-corner-btn span{display:none!important;}
.battle-top .v17-help-btn{left:14px!important;}
.battle-top .v17-skill-btn{right:14px!important;}
.v33-battle{padding-top:12px!important;display:grid!important;gap:12px!important;align-content:start!important;scroll-behavior:auto!important;}
.v33-battle .battle-timer{order:1!important;margin:0!important;min-height:78px!important;}
.v33-battle .v17-monsters-panel{order:2!important;min-height:0!important;}
.v33-battle .v17-party-panel{order:3!important;min-height:0!important;}
.v33-battle .battle-log{order:4!important;min-height:150px!important;}
.v33-hidden-title,.v33-battle .battle-section-title{display:none!important;}
.v33-battle .turn-head{align-items:center!important;}
.v33-battle .turn-head b{font-size:20px!important;}
.v33-battle .turn-head p{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:72vw!important;}
.v33-battle #turn-time{font-size:22px!important;min-width:86px!important;text-align:right!important;color:#ffe66d!important;}
.v33-battle .v17-monsters-panel,.v33-battle .party-panel{overflow:visible!important;}
.v33-battle .v28-monster-grid,.v33-battle .v27-monster-grid,.v33-battle .v20-monster-grid,.v33-battle .v22-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;grid-auto-rows:minmax(136px,auto)!important;}
.v33-battle .v28-monster-grid.count-1,.v33-battle .v27-monster-grid.count-1,.v33-battle .v20-monster-grid.count-1,.v33-battle .v22-monster-grid.count-1{grid-template-columns:1fr!important;}
.v33-battle .v28-monster-grid.count-1>.v28-monster-target{grid-column:1/-1!important;min-height:152px!important;}
.v33-battle .v28-monster-grid.count-2>.v28-monster-target{min-height:132px!important;}
.v33-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(3){grid-column:1/3!important;}
.v33-battle .v28-monster-target{position:relative!important;display:grid!important;grid-template-columns:76px minmax(0,1fr) 72px!important;gap:12px!important;align-items:center!important;min-height:132px!important;padding:14px!important;border-radius:24px!important;overflow:hidden!important;contain:layout paint!important;}
.v33-battle .v28-monster-target .monster-portrait.battle{width:70px!important;height:70px!important;min-width:70px!important;border-radius:20px!important;margin:0!important;}
.v33-battle .v28-monster-target .monster-portrait.battle span{font-size:44px!important;}
.v33-battle .v28-monster-target .monster-battle-info{display:grid!important;grid-template-rows:auto auto auto auto!important;gap:7px!important;min-width:0!important;}
.v33-battle .v21-monster-title-line{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;}
.v33-battle .v17-mob-index{width:28px!important;height:28px!important;font-size:12px!important;border-radius:10px!important;}
.v33-battle .v21-monster-title-line h2{font-size:22px!important;line-height:1.05!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v33-battle .v23-monster-badges{display:flex!important;gap:5px!important;flex-wrap:wrap!important;align-items:center!important;min-height:24px!important;overflow:visible!important;}
.v33-battle .v23-battle-badge{font-size:10px!important;line-height:18px!important;height:20px!important;padding:0 8px!important;border-radius:999px!important;max-width:none!important;white-space:nowrap!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important;}
.v33-battle .v23-battle-badge.target{background:rgba(255,209,102,.18)!important;color:#ffe9a6!important;border-color:rgba(255,209,102,.38)!important;}
.v33-battle .v23-battle-badge.pack{background:rgba(6,214,160,.16)!important;color:#a8ffdf!important;border-color:rgba(6,214,160,.35)!important;}
.v33-battle .v23-battle-badge.aggro{background:rgba(239,71,111,.16)!important;color:#ffb8c8!important;border-color:rgba(239,71,111,.35)!important;}
.v33-battle .v28-monster-target .bar.hp{width:100%!important;max-width:360px!important;height:9px!important;margin:0!important;}
.v33-battle .v21-monster-stats{display:flex!important;gap:14px!important;flex-wrap:wrap!important;font-size:14px!important;line-height:1.1!important;white-space:normal!important;}
.v33-battle .v17-target-actions{width:68px!important;min-width:68px!important;justify-self:end!important;}
.v33-battle .v17-sword-btn{width:66px!important;height:66px!important;min-height:66px!important;border-radius:21px!important;font-size:30px!important;}
.v33-battle .battle-party-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
.v33-battle .battle-party-cards.count-1>.battle-player{grid-column:1/3!important;}
.v33-battle .battle-party-cards.count-3>.battle-player:nth-child(3){grid-column:1/3!important;}
.v33-battle .battle-player.v25-player{min-height:126px!important;border-radius:24px!important;padding:13px!important;contain:layout paint!important;}
.v33-battle .v25-player-status{border-radius:14px!important;min-height:34px!important;display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-start!important;font-weight:900!important;}
.v33-battle .player-bars .bar{position:relative;overflow:hidden;}
.v33-battle .player-bars .bar i::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);animation:v33BarGlow 1.5s linear infinite;}
@keyframes v33BarGlow{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

/* Низкая высота ноутбука: не уводим элементы вниз, просто ужимаем вертикальные отступы. */
@media(min-width:760px) and (max-height:760px){
  .v33-battle{gap:8px!important;padding-bottom:90px!important;}
  .v33-battle .battle-timer{min-height:58px!important;padding:10px 14px!important;}
  .v33-battle .v28-monster-target{min-height:102px!important;padding:10px!important;grid-template-columns:58px minmax(0,1fr) 56px!important;}
  .v33-battle .v28-monster-target .monster-portrait.battle{width:54px!important;height:54px!important;min-width:54px!important;}
  .v33-battle .v28-monster-target .monster-portrait.battle span{font-size:34px!important;}
  .v33-battle .v17-sword-btn{width:52px!important;height:52px!important;min-height:52px!important;font-size:24px!important;}
  .v33-battle .v21-monster-title-line h2{font-size:17px!important;}
  .v33-battle .v21-monster-stats{font-size:12px!important;gap:8px!important;}
  .v33-battle .battle-player.v25-player{min-height:100px!important;padding:9px!important;}
  .v33-battle .battle-log{min-height:112px!important;max-height:136px!important;}
  .v33-battle .battle-log-scroll{max-height:82px!important;}
}

/* Телефон: оставляем сетку как на ПК, но карточки компактные и без наложений. */
@media(max-width:620px){
  .battle-top .v17-corner-btn{top:calc(8px + env(safe-area-inset-top,0px))!important;width:48px!important;height:48px!important;border-radius:17px!important;font-size:21px!important;}
  .v33-battle{padding:10px 8px 110px!important;gap:10px!important;}
  .v33-battle .battle-timer{min-height:66px!important;padding:10px!important;border-radius:18px!important;}
  .v33-battle .turn-head b{font-size:18px!important;}
  .v33-battle .turn-head p{font-size:11px!important;max-width:55vw!important;}
  .v33-battle #turn-time{font-size:20px!important;min-width:70px!important;}
  .v33-battle .v17-monsters-panel,.v33-battle .party-panel{padding:10px!important;border-radius:22px!important;}
  .v33-battle .v28-monster-grid,.v33-battle .v27-monster-grid,.v33-battle .v20-monster-grid,.v33-battle .v22-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;grid-auto-rows:minmax(108px,auto)!important;}
  .v33-battle .v28-monster-grid.count-1,.v33-battle .v27-monster-grid.count-1,.v33-battle .v20-monster-grid.count-1,.v33-battle .v22-monster-grid.count-1{grid-template-columns:1fr!important;}
  .v33-battle .v28-monster-grid.count-1>.v28-monster-target{grid-column:1/-1!important;min-height:124px!important;}
  .v33-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(1){grid-column:1/2!important;}
  .v33-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(2){grid-column:2/3!important;}
  .v33-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(3){grid-column:1/3!important;}
  .v33-battle .v28-monster-target{min-height:108px!important;grid-template-columns:46px minmax(0,1fr) 46px!important;gap:7px!important;padding:8px!important;border-radius:18px!important;}
  .v33-battle .v28-monster-target .monster-portrait.battle{width:44px!important;height:44px!important;min-width:44px!important;border-radius:14px!important;}
  .v33-battle .v28-monster-target .monster-portrait.battle span{font-size:29px!important;}
  .v33-battle .v28-monster-grid.count-1 .monster-portrait.battle{width:58px!important;height:58px!important;min-width:58px!important;}
  .v33-battle .v28-monster-grid.count-1 .monster-portrait.battle span{font-size:38px!important;}
  .v33-battle .v21-monster-title-line{grid-template-columns:22px minmax(0,1fr)!important;gap:5px!important;}
  .v33-battle .v17-mob-index{width:22px!important;height:22px!important;font-size:10px!important;}
  .v33-battle .v21-monster-title-line h2{font-size:13px!important;}
  .v33-battle .v28-monster-grid.count-1 .v21-monster-title-line h2{font-size:19px!important;}
  .v33-battle .v23-monster-badges{gap:3px!important;min-height:18px!important;}
  .v33-battle .v23-battle-badge{height:17px!important;line-height:17px!important;font-size:8px!important;padding:0 5px!important;max-width:44px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v33-battle .v28-monster-grid.count-1 .v23-battle-badge{font-size:10px!important;max-width:none!important;padding:0 8px!important;height:20px!important;line-height:20px!important;}
  .v33-battle .v28-monster-target .bar.hp{height:6px!important;max-width:100%!important;}
  .v33-battle .v28-monster-grid.count-1 .bar.hp{max-width:250px!important;height:7px!important;}
  .v33-battle .v21-monster-stats{font-size:9.5px!important;gap:5px!important;}
  .v33-battle .v28-monster-grid.count-1 .v21-monster-stats{font-size:14px!important;gap:12px!important;}
  .v33-battle .v17-target-actions{width:44px!important;min-width:44px!important;}
  .v33-battle .v17-sword-btn{width:44px!important;height:44px!important;min-height:44px!important;font-size:21px!important;border-radius:15px!important;}
  .v33-battle .v28-monster-grid.count-1 .v17-sword-btn{width:58px!important;height:58px!important;min-height:58px!important;font-size:28px!important;}
  .v33-battle .battle-party-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v33-battle .battle-party-cards.count-1>.battle-player{grid-column:1/3!important;}
  .v33-battle .battle-party-cards.count-3>.battle-player:nth-child(3){grid-column:1/3!important;}
  .v33-battle .battle-player.v25-player{min-height:110px!important;padding:9px!important;border-radius:18px!important;}
  .v33-battle .battle-player.v25-player .player-card-head{grid-template-columns:36px minmax(0,1fr) auto!important;gap:7px!important;}
  .v33-battle .battle-player.v25-player .player-avatar{width:36px!important;height:36px!important;min-width:36px!important;font-size:20px!important;}
  .v33-battle .battle-player.v25-player .v25-player-title h3{font-size:12px!important;}
  .v33-battle .battle-player.v25-player .stat-row{grid-template-columns:50px minmax(0,1fr)!important;}
  .v33-battle .battle-player.v25-player .stat-row span{font-size:9px!important;}
  .v33-battle .v25-player-status{font-size:9.5px!important;min-height:27px!important;padding:4px 6px!important;}
  .v33-battle .battle-log{min-height:132px!important;max-height:154px!important;padding:9px!important;border-radius:20px!important;}
  .v33-battle .battle-log h3{font-size:16px!important;margin:0 0 6px!important;}
  .v33-battle .battle-log-scroll{max-height:96px!important;overflow:auto!important;}
}
@media(max-width:390px){
  .v33-battle .v28-monster-grid.count-2,.v33-battle .v28-monster-grid.count-3,.v33-battle .v28-monster-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .v33-battle .battle-party-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* ================= v62: complete tactical battle redesign ================= */
:root{--b62-bg:#080a0e;--b62-panel:#11151c;--b62-panel2:#171c25;--b62-line:rgba(231,219,185,.13);--b62-gold:#f2d88a;--b62-brass:#d8b461;--b62-red:#d75055;--b62-green:#65d6b0;--b62-blue:#72b8db;--b62-text:#f4f0e6;--b62-muted:#969dad;--b62-shadow:0 22px 60px rgba(0,0,0,.36)}
.v62-battle-top{min-height:82px!important;display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;align-items:center!important;gap:13px!important;padding:10px max(18px,calc((100vw - 1320px)/2 + 18px))!important;background:linear-gradient(180deg,rgba(9,11,15,.97),rgba(12,15,21,.93))!important;border-bottom:1px solid rgba(216,180,97,.22)!important;box-shadow:0 10px 34px rgba(0,0,0,.24)!important;backdrop-filter:blur(20px)!important;z-index:90!important}
.v62-battle-emblem{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;color:var(--b62-gold);font:900 24px/1 Georgia,serif;background:radial-gradient(circle at 35% 25%,rgba(242,216,138,.16),transparent 55%),linear-gradient(145deg,#252116,#111318);border:1px solid rgba(216,180,97,.34);box-shadow:inset 0 0 22px rgba(216,180,97,.06),0 10px 24px rgba(0,0,0,.28)}
.v62-battle-title{display:grid!important;gap:1px!important;min-width:0!important}.v62-eyebrow{color:#b79c5d;font-size:9px;font-weight:1000;letter-spacing:1.55px}.v62-battle-title h1{font:700 23px/1.05 Georgia,serif!important;color:var(--b62-text)!important}.v62-battle-title p{font-size:11px!important;color:var(--b62-muted)!important}.v62-header-status{display:flex;align-items:center;gap:8px}.v62-header-status .net-pill{margin:0!important;padding:7px 10px!important;font-size:10px!important}.v62-phase-pill{display:inline-flex;align-items:center;min-height:31px;padding:0 12px;border-radius:999px;font-size:10px;font-weight:1000;letter-spacing:.7px;text-transform:uppercase;border:1px solid}.v62-phase-pill.ally{color:#9fe8ce;background:rgba(101,214,176,.09);border-color:rgba(101,214,176,.26)}.v62-phase-pill.enemy{color:#ffaaa9;background:rgba(215,80,85,.11);border-color:rgba(215,80,85,.3)}
.battle-screen.v62-battle{isolation:isolate!important;position:relative!important;width:min(1320px,calc(100vw - 36px))!important;max-width:1320px!important;margin:0 auto!important;padding:18px 0 32px!important;display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(380px,.88fr)!important;grid-template-areas:"timer timer" "monsters players" "actions actions" "log log"!important;align-items:start!important;gap:14px!important}.battle-screen.v62-battle:before{content:"";position:fixed;inset:82px 0 0;z-index:-2;pointer-events:none;background:radial-gradient(circle at 16% 8%,rgba(142,48,55,.13),transparent 30%),radial-gradient(circle at 82% 10%,rgba(34,119,112,.1),transparent 28%),linear-gradient(180deg,#0d1015,#080a0e 72%)}
.v62-turn-panel.v56-timer{grid-area:timer!important;position:relative!important;min-height:88px!important;padding:13px 16px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;grid-template-rows:1fr 7px!important;gap:10px 14px!important;align-items:center!important;border-radius:19px!important;background:linear-gradient(112deg,rgba(18,24,31,.98),rgba(12,16,22,.98))!important;border:1px solid rgba(101,214,176,.22)!important;box-shadow:var(--b62-shadow)!important;overflow:hidden!important}.v62-turn-panel.monster-turn{border-color:rgba(215,80,85,.28)!important}.v62-turn-panel:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(var(--b62-green),transparent)}.v62-turn-panel.monster-turn:before{background:linear-gradient(var(--b62-red),transparent)}.v62-turn-orb{--turn-progress:360deg;grid-row:1/3;width:52px;height:52px;padding:3px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--b62-green) var(--turn-progress),rgba(255,255,255,.07) 0)}.monster-turn .v62-turn-orb{background:conic-gradient(var(--b62-red) var(--turn-progress),rgba(255,255,255,.07) 0)}.v62-turn-orb>span{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;background:#11161d;font-size:20px}.v62-turn-panel .turn-head{display:block!important}.v62-turn-panel .turn-head b{font:700 19px/1.1 Georgia,serif!important;color:var(--b62-text)!important}.v62-turn-panel .turn-head p{margin:5px 0 0!important;font-size:11px!important;color:var(--b62-muted)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v62-turn-meta{display:grid;justify-items:end;gap:3px}.v62-turn-meta small{font-size:9px;color:var(--b62-muted);font-weight:900}.v62-turn-panel #turn-time{min-width:104px!important;padding:0!important;border:0!important;background:none!important;color:var(--b62-gold)!important;font:900 20px/1 Georgia,serif!important;text-align:right!important}.v62-turn-panel .bar.turn{grid-column:2/4!important;height:7px!important;margin:0!important;background:rgba(255,255,255,.055)!important;border:0!important}.v62-turn-panel .bar.turn i{background:linear-gradient(90deg,#5bcaa4,#b7e2bd)!important;transition:width .18s linear!important}.v62-turn-panel.monster-turn .bar.turn i{background:linear-gradient(90deg,#b93640,#ed776f)!important}.v62-turn-panel.urgent #turn-time{color:#ff8b82!important;animation:b62pulse .8s ease-in-out infinite alternate}@keyframes b62pulse{to{filter:brightness(1.45);transform:scale(1.035)}}
.v62-arena-panel,.v62-party-panel{min-width:0!important;width:100%!important;padding:14px!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(17,21,28,.98),rgba(12,15,20,.98))!important;border:1px solid var(--b62-line)!important;box-shadow:0 18px 46px rgba(0,0,0,.25)!important;overflow:hidden!important}.v62-arena-panel{grid-area:monsters!important;border-color:rgba(215,80,85,.2)!important}.v62-party-panel{grid-area:players!important;border-color:rgba(101,214,176,.18)!important}.v62-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px 11px;border-bottom:1px solid rgba(255,255,255,.065)}.v62-section-head>div{display:flex;align-items:center;gap:9px;min-width:0}.v62-section-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;font:900 15px/1 Georgia,serif;border:1px solid}.v62-section-icon.enemy{color:#ff9794;background:rgba(215,80,85,.1);border-color:rgba(215,80,85,.25)}.v62-section-icon.ally{color:#8ee2c4;background:rgba(101,214,176,.09);border-color:rgba(101,214,176,.22)}.v62-section-head h2{margin:0!important;font:700 16px/1.1 Georgia,serif!important;color:var(--b62-text)!important}.v62-section-head p{margin:3px 0 0;font-size:9.5px;color:var(--b62-muted)}.v62-section-head>b{padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.045);color:#babfc9;font-size:9px;border:1px solid rgba(255,255,255,.07)}
.v62-battle .v57-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.v62-battle .v57-monster-grid.count-1{grid-template-columns:1fr!important}.v62-battle .v57-monster-grid.count-3>.v62-monster-card:nth-child(3){grid-column:1/-1!important}.v62-monster-card.v56-monster-card,.v62-monster-card.v56-monster-card.selected-target{position:relative!important;width:100%!important;min-width:0!important;min-height:136px!important;height:100%!important;display:grid!important;grid-template-columns:62px minmax(0,1fr) 30px!important;gap:11px!important;align-items:center!important;padding:16px 12px 13px!important;border-radius:17px!important;background:radial-gradient(circle at 8% 12%,rgba(215,80,85,.12),transparent 35%),linear-gradient(145deg,rgba(37,28,34,.98),rgba(22,21,29,.98))!important;border:1px solid rgba(215,80,85,.2)!important;box-shadow:0 11px 26px rgba(0,0,0,.25)!important;overflow:hidden!important;cursor:pointer!important;transition:.18s border-color,.18s box-shadow,.18s transform!important}.v62-monster-card:hover{transform:translateY(-1px)!important}.v62-monster-card.v56-monster-card.selected-target{border-color:rgba(242,216,138,.78)!important;background:radial-gradient(circle at 8% 12%,rgba(242,216,138,.13),transparent 37%),linear-gradient(145deg,rgba(45,36,29,.98),rgba(24,23,27,.98))!important;box-shadow:0 0 0 1px rgba(242,216,138,.15),0 0 26px rgba(216,180,97,.11),0 14px 32px rgba(0,0,0,.3)!important}.v62-target-corner{position:absolute;top:0;left:0;min-width:42px;height:18px;padding:0 7px;display:grid;place-items:center;border-radius:0 0 8px 0;background:rgba(0,0,0,.28);color:#8e919b;font-size:7px;font-weight:1000;letter-spacing:.65px}.selected-target .v62-target-corner{background:linear-gradient(135deg,#d5ae54,#f1d687);color:#17130c}.v62-monster-card .v56-monster-avatar{width:58px!important;height:58px!important;min-width:58px!important;border-radius:17px!important;background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.17),rgba(255,255,255,.025) 60%)!important;border:1px solid rgba(255,255,255,.1)!important}.v62-monster-card .v56-monster-avatar span{font-size:34px!important}.v62-monster-card .v56-monster-info{display:grid!important;grid-template-rows:auto auto auto!important;gap:8px!important;min-width:0!important}.v62-monster-card .v56-monster-head{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;gap:6px!important;align-items:center!important}.v62-monster-card .v56-monster-head>small{width:20px!important;height:20px!important;display:grid!important;place-items:center!important;border-radius:7px!important;background:rgba(255,255,255,.06)!important;font-size:8px!important}.v62-monster-card .v56-monster-head h2{margin:0!important;font:700 15px/1.08 Georgia,serif!important;color:var(--b62-text)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v62-threat{font-size:6.5px;font-weight:1000;color:#b78080;letter-spacing:.6px}.v62-monster-card .v56-monster-status-line{min-height:20px!important;margin:0!important}.v62-monster-card .v56-status-list{display:flex!important;gap:4px!important;overflow:hidden!important}.v62-monster-card .v56-status-chip{height:19px!important;min-height:19px!important;padding:0 7px!important;border-radius:999px!important;font-size:7.5px!important;text-transform:uppercase!important}.v62-monster-card .v56-monster-hp-row{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:8px!important;align-items:center!important}.v62-monster-card .v56-monster-hp-row>span{font-size:9px!important;font-weight:900!important}.v62-monster-card .v56-monster-hp-row>span>i{font-style:normal;color:#e97773;font-size:7px}.v62-monster-card .bar.hp{height:7px!important;margin:0!important;background:rgba(0,0,0,.4)!important}.v62-monster-card .bar.hp i{background:linear-gradient(90deg,#b52f3d,#e9756d)!important}.v62-monster-info{grid-column:3!important;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:9px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.09)!important;box-shadow:none!important;font:italic 700 13px/1 Georgia,serif!important}.v62-selected-mark{position:absolute;right:8px;bottom:7px;color:var(--b62-gold);font-size:17px;opacity:0;transition:.18s}.selected-target .v62-selected-mark{opacity:1}.v62-monster-card-modal{cursor:default!important;transform:none!important}
.v62-battle .v57-party-grid,.v62-battle .v57-party-grid.count-1,.v62-battle .v57-party-grid.count-2,.v62-battle .v57-party-grid.count-3,.v62-battle .v57-party-grid.count-4{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.v62-battle .v57-party-grid.count-1{grid-template-columns:1fr!important}.v62-battle .v57-party-grid.count-3>.v62-player-card:nth-child(3){grid-column:1/-1!important}.v62-player-card.v56-player-card{position:relative!important;min-width:0!important;min-height:136px!important;padding:12px!important;display:grid!important;grid-template-rows:auto auto 1fr!important;gap:9px!important;border-radius:17px!important;background:radial-gradient(circle at 8% 8%,rgba(101,214,176,.09),transparent 34%),linear-gradient(145deg,rgba(20,30,33,.98),rgba(16,21,27,.98))!important;border:1px solid rgba(101,214,176,.18)!important;box-shadow:0 11px 26px rgba(0,0,0,.23)!important}.v62-player-card.self{border-color:rgba(242,216,138,.36)!important}.v62-player-card.acted{opacity:.74!important}.v62-player-card.critical{border-color:rgba(215,80,85,.4)!important}.v62-player-card .v57-player-head{grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important}.v62-player-card .v57-player-avatar{width:36px!important;height:36px!important;min-width:36px!important;border-radius:12px!important;font-size:19px!important}.v62-player-card .v57-player-name h3{display:flex!important;gap:5px!important;font:700 13px/1.1 Georgia,serif!important}.v62-player-card .v57-player-name h3 em{font:1000 6.5px Arial!important;font-style:normal!important;color:#17130c;background:var(--b62-gold);padding:3px 4px;border-radius:5px}.v62-player-card .v57-player-name small{font-size:8.5px!important}.v62-player-card .v57-player-action{min-height:23px!important;padding:4px 7px!important;font-size:7.5px!important}.v62-player-card .v57-player-effect{height:18px!important;min-height:18px!important;font-size:7px!important}.v62-player-card .v57-player-bars{gap:6px!important}.v62-player-card .v57-stat-row{grid-template-columns:68px minmax(0,1fr)!important;gap:7px!important}.v62-player-card .v57-stat-row>span{font-size:8.5px!important;font-weight:900!important}.v62-player-card .v57-stat-row>span>i{font-style:normal!important;font-size:7px!important;color:#e67470!important}.v62-player-card .v57-stat-row:nth-child(2)>span>i{color:#6cb8e7!important}.v62-player-card .bar{height:6px!important}
.v62-action-dock{grid-area:actions!important;position:relative!important;min-height:118px!important;display:grid!important;grid-template-columns:minmax(250px,1fr) auto!important;grid-template-areas:"target buttons" "shortcuts shortcuts"!important;gap:10px 18px!important;align-items:center!important;padding:13px 14px 9px!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(20,23,29,.985),rgba(10,12,16,.985))!important;border:1px solid rgba(216,180,97,.25)!important;box-shadow:var(--b62-shadow)!important}.v62-target-readout{grid-area:target;min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr) minmax(120px,190px);gap:11px;align-items:center}.v62-target-reticle{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:rgba(215,80,85,.12);border:1px solid rgba(215,80,85,.24);font-size:26px}.v62-target-copy{min-width:0;display:grid;gap:2px}.v62-target-copy small{font-size:7px;font-weight:1000;letter-spacing:1px;color:#aa8e50}.v62-target-copy b{font:700 16px Georgia,serif;color:var(--b62-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v62-target-copy span{font-size:9px;color:var(--b62-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v62-target-health{display:grid;gap:5px}.v62-target-health>span{text-align:right;font-size:9px;font-weight:900}.v62-target-health .bar{height:7px!important}.v62-action-buttons{grid-area:buttons;display:grid;grid-template-columns:118px 198px 118px;gap:8px}.v62-action-buttons button{min-height:72px!important;padding:8px 10px!important;display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:2px 8px!important;align-items:center!important;text-align:left!important;border-radius:15px!important}.v62-action-buttons button>span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.06);font:900 18px Georgia}.v62-action-buttons button>b{font-size:11px}.v62-action-buttons button>small{font-size:7.5px;color:rgba(255,255,255,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v62-tool-btn{background:linear-gradient(145deg,#242934,#171a21)!important;border:1px solid rgba(255,255,255,.1)!important}.v62-attack-btn{background:linear-gradient(145deg,#c34548,#812c35)!important;border:1px solid rgba(255,139,130,.38)!important;color:#fff6ea!important}.v62-shortcuts{grid-area:shortcuts;display:flex;justify-content:center;gap:16px;color:#686f7a;font-size:7.5px;text-transform:uppercase}.v62-shortcuts span{display:flex;gap:4px;align-items:center}.v62-shortcuts kbd{padding:3px 5px;border-radius:5px;background:#1f232b;border:1px solid rgba(255,255,255,.09);color:#bfc2c7}
.v62-battle-log.v56-battle-log{grid-area:log!important;padding:0!important;border-radius:20px!important;background:linear-gradient(180deg,rgba(18,20,25,.98),rgba(12,14,18,.98))!important;border:1px solid var(--b62-line)!important;overflow:hidden!important}.v62-log-head{min-height:58px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.065)}.v62-log-head>div{display:flex;align-items:center;gap:9px}.v62-log-head>div>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:rgba(216,180,97,.08);color:var(--b62-gold)}.v62-log-head h3{margin:0!important;font:700 14px Georgia,serif!important}.v62-log-head small{font-size:8px;color:var(--b62-muted)}.v62-log-head button{min-height:30px!important;padding:5px 10px!important;background:rgba(255,255,255,.045)!important;box-shadow:none!important;font-size:8px!important}.v62-battle-log .battle-log-scroll{max-height:190px!important;min-height:0!important;padding:10px!important;display:grid!important;gap:5px!important}.v62-battle-log.collapsed .battle-log-scroll{display:none!important}.v62-log-entry{min-height:31px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;align-items:center;padding:6px 9px;border-radius:9px;background:rgba(255,255,255,.025);border-left:2px solid rgba(255,255,255,.1)}.v62-log-entry>span{width:20px;height:20px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.045)}.v62-log-entry>p{margin:0!important;padding:0!important;background:none!important;border:0!important;font-size:10px!important;color:#c7c9ce!important}.v62-log-entry.damage{border-left-color:var(--b62-red)}.v62-log-entry.heal{border-left-color:var(--b62-green)}.v62-log-entry.skill{border-left-color:#9377d9}.v62-log-entry.reward{border-left-color:var(--b62-brass)}.v62-log-empty{padding:18px;text-align:center;color:var(--b62-muted)}
.v62-side-tab.v61-side-tab{z-index:135!important;width:38px!important;min-width:38px!important;min-height:132px!important;background:linear-gradient(180deg,rgba(22,25,31,.88),rgba(10,12,16,.96))!important;border-color:rgba(216,180,97,.22)!important}.v62-drawer.v17-skill-drawer,.v62-drawer.v17-help-drawer{top:94px!important;bottom:18px!important;width:min(410px,38vw)!important;max-height:calc(100dvh - 112px)!important;padding:0!important;border-radius:22px!important;background:linear-gradient(155deg,rgba(21,24,30,.99),rgba(9,11,15,.99))!important;border:1px solid rgba(216,180,97,.2)!important;box-shadow:0 28px 72px rgba(0,0,0,.52)!important;overflow:hidden!important;z-index:190!important}.v62-drawer-head{min-height:84px!important;padding:14px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;border-bottom:1px solid rgba(255,255,255,.07)!important}.v62-drawer-head>div{display:grid!important;gap:3px!important}.v62-drawer-head>div>small{color:#a88c4f!important;font-size:7px!important;font-weight:1000!important;letter-spacing:1.15px!important}.v62-drawer-head>div>b{font:700 18px Georgia,serif!important}.v62-drawer-head>div>span{font-size:9px!important;color:var(--b62-muted)!important}.v62-drawer .v17-skill-scroll,.v62-drawer .v17-help-scroll{height:calc(100% - 84px)!important;max-height:none!important;padding:12px!important;overflow-y:auto!important}.v62-drawer-section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:12px 0 7px!important;padding-bottom:7px!important;border-bottom:1px solid rgba(255,255,255,.055)!important}.v62-drawer-section-title h3{margin:0!important;font:700 12px Georgia,serif!important}.v62-drawer-section-title span{padding:4px 7px;border-radius:999px;background:rgba(216,180,97,.08);color:#cbb572;font-size:8px}.v62-drawer .v59-skill-slot-grid{grid-template-columns:1fr!important;gap:7px!important}.v62-skill-slot.v59-skill-slot{grid-template-columns:minmax(0,1fr) 40px!important;min-height:78px!important}.v62-skill-slot .v59-skill-slot-main{min-height:78px!important;padding:9px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:3px 9px!important;border-radius:14px!important}.v62-skill-slot .v59-skill-slot-main>span{grid-row:1/3;width:40px!important;height:40px!important;margin:0!important}.v62-skill-slot .v59-skill-slot-main>em{grid-column:3;grid-row:1/3;font-style:normal;font-size:6px;font-weight:1000;color:#80cfb3;padding:4px;border-radius:6px;background:rgba(101,214,176,.07)}.v62-skill-slot .v59-skill-info{width:40px!important;min-width:40px!important;min-height:78px!important;border-radius:14px!important}.v62-drawer .v59-potion-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important;padding:0!important}.v62-potion-card.v59-potion-card{min-width:0!important;max-width:none!important;width:100%!important;min-height:66px!important;flex:auto!important;border-radius:13px!important}.v62-potion-card.mana.v59-potion-card{border-color:rgba(114,184,219,.35)!important}.v62-overlay.v58-overlay{z-index:250!important;background:rgba(4,6,9,.76)!important;backdrop-filter:blur(10px)!important}.v62-overlay-card.v58-overlay-card{width:min(560px,96vw)!important;background:linear-gradient(145deg,#171b22,#0d1015)!important;border-color:rgba(216,180,97,.22)!important}
@media(max-width:1080px){.battle-screen.v62-battle{grid-template-columns:minmax(0,1fr) minmax(330px,.92fr)!important;width:calc(100vw - 24px)!important}.v62-action-dock{grid-template-columns:1fr!important;grid-template-areas:"target" "buttons" "shortcuts"!important}.v62-action-buttons{grid-template-columns:1fr 1.55fr 1fr}}
@media(max-width:900px){.v62-battle-top{min-height:68px!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important;padding:7px 9px!important}.v62-battle-emblem{width:36px;height:36px;border-radius:11px;font-size:18px}.v62-eyebrow{font-size:6.5px;letter-spacing:.8px}.v62-battle-title h1{font-size:16px!important}.v62-battle-title p{font-size:8px!important;max-width:52vw!important}.v62-phase-pill{min-height:27px;padding:0 8px;font-size:7px}.v62-header-status .net-pill,.v62-side-tab.v61-side-tab{display:none!important}.battle-screen.v62-battle{width:100%!important;max-width:100%!important;margin:0!important;padding:8px 8px 22px!important;grid-template-columns:1fr!important;grid-template-areas:"timer" "monsters" "actions" "players" "log"!important;gap:9px!important}.v62-turn-panel.v56-timer{min-height:78px!important;grid-template-columns:46px minmax(0,1fr) auto!important;grid-template-rows:1fr 6px!important;padding:10px!important;gap:8px 10px!important;border-radius:16px!important}.v62-turn-orb{width:42px;height:42px}.v62-turn-panel .turn-head b{font-size:15px!important}.v62-turn-panel .turn-head p{font-size:8.5px!important}.v62-turn-meta small{display:none}.v62-turn-panel #turn-time{min-width:74px!important;font-size:16px!important}.v62-arena-panel,.v62-party-panel{padding:10px!important;border-radius:16px!important}.v62-section-head{margin-bottom:8px;padding-bottom:8px}.v62-section-head h2{font-size:13px!important}.v62-section-head p{font-size:7.5px}.v62-battle .v57-monster-grid,.v62-battle .v57-monster-grid.count-1,.v62-battle .v57-monster-grid.count-2,.v62-battle .v57-monster-grid.count-3,.v62-battle .v57-monster-grid.count-4{grid-template-columns:1fr!important;gap:7px!important}.v62-battle .v57-monster-grid.count-3>.v62-monster-card:nth-child(3){grid-column:auto!important}.v62-monster-card.v56-monster-card,.v62-monster-card.v56-monster-card.selected-target{min-height:96px!important;grid-template-columns:48px minmax(0,1fr) 28px!important;gap:8px!important;padding:12px 9px 9px!important;border-radius:14px!important}.v62-monster-card .v56-monster-avatar{width:44px!important;height:44px!important;min-width:44px!important;border-radius:13px!important}.v62-monster-card .v56-monster-avatar span{font-size:27px!important}.v62-monster-card .v56-monster-info{gap:5px!important}.v62-monster-card .v56-monster-head h2{font-size:12px!important}.v62-monster-card .v56-monster-hp-row{grid-template-columns:62px minmax(0,1fr)!important}.v62-action-dock{position:sticky!important;bottom:6px!important;z-index:80!important;min-height:0!important;padding:9px!important;grid-template-columns:1fr!important;grid-template-areas:"target" "buttons"!important;gap:8px!important;border-radius:17px!important;background:rgba(12,14,18,.965)!important;backdrop-filter:blur(18px)!important}.v62-target-readout{grid-template-columns:37px minmax(0,1fr) 108px;gap:8px}.v62-target-reticle{width:36px;height:36px;border-radius:11px;font-size:21px}.v62-target-copy b{font-size:12px}.v62-target-copy span{font-size:7.5px}.v62-action-buttons{grid-template-columns:1fr 1.45fr 1fr;gap:6px}.v62-action-buttons button{min-height:54px!important;padding:6px!important;grid-template-columns:25px minmax(0,1fr)!important;gap:1px 5px!important;border-radius:12px!important}.v62-action-buttons button>span{width:24px;height:24px;font-size:14px}.v62-action-buttons button>b{font-size:9px}.v62-action-buttons button>small{font-size:6.5px}.v62-shortcuts{display:none}.v62-battle .v57-party-grid,.v62-battle .v57-party-grid.count-1,.v62-battle .v57-party-grid.count-2,.v62-battle .v57-party-grid.count-3,.v62-battle .v57-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v62-battle .v57-party-grid.count-1{grid-template-columns:1fr!important}.v62-player-card.v56-player-card{min-height:112px!important;padding:9px!important;gap:6px!important}.v62-player-card .v57-player-head{grid-template-columns:30px minmax(0,1fr)!important}.v62-player-card .v57-player-action{grid-column:1/-1!important;justify-self:start!important}.v62-player-card .v57-stat-row{grid-template-columns:54px minmax(0,1fr)!important}.v62-battle-log .battle-log-scroll{max-height:150px!important}.v62-drawer.v17-skill-drawer,.v62-drawer.v17-help-drawer{top:72px!important;bottom:8px!important;width:min(92vw,390px)!important;max-height:calc(100dvh - 80px)!important;border-radius:18px!important}}
@media(max-width:520px){.v62-battle .v57-party-grid,.v62-battle .v57-party-grid.count-1,.v62-battle .v57-party-grid.count-2,.v62-battle .v57-party-grid.count-3,.v62-battle .v57-party-grid.count-4{grid-template-columns:1fr!important}.v62-battle .v57-party-grid.count-3>.v62-player-card:nth-child(3){grid-column:auto!important}.v62-player-card.v56-player-card{min-height:100px!important}.v62-player-card .v57-player-head{grid-template-columns:32px minmax(0,1fr) auto!important}.v62-player-card .v57-player-action{grid-column:auto!important}.v62-target-readout{grid-template-columns:35px minmax(0,1fr)}.v62-target-health{display:none}.v62-action-buttons button{grid-template-columns:1fr!important;grid-template-rows:23px auto!important;justify-items:center!important;text-align:center!important;gap:2px!important}.v62-action-buttons button>span{grid-row:1!important;width:22px;height:22px}.v62-action-buttons button>small{display:none}.v62-drawer .v59-potion-strip{grid-template-columns:1fr!important}}
@media(max-width:370px){.v62-battle-title p{display:none!important}.v62-threat{display:none}.v62-monster-card .v56-monster-head{grid-template-columns:20px minmax(0,1fr)!important}.v62-section-head p{display:none}}
@media(prefers-reduced-motion:reduce){.v62-monster-card,.v62-turn-panel #turn-time,.v62-drawer{animation:none!important;transition:none!important}}

/* Выдвижные панели: помощь слева направо, умения справа налево, маленькая скролл-панель. */
.v33-skill-drawer.v16-skill-drawer,.v33-help-drawer.v17-help-drawer{top:82px!important;bottom:auto!important;height:auto!important;max-height:54vh!important;width:min(340px,30vw)!important;min-width:238px!important;padding:14px!important;border-radius:24px!important;overflow:hidden!important;grid-template-rows:auto minmax(0,1fr)!important;transition:transform .26s cubic-bezier(.2,.8,.2,1),opacity .18s ease!important;opacity:.98!important;}
.v33-skill-drawer.v16-skill-drawer{right:14px!important;left:auto!important;transform:translateX(calc(100% + 30px))!important;}
.v33-skill-drawer.v16-skill-drawer.open{transform:translateX(0)!important;}
.v33-help-drawer.v17-help-drawer{left:14px!important;right:auto!important;transform:translateX(calc(-100% - 30px))!important;}
.v33-help-drawer.v17-help-drawer.open{transform:translateX(0)!important;}
.v33-skill-drawer .v17-skill-scroll,.v33-skill-drawer .v16-skill-scroll,.v33-help-drawer .v17-help-scroll{max-height:calc(54vh - 78px)!important;overflow:auto!important;padding:9px 4px 10px 0!important;}
.v33-skill-drawer .v17-drawer-head b,.v33-help-drawer .v17-drawer-head b{font-size:20px!important;}
.v33-help-drawer .v17-help-scroll{display:grid!important;align-content:start!important;justify-items:center!important;}
.v33-help-drawer .v17-help-friend{width:96%!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.03))!important;border:1px solid rgba(255,255,255,.12)!important;}
.v33-help-drawer .v17-help-friend button{border-radius:12px!important;}
.v33-ability-main{border-radius:15px!important;}
@media(max-width:620px){
  .v33-skill-drawer.v16-skill-drawer,.v33-help-drawer.v17-help-drawer{top:76px!important;width:36vw!important;min-width:168px!important;max-width:210px!important;max-height:45vh!important;padding:9px!important;border-radius:20px!important;}
  .v33-skill-drawer .v17-skill-scroll,.v33-skill-drawer .v16-skill-scroll,.v33-help-drawer .v17-help-scroll{max-height:calc(45vh - 58px)!important;}
  .v33-skill-drawer .v17-drawer-head small,.v33-help-drawer .v17-drawer-head small,.v33-drawer-mini-note{display:none!important;}
  .v33-skill-drawer .v17-drawer-head b,.v33-help-drawer .v17-drawer-head b{font-size:14px!important;}
  .v33-ability-main{display:grid!important;place-items:center!important;grid-template-columns:1fr!important;min-height:48px!important;padding:6px!important;}
  .v33-ability-main>div{display:none!important;}
  .v33-ability-main>span{width:38px!important;height:38px!important;border-radius:13px!important;font-size:22px!important;}
  .v33-drawer-ability{padding:4px!important;}
  .v33-ability-targets{margin-top:5px!important;}
  .v33-ability-targets button{font-size:9px!important;min-height:28px!important;padding:4px!important;}
}

/* Красивое описание статусов. */
.status-help-card.v33-status-help{display:grid;gap:14px;padding:8px 4px 2px;}
.v33-status-pill{justify-self:start;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 11px;font-weight:900;font-size:12px;color:#ffe8a7;background:linear-gradient(135deg,rgba(255,209,102,.22),rgba(239,71,111,.14));border:1px solid rgba(255,209,102,.35);box-shadow:0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.16);}
.status-help-card.v33-status-help p{font-size:15px;line-height:1.45;color:var(--text);background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);padding:12px;border-radius:16px;}

/* Локация: компактные карточки монстров без наложения статусов. */
.v33-location-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(280px,420px))!important;gap:12px!important;align-items:stretch!important;justify-content:start!important;}
.v33-location-monster{height:112px!important;min-height:112px!important;display:grid!important;grid-template-columns:74px minmax(0,1fr) 54px!important;grid-template-rows:auto auto auto!important;gap:5px 9px!important;padding:12px 62px 10px 12px!important;border-radius:22px!important;overflow:hidden!important;position:relative!important;}
.v33-location-monster .monster-help{position:absolute!important;right:10px!important;top:8px!important;width:30px!important;height:30px!important;min-height:30px!important;border-radius:12px!important;padding:0!important;z-index:2!important;}
.v33-location-monster .v24-location-attack,.v33-location-monster .v20-location-attack{position:absolute!important;right:10px!important;bottom:12px!important;width:48px!important;height:56px!important;min-height:56px!important;border-radius:16px!important;padding:0!important;font-size:22px!important;}
.v33-location-monster .location-monster-top{grid-column:1/3!important;display:grid!important;grid-template-columns:22px 52px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-width:0!important;}
.v33-location-monster .location-mob-index{width:22px!important;height:22px!important;font-size:10px!important;border-radius:9px!important;}
.v33-location-monster .monster-portrait{width:52px!important;height:52px!important;min-width:52px!important;border-radius:15px!important;}
.v33-location-monster .monster-portrait span{font-size:32px!important;}
.v33-location-monster .location-monster-name{min-width:0!important;display:grid!important;gap:3px!important;}
.v33-location-monster .location-monster-name h3{font-size:17px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;}
.v33-location-monster .v20-monster-flags{display:flex!important;gap:4px!important;flex-wrap:wrap!important;overflow:visible!important;max-width:100%!important;}
.v33-location-monster .flag{height:18px!important;line-height:18px!important;font-size:9px!important;border-radius:999px!important;padding:0 7px!important;max-width:58px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.v33-location-monster>.bar.hp{grid-column:2/3!important;width:100%!important;height:7px!important;margin:0!important;align-self:center!important;}
.v33-location-monster .monster-stats{grid-column:2/3!important;display:flex!important;gap:10px!important;align-items:center!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;}
@media(max-width:760px){
  .v33-location-monster-grid{grid-template-columns:1fr!important;gap:10px!important;}
  .v33-location-monster{height:118px!important;min-height:118px!important;padding:12px 68px 10px 12px!important;grid-template-columns:68px minmax(0,1fr) 52px!important;}
  .v33-location-monster .location-monster-top{grid-template-columns:24px 58px minmax(0,1fr)!important;gap:8px!important;}
  .v33-location-monster .monster-portrait{width:58px!important;height:58px!important;min-width:58px!important;}
  .v33-location-monster .monster-portrait span{font-size:36px!important;}
  .v33-location-monster .location-monster-name h3{font-size:21px!important;}
  .v33-location-monster .flag{height:20px!important;line-height:20px!important;font-size:10px!important;max-width:70px!important;}
  .v33-location-monster>.bar.hp{height:8px!important;}
  .v33-location-monster .monster-stats{font-size:14px!important;gap:13px!important;}
  .v33-location-monster .v24-location-attack,.v33-location-monster .v20-location-attack{width:56px!important;height:68px!important;min-height:68px!important;font-size:25px!important;}
}

/* Лут, яма и предметы. */
.v33-loot-pile{background:linear-gradient(145deg,rgba(31,34,52,.92),rgba(17,18,28,.96))!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:24px!important;box-shadow:0 18px 42px rgba(0,0,0,.22)!important;}
.v33-loot-pile .loot-pile-head{align-items:center!important;border-bottom:1px solid rgba(255,255,255,.08)!important;margin-bottom:12px!important;padding-bottom:10px!important;}
.v33-loot-pile .loot-pile-head h2{font-size:24px!important;}
.v33-loot-pile .loot-pile-scroll{display:grid!important;gap:10px!important;max-height:360px!important;overflow:auto!important;padding-right:4px!important;}
.v33-item-card{display:grid!important;grid-template-columns:72px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;min-height:96px!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025))!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:0 10px 26px rgba(0,0,0,.18)!important;}
.v33-item-card .item-icon-wrap{width:58px!important;height:58px!important;border-radius:17px!important;}
.v33-item-card .item-emblem{font-size:30px!important;}
.v33-item-card .item-type-label{font-size:10px!important;color:var(--muted)!important;}
.v33-item-card .item-body h3{font-size:17px!important;margin:0 0 3px!important;}
.v33-item-card .item-description{font-size:13px!important;line-height:1.32!important;color:#d7d9e8!important;}
.v33-item-card .item-stats-line{font-size:11px!important;color:#ffe7a4!important;}
.v33-item-card .item-weight{position:static!important;align-self:start!important;border-radius:999px!important;padding:5px 8px!important;font-size:11px!important;background:rgba(255,209,102,.12)!important;color:#ffe8a4!important;}
.v33-item-card .item-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important;}
.v33-item-card .item-actions button{min-height:32px!important;border-radius:12px!important;font-size:12px!important;padding:6px 10px!important;}
@media(max-width:620px){.v33-item-card{grid-template-columns:58px minmax(0,1fr)!important;min-height:88px!important;padding:10px!important}.v33-item-card .item-weight{grid-column:1/3!important;justify-self:start!important}.v33-item-card .item-description{font-size:12px!important}.v33-item-card .item-actions button{flex:1 1 45%!important}}

/* Профиль и экипировка: квадратные слоты. */
.v33-equip-slot{aspect-ratio:1/1!important;min-height:124px!important;border-radius:22px!important;display:grid!important;grid-template-rows:auto 1fr auto!important;place-items:center!important;text-align:center!important;padding:11px!important;position:relative!important;overflow:hidden!important;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025))!important;border:1px solid rgba(255,255,255,.12)!important;}
.v33-equip-slot.filled{border-color:rgba(255,209,102,.36)!important;box-shadow:inset 0 0 0 1px rgba(255,209,102,.1),0 14px 30px rgba(0,0,0,.2)!important;}
.v33-slot-name{font-size:12px!important;font-weight:900!important;color:#bfc2d5!important;text-transform:none!important;}
.v33-slot-icon{font-size:38px!important;width:58px!important;height:58px!important;border-radius:18px!important;display:grid!important;place-items:center!important;background:rgba(0,0,0,.18)!important;}
.v33-slot-item{font-size:12px!important;line-height:1.12!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#fff!important;font-weight:800!important;}
.v33-slot-grid,.v27-slot-grid{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;}
.v33-equip-slot.rarity-Редкий{border-color:rgba(89,220,255,.45)!important}.v33-equip-slot.rarity-Эпический{border-color:rgba(183,105,255,.55)!important}.v33-equip-slot.rarity-Легендарный{border-color:rgba(255,209,102,.62)!important}
@media(max-width:620px){.v33-slot-grid,.v27-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v33-equip-slot{min-height:116px!important;border-radius:20px!important}.v33-slot-icon{font-size:34px!important;width:54px!important;height:54px!important}}

/* Друзья, обмен, уведомления. */
.friends-layout.v9-friends{display:grid!important;grid-template-columns:1.1fr .9fr!important;gap:14px!important;align-items:start!important;}
.friends-layout .trade-panel{grid-column:1/-1!important;}
.friend-row,.request-card,.friend-pill{border-radius:18px!important;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.03))!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:0 10px 24px rgba(0,0,0,.16)!important;}
.friend-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding:12px!important;margin:8px 0!important;}
.friend-row>span{font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.friend-row>div{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important;}
.friend-row button,.friend-pill button{border-radius:12px!important;min-height:34px!important;}
.timed-notice,.toast{border-radius:18px!important;background:linear-gradient(145deg,rgba(32,35,54,.98),rgba(18,19,29,.98))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 18px 42px rgba(0,0,0,.36)!important;}
.trade-window.v9-trade{border-radius:24px!important;background:linear-gradient(145deg,rgba(31,34,52,.96),rgba(18,19,30,.98))!important;border:1px solid rgba(255,255,255,.12)!important;}
.trade-grid{gap:14px!important;}
.trade-side{border-radius:20px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.1)!important;}
.trade-offer-slot{border-radius:18px!important;background:rgba(0,0,0,.16)!important;border:1px dashed rgba(255,255,255,.16)!important;}
.trade-offer-slot.filled{border-style:solid!important;border-color:rgba(255,209,102,.28)!important;}
@media(max-width:720px){.friends-layout.v9-friends{grid-template-columns:1fr!important}.friend-row{grid-template-columns:1fr!important}.friend-row>div{justify-content:stretch!important}.friend-row button{flex:1 1 44%!important}.trade-grid{grid-template-columns:1fr!important}}

/* Переход между локациями. */
.v33-travel-card{max-width:620px;margin:80px auto 0;padding:28px;border-radius:28px;background:linear-gradient(145deg,rgba(31,34,52,.95),rgba(17,18,28,.98));border:1px solid rgba(255,255,255,.12);text-align:center;box-shadow:0 28px 80px rgba(0,0,0,.28);}
.v33-travel-card .travel-icon{font-size:52px;margin-bottom:10px;filter:drop-shadow(0 10px 22px rgba(255,209,102,.22));}
.v33-travel-card h2{font-size:30px;margin:0 0 8px}.v33-travel-card p{color:var(--muted);line-height:1.45}.v33-travel-card .bar.travel{height:10px;margin:18px auto 10px;max-width:420px}.v33-travel-card b{font-size:24px;color:#ffe66d;}
@media(max-width:390px){
  .v33-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(1){grid-column:1/2!important}.v33-battle .v28-monster-grid.count-2>.v28-monster-target:nth-child(2){grid-column:2/3!important}
  .v33-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(1){grid-column:1/2!important}.v33-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(2){grid-column:2/3!important}.v33-battle .v28-monster-grid.count-3>.v28-monster-target:nth-child(3){grid-column:1/3!important}
  .v33-battle .v28-monster-grid.count-4>.v28-monster-target:nth-child(1){grid-column:1/2!important}.v33-battle .v28-monster-grid.count-4>.v28-monster-target:nth-child(2){grid-column:2/3!important}.v33-battle .v28-monster-grid.count-4>.v28-monster-target:nth-child(3){grid-column:1/2!important}.v33-battle .v28-monster-grid.count-4>.v28-monster-target:nth-child(4){grid-column:2/3!important}
  .v33-battle .battle-party-cards.count-1>.battle-player{grid-column:1/3!important}.v33-battle .battle-party-cards.count-2>.battle-player:nth-child(1){grid-column:1/2!important}.v33-battle .battle-party-cards.count-2>.battle-player:nth-child(2){grid-column:2/3!important}.v33-battle .battle-party-cards.count-3>.battle-player:nth-child(1){grid-column:1/2!important}.v33-battle .battle-party-cards.count-3>.battle-player:nth-child(2){grid-column:2/3!important}.v33-battle .battle-party-cards.count-3>.battle-player:nth-child(3){grid-column:1/3!important}
}

/* ===== v34: стабилизация боя, панелей, профиля, предметов и друзей ===== */
html{scroll-behavior:auto!important;}
.bar i{transition:width .38s cubic-bezier(.22,.8,.25,1)!important;}

/* БОЙ: возвращаем понятную схему, но фиксируем размеры, чтобы всё не прыгало */
.battle-screen.v34-battle{
  display:grid!important;
  grid-template-columns:minmax(360px,1fr) minmax(360px,1fr)!important;
  grid-template-areas:"timer timer" "monsters players" "log log"!important;
  gap:14px!important;
  width:min(1240px,calc(100vw - 28px))!important;
  max-width:1240px!important;
  margin:0 auto!important;
  padding:14px!important;
  align-items:start!important;
  overflow:visible!important;
}
.v34-battle .battle-timer{grid-area:timer!important;min-height:70px!important;margin:0!important;}
.v34-battle .battle-timer .turn-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-width:0!important;}
.v34-battle .battle-timer #turn-title{font-size:19px!important;white-space:nowrap!important;}
.v34-battle .battle-timer #turn-hint{max-width:72vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:3px 0 0!important;}
.v34-battle .battle-timer #turn-time{font-size:24px!important;min-width:86px!important;text-align:right!important;color:#ffe878!important;}
.v34-battle .v17-monsters-panel{grid-area:monsters!important;margin:0!important;min-width:0!important;min-height:252px!important;align-self:start!important;}
.v34-battle .party-panel{grid-area:players!important;margin:0!important;min-width:0!important;min-height:252px!important;align-self:start!important;}
.v34-battle .battle-actions{display:none!important;}
.v34-battle .battle-log{grid-area:log!important;margin:0!important;min-height:154px!important;max-height:260px!important;overflow:hidden!important;}
.v34-battle .battle-log-scroll{max-height:198px!important;overflow:auto!important;}
.v34-battle .v33-hidden-title,.v34-battle .v17-section-title{display:none!important;}

.v34-battle .v34-monster-grid,
.v34-battle .v28-monster-grid,
.v34-battle .v27-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,112px)!important;
  grid-auto-rows:112px!important;
  gap:10px!important;
  min-height:234px!important;
  align-items:stretch!important;
}
.v34-battle .v34-monster-grid.count-1>.v34-monster-target{grid-column:1/3!important;grid-row:1/3!important;min-height:234px!important;}
.v34-battle .v34-monster-grid.count-2>.v34-monster-target:nth-child(1){grid-column:1/2!important;grid-row:1/3!important;}
.v34-battle .v34-monster-grid.count-2>.v34-monster-target:nth-child(2){grid-column:2/3!important;grid-row:1/3!important;}
.v34-battle .v34-monster-grid.count-3>.v34-monster-target:nth-child(1){grid-column:1/2!important;grid-row:1/2!important;}
.v34-battle .v34-monster-grid.count-3>.v34-monster-target:nth-child(2){grid-column:2/3!important;grid-row:1/2!important;}
.v34-battle .v34-monster-grid.count-3>.v34-monster-target:nth-child(3){grid-column:1/3!important;grid-row:2/3!important;}
.v34-battle .v34-monster-grid.count-4>.v34-monster-target:nth-child(1){grid-column:1/2!important;grid-row:1/2!important;}
.v34-battle .v34-monster-grid.count-4>.v34-monster-target:nth-child(2){grid-column:2/3!important;grid-row:1/2!important;}
.v34-battle .v34-monster-grid.count-4>.v34-monster-target:nth-child(3){grid-column:1/2!important;grid-row:2/3!important;}
.v34-battle .v34-monster-grid.count-4>.v34-monster-target:nth-child(4){grid-column:2/3!important;grid-row:2/3!important;}

.v34-battle .v34-monster-target{
  position:relative!important;
  display:grid!important;
  grid-template-columns:70px minmax(0,1fr) 58px!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  padding:14px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,rgba(70,45,73,.88),rgba(27,29,42,.96))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.20), inset 0 0 0 1px rgba(255,255,255,.025)!important;
}
.v34-battle .v34-monster-target.selected-target{border-color:rgba(255,209,102,.92)!important;box-shadow:0 0 0 2px rgba(255,209,102,.18),0 18px 40px rgba(0,0,0,.28)!important;}
.v34-battle .v34-monster-target .monster-portrait.battle{width:64px!important;height:64px!important;min-width:64px!important;border-radius:18px!important;margin:0!important;align-self:center!important;}
.v34-battle .v34-monster-target .monster-portrait.battle span{font-size:40px!important;}
.v34-battle .v34-monster-target .monster-battle-info{display:grid!important;grid-template-rows:auto auto 9px auto!important;gap:6px!important;min-width:0!important;align-content:center!important;}
.v34-battle .v34-monster-target .v21-monster-title-line{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;}
.v34-battle .v34-monster-target .v21-monster-title-line h2{font-size:18px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;text-align:left!important;}
.v34-battle .v34-monster-target .v17-mob-index{width:24px!important;height:24px!important;display:grid!important;place-items:center!important;font-size:11px!important;border-radius:9px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;line-height:1!important;}
.v34-battle .v34-monster-target .v23-monster-badges{display:flex!important;gap:5px!important;min-height:20px!important;align-items:center!important;overflow:hidden!important;flex-wrap:nowrap!important;}
.v34-status-chip,.v34-battle .v23-battle-badge,.v34-location-monster .flag{display:inline-grid!important;place-items:center!important;height:20px!important;max-width:64px!important;padding:0 8px!important;border-radius:999px!important;font-size:10px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:none!important;cursor:pointer!important;}
.v34-status-chip.pack,.v34-location-monster .flag.pack{background:rgba(6,214,160,.18)!important;color:#90ffd9!important;border:1px solid rgba(6,214,160,.25)!important;}
.v34-status-chip.aggro,.v34-location-monster .flag.aggro{background:rgba(239,71,111,.18)!important;color:#ffb3c5!important;border:1px solid rgba(239,71,111,.30)!important;}
.v34-status-chip.target{background:rgba(255,209,102,.18)!important;color:#ffe28a!important;border:1px solid rgba(255,209,102,.35)!important;}
.v34-battle .v34-monster-target .bar.hp{width:100%!important;height:9px!important;margin:0!important;}
.v34-battle .v34-monster-target .v21-monster-stats{display:flex!important;justify-content:flex-start!important;gap:9px!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;min-width:0!important;}
.v34-battle .v17-target-actions{position:static!important;grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;z-index:3!important;}
.v34-battle .v17-sword-btn{width:54px!important;height:54px!important;min-height:54px!important;border-radius:18px!important;font-size:25px!important;padding:0!important;display:grid!important;place-items:center!important;}
.v34-battle .v34-monster-grid.count-1>.v34-monster-target .monster-portrait.battle{width:86px!important;height:86px!important;min-width:86px!important;border-radius:24px!important;}
.v34-battle .v34-monster-grid.count-1>.v34-monster-target .monster-portrait.battle span{font-size:54px!important;}
.v34-battle .v34-monster-grid.count-1>.v34-monster-target .v21-monster-title-line h2{font-size:24px!important;}
.v34-battle .v34-monster-grid.count-1>.v34-monster-target{grid-template-columns:98px minmax(0,1fr) 68px!important;padding:22px!important;}
.v34-battle .v34-monster-grid.count-1>.v34-monster-target .v17-sword-btn{width:64px!important;height:64px!important;font-size:30px!important;}

.v34-battle .v34-party-grid,
.v34-battle .battle-party-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important;min-height:234px!important;}
.v34-battle .v34-party-grid.count-1>.v34-player{grid-column:1/3!important;}
.v34-battle .v34-party-grid.count-2>.v34-player{min-height:234px!important;}
.v34-battle .v34-party-grid.count-3>.v34-player:nth-child(3){grid-column:1/3!important;}
.v34-battle .v34-player{min-height:112px!important;height:100%!important;padding:13px!important;border-radius:22px!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:8px!important;background:linear-gradient(145deg,rgba(18,55,70,.84),rgba(22,25,39,.97))!important;}
.v34-battle .v34-player .player-card-head{grid-template-columns:48px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;}
.v34-battle .v34-player .player-avatar{width:46px!important;height:46px!important;min-width:46px!important;border-radius:16px!important;font-size:26px!important;}
.v34-battle .v34-player .v25-player-title h3{font-size:16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-battle .v34-player .v25-player-status{width:100%!important;text-align:left!important;justify-content:flex-start!important;border-radius:14px!important;min-height:30px!important;}

/* Боковые панели боя */
.v34-skill-drawer.v16-skill-drawer,.v34-help-drawer.v17-help-drawer{
  position:fixed!important;
  top:86px!important;
  bottom:auto!important;
  z-index:95!important;
  width:min(320px,28vw)!important;
  min-width:230px!important;
  max-height:58vh!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  padding:14px!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,rgba(29,32,48,.98),rgba(16,18,30,.98))!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 22px 60px rgba(0,0,0,.48)!important;
  overflow:hidden!important;
  opacity:.99!important;
  transition:transform .28s cubic-bezier(.18,.82,.22,1),opacity .16s ease!important;
}
.v34-help-drawer.v17-help-drawer{left:12px!important;right:auto!important;transform:translateX(calc(-100% - 22px))!important;}
.v34-help-drawer.v17-help-drawer.open{transform:translateX(0)!important;}
.v34-skill-drawer.v16-skill-drawer{right:12px!important;left:auto!important;transform:translateX(calc(100% + 22px))!important;}
.v34-skill-drawer.v16-skill-drawer.open{transform:translateX(0)!important;}
.v34-skill-drawer .v17-drawer-head,.v34-help-drawer .v17-drawer-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding-bottom:10px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;}
.v34-skill-drawer .v17-drawer-head b,.v34-help-drawer .v17-drawer-head b{font-size:18px!important;}
.v34-skill-drawer .v17-drawer-head small,.v34-help-drawer .v17-drawer-head small{display:block!important;font-size:11px!important;color:var(--muted)!important;}
.v34-skill-drawer .ghost.small,.v34-help-drawer .ghost.small{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:14px!important;}
.v34-skill-drawer .v17-skill-scroll,.v34-skill-drawer .v16-skill-scroll,.v34-help-drawer .v17-help-scroll{max-height:calc(58vh - 76px)!important;overflow:auto!important;padding:10px 4px 10px 0!important;}
.v34-skill-drawer h3{font-size:13px!important;margin:9px 0 7px!important;color:#ffe48b!important;}
.v34-ability-main{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:9px!important;width:100%!important;text-align:left!important;padding:9px!important;border-radius:16px!important;background:rgba(255,255,255,.055)!important;}
.v34-ability-main span{width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:13px!important;background:rgba(255,255,255,.09)!important;font-size:24px!important;}
.v34-ability-main b{display:block!important;font-size:13px!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-ability-main small{font-size:10.5px!important;color:#ffd166!important;}
.v32-ability-targets,.v17-ability-targets{border-radius:14px!important;margin-top:6px!important;background:rgba(0,0,0,.16)!important;border:1px solid rgba(255,255,255,.07)!important;padding:7px!important;display:grid!important;gap:6px!important;}
.v32-ability-targets button,.v17-ability-targets button{font-size:11px!important;min-height:32px!important;border-radius:12px!important;padding:7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-help-drawer .v17-help-scroll{display:grid!important;justify-items:center!important;align-content:start!important;gap:8px!important;}
.v34-help-friend{width:100%!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;align-items:center!important;text-align:center!important;padding:10px!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.03))!important;border:1px solid rgba(255,255,255,.11)!important;}
.v34-help-friend span{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-help-friend button{width:100%!important;min-height:34px!important;border-radius:12px!important;font-size:12px!important;}
.v17-drawer-fade{background:rgba(0,0,0,.18)!important;z-index:80!important;}

/* Красивое окно описания статусов */
.status-help-card.v34-status-help{display:grid!important;gap:14px!important;padding:8px 2px 2px!important;}
.v34-status-pill{justify-self:start!important;display:inline-grid!important;place-items:center!important;min-height:30px!important;padding:0 14px!important;border-radius:999px!important;font-weight:900!important;text-transform:lowercase!important;letter-spacing:.02em!important;}
.v34-status-help.pack .v34-status-pill{background:rgba(6,214,160,.17)!important;color:#9affda!important;border:1px solid rgba(6,214,160,.28)!important;}
.v34-status-help.aggro .v34-status-pill{background:rgba(239,71,111,.18)!important;color:#ffc0ce!important;border:1px solid rgba(239,71,111,.3)!important;}
.v34-status-help.target .v34-status-pill{background:rgba(255,209,102,.18)!important;color:#ffe28a!important;border:1px solid rgba(255,209,102,.35)!important;}
.v34-status-help.help .v34-status-pill{background:rgba(17,138,178,.18)!important;color:#aeeaff!important;border:1px solid rgba(17,138,178,.3)!important;}
.status-help-card.v34-status-help p{margin:0!important;line-height:1.55!important;background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.025))!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:18px!important;padding:14px!important;}

/* Монстры локации: аккуратная фиксированная карточка */
.v34-location-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(260px,1fr))!important;gap:12px!important;align-items:stretch!important;max-width:920px!important;}
.v34-location-monster{display:grid!important;grid-template-columns:64px minmax(0,1fr) 48px!important;grid-template-rows:auto 8px auto!important;grid-template-areas:"top top help" "bar bar attack" "stats stats attack"!important;min-height:108px!important;padding:12px!important;text-align:left!important;border-radius:20px!important;overflow:hidden!important;background:linear-gradient(145deg,rgba(68,43,78,.92),rgba(26,28,42,.96))!important;border:1px solid rgba(239,71,111,.45)!important;}
.v34-location-monster .monster-help{grid-area:help!important;position:static!important;justify-self:end!important;align-self:start!important;width:32px!important;height:32px!important;border-radius:12px!important;font-size:13px!important;}
.v34-location-monster .location-monster-top{grid-area:top!important;display:grid!important;grid-template-columns:26px 52px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-width:0!important;}
.v34-location-monster .location-mob-index{width:24px!important;height:24px!important;border-radius:9px!important;display:grid!important;place-items:center!important;background:rgba(255,209,102,.24)!important;color:#ffe28a!important;font-weight:900!important;}
.v34-location-monster .monster-portrait{width:52px!important;height:52px!important;min-width:52px!important;margin:0!important;border-radius:15px!important;}
.v34-location-monster .monster-portrait span{font-size:34px!important;}
.v34-location-monster .location-monster-name h3{font-size:18px!important;line-height:1.05!important;margin:0 0 5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-location-monster .v20-monster-flags{display:flex!important;gap:5px!important;min-height:20px!important;overflow:hidden!important;}
.v34-location-monster>.bar.hp{grid-area:bar!important;height:8px!important;margin:4px 58px 0 76px!important;align-self:center!important;}
.v34-location-monster .monster-stats{grid-area:stats!important;display:flex!important;justify-content:flex-start!important;gap:10px!important;margin:5px 58px 0 76px!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;}
.v34-location-monster .v24-location-attack{grid-area:attack!important;position:static!important;justify-self:end!important;align-self:stretch!important;width:48px!important;min-width:48px!important;height:auto!important;border-radius:15px!important;padding:0!important;font-size:21px!important;display:grid!important;place-items:center!important;}

/* Предметы, яма, инвентарь */
.v34-loot-pile,.v34-inventory-panel{background:linear-gradient(145deg,rgba(28,31,48,.95),rgba(15,17,28,.98))!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:26px!important;box-shadow:0 16px 44px rgba(0,0,0,.25)!important;}
.v34-loot-pile .loot-pile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding-bottom:12px!important;margin-bottom:12px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;}
.v34-loot-pile .loot-pile-scroll{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;gap:10px!important;max-height:390px!important;overflow:auto!important;}
.v34-item-card{position:relative!important;display:grid!important;grid-template-columns:74px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;min-height:124px!important;padding:14px!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(45,42,68,.95),rgba(24,26,40,.98))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 10px 26px rgba(0,0,0,.18)!important;overflow:hidden!important;}
.v34-item-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:rgba(255,255,255,.20);}
.v34-item-card.rarity-Необычный:before{background:#06d6a0}.v34-item-card.rarity-Редкий:before{background:#38a4ff}.v34-item-card.rarity-Эпический:before{background:#9d4edd}.v34-item-card.rarity-Легендарный:before{background:#ffd166}
.v34-item-card .item-icon-wrap{width:62px!important;height:76px!important;display:grid!important;place-items:center!important;align-content:center!important;border-radius:17px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.10)!important;}
.v34-item-card .item-emblem{font-size:33px!important;line-height:1!important;}
.v34-item-card .item-type-label{font-size:10px!important;color:#c7cde0!important;}
.v34-item-card .item-body{min-width:0!important;display:grid!important;gap:5px!important;}
.v34-item-card .item-body h3{font-size:17px!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-item-card .item-description{font-size:13px!important;line-height:1.25!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.v34-item-card .item-stats-line{font-size:12px!important;color:#ffd166!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-item-card .item-weight{align-self:start!important;justify-self:end!important;font-size:12px!important;border-radius:999px!important;background:rgba(255,209,102,.12)!important;border:1px solid rgba(255,209,102,.28)!important;color:#ffe28a!important;padding:5px 9px!important;}
.v34-item-card .item-actions{grid-column:2/4!important;justify-content:flex-start!important;margin-top:4px!important;}
.v34-item-card .item-actions button{min-width:118px!important;border-radius:12px!important;padding:8px 12px!important;}
.v34-item-detail-card{background:linear-gradient(145deg,rgba(44,47,65,.98),rgba(21,23,35,.99))!important;border-radius:26px!important;}

/* Профиль и экипировка */
.v34-profile-layout{grid-template-columns:310px minmax(360px,1fr) 300px!important;gap:16px!important;align-items:start!important;}
.v34-equipment-panel{border-radius:26px!important;background:linear-gradient(145deg,rgba(28,31,48,.96),rgba(17,19,31,.98))!important;}
.v34-slot-grid{display:grid!important;grid-template-columns:repeat(3,minmax(120px,1fr))!important;gap:12px!important;}
.v34-equip-slot{display:grid!important;grid-template-rows:auto 1fr auto!important;place-items:center!important;min-height:136px!important;padding:13px!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important;}
.v34-equip-slot.filled{border-color:rgba(255,209,102,.28)!important;background:linear-gradient(145deg,rgba(255,209,102,.10),rgba(123,44,191,.08))!important;}
.v34-slot-name{font-size:12px!important;font-weight:900!important;color:#c9cfdf!important;justify-self:start!important;text-transform:none!important;}
.v34-slot-icon{font-size:36px!important;width:58px!important;height:58px!important;display:grid!important;place-items:center!important;border-radius:18px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.10)!important;}
.v34-slot-item{font-size:12px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#fff!important;}
.v34-stat-grid{display:grid!important;gap:10px!important;}
.v34-resource-card{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important;min-height:82px!important;}
.v34-resource-card .bar{grid-column:1/3!important;height:10px!important;}
.v34-resource-card em{font-style:normal!important;color:#8cffd3!important;font-weight:900!important;background:rgba(6,214,160,.12)!important;border:1px solid rgba(6,214,160,.22)!important;border-radius:999px!important;padding:3px 8px!important;}
.v34-animated-bar i{transition:width .55s cubic-bezier(.19,.8,.22,1)!important;}
.v34-side-resource{display:grid!important;gap:6px!important;}
.v34-side-resource .bar{height:8px!important;width:100%!important;}

/* Друзья и обмен */
.v34-friends-layout{display:grid!important;grid-template-columns:minmax(310px,.9fr) minmax(310px,.9fr)!important;gap:16px!important;align-items:start!important;}
.v34-trade-panel{grid-column:1/3!important;}
.v34-friends-panel,.v34-requests-panel,.v34-trade-panel{border-radius:26px!important;background:linear-gradient(145deg,rgba(28,31,48,.96),rgba(17,19,31,.98))!important;}
.v34-friend-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;padding:12px!important;margin:8px 0!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:18px!important;background:rgba(255,255,255,.045)!important;}
.v34-friend-row>span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-friend-row>div{display:flex!important;gap:7px!important;flex-wrap:wrap!important;justify-content:flex-end!important;}
.v34-friend-pill{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;margin:7px 0!important;border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.05)!important;}
.v34-trade-window{border-radius:26px!important;}

/* Плавный переход */
.v33-travel-card{overflow:hidden!important;}
.v33-travel-card #travel-left{display:inline-block!important;min-width:72px!important;transition:transform .28s ease, color .28s ease!important;}
.v33-travel-card .bar.travel i{transition:width 1s linear!important;}

@media(max-width:900px){
  .battle-screen.v34-battle{grid-template-columns:1fr!important;grid-template-areas:"timer" "monsters" "players" "log"!important;width:100%!important;padding:10px!important;gap:10px!important;}
  .v34-battle .v17-monsters-panel,.v34-battle .party-panel{min-height:0!important;}
  .v34-battle .v34-monster-grid{min-height:0!important;grid-template-rows:repeat(2,104px)!important;grid-auto-rows:104px!important;}
  .v34-battle .v34-monster-target{grid-template-columns:56px minmax(0,1fr) 48px!important;gap:9px!important;padding:10px!important;border-radius:20px!important;}
  .v34-battle .v34-monster-target .monster-portrait.battle{width:52px!important;height:52px!important;min-width:52px!important;border-radius:15px!important;}
  .v34-battle .v34-monster-target .monster-portrait.battle span{font-size:34px!important;}
  .v34-battle .v34-monster-target .v21-monster-title-line h2{font-size:16px!important;}
  .v34-battle .v34-monster-target .v21-monster-stats{font-size:10.5px!important;gap:6px!important;}
  .v34-battle .v17-sword-btn{width:46px!important;height:46px!important;min-height:46px!important;border-radius:15px!important;font-size:23px!important;}
  .v34-battle .v34-monster-grid.count-1>.v34-monster-target{min-height:154px!important;grid-column:1/3!important;grid-row:1/3!important;grid-template-columns:70px minmax(0,1fr) 54px!important;}
  .v34-battle .v34-monster-grid.count-1{grid-template-rows:76px 76px!important;}
  .v34-battle .v34-monster-grid.count-1>.v34-monster-target .monster-portrait.battle{width:66px!important;height:66px!important;min-width:66px!important;}
  .v34-battle .v34-monster-grid.count-1>.v34-monster-target .monster-portrait.battle span{font-size:43px!important;}
  .v34-battle .v34-monster-grid.count-1>.v34-monster-target .v21-monster-title-line h2{font-size:20px!important;}
  .v34-battle .v34-monster-grid.count-1>.v34-monster-target .v17-sword-btn{width:52px!important;height:52px!important;font-size:26px!important;}
  .v34-battle .v34-party-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-height:0!important;}
  .v34-battle .v34-party-grid.count-1>.v34-player{grid-column:1/3!important;}
  .v34-battle .v34-player{min-height:118px!important;}
  .v34-skill-drawer.v16-skill-drawer,.v34-help-drawer.v17-help-drawer{top:72px!important;width:36vw!important;min-width:150px!important;max-width:190px!important;max-height:48vh!important;padding:9px!important;border-radius:20px!important;}
  .v34-skill-drawer .v17-drawer-head b,.v34-help-drawer .v17-drawer-head b{font-size:14px!important;}
  .v34-skill-drawer .v17-drawer-head small,.v34-help-drawer .v17-drawer-head small,.v32-drawer-mini-note,.v25-help-note{display:none!important;}
  .v34-skill-drawer .v17-skill-scroll,.v34-skill-drawer .v16-skill-scroll,.v34-help-drawer .v17-help-scroll{max-height:calc(48vh - 50px)!important;}
  .v34-ability-main{grid-template-columns:34px minmax(0,1fr)!important;padding:7px!important;gap:6px!important;}
  .v34-ability-main span{width:32px!important;height:32px!important;font-size:20px!important;}
  .v34-ability-main b{font-size:10.5px!important;}
  .v34-ability-main small{font-size:9px!important;}
  .v34-help-friend{padding:7px!important;gap:5px!important;}
  .v34-help-friend span,.v34-help-friend button{font-size:10px!important;}
  .v34-location-monster-grid{grid-template-columns:1fr!important;max-width:100%!important;}
  .v34-location-monster{grid-template-columns:54px minmax(0,1fr) 48px!important;min-height:106px!important;}
  .v34-location-monster .location-monster-top{grid-template-columns:24px 48px minmax(0,1fr)!important;gap:8px!important;}
  .v34-location-monster .monster-portrait{width:48px!important;height:48px!important;min-width:48px!important;}
  .v34-location-monster .monster-portrait span{font-size:31px!important;}
  .v34-location-monster .location-monster-name h3{font-size:17px!important;}
  .v34-location-monster>.bar.hp{margin-left:70px!important;}
  .v34-location-monster .monster-stats{margin-left:70px!important;font-size:11px!important;gap:8px!important;}
  .v34-profile-layout{grid-template-columns:1fr!important;}
  .v34-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .v34-friends-layout{grid-template-columns:1fr!important;}
  .v34-trade-panel{grid-column:auto!important;}
  .v34-friend-row{grid-template-columns:1fr!important;}
  .v34-friend-row>div{justify-content:flex-start!important;}
  .v34-loot-pile .loot-pile-scroll{grid-template-columns:1fr!important;max-height:320px!important;}
  .v34-item-card{grid-template-columns:62px minmax(0,1fr) auto!important;min-height:112px!important;padding:11px!important;gap:9px!important;}
  .v34-item-card .item-icon-wrap{width:52px!important;height:66px!important;}
  .v34-item-card .item-emblem{font-size:29px!important;}
  .v34-item-card .item-body h3{font-size:15px!important;}
  .v34-item-card .item-description{font-size:12px!important;}
  .v34-item-card .item-actions button{min-width:96px!important;font-size:12px!important;}
}
@media(max-width:390px){
  .v34-battle .v34-monster-grid.count-2,.v34-battle .v34-monster-grid.count-3,.v34-battle .v34-monster-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .v34-battle .v34-party-grid.count-2,.v34-battle .v34-party-grid.count-3,.v34-battle .v34-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .v34-skill-drawer.v16-skill-drawer,.v34-help-drawer.v17-help-drawer{width:38vw!important;min-width:148px!important;}
  .v34-battle .battle-timer #turn-title{font-size:17px!important;}
  .v34-battle .battle-timer #turn-time{font-size:21px!important;min-width:70px!important;}
}

/* v35 auth polish + safe layout fixes */
.login-screen.v35-auth{
  position:relative!important;min-height:100dvh!important;overflow:hidden!important;padding:22px!important;
  background:radial-gradient(circle at 18% 12%,rgba(255,209,102,.18),transparent 26%),radial-gradient(circle at 86% 18%,rgba(123,44,191,.30),transparent 28%),linear-gradient(145deg,#0e1018,#151827 62%,#100f18)!important;
}
.v35-auth-bg{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
.v35-auth-bg i{position:absolute;width:170px;height:170px;border-radius:46px;background:linear-gradient(135deg,rgba(255,209,102,.18),rgba(123,44,191,.10));filter:blur(.2px);animation:v35Float 8s ease-in-out infinite;opacity:.75;}
.v35-auth-bg i:nth-child(1){left:7%;top:12%;transform:rotate(18deg);}
.v35-auth-bg i:nth-child(2){right:8%;top:18%;animation-delay:-2s;transform:rotate(-22deg);}
.v35-auth-bg i:nth-child(3){right:18%;bottom:10%;animation-delay:-4s;transform:rotate(38deg);}
@keyframes v35Float{0%,100%{translate:0 0;scale:1}50%{translate:0 -18px;scale:1.04}}
.v35-login-card{position:relative!important;width:min(1060px,100%)!important;padding:0!important;border-radius:32px!important;overflow:hidden!important;background:rgba(18,20,32,.82)!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 30px 80px rgba(0,0,0,.48),inset 0 0 0 1px rgba(255,255,255,.035)!important;backdrop-filter:blur(18px)!important;animation:v35CardIn .38s ease both!important;}
@keyframes v35CardIn{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
.v35-auth-wrap{display:grid!important;grid-template-columns:minmax(280px,.86fr) minmax(320px,1fr)!important;min-height:620px!important;}
.v35-auth-hero{position:relative;display:grid;align-content:center;gap:16px;padding:34px;background:linear-gradient(155deg,rgba(43,23,72,.95),rgba(20,23,39,.94)),radial-gradient(circle at top,rgba(255,209,102,.22),transparent 36%);border-right:1px solid rgba(255,255,255,.10);overflow:hidden;}
.v35-auth-hero:after{content:"";position:absolute;inset:auto -80px -110px auto;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(255,209,102,.18),transparent 70%);}
.v35-game-mark{width:86px;height:86px;border-radius:28px;display:grid;place-items:center;font-size:46px;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.04));border:1px solid rgba(255,209,102,.24);box-shadow:0 18px 42px rgba(0,0,0,.32);animation:v35Pulse 2.6s ease-in-out infinite;}
@keyframes v35Pulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.22)}}
.v35-kicker{margin:0!important;color:#ffe08a!important;font-weight:900;letter-spacing:.12em;text-transform:uppercase;font-size:12px!important;}
.v35-auth-hero h1{font-size:42px;line-height:1.02;margin:0;max-width:360px;}
.v35-auth-hero p{margin:0;color:#c9cede;line-height:1.45;max-width:420px;}
.v35-auth-features{display:grid;gap:10px;margin-top:8px;}
.v35-auth-features span{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10);color:#f7f4ff;}
.v35-auth-form{display:grid;align-content:center;gap:12px;padding:34px;}
.v35-logo{font-size:34px!important;color:var(--gold)!important;text-shadow:0 8px 24px rgba(255,209,102,.18);}
.v35-auth-form h2{margin:2px 0 0;font-size:30px;}
.v35-auth-sub{margin:0 0 6px!important;color:#aeb5cc!important;line-height:1.35;}
.v35-auth-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:6px!important;border-radius:18px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.09)!important;}
.v35-auth-tabs button{box-shadow:none!important;background:transparent!important;border-radius:14px!important;color:#b8bed0!important;}
.v35-auth-tabs button.active{background:linear-gradient(135deg,#26bd78,#118ab2)!important;color:#fff!important;box-shadow:0 8px 22px rgba(6,214,160,.18)!important;}
.v35-field{margin:4px 0!important;color:#cdd3e7!important;font-weight:700;}
.v35-field input,.v35-field select{margin-top:7px;background:rgba(7,9,17,.84)!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:17px!important;min-height:48px!important;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;}
.v35-field input:focus,.v35-field select:focus{border-color:rgba(255,209,102,.58)!important;box-shadow:0 0 0 4px rgba(255,209,102,.10)!important;transform:translateY(-1px)!important;}
.v35-password-field{display:grid!important;grid-template-columns:1fr 48px!important;gap:8px!important;align-items:center!important;}
.v35-password-field input{margin-top:0!important;}
.v35-password-field .password-eye{width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border-radius:15px!important;}
.v35-register-extra{animation:v35Drop .24s ease both;}
@keyframes v35Drop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.v35-class-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:6px 0 8px!important;}
.v35-class-pick{min-height:126px!important;text-align:left!important;border-radius:20px!important;padding:14px!important;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;border:1px solid rgba(255,255,255,.11)!important;box-shadow:none!important;display:grid!important;align-content:start!important;gap:7px!important;}
.v35-class-pick b{font-size:16px;}
.v35-class-pick small{font-size:12px!important;line-height:1.28!important;color:#aeb5cc!important;}
.v35-class-pick em{font-style:normal;color:#ffe08a;font-size:12px;font-weight:800;align-self:end;}
.v35-class-pick.active{outline:0!important;border-color:rgba(255,209,102,.74)!important;background:linear-gradient(145deg,rgba(255,209,102,.16),rgba(123,44,191,.12))!important;box-shadow:0 12px 30px rgba(255,209,102,.10)!important;}
.v35-login-main-btn{min-height:54px!important;border-radius:18px!important;font-weight:900!important;font-size:17px!important;margin-top:4px!important;box-shadow:0 9px 0 rgba(0,0,0,.24),0 18px 36px rgba(6,214,160,.16)!important;}
.v35-login-info{min-height:22px!important;text-align:center!important;}
@media(max-width:860px){
  .login-screen.v35-auth{padding:14px!important;align-items:start!important;}
  .v35-auth-wrap{grid-template-columns:1fr!important;min-height:0!important;}
  .v35-auth-hero{display:none!important;}
  .v35-auth-form{padding:22px!important;}
  .v35-login-card{border-radius:26px!important;margin-top:12px!important;}
  .v35-logo{font-size:28px!important;}
  .v35-auth-form h2{font-size:24px!important;}
  .v35-class-grid{grid-template-columns:1fr!important;}
  .v35-class-pick{min-height:96px!important;}
}
@media(max-width:420px){.v35-auth-form{padding:18px!important}.v35-auth-tabs button{font-size:13px!important}.v35-field input,.v35-field select{min-height:46px!important}}

/* === v36: улучшение локального интерфейса локаций и основных окон === */
:root{
  --v36-glass: rgba(26,29,46,.74);
  --v36-glass-strong: rgba(30,34,54,.92);
  --v36-line: rgba(255,255,255,.105);
  --v36-soft: rgba(255,255,255,.055);
  --v36-pink: #ef4775;
  --v36-mint: #24e2ad;
  --v36-yellow: #ffd86a;
  --v36-blue: #59d5ff;
}
html,body{scroll-behavior:smooth;}
.app-shell:not(.login-screen){background:
  radial-gradient(circle at 15% 0%, rgba(123,44,191,.16), transparent 34%),
  radial-gradient(circle at 90% 8%, rgba(6,214,160,.10), transparent 30%),
  radial-gradient(circle at 50% 100%, rgba(239,71,111,.08), transparent 38%);
}
.v36-screen{max-width:1160px!important;padding:18px 18px 108px!important;}
.v36-topbar{
  min-height:74px!important;
  background:rgba(12,14,23,.76)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.22)!important;
}
.v36-top-title h1{font-size:24px!important;letter-spacing:-.02em!important;line-height:1.08!important;}
.v36-top-title p{font-size:14px!important;color:#b7bdd4!important;}
.v36-hamburger{
  width:52px!important;height:52px!important;border-radius:17px!important;
  background:linear-gradient(145deg,rgba(123,44,191,.78),rgba(43,32,70,.92))!important;
  box-shadow:0 10px 26px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.12)!important;
}
.v36-net-pill,.net-pill.offline{
  background:linear-gradient(135deg,rgba(36,226,173,.18),rgba(89,213,255,.10))!important;
  color:#afffe6!important;border:1px solid rgba(36,226,173,.22)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.v36-bottom-nav{
  width:min(720px,calc(100% - 28px))!important;
  padding:8px!important;gap:8px!important;
  background:rgba(11,13,21,.80)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 18px 55px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06)!important;
}
.v36-bottom-nav button{
  min-height:58px!important;border-radius:18px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.035))!important;
  border:1px solid rgba(255,255,255,.06)!important;
}
.v36-bottom-nav button:hover{background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.055))!important;}
.v36-side{
  background:linear-gradient(180deg,rgba(20,23,37,.98),rgba(12,14,23,.98))!important;
  border-right:1px solid rgba(255,255,255,.10)!important;
}
.v36-side .side-head{border-bottom-color:rgba(255,255,255,.08)!important;}
.v36-side button{border:1px solid rgba(255,255,255,.06)!important;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.035))!important;}

/* Локация */
.v36-location-hero,.location-hero{
  position:relative!important;overflow:hidden!important;
  min-height:122px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;
  border-radius:28px!important;padding:24px!important;
  background:
    linear-gradient(135deg,rgba(37,42,66,.92),rgba(21,24,39,.94)),
    radial-gradient(circle at 15% 10%,rgba(255,216,106,.12),transparent 38%)!important;
  border:1px solid rgba(255,255,255,.11)!important;
  box-shadow:0 18px 45px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.07)!important;
}
.v36-location-hero:before{
  content:"";position:absolute;inset:-70px auto auto -70px;width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle,rgba(36,226,173,.15),transparent 66%);pointer-events:none;
}
.v36-location-chip{
  display:inline-flex;align-items:center;width:max-content;margin-bottom:8px;padding:5px 10px;border-radius:999px;
  font-size:12px;font-weight:800;color:#ffe79d;background:rgba(255,216,106,.12);border:1px solid rgba(255,216,106,.18);
}
.v36-location-hero p{font-size:17px!important;line-height:1.45!important;margin:0!important;max-width:720px!important;color:#f3f5ff!important;}
.v36-location-actions,.location-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:10px!important;margin:0!important;}
.location-btn{
  min-height:44px!important;border-radius:15px!important;padding:11px 15px!important;font-weight:800!important;
  background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.055))!important;
  border:1px solid rgba(255,255,255,.09)!important;box-shadow:0 8px 18px rgba(0,0,0,.25)!important;
}
.location-btn:hover{transform:translateY(-2px)!important;filter:brightness(1.13)!important;}
.v36-active-battles,.active-battles{
  margin-top:16px!important;border-radius:26px!important;padding:20px!important;
  background:linear-gradient(145deg,rgba(27,31,49,.88),rgba(17,19,31,.92))!important;
  border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 15px 38px rgba(0,0,0,.18)!important;
}
.v36-active-battles h2,.active-battles h2{font-size:26px!important;margin:0 0 8px!important;}
.active-battle-card{border-radius:20px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important;}

/* Сетка и карточки монстров в локации */
.v36-location-monster-grid,.monster-grid.cards-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(260px,1fr))!important;
  gap:14px!important;margin-top:16px!important;
  align-items:stretch!important;
}
.location-monster-card.monster-card{
  min-height:118px!important;max-height:142px!important;
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr) 58px!important;
  grid-template-rows:auto 10px auto!important;
  grid-template-areas:"top top help" "bar bar attack" "stats stats attack"!important;
  align-items:center!important;gap:7px 12px!important;text-align:left!important;
  padding:14px 14px!important;border-radius:22px!important;
  background:linear-gradient(145deg,rgba(72,39,67,.88),rgba(31,31,50,.94))!important;
  border:1px solid rgba(239,71,111,.50)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.07)!important;
}
.location-monster-card:after{content:"";position:absolute;inset:auto 0 0 0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,216,106,.55),transparent);opacity:.65;}
.location-monster-card .location-monster-top{grid-area:top!important;display:grid!important;grid-template-columns:28px 54px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-width:0!important;}
.location-monster-card .location-mob-index{width:26px!important;height:26px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:rgba(255,216,106,.20)!important;color:#ffe18b!important;font-weight:900!important;font-size:12px!important;}
.location-monster-card .monster-portrait{width:52px!important;height:52px!important;min-width:52px!important;margin:0!important;border-radius:16px!important;}
.location-monster-card .monster-portrait span{font-size:33px!important;line-height:1!important;}
.location-monster-card .location-monster-name{min-width:0!important;display:grid!important;gap:5px!important;}
.location-monster-card h3{font-size:18px!important;line-height:1.05!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.location-monster-card .v20-monster-flags{display:flex!important;gap:5px!important;flex-wrap:nowrap!important;overflow:hidden!important;min-height:20px!important;}
.location-monster-card .flag{position:static!important;height:20px!important;min-height:0!important;padding:0 8px!important;border-radius:999px!important;font-size:10px!important;line-height:18px!important;white-space:nowrap!important;box-shadow:none!important;border:1px solid rgba(255,255,255,.10)!important;}
.location-monster-card .flag.aggro{background:rgba(239,71,111,.20)!important;color:#ff9bb5!important;}
.location-monster-card .flag.pack{background:rgba(36,226,173,.16)!important;color:#9dffe1!important;}
.location-monster-card>.bar.hp{grid-area:bar!important;height:9px!important;margin:0!important;width:100%!important;}
.location-monster-card .monster-stats{grid-area:stats!important;margin:0!important;justify-content:flex-start!important;gap:10px!important;font-size:13px!important;color:#f2f4ff!important;white-space:nowrap!important;overflow:hidden!important;}
.location-monster-card .monster-help{grid-area:help!important;position:static!important;justify-self:end!important;align-self:start!important;width:34px!important;height:34px!important;border-radius:13px!important;font-weight:900!important;background:rgba(10,12,20,.62)!important;border:1px solid rgba(255,255,255,.10)!important;z-index:2!important;}
.location-monster-card .v20-location-attack,.location-monster-card .v24-location-attack{grid-area:attack!important;position:static!important;justify-self:stretch!important;align-self:stretch!important;width:54px!important;height:auto!important;min-height:70px!important;border-radius:18px!important;padding:0!important;font-size:23px!important;display:grid!important;place-items:center!important;z-index:1!important;background:linear-gradient(180deg,#f33f76,#bd1348)!important;}

/* Сундук на главной */
.v23-home-tools{margin-top:16px!important;display:grid!important;}
.chest-location-card{
  display:grid!important;grid-template-columns:72px minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;
  padding:20px!important;border-radius:26px!important;background:linear-gradient(145deg,rgba(42,46,70,.92),rgba(22,25,40,.95))!important;
  border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 16px 40px rgba(0,0,0,.20)!important;
}
.v23-chest-icon{width:64px!important;height:64px!important;display:grid!important;place-items:center!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(255,216,106,.20),rgba(123,44,191,.14))!important;font-size:32px!important;border:1px solid rgba(255,255,255,.10)!important;}
.v23-chest-body h2{margin:0 0 4px!important;font-size:26px!important;}.v23-chest-body p{margin:0!important;color:#b9c0d8!important;}

/* Предметы, сумка и яма */
.inventory-panel,.v34-inventory-panel,.v34-loot-pile,.loot-pile{
  border-radius:28px!important;background:linear-gradient(145deg,rgba(31,35,55,.92),rgba(17,19,31,.95))!important;
  border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 18px 45px rgba(0,0,0,.20)!important;
}
.inventory-head,.loot-pile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;padding-bottom:12px!important;margin-bottom:14px!important;}
.inventory-head h2,.loot-pile-head h2{font-size:26px!important;margin:0!important;letter-spacing:-.02em!important;}
.bag-weight,.item-weight{background:rgba(255,216,106,.14)!important;color:#ffdf79!important;border:1px solid rgba(255,216,106,.24)!important;border-radius:999px!important;}
.item-list,.inventory-list,.loot-pile-scroll{display:grid!important;grid-template-columns:repeat(2,minmax(240px,1fr))!important;gap:12px!important;}
.item-card.v36-item-card,.item-card.v34-item-card,.item-card.v33-item-card,.item-card{
  min-height:132px!important;display:grid!important;grid-template-columns:74px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;
  padding:14px!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(57,43,78,.76),rgba(30,32,49,.92))!important;
  border:1px solid rgba(255,255,255,.095)!important;box-shadow:0 12px 28px rgba(0,0,0,.16)!important;text-align:left!important;
}
.item-icon-wrap{width:64px!important;height:72px!important;border-radius:18px!important;background:rgba(255,255,255,.065)!important;border:1px solid rgba(255,255,255,.10)!important;display:grid!important;place-items:center!important;align-content:center!important;gap:4px!important;}
.item-emblem{font-size:34px!important;line-height:1!important;}.item-type-label{font-size:10px!important;color:#c5cae0!important;}
.item-body{min-width:0!important;}.item-body h3{font-size:18px!important;line-height:1.1!important;margin:0 0 5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.item-description{font-size:13px!important;line-height:1.25!important;color:#d9deee!important;margin:0 0 5px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.item-stats-line{display:block!important;color:#ffd979!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.item-actions{margin-top:8px!important;justify-content:flex-start!important;}.item-actions button{min-height:34px!important;padding:7px 12px!important;border-radius:12px!important;font-size:13px!important;}
.item-weight{align-self:start!important;font-size:12px!important;padding:5px 8px!important;white-space:nowrap!important;}
.item-detail-card{background:linear-gradient(145deg,rgba(40,43,62,.96),rgba(24,26,39,.98))!important;border-radius:26px!important;border:1px solid rgba(255,255,255,.12)!important;}
.item-detail-icon{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:inset 0 0 28px rgba(255,255,255,.04)!important;}
.detail-line{background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:15px!important;}

/* Профиль и окна */
.v34-profile-layout{grid-template-columns:300px minmax(360px,1fr)!important;grid-template-areas:"hero equip" "stats equip"!important;align-items:start!important;gap:14px!important;}
.v27-profile-hero{border-radius:28px!important;background:linear-gradient(145deg,rgba(66,44,100,.90),rgba(28,30,47,.96))!important;box-shadow:0 18px 45px rgba(0,0,0,.20)!important;}
.v34-equipment-panel{border-radius:28px!important;background:linear-gradient(145deg,rgba(31,35,55,.92),rgba(18,20,32,.96))!important;border:1px solid rgba(255,255,255,.10)!important;}
.v34-slot-grid{grid-template-columns:repeat(3,minmax(118px,1fr))!important;gap:12px!important;}
.v33-equip-slot{aspect-ratio:1/1!important;min-height:128px!important;display:grid!important;grid-template-rows:auto 1fr auto!important;place-items:center!important;text-align:center!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.025))!important;border:1px solid rgba(255,255,255,.10)!important;}
.v33-equip-slot.filled{box-shadow:0 0 0 1px rgba(255,216,106,.16),0 14px 28px rgba(0,0,0,.18)!important;}
.v33-slot-name{font-size:12px!important;color:#c4c9dd!important;justify-self:start!important;align-self:start!important;}.v33-slot-icon{font-size:38px!important;width:60px!important;height:60px!important;border-radius:18px!important;}.v33-slot-item{font-size:12px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v34-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}.v27-stat-card,.v34-resource-card{border-radius:18px!important;background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.028))!important;border:1px solid rgba(255,255,255,.08)!important;}.v34-resource-card em{display:none!important;}.v34-animated-bar i{transition:width .55s cubic-bezier(.22,.8,.2,1)!important;}
.modal{border-radius:28px!important;background:linear-gradient(145deg,rgba(28,31,48,.98),rgba(17,19,31,.98))!important;border:1px solid rgba(255,255,255,.12)!important;}.modal h1{letter-spacing:-.03em!important;}.modal-close{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 10px 24px rgba(0,0,0,.22)!important;}
.toast{display:flex!important;align-items:center!important;gap:10px!important;border-radius:18px!important;background:rgba(31,35,55,.96)!important;border:1px solid rgba(255,255,255,.12)!important;}

/* Друзья и настройки */
.friends-layout,.v34-friends-layout,.v33-settings-grid,.v36-settings-grid{display:grid!important;grid-template-columns:repeat(2,minmax(280px,1fr))!important;gap:16px!important;align-items:start!important;}
.friends-layout .panel,.v36-settings-grid .panel{border-radius:28px!important;background:linear-gradient(145deg,rgba(31,35,55,.90),rgba(17,19,31,.96))!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 16px 40px rgba(0,0,0,.18)!important;}
.friend-row,.request-row,.friend-card{border-radius:18px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important;padding:12px!important;}

@media(max-width:900px){
  .v36-screen{padding:12px 10px 100px!important;}
  .v36-location-hero,.location-hero{grid-template-columns:1fr!important;padding:18px!important;min-height:auto!important;}
  .v36-location-actions,.location-actions{justify-content:flex-start!important;}
  .v36-location-monster-grid,.monster-grid.cards-grid{grid-template-columns:1fr!important;gap:10px!important;}
  .location-monster-card.monster-card{grid-template-columns:60px minmax(0,1fr) 52px!important;min-height:106px!important;padding:12px!important;border-radius:20px!important;}
  .location-monster-card .location-monster-top{grid-template-columns:24px 48px minmax(0,1fr)!important;gap:8px!important;}
  .location-monster-card .monster-portrait{width:46px!important;height:46px!important;min-width:46px!important;border-radius:15px!important;}.location-monster-card .monster-portrait span{font-size:29px!important;}
  .location-monster-card h3{font-size:17px!important;}.location-monster-card .monster-stats{font-size:12px!important;gap:7px!important;}.location-monster-card .v20-location-attack{width:50px!important;min-height:66px!important;}
  .chest-location-card{grid-template-columns:58px minmax(0,1fr)!important;}.chest-location-card button{grid-column:1/-1!important;width:100%!important;}.v23-chest-icon{width:54px!important;height:54px!important;font-size:28px!important;}
  .item-list,.inventory-list,.loot-pile-scroll{grid-template-columns:1fr!important;}.item-card{grid-template-columns:66px minmax(0,1fr) auto!important;min-height:116px!important;}
  .v34-profile-layout{grid-template-columns:1fr!important;grid-template-areas:"hero" "stats" "equip"!important;}.v34-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.v33-equip-slot{min-height:112px!important;}
  .friends-layout,.v34-friends-layout,.v33-settings-grid,.v36-settings-grid{grid-template-columns:1fr!important;}
  .v36-bottom-nav{bottom:8px!important;}.v36-bottom-nav button{min-height:54px!important;}
}
@media(max-width:420px){
  .v36-topbar{min-height:68px!important;padding:8px 10px!important;}.v36-top-title h1{font-size:20px!important;}.v36-top-title p{font-size:12px!important;}.v36-hamburger{width:48px!important;height:48px!important;}
  .location-monster-card.monster-card{grid-template-columns:52px minmax(0,1fr) 48px!important;gap:6px 8px!important;}.location-monster-card .location-monster-top{grid-template-columns:22px 42px minmax(0,1fr)!important;gap:7px!important;}.location-monster-card .location-mob-index{width:22px!important;height:22px!important;font-size:10px!important;}.location-monster-card .monster-portrait{width:42px!important;height:42px!important;min-width:42px!important;}.location-monster-card h3{font-size:15.5px!important;}.location-monster-card .flag{height:18px!important;font-size:9px!important;padding:0 6px!important;}.location-monster-card .monster-stats{font-size:10.5px!important;}.location-monster-card .v20-location-attack{width:46px!important;min-height:60px!important;font-size:20px!important;}
  .item-card{grid-template-columns:58px minmax(0,1fr)!important;}.item-weight{grid-column:1/-1!important;justify-self:start!important;}.item-icon-wrap{width:56px!important;height:64px!important;}.item-body h3{font-size:16px!important;}.item-description{font-size:12px!important;}
}

/* =========================================================
   v37 — полный текстовый редизайн интерфейса Aldos RPG
   Палитра: графит / серый / белый / оранжевый
   ========================================================= */
:root{
  --v37-bg:#131313;
  --v37-bg2:#181818;
  --v37-panel:#222222;
  --v37-panel2:#2a2a2a;
  --v37-line:#3b3b3b;
  --v37-line2:rgba(255,255,255,.10);
  --v37-text:#f5f5f5;
  --v37-muted:#a9a9a9;
  --v37-soft:#d5d5d5;
  --v37-accent:#ff9f2e;
  --v37-accent2:#ffbe68;
  --v37-danger:#d95d39;
  --v37-ok:#e4e4e4;
  --v37-shadow:0 18px 46px rgba(0,0,0,.38);
  --v37-radius:18px;
  --v37-radius-sm:12px;
}
html,body{
  background:
    radial-gradient(circle at 22% 0%,rgba(255,159,46,.11),transparent 30%),
    linear-gradient(180deg,#161616,#101010 58%,#141414)!important;
  color:var(--v37-text)!important;
  font-family:Inter,Arial,system-ui,sans-serif!important;
}
body:before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size:36px 36px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 88%);
}
*{scrollbar-width:thin;scrollbar-color:var(--v37-accent) rgba(255,255,255,.06)}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--v37-accent),#b85f19);border-radius:999px}::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px}
button,.primary,.danger,.ghost,.location-btn{
  border-radius:12px!important;border:1px solid var(--v37-line2)!important;
  box-shadow:none!important;letter-spacing:.01em!important;font-weight:800!important;
  transition:transform .12s ease,background .15s ease,border-color .15s ease,filter .15s ease!important;
}
button{background:linear-gradient(180deg,#303030,#242424)!important;color:var(--v37-text)!important;min-height:40px!important;padding:9px 13px!important}
button:hover{transform:translateY(-1px)!important;filter:brightness(1.08)!important;border-color:rgba(255,159,46,.34)!important}
button:active{transform:translateY(1px)!important}
.primary,.location-btn{background:linear-gradient(180deg,#ffae46,#e37d1d)!important;color:#151515!important;border-color:rgba(255,190,104,.55)!important}
.danger{background:linear-gradient(180deg,#9f4b32,#713525)!important;color:#fff!important;border-color:rgba(217,93,57,.55)!important}
.ghost{background:rgba(255,255,255,.055)!important;color:var(--v37-text)!important;border-color:rgba(255,255,255,.12)!important}
input,select,textarea{background:#171717!important;color:var(--v37-text)!important;border:1px solid var(--v37-line)!important;border-radius:12px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important}
.muted,small{color:var(--v37-muted)!important}.empty{color:var(--v37-muted)!important;background:rgba(255,255,255,.035)!important;border:1px dashed rgba(255,255,255,.11)!important;border-radius:16px!important;padding:18px!important}

/* Верх, боковое меню, нижняя навигация */
.v37-topbar,.topbar{
  min-height:70px!important;padding:10px 18px!important;background:rgba(18,18,18,.92)!important;
  border-bottom:1px solid var(--v37-line)!important;backdrop-filter:blur(14px)!important;box-shadow:0 10px 34px rgba(0,0,0,.28)!important;
}
.v37-top-title h1,.topbar h1{font-size:22px!important;line-height:1.1!important;margin:0!important;color:var(--v37-text)!important}.v37-top-title p,.topbar p{font-size:12px!important;margin-top:5px!important;color:var(--v37-muted)!important}
.v37-hamburger,.hamburger{width:46px!important;height:46px!important;border-radius:14px!important;background:#242424!important;color:var(--v37-accent)!important;font-size:22px!important}
.v37-net-pill,.net-pill{background:#202020!important;border:1px solid var(--v37-line)!important;color:var(--v37-soft)!important;border-radius:999px!important;font-size:12px!important;padding:8px 12px!important}.v37-net-pill.offline,.net-pill.offline{color:var(--v37-accent2)!important}.v37-net-pill.lan,.net-pill.lan{color:#fff!important;background:rgba(255,159,46,.18)!important}
.v37-screen,.screen{max-width:1380px!important;padding:18px!important}.v37-bottom-nav,.bottom-nav{background:rgba(18,18,18,.93)!important;border:1px solid var(--v37-line)!important;border-radius:18px!important;box-shadow:0 16px 42px rgba(0,0,0,.4)!important;backdrop-filter:blur(12px)!important;gap:6px!important}.v37-bottom-nav button,.bottom-nav button{background:transparent!important;border:1px solid transparent!important;border-radius:13px!important;color:var(--v37-soft)!important}.v37-bottom-nav button:hover,.bottom-nav button:hover{background:rgba(255,159,46,.12)!important;border-color:rgba(255,159,46,.22)!important}.v37-bottom-nav span,.bottom-nav span{font-size:11px!important;color:var(--v37-muted)!important}
.v37-side,.side{background:#181818!important;border-right:1px solid var(--v37-line)!important;box-shadow:var(--v37-shadow)!important}.side-head{border-bottom:1px solid var(--v37-line)!important}.mini-card{background:#222!important;border:1px solid var(--v37-line2)!important;border-radius:14px!important;display:grid!important;gap:6px!important}.v37-side-resource .bar{grid-column:1/-1!important}

/* Панели и основные окна */
.panel,.location-hero,.loot-pile,.monster-card,.ability-card,.fighter,.battle-log,.party,.profile-card,.equipment-panel,.active-battles,.trade-window{
  background:linear-gradient(180deg,var(--v37-panel),#1d1d1d)!important;border:1px solid var(--v37-line)!important;
  border-radius:var(--v37-radius)!important;box-shadow:0 12px 34px rgba(0,0,0,.25)!important;
}
.v37-location-hero{display:grid!important;grid-template-columns:minmax(0,1.2fr) auto!important;gap:16px!important;align-items:center!important;padding:18px!important;overflow:hidden!important;position:relative!important}.v37-location-hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--v37-accent),transparent)!important}.v37-location-text{display:grid!important;gap:7px!important;min-width:0!important}.v37-location-chip{width:max-content!important;max-width:100%!important;border:1px solid rgba(255,159,46,.35)!important;background:rgba(255,159,46,.11)!important;color:var(--v37-accent2)!important;border-radius:999px!important;padding:5px 10px!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important}.v37-location-text p{margin:0!important;color:var(--v37-soft)!important;line-height:1.45!important}.v37-location-actions{margin:0!important;justify-content:flex-end!important;display:flex!important;gap:8px!important}.v37-location-actions button{min-width:132px!important}

/* Локационные монстры — новая текстовая карточка */
.v37-location-monster-grid,.monster-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;gap:12px!important;align-items:stretch!important;margin-top:14px!important}.v37-location-monster-card{min-height:0!important;padding:12px!important;text-align:left!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) 44px!important;grid-template-areas:"top top help" "hp hp atk" "stats stats atk"!important;gap:8px!important;overflow:hidden!important}.v37-location-monster-card .monster-help{grid-area:help!important;position:static!important;width:36px!important;height:36px!important;align-self:start!important;justify-self:end!important;border-radius:12px!important;font-size:14px!important}.v37-location-monster-card .location-monster-top{grid-area:top!important;display:grid!important;grid-template-columns:24px 50px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-width:0!important}.v37-location-monster-card .location-mob-index{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:8px!important;background:rgba(255,159,46,.14)!important;border:1px solid rgba(255,159,46,.25)!important;color:var(--v37-accent2)!important;font-size:11px!important;font-weight:900!important}.v37-location-monster-card .monster-portrait{width:50px!important;height:50px!important;min-width:50px!important;margin:0!important;border-radius:14px!important;background:#191919!important;border:1px solid var(--v37-line)!important;box-shadow:none!important}.v37-location-monster-card .monster-portrait span{font-size:29px!important}.v37-location-monster-card .location-monster-name{min-width:0!important;display:grid!important;gap:3px!important}.v37-location-monster-card h3{font-size:15px!important;line-height:1.05!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v37-location-monster-card .v20-monster-flags{display:flex!important;gap:4px!important;flex-wrap:nowrap!important;min-height:19px!important;overflow:hidden!important}.flag,.v23-battle-badge{height:19px!important;min-height:19px!important;padding:0 7px!important;font-size:10px!important;line-height:18px!important;border-radius:999px!important;border:1px solid var(--v37-line2)!important;background:#2a2a2a!important;color:var(--v37-soft)!important;white-space:nowrap!important;text-transform:lowercase!important}.flag.pack,.v23-battle-badge.pack{background:rgba(255,159,46,.12)!important;color:var(--v37-accent2)!important;border-color:rgba(255,159,46,.28)!important}.flag.aggro,.v23-battle-badge.aggro{background:rgba(217,93,57,.14)!important;color:#ffb59d!important;border-color:rgba(217,93,57,.28)!important}.flag.target,.v23-battle-badge.target{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:rgba(255,255,255,.24)!important}.v37-location-monster-card .bar.hp{grid-area:hp!important;height:8px!important;margin:0!important;width:100%!important}.v37-location-monster-card .monster-stats{grid-area:stats!important;margin:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;font-size:11px!important;color:var(--v37-muted)!important}.v37-location-monster-card .monster-stats span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.065)!important;border-radius:9px!important;padding:5px!important;text-align:center!important}.v37-location-monster-card .v20-location-attack,.v37-location-monster-card .v24-location-attack{grid-area:atk!important;width:42px!important;min-width:42px!important;height:74px!important;min-height:74px!important;align-self:stretch!important;justify-self:end!important;border-radius:14px!important;font-size:20px!important;padding:0!important}

/* Предметы, сумка, лут, яма */
.v37-item-card,.item-card{display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;gap:10px!important;align-items:start!important;text-align:left!important;position:relative!important;padding:12px!important;background:linear-gradient(180deg,#242424,#1e1e1e)!important;border:1px solid var(--v37-line)!important;border-left:3px solid var(--v37-accent)!important;border-radius:16px!important;box-shadow:none!important;min-height:96px!important;overflow:hidden!important}.v37-item-card .item-icon-wrap,.item-icon-wrap{width:58px!important;min-width:58px!important;display:grid!important;justify-items:center!important;gap:5px!important}.item-emblem{width:48px!important;height:48px!important;border-radius:14px!important;background:#171717!important;border:1px solid var(--v37-line)!important;display:grid!important;place-items:center!important;font-size:26px!important}.item-type-label{font-size:9px!important;line-height:1!important;color:var(--v37-muted)!important;text-align:center!important}.item-body{min-width:0!important;display:grid!important;gap:4px!important;padding-right:4px!important}.item-body h3{margin:0!important;font-size:15px!important;line-height:1.12!important;color:var(--v37-text)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.item-description{margin:0!important;color:var(--v37-muted)!important;font-size:12px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.item-stats-line{font-size:11px!important;line-height:1.25!important;color:var(--v37-accent2)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.item-weight{position:static!important;justify-self:end!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:999px!important;padding:4px 7px!important;color:var(--v37-muted)!important;font-size:10px!important;white-space:nowrap!important}.item-actions{grid-column:1/-1!important;display:flex!important;gap:6px!important;justify-content:flex-start!important;margin-top:4px!important}.item-actions button{min-height:32px!important;font-size:11px!important;padding:6px 10px!important}.rarity-Редкий{border-left-color:#d6d6d6!important}.rarity-Эпический{border-left-color:#ff9f2e!important}.rarity-Легендарный{border-left-color:#ffbe68!important;box-shadow:0 0 0 1px rgba(255,159,46,.18)!important}.v37-loot-pile{padding:14px!important}.v37-loot-pile .loot-pile-head{display:flex!important;align-items:center!important;justify-content:space-between!important;border-bottom:1px solid var(--v37-line)!important;padding-bottom:10px!important;margin-bottom:10px!important}.v37-loot-pile .loot-pile-head h2{font-size:18px!important;margin:0!important}.v37-loot-pile .loot-pile-scroll{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:10px!important;max-height:360px!important;overflow:auto!important;padding-right:4px!important}.v37-inventory-panel .inventory-head{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:center!important}.v37-inventory-panel .inventory-list,.item-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;gap:10px!important}.inventory-tools{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin:10px 0!important}.chance-pill{background:rgba(255,159,46,.11)!important;border:1px solid rgba(255,159,46,.25)!important;color:var(--v37-accent2)!important;border-radius:999px!important;padding:5px 9px!important;font-size:11px!important}

/* Профиль и экипировка */
.v37-profile-layout{display:grid!important;grid-template-columns:300px minmax(320px,1fr) 360px!important;grid-template-areas:"hero equip stats"!important;gap:14px!important;align-items:start!important}.v27-profile-hero{grid-area:hero!important;background:linear-gradient(180deg,#252525,#1c1c1c)!important;border:1px solid var(--v37-line)!important;border-radius:20px!important;box-shadow:none!important}.v37-equipment-panel{grid-area:equip!important;padding:14px!important}.v27-profile-card{grid-area:stats!important}.v37-slot-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.v37-equip-slot{aspect-ratio:1/1!important;min-height:118px!important;height:auto!important;padding:10px!important;border-radius:18px!important;display:grid!important;grid-template-rows:auto 1fr auto!important;place-items:center!important;text-align:center!important;background:#1c1c1c!important;border:1px solid var(--v37-line)!important;color:var(--v37-text)!important;overflow:hidden!important}.v37-equip-slot.filled{border-color:rgba(255,159,46,.45)!important;background:linear-gradient(180deg,rgba(255,159,46,.10),#1d1d1d)!important}.v37-equip-slot .v33-slot-name{font-size:11px!important;color:var(--v37-muted)!important;text-transform:uppercase!important;letter-spacing:.06em!important}.v37-equip-slot .v33-slot-icon,.v37-equip-slot .slot-icon{width:54px!important;height:54px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:#141414!important;border:1px solid rgba(255,255,255,.10)!important;font-size:30px!important}.v37-equip-slot .v33-slot-item{font-size:11px!important;color:var(--v37-soft)!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v37-resource-card{background:#1c1c1c!important;border:1px solid var(--v37-line)!important;border-radius:16px!important;padding:12px!important;display:grid!important;gap:8px!important}.v37-resource-card>div:first-child{display:flex!important;align-items:center!important;gap:8px!important;justify-content:space-between!important}.v37-resource-card b{color:var(--v37-text)!important}.v37-resource-card em{display:none!important}.bar{height:10px!important;border-radius:999px!important;background:#111!important;border:1px solid rgba(255,255,255,.08)!important;overflow:hidden!important}.bar i{transition:width .55s cubic-bezier(.2,.8,.2,1)!important;background:linear-gradient(90deg,var(--v37-accent),var(--v37-accent2))!important}.bar.hp i{background:linear-gradient(90deg,#d95d39,var(--v37-accent2))!important}.bar.mp i{background:linear-gradient(90deg,#d2d2d2,#ffffff)!important}

/* Друзья, обмен, уведомления */
.v37-friends-layout{display:grid!important;grid-template-columns:1.15fr .85fr!important;gap:14px!important}.v37-friends-panel,.v37-requests-panel{padding:16px!important}.online-row,.friend-row,.request-row,.request-wait,.v17-help-friend{background:#1e1e1e!important;border:1px solid var(--v37-line)!important;border-radius:14px!important;padding:10px!important;margin:8px 0!important}.friend-pill{background:rgba(255,159,46,.10)!important;border:1px solid rgba(255,159,46,.24)!important;color:var(--v37-accent2)!important}.timed-notice,.toast{background:#222!important;border:1px solid var(--v37-line)!important;border-left:3px solid var(--v37-accent)!important;border-radius:16px!important;color:var(--v37-text)!important;box-shadow:var(--v37-shadow)!important}.toast{display:flex!important;align-items:center!important;gap:10px!important}.notice-progress{height:6px!important;background:#111!important;border-radius:999px!important;overflow:hidden!important}.notice-progress i{background:linear-gradient(90deg,var(--v37-accent),var(--v37-accent2))!important}.v37-trade-window{background:#202020!important;border:1px solid var(--v37-line)!important}.trade-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}.trade-side{background:#1a1a1a!important;border:1px solid var(--v37-line)!important;border-radius:16px!important;padding:12px!important}.trade-offer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.trade-offer-slot{background:#151515!important;border:1px dashed rgba(255,255,255,.13)!important;border-radius:14px!important;min-height:96px!important;overflow:auto!important;padding:7px!important}.trade-offer-slot.filled{border-style:solid!important;border-color:rgba(255,159,46,.28)!important}

/* БОЙ — новая стабильная текстовая раскладка */
.v37-battle{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"timer" "monsters" "players" "log"!important;gap:10px!important;max-width:1180px!important;margin:0 auto!important;padding:12px!important;contain:layout style!important}.v37-battle .battle-timer{grid-area:timer!important;min-height:76px!important;padding:12px!important;border-radius:18px!important;background:linear-gradient(180deg,#242424,#1b1b1b)!important;border:1px solid var(--v37-line)!important}.v37-battle .turn-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.v37-battle #turn-title{font-size:17px!important;color:var(--v37-text)!important}.v37-battle #turn-hint{font-size:12px!important;color:var(--v37-muted)!important;margin:3px 0 0!important}.v37-battle #turn-time{font-size:20px!important;color:var(--v37-accent2)!important;font-weight:900!important;font-variant-numeric:tabular-nums!important}.v37-monsters-panel{grid-area:monsters!important;min-width:0!important}.v37-party-panel{grid-area:players!important;min-width:0!important}.v37-battle-log{grid-area:log!important;padding:12px!important}.v37-battle-log h3{margin:0 0 8px!important;font-size:14px!important;color:var(--v37-muted)!important}.v37-battle .battle-log-scroll{max-height:168px!important;overflow:auto!important;display:grid!important;gap:5px!important}.v37-battle .battle-log-scroll p{margin:0!important;padding:8px 10px!important;background:#1b1b1b!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:10px!important;font-size:12px!important;line-height:1.35!important}.v37-battle .v28-monster-grid,.v37-battle .battle-party-cards{display:grid!important;gap:8px!important;min-width:0!important}.v37-battle .v28-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v37-battle .v28-monster-grid.count-1{grid-template-columns:1fr!important}.v37-battle .v28-monster-grid.count-3>.v37-monster-target:nth-child(3){grid-column:1/-1!important}.v37-battle .v28-monster-grid.count-2>.v37-monster-target,.v37-battle .v28-monster-grid.count-4>.v37-monster-target{grid-column:auto!important;grid-row:auto!important}.v37-battle .battle-party-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v37-battle .battle-party-cards.count-1{grid-template-columns:1fr!important}.v37-battle .battle-party-cards.count-3>.v37-player:nth-child(3){grid-column:1/-1!important}.v37-monster-target{min-height:106px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) 48px!important;grid-template-areas:"icon info act"!important;gap:10px!important;align-items:center!important;padding:10px!important;border-radius:16px!important;background:linear-gradient(180deg,#242424,#1c1c1c)!important;border:1px solid var(--v37-line)!important;overflow:hidden!important;text-align:left!important}.v37-monster-target.selected-target{border-color:rgba(255,159,46,.75)!important;box-shadow:0 0 0 1px rgba(255,159,46,.25),0 12px 30px rgba(0,0,0,.28)!important}.v37-battle .v28-monster-grid.count-1 .v37-monster-target{min-height:128px!important;grid-template-columns:74px minmax(0,1fr) 58px!important}.v37-monster-target .monster-portrait.battle{grid-area:icon!important;width:58px!important;height:58px!important;min-width:58px!important;border-radius:16px!important;background:#151515!important;border:1px solid var(--v37-line)!important;box-shadow:none!important}.v37-battle .v28-monster-grid.count-1 .monster-portrait.battle{width:72px!important;height:72px!important}.v37-monster-target .monster-portrait span{font-size:34px!important}.v37-battle .v28-monster-grid.count-1 .monster-portrait span{font-size:42px!important}.v37-monster-target .monster-battle-info{grid-area:info!important;min-width:0!important;display:grid!important;gap:5px!important}.v37-monster-target .v21-monster-title-line{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:6px!important;align-items:center!important}.v37-monster-target h2{font-size:16px!important;line-height:1.1!important;margin:0!important;color:var(--v37-text)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v37-monster-target .v17-mob-index{width:22px!important;height:22px!important;line-height:22px!important;font-size:10px!important;background:rgba(255,159,46,.13)!important;border:1px solid rgba(255,159,46,.28)!important;color:var(--v37-accent2)!important;border-radius:8px!important;text-align:center!important}.v37-monster-target .v23-monster-badges{display:flex!important;gap:4px!important;min-height:20px!important;overflow:hidden!important;flex-wrap:nowrap!important}.v37-monster-target .bar.hp{height:8px!important;margin:0!important}.v37-monster-target .v21-monster-stats{display:flex!important;gap:7px!important;justify-content:flex-start!important;font-size:11px!important;color:var(--v37-muted)!important;white-space:nowrap!important;overflow:hidden!important}.v37-monster-target .v21-monster-stats span{overflow:hidden!important;text-overflow:ellipsis!important}.v37-monster-target .v17-target-actions{grid-area:act!important;position:static!important;align-self:center!important;justify-self:end!important}.v37-monster-target .v17-sword-btn{width:48px!important;height:54px!important;min-height:54px!important;border-radius:15px!important;font-size:24px!important;padding:0!important;background:linear-gradient(180deg,var(--v37-accent2),var(--v37-accent))!important;color:#171717!important}.v37-player{min-height:112px!important;display:grid!important;gap:8px!important;padding:10px!important;border-radius:16px!important;background:linear-gradient(180deg,#242424,#1d1d1d)!important;border:1px solid var(--v37-line)!important;overflow:hidden!important}.v37-player.self{border-color:rgba(255,159,46,.36)!important}.v37-player .player-card-head{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important}.v37-player .player-avatar{width:42px!important;height:42px!important;min-width:42px!important;border-radius:14px!important;background:#151515!important;border:1px solid var(--v37-line)!important;font-size:24px!important}.v37-player h3{font-size:14px!important;line-height:1.1!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v37-player small{font-size:10px!important}.v37-player .player-bars{display:grid!important;gap:5px!important}.v37-player .stat-row{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:7px!important;align-items:center!important}.v37-player .stat-row span{font-size:10.5px!important;color:var(--v37-muted)!important;white-space:nowrap!important}.v37-player .bar{height:7px!important}.v37-player .v25-player-status{width:100%!important;min-height:28px!important;font-size:11px!important;line-height:1.1!important;text-align:left!important;justify-content:flex-start!important;background:#191919!important;border:1px solid var(--v37-line)!important;color:var(--v37-soft)!important;padding:6px 8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v37-player .v25-player-status.attack,.v37-player .v25-player-status.skill,.v37-player .v25-player-status.help,.v37-player .v25-player-status.taunt{color:var(--v37-accent2)!important;background:rgba(255,159,46,.09)!important;border-color:rgba(255,159,46,.24)!important}.v17-taunt-badge{background:rgba(255,159,46,.13)!important;border:1px solid rgba(255,159,46,.3)!important;color:var(--v37-accent2)!important;border-radius:999px!important;font-size:10px!important;padding:3px 7px!important;white-space:nowrap!important}.v33-hidden-title,.v17-section-title{display:none!important}

/* Боковые боевые панели */
.v37-skill-drawer.v16-skill-drawer,.v37-help-drawer.v17-help-drawer{position:fixed!important;z-index:91!important;top:82px!important;bottom:auto!important;width:min(310px,28vw)!important;min-width:230px!important;max-width:330px!important;max-height:58vh!important;background:rgba(28,28,28,.98)!important;border:1px solid var(--v37-line)!important;box-shadow:var(--v37-shadow)!important;border-radius:18px!important;padding:12px!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;opacity:1!important;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s ease!important}.v37-help-drawer.v17-help-drawer{left:10px!important;right:auto!important;transform:translateX(calc(-100% - 20px))!important}.v37-help-drawer.v17-help-drawer.open{transform:translateX(0)!important}.v37-skill-drawer.v16-skill-drawer{right:10px!important;left:auto!important;transform:translateX(calc(100% + 20px))!important}.v37-skill-drawer.v16-skill-drawer.open{transform:translateX(0)!important}.v17-drawer-head{display:flex!important;justify-content:space-between!important;gap:8px!important;align-items:center!important;padding-bottom:8px!important;border-bottom:1px solid var(--v37-line)!important}.v17-drawer-head b{font-size:15px!important}.v17-drawer-head small{display:none!important}.v17-drawer-head .ghost.small{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important}.v37-skill-drawer .v17-skill-scroll,.v37-help-drawer .v17-help-scroll{max-height:calc(58vh - 56px)!important;overflow:auto!important;padding:8px 4px 4px 0!important}.v37-skill-drawer h3{font-size:12px!important;margin:8px 0 6px!important;color:var(--v37-accent2)!important;text-transform:uppercase!important;letter-spacing:.06em!important}.v37-ability-main,.v32-ability-main{grid-template-columns:38px minmax(0,1fr)!important;padding:7px!important;gap:8px!important;background:#1b1b1b!important;border:1px solid var(--v37-line)!important;border-radius:14px!important}.v37-ability-main span,.v32-ability-main span{width:36px!important;height:36px!important;border-radius:12px!important;background:#121212!important;border:1px solid rgba(255,255,255,.08)!important;font-size:21px!important}.v37-ability-main b,.v32-ability-main b{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v37-ability-main small,.v32-ability-main small{font-size:10px!important;color:var(--v37-muted)!important}.v32-ability-targets{background:#161616!important;border:1px solid var(--v37-line)!important;border-radius:12px!important;padding:6px!important;gap:5px!important}.v32-ability-targets button{width:100%!important;min-height:30px!important;font-size:10.5px!important;padding:6px!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v17-cooldown-ability{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;gap:6px!important;align-items:center!important;background:#1b1b1b!important;border:1px solid var(--v37-line)!important;border-radius:12px!important;padding:7px!important}.v17-help-friend{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}.v17-help-friend span{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v17-help-friend button{min-height:32px!important;font-size:11px!important}.v25-help-note{font-size:11px!important;line-height:1.25!important;margin:8px 0!important;color:var(--v37-muted)!important}.v17-drawer-fade{background:rgba(0,0,0,.25)!important;backdrop-filter:blur(1px)!important}

/* Модалки и статусы */
.modal-back{background:rgba(0,0,0,.72)!important;backdrop-filter:blur(4px)!important}.modal{background:#1f1f1f!important;border:1px solid var(--v37-line)!important;border-radius:22px!important;box-shadow:var(--v37-shadow)!important}.modal-close{background:#292929!important;border:1px solid var(--v37-line)!important;color:var(--v37-accent2)!important}.status-help-card,.v34-status-help,.v33-status-help{padding:10px!important;display:grid!important;gap:12px!important;background:linear-gradient(180deg,#242424,#1b1b1b)!important;border:1px solid var(--v37-line)!important;border-radius:18px!important}.v34-status-pill,.v33-status-pill{width:max-content!important;border-radius:999px!important;padding:5px 10px!important;background:rgba(255,159,46,.13)!important;border:1px solid rgba(255,159,46,.28)!important;color:var(--v37-accent2)!important;font-size:11px!important;font-weight:900!important;text-transform:lowercase!important}.status-help-card p{background:#191919!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:14px!important;padding:12px!important;color:var(--v37-soft)!important;line-height:1.45!important}

/* Адаптация */
@media(max-width:980px){
  .v37-profile-layout{grid-template-columns:1fr!important;grid-template-areas:"hero" "stats" "equip"!important}.v37-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v37-friends-layout{grid-template-columns:1fr!important}.trade-grid{grid-template-columns:1fr!important}.v37-location-hero{grid-template-columns:1fr!important}.v37-location-actions{justify-content:flex-start!important}.v37-location-actions button{min-width:0!important;flex:1 1 150px!important}.v37-skill-drawer.v16-skill-drawer,.v37-help-drawer.v17-help-drawer{width:min(330px,42vw)!important;min-width:220px!important;max-height:56vh!important}
}
@media(max-width:620px){
  .v37-screen,.screen{padding:10px!important;padding-bottom:88px!important}.v37-topbar,.topbar{min-height:58px!important;padding:8px 10px!important}.v37-top-title h1,.topbar h1{font-size:17px!important}.v37-top-title p,.topbar p{display:none!important}.v37-net-pill,.net-pill{display:none!important}.v37-hamburger,.hamburger{width:40px!important;height:40px!important;min-height:40px!important}.v37-bottom-nav,.bottom-nav{bottom:8px!important;width:calc(100% - 16px)!important;border-radius:16px!important}.v37-bottom-nav button,.bottom-nav button{min-height:46px!important;padding:6px 4px!important}.v37-bottom-nav span,.bottom-nav span{font-size:9px!important}.v37-location-monster-grid{grid-template-columns:1fr!important;gap:9px!important}.v37-location-monster-card{grid-template-columns:48px minmax(0,1fr) 40px!important;padding:10px!important;gap:7px!important}.v37-location-monster-card .location-monster-top{grid-template-columns:20px 44px minmax(0,1fr)!important}.v37-location-monster-card .monster-portrait{width:44px!important;height:44px!important;min-width:44px!important}.v37-location-monster-card .monster-portrait span{font-size:25px!important}.v37-location-monster-card h3{font-size:14px!important}.v37-location-monster-card .monster-stats{font-size:10px!important}.v37-location-monster-card .v20-location-attack,.v37-location-monster-card .v24-location-attack{width:40px!important;height:66px!important;min-height:66px!important}.v37-loot-pile .loot-pile-scroll,.v37-inventory-panel .inventory-list,.item-list{grid-template-columns:1fr!important}.v37-item-card,.item-card{grid-template-columns:50px minmax(0,1fr) auto!important;padding:10px!important;min-height:86px!important}.item-icon-wrap{width:50px!important;min-width:50px!important}.item-emblem{width:42px!important;height:42px!important;font-size:23px!important}.item-body h3{font-size:14px!important}.item-description{font-size:11px!important;-webkit-line-clamp:2!important}.item-actions button{flex:1 1 auto!important}.v37-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v37-equip-slot{min-height:104px!important}.v37-resource-card{padding:10px!important}.v37-battle{padding:8px!important;gap:8px!important}.v37-battle .battle-timer{min-height:62px!important;padding:9px!important}.v37-battle #turn-title{font-size:14px!important}.v37-battle #turn-hint{font-size:10px!important}.v37-battle #turn-time{font-size:16px!important}.v37-battle .v28-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v37-battle .v28-monster-grid.count-1{grid-template-columns:1fr!important}.v37-battle .v28-monster-grid.count-3>.v37-monster-target:nth-child(3){grid-column:1/-1!important}.v37-battle .battle-party-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v37-battle .battle-party-cards.count-1{grid-template-columns:1fr!important}.v37-battle .battle-party-cards.count-3>.v37-player:nth-child(3){grid-column:1/-1!important}.v37-monster-target{min-height:88px!important;grid-template-columns:42px minmax(0,1fr) 38px!important;gap:7px!important;padding:8px!important;border-radius:14px!important}.v37-battle .v28-monster-grid.count-1 .v37-monster-target{min-height:104px!important;grid-template-columns:54px minmax(0,1fr) 46px!important}.v37-monster-target .monster-portrait.battle{width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important}.v37-battle .v28-monster-grid.count-1 .monster-portrait.battle{width:52px!important;height:52px!important;min-width:52px!important}.v37-monster-target .monster-portrait span{font-size:25px!important}.v37-battle .v28-monster-grid.count-1 .monster-portrait span{font-size:31px!important}.v37-monster-target .v21-monster-title-line{grid-template-columns:19px minmax(0,1fr)!important;gap:4px!important}.v37-monster-target h2{font-size:12.5px!important}.v37-monster-target .v17-mob-index{width:18px!important;height:18px!important;line-height:18px!important;font-size:9px!important}.v37-monster-target .v23-monster-badges{min-height:16px!important;gap:3px!important}.v37-monster-target .v23-battle-badge{height:16px!important;min-height:16px!important;line-height:15px!important;font-size:8px!important;padding:0 5px!important}.v37-monster-target .v21-monster-stats{font-size:9px!important;gap:4px!important}.v37-monster-target .v17-sword-btn{width:38px!important;height:46px!important;min-height:46px!important;font-size:20px!important;border-radius:13px!important}.v37-player{min-height:96px!important;padding:8px!important;gap:6px!important;border-radius:14px!important}.v37-player .player-card-head{grid-template-columns:34px minmax(0,1fr)!important;gap:6px!important}.v37-player .player-avatar{width:34px!important;height:34px!important;min-width:34px!important;font-size:20px!important}.v37-player h3{font-size:12px!important}.v37-player .stat-row{grid-template-columns:58px minmax(0,1fr)!important;gap:5px!important}.v37-player .stat-row span{font-size:9px!important}.v37-player .bar{height:6px!important}.v37-player .v25-player-status{min-height:24px!important;font-size:9px!important;padding:5px 6px!important}.v37-battle .battle-log-scroll{max-height:128px!important}.v37-battle .battle-log-scroll p{font-size:10.5px!important;padding:7px!important}.v37-skill-drawer.v16-skill-drawer,.v37-help-drawer.v17-help-drawer{top:64px!important;width:38vw!important;min-width:150px!important;max-width:185px!important;max-height:48vh!important;padding:8px!important;border-radius:16px!important}.v37-skill-drawer .v17-skill-scroll,.v37-help-drawer .v17-help-scroll{max-height:calc(48vh - 50px)!important}.v17-drawer-head b{font-size:12px!important}.v17-drawer-head .ghost.small{width:30px!important;height:30px!important;min-height:30px!important}.v37-ability-main,.v32-ability-main{grid-template-columns:30px minmax(0,1fr)!important;gap:5px!important;padding:5px!important}.v37-ability-main span,.v32-ability-main span{width:28px!important;height:28px!important;font-size:17px!important}.v37-ability-main b,.v32-ability-main b{font-size:10px!important}.v37-ability-main small,.v32-ability-main small{font-size:8.5px!important}.v17-help-friend{grid-template-columns:1fr!important;text-align:center!important;padding:7px!important}.v17-help-friend span{font-size:10px!important}.v17-help-friend button{width:100%!important;min-height:28px!important;font-size:9px!important}.v25-help-note,.v32-drawer-mini-note{display:none!important}.modal{max-height:88dvh!important;border-radius:18px!important;padding:14px!important}
}
@media(max-width:380px){
  .v37-battle .v28-monster-grid.count-2,.v37-battle .v28-monster-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v37-battle .battle-party-cards.count-2,.v37-battle .battle-party-cards.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v37-monster-target{grid-template-columns:36px minmax(0,1fr) 34px!important;padding:7px!important}.v37-monster-target .monster-portrait.battle{width:36px!important;height:36px!important;min-width:36px!important}.v37-monster-target .monster-portrait span{font-size:22px!important}.v37-monster-target h2{font-size:11.5px!important}.v37-monster-target .v21-monster-stats{font-size:8px!important}.v37-monster-target .v17-sword-btn{width:34px!important;height:42px!important;min-height:42px!important;font-size:18px!important}.v37-player .player-card-head{grid-template-columns:30px minmax(0,1fr)!important}.v37-player .player-avatar{width:30px!important;height:30px!important;min-width:30px!important;font-size:18px!important}.v37-player h3{font-size:11px!important}.v37-player .stat-row{grid-template-columns:52px minmax(0,1fr)!important}.v37-skill-drawer.v16-skill-drawer,.v37-help-drawer.v17-help-drawer{width:42vw!important;min-width:142px!important;max-width:170px!important}
}

/* =========================================================
   v38 — чистовая правка текстового интерфейса
   Фикс карточек монстров, экипировки, друзей, предметов и модалок
   ========================================================= */
#modal-root:empty{display:none!important;pointer-events:none!important;}
#modal-root:not(:empty){display:block!important;pointer-events:auto!important;}
.v38-screen{max-width:1380px!important;margin:0 auto!important;padding-bottom:104px!important;}
.v38-bottom-nav{width:min(720px,calc(100% - 24px))!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:hidden!important;}
.v38-bottom-nav button{min-width:0!important;width:100%!important;transform:none!important;transition:background .15s ease,border-color .15s ease,color .15s ease!important;}
.v38-bottom-nav button:hover{transform:none!important;filter:none!important;background:rgba(255,159,46,.10)!important;}
.v38-bottom-nav button.active{background:rgba(255,159,46,.18)!important;border-color:rgba(255,159,46,.45)!important;color:var(--v37-accent2)!important;}
.v38-bottom-nav button.active span{color:var(--v37-accent2)!important;}

/* Боковая быстрая панель игрока */
.v38-side{width:300px!important;max-width:min(90vw,320px)!important;padding:14px!important;border-right:2px solid rgba(255,159,46,.50)!important;}
.v38-side-head{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:10px!important;}
.v38-side-head b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.v38-side-head button{width:100%!important;margin:0!important;}
.v38-quick-profile{display:grid!important;gap:12px!important;padding:4px 0 12px!important;}
.v38-quick-title{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;}
.v38-quick-title>span{width:44px!important;height:44px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:linear-gradient(180deg,#292929,#171717)!important;border:1px solid rgba(255,159,46,.24)!important;font-size:22px!important;}
.v38-quick-title b{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#fff!important;}
.v38-quick-title small{display:block!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v38-quick-bars{display:grid!important;gap:8px!important;}
.v38-quick-bars article{background:#202020!important;border:1px solid var(--v37-line)!important;border-radius:14px!important;padding:10px!important;display:grid!important;gap:7px!important;}
.v38-quick-bars article>div:first-child{display:flex!important;justify-content:space-between!important;gap:8px!important;align-items:center!important;font-size:13px!important;}
.v38-quick-bars b{color:#fff!important;}
.v38-quick-bars .bar{height:7px!important;}
.v38-quick-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
.v38-quick-grid span{min-width:0!important;text-align:center!important;background:#202020!important;border:1px solid var(--v37-line)!important;border-radius:13px!important;padding:9px 5px!important;display:grid!important;gap:2px!important;}
.v38-quick-grid b{font-size:13px!important;color:#fff!important;}
.v38-quick-grid small{font-size:9px!important;text-transform:lowercase!important;}
.v38-side-nav{display:grid!important;gap:8px!important;}
.v38-side-nav button{margin:0!important;width:100%!important;}

/* Локационные монстры — отдельная чистая сетка без старых v20-v37 конфликтов */
.v38-location-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-top:16px!important;align-items:stretch!important;}
.v38-location-monster-grid.count-1{grid-template-columns:minmax(0,720px)!important;}
.v38-loc-monster{position:relative!important;min-width:0!important;min-height:126px!important;display:grid!important;grid-template-columns:28px 66px minmax(0,1fr) 52px!important;gap:10px!important;align-items:center!important;padding:14px!important;border-radius:18px!important;background:linear-gradient(135deg,#242424,#191919)!important;border:1px solid rgba(255,255,255,.12)!important;border-left:3px solid var(--v37-accent)!important;box-shadow:0 16px 36px rgba(0,0,0,.24)!important;overflow:hidden!important;}
.v38-loc-monster:before{content:"";position:absolute;inset:-30% auto auto -10%;width:180px;height:180px;background:radial-gradient(circle,rgba(255,159,46,.12),transparent 68%);pointer-events:none!important;}
.v38-loc-monster.dead{opacity:.55!important;filter:grayscale(.4)!important;}
.v38-mob-index{width:24px!important;height:24px!important;border-radius:9px!important;display:grid!important;place-items:center!important;background:rgba(255,159,46,.16)!important;border:1px solid rgba(255,159,46,.36)!important;color:var(--v37-accent2)!important;font-weight:900!important;font-size:12px!important;z-index:1!important;}
.v38-mob-icon{width:64px!important;height:64px!important;border-radius:18px!important;display:grid!important;place-items:center!important;background:linear-gradient(180deg,#303030,#171717)!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:inset 0 0 0 1px rgba(255,159,46,.10)!important;z-index:1!important;}
.v38-mob-icon span{font-size:38px!important;line-height:1!important;filter:drop-shadow(0 2px 0 #000)!important;}
.v38-mob-main{min-width:0!important;display:grid!important;gap:8px!important;z-index:1!important;}
.v38-mob-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important;}
.v38-mob-head h3{margin:0!important;font-size:19px!important;line-height:1.05!important;color:#fff!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;text-shadow:0 2px 0 rgba(0,0,0,.65)!important;}
.v38-mob-flags{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:4px!important;}
.v38-mob-flag{min-height:20px!important;height:20px!important;padding:0 7px!important;border-radius:999px!important;font-size:10px!important;line-height:18px!important;text-transform:lowercase!important;background:#282828!important;color:var(--v37-soft)!important;}
.v38-mob-flag.pack{background:rgba(255,159,46,.14)!important;color:var(--v37-accent2)!important;border-color:rgba(255,159,46,.36)!important;}
.v38-mob-flag.aggro{background:rgba(217,93,57,.16)!important;color:#ffb091!important;border-color:rgba(217,93,57,.38)!important;}
.v38-mob-stats{display:flex!important;flex-wrap:wrap!important;gap:7px!important;font-size:12px!important;color:var(--v37-soft)!important;}
.v38-mob-stats span{background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:10px!important;padding:4px 8px!important;white-space:nowrap!important;}
.v38-mob-actions{display:grid!important;gap:7px!important;z-index:2!important;}
.v38-mob-actions button{width:100%!important;min-width:0!important;min-height:40px!important;padding:6px!important;border-radius:13px!important;font-size:17px!important;}
.v38-mob-actions .ghost{font-size:13px!important;color:var(--v37-accent2)!important;}

/* Профиль и экипировка */
.v38-profile-layout{display:grid!important;grid-template-columns:minmax(250px,300px) minmax(420px,1fr) minmax(270px,360px)!important;grid-template-areas:"hero equip stats"!important;gap:14px!important;align-items:start!important;}
.v38-profile-layout .v27-profile-hero{grid-area:hero!important;}
.v38-equipment-panel{grid-area:equip!important;padding:16px!important;overflow:hidden!important;}
.v38-profile-card{grid-area:stats!important;}
.v38-slot-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(132px,1fr))!important;gap:12px!important;}
.v38-equip-slot{position:relative!important;min-width:0!important;min-height:138px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;padding:14px 10px!important;border-radius:17px!important;background:linear-gradient(180deg,#242424,#191919)!important;border:1px solid var(--v37-line)!important;overflow:hidden!important;text-align:center!important;}
.v38-equip-slot:before{content:"";position:absolute;inset:auto -20% -40% -20%;height:90px;background:radial-gradient(circle,rgba(255,159,46,.14),transparent 68%);pointer-events:none!important;}
.v38-equip-slot.filled{border-color:rgba(255,159,46,.50)!important;background:linear-gradient(180deg,#2b261f,#1a1a1a)!important;}
.v38-equip-slot .v33-slot-name{order:1!important;position:static!important;font-size:12px!important;line-height:1.15!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--v37-muted)!important;font-weight:900!important;white-space:normal!important;}
.v38-equip-slot .slot-icon{order:2!important;width:56px!important;height:56px!important;min-width:56px!important;margin:3px 0 0!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:#151515!important;border:1px solid rgba(255,255,255,.12)!important;font-size:32px!important;z-index:1!important;}
.v38-equip-slot .v33-slot-item{order:3!important;position:static!important;margin-top:3px!important;max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:block!important;font-size:12px!important;line-height:1.2!important;font-weight:900!important;color:#fff!important;z-index:1!important;}
.v38-equip-slot.empty .v33-slot-item{color:var(--v37-muted)!important;}
.v38-profile-card .profile-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
.v38-profile-card .v27-stat-card{min-height:74px!important;border-radius:14px!important;}
.v38-profile-card .v37-resource-card{grid-column:span 2!important;}
.v38-profile-card .v37-resource-card em{display:none!important;}

/* Друзья */
.v38-friends-page{display:grid!important;gap:14px!important;}
.v38-friends-hero,.v38-friends-card{background:linear-gradient(180deg,#222,#1a1a1a)!important;border:1px solid var(--v37-line)!important;border-radius:20px!important;box-shadow:0 14px 34px rgba(0,0,0,.24)!important;}
.v38-friends-hero{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important;padding:18px!important;border-left:3px solid var(--v37-accent)!important;}
.v38-section-kicker{display:inline-block!important;padding:5px 9px!important;border-radius:999px!important;background:rgba(255,159,46,.14)!important;border:1px solid rgba(255,159,46,.30)!important;color:var(--v37-accent2)!important;text-transform:uppercase!important;font-size:11px!important;font-weight:900!important;}
.v38-friends-hero h2{margin:9px 0 6px!important;font-size:28px!important}.v38-friends-hero p{margin:0!important;color:var(--v37-soft)!important;line-height:1.45!important;}
.v38-friends-status{min-width:180px!important;background:#181818!important;border:1px solid var(--v37-line)!important;border-radius:16px!important;padding:13px!important;display:grid!important;gap:4px!important;text-align:right!important;}
.v38-friends-status b{color:var(--v37-accent2)!important;}
.v38-friends-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;align-items:start!important;}
.v38-friends-card{padding:16px!important;min-width:0!important;}
.v38-friends-card h4{margin:12px 0 8px!important;color:#fff!important;}
.v38-card-head{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:10px!important;margin-bottom:12px!important;padding-bottom:10px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;}
.v38-card-head h3{margin:0!important;font-size:22px!important}.v38-card-head small{text-align:right!important;}
.v38-friend-list{display:grid!important;gap:9px!important;}
.v38-friend-entry,.v38-request-entry,.v38-request-wait{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;background:#1b1b1b!important;border:1px solid var(--v37-line)!important;border-radius:16px!important;padding:10px!important;}
.v38-friend-entry.online{border-color:rgba(255,159,46,.30)!important;}
.v38-friend-avatar{width:42px!important;height:42px!important;border-radius:14px!important;background:#252525!important;border:1px solid rgba(255,255,255,.11)!important;display:grid!important;place-items:center!important;font-size:21px!important;}
.v38-friend-main{min-width:0!important;display:grid!important;gap:3px!important;}.v38-friend-main b{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}.v38-friend-main small{font-size:11px!important;}
.v38-friend-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:6px!important;}.v38-friend-actions button{min-height:32px!important;padding:6px 9px!important;font-size:12px!important;}
.v38-request-entry{grid-template-columns:minmax(0,1fr) auto!important;}.v38-request-entry>div:last-child{display:flex!important;gap:7px!important;flex-wrap:wrap!important;justify-content:flex-end!important;}
.v38-request-wait,.v38-friends-empty{display:block!important;padding:12px!important;background:#1b1b1b!important;border:1px dashed rgba(255,255,255,.12)!important;border-radius:14px!important;color:var(--v37-muted)!important;}
.v38-trade-start p{color:var(--v37-soft)!important;}.v38-trade-select{display:grid!important;gap:7px!important;margin:10px 0!important;}

/* Предметы */
.v38-item-card{position:relative!important;display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;min-height:112px!important;padding:12px!important;border-radius:18px!important;background:linear-gradient(135deg,#242424,#191919)!important;border:1px solid rgba(255,255,255,.12)!important;border-left:3px solid var(--v37-accent)!important;box-shadow:0 12px 28px rgba(0,0,0,.22)!important;overflow:hidden!important;}
.v38-item-card:before{content:"";position:absolute;inset:-40% auto auto -10%;width:145px;height:145px;background:radial-gradient(circle,rgba(255,159,46,.12),transparent 67%);pointer-events:none!important;animation:v38ParticleFloat 4.8s ease-in-out infinite!important;}
.v38-item-spark{position:absolute;right:12px;top:10px;width:5px;height:5px;border-radius:50%;background:var(--v37-accent2);box-shadow:-18px 22px 0 rgba(255,159,46,.28),-42px 8px 0 rgba(255,255,255,.12);opacity:.75;pointer-events:none;}
@keyframes v38ParticleFloat{50%{transform:translate(10px,8px) scale(1.05);opacity:.75}}
.v38-item-card .item-icon-wrap{width:66px!important;min-width:66px!important;height:82px!important;display:grid!important;grid-template-rows:56px auto!important;place-items:center!important;gap:5px!important;z-index:1!important;}
.v38-item-card .item-emblem{width:56px!important;height:56px!important;border-radius:17px!important;background:#151515!important;border:1px solid rgba(255,255,255,.12)!important;display:grid!important;place-items:center!important;font-size:32px!important;filter:drop-shadow(0 2px 0 #000)!important;}
.v38-item-card .item-type-label{font-size:10px!important;color:var(--v37-muted)!important;text-transform:lowercase!important;}
.v38-item-card .item-body{min-width:0!important;z-index:1!important;}.v38-item-head{display:flex!important;justify-content:space-between!important;gap:8px!important;align-items:flex-start!important;}
.v38-item-card h3{margin:0!important;font-size:17px!important;line-height:1.15!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:#fff!important;text-shadow:0 2px 0 rgba(0,0,0,.65)!important;}
.v38-item-card .item-weight{position:static!important;flex:0 0 auto!important;border-radius:999px!important;background:rgba(255,159,46,.12)!important;border:1px solid rgba(255,159,46,.26)!important;color:var(--v37-accent2)!important;font-size:11px!important;padding:4px 8px!important;white-space:nowrap!important;}
.v38-item-card .item-description{margin:5px 0 0!important;font-size:12px!important;line-height:1.25!important;color:var(--v37-soft)!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.v38-item-card .item-stats-line{display:block!important;margin-top:6px!important;font-size:11px!important;color:var(--v37-accent2)!important;text-shadow:0 1px 0 rgba(0,0,0,.8)!important;white-space:normal!important;}
.v38-item-card .item-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:6px!important;margin-top:8px!important;}
.v38-item-card .item-actions button{min-height:32px!important;padding:6px 10px!important;font-size:12px!important;border-radius:11px!important;}
.v38-item-detail-card{position:relative!important;overflow:hidden!important;background:linear-gradient(180deg,#262626,#1a1a1a)!important;border:1px solid var(--v37-line)!important;border-left:3px solid var(--v37-accent)!important;}
.v38-detail-glow{position:absolute;inset:-120px auto auto 50%;width:260px;height:260px;transform:translateX(-50%);background:radial-gradient(circle,rgba(255,159,46,.16),transparent 70%);pointer-events:none!important;}
.v38-item-detail-card .item-detail-icon,.item-detail-icon{position:relative!important;background:#151515!important;border-color:rgba(255,159,46,.22)!important;}
.v38-item-detail-card h2{text-shadow:0 2px 0 #000!important;}

@media(max-width:1080px){
  .v38-profile-layout{grid-template-columns:1fr!important;grid-template-areas:"hero" "equip" "stats"!important;}
  .v38-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .v38-friends-grid{grid-template-columns:1fr!important;}
  .v38-friends-hero{grid-template-columns:1fr!important;}.v38-friends-status{text-align:left!important;}
}
@media(max-width:820px){
  .v38-screen{padding:10px!important;padding-bottom:92px!important;}
  .v38-location-monster-grid{grid-template-columns:1fr!important;gap:9px!important;}
  .v38-location-monster-grid.count-1{grid-template-columns:1fr!important;}
  .v38-loc-monster{min-height:112px!important;grid-template-columns:22px 52px minmax(0,1fr) 42px!important;gap:8px!important;padding:10px!important;border-radius:16px!important;}
  .v38-mob-index{width:21px!important;height:21px!important;font-size:10px!important;border-radius:8px!important;}
  .v38-mob-icon{width:50px!important;height:50px!important;border-radius:15px!important;}.v38-mob-icon span{font-size:30px!important;}
  .v38-mob-head{grid-template-columns:1fr!important;gap:4px!important;}.v38-mob-flags{justify-content:flex-start!important;}
  .v38-mob-head h3{font-size:16px!important;}.v38-mob-stats{font-size:10.5px!important;gap:5px!important;}.v38-mob-stats span{padding:3px 6px!important;}
  .v38-mob-actions button{min-height:34px!important;font-size:14px!important;}
  .v38-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}.v38-equip-slot{min-height:124px!important;padding:11px 8px!important;}
  .v38-equip-slot .slot-icon{width:50px!important;height:50px!important;min-width:50px!important;font-size:28px!important;}.v38-equip-slot .v33-slot-item{font-size:11px!important;}
  .v38-friends-hero h2{font-size:23px!important;}.v38-friend-entry{grid-template-columns:38px minmax(0,1fr)!important;}.v38-friend-actions{grid-column:1/-1!important;justify-content:stretch!important;}.v38-friend-actions button{flex:1 1 auto!important;}
  .v38-item-card{grid-template-columns:56px minmax(0,1fr)!important;min-height:102px!important;padding:10px!important;gap:9px!important;}.v38-item-card .item-icon-wrap{width:56px!important;min-width:56px!important;height:72px!important;}.v38-item-card .item-emblem{width:48px!important;height:48px!important;font-size:27px!important;}.v38-item-card h3{font-size:15px!important;}.v38-item-card .item-description{font-size:11px!important;}.v38-item-card .item-stats-line{font-size:10px!important;}.v38-item-card .item-actions button{flex:1 1 auto!important;}
  .v38-bottom-nav button:hover{transform:none!important;}
}
@media(max-width:430px){
  .v38-loc-monster{grid-template-columns:20px 44px minmax(0,1fr) 38px!important;min-height:108px!important;gap:6px!important;}.v38-mob-icon{width:44px!important;height:44px!important;}.v38-mob-icon span{font-size:27px!important;}.v38-mob-head h3{font-size:14px!important;}.v38-mob-stats{font-size:9.5px!important;}.v38-mob-actions button{min-height:32px!important;padding:4px!important;}
  .v38-bottom-nav{width:calc(100% - 14px)!important;}.v38-bottom-nav span{font-size:9px!important;}
}


/* v39 — чистый редизайн предметов, экипировки и характеристик */
.v39-item-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  gap:14px!important;
  min-height:118px!important;
  padding:14px!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 12% 18%,rgba(255,153,41,.09),transparent 34%),
    linear-gradient(145deg,#252525,#171717)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-left:3px solid rgba(255,153,41,.92)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.05)!important;
  overflow:hidden!important;
}
.v39-item-card:before,.v39-item-card:after{display:none!important;content:none!important;animation:none!important;}
.v39-item-aura{
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 93% 12%,rgba(255,194,94,.20) 0 2px,transparent 3px),
    radial-gradient(circle at 87% 24%,rgba(255,255,255,.12) 0 1px,transparent 2px),
    linear-gradient(90deg,rgba(255,153,41,.05),transparent 35%)!important;
  opacity:.9!important;
}
.v39-item-icon-wrap{
  position:relative!important;
  width:74px!important;
  height:74px!important;
  align-self:center!important;
  border-radius:20px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,#303030,#101010)!important;
  border:1px solid rgba(255,153,41,.28)!important;
  box-shadow:0 12px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.v39-item-icon-wrap .item-emblem{font-size:36px!important;filter:drop-shadow(0 2px 0 #000)!important;}
.v39-item-icon-wrap .item-type-label{
  position:absolute!important;left:50%!important;bottom:-18px!important;transform:translateX(-50%)!important;
  width:max-content!important;max-width:92px!important;font-size:9px!important;color:#cfcfcf!important;text-transform:lowercase!important;
}
.v39-item-body{position:relative!important;min-width:0!important;display:grid!important;gap:7px!important;}
.v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:start!important;}
.v39-item-head h3{
  margin:0!important;font-size:17px!important;line-height:1.12!important;color:#fff!important;
  text-shadow:0 2px 0 rgba(0,0,0,.75), 0 0 14px rgba(255,153,41,.18)!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
}
.v39-item-card .item-description{
  margin:0!important;color:#d9d9d9!important;font-size:12.5px!important;line-height:1.35!important;
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
}
.v39-item-card .item-stats-line{
  color:#ffc96e!important;background:rgba(255,153,41,.10)!important;border:1px solid rgba(255,153,41,.20)!important;
  border-radius:999px!important;padding:4px 8px!important;width:max-content!important;max-width:100%!important;
}
.v39-item-card .item-weight{
  position:static!important;border-radius:999px!important;padding:5px 9px!important;background:rgba(255,153,41,.13)!important;
  border:1px solid rgba(255,153,41,.32)!important;color:#ffd99b!important;font-size:12px!important;
}
.v39-item-card .item-actions{display:flex!important;gap:8px!important;justify-content:flex-start!important;margin-top:2px!important;}
.v39-item-card .item-actions button{min-width:118px!important;padding:8px 11px!important;border-radius:12px!important;font-size:13px!important;}

.v39-item-detail-card{
  position:relative!important;
  padding:26px 20px 18px!important;
  border-radius:26px!important;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,153,41,.14),transparent 34%),
    linear-gradient(145deg,#252525,#181818)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-top:3px solid rgba(255,153,41,.78)!important;
  box-shadow:0 22px 60px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.05)!important;
  overflow:hidden!important;
}
.v39-detail-aura{position:absolute!important;inset:0!important;pointer-events:none!important;background:radial-gradient(circle at 78% 16%,rgba(255,220,145,.16),transparent 20%)!important;}
.v39-item-detail-card:before,.v39-item-detail-card:after{animation:none!important;}
.v39-item-detail-card .item-detail-icon{
  width:92px!important;height:92px!important;border-radius:24px!important;
  background:linear-gradient(145deg,#303030,#101010)!important;border:1px solid rgba(255,153,41,.35)!important;
  box-shadow:0 16px 30px rgba(0,0,0,.34),0 0 0 5px rgba(255,153,41,.04)!important;
}
.v39-item-detail-card h2{text-shadow:0 2px 0 #000,0 0 18px rgba(255,153,41,.18)!important;}
.v39-detail-sections{width:min(680px,100%)!important;display:grid!important;gap:9px!important;}
.v39-item-reqs{
  width:min(680px,100%)!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:3px!important;
}
.v39-req-block{
  display:grid!important;align-content:start!important;gap:6px!important;text-align:left!important;
  padding:12px!important;border-radius:16px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.10)!important;
}
.v39-req-block>b{font-size:13px!important;color:#fff!important;}
.v39-req-block span{font-size:12px!important;color:#d7d7d7!important;}
.v39-req-block span.ok{color:#bff2d4!important;}
.v39-req-block span.bad{color:#ffb0a1!important;}

.v39-profile-layout{
  display:grid!important;grid-template-columns:minmax(250px,300px) minmax(420px,1fr) minmax(300px,390px)!important;
  grid-template-areas:"hero equip stats"!important;gap:14px!important;align-items:start!important;
}
.v39-profile-hero{grid-area:hero!important;background:linear-gradient(145deg,#242424,#171717)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:22px!important;}
.v39-equipment-panel{grid-area:equip!important;overflow:visible!important;background:linear-gradient(145deg,#232323,#171717)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:22px!important;padding:16px!important;}
.v39-profile-card{grid-area:stats!important;background:linear-gradient(145deg,#232323,#171717)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:22px!important;padding:16px!important;}
.v39-panel-head{display:flex!important;justify-content:space-between!important;gap:10px!important;align-items:flex-start!important;margin-bottom:12px!important;}
.v39-panel-head h2{margin:0!important}.v39-panel-head p{margin:5px 0 0!important}.v39-panel-head>span{background:rgba(255,153,41,.13)!important;border:1px solid rgba(255,153,41,.25)!important;border-radius:999px!important;padding:7px 10px!important;color:#ffd08a!important;font-weight:900!important;}
.v39-slot-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
}
.v39-equip-slot{
  min-height:128px!important;
  display:grid!important;
  grid-template-rows:auto 1fr auto!important;
  align-items:center!important;justify-items:center!important;
  padding:12px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#222,#171717)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 12px 28px rgba(0,0,0,.18)!important;
  overflow:hidden!important;text-align:center!important;
}
.v39-equip-slot:before,.v39-equip-slot:after{display:none!important;content:none!important;}
.v39-equip-slot.filled{border-color:rgba(255,153,41,.55)!important;background:linear-gradient(180deg,#27231e,#171717)!important;}
.v39-slot-name{
  align-self:start!important;justify-self:start!important;
  font-size:12px!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#bcbcbc!important;font-weight:900!important;
}
.v39-slot-icon{
  align-self:center!important;
  width:54px!important;height:54px!important;border-radius:17px!important;display:grid!important;place-items:center!important;
  background:#111!important;border:1px solid rgba(255,255,255,.13)!important;font-size:31px!important;
  box-shadow:0 8px 18px rgba(0,0,0,.28)!important;
}
.v39-slot-item{
  align-self:end!important;
  max-width:100%!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
  font-size:13px!important;line-height:1.15!important;color:#f2f2f2!important;font-weight:900!important;text-shadow:0 2px 0 #000!important;
}
.v39-stat-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
.v39-resource-card,.v39-mini-stat{
  min-height:72px!important;padding:12px!important;border-radius:16px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.10)!important;
}
.v39-resource-card{display:grid!important;gap:8px!important;}
.v39-resource-card>div:first-child{display:flex!important;justify-content:space-between!important;gap:8px!important;align-items:center!important;}
.v39-resource-card small,.v39-mini-stat small{color:#c8c8c8!important;font-size:11px!important}.v39-resource-card b,.v39-mini-stat b{color:#fff!important;}
.v39-resource-card em{font-style:normal!important;color:#ffb856!important;font-size:11px!important;justify-self:end!important;}
.v39-mini-stat{display:grid!important;grid-template-columns:auto 1fr!important;gap:4px 8px!important;align-items:center!important;}
.v39-mini-stat b{grid-column:2!important;font-size:18px!important;}
.v39-attributes{margin-top:12px!important;padding-top:12px!important;border-top:1px solid rgba(255,255,255,.10)!important;}
.v39-attributes h2{margin:0 0 6px!important;font-size:19px!important;}
.v39-attr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:10px!important;}
.v39-attr-card{
  display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:7px!important;
  padding:9px!important;border-radius:14px!important;background:rgba(255,153,41,.07)!important;border:1px solid rgba(255,153,41,.18)!important;text-align:left!important;box-shadow:none!important;
}
.v39-attr-card span{font-size:18px!important}.v39-attr-card small{color:#ddd!important;font-size:11px!important}.v39-attr-card b{font-size:17px!important;color:#ffb856!important;}
.v39-level-notice{
  width:100%!important;margin-bottom:12px!important;padding:12px!important;border-radius:16px!important;background:linear-gradient(135deg,#ffad3d,#f28b1a)!important;
  color:#111!important;font-weight:900!important;box-shadow:0 12px 26px rgba(242,139,26,.22)!important;
}
.v39-level-choice{text-align:center!important;display:grid!important;gap:14px!important;}
.v39-choice-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;}
.v39-choice-card{
  min-height:142px!important;padding:16px!important;border-radius:20px!important;background:linear-gradient(145deg,#292929,#181818)!important;
  border:1px solid rgba(255,153,41,.28)!important;display:grid!important;place-items:center!important;gap:8px!important;text-align:center!important;
}
.v39-choice-card span{font-size:34px!important}.v39-choice-card b{color:#ffb856!important;font-size:18px!important}.v39-choice-card small{color:#d8d8d8!important;line-height:1.3!important;}
.v39-confirm-choice{text-align:center!important;display:grid!important;gap:12px!important;}

.v39-quick-profile{gap:12px!important;}
.v39-quick-bars article{padding:10px!important;border-radius:16px!important;background:#202020!important;border:1px solid rgba(255,255,255,.12)!important;}
.v39-quick-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;}
.v39-quick-grid span,.v39-quick-attrs span{display:grid!important;gap:2px!important;padding:9px!important;border-radius:14px!important;background:#202020!important;border:1px solid rgba(255,255,255,.10)!important;text-align:center!important;}
.v39-quick-attrs{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:7px!important;}
.v39-quick-attrs b{color:#ffb856!important}.v39-quick-attrs small{font-size:9px!important;color:#cfcfcf!important;}

/* Возвращаем красивый экран входа/регистрации без нового серого упрощения */
.login-screen.v35-auth{
  background:radial-gradient(circle at 18% 12%,rgba(255,209,102,.18),transparent 26%),radial-gradient(circle at 86% 18%,rgba(123,44,191,.30),transparent 28%),linear-gradient(145deg,#0e1018,#151827 62%,#100f18)!important;
}
.v35-login-card{border-color:rgba(255,209,102,.20)!important;box-shadow:0 28px 80px rgba(0,0,0,.46)!important;}
.v35-auth-hero{background:linear-gradient(145deg,rgba(54,36,83,.78),rgba(27,29,42,.72))!important;}
.v35-login-main-btn{background:linear-gradient(135deg,#ffd166,#ff9f2e)!important;color:#15110a!important;font-weight:900!important;}
.v35-auth-tabs button.active{background:linear-gradient(135deg,#ffd166,#ff9f2e)!important;color:#15110a!important;}
.v35-class-pick.active{outline:2px solid #ffd166!important;box-shadow:0 0 0 5px rgba(255,209,102,.10)!important;}

@media(max-width:1050px){
  .v39-profile-layout{grid-template-columns:1fr!important;grid-template-areas:"hero" "equip" "stats"!important;}
  .v39-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:680px){
  .v39-item-card{grid-template-columns:68px minmax(0,1fr)!important;padding:12px!important;gap:11px!important;}
  .v39-item-icon-wrap{width:62px!important;height:62px!important;border-radius:18px!important;}
  .v39-item-icon-wrap .item-emblem{font-size:30px!important;}
  .v39-item-head h3{font-size:15px!important;}
  .v39-item-card .item-actions{display:grid!important;grid-template-columns:1fr!important;}
  .v39-item-card .item-actions button{width:100%!important;min-width:0!important;}
  .v39-item-reqs{grid-template-columns:1fr!important;}
  .v39-choice-grid{grid-template-columns:1fr!important;}
  .v39-slot-grid{grid-template-columns:1fr 1fr!important;gap:9px!important;}
  .v39-equip-slot{min-height:116px!important;padding:10px!important;}
  .v39-slot-icon{width:48px!important;height:48px!important;font-size:27px!important;}
  .v39-stat-grid,.v39-attr-grid{grid-template-columns:1fr!important;}
}

/* v40 — исправление мобильного боя, чистые статы без иконок, локальная админка */
.v40-status-chip.v17-taunt-badge{display:inline-grid!important;place-items:center!important;border:1px solid currentColor!important;box-shadow:none!important;cursor:pointer!important;line-height:1!important;}

/* Бой: убираем налезание карточки монстра на игрока на телефонах и узких окнах */
@media(max-width:820px){
  .battle-screen.v34-battle,.battle-screen.v37-battle{
    grid-template-columns:1fr!important;
    grid-template-areas:"timer" "monsters" "players" "log"!important;
    gap:13px!important;
    align-content:start!important;
    overflow:visible!important;
  }
  .v34-battle .v17-monsters-panel,.v37-battle .v17-monsters-panel{
    position:relative!important;
    z-index:2!important;
    min-height:0!important;
    margin:0 0 4px!important;
    overflow:visible!important;
  }
  .v34-battle .party-panel,.v37-battle .party-panel{
    position:relative!important;
    z-index:1!important;
    min-height:0!important;
    margin:0!important;
    overflow:visible!important;
  }
  .v34-battle .v28-monster-grid,.v34-battle .v27-monster-grid,.v34-battle .v22-monster-grid,.v34-battle .v20-monster-grid,
  .v37-battle .v28-monster-grid,.v37-battle .v27-monster-grid,.v37-battle .v22-monster-grid,.v37-battle .v20-monster-grid{
    min-height:0!important;
    height:auto!important;
    gap:10px!important;
    align-items:stretch!important;
    overflow:visible!important;
  }
  .v34-battle .v28-monster-grid.count-1,.v34-battle .v27-monster-grid.count-1,.v34-battle .v22-monster-grid.count-1,.v34-battle .v20-monster-grid.count-1,
  .v37-battle .v28-monster-grid.count-1,.v37-battle .v27-monster-grid.count-1,.v37-battle .v22-monster-grid.count-1,.v37-battle .v20-monster-grid.count-1{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
  }
  .v34-battle .v28-monster-grid.count-1 > .v34-monster-target,
  .v34-battle .v27-monster-grid.count-1 > .v34-monster-target,
  .v34-battle .v22-monster-grid.count-1 > .v34-monster-target,
  .v34-battle .v20-monster-grid.count-1 > .v34-monster-target,
  .v37-battle .v28-monster-grid.count-1 > .v34-monster-target,
  .v37-battle .v27-monster-grid.count-1 > .v34-monster-target,
  .v37-battle .v22-monster-grid.count-1 > .v34-monster-target,
  .v37-battle .v20-monster-grid.count-1 > .v34-monster-target{
    grid-column:1/-1!important;
    grid-row:auto!important;
    min-height:142px!important;
    height:auto!important;
    padding:12px!important;
  }
  .v34-battle .v34-monster-target,.v37-battle .v34-monster-target{
    overflow:hidden!important;
    align-items:center!important;
    box-sizing:border-box!important;
  }
  .v34-battle .battle-party-cards,.v37-battle .battle-party-cards{
    min-height:0!important;
    height:auto!important;
    gap:10px!important;
  }
}
@media(max-width:520px){
  .battle-screen.v34-battle,.battle-screen.v37-battle{gap:11px!important;padding:8px!important;}
  .v34-battle .v34-monster-target,.v37-battle .v34-monster-target{
    grid-template-columns:54px minmax(0,1fr) 46px!important;
    gap:8px!important;
    border-radius:18px!important;
  }
  .v34-battle .v34-monster-target .monster-portrait.battle,.v37-battle .v34-monster-target .monster-portrait.battle{
    width:50px!important;height:50px!important;min-width:50px!important;border-radius:15px!important;
  }
  .v34-battle .v34-monster-target .monster-portrait.battle span,.v37-battle .v34-monster-target .monster-portrait.battle span{font-size:32px!important;}
  .v34-battle .v34-monster-target .v21-monster-title-line h2,.v37-battle .v34-monster-target .v21-monster-title-line h2{font-size:15px!important;}
  .v34-battle .v23-monster-badges,.v37-battle .v23-monster-badges{
    display:flex!important;flex-wrap:wrap!important;gap:4px!important;min-height:18px!important;overflow:visible!important;
  }
  .v34-battle .v34-status-chip,.v37-battle .v34-status-chip,
  .v34-battle .v23-battle-badge,.v37-battle .v23-battle-badge{
    height:17px!important;min-height:17px!important;font-size:8px!important;padding:0 6px!important;max-width:72px!important;
  }
  .v34-battle .v21-monster-stats,.v37-battle .v21-monster-stats{font-size:9.5px!important;gap:5px!important;}
  .v34-battle .v17-sword-btn,.v37-battle .v17-sword-btn{width:44px!important;height:48px!important;min-height:48px!important;border-radius:15px!important;}
  .v34-battle .v34-player,.v37-battle .v34-player{min-height:104px!important;}
}

/* Статусы: только расположение, цвета не трогаем */
.v34-battle .v23-monster-badges,.v37-battle .v23-monster-badges{align-items:center!important;justify-content:flex-start!important;}
.v34-battle .v25-player-status,.v37-battle .v25-player-status{display:flex!important;align-items:center!important;gap:6px!important;}
.v34-battle .v17-taunt-badge,.v37-battle .v17-taunt-badge{white-space:nowrap!important;align-self:center!important;}

/* Атрибуты без картинок */
.v40-attr-card.v39-attr-card{grid-template-columns:minmax(0,1fr) auto!important;padding:11px 12px!important;background:rgba(255,153,41,.055)!important;}
.v40-attr-card.v39-attr-card span{display:none!important;}
.v40-attr-card.v39-attr-card small{font-size:12px!important;letter-spacing:.02em!important;}
.v40-attr-card.v39-attr-card b{font-size:18px!important;}
.v40-choice-card.v39-choice-card{min-height:118px!important;align-content:center!important;}
.v40-choice-card.v39-choice-card span{display:none!important;}
.v40-choice-card.v39-choice-card b{font-size:20px!important;}

/* Профиль: убираем старые победы/поражения из сетки, если старые данные/DOM появятся */
.v39-record{display:none!important;}

/* Предметы: убираем движущиеся квадраты, оставляем мягкое статичное свечение */
.v39-item-card:before,.v39-item-card:after,.v38-item-card:before,.v38-item-card:after{display:none!important;content:none!important;animation:none!important;}
.v39-item-aura{background:radial-gradient(circle at 92% 12%,rgba(255,183,82,.22) 0 2px,transparent 3px),linear-gradient(90deg,rgba(255,153,41,.055),transparent 38%)!important;opacity:.65!important;}
.v39-item-card{box-shadow:0 14px 34px rgba(0,0,0,.28),0 0 0 1px rgba(255,153,41,.055) inset!important;}
.v39-item-card:hover{transform:translateY(-1px)!important;box-shadow:0 18px 42px rgba(0,0,0,.34),0 0 0 1px rgba(255,153,41,.12) inset!important;}
.v39-item-detail-card:before,.v39-item-detail-card:after{display:none!important;content:none!important;animation:none!important;}

/* Экипировка: без странных фоновых прямоугольников */
.v39-equip-slot{background:linear-gradient(180deg,#222,#181818)!important;}
.v39-equip-slot.filled{background:linear-gradient(180deg,#26211b,#181818)!important;}
.v39-equip-slot *{position:relative!important;}

/* Админка в локальном режиме */
.v13-admin .panel{background:linear-gradient(145deg,#242424,#181818)!important;border:1px solid rgba(255,255,255,.12)!important;}
.v13-admin input,.v13-admin select{background:#121212!important;border-color:rgba(255,255,255,.14)!important;color:#fff!important;}


/* ================= v41: большие боковые панели, новый результат боя, модалки уровня, красивое быстрое меню ================= */
.v41-skill-settings.v39-skill-settings{margin-top:12px!important;align-self:start!important;justify-self:start!important;}
.v39-profile-hero{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-areas:"avatar info" "exp exp" "skill skill"!important;
  gap:14px!important;
  align-items:center!important;
}
.v39-profile-hero .v39-avatar-ring{grid-area:avatar!important;}
.v39-profile-hero .v39-hero-info{grid-area:info!important;min-width:0!important;}
.v39-profile-hero .v39-exp-box{grid-area:exp!important;margin-top:4px!important;}
.v39-profile-hero .v41-skill-settings{grid-area:skill!important;}

.v38-side-nav{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.v38-side-nav button{
  min-height:56px!important;
  width:100%!important;
  margin:0!important;
  border-radius:16px!important;
  padding:10px 12px!important;
  font-weight:900!important;
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
  background:linear-gradient(145deg,rgba(255,170,54,.16),rgba(255,255,255,.04))!important;
  border:1px solid rgba(255,170,54,.18)!important;
  box-shadow:0 12px 24px rgba(0,0,0,.22)!important;
}
.v38-side-nav button:hover{transform:translateY(-1px)!important;}
.v38-side-nav .danger{grid-column:1 / -1!important;background:linear-gradient(145deg,rgba(239,71,111,.18),rgba(255,255,255,.04))!important;border-color:rgba(239,71,111,.28)!important;}

.v41-result{
  position:relative!important;
  overflow:hidden!important;
  display:grid!important;
  gap:14px!important;
}
.v41-result-particles{
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 12% 18%,rgba(255,209,102,.18) 0 4px,transparent 5px),
    radial-gradient(circle at 84% 14%,rgba(6,214,160,.16) 0 4px,transparent 5px),
    radial-gradient(circle at 78% 72%,rgba(123,44,191,.18) 0 5px,transparent 6px),
    radial-gradient(circle at 28% 78%,rgba(255,159,46,.16) 0 3px,transparent 4px);
  opacity:.8!important;
}
.v41-result .result-banner{
  position:relative!important;
  padding:24px 18px!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,rgba(39,64,54,.92),rgba(47,41,27,.76))!important;
  border:1px solid rgba(255,209,102,.24)!important;
  box-shadow:0 18px 40px rgba(0,0,0,.26)!important;
}
.v41-result.lose .result-banner{background:linear-gradient(145deg,rgba(86,32,44,.92),rgba(35,29,35,.76))!important;border-color:rgba(239,71,111,.28)!important;}
.v41-result .result-icon{font-size:64px!important;filter:drop-shadow(0 10px 18px rgba(0,0,0,.35))!important;}
.v41-result .reward-line{
  background:linear-gradient(145deg,rgba(255,209,102,.16),rgba(255,255,255,.04))!important;
  border:1px solid rgba(255,209,102,.16)!important;
  padding:14px 16px!important;
  border-radius:18px!important;
}
.v41-result .loot-tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;gap:10px!important;margin:8px 0 0!important;}
.v41-result .loot-tab,.v41-result .loot-tabs .loot-tab{
  min-height:48px!important;
  border-radius:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  font-weight:800!important;
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.03))!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
.v41-result .loot-tab.active{background:linear-gradient(145deg,#ffb856,#f28b1a)!important;color:#17120d!important;outline:none!important;box-shadow:0 10px 22px rgba(242,139,26,.24)!important;}
.v41-result-loot-owner{
  margin-top:10px!important;
  padding:14px!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.025))!important;
  border:1px solid rgba(255,255,255,.09)!important;
}
.v41-result-loot-owner h3{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 8px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:rgba(255,184,86,.12)!important;
  border:1px solid rgba(255,184,86,.24)!important;
}
.v41-result .primary.big{margin-top:4px!important;}

.v41-level-choice,.v41-confirm-choice{
  position:relative!important;
  overflow:hidden!important;
  padding:8px 2px 4px!important;
}
.v41-level-choice:before,.v41-confirm-choice:before{
  content:""!important;
  position:absolute!important;
  inset:-22px -20px auto auto!important;
  width:180px!important;
  height:180px!important;
  background:radial-gradient(circle,rgba(255,184,86,.24),transparent 66%)!important;
  pointer-events:none!important;
}
.v41-level-choice:after,.v41-confirm-choice:after{
  content:""!important;
  position:absolute!important;
  left:-40px!important;
  bottom:-54px!important;
  width:200px!important;
  height:200px!important;
  background:radial-gradient(circle,rgba(123,44,191,.20),transparent 68%)!important;
  pointer-events:none!important;
}
.v41-level-choice>*,.v41-confirm-choice>*{position:relative!important;z-index:1!important;}
.v41-level-choice{
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,184,86,.04))!important;
  border:1px solid rgba(255,184,86,.14)!important;
  border-radius:24px!important;
  padding:18px!important;
}
.v41-level-choice .muted{color:#d7d7d7!important;}
.v41-level-choice .v39-choice-grid{margin-top:2px!important;}
.v41-level-choice .v39-choice-card{
  min-height:154px!important;
  padding:18px!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(40,40,40,.92),rgba(22,22,22,.98))!important;
  border:1px solid rgba(255,184,86,.28)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.24)!important;
}
.v41-level-choice .v39-choice-card:hover{transform:translateY(-2px)!important;box-shadow:0 20px 40px rgba(0,0,0,.28)!important;}
.v41-level-choice .v39-choice-card b{font-size:22px!important;}
.v41-level-choice .v39-choice-card small{font-size:14px!important;max-width:26ch!important;}
.v41-confirm-choice{
  display:grid!important;
  gap:14px!important;
  text-align:center!important;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,184,86,.04))!important;
  border:1px solid rgba(255,184,86,.14)!important;
  border-radius:24px!important;
  padding:22px 18px!important;
}
.v41-confirm-choice h2{font-size:42px!important;line-height:1.05!important;margin:2px 0 6px!important;color:#fff!important;}
.v41-confirm-choice p{font-size:17px!important;line-height:1.45!important;color:#ececec!important;margin:0 auto!important;max-width:40ch!important;}
.v41-confirm-choice .row-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;}
.v41-confirm-choice .row-actions button{min-width:160px!important;}

.v37-skill-drawer.v16-skill-drawer,.v34-skill-drawer.v16-skill-drawer,.v17-skill-drawer.v16-skill-drawer{
  position:fixed!important;
  right:10px!important;
  left:auto!important;
  top:72px!important;
  bottom:12px!important;
  width:min(390px,88vw)!important;
  min-width:min(84vw,320px)!important;
  max-width:400px!important;
  max-height:calc(100dvh - 84px)!important;
  padding:16px!important;
  border-radius:24px 0 0 24px!important;
  background:linear-gradient(160deg,rgba(29,29,35,.985),rgba(19,19,23,.995))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:-24px 0 50px rgba(0,0,0,.42)!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  overflow:hidden!important;
  transform:translateX(calc(100% + 18px))!important;
  z-index:95!important;
}
.v37-help-drawer.v17-help-drawer,.v34-help-drawer.v17-help-drawer,.v17-help-drawer{
  position:fixed!important;
  left:10px!important;
  right:auto!important;
  top:72px!important;
  bottom:12px!important;
  width:min(390px,88vw)!important;
  min-width:min(84vw,320px)!important;
  max-width:400px!important;
  max-height:calc(100dvh - 84px)!important;
  padding:16px!important;
  border-radius:0 24px 24px 0!important;
  background:linear-gradient(160deg,rgba(29,29,35,.985),rgba(19,19,23,.995))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:24px 0 50px rgba(0,0,0,.42)!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  overflow:hidden!important;
  transform:translateX(calc(-100% - 18px))!important;
  z-index:95!important;
}
.v37-skill-drawer.v16-skill-drawer.open,.v34-skill-drawer.v16-skill-drawer.open,.v17-skill-drawer.v16-skill-drawer.open{transform:translateX(0)!important;}
.v37-help-drawer.v17-help-drawer.open,.v34-help-drawer.v17-help-drawer.open,.v17-help-drawer.open{transform:translateX(0)!important;}
.v37-skill-drawer .v17-drawer-head,.v34-skill-drawer .v17-drawer-head,.v37-help-drawer .v17-drawer-head,.v34-help-drawer .v17-drawer-head,
.v17-skill-drawer .v17-drawer-head,.v17-help-drawer .v17-drawer-head{
  padding-bottom:12px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
.v37-skill-drawer .v17-drawer-head b,.v34-skill-drawer .v17-drawer-head b,.v37-help-drawer .v17-drawer-head b,.v34-help-drawer .v17-drawer-head b,
.v17-skill-drawer .v17-drawer-head b,.v17-help-drawer .v17-drawer-head b{font-size:18px!important;}
.v37-skill-drawer .v17-drawer-head small,.v34-skill-drawer .v17-drawer-head small,.v37-help-drawer .v17-drawer-head small,.v34-help-drawer .v17-drawer-head small,
.v17-skill-drawer .v17-drawer-head small,.v17-help-drawer .v17-drawer-head small{display:block!important;font-size:12px!important;color:#cfcfcf!important;}
.v37-skill-drawer .v17-skill-scroll,.v34-skill-drawer .v17-skill-scroll,.v34-skill-drawer .v16-skill-scroll,.v37-skill-drawer .v16-skill-scroll,
.v37-help-drawer .v17-help-scroll,.v34-help-drawer .v17-help-scroll,.v17-skill-drawer .v17-skill-scroll,.v17-skill-drawer .v16-skill-scroll,.v17-help-drawer .v17-help-scroll{
  max-height:none!important;
  overflow:auto!important;
  padding:12px 4px 10px 0!important;
  gap:10px!important;
}
.v37-skill-drawer .v17-drawer-ability,.v34-skill-drawer .v17-drawer-ability,.v17-skill-drawer .v17-drawer-ability{border-radius:18px!important;}
.v37-skill-drawer .v17-ability-main,.v34-skill-drawer .v17-ability-main,.v17-skill-drawer .v17-ability-main,
.v37-skill-drawer .v32-ability-main,.v34-skill-drawer .v32-ability-main,.v17-skill-drawer .v32-ability-main{
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:10px!important;
  padding:12px!important;
  border-radius:16px!important;
}
.v37-skill-drawer .v17-ability-main span,.v34-skill-drawer .v17-ability-main span,.v17-skill-drawer .v17-ability-main span,
.v37-skill-drawer .v32-ability-main span,.v34-skill-drawer .v32-ability-main span,.v17-skill-drawer .v32-ability-main span{
  width:44px!important;height:44px!important;font-size:24px!important;border-radius:14px!important;
}
.v37-skill-drawer .v17-ability-main b,.v34-skill-drawer .v17-ability-main b,.v17-skill-drawer .v17-ability-main b,
.v37-skill-drawer .v32-ability-main b,.v34-skill-drawer .v32-ability-main b,.v17-skill-drawer .v32-ability-main b{font-size:14px!important;}
.v37-skill-drawer .v17-ability-main small,.v34-skill-drawer .v17-ability-main small,.v17-skill-drawer .v17-ability-main small,
.v37-skill-drawer .v32-ability-main small,.v34-skill-drawer .v32-ability-main small,.v17-skill-drawer .v32-ability-main small{font-size:11px!important;}
.v37-skill-drawer .v32-ability-targets,.v34-skill-drawer .v32-ability-targets,.v17-skill-drawer .v32-ability-targets{
  padding:9px!important;
  border-radius:14px!important;
  gap:6px!important;
}
.v37-skill-drawer .v32-ability-targets button,.v34-skill-drawer .v32-ability-targets button,.v17-skill-drawer .v32-ability-targets button{min-height:40px!important;font-size:12px!important;padding:9px!important;}
.v37-help-drawer .v17-help-scroll,.v34-help-drawer .v17-help-scroll,.v17-help-drawer .v17-help-scroll{display:grid!important;align-content:start!important;gap:10px!important;}
.v37-help-drawer .v17-help-friend,.v34-help-drawer .v17-help-friend,.v17-help-drawer .v17-help-friend{
  padding:12px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.04)!important;
  border:1px solid rgba(255,255,255,.09)!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
}
.v37-help-drawer .v17-help-friend span,.v34-help-drawer .v17-help-friend span,.v17-help-drawer .v17-help-friend span{font-size:13px!important;}
.v37-help-drawer .v17-help-friend button,.v34-help-drawer .v17-help-friend button,.v17-help-drawer .v17-help-friend button{min-height:38px!important;padding:8px 12px!important;font-size:12px!important;}

@media(max-width:760px){
  .v39-profile-hero{
    grid-template-columns:1fr!important;
    grid-template-areas:"avatar" "info" "exp" "skill"!important;
    justify-items:center!important;
    text-align:center!important;
  }
  .v39-profile-hero .v39-exp-box{width:100%!important;margin-top:8px!important;}
  .v41-skill-settings.v39-skill-settings{width:100%!important;max-width:320px!important;margin-top:12px!important;justify-self:stretch!important;}
  .v41-result .loot-tabs{grid-template-columns:1fr!important;}
  .v41-level-choice .v39-choice-card{min-height:132px!important;}
  .v41-confirm-choice h2{font-size:34px!important;}
}
@media(max-width:560px){
  .v38-side-nav{grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .v38-side-nav button{min-height:52px!important;font-size:13px!important;padding:9px 10px!important;}
  .v37-skill-drawer.v16-skill-drawer,.v34-skill-drawer.v16-skill-drawer,.v17-skill-drawer.v16-skill-drawer,
  .v37-help-drawer.v17-help-drawer,.v34-help-drawer.v17-help-drawer,.v17-help-drawer{
    top:64px!important;
    bottom:8px!important;
    width:min(92vw,360px)!important;
    min-width:0!important;
    max-width:92vw!important;
    max-height:calc(100dvh - 72px)!important;
    padding:14px!important;
  }
  .v37-skill-drawer.v16-skill-drawer,.v34-skill-drawer.v16-skill-drawer,.v17-skill-drawer.v16-skill-drawer{right:0!important;border-radius:20px 0 0 20px!important;}
  .v37-help-drawer.v17-help-drawer,.v34-help-drawer.v17-help-drawer,.v17-help-drawer{left:0!important;border-radius:0 20px 20px 0!important;}
  .v37-skill-drawer .v17-drawer-head b,.v34-skill-drawer .v17-drawer-head b,.v37-help-drawer .v17-drawer-head b,.v34-help-drawer .v17-drawer-head b,.v17-skill-drawer .v17-drawer-head b,.v17-help-drawer .v17-drawer-head b{font-size:17px!important;}
  .v37-skill-drawer .v17-drawer-head small,.v34-skill-drawer .v17-drawer-head small,.v37-help-drawer .v17-drawer-head small,.v34-help-drawer .v17-drawer-head small,.v17-skill-drawer .v17-drawer-head small,.v17-help-drawer .v17-drawer-head small{font-size:11px!important;}
  .v37-skill-drawer .v17-ability-main,.v34-skill-drawer .v17-ability-main,.v17-skill-drawer .v17-ability-main,.v37-skill-drawer .v32-ability-main,.v34-skill-drawer .v32-ability-main,.v17-skill-drawer .v32-ability-main{grid-template-columns:42px minmax(0,1fr)!important;padding:10px!important;}
  .v37-skill-drawer .v17-ability-main span,.v34-skill-drawer .v17-ability-main span,.v17-skill-drawer .v17-ability-main span,.v37-skill-drawer .v32-ability-main span,.v34-skill-drawer .v32-ability-main span,.v17-skill-drawer .v32-ability-main span{width:38px!important;height:38px!important;font-size:22px!important;}
  .v41-result .result-banner{padding:20px 14px!important;}
  .v41-result .result-icon{font-size:58px!important;}
  .v41-confirm-choice h2{font-size:28px!important;}
  .v41-confirm-choice p{font-size:15px!important;}
  .v41-confirm-choice .row-actions button{min-width:0!important;flex:1 1 140px!important;}
}


/* ================= v42: профиль, статусы, навыки, локальный кооператив ================= */
.v41-skill-settings.v39-skill-settings,
.v42-skill-settings{
  width:clamp(210px,54%,300px)!important;
  max-width:300px!important;
  min-height:42px!important;
  margin:18px auto 0!important;
  justify-self:center!important;
  align-self:center!important;
  padding:10px 16px!important;
  border-radius:16px!important;
  font-size:16px!important;
  line-height:1.1!important;
}
.v39-profile-hero{gap:10px!important;}
.v39-profile-hero .v39-exp-box{width:100%!important;max-width:440px!important;justify-self:center!important;}
@media(max-width:760px){
  .v41-skill-settings.v39-skill-settings{width:min(72vw,300px)!important;max-width:300px!important;justify-self:center!important;margin-top:18px!important;}
}

.v42-status-help{
  display:grid!important;
  gap:14px!important;
  padding:18px!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(38,38,38,.96),rgba(25,25,25,.98))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 18px 40px rgba(0,0,0,.28)!important;
}
.v42-status-help .v34-status-pill{
  justify-self:start!important;
  min-height:28px!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}
.v42-status-help p{
  margin:0!important;
  padding:14px!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  color:#e8e8e8!important;
  line-height:1.45!important;
}
.v42-status-help button{justify-self:end!important;min-width:150px!important;}

.v42-attribute-help{
  display:grid!important;
  gap:14px!important;
}
.v42-attr-big{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:16px!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(255,184,86,.14),rgba(255,255,255,.04))!important;
  border:1px solid rgba(255,184,86,.22)!important;
}
.v42-attr-big b{font-size:28px!important;color:#fff!important;}
.v42-attr-big span{display:grid!important;place-items:center!important;min-width:56px!important;height:56px!important;border-radius:18px!important;background:#ffb856!important;color:#18120d!important;font-size:28px!important;font-weight:1000!important;}
.v42-attribute-help p{margin:0!important;color:#e7e7e7!important;line-height:1.45!important;}
.v42-attr-effect{display:grid!important;gap:5px!important;padding:14px!important;border-radius:18px!important;background:#1d1d1d!important;border:1px solid rgba(255,255,255,.10)!important;}
.v42-attr-effect small{color:#aaa!important;}
.v42-attr-effect b{color:#ffb856!important;line-height:1.35!important;}
.v42-attribute-help button{justify-self:end!important;min-width:150px!important;}
.v40-attr-card.v39-attr-card{cursor:pointer!important;transition:transform .16s ease,border-color .16s ease!important;}
.v40-attr-card.v39-attr-card:hover{transform:translateY(-1px)!important;border-color:rgba(255,184,86,.38)!important;}

.v42-ability-card.v8-skill-card,
.ability-card.v42-ability-card{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  min-height:82px!important;
  padding:12px!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  cursor:pointer!important;
}
.v42-ability-card:hover{border-color:rgba(255,184,86,.35)!important;transform:translateY(-1px)!important;}
.v42-ability-card .ability-icon{width:54px!important;height:54px!important;border-radius:17px!important;font-size:30px!important;display:grid!important;place-items:center!important;background:#171717!important;border:1px solid rgba(255,255,255,.10)!important;}
.v42-ability-card .skill-main h3{margin:0!important;font-size:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v42-ability-card .skill-main p,.v42-ability-card .skill-main small{display:none!important;}
.v42-ability-card .row-actions{margin:0!important;display:flex!important;justify-content:flex-end!important;}
.v42-ability-card .row-actions button{min-width:130px!important;}
.v42-ability-detail{display:grid!important;gap:12px!important;text-align:center!important;}
.v42-ability-detail-icon{width:82px!important;height:82px!important;margin:0 auto!important;border-radius:26px!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,rgba(255,184,86,.18),#151515)!important;border:1px solid rgba(255,184,86,.24)!important;font-size:44px!important;}
.v42-ability-detail h2{margin:0!important;}
.v42-ability-detail p{margin:0 auto!important;max-width:52ch!important;color:#e5e5e5!important;line-height:1.45!important;}
.v42-ability-lines{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
.v42-ability-lines div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:11px 12px!important;border-radius:14px!important;background:#1c1c1c!important;border:1px solid rgba(255,255,255,.09)!important;}
.v42-ability-lines span{color:#a9a9a9!important;}.v42-ability-lines b{color:#ffb856!important;}
.v42-ability-detail button{justify-self:center!important;min-width:170px!important;}

.v42-drawer-ability{overflow:hidden!important;}
.v42-ability-row{display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;gap:8px!important;align-items:stretch!important;}
.v42-ability-info-btn{width:38px!important;height:auto!important;min-height:38px!important;align-self:stretch!important;border-radius:14px!important;font-weight:1000!important;color:#ffb856!important;}
.v42-drawer-ability .v17-ability-main p,
.v42-drawer-ability .v32-ability-main p{
  display:block!important;
  margin:4px 0 0!important;
  color:#d6d6d6!important;
  font-size:11px!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
@media(max-width:560px){
  .v42-drawer-ability .v17-ability-main p,.v42-drawer-ability .v32-ability-main p{font-size:10.5px!important;-webkit-line-clamp:2!important;}
  .v42-ability-row{grid-template-columns:minmax(0,1fr) 36px!important;}
  .v42-ability-info-btn{width:36px!important;}
  .v42-ability-lines{grid-template-columns:1fr!important;}
  .v42-ability-card{grid-template-columns:50px minmax(0,1fr)!important;}
  .v42-ability-card .row-actions{grid-column:1/-1!important;justify-content:stretch!important;}
  .v42-ability-card .row-actions button{width:100%!important;}
}

.v42-local-coop-note b{color:#ffb856!important;}
.v42-local-coop-note{border-left:3px solid #ff9f2e!important;}


/* ================= v43: мобильный бой без наложений + новая карточка игрока + умения с описанием сразу ================= */

/* Кнопка настроить умения: меньше, ровнее, нормальный отступ от опыта */
.v41-skill-settings.v39-skill-settings,
.v42-skill-settings,
.v43-skill-settings{
  width:min(260px,68vw)!important;
  max-width:260px!important;
  min-height:44px!important;
  margin:24px auto 0!important;
  justify-self:center!important;
  align-self:center!important;
  padding:10px 14px!important;
  border-radius:15px!important;
  font-size:15px!important;
  line-height:1.1!important;
  box-shadow:0 10px 22px rgba(242,139,26,.22)!important;
}

/* Бой на телефоне: всё идёт вертикальным потоком, ничего не лежит поверх игроков/лога */
@media(max-width:760px){
  body:has(.battle-screen){overflow-x:hidden!important;}
  .battle-screen.v34-battle,
  .battle-screen.v37-battle,
  .battle-screen.v17-battle,
  .battle-screen{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    grid-template-areas:none!important;
    width:100%!important;
    max-width:100%!important;
    min-height:calc(100dvh - 64px)!important;
    height:auto!important;
    overflow:visible!important;
    gap:12px!important;
    padding:8px 8px 18px!important;
    box-sizing:border-box!important;
  }

  .battle-timer,
  .v17-timer,
  .v16-timer{
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    position:relative!important;
    z-index:3!important;
  }

  .v17-monsters-panel,
  .v37-monsters-panel,
  .party-panel,
  .v37-party-panel,
  .battle-log{
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    position:relative!important;
    overflow:visible!important;
    margin:0!important;
    box-sizing:border-box!important;
  }

  .v34-monster-grid,
  .v28-monster-grid,
  .v27-monster-grid,
  .v22-monster-grid,
  .v20-monster-grid,
  .v19-monster-grid,
  .v18-monster-grid,
  .v17-monster-grid{
    display:grid!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    overflow:visible!important;
  }

  .v34-monster-grid.count-1,
  .v28-monster-grid.count-1,
  .v27-monster-grid.count-1,
  .v22-monster-grid.count-1,
  .v20-monster-grid.count-1,
  .v19-monster-grid.count-1,
  .v18-monster-grid.count-1,
  .v17-monster-grid.count-1{
    grid-template-columns:1fr!important;
  }

  .v34-monster-grid.count-2,
  .v28-monster-grid.count-2,
  .v27-monster-grid.count-2,
  .v22-monster-grid.count-2,
  .v20-monster-grid.count-2,
  .v19-monster-grid.count-2,
  .v18-monster-grid.count-2,
  .v17-monster-grid.count-2,
  .v34-monster-grid.count-3,
  .v28-monster-grid.count-3,
  .v27-monster-grid.count-3,
  .v22-monster-grid.count-3,
  .v20-monster-grid.count-3,
  .v19-monster-grid.count-3,
  .v18-monster-grid.count-3,
  .v17-monster-grid.count-3,
  .v34-monster-grid.count-4,
  .v28-monster-grid.count-4,
  .v27-monster-grid.count-4,
  .v22-monster-grid.count-4,
  .v20-monster-grid.count-4,
  .v19-monster-grid.count-4,
  .v18-monster-grid.count-4,
  .v17-monster-grid.count-4{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .v34-monster-grid.count-3 > article:nth-child(3),
  .v28-monster-grid.count-3 > article:nth-child(3),
  .v27-monster-grid.count-3 > article:nth-child(3),
  .v22-monster-grid.count-3 > article:nth-child(3),
  .v20-monster-grid.count-3 > article:nth-child(3),
  .v19-monster-grid.count-3 > article:nth-child(3),
  .v18-monster-grid.count-3 > article:nth-child(3),
  .v17-monster-grid.count-3 > article:nth-child(3){
    grid-column:1 / -1!important;
  }

  .monster-battle-card,
  .v34-monster-target,
  .v37-monster-target,
  .v19-monster-target,
  .v18-monster-target,
  .v17-monster-target{
    grid-area:auto!important;
    place-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:128px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  .battle-party-cards,
  .v34-party-grid,
  .v11-party-grid,
  .v10-party-grid,
  .v9-party-grid,
  .v7-party-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    gap:10px!important;
    overflow:visible!important;
  }

  .battle-log.v34-battle-log,
  .battle-log.v17-battle-log,
  .battle-log.v16-battle-log,
  .battle-log.v11-battle-log,
  .battle-log{
    height:auto!important;
    min-height:118px!important;
    max-height:none!important;
    padding:12px!important;
    margin-top:0!important;
    border-radius:18px!important;
  }

  .battle-log .battle-log-scroll{
    height:auto!important;
    min-height:78px!important;
    max-height:150px!important;
    overflow:auto!important;
  }
}

/* На совсем узких экранах враги тоже одной колонкой — лучше читать и не ломает сетку */
@media(max-width:380px){
  .v34-monster-grid.count-2,
  .v28-monster-grid.count-2,
  .v27-monster-grid.count-2,
  .v22-monster-grid.count-2,
  .v20-monster-grid.count-2,
  .v19-monster-grid.count-2,
  .v18-monster-grid.count-2,
  .v17-monster-grid.count-2,
  .v34-monster-grid.count-3,
  .v28-monster-grid.count-3,
  .v27-monster-grid.count-3,
  .v22-monster-grid.count-3,
  .v20-monster-grid.count-3,
  .v19-monster-grid.count-3,
  .v18-monster-grid.count-3,
  .v17-monster-grid.count-3,
  .v34-monster-grid.count-4,
  .v28-monster-grid.count-4,
  .v27-monster-grid.count-4,
  .v22-monster-grid.count-4,
  .v20-monster-grid.count-4,
  .v19-monster-grid.count-4,
  .v18-monster-grid.count-4,
  .v17-monster-grid.count-4{
    grid-template-columns:1fr!important;
  }
}

/* Новая карточка игрока в бою */
.v43-player.battle-player{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) auto!important;
  grid-template-areas:
    "avatar title status"
    "bars bars bars"!important;
  align-items:center!important;
  gap:9px 12px!important;
  min-height:116px!important;
  padding:13px!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(23,36,54,.96),rgba(17,25,39,.96))!important;
  border:1px solid rgba(0,214,198,.32)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.25),inset 0 0 0 1px rgba(255,255,255,.035)!important;
  overflow:hidden!important;
}
.v43-player.self{border-color:rgba(0,214,198,.55)!important;box-shadow:0 0 0 1px rgba(0,214,198,.14),0 16px 34px rgba(0,0,0,.28)!important;}
.v43-player .player-card-head{
  display:contents!important;
}
.v43-player .player-avatar{
  grid-area:avatar!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  font-size:29px!important;
  background:linear-gradient(145deg,#2b2b2b,#141414)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 10px 20px rgba(0,0,0,.24)!important;
}
.v43-player .v25-player-title{
  grid-area:title!important;
  min-width:0!important;
}
.v43-player .v25-player-title h3{
  margin:0!important;
  font-size:16px!important;
  line-height:1.05!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v43-player .v25-player-title small{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  color:#c9c9c9!important;
}
.v43-player .v25-player-status{
  grid-area:status!important;
  justify-self:end!important;
  max-width:126px!important;
  min-height:24px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  font-size:10px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v43-player .v17-taunt-badge{
  grid-area:status!important;
  justify-self:end!important;
}
.v43-player .player-bars{
  grid-area:bars!important;
  display:grid!important;
  gap:7px!important;
  margin-top:2px!important;
}
.v43-player .stat-row{
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
}
.v43-player .stat-row span{
  font-size:11px!important;
  font-weight:900!important;
  color:#fff!important;
  white-space:nowrap!important;
}
.v43-player .bar{
  height:8px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.13)!important;
  overflow:hidden!important;
}
.v43-player .bar i{transition:width .22s ease!important;}

@media(max-width:760px){
  .v43-player.battle-player{
    grid-template-columns:48px minmax(0,1fr) auto!important;
    min-height:112px!important;
    padding:11px!important;
    border-radius:19px!important;
  }
  .v43-player .player-avatar{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    font-size:25px!important;
    border-radius:14px!important;
  }
  .v43-player .v25-player-title h3{font-size:14px!important;}
  .v43-player .v25-player-title small{font-size:10px!important;}
  .v43-player .v25-player-status{font-size:9px!important;max-width:104px!important;padding:4px 7px!important;}
  .v43-player .stat-row{grid-template-columns:64px minmax(0,1fr)!important;}
  .v43-player .stat-row span{font-size:10px!important;}
  .v43-player .bar{height:7px!important;}
}

/* Панель умений: без маленькой кнопки i, описание сразу внутри свободного места */
.v43-skill-drawer.v16-skill-drawer,
.v43-skill-drawer{
  width:min(410px,92vw)!important;
  max-width:410px!important;
}
.v43-drawer-ability{
  border-radius:19px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  overflow:hidden!important;
}
.v43-ability-main{
  width:100%!important;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:start!important;
  padding:13px!important;
  text-align:left!important;
  border-radius:18px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.v43-ability-main span{
  width:50px!important;
  height:50px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,#222,#111)!important;
  border:1px solid rgba(255,184,86,.18)!important;
  font-size:28px!important;
}
.v43-ability-main b{
  display:block!important;
  margin:0 0 4px!important;
  font-size:16px!important;
  line-height:1.1!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v43-ability-main small{
  display:inline-flex!important;
  margin-bottom:6px!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  background:rgba(255,184,86,.11)!important;
  border:1px solid rgba(255,184,86,.18)!important;
  color:#ffca86!important;
  font-size:11px!important;
  font-weight:900!important;
}
.v43-ability-main p{
  display:block!important;
  margin:0!important;
  color:#d8d8d8!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:unset!important;
}
.v43-ability-targets{
  margin:0 12px 12px!important;
  padding:10px!important;
  border-radius:15px!important;
  background:#171717!important;
  border:1px solid rgba(255,255,255,.09)!important;
}
.v43-ability-targets small{
  display:block!important;
  margin-bottom:6px!important;
  color:#ffca86!important;
  font-weight:900!important;
}
.v43-ability-targets button{
  min-height:40px!important;
  font-size:12px!important;
  border-radius:12px!important;
}
.v43-self-cast-note{
  display:block!important;
  margin:0 12px 12px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  background:rgba(255,184,86,.08)!important;
  border:1px solid rgba(255,184,86,.13)!important;
  color:#d8d8d8!important;
  font-size:12px!important;
}

@media(max-width:560px){
  .v43-skill-drawer.v16-skill-drawer,
  .v43-help-drawer.v17-help-drawer{
    width:92vw!important;
    max-width:92vw!important;
  }
  .v43-ability-main{
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:10px!important;
    padding:11px!important;
  }
  .v43-ability-main span{
    width:44px!important;
    height:44px!important;
    font-size:25px!important;
  }
  .v43-ability-main b{font-size:15px!important;}
  .v43-ability-main p{font-size:12px!important;line-height:1.32!important;}
}

/* Описание статусов: крупнее, аккуратнее, не выглядит как голый текст */
.status-help-card.v42-status-help,
.v42-status-help{
  position:relative!important;
  overflow:hidden!important;
  padding:20px!important;
  border-radius:24px!important;
}
.v42-status-help:before{
  content:""!important;
  position:absolute!important;
  inset:-60px -60px auto auto!important;
  width:170px!important;
  height:170px!important;
  background:radial-gradient(circle,rgba(255,184,86,.16),transparent 68%)!important;
  pointer-events:none!important;
}
.v42-status-help .v34-status-pill{
  position:relative!important;
  z-index:1!important;
  font-size:12px!important;
}
.v42-status-help p{
  position:relative!important;
  z-index:1!important;
  font-size:16px!important;
  line-height:1.5!important;
  color:#ededed!important;
}
.v42-status-help button{position:relative!important;z-index:1!important;}

/* ================= v44: атрибуты с точными эффектами, пассивки и обновлённые навыки ================= */
.v44-attribute-help{display:grid!important;gap:14px!important;}
.v44-attr-class-box{padding:14px!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(255,184,86,.12),rgba(255,255,255,.035))!important;border:1px solid rgba(255,184,86,.20)!important;display:grid!important;gap:6px!important;}
.v44-attr-class-box small{color:#ffcc8a!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important;}
.v44-attr-class-box b{font-size:17px!important;line-height:1.35!important;color:#fff!important;}
.v44-attr-class-box em{font-style:normal!important;color:#ffb3a3!important;font-weight:800!important;line-height:1.35!important;}
.v44-attr-class-box.weak{background:linear-gradient(145deg,rgba(239,71,111,.12),rgba(255,255,255,.035))!important;border-color:rgba(239,71,111,.22)!important;}
.v44-attr-effects{padding:12px!important;border-radius:16px!important;background:#1b1b1b!important;border:1px solid rgba(255,255,255,.10)!important;}
.v44-attr-effects h3{margin:0 0 8px!important;font-size:14px!important;color:#ffb856!important;}
.v44-attr-effects div{display:flex!important;gap:7px!important;flex-wrap:wrap!important;}
.v44-attr-effects span{padding:7px 10px!important;border-radius:999px!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.10)!important;font-weight:800!important;color:#eee!important;}
.v44-attr-effects .bad{background:rgba(239,71,111,.10)!important;border-color:rgba(239,71,111,.20)!important;color:#ffb3a3!important;}
.v44-ability-card{grid-template-columns:54px minmax(0,1fr) auto!important;min-height:70px!important;padding:11px!important;border-radius:18px!important;}
.v44-ability-card.passive{border-color:rgba(255,184,86,.28)!important;background:linear-gradient(145deg,rgba(255,184,86,.09),rgba(255,255,255,.035))!important;}
.v44-ability-card .skill-main h3{margin:0!important;}
.v44-ability-card .skill-main small{display:block!important;margin-top:3px!important;color:#cfcfcf!important;font-weight:800!important;}
.v44-ability-detail{position:relative!important;overflow:hidden!important;}
.v44-ability-detail.passive{border-color:rgba(255,184,86,.28)!important;}
.v44-ability-feature{margin:12px 0!important;padding:13px!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(255,184,86,.13),rgba(255,255,255,.04))!important;border:1px solid rgba(255,184,86,.20)!important;display:grid!important;gap:5px!important;}
.v44-ability-feature small{color:#ffcc8a!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.06em!important;}
.v44-ability-feature b{font-size:16px!important;line-height:1.35!important;color:#fff!important;}
.v44-passive-list{display:grid!important;gap:8px!important;}
.v44-drawer-passive{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:11px!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(255,184,86,.10),rgba(255,255,255,.035))!important;border:1px solid rgba(255,184,86,.18)!important;}
.v44-drawer-passive>span{width:40px!important;height:40px!important;border-radius:13px!important;display:grid!important;place-items:center!important;background:#141414!important;border:1px solid rgba(255,255,255,.10)!important;font-size:22px!important;}
.v44-drawer-passive b{display:block!important;color:#fff!important;font-size:13px!important;margin-bottom:3px!important;}
.v44-drawer-passive p{margin:0!important;color:#d2d2d2!important;font-size:11.5px!important;line-height:1.3!important;}
.v44-drawer-feature{display:block!important;margin-top:5px!important;padding:6px 8px!important;border-radius:10px!important;background:rgba(255,184,86,.10)!important;border:1px solid rgba(255,184,86,.16)!important;color:#ffd092!important;font-style:normal!important;font-size:11px!important;line-height:1.25!important;}
.v43-drawer-ability.passive,.v42-drawer-ability.passive{border-color:rgba(255,184,86,.24)!important;}
@media(max-width:560px){
  .v44-ability-card{grid-template-columns:48px minmax(0,1fr)!important;gap:9px!important;}
  .v44-ability-card .row-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr!important;}
  .v44-ability-card .row-actions button{width:100%!important;}
  .v44-drawer-passive{grid-template-columns:38px minmax(0,1fr)!important;padding:9px!important;}
  .v44-drawer-passive>span{width:36px!important;height:36px!important;font-size:20px!important;}
  .v44-drawer-feature{font-size:10.5px!important;}
}


/* ================= v45: нормальный мобильный бой + новые карточки игроков + полная инфа навыка ================= */

/* Мобильный бой: никакой двухколоночной каши на телефоне */
@media(max-width:640px){
  body:has(.battle-screen){
    overflow-x:hidden!important;
    background:#0d0d0d!important;
  }

  .battle-top.topbar{
    min-height:58px!important;
    padding:8px 10px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    gap:8px!important;
    align-items:center!important;
  }
  .battle-top .top-title{
    min-width:0!important;
    text-align:left!important;
  }
  .battle-top .top-title h1{
    font-size:16px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .battle-top .top-title p{
    display:block!important;
    font-size:10.5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .battle-top .net-pill{display:none!important;}
  .battle-top .v17-corner-btn{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    padding:0!important;
    border-radius:14px!important;
    font-size:21px!important;
  }
  .battle-top .v17-corner-btn span{display:none!important;}

  .battle-screen,
  .battle-screen.v34-battle,
  .battle-screen.v37-battle,
  .battle-screen.v17-battle{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:calc(100dvh - 58px)!important;
    padding:8px 8px 18px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .battle-timer{
    width:100%!important;
    min-height:72px!important;
    padding:10px!important;
    border-radius:18px!important;
    flex:0 0 auto!important;
  }
  .battle-timer .turn-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
    align-items:start!important;
  }
  .battle-timer #turn-title{
    font-size:17px!important;
    line-height:1.1!important;
  }
  .battle-timer #turn-hint{
    font-size:11.5px!important;
    line-height:1.25!important;
    max-width:100%!important;
  }
  .battle-timer #turn-time{
    font-size:24px!important;
    padding:8px 10px!important;
    border-radius:14px!important;
  }

  .v17-monsters-panel,
  .v37-monsters-panel,
  .party-panel,
  .v37-party-panel,
  .battle-log{
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    padding:10px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    flex:0 0 auto!important;
  }

  .v34-monster-grid,
  .v28-monster-grid,
  .v27-monster-grid,
  .v22-monster-grid,
  .v20-monster-grid,
  .v19-monster-grid,
  .v18-monster-grid,
  .v17-monster-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-rows:auto!important;
    gap:10px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .v34-monster-grid > article,
  .v28-monster-grid > article,
  .v27-monster-grid > article,
  .v22-monster-grid > article,
  .v20-monster-grid > article,
  .v19-monster-grid > article,
  .v18-monster-grid > article,
  .v17-monster-grid > article{
    grid-column:1/-1!important;
    grid-row:auto!important;
  }

  .monster-battle-card,
  .v34-monster-target,
  .v37-monster-target,
  .v19-monster-target,
  .v18-monster-target,
  .v17-monster-target{
    display:grid!important;
    grid-template-columns:62px minmax(0,1fr) 58px!important;
    gap:10px!important;
    align-items:center!important;
    min-height:128px!important;
    height:auto!important;
    width:100%!important;
    max-width:none!important;
    padding:12px!important;
    border-radius:22px!important;
    overflow:hidden!important;
  }
  .monster-battle-card .monster-portrait.battle,
  .v34-monster-target .monster-portrait.battle{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    border-radius:18px!important;
  }
  .monster-battle-card .monster-portrait.battle span,
  .v34-monster-target .monster-portrait.battle span{
    font-size:35px!important;
  }
  .monster-battle-card .monster-battle-info,
  .v34-monster-target .monster-battle-info{
    min-width:0!important;
    display:grid!important;
    gap:5px!important;
  }
  .monster-battle-card h2,
  .v34-monster-target h2{
    font-size:18px!important;
    line-height:1.1!important;
  }
  .monster-battle-card .v23-monster-badges,
  .v34-monster-target .v23-monster-badges{
    min-height:22px!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:5px!important;
  }
  .monster-battle-card .v34-status-chip,
  .monster-battle-card .v23-battle-badge{
    display:inline-flex!important;
    align-items:center!important;
    max-width:none!important;
    height:21px!important;
    min-height:21px!important;
    font-size:10px!important;
    padding:2px 7px!important;
    line-height:1!important;
  }
  .monster-battle-card .v21-monster-stats,
  .v34-monster-target .v21-monster-stats{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    font-size:12px!important;
    line-height:1.15!important;
  }
  .monster-battle-card .v17-sword-btn,
  .v34-monster-target .v17-sword-btn{
    width:54px!important;
    height:54px!important;
    min-height:54px!important;
    border-radius:17px!important;
    font-size:27px!important;
  }

  .battle-party-cards,
  .v34-party-grid,
  .v11-party-grid,
  .v10-party-grid,
  .v9-party-grid,
  .v7-party-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-rows:auto!important;
    gap:10px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }

  .battle-player.v43-player,
  .battle-player{
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr)!important;
    grid-template-areas:
      "avatar title"
      "status status"
      "bars bars"!important;
    gap:8px 10px!important;
    align-items:center!important;
    min-height:132px!important;
    height:auto!important;
    width:100%!important;
    padding:12px!important;
    border-radius:22px!important;
    background:
      radial-gradient(circle at 0% 0%,rgba(0,214,198,.12),transparent 38%),
      linear-gradient(145deg,rgba(22,34,52,.98),rgba(15,22,36,.98))!important;
    border:1px solid rgba(0,214,198,.30)!important;
    box-shadow:0 15px 34px rgba(0,0,0,.30),inset 0 0 0 1px rgba(255,255,255,.035)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .battle-player.v43-player.self,
  .battle-player.self{
    border-color:rgba(0,214,198,.56)!important;
    box-shadow:0 0 0 1px rgba(0,214,198,.16),0 18px 36px rgba(0,0,0,.32)!important;
  }
  .battle-player .player-card-head{
    display:contents!important;
  }
  .battle-player .player-avatar{
    grid-area:avatar!important;
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    border-radius:18px!important;
    display:grid!important;
    place-items:center!important;
    font-size:31px!important;
    background:linear-gradient(145deg,#2d3038,#111318)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 10px 22px rgba(0,0,0,.28)!important;
    margin:0!important;
  }
  .battle-player .v25-player-title{
    grid-area:title!important;
    min-width:0!important;
    align-self:center!important;
  }
  .battle-player .v25-player-title h3{
    margin:0!important;
    font-size:18px!important;
    line-height:1.08!important;
    color:#fff!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .battle-player .v25-player-title small{
    display:block!important;
    margin-top:3px!important;
    font-size:12px!important;
    color:#c8cbd3!important;
  }
  .battle-player .v25-player-status,
  .battle-player .v17-taunt-badge{
    grid-area:status!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-height:34px!important;
    padding:8px 10px!important;
    border-radius:16px!important;
    font-size:12px!important;
    line-height:1.15!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .battle-player .player-bars{
    grid-area:bars!important;
    display:grid!important;
    gap:8px!important;
    width:100%!important;
    margin:0!important;
  }
  .battle-player .stat-row{
    display:grid!important;
    grid-template-columns:76px minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
  }
  .battle-player .stat-row span{
    font-size:12px!important;
    font-weight:900!important;
    color:#fff!important;
    white-space:nowrap!important;
  }
  .battle-player .bar{
    height:9px!important;
    border-radius:999px!important;
    overflow:hidden!important;
    background:rgba(255,255,255,.15)!important;
  }

  .battle-log{
    border-radius:20px!important;
    min-height:130px!important;
    padding:11px!important;
  }
  .battle-log h3{
    font-size:16px!important;
    margin:0 0 8px!important;
  }
  .battle-log .battle-log-scroll{
    max-height:150px!important;
    min-height:84px!important;
    height:auto!important;
    overflow:auto!important;
  }
  .battle-log .battle-log-scroll p{
    font-size:12px!important;
    line-height:1.28!important;
    padding:9px 10px!important;
    border-radius:12px!important;
  }
}

/* Боковые панели на телефоне: полноценная панель, а не маленький кусок */
@media(max-width:640px){
  .v45-skill-drawer.v16-skill-drawer,
  .v34-skill-drawer.v16-skill-drawer,
  .v37-skill-drawer.v16-skill-drawer,
  .v17-skill-drawer.v16-skill-drawer{
    position:fixed!important;
    top:58px!important;
    right:0!important;
    left:auto!important;
    bottom:0!important;
    width:94vw!important;
    min-width:0!important;
    max-width:94vw!important;
    height:calc(100dvh - 58px)!important;
    max-height:calc(100dvh - 58px)!important;
    padding:15px!important;
    border-radius:22px 0 0 0!important;
    transform:translateX(104%)!important;
    z-index:100!important;
  }
  .v45-skill-drawer.v16-skill-drawer.open,
  .v34-skill-drawer.v16-skill-drawer.open,
  .v37-skill-drawer.v16-skill-drawer.open,
  .v17-skill-drawer.v16-skill-drawer.open{
    transform:translateX(0)!important;
  }
  .v45-help-drawer.v17-help-drawer,
  .v34-help-drawer.v17-help-drawer,
  .v37-help-drawer.v17-help-drawer,
  .v17-help-drawer{
    position:fixed!important;
    top:58px!important;
    left:0!important;
    right:auto!important;
    bottom:0!important;
    width:94vw!important;
    min-width:0!important;
    max-width:94vw!important;
    height:calc(100dvh - 58px)!important;
    max-height:calc(100dvh - 58px)!important;
    padding:15px!important;
    border-radius:0 22px 0 0!important;
    transform:translateX(-104%)!important;
    z-index:100!important;
  }
  .v45-help-drawer.v17-help-drawer.open,
  .v34-help-drawer.v17-help-drawer.open,
  .v37-help-drawer.v17-help-drawer.open,
  .v17-help-drawer.open{
    transform:translateX(0)!important;
  }

  .v45-skill-drawer .v17-drawer-head b,
  .v34-skill-drawer .v17-drawer-head b,
  .v37-skill-drawer .v17-drawer-head b{
    font-size:19px!important;
  }
  .v45-skill-drawer .v17-drawer-head small,
  .v34-skill-drawer .v17-drawer-head small,
  .v37-skill-drawer .v17-drawer-head small{
    display:block!important;
    font-size:12px!important;
  }
  .v45-skill-drawer .v17-skill-scroll,
  .v34-skill-drawer .v17-skill-scroll,
  .v37-skill-drawer .v17-skill-scroll,
  .v45-skill-drawer .v16-skill-scroll,
  .v34-skill-drawer .v16-skill-scroll,
  .v37-skill-drawer .v16-skill-scroll{
    max-height:none!important;
    height:auto!important;
    overflow:auto!important;
    padding:12px 4px 20px 0!important;
  }
  .v43-drawer-ability,
  .v42-drawer-ability,
  .v32-drawer-ability{
    border-radius:20px!important;
    margin-bottom:10px!important;
  }
  .v43-ability-main,
  .v42-ability-main,
  .v32-ability-main{
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:12px!important;
    padding:13px!important;
    align-items:start!important;
  }
  .v43-ability-main span,
  .v42-ability-main span,
  .v32-ability-main span{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    border-radius:17px!important;
    font-size:29px!important;
  }
  .v43-ability-main b,
  .v42-ability-main b,
  .v32-ability-main b{
    font-size:16px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .v43-ability-main small,
  .v42-ability-main small,
  .v32-ability-main small{
    font-size:11px!important;
    margin:4px 0 6px!important;
  }
  .v43-ability-main p,
  .v42-ability-main p,
  .v32-ability-main p{
    display:block!important;
    font-size:13px!important;
    line-height:1.35!important;
    color:#e4e4e4!important;
    white-space:normal!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
  }
  .v44-drawer-feature{
    display:block!important;
    margin-top:8px!important;
    padding:7px 9px!important;
    border-radius:12px!important;
    background:rgba(255,184,86,.10)!important;
    border:1px solid rgba(255,184,86,.16)!important;
    color:#ffca86!important;
    font-size:12px!important;
    font-style:normal!important;
    line-height:1.25!important;
  }
}


/* ================= v46: полный фикс мобильного боя и новых карточек персонажей ================= */
/* На телефонах и узких браузерах убираем любые старые двухколоночные правила боя */
@media(max-width:900px){
  html,body{overflow-x:hidden!important;}
  body:has(.battle-screen){background:#0b0b0b!important;}

  .battle-top.topbar{
    min-height:62px!important;
    padding:8px 10px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    gap:8px!important;
    align-items:center!important;
  }
  .battle-top .top-title{
    min-width:0!important;
    text-align:left!important;
  }
  .battle-top .top-title h1{
    font-size:16px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .battle-top .top-title p{
    display:block!important;
    font-size:10.5px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .battle-top .net-pill{display:none!important;}
  .battle-top .v17-corner-btn{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    padding:0!important;
    border-radius:14px!important;
    font-size:20px!important;
  }
  .battle-top .v17-corner-btn span{display:none!important;}

  .battle-screen,
  .battle-screen.v34-battle,
  .battle-screen.v37-battle,
  .battle-screen.v17-battle,
  main.battle-screen{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:10px 10px 120px!important;
    gap:14px!important;
    overflow:visible!important;
    align-content:start!important;
    box-sizing:border-box!important;
  }

  .battle-timer,
  .v17-timer,
  .v16-timer,
  .v11-timer{
    order:1!important;
    width:100%!important;
    min-height:72px!important;
    height:auto!important;
    padding:11px!important;
    border-radius:20px!important;
    box-sizing:border-box!important;
  }

  .v17-monsters-panel,
  .v37-monsters-panel{
    order:2!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:10px!important;
    margin:0!important;
    border-radius:22px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .party-panel,
  .v37-party-panel,
  .v17-party-panel,
  .v16-party-panel{
    order:3!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:10px!important;
    margin:0!important;
    border-radius:22px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .battle-log,
  .v34-battle-log,
  .v17-battle-log{
    order:4!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:150px!important;
    max-height:none!important;
    padding:12px!important;
    margin:0!important;
    border-radius:22px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  .v34-monster-grid,
  .v28-monster-grid,
  .v27-monster-grid,
  .v22-monster-grid,
  .v20-monster-grid,
  .v19-monster-grid,
  .v18-monster-grid,
  .v17-monster-grid,
  .v34-monster-grid.count-1,.v34-monster-grid.count-2,.v34-monster-grid.count-3,.v34-monster-grid.count-4,
  .v28-monster-grid.count-1,.v28-monster-grid.count-2,.v28-monster-grid.count-3,.v28-monster-grid.count-4,
  .v27-monster-grid.count-1,.v27-monster-grid.count-2,.v27-monster-grid.count-3,.v27-monster-grid.count-4,
  .v22-monster-grid.count-1,.v22-monster-grid.count-2,.v22-monster-grid.count-3,.v22-monster-grid.count-4,
  .v20-monster-grid.count-1,.v20-monster-grid.count-2,.v20-monster-grid.count-3,.v20-monster-grid.count-4,
  .v19-monster-grid.count-1,.v19-monster-grid.count-2,.v19-monster-grid.count-3,.v19-monster-grid.count-4,
  .v18-monster-grid.count-1,.v18-monster-grid.count-2,.v18-monster-grid.count-3,.v18-monster-grid.count-4,
  .v17-monster-grid.count-1,.v17-monster-grid.count-2,.v17-monster-grid.count-3,.v17-monster-grid.count-4{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }

  .v34-monster-grid > *,
  .v28-monster-grid > *,
  .v27-monster-grid > *,
  .v22-monster-grid > *,
  .v20-monster-grid > *,
  .v19-monster-grid > *,
  .v18-monster-grid > *,
  .v17-monster-grid > *{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    place-self:stretch!important;
  }

  .monster-battle-card,
  .v46-monster-target,
  .v34-monster-target,
  .v37-monster-target,
  .v28-monster-target,
  .v27-monster-target,
  .v23-monster-target,
  .v22-monster-target,
  .v21-monster-target,
  .v20-monster-target,
  .v19-monster-target,
  .v18-monster-target,
  .v17-monster-target,
  .v16-monster-target{
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr) 58px!important;
    grid-template-areas:"icon info sword"!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:122px!important;
    height:auto!important;
    max-height:none!important;
    padding:12px!important;
    border-radius:22px!important;
    overflow:hidden!important;
    contain:none!important;
    box-sizing:border-box!important;
    background:
      radial-gradient(circle at 0 0,rgba(255,184,86,.16),transparent 40%),
      linear-gradient(145deg,rgba(54,38,58,.96),rgba(20,22,30,.97))!important;
  }
  .v46-monster-target.selected-target,
  .monster-battle-card.selected-target{
    border-color:rgba(255,210,95,.92)!important;
    box-shadow:0 0 0 2px rgba(255,210,95,.18),0 18px 38px rgba(0,0,0,.34)!important;
  }
  .v46-monster-target .monster-portrait.battle,
  .monster-battle-card .monster-portrait.battle{
    grid-area:icon!important;
    width:60px!important;
    height:60px!important;
    min-width:60px!important;
    border-radius:18px!important;
    margin:0!important;
    justify-self:center!important;
    align-self:center!important;
  }
  .v46-monster-target .monster-portrait.battle span,
  .monster-battle-card .monster-portrait.battle span{font-size:36px!important;}
  .v46-monster-target .monster-battle-info,
  .monster-battle-card .monster-battle-info{
    grid-area:info!important;
    min-width:0!important;
    display:grid!important;
    grid-template-rows:auto auto auto auto!important;
    gap:6px!important;
    overflow:hidden!important;
  }
  .v46-monster-target .v21-monster-title-line,
  .monster-battle-card .v21-monster-title-line{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
  }
  .v46-monster-target h2,
  .monster-battle-card h2{
    font-size:18px!important;
    line-height:1.1!important;
    margin:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .v46-monster-target .v17-mob-index,
  .monster-battle-card .v17-mob-index{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    border-radius:10px!important;
    font-size:12px!important;
  }
  .v46-monster-target .v23-monster-badges,
  .monster-battle-card .v23-monster-badges{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:5px!important;
    min-height:22px!important;
    overflow:visible!important;
  }
  .v46-monster-target .v34-status-chip,
  .v46-monster-target .v23-battle-badge,
  .monster-battle-card .v34-status-chip,
  .monster-battle-card .v23-battle-badge{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    max-width:none!important;
    height:22px!important;
    min-height:22px!important;
    padding:2px 8px!important;
    font-size:10px!important;
    line-height:1!important;
  }
  .v46-monster-target .bar,
  .monster-battle-card .bar{
    height:9px!important;
    margin:0!important;
    border-radius:999px!important;
  }
  .v46-monster-target .v21-monster-stats,
  .monster-battle-card .v21-monster-stats{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    font-size:12px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow:visible!important;
  }
  .v46-monster-target .v17-target-actions,
  .monster-battle-card .v17-target-actions{
    grid-area:sword!important;
    min-width:58px!important;
    width:58px!important;
    display:grid!important;
    place-items:center!important;
  }
  .v46-monster-target .v17-sword-btn,
  .monster-battle-card .v17-sword-btn{
    width:54px!important;
    height:54px!important;
    min-height:54px!important;
    border-radius:18px!important;
    font-size:27px!important;
  }

  .battle-party-cards,
  .v34-party-grid,
  .v11-party-grid,
  .v10-party-grid,
  .v9-party-grid,
  .v7-party-grid,
  .battle-party-cards.count-1,.battle-party-cards.count-2,.battle-party-cards.count-3,.battle-party-cards.count-4,
  .v34-party-grid.count-1,.v34-party-grid.count-2,.v34-party-grid.count-3,.v34-party-grid.count-4,
  .v11-party-grid.count-1,.v11-party-grid.count-2,.v11-party-grid.count-3,.v11-party-grid.count-4,
  .v10-party-grid.count-1,.v10-party-grid.count-2,.v10-party-grid.count-3,.v10-party-grid.count-4,
  .v9-party-grid.count-1,.v9-party-grid.count-2,.v9-party-grid.count-3,.v9-party-grid.count-4,
  .v7-party-grid.count-1,.v7-party-grid.count-2,.v7-party-grid.count-3,.v7-party-grid.count-4{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
    gap:10px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }

  .battle-player.v46-player,
  .battle-player.v43-player,
  .battle-player{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-areas:"top" "status" "bars"!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:0!important;
    height:auto!important;
    padding:13px!important;
    border-radius:22px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    opacity:1!important;
    background:
      radial-gradient(circle at 0 0,rgba(0,214,198,.14),transparent 44%),
      linear-gradient(145deg,rgba(20,34,52,.98),rgba(14,22,36,.98))!important;
    border:1px solid rgba(0,214,198,.32)!important;
    box-shadow:0 16px 34px rgba(0,0,0,.30),inset 0 0 0 1px rgba(255,255,255,.035)!important;
  }
  .battle-player.v46-player.self,
  .battle-player.self{
    border-color:rgba(0,214,198,.58)!important;
    box-shadow:0 0 0 1px rgba(0,214,198,.16),0 18px 38px rgba(0,0,0,.34)!important;
  }
  .battle-player.v46-player .v46-player-top,
  .battle-player.v46-player .player-card-head,
  .battle-player .player-card-head{
    grid-area:top!important;
    display:grid!important;
    grid-template-columns:54px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0!important;
    width:100%!important;
  }
  .battle-player.v46-player .player-avatar,
  .battle-player .player-avatar{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    border-radius:18px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    font-size:30px!important;
    background:linear-gradient(145deg,#30333b,#121419)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 10px 22px rgba(0,0,0,.26)!important;
  }
  .battle-player.v46-player .v46-player-name,
  .battle-player .v25-player-title{
    min-width:0!important;
    align-self:center!important;
  }
  .battle-player.v46-player h3,
  .battle-player h3{
    margin:0!important;
    font-size:17px!important;
    line-height:1.1!important;
    color:#fff!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .battle-player.v46-player small,
  .battle-player .v25-player-title small{
    display:block!important;
    margin-top:4px!important;
    color:#cbd0dc!important;
    font-size:12px!important;
  }
  .battle-player.v46-player .v46-status-chip,
  .battle-player .v17-taunt-badge{
    justify-self:end!important;
    max-width:110px!important;
    min-height:28px!important;
    padding:6px 9px!important;
    border-radius:999px!important;
    font-size:10px!important;
    line-height:1.1!important;
    white-space:normal!important;
  }
  .battle-player.v46-player .v46-player-status,
  .battle-player .v25-player-status{
    grid-area:status!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-height:38px!important;
    padding:9px 12px!important;
    border-radius:18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    font-size:13px!important;
    line-height:1.18!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    box-sizing:border-box!important;
  }
  .battle-player.v46-player .v46-player-bars,
  .battle-player .player-bars{
    grid-area:bars!important;
    width:100%!important;
    display:grid!important;
    gap:9px!important;
    margin:0!important;
  }
  .battle-player.v46-player .v46-stat-row,
  .battle-player .stat-row{
    display:grid!important;
    grid-template-columns:82px minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px!important;
    width:100%!important;
  }
  .battle-player.v46-player .v46-stat-row span,
  .battle-player .stat-row span{
    font-size:12px!important;
    font-weight:900!important;
    color:#fff!important;
    white-space:nowrap!important;
  }
  .battle-player.v46-player .bar,
  .battle-player .bar{
    height:10px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.14)!important;
    overflow:hidden!important;
  }
  .battle-player.v46-player .bar i,
  .battle-player .bar i{
    border-radius:999px!important;
    transition:width .25s ease!important;
  }

  .battle-log h3{font-size:18px!important;margin:0 0 9px!important;}
  .battle-log .battle-log-scroll{
    height:auto!important;
    min-height:98px!important;
    max-height:190px!important;
    overflow:auto!important;
  }
  .battle-log .battle-log-scroll p{
    font-size:13px!important;
    line-height:1.32!important;
    padding:10px 11px!important;
    border-radius:14px!important;
  }
}

/* Совсем узкие телефоны: сохраняем читаемость, но чуть уменьшаем */
@media(max-width:420px){
  .battle-screen,
  .battle-screen.v34-battle,
  .battle-screen.v37-battle{padding-left:8px!important;padding-right:8px!important;gap:12px!important;}

  .v46-monster-target,
  .monster-battle-card,
  .v34-monster-target{
    grid-template-columns:56px minmax(0,1fr) 50px!important;
    gap:9px!important;
    padding:11px!important;
    min-height:118px!important;
  }
  .v46-monster-target .monster-portrait.battle,
  .monster-battle-card .monster-portrait.battle{
    width:52px!important;height:52px!important;min-width:52px!important;
  }
  .v46-monster-target .monster-portrait.battle span,
  .monster-battle-card .monster-portrait.battle span{font-size:32px!important;}
  .v46-monster-target h2,
  .monster-battle-card h2{font-size:16px!important;}
  .v46-monster-target .v17-sword-btn,
  .monster-battle-card .v17-sword-btn{width:48px!important;height:50px!important;min-height:50px!important;font-size:24px!important;}
  .v46-monster-target .v21-monster-stats,
  .monster-battle-card .v21-monster-stats{font-size:11px!important;gap:7px!important;}

  .battle-player.v46-player,
  .battle-player{padding:12px!important;border-radius:20px!important;}
  .battle-player.v46-player .v46-player-top,
  .battle-player .player-card-head{grid-template-columns:50px minmax(0,1fr) auto!important;gap:9px!important;}
  .battle-player.v46-player .player-avatar,
  .battle-player .player-avatar{width:50px!important;height:50px!important;min-width:50px!important;font-size:28px!important;}
  .battle-player.v46-player h3,
  .battle-player h3{font-size:16px!important;}
  .battle-player.v46-player .v46-player-status,
  .battle-player .v25-player-status{font-size:12px!important;min-height:36px!important;}
  .battle-player.v46-player .v46-stat-row,
  .battle-player .stat-row{grid-template-columns:78px minmax(0,1fr)!important;}
}


/* ================= v47: жесткая мобильная пересборка боя, без сжатия карточек ================= */
/* Важно: этот блок специально стоит самым последним и перебивает старые v17-v46 сетки. */
@media (max-width: 980px), (pointer: coarse) {
  body:has(.battle-screen), html:has(.battle-screen){
    overflow-x:hidden!important;
  }

  .battle-screen,
  .battle-screen.v34-battle,
  .battle-screen.v37-battle,
  main.battle-screen{
    display:flex!important;
    flex-direction:column!important;
    gap:16px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:12px 12px 130px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .battle-timer{
    order:1!important;
    width:100%!important;
    min-height:78px!important;
    height:auto!important;
    padding:12px!important;
    border-radius:22px!important;
  }

  .v17-monsters-panel,
  .v37-monsters-panel{
    order:2!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:10px!important;
    margin:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .party-panel,
  .v37-party-panel,
  .v17-party-panel{
    order:3!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:10px!important;
    margin:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  .battle-log{
    order:4!important;
    display:block!important;
    width:100%!important;
    min-height:150px!important;
    height:auto!important;
    max-height:none!important;
    padding:13px!important;
    margin:0!important;
    border-radius:24px!important;
    overflow:hidden!important;
  }

  .v47-monster-grid,
  .v34-monster-grid,
  .v28-monster-grid,
  .v27-monster-grid,
  .v22-monster-grid,
  .v20-monster-grid,
  .v19-monster-grid,
  .v18-monster-grid,
  .v17-monster-grid,
  .v47-monster-grid.count-1,.v47-monster-grid.count-2,.v47-monster-grid.count-3,.v47-monster-grid.count-4,
  .v34-monster-grid.count-1,.v34-monster-grid.count-2,.v34-monster-grid.count-3,.v34-monster-grid.count-4,
  .v28-monster-grid.count-1,.v28-monster-grid.count-2,.v28-monster-grid.count-3,.v28-monster-grid.count-4,
  .v19-monster-grid.count-1,.v19-monster-grid.count-2,.v19-monster-grid.count-3,.v19-monster-grid.count-4,
  .v18-monster-grid.count-1,.v18-monster-grid.count-2,.v18-monster-grid.count-3,.v18-monster-grid.count-4,
  .v17-monster-grid.count-1,.v17-monster-grid.count-2,.v17-monster-grid.count-3,.v17-monster-grid.count-4{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
  }

  .v47-monster-grid > *,
  .v34-monster-grid > *,
  .v28-monster-grid > *,
  .v27-monster-grid > *,
  .v22-monster-grid > *,
  .v20-monster-grid > *,
  .v19-monster-grid > *,
  .v18-monster-grid > *,
  .v17-monster-grid > *{
    display:grid!important;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }

  .v47-monster-target,
  .v46-monster-target,
  .monster-battle-card,
  .v34-monster-target,
  .v19-monster-target,
  .v18-monster-target,
  .v17-monster-target{
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr) 62px!important;
    grid-template-areas:"icon info sword"!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:132px!important;
    height:auto!important;
    padding:14px!important;
    border-radius:24px!important;
    overflow:hidden!important;
    contain:none!important;
    box-sizing:border-box!important;
    background:
      radial-gradient(circle at 0% 50%,rgba(255,202,113,.16),transparent 44%),
      linear-gradient(145deg,rgba(62,42,64,.96),rgba(23,23,34,.98))!important;
  }

  .v47-monster-target .monster-portrait.battle,
  .v46-monster-target .monster-portrait.battle,
  .monster-battle-card .monster-portrait.battle{
    grid-area:icon!important;
    width:68px!important;
    height:68px!important;
    min-width:68px!important;
    border-radius:20px!important;
    margin:0!important;
    align-self:center!important;
    justify-self:center!important;
  }
  .v47-monster-target .monster-portrait.battle span,
  .v46-monster-target .monster-portrait.battle span,
  .monster-battle-card .monster-portrait.battle span{
    font-size:40px!important;
  }

  .v47-monster-target .monster-battle-info,
  .v46-monster-target .monster-battle-info,
  .monster-battle-card .monster-battle-info{
    grid-area:info!important;
    min-width:0!important;
    max-width:100%!important;
    display:grid!important;
    gap:7px!important;
    overflow:hidden!important;
    align-self:center!important;
  }

  .v47-monster-target .v21-monster-title-line,
  .v46-monster-target .v21-monster-title-line,
  .monster-battle-card .v21-monster-title-line{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
  }

  .v47-monster-target h2,
  .v46-monster-target h2,
  .monster-battle-card h2{
    margin:0!important;
    font-size:19px!important;
    line-height:1.12!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .v47-monster-target .v17-mob-index,
  .v46-monster-target .v17-mob-index{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    border-radius:10px!important;
    font-size:13px!important;
  }

  .v47-monster-target .v23-monster-badges,
  .v46-monster-target .v23-monster-badges,
  .monster-battle-card .v23-monster-badges{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:6px!important;
    min-height:24px!important;
    max-height:none!important;
    overflow:visible!important;
  }

  .v47-monster-target .v34-status-chip,
  .v47-monster-target .v23-battle-badge,
  .v46-monster-target .v34-status-chip,
  .v46-monster-target .v23-battle-badge{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    max-width:none!important;
    height:23px!important;
    min-height:23px!important;
    padding:3px 8px!important;
    font-size:10.5px!important;
    line-height:1!important;
  }

  .v47-monster-target .bar,
  .v46-monster-target .bar,
  .monster-battle-card .bar{
    width:100%!important;
    height:10px!important;
    margin:0!important;
    border-radius:999px!important;
  }

  .v47-monster-target .v21-monster-stats,
  .v47-monster-target .v19-monster-stats,
  .v46-monster-target .v21-monster-stats,
  .monster-battle-card .v21-monster-stats{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    font-size:13px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow:visible!important;
  }

  .v47-monster-target .v17-target-actions,
  .v46-monster-target .v17-target-actions,
  .monster-battle-card .v17-target-actions{
    grid-area:sword!important;
    width:62px!important;
    min-width:62px!important;
    display:grid!important;
    place-items:center!important;
  }

  .v47-monster-target .v17-sword-btn,
  .v46-monster-target .v17-sword-btn,
  .monster-battle-card .v17-sword-btn{
    width:58px!important;
    height:58px!important;
    min-height:58px!important;
    border-radius:18px!important;
    font-size:29px!important;
  }

  .v47-party-grid,
  .battle-party-cards,
  .v34-party-grid,
  .v11-party-grid,
  .v10-party-grid,
  .v9-party-grid,
  .v7-party-grid,
  .v47-party-grid.count-1,.v47-party-grid.count-2,.v47-party-grid.count-3,.v47-party-grid.count-4,
  .battle-party-cards.count-1,.battle-party-cards.count-2,.battle-party-cards.count-3,.battle-party-cards.count-4,
  .v34-party-grid.count-1,.v34-party-grid.count-2,.v34-party-grid.count-3,.v34-party-grid.count-4,
  .v11-party-grid.count-1,.v11-party-grid.count-2,.v11-party-grid.count-3,.v11-party-grid.count-4,
  .v10-party-grid.count-1,.v10-party-grid.count-2,.v10-party-grid.count-3,.v10-party-grid.count-4,
  .v9-party-grid.count-1,.v9-party-grid.count-2,.v9-party-grid.count-3,.v9-party-grid.count-4{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
  }

  .v47-party-grid > *,
  .battle-party-cards > *,
  .v34-party-grid > *,
  .v11-party-grid > *,
  .v10-party-grid > *,
  .v9-party-grid > *,
  .v7-party-grid > *{
    flex:0 0 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }

  .battle-player.v47-player,
  .battle-player.v46-player,
  .battle-player.v43-player,
  .battle-player{
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr)!important;
    grid-template-areas:
      "avatar title"
      "status status"
      "bars bars"!important;
    align-items:center!important;
    gap:10px 12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:132px!important;
    padding:14px!important;
    border-radius:24px!important;
    opacity:1!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:
      radial-gradient(circle at 0 0,rgba(0,214,198,.16),transparent 44%),
      linear-gradient(145deg,rgba(19,35,56,.98),rgba(13,23,39,.98))!important;
    border:1px solid rgba(0,214,198,.35)!important;
    box-shadow:0 18px 36px rgba(0,0,0,.32),inset 0 0 0 1px rgba(255,255,255,.035)!important;
  }

  .battle-player.v47-player.self,
  .battle-player.self{border-color:rgba(0,214,198,.62)!important;}

  .battle-player.v47-player .v46-player-top,
  .battle-player.v47-player .player-card-head,
  .battle-player .player-card-head{
    display:contents!important;
  }

  .battle-player.v47-player .player-avatar,
  .battle-player .player-avatar{
    grid-area:avatar!important;
    width:62px!important;
    height:62px!important;
    min-width:62px!important;
    border-radius:20px!important;
    display:grid!important;
    place-items:center!important;
    font-size:34px!important;
    margin:0!important;
    background:linear-gradient(145deg,#30333b,#111318)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.28)!important;
  }

  .battle-player.v47-player .v46-player-name,
  .battle-player .v25-player-title{
    grid-area:title!important;
    min-width:0!important;
    align-self:center!important;
    text-align:left!important;
  }

  .battle-player.v47-player h3,
  .battle-player h3{
    margin:0!important;
    font-size:20px!important;
    line-height:1.08!important;
    color:#fff!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-shadow:0 2px 8px rgba(0,0,0,.34)!important;
  }

  .battle-player.v47-player small,
  .battle-player .v25-player-title small{
    display:block!important;
    margin-top:4px!important;
    font-size:13px!important;
    color:#cbd0dc!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .battle-player.v47-player .v46-status-chip,
  .battle-player .v17-taunt-badge{
    grid-area:status!important;
    justify-self:start!important;
    width:auto!important;
    max-width:100%!important;
    min-height:26px!important;
    padding:6px 10px!important;
    border-radius:999px!important;
    font-size:11px!important;
    white-space:normal!important;
  }

  .battle-player.v47-player .v46-player-status,
  .battle-player .v25-player-status{
    grid-area:status!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-height:40px!important;
    padding:9px 12px!important;
    border-radius:18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    font-size:14px!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .battle-player.v47-player .v46-player-bars,
  .battle-player .player-bars{
    grid-area:bars!important;
    display:grid!important;
    gap:9px!important;
    width:100%!important;
    margin:0!important;
  }

  .battle-player.v47-player .v46-stat-row,
  .battle-player .stat-row{
    display:grid!important;
    grid-template-columns:90px minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
  }

  .battle-player.v47-player .v46-stat-row span,
  .battle-player .stat-row span{
    font-size:13px!important;
    font-weight:900!important;
    color:#fff!important;
    white-space:nowrap!important;
  }

  .battle-player.v47-player .bar,
  .battle-player .bar{
    width:100%!important;
    height:10px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.14)!important;
    overflow:hidden!important;
  }

  .battle-log .battle-log-scroll{
    min-height:100px!important;
    max-height:190px!important;
    height:auto!important;
    overflow:auto!important;
  }
}

/* На совсем узких экранах всё равно оставляем читаемые карточки, но чуть компактнее. */
@media (max-width: 430px){
  .battle-screen{padding-left:9px!important;padding-right:9px!important;gap:13px!important;}

  .v47-monster-target,
  .v46-monster-target,
  .monster-battle-card,
  .v34-monster-target{
    grid-template-columns:60px minmax(0,1fr) 54px!important;
    min-height:126px!important;
    padding:12px!important;
    gap:10px!important;
  }
  .v47-monster-target .monster-portrait.battle,
  .v46-monster-target .monster-portrait.battle,
  .monster-battle-card .monster-portrait.battle{
    width:56px!important;height:56px!important;min-width:56px!important;
  }
  .v47-monster-target .monster-portrait.battle span,
  .v46-monster-target .monster-portrait.battle span,
  .monster-battle-card .monster-portrait.battle span{font-size:34px!important;}

  .v47-monster-target h2,
  .v46-monster-target h2,
  .monster-battle-card h2{font-size:17px!important;}

  .v47-monster-target .v21-monster-stats,
  .v46-monster-target .v21-monster-stats,
  .monster-battle-card .v21-monster-stats{font-size:12px!important;gap:8px!important;}

  .v47-monster-target .v17-sword-btn,
  .v46-monster-target .v17-sword-btn,
  .monster-battle-card .v17-sword-btn{
    width:50px!important;height:52px!important;min-height:52px!important;font-size:25px!important;
  }

  .battle-player.v47-player,
  .battle-player.v46-player,
  .battle-player{
    grid-template-columns:58px minmax(0,1fr)!important;
    min-height:126px!important;
    padding:12px!important;
    gap:9px 10px!important;
  }
  .battle-player.v47-player .player-avatar,
  .battle-player .player-avatar{
    width:56px!important;height:56px!important;min-width:56px!important;font-size:31px!important;
  }
  .battle-player.v47-player h3,
  .battle-player h3{font-size:18px!important;}
  .battle-player.v47-player small,
  .battle-player .v25-player-title small{font-size:12px!important;}
  .battle-player.v47-player .v46-player-status,
  .battle-player .v25-player-status{font-size:13px!important;min-height:38px!important;}
  .battle-player.v47-player .v46-stat-row,
  .battle-player .stat-row{grid-template-columns:84px minmax(0,1fr)!important;}
}


/* ================= v48: финальная правка боя для ПК и телефона ================= */
/* Принцип: новые v48-классы перебивают все старые экспериментальные слои. */

/* --- Desktop / tablet --- */
.battle-player.v48-player{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  grid-template-areas:
    "avatar title"
    "avatar status"
    "bars bars"!important;
  align-items:start!important;
  gap:10px 12px!important;
  min-height:152px!important;
  padding:14px!important;
  border-radius:22px!important;
  overflow:hidden!important;
}
.battle-player.v48-player .v46-player-top,
.battle-player.v48-player .player-card-head{
  display:contents!important;
}
.battle-player.v48-player .player-avatar{
  grid-area:avatar!important;
  align-self:start!important;
  justify-self:start!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  border-radius:17px!important;
  font-size:30px!important;
  margin:0!important;
}
.battle-player.v48-player .v46-player-name,
.battle-player.v48-player .v25-player-title{
  grid-area:title!important;
  align-self:start!important;
  justify-self:start!important;
  width:100%!important;
  min-width:0!important;
  text-align:left!important;
}
.battle-player.v48-player .v25-player-title h3,
.battle-player.v48-player h3{
  margin:0!important;
  font-size:18px!important;
  line-height:1.08!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v48-player .v25-player-title small,
.battle-player.v48-player small{
  display:block!important;
  margin-top:4px!important;
  font-size:12px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v48-player .v46-status-chip,
.battle-player.v48-player .v17-taunt-badge{
  grid-area:status!important;
  justify-self:start!important;
  margin:0 0 2px!important;
}
.battle-player.v48-player .v46-player-status,
.battle-player.v48-player .v25-player-status{
  grid-area:status!important;
  justify-self:stretch!important;
  align-self:start!important;
  margin:0!important;
  min-height:38px!important;
  padding:8px 12px!important;
  border-radius:16px!important;
  font-size:13px!important;
}
.battle-player.v48-player .v46-player-bars,
.battle-player.v48-player .player-bars{
  grid-area:bars!important;
  width:100%!important;
  margin-top:2px!important;
  gap:8px!important;
}
.battle-player.v48-player .v46-stat-row,
.battle-player.v48-player .stat-row{
  display:grid!important;
  grid-template-columns:84px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
}
.battle-player.v48-player .v46-stat-row span,
.battle-player.v48-player .stat-row span{
  font-size:13px!important;
  font-weight:800!important;
}
.battle-player.v48-player .bar{height:10px!important;}

.v48-party-grid{
  display:grid!important;
  gap:12px!important;
}
.v48-party-grid.count-1{grid-template-columns:1fr!important;}
.v48-party-grid.count-2{grid-template-columns:1fr 1fr!important;}
.v48-party-grid.count-3,
.v48-party-grid.count-4{grid-template-columns:1fr 1fr!important;}

.v48-monster-grid{
  display:grid!important;
  gap:12px!important;
}
.v48-monster-grid.count-1{grid-template-columns:1fr!important;}
.v48-monster-grid.count-2{grid-template-columns:1fr 1fr!important;}
.v48-monster-grid.count-3,
.v48-monster-grid.count-4{grid-template-columns:1fr 1fr!important;}

.v48-monster-target{
  min-height:150px!important;
}

/* --- Mobile battle: compact, neat, one column --- */
@media (max-width: 980px), (pointer: coarse){
  .v48-monster-grid,
  .v48-monster-grid.count-1,.v48-monster-grid.count-2,.v48-monster-grid.count-3,.v48-monster-grid.count-4,
  .v48-party-grid,
  .v48-party-grid.count-1,.v48-party-grid.count-2,.v48-party-grid.count-3,.v48-party-grid.count-4{
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
    grid-template-columns:none!important;
  }

  .v48-monster-target{
    min-height:110px!important;
    grid-template-columns:56px minmax(0,1fr) 50px!important;
    gap:10px!important;
    padding:11px!important;
    border-radius:20px!important;
  }
  .v48-monster-target .monster-portrait.battle{
    width:52px!important;height:52px!important;min-width:52px!important;border-radius:16px!important;
  }
  .v48-monster-target .monster-portrait.battle span{font-size:32px!important;}
  .v48-monster-target h2{font-size:17px!important;}
  .v48-monster-target .v21-monster-stats,
  .v48-monster-target .v19-monster-stats{font-size:12px!important;gap:8px!important;}
  .v48-monster-target .v17-sword-btn{width:48px!important;height:50px!important;min-height:50px!important;font-size:24px!important;border-radius:16px!important;}

  .battle-player.v48-player{
    grid-template-columns:52px minmax(0,1fr)!important;
    grid-template-areas:
      "avatar title"
      "avatar status"
      "bars bars"!important;
    min-height:116px!important;
    gap:8px 10px!important;
    padding:12px!important;
    border-radius:20px!important;
  }
  .battle-player.v48-player .player-avatar{
    width:50px!important;height:50px!important;min-width:50px!important;font-size:27px!important;border-radius:15px!important;
  }
  .battle-player.v48-player .v25-player-title h3,
  .battle-player.v48-player h3{font-size:18px!important;}
  .battle-player.v48-player .v25-player-title small,
  .battle-player.v48-player small{font-size:12px!important;}
  .battle-player.v48-player .v46-player-status,
  .battle-player.v48-player .v25-player-status{
    min-height:34px!important;
    padding:7px 10px!important;
    font-size:12px!important;
  }
  .battle-player.v48-player .v46-stat-row,
  .battle-player.v48-player .stat-row{
    grid-template-columns:96px minmax(0,1fr)!important;
    gap:8px!important;
  }
  .battle-player.v48-player .v46-stat-row span,
  .battle-player.v48-player .stat-row span{font-size:12px!important;}
}

/* Very narrow phones */
@media (max-width: 430px){
  .v48-monster-target{
    min-height:102px!important;
    grid-template-columns:52px minmax(0,1fr) 46px!important;
    padding:10px!important;
  }
  .v48-monster-target .monster-portrait.battle{width:48px!important;height:48px!important;min-width:48px!important;}
  .v48-monster-target .monster-portrait.battle span{font-size:29px!important;}
  .v48-monster-target h2{font-size:16px!important;}
  .v48-monster-target .v23-battle-badge{font-size:10px!important;padding:2px 7px!important;}

  .battle-player.v48-player{
    min-height:108px!important;
    padding:10px!important;
    gap:7px 9px!important;
  }
  .battle-player.v48-player .player-avatar{width:46px!important;height:46px!important;min-width:46px!important;font-size:24px!important;}
  .battle-player.v48-player .v25-player-title h3,
  .battle-player.v48-player h3{font-size:17px!important;}
  .battle-player.v48-player .v25-player-title small,
  .battle-player.v48-player small{font-size:11px!important;}
  .battle-player.v48-player .v46-player-status,
  .battle-player.v48-player .v25-player-status{font-size:11.5px!important;min-height:32px!important;}
  .battle-player.v48-player .v46-stat-row,
  .battle-player.v48-player .stat-row{grid-template-columns:88px minmax(0,1fr)!important;}
}


/* ================= v49: новые карточки боя — игроки/монстры без лишнего сжатия ================= */
/* Монстры: только HP + шкала, без опыта и урона */
.v49-monster-hp-line{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  font-size:14px!important;
  font-weight:900!important;
  color:#fff!important;
}
.v49-monster-target .v21-monster-stats span:not(:first-child),
.v49-monster-target .v19-monster-stats span:not(:first-child){
  display:none!important;
}

/* ПК: нормальная компактная сетка, как раньше по точкам */
.v49-monster-grid,
.v49-party-grid{
  display:grid!important;
  gap:12px!important;
}
.v49-monster-grid.count-1{grid-template-columns:1fr!important;}
.v49-monster-grid.count-2{grid-template-columns:1fr 1fr!important;}
.v49-monster-grid.count-3,
.v49-monster-grid.count-4{grid-template-columns:1fr 1fr!important;}
.v49-party-grid.count-1{grid-template-columns:1fr!important;}
.v49-party-grid.count-2{grid-template-columns:1fr 1fr!important;}
.v49-party-grid.count-3,
.v49-party-grid.count-4{grid-template-columns:1fr 1fr!important;}

.v49-monster-target{
  min-height:124px!important;
  grid-template-columns:66px minmax(0,1fr) 58px!important;
  gap:12px!important;
  padding:13px!important;
  border-radius:22px!important;
}
.v49-monster-target .monster-portrait.battle{
  width:62px!important;
  height:62px!important;
  min-width:62px!important;
  border-radius:18px!important;
}
.v49-monster-target .monster-portrait.battle span{font-size:36px!important;}
.v49-monster-target h2{font-size:18px!important;}
.v49-monster-target .bar{height:10px!important;}
.v49-monster-target .v17-sword-btn{
  width:54px!important;
  height:54px!important;
  min-height:54px!important;
  border-radius:17px!important;
  font-size:26px!important;
}

/* Игроки: новая карточка, ближе к монстрам, но аккуратнее */
.battle-player.v49-player{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-areas:"main" "status" "bars"!important;
  gap:10px!important;
  min-height:138px!important;
  height:auto!important;
  padding:13px!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 0% 0%,rgba(0,214,198,.16),transparent 42%),
    linear-gradient(145deg,rgba(18,35,55,.98),rgba(12,22,36,.98))!important;
  border:1px solid rgba(0,214,198,.34)!important;
  box-shadow:0 15px 34px rgba(0,0,0,.30),inset 0 0 0 1px rgba(255,255,255,.035)!important;
  overflow:hidden!important;
}
.battle-player.v49-player.self{
  border-color:rgba(255,184,86,.44)!important;
}
.battle-player.v49-player .v49-player-main{
  grid-area:main!important;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
}
.battle-player.v49-player .v49-player-avatar{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  border-radius:16px!important;
  font-size:28px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,#2d3038,#111318)!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
.battle-player.v49-player .v49-player-title{
  min-width:0!important;
  text-align:left!important;
  align-self:center!important;
}
.battle-player.v49-player .v49-player-title h3{
  margin:0!important;
  font-size:18px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v49-player .v49-player-title small{
  display:block!important;
  margin-top:3px!important;
  font-size:12px!important;
  color:#cbd0dc!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v49-player .v49-taunt-chip{
  max-width:72px!important;
  min-height:25px!important;
  padding:5px 8px!important;
  font-size:10px!important;
  border-radius:999px!important;
}
.battle-player.v49-player .v49-player-status{
  grid-area:status!important;
  width:100%!important;
  min-height:34px!important;
  padding:7px 10px!important;
  border-radius:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font-size:12px!important;
  line-height:1.15!important;
  white-space:normal!important;
  text-align:center!important;
}
.battle-player.v49-player .v49-player-bars{
  grid-area:bars!important;
  display:grid!important;
  gap:8px!important;
  width:100%!important;
}
.battle-player.v49-player .v49-stat-row{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
}
.battle-player.v49-player .v49-stat-row span{
  font-size:12px!important;
  font-weight:900!important;
  color:#fff!important;
  white-space:nowrap!important;
}
.battle-player.v49-player .bar{
  width:100%!important;
  height:9px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.14)!important;
  overflow:hidden!important;
}

/* Ноутбук/планшет: 2 колонки еще допустимы */
@media (max-width: 980px){
  .v49-monster-grid.count-2,
  .v49-monster-grid.count-3,
  .v49-monster-grid.count-4,
  .v49-party-grid.count-2,
  .v49-party-grid.count-3,
  .v49-party-grid.count-4{
    grid-template-columns:1fr 1fr!important;
  }
}

/* Телефон: не один длинный список, а компактная 2x2 сетка, чтобы не листать вечность */
@media (max-width: 560px), (pointer: coarse) and (max-width: 760px){
  .battle-screen,
  .battle-screen.v34-battle,
  .battle-screen.v37-battle{
    gap:11px!important;
    padding:8px 8px 112px!important;
  }

  .v49-monster-grid,
  .v49-monster-grid.count-1,
  .v49-monster-grid.count-2,
  .v49-monster-grid.count-3,
  .v49-monster-grid.count-4,
  .v49-party-grid,
  .v49-party-grid.count-1,
  .v49-party-grid.count-2,
  .v49-party-grid.count-3,
  .v49-party-grid.count-4{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .v49-monster-grid.count-1,
  .v49-party-grid.count-1{
    grid-template-columns:1fr!important;
  }
  .v49-monster-grid.count-3 > :nth-child(3),
  .v49-party-grid.count-3 > :nth-child(3){
    grid-column:1 / -1!important;
  }

  .v49-monster-target{
    min-height:112px!important;
    grid-template-columns:46px minmax(0,1fr) 38px!important;
    gap:7px!important;
    padding:9px!important;
    border-radius:18px!important;
  }
  .v49-monster-grid.count-1 .v49-monster-target{
    min-height:106px!important;
    grid-template-columns:52px minmax(0,1fr) 42px!important;
  }
  .v49-monster-target .monster-portrait.battle{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    border-radius:14px!important;
  }
  .v49-monster-grid.count-1 .v49-monster-target .monster-portrait.battle{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
  }
  .v49-monster-target .monster-portrait.battle span{font-size:27px!important;}
  .v49-monster-grid.count-1 .v49-monster-target .monster-portrait.battle span{font-size:31px!important;}
  .v49-monster-target .v21-monster-title-line{
    gap:5px!important;
  }
  .v49-monster-target .v17-mob-index{
    width:21px!important;
    height:21px!important;
    min-width:21px!important;
    font-size:11px!important;
  }
  .v49-monster-target h2{
    font-size:14px!important;
  }
  .v49-monster-target .v23-monster-badges{
    gap:4px!important;
    min-height:20px!important;
  }
  .v49-monster-target .v23-battle-badge,
  .v49-monster-target .v34-status-chip{
    height:19px!important;
    min-height:19px!important;
    font-size:9px!important;
    padding:2px 6px!important;
  }
  .v49-monster-target .bar{height:7px!important;}
  .v49-monster-target .v49-monster-hp-line{
    font-size:11px!important;
  }
  .v49-monster-target .v17-sword-btn{
    width:36px!important;
    height:42px!important;
    min-height:42px!important;
    border-radius:13px!important;
    font-size:20px!important;
  }

  .battle-player.v49-player{
    min-height:120px!important;
    padding:9px!important;
    gap:7px!important;
    border-radius:18px!important;
  }
  .v49-party-grid.count-1 .battle-player.v49-player{
    min-height:114px!important;
  }
  .battle-player.v49-player .v49-player-main{
    grid-template-columns:42px minmax(0,1fr) auto!important;
    gap:7px!important;
  }
  .battle-player.v49-player .v49-player-avatar{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    border-radius:13px!important;
    font-size:23px!important;
  }
  .battle-player.v49-player .v49-player-title h3{
    font-size:13.5px!important;
  }
  .battle-player.v49-player .v49-player-title small{
    font-size:10px!important;
  }
  .battle-player.v49-player .v49-player-status{
    min-height:31px!important;
    padding:6px 8px!important;
    border-radius:14px!important;
    font-size:10.5px!important;
  }
  .battle-player.v49-player .v49-stat-row{
    grid-template-columns:66px minmax(0,1fr)!important;
    gap:6px!important;
  }
  .battle-player.v49-player .v49-stat-row span{
    font-size:10.5px!important;
  }
  .battle-player.v49-player .bar{
    height:7px!important;
  }
}

/* Совсем узкие телефоны: всё равно 2 колонки, но максимально аккуратно */
@media (max-width: 390px){
  .v49-monster-target{
    grid-template-columns:42px minmax(0,1fr) 34px!important;
    padding:8px!important;
  }
  .v49-monster-target .monster-portrait.battle{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  .v49-monster-target h2{font-size:12.5px!important;}
  .v49-monster-target .v49-monster-hp-line{font-size:10px!important;}
  .v49-monster-target .v17-sword-btn{
    width:32px!important;
    height:38px!important;
    min-height:38px!important;
    font-size:18px!important;
  }
  .battle-player.v49-player .v49-player-main{
    grid-template-columns:36px minmax(0,1fr)!important;
  }
  .battle-player.v49-player .v49-player-avatar{
    width:34px!important;height:34px!important;min-width:34px!important;font-size:20px!important;
  }
  .battle-player.v49-player .v49-player-title h3{font-size:12px!important;}
  .battle-player.v49-player .v49-player-title small{font-size:9px!important;}
  .battle-player.v49-player .v49-stat-row{grid-template-columns:58px minmax(0,1fr)!important;}
  .battle-player.v49-player .v49-stat-row span{font-size:9.5px!important;}
}

/* ================= v50: аккуратные карточки боя, статусы через +, компактная 2x2 сетка ================= */
.v50-monster-grid,
.v50-party-grid{display:grid!important;gap:12px!important;}
.v50-monster-grid.count-1,.v50-party-grid.count-1{grid-template-columns:1fr!important;}
.v50-monster-grid.count-2,.v50-monster-grid.count-3,.v50-monster-grid.count-4,
.v50-party-grid.count-2,.v50-party-grid.count-3,.v50-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v50-monster-grid.count-3>*:nth-child(3),.v50-party-grid.count-3>*:nth-child(3){grid-column:1/-1!important;}

.v50-monster-target{min-height:120px!important;grid-template-columns:64px minmax(0,1fr) 54px!important;gap:12px!important;padding:12px!important;border-radius:22px!important;}
.v50-monster-target .monster-portrait.battle{width:60px!important;height:60px!important;min-width:60px!important;border-radius:18px!important;}
.v50-monster-target .monster-portrait.battle span{font-size:35px!important;}
.v50-monster-target h2{font-size:18px!important;line-height:1.08!important;}
.v50-monster-target .bar{height:10px!important;}
.v50-monster-target .v49-monster-hp-line{font-size:13px!important;}
.v50-monster-target .v17-sword-btn{width:50px!important;height:52px!important;min-height:52px!important;border-radius:16px!important;font-size:25px!important;}
.v50-monster-status-line{display:flex!important;align-items:center!important;gap:6px!important;min-height:25px!important;overflow:visible!important;}
.v50-status-main{display:none!important;padding:4px 8px!important;border-radius:999px!important;background:rgba(255,184,86,.12)!important;border:1px solid rgba(255,184,86,.22)!important;color:#ffcf8e!important;font-size:11px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;}
.v50-status-plus{width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border-radius:999px!important;display:none!important;place-items:center!important;background:linear-gradient(145deg,#ffb856,#f28b1a)!important;color:#111!important;border:0!important;font-weight:1000!important;font-size:16px!important;line-height:1!important;box-shadow:0 8px 16px rgba(242,139,26,.24)!important;}
.v50-status-full{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;min-width:0!important;}
.v50-status-chip{white-space:nowrap!important;}

.battle-player.v50-player{display:grid!important;grid-template-columns:1fr!important;grid-template-areas:"main" "status" "bars"!important;gap:9px!important;min-height:128px!important;height:auto!important;padding:12px!important;border-radius:22px!important;background:radial-gradient(circle at 0 0,rgba(0,214,198,.14),transparent 42%),linear-gradient(145deg,rgba(18,35,55,.98),rgba(12,22,36,.98))!important;border:1px solid rgba(0,214,198,.34)!important;box-shadow:0 14px 32px rgba(0,0,0,.30),inset 0 0 0 1px rgba(255,255,255,.035)!important;overflow:hidden!important;align-content:start!important;}
.battle-player.v50-player.self{border-color:rgba(255,184,86,.42)!important;}
.battle-player.v50-player .v49-player-main{grid-area:main!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;width:100%!important;min-width:0!important;}
.battle-player.v50-player .v49-player-avatar{width:46px!important;height:46px!important;min-width:46px!important;border-radius:15px!important;font-size:25px!important;margin:0!important;}
.battle-player.v50-player .v49-player-title{min-width:0!important;text-align:left!important;}
.battle-player.v50-player .v49-player-title h3{font-size:16px!important;line-height:1.08!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.battle-player.v50-player .v49-player-title small{font-size:11px!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#cbd0dc!important;}
.battle-player.v50-player .v49-taunt-chip{max-width:60px!important;font-size:9px!important;min-height:23px!important;padding:4px 7px!important;}
.battle-player.v50-player .v49-player-status{grid-area:status!important;min-height:31px!important;padding:6px 9px!important;font-size:11px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;line-height:1.12!important;white-space:normal!important;text-align:center!important;width:100%!important;}
.battle-player.v50-player .v49-player-bars{grid-area:bars!important;display:grid!important;gap:7px!important;width:100%!important;margin:0!important;}
.battle-player.v50-player .v49-stat-row{display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;}
.battle-player.v50-player .v49-stat-row span{font-size:10.5px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.battle-player.v50-player .bar{height:8px!important;border-radius:999px!important;}

.v50-monster-info-modal{display:grid!important;gap:14px!important;}
.v50-monster-info-head{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;}
.v50-monster-info-icon{width:64px!important;height:64px!important;display:grid!important;place-items:center!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.04))!important;border:1px solid rgba(255,255,255,.14)!important;font-size:38px!important;}
.v50-monster-info-head h2{margin:0!important;font-size:26px!important;}.v50-monster-info-head small{color:#d7d7d7!important;}
.v50-status-info-list{display:grid!important;gap:8px!important;}
.v50-status-info-row{display:grid!important;grid-template-columns:minmax(90px,auto) minmax(0,1fr)!important;gap:10px!important;padding:10px!important;border-radius:16px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.10)!important;}
.v50-status-info-row b{color:#ffcf8e!important;}.v50-status-info-row span{color:#eee!important;line-height:1.35!important;}

/* ПК: если статусов много, показываем + после третьего */
@media (min-width:761px){
  .v50-status-full .v50-status-chip:nth-child(n+4){display:none!important;}
  .v50-monster-status-line:has(.v50-status-full .v50-status-chip:nth-child(4)) .v50-status-plus{display:grid!important;}
}

/* Телефон: 2x2 сетка, статусы компактно через +, кнопка атаки меньше */
@media (max-width:760px), (pointer:coarse) and (max-width:900px){
  .battle-screen,.battle-screen.v34-battle,.battle-screen.v37-battle{gap:10px!important;padding:8px 8px 110px!important;}
  .v50-monster-grid,.v50-party-grid,
  .v50-monster-grid.count-1,.v50-monster-grid.count-2,.v50-monster-grid.count-3,.v50-monster-grid.count-4,
  .v50-party-grid.count-1,.v50-party-grid.count-2,.v50-party-grid.count-3,.v50-party-grid.count-4{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v50-monster-grid.count-1,.v50-party-grid.count-1{grid-template-columns:1fr!important;}
  .v50-monster-grid.count-3>*:nth-child(3),.v50-party-grid.count-3>*:nth-child(3){grid-column:1/-1!important;}
  .v50-monster-target{min-height:104px!important;grid-template-columns:42px minmax(0,1fr) 32px!important;gap:6px!important;padding:8px!important;border-radius:17px!important;}
  .v50-monster-grid.count-1 .v50-monster-target{grid-template-columns:52px minmax(0,1fr) 38px!important;min-height:100px!important;}
  .v50-monster-target .monster-portrait.battle{width:40px!important;height:40px!important;min-width:40px!important;border-radius:13px!important;}
  .v50-monster-grid.count-1 .v50-monster-target .monster-portrait.battle{width:48px!important;height:48px!important;min-width:48px!important;}
  .v50-monster-target .monster-portrait.battle span{font-size:25px!important;}.v50-monster-grid.count-1 .v50-monster-target .monster-portrait.battle span{font-size:30px!important;}
  .v50-monster-target .v17-mob-index{width:20px!important;height:20px!important;min-width:20px!important;font-size:10px!important;border-radius:8px!important;}
  .v50-monster-target h2{font-size:12.5px!important;line-height:1.1!important;}
  .v50-monster-grid.count-1 .v50-monster-target h2{font-size:15px!important;}
  .v50-status-full{display:none!important;}.v50-status-main{display:inline-flex!important;}.v50-status-plus{display:grid!important;}
  .v50-status-main{max-width:62px!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:9px!important;padding:3px 6px!important;}
  .v50-status-plus{width:21px!important;height:21px!important;min-height:21px!important;font-size:14px!important;}
  .v50-monster-target .bar{height:7px!important;}.v50-monster-target .v49-monster-hp-line{font-size:10px!important;}
  .v50-monster-target .v17-target-actions{width:32px!important;min-width:32px!important;}.v50-monster-grid.count-1 .v50-monster-target .v17-target-actions{width:38px!important;min-width:38px!important;}
  .v50-monster-target .v17-sword-btn{width:31px!important;height:36px!important;min-height:36px!important;border-radius:11px!important;font-size:17px!important;}
  .v50-monster-grid.count-1 .v50-monster-target .v17-sword-btn{width:36px!important;height:40px!important;min-height:40px!important;font-size:19px!important;}
  .battle-player.v50-player{min-height:112px!important;padding:8px!important;gap:6px!important;border-radius:17px!important;}
  .v50-party-grid.count-1 .battle-player.v50-player{min-height:102px!important;}
  .battle-player.v50-player .v49-player-main{grid-template-columns:38px minmax(0,1fr)!important;gap:6px!important;}
  .battle-player.v50-player .v49-taunt-chip{grid-column:1/-1!important;justify-self:start!important;}
  .battle-player.v50-player .v49-player-avatar{width:36px!important;height:36px!important;min-width:36px!important;font-size:20px!important;border-radius:12px!important;}
  .battle-player.v50-player .v49-player-title h3{font-size:12.5px!important;}.battle-player.v50-player .v49-player-title small{font-size:9.5px!important;}
  .battle-player.v50-player .v49-player-status{min-height:29px!important;padding:5px 7px!important;font-size:10px!important;border-radius:13px!important;}
  .battle-player.v50-player .v49-stat-row{grid-template-columns:58px minmax(0,1fr)!important;gap:6px!important;}.battle-player.v50-player .v49-stat-row span{font-size:9.5px!important;}
  .battle-player.v50-player .bar{height:7px!important;}
}

@media(max-width:390px){
  .v50-monster-target{grid-template-columns:38px minmax(0,1fr) 30px!important;padding:7px!important;gap:5px!important;}
  .v50-monster-target .monster-portrait.battle{width:36px!important;height:36px!important;min-width:36px!important;}
  .v50-monster-target h2{font-size:11.5px!important;}.v50-status-main{max-width:52px!important;font-size:8.5px!important;}
  .battle-player.v50-player .v49-player-main{grid-template-columns:34px minmax(0,1fr)!important;}.battle-player.v50-player .v49-player-avatar{width:32px!important;height:32px!important;min-width:32px!important;font-size:18px!important;}
  .battle-player.v50-player .v49-player-title h3{font-size:11.5px!important;}.battle-player.v50-player .v49-stat-row{grid-template-columns:52px minmax(0,1fr)!important;}.battle-player.v50-player .v49-stat-row span{font-size:9px!important;}
}

/* ================= v51: пересборка боя — нормальные статусы, компактные игроки, стабильная атака ================= */
.battle-screen.v51-battle{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
  align-items:start!important;
  overflow:visible!important;
}
.v51-battle .v17-monsters-panel,
.v51-battle .party-panel{
  min-height:0!important;
  height:auto!important;
  overflow:visible!important;
  padding:12px!important;
}
.v51-monster-grid,
.v51-party-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:auto!important;
  grid-template-rows:none!important;
  gap:12px!important;
  min-height:0!important;
  height:auto!important;
  align-items:stretch!important;
}
.v51-monster-grid.count-1,
.v51-party-grid.count-1{grid-template-columns:1fr!important;}
.v51-monster-grid.count-3>*:nth-child(3),
.v51-party-grid.count-3>*:nth-child(3){grid-column:1/-1!important;}
.v51-monster-grid.count-1>.v51-monster-target,
.v51-monster-grid.count-2>.v51-monster-target,
.v51-monster-grid.count-3>.v51-monster-target,
.v51-monster-grid.count-4>.v51-monster-target,
.v51-party-grid.count-1>.v51-player,
.v51-party-grid.count-2>.v51-player,
.v51-party-grid.count-3>.v51-player,
.v51-party-grid.count-4>.v51-player{
  grid-row:auto!important;
  grid-column:auto!important;
  height:auto!important;
}
.v51-monster-grid.count-1>.v51-monster-target{grid-column:1/-1!important;}
.v51-party-grid.count-1>.v51-player{grid-column:1/-1!important;}
.v51-monster-grid.count-3>.v51-monster-target:nth-child(3),
.v51-party-grid.count-3>.v51-player:nth-child(3){grid-column:1/-1!important;}

.v51-monster-target{
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) 48px!important;
  grid-template-rows:auto!important;
  gap:10px!important;
  align-items:center!important;
  min-height:122px!important;
  height:auto!important;
  padding:12px!important;
  border-radius:22px!important;
  overflow:hidden!important;
}
.v51-monster-grid.count-1>.v51-monster-target{
  grid-template-columns:74px minmax(0,1fr) 54px!important;
  min-height:132px!important;
}
.v51-monster-target .monster-portrait.battle{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  border-radius:18px!important;
  margin:0!important;
}
.v51-monster-grid.count-1>.v51-monster-target .monster-portrait.battle{
  width:68px!important;
  height:68px!important;
  min-width:68px!important;
}
.v51-monster-target .monster-portrait.battle span{font-size:35px!important;}
.v51-monster-grid.count-1>.v51-monster-target .monster-portrait.battle span{font-size:42px!important;}
.v51-monster-target .monster-battle-info{
  display:grid!important;
  grid-template-rows:auto auto 8px auto!important;
  gap:5px!important;
  align-content:center!important;
  min-width:0!important;
}
.v51-monster-target .v21-monster-title-line{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
.v51-monster-target .v17-mob-index{
  width:23px!important;
  height:23px!important;
  min-width:23px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
  font-size:11px!important;
}
.v51-monster-target h2{
  font-size:17px!important;
  line-height:1.06!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  margin:0!important;
}
.v51-monster-target .bar.hp,
.v51-monster-target .bar{height:8px!important;margin:0!important;width:100%!important;}
.v51-monster-target .v49-monster-hp-line,
.v51-monster-target .v21-monster-stats{font-size:12px!important;line-height:1!important;}
.v51-target-actions{width:48px!important;min-width:48px!important;justify-self:end!important;}
.v51-sword-btn{
  width:46px!important;
  height:46px!important;
  min-height:46px!important;
  border-radius:15px!important;
  font-size:22px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
}
.v51-monster-target:not(.selected-target) .v51-sword-btn:not(:disabled){opacity:.82!important;filter:saturate(.92)!important;}
.v51-monster-target:not(.selected-target) .v51-sword-btn:not(:disabled):hover{opacity:1!important;}
.v51-sword-btn.active-target{box-shadow:0 0 0 2px rgba(255,209,102,.20),0 12px 26px rgba(239,71,111,.28)!important;}

.v51-monster-status-line{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:24px!important;
  max-width:100%!important;
  overflow:hidden!important;
  flex-wrap:nowrap!important;
}
.v51-status-full{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  overflow:hidden!important;
  flex-wrap:nowrap!important;
}
.v51-status-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:22px!important;
  min-height:22px!important;
  max-width:72px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v51-status-full .v51-status-chip:nth-child(n+4){display:none!important;}
.v51-status-main{
  display:none!important;
  align-items:center!important;
  max-width:82px!important;
  height:22px!important;
  min-height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:rgba(255,184,86,.12)!important;
  border:1px solid rgba(255,184,86,.24)!important;
  color:#ffcf8e!important;
  font-size:10px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v51-status-plus{
  display:none!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  min-height:24px!important;
  padding:0!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#ffd166,#ff9f2e)!important;
  color:#17120a!important;
  border:0!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:1000!important;
  box-shadow:0 8px 18px rgba(255,159,46,.22)!important;
}
.v51-monster-status-line.has-overflow .v51-status-plus{display:grid!important;}
.v51-no-status{
  display:inline-flex!important;
  align-items:center!important;
  height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  color:#aeb3c0!important;
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.09)!important;
  font-size:10px!important;
  white-space:nowrap!important;
}

.v51-player.battle-player{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-areas:"top" "status" "bars"!important;
  align-content:start!important;
  gap:8px!important;
  min-height:118px!important;
  height:auto!important;
  padding:11px!important;
  border-radius:20px!important;
  overflow:hidden!important;
  background:radial-gradient(circle at 0 0,rgba(0,214,198,.13),transparent 42%),linear-gradient(145deg,rgba(17,34,52,.98),rgba(11,20,34,.98))!important;
  border:1px solid rgba(0,214,198,.34)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.v51-player.battle-player.self{border-color:rgba(255,209,102,.48)!important;box-shadow:0 0 0 1px rgba(255,209,102,.11),0 14px 32px rgba(0,0,0,.30)!important;}
.v51-player .v51-player-top{
  grid-area:top!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.v51-player .v51-player-avatar{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  font-size:24px!important;
  margin:0!important;
  background:linear-gradient(145deg,#30333d,#11141c)!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
.v51-player .v51-player-title{min-width:0!important;text-align:left!important;}
.v51-player .v51-player-title h3{
  margin:0!important;
  font-size:15px!important;
  line-height:1.08!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v51-player .v51-player-title small{
  display:block!important;
  margin-top:3px!important;
  font-size:10.5px!important;
  color:#cbd0dc!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v51-player .v51-player-status{
  grid-area:status!important;
  width:100%!important;
  min-height:30px!important;
  height:auto!important;
  padding:6px 9px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  font-size:11px!important;
  line-height:1.12!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:hidden!important;
}
.v51-player .v51-player-bars{
  grid-area:bars!important;
  display:grid!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.v51-player .v51-stat-row{
  display:grid!important;
  grid-template-columns:70px minmax(0,1fr)!important;
  gap:7px!important;
  align-items:center!important;
  min-width:0!important;
}
.v51-player .v51-stat-row span{
  font-size:10.5px!important;
  font-weight:900!important;
  color:#fff!important;
  white-space:nowrap!important;
}
.v51-player .bar{height:8px!important;border-radius:999px!important;overflow:hidden!important;}
.v51-player .v49-taunt-chip{font-size:9px!important;min-height:22px!important;padding:3px 7px!important;max-width:62px!important;}

.v51-monster-info-modal{display:grid!important;gap:14px!important;}
.v51-monster-info-card{
  display:grid!important;
  gap:12px!important;
  padding:12px!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(44,34,55,.96),rgba(18,20,31,.98))!important;
  border:1px solid rgba(255,209,102,.20)!important;
}
.v51-monster-info-head{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;}
.v51-monster-info-icon{width:64px!important;height:64px!important;border-radius:20px!important;font-size:38px!important;}
.v51-status-info-list{display:grid!important;gap:8px!important;}
.v51-status-info-list .v50-status-info-row{grid-template-columns:90px minmax(0,1fr)!important;}

@media(min-width:821px){
  .battle-screen.v51-battle{
    display:grid!important;
    grid-template-columns:minmax(360px,1fr) minmax(360px,1fr)!important;
    grid-template-areas:"timer timer" "monsters players" "log log"!important;
    gap:14px!important;
    padding:14px!important;
  }
  .v51-battle .battle-timer{grid-area:timer!important;}
  .v51-battle .v17-monsters-panel{grid-area:monsters!important;}
  .v51-battle .party-panel{grid-area:players!important;}
  .v51-battle .battle-log{grid-area:log!important;}
  .v51-battle .v17-monsters-panel,
  .v51-battle .party-panel{min-height:0!important;}
  .v51-battle .battle-log{min-height:145px!important;max-height:240px!important;}
  .v51-party-grid.count-2>.v51-player{min-height:118px!important;}
}

@media(max-width:760px), (pointer:coarse) and (max-width:900px){
  body:has(.v51-battle){overflow-x:hidden!important;}
  .battle-screen.v51-battle{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    padding:8px 8px 18px!important;
    gap:10px!important;
  }
  .v51-battle .battle-timer{min-height:62px!important;padding:9px 10px!important;border-radius:18px!important;}
  .v51-battle .battle-timer #turn-title{font-size:16px!important;}
  .v51-battle .battle-timer #turn-hint{font-size:11px!important;max-width:64vw!important;}
  .v51-battle .battle-timer #turn-time{font-size:22px!important;min-width:66px!important;}
  .v51-battle .v17-monsters-panel,
  .v51-battle .party-panel,
  .v51-battle .battle-log{width:100%!important;padding:10px!important;border-radius:18px!important;}
  .v51-monster-grid,
  .v51-monster-grid.count-1,
  .v51-monster-grid.count-2,
  .v51-monster-grid.count-3,
  .v51-monster-grid.count-4,
  .v51-party-grid,
  .v51-party-grid.count-1,
  .v51-party-grid.count-2,
  .v51-party-grid.count-3,
  .v51-party-grid.count-4{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:auto!important;
    grid-template-rows:none!important;
    gap:8px!important;
    min-height:0!important;
  }
  .v51-monster-grid.count-1,
  .v51-party-grid.count-1{grid-template-columns:1fr!important;}
  .v51-monster-grid.count-3>.v51-monster-target:nth-child(3),
  .v51-party-grid.count-3>.v51-player:nth-child(3){grid-column:1/-1!important;}
  .v51-monster-target{
    grid-template-columns:38px minmax(0,1fr) 30px!important;
    min-height:98px!important;
    padding:7px!important;
    gap:5px!important;
    border-radius:16px!important;
  }
  .v51-monster-grid.count-1>.v51-monster-target{
    grid-template-columns:48px minmax(0,1fr) 36px!important;
    min-height:100px!important;
  }
  .v51-monster-target .monster-portrait.battle{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border-radius:12px!important;
  }
  .v51-monster-grid.count-1>.v51-monster-target .monster-portrait.battle{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
  }
  .v51-monster-target .monster-portrait.battle span{font-size:23px!important;}
  .v51-monster-grid.count-1>.v51-monster-target .monster-portrait.battle span{font-size:28px!important;}
  .v51-monster-target .monster-battle-info{grid-template-rows:auto auto 7px auto!important;gap:4px!important;}
  .v51-monster-target .v21-monster-title-line{grid-template-columns:19px minmax(0,1fr)!important;gap:4px!important;}
  .v51-monster-target .v17-mob-index{width:19px!important;height:19px!important;min-width:19px!important;font-size:9px!important;border-radius:8px!important;}
  .v51-monster-target h2{font-size:12px!important;line-height:1.05!important;}
  .v51-monster-grid.count-1>.v51-monster-target h2{font-size:14px!important;}
  .v51-status-full{display:none!important;}
  .v51-status-main{display:inline-flex!important;max-width:58px!important;height:20px!important;min-height:20px!important;font-size:8.5px!important;padding:0 6px!important;}
  .v51-status-plus{display:grid!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;font-size:14px!important;}
  .v51-monster-status-line{gap:4px!important;min-height:20px!important;}
  .v51-monster-target .bar.hp,
  .v51-monster-target .bar{height:6px!important;}
  .v51-monster-target .v49-monster-hp-line,
  .v51-monster-target .v21-monster-stats{font-size:9.2px!important;}
  .v51-target-actions{width:30px!important;min-width:30px!important;}
  .v51-sword-btn{width:29px!important;height:34px!important;min-height:34px!important;border-radius:10px!important;font-size:16px!important;}
  .v51-monster-grid.count-1 .v51-sword-btn{width:34px!important;height:38px!important;min-height:38px!important;font-size:18px!important;}
  .v51-player.battle-player{
    min-height:96px!important;
    padding:8px!important;
    gap:6px!important;
    border-radius:16px!important;
  }
  .v51-player .v51-player-top{grid-template-columns:34px minmax(0,1fr)!important;gap:6px!important;}
  .v51-player .v49-taunt-chip{grid-column:1/-1!important;justify-self:start!important;}
  .v51-player .v51-player-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important;font-size:18px!important;}
  .v51-player .v51-player-title h3{font-size:11.5px!important;line-height:1.05!important;}
  .v51-player .v51-player-title small{font-size:9px!important;margin-top:2px!important;}
  .v51-player .v51-player-status{min-height:25px!important;padding:4px 6px!important;font-size:9px!important;border-radius:12px!important;gap:4px!important;}
  .v51-player .v51-stat-row{grid-template-columns:52px minmax(0,1fr)!important;gap:5px!important;}
  .v51-player .v51-stat-row span{font-size:8.8px!important;}
  .v51-player .bar{height:6px!important;}
  .v51-battle .battle-log{min-height:116px!important;}
  .v51-battle .battle-log .battle-log-scroll{max-height:134px!important;min-height:74px!important;}
}

@media(max-width:380px){
  .v51-monster-grid.count-2,
  .v51-monster-grid.count-3,
  .v51-monster-grid.count-4,
  .v51-party-grid.count-2,
  .v51-party-grid.count-3,
  .v51-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .v51-monster-target{grid-template-columns:34px minmax(0,1fr) 28px!important;padding:6px!important;gap:4px!important;}
  .v51-monster-target .monster-portrait.battle{width:32px!important;height:32px!important;min-width:32px!important;}
  .v51-monster-target h2{font-size:11px!important;}
  .v51-status-main{max-width:48px!important;font-size:8px!important;}
  .v51-sword-btn{width:27px!important;height:32px!important;min-height:32px!important;font-size:15px!important;}
  .v51-player.battle-player{padding:7px!important;}
  .v51-player .v51-player-top{grid-template-columns:30px minmax(0,1fr)!important;}
  .v51-player .v51-player-avatar{width:28px!important;height:28px!important;min-width:28px!important;font-size:16px!important;}
  .v51-player .v51-player-title h3{font-size:10.8px!important;}
  .v51-player .v51-stat-row{grid-template-columns:48px minmax(0,1fr)!important;}
}

/* v51 hard overrides: перебивает старые v34 правила с растянутыми строками */
.v51-battle .v51-monster-grid,
.v51-battle .v51-party-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:none!important;
  grid-auto-rows:auto!important;
  min-height:0!important;
  height:auto!important;
  align-items:stretch!important;
}
.v51-battle .v51-monster-grid.count-1,
.v51-battle .v51-party-grid.count-1{grid-template-columns:1fr!important;}
.v51-battle .v51-monster-grid.count-1>.v51-monster-target,
.v51-battle .v51-monster-grid.count-2>.v51-monster-target:nth-child(1),
.v51-battle .v51-monster-grid.count-2>.v51-monster-target:nth-child(2),
.v51-battle .v51-monster-grid.count-3>.v51-monster-target:nth-child(1),
.v51-battle .v51-monster-grid.count-3>.v51-monster-target:nth-child(2),
.v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(1),
.v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(2),
.v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(3),
.v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(4){
  grid-column:auto!important;
  grid-row:auto!important;
  min-height:122px!important;
  height:auto!important;
}
.v51-battle .v51-monster-grid.count-1>.v51-monster-target,
.v51-battle .v51-monster-grid.count-3>.v51-monster-target:nth-child(3){grid-column:1/-1!important;}
.v51-battle .v51-party-grid.count-1>.v51-player,
.v51-battle .v51-party-grid.count-2>.v51-player,
.v51-battle .v51-party-grid.count-3>.v51-player,
.v51-battle .v51-party-grid.count-4>.v51-player{
  grid-column:auto!important;
  grid-row:auto!important;
  min-height:118px!important;
  height:auto!important;
}
.v51-battle .v51-party-grid.count-1>.v51-player,
.v51-battle .v51-party-grid.count-3>.v51-player:nth-child(3){grid-column:1/-1!important;}

@media(max-width:760px), (pointer:coarse) and (max-width:900px){
  .v51-battle .v51-monster-grid,
  .v51-battle .v51-party-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
    min-height:0!important;
    gap:8px!important;
  }
  .v51-battle .v51-monster-grid.count-1,
  .v51-battle .v51-party-grid.count-1{grid-template-columns:1fr!important;}
  .v51-battle .v51-monster-grid.count-1>.v51-monster-target,
  .v51-battle .v51-monster-grid.count-2>.v51-monster-target:nth-child(1),
  .v51-battle .v51-monster-grid.count-2>.v51-monster-target:nth-child(2),
  .v51-battle .v51-monster-grid.count-3>.v51-monster-target:nth-child(1),
  .v51-battle .v51-monster-grid.count-3>.v51-monster-target:nth-child(2),
  .v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(1),
  .v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(2),
  .v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(3),
  .v51-battle .v51-monster-grid.count-4>.v51-monster-target:nth-child(4){
    grid-column:auto!important;
    grid-row:auto!important;
    min-height:98px!important;
    height:auto!important;
  }
  .v51-battle .v51-monster-grid.count-1>.v51-monster-target,
  .v51-battle .v51-monster-grid.count-3>.v51-monster-target:nth-child(3){grid-column:1/-1!important;}
  .v51-battle .v51-party-grid.count-1>.v51-player,
  .v51-battle .v51-party-grid.count-2>.v51-player,
  .v51-battle .v51-party-grid.count-3>.v51-player,
  .v51-battle .v51-party-grid.count-4>.v51-player{
    grid-column:auto!important;
    grid-row:auto!important;
    min-height:96px!important;
    height:auto!important;
  }
  .v51-battle .v51-party-grid.count-1>.v51-player,
  .v51-battle .v51-party-grid.count-3>.v51-player:nth-child(3){grid-column:1/-1!important;}
}


/* ================= v52 battle UI rework ================= */
.battle-screen.v52-battle{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
  gap:14px!important;
  align-items:start!important;
}
.v52-battle .v17-monsters-panel,
.v52-battle .party-panel,
.v52-battle .battle-log{
  padding:12px!important;
  border-radius:22px!important;
}
.v52-monster-grid,
.v52-party-grid{
  display:grid!important;
  gap:10px!important;
  min-height:0!important;
  align-items:stretch!important;
}
.v52-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v52-party-grid.count-1{grid-template-columns:minmax(280px,520px)!important;justify-content:center!important;}
.v52-party-grid.count-2,
.v52-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v52-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v52-party-grid.count-3>.v52-player:nth-child(3){grid-column:1/-1!important;max-width:calc(50% - 5px)!important;justify-self:center!important;width:100%!important;}
.v52-monster-grid.count-1{grid-template-columns:1fr!important;}
.v52-monster-grid.count-3>.v52-monster-target:nth-child(3){grid-column:1/-1!important;}

.v52-monster-target{
  display:grid!important;
  grid-template-columns:50px minmax(0,1fr) 44px!important;
  gap:8px!important;
  align-items:center!important;
  min-height:88px!important;
  padding:10px!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(59,43,73,.96),rgba(38,31,52,.96))!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.22)!important;
  overflow:hidden!important;
}
.v52-monster-target.selected-target{border-color:rgba(255,209,102,.85)!important;box-shadow:0 0 0 2px rgba(255,209,102,.12),0 12px 26px rgba(0,0,0,.25)!important;}
.v52-monster-target .monster-portrait.battle{
  width:46px!important;height:46px!important;min-width:46px!important;border-radius:14px!important;margin:0!important;
}
.v52-monster-target .monster-portrait.battle span{font-size:28px!important;}
.v52-monster-target .monster-battle-info{display:grid!important;gap:5px!important;min-width:0!important;}
.v52-monster-head{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:6px!important;min-width:0!important;}
.v52-monster-target .v17-mob-index,
.v52-monster-no{width:22px!important;height:22px!important;min-width:22px!important;display:grid!important;place-items:center!important;border-radius:8px!important;font-size:10px!important;font-weight:900!important;background:rgba(255,255,255,.11)!important;color:#fff!important;}
.v52-monster-target h2,.v52-monster-info-card h2{margin:0!important;font-size:15px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v52-monster-hp-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-width:0!important;}
.v52-monster-hp{font-size:12px!important;font-weight:900!important;white-space:nowrap!important;color:#fff!important;}
.v52-monster-target .bar,
.v52-monster-info-card .bar{height:7px!important;margin:0!important;}
.v52-monster-status-line{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;min-height:24px!important;min-width:0!important;}
.v52-status-list{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;overflow:hidden!important;flex-wrap:nowrap!important;}
.v52-status-chip{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:21px!important;height:21px!important;padding:0 8px!important;border-radius:999px!important;
  font-size:10px!important;line-height:1!important;white-space:nowrap!important;max-width:88px!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.v52-no-status{font-size:10px!important;opacity:.8!important;}
.v52-status-plus,
.v52-sword-btn{
  display:grid!important;place-items:center!important;padding:0!important;border:0!important;
}
.v52-status-plus{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;border-radius:999px!important;background:linear-gradient(145deg,#ffd166,#ff9f2e)!important;color:#17120a!important;font-size:15px!important;font-weight:1000!important;box-shadow:0 8px 18px rgba(255,159,46,.22)!important;}
.v52-target-actions{width:44px!important;min-width:44px!important;display:flex!important;justify-content:flex-end!important;}
.v52-sword-btn{width:40px!important;height:40px!important;min-height:40px!important;border-radius:13px!important;font-size:20px!important;}

.v52-player.battle-player{
  display:grid!important;
  grid-template-rows:auto auto!important;
  gap:8px!important;
  min-height:104px!important;
  padding:10px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:radial-gradient(circle at top left,rgba(0,214,198,.10),transparent 38%),linear-gradient(145deg,rgba(16,32,48,.98),rgba(11,19,32,.98))!important;
  border:1px solid rgba(0,214,198,.30)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.24)!important;
}
.v52-player.battle-player.self{border-color:rgba(255,209,102,.46)!important;box-shadow:0 0 0 1px rgba(255,209,102,.10),0 12px 28px rgba(0,0,0,.28)!important;}
.v52-player-top{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;min-width:0!important;}
.v52-player-avatar{width:38px!important;height:38px!important;min-width:38px!important;border-radius:13px!important;display:grid!important;place-items:center!important;font-size:21px!important;background:linear-gradient(145deg,#30333d,#11141c)!important;border:1px solid rgba(255,255,255,.14)!important;}
.v52-player-title{min-width:0!important;}
.v52-player-title h3{margin:0!important;font-size:14px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v52-player-title small{display:block!important;margin-top:2px!important;font-size:10px!important;color:#cbd0dc!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v52-player-tags{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:4px!important;max-width:92px!important;}
.v52-player-chip,
.v52-player-status{width:auto!important;max-width:92px!important;min-height:22px!important;padding:4px 8px!important;border-radius:999px!important;font-size:9.5px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v52-player-bars{display:grid!important;gap:6px!important;width:100%!important;}
.v52-stat-row{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-width:0!important;}
.v52-stat-row span{font-size:10.5px!important;font-weight:900!important;white-space:nowrap!important;color:#fff!important;}
.v52-player .bar{height:7px!important;border-radius:999px!important;overflow:hidden!important;}

.v52-monster-info-modal{display:grid!important;gap:14px!important;}
.v52-monster-info-card{display:grid!important;gap:12px!important;padding:12px!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(49,39,63,.98),rgba(25,20,36,.98))!important;border:1px solid rgba(255,255,255,.12)!important;}
.v52-monster-info-top{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;}
.v52-monster-info-icon{width:54px!important;height:54px!important;border-radius:16px!important;font-size:32px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;}
.v52-monster-info-main{display:grid!important;gap:6px!important;min-width:0!important;}
.v52-monster-info-statuses{display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
.v52-monster-modal-note{margin:0!important;font-size:12px!important;color:#c9ced7!important;}

@media(max-width:900px){
  .battle-screen.v52-battle{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;padding:8px 8px 18px!important;gap:10px!important;}
  .v52-battle .battle-timer{min-height:60px!important;padding:9px 10px!important;border-radius:18px!important;}
  .v52-battle .battle-timer #turn-title{font-size:16px!important;}
  .v52-battle .battle-timer #turn-hint{font-size:11px!important;max-width:66vw!important;}
  .v52-battle .battle-timer #turn-time{font-size:22px!important;min-width:66px!important;}
  .v52-battle .v17-monsters-panel,.v52-battle .party-panel,.v52-battle .battle-log{width:100%!important;padding:10px!important;border-radius:18px!important;}
  .v52-monster-grid,
  .v52-monster-grid.count-1,
  .v52-monster-grid.count-2,
  .v52-monster-grid.count-3,
  .v52-monster-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v52-monster-grid.count-3>.v52-monster-target:nth-child(3){grid-column:auto!important;}
  .v52-monster-target{grid-template-columns:42px minmax(0,1fr) 34px!important;min-height:74px!important;padding:8px!important;gap:6px!important;border-radius:16px!important;}
  .v52-monster-target .monster-portrait.battle{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;}
  .v52-monster-target .monster-portrait.battle span{font-size:22px!important;}
  .v52-monster-target h2{font-size:13px!important;}
  .v52-monster-hp-row{grid-template-columns:52px minmax(0,1fr)!important;gap:6px!important;}
  .v52-monster-hp{font-size:10px!important;}
  .v52-status-chip{min-height:19px!important;height:19px!important;padding:0 6px!important;font-size:9px!important;max-width:72px!important;}
  .v52-status-plus{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;font-size:14px!important;}
  .v52-target-actions{width:34px!important;min-width:34px!important;}
  .v52-sword-btn{width:32px!important;height:32px!important;min-height:32px!important;border-radius:10px!important;font-size:16px!important;}

  .v52-party-grid.count-1{grid-template-columns:1fr!important;justify-content:stretch!important;}
  .v52-party-grid.count-2,
  .v52-party-grid.count-3,
  .v52-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v52-party-grid.count-3>.v52-player:nth-child(3){grid-column:1/-1!important;max-width:none!important;justify-self:stretch!important;}
  .v52-player.battle-player{min-height:92px!important;padding:8px!important;gap:6px!important;border-radius:16px!important;}
  .v52-player-top{grid-template-columns:34px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;}
  .v52-player-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important;font-size:18px!important;}
  .v52-player-title h3{font-size:11.5px!important;line-height:1.05!important;}
  .v52-player-title small{font-size:8.8px!important;}
  .v52-player-tags{grid-column:1/-1!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;max-width:none!important;}
  .v52-player-chip,.v52-player-status{max-width:none!important;font-size:8.8px!important;min-height:21px!important;padding:4px 7px!important;}
  .v52-stat-row{grid-template-columns:52px minmax(0,1fr)!important;gap:5px!important;}
  .v52-stat-row span{font-size:8.8px!important;}
  .v52-player .bar{height:6px!important;}
}
@media(max-width:380px){
  .v52-party-grid.count-2,.v52-party-grid.count-3,.v52-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .v52-player.battle-player{padding:7px!important;}
  .v52-player-title h3{font-size:10.8px!important;}
  .v52-player-chip,.v52-player-status{font-size:8.3px!important;padding:3px 6px!important;}
  .v52-stat-row{grid-template-columns:48px minmax(0,1fr)!important;}
  .v52-monster-target{padding:7px!important;}
}

/* ================= v53 battle UI polish ================= */
.battle-screen.v53-battle{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
  gap:14px!important;
  align-items:start!important;
}
.v53-battle .v17-monsters-panel,
.v53-battle .party-panel,
.v53-battle .battle-log{
  padding:12px!important;
  border-radius:22px!important;
  overflow:visible!important;
}
.v53-monster-grid,
.v53-party-grid{
  display:grid!important;
  gap:12px!important;
  align-items:stretch!important;
}
.v53-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v53-monster-grid.count-1{grid-template-columns:1fr!important;}
.v53-monster-grid.count-3>.v53-monster-target:nth-child(3){grid-column:1/-1!important;}

.v53-monster-target{
  position:relative!important;
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:94px!important;
  padding:11px 12px!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(61,46,78,.97),rgba(39,31,54,.97))!important;
  border:1px solid rgba(255,255,255,.11)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.24)!important;
  transition:grid-template-columns .18s ease,padding .18s ease,transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  overflow:hidden!important;
}
.v53-monster-target .monster-portrait.battle{
  width:52px!important;height:52px!important;min-width:52px!important;border-radius:15px!important;margin:0!important;
}
.v53-monster-target .monster-portrait.battle span{font-size:31px!important;}
.v53-monster-target .monster-battle-info{display:grid!important;gap:6px!important;min-width:0!important;align-content:center!important;}
.v53-monster-head{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-width:0!important;}
.v53-monster-target .v17-mob-index{width:22px!important;height:22px!important;min-width:22px!important;border-radius:8px!important;font-size:10px!important;display:grid!important;place-items:center!important;}
.v53-monster-target h2{margin:0!important;font-size:15px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v53-monster-hp-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;}
.v53-monster-hp{font-size:12px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.v53-monster-target .bar{height:7px!important;margin:0!important;}
.v53-monster-status-line{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  min-height:23px!important;
  overflow:visible!important;
  padding-top:1px!important;
}
.v53-status-list{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;overflow:hidden!important;}
.v53-status-chip,
.v53-no-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:21px!important;
  height:21px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  max-width:86px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v53-status-plus{
  display:grid!important;
  place-items:center!important;
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#ffd166,#ff9f2e)!important;
  color:#17120a!important;
  border:0!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:1000!important;
  box-shadow:0 8px 18px rgba(255,159,46,.20)!important;
}
.v53-target-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;}
.v53-monster-target.target-open{
  grid-template-columns:50px minmax(0,1fr) 42px!important;
  padding:10px 10px!important;
  transform:scale(.985)!important;
}
.v53-monster-target.target-open .monster-portrait.battle{width:46px!important;height:46px!important;min-width:46px!important;border-radius:14px!important;}
.v53-monster-target.target-open .monster-portrait.battle span{font-size:27px!important;}
.v53-sword-btn{
  display:grid!important;
  place-items:center!important;
  width:38px!important;height:38px!important;min-height:38px!important;
  border-radius:13px!important;
  font-size:19px!important;
  padding:0!important;
  box-shadow:0 10px 22px rgba(239,71,111,.24)!important;
}
.v53-monster-target:not(.target-open) .v53-target-actions{display:none!important;}

.v53-party-grid.count-1{grid-template-columns:minmax(320px,560px)!important;justify-content:center!important;}
.v53-party-grid.count-2,.v53-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v53-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v53-party-grid.count-3>.v53-player:nth-child(3){grid-column:1/-1!important;max-width:calc(50% - 6px)!important;justify-self:center!important;width:100%!important;}
.v53-player.battle-player{
  position:relative!important;
  display:grid!important;
  grid-template-rows:auto auto!important;
  gap:10px!important;
  min-height:126px!important;
  padding:14px!important;
  border-radius:22px!important;
  background:radial-gradient(circle at top left,rgba(0,214,198,.10),transparent 38%),linear-gradient(145deg,rgba(14,30,47,.98),rgba(11,19,32,.98))!important;
  border:1px solid rgba(0,214,198,.28)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.25)!important;
  overflow:hidden!important;
}
.v53-player.battle-player.self{border-color:rgba(255,209,102,.46)!important;box-shadow:0 0 0 1px rgba(255,209,102,.10),0 14px 30px rgba(0,0,0,.28)!important;}
.v53-player .v53-player-top,
.v53-player .v53-player-bars,
.v53-player .v53-player-title,
.v53-player .v53-player-avatar,
.v53-player .v53-player-tags{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;}
.v53-player-top{display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;min-width:0!important;}
.v53-player-avatar{width:44px!important;height:44px!important;min-width:44px!important;border-radius:14px!important;display:grid!important;place-items:center!important;font-size:24px!important;background:linear-gradient(145deg,#30333d,#11141c)!important;border:1px solid rgba(255,255,255,.14)!important;}
.v53-player-title{min-width:0!important;align-self:center!important;text-align:left!important;}
.v53-player-title h3{margin:0!important;font-size:16px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v53-player-title small{display:block!important;margin-top:3px!important;font-size:10.5px!important;color:#cbd0dc!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v53-player-tags{display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;gap:6px!important;max-width:110px!important;}
.v53-player-chip,
.v53-player-status{
  width:auto!important;
  max-width:110px!important;
  min-height:24px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v53-player-bars{display:grid!important;gap:7px!important;min-width:0!important;}
.v53-stat-row{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;}
.v53-stat-row span{font-size:11px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.v53-player .bar{height:8px!important;border-radius:999px!important;overflow:hidden!important;}

@media(max-width:900px){
  .battle-screen.v53-battle{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;padding:8px 8px 18px!important;gap:10px!important;}
  .v53-battle .v17-monsters-panel,.v53-battle .party-panel,.v53-battle .battle-log{width:100%!important;padding:10px!important;border-radius:18px!important;}
  .v53-monster-grid,.v53-monster-grid.count-1,.v53-monster-grid.count-2,.v53-monster-grid.count-3,.v53-monster-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v53-monster-grid.count-3>.v53-monster-target:nth-child(3){grid-column:auto!important;}
  .v53-monster-target{grid-template-columns:44px minmax(0,1fr)!important;min-height:76px!important;padding:8px!important;gap:7px!important;border-radius:16px!important;}
  .v53-monster-target .monster-portrait.battle{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;}
  .v53-monster-target .monster-portrait.battle span{font-size:23px!important;}
  .v53-monster-target h2{font-size:13px!important;}
  .v53-monster-hp-row{grid-template-columns:52px minmax(0,1fr)!important;gap:6px!important;}
  .v53-monster-hp{font-size:10px!important;}
  .v53-status-chip,.v53-no-status{min-height:19px!important;height:19px!important;padding:0 6px!important;font-size:9px!important;max-width:72px!important;}
  .v53-status-plus{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;font-size:14px!important;}
  .v53-monster-target.target-open{grid-template-columns:40px minmax(0,1fr) 34px!important;padding:7px!important;transform:none!important;}
  .v53-monster-target.target-open .monster-portrait.battle{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;}
  .v53-monster-target.target-open .monster-portrait.battle span{font-size:20px!important;}
  .v53-sword-btn{width:32px!important;height:32px!important;min-height:32px!important;border-radius:10px!important;font-size:16px!important;}

  .v53-party-grid.count-1{grid-template-columns:1fr!important;justify-content:stretch!important;}
  .v53-party-grid.count-2,.v53-party-grid.count-3,.v53-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v53-party-grid.count-3>.v53-player:nth-child(3){grid-column:1/-1!important;max-width:none!important;justify-self:stretch!important;}
  .v53-player.battle-player{min-height:96px!important;padding:8px!important;gap:6px!important;border-radius:16px!important;}
  .v53-player-top{grid-template-columns:34px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;}
  .v53-player-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important;font-size:18px!important;}
  .v53-player-title h3{font-size:11.5px!important;line-height:1.05!important;}
  .v53-player-title small{font-size:8.8px!important;}
  .v53-player-tags{grid-column:1/-1!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;max-width:none!important;gap:5px!important;}
  .v53-player-chip,.v53-player-status{max-width:none!important;font-size:8.8px!important;min-height:21px!important;padding:4px 7px!important;}
  .v53-stat-row{grid-template-columns:52px minmax(0,1fr)!important;gap:5px!important;}
  .v53-stat-row span{font-size:8.8px!important;}
  .v53-player .bar{height:6px!important;}
}
@media(max-width:380px){
  .v53-party-grid.count-2,.v53-party-grid.count-3,.v53-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .v53-player.battle-player{padding:7px!important;}
  .v53-player-title h3{font-size:10.8px!important;}
  .v53-player-chip,.v53-player-status{font-size:8.2px!important;padding:3px 6px!important;}
  .v53-stat-row{grid-template-columns:48px minmax(0,1fr)!important;}
}

/* ================= v54 hard-reset battle cards ================= */
.battle-screen.v54-battle{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  grid-template-areas:'timer timer' 'monsters players' 'log log'!important;
  gap:14px!important;
  align-items:start!important;
}
.v54-battle .battle-timer{grid-area:timer!important;}
.v54-battle .v17-monsters-panel{grid-area:monsters!important;min-width:0!important;}
.v54-battle .party-panel{grid-area:players!important;min-width:0!important;}
.v54-battle .battle-log{grid-area:log!important;min-width:0!important;}
.v54-battle .v17-monsters-panel,
.v54-battle .party-panel,
.v54-battle .battle-log{padding:12px!important;border-radius:22px!important;overflow:visible!important;}

.v54-monster-grid,
.v54-party-grid{display:grid!important;gap:12px!important;align-items:stretch!important;min-height:0!important;}
.v54-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v54-monster-grid.count-1{grid-template-columns:1fr!important;}
.v54-monster-grid.count-3>.v54-monster-target:nth-child(3){grid-column:1/-1!important;}
.v54-party-grid.count-1{grid-template-columns:1fr!important;}
.v54-party-grid.count-2,.v54-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v54-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v54-party-grid.count-3>.v54-player:nth-child(3){grid-column:1/-1!important;max-width:calc(50% - 6px)!important;justify-self:center!important;width:100%!important;}

/* monster card */
.v54-monster-target,
.battle-screen.v54-battle .v54-monster-target{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  gap:10px!important;
  min-height:98px!important;
  padding:12px!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(60,45,77,.97),rgba(38,31,54,.97))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.24)!important;
  overflow:hidden!important;
  position:relative!important;
  transition:grid-template-columns .18s ease,padding .18s ease,transform .18s ease!important;
}
.battle-screen.v54-battle .v54-monster-target.selected-target{
  border-color:rgba(255,209,102,.82)!important;
  box-shadow:0 0 0 2px rgba(255,209,102,.12),0 12px 28px rgba(0,0,0,.24)!important;
}
.battle-screen.v54-battle .v54-monster-target .monster-portrait.battle{
  width:52px!important;height:52px!important;min-width:52px!important;border-radius:16px!important;margin:0!important;place-self:center start!important;
}
.battle-screen.v54-battle .v54-monster-target .monster-portrait.battle span{font-size:31px!important;line-height:1!important;}
.battle-screen.v54-battle .v54-monster-target .monster-battle-info{display:grid!important;gap:6px!important;min-width:0!important;align-content:center!important;}
.battle-screen.v54-battle .v54-monster-head{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-width:0!important;}
.battle-screen.v54-battle .v54-monster-head .v17-mob-index,
.battle-screen.v54-battle .v54-monster-no{width:22px!important;height:22px!important;min-width:22px!important;display:grid!important;place-items:center!important;border-radius:8px!important;font-size:10px!important;line-height:1!important;background:rgba(255,255,255,.11)!important;color:#fff!important;font-weight:900!important;}
.battle-screen.v54-battle .v54-monster-target h2,
.battle-screen.v54-battle .v54-monster-info-card h2{margin:0!important;font-size:15px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.battle-screen.v54-battle .v54-monster-hp-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;}
.battle-screen.v54-battle .v54-monster-hp{font-size:12px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;line-height:1!important;}
.battle-screen.v54-battle .v54-monster-target .bar,
.battle-screen.v54-battle .v54-monster-info-card .bar{height:7px!important;margin:0!important;width:100%!important;}
.battle-screen.v54-battle .v54-monster-status-line{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  min-height:22px!important;
  line-height:1!important;
  overflow:visible!important;
  margin-top:0!important;
  padding:0!important;
}
.battle-screen.v54-battle .v54-status-list,
.battle-screen.v54-battle .v54-monster-info-statuses{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;flex-wrap:wrap!important;overflow:visible!important;}
.battle-screen.v54-battle .v54-status-chip,
.battle-screen.v54-battle .v54-no-status,
.v54-monster-info-modal .v54-status-chip,
.v54-monster-info-modal .v54-no-status{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;
  min-height:20px!important;height:20px!important;padding:0 8px!important;border-radius:999px!important;
  font-size:10px!important;line-height:1!important;white-space:nowrap!important;max-width:88px!important;overflow:hidden!important;text-overflow:ellipsis!important;
  position:relative!important;top:0!important;bottom:auto!important;margin:0!important;
}
.battle-screen.v54-battle .v54-status-plus,
.v54-monster-info-modal .v54-status-plus{
  display:grid!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
  border-radius:999px!important;background:linear-gradient(145deg,#ffd166,#ff9f2e)!important;color:#17120a!important;border:0!important;
  font-size:15px!important;line-height:1!important;font-weight:1000!important;padding:0!important;margin:0!important;
}
.battle-screen.v54-battle .v54-target-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;}
.battle-screen.v54-battle .v54-monster-target.target-open{grid-template-columns:50px minmax(0,1fr) 42px!important;padding:11px 10px!important;transform:scale(.987)!important;}
.battle-screen.v54-battle .v54-monster-target.target-open .monster-portrait.battle{width:46px!important;height:46px!important;min-width:46px!important;border-radius:14px!important;}
.battle-screen.v54-battle .v54-monster-target.target-open .monster-portrait.battle span{font-size:27px!important;}
.battle-screen.v54-battle .v54-sword-btn{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-height:38px!important;border-radius:13px!important;font-size:19px!important;padding:0!important;box-shadow:0 10px 22px rgba(239,71,111,.24)!important;}
.battle-screen.v54-battle .v54-monster-target:not(.target-open) .v54-target-actions{display:none!important;}

/* player card: new design only */
.v54-player,
.battle-screen.v54-battle .v54-player{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  grid-template-areas:'avatar header' 'avatar bars'!important;
  align-items:start!important;
  gap:10px 12px!important;
  min-height:128px!important;
  padding:14px!important;
  border-radius:22px!important;
  background:radial-gradient(circle at top left,rgba(0,214,198,.10),transparent 38%),linear-gradient(145deg,rgba(14,30,47,.98),rgba(11,19,32,.98))!important;
  border:1px solid rgba(0,214,198,.28)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.25)!important;
  overflow:hidden!important;
  position:relative!important;
}
.battle-screen.v54-battle .v54-player.self{border-color:rgba(255,209,102,.46)!important;box-shadow:0 0 0 1px rgba(255,209,102,.10),0 14px 30px rgba(0,0,0,.28)!important;}
.battle-screen.v54-battle .v54-player > *{position:static!important;inset:auto!important;transform:none!important;float:none!important;margin:0!important;}
.battle-screen.v54-battle .v54-player-avatar{grid-area:avatar!important;width:46px!important;height:46px!important;min-width:46px!important;border-radius:14px!important;display:grid!important;place-items:center!important;font-size:24px!important;background:linear-gradient(145deg,#30333d,#11141c)!important;border:1px solid rgba(255,255,255,.14)!important;align-self:start!important;justify-self:start!important;}
.battle-screen.v54-battle .v54-player-top{grid-area:header!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'title tags'!important;align-items:start!important;gap:8px!important;min-width:0!important;}
.battle-screen.v54-battle .v54-player-title{grid-area:title!important;min-width:0!important;text-align:left!important;align-self:start!important;}
.battle-screen.v54-battle .v54-player-title h3{margin:0!important;font-size:16px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.battle-screen.v54-battle .v54-player-title small{display:block!important;margin-top:3px!important;font-size:10.5px!important;color:#cbd0dc!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.battle-screen.v54-battle .v54-player-tags{grid-area:tags!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:flex-start!important;gap:5px!important;max-width:112px!important;}
.battle-screen.v54-battle .v54-player-chip,
.battle-screen.v54-battle .v54-player-status{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
  min-height:23px!important;height:23px!important;padding:0 9px!important;border-radius:999px!important;
  font-size:10px!important;line-height:1!important;white-space:nowrap!important;max-width:112px!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.battle-screen.v54-battle .v54-player-bars{grid-area:bars!important;display:grid!important;gap:7px!important;min-width:0!important;align-self:end!important;}
.battle-screen.v54-battle .v54-stat-row{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;}
.battle-screen.v54-battle .v54-stat-row span{font-size:11px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;line-height:1!important;}
.battle-screen.v54-battle .v54-player .bar{width:100%!important;height:8px!important;border-radius:999px!important;overflow:hidden!important;}

/* monster info modal */
.v54-monster-info-modal{display:grid!important;gap:14px!important;}
.v54-monster-info-card{display:grid!important;gap:12px!important;padding:12px!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(49,39,63,.98),rgba(25,20,36,.98))!important;border:1px solid rgba(255,255,255,.12)!important;}
.v54-monster-info-top{display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;}
.v54-monster-info-icon{width:54px!important;height:54px!important;border-radius:16px!important;font-size:32px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;}
.v54-monster-info-main{display:grid!important;gap:6px!important;min-width:0!important;}
.v54-monster-modal-note{margin:0!important;font-size:12px!important;color:#c9ced7!important;}

@media(max-width:900px){
  .battle-screen.v54-battle{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;padding:8px 8px 18px!important;gap:10px!important;}
  .v54-battle .v17-monsters-panel,.v54-battle .party-panel,.v54-battle .battle-log{width:100%!important;padding:10px!important;border-radius:18px!important;}
  .v54-monster-grid,.v54-monster-grid.count-1,.v54-monster-grid.count-2,.v54-monster-grid.count-3,.v54-monster-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v54-monster-grid.count-3>.v54-monster-target:nth-child(3){grid-column:auto!important;}
  .v54-monster-target{grid-template-columns:44px minmax(0,1fr)!important;min-height:76px!important;padding:8px!important;gap:7px!important;border-radius:16px!important;}
  .v54-monster-target .monster-portrait.battle{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;}
  .v54-monster-target .monster-portrait.battle span{font-size:23px!important;}
  .v54-monster-target h2{font-size:13px!important;}
  .v54-monster-hp-row{grid-template-columns:52px minmax(0,1fr)!important;gap:6px!important;}
  .v54-monster-hp{font-size:10px!important;}
  .v54-status-chip,.v54-no-status{min-height:19px!important;height:19px!important;padding:0 6px!important;font-size:9px!important;max-width:72px!important;}
  .v54-status-plus{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;font-size:14px!important;}
  .v54-monster-target.target-open{grid-template-columns:40px minmax(0,1fr) 34px!important;padding:7px!important;transform:none!important;}
  .v54-monster-target.target-open .monster-portrait.battle{width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;}
  .v54-monster-target.target-open .monster-portrait.battle span{font-size:20px!important;}
  .v54-sword-btn{width:32px!important;height:32px!important;min-height:32px!important;border-radius:10px!important;font-size:16px!important;}

  .v54-party-grid.count-1{grid-template-columns:1fr!important;}
  .v54-party-grid.count-2,.v54-party-grid.count-3,.v54-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v54-party-grid.count-3>.v54-player:nth-child(3){grid-column:1/-1!important;max-width:none!important;justify-self:stretch!important;}
  .v54-player{grid-template-columns:34px minmax(0,1fr)!important;gap:8px 8px!important;min-height:96px!important;padding:8px!important;border-radius:16px!important;}
  .v54-player-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important;font-size:18px!important;}
  .v54-player-top{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'title' 'tags'!important;gap:5px!important;}
  .v54-player-title h3{font-size:11.5px!important;line-height:1.05!important;}
  .v54-player-title small{font-size:8.8px!important;}
  .v54-player-tags{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;max-width:none!important;flex-wrap:wrap!important;}
  .v54-player-chip,.v54-player-status{max-width:none!important;font-size:8.8px!important;min-height:21px!important;height:21px!important;padding:0 7px!important;}
  .v54-stat-row{grid-template-columns:52px minmax(0,1fr)!important;gap:5px!important;}
  .v54-stat-row span{font-size:8.8px!important;}
  .v54-player .bar{height:6px!important;}
}
@media(max-width:380px){
  .v54-party-grid.count-2,.v54-party-grid.count-3,.v54-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .v54-player{padding:7px!important;}
  .v54-player-title h3{font-size:10.8px!important;}
  .v54-player-chip,.v54-player-status{font-size:8.2px!important;padding:0 6px!important;}
  .v54-stat-row{grid-template-columns:48px minmax(0,1fr)!important;}
}

/* ================= v54 player card redesign + monster status fix ================= */
.battle-screen.v54-battle{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
}
.v54-battle .party-panel,
.v54-battle .v17-monsters-panel,
.v54-battle .battle-log{overflow:visible!important;}

/* player cards: completely new structure */
.v54-party-grid{
  display:grid!important;
  gap:12px!important;
  align-items:stretch!important;
}
.v54-party-grid.count-1{grid-template-columns:minmax(340px,760px)!important;justify-content:center!important;}
.v54-party-grid.count-2,.v54-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v54-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v54-party-grid.count-3>.v54-player:nth-child(3){grid-column:1/-1!important;max-width:calc(50% - 6px)!important;justify-self:center!important;width:100%!important;}

.battle-player.v54-player{
  position:relative!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  gap:12px!important;
  min-height:124px!important;
  padding:14px!important;
  border-radius:22px!important;
  background:radial-gradient(circle at top left,rgba(0,214,198,.10),transparent 40%),linear-gradient(145deg,rgba(16,31,49,.98),rgba(10,18,31,.98))!important;
  border:1px solid rgba(0,214,198,.30)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.26)!important;
  overflow:hidden!important;
  align-content:start!important;
}
.battle-player.v54-player.self{border-color:rgba(255,209,102,.48)!important;box-shadow:0 0 0 1px rgba(255,209,102,.12),0 14px 30px rgba(0,0,0,.28)!important;}
.battle-player.v54-player > *{position:static!important;inset:auto!important;transform:none!important;float:none!important;margin:0!important;}
.battle-player.v54-player .v54-player-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  min-width:0!important;
}
.battle-player.v54-player .v54-player-identity{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
  min-width:0!important;
}
.battle-player.v54-player .v54-player-avatar{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:15px!important;
  display:grid!important;
  place-items:center!important;
  font-size:24px!important;
  background:linear-gradient(145deg,#30333d,#11141c)!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
.battle-player.v54-player .v54-player-title{min-width:0!important;text-align:left!important;}
.battle-player.v54-player .v54-player-title h3{
  margin:0!important;
  font-size:16px!important;
  line-height:1.08!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v54-player .v54-player-title small{
  display:block!important;
  margin-top:3px!important;
  font-size:10.5px!important;
  color:#cbd0dc!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v54-player .v54-player-state{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:6px!important;
  max-width:118px!important;
}
.battle-player.v54-player .v54-player-chip,
.battle-player.v54-player .v54-player-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:24px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  max-width:118px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.battle-player.v54-player .v54-player-bars{
  display:grid!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
}
.battle-player.v54-player .v54-stat-row{
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
  min-width:0!important;
}
.battle-player.v54-player .v54-stat-row span{
  font-size:11px!important;
  font-weight:900!important;
  color:#fff!important;
  white-space:nowrap!important;
}
.battle-player.v54-player .bar{
  width:100%!important;
  height:8px!important;
  border-radius:999px!important;
  overflow:hidden!important;
}

/* monster cards: keep design, only fix status alignment */
.v54-monster-grid{display:grid!important;gap:12px!important;}
.v54-monster-grid.count-1{grid-template-columns:1fr!important;}
.v54-monster-grid.count-2,.v54-monster-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v54-monster-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v54-monster-grid.count-3>.v54-monster-target:nth-child(3){grid-column:1/-1!important;}
.v54-monster-target{
  min-height:96px!important;
  align-items:center!important;
}
.v54-monster-target .monster-battle-info{gap:4px!important;align-content:center!important;}
.v54-monster-status-line{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:21px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  margin-top:-1px!important;
  overflow:visible!important;
}
.v54-status-list{display:flex!important;align-items:center!important;gap:5px!important;overflow:hidden!important;min-width:0!important;}
.v54-status-chip,
.v54-no-status{min-height:19px!important;height:19px!important;padding:0 7px!important;font-size:9px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important;white-space:nowrap!important;max-width:78px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v54-status-plus{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;font-size:14px!important;display:grid!important;place-items:center!important;}

@media(max-width:900px){
  .v54-party-grid.count-1{grid-template-columns:1fr!important;justify-content:stretch!important;}
  .v54-party-grid.count-2,.v54-party-grid.count-3,.v54-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v54-party-grid.count-3>.v54-player:nth-child(3){grid-column:1/-1!important;max-width:none!important;justify-self:stretch!important;}
  .battle-player.v54-player{min-height:96px!important;padding:8px!important;gap:6px!important;border-radius:16px!important;}
  .battle-player.v54-player .v54-player-header{grid-template-columns:1fr!important;gap:6px!important;}
  .battle-player.v54-player .v54-player-identity{grid-template-columns:34px minmax(0,1fr)!important;gap:6px!important;}
  .battle-player.v54-player .v54-player-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important;font-size:18px!important;}
  .battle-player.v54-player .v54-player-title h3{font-size:11.5px!important;line-height:1.05!important;}
  .battle-player.v54-player .v54-player-title small{font-size:8.8px!important;}
  .battle-player.v54-player .v54-player-state{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;max-width:none!important;}
  .battle-player.v54-player .v54-player-chip,
  .battle-player.v54-player .v54-player-status{max-width:none!important;font-size:8.8px!important;min-height:21px!important;padding:4px 7px!important;}
  .battle-player.v54-player .v54-stat-row{grid-template-columns:52px minmax(0,1fr)!important;gap:5px!important;}
  .battle-player.v54-player .v54-stat-row span{font-size:8.8px!important;}
  .battle-player.v54-player .bar{height:6px!important;}

  .v54-monster-grid,.v54-monster-grid.count-1,.v54-monster-grid.count-2,.v54-monster-grid.count-3,.v54-monster-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v54-monster-grid.count-3>.v54-monster-target:nth-child(3){grid-column:auto!important;}
  .v54-monster-target{min-height:78px!important;}
}
@media(max-width:380px){
  .v54-party-grid.count-2,.v54-party-grid.count-3,.v54-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .battle-player.v54-player .v54-player-title h3{font-size:10.8px!important;}
  .battle-player.v54-player .v54-player-chip,
  .battle-player.v54-player .v54-player-status{font-size:8.2px!important;padding:3px 6px!important;}
  .battle-player.v54-player .v54-stat-row{grid-template-columns:48px minmax(0,1fr)!important;}
}

/* ================= v55 hard fix: clean player card + correct PC/mobile monster grid ================= */
.battle-screen.v55-battle{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
  gap:14px!important;
  align-items:start!important;
}
.v55-battle .v17-monsters-panel,
.v55-battle .party-panel,
.v55-battle .battle-log{
  padding:12px!important;
  border-radius:22px!important;
  overflow:visible!important;
}

/* Monsters on PC: normal grid, full-size cards. Mobile overrides below. */
.v55-monster-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  justify-items:stretch!important;
  align-items:stretch!important;
}
.v55-monster-grid.count-1{grid-template-columns:1fr!important;}
.v55-monster-grid.count-3>.v55-monster-target:nth-child(3){grid-column:1/-1!important;}
.v55-monster-target{
  width:100%!important;
  max-width:none!important;
  justify-self:stretch!important;
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
  min-height:104px!important;
  padding:12px!important;
  border-radius:20px!important;
  overflow:hidden!important;
}
.v55-monster-target.target-open{
  grid-template-columns:50px minmax(0,1fr) 44px!important;
  padding:11px!important;
  transform:none!important;
}
.v55-monster-target .monster-portrait.battle{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  border-radius:15px!important;
  margin:0!important;
}
.v55-monster-target.target-open .monster-portrait.battle{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
}
.v55-monster-target .monster-portrait.battle span{font-size:31px!important;}
.v55-monster-target.target-open .monster-portrait.battle span{font-size:28px!important;}
.v55-monster-target .monster-battle-info{
  display:grid!important;
  grid-template-rows:auto auto auto!important;
  gap:5px!important;
  align-content:center!important;
  min-width:0!important;
}
.v55-monster-head{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr)!important;
  gap:7px!important;
  align-items:center!important;
  min-width:0!important;
}
.v55-monster-target .v17-mob-index{
  width:23px!important;
  height:23px!important;
  min-width:23px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:8px!important;
  font-size:10px!important;
}
.v55-monster-target h2{
  margin:0!important;
  font-size:16px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v55-monster-hp-row{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:8px!important;
  align-items:center!important;
  min-width:0!important;
}
.v55-monster-hp{font-size:11.5px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.v55-monster-target .bar{height:7px!important;margin:0!important;}
.v55-monster-status-line{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  min-height:22px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
.v55-status-list{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  overflow:hidden!important;
  flex-wrap:nowrap!important;
}
.v55-status-chip,
.v55-no-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:20px!important;
  min-height:20px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  max-width:82px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:none!important;
}
.v55-status-chip.target{background:rgba(255,209,102,.18)!important;border:1px solid rgba(255,209,102,.45)!important;color:#ffe28a!important;}
.v55-status-chip.pack{background:rgba(6,214,160,.20)!important;border:1px solid rgba(6,214,160,.48)!important;color:#91f8d9!important;}
.v55-status-chip.aggro{background:rgba(239,71,111,.19)!important;border:1px solid rgba(239,71,111,.48)!important;color:#ff9fba!important;}
.v55-status-chip.stun{background:rgba(109,93,252,.18)!important;border:1px solid rgba(109,93,252,.45)!important;color:#c8c3ff!important;}
.v55-no-status{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.10)!important;color:#cfd3dd!important;}
.v55-status-plus{
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  min-height:21px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:1000!important;
}
.v55-target-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;}
.v55-monster-target:not(.target-open) .v55-target-actions{display:none!important;}
.v55-sword-btn{
  width:38px!important;
  height:38px!important;
  min-height:38px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:13px!important;
  padding:0!important;
  font-size:19px!important;
}

/* Player cards: clean layout, old positioning reset hard. */
.v55-party-grid{
  display:grid!important;
  gap:12px!important;
  width:100%!important;
  align-items:stretch!important;
}
.v55-party-grid.count-1{grid-template-columns:1fr!important;}
.v55-party-grid.count-2,
.v55-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v55-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v55-party-grid.count-3>.v55-player:nth-child(3){grid-column:1/-1!important;}
.battle-player.v55-player,
.battle-player.v55-player *{
  box-sizing:border-box!important;
  position:static!important;
  inset:auto!important;
  float:none!important;
  transform:none!important;
}
.battle-player.v55-player{
  position:relative!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  min-height:132px!important;
  padding:14px!important;
  border-radius:22px!important;
  overflow:hidden!important;
  background:radial-gradient(circle at top left,rgba(0,214,198,.13),transparent 42%),linear-gradient(145deg,rgba(13,31,49,.98),rgba(9,18,31,.98))!important;
  border:1px solid rgba(0,214,198,.34)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.battle-player.v55-player:before{
  content:''!important;
  position:absolute!important;
  left:0!important;right:0!important;top:0!important;
  height:3px!important;
  background:linear-gradient(90deg,#06d6a0,#4cc9f0,#ffd166)!important;
  opacity:.8!important;
}
.battle-player.v55-player.self{border-color:rgba(255,209,102,.50)!important;box-shadow:0 0 0 1px rgba(255,209,102,.12),0 14px 30px rgba(0,0,0,.28)!important;}
.v55-player-left{display:grid!important;place-items:center!important;min-width:0!important;}
.v55-player-avatar{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:17px!important;
  display:grid!important;
  place-items:center!important;
  font-size:30px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.04))!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:inset 0 0 18px rgba(255,255,255,.04)!important;
}
.v55-player-main{display:grid!important;gap:11px!important;min-width:0!important;width:100%!important;}
.v55-player-topline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:start!important;
  min-width:0!important;
}
.v55-player-namebox{min-width:0!important;text-align:left!important;}
.v55-player-namebox h3{
  margin:0!important;
  font-size:17px!important;
  line-height:1.08!important;
  color:#fff!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v55-player-namebox small{
  display:block!important;
  margin-top:4px!important;
  font-size:11px!important;
  color:#cbd0dc!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v55-player-statuses{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  max-width:160px!important;
}
.v55-player-chip,
.v55-player-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:25px!important;
  padding:5px 10px!important;
  border-radius:999px!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  max-width:150px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v55-player-status.wait{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.13)!important;color:#e6eaf4!important;}
.v55-player-status.attack{background:rgba(255,209,102,.16)!important;border:1px solid rgba(255,209,102,.36)!important;color:#ffe28a!important;}
.v55-player-status.skill{background:rgba(109,93,252,.16)!important;border:1px solid rgba(109,93,252,.38)!important;color:#d6d2ff!important;}
.v55-player-status.help{background:rgba(6,214,160,.16)!important;border:1px solid rgba(6,214,160,.38)!important;color:#a0f8de!important;}
.v55-player-status.skip{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.15)!important;color:#cfd3dd!important;}
.v55-player-status.taunt,.v55-player-chip.taunt{background:rgba(239,71,111,.17)!important;border:1px solid rgba(239,71,111,.38)!important;color:#ffadc0!important;}
.v55-player-bars{display:grid!important;gap:8px!important;width:100%!important;min-width:0!important;}
.v55-stat-row{display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-width:0!important;}
.v55-stat-row span{font-size:11.5px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.battle-player.v55-player .bar{height:8px!important;width:100%!important;border-radius:999px!important;overflow:hidden!important;background:rgba(255,255,255,.15)!important;}

@media(max-width:900px){
  .battle-screen.v55-battle{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;padding:8px 8px 18px!important;gap:10px!important;}
  .v55-battle .v17-monsters-panel,.v55-battle .party-panel,.v55-battle .battle-log{width:100%!important;padding:10px!important;border-radius:18px!important;}
  .v55-monster-grid,
  .v55-monster-grid.count-1,
  .v55-monster-grid.count-2,
  .v55-monster-grid.count-3,
  .v55-monster-grid.count-4{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .v55-monster-grid.count-3>.v55-monster-target:nth-child(3){grid-column:auto!important;}
  .v55-monster-target{grid-template-columns:44px minmax(0,1fr)!important;min-height:78px!important;padding:8px!important;gap:7px!important;border-radius:16px!important;}
  .v55-monster-target.target-open{grid-template-columns:40px minmax(0,1fr) 34px!important;padding:7px!important;}
  .v55-monster-target .monster-portrait.battle{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;}
  .v55-monster-target.target-open .monster-portrait.battle{width:34px!important;height:34px!important;min-width:34px!important;}
  .v55-monster-target .monster-portrait.battle span{font-size:23px!important;}
  .v55-monster-target.target-open .monster-portrait.battle span{font-size:20px!important;}
  .v55-monster-target h2{font-size:13px!important;}
  .v55-monster-hp-row{grid-template-columns:54px minmax(0,1fr)!important;gap:6px!important;}
  .v55-monster-hp{font-size:10px!important;}
  .v55-status-chip,.v55-no-status{height:19px!important;min-height:19px!important;padding:0 6px!important;font-size:9px!important;max-width:72px!important;}
  .v55-status-plus{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;}
  .v55-sword-btn{width:32px!important;height:32px!important;min-height:32px!important;border-radius:10px!important;font-size:16px!important;}

  .v55-party-grid.count-1{grid-template-columns:1fr!important;}
  .v55-party-grid.count-2,
  .v55-party-grid.count-3,
  .v55-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v55-party-grid.count-3>.v55-player:nth-child(3){grid-column:1/-1!important;}
  .battle-player.v55-player{grid-template-columns:1fr!important;min-height:104px!important;padding:8px!important;gap:7px!important;border-radius:16px!important;}
  .v55-player-left{display:none!important;}
  .v55-player-main{gap:7px!important;}
  .v55-player-topline{grid-template-columns:1fr!important;gap:5px!important;}
  .v55-player-statuses{justify-content:flex-start!important;max-width:none!important;gap:5px!important;}
  .v55-player-namebox h3{font-size:12px!important;line-height:1.05!important;}
  .v55-player-namebox small{font-size:9px!important;margin-top:2px!important;}
  .v55-player-chip,.v55-player-status{min-height:21px!important;padding:4px 7px!important;font-size:8.8px!important;}
  .v55-stat-row{grid-template-columns:52px minmax(0,1fr)!important;gap:5px!important;}
  .v55-stat-row span{font-size:8.8px!important;}
  .battle-player.v55-player .bar{height:6px!important;}
}
@media(max-width:380px){
  .v55-party-grid.count-2,.v55-party-grid.count-3,.v55-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
  .v55-player-namebox h3{font-size:11px!important;}
  .v55-player-chip,.v55-player-status{font-size:8.2px!important;padding:3px 6px!important;}
  .v55-stat-row{grid-template-columns:48px minmax(0,1fr)!important;}
}

/* ================= v56 final battle layout fix ================= */
.battle-screen.v56-battle{
  width:min(1280px,calc(100vw - 24px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-areas:"timer timer" "monsters players" "log log"!important;
  gap:14px!important;
  align-items:start!important;
  padding:12px!important;
  overflow:visible!important;
}
.v56-battle *{box-sizing:border-box!important;}
.v56-timer{grid-area:timer!important;min-width:0!important;padding:10px 12px!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(24,27,43,.96),rgba(14,18,29,.96))!important;border:1px solid rgba(0,214,198,.25)!important;box-shadow:0 12px 28px rgba(0,0,0,.22)!important;}
.v56-timer .turn-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:start!important;}
.v56-timer .turn-head>div{min-width:0!important;}
.v56-timer #turn-title{font-size:16px!important;line-height:1.1!important;}
.v56-timer #turn-hint{margin:3px 0 0!important;font-size:12px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#b9c0d0!important;}
.v56-timer #turn-time{font-size:22px!important;line-height:1!important;color:#ffe477!important;font-weight:1000!important;white-space:nowrap!important;}
.v56-timer .bar.turn{height:8px!important;margin-top:8px!important;}
.v56-monsters-panel{grid-area:monsters!important;min-width:0!important;width:100%!important;padding:12px!important;border-radius:22px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.09)!important;box-shadow:0 14px 34px rgba(0,0,0,.20)!important;overflow:visible!important;}
.v56-party-panel{grid-area:players!important;min-width:0!important;width:100%!important;padding:12px!important;border-radius:22px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.09)!important;box-shadow:0 14px 34px rgba(0,0,0,.20)!important;overflow:visible!important;}
.v56-battle-log{grid-area:log!important;min-width:0!important;width:100%!important;padding:12px!important;border-radius:22px!important;background:linear-gradient(180deg,rgba(38,38,38,.96),rgba(26,26,26,.96))!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 14px 34px rgba(0,0,0,.22)!important;}
.v56-battle-log h3{margin:0 0 8px!important;font-size:15px!important;}
.v56-battle-log .battle-log-scroll{max-height:128px!important;min-height:86px!important;overflow:auto!important;display:grid!important;gap:6px!important;padding-right:6px!important;}
.v56-battle-log .battle-log-scroll p{margin:0!important;padding:8px 10px!important;border-radius:10px!important;background:rgba(255,255,255,.055)!important;border-left:2px solid rgba(255,209,102,.45)!important;font-size:12px!important;line-height:1.25!important;}

/* PC monster grid: 1 wide, 2 side-by-side, 3 = two + full row, 4 = 2x2. */
.v56-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;align-items:stretch!important;justify-items:stretch!important;}
.v56-monster-grid.count-1{grid-template-columns:1fr!important;}
.v56-monster-grid.count-1>.v56-monster-card{grid-column:1/-1!important;}
.v56-monster-grid.count-3>.v56-monster-card:nth-child(3){grid-column:1/-1!important;}
.v56-monster-card{width:100%!important;max-width:none!important;justify-self:stretch!important;position:relative!important;display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;min-height:116px!important;padding:13px!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(64,48,80,.98),rgba(36,31,52,.98))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 12px 28px rgba(0,0,0,.23),inset 0 0 0 1px rgba(255,255,255,.025)!important;overflow:hidden!important;cursor:pointer!important;transition:border-color .16s ease,box-shadow .16s ease,grid-template-columns .16s ease!important;}
.v56-monster-card.selected-target{border-color:rgba(255,209,102,.90)!important;box-shadow:0 0 0 2px rgba(255,209,102,.16),0 14px 30px rgba(0,0,0,.28)!important;}
.v56-monster-card.target-open{grid-template-columns:52px minmax(0,1fr) 44px!important;}
.v56-monster-avatar{width:54px!important;height:54px!important;min-width:54px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.045))!important;border:1px solid rgba(255,255,255,.14)!important;}
.v56-monster-avatar span{font-size:32px!important;line-height:1!important;}
.v56-monster-card.target-open .v56-monster-avatar{width:48px!important;height:48px!important;min-width:48px!important;border-radius:14px!important;}
.v56-monster-card.target-open .v56-monster-avatar span{font-size:28px!important;}
.v56-monster-info{display:grid!important;grid-template-rows:auto auto auto!important;gap:6px!important;min-width:0!important;align-content:center!important;}
.v56-monster-head{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-width:0!important;}
.v56-monster-head small{width:23px!important;height:23px!important;border-radius:8px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.13)!important;color:#fff!important;font-weight:1000!important;font-size:10px!important;}
.v56-monster-head h2{margin:0!important;font-size:16px!important;line-height:1.08!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v56-monster-hp-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;}
.v56-monster-hp-row span{font-size:11.5px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.v56-monster-card .bar{height:7px!important;margin:0!important;width:100%!important;border-radius:999px!important;overflow:hidden!important;background:rgba(0,0,0,.55)!important;}
.v56-monster-status-line{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;min-height:21px!important;margin:0!important;padding:0!important;overflow:visible!important;}
.v56-status-list{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;overflow:hidden!important;flex-wrap:nowrap!important;}
.v56-status-chip,.v56-no-status{height:20px!important;min-height:20px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 8px!important;border-radius:999px!important;font-size:9.5px!important;line-height:1!important;font-weight:1000!important;white-space:nowrap!important;max-width:86px!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:none!important;}
.v56-status-chip.target{background:rgba(255,209,102,.18)!important;border:1px solid rgba(255,209,102,.48)!important;color:#ffe28a!important;}
.v56-status-chip.pack{background:rgba(6,214,160,.20)!important;border:1px solid rgba(6,214,160,.50)!important;color:#91f8d9!important;}
.v56-status-chip.aggro{background:rgba(239,71,111,.19)!important;border:1px solid rgba(239,71,111,.50)!important;color:#ff9fba!important;}
.v56-status-chip.stun{background:rgba(109,93,252,.18)!important;border:1px solid rgba(109,93,252,.45)!important;color:#c8c3ff!important;}
.v56-no-status{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.10)!important;color:#cfd3dd!important;}
.v56-status-plus{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;display:grid!important;place-items:center!important;border-radius:999px!important;background:linear-gradient(145deg,#ffd166,#ff9f2e)!important;color:#17120a!important;border:0!important;font-size:14px!important;line-height:1!important;font-weight:1000!important;}
.v56-target-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;}
.v56-monster-card:not(.target-open) .v56-target-actions{display:none!important;}
.v56-sword-btn{width:38px!important;height:38px!important;min-height:38px!important;display:grid!important;place-items:center!important;border-radius:13px!important;padding:0!important;font-size:19px!important;border:1px solid rgba(255,209,102,.42)!important;background:linear-gradient(145deg,#ffe58a,#ff9f2e)!important;color:#17120a!important;box-shadow:0 10px 20px rgba(255,159,46,.23)!important;filter:saturate(1.08)!important;}
.v56-sword-btn:disabled{background:linear-gradient(145deg,rgba(120,124,136,.34),rgba(70,74,84,.34))!important;border-color:rgba(255,255,255,.14)!important;color:#aeb4c1!important;box-shadow:none!important;filter:grayscale(.75) brightness(.75)!important;cursor:not-allowed!important;}

/* Player card: readable on PC and phone. */
.v56-party-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important;align-items:stretch!important;}
.v56-party-grid.count-2,.v56-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v56-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v56-party-grid.count-3>.v56-player-card:nth-child(3){grid-column:1/-1!important;}
.v56-player-card{position:relative!important;display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;min-height:128px!important;padding:14px!important;border-radius:22px!important;background:radial-gradient(circle at top left,rgba(0,214,198,.14),transparent 42%),linear-gradient(145deg,rgba(13,31,49,.99),rgba(9,18,31,.99))!important;border:1px solid rgba(0,214,198,.36)!important;box-shadow:0 14px 30px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.035)!important;overflow:hidden!important;}
.v56-player-card:before{content:''!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:4px!important;background:linear-gradient(90deg,#06d6a0,#4cc9f0,#ffd166)!important;opacity:.85!important;}
.v56-player-card.self{border-color:rgba(255,209,102,.52)!important;box-shadow:0 0 0 1px rgba(255,209,102,.12),0 14px 30px rgba(0,0,0,.28)!important;}
.v56-player-avatar{width:54px!important;height:54px!important;min-width:54px!important;border-radius:17px!important;display:grid!important;place-items:center!important;font-size:30px!important;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045))!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:inset 0 0 18px rgba(255,255,255,.04)!important;}
.v56-player-main{display:grid!important;gap:12px!important;min-width:0!important;width:100%!important;}
.v56-player-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:start!important;min-width:0!important;}
.v56-player-name{min-width:0!important;}
.v56-player-name h3{margin:0!important;font-size:17px!important;line-height:1.08!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v56-player-name small{display:block!important;margin-top:4px!important;font-size:11px!important;color:#cbd0dc!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v56-player-statuses{display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:wrap!important;max-width:165px!important;}
.v56-player-chip,.v56-player-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:25px!important;padding:5px 10px!important;border-radius:999px!important;font-size:10.5px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;max-width:155px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v56-player-status.wait{background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.14)!important;color:#e6eaf4!important;}
.v56-player-status.attack{background:rgba(255,209,102,.17)!important;border:1px solid rgba(255,209,102,.40)!important;color:#ffe28a!important;}
.v56-player-status.skill{background:rgba(109,93,252,.17)!important;border:1px solid rgba(109,93,252,.40)!important;color:#d6d2ff!important;}
.v56-player-status.help{background:rgba(6,214,160,.17)!important;border:1px solid rgba(6,214,160,.40)!important;color:#a0f8de!important;}
.v56-player-status.skip{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.15)!important;color:#cfd3dd!important;}
.v56-player-status.taunt,.v56-player-chip.taunt{background:rgba(239,71,111,.18)!important;border:1px solid rgba(239,71,111,.40)!important;color:#ffadc0!important;}
.v56-player-bars{display:grid!important;gap:8px!important;width:100%!important;min-width:0!important;}
.v56-stat-row{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-width:0!important;}
.v56-stat-row span{font-size:11.5px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.v56-player-card .bar{height:8px!important;width:100%!important;border-radius:999px!important;overflow:hidden!important;background:rgba(255,255,255,.15)!important;}

@media(max-width:900px){
  .battle-screen.v56-battle{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;padding:8px 8px 18px!important;gap:10px!important;}
  .v56-timer,.v56-monsters-panel,.v56-party-panel,.v56-battle-log{width:100%!important;padding:10px!important;border-radius:18px!important;}
  .v56-timer .turn-head{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:start!important;}
  .v56-timer #turn-title{font-size:16px!important;}
  .v56-timer #turn-hint{font-size:10.5px!important;max-width:100%!important;}
  .v56-timer #turn-time{font-size:22px!important;}
  .v56-monster-grid,.v56-monster-grid.count-1,.v56-monster-grid.count-2,.v56-monster-grid.count-3,.v56-monster-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v56-monster-grid.count-3>.v56-monster-card:nth-child(3){grid-column:auto!important;}
  .v56-monster-card{grid-template-columns:44px minmax(0,1fr)!important;min-height:82px!important;padding:8px!important;gap:7px!important;border-radius:16px!important;}
  .v56-monster-card.target-open{grid-template-columns:40px minmax(0,1fr) 34px!important;padding:7px!important;}
  .v56-monster-avatar{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;}
  .v56-monster-avatar span{font-size:23px!important;}
  .v56-monster-card.target-open .v56-monster-avatar{width:34px!important;height:34px!important;min-width:34px!important;}
  .v56-monster-card.target-open .v56-monster-avatar span{font-size:20px!important;}
  .v56-monster-head{grid-template-columns:22px minmax(0,1fr)!important;gap:6px!important;}
  .v56-monster-head small{width:21px!important;height:21px!important;font-size:9px!important;}
  .v56-monster-head h2{font-size:13px!important;}
  .v56-monster-hp-row{grid-template-columns:54px minmax(0,1fr)!important;gap:6px!important;}
  .v56-monster-hp-row span{font-size:10px!important;}
  .v56-status-chip,.v56-no-status{height:19px!important;min-height:19px!important;padding:0 6px!important;font-size:9px!important;max-width:72px!important;}
  .v56-status-plus{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;}
  .v56-sword-btn{width:32px!important;height:32px!important;min-height:32px!important;border-radius:10px!important;font-size:16px!important;}
  .v56-party-grid,.v56-party-grid.count-1,.v56-party-grid.count-2,.v56-party-grid.count-3,.v56-party-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v56-party-grid.count-3>.v56-player-card:nth-child(3){grid-column:auto!important;}
  .v56-player-card{grid-template-columns:42px minmax(0,1fr)!important;min-height:106px!important;padding:9px!important;gap:9px!important;border-radius:16px!important;align-items:center!important;}
  .v56-player-avatar{width:38px!important;height:38px!important;min-width:38px!important;border-radius:13px!important;font-size:21px!important;}
  .v56-player-main{gap:8px!important;}
  .v56-player-top{grid-template-columns:1fr!important;gap:5px!important;}
  .v56-player-statuses{justify-content:flex-start!important;max-width:none!important;gap:5px!important;}
  .v56-player-name h3{font-size:13px!important;line-height:1.05!important;}
  .v56-player-name small{font-size:9.5px!important;margin-top:2px!important;}
  .v56-player-chip,.v56-player-status{min-height:21px!important;padding:4px 7px!important;font-size:8.8px!important;}
  .v56-stat-row{grid-template-columns:54px minmax(0,1fr)!important;gap:5px!important;}
  .v56-stat-row span{font-size:8.8px!important;}
  .v56-player-card .bar{height:6px!important;}
  .v56-battle-log .battle-log-scroll{max-height:150px!important;min-height:90px!important;}
}
@media(max-width:380px){
  .v56-player-card{grid-template-columns:38px minmax(0,1fr)!important;padding:8px!important;gap:7px!important;}
  .v56-player-avatar{width:34px!important;height:34px!important;min-width:34px!important;font-size:19px!important;}
  .v56-player-name h3{font-size:12px!important;}
  .v56-player-chip,.v56-player-status{font-size:8.2px!important;padding:3px 6px!important;}
  .v56-stat-row{grid-template-columns:50px minmax(0,1fr)!important;}
}

/* ================= v57 mobile player compact + selected-target skills ================= */
.battle-screen.v57-battle{width:min(1280px,calc(100vw - 24px))!important;max-width:1280px!important;margin:0 auto!important;}
.v57-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;justify-items:stretch!important;align-items:stretch!important;}
.v57-monster-grid.count-1{grid-template-columns:1fr!important;}
.v57-monster-grid.count-1>.v56-monster-card{grid-column:1/-1!important;width:100%!important;max-width:none!important;justify-self:stretch!important;}
.v57-monster-grid.count-2>.v56-monster-card{width:100%!important;max-width:none!important;justify-self:stretch!important;}
.v57-monster-grid.count-3>.v56-monster-card:nth-child(3){grid-column:1/-1!important;width:100%!important;max-width:none!important;justify-self:stretch!important;}
.v57-monster-grid.count-4>.v56-monster-card{width:100%!important;max-width:none!important;justify-self:stretch!important;}
.v56-monster-card{min-height:118px!important;}
.v56-monster-info{gap:5px!important;align-content:center!important;}
.v56-monster-status-line{min-height:22px!important;margin-top:0!important;align-items:center!important;overflow:visible!important;}
.v56-status-chip,.v56-no-status{height:20px!important;min-height:20px!important;padding:0 8px!important;font-size:9.5px!important;}
.v56-sword-btn:not(:disabled){background:linear-gradient(145deg,#ffe58a,#ff9f2e)!important;border:1px solid rgba(255,209,102,.48)!important;color:#17120a!important;filter:none!important;opacity:1!important;}
.v56-sword-btn:disabled{background:linear-gradient(145deg,rgba(120,124,136,.34),rgba(70,74,84,.34))!important;border:1px solid rgba(255,255,255,.14)!important;color:#aeb4c1!important;filter:grayscale(.75) brightness(.78)!important;box-shadow:none!important;}

.v57-party-grid{display:grid!important;gap:12px!important;align-items:stretch!important;}
.v57-party-grid.count-1{grid-template-columns:minmax(320px,620px)!important;justify-content:center!important;}
.v57-party-grid.count-2,.v57-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v57-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v57-party-grid.count-3>.v57-player-card:nth-child(3){grid-column:1/-1!important;max-width:calc(50% - 6px)!important;justify-self:center!important;width:100%!important;}
.v56-player-card.v57-player-card{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;gap:9px!important;min-height:118px!important;padding:12px!important;border-radius:20px!important;background:radial-gradient(circle at top left,rgba(0,214,198,.12),transparent 42%),linear-gradient(145deg,rgba(13,31,49,.99),rgba(9,18,31,.99))!important;border:1px solid rgba(0,214,198,.36)!important;box-shadow:0 14px 30px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.035)!important;overflow:hidden!important;align-content:start!important;}
.v56-player-card.v57-player-card:before{content:''!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:4px!important;background:linear-gradient(90deg,#06d6a0,#4cc9f0,#ffd166)!important;opacity:.88!important;}
.v57-player-head{display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;min-width:0!important;}
.v57-player-avatar{width:44px!important;height:44px!important;min-width:44px!important;border-radius:15px!important;display:grid!important;place-items:center!important;font-size:24px!important;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.045))!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:inset 0 0 18px rgba(255,255,255,.04)!important;}
.v57-player-name{min-width:0!important;}
.v57-player-name h3{margin:0!important;font-size:16px!important;line-height:1.08!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v57-player-name small{display:block!important;margin-top:3px!important;font-size:10.5px!important;color:#cbd0dc!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v57-player-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:24px!important;padding:5px 9px!important;border-radius:999px!important;font-size:10px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;max-width:118px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v57-player-action.wait{background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.14)!important;color:#e6eaf4!important;}
.v57-player-action.attack{background:rgba(255,209,102,.17)!important;border:1px solid rgba(255,209,102,.40)!important;color:#ffe28a!important;}
.v57-player-action.skill{background:rgba(109,93,252,.17)!important;border:1px solid rgba(109,93,252,.40)!important;color:#d6d2ff!important;}
.v57-player-action.help{background:rgba(6,214,160,.17)!important;border:1px solid rgba(6,214,160,.40)!important;color:#a0f8de!important;}
.v57-player-action.skip{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.15)!important;color:#cfd3dd!important;}
.v57-player-action.taunt{background:rgba(239,71,111,.18)!important;border:1px solid rgba(239,71,111,.40)!important;color:#ffadc0!important;}
.v57-player-effects{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;min-height:20px!important;overflow:hidden!important;}
.v57-player-effect{height:19px!important;min-height:19px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 7px!important;border-radius:999px!important;font-size:9px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;max-width:90px!important;overflow:hidden!important;text-overflow:ellipsis!important;border:1px solid rgba(255,255,255,.13)!important;background:rgba(255,255,255,.065)!important;color:#cfd5e2!important;}
.v57-player-effect.empty{opacity:.55!important;background:transparent!important;border:1px dashed rgba(255,255,255,.12)!important;color:#9ea7ba!important;}
.v57-player-effect.target,.v57-player-effect.pack{background:rgba(6,214,160,.18)!important;border-color:rgba(6,214,160,.40)!important;color:#a0f8de!important;}
.v57-player-effect.aggro,.v57-player-effect.taunt{background:rgba(239,71,111,.18)!important;border-color:rgba(239,71,111,.40)!important;color:#ffadc0!important;}
.v57-player-effect.attack{background:rgba(255,209,102,.17)!important;border-color:rgba(255,209,102,.40)!important;color:#ffe28a!important;}
.v57-player-bars{display:grid!important;gap:7px!important;width:100%!important;min-width:0!important;}
.v57-stat-row{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;min-width:0!important;}
.v57-stat-row span{font-size:11px!important;font-weight:900!important;color:#fff!important;white-space:nowrap!important;}
.v57-player-card .bar{height:8px!important;width:100%!important;border-radius:999px!important;overflow:hidden!important;background:rgba(255,255,255,.15)!important;}

.v57-drawer-ability.no-target .v57-ability-main{opacity:.55!important;filter:grayscale(.35)!important;}
.v57-skill-target-note{display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:100%!important;margin-top:6px!important;padding:5px 8px!important;border-radius:999px!important;background:rgba(255,209,102,.14)!important;border:1px solid rgba(255,209,102,.32)!important;color:#ffe28a!important;font-size:11px!important;font-style:normal!important;font-weight:900!important;}
.v57-skill-target-note.self{background:rgba(6,214,160,.14)!important;border-color:rgba(6,214,160,.32)!important;color:#a0f8de!important;}
.v57-skill-note{line-height:1.25!important;}

@media(max-width:900px){
  .battle-screen.v57-battle{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;padding:8px 8px 18px!important;gap:10px!important;}
  .v57-monster-grid,.v57-monster-grid.count-1,.v57-monster-grid.count-2,.v57-monster-grid.count-3,.v57-monster-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v57-monster-grid.count-3>.v56-monster-card:nth-child(3){grid-column:auto!important;}
  .v56-monster-card{min-height:84px!important;}
  .v56-monster-status-line{min-height:20px!important;}
  .v56-status-chip,.v56-no-status{height:19px!important;min-height:19px!important;padding:0 6px!important;font-size:8.8px!important;}

  .v57-party-grid,.v57-party-grid.count-1,.v57-party-grid.count-2,.v57-party-grid.count-3,.v57-party-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v57-party-grid.count-3>.v57-player-card:nth-child(3){grid-column:auto!important;max-width:none!important;justify-self:stretch!important;}
  .v56-player-card.v57-player-card{min-height:92px!important;padding:8px 9px!important;gap:6px!important;border-radius:16px!important;}
  .v57-player-head{grid-template-columns:34px minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;}
  .v57-player-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:11px!important;font-size:18px!important;}
  .v57-player-name h3{font-size:12px!important;line-height:1.05!important;}
  .v57-player-name small{font-size:8.8px!important;margin-top:2px!important;}
  .v57-player-action{min-height:20px!important;padding:4px 7px!important;font-size:8.4px!important;max-width:92px!important;}
  .v57-player-effects{min-height:18px!important;gap:4px!important;}
  .v57-player-effect{height:17px!important;min-height:17px!important;padding:0 6px!important;font-size:7.8px!important;max-width:74px!important;}
  .v57-player-bars{gap:5px!important;}
  .v57-stat-row{grid-template-columns:54px minmax(0,1fr)!important;gap:6px!important;}
  .v57-stat-row span{font-size:8.8px!important;}
  .v57-player-card .bar{height:6px!important;}
}
@media(max-width:380px){
  .v57-player-head{grid-template-columns:32px minmax(0,1fr) auto!important;gap:6px!important;}
  .v57-player-avatar{width:30px!important;height:30px!important;min-width:30px!important;font-size:17px!important;}
  .v57-player-action{font-size:8px!important;padding:3px 6px!important;max-width:82px!important;}
  .v57-player-effect.empty{display:none!important;}
  .v57-stat-row{grid-template-columns:50px minmax(0,1fr)!important;}
}

/* ================= v58 battle UI polish ================= */
.battle-screen.v58-battle{width:min(1280px,calc(100vw - 24px))!important;max-width:1280px!important;margin:0 auto!important;gap:12px!important;}
.v58-battle-top{grid-template-columns:minmax(0,1fr) auto!important;padding-left:16px!important;padding-right:16px!important;}
.v58-side-tab{position:fixed!important;top:50%!important;transform:translateY(-50%)!important;z-index:101!important;display:flex!important;align-items:center!important;gap:6px!important;padding:10px 8px!important;min-height:56px!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(25,29,46,.96),rgba(14,16,26,.96))!important;border:1px solid rgba(255,209,102,.25)!important;color:#f8e6a0!important;box-shadow:0 14px 28px rgba(0,0,0,.34)!important;font-weight:900!important;font-size:14px!important;}
.v58-side-tab.left{left:8px!important;border-top-left-radius:10px!important;border-bottom-left-radius:10px!important;}
.v58-side-tab.right{right:8px!important;border-top-right-radius:10px!important;border-bottom-right-radius:10px!important;}
.v58-side-tab span{writing-mode:vertical-rl!important;text-orientation:mixed!important;letter-spacing:.5px!important;font-size:10px!important;line-height:1!important;}
.v58-side-tab.open{background:linear-gradient(145deg,#ffd166,#ff9f2e)!important;color:#17120a!important;}
.v58-side-tab:disabled{opacity:.45!important;filter:grayscale(.55)!important;}

/* timer */
.v58-battle .v56-timer.battle-timer{padding:14px 16px!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(10,24,44,.95),rgba(10,20,38,.95))!important;border:1px solid rgba(0,214,198,.32)!important;box-shadow:0 16px 30px rgba(0,0,0,.24)!important;}
.v58-battle .v56-timer .turn-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;}
.v58-battle .v56-timer .turn-head b{font-size:17px!important;color:#fff!important;display:block!important;}
.v58-battle .v56-timer .turn-head p{margin:4px 0 0!important;font-size:12px!important;color:#b6c0d1!important;line-height:1.25!important;}
.v58-battle #turn-time{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:96px!important;padding:8px 12px!important;border-radius:999px!important;background:rgba(255,209,102,.14)!important;border:1px solid rgba(255,209,102,.34)!important;color:#ffe28a!important;font-size:17px!important;font-weight:1000!important;}
.v58-battle .v56-timer .bar.turn{height:10px!important;margin-top:12px!important;border-radius:999px!important;overflow:hidden!important;background:rgba(255,255,255,.08)!important;}
.v58-battle .v56-timer.player-turn .bar.turn i{background:linear-gradient(90deg,#ffd166,#ff9f2e)!important;}
.v58-battle .v56-timer.monster-turn .bar.turn i{background:linear-gradient(90deg,#ff6b6b,#ff9f2e)!important;}

/* monster cards */
.v58-battle .v57-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
.v58-battle .v57-monster-grid.count-1{grid-template-columns:1fr!important;}
.v58-battle .v57-monster-grid.count-3>.v56-monster-card:nth-child(3){grid-column:1/-1!important;}
.v58-battle .v56-monster-card{min-height:122px!important;padding:12px!important;align-items:center!important;}
.v58-battle .v56-monster-info{grid-template-rows:auto auto auto!important;gap:6px!important;}
.v58-battle .v56-monster-head{margin-bottom:0!important;}
.v58-battle .v56-monster-status-line{order:2!important;min-height:22px!important;align-items:center!important;margin:0!important;}
.v58-battle .v56-monster-hp-row{order:3!important;}
.v58-battle .v58-status-plus{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;border-radius:999px!important;background:linear-gradient(145deg,#ffd166,#ff9f2e)!important;color:#17120a!important;border:0!important;font-size:15px!important;font-weight:1000!important;}
.v58-monster-card-modal{width:100%!important;box-shadow:none!important;transform:none!important;pointer-events:auto!important;}
.v58-overlay{position:fixed!important;inset:0!important;background:rgba(5,8,16,.62)!important;backdrop-filter:blur(6px)!important;display:grid!important;place-items:center!important;z-index:140!important;padding:14px!important;}
.v58-overlay-card{width:min(520px,96vw)!important;background:linear-gradient(145deg,rgba(29,31,39,.98),rgba(20,21,28,.98))!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:24px!important;padding:16px!important;box-shadow:0 24px 54px rgba(0,0,0,.42)!important;display:grid!important;gap:14px!important;}
.v58-overlay-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;}
.v58-overlay-head h3{margin:0!important;font-size:21px!important;color:#fff!important;}
.v58-overlay-note{margin:0!important;font-size:13px!important;color:#cfd6e2!important;line-height:1.35!important;}

/* player cards more compact + grid on mobile */
.v58-battle .v57-party-grid{gap:12px!important;}
.v58-battle .v56-player-card.v57-player-card{min-height:108px!important;padding:10px 12px!important;gap:8px!important;}
.v58-battle .v57-player-head{grid-template-columns:40px minmax(0,1fr) auto!important;gap:8px!important;}
.v58-battle .v57-player-avatar{width:38px!important;height:38px!important;min-width:38px!important;font-size:20px!important;}
.v58-battle .v57-player-name h3{font-size:15px!important;}
.v58-battle .v57-player-name small{font-size:10px!important;}
.v58-battle .v57-player-action{min-height:22px!important;padding:4px 8px!important;max-width:104px!important;}
.v58-battle .v57-player-effects{min-height:18px!important;gap:4px!important;}
.v58-battle .v57-player-bars{gap:6px!important;}

/* drawers */
.v58-skill-drawer.v16-skill-drawer,.v58-help-drawer.v17-help-drawer{top:90px!important;bottom:18px!important;max-height:calc(100dvh - 108px)!important;border-radius:24px!important;overflow:hidden!important;padding:16px!important;z-index:120!important;}
.v58-skill-drawer.v16-skill-drawer{right:0!important;width:min(360px,36vw)!important;transform:translateX(104%)!important;}
.v58-skill-drawer.v16-skill-drawer.open{transform:translateX(0)!important;}
.v58-help-drawer.v17-help-drawer{left:0!important;width:min(360px,36vw)!important;transform:translateX(-104%)!important;}
.v58-help-drawer.v17-help-drawer.open{transform:translateX(0)!important;}
.v58-skill-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:8px!important;}
.v58-skill-slot{display:grid!important;grid-template-columns:minmax(0,1fr) 34px!important;gap:6px!important;align-items:stretch!important;}
.v58-skill-slot-main{position:relative!important;display:grid!important;grid-template-rows:42px auto auto!important;align-items:center!important;justify-items:start!important;padding:10px!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(17,23,36,.96),rgba(13,17,28,.98))!important;border:1px solid rgba(44,220,116,.34)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important;color:#fff!important;text-align:left!important;}
.v58-skill-slot-main span{width:40px!important;height:40px!important;border-radius:12px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.06)!important;font-size:22px!important;margin-bottom:6px!important;}
.v58-skill-slot-main b{font-size:13px!important;line-height:1.05!important;}
.v58-skill-slot-main small{margin-top:4px!important;font-size:10px!important;color:#b8c0d1!important;line-height:1.2!important;}
.v58-skill-slot.disabled .v58-skill-slot-main{opacity:.5!important;filter:grayscale(.45)!important;border-color:rgba(255,255,255,.12)!important;}
.v58-skill-slot.passive .v58-skill-slot-main{border-color:rgba(77,190,255,.36)!important;}
.v58-skill-slot.cooldown .v58-skill-slot-main,.v58-skill-slot.locked .v58-skill-slot-main{background:linear-gradient(145deg,rgba(10,12,18,.98),rgba(3,3,6,.98))!important;border-color:rgba(255,255,255,.14)!important;}
.v58-cd-badge{position:absolute!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:42px!important;height:42px!important;border-radius:50%!important;background:rgba(0,0,0,.72)!important;border:1px solid rgba(255,255,255,.15)!important;display:grid!important;place-items:center!important;color:#fff!important;font-size:18px!important;font-weight:1000!important;}
.v58-skill-info{width:34px!important;min-height:34px!important;border-radius:12px!important;align-self:end!important;}
.v58-more-note{text-align:center!important;margin-top:12px!important;}
.v58-help-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;}
.v58-potion-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
.v58-potion-card{position:relative!important;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:3px 8px!important;align-items:center!important;padding:9px 10px!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(21,25,36,.96),rgba(12,14,22,.98))!important;border:1px solid rgba(255,209,102,.20)!important;color:#fff!important;text-align:left!important;}
.v58-potion-card span{grid-row:1 / span 2!important;font-size:20px!important;display:grid!important;place-items:center!important;width:28px!important;height:28px!important;}
.v58-potion-card b{font-size:12px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v58-potion-card small{font-size:10px!important;color:#c4ccda!important;}
.v58-potion-card em{position:absolute!important;right:8px!important;top:6px!important;display:grid!important;place-items:center!important;min-width:20px!important;height:20px!important;padding:0 5px!important;border-radius:999px!important;background:rgba(255,209,102,.18)!important;border:1px solid rgba(255,209,102,.36)!important;color:#ffe28a!important;font-size:10px!important;font-style:normal!important;font-weight:1000!important;}

@media(max-width:900px){
  .v58-battle-top{padding-left:62px!important;padding-right:62px!important;}
  .v58-side-tab{top:84px!important;transform:none!important;min-height:44px!important;padding:6px 7px!important;border-radius:14px!important;}
  .v58-side-tab.left{left:8px!important;}
  .v58-side-tab.right{right:8px!important;}
  .v58-side-tab span{display:none!important;}
  .battle-screen.v58-battle{padding:8px 8px 18px!important;gap:10px!important;}
  .v58-battle .v56-timer.battle-timer{padding:12px!important;border-radius:18px!important;}
  .v58-battle .v56-timer .turn-head b{font-size:14px!important;}
  .v58-battle .v56-timer .turn-head p{font-size:10px!important;line-height:1.2!important;}
  .v58-battle #turn-time{min-width:82px!important;font-size:15px!important;padding:6px 10px!important;}
  .v58-battle .v57-monster-grid,.v58-battle .v57-monster-grid.count-1,.v58-battle .v57-monster-grid.count-2,.v58-battle .v57-monster-grid.count-3,.v58-battle .v57-monster-grid.count-4{grid-template-columns:1fr!important;gap:8px!important;}
  .v58-battle .v56-monster-card{min-height:96px!important;padding:10px!important;}
  .v58-battle .v56-monster-status-line{min-height:20px!important;}
  .v58-battle .v58-status-plus{width:20px!important;height:20px!important;min-width:20px!important;font-size:14px!important;}
  .v58-battle .v57-party-grid,.v58-battle .v57-party-grid.count-1,.v58-battle .v57-party-grid.count-2,.v58-battle .v57-party-grid.count-3,.v58-battle .v57-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v58-battle .v57-party-grid.count-3>.v57-player-card:nth-child(3){grid-column:1/-1!important;max-width:none!important;justify-self:stretch!important;}
  .v58-battle .v56-player-card.v57-player-card{min-height:110px!important;padding:8px!important;border-radius:16px!important;gap:6px!important;}
  .v58-battle .v57-player-head{grid-template-columns:32px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;}
  .v58-battle .v57-player-avatar{width:30px!important;height:30px!important;min-width:30px!important;font-size:16px!important;}
  .v58-battle .v57-player-name h3{font-size:11px!important;line-height:1.05!important;}
  .v58-battle .v57-player-name small{font-size:8px!important;}
  .v58-battle .v57-player-action{grid-column:1/-1!important;justify-self:start!important;min-height:19px!important;padding:3px 7px!important;font-size:8.2px!important;max-width:none!important;}
  .v58-battle .v57-player-effect{font-size:7.5px!important;max-width:100%!important;height:16px!important;min-height:16px!important;padding:0 5px!important;}
  .v58-battle .v57-stat-row{grid-template-columns:48px minmax(0,1fr)!important;gap:5px!important;}
  .v58-battle .v57-stat-row span{font-size:8.4px!important;}
  .v58-battle .v57-player-card .bar{height:6px!important;}
  .v58-skill-drawer.v16-skill-drawer,.v58-help-drawer.v17-help-drawer{top:70px!important;bottom:12px!important;width:min(84vw,320px)!important;max-height:calc(100dvh - 82px)!important;padding:12px!important;border-radius:20px!important;}
  .v58-skill-slot-grid,.v58-potion-strip{grid-template-columns:1fr!important;gap:8px!important;}
  .v58-overlay-card{padding:14px!important;border-radius:20px!important;}
  .v58-overlay-head h3{font-size:18px!important;}
}


/* ================= v59 swipe side panels + slot polish ================= */
.v59-battle .v57-party-grid{
  display:grid!important;
  gap:12px!important;
  width:100%!important;
}
.v59-battle .v57-party-grid.count-1{grid-template-columns:1fr!important;}
.v59-battle .v57-party-grid.count-2,
.v59-battle .v57-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v59-battle .v57-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v59-battle .v57-party-grid.count-3>.v57-player-card:nth-child(3){
  grid-column:1/-1!important;
  max-width:none!important;
  justify-self:stretch!important;
}
.v59-side-tab{
  width:38px!important;
  min-width:38px!important;
  min-height:132px!important;
  padding:10px 5px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(20,24,36,.92),rgba(10,13,22,.96))!important;
  border:1px solid rgba(255,209,102,.28)!important;
  color:#f7db82!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.03),0 18px 36px rgba(0,0,0,.36)!important;
  backdrop-filter:blur(12px)!important;
  font-size:12px!important;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease!important;
}
.v59-side-tab.left{left:10px!important;}
.v59-side-tab.right{right:10px!important;}
.v59-side-tab span{
  display:block!important;
  writing-mode:vertical-rl!important;
  transform:rotate(180deg)!important;
  font-size:10px!important;
  line-height:1!important;
  letter-spacing:.7px!important;
  text-transform:uppercase!important;
  opacity:.92!important;
  font-weight:900!important;
}
.v59-side-tab.left::before,
.v59-side-tab.right::before{
  content:''!important;
  width:14px!important;
  height:34px!important;
  border-radius:999px!important;
  background:linear-gradient(#ffd166,#ff9f2e)!important;
  opacity:.85!important;
  box-shadow:0 0 18px rgba(255,159,46,.24)!important;
}
.v59-side-tab.open{
  background:linear-gradient(180deg,rgba(64,45,20,.96),rgba(24,18,12,.98))!important;
  border-color:rgba(255,209,102,.55)!important;
  color:#ffe28a!important;
}
.v59-side-tab.left.open{transform:translateY(-50%) translateX(8px)!important;}
.v59-side-tab.right.open{transform:translateY(-50%) translateX(-8px)!important;}
.v59-dragging-panel .v59-skill-drawer,
.v59-dragging-panel .v59-help-drawer{transition:none!important;}

.v59-skill-drawer.v16-skill-drawer,
.v59-help-drawer.v17-help-drawer{
  top:86px!important;
  bottom:14px!important;
  width:min(390px,34vw)!important;
  max-height:calc(100dvh - 100px)!important;
  border-radius:24px!important;
  overflow:hidden!important;
  padding:14px!important;
  z-index:120!important;
  background:linear-gradient(145deg,rgba(28,29,38,.98),rgba(13,15,23,.99))!important;
  border:1px solid rgba(255,255,255,.13)!important;
}
.v59-skill-drawer.v16-skill-drawer{right:0!important;transform:translateX(104%)!important;}
.v59-skill-drawer.v16-skill-drawer.open{transform:translateX(0)!important;}
.v59-help-drawer.v17-help-drawer{left:0!important;transform:translateX(-104%)!important;}
.v59-help-drawer.v17-help-drawer.open{transform:translateX(0)!important;}
.v59-skill-drawer .v17-skill-scroll,
.v59-help-drawer .v17-help-scroll{
  max-height:calc(100dvh - 182px)!important;
  overflow:auto!important;
  padding:8px 2px 18px!important;
}
.v59-skill-drawer .v17-skill-scroll::-webkit-scrollbar,
.v59-help-drawer .v17-help-scroll::-webkit-scrollbar,
.v59-potion-strip::-webkit-scrollbar{height:8px!important;width:8px!important;}
.v59-skill-drawer .v17-skill-scroll::-webkit-scrollbar-thumb,
.v59-help-drawer .v17-help-scroll::-webkit-scrollbar-thumb,
.v59-potion-strip::-webkit-scrollbar-thumb{background:linear-gradient(#ffd166,#ff9f2e)!important;border-radius:999px!important;}
.v59-skill-drawer .v17-skill-scroll::-webkit-scrollbar-track,
.v59-help-drawer .v17-help-scroll::-webkit-scrollbar-track,
.v59-potion-strip::-webkit-scrollbar-track{background:rgba(255,255,255,.06)!important;border-radius:999px!important;}

.v59-skill-slot-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:8px!important;
}
.v59-skill-slot{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px!important;
  gap:7px!important;
  align-items:stretch!important;
  min-height:120px!important;
}
.v59-skill-slot-main{
  position:relative!important;
  display:grid!important;
  grid-template-rows:42px minmax(28px,auto) auto!important;
  align-content:start!important;
  gap:6px!important;
  min-height:120px!important;
  padding:10px!important;
  border-radius:18px!important;
  background:radial-gradient(circle at top left,rgba(6,214,160,.10),transparent 42%),linear-gradient(145deg,rgba(17,23,36,.98),rgba(10,13,22,.99))!important;
  border:1px solid rgba(44,220,116,.34)!important;
  color:#fff!important;
  text-align:left!important;
  overflow:hidden!important;
}
.v59-skill-slot-main span{
  width:40px!important;height:40px!important;border-radius:12px!important;
  display:grid!important;place-items:center!important;
  background:rgba(255,255,255,.065)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  font-size:22px!important;
}
.v59-skill-slot-main b{
  font-size:12.5px!important;
  line-height:1.12!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.v59-skill-slot-main small{
  font-size:10px!important;
  line-height:1.1!important;
  color:#b8c0d1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.v59-skill-slot.disabled .v59-skill-slot-main{
  opacity:.52!important;
  filter:grayscale(.45)!important;
  border-color:rgba(255,255,255,.12)!important;
}
.v59-skill-slot.passive .v59-skill-slot-main{border-color:rgba(77,190,255,.34)!important;}
.v59-skill-slot.cooldown .v59-skill-slot-main,
.v59-skill-slot.locked .v59-skill-slot-main{
  background:linear-gradient(145deg,rgba(8,10,15,.99),rgba(2,3,7,.99))!important;
  border-color:rgba(255,255,255,.14)!important;
}
.v59-cd-badge{
  position:absolute!important;
  inset:50% auto auto 50%!important;
  transform:translate(-50%,-50%)!important;
  width:46px!important;height:46px!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;
  background:rgba(0,0,0,.76)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:19px!important;
  font-weight:1000!important;
}
.v59-skill-info{
  align-self:stretch!important;
  width:40px!important;
  min-width:40px!important;
  height:auto!important;
  min-height:120px!important;
  border-radius:16px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(145deg,rgba(255,209,102,.16),rgba(255,255,255,.045))!important;
  border:1px solid rgba(255,209,102,.24)!important;
  color:#ffe28a!important;
  font-weight:1000!important;
  font-size:15px!important;
}

.v59-help-drawer .v17-help-scroll h3,
.v59-skill-drawer .v17-skill-scroll h3{
  color:#ffbd59!important;
  font-size:13px!important;
  margin:12px 0 8px!important;
}
.v59-help-row{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  padding:8px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
.v59-potion-strip{
  width:100%!important;
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:4px 2px 10px!important;
  scroll-snap-type:x proximity!important;
}
.v59-potion-card{
  position:relative!important;
  flex:0 0 138px!important;
  min-width:138px!important;
  max-width:138px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:3px 8px!important;
  align-items:center!important;
  padding:10px 10px!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,rgba(21,25,36,.98),rgba(12,14,22,.99))!important;
  border:1px solid rgba(255,209,102,.22)!important;
  color:#fff!important;
  text-align:left!important;
  scroll-snap-align:start!important;
}
.v59-potion-card span{
  grid-row:1 / span 2!important;
  width:30px!important;height:30px!important;border-radius:10px!important;
  display:grid!important;place-items:center!important;
  background:rgba(255,255,255,.06)!important;
  font-size:20px!important;
}
.v59-potion-card b{
  font-size:11.5px!important;
  line-height:1.08!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  padding-right:20px!important;
}
.v59-potion-card small{font-size:9.5px!important;color:#c4ccda!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v59-potion-card em{
  position:absolute!important;right:7px!important;top:7px!important;
  min-width:20px!important;height:20px!important;padding:0 5px!important;border-radius:999px!important;
  display:grid!important;place-items:center!important;
  background:rgba(255,209,102,.18)!important;
  border:1px solid rgba(255,209,102,.38)!important;
  color:#ffe28a!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:1000!important;
}

@media(max-width:900px){
  .v59-side-tab{
    top:85px!important;
    transform:none!important;
    width:42px!important;
    min-height:42px!important;
    min-width:42px!important;
    padding:0!important;
    border-radius:14px!important;
  }
  .v59-side-tab span{display:none!important;}
  .v59-side-tab.left::before,.v59-side-tab.right::before{width:16px!important;height:24px!important;}
  .v59-side-tab.left{left:8px!important;}
  .v59-side-tab.right{right:8px!important;}
  .v59-side-tab.left.open{transform:translateX(6px)!important;}
  .v59-side-tab.right.open{transform:translateX(-6px)!important;}
  .v59-battle-top{padding-left:58px!important;padding-right:58px!important;}
  .v59-skill-drawer.v16-skill-drawer,
  .v59-help-drawer.v17-help-drawer{
    top:70px!important;
    bottom:10px!important;
    width:min(86vw,330px)!important;
    max-height:calc(100dvh - 80px)!important;
    padding:12px!important;
    border-radius:20px!important;
  }
  .v59-skill-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .v59-skill-slot{grid-template-columns:minmax(0,1fr) 34px!important;min-height:108px!important;gap:6px!important;}
  .v59-skill-slot-main{min-height:108px!important;padding:8px!important;grid-template-rows:36px minmax(24px,auto) auto!important;}
  .v59-skill-slot-main span{width:34px!important;height:34px!important;font-size:19px!important;border-radius:10px!important;}
  .v59-skill-slot-main b{font-size:10.5px!important;}
  .v59-skill-slot-main small{font-size:8.7px!important;}
  .v59-skill-info{width:34px!important;min-width:34px!important;min-height:108px!important;border-radius:13px!important;}
  .v59-potion-card{flex-basis:132px!important;min-width:132px!important;max-width:132px!important;}
  .v59-battle .v57-party-grid,
  .v59-battle .v57-party-grid.count-1,
  .v59-battle .v57-party-grid.count-2,
  .v59-battle .v57-party-grid.count-3,
  .v59-battle .v57-party-grid.count-4{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .v59-battle .v57-party-grid.count-3>.v57-player-card:nth-child(3){
    grid-column:1/-1!important;
  }
}
@media(max-width:380px){
  .v59-skill-slot-grid{grid-template-columns:1fr!important;}
  .v59-battle .v57-party-grid,
  .v59-battle .v57-party-grid.count-1,
  .v59-battle .v57-party-grid.count-2,
  .v59-battle .v57-party-grid.count-3,
  .v59-battle .v57-party-grid.count-4{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
}


/* ================= v60 hotfix: one-player mobile card + level result ================= */
@media(max-width:900px){
  .v59-battle .v57-party-grid.count-1{
    grid-template-columns:1fr!important;
  }
  .v59-battle .v57-party-grid.count-1>.v57-player-card{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
    min-height:104px!important;
  }
}
@media(max-width:380px){
  .v59-battle .v57-party-grid.count-1{
    grid-template-columns:1fr!important;
  }
  .v59-battle .v57-party-grid.count-1>.v57-player-card{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:none!important;
  }
}
.reward-line.level-up{
  border-color:rgba(255,209,102,.38)!important;
  background:linear-gradient(145deg,rgba(255,209,102,.16),rgba(255,159,46,.08))!important;
}
.reward-line.level-up b{color:#ffe28a!important;}

/* ================= v61 polished side handles + smooth swipe ================= */
.v61-battle .modal-back,.modal-back{z-index:260!important;}
.v61-side-tab{
  position:fixed!important;
  top:50%!important;
  z-index:125!important;
  width:34px!important;
  min-width:34px!important;
  min-height:154px!important;
  padding:8px 4px!important;
  display:grid!important;
  grid-template-rows:28px minmax(0,1fr)!important;
  place-items:center!important;
  gap:7px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(23,27,43,.72),rgba(11,14,24,.92))!important;
  border:1px solid rgba(255,209,102,.24)!important;
  color:#ffe8a4!important;
  box-shadow:0 14px 34px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.035)!important;
  backdrop-filter:blur(12px)!important;
  transition:transform .28s cubic-bezier(.2,.85,.18,1), filter .18s ease, border-color .18s ease!important;
}
.v61-side-tab.left{left:10px!important;transform:translateY(-50%)!important;}
.v61-side-tab.right{right:10px!important;transform:translateY(-50%)!important;}
.v61-side-tab i{font-style:normal!important;font-size:17px!important;line-height:1!important;width:26px!important;height:26px!important;border-radius:999px!important;display:grid!important;place-items:center!important;background:rgba(255,209,102,.12)!important;border:1px solid rgba(255,209,102,.22)!important;}
.v61-side-tab span{writing-mode:vertical-rl!important;text-orientation:mixed!important;font-size:10px!important;line-height:1!important;font-weight:1000!important;letter-spacing:.45px!important;text-transform:uppercase!important;color:#f4d98a!important;max-height:104px!important;white-space:nowrap!important;}
.v61-side-tab:before{content:''!important;position:absolute!important;top:12px!important;bottom:12px!important;width:2px!important;border-radius:999px!important;background:linear-gradient(180deg,transparent,#ffd166,#ff9f2e,transparent)!important;opacity:.72!important;}
.v61-side-tab.left:before{right:4px!important;}
.v61-side-tab.right:before{left:4px!important;}
.v61-side-tab.open{border-color:rgba(255,209,102,.52)!important;filter:brightness(1.15)!important;background:linear-gradient(180deg,rgba(54,39,19,.88),rgba(22,18,12,.96))!important;}
.v61-side-tab.left.open{transform:translateY(-50%) translateX(5px)!important;}
.v61-side-tab.right.open{transform:translateY(-50%) translateX(-5px)!important;}
.v61-side-tab:hover{filter:brightness(1.12)!important;}
.v61-side-tab:disabled{opacity:.42!important;filter:grayscale(.65)!important;}

.v59-skill-drawer.v16-skill-drawer,.v59-help-drawer.v17-help-drawer,
.v58-skill-drawer.v16-skill-drawer,.v58-help-drawer.v17-help-drawer{
  transition:transform .36s cubic-bezier(.2,.85,.18,1)!important;
  will-change:transform!important;
}
.v61-dragging-panel .v59-skill-drawer,
.v61-dragging-panel .v59-help-drawer,
.v61-dragging-panel .v58-skill-drawer,
.v61-dragging-panel .v58-help-drawer{transition:none!important;}
.v61-drag-visible{visibility:visible!important;pointer-events:auto!important;}

/* ability slot polish */
.v59-skill-slot{grid-template-columns:minmax(0,1fr) 44px!important;align-items:stretch!important;}
.v59-skill-info{
  width:44px!important;
  min-width:44px!important;
  min-height:120px!important;
  align-self:stretch!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(255,209,102,.18),rgba(255,255,255,.05))!important;
  border:1px solid rgba(255,209,102,.30)!important;
  color:#ffe28a!important;
  box-shadow:inset 0 0 18px rgba(255,209,102,.045)!important;
}
.v59-skill-info::before{content:'i';font-family:serif;font-size:20px;font-weight:1000;line-height:1;}
.v59-skill-info{font-size:0!important;}
.v59-skill-slot-main{border-radius:18px!important;}
.v59-skill-slot:not(.disabled):not(.cooldown) .v59-skill-slot-main{box-shadow:0 0 0 1px rgba(44,220,116,.08),0 10px 24px rgba(0,0,0,.18)!important;}
.v61-battle-ability-detail{display:grid!important;gap:12px!important;}

/* arsenal compact: no empty right/left holes, potions go left-to-right */
.v59-help-drawer .v17-help-scroll{display:block!important;padding-right:4px!important;}
.v59-help-drawer .v25-help-note{margin:4px 0 8px!important;line-height:1.22!important;}
.v59-help-row{margin:6px 0!important;}
.v59-potion-strip{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:4px 2px 12px!important;
  scroll-snap-type:x proximity!important;
}
.v61-potion-card.v59-potion-card{
  flex:0 0 148px!important;
  min-width:148px!important;
  max-width:148px!important;
  min-height:68px!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-content:center!important;
}
.v61-potion-card.v59-potion-card b{font-size:11px!important;line-height:1.05!important;max-width:100%!important;}
.v61-potion-card.v59-potion-card small{font-size:9.4px!important;}

/* PC party grid rule for one player is wide */
.v61-battle .v57-party-grid.count-1{grid-template-columns:1fr!important;}
.v61-battle .v57-party-grid.count-1>.v57-player-card{grid-column:1/-1!important;max-width:none!important;width:100%!important;justify-self:stretch!important;}
.v61-battle .v57-party-grid.count-2,.v61-battle .v57-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v61-battle .v57-party-grid.count-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v61-battle .v57-party-grid.count-3>.v57-player-card:nth-child(3){grid-column:1/-1!important;max-width:none!important;width:100%!important;}

@media(max-width:900px){
  .v61-side-tab{
    top:82px!important;
    width:auto!important;
    min-width:72px!important;
    min-height:32px!important;
    height:32px!important;
    padding:4px 8px!important;
    grid-template-columns:20px auto!important;
    grid-template-rows:1fr!important;
    gap:5px!important;
    border-radius:999px!important;
    transform:none!important;
  }
  .v61-side-tab.left{left:8px!important;transform:none!important;}
  .v61-side-tab.right{right:8px!important;transform:none!important;}
  .v61-side-tab.left.open{transform:translateX(4px)!important;}
  .v61-side-tab.right.open{transform:translateX(-4px)!important;}
  .v61-side-tab i{width:20px!important;height:20px!important;font-size:13px!important;}
  .v61-side-tab span{display:block!important;writing-mode:horizontal-tb!important;font-size:9px!important;letter-spacing:.2px!important;max-height:none!important;text-transform:none!important;}
  .v61-side-tab.left span{max-width:70px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .v61-side-tab:before{display:none!important;}
  .v59-battle-top{padding-left:90px!important;padding-right:82px!important;}
  .v59-skill-drawer.v16-skill-drawer,.v59-help-drawer.v17-help-drawer{
    top:68px!important;
    bottom:10px!important;
    width:min(88vw,340px)!important;
    max-height:calc(100dvh - 78px)!important;
    border-radius:22px!important;
    transition:transform .38s cubic-bezier(.2,.85,.18,1)!important;
  }
  .v59-skill-slot{grid-template-columns:minmax(0,1fr) 38px!important;min-height:110px!important;}
  .v59-skill-info{width:38px!important;min-width:38px!important;min-height:110px!important;border-radius:15px!important;}
  .v59-skill-info::before{font-size:18px!important;}
  .v61-potion-card.v59-potion-card{flex-basis:142px!important;min-width:142px!important;max-width:142px!important;}
  .v61-battle .v57-party-grid.count-1{grid-template-columns:1fr!important;}
  .v61-battle .v57-party-grid.count-1>.v57-player-card{grid-column:1/-1!important;width:100%!important;max-width:none!important;}
}
@media(max-width:390px){
  .v61-side-tab{min-width:62px!important;padding:4px 6px!important;}
  .v61-side-tab span{font-size:8px!important;}
  .v59-battle-top{padding-left:76px!important;padding-right:76px!important;}
  .v59-skill-slot-grid{grid-template-columns:1fr!important;}
  .v61-potion-card.v59-potion-card{flex-basis:134px!important;min-width:134px!important;max-width:134px!important;}
}

/* v62 final precedence layer — intentionally last */
.battle-screen.v62-battle{width:min(1320px,calc(100vw - 36px))!important;max-width:1320px!important;margin:0 auto!important;padding:18px 0 32px!important;display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(380px,.88fr)!important;grid-template-areas:"timer timer" "monsters players" "actions actions" "log log"!important;align-items:start!important;gap:14px!important}
.v62-battle-top{min-height:82px!important;display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;padding:10px max(18px,calc((100vw - 1320px)/2 + 18px))!important;background:linear-gradient(180deg,rgba(9,11,15,.97),rgba(12,15,21,.93))!important}
.v62-turn-panel.v56-timer{grid-area:timer!important;min-height:88px!important;padding:13px 16px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;grid-template-rows:1fr 7px!important;gap:10px 14px!important;border-radius:19px!important;background:linear-gradient(112deg,rgba(18,24,31,.98),rgba(12,16,22,.98))!important}
.v62-turn-panel .turn-head{display:block!important}.v62-turn-panel .bar.turn{grid-column:2/4!important;height:7px!important;margin:0!important}.v62-turn-panel #turn-time{min-width:104px!important;padding:0!important;background:none!important;border:0!important;font-size:20px!important}
.v62-arena-panel{grid-area:monsters!important}.v62-party-panel{grid-area:players!important}.v62-battle-log{grid-area:log!important}
.v62-battle .v57-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.v62-battle .v57-monster-grid.count-1{grid-template-columns:1fr!important}.v62-battle .v57-monster-grid.count-3>.v62-monster-card:nth-child(3){grid-column:1/-1!important}
.v62-battle .v62-monster-card.v56-monster-card,.v62-battle .v62-monster-card.v56-monster-card.selected-target{width:100%!important;min-height:136px!important;height:100%!important;display:grid!important;grid-template-columns:62px minmax(0,1fr) 30px!important;gap:11px!important;padding:16px 12px 13px!important;border-radius:17px!important;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease!important}
.v62-battle .v62-monster-card.v56-monster-card.selected-target{border-color:rgba(242,216,138,.78)!important;box-shadow:0 0 0 1px rgba(242,216,138,.15),0 0 26px rgba(216,180,97,.11),0 14px 32px rgba(0,0,0,.3)!important}
.v62-battle .v62-monster-card .v56-monster-avatar,.v62-battle .v62-monster-card.selected-target .v56-monster-avatar{width:58px!important;height:58px!important;min-width:58px!important;border-radius:17px!important}.v62-battle .v62-monster-card .v56-monster-avatar span{font-size:34px!important}.v62-battle .v62-monster-card .v56-monster-info{display:grid!important;grid-template-rows:auto auto auto!important;gap:8px!important}.v62-battle .v62-monster-card .v56-monster-head{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;gap:6px!important}.v62-battle .v62-monster-card .v56-monster-status-line{min-height:20px!important;margin:0!important}.v62-battle .v62-monster-card .v56-monster-hp-row{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:8px!important}.v62-battle .v62-monster-card .bar.hp{height:7px!important;margin:0!important}.v62-battle .v62-monster-info{display:grid!important;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important}
.v62-battle .v57-party-grid,.v62-battle .v57-party-grid.count-1,.v62-battle .v57-party-grid.count-2,.v62-battle .v57-party-grid.count-3,.v62-battle .v57-party-grid.count-4{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.v62-battle .v57-party-grid.count-1{grid-template-columns:1fr!important}.v62-battle .v57-party-grid.count-3>.v62-player-card:nth-child(3){grid-column:1/-1!important}.v62-battle .v62-player-card.v56-player-card{min-height:136px!important;padding:12px!important;display:grid!important;grid-template-rows:auto auto 1fr!important;gap:9px!important;border-radius:17px!important}.v62-battle .v62-player-card .v57-player-head{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important}.v62-battle .v62-player-card .v57-player-action{grid-column:auto!important}
.v62-action-dock{grid-area:actions!important;min-height:118px!important;display:grid!important;grid-template-columns:minmax(250px,1fr) auto!important;grid-template-areas:"target buttons" "shortcuts shortcuts"!important;gap:10px 18px!important;padding:13px 14px 9px!important;border-radius:20px!important}.v62-target-readout{grid-area:target!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) minmax(120px,190px)!important;gap:11px!important}.v62-action-buttons{grid-area:buttons!important;display:grid!important;grid-template-columns:118px 198px 118px!important;gap:8px!important}.v62-action-buttons button{min-height:72px!important;display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;grid-template-rows:auto auto!important}.v62-shortcuts{grid-area:shortcuts!important}
.v62-battle-log.v56-battle-log{padding:0!important;border-radius:20px!important}.v62-battle-log .battle-log-scroll{max-height:190px!important;min-height:0!important;padding:10px!important;display:grid!important}.v62-battle-log.collapsed .battle-log-scroll{display:none!important}
.v62-drawer.v17-skill-drawer,.v62-drawer.v17-help-drawer{top:94px!important;bottom:18px!important;width:min(410px,38vw)!important;max-height:calc(100dvh - 112px)!important;padding:0!important;border-radius:22px!important;z-index:190!important}.v62-drawer .v17-skill-scroll,.v62-drawer .v17-help-scroll{height:calc(100% - 84px)!important;max-height:none!important;padding:12px!important;overflow-y:auto!important}.v62-drawer .v59-skill-slot-grid{grid-template-columns:1fr!important;gap:7px!important}.v62-skill-slot.v59-skill-slot{grid-template-columns:minmax(0,1fr) 40px!important;min-height:78px!important}.v62-skill-slot .v59-skill-slot-main{min-height:78px!important}.v62-skill-slot .v59-skill-info{width:40px!important;min-width:40px!important;min-height:78px!important}.v62-drawer .v59-potion-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important}.v62-potion-card.v59-potion-card{min-width:0!important;max-width:none!important;width:100%!important;flex:auto!important}
@media(max-width:1080px){.battle-screen.v62-battle{grid-template-columns:minmax(0,1fr) minmax(330px,.92fr)!important;width:calc(100vw - 24px)!important}.v62-action-dock{grid-template-columns:1fr!important;grid-template-areas:"target" "buttons" "shortcuts"!important}.v62-action-buttons{grid-template-columns:1fr 1.55fr 1fr!important}}
@media(max-width:900px){.v62-battle-top{min-height:68px!important;grid-template-columns:38px minmax(0,1fr) auto!important;padding:7px 9px!important}.v62-header-status .net-pill,.v62-side-tab{display:none!important}.battle-screen.v62-battle{width:100%!important;max-width:100%!important;padding:8px 8px 22px!important;grid-template-columns:1fr!important;grid-template-areas:"timer" "monsters" "actions" "players" "log"!important;gap:9px!important}.v62-turn-panel.v56-timer{min-height:78px!important;grid-template-columns:46px minmax(0,1fr) auto!important;grid-template-rows:1fr 6px!important;padding:10px!important;gap:8px 10px!important}.v62-battle .v57-monster-grid,.v62-battle .v57-monster-grid.count-1,.v62-battle .v57-monster-grid.count-2,.v62-battle .v57-monster-grid.count-3,.v62-battle .v57-monster-grid.count-4{grid-template-columns:1fr!important;gap:7px!important}.v62-battle .v57-monster-grid.count-3>.v62-monster-card:nth-child(3){grid-column:auto!important}.v62-battle .v62-monster-card.v56-monster-card,.v62-battle .v62-monster-card.v56-monster-card.selected-target{min-height:96px!important;grid-template-columns:48px minmax(0,1fr) 28px!important;gap:8px!important;padding:12px 9px 9px!important}.v62-battle .v62-monster-card .v56-monster-avatar,.v62-battle .v62-monster-card.selected-target .v56-monster-avatar{width:44px!important;height:44px!important;min-width:44px!important}.v62-battle .v62-monster-card .v56-monster-avatar span{font-size:27px!important}.v62-action-dock{position:sticky!important;bottom:6px!important;z-index:80!important;min-height:0!important;padding:9px!important;grid-template-columns:1fr!important;grid-template-areas:"target" "buttons"!important;gap:8px!important}.v62-target-readout{grid-template-columns:37px minmax(0,1fr) 108px!important;gap:8px!important}.v62-action-buttons{grid-template-columns:1fr 1.45fr 1fr!important;gap:6px!important}.v62-action-buttons button{min-height:54px!important;padding:6px!important;grid-template-columns:25px minmax(0,1fr)!important}.v62-shortcuts{display:none!important}.v62-battle .v57-party-grid,.v62-battle .v57-party-grid.count-1,.v62-battle .v57-party-grid.count-2,.v62-battle .v57-party-grid.count-3,.v62-battle .v57-party-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v62-battle .v57-party-grid.count-1{grid-template-columns:1fr!important}.v62-battle .v62-player-card.v56-player-card{min-height:112px!important;padding:9px!important;gap:6px!important}.v62-battle .v62-player-card .v57-player-head{grid-template-columns:30px minmax(0,1fr)!important}.v62-battle .v62-player-card .v57-player-action{grid-column:1/-1!important}.v62-drawer.v17-skill-drawer,.v62-drawer.v17-help-drawer{top:72px!important;bottom:8px!important;width:min(92vw,390px)!important;max-height:calc(100dvh - 80px)!important}}
@media(max-width:520px){.v62-battle .v57-party-grid,.v62-battle .v57-party-grid.count-1,.v62-battle .v57-party-grid.count-2,.v62-battle .v57-party-grid.count-3,.v62-battle .v57-party-grid.count-4{grid-template-columns:1fr!important}.v62-battle .v57-party-grid.count-3>.v62-player-card:nth-child(3){grid-column:auto!important}.v62-battle .v62-player-card .v57-player-head{grid-template-columns:32px minmax(0,1fr) auto!important}.v62-battle .v62-player-card .v57-player-action{grid-column:auto!important}.v62-target-readout{grid-template-columns:35px minmax(0,1fr)!important}.v62-target-health{display:none!important}.v62-action-buttons button{grid-template-columns:1fr!important;grid-template-rows:23px auto!important;justify-items:center!important;text-align:center!important}.v62-action-buttons button>span{grid-row:1!important}.v62-action-buttons button>small{display:none!important}.v62-drawer .v59-potion-strip{grid-template-columns:1fr!important}}

/* v63 — unified game redesign */
.v63-ui{
  --v63-bg:#090c11;--v63-surface:#111720;--v63-surface-2:#171f2a;--v63-line:rgba(255,255,255,.085);
  --v63-gold:#e7c979;--v63-gold-2:#b99645;--v63-red:#e46f65;--v63-green:#6fc99b;--v63-blue:#70aee8;
  --v63-text:#f2f0e9;--v63-muted:#929cac;--v63-radius:18px;--v63-shadow:0 18px 50px rgba(0,0,0,.35);
  color:var(--v63-text);background:radial-gradient(circle at 15% -10%,rgba(91,124,159,.13),transparent 33%),radial-gradient(circle at 85% 0,rgba(201,166,82,.09),transparent 28%),var(--v63-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif
}
.v63-ui *{box-sizing:border-box}.v63-ui button,.v63-ui input,.v63-ui select,.v63-ui textarea{font:inherit}.v63-ui button{touch-action:manipulation}.v63-ui .app-shell{min-height:100dvh}
.v63-ui .screen{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:20px 0 104px}.v63-ui .topbar{border-bottom:1px solid var(--v63-line);background:rgba(9,12,17,.88);backdrop-filter:blur(18px);box-shadow:none}.v63-ui .top-title h1{letter-spacing:-.025em}.v63-ui .panel,.v63-ui .card,.v63-ui .modal-card{border:1px solid var(--v63-line);border-radius:var(--v63-radius);background:linear-gradient(145deg,rgba(23,31,42,.96),rgba(14,19,26,.98));box-shadow:0 12px 36px rgba(0,0,0,.22)}
.v63-ui .btn,.v63-ui button.primary,.v63-ui .primary-btn{min-height:46px;border-radius:13px;border:1px solid var(--v63-line);font-weight:750;transition:transform .15s ease,border-color .15s ease,filter .15s ease}.v63-ui .btn:active,.v63-ui button.primary:active{transform:scale(.975)}.v63-ui .btn.primary,.v63-ui button.primary,.v63-ui .primary-btn{color:#16130c;background:linear-gradient(135deg,#f0d98d,#c9a54e);border-color:rgba(247,221,145,.55);box-shadow:0 8px 24px rgba(185,143,48,.15)}
.v63-ui input,.v63-ui select,.v63-ui textarea{min-height:46px;border-radius:13px!important;border:1px solid var(--v63-line)!important;background:#0c1118!important;color:var(--v63-text)!important}.v63-ui input:focus,.v63-ui select:focus,.v63-ui textarea:focus{border-color:rgba(231,201,121,.55)!important;box-shadow:0 0 0 3px rgba(231,201,121,.09)!important;outline:0}
.v63-ui .bottom-nav{left:50%;right:auto;bottom:12px;transform:translateX(-50%);width:min(720px,calc(100% - 24px));min-height:64px;padding:7px;border:1px solid rgba(255,255,255,.11);border-radius:20px;background:rgba(13,18,25,.94);backdrop-filter:blur(22px);box-shadow:0 18px 50px rgba(0,0,0,.45)}.v63-ui .bottom-nav button{min-height:50px;border-radius:14px;color:var(--v63-muted)}.v63-ui .bottom-nav button.active{color:var(--v63-gold);background:rgba(231,201,121,.1)}
.v63-ui .modal-overlay{padding:16px;background:rgba(2,4,7,.76);backdrop-filter:blur(9px)}.v63-ui .modal-card{max-height:calc(100dvh - 32px);overflow:auto}.v63-ui .toast{border:1px solid var(--v63-line);border-radius:14px;background:#161d27;box-shadow:var(--v63-shadow)}

/* Entry and location */
.v63-ui .v35-login-shell{background:transparent!important}.v63-ui .v35-login-card{border-radius:26px!important;border:1px solid var(--v63-line)!important;background:linear-gradient(145deg,#171f2a,#0d1219)!important;box-shadow:0 28px 80px rgba(0,0,0,.48)!important}.v63-ui .v35-login-brand{color:var(--v63-gold)!important}.v63-ui .location-hero,.v63-ui .v36-location-hero{overflow:hidden;border:1px solid var(--v63-line)!important;border-radius:24px!important;box-shadow:var(--v63-shadow)!important}.v63-ui .v36-location-grid,.v63-ui .v37-location-grid{gap:14px!important}.v63-ui .v38-location-monster-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:10px!important}.v63-ui .v38-loc-monster{min-height:116px!important;border:1px solid var(--v63-line)!important;border-radius:16px!important;background:linear-gradient(145deg,#171e28,#10161e)!important;box-shadow:none!important;transition:transform .16s ease,border-color .16s ease!important}.v63-ui .v38-loc-monster:hover{transform:translateY(-2px);border-color:rgba(231,201,121,.35)!important}.v63-ui .v38-quick-profile,.v63-ui .active-battles,.v63-ui .loot-pile{border-radius:18px!important;border-color:var(--v63-line)!important;background:var(--v63-surface)!important}

/* Collections, character, skills, social and trade */
.v63-ui .inventory-grid,.v63-ui .items-grid{gap:10px!important}.v63-ui .item-card,.v63-ui .v39-item-card{border:1px solid var(--v63-line)!important;border-radius:16px!important;background:linear-gradient(145deg,#171f29,#10151c)!important;box-shadow:none!important}.v63-ui .item-card:hover,.v63-ui .v39-item-card:hover{border-color:rgba(231,201,121,.36)!important}.v63-ui .v39-profile-layout{gap:14px!important}.v63-ui .v39-profile-card,.v63-ui .v39-equipment-panel,.v63-ui .v39-attr-card,.v63-ui .v39-equip-slot{border:1px solid var(--v63-line)!important;border-radius:18px!important;background:var(--v63-surface)!important;box-shadow:none!important}.v63-ui .v39-equip-slot{min-height:82px!important}.v63-ui .abilities-tabs-panel,.v63-ui .ability-tabs{border-radius:16px!important;background:#0e141c!important}.v63-ui .v42-ability-card,.v63-ui .v44-ability-card{border:1px solid var(--v63-line)!important;border-radius:17px!important;background:linear-gradient(145deg,#18212c,#10161e)!important;box-shadow:none!important}.v63-ui .v38-friends-layout{gap:14px!important}.v63-ui .v38-friend-entry{min-height:76px!important;border:1px solid var(--v63-line)!important;border-radius:16px!important;background:var(--v63-surface)!important}.v63-ui .v38-friend-actions button{min-width:44px;min-height:44px;border-radius:12px}.v63-ui .trade-window,.v63-ui .trade-side{border-radius:20px!important;border-color:var(--v63-line)!important;background:var(--v63-surface)!important}.v63-ui .trade-offer-grid{gap:8px!important}.v63-ui .trade-offer-slot{min-height:72px;border-radius:14px!important;border-color:var(--v63-line)!important}.v63-ui .chest-transfer{gap:12px!important}.v63-ui .v23-chest-card{border-radius:16px!important;border-color:var(--v63-line)!important;background:var(--v63-surface)!important}.v63-ui .admin-grid,.v63-ui .admin-editor-box{gap:12px!important}.v63-ui .admin-editor-box{border-radius:18px!important;border-color:var(--v63-line)!important;background:var(--v63-surface)!important}

/* Compact battle */
.v63-ui .v63-battle-top{min-height:62px!important;height:62px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:10px!important;padding:7px max(14px,calc((100vw - 1180px)/2 + 14px))!important}.v63-battle-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#18140b;background:linear-gradient(135deg,#f0d88b,#bd9640);box-shadow:0 7px 20px rgba(195,151,54,.18)}.v63-battle-title{min-width:0}.v63-battle-title small{display:block;color:var(--v63-muted);font-size:10px;text-transform:uppercase;letter-spacing:.13em}.v63-battle-title h1{margin:1px 0 0;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v63-header-state{display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--v63-line);border-radius:999px;color:#d7e5dc;background:rgba(111,201,155,.08);font-size:12px;font-weight:750}.v63-header-state i{width:7px;height:7px;border-radius:50%;background:var(--v63-green);box-shadow:0 0 0 4px rgba(111,201,155,.1)}.v63-header-state.enemy{color:#f0cbc8;background:rgba(228,111,101,.08)}.v63-header-state.enemy i{background:var(--v63-red);box-shadow:0 0 0 4px rgba(228,111,101,.1)}
.battle-screen.v63-battle{width:min(1180px,calc(100vw - 28px))!important;max-width:1180px!important;padding:14px 0 34px!important;display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)!important;grid-template-areas:"timer timer" "monsters players" "actions actions" "log log"!important;gap:10px!important}.v63-battle>section{border:1px solid var(--v63-line)!important;background:linear-gradient(145deg,#131a23,#0d1218)!important;box-shadow:none!important}.v63-turn-strip.v56-timer{grid-area:timer!important;min-height:56px!important;padding:8px 12px!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;grid-template-rows:1fr 4px!important;gap:5px 10px!important;border-radius:15px!important}.v63-turn-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(231,201,121,.1);color:var(--v63-gold)}.v63-turn-strip .turn-head{display:block!important}.v63-turn-strip .turn-head b{font-size:13px}.v63-turn-strip .turn-head p{margin:2px 0 0;color:var(--v63-muted);font-size:11px}.v63-turn-meta{display:flex;align-items:center;gap:9px}.v63-turn-meta small{color:var(--v63-muted)}.v63-turn-meta #turn-time{min-width:64px!important;padding:0!important;border:0!important;background:none!important;font-size:16px!important;text-align:right}.v63-turn-strip .bar.turn{grid-column:1/-1!important;height:4px!important;margin:0!important}
.v63-arena-panel{grid-area:monsters!important}.v63-party-panel{grid-area:players!important}.v63-section-head{min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:8px 11px;border-bottom:1px solid var(--v63-line)}.v63-section-head h2{margin:0;font-size:14px}.v63-section-head span{color:var(--v63-muted);font-size:11px}.v63-battle .v57-monster-grid,.v63-battle .v57-party-grid{padding:9px!important}.v63-battle .v62-monster-card.v56-monster-card,.v63-battle .v62-monster-card.v56-monster-card.selected-target{min-height:100px!important;padding:10px!important;border-radius:14px!important;background:#111821!important}.v63-battle .v62-monster-card.v56-monster-card.selected-target{border-color:rgba(231,201,121,.72)!important;box-shadow:inset 3px 0 0 var(--v63-gold),0 8px 24px rgba(0,0,0,.24)!important;transform:translateY(-1px)}.v63-battle .v62-player-card.v56-player-card{min-height:100px!important;padding:9px!important;border-radius:14px!important;background:#111821!important}
.v63-target-hint{grid-area:actions;min-height:54px;display:flex;align-items:center;gap:10px;padding:9px 13px;border:1px dashed rgba(255,255,255,.13);border-radius:15px;color:var(--v63-muted);background:rgba(255,255,255,.025)}.v63-target-hint>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.04);font-size:20px}.v63-target-hint p{display:grid;margin:0}.v63-target-hint b{color:var(--v63-text);font-size:13px}.v63-target-hint small{font-size:11px}.v63-target-hint>i{margin-left:auto;font-style:normal;font-size:10px}
.v63-target-bar{grid-area:actions;position:sticky;bottom:10px;z-index:85;min-height:68px;display:grid;grid-template-columns:46px minmax(0,1fr) 46px minmax(150px,210px);align-items:center;gap:9px;padding:8px 9px;border:1px solid rgba(231,201,121,.4);border-radius:18px;background:rgba(16,22,30,.96);backdrop-filter:blur(20px);box-shadow:0 18px 46px rgba(0,0,0,.42)}.v63-target-avatar{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#202a36;font-size:27px}.v63-target-copy{min-width:0;display:grid;gap:3px}.v63-target-copy small{color:var(--v63-muted);font-size:9px;text-transform:uppercase;letter-spacing:.1em}.v63-target-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.v63-target-copy .bar{height:5px;margin:1px 0 0}.v63-skill-button{width:46px;height:46px;border:1px solid var(--v63-line);border-radius:13px;color:var(--v63-blue);background:rgba(112,174,232,.08);font-size:22px}.v63-attack-button{min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(245,216,133,.55);border-radius:14px;color:#17130b;background:linear-gradient(135deg,#f0d98d,#c39b42);font-weight:850;box-shadow:0 8px 22px rgba(185,143,48,.2)}.v63-attack-button:disabled{filter:grayscale(.5);opacity:.5}.v63-attack-button span{font-size:20px}
.v63-battle-log{grid-area:log!important;border-radius:16px!important}.v63-battle-log .v62-log-head{min-height:48px!important}.v63-battle-log .battle-log-scroll{max-height:150px!important}.v63-edge-tab{position:fixed;top:45%;z-index:155;width:30px;height:106px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid var(--v63-line);color:var(--v63-muted);background:rgba(15,21,29,.92);backdrop-filter:blur(14px);cursor:pointer}.v63-edge-tab.left{left:0;border-left:0;border-radius:0 13px 13px 0}.v63-edge-tab.right{right:0;border-right:0;border-radius:13px 0 0 13px}.v63-edge-tab span{font-size:9px;writing-mode:vertical-rl;text-transform:uppercase;letter-spacing:.12em}.v63-edge-tab i{font-style:normal;color:var(--v63-gold)}.v63-edge-tab.open{color:var(--v63-text);border-color:rgba(231,201,121,.4)}.v63-edge-tab:disabled{opacity:.35}.v63-ui .v62-drawer.v17-skill-drawer,.v63-ui .v62-drawer.v17-help-drawer{top:72px!important;bottom:14px!important;border:1px solid var(--v63-line)!important;border-radius:20px!important;background:#101720!important;box-shadow:0 24px 70px rgba(0,0,0,.55)!important}.v63-ui .v62-skill-slot.v59-skill-slot{border-radius:14px!important;background:#151e29!important}.v63-ui .v62-potion-card.v59-potion-card{border-radius:14px!important;background:#151e29!important}

@media(max-width:900px){
  .v63-ui .screen{width:100%;padding:10px 9px calc(92px + env(safe-area-inset-bottom))}.v63-ui .topbar{padding-left:10px!important;padding-right:10px!important}.v63-ui .bottom-nav{bottom:max(7px,env(safe-area-inset-bottom));width:calc(100% - 14px);border-radius:18px}.v63-ui .bottom-nav button{min-width:48px;min-height:52px}.v63-ui .modal-overlay{align-items:flex-end;padding:8px}.v63-ui .modal-card{width:100%!important;max-width:none!important;max-height:88dvh;border-radius:22px 22px 14px 14px!important}
  .v63-ui .v38-location-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v63-ui .v39-profile-layout,.v63-ui .v38-friends-layout,.v63-ui .chest-transfer,.v63-ui .trade-window{grid-template-columns:1fr!important}.v63-ui .v38-friend-actions{display:flex!important;flex-wrap:wrap!important}
  .v63-ui .v63-battle-top{height:58px!important;min-height:58px!important;grid-template-columns:34px minmax(0,1fr) auto!important;padding:6px 8px!important}.v63-battle-mark{width:34px;height:34px}.v63-battle-title h1{font-size:15px}.v63-header-state{padding:0 9px}.v63-header-state span{font-size:11px}.battle-screen.v63-battle{width:100%!important;padding:8px 8px calc(22px + env(safe-area-inset-bottom))!important;grid-template-columns:1fr!important;grid-template-areas:"timer" "monsters" "actions" "players" "log"!important;gap:8px!important}.v63-turn-strip.v56-timer{min-height:52px!important;padding:7px 9px!important}.v63-turn-strip .turn-head p{max-width:52vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v63-target-hint{min-height:48px}.v63-target-hint>i{display:none}.v63-target-bar{bottom:max(6px,env(safe-area-inset-bottom));grid-template-columns:40px minmax(0,1fr) 42px minmax(128px,36vw);min-height:62px;padding:6px}.v63-target-avatar{width:40px;height:40px;font-size:23px}.v63-skill-button{width:42px;height:44px}.v63-attack-button{min-height:46px}.v63-edge-tab{top:auto;bottom:116px;width:24px;height:82px}.v63-edge-tab span{display:none}.v63-ui .v62-drawer.v17-skill-drawer,.v63-ui .v62-drawer.v17-help-drawer{top:66px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:min(92vw,390px)!important;max-height:calc(100dvh - 74px)!important}
}
@media(max-width:520px){
  .v63-ui .v38-location-monster-grid{grid-template-columns:1fr!important}.v63-ui .inventory-grid,.v63-ui .items-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v63-ui .v38-friend-entry{align-items:flex-start!important}.v63-ui .v38-friend-actions{width:100%!important}.v63-ui .v38-friend-actions button{flex:1}.v63-ui .trade-offer-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .v63-section-head{min-height:38px;padding:6px 9px}.v63-battle .v57-monster-grid,.v63-battle .v57-party-grid{padding:7px!important}.v63-battle .v62-monster-card.v56-monster-card,.v63-battle .v62-monster-card.v56-monster-card.selected-target{min-height:88px!important;grid-template-columns:44px minmax(0,1fr) 26px!important;padding:8px!important}.v63-target-bar{grid-template-columns:36px minmax(0,1fr) 40px 112px;gap:6px}.v63-target-avatar{width:36px;height:36px;font-size:21px}.v63-target-copy small{display:none}.v63-attack-button{gap:5px;padding:0 8px}.v63-attack-button span{font-size:17px}.v63-battle-log .battle-log-scroll{max-height:120px!important}
}
@media(max-width:380px){.v63-header-state span{display:none}.v63-header-state{width:34px;padding:0;justify-content:center}.v63-turn-strip .turn-head p{max-width:44vw}.v63-target-bar{grid-template-columns:34px minmax(0,1fr) 38px 98px}.v63-target-avatar{width:34px;height:34px}.v63-attack-button b{font-size:12px}.v63-ui .inventory-grid,.v63-ui .items-grid{grid-template-columns:1fr!important}}

/* v64 — direct card attacks, rebuilt drawers and social center */
.battle-screen.v63-battle{grid-template-areas:"timer timer" "monsters players" "log log"!important}
.v64-monster-tools{display:flex;flex-direction:column;align-items:center;gap:7px;z-index:3}.v63-battle .v64-monster-tools .v62-monster-info{position:static!important;width:28px!important;height:28px!important;min-height:28px!important}.v64-card-attack{width:38px;height:38px;min-width:38px;min-height:38px;display:grid;place-items:center;padding:0;border:1px solid rgba(244,213,126,.7);border-radius:12px;color:#17130b;background:linear-gradient(145deg,#f3dda0,#c99e42);font-size:19px;box-shadow:0 7px 22px rgba(194,148,44,.28);animation:v64AttackIn .2s ease both}.v64-card-attack:hover{filter:brightness(1.08);transform:translateY(-1px)}.v64-card-attack:active{transform:scale(.92)}.v64-card-attack:disabled{opacity:.4;filter:grayscale(.65)}@keyframes v64AttackIn{from{opacity:0;transform:scale(.65) rotate(-12deg)}to{opacity:1;transform:scale(1) rotate(0)}}
.v63-battle .v62-monster-card.v56-monster-card,.v63-battle .v62-monster-card.v56-monster-card.selected-target{grid-template-columns:58px minmax(0,1fr) 40px!important;align-items:center!important}.v63-battle .v62-monster-card.v56-monster-card.selected-target{background:linear-gradient(110deg,rgba(231,201,121,.09),#111821 38%)!important}.v63-battle .v62-selected-mark{display:none!important}

/* Battle side panels */
.v63-ui .v62-drawer.v17-skill-drawer,.v63-ui .v62-drawer.v17-help-drawer{width:min(430px,calc(100vw - 40px))!important;padding:0!important;overflow:hidden!important;border-radius:22px!important;background:linear-gradient(160deg,#151d27,#0d131a 58%)!important}.v63-ui .v62-drawer .v62-drawer-head{height:88px!important;min-height:88px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:14px 16px!important;border-bottom:1px solid var(--v63-line)!important;background:linear-gradient(110deg,rgba(231,201,121,.1),transparent 65%)!important}.v63-ui .v62-drawer .v62-drawer-head>div{display:grid!important;gap:2px!important}.v63-ui .v62-drawer .v62-drawer-head small{color:var(--v63-gold)!important;font-size:9px!important;letter-spacing:.14em!important}.v63-ui .v62-drawer .v62-drawer-head b{font-size:18px!important}.v63-ui .v62-drawer .v62-drawer-head span{color:var(--v63-muted)!important;font-size:11px!important}.v63-ui .v62-drawer .v62-drawer-head>button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:12px!important}.v63-ui .v62-drawer .v17-skill-scroll,.v63-ui .v62-drawer .v17-help-scroll{height:calc(100% - 88px)!important;padding:12px!important;display:block!important;overflow-y:auto!important}.v63-ui .v62-drawer-section-title{min-height:38px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;margin:7px 0 5px!important;padding:0 3px!important}.v63-ui .v62-drawer-section-title h3{margin:0!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.08em!important}.v63-ui .v62-drawer-section-title span{min-width:27px;height:23px;display:grid;place-items:center;border-radius:999px;color:var(--v63-gold);background:rgba(231,201,121,.1);font-size:10px}.v63-ui .v57-skill-note,.v63-ui .v25-help-note{margin:0 3px 9px!important;color:var(--v63-muted)!important;font-size:10px!important}.v63-ui .v62-drawer .v59-skill-slot-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}.v63-ui .v62-skill-slot.v59-skill-slot{min-height:70px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;overflow:hidden!important;border:1px solid var(--v63-line)!important;border-radius:15px!important;background:#151e28!important}.v63-ui .v62-skill-slot .v59-skill-slot-main{min-height:70px!important;padding:9px 10px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:2px 9px!important;text-align:left!important}.v63-ui .v62-skill-slot .v59-skill-slot-main>span{grid-row:1/3!important;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(112,174,232,.09);font-size:23px}.v63-ui .v62-skill-slot .v59-skill-slot-main>b{align-self:end;font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v63-ui .v62-skill-slot .v59-skill-slot-main>small{grid-column:2!important;color:var(--v63-muted)!important;font-size:10px!important}.v63-ui .v62-skill-slot .v59-skill-slot-main>em{grid-column:3!important;grid-row:1/3!important;align-self:center!important;padding:4px 6px!important;border-radius:7px!important;font-size:8px!important}.v63-ui .v62-skill-slot .v59-skill-info{width:38px!important;min-width:38px!important;min-height:70px!important;border:0!important;border-left:1px solid var(--v63-line)!important;border-radius:0!important;background:rgba(255,255,255,.025)!important}.v63-ui .v62-drawer .v59-potion-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important}.v63-ui .v62-potion-card.v59-potion-card{width:100%!important;min-width:0!important;max-width:none!important;min-height:92px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:2px 8px!important;padding:10px!important;text-align:left!important;border:1px solid var(--v63-line)!important}.v63-ui .v62-potion-card>span{grid-row:1/3!important;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(111,201,155,.09);font-size:22px}.v63-ui .v62-potion-card>b{align-self:end;font-size:12px!important}.v63-ui .v62-potion-card>small{font-size:10px!important}.v63-ui .v62-potion-card>em{grid-column:3!important;grid-row:1/3!important;align-self:center!important}.v63-ui .v59-help-row{min-height:58px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;margin:0 0 7px!important;padding:8px 9px!important;border:1px solid var(--v63-line)!important;border-radius:14px!important;background:#151e28!important}.v63-ui .v59-help-row>button{min-width:92px!important;min-height:40px!important;border-radius:11px!important}

/* Rebuilt friends section */
.v64-social-screen{width:min(1180px,calc(100% - 30px))!important}.v64-social-top{min-height:66px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;padding:8px max(15px,calc((100vw - 1180px)/2 + 15px))!important}.v64-social-top .hamburger{width:40px;height:40px;border-radius:12px}.v64-social-top .top-title small{display:block;color:var(--v63-gold);font-size:9px;letter-spacing:.13em}.v64-social-top .top-title h1{margin:1px 0 0;font-size:18px}.v64-network-state{height:36px;display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--v63-line);border-radius:999px;color:var(--v63-muted);font-size:11px}.v64-network-state i{width:7px;height:7px;border-radius:50%;background:#6d7683}.v64-network-state.online{color:var(--v63-green);background:rgba(111,201,155,.06)}.v64-network-state.online i{background:var(--v63-green);box-shadow:0 0 0 4px rgba(111,201,155,.1)}.v64-social-page{display:grid;gap:14px}.v64-social-hero{min-height:156px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:24px 26px;overflow:hidden;border:1px solid var(--v63-line);border-radius:24px;background:radial-gradient(circle at 92% 10%,rgba(112,174,232,.15),transparent 34%),linear-gradient(130deg,#18222e,#10161e);box-shadow:var(--v63-shadow)}.v64-kicker{color:var(--v63-gold);font-size:9px;letter-spacing:.18em}.v64-social-hero h2{margin:5px 0 4px;font-size:27px;letter-spacing:-.035em}.v64-social-hero p{max-width:560px;margin:0;color:var(--v63-muted);font-size:13px}.v64-social-metrics{display:grid;grid-template-columns:repeat(3,94px);gap:7px}.v64-social-metrics>div{min-height:78px;display:grid;place-content:center;text-align:center;border:1px solid var(--v63-line);border-radius:16px;background:rgba(8,12,17,.42)}.v64-social-metrics b{font-size:23px;color:var(--v63-text)}.v64-social-metrics span{color:var(--v63-muted);font-size:9px;text-transform:uppercase;letter-spacing:.09em}.v64-social-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:14px;align-items:start}.v64-social-main,.v64-social-side{display:grid;gap:14px}.v64-social-card{overflow:hidden;border:1px solid var(--v63-line);border-radius:20px;background:linear-gradient(145deg,#151d27,#0e141b);box-shadow:0 10px 32px rgba(0,0,0,.18)}.v64-social-head{min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--v63-line)}.v64-social-head>div{display:flex;align-items:center;gap:8px}.v64-social-head>div>span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;color:var(--v63-gold);background:rgba(231,201,121,.08);font-size:11px}.v64-social-head h3{margin:0;font-size:14px}.v64-social-head small{color:var(--v63-muted);font-size:10px}.v64-person-list{display:grid;gap:7px;padding:9px}.v64-person{min-height:72px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid transparent;border-radius:15px;background:rgba(255,255,255,.025)}.v64-person:hover{border-color:var(--v63-line);background:rgba(255,255,255,.04)}.v64-person-avatar{position:relative;width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#202a36;font-size:22px}.v64-person-avatar i{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border:2px solid #151d27;border-radius:50%;background:#68717e}.v64-person.online .v64-person-avatar i{background:var(--v63-green)}.v64-person-copy{min-width:0;display:grid}.v64-person-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.v64-person-copy small{color:var(--v63-muted);font-size:10px}.v64-person-actions{display:flex;gap:5px}.v64-person-actions button{min-width:42px;min-height:40px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 9px;border:1px solid var(--v63-line);border-radius:11px;background:#121923;color:var(--v63-text);font-size:12px}.v64-person-actions button span{font-size:10px}.v64-person-actions button.primary{color:#17130b;background:linear-gradient(135deg,#ead387,#c39a41)}.v64-request-block{padding:9px}.v64-request-block h4{margin:8px 4px 6px;color:var(--v63-muted);font-size:9px;text-transform:uppercase;letter-spacing:.12em}.v64-request-entry,.v64-request-wait{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;padding:8px;border-radius:13px;background:rgba(255,255,255,.028)}.v64-request-user,.v64-request-wait{display:flex;align-items:center;gap:8px}.v64-request-user>span,.v64-request-wait>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#202a36}.v64-request-user>div,.v64-request-wait>div{display:grid}.v64-request-user b,.v64-request-wait b{font-size:12px}.v64-request-user small,.v64-request-wait small{color:var(--v63-muted);font-size:9px}.v64-request-actions{display:flex;gap:5px}.v64-request-actions button{min-height:38px;border-radius:10px}.v64-trade-card{padding-bottom:13px}.v64-trade-card>p{margin:12px 13px 9px;color:var(--v63-muted);font-size:11px}.v64-trade-select{display:grid;gap:5px;margin:0 13px 8px}.v64-trade-select>span{color:var(--v63-muted);font-size:10px}.v64-trade-send{width:calc(100% - 26px);margin:0 13px}.v64-social-card .v38-friends-empty{margin:12px;color:var(--v63-muted);font-size:11px}

@media(max-width:900px){.battle-screen.v63-battle{grid-template-areas:"timer" "monsters" "players" "log"!important}.v64-social-screen{width:100%!important}.v64-social-layout{grid-template-columns:1fr}.v64-social-hero{grid-template-columns:1fr;padding:18px}.v64-social-metrics{grid-template-columns:repeat(3,1fr)}.v64-social-metrics>div{min-height:66px}.v63-ui .v62-drawer.v17-skill-drawer,.v63-ui .v62-drawer.v17-help-drawer{width:min(92vw,410px)!important}}
@media(max-width:560px){.v63-battle .v62-monster-card.v56-monster-card,.v63-battle .v62-monster-card.v56-monster-card.selected-target{grid-template-columns:44px minmax(0,1fr) 38px!important}.v64-card-attack{width:36px;height:36px;min-width:36px;min-height:36px}.v64-social-hero{min-height:0;border-radius:19px}.v64-social-hero h2{font-size:22px}.v64-social-metrics>div{min-height:58px}.v64-social-metrics b{font-size:19px}.v64-person{grid-template-columns:40px minmax(0,1fr);padding:8px}.v64-person-avatar{width:40px;height:40px}.v64-person-actions{grid-column:1/-1;width:100%}.v64-person-actions button{flex:1;min-height:42px}.v64-person-actions button span{display:inline}.v64-request-entry{align-items:flex-start;flex-direction:column}.v64-request-actions{width:100%}.v64-request-actions button:first-child{flex:1}.v64-social-top .top-title small{display:none}.v64-network-state{padding:0 8px}.v64-network-state i{display:none}.v63-ui .v62-drawer .v59-potion-strip{grid-template-columns:1fr!important}.v63-ui .v62-drawer.v17-skill-drawer,.v63-ui .v62-drawer.v17-help-drawer{width:94vw!important}.v63-ui .v62-drawer .v62-drawer-head{height:78px!important;min-height:78px!important;padding:10px 12px!important}.v63-ui .v62-drawer .v17-skill-scroll,.v63-ui .v62-drawer .v17-help-scroll{height:calc(100% - 78px)!important;padding:9px!important}}

/* ===== v65 compact grayscale + orange/lime refinement ===== */
:root{
  --bg:#0e1012 !important;
  --card:#171a1f !important;
  --card2:#1e2329 !important;
  --text:#f4f5f6 !important;
  --muted:#a9afb7 !important;
  --gold:#ff9f2e !important;
  --green:#b6ff3b !important;
  --red:#ff6a5f !important;
  --blue:#cfd6de !important;
  --purple:#8ba13a !important;
  --border:rgba(255,255,255,.10) !important;
  --shadow:0 18px 44px rgba(0,0,0,.34) !important;
}
html,body{background:radial-gradient(circle at top,rgba(255,159,46,.08),transparent 26%),radial-gradient(circle at 90% 0,rgba(182,255,59,.08),transparent 24%),linear-gradient(180deg,#0b0d10,#12151a 34%,#0f1114 100%)!important;color:var(--text)!important;}
button{border-radius:14px!important;box-shadow:none!important;font-weight:700!important;}
button:hover{filter:brightness(1.05)!important;}
.primary,.v65-attack-btn{background:linear-gradient(135deg,#ffac45,#ff8924)!important;color:#18130d!important;border:1px solid rgba(255,190,110,.38)!important;}
.danger{background:linear-gradient(135deg,#8d472f,#bf5a38)!important;border:1px solid rgba(255,150,100,.24)!important;}
.ghost{background:rgba(255,255,255,.04)!important;border:1px solid rgba(182,255,59,.18)!important;color:#f4f5f6!important;}
.topbar,.side,.bottom-nav,.modal,.panel,.equipment-panel,.profile-card,.paperdoll,.loot-pile,.location-hero,.battle-log,.party,.fighter,.ability-card,.item-card,.item-detail-card,.v38-loc-monster,.v62-monster-card,.v62-drawer,.v62-overlay-card{background:linear-gradient(180deg,rgba(26,29,35,.96),rgba(16,18,21,.98))!important;border-color:rgba(255,255,255,.08)!important;box-shadow:0 14px 34px rgba(0,0,0,.24)!important;}
.topbar{background:rgba(13,15,18,.88)!important;border-bottom-color:rgba(255,255,255,.06)!important;}
.topbar h1{font-size:21px!important;}
.topbar p{font-size:12px!important;}
.net-pill{background:rgba(255,255,255,.04)!important;color:#d2d5da!important;border:1px solid rgba(255,255,255,.08)!important;}
.net-pill.lan{background:rgba(182,255,59,.10)!important;color:#d9ff94!important;}
.net-pill.offline{background:rgba(255,159,46,.12)!important;color:#ffd399!important;}
.bar{height:10px!important;background:#0f1216!important;border-color:rgba(255,255,255,.08)!important;}
.bar i{background:linear-gradient(90deg,#b6ff3b,#ff9f2e)!important;}
.bar.hp i{background:linear-gradient(90deg,#ff7c5f,#ffb15d)!important;}
.bar.mp i{background:linear-gradient(90deg,#eceeef,#c3ccd5)!important;}
.screen{padding:14px!important;max-width:1220px!important;}
.bottom-nav{width:min(860px,calc(100% - 20px))!important;grid-template-columns:repeat(5,1fr)!important;gap:6px!important;padding:7px!important;border-radius:20px!important;background:rgba(13,15,18,.92)!important;}
.bottom-nav button{min-height:54px!important;padding:8px 6px!important;border-radius:14px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.05)!important;}
.bottom-nav button.active{background:linear-gradient(180deg,rgba(255,159,46,.18),rgba(182,255,59,.09))!important;border-color:rgba(255,183,92,.28)!important;}
.bottom-nav button.active span,.bottom-nav button.active{color:#fff!important;}
.bottom-nav span{font-size:11px!important;color:#c2c8cf!important;}
.side{width:288px!important;padding:12px!important;background:linear-gradient(180deg,rgba(20,23,28,.99),rgba(14,16,19,.99))!important;}
.side-head{padding-bottom:10px!important;margin-bottom:10px!important;}
.v65-side-profile .v39-quick-title{align-items:center!important;gap:10px!important;}
.v65-side-avatar{display:grid!important;place-items:center!important;width:54px!important;height:54px!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(255,159,46,.15),rgba(182,255,59,.05))!important;border:1px solid rgba(255,159,46,.2)!important;overflow:hidden!important;}
.v65-side-avatar img{width:42px!important;height:42px!important;object-fit:contain!important;display:block!important;}
.v39-quick-bars article{padding:9px 10px!important;border-radius:14px!important;background:rgba(255,255,255,.03)!important;}
.v39-quick-grid{grid-template-columns:repeat(3,1fr)!important;gap:7px!important;}
.v39-quick-grid span{padding:8px!important;border-radius:12px!important;background:rgba(255,255,255,.03)!important;}
.v39-quick-attrs{display:none!important;}
.v38-side-nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:10px!important;}
.v38-side-nav button{margin:0!important;min-height:46px!important;padding:8px 10px!important;font-size:13px!important;border-radius:14px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.06)!important;}
.v38-side-nav .danger{grid-column:1 / -1!important;}
.class-inline-image,.class-asset-image,.monster-asset-image,.item-asset-image,.battle-monster-art{display:block!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;}
.avatar{width:126px!important;height:126px!important;border-radius:30px!important;background:linear-gradient(180deg,#111418,#181c21)!important;overflow:hidden!important;}
.avatar .class-inline-image,.avatar img{width:92px!important;height:92px!important;margin:auto!important;}
.avatar-ring{width:146px!important;height:146px!important;padding:10px!important;border-radius:34px!important;background:linear-gradient(135deg,rgba(255,159,46,.34),rgba(182,255,59,.16))!important;box-shadow:0 12px 30px rgba(0,0,0,.30)!important;}
.v65-profile-hero,.v39-profile-hero{padding:16px!important;gap:10px!important;min-height:auto!important;background:linear-gradient(180deg,rgba(26,29,35,.96),rgba(18,20,24,.98))!important;}
.v39-profile-hero h2{margin:0!important;font-size:30px!important;}
.v39-profile-hero p{margin:4px 0 0!important;font-size:14px!important;color:#d0d4da!important;}
.v39-exp-box{padding:10px 12px!important;border-radius:16px!important;background:rgba(255,255,255,.04)!important;}
.v39-panel-head{align-items:center!important;gap:10px!important;}
.v39-panel-head h2,.v39-attributes h2{font-size:21px!important;}
.v39-panel-head p,.v39-attributes p{font-size:13px!important;line-height:1.35!important;}
.v39-slot-grid{gap:10px!important;}
.v39-equip-slot{min-height:108px!important;padding:10px 12px!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02))!important;border:1px solid rgba(255,255,255,.06)!important;}
.v39-equip-slot.filled{background:linear-gradient(180deg,rgba(255,159,46,.09),rgba(255,255,255,.03))!important;}
.v39-slot-name{font-size:12px!important;letter-spacing:.06em!important;color:#cfd4db!important;}
.v39-slot-icon{width:52px!important;height:52px!important;border-radius:15px!important;background:rgba(0,0,0,.24)!important;overflow:hidden!important;}
.v39-slot-icon img{width:36px!important;height:36px!important;object-fit:contain!important;}
.v39-slot-item{font-size:13px!important;line-height:1.25!important;color:#fff!important;}
.v39-stat-grid{gap:8px!important;}
.v39-resource-card,.v39-mini-stat{padding:12px!important;border-radius:16px!important;background:rgba(255,255,255,.035)!important;}
.v39-resource-card small,.v39-mini-stat small{font-size:11px!important;color:#c7ccd3!important;}
.v39-resource-card b,.v39-mini-stat b{font-size:20px!important;}
.v39-mini-stat{grid-template-columns:auto 1fr!important;}
.v39-mini-stat span{font-size:18px!important;}
.v39-attr-grid{gap:8px!important;}
.v40-attr-card.v39-attr-card{min-height:62px!important;padding:10px 12px!important;border-radius:16px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.06)!important;}
.v40-attr-card.v39-attr-card small{font-size:12px!important;color:#d5d9de!important;}
.v40-attr-card.v39-attr-card b{font-size:18px!important;color:#ffb45e!important;}
.inventory-panel .inventory-head{align-items:center!important;gap:10px!important;}
.inventory-panel h2{margin:0!important;font-size:21px!important;}
.inventory-panel .muted{font-size:13px!important;}
.bag-weight{width:86px!important;height:86px!important;border-radius:24px!important;background:linear-gradient(180deg,rgba(255,159,46,.14),rgba(182,255,59,.06))!important;border:1px solid rgba(255,183,92,.26)!important;}
.inventory-tools.compact{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:10px!important;}
.inventory-tools.compact .chance-pill{padding:7px 10px!important;font-size:12px!important;background:rgba(255,255,255,.03)!important;border-color:rgba(255,159,46,.18)!important;}
.item-list,.inventory-list{gap:10px!important;}
.item-card,.v39-item-card{grid-template-columns:72px minmax(0,1fr)!important;gap:12px!important;padding:12px!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(21,25,31,.96),rgba(14,17,20,.98))!important;}
.v39-item-icon-wrap,.item-icon-wrap{width:66px!important;height:66px!important;border-radius:18px!important;background:rgba(0,0,0,.22)!important;overflow:hidden!important;}
.v39-item-icon-wrap .item-emblem,.item-icon-wrap .item-emblem{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;font-size:0!important;}
.v39-item-icon-wrap img,.item-icon-wrap img{width:42px!important;height:42px!important;object-fit:contain!important;display:block!important;margin:auto!important;}
.item-type-label{font-size:10px!important;letter-spacing:.05em!important;}
.v39-item-head h3{font-size:18px!important;line-height:1.15!important;margin:0!important;}
.item-weight{font-size:12px!important;padding:5px 9px!important;border-radius:999px!important;background:rgba(255,159,46,.12)!important;color:#ffd197!important;}
.item-description{margin:3px 0 4px!important;font-size:13px!important;line-height:1.35!important;color:#d5dae0!important;}
.item-stats-line{font-size:12px!important;color:#c1ff81!important;}
.item-actions{margin-top:8px!important;gap:8px!important;}
.item-actions button{padding:9px 12px!important;min-height:42px!important;}
.item-detail-card h2{font-size:30px!important;margin:8px 0 4px!important;}
.item-detail-icon{width:84px!important;height:84px!important;border-radius:22px!important;background:rgba(0,0,0,.24)!important;overflow:hidden!important;}
.item-detail-icon img{width:56px!important;height:56px!important;object-fit:contain!important;display:block!important;margin:auto!important;}
.detail-line{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;padding:11px 14px!important;border-radius:14px!important;background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.05)!important;}
.detail-line span{font-size:13px!important;color:#aeb4bc!important;}
.detail-line b{font-size:15px!important;font-weight:800!important;color:#fff!important;text-align:right!important;}
.v39-item-reqs{display:grid!important;gap:10px!important;margin-top:12px!important;grid-template-columns:1fr!important;}
.v39-req-block{padding:12px 14px!important;border-radius:16px!important;background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.06)!important;display:grid!important;gap:8px!important;}
.v39-req-block b{font-size:14px!important;}
.v65-req-list{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
.v39-req-block span{padding:7px 10px!important;border-radius:999px!important;font-size:12px!important;}
.v39-req-block .ok{background:rgba(182,255,59,.10)!important;color:#d7ff91!important;border:1px solid rgba(182,255,59,.22)!important;}
.v39-req-block .bad{background:rgba(255,159,46,.12)!important;color:#ffd49e!important;border:1px solid rgba(255,159,46,.22)!important;}
.v38-loc-monster{display:grid!important;grid-template-columns:72px minmax(0,1fr) auto!important;gap:12px!important;padding:12px!important;border-radius:18px!important;overflow:hidden!important;}
.v38-mob-index{display:none!important;}
.v38-mob-icon{width:72px!important;height:72px!important;border-radius:18px!important;background:rgba(0,0,0,.22)!important;display:grid!important;place-items:center!important;overflow:hidden!important;}
.v38-mob-icon img{width:48px!important;height:48px!important;object-fit:contain!important;}
.v38-mob-head h3{font-size:20px!important;margin:0!important;}
.v38-mob-stats{gap:10px!important;font-size:13px!important;color:#d2d7dc!important;}
.v38-mob-flags{gap:6px!important;}
.v38-mob-flag{padding:4px 8px!important;border-radius:999px!important;font-size:11px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.06)!important;}
.v38-mob-actions{display:grid!important;align-content:center!important;gap:8px!important;}
.v38-mob-actions button{min-width:86px!important;min-height:40px!important;padding:8px 10px!important;}
.monster-portrait,.v65-monster-portrait{width:86px!important;height:86px!important;border-radius:22px!important;background:rgba(0,0,0,.22)!important;overflow:hidden!important;}
.monster-portrait img,.v65-monster-portrait img{width:56px!important;height:56px!important;object-fit:contain!important;display:block!important;margin:auto!important;}
.v65-monster-sheet{display:grid!important;gap:12px!important;}
.v65-monster-sheet h2{margin:0!important;font-size:28px!important;}
.v65-monster-block{display:grid!important;gap:10px!important;}
.v65-monster-block h3{margin:0!important;font-size:16px!important;}
.v65-monster-stat-grid{display:grid!important;gap:8px!important;}
.v65-monster-tagline{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:6px!important;}
.v65-monster-tag{display:inline-flex!important;align-items:center!important;padding:5px 9px!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;letter-spacing:.03em!important;}
.v65-monster-tag.aggro{background:rgba(255,159,46,.14)!important;color:#ffd29c!important;border:1px solid rgba(255,159,46,.24)!important;}
.v65-monster-tag.pack{background:rgba(182,255,59,.10)!important;color:#d9ff93!important;border:1px solid rgba(182,255,59,.22)!important;}
.v65-monster-skills{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:8px!important;}
.v65-monster-skill{display:grid!important;gap:3px!important;padding:10px 12px!important;text-align:left!important;border-radius:14px!important;background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.06)!important;}
.v65-monster-skill b{font-size:14px!important;color:#fff!important;}
.v65-monster-skill small{font-size:11px!important;color:#cfe08a!important;}
.v65-monster-skill-card{display:grid!important;gap:10px!important;}
.v65-monster-skill-card h2{margin:0!important;font-size:24px!important;}
.v63-turn-strip,.v63-arena-panel,.v63-party-panel,.v63-battle-log,.v65-battle-dock{border-radius:20px!important;border:1px solid rgba(255,255,255,.06)!important;background:linear-gradient(180deg,rgba(22,25,30,.97),rgba(14,16,19,.98))!important;box-shadow:0 12px 28px rgba(0,0,0,.23)!important;}
.v65-battle-dock{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;padding:12px 14px!important;}
.v65-battle-dock-text{display:grid!important;gap:2px!important;}
.v65-battle-dock-text b{font-size:16px!important;}
.v65-battle-dock-text small{font-size:12px!important;color:#c8ced5!important;}
.v65-battle-dock-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important;}
.v65-battle-dock-actions button{min-height:40px!important;padding:8px 12px!important;border-radius:12px!important;}
.v63-edge-tab,.v59-side-tab,.v58-side-tab{min-height:48px!important;padding:8px 8px!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(22,25,30,.98),rgba(14,16,19,.98))!important;border-color:rgba(255,255,255,.08)!important;color:#f5f6f7!important;}
.v63-edge-tab.open,.v59-side-tab.open,.v58-side-tab.open{background:linear-gradient(145deg,#ffab43,#ff8f28)!important;color:#19140d!important;}
.v62-monster-card,.v56-monster-card{padding:12px!important;border-radius:18px!important;grid-template-columns:78px minmax(0,1fr) auto!important;gap:12px!important;}
.v62-target-corner{display:none!important;}
.v56-monster-avatar{width:78px!important;height:78px!important;border-radius:18px!important;background:rgba(0,0,0,.24)!important;overflow:hidden!important;}
.v56-monster-avatar img{width:50px!important;height:50px!important;object-fit:contain!important;display:block!important;margin:auto!important;}
.v56-monster-head{gap:6px!important;align-items:flex-start!important;}
.v56-monster-head small{display:none!important;}
.v56-monster-head h2{font-size:19px!important;margin:0!important;line-height:1.15!important;}
.v62-threat{font-size:10px!important;padding:4px 8px!important;border-radius:999px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.06)!important;color:#cbd1d7!important;}
.v56-status-chip{padding:5px 8px!important;font-size:11px!important;border-radius:999px!important;}
.v64-monster-tools{gap:8px!important;}
.v62-monster-info,.v64-card-attack{width:38px!important;height:38px!important;border-radius:12px!important;display:grid!important;place-items:center!important;padding:0!important;}
.v62-drawer{background:linear-gradient(180deg,rgba(18,21,25,.99),rgba(12,14,17,.99))!important;}
.v62-drawer-head small{color:#aeb6bf!important;}
.v62-drawer-head b{color:#fff!important;}
.v59-skill-slot,.v59-help-row,.v62-potion-card{border-radius:16px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.06)!important;}
.v59-skill-slot-main,.v58-skill-slot-main{padding:11px!important;}
.v59-help-row{padding:10px 12px!important;}
.v62-overlay-card.v65-battle-monster-modal{width:min(760px,calc(100vw - 22px))!important;max-height:88vh!important;overflow:auto!important;}
.v65-battle-monster-modal .v65-monster-sheet{margin-top:12px!important;}
.v65-battle-monster-modal .item-card{grid-template-columns:64px minmax(0,1fr)!important;}
@media(max-width:900px){
  .bottom-nav{grid-template-columns:repeat(5,1fr)!important;bottom:8px!important;}
  .bottom-nav button{min-height:50px!important;}
  .profile-layout,.v39-profile-layout{grid-template-columns:1fr!important;}
  .v39-slot-grid{grid-template-columns:1fr 1fr!important;}
  .v39-stat-grid,.v39-attr-grid{grid-template-columns:1fr!important;}
  .v38-loc-monster,.v62-monster-card{grid-template-columns:64px minmax(0,1fr)!important;}
  .v38-mob-actions,.v64-monster-tools{grid-column:1 / -1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;display:grid!important;}
  .v65-battle-dock{flex-direction:column!important;align-items:stretch!important;}
  .v65-battle-dock-actions{justify-content:stretch!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;}
  .v65-battle-dock-actions button{width:100%!important;}
  .v65-monster-skills{grid-template-columns:1fr!important;}
}
@media(max-width:640px){
  .screen{padding:10px!important;}
  .topbar{padding:9px 12px!important;min-height:64px!important;}
  .topbar h1{font-size:18px!important;}
  .bottom-nav span{font-size:10px!important;}
  .v38-side-nav{grid-template-columns:1fr 1fr!important;}
  .v39-profile-hero h2{font-size:24px!important;}
  .bag-weight{width:74px!important;height:74px!important;}
  .inventory-panel .inventory-head{align-items:flex-start!important;}
  .item-card,.v39-item-card{grid-template-columns:64px minmax(0,1fr)!important;padding:11px!important;}
  .v39-item-icon-wrap,.item-icon-wrap{width:60px!important;height:60px!important;}
  .v39-slot-grid{grid-template-columns:1fr!important;}
  .v65-battle-dock-actions{grid-template-columns:1fr!important;}
}

/* ===== v66 stronger lime style + auth/carousel refresh ===== */
:root{
  --gold:#ff9d28 !important;
  --green:#bfff47 !important;
}
html,body{
  background:
    radial-gradient(circle at 18% 0, rgba(191,255,71,.14), transparent 28%),
    radial-gradient(circle at 86% 0, rgba(255,157,40,.12), transparent 24%),
    linear-gradient(180deg,#0a0b0d,#0e1114 30%,#111418 100%)!important;
}
.panel,.equipment-panel,.profile-card,.paperdoll,.item-card,.v38-loc-monster,.v62-monster-card,.v62-drawer,.v62-overlay-card,.modal,.login-card,.topbar,.side,.bottom-nav{
  border:1px solid rgba(191,255,71,.10)!important;
}
.hamburger,.topbar .ghost,.side-head button,.v62-monster-info,.v64-card-attack,.v66-arrow{
  background:rgba(255,255,255,.04)!important;
  border:1px solid rgba(191,255,71,.14)!important;
}
.primary,.v64-card-attack.active,.v63-edge-tab.open,.v59-side-tab.open,.v58-side-tab.open{
  background:linear-gradient(135deg,#bfff47,#ffad39)!important;
  color:#16140d!important;
  border-color:rgba(191,255,71,.32)!important;
}
.v64-card-attack.active{box-shadow:0 0 0 1px rgba(191,255,71,.32),0 0 18px rgba(191,255,71,.22)!important;}
.v64-card-attack:disabled{opacity:.55!important;background:rgba(255,255,255,.03)!important;color:#8d949c!important;box-shadow:none!important;}
.v62-selected-mark{color:#dfff8c!important;}
.bar i,.bar.hp i,.bar.mp i{box-shadow:0 0 12px rgba(191,255,71,.12)!important;}
.v38-mob-icon,.v56-monster-avatar{width:88px!important;height:88px!important;}
.v38-mob-icon img,.v56-monster-avatar img{width:62px!important;height:62px!important;}
.v38-mob-head h3,.v56-monster-head h2{font-size:22px!important;}
.v38-mob-stats,.v56-monster-hp-row span{font-size:14px!important;}
.v38-loc-monster{grid-template-columns:88px minmax(0,1fr) auto!important;min-height:114px!important;}
.v62-monster-card,.v56-monster-card{grid-template-columns:88px minmax(0,1fr) auto!important;min-height:118px!important;}
.v62-monster-info,.v64-card-attack{width:42px!important;height:42px!important;font-size:16px!important;}
.v63-edge-tab,.v59-side-tab,.v58-side-tab{
  min-width:54px!important;min-height:70px!important;border-radius:18px!important;
  box-shadow:0 10px 24px rgba(0,0,0,.24)!important;
}
.v63-edge-tab i,.v59-side-tab i,.v58-side-tab i{font-size:16px!important;}
.v63-edge-tab span,.v59-side-tab span,.v58-side-tab span{font-size:11px!important;font-weight:800!important;}
.v66-auth-screen{display:grid!important;place-items:center!important;padding:20px!important;min-height:100vh!important;}
.v66-login-card{max-width:1180px!important;width:min(1180px,100%)!important;border-radius:30px!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(18,20,24,.98),rgba(12,14,17,.99))!important;box-shadow:0 24px 70px rgba(0,0,0,.44)!important;}
.v66-auth-wrap{display:grid!important;grid-template-columns:1.05fr .95fr!important;min-height:780px!important;}
.v66-auth-hero{padding:36px!important;background:radial-gradient(circle at top left,rgba(191,255,71,.18),transparent 34%),radial-gradient(circle at bottom right,rgba(255,157,40,.12),transparent 34%),linear-gradient(180deg,#13171b,#101216)!important;border-right:1px solid rgba(191,255,71,.10)!important;display:grid!important;align-content:start!important;gap:18px!important;}
.v66-auth-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:8px 14px!important;border-radius:999px!important;background:rgba(191,255,71,.12)!important;color:#dfff91!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important;width:max-content!important;}
.v66-auth-hero h1{margin:0!important;font-size:44px!important;line-height:1.02!important;}
.v66-auth-hero p{margin:0!important;font-size:15px!important;line-height:1.55!important;color:#dde1e6!important;max-width:520px!important;}
.v66-auth-points{display:flex!important;flex-wrap:wrap!important;gap:10px!important;}
.v66-auth-points span{padding:8px 12px!important;border-radius:999px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.06)!important;color:#edf0f3!important;font-size:13px!important;}
.v66-auth-preview{margin-top:10px!important;display:grid!important;grid-template-columns:170px 1fr!important;align-items:center!important;gap:20px!important;}
.v66-class-orb,.v66-class-stage-ring{width:170px!important;height:170px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 30% 30%,rgba(191,255,71,.18),rgba(255,157,40,.09) 48%,rgba(0,0,0,.34) 72%)!important;border:3px solid rgba(191,255,71,.28)!important;box-shadow:inset 0 0 40px rgba(0,0,0,.26),0 16px 38px rgba(0,0,0,.34)!important;overflow:hidden!important;transform:scale(1)!important;transition:transform .28s ease, box-shadow .28s ease!important;}
.v66-class-orb.pulse,.v66-class-stage-ring.pulse{transform:scale(1.05)!important;box-shadow:inset 0 0 44px rgba(0,0,0,.28),0 0 0 6px rgba(191,255,71,.06),0 18px 42px rgba(0,0,0,.34)!important;}
.v66-class-orb img,.v66-class-stage-ring img{width:122px!important;height:122px!important;object-fit:contain!important;display:block!important;}
.v66-auth-preview-text small,.v66-class-role{font-size:12px!important;font-weight:800!important;letter-spacing:.09em!important;color:#d7ff86!important;text-transform:uppercase!important;}
.v66-auth-preview-text b,.v66-class-name{display:block!important;font-size:32px!important;line-height:1.1!important;color:#fff!important;}
.v66-auth-preview-text p,.v66-class-desc{margin:6px 0 0!important;font-size:14px!important;line-height:1.45!important;color:#d9dde2!important;}
.v66-auth-form{padding:30px 30px 26px!important;display:grid!important;align-content:start!important;gap:14px!important;background:linear-gradient(180deg,#101216,#0d1013)!important;}
.v66-logo{width:max-content!important;padding:10px 16px!important;border-radius:999px!important;background:rgba(255,255,255,.03)!important;border:1px solid rgba(191,255,71,.10)!important;}
.v66-auth-form h2{margin:0!important;font-size:30px!important;}
.v66-auth-sub{font-size:14px!important;line-height:1.45!important;color:#cfd5dc!important;}
.v66-auth-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
.v66-auth-tabs button{min-height:48px!important;border-radius:16px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.06)!important;color:#d5dae1!important;}
.v66-auth-tabs button.active{background:linear-gradient(135deg,rgba(191,255,71,.20),rgba(255,157,40,.15))!important;color:#fff!important;border-color:rgba(191,255,71,.18)!important;}
.v66-fields-grid{display:grid!important;gap:12px!important;}
.v66-field input,.v66-field select{border-radius:16px!important;min-height:52px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.07)!important;color:#fff!important;font-size:15px!important;padding:0 14px!important;}
.v66-register-extra{display:grid!important;gap:14px!important;padding:16px!important;border-radius:24px!important;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015))!important;border:1px solid rgba(191,255,71,.10)!important;}
.v66-picker-head{display:grid!important;gap:4px!important;}
.v66-picker-head b{font-size:18px!important;}
.v66-picker-head small{color:#bfc6ce!important;font-size:13px!important;}
.v66-class-picker{display:grid!important;grid-template-columns:52px minmax(0,1fr) 52px!important;align-items:center!important;gap:12px!important;}
.v66-arrow{width:52px!important;height:52px!important;border-radius:16px!important;font-size:28px!important;font-weight:700!important;color:#e8ecf0!important;}
.v66-class-stage{display:grid!important;justify-items:center!important;text-align:center!important;gap:10px!important;}
.v66-gender-block{display:grid!important;gap:8px!important;}
.v66-gender-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
.v66-gender-pill{min-height:54px!important;border-radius:18px!important;border:1px solid rgba(255,255,255,.06)!important;background:rgba(255,255,255,.03)!important;color:#dce1e6!important;display:grid!important;place-items:center!important;font-weight:800!important;transform:scale(1)!important;transition:transform .2s ease, border-color .2s ease, background .2s ease!important;}
.v66-gender-pill.active{transform:scale(1.04)!important;background:linear-gradient(135deg,rgba(191,255,71,.20),rgba(255,157,40,.14))!important;border-color:rgba(191,255,71,.22)!important;color:#fff!important;box-shadow:0 0 0 4px rgba(191,255,71,.05)!important;}
.v66-nick-field{display:grid!important;gap:8px!important;}
.v66-nick-preview{display:flex!important;align-items:center!important;min-height:54px!important;padding:0 14px!important;border-radius:16px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.06)!important;color:#fff!important;font-size:16px!important;font-weight:800!important;}
.v66-login-main-btn{min-height:56px!important;border-radius:18px!important;font-size:17px!important;}
.v66-saved-list-wrap{display:grid!important;gap:10px!important;padding-top:4px!important;}
.v66-saved-head{display:flex!important;justify-content:space-between!important;align-items:end!important;gap:10px!important;}
.v66-saved-head b{font-size:16px!important;}
.v66-saved-head small{font-size:12px!important;color:#b9c0c8!important;text-align:right!important;}
.v66-saved-list{display:grid!important;gap:8px!important;max-height:220px!important;overflow:auto!important;padding-right:4px!important;}
.v66-saved-card{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:10px!important;border-radius:18px!important;background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.06)!important;text-align:left!important;color:#fff!important;}
.v66-saved-card:hover{border-color:rgba(191,255,71,.22)!important;background:linear-gradient(180deg,rgba(191,255,71,.08),rgba(255,255,255,.03))!important;}
.v66-saved-avatar{display:grid!important;place-items:center!important;width:58px!important;height:58px!important;border-radius:18px!important;background:rgba(0,0,0,.22)!important;overflow:hidden!important;}
.v66-saved-avatar img{width:42px!important;height:42px!important;object-fit:contain!important;display:block!important;}
.v66-saved-meta b{display:block!important;font-size:15px!important;line-height:1.2!important;}
.v66-saved-meta small{display:block!important;margin-top:2px!important;font-size:12px!important;color:#c8ced5!important;}
.v66-empty-saved{padding:14px!important;border-radius:18px!important;background:rgba(255,255,255,.025)!important;border:1px dashed rgba(255,255,255,.08)!important;color:#c5cbd3!important;font-size:13px!important;}
@media(max-width:980px){
  .v66-auth-wrap{grid-template-columns:1fr!important;min-height:auto!important;}
  .v66-auth-hero{padding:24px!important;border-right:none!important;border-bottom:1px solid rgba(191,255,71,.08)!important;}
  .v66-auth-preview{grid-template-columns:120px 1fr!important;}
  .v66-class-orb,.v66-class-stage-ring{width:120px!important;height:120px!important;}
  .v66-class-orb img,.v66-class-stage-ring img{width:88px!important;height:88px!important;}
}
@media(max-width:680px){
  .v66-auth-screen{padding:12px!important;}
  .v66-login-card{border-radius:22px!important;}
  .v66-auth-form{padding:18px!important;}
  .v66-auth-hero h1{font-size:32px!important;}
  .v66-auth-preview{grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important;}
  .v66-class-picker{grid-template-columns:42px minmax(0,1fr) 42px!important;}
  .v66-arrow{width:42px!important;height:42px!important;border-radius:14px!important;font-size:22px!important;}
  .v66-gender-row,.v66-auth-tabs{grid-template-columns:1fr!important;}
}

/* ===== v67 visual re-theme: gray/white/black + orange + lime ===== */
:root{
  --aldos-bg:#0c0d0f;
  --aldos-panel:#15171a;
  --aldos-panel-2:#1b1e22;
  --aldos-line:rgba(210,220,230,.10);
  --aldos-soft:rgba(255,255,255,.045);
  --aldos-text:#f2f5f7;
  --aldos-muted:#b9c0c7;
  --aldos-lime:#b8ff4f;
  --aldos-lime-2:#d7ff86;
  --aldos-orange:#ff9e32;
  --aldos-orange-2:#ffbf66;
}
body,.app-shell,.screen,.battle-screen,.side,.modal-card,.topbar,.bottom-nav{background-color:var(--aldos-bg)!important;color:var(--aldos-text)!important;}
.topbar.v38-topbar,.topbar.v37-topbar,.topbar.v36-topbar,
.side,.v38-side,.v37-side,.v36-side,
.bottom-nav,.v38-bottom-nav,.v37-bottom-nav,.v36-bottom-nav,
.screen.v38-screen,.screen.v37-screen,.screen.v36-screen{
  background:linear-gradient(180deg,#111316,#0b0c0f)!important;
}
.topbar,.side,.bottom-nav,.location-hero,.loot-pile,.active-battles,.battle-screen section,.v62-monster-card,.v62-party-card,.v62-battle-log,.v62-battle-head,.battle-end-card,.character-card,.inventory-card,.chest-layout .list,.friends-layout .panel,.v68-select-card,.v68-char-card,.v68-create-box,.v39-quick-profile,.v65-side-profile,.modal-card{
  border:1px solid rgba(184,255,79,.13)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.02)!important;
}
.location-hero,.loot-pile,.active-battles,.battle-screen section,.v62-monster-card,.v62-party-card,.v62-battle-log,.v62-battle-head,.character-card,.inventory-card,.v68-char-card,.v68-create-box,.modal-card{
  background:linear-gradient(180deg,rgba(26,29,34,.96),rgba(14,16,18,.98))!important;
}
.side-head,.topbar{border-color:rgba(184,255,79,.10)!important;}
.top-title h1,.screen h1,.screen h2,.screen h3,.modal-card h2,.v68-char-meta h3{color:#fff!important;}
.top-title p,.muted,small,.screen p,.screen .subtitle,.modal-card p,.v68-char-meta p{color:var(--aldos-muted)!important;}
.primary,button.primary,.location-btn,.v64-card-attack.active,.v66-auth-tabs button.active,.v66-gender-pill.active,.v68-char-card .primary,.v38-side-nav button.active{
  background:linear-gradient(135deg,rgba(184,255,79,.28),rgba(255,158,50,.22))!important;
  border-color:rgba(184,255,79,.26)!important;
  color:#fff!important;
  box-shadow:0 0 0 1px rgba(184,255,79,.20) inset,0 12px 24px rgba(0,0,0,.28)!important;
}
button, .ghost, .side-head button, .hamburger, .topbar .ghost, .v62-monster-info, .v64-card-attack, .v66-arrow{
  background:linear-gradient(180deg,#25282d,#1a1d21)!important;
  color:#eef2f4!important;
  border:1px solid rgba(255,255,255,.08)!important;
}
button:hover,.ghost:hover,.v62-monster-info:hover,.v64-card-attack:hover,.v66-arrow:hover{border-color:rgba(184,255,79,.30)!important;}
button.danger,.danger{background:linear-gradient(180deg,#53322b,#3e241f)!important;border-color:rgba(255,158,50,.22)!important;}
.bar{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.05)!important;}
.bar i{background:linear-gradient(90deg,var(--aldos-lime),var(--aldos-orange))!important;}
.bar.hp i{background:linear-gradient(90deg,#ff8a6f,var(--aldos-orange))!important;}
.bar.mp i{background:linear-gradient(90deg,#ebeff5,var(--aldos-lime))!important;}
.net-pill{background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.08)!important;}
.net-pill.lan,.net-pill.online{color:var(--aldos-lime-2)!important;border-color:rgba(184,255,79,.28)!important;}
.bottom-nav button,.v38-side-nav button{min-height:42px!important;border-radius:14px!important;font-size:13px!important;}
.v38-side-nav{display:grid!important;gap:8px!important;}
.v39-quick-title,.v38-quick-title{gap:10px!important;}
.v65-side-avatar,.v39-quick-title span,.v38-quick-title span{width:52px!important;height:52px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:linear-gradient(180deg,#1d2024,#131519)!important;border:1px solid rgba(184,255,79,.16)!important;overflow:hidden!important;}
.v65-side-avatar img{width:38px!important;height:38px!important;object-fit:contain!important;}
.v39-quick-grid span,.v38-quick-grid span{background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:14px!important;padding:10px 8px!important;}

/* battle refinements */
.battle-screen{background:radial-gradient(circle at top center,rgba(184,255,79,.06),transparent 30%),radial-gradient(circle at bottom right,rgba(255,158,50,.06),transparent 24%),#0b0d10!important;}
.v62-battle-head,.v62-battle-log,.v62-monster-grid,.v62-party-grid,.v62-side-utility,.v62-battle-turn{border-radius:22px!important;}
.v56-monster-avatar{width:84px!important;height:84px!important;border-radius:20px!important;background:linear-gradient(180deg,#1c1f23,#121417)!important;border:1px solid rgba(184,255,79,.14)!important;display:grid!important;place-items:center!important;overflow:hidden!important;flex:0 0 84px!important;}
.v56-monster-avatar img,.battle-monster-art,.monster-asset-image{width:76px!important;height:76px!important;object-fit:contain!important;display:block!important;}
.v56-monster-info{min-width:0!important;}
.v56-monster-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;}
.v56-monster-head h2{font-size:20px!important;line-height:1.1!important;white-space:normal!important;overflow:visible!important;text-overflow:unset!important;}
.v62-monster-card,.v56-monster-card,.v58-monster-card{padding:14px!important;gap:14px!important;border-radius:20px!important;}
.v62-monster-card.selected-target{box-shadow:0 0 0 2px rgba(184,255,79,.26),0 16px 34px rgba(0,0,0,.32)!important;border-color:rgba(184,255,79,.30)!important;}
.v62-target-corner,.v62-threat{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.06)!important;color:#f2f5f7!important;border-radius:999px!important;padding:5px 10px!important;}
.v62-target-corner{color:var(--aldos-lime-2)!important;border-color:rgba(184,255,79,.22)!important;background:rgba(184,255,79,.10)!important;}
.v64-monster-tools{display:flex!important;flex-direction:column!important;gap:10px!important;justify-content:center!important;}
.v62-monster-info,.v64-card-attack{width:44px!important;height:44px!important;border-radius:14px!important;font-size:18px!important;}
.v64-card-attack.active{box-shadow:0 0 0 3px rgba(184,255,79,.09),0 0 18px rgba(184,255,79,.20)!important;transform:translateY(-1px)!important;}
.v64-card-attack:disabled{opacity:.5!important;box-shadow:none!important;}
.v56-monster-hp-row span,.v62-battle-head .turn-label,.v62-battle-head .turn-meta,.v62-battle-hint,.v62-party-card small,.v62-log-entry p{font-size:12px!important;}
.v56-status-chip{font-size:11px!important;padding:4px 8px!important;border-radius:999px!important;background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.06)!important;color:#edf1f4!important;}
.v56-status-chip.target,.v56-status-chip.pack{border-color:rgba(184,255,79,.22)!important;background:rgba(184,255,79,.10)!important;color:#dfff9e!important;}
.v56-status-chip.aggro{border-color:rgba(255,158,50,.24)!important;background:rgba(255,158,50,.12)!important;color:#ffd69c!important;}
.v63-edge-tab{width:42px!important;min-height:84px!important;border-radius:0 14px 14px 0!important;background:linear-gradient(180deg,#24282d,#171a1f)!important;border:1px solid rgba(184,255,79,.14)!important;color:#eaf0f4!important;}
.v63-edge-tab.right{border-radius:14px 0 0 14px!important;}
.v63-edge-tab span{font-size:11px!important;}
.v62-drawer,.v58-skill-drawer,.v58-help-drawer{background:linear-gradient(180deg,#171a1f,#111316)!important;border-color:rgba(184,255,79,.16)!important;}
.v62-drawer-head{border-bottom:1px solid rgba(184,255,79,.10)!important;}
.v59-skill-slot,.v58-skill-slot,.v59-potion-card,.v62-help-row{background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:16px!important;}
.v62-party-card{padding:14px!important;border-radius:20px!important;}
.v62-party-avatar{width:58px!important;height:58px!important;border-radius:16px!important;background:linear-gradient(180deg,#202329,#16191d)!important;overflow:hidden!important;}
.v62-party-avatar img{width:44px!important;height:44px!important;object-fit:contain!important;}
.v62-log-entry{background:rgba(255,255,255,.025)!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:14px!important;}
.v62-battle-turn .bar i{background:linear-gradient(90deg,var(--aldos-orange),var(--aldos-lime))!important;}

/* auth / character creation / account hub */
.v67-auth-screen{background:radial-gradient(circle at top left,rgba(184,255,79,.08),transparent 22%),radial-gradient(circle at bottom right,rgba(255,158,50,.08),transparent 18%),#090b0d!important;}
.v67-login-card,.v68-select-card{border:1px solid rgba(184,255,79,.16)!important;}
.v67-auth-hero,.v67-auth-form,.v68-select-card{background:linear-gradient(180deg,rgba(20,22,26,.98),rgba(11,13,16,.99))!important;}
.v67-auth-form .logo{color:#fff!important;}
.v67-char-field input,#account-name,#character-name,#login-password,#hub-character-name{box-shadow:none!important;}
.v67-gender-row .v66-gender-pill{min-height:58px!important;font-size:15px!important;}
.v67-nick-preview{font-size:17px!important;}
.v68-select-head{display:flex!important;justify-content:space-between!important;gap:16px!important;align-items:flex-start!important;padding:24px 24px 10px!important;}
.v68-character-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:16px!important;padding:0 24px 22px!important;}
.v68-char-card{display:grid!important;gap:12px!important;padding:16px!important;border-radius:22px!important;}
.v68-char-card.current{border-color:rgba(184,255,79,.28)!important;box-shadow:0 0 0 2px rgba(184,255,79,.10),0 16px 34px rgba(0,0,0,.30)!important;}
.v68-char-visual{display:grid!important;place-items:center!important;height:146px!important;border-radius:20px!important;background:radial-gradient(circle at 30% 30%,rgba(184,255,79,.12),rgba(255,158,50,.08) 55%,rgba(0,0,0,.24) 80%)!important;border:1px solid rgba(184,255,79,.14)!important;overflow:hidden!important;}
.v68-char-visual img{width:110px!important;height:110px!important;object-fit:contain!important;}
.v68-char-bars{display:grid!important;gap:8px!important;}
.v68-char-bars > div{display:grid!important;gap:4px!important;}
.v68-char-bars span{font-size:11px!important;color:var(--aldos-muted)!important;text-transform:uppercase!important;letter-spacing:.08em!important;}
.v68-create-box{margin:0 24px 24px!important;padding:18px!important;border-radius:24px!important;}
.v68-create-grid{display:grid!important;gap:14px!important;align-items:start!important;}
.v68-create-box.locked{opacity:.8!important;}

/* inventory / character compactness */
.equipment-grid .slot,.equip-slot,.equipment-slot,.v60-equip-slot,.v61-equip-slot{background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.02))!important;border:1px solid rgba(255,255,255,.06)!important;}
.item-card,.inventory-item,.loot-card,.chest-item{background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.02))!important;border:1px solid rgba(255,255,255,.06)!important;}
.item-card .meta,.inventory-card .meta,.character-stats .stat{font-size:13px!important;}
@media (max-width: 860px){
  .v68-select-head{display:grid!important;padding:18px!important;}
  .v68-character-grid{padding:0 18px 18px!important;grid-template-columns:1fr!important;}
  .v68-create-box{margin:0 18px 18px!important;}
  .v56-monster-avatar{width:72px!important;height:72px!important;flex-basis:72px!important;}
  .v56-monster-avatar img,.battle-monster-art,.monster-asset-image{width:64px!important;height:64px!important;}
  .v56-monster-head h2{font-size:18px!important;}
}

/* ===== v72 lime monochrome refinement ===== */
:root{
  --aldos-bg:#06080a;
  --aldos-surface:#0d1116;
  --aldos-surface-2:#10161c;
  --aldos-surface-3:#151c23;
  --aldos-line:rgba(194,255,102,.14);
  --aldos-line-soft:rgba(255,255,255,.07);
  --aldos-text:#eef4f1;
  --aldos-muted:#97a39e;
  --aldos-lime:#b9f12f;
  --aldos-lime-2:#d9ff7c;
  --aldos-accent:#b9f12f;
  --aldos-shadow:0 18px 40px rgba(0,0,0,.38);
}
body,.app-shell,.screen,.battle-screen,.side,.modal-card,.topbar,.bottom-nav{background:#06080a!important;color:var(--aldos-text)!important;}
button.primary,.primary,.v69-main-btn,.v71-create-bottom,.v64-card-attack.active,.v71-side-nav button.active,.v70-gender-card.active,.v70-step-line .step.active{background:linear-gradient(180deg,#c9ff4d,#a6dd22)!important;color:#111!important;border-color:rgba(210,255,136,.55)!important;box-shadow:0 10px 28px rgba(185,241,47,.18)!important;}
button,.ghost,.topbar .ghost,.side-head button,.v70-round-arrow,.v62-monster-info,.v64-card-attack,.v71-char-row .ghost{background:linear-gradient(180deg,#161c22,#11161b)!important;color:#eef4f1!important;border:1px solid rgba(255,255,255,.08)!important;}
.danger,button.danger{background:linear-gradient(180deg,#23292f,#181c22)!important;color:#eef4f1!important;border-color:rgba(255,255,255,.09)!important;}
button:hover,.ghost:hover{border-color:rgba(185,241,47,.34)!important;}
.topbar,.side,.bottom-nav,.screen section,.location-hero,.loot-pile,.active-battles,.character-card,.inventory-card,.friends-layout .panel,.modal-card,.v68-select-card,.v70-creator-card,.v71-character-sidebar,.v71-character-modal,.v62-battle-head,.v62-monster-card,.v62-party-card,.v62-battle-log{background:linear-gradient(180deg,rgba(16,22,28,.98),rgba(9,12,16,.99))!important;border:1px solid rgba(185,241,47,.14)!important;box-shadow:var(--aldos-shadow)!important;}
.side-head,.topbar{border-bottom:1px solid rgba(255,255,255,.05)!important;}
.bar{background:rgba(255,255,255,.065)!important;border:1px solid rgba(255,255,255,.06)!important;}
.bar i{background:linear-gradient(90deg,#9ad514,#dfff83)!important;}
.bar.hp i{background:linear-gradient(90deg,#85db2a,#dfff83)!important;}
.bar.mp i{background:linear-gradient(90deg,#e8f7db,#b9f12f)!important;}

/* auth screens */
.v69-auth-shell{min-height:100vh!important;display:grid!important;place-items:center!important;padding:28px 18px!important;background:radial-gradient(circle at 18% 18%,rgba(185,241,47,.12),transparent 22%),radial-gradient(circle at 80% 82%,rgba(185,241,47,.10),transparent 18%),#050709!important;position:relative!important;overflow:hidden!important;}
.v69-auth-particles{position:absolute!important;inset:0!important;pointer-events:none!important;}
.v69-auth-particles i{position:absolute!important;width:6px!important;height:6px!important;border-radius:50%!important;background:rgba(185,241,47,.55)!important;box-shadow:0 0 12px rgba(185,241,47,.3)!important;}
.v69-auth-particles i:nth-child(1){top:18%;left:16%;}.v69-auth-particles i:nth-child(2){top:28%;right:18%;width:4px!important;height:4px!important;}.v69-auth-particles i:nth-child(3){bottom:17%;left:11%;width:3px!important;height:3px!important;}.v69-auth-particles i:nth-child(4){bottom:21%;right:14%;width:4px!important;height:4px!important;}
.v69-auth-card,.v70-creator-card{position:relative!important;z-index:2!important;width:min(100%,440px)!important;padding:24px!important;border-radius:28px!important;}
.v69-brand-row{display:flex!important;align-items:center!important;gap:16px!important;margin-bottom:18px!important;}
.v69-brand-mark{width:56px!important;height:56px!important;border-radius:14px!important;background:linear-gradient(180deg,#ccff4f,#abd922)!important;color:#121518!important;font-weight:900!important;display:grid!important;place-items:center!important;font-size:30px!important;box-shadow:0 10px 22px rgba(185,241,47,.18)!important;}
.v69-brand-row b{display:block!important;font-size:20px!important;letter-spacing:.02em!important;}
.v69-brand-row small{display:block!important;color:var(--aldos-muted)!important;margin-top:2px!important;}
.v69-auth-card h1,.v70-creator-card h1{font-size:28px!important;line-height:1.08!important;margin:6px 0 10px!important;color:#f7fbf8!important;}
.v69-auth-card h1 span,.v70-creator-card h1 span,.v69-inline-link{color:var(--aldos-lime)!important;}
.v69-auth-card p,.v70-creator-card p{color:#a9b4af!important;margin:0 0 16px!important;font-size:15px!important;line-height:1.45!important;}
.v69-field{display:grid!important;gap:8px!important;margin-bottom:14px!important;}
.v69-field span{font-size:12px!important;font-weight:800!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:#aeb8b3!important;}
.v69-field input{width:100%!important;height:56px!important;border-radius:16px!important;padding:0 16px!important;background:#090d11!important;color:#eef4f1!important;border:1px solid rgba(255,255,255,.08)!important;font-size:16px!important;}
.v69-field input:focus{outline:none!important;border-color:rgba(185,241,47,.42)!important;box-shadow:0 0 0 3px rgba(185,241,47,.08)!important;}
.v69-main-btn{width:100%!important;height:56px!important;border-radius:16px!important;font-size:18px!important;font-weight:900!important;margin-top:8px!important;}
.v69-auth-footer{margin-top:16px!important;text-align:center!important;color:var(--aldos-muted)!important;font-size:14px!important;}
.v69-inline-link{background:none!important;border:none!important;padding:0!important;font-weight:800!important;cursor:pointer!important;}
.v69-auth-info{min-height:22px!important;margin-top:10px!important;}
.v69-saved-accounts{margin-top:18px!important;padding-top:16px!important;border-top:1px solid rgba(255,255,255,.05)!important;display:grid!important;gap:10px!important;}
.v69-saved-accounts > b{font-size:13px!important;color:#eaf2ed!important;}
.v69-saved-list{display:grid!important;gap:8px!important;}
.v69-saved-item{display:flex!important;gap:12px!important;align-items:center!important;text-align:left!important;padding:12px 14px!important;border-radius:16px!important;}
.v69-saved-item-mark{width:34px!important;height:34px!important;border-radius:10px!important;display:grid!important;place-items:center!important;background:rgba(185,241,47,.12)!important;color:var(--aldos-lime)!important;}
.v69-saved-item b,.v69-saved-item small{display:block!important;}
.v69-saved-item small{color:var(--aldos-muted)!important;}

/* character wizard */
.v70-creator-card{width:min(100%,760px)!important;padding:22px 22px 26px!important;}
.v70-creator-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;margin-bottom:14px!important;}
.v70-step-line{display:flex!important;align-items:center!important;gap:10px!important;margin:8px 0 14px!important;}
.v70-step-line .step{width:36px!important;height:36px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#141a20!important;color:#9fa9a4!important;border:1px solid rgba(255,255,255,.08)!important;font-weight:800!important;}
.v70-step-line i{flex:1!important;height:2px!important;background:rgba(255,255,255,.08)!important;border-radius:999px!important;}
.v70-step-kicker{font-size:14px!important;font-weight:800!important;color:#d9e4dd!important;margin-bottom:14px!important;}
.v70-step-stage{min-height:340px!important;display:grid!important;align-items:center!important;}
.v70-class-picker{display:grid!important;grid-template-columns:72px 1fr 72px!important;align-items:center!important;gap:14px!important;}
.v70-round-arrow{width:64px!important;height:64px!important;border-radius:50%!important;font-size:32px!important;justify-self:center!important;}
.v70-class-core{text-align:center!important;display:grid!important;justify-items:center!important;gap:8px!important;}
.v70-class-circle,.v70-gender-circle{width:210px!important;height:210px!important;border-radius:50%!important;background:radial-gradient(circle at 50% 38%,rgba(185,241,47,.20),rgba(10,14,18,.96) 70%)!important;border:1px solid rgba(185,241,47,.22)!important;display:grid!important;place-items:center!important;overflow:hidden!important;box-shadow:0 18px 32px rgba(0,0,0,.26)!important;}
.v70-class-circle.large{width:138px!important;height:138px!important;}
.v70-class-circle img,.v70-gender-circle img,.v71-char-art img,.v71-side-avatar img{width:78%!important;height:78%!important;object-fit:contain!important;image-rendering:auto!important;}
.v70-class-core h2{font-size:30px!important;margin:4px 0 0!important;}
.v70-class-core small{font-size:13px!important;font-weight:800!important;color:var(--aldos-lime)!important;letter-spacing:.06em!important;text-transform:uppercase!important;}
.v70-class-core p{max-width:440px!important;margin:0 auto!important;color:#a6b0ab!important;}
.v70-gender-grid{display:grid!important;grid-template-columns:repeat(2,minmax(220px,1fr))!important;gap:18px!important;}
.v70-gender-card{padding:18px!important;border-radius:24px!important;background:linear-gradient(180deg,#11171c,#0d1015)!important;border:1px solid rgba(255,255,255,.08)!important;display:grid!important;gap:10px!important;justify-items:center!important;text-align:center!important;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease!important;}
.v70-gender-card.active{transform:translateY(-2px) scale(1.01)!important;}
.v70-name-wrap{display:grid!important;gap:16px!important;max-width:470px!important;margin:0 auto!important;}
.v70-name-preview{display:flex!important;align-items:center!important;gap:16px!important;padding:16px!important;border-radius:24px!important;background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.06)!important;}
.v70-name-preview b{font-size:24px!important;display:block!important;margin-top:4px!important;}
.v70-name-preview small{color:var(--aldos-lime)!important;font-weight:800!important;}
.v70-name-note{font-size:14px!important;color:var(--aldos-muted)!important;margin:0!important;}
.v70-step-actions{display:flex!important;justify-content:space-between!important;gap:12px!important;margin-top:12px!important;}
.v70-step-actions button{min-width:130px!important;height:50px!important;border-radius:15px!important;}

/* character select hub */
.v71-character-shell{min-height:100vh!important;display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;gap:22px!important;padding:18px!important;background:#06080a!important;position:relative!important;}
.v71-character-backdrop{position:absolute!important;inset:0!important;background:radial-gradient(circle at left center,rgba(185,241,47,.12),transparent 30%),rgba(0,0,0,.42)!important;backdrop-filter:blur(5px)!important;}
.v71-character-sidebar,.v71-character-modal{position:relative!important;z-index:2!important;}
.v71-character-sidebar{padding:14px!important;border-radius:20px!important;display:grid!important;align-content:start!important;gap:12px!important;}
.v71-side-cap{color:var(--aldos-lime)!important;font-weight:800!important;font-size:13px!important;}
.v71-side-account{display:flex!important;gap:12px!important;align-items:center!important;padding:12px!important;border-radius:18px!important;background:rgba(0,0,0,.16)!important;border:1px solid rgba(255,255,255,.05)!important;}
.v71-side-avatar{width:74px!important;height:74px!important;border-radius:16px!important;background:radial-gradient(circle at 40% 30%,rgba(185,241,47,.22),rgba(16,21,26,.96) 70%)!important;border:1px solid rgba(185,241,47,.18)!important;display:grid!important;place-items:center!important;overflow:hidden!important;flex:0 0 74px!important;}
.v71-side-meta{flex:1!important;min-width:0!important;}
.v71-side-meta b{display:block!important;font-size:20px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v71-side-meta small{display:block!important;color:var(--aldos-muted)!important;margin-bottom:8px!important;}
.v71-side-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
.v71-side-grid span{display:grid!important;gap:3px!important;padding:12px!important;border-radius:16px!important;background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.05)!important;}
.v71-side-grid small{color:var(--aldos-muted)!important;font-size:11px!important;text-transform:uppercase!important;letter-spacing:.05em!important;}
.v71-side-grid b{font-size:16px!important;line-height:1.15!important;}
.v71-side-nav,.v71-side-actions{display:grid!important;gap:8px!important;}
.v71-side-nav button,.v71-side-actions button{height:46px!important;border-radius:14px!important;font-size:15px!important;}
.v71-character-modal{display:grid!important;align-content:start!important;min-height:640px!important;padding:0 0 18px!important;border-radius:22px!important;overflow:hidden!important;max-width:760px!important;justify-self:center!important;width:100%!important;}
.v71-sheet-handle{width:64px!important;height:5px!important;border-radius:999px!important;background:rgba(255,255,255,.24)!important;justify-self:center!important;margin:10px 0 4px!important;}
.v71-sheet-head{display:flex!important;justify-content:space-between!important;gap:16px!important;align-items:flex-start!important;padding:14px 18px 10px!important;border-bottom:1px solid rgba(255,255,255,.05)!important;}
.v71-sheet-head h2{margin:0!important;font-size:28px!important;}
.v71-sheet-head p{margin:6px 0 0!important;color:var(--aldos-muted)!important;}
.v71-char-list{display:grid!important;gap:12px!important;padding:16px 18px!important;max-height:560px!important;overflow:auto!important;}
.v71-char-row{display:grid!important;grid-template-columns:86px 1fr auto!important;gap:14px!important;align-items:center!important;padding:14px!important;border-radius:18px!important;background:rgba(255,255,255,.025)!important;border:1px solid rgba(255,255,255,.06)!important;}
.v71-char-row.current{border-color:rgba(185,241,47,.28)!important;box-shadow:0 0 0 1px rgba(185,241,47,.12)!important;}
.v71-char-art{width:86px!important;height:86px!important;border-radius:18px!important;background:radial-gradient(circle at 50% 38%,rgba(185,241,47,.22),rgba(11,14,18,.96) 70%)!important;border:1px solid rgba(185,241,47,.18)!important;display:grid!important;place-items:center!important;overflow:hidden!important;}
.v71-char-content{min-width:0!important;display:grid!important;gap:8px!important;}
.v71-char-content b{font-size:24px!important;line-height:1.1!important;}
.v71-char-tags{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
.v71-char-tags span{padding:7px 10px!important;border-radius:999px!important;background:#1a2026!important;border:1px solid rgba(255,255,255,.06)!important;color:#e5ebe8!important;font-size:12px!important;font-weight:800!important;}
.v71-char-tags .online{background:rgba(205,255,113,.12)!important;color:#dfff98!important;border-color:rgba(185,241,47,.2)!important;}
.v71-char-row .ghost{height:44px!important;border-radius:14px!important;padding:0 16px!important;min-width:108px!important;}
.v71-char-row .current-btn{background:rgba(185,241,47,.14)!important;color:#dfff98!important;border-color:rgba(185,241,47,.22)!important;}
.v71-char-bottom{padding:0 18px!important;}
.v71-create-bottom{width:100%!important;height:52px!important;border-radius:16px!important;}

/* battle tuning: keep layout, improve asset visibility */
.battle-screen{background:linear-gradient(180deg,#06080a,#090d11)!important;}
.v62-battle-head,.v62-monster-card,.v62-party-card,.v62-battle-log,.v62-drawer{background:linear-gradient(180deg,rgba(12,18,24,.98),rgba(8,11,15,.99))!important;border-color:rgba(185,241,47,.12)!important;}
.v62-monster-card,.v56-monster-card,.v58-monster-card{grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:16px!important;padding:16px!important;}
.v56-monster-avatar{width:110px!important;height:110px!important;flex:0 0 110px!important;border-radius:22px!important;background:radial-gradient(circle at 50% 36%,rgba(185,241,47,.18),rgba(10,13,17,.98) 70%)!important;border:1px solid rgba(185,241,47,.16)!important;}
.v56-monster-avatar img,.battle-monster-art,.monster-asset-image{width:96px!important;height:96px!important;object-fit:contain!important;}
.v56-monster-head h2{font-size:24px!important;line-height:1.08!important;}
.v56-monster-stats,.v62-monster-meta{font-size:14px!important;}
.v64-monster-tools{gap:12px!important;}
.v62-monster-info,.v64-card-attack{width:52px!important;height:52px!important;border-radius:16px!important;font-size:20px!important;}
.v64-card-attack.active{color:#111!important;}
.v63-edge-tab{width:44px!important;min-height:112px!important;background:linear-gradient(180deg,#171d23,#0f1419)!important;border-color:rgba(185,241,47,.14)!important;}
.v63-edge-tab span{color:#d7e0db!important;}
.v62-party-avatar{width:70px!important;height:70px!important;}
.v62-party-avatar img{width:58px!important;height:58px!important;object-fit:contain!important;}
.v62-party-card{padding:16px!important;}
@media (max-width: 1024px){
  .v71-character-shell{grid-template-columns:1fr!important;padding:12px!important;}
  .v71-character-modal{order:2!important;max-width:none!important;}
  .v71-character-sidebar{order:1!important;}
}
@media (max-width: 720px){
  .v70-class-picker{grid-template-columns:52px 1fr 52px!important;}
  .v70-class-circle,.v70-gender-circle{width:170px!important;height:170px!important;}
  .v70-gender-grid{grid-template-columns:1fr!important;}
  .v71-char-row{grid-template-columns:70px 1fr!important;}
  .v71-char-row .ghost{grid-column:1 / -1!important;width:100%!important;}
  .v56-monster-avatar{width:84px!important;height:84px!important;flex-basis:84px!important;}
  .v56-monster-avatar img,.battle-monster-art,.monster-asset-image{width:72px!important;height:72px!important;}
  .v56-monster-head h2{font-size:18px!important;}
}
.class-asset-image,.item-asset-image,.monster-asset-image{object-fit:contain!important;image-rendering:auto!important;filter:drop-shadow(0 10px 20px rgba(0,0,0,.28));}
.asset-icon,.item-icon,.monster-icon{background:radial-gradient(circle at 50% 30%,rgba(185,241,47,.12),rgba(255,255,255,.02) 60%,transparent 70%)!important;}

/* ===== v73 compact responsive polish ===== */
html,body{overflow-x:hidden}
body{background:
  radial-gradient(circle at 12% 12%,rgba(185,241,47,.065),transparent 28%),
  radial-gradient(circle at 88% 82%,rgba(118,167,36,.05),transparent 25%),
  linear-gradient(180deg,#070a0c,#050709 55%,#080b0d)!important;
  background-attachment:fixed!important}

/* Login / registration: visible scenic card background without hurting readability */
.v69-auth-shell{position:relative;isolation:isolate;overflow:hidden!important;background:
  radial-gradient(circle at 18% 18%,rgba(185,241,47,.16),transparent 24%),
  radial-gradient(circle at 84% 78%,rgba(111,158,35,.12),transparent 22%),
  linear-gradient(135deg,#050807,#0b110e 46%,#07090b)!important}
.v69-auth-shell::before{content:"";position:absolute;inset:-12%;z-index:-2;opacity:.5;background:
  linear-gradient(115deg,transparent 0 46%,rgba(185,241,47,.055) 46% 47%,transparent 47% 100%),
  repeating-linear-gradient(160deg,transparent 0 38px,rgba(255,255,255,.018) 39px 40px);transform:rotate(-2deg)}
.v69-auth-shell::after{content:"";position:absolute;left:-8vw;right:-8vw;bottom:-20vh;height:48vh;z-index:-1;background:
  linear-gradient(150deg,transparent 0 12%,rgba(11,20,13,.95) 12% 33%,transparent 33%),
  linear-gradient(25deg,transparent 0 18%,rgba(15,27,17,.9) 18% 44%,transparent 44%),
  linear-gradient(155deg,transparent 0 35%,rgba(9,16,11,.96) 35% 64%,transparent 64%);filter:drop-shadow(0 -18px 40px rgba(0,0,0,.55))}
.v69-auth-card{position:relative;overflow:hidden!important;background:linear-gradient(180deg,rgba(18,24,22,.94),rgba(8,12,11,.97))!important;backdrop-filter:blur(18px);box-shadow:0 28px 80px rgba(0,0,0,.55),inset 0 1px rgba(255,255,255,.045)!important}
.v69-auth-card::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 100% 0,rgba(185,241,47,.11),transparent 34%)}

/* Location section switcher: keeps existing monster layout, only packages sections */
.v73-location-sections{display:grid;gap:8px;margin-top:10px}
.v73-location-section{border:1px solid rgba(185,241,47,.13);border-radius:18px;background:linear-gradient(180deg,rgba(16,22,27,.98),rgba(9,13,16,.98));overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.2)}
.v73-location-section>summary{list-style:none;min-height:54px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;user-select:none}
.v73-location-section>summary::-webkit-details-marker{display:none}
.v73-location-section>summary span{display:flex;align-items:baseline;gap:9px;min-width:0}
.v73-location-section>summary b{font-size:15px;white-space:nowrap}
.v73-location-section>summary small{font-size:11px;color:var(--aldos-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v73-location-section>summary i{font-style:normal;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:rgba(185,241,47,.07);color:var(--aldos-lime);transition:transform .18s ease}
.v73-location-section[open]>summary i{transform:rotate(180deg)}
.v73-location-section[open]>summary{border-bottom:1px solid rgba(255,255,255,.055)}
.v73-section-body{padding:10px}
.v73-location-section .active-battles,.v73-location-section .loot-pile{margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
.v73-location-section .active-battles>h2,.v73-location-section .active-battles>p{display:none}

/* Location monsters: bigger art, compact balanced card, no shifted text/buttons */
.v73-location-section .v38-location-monster-grid{margin:0!important;gap:9px!important}
.v38-loc-monster{display:grid!important;grid-template-columns:76px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:96px!important;padding:10px 12px!important;border-radius:17px!important;overflow:hidden!important}
.v38-mob-icon{width:76px!important;height:76px!important;min-width:76px!important;border-radius:17px!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:radial-gradient(circle at 50% 30%,rgba(185,241,47,.11),rgba(255,255,255,.025) 70%)!important}
.v38-mob-icon img,.v38-mob-icon .monster-asset-image{width:88px!important;height:88px!important;max-width:none!important;object-fit:contain!important;transform:scale(1.15)!important;filter:drop-shadow(0 9px 10px rgba(0,0,0,.4))}
.v38-mob-main{min-width:0!important;display:grid!important;gap:7px!important}
.v38-mob-head{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
.v38-mob-head h3{margin:0!important;min-width:0!important;font-size:15px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v38-mob-flags{display:flex!important;gap:4px!important;flex-wrap:nowrap!important}
.v38-mob-flag{min-height:22px!important;padding:3px 7px!important;font-size:9px!important;border-radius:999px!important;box-shadow:none!important}
.v38-loc-monster .bar{height:7px!important;margin:0!important;max-width:340px}
.v38-mob-stats{display:flex!important;align-items:center!important;gap:12px!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important}
.v38-mob-actions{display:grid!important;grid-template-columns:38px 78px!important;gap:7px!important;align-items:center!important}
.v38-mob-actions button{height:38px!important;min-height:38px!important;padding:0 10px!important;border-radius:12px!important;font-size:12px!important;box-shadow:none!important}

/* Battle: compact card geometry, readable art and short health bars */
.v62-arena-panel{padding:12px!important}
.v57-monster-grid,.v56-monster-grid{gap:10px!important}
.v62-monster-card,.v56-monster-card,.v58-monster-card{display:grid!important;grid-template-columns:102px minmax(0,1fr) 50px!important;align-items:center!important;gap:12px!important;min-height:126px!important;padding:12px!important;overflow:hidden!important}
.v56-monster-avatar{width:102px!important;height:102px!important;flex-basis:102px!important;border-radius:22px!important;overflow:hidden!important}
.v56-monster-avatar img,.battle-monster-art,.monster-asset-image{width:116px!important;height:116px!important;max-width:none!important;object-fit:contain!important;transform:scale(1.08)!important;filter:drop-shadow(0 10px 12px rgba(0,0,0,.45))}
.v56-monster-info{min-width:0!important;display:grid!important;gap:7px!important}
.v56-monster-head{align-items:center!important;min-width:0!important}
.v56-monster-head h2{font-size:17px!important;line-height:1.12!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v62-threat{font-size:9px!important;white-space:nowrap!important;padding:4px 7px!important}
.v56-monster-status-line{min-height:24px!important;display:flex!important;gap:5px!important;align-items:center!important;overflow-x:auto!important;scrollbar-width:none}
.v56-monster-status-line::-webkit-scrollbar{display:none}
.v56-status-chip{flex:0 0 auto!important;font-size:9px!important;padding:3px 7px!important}
.v56-monster-hp-row{display:grid!important;grid-template-columns:auto minmax(90px,260px)!important;gap:9px!important;align-items:center!important;margin:0!important}
.v56-monster-hp-row .bar{height:8px!important;width:100%!important;margin:0!important}
.v64-monster-tools{width:44px!important;gap:7px!important}
.v62-monster-info,.v64-card-attack{width:42px!important;height:42px!important;min-height:42px!important;border-radius:13px!important}

/* Every battle status gets its own visual identity */
.v56-status-chip.target,.status-help-card.target .v34-status-pill{background:rgba(185,241,47,.14)!important;border-color:rgba(185,241,47,.38)!important;color:#dcff8b!important}
.v56-status-chip.pack,.status-help-card.pack .v34-status-pill{background:rgba(78,176,255,.13)!important;border-color:rgba(78,176,255,.38)!important;color:#a9dcff!important}
.v56-status-chip.aggro,.status-help-card.aggro .v34-status-pill{background:rgba(255,105,76,.14)!important;border-color:rgba(255,105,76,.4)!important;color:#ffb2a2!important}
.v56-status-chip.help,.status-help-card.help .v34-status-pill{background:rgba(184,123,255,.14)!important;border-color:rgba(184,123,255,.4)!important;color:#d9b8ff!important}
.v56-status-chip.taunt,.status-help-card.taunt .v34-status-pill{background:rgba(255,187,61,.14)!important;border-color:rgba(255,187,61,.42)!important;color:#ffd989!important}
.v56-status-chip.attack,.status-help-card.attack .v34-status-pill{background:rgba(255,132,54,.14)!important;border-color:rgba(255,132,54,.4)!important;color:#ffc08c!important}
.v56-status-chip.skill,.status-help-card.skill .v34-status-pill{background:rgba(64,222,203,.14)!important;border-color:rgba(64,222,203,.4)!important;color:#9ff5ea!important}
.v56-status-chip.skip,.status-help-card.skip .v34-status-pill{background:rgba(150,158,166,.14)!important;border-color:rgba(150,158,166,.35)!important;color:#d3d8dc!important}
.v56-status-chip.ready,.status-help-card.ready .v34-status-pill{background:rgba(72,216,123,.14)!important;border-color:rgba(72,216,123,.4)!important;color:#9af0b8!important}
.v56-status-chip.waiting,.status-help-card.waiting .v34-status-pill{background:rgba(255,218,82,.13)!important;border-color:rgba(255,218,82,.38)!important;color:#ffe98e!important}
.v56-status-chip.stun,.status-help-card.stun .v34-status-pill{background:rgba(255,82,151,.14)!important;border-color:rgba(255,82,151,.4)!important;color:#ffadd0!important}

/* Skills: compact tabs, touch-friendly horizontal switcher */
.abilities-tabs-panel{gap:10px!important}
.ability-tabs{position:sticky!important;top:76px!important;display:flex!important;gap:6px!important;padding:6px!important;border-radius:16px!important;overflow-x:auto!important;scroll-snap-type:x proximity;scrollbar-width:none;background:rgba(10,14,17,.94)!important;backdrop-filter:blur(14px)}
.ability-tabs::-webkit-scrollbar{display:none}
.ability-tabs button{flex:1 0 auto!important;min-width:150px!important;min-height:42px!important;padding:8px 11px!important;border-radius:12px!important;font-size:12px!important;box-shadow:none!important;scroll-snap-align:start}
.ability-tabs button.active{background:linear-gradient(180deg,#c9ff4d,#a6dd22)!important;color:#111!important}
.ability-tabs span{height:20px!important;min-width:20px!important;font-size:10px!important;color:inherit!important}
.ability-tab-page .panel{padding:12px!important;border-radius:18px!important}
.ability-tab-page .panel>h2{font-size:17px!important;margin:0 0 4px!important}
.ability-tab-page .panel>p{font-size:11px!important;margin:0 0 10px!important}
.v44-ability-card{grid-template-columns:48px minmax(0,1fr) auto!important;min-height:62px!important;padding:8px 10px!important;gap:10px!important;border-radius:15px!important;margin:7px 0!important}
.v42-ability-card .ability-icon{width:44px!important;height:44px!important;border-radius:13px!important;font-size:24px!important}
.v42-ability-card .skill-main h3{font-size:14px!important}
.v44-ability-card .skill-main small{font-size:10px!important;margin-top:2px!important}
.v42-ability-card .row-actions button{min-width:102px!important;min-height:36px!important;padding:7px 10px!important;font-size:11px!important;border-radius:11px!important}

@media(max-width:760px){
  .screen{padding:9px!important}
  .location-hero{padding:12px!important;border-radius:17px!important}
  .v73-location-section>summary{min-height:48px;padding:8px 10px}
  .v73-location-section>summary span{display:grid;gap:2px}
  .v73-location-section>summary b{font-size:14px}
  .v73-location-section>summary small{font-size:10px}
  .v73-section-body{padding:7px}
  .v38-location-monster-grid{grid-template-columns:1fr!important}
  .v38-loc-monster{grid-template-columns:68px minmax(0,1fr) 38px!important;min-height:88px!important;gap:9px!important;padding:9px!important}
  .v38-mob-icon{width:68px!important;height:68px!important;min-width:68px!important}
  .v38-mob-icon img,.v38-mob-icon .monster-asset-image{width:80px!important;height:80px!important}
  .v38-mob-actions{grid-template-columns:38px!important}
  .v38-mob-actions .primary{font-size:0!important;padding:0!important}
  .v38-mob-actions .primary::before{content:'⚔';font-size:17px}
  .v38-mob-head{align-items:flex-start!important}
  .v38-mob-head h3{font-size:13px!important}
  .v38-mob-flag{font-size:8px!important;padding:2px 5px!important}
  .v62-monster-card,.v56-monster-card,.v58-monster-card{grid-template-columns:82px minmax(0,1fr) 40px!important;min-height:108px!important;gap:8px!important;padding:9px!important}
  .v56-monster-avatar{width:82px!important;height:82px!important;flex-basis:82px!important}
  .v56-monster-avatar img,.battle-monster-art{width:94px!important;height:94px!important}
  .v56-monster-head h2{font-size:14px!important}
  .v62-threat{display:none!important}
  .v56-monster-hp-row{grid-template-columns:1fr!important;gap:4px!important}
  .v56-monster-hp-row>span{font-size:10px!important}
  .v64-monster-tools{width:38px!important}
  .v62-monster-info,.v64-card-attack{width:36px!important;height:36px!important;min-height:36px!important;border-radius:11px!important}
  .ability-tabs{top:66px!important;margin-inline:-1px}
  .ability-tabs button{min-width:132px!important;font-size:11px!important}
  .v44-ability-card{grid-template-columns:44px minmax(0,1fr) 40px!important;min-height:58px!important;padding:7px!important}
  .v42-ability-card .ability-icon{width:40px!important;height:40px!important;font-size:22px!important}
  .v42-ability-card .row-actions{grid-column:auto!important;display:block!important}
  .v42-ability-card .row-actions button{width:40px!important;min-width:40px!important;height:36px!important;padding:0!important;font-size:0!important}
  .v42-ability-card .row-actions button::before{content:'+';font-size:19px}
  .v42-ability-card.equipped .row-actions button::before{content:'−'}
  .v42-ability-card.locked .row-actions button::before{content:'🔒';font-size:13px}
  .v69-auth-card{width:min(440px,100%)!important;padding:18px!important;border-radius:22px!important}
}
@media(max-width:390px){
  .v38-loc-monster{grid-template-columns:60px minmax(0,1fr) 34px!important;gap:7px!important}
  .v38-mob-icon{width:60px!important;height:60px!important;min-width:60px!important}
  .v38-mob-icon img,.v38-mob-icon .monster-asset-image{width:72px!important;height:72px!important}
  .v38-mob-stats{font-size:9.5px!important;gap:7px!important}
  .v38-mob-actions{grid-template-columns:34px!important}.v38-mob-actions button{width:34px!important;height:34px!important;min-height:34px!important}
}

/* ===== v74 mobile layout repair ===== */
.v74-online-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.v74-online-card{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr);gap:9px;align-items:center;padding:8px;border-radius:14px;background:#111820;border:1px solid rgba(185,241,47,.14)}.v74-online-art{width:52px;height:58px;overflow:hidden;border-radius:12px;background:radial-gradient(circle at 50% 20%,rgba(185,241,47,.12),transparent 70%)}.v74-online-art img{width:100%!important;height:125%!important;max-width:none!important;object-fit:cover!important;object-position:50% 12%!important;border-radius:0!important;transform:none!important}.v74-online-card b,.v74-online-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v74-online-card b{font-size:12px}.v74-online-card small{font-size:9px;color:var(--aldos-muted)}.v74-online-card span{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:9px;color:#b9f12f}.v74-online-card span i{width:6px;height:6px;border-radius:50%;background:#b9f12f;box-shadow:0 0 8px #b9f12f}.v74-online-empty{margin:0 0 8px;color:var(--aldos-muted);font-size:11px}

/* character art: show a cropped half-body, never a tiny circular icon */
.v57-player-avatar,.v71-char-art,.profile-avatar,.character-avatar{overflow:hidden!important;border-radius:14px!important}.v57-player-avatar img,.v71-char-art img,.profile-avatar img,.character-avatar img,.class-inline-image{width:100%!important;height:135%!important;max-width:none!important;object-fit:cover!important;object-position:50% 10%!important;border-radius:0!important;transform:none!important}

@media(max-width:720px){
  .screen{padding-left:8px!important;padding-right:8px!important}.location-hero{padding:12px!important}.v37-location-actions,.location-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.location-btn{min-width:0!important;width:100%!important;min-height:48px!important;padding:8px 6px!important;font-size:12px!important;white-space:normal!important;line-height:1.15!important}
  .v73-location-section>summary{min-height:46px!important;padding:7px 10px!important}.v73-section-body{padding:7px!important}.v73-location-section>summary b{font-size:13px!important}.v73-location-section>summary small{font-size:9px!important}.v73-location-section>summary i{width:28px!important;height:28px!important}
  .v38-location-monster-grid{grid-template-columns:1fr!important}.v38-loc-monster{grid-template-columns:70px minmax(0,1fr) 42px!important;min-height:88px!important;padding:8px!important;gap:8px!important}.v38-mob-icon{width:70px!important;height:70px!important;min-width:70px!important}.v38-mob-icon img,.v38-mob-icon .monster-asset-image{width:92px!important;height:92px!important;transform:scale(1.2)!important}.v38-mob-main{gap:5px!important}.v38-mob-head h3{font-size:13px!important}.v38-mob-stats{gap:7px!important;font-size:9px!important}.v38-loc-monster .bar{max-width:185px!important;height:6px!important}.v38-mob-actions{display:flex!important;flex-direction:column!important;width:42px!important;grid-template-columns:none!important;gap:5px!important}.v38-mob-actions button{width:42px!important;height:34px!important;min-height:34px!important;padding:0!important;font-size:0!important}.v38-mob-actions button:first-child::after{content:'i';font-size:14px}.v38-mob-actions button:last-child::after{content:'⚔';font-size:16px}
  .v74-online-grid{grid-template-columns:1fr!important}.v74-online-card{grid-template-columns:50px minmax(0,1fr)!important}.v74-online-grid .v74-online-card:nth-child(n+4){display:none}
  .battle-screen.v63-battle{padding:7px!important;gap:7px!important;overflow:visible!important;min-height:calc(100dvh - 56px)!important}.v63-turn-strip{min-height:64px!important;padding:8px 10px!important}.v63-arena-panel,.v63-party-panel,.v63-battle-log{padding:8px!important;border-radius:16px!important}.v63-section-head{margin-bottom:6px!important}.v63-section-head h2{font-size:14px!important}
  .v57-monster-grid,.v56-monster-grid{grid-template-columns:1fr!important;gap:7px!important}.v62-monster-card,.v56-monster-card,.v58-monster-card{grid-template-columns:82px minmax(0,1fr) 38px!important;min-height:100px!important;padding:8px!important;gap:8px!important;border-radius:15px!important}.v56-monster-avatar{width:82px!important;height:82px!important;border-radius:16px!important}.v56-monster-avatar img,.battle-monster-art{width:108px!important;height:108px!important;transform:scale(1.2)!important}.v56-monster-head h2{font-size:15px!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}.v62-threat{font-size:7px!important;padding:3px 5px!important}.v56-monster-status-line{min-height:18px!important}.v56-status-chip{font-size:8px!important;padding:2px 5px!important}.v56-monster-hp-row{grid-template-columns:auto minmax(70px,150px)!important;font-size:9px!important}.v64-monster-tools{width:38px!important;display:flex!important;flex-direction:column!important;gap:6px!important}.v62-monster-info,.v64-card-attack{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important}
  .v57-party-grid,.v56-party-grid{grid-template-columns:1fr!important;grid-template-rows:none!important;gap:7px!important;height:auto!important}.v62-player-card,.v57-player-card,.v56-player-card{min-height:92px!important;padding:8px!important;border-radius:15px!important}.v57-player-head{display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important}.v57-player-avatar{width:54px!important;height:62px!important;font-size:0!important}.v57-player-name h3{font-size:13px!important}.v57-player-name small{font-size:9px!important}.v57-player-action{font-size:0!important;width:34px!important;height:30px!important;padding:0!important}.v57-player-action span{font-size:13px!important}.v57-player-effects{min-height:16px!important;margin:2px 0!important}.v57-player-bars{gap:4px!important}.v57-stat-row{grid-template-columns:58px minmax(0,1fr)!important;font-size:9px!important}.v57-stat-row .bar{height:6px!important}
  .v63-edge-tab{bottom:88px!important;width:42px!important;height:74px!important}.v63-edge-tab span{display:none!important}.v63-battle-log{min-height:68px!important}.v63-battle-log.collapsed .battle-log-scroll{display:none!important}
}
@media(max-width:390px){.v38-loc-monster{grid-template-columns:64px minmax(0,1fr) 38px!important}.v38-mob-icon{width:64px!important;height:64px!important;min-width:64px!important}.v38-mob-actions{width:38px!important}.v38-mob-actions button{width:38px!important}.v62-monster-card,.v56-monster-card,.v58-monster-card{grid-template-columns:74px minmax(0,1fr) 36px!important}.v56-monster-avatar{width:74px!important;height:78px!important}}


/* ===== v75 interface repair: character hub, location, inventory, profile ===== */
.v75-character-shell{display:grid!important;place-items:center!important;min-height:100dvh!important;padding:18px!important;overflow:auto!important}
.v75-character-shell .v71-character-backdrop{position:fixed!important;inset:0!important;background:radial-gradient(circle at 20% 20%,rgba(151,210,40,.13),transparent 38%),radial-gradient(circle at 80% 90%,rgba(255,143,25,.08),transparent 35%),#050908!important}
.v75-character-modal{position:relative!important;inset:auto!important;transform:none!important;width:min(680px,100%)!important;max-height:min(760px,calc(100dvh - 36px))!important;margin:auto!important;border:1px solid rgba(185,241,47,.25)!important;border-radius:24px!important;background:linear-gradient(180deg,rgba(18,25,31,.98),rgba(8,13,17,.98))!important;box-shadow:0 30px 90px rgba(0,0,0,.55),0 0 40px rgba(185,241,47,.05)!important;overflow:auto!important}
.v75-character-modal .v71-char-bottom{display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important}.v75-logout{min-width:130px!important}
.v71-char-row{grid-template-columns:78px minmax(0,1fr) auto!important;min-height:104px!important;padding:12px!important;gap:14px!important}.v71-char-art{width:78px!important;height:78px!important;border-radius:16px!important}.v71-char-art img{width:112%!important;height:140%!important;object-fit:cover!important;object-position:50% 8%!important}
/* Never let generic inline class art expand into the location page. */
.class-inline-image{width:30px!important;height:30px!important;max-width:30px!important;object-fit:cover!important;object-position:50% 15%!important;border-radius:8px!important;transform:none!important}
.location-hero{overflow:hidden!important}.v37-location-text,.v36-location-text{min-width:0!important}.v37-location-actions,.location-actions{align-items:stretch!important}.location-btn{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.v23-home-tools{margin-bottom:10px!important}.v23-chest-card{min-height:88px!important;padding:12px!important}.v23-chest-icon{width:52px!important;height:52px!important;font-size:26px!important}.v23-chest-body h2{font-size:17px!important;margin:0 0 3px!important}.v23-chest-body p{font-size:11px!important;margin:0!important}
.inventory-panel{max-width:1040px!important;margin-inline:auto!important}.inventory-head{align-items:center!important;gap:12px!important}.bag-weight{width:86px!important;height:72px!important;border-radius:22px!important}.inventory-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.item-card{position:relative!important;display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;min-height:176px!important;padding:14px!important;gap:14px!important;border-radius:18px!important;overflow:hidden!important;background:linear-gradient(145deg,#151c24,#0d1319)!important;border:1px solid rgba(255,255,255,.1)!important;box-shadow:0 10px 30px rgba(0,0,0,.18)!important}.v39-item-aura{position:absolute!important;inset:-35%!important;opacity:.22!important;pointer-events:none!important}.v39-item-icon-wrap{width:82px!important;height:104px!important;border-radius:16px!important;align-self:center!important;overflow:hidden!important}.v39-item-icon-wrap img{width:115%!important;height:115%!important;object-fit:contain!important}.v39-item-head h3{font-size:17px!important;line-height:1.15!important}.item-description{font-size:12px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.item-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:auto!important}.item-actions button{min-height:40px!important;border-radius:12px!important}.equip-action{background:linear-gradient(180deg,#bafd35,#8fd616)!important;color:#081000!important;border-color:#caff4d!important}.drop-action{background:linear-gradient(180deg,#54202c,#34131d)!important;color:#ffdce4!important;border-color:#8d3247!important}
.item-card.rarity-common{border-color:rgba(190,200,210,.28)!important}.item-card.rarity-common .v39-item-aura{background:radial-gradient(circle,#cad1d7,transparent 60%)!important}.item-card.rarity-uncommon{border-color:rgba(99,214,104,.55)!important;box-shadow:0 0 24px rgba(73,203,87,.08)!important}.item-card.rarity-uncommon .v39-item-aura{background:radial-gradient(circle,#55da68,transparent 58%)!important}.item-card.rarity-rare{border-color:rgba(71,145,255,.68)!important;box-shadow:0 0 28px rgba(54,128,255,.12)!important}.item-card.rarity-rare .v39-item-aura{background:radial-gradient(circle,#4e91ff,transparent 58%)!important}.item-card.rarity-epic{border-color:rgba(183,83,255,.72)!important;box-shadow:0 0 32px rgba(165,65,255,.16)!important}.item-card.rarity-epic .v39-item-aura{background:radial-gradient(circle,#b14cff,transparent 58%)!important}.item-card.rarity-legendary{border-color:rgba(255,174,40,.85)!important;box-shadow:0 0 36px rgba(255,145,24,.2)!important}.item-card.rarity-legendary:after{content:'';position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(255,228,145,.12) 48%,transparent 65%);transform:translateX(-100%);animation:v75legend 4s infinite}.item-card.rarity-legendary .v39-item-aura{background:radial-gradient(circle,#ff9e24,transparent 58%)!important}@keyframes v75legend{55%,100%{transform:translateX(100%)}}
.v39-profile-layout{max-width:1040px!important;margin-inline:auto!important;display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr)!important;gap:14px!important}.v39-profile-hero{grid-column:1/-1!important;min-height:190px!important;display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;align-items:center!important;padding:20px!important}.v39-avatar-ring{width:126px!important;height:142px!important;border-radius:26px!important}.v39-avatar-ring .avatar{width:100%!important;height:100%!important;overflow:hidden!important}.v39-avatar-ring img{width:130%!important;height:145%!important;object-fit:cover!important;object-position:50% 8%!important;border-radius:0!important}.v39-exp-box{grid-column:2!important;width:100%!important}.v39-equipment-panel{grid-column:1!important}.v39-profile-card{grid-column:2!important}.v39-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.v39-equip-slot{min-height:116px!important;padding:12px!important;border-radius:17px!important}.v39-slot-icon{width:58px!important;height:58px!important}.v39-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.v39-resource-card{grid-column:1/-1!important;min-height:72px!important;padding:10px 12px!important}.v39-resource-card em{display:none!important}.v39-mini-stat{min-height:78px!important;padding:10px!important}.v39-mini-stat:last-child{grid-column:1/-1!important}
.side-drawer,.drawer-panel{background:linear-gradient(180deg,rgba(14,21,27,.99),rgba(6,11,15,.99))!important;border-right:1px solid rgba(185,241,47,.2)!important;box-shadow:20px 0 60px rgba(0,0,0,.45)!important}.side-drawer .profile-card,.drawer-panel .profile-card{border-radius:18px!important}
@media(max-width:720px){.v75-character-shell{padding:5px!important;align-items:end!important}.v75-character-modal{width:100%!important;max-height:calc(100dvh - 5px)!important;border-radius:22px 22px 0 0!important}.v75-character-modal .v71-char-bottom{grid-template-columns:1fr!important}.v75-logout{width:100%!important}.v71-char-row{grid-template-columns:72px minmax(0,1fr)!important}.v71-char-row>button{grid-column:1/-1!important;width:100%!important}.inventory-list{grid-template-columns:1fr!important}.item-card{grid-template-columns:72px minmax(0,1fr)!important;min-height:158px!important;padding:11px!important;gap:11px!important}.v39-item-icon-wrap{width:72px!important;height:92px!important}.v39-item-head h3{font-size:15px!important}.v39-profile-layout{display:block!important}.v39-profile-layout>*{margin-bottom:10px!important}.v39-profile-hero{grid-template-columns:100px minmax(0,1fr)!important;min-height:154px!important;padding:13px!important}.v39-avatar-ring{width:94px!important;height:116px!important}.v39-exp-box{grid-column:1/-1!important;margin-top:8px!important}.v39-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v39-equip-slot{min-height:104px!important}.v39-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v39-resource-card{grid-column:1/-1!important}.v39-mini-stat,.v39-mini-stat:last-child{grid-column:auto!important;min-width:0!important}.v39-mini-stat b{font-size:14px!important}.v39-mini-stat small{font-size:9px!important}}

/* ---- css/multiplayer-theme.css ---- */
:root{
  --bg:#070a0c;
  --card:#11171a;
  --card2:#171f22;
  --text:#f3f6f3;
  --muted:#879296;
  --gold:#caff38;
  --red:#ff6254;
  --green:#caff38;
  --blue:#68b9ff;
  --purple:#b794ff;
  --border:rgba(255,255,255,.08);
  --shadow:0 20px 55px rgba(0,0,0,.42);
}
*{box-sizing:border-box}
html,body{background:
  radial-gradient(circle at 8% -8%,rgba(202,255,56,.09),transparent 28%),
  radial-gradient(circle at 92% 0,rgba(255,139,31,.09),transparent 24%),
  linear-gradient(145deg,#060809,#0c1113 55%,#070a0c);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.45),transparent 72%)}
button{border-radius:11px;background:#12191b;color:#dce2df;border:1px solid var(--border);box-shadow:none;font-weight:850;transition:.18s ease}
button:hover{filter:none;transform:translateY(-1px);border-color:#caff38;color:#caff38}
button:active{transform:translateY(0)}
.primary{color:#10150d;background:linear-gradient(135deg,#caff38,#a8d32c);border-color:transparent;box-shadow:0 10px 24px rgba(202,255,56,.14)}
.primary:hover{color:#10150d;box-shadow:0 13px 30px rgba(202,255,56,.22)}
.danger{background:linear-gradient(135deg,#ff6254,#c33a39);border-color:transparent}
.ghost{background:#12191b;border:1px solid var(--border)}
input,select{border:1px solid var(--border);background:#0c1113;color:var(--text);border-radius:12px;outline:none;transition:.18s ease}
input:focus,select:focus{border-color:rgba(202,255,56,.5);box-shadow:0 0 0 3px rgba(202,255,56,.08)}
.topbar{background:rgba(9,13,15,.88);border-bottom:1px solid var(--border);backdrop-filter:blur(18px);box-shadow:0 10px 28px rgba(0,0,0,.24)}
.hamburger{background:#11181a;border:1px solid var(--border);color:#caff38}
.net-pill.lan{background:rgba(202,255,56,.1);color:#dfff83;border:1px solid rgba(202,255,56,.18)}
.screen{max-width:1180px}
.location-hero,.panel,.loot-pile,.monster-card,.ability-card,.fighter,.battle-log,.party,.profile-card,.equipment-panel,.paperdoll,.active-battles,.chest-location-card{
  background:linear-gradient(145deg,rgba(23,31,34,.96),rgba(10,14,16,.985));
  border:1px solid var(--border);border-radius:20px;box-shadow:0 16px 40px rgba(0,0,0,.28)
}
.location-hero{position:relative;overflow:hidden}
.location-hero::after{content:"";position:absolute;width:190px;height:190px;right:-100px;top:-110px;border:22px solid rgba(255,139,31,.07);border-radius:50%;pointer-events:none}
.location-btn{background:#11181a;border:1px solid var(--border)}
.location-btn:hover{background:#caff38;color:#11150d}
.bottom-nav{background:rgba(9,13,15,.9);border:1px solid var(--border);backdrop-filter:blur(18px);box-shadow:var(--shadow)}
.bottom-nav button{background:rgba(255,255,255,.04);border:1px solid transparent}
.bottom-nav button.active{background:rgba(202,255,56,.12);border-color:rgba(202,255,56,.22);color:#caff38}
.side{width:312px;max-width:86vw;background:linear-gradient(180deg,#0c1113,#080b0d);border-right:1px solid var(--border);box-shadow:24px 0 50px rgba(0,0,0,.45);transition:.34s cubic-bezier(.22,1,.36,1)}
.side-head{border-bottom:1px solid var(--border)}
.side button{background:#12191b;border:1px solid var(--border)}
.side button:hover{background:#caff38;color:#11150d}
.login-screen{background:
  radial-gradient(circle at 18% 12%,rgba(202,255,56,.12),transparent 26%),
  radial-gradient(circle at 85% 82%,rgba(255,139,31,.13),transparent 30%),#080b0d}
.login-card{background:linear-gradient(150deg,rgba(25,34,37,.97),rgba(10,14,16,.985));border:1px solid var(--border);box-shadow:var(--shadow)}
.logo{color:#caff38}
.class-grid-v7{gap:14px}
.class-pick{position:relative;overflow:hidden;display:grid;grid-template-rows:auto auto 1fr auto;justify-items:center;gap:8px;min-height:250px;padding:16px;text-align:center;background:radial-gradient(circle at 50% 20%,rgba(202,255,56,.08),transparent 46%),rgba(255,255,255,.025);border:1px solid var(--border);border-radius:20px}
.class-pick::after{content:"";position:absolute;inset:-80% -30%;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.06) 48%,transparent 60%);transform:translateX(-60%);transition:.55s ease}
.class-pick:hover::after{transform:translateX(60%)}
.class-pick.active{outline:none;border-color:rgba(202,255,56,.55);box-shadow:0 0 0 3px rgba(202,255,56,.08),0 16px 38px rgba(0,0,0,.32);transform:translateY(-3px)}
.class-pick-image{width:120px;height:120px;border-radius:50%;overflow:hidden;border:2px solid rgba(202,255,56,.22);background:#0d1315;box-shadow:0 14px 34px rgba(0,0,0,.3);position:relative;z-index:1}
.class-pick-image img{width:100%;height:100%;object-fit:cover;object-position:top}
.class-pick b,.class-pick small,.class-pick em{position:relative;z-index:1}
.class-pick b{font-size:1rem}.class-pick small{line-height:1.45}.class-pick em{color:#ffae5e;font-style:normal;font-weight:850}
.class-inline-image{width:28px;height:28px;border-radius:50%;object-fit:cover;object-position:top;vertical-align:middle;border:1px solid rgba(202,255,56,.25)}
.class-asset-image{width:100%;height:100%;object-fit:cover;object-position:top}
.v38-mob-icon,.monster-portrait,.v56-monster-avatar{overflow:hidden;background:radial-gradient(circle at 50% 30%,rgba(202,255,56,.08),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.08)}
.monster-asset-image,.battle-monster-art{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 18px rgba(0,0,0,.38))}
.v38-loc-monster{background:linear-gradient(145deg,rgba(24,33,36,.96),rgba(10,14,16,.98));border:1px solid var(--border);border-radius:18px;box-shadow:0 13px 32px rgba(0,0,0,.24)}
.v38-loc-monster:hover{border-color:rgba(202,255,56,.24);transform:translateY(-2px)}
.v38-mob-icon{width:72px!important;height:72px!important;border-radius:18px!important;display:grid!important;place-items:center!important}
.v38-mob-icon img{width:68px;height:68px;object-fit:contain}
.v56-monster-avatar img{width:100%;height:100%;object-fit:contain}
.item-emblem{overflow:hidden;background:radial-gradient(circle at 50% 25%,rgba(255,139,31,.1),rgba(255,255,255,.02));border:1px solid var(--border)}
.item-asset-image{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.35))}
.item-card{background:linear-gradient(145deg,rgba(23,31,34,.97),rgba(10,14,16,.99));border:1px solid var(--border);border-radius:18px;box-shadow:0 12px 28px rgba(0,0,0,.22)}
.item-card:hover{border-color:rgba(255,139,31,.28);transform:translateY(-2px)}
.item-icon-wrap .item-emblem{width:70px;height:70px;display:grid;place-items:center;border-radius:17px}
.v39-avatar-ring,.avatar-ring{background:linear-gradient(135deg,rgba(202,255,56,.55),rgba(255,139,31,.35));box-shadow:0 20px 46px rgba(0,0,0,.35),0 0 28px rgba(202,255,56,.08)}
.avatar{overflow:hidden;background:#0d1315!important}
.avatar img{width:100%;height:100%;object-fit:cover;object-position:top}
.v39-quick-title>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;overflow:hidden;background:#0d1315;border:1px solid var(--border)}
.v39-quick-title>span img{width:100%;height:100%;object-fit:cover;object-position:top}
.slot-icon{overflow:hidden}
.slot-icon img{width:48px;height:48px;object-fit:contain}
.bar{height:9px;background:#293033;border:0}.bar i{background:linear-gradient(90deg,#caff38,#ff8b1f)}.bar.hp i{background:linear-gradient(90deg,#ff6254,#ff8b1f)}.bar.mp i{background:linear-gradient(90deg,#4c91ff,#68b9ff)}
.chance-pill,.v38-mob-flag{border-radius:999px}
.modal-back{background:rgba(0,0,0,.72);backdrop-filter:blur(7px)}
.modal{background:linear-gradient(145deg,#171f22,#0b0f11);border:1px solid var(--border);box-shadow:var(--shadow)}
.asset-fallback{display:grid;place-items:center;width:100%;height:100%;font-weight:950;color:#caff38;background:#0d1315}
@media(max-width:820px){
  .class-pick{min-height:220px}.class-pick-image{width:104px;height:104px}
  .side{width:292px}.v38-mob-icon{width:64px!important;height:64px!important}.v38-mob-icon img{width:60px;height:60px}
}

/* ---- css/v76-ui.css ---- */
/* Aldos RPG v76 — isolated UI layer. New visual work lives here instead of growing style.css. */
:root{
  --v76-bg:#070b0d;
  --v76-panel:#10171c;
  --v76-panel-2:#141d24;
  --v76-line:rgba(184,255,44,.18);
  --v76-line-strong:rgba(184,255,44,.42);
  --v76-lime:#b8ff2c;
  --v76-lime-soft:#d7ff85;
  --v76-text:#f3f6f2;
  --v76-muted:#95a39d;
  --v76-danger:#ff5f71;
  --v76-blue:#5da9ff;
  --v76-purple:#b579ff;
  --v76-gold:#ffc861;
}
html,body{background:radial-gradient(circle at 12% 0%,rgba(99,144,33,.12),transparent 34%),radial-gradient(circle at 92% 18%,rgba(34,102,87,.10),transparent 30%),var(--v76-bg)!important;}
body.v63-ui{overflow-x:hidden!important;color:var(--v76-text)!important;}
button,input,select,textarea{font:inherit;}

/* top navigation */
.v76-topbar{position:sticky!important;top:0!important;z-index:80!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:72px!important;padding:10px max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left))!important;background:linear-gradient(180deg,rgba(10,15,18,.98),rgba(8,12,15,.94))!important;border-bottom:1px solid rgba(184,255,44,.13)!important;box-shadow:0 10px 28px rgba(0,0,0,.28)!important;backdrop-filter:blur(18px)!important;}
.v76-topbar .hamburger{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;border-radius:15px!important;border:1px solid rgba(255,255,255,.13)!important;background:linear-gradient(145deg,#1c252b,#11171b)!important;color:#eef4ef!important;font-size:0!important;position:relative!important;box-shadow:inset 0 1px rgba(255,255,255,.05),0 8px 20px rgba(0,0,0,.22)!important;}
.v76-topbar .hamburger::before,.v76-topbar .hamburger::after{content:"";position:absolute;left:13px;right:13px;height:2px;border-radius:3px;background:currentColor;box-shadow:0 7px 0 currentColor;top:15px;}
.v76-topbar .hamburger::after{box-shadow:none;top:29px;}
.v76-title{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-width:0!important;}
.v76-title-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;border:1px solid var(--v76-line-strong);background:linear-gradient(145deg,rgba(184,255,44,.15),rgba(43,76,36,.08));color:var(--v76-lime);font-weight:900;box-shadow:0 0 22px rgba(184,255,44,.08);}
.v76-title-copy{min-width:0;}
.v76-title-copy h1{margin:0!important;font-size:clamp(18px,2.4vw,24px)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:var(--v76-text)!important;}
.v76-title-copy p{margin:4px 0 0!important;font-size:12px!important;line-height:1.25!important;color:var(--v76-muted)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.v76-network{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;padding:8px 11px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:999px!important;background:rgba(255,255,255,.035)!important;color:var(--v76-muted)!important;font-size:11px!important;font-weight:800!important;white-space:nowrap!important;}
.v76-network i{display:block;width:7px;height:7px;border-radius:50%;background:var(--v76-lime);box-shadow:0 0 12px rgba(184,255,44,.8);}
.v76-network.offline i{background:#9aa3a0;box-shadow:none;}

/* persistent bottom navigation */
.v76-bottom-nav{position:fixed!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;bottom:max(8px,env(safe-area-inset-bottom))!important;z-index:75!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;min-height:58px!important;padding:6px!important;border:1px solid rgba(184,255,44,.16)!important;border-radius:19px!important;background:rgba(10,15,18,.94)!important;box-shadow:0 16px 40px rgba(0,0,0,.45)!important;backdrop-filter:blur(18px)!important;}
.v76-bottom-nav button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;min-height:46px!important;padding:5px 3px!important;border:1px solid transparent!important;border-radius:13px!important;background:transparent!important;color:#9da9a4!important;font-size:10px!important;font-weight:800!important;box-shadow:none!important;}
.v76-bottom-nav button.active{color:#efffd1!important;border-color:rgba(184,255,44,.32)!important;background:linear-gradient(180deg,rgba(184,255,44,.14),rgba(184,255,44,.055))!important;}
.v76-bottom-nav .nav-glyph{width:18px;height:14px;border:2px solid currentColor;border-radius:5px;opacity:.9;position:relative;}
.v76-bottom-nav [data-nav-kind="inventory"] .nav-glyph{border-radius:4px 4px 7px 7px;}
.v76-bottom-nav [data-nav-kind="abilities"] .nav-glyph{transform:rotate(45deg);width:13px;height:13px;border-radius:3px;}
.v76-bottom-nav [data-nav-kind="character"] .nav-glyph{width:14px;height:14px;border-radius:50%;}
.v76-bottom-nav [data-nav-kind="friends"] .nav-glyph{width:18px;border-radius:9px 9px 5px 5px;}
.screen.v76-screen,.v76-screen{padding-bottom:86px!important;}

/* side panel */
.v76-side{position:fixed!important;inset:0 auto 0 0!important;z-index:120!important;width:min(356px,88vw)!important;transform:translateX(-104%)!important;transition:transform .26s cubic-bezier(.22,.85,.26,1)!important;padding:14px!important;overflow:auto!important;background:
  radial-gradient(circle at 8% 8%,rgba(184,255,44,.16),transparent 30%),
  radial-gradient(circle at 100% 44%,rgba(93,169,255,.10),transparent 32%),
  linear-gradient(150deg,rgba(15,25,27,.99),rgba(7,11,14,.995))!important;
border-right:1px solid rgba(184,255,44,.30)!important;box-shadow:24px 0 70px rgba(0,0,0,.58),inset -1px 0 rgba(255,255,255,.03)!important;}
.v76-side::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 15%,rgba(184,255,44,.035) 42%,transparent 68%);background-size:220% 100%;animation:v76-side-shimmer 8s linear infinite;}
@keyframes v76-side-shimmer{to{background-position:-220% 0}}
.v76-side.open{transform:translateX(0)!important;}
.v76-side-head{position:relative;display:grid!important;grid-template-columns:68px minmax(0,1fr) 40px!important;gap:12px!important;align-items:center!important;padding:10px!important;border:1px solid rgba(184,255,44,.18)!important;border-radius:18px!important;background:rgba(255,255,255,.035)!important;}
.v76-side-portrait{width:68px;height:82px;border-radius:15px;overflow:hidden;border:1px solid rgba(184,255,44,.38);background:linear-gradient(145deg,#18251a,#0b1110);}
.v76-side-portrait img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important;transform:scale(1.16)!important;}
.v76-side-copy{min-width:0;}.v76-side-copy b{display:block;font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v76-side-copy small{display:block;margin-top:5px;color:var(--v76-muted);font-size:11px;}
.v76-side-head>button{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:12px!important;font-size:22px!important;background:rgba(255,255,255,.04)!important;}
.v76-side #side-stats{position:relative;margin-top:10px;}
.v76-side-profile{padding:11px!important;border-radius:18px!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(7,12,14,.62)!important;}
.v76-side-profile .v39-quick-title{display:none!important;}
.v76-side-profile .v39-quick-bars{gap:7px!important;}
.v76-side-profile .v39-quick-bars article{padding:8px 10px!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;}
.v76-side-profile .v39-quick-bars article>div:first-child{font-size:11px!important;}
.v76-side-profile .v39-quick-grid{grid-template-columns:repeat(3,1fr)!important;gap:6px!important;}
.v76-side-profile .v39-quick-grid>span{padding:9px 5px!important;border-radius:12px!important;background:rgba(255,255,255,.04)!important;text-align:center!important;font-size:0!important;}
.v76-side-profile .v39-quick-grid b{font-size:15px!important;display:block!important;}.v76-side-profile .v39-quick-grid small{font-size:9px!important;color:var(--v76-muted)!important;}
.v76-side-nav{position:relative;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:10px!important;}
.v76-side-nav button{min-height:44px!important;padding:9px 10px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.085)!important;background:linear-gradient(145deg,rgba(30,40,45,.82),rgba(15,21,25,.82))!important;color:#eef3ef!important;font-size:12px!important;font-weight:850!important;text-align:left!important;box-shadow:none!important;}
.v76-side-nav button:hover{border-color:rgba(184,255,44,.38)!important;background:rgba(184,255,44,.08)!important;}
.v76-side-nav button[data-go="characters"],.v76-side-nav button.danger{grid-column:1/-1!important;text-align:center!important;}
.v76-side-nav button.danger{border-color:rgba(255,95,113,.28)!important;background:rgba(106,25,40,.20)!important;color:#ffbac2!important;}

/* profile */
.v76-profile-layout{display:grid!important;grid-template-columns:minmax(260px,320px) minmax(480px,1fr)!important;grid-template-areas:"hero equip" "stats equip"!important;gap:14px!important;align-items:start!important;max-width:1180px!important;margin:0 auto!important;}
.v76-profile-hero{grid-area:hero!important;display:grid!important;grid-template-columns:128px minmax(0,1fr)!important;grid-template-areas:"avatar info" "avatar exp"!important;gap:12px 16px!important;min-height:218px!important;padding:16px!important;border-radius:24px!important;border:1px solid var(--v76-line)!important;background:radial-gradient(circle at 15% 15%,rgba(184,255,44,.11),transparent 40%),linear-gradient(145deg,#141d22,#0b1115)!important;overflow:hidden!important;}
.v76-profile-hero .v39-avatar-ring{grid-area:avatar!important;width:128px!important;height:184px!important;padding:7px!important;border-radius:24px!important;border:1px solid rgba(255,200,97,.35)!important;background:linear-gradient(160deg,rgba(255,200,97,.24),rgba(184,255,44,.10),rgba(12,18,17,.8))!important;box-shadow:0 0 28px rgba(184,255,44,.08)!important;}
.v76-profile-hero .avatar{width:100%!important;height:100%!important;border-radius:18px!important;overflow:hidden!important;background:radial-gradient(circle at 50% 18%,rgba(184,255,44,.10),transparent 48%),#0a1013!important;}
.v76-profile-hero .avatar img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 12%!important;transform:scale(1.18)!important;}
.v76-profile-hero .v39-hero-info{grid-area:info!important;align-self:end!important;min-width:0!important;}
.v76-profile-name-line{display:flex;align-items:center;gap:8px;min-width:0;}
.v76-profile-name-line h2{margin:0!important;font-size:23px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.v76-rename-button{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border-radius:11px!important;color:var(--v76-lime)!important;background:rgba(184,255,44,.08)!important;border:1px solid rgba(184,255,44,.22)!important;font-size:16px!important;}
.v76-profile-hero .v39-hero-info p{margin:6px 0 0!important;color:var(--v76-muted)!important;font-size:12px!important;line-height:1.35!important;}
.v76-profile-hero .v39-exp-box{grid-area:exp!important;align-self:start!important;padding:10px!important;margin:0!important;border-radius:13px!important;background:rgba(255,255,255,.035)!important;}
.v76-profile-hero .v39-exp-box>div:first-child{display:flex!important;justify-content:space-between!important;font-size:11px!important;}.v76-profile-hero .bar{height:7px!important;margin-top:7px!important;}
.v76-equipment-panel{grid-area:equip!important;padding:15px!important;border-radius:24px!important;border:1px solid rgba(184,255,44,.15)!important;background:linear-gradient(145deg,#121a20,#0b1014)!important;}
.v76-equipment-panel .v39-panel-head{margin-bottom:12px!important;}.v76-equipment-panel .v39-panel-head h2{font-size:22px!important;margin:0!important;}.v76-equipment-panel .v39-panel-head p{font-size:11px!important;margin-top:4px!important;}
.v76-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.v76-equip-slot{position:relative!important;display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;grid-template-areas:"icon label" "icon item"!important;align-items:center!important;gap:4px 11px!important;min-height:118px!important;padding:13px!important;text-align:left!important;border-radius:18px!important;overflow:hidden!important;background:linear-gradient(145deg,#151d23,#0f151a)!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:inset 0 1px rgba(255,255,255,.03)!important;}
.v76-equip-slot::after{content:"";position:absolute;inset:auto -25% -65% 15%;height:120px;filter:blur(28px);opacity:.16;background:var(--rarity-color,#b7c1bd);pointer-events:none;}
.v76-equip-slot .v39-slot-name{grid-area:label!important;color:var(--v76-muted)!important;font-size:10px!important;letter-spacing:.08em!important;text-transform:uppercase!important;}
.v76-equip-slot .v39-slot-icon{grid-area:icon!important;width:66px!important;height:78px!important;display:grid!important;place-items:center!important;border-radius:15px!important;border:1px solid color-mix(in srgb,var(--rarity-color,#b7c1bd) 45%,transparent)!important;background:rgba(0,0,0,.22)!important;overflow:hidden!important;font-size:30px!important;}
.v76-equip-slot .v39-slot-icon img{width:100%!important;height:100%!important;object-fit:contain!important;padding:6px!important;}
.v76-equip-slot .v39-slot-item{grid-area:item!important;align-self:start!important;font-size:13px!important;line-height:1.25!important;color:#fff!important;overflow-wrap:anywhere!important;}
.v76-equip-slot.two-hand-ghost{filter:saturate(.35)!important;opacity:.68!important;border-style:dashed!important;}
.v76-equip-slot.two-hand-ghost .v39-slot-icon{filter:grayscale(.65) blur(.35px)!important;}
.v76-equip-slot.two-hand-ghost::before{content:"ЗАНЯТО ДВУРУЧНЫМ";position:absolute;right:10px;top:9px;font-size:8px;letter-spacing:.08em;color:var(--v76-muted);}
.v76-profile-card{grid-area:stats!important;padding:13px!important;border-radius:22px!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(13,19,23,.76)!important;}
.v76-profile-card .v39-stat-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;}
.v76-profile-card .v39-resource-card{grid-column:span 3!important;min-height:76px!important;padding:10px!important;border-radius:14px!important;}
.v76-profile-card .v39-mini-stat{grid-column:span 2!important;min-height:66px!important;padding:9px!important;border-radius:14px!important;}
.v76-profile-card .v39-resource-card>div:first-child{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:6px!important;align-items:center!important;}.v76-profile-card .v39-resource-card span{font-size:15px!important;}.v76-profile-card .v39-resource-card small{font-size:10px!important;}.v76-profile-card .v39-resource-card b{font-size:14px!important;}.v76-profile-card .bar{height:7px!important;margin-top:8px!important;}
.v76-profile-card .v39-mini-stat span{font-size:16px!important;}.v76-profile-card .v39-mini-stat small{font-size:9px!important;}.v76-profile-card .v39-mini-stat b{font-size:14px!important;}
.v76-profile-card .v39-attributes{margin-top:12px!important;padding-top:11px!important;border-top:1px solid rgba(255,255,255,.07)!important;}.v76-profile-card .v39-attributes h2{font-size:16px!important;margin:0 0 8px!important;}.v76-profile-card .v39-attributes>p{display:none!important;}.v76-profile-card .v39-attr-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}.v76-profile-card .v39-attr-card{min-height:48px!important;padding:7px!important;border-radius:12px!important;}

/* rarity system shared by inventory and equipment */
.rarity-обычный{--rarity-color:#aab5b1!important;--rarity-glow:rgba(170,181,177,.12)!important;}
.rarity-необычный{--rarity-color:#78db78!important;--rarity-glow:rgba(120,219,120,.20)!important;}
.rarity-редкий{--rarity-color:#579dff!important;--rarity-glow:rgba(87,157,255,.23)!important;}
.rarity-эпический{--rarity-color:#b56cff!important;--rarity-glow:rgba(181,108,255,.25)!important;}
.rarity-легендарный{--rarity-color:#ffc64f!important;--rarity-glow:rgba(255,198,79,.30)!important;}
.rarity-мифический{--rarity-color:#ff617e!important;--rarity-glow:rgba(255,97,126,.32)!important;}
.v39-item-card,.v76-equip-slot,.item-detail-card{border-color:color-mix(in srgb,var(--rarity-color,#aab5b1) 44%,rgba(255,255,255,.08))!important;box-shadow:0 12px 24px rgba(0,0,0,.20),0 0 18px var(--rarity-glow,transparent)!important;}
.v39-item-card::before,.v76-equip-slot::before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(115deg,transparent 20%,color-mix(in srgb,var(--rarity-color,#fff) 10%,transparent) 48%,transparent 70%);background-size:220% 100%;opacity:.45;}
.rarity-легендарный::before,.rarity-мифический::before{animation:v76-rarity-sheen 5.5s linear infinite;}
@keyframes v76-rarity-sheen{to{background-position:-220% 0}}
.v39-item-card{position:relative!important;grid-template-columns:78px minmax(0,1fr)!important;min-height:154px!important;padding:12px!important;gap:12px!important;border-radius:19px!important;background:linear-gradient(145deg,#151e24,#0e1418)!important;overflow:hidden!important;}
.v39-item-card .v39-item-icon-wrap{width:78px!important;min-width:78px!important;align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:7px!important;}.v39-item-card .item-emblem{width:72px!important;height:82px!important;border-radius:15px!important;border:1px solid color-mix(in srgb,var(--rarity-color,#aaa) 42%,transparent)!important;background:rgba(0,0,0,.24)!important;}.v39-item-card .item-emblem img{width:100%!important;height:100%!important;object-fit:contain!important;padding:7px!important;}.v39-item-card .item-type-label{color:var(--rarity-color,#aaa)!important;font-size:9px!important;}
.v39-item-card .v39-item-head{display:flex!important;gap:8px!important;align-items:flex-start!important;}.v39-item-card h3{font-size:15px!important;line-height:1.18!important;min-width:0!important;}.v39-item-card .item-weight{flex:none!important;color:var(--rarity-color,#aaa)!important;}.v39-item-card .item-description{font-size:11px!important;line-height:1.35!important;min-height:30px!important;}.v39-item-card .item-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:9px!important;}.v39-item-card .item-actions button{min-height:37px!important;border-radius:11px!important;font-size:11px!important;}.v39-item-card .equip-action,.v39-item-card [data-equip]{background:linear-gradient(180deg,#baff34,#91df1d)!important;color:#071000!important;border-color:#d9ff89!important;}.v39-item-card .drop-action,.v39-item-card [data-drop]{background:rgba(117,25,41,.25)!important;color:#ffb1bc!important;border-color:rgba(255,95,113,.32)!important;}

/* location monster list and online players */
.v73-location-sections{gap:10px!important;}.v73-location-section{border-radius:17px!important;border:1px solid rgba(184,255,44,.13)!important;background:rgba(10,16,19,.76)!important;overflow:hidden!important;}.v73-location-section summary{min-height:54px!important;padding:10px 13px!important;}.v73-location-section summary b{font-size:13px!important;}.v73-location-section summary small{font-size:9px!important;color:var(--v76-muted)!important;}.v73-section-body{padding:8px!important;}
.v38-location-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.v38-loc-monster{display:grid!important;grid-template-columns:86px minmax(0,1fr) 72px!important;gap:11px!important;align-items:center!important;min-width:0!important;min-height:116px!important;padding:11px!important;border-radius:18px!important;border:1px solid rgba(255,255,255,.09)!important;background:linear-gradient(145deg,#141d24,#0e151a)!important;overflow:hidden!important;}
.v38-mob-icon{width:86px!important;height:92px!important;min-width:86px!important;border-radius:16px!important;overflow:hidden!important;border:1px solid rgba(184,255,44,.22)!important;background:radial-gradient(circle at 50% 30%,rgba(184,255,44,.09),transparent 56%),#0b1114!important;}.v38-mob-icon img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transform:scale(1.12)!important;}
.v38-mob-main{min-width:0!important;align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}.v38-mob-head{display:flex!important;align-items:flex-start!important;gap:6px!important;min-width:0!important;}.v38-mob-head h3{font-size:14px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;margin:0!important;}.v38-mob-flags{display:flex!important;gap:4px!important;flex-wrap:wrap!important;flex:none!important;}.v38-mob-flag{min-height:20px!important;height:20px!important;padding:2px 6px!important;font-size:8px!important;border-radius:999px!important;}.v38-mob-main>.bar{height:7px!important;margin-top:10px!important;max-width:260px!important;}.v38-mob-stats{display:flex!important;gap:8px!important;margin-top:7px!important;flex-wrap:wrap!important;font-size:10px!important;}
.v38-mob-actions{display:grid!important;grid-template-rows:36px 46px!important;gap:7px!important;align-self:center!important;width:72px!important;}.v38-mob-actions button{width:72px!important;min-width:72px!important;min-height:0!important;height:auto!important;padding:5px!important;border-radius:12px!important;font-size:11px!important;}.v38-mob-actions .primary{background:linear-gradient(180deg,#baff34,#91df1d)!important;color:#081000!important;border-color:#d9ff89!important;font-weight:900!important;}.v38-mob-actions .ghost{color:var(--v76-lime)!important;}
.v74-online-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}.v74-online-card{grid-template-columns:58px minmax(0,1fr)!important;min-height:82px!important;padding:9px!important;border-radius:15px!important;}.v74-online-art{width:58px!important;height:64px!important;border-radius:12px!important;overflow:hidden!important;}.v74-online-art img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important;transform:scale(1.14)!important;}.v76-self-badge{display:inline-flex!important;margin-left:5px!important;padding:2px 5px!important;border-radius:999px!important;background:rgba(184,255,44,.14)!important;color:var(--v76-lime-soft)!important;font-size:8px!important;}

/* battle cards */
.v63-battle{max-width:1180px!important;margin:0 auto!important;padding:10px 12px 90px!important;gap:10px!important;}.v63-arena-panel,.v63-party-panel,.v63-turn-strip,.v63-battle-log{border-radius:18px!important;background:linear-gradient(145deg,rgba(18,26,32,.96),rgba(10,15,19,.96))!important;border:1px solid rgba(255,255,255,.09)!important;}.v57-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}.v62-monster-card{display:grid!important;grid-template-columns:98px minmax(0,1fr) 48px!important;gap:12px!important;align-items:center!important;min-height:132px!important;padding:11px!important;border-radius:18px!important;overflow:hidden!important;}.v56-monster-avatar{width:98px!important;height:108px!important;min-width:98px!important;border-radius:16px!important;overflow:hidden!important;}.v56-monster-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transform:scale(1.12)!important;}.v56-monster-info{min-width:0!important;}.v56-monster-head{display:flex!important;align-items:flex-start!important;gap:7px!important;min-width:0!important;}.v56-monster-head h2{font-size:15px!important;line-height:1.18!important;white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important;margin:0!important;}.v62-threat{flex:none!important;font-size:7px!important;padding:4px 5px!important;}.v56-monster-status-line{min-height:25px!important;margin:7px 0!important;}.v56-status-list{display:flex!important;gap:4px!important;flex-wrap:wrap!important;}.v56-status-chip{min-height:20px!important;padding:2px 6px!important;font-size:8px!important;}.v56-monster-hp-row{display:grid!important;grid-template-columns:auto minmax(90px,1fr)!important;gap:8px!important;align-items:center!important;font-size:10px!important;}.v56-monster-hp-row .bar{height:8px!important;}.v64-monster-tools{display:grid!important;gap:7px!important;width:48px!important;}.v64-monster-tools button{width:48px!important;height:43px!important;min-height:43px!important;border-radius:13px!important;padding:0!important;font-size:17px!important;}.v64-card-attack{background:linear-gradient(180deg,#baff34,#8cdd18)!important;color:#081000!important;border-color:#d8ff89!important;}.v62-monster-info{color:var(--v76-lime)!important;}
.v57-party-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}.v62-player-card{min-height:112px!important;padding:10px!important;border-radius:17px!important;}.v57-player-head{display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;}.v57-player-avatar{width:54px!important;height:68px!important;border-radius:13px!important;overflow:hidden!important;}.v57-player-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important;transform:scale(1.12)!important;}.v57-player-name h3{font-size:13px!important;}.v57-player-name small{font-size:9px!important;}.v57-player-action{min-height:28px!important;padding:4px 7px!important;font-size:8px!important;}.v57-player-effects{min-height:22px!important;margin:6px 0!important;}.v57-player-bars{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}.v57-stat-row{grid-template-columns:auto minmax(70px,1fr)!important;gap:6px!important;font-size:9px!important;}.v57-stat-row .bar{height:7px!important;}
.v63-edge-tab{width:42px!important;min-width:42px!important;border-radius:0 13px 13px 0!important;}.v63-edge-tab.right{border-radius:13px 0 0 13px!important;}

/* character bottom sheet */
#character-drawer-root{position:fixed;inset:0;z-index:220;pointer-events:none;}
#character-drawer-root.open{pointer-events:auto;}
.v76-character-backdrop{position:absolute;inset:0;background:rgba(1,4,5,.68);backdrop-filter:blur(7px);opacity:0;transition:opacity .24s ease;}
.v76-character-sheet{position:absolute;left:50%;bottom:0;width:min(760px,calc(100% - 20px));max-height:min(82dvh,760px);overflow:auto;transform:translate(-50%,105%);transition:transform .28s cubic-bezier(.2,.86,.2,1);padding:12px 16px max(18px,env(safe-area-inset-bottom));border:1px solid rgba(184,255,44,.30);border-bottom:0;border-radius:26px 26px 0 0;background:radial-gradient(circle at 10% 0%,rgba(184,255,44,.10),transparent 33%),linear-gradient(160deg,#121b20,#080e12);box-shadow:0 -25px 70px rgba(0,0,0,.58);}
#character-drawer-root.open .v76-character-backdrop{opacity:1;}#character-drawer-root.open .v76-character-sheet{transform:translate(-50%,0);}
.v76-sheet-handle{width:58px;height:5px;border-radius:99px;background:rgba(255,255,255,.28);margin:0 auto 12px;cursor:pointer;}.v76-character-sheet header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.08);}.v76-character-sheet header h2{margin:3px 0 4px;font-size:24px;}.v76-character-sheet header p{margin:0;color:var(--v76-muted);font-size:12px;}.v76-character-sheet header small{color:var(--v76-lime);font-size:9px;letter-spacing:.12em;}.v76-character-sheet header>button{width:42px;height:42px;min-height:42px;padding:0;border-radius:13px;font-size:23px;}.v76-character-list{display:grid;gap:9px;margin-top:12px;}.v76-character-row{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border-radius:17px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);}.v76-character-row.current{border-color:rgba(184,255,44,.36);background:rgba(184,255,44,.065);}.v76-character-art{width:74px;height:82px;border-radius:14px;overflow:hidden;border:1px solid rgba(184,255,44,.24);}.v76-character-art img{width:100%;height:100%;object-fit:cover;object-position:center top;transform:scale(1.13);}.v76-character-copy{min-width:0;}.v76-character-copy b{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.v76-character-copy span,.v76-character-copy small{display:block;margin-top:4px;font-size:10px;color:var(--v76-muted);}.v76-character-copy small{color:var(--v76-lime-soft);}.v76-character-row>button{min-width:100px;min-height:40px;border-radius:12px;font-size:11px;}.v76-character-sheet footer{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px;}.v76-character-sheet footer button{min-height:46px;border-radius:13px;}

/* confirmations and rename */
.v76-confirm-dialog,.v76-rename-dialog{display:grid;gap:14px;padding:4px 2px;}.v76-confirm-mark{display:grid;place-items:center;width:54px;height:54px;margin:0 auto;border-radius:18px;border:1px solid rgba(184,255,44,.28);background:rgba(184,255,44,.08);color:var(--v76-lime);font-size:27px;font-weight:900;}.v76-confirm-mark.danger{border-color:rgba(255,95,113,.34);background:rgba(255,95,113,.08);color:#ff8898;}.v76-confirm-dialog p,.v76-rename-dialog p{margin:0;text-align:center;color:#ced7d2;line-height:1.55;}.v76-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}.v76-confirm-actions button{min-height:44px;border-radius:13px;}.v76-rename-dialog label{display:grid;gap:6px;}.v76-rename-dialog label span{font-size:11px;color:var(--v76-muted);}.v76-rename-dialog input{min-height:46px;padding:10px 12px;border-radius:13px;border:1px solid rgba(184,255,44,.24);background:#0b1114;color:#fff;}.v76-rename-dialog>small{color:var(--v76-muted);line-height:1.45;}

/* admin */
.v76-admin-screen{max-width:1280px!important;margin:0 auto!important;}.v76-admin-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}.v76-admin-grid .panel{padding:15px!important;border-radius:20px!important;border:1px solid rgba(184,255,44,.13)!important;background:linear-gradient(145deg,#131c22,#0c1216)!important;}.v76-admin-grid .panel h2{margin:0 0 12px!important;font-size:18px!important;}.v76-admin-grid label{display:grid!important;gap:5px!important;margin-bottom:8px!important;color:var(--v76-muted)!important;font-size:10px!important;}.v76-admin-grid input,.v76-admin-grid select{min-height:42px!important;padding:8px 10px!important;border-radius:11px!important;border:1px solid rgba(255,255,255,.10)!important;background:#0b1115!important;color:#fff!important;}.v76-admin-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;}.v76-admin-grid button{min-height:42px;border-radius:12px;}.v76-item-preview{display:grid;grid-template-columns:68px 1fr;gap:10px;align-items:center;padding:10px;margin-bottom:10px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.03);}.v76-item-preview-art{width:68px;height:68px;border-radius:13px;border:1px solid color-mix(in srgb,var(--rarity-color,#aaa) 45%,transparent);display:grid;place-items:center;overflow:hidden;background:rgba(0,0,0,.22);}.v76-item-preview-art img{width:100%;height:100%;object-fit:contain;padding:5px;}.v76-item-preview b{display:block}.v76-item-preview small{display:block;margin-top:4px;color:var(--rarity-color,#aaa);}

/* friends keeps all five navigation items */
.v76-friends-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
.v76-trade-disabled{padding:12px;border:1px dashed rgba(255,255,255,.12);border-radius:13px;color:var(--v76-muted);font-size:12px;}

@media (max-width:900px){
  .v76-profile-layout{grid-template-columns:1fr!important;grid-template-areas:"hero" "stats" "equip"!important;}
  .v76-profile-hero{grid-template-columns:122px minmax(0,1fr)!important;min-height:208px!important;}.v76-profile-hero .v39-avatar-ring{width:122px!important;height:174px!important;}
  .v76-admin-grid{grid-template-columns:1fr!important;}
  .v38-location-monster-grid{grid-template-columns:1fr!important;}
  .v57-monster-grid,.v57-party-grid{grid-template-columns:1fr!important;}
  .v74-online-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:620px){
  .v76-topbar{min-height:64px!important;padding:8px 9px!important;gap:8px!important;}.v76-topbar .hamburger{width:43px!important;height:43px!important;min-width:43px!important;}.v76-title{grid-template-columns:minmax(0,1fr)!important;}.v76-title-mark{display:none!important;}.v76-title-copy h1{font-size:19px!important;}.v76-title-copy p{font-size:10px!important;}.v76-network{width:10px!important;height:10px!important;min-width:10px!important;padding:0!important;border:0!important;background:none!important;font-size:0!important;}.v76-network i{width:8px;height:8px;}
  .v76-bottom-nav{left:5px!important;right:5px!important;bottom:max(5px,env(safe-area-inset-bottom))!important;gap:3px!important;padding:5px!important;border-radius:16px!important;}.v76-bottom-nav button{font-size:9px!important;min-height:44px!important;}.v76-bottom-nav .nav-glyph{transform:scale(.85);}.v76-bottom-nav [data-nav-kind="abilities"] .nav-glyph{transform:rotate(45deg) scale(.85);}
  .v76-profile-hero{grid-template-columns:104px minmax(0,1fr)!important;grid-template-areas:"avatar info" "avatar exp"!important;gap:10px!important;min-height:184px!important;padding:12px!important;}.v76-profile-hero .v39-avatar-ring{width:104px!important;height:154px!important;padding:5px!important;border-radius:20px!important;}.v76-profile-name-line h2{font-size:19px!important;}.v76-profile-hero .v39-hero-info p{font-size:10px!important;}.v76-profile-hero .v39-exp-box{padding:8px!important;}.v76-profile-card .v39-stat-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}.v76-profile-card .v39-resource-card{grid-column:span 3!important;}.v76-profile-card .v39-mini-stat{grid-column:span 2!important;}.v76-slot-grid{grid-template-columns:1fr!important;}.v76-equip-slot{grid-template-columns:60px minmax(0,1fr)!important;min-height:102px!important;}.v76-equip-slot .v39-slot-icon{width:60px!important;height:70px!important;}
  .v38-loc-monster{grid-template-columns:76px minmax(0,1fr) 58px!important;gap:9px!important;min-height:106px!important;padding:9px!important;}.v38-mob-icon{width:76px!important;height:84px!important;min-width:76px!important;}.v38-mob-actions{width:58px!important;grid-template-rows:34px 42px!important;}.v38-mob-actions button{width:58px!important;min-width:58px!important;font-size:10px!important;}.v38-mob-head h3{font-size:13px!important;}.v38-mob-main>.bar{max-width:none!important;}.v74-online-grid{grid-template-columns:1fr!important;}
  .v62-monster-card{grid-template-columns:82px minmax(0,1fr) 42px!important;min-height:116px!important;gap:9px!important;padding:9px!important;}.v56-monster-avatar{width:82px!important;height:94px!important;min-width:82px!important;}.v56-monster-head{display:block!important;}.v56-monster-head h2{font-size:13px!important;}.v62-threat{display:inline-flex!important;margin-top:4px!important;}.v64-monster-tools{width:42px!important;}.v64-monster-tools button{width:42px!important;height:40px!important;min-height:40px!important;}.v56-monster-hp-row{grid-template-columns:1fr!important;gap:4px!important;}.v57-player-bars{grid-template-columns:1fr!important;}.v57-player-head{grid-template-columns:48px minmax(0,1fr) auto!important;}.v57-player-avatar{width:48px!important;height:60px!important;}
  .v76-character-sheet{width:100%;max-height:88dvh;border-radius:24px 24px 0 0;padding:10px 12px max(14px,env(safe-area-inset-bottom));}.v76-character-row{grid-template-columns:62px minmax(0,1fr)!important;}.v76-character-art{width:62px;height:72px;}.v76-character-row>button{grid-column:1/-1;width:100%;}.v76-character-sheet footer{grid-template-columns:1fr;}
  .v39-item-card{grid-template-columns:68px minmax(0,1fr)!important;min-height:144px!important;}.v39-item-card .v39-item-icon-wrap{width:68px!important;min-width:68px!important;}.v39-item-card .item-emblem{width:64px!important;height:76px!important;}.v39-item-card .item-actions{grid-template-columns:1fr!important;}
}
@media (max-width:390px){
  .v38-loc-monster{grid-template-columns:68px minmax(0,1fr) 52px!important;gap:7px!important;}.v38-mob-icon{width:68px!important;height:78px!important;min-width:68px!important;}.v38-mob-actions,.v38-mob-actions button{width:52px!important;min-width:52px!important;}.v38-mob-flags{display:none!important;}.v38-mob-stats{font-size:9px!important;gap:5px!important;}
  .v62-monster-card{grid-template-columns:74px minmax(0,1fr) 38px!important;gap:7px!important;}.v56-monster-avatar{width:74px!important;height:86px!important;min-width:74px!important;}.v64-monster-tools,.v64-monster-tools button{width:38px!important;}.v64-monster-tools button{height:37px!important;min-height:37px!important;}
}

/* v76 final consistency pass */
.rarity-common{--rarity-color:#aab5b1!important;--rarity-glow:rgba(170,181,177,.12)!important;}
.rarity-uncommon{--rarity-color:#78db78!important;--rarity-glow:rgba(120,219,120,.20)!important;}
.rarity-rare{--rarity-color:#579dff!important;--rarity-glow:rgba(87,157,255,.23)!important;}
.rarity-epic{--rarity-color:#b56cff!important;--rarity-glow:rgba(181,108,255,.25)!important;}
.rarity-legendary{--rarity-color:#ffc64f!important;--rarity-glow:rgba(255,198,79,.30)!important;}
.rarity-mythic{--rarity-color:#ff617e!important;--rarity-glow:rgba(255,97,126,.32)!important;}
.rarity-legendary::before,.rarity-mythic::before{animation:v76-rarity-sheen 5.5s linear infinite;}
.v76-equip-slot.filled{background:radial-gradient(circle at 12% 20%,var(--rarity-glow,transparent),transparent 42%),linear-gradient(145deg,#172027,#0c1216)!important;}
.v76-equip-slot.two-hand-ghost .v39-slot-item::after{content:" · правая рука";font-size:9px;color:var(--v76-muted);}
.v76-rename-button{display:grid!important;place-items:center!important;width:31px!important;height:31px!important;min-height:31px!important;padding:0!important;border-radius:10px!important;border:1px solid rgba(184,255,44,.24)!important;background:rgba(184,255,44,.08)!important;color:var(--v76-lime)!important;font-size:15px!important;}
.v76-rename-button:disabled{opacity:.35!important;filter:grayscale(1)!important;}

/* social page */
.v76-social-screen{max-width:1180px!important;margin:0 auto!important;}
.v76-social-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin-bottom:12px;padding:18px;border:1px solid var(--v76-line);border-radius:22px;background:radial-gradient(circle at 9% 10%,rgba(184,255,44,.12),transparent 40%),linear-gradient(145deg,#141d22,#0b1115);}
.v76-social-hero small{color:var(--v76-lime);font-size:9px;font-weight:900;letter-spacing:.15em;}.v76-social-hero h2{margin:5px 0 7px;font-size:24px;}.v76-social-hero p{margin:0;max-width:670px;color:var(--v76-muted);font-size:12px;line-height:1.5;}
.v76-social-metrics{display:grid;grid-template-columns:repeat(3,90px);gap:7px;}.v76-social-metrics span{display:grid;place-items:center;min-height:66px;padding:7px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.035);color:var(--v76-muted);font-size:9px;}.v76-social-metrics b{display:block;color:var(--v76-text);font-size:20px;}
.v76-social-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,.8fr);gap:12px;align-items:start;}.v76-social-main{display:grid;gap:12px;}.v76-social-grid aside{display:grid;gap:12px;}.v76-social-card{padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:19px;background:linear-gradient(145deg,#131c22,#0c1216);}.v76-social-card>header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;padding-bottom:9px;border-bottom:1px solid rgba(255,255,255,.07);}.v76-social-card h3{margin:0;font-size:16px;}.v76-social-card header small{color:var(--v76-muted);font-size:9px;}.v76-person-list{display:grid;gap:8px;}
.v76-person{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;border:1px solid rgba(255,255,255,.075);border-radius:15px;background:rgba(255,255,255,.025);}.v76-person.online{border-color:rgba(184,255,44,.15);}.v76-person-avatar{position:relative;width:64px;height:72px;overflow:hidden;border:1px solid rgba(184,255,44,.26);border-radius:13px;background:#0b1114;}.v76-person-avatar img{width:100%;height:100%;object-fit:cover;object-position:center top;transform:scale(1.13);}.v76-person-avatar>i{position:absolute;right:5px;bottom:5px;width:8px;height:8px;border-radius:50%;background:#777;box-shadow:0 0 0 2px #0b1114;}.v76-person.online .v76-person-avatar>i{background:var(--v76-lime);box-shadow:0 0 0 2px #0b1114,0 0 10px rgba(184,255,44,.7);}.v76-person-avatar.large{width:100px;height:126px;margin:0 auto;}.v76-person-letter{display:grid;place-items:center;width:100%;height:100%;font-size:28px;font-weight:900;color:var(--v76-lime);}.v76-person-copy{min-width:0;}.v76-person-copy b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}.v76-person-copy small{display:block;margin-top:4px;color:var(--v76-muted);font-size:9px;}.v76-person-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}.v76-person-actions button{min-height:36px;padding:7px 10px;border-radius:10px;font-size:9px;}
.v76-request-block{display:grid;gap:8px;}.v76-request-block h4{margin:7px 0 0;color:var(--v76-muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;}.v76-request-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px;border-radius:13px;background:rgba(255,255,255,.03);}.v76-request-entry b,.v76-request-entry small{display:block;}.v76-request-entry small,.v76-request-wait small{margin-top:3px;color:var(--v76-muted);font-size:9px;}.v76-request-entry>div:last-child{display:flex;gap:5px;}.v76-request-entry button{min-height:34px;padding:6px 8px;border-radius:9px;font-size:9px;}.v76-request-wait{padding:9px;border-radius:12px;background:rgba(255,255,255,.025);}.v76-friend-profile{text-align:center;}.v76-friend-profile h2{margin:10px 0 4px;}.v76-friend-profile p{color:var(--v76-muted);font-size:11px;}.v76-friend-profile>button{width:100%;margin-top:8px;}

/* battle header and stable compact cards */
.v63-battle-top{position:sticky!important;top:0!important;z-index:70!important;min-height:66px!important;padding:9px 13px!important;border-bottom:1px solid rgba(184,255,44,.13)!important;background:linear-gradient(180deg,rgba(10,15,18,.98),rgba(8,12,15,.94))!important;backdrop-filter:blur(16px)!important;}
.v62-monster-card{contain:layout paint;}.v62-monster-card .v56-monster-info{overflow:visible!important;}.v62-monster-card .v56-monster-head h2{max-width:100%!important;word-break:normal!important;}.v64-monster-tools button{display:grid!important;place-items:center!important;overflow:hidden!important;}.v64-monster-tools button:disabled{opacity:.35!important;}
.v38-loc-monster .v38-mob-main{min-width:0!important;overflow:visible!important;}.v38-loc-monster .v38-mob-head{min-width:0!important;}.v38-loc-monster .v38-mob-head h3{white-space:normal!important;line-height:1.16!important;word-break:normal!important;}.v38-mob-actions{align-self:stretch!important;justify-content:center!important;}.v38-mob-actions button{margin:0!important;}

/* notifications */
.v76-toast{max-width:min(360px,calc(100vw - 22px))!important;border-radius:14px!important;border:1px solid rgba(255,255,255,.11)!important;background:rgba(15,21,25,.96)!important;box-shadow:0 14px 35px rgba(0,0,0,.42)!important;backdrop-filter:blur(14px)!important;}

@media (max-width:760px){
  .v76-social-hero{grid-template-columns:1fr;padding:14px;}.v76-social-metrics{grid-template-columns:repeat(3,1fr);}.v76-social-grid{grid-template-columns:1fr;}.v76-person{grid-template-columns:58px minmax(0,1fr);}.v76-person-avatar{width:58px;height:67px;}.v76-person-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}.v76-person-actions button{width:100%;}
  .v76-admin-row{grid-template-columns:1fr;}
}
@media (max-width:430px){
  .v76-profile-layout{gap:9px!important;}.v76-profile-hero{grid-template-columns:112px minmax(0,1fr)!important;min-height:190px!important;}.v76-profile-hero .v39-avatar-ring{width:112px!important;height:166px!important;}.v76-profile-card{padding:9px!important;}.v76-equipment-panel{padding:10px!important;}.v76-equip-slot{min-height:98px!important;}
  .v38-loc-monster{grid-template-columns:74px minmax(0,1fr) 56px!important;min-height:108px!important;}.v38-mob-icon{width:74px!important;height:84px!important;min-width:74px!important;}.v38-mob-actions,.v38-mob-actions button{width:56px!important;min-width:56px!important;}
  .v62-monster-card{grid-template-columns:80px minmax(0,1fr) 42px!important;min-height:112px!important;}.v56-monster-avatar{width:80px!important;height:92px!important;min-width:80px!important;}.v64-monster-tools,.v64-monster-tools button{width:42px!important;}
}

/* ---- css/v77-ui.css ---- */
/* Aldos RPG v77 — responsive composition and interaction repair layer. */
:root{
  --v77-bg:#05090c;
  --v77-surface:#0d151b;
  --v77-surface-2:#121d25;
  --v77-line:rgba(121,245,184,.16);
  --v77-line-strong:rgba(121,245,184,.42);
  --v77-mint:#79f5b8;
  --v77-lime:#b8ff3d;
  --v77-cyan:#62d9ff;
  --v77-violet:#b58cff;
  --v77-rose:#ff728d;
  --v77-text:#f4f8f6;
  --v77-muted:#91a29d;
  --v77-radius:20px;
}
html,body{background:radial-gradient(circle at 8% -8%,rgba(75,199,137,.12),transparent 30%),radial-gradient(circle at 92% 8%,rgba(66,150,194,.10),transparent 32%),linear-gradient(180deg,#05090c,#070b0e 48%,#05080a)!important;}
body.v77-ui{overflow-x:hidden!important;color:var(--v77-text)!important;}
body.v77-ui .app-shell{min-height:100dvh!important;padding-bottom:0!important;background:transparent!important;}
body.v77-ui .screen.v76-screen{width:min(1480px,100%)!important;max-width:1480px!important;margin:0 auto!important;padding:18px clamp(12px,2vw,28px) 98px!important;background:transparent!important;}
body.v77-ui button{transition:transform .16s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease,color .18s ease,opacity .18s ease!important;}
body.v77-ui button:hover{transform:translateY(-1px)!important;}
body.v77-ui button:active{transform:translateY(0) scale(.985)!important;}
body.v77-ui img{user-select:none;-webkit-user-drag:none;}

/* Header */
body.v77-ui .v76-topbar{min-height:68px!important;padding:9px clamp(10px,2vw,24px)!important;background:linear-gradient(180deg,rgba(7,13,17,.97),rgba(6,10,13,.93))!important;border-bottom-color:rgba(121,245,184,.14)!important;}
body.v77-ui .v76-title-mark{border-color:rgba(121,245,184,.34)!important;background:linear-gradient(145deg,rgba(121,245,184,.13),rgba(98,217,255,.05))!important;color:var(--v77-mint)!important;}
body.v77-ui .v76-network i{background:var(--v77-mint)!important;box-shadow:0 0 13px rgba(121,245,184,.72)!important;}

/* Correctly centred bottom navigation. v76 inherited an old translate/width combination. */
body.v77-ui .v76-bottom-nav{
  left:50%!important;right:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;
  width:min(760px,calc(100% - 24px))!important;max-width:760px!important;
  transform:translateX(-50%)!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;padding:6px!important;
  border:1px solid rgba(121,245,184,.18)!important;border-radius:20px!important;
  background:linear-gradient(180deg,rgba(12,20,25,.95),rgba(7,12,15,.96))!important;
  box-shadow:0 20px 55px rgba(0,0,0,.52),inset 0 1px rgba(255,255,255,.035)!important;
}
body.v77-ui .v76-bottom-nav button{position:relative!important;min-height:48px!important;border-radius:14px!important;overflow:hidden!important;color:#8fa19b!important;}
body.v77-ui .v76-bottom-nav button::after{content:"";position:absolute;inset:auto 20% 3px;height:2px;border-radius:4px;background:currentColor;opacity:0;transform:scaleX(.3);transition:.18s ease;}
body.v77-ui .v76-bottom-nav button:hover,body.v77-ui .v76-bottom-nav button.active{border-color:color-mix(in srgb,currentColor 42%,transparent)!important;background:color-mix(in srgb,currentColor 11%,transparent)!important;color:#effff7!important;box-shadow:inset 0 1px color-mix(in srgb,currentColor 20%,transparent)!important;}
body.v77-ui .v76-bottom-nav button:hover::after,body.v77-ui .v76-bottom-nav button.active::after{opacity:.9;transform:scaleX(1);}
body.v77-ui .v76-bottom-nav [data-nav-kind="location"]{--nav-color:var(--v77-mint);}
body.v77-ui .v76-bottom-nav [data-nav-kind="inventory"]{--nav-color:var(--v77-cyan);}
body.v77-ui .v76-bottom-nav [data-nav-kind="abilities"]{--nav-color:var(--v77-violet);}
body.v77-ui .v76-bottom-nav [data-nav-kind="character"]{--nav-color:var(--v77-lime);}
body.v77-ui .v76-bottom-nav [data-nav-kind="friends"]{--nav-color:#ff91c8;}
body.v77-ui .v76-bottom-nav button:hover,body.v77-ui .v76-bottom-nav button.active{color:var(--nav-color,var(--v77-mint))!important;}
body.v77-ui .v76-bottom-nav .nav-glyph{border-color:currentColor!important;}

/* Side panel: subtle moving light, readable portrait, per-section feedback. */
body.v77-ui .v76-side{width:min(370px,92vw)!important;padding:14px 14px max(18px,env(safe-area-inset-bottom))!important;isolation:isolate!important;overflow-x:hidden!important;background:radial-gradient(circle at 12% 5%,rgba(121,245,184,.14),transparent 30%),radial-gradient(circle at 100% 52%,rgba(98,217,255,.08),transparent 34%),linear-gradient(155deg,#0e191d 0%,#071014 55%,#071012 100%)!important;border-right-color:rgba(121,245,184,.27)!important;}
body.v77-ui .v76-side::before{inset:-30%!important;z-index:-1!important;background:conic-gradient(from 30deg at 50% 50%,transparent 0 25%,rgba(121,245,184,.055) 34%,transparent 43% 65%,rgba(98,217,255,.04) 74%,transparent 82%)!important;animation:v77-side-drift 14s linear infinite!important;}
body.v77-ui .v76-side::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 22%,rgba(255,255,255,.022) 46%,transparent 69%);background-size:240% 100%;animation:v77-side-sweep 9s ease-in-out infinite;}
@keyframes v77-side-drift{to{transform:rotate(360deg)}}
@keyframes v77-side-sweep{0%,100%{background-position:120% 0}50%{background-position:-120% 0}}
body.v77-ui .v76-side-head{grid-template-columns:78px minmax(0,1fr) 40px!important;padding:11px!important;border-color:rgba(121,245,184,.20)!important;background:rgba(255,255,255,.033)!important;}
body.v77-ui .v76-side-portrait{width:78px!important;height:100px!important;border-color:rgba(121,245,184,.38)!important;}
body.v77-ui .v76-side-portrait img,body.v77-ui .v76-side-portrait .class-inline-image{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:50% 12%!important;transform:scale(1.12)!important;border:0!important;border-radius:0!important;}
body.v77-ui .v76-side-nav{gap:8px!important;}
body.v77-ui .v76-side-nav button{position:relative!important;overflow:hidden!important;min-height:46px!important;padding:10px 12px!important;border-color:rgba(255,255,255,.09)!important;background:linear-gradient(145deg,rgba(26,38,44,.88),rgba(12,20,24,.88))!important;}
body.v77-ui .v76-side-nav button::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:0 4px 4px 0;background:var(--side-color,#84948f);opacity:.55;}
body.v77-ui .v76-side-nav [data-side-kind="character"]{--side-color:var(--v77-lime)}
body.v77-ui .v76-side-nav [data-side-kind="inventory"]{--side-color:var(--v77-cyan)}
body.v77-ui .v76-side-nav [data-side-kind="abilities"]{--side-color:var(--v77-violet)}
body.v77-ui .v76-side-nav [data-side-kind="friends"]{--side-color:#ff91c8}
body.v77-ui .v76-side-nav [data-side-kind="settings"]{--side-color:#9fb0aa}
body.v77-ui .v76-side-nav [data-side-kind="characters"]{--side-color:var(--v77-mint)}
body.v77-ui .v76-side-nav [data-side-kind="admin"]{--side-color:#6fe7ff}
body.v77-ui .v76-side-nav [data-side-kind="logout"]{--side-color:var(--v77-rose)}
body.v77-ui .v76-side-nav button:hover,body.v77-ui .v76-side-nav button.active{border-color:color-mix(in srgb,var(--side-color) 48%,transparent)!important;background:color-mix(in srgb,var(--side-color) 10%,#10181d)!important;color:#fff!important;box-shadow:0 0 20px color-mix(in srgb,var(--side-color) 9%,transparent)!important;}
body.v77-ui .v76-side-nav button.active::before{opacity:1;box-shadow:0 0 12px var(--side-color);}

/* Fix all contextual character images constrained by legacy 30px max-width. */
body.v77-ui .v76-profile-hero .class-inline-image,
body.v77-ui .v57-player-avatar .class-inline-image,
body.v77-ui .v74-online-art .class-asset-image,
body.v77-ui .v76-character-art .class-asset-image,
body.v77-ui .v71-char-art .class-asset-image,
body.v77-ui .v76-person-avatar .class-asset-image{
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:50% 10%!important;border:0!important;border-radius:0!important;
}

/* Location composition */
body.v77-ui .location-hero{width:100%!important;display:grid!important;grid-template-columns:minmax(300px,1fr) minmax(320px,auto)!important;gap:22px!important;align-items:center!important;padding:22px!important;border-radius:24px!important;border-color:rgba(121,245,184,.18)!important;background:radial-gradient(circle at 100% 0%,rgba(98,217,255,.08),transparent 35%),radial-gradient(circle at 0 100%,rgba(121,245,184,.08),transparent 38%),linear-gradient(145deg,#111b21,#0a1014)!important;}
body.v77-ui .v37-location-text p{max-width:720px!important;font-size:14px!important;line-height:1.55!important;color:#a8b7b2!important;}
body.v77-ui .location-actions{display:grid!important;grid-template-columns:repeat(2,minmax(150px,1fr))!important;gap:9px!important;margin:0!important;}
body.v77-ui .location-btn{min-height:48px!important;padding:10px 14px!important;border:1px solid rgba(121,245,184,.22)!important;background:linear-gradient(145deg,rgba(69,105,67,.55),rgba(31,54,48,.62))!important;color:#f3fff8!important;box-shadow:none!important;}
body.v77-ui .v73-location-sections{gap:12px!important;}
body.v77-ui .v73-location-section{border-color:rgba(121,245,184,.13)!important;border-radius:19px!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(13,21,26,.98),rgba(8,13,16,.98))!important;}
body.v77-ui .v73-location-section summary{min-height:60px!important;padding:12px 15px!important;}
body.v77-ui .v73-section-body{padding:10px!important;}
body.v77-ui .v38-location-monster-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;gap:11px!important;}
body.v77-ui .v38-loc-monster{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;grid-template-areas:"art main" "actions actions"!important;gap:11px 13px!important;min-width:0!important;min-height:188px!important;padding:12px!important;border-radius:20px!important;border:1px solid rgba(121,245,184,.14)!important;background:radial-gradient(circle at 8% 25%,rgba(121,245,184,.06),transparent 36%),linear-gradient(145deg,#141e26,#0c1318)!important;overflow:hidden!important;}
body.v77-ui .v38-loc-monster:hover{border-color:rgba(121,245,184,.34)!important;box-shadow:0 14px 32px rgba(0,0,0,.27),0 0 24px rgba(121,245,184,.045)!important;}
body.v77-ui .v38-mob-icon{grid-area:art!important;width:112px!important;height:122px!important;min-width:112px!important;border-radius:18px!important;overflow:hidden!important;border:1px solid rgba(121,245,184,.22)!important;background:radial-gradient(circle at center,rgba(121,245,184,.08),rgba(3,7,9,.55))!important;}
body.v77-ui .v38-mob-icon img,body.v77-ui .v38-mob-icon .monster-asset-image{width:138px!important;height:138px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;transform:scale(1.08)!important;}
body.v77-ui .v38-mob-main{grid-area:main!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:8px!important;min-width:0!important;}
body.v77-ui .v38-mob-head{align-items:flex-start!important;gap:7px!important;}
body.v77-ui .v38-mob-head h3{margin:0!important;font-size:16px!important;line-height:1.18!important;overflow-wrap:anywhere!important;}
body.v77-ui .v38-mob-flags{display:flex!important;flex-wrap:wrap!important;gap:4px!important;}
body.v77-ui .v38-mob-main>.bar{width:100%!important;max-width:none!important;height:8px!important;}
body.v77-ui .v38-mob-stats{display:flex!important;gap:8px!important;flex-wrap:wrap!important;font-size:10px!important;}
body.v77-ui .v38-mob-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)!important;grid-template-rows:none!important;gap:8px!important;width:100%!important;align-self:end!important;}
body.v77-ui .v38-mob-actions button{width:100%!important;min-width:0!important;min-height:42px!important;height:auto!important;padding:8px 12px!important;font-size:11px!important;border-radius:13px!important;box-shadow:none!important;}
body.v77-ui .v38-mob-actions button::after{content:none!important;}
body.v77-ui .v38-mob-actions .primary{border:1px solid rgba(184,255,61,.38)!important;background:linear-gradient(180deg,#b8ff3d,#83d927)!important;color:#071006!important;font-weight:900!important;}

/* Profile: larger portrait, stable attributes and richer equipment slots. */
body.v77-ui .v76-profile-layout{width:100%!important;max-width:1380px!important;grid-template-columns:minmax(350px,410px) minmax(560px,1fr)!important;grid-template-areas:"hero equip" "stats equip"!important;gap:16px!important;}
body.v77-ui .v76-profile-hero{grid-template-columns:166px minmax(0,1fr)!important;grid-template-areas:"avatar info" "avatar exp"!important;gap:14px 18px!important;min-height:284px!important;padding:17px!important;}
body.v77-ui .v76-profile-hero .v39-avatar-ring{width:166px!important;height:250px!important;padding:6px!important;border-color:rgba(121,245,184,.34)!important;background:linear-gradient(160deg,rgba(121,245,184,.17),rgba(98,217,255,.08),rgba(8,15,18,.92))!important;}
body.v77-ui .v76-profile-hero .avatar,body.v77-ui .v76-profile-hero .avatar img,body.v77-ui .v76-profile-hero .avatar .class-inline-image{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:cover!important;object-position:50% 8%!important;transform:scale(1.08)!important;}
body.v77-ui .v76-profile-name-line{align-items:center!important;flex-wrap:nowrap!important;}
body.v77-ui .v76-profile-name-line h2{font-size:27px!important;}
body.v77-ui .v76-profile-card{padding:14px!important;overflow:hidden!important;}
body.v77-ui .v76-profile-card .v39-stat-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;}
body.v77-ui .v76-profile-card .v39-resource-card{grid-column:span 3!important;min-width:0!important;}
body.v77-ui .v76-profile-card .v39-mini-stat{grid-column:span 2!important;min-width:0!important;}
body.v77-ui .v76-profile-card .v39-resource-card>div:first-child{grid-template-columns:auto minmax(0,1fr) auto!important;}
body.v77-ui .v76-profile-card .v39-resource-card small,body.v77-ui .v76-profile-card .v39-resource-card b{min-width:0!important;white-space:nowrap!important;}
body.v77-ui .v76-profile-card .v39-attr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
body.v77-ui .v76-profile-card .v39-attr-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:54px!important;padding:9px 11px!important;text-align:left!important;overflow:hidden!important;}
body.v77-ui .v76-profile-card .v39-attr-card small{min-width:0!important;font-size:10px!important;white-space:normal!important;line-height:1.15!important;}
body.v77-ui .v76-profile-card .v39-attr-card b{font-size:18px!important;}
body.v77-ui .v76-equipment-panel{padding:16px!important;}
body.v77-ui .v76-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;}
body.v77-ui .v76-equip-slot{grid-template-columns:78px minmax(0,1fr)!important;grid-template-rows:auto auto auto 1fr!important;grid-template-areas:"icon label" "icon item" "icon rarity" "icon effects"!important;gap:3px 12px!important;min-height:136px!important;padding:13px!important;}
body.v77-ui .v76-equip-slot .v39-slot-icon{width:78px!important;height:96px!important;max-width:none!important;max-height:none!important;}
body.v77-ui .v76-equip-slot .v39-slot-icon img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;padding:5px!important;}
body.v77-ui .v76-equip-slot .v39-slot-item{font-size:14px!important;font-weight:850!important;}
body.v77-ui .v77-slot-rarity{grid-area:rarity!important;color:var(--rarity-color,#aab5b1)!important;font-size:9px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important;}
body.v77-ui .v77-slot-effects{grid-area:effects!important;align-self:start!important;color:#b7c5c0!important;font-size:10px!important;line-height:1.35!important;overflow-wrap:anywhere!important;}
body.v77-ui .v76-equip-slot.two-hand-ghost{opacity:.62!important;filter:saturate(.35) grayscale(.12)!important;backdrop-filter:blur(1px)!important;}
body.v77-ui .v76-equip-slot.two-hand-ghost .v39-slot-icon{filter:grayscale(.7) blur(.45px)!important;}

/* Battle layout */
body.v77-ui .v63-battle-top{min-height:64px!important;padding:8px clamp(10px,2vw,22px)!important;}
body.v77-ui .battle-screen.v63-battle{width:min(1440px,100%)!important;max-width:1440px!important;margin:0 auto!important;padding:14px clamp(10px,1.8vw,24px) 30px!important;display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;grid-template-areas:"timer timer" "monsters players" "log log"!important;gap:12px!important;align-items:start!important;background:radial-gradient(circle at 20% 0%,rgba(98,217,255,.045),transparent 28%),radial-gradient(circle at 80% 8%,rgba(121,245,184,.045),transparent 30%),#060a0d!important;}
body.v77-ui .v63-turn-strip{grid-area:timer!important;grid-template-columns:48px minmax(0,1fr) auto!important;min-height:82px!important;padding:12px 14px!important;border-radius:20px!important;}
body.v77-ui .v63-arena-panel{grid-area:monsters!important;min-width:0!important;padding:12px!important;border-radius:20px!important;}
body.v77-ui .v63-party-panel{grid-area:players!important;min-width:0!important;padding:12px!important;border-radius:20px!important;}
body.v77-ui .v63-battle-log{grid-area:log!important;padding:0!important;border-radius:19px!important;overflow:hidden!important;}
body.v77-ui .v63-section-head{min-height:38px!important;margin-bottom:9px!important;}
body.v77-ui .v57-monster-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;gap:10px!important;}
body.v77-ui .v62-monster-card{display:grid!important;grid-template-columns:122px minmax(0,1fr)!important;grid-template-areas:"avatar info" "tools tools"!important;gap:10px 13px!important;min-width:0!important;min-height:196px!important;padding:12px!important;border-radius:20px!important;contain:layout paint!important;overflow:hidden!important;}
body.v77-ui .v62-monster-card.selected-target{border-color:rgba(184,255,61,.62)!important;box-shadow:0 0 0 1px rgba(184,255,61,.15),0 16px 34px rgba(0,0,0,.28),0 0 30px rgba(184,255,61,.07)!important;}
body.v77-ui .v56-monster-avatar{grid-area:avatar!important;width:122px!important;height:132px!important;min-width:122px!important;border-radius:18px!important;overflow:hidden!important;}
body.v77-ui .v56-monster-avatar img,body.v77-ui .v56-monster-avatar .battle-monster-art,body.v77-ui .v56-monster-avatar .monster-asset-image{width:154px!important;height:154px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transform:scale(1.04)!important;}
body.v77-ui .v56-monster-info{grid-area:info!important;display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;}
body.v77-ui .v56-monster-head{display:flex!important;align-items:flex-start!important;flex-wrap:wrap!important;gap:6px!important;}
body.v77-ui .v56-monster-head h2{font-size:17px!important;line-height:1.15!important;overflow-wrap:anywhere!important;}
body.v77-ui .v56-monster-status-line{min-height:27px!important;margin:8px 0!important;}
body.v77-ui .v56-monster-hp-row{grid-template-columns:auto minmax(90px,1fr)!important;gap:9px!important;font-size:10px!important;}
body.v77-ui .v64-monster-tools{grid-area:tools!important;display:grid!important;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)!important;gap:8px!important;width:100%!important;}
body.v77-ui .v64-monster-tools:has(>button:only-child){grid-template-columns:1fr!important;}
body.v77-ui .v64-monster-tools button{width:100%!important;height:auto!important;min-height:42px!important;padding:8px 12px!important;border-radius:13px!important;font-size:11px!important;font-weight:850!important;}
body.v77-ui .v64-card-attack{border:1px solid rgba(184,255,61,.48)!important;background:linear-gradient(180deg,#b8ff3d,#82d827)!important;color:#071006!important;}
body.v77-ui .v62-monster-info{border:1px solid rgba(98,217,255,.24)!important;background:rgba(98,217,255,.07)!important;color:#bfefff!important;}
body.v77-ui .v62-target-corner{top:8px!important;right:8px!important;font-size:8px!important;}
body.v77-ui .v57-party-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
body.v77-ui .v62-player-card{min-width:0!important;min-height:154px!important;padding:11px!important;border-radius:19px!important;overflow:hidden!important;}
body.v77-ui .v57-player-head{display:grid!important;grid-template-columns:74px minmax(0,1fr) auto!important;gap:11px!important;align-items:center!important;}
body.v77-ui .v57-player-avatar{width:74px!important;height:92px!important;max-width:none!important;max-height:none!important;border-radius:15px!important;}
body.v77-ui .v57-player-avatar img,body.v77-ui .v57-player-avatar .class-inline-image{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:50% 9%!important;transform:scale(1.08)!important;}
body.v77-ui .v57-player-name{min-width:0!important;}
body.v77-ui .v57-player-name h3{font-size:15px!important;line-height:1.18!important;overflow-wrap:anywhere!important;}
body.v77-ui .v57-player-action{max-width:140px!important;min-height:34px!important;padding:6px 9px!important;white-space:normal!important;line-height:1.1!important;}
body.v77-ui .v57-player-effects{display:flex!important;flex-wrap:wrap!important;gap:5px!important;min-height:24px!important;margin:8px 0!important;}
body.v77-ui .v57-player-bars{grid-template-columns:1fr 1fr!important;gap:9px!important;}
body.v77-ui .v57-stat-row{grid-template-columns:auto minmax(80px,1fr)!important;gap:7px!important;}
body.v77-ui .v62-log-head{min-height:58px!important;padding:10px 13px!important;}
body.v77-ui .battle-log-scroll{max-height:230px!important;}
body.v77-ui .v63-edge-tab{top:50%!important;transform:translateY(-50%)!important;}

/* Travel: drift-resistant timer, clear route and progress. */
body.v77-ui .v77-travel-top{grid-template-columns:minmax(0,1fr) auto!important;}
body.v77-ui .v77-travel-screen{min-height:calc(100dvh - 68px)!important;display:grid!important;place-items:center!important;padding:24px!important;}
body.v77-ui .v77-travel-card{position:relative!important;width:min(640px,100%)!important;max-width:640px!important;margin:0 auto!important;padding:30px!important;border:1px solid rgba(121,245,184,.22)!important;border-radius:28px!important;background:radial-gradient(circle at 50% 0%,rgba(98,217,255,.10),transparent 35%),linear-gradient(145deg,#121d24,#091014)!important;box-shadow:0 28px 80px rgba(0,0,0,.42)!important;overflow:hidden!important;}
body.v77-ui .v77-travel-card::before{content:"";position:absolute;inset:-60% -20%;pointer-events:none;background:conic-gradient(from 0deg,transparent,rgba(121,245,184,.035),transparent 25%);animation:v77-travel-orbit 7s linear infinite;}
@keyframes v77-travel-orbit{to{transform:rotate(360deg)}}
body.v77-ui .v77-travel-card>*{position:relative;z-index:1;}
body.v77-ui .v77-travel-route{display:grid!important;grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;margin-bottom:22px!important;color:#b8c6c1!important;font-size:11px!important;}
body.v77-ui .v77-travel-route span:first-child{text-align:right!important;}
body.v77-ui .v77-travel-route i{height:1px;background:linear-gradient(90deg,transparent,var(--v77-mint),transparent);position:relative;}
body.v77-ui .v77-travel-route i::after{content:"";position:absolute;top:50%;left:0;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--v77-mint);box-shadow:0 0 12px rgba(121,245,184,.75);animation:v77-route-dot 2s ease-in-out infinite;}
@keyframes v77-route-dot{0%,100%{left:0}50%{left:calc(100% - 8px)}}
body.v77-ui .v77-travel-card .travel-icon{display:grid!important;place-items:center!important;width:68px!important;height:68px!important;margin:0 auto 12px!important;border:1px solid rgba(98,217,255,.28)!important;border-radius:22px!important;background:rgba(98,217,255,.08)!important;color:var(--v77-cyan)!important;font-size:32px!important;}
body.v77-ui .v77-travel-card>small{display:block!important;color:var(--v77-mint)!important;font-size:9px!important;font-weight:900!important;letter-spacing:.16em!important;}
body.v77-ui .v77-travel-card h2{margin:7px 0 9px!important;font-size:30px!important;}
body.v77-ui .v77-travel-card p{max-width:520px!important;margin:0 auto!important;color:#a6b5b0!important;line-height:1.55!important;}
body.v77-ui .v77-travel-timer{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:7px!important;margin:21px 0 10px!important;}
body.v77-ui .v77-travel-timer b{font-size:27px!important;color:#eaffca!important;}
body.v77-ui .v77-travel-timer span{color:var(--v77-muted)!important;font-size:11px!important;}
body.v77-ui .v77-travel-card .bar.travel{height:10px!important;margin:0!important;}
body.v77-ui .v77-travel-card .bar.travel i{background:linear-gradient(90deg,var(--v77-cyan),var(--v77-mint),var(--v77-lime))!important;transition:none!important;}

/* Social page runtime now loads; keep its rows stable on narrow widths. */
body.v77-ui .v76-person{min-width:0!important;}
body.v77-ui .v76-person-actions button{white-space:nowrap!important;}

@media (max-width:1100px){
  body.v77-ui .v76-profile-layout{grid-template-columns:1fr!important;grid-template-areas:"hero" "stats" "equip"!important;max-width:900px!important;}
  body.v77-ui .v76-profile-hero{grid-template-columns:180px minmax(0,1fr)!important;}
  body.v77-ui .v76-profile-hero .v39-avatar-ring{width:180px!important;height:250px!important;}
  body.v77-ui .battle-screen.v63-battle{grid-template-columns:1fr!important;grid-template-areas:"timer" "monsters" "players" "log"!important;max-width:920px!important;}
  body.v77-ui .v57-party-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media (max-width:760px){
  body.v77-ui .screen.v76-screen{padding:10px 9px 86px!important;}
  body.v77-ui .v76-bottom-nav{bottom:max(5px,env(safe-area-inset-bottom))!important;width:calc(100% - 10px)!important;gap:3px!important;padding:5px!important;border-radius:17px!important;}
  body.v77-ui .v76-bottom-nav button{min-height:45px!important;font-size:9px!important;}
  body.v77-ui .location-hero{grid-template-columns:1fr!important;gap:14px!important;padding:14px!important;}
  body.v77-ui .location-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.v77-ui .v38-location-monster-grid{grid-template-columns:1fr!important;gap:9px!important;}
  body.v77-ui .v38-loc-monster{grid-template-columns:96px minmax(0,1fr)!important;min-height:168px!important;padding:10px!important;}
  body.v77-ui .v38-mob-icon{width:96px!important;height:108px!important;min-width:96px!important;}
  body.v77-ui .v38-mob-icon img,body.v77-ui .v38-mob-icon .monster-asset-image{width:124px!important;height:124px!important;}
  body.v77-ui .v38-mob-head h3{font-size:15px!important;}
  body.v77-ui .v76-profile-hero{grid-template-columns:128px minmax(0,1fr)!important;grid-template-areas:"avatar info" "avatar exp"!important;min-height:218px!important;padding:12px!important;}
  body.v77-ui .v76-profile-hero .v39-avatar-ring{width:128px!important;height:192px!important;}
  body.v77-ui .v76-profile-name-line h2{font-size:21px!important;}
  body.v77-ui .v76-profile-card .v39-resource-card{grid-column:1/-1!important;}
  body.v77-ui .v76-profile-card .v39-mini-stat{grid-column:span 2!important;}
  body.v77-ui .v76-slot-grid{grid-template-columns:1fr!important;}
  body.v77-ui .v76-equip-slot{grid-template-columns:72px minmax(0,1fr)!important;min-height:126px!important;}
  body.v77-ui .v76-equip-slot .v39-slot-icon{width:72px!important;height:88px!important;}
  body.v77-ui .battle-screen.v63-battle{padding:8px 7px 22px!important;gap:8px!important;}
  body.v77-ui .v63-turn-strip{grid-template-columns:42px minmax(0,1fr) auto!important;min-height:76px!important;padding:10px!important;}
  body.v77-ui .v63-turn-strip .turn-head p{font-size:10px!important;line-height:1.25!important;}
  body.v77-ui .v63-arena-panel,body.v77-ui .v63-party-panel{padding:9px!important;}
  body.v77-ui .v57-monster-grid,body.v77-ui .v57-party-grid{grid-template-columns:1fr!important;gap:8px!important;}
  body.v77-ui .v62-monster-card{grid-template-columns:96px minmax(0,1fr)!important;min-height:174px!important;padding:9px!important;gap:8px 10px!important;}
  body.v77-ui .v56-monster-avatar{width:96px!important;height:110px!important;min-width:96px!important;}
  body.v77-ui .v56-monster-avatar img,body.v77-ui .v56-monster-avatar .battle-monster-art{width:132px!important;height:132px!important;}
  body.v77-ui .v56-monster-head h2{font-size:15px!important;}
  body.v77-ui .v56-monster-hp-row{grid-template-columns:1fr!important;gap:4px!important;}
  body.v77-ui .v64-monster-tools{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)!important;}
  body.v77-ui .v62-player-card{min-height:152px!important;}
  body.v77-ui .v57-player-head{grid-template-columns:64px minmax(0,1fr)!important;}
  body.v77-ui .v57-player-avatar{width:64px!important;height:82px!important;}
  body.v77-ui .v57-player-action{grid-column:1/-1!important;width:100%!important;max-width:none!important;justify-content:center!important;}
  body.v77-ui .v57-player-bars{grid-template-columns:1fr!important;}
  body.v77-ui .v77-travel-screen{min-height:calc(100dvh - 64px)!important;padding:12px!important;}
  body.v77-ui .v77-travel-card{padding:22px 15px!important;border-radius:23px!important;}
  body.v77-ui .v77-travel-route{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;font-size:9px!important;}
  body.v77-ui .v77-travel-card h2{font-size:24px!important;}
  body.v77-ui .v76-social-hero{grid-template-columns:1fr!important;}
  body.v77-ui .v76-person{grid-template-columns:62px minmax(0,1fr)!important;}
  body.v77-ui .v76-person-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(90px,1fr))!important;width:100%!important;}
}

@media (max-width:430px){
  body.v77-ui .v76-topbar{grid-template-columns:auto minmax(0,1fr) auto!important;}
  body.v77-ui .v76-title-copy p{max-width:190px!important;}
  body.v77-ui .location-actions{grid-template-columns:1fr 1fr!important;}
  body.v77-ui .location-btn{min-height:46px!important;padding:8px!important;font-size:11px!important;}
  body.v77-ui .v38-loc-monster{grid-template-columns:88px minmax(0,1fr)!important;gap:8px 9px!important;}
  body.v77-ui .v38-mob-icon{width:88px!important;height:100px!important;min-width:88px!important;}
  body.v77-ui .v38-mob-icon img,body.v77-ui .v38-mob-icon .monster-asset-image{width:116px!important;height:116px!important;}
  body.v77-ui .v38-mob-actions button{min-height:40px!important;padding:7px!important;font-size:10px!important;}
  body.v77-ui .v76-profile-hero{grid-template-columns:116px minmax(0,1fr)!important;min-height:202px!important;gap:9px!important;}
  body.v77-ui .v76-profile-hero .v39-avatar-ring{width:116px!important;height:176px!important;}
  body.v77-ui .v76-profile-name-line h2{font-size:19px!important;}
  body.v77-ui .v76-profile-card .v39-mini-stat{grid-column:1/-1!important;min-height:54px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;text-align:left!important;}
  body.v77-ui .v76-profile-card .v39-attr-grid{grid-template-columns:1fr!important;}
  body.v77-ui .v62-monster-card{grid-template-columns:88px minmax(0,1fr)!important;}
  body.v77-ui .v56-monster-avatar{width:88px!important;height:102px!important;min-width:88px!important;}
  body.v77-ui .v56-monster-avatar img,body.v77-ui .v56-monster-avatar .battle-monster-art{width:122px!important;height:122px!important;}
  body.v77-ui .v56-monster-head{display:block!important;}
  body.v77-ui .v62-threat{display:inline-flex!important;margin-top:4px!important;}
  body.v77-ui .v57-player-head{grid-template-columns:58px minmax(0,1fr)!important;}
  body.v77-ui .v57-player-avatar{width:58px!important;height:76px!important;}
  body.v77-ui .v63-turn-meta{align-self:start!important;}
}

@media (prefers-reduced-motion:reduce){
  body.v77-ui *,body.v77-ui *::before,body.v77-ui *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important;}
}

/* ---- css/v78-ui.css ---- */
/* Aldos RPG v78 — battle workspace, research, chat and durability. */
:root{
  --v78-bg:#070b0d;
  --v78-panel:#0d1519;
  --v78-panel-2:#111c21;
  --v78-line:rgba(150,184,169,.15);
  --v78-mint:#78efb0;
  --v78-lime:#b7ef4a;
  --v78-cyan:#67d4e8;
  --v78-gold:#e9c66b;
  --v78-muted:#8d9d97;
}

/* Calm side menu: no animated gradient and no phantom page scrollbar. */
body.v77-ui{overflow-x:hidden!important;}
body.v77-ui .v76-side{
  background:#0b1216!important;
  background-image:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:auto!important;
}
body.v77-ui .v76-side::before,
body.v77-ui .v76-side::after{content:none!important;display:none!important;animation:none!important;}

/* Desktop battle composition. */
body.v77-ui .v63-battle-top{
  min-height:72px!important;
  height:auto!important;
  padding:10px clamp(14px,2vw,28px)!important;
  grid-template-columns:46px minmax(0,1fr) auto!important;
}
body.v77-ui .battle-screen.v63-battle{
  width:min(1540px,100%)!important;
  max-width:1540px!important;
  grid-template-columns:minmax(560px,1.25fr) minmax(380px,.75fr)!important;
  grid-template-areas:"timer timer" "monsters players" "log log"!important;
  gap:14px!important;
  padding:16px clamp(12px,2vw,30px) 32px!important;
}
body.v77-ui .v63-turn-strip{
  width:100%!important;
  min-width:0!important;
  grid-template-columns:52px minmax(0,1fr) auto!important;
}
body.v77-ui .v63-turn-strip .bar.turn{grid-column:2/-1!important;width:100%!important;max-width:none!important;}
body.v77-ui .v63-arena-panel,
body.v77-ui .v63-party-panel{min-width:0!important;width:100%!important;}
body.v77-ui .v57-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.v77-ui .v62-monster-card{
  grid-template-columns:112px minmax(0,1fr)!important;
  grid-template-areas:"art info" "tools tools"!important;
  min-height:205px!important;
  align-items:center!important;
}
body.v77-ui .v56-monster-avatar{grid-area:art!important;width:112px!important;height:132px!important;min-width:112px!important;}
body.v77-ui .v56-monster-info{grid-area:info!important;}
body.v77-ui .v64-monster-tools{
  grid-area:tools!important;
  display:grid!important;
  grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)!important;
  width:100%!important;
}
body.v77-ui .v64-monster-tools button{
  width:100%!important;
  min-height:42px!important;
  height:auto!important;
  font-size:11px!important;
  padding:8px 10px!important;
}

/* Full-height battle drawers: skills left, chat right. */
body.v77-ui .v78-left-drawer,
body.v77-ui .v78-chat-drawer{
  position:fixed!important;
  top:0!important;
  bottom:0!important;
  width:min(420px,92vw)!important;
  height:100dvh!important;
  max-height:none!important;
  border-radius:0!important;
  z-index:120!important;
  background:#0a1115!important;
  box-shadow:0 0 70px rgba(0,0,0,.62)!important;
  overflow:hidden!important;
  transition:transform .34s cubic-bezier(.2,.8,.2,1)!important;
}
body.v77-ui .v78-left-drawer{
  left:0!important;right:auto!important;
  transform:translateX(-103%)!important;
  border:0!important;border-right:1px solid rgba(120,239,176,.24)!important;
}
body.v77-ui .v78-left-drawer.open{transform:translateX(0)!important;}
body.v77-ui .v78-chat-drawer{
  right:0!important;left:auto!important;
  transform:translateX(103%)!important;
  border:0!important;border-left:1px solid rgba(103,212,232,.24)!important;
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
}
body.v77-ui .v78-chat-drawer.open{transform:translateX(0)!important;}
body.v77-ui .v78-left-drawer .v17-skill-scroll{
  height:calc(100dvh - 86px)!important;
  max-height:none!important;
  overflow-y:auto!important;
  padding-bottom:max(24px,env(safe-area-inset-bottom))!important;
}
body.v77-ui .v78-support-separator{height:1px;margin:18px 0;background:linear-gradient(90deg,transparent,rgba(120,239,176,.35),transparent);}
body.v77-ui .v78-help-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;}
body.v77-ui .v63-edge-tab{z-index:95!important;background:#0d161a!important;border-color:rgba(255,255,255,.15)!important;}
body.v77-ui .v78-skill-tab{left:0!important;color:var(--v78-lime)!important;}
body.v77-ui .v78-chat-tab{right:0!important;color:var(--v78-cyan)!important;}

/* Chat */








.v78-chat-message{display:grid;grid-template-columns:minmax(70px,1fr) minmax(0,5fr);grid-template-areas:"name text" ". time";gap:2px 9px;padding:9px 5px;border-bottom:1px solid rgba(255,255,255,.055);}
.v78-chat-message>b{grid-area:name;color:var(--v78-mint);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.v78-chat-message p{grid-area:text;margin:0;color:#e5ece9;font-size:12px;line-height:1.42;overflow-wrap:anywhere;}
.v78-chat-message time{grid-area:time;color:#60716b;font-size:8px;}
.v78-greizar-message{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;margin:7px 0;padding:11px;border:1px solid rgba(233,198,107,.18);border-radius:14px;background:rgba(233,198,107,.055);}
.v78-greizar-message>div{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(233,198,107,.13);color:var(--v78-gold);font-weight:900;}
.v78-greizar-message p{display:grid;gap:3px;margin:0;}
.v78-greizar-message b{color:#ffe4a0;font-size:11px;}
.v78-greizar-message span{color:#d5d8ce;font-size:11px;line-height:1.4;}
.v78-greizar-message small{color:#716e5e;font-size:8px;}
.v78-chat-empty{display:grid;place-items:center;min-height:180px;padding:24px;text-align:center;color:#71817c;font-size:11px;line-height:1.5;}





.v78-location-chat{z-index:150!important;}
.v78-location-chat-tab{position:fixed;left:0;top:58%;z-index:94;width:26px;height:78px;padding:0!important;border:1px solid rgba(150,184,169,.14)!important;border-left:0!important;border-radius:0 11px 11px 0!important;background:#11181c!important;color:#74817d!important;box-shadow:none!important;font-size:15px!important;}
.v78-location-chat-tab:hover,.v78-location-chat-tab.open{color:var(--v78-cyan)!important;border-color:rgba(103,212,232,.25)!important;background:#101b20!important;}
.v78-location-chat-fade{position:fixed;inset:0;z-index:140;background:rgba(1,4,6,.6);backdrop-filter:blur(2px);}

/* Party collapse is intended for phones and does not hide information on desktop. */
.v78-party-toggle{display:none!important;}

/* Research card */
.v78-monster-sheet{display:grid!important;gap:12px!important;}
.v78-monster-intro{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:center;}
.v78-monster-intro .v65-monster-portrait{width:150px!important;height:170px!important;margin:0!important;}
.v78-monster-intro h2{margin:0 0 7px!important;}
.v78-locked-block{padding:13px;border:1px dashed rgba(141,157,151,.2);border-radius:13px;background:rgba(255,255,255,.02);color:#778680;font-size:10px;}
.v78-research{padding:13px;border:1px solid rgba(120,239,176,.16);border-radius:16px;background:#0b1317;}
.v78-research-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.v78-research-head small{color:var(--v78-mint);font-size:8px;font-weight:900;letter-spacing:.13em;}
.v78-research-head h3{margin:4px 0 0;font-size:17px;}
.v78-research-head>span{color:#81918b;font-size:9px;}
.v78-research-track{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:11px 0;}
.v78-research-track i{height:4px;border-radius:4px;background:#243139;}
.v78-research-track i.done{background:linear-gradient(90deg,var(--v78-mint),var(--v78-lime));box-shadow:0 0 8px rgba(120,239,176,.2);}
.v78-material-list{display:grid;gap:6px;}
.v78-material-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:rgba(255,255,255,.018);}
.v78-material-row>span{display:grid;grid-template-columns:8px minmax(0,1fr);grid-template-areas:"dot name" "dot note";gap:1px 7px;min-width:0;}
.v78-material-row i{grid-area:dot;align-self:stretch;border-radius:5px;background:#8b9b94;}
.v78-material-row b{grid-area:name;font-size:10px;overflow-wrap:anywhere;}
.v78-material-row small{grid-area:note;color:#708079;font-size:8px;}
.v78-material-row em{font-style:normal;color:#eaf4ef;font-size:11px;font-weight:900;}
.v78-material-row .tier-occasional{background:var(--v78-cyan);}
.v78-material-row .tier-rare{background:#ae89ff;}
.v78-material-row .tier-veryRare{background:var(--v78-gold);box-shadow:0 0 8px rgba(233,198,107,.35);}
.v78-research-unlock{width:100%;margin-top:10px;min-height:44px;}
.v78-bonus-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px;}
.v78-bonus-choice p{grid-column:1/-1;margin:0 0 3px;color:#92a19b;font-size:9px;}
.v78-bonus-choice button{min-height:40px;padding:7px;border:1px solid rgba(233,198,107,.23)!important;background:rgba(233,198,107,.07)!important;color:#f4dda0!important;font-size:9px!important;}
.v78-research-complete{margin-top:10px;padding:10px;border-radius:11px;background:rgba(120,239,176,.08);color:#b9f7d4;font-size:10px;text-align:center;}

/* Durability */
.v78-durability{display:grid;grid-template-columns:auto minmax(50px,1fr) auto;align-items:center;gap:6px;margin-top:7px;color:#81918b;font-size:8px;}
.v78-durability>div{height:4px;border-radius:5px;background:#253039;overflow:hidden;}
.v78-durability>div i{display:block;height:100%;background:linear-gradient(90deg,#e2b85c,var(--v78-mint));}
.v78-durability b{color:#aab8b3;font-size:8px;}
.v78-durability.broken{color:#e67c88;}
.v78-durability.broken>div i{background:#e25f6f;}

/* Compact result screen */
.v78-result{width:min(640px,100%);max-height:min(78dvh,760px);overflow-y:auto;padding:4px;color:#eef5f2;}
.v78-result>header{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center;padding:8px 4px 15px;border-bottom:1px solid var(--v78-line);}
.v78-result-icon{display:grid;place-items:center;width:56px;height:56px;border:1px solid rgba(120,239,176,.28);border-radius:17px;background:rgba(120,239,176,.08);color:var(--v78-mint);font-size:24px;}
.v78-result.lose .v78-result-icon{border-color:rgba(230,91,110,.28);background:rgba(230,91,110,.08);color:#ef7a8b;}
.v78-result header small{color:var(--v78-mint);font-size:8px;font-weight:900;letter-spacing:.14em;}
.v78-result.lose header small{color:#ef7a8b;}
.v78-result header h2{margin:3px 0;font-size:25px;}
.v78-result header p{margin:0;color:#8f9f99;font-size:10px;}
.v78-result-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0;}
.v78-result-summary>span{display:grid;gap:3px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.02);}
.v78-result-summary small{color:#788983;font-size:8px;}
.v78-result-summary b{font-size:16px;}
.v78-result-block{margin-top:10px;padding:11px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.018);}
.v78-result-block h3{margin:0 0 8px;font-size:12px;}
.v78-result-materials,.v78-durability-loss{display:grid;gap:6px;}
.v78-result-material,.v78-durability-loss span{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border-radius:10px;background:rgba(255,255,255,.025);}
.v78-result-material b,.v78-durability-loss b{font-size:9px;}
.v78-result-material small,.v78-durability-loss small{color:#7e8d87;font-size:8px;}
.v78-defeat-note{padding:12px;border-radius:12px;background:rgba(230,91,110,.06);color:#b7aaa9;font-size:10px;line-height:1.5;}
.v78-result-close{width:100%;margin-top:12px;}

/* Wider and calmer travel progress on desktop. */
body.v77-ui .v77-travel-card{width:min(860px,100%)!important;max-width:860px!important;}
body.v77-ui .v77-travel-card .bar.travel{width:100%!important;max-width:none!important;}

@media (max-width:1100px){
  body.v77-ui .battle-screen.v63-battle{
    grid-template-columns:1fr!important;
    grid-template-areas:"timer" "monsters" "players" "log"!important;
    max-width:940px!important;
  }
  body.v77-ui .v57-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media (max-width:760px){
  body.v77-ui .v63-battle-top{
    min-height:68px!important;
    padding:8px 9px!important;
    grid-template-columns:38px minmax(0,1fr) auto!important;
  }
  body.v77-ui .v63-battle-mark{width:38px!important;height:38px!important;}
  body.v77-ui .v63-battle-title{min-width:0!important;}
  body.v77-ui .v63-battle-title h1{font-size:15px!important;white-space:normal!important;line-height:1.15!important;}
  body.v77-ui .v63-header-state{min-width:0!important;padding:7px 8px!important;}
  body.v77-ui .v63-header-state span{font-size:8px!important;}
  body.v77-ui .battle-screen.v63-battle{padding:8px 7px 18px!important;gap:8px!important;}
  body.v77-ui .v63-turn-strip{grid-template-columns:42px minmax(0,1fr) auto!important;width:100%!important;overflow:hidden!important;}
  body.v77-ui .v63-turn-strip .bar.turn{grid-column:1/-1!important;}
  body.v77-ui .v57-monster-grid{grid-template-columns:1fr!important;}
  body.v77-ui .v62-monster-card{
    grid-template-columns:96px minmax(0,1fr)!important;
    min-height:184px!important;
  }
  body.v77-ui .v56-monster-avatar{width:96px!important;height:116px!important;min-width:96px!important;}
  body.v77-ui .v78-party-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    width:100%!important;
    min-height:38px!important;
    margin-top:8px!important;
    border:1px solid rgba(120,239,176,.14)!important;
    background:#0c1519!important;
    color:#9db0a9!important;
    font-size:9px!important;
  }
  body.v77-ui .v78-party-toggle i{font-style:normal;color:var(--v78-mint);}
  body.v77-ui .v63-edge-tab{top:56%!important;min-height:96px!important;width:30px!important;}
  body.v77-ui .v63-edge-tab span{font-size:7px!important;}
  .v78-monster-intro{grid-template-columns:104px minmax(0,1fr);gap:10px;}
  .v78-monster-intro .v65-monster-portrait{width:104px!important;height:128px!important;}
  .v78-bonus-choice{grid-template-columns:1fr!important;}
  .v78-result{max-height:74dvh;}
  .v78-result-summary{gap:5px;}
  .v78-result-summary>span{padding:8px;}
}

@media (max-width:430px){
  body.v77-ui .v63-header-state span{display:none!important;}
  body.v77-ui .v63-header-state{width:28px!important;height:28px!important;padding:0!important;display:grid!important;place-items:center!important;}
  body.v77-ui .v63-turn-meta small{display:none!important;}
  body.v77-ui .v78-left-drawer,
  body.v77-ui .v78-chat-drawer{width:calc(100vw - 18px)!important;}
  .v78-chat-message{grid-template-columns:minmax(60px,1fr) minmax(0,4.5fr);}
  .v78-result-summary small{font-size:7px;}
  .v78-result-summary b{font-size:14px;}
}

@media (prefers-reduced-motion:reduce){
  body.v77-ui .v78-left-drawer,
  body.v77-ui .v78-chat-drawer{transition-duration:.001ms!important;}
}

/* ---- css/v79-ui.css ---- */
:root{
  --v79-bg:#070b0e;
  --v79-panel:#11171b;
  --v79-panel-2:#0c1317;
  --v79-line:rgba(210,226,219,.13);
  --v79-text:#edf3f0;
  --v79-muted:#87968f;
  --v79-mint:#63d7bd;
  --v79-gold:#e8c76b;
  --v79-red:#ec7268;
  --v79-blue:#67cfe7;
}

/* Боковое меню больше не переливается и не создаёт собственную полосу прокрутки. */
body.v77-ui .v76-side,
body.v77-ui .v76-side::before,
body.v77-ui .v76-side::after{
  animation:none!important;
  background-image:none!important;
}
body.v77-ui .v76-side{overflow:hidden!important;}
body.v77-ui .v76-side-nav{overflow:visible!important;max-height:none!important;}

/* Полностью изолированная разметка боя: старые v56–v63 правила на неё не влияют. */
.v79-battle-header{
  position:sticky;top:0;z-index:45;
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;
  min-height:68px;padding:10px clamp(18px,3vw,46px);
  border-bottom:1px solid var(--v79-line);background:rgba(7,12,15,.97);
}
.v79-battle-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(232,199,107,.32);border-radius:11px;background:#2a281c;color:var(--v79-gold);}
.v79-battle-title{min-width:0;}
.v79-battle-title small{display:block;color:var(--v79-muted);font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;}
.v79-battle-title h1{margin:3px 0 0;overflow:hidden;color:var(--v79-text);font-size:18px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap;}
.v79-header-state{display:flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--v79-line);border-radius:999px;color:#bdd0c7;font-size:10px;font-weight:800;}
.v79-header-state i{width:7px;height:7px;border-radius:50%;background:var(--v79-mint);box-shadow:0 0 9px rgba(99,215,189,.5);}
.v79-header-state.enemy i{background:var(--v79-red);box-shadow:0 0 9px rgba(236,114,104,.5);}

.v79-battle{
  display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);
  grid-template-areas:"turn turn" "enemy party" "log log";
  align-items:start;gap:14px;width:min(1500px,100%);margin:0 auto;padding:18px clamp(28px,3vw,52px) 34px;
  background:var(--v79-bg);color:var(--v79-text);
}
.v79-panel,.v79-turn{min-width:0;border:1px solid var(--v79-line);border-radius:18px;background:var(--v79-panel);overflow:hidden;}
.v79-turn{grid-area:turn;position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 16px 18px;}
.v79-turn-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(232,199,107,.26);border-radius:12px;background:#27251a;font-size:16px;}
.v79-turn-copy{min-width:0;}
.v79-turn-copy b{display:block;font-family:Georgia,serif;font-size:17px;}
.v79-turn-copy p{margin:3px 0 0;overflow:hidden;color:var(--v79-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap;}
.v79-turn-meta{display:flex;align-items:center;gap:12px;color:var(--v79-muted);font-size:10px;white-space:nowrap;}
.v79-turn-meta span{color:var(--v79-gold);font-size:14px;font-weight:900;}
.v79-turn-bar{position:absolute;right:16px;bottom:7px;left:70px;height:5px;border-radius:8px;background:#242d32;overflow:hidden;}
.v79-turn-bar>i{display:block;height:100%;border-radius:inherit;background:var(--v79-gold);transition:width .35s linear;}
.v79-turn.monster-turn .v79-turn-bar>i{background:var(--v79-red);}
.v79-turn.urgent{border-color:rgba(236,114,104,.42);}

.v79-enemies{grid-area:enemy;}
.v79-party{grid-area:party;}
.v79-log{grid-area:log;}
.v79-section-head,.v79-log-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:11px 15px;border-bottom:1px solid var(--v79-line);}
.v79-section-head h2,.v79-log-head h3{margin:0;font-size:14px;}
.v79-section-head span,.v79-log-head small{color:var(--v79-muted);font-size:9px;}

.v79-monster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;}
.v79-monster-grid.count-1{grid-template-columns:1fr;}
.v79-monster-card{
  position:relative;display:grid;grid-template-columns:clamp(116px,13vw,170px) minmax(0,1fr);gap:14px;
  min-width:0;min-height:164px;padding:10px;border:1px solid rgba(236,114,104,.2);border-radius:15px;
  background:var(--v79-panel-2);overflow:hidden;cursor:pointer;transition:border-color .16s,transform .16s;
}
.v79-monster-card:hover{border-color:rgba(236,114,104,.48);transform:translateY(-1px);}
.v79-monster-card.selected-target{border-color:var(--v79-gold);box-shadow:inset 0 0 0 1px rgba(232,199,107,.25);}
.v79-target-label{position:absolute;top:7px;left:7px;z-index:2;min-width:0;padding:3px 7px;border-radius:7px;background:#e8c76b;color:#17150d;font-size:8px;font-weight:950;letter-spacing:.1em;}
.v79-target-label:empty{display:none;}
.v79-monster-art{width:100%;height:144px;min-width:0;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#171e22;overflow:hidden;}
.v79-monster-art>*{width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;margin:0!important;}
.v79-monster-art img,.v79-monster-art .battle-monster-art{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center 30%!important;transform:none!important;}
.v79-monster-body{display:flex;flex-direction:column;min-width:0;min-height:0;padding:3px 2px;}
.v79-monster-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;}
.v79-monster-head h2{min-width:0;margin:0;overflow-wrap:anywhere;color:var(--v79-text);font-family:Georgia,serif;font-size:18px;line-height:1.15;}
.v79-monster-head>span{flex:0 0 auto;padding:4px 6px;border-radius:7px;background:rgba(236,114,104,.12);color:#f39890;font-size:7px;font-weight:900;letter-spacing:.08em;}
.v79-status-list{display:flex;flex-wrap:wrap;gap:5px;min-height:24px;margin-top:8px;}
.v79-status-chip{min-height:22px!important;padding:3px 7px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:7px!important;background:#192126!important;color:#aebbb5!important;font-size:8px!important;}
.v79-status-chip.target{border-color:rgba(232,199,107,.35)!important;color:var(--v79-gold)!important;}
.v79-status-chip.aggro{border-color:rgba(236,114,104,.32)!important;color:#f39890!important;}
.v79-no-status{color:#68766f;font-size:8px;}
.v79-hp-row{display:grid;gap:5px;margin-top:auto;padding-top:10px;}
.v79-hp-row>span{display:flex;justify-content:space-between;color:#cfd9d4;font-size:10px;}
.v79-hp-row>span i{color:var(--v79-red);font-style:normal;font-size:8px;font-weight:900;}
.v79-hp-row>div{height:7px;border-radius:8px;background:#263038;overflow:hidden;}
.v79-hp-row>div>i{display:block;height:100%;border-radius:inherit;background:#ef6b65;}
.v79-monster-tools{display:flex;justify-content:flex-end;gap:6px;margin-top:9px;}
.v79-monster-tools button{min-height:31px!important;width:auto!important;padding:5px 10px!important;border:1px solid var(--v79-line)!important;border-radius:9px!important;background:#172127!important;color:#c3d0ca!important;font-size:9px!important;}
.v79-monster-tools button.attack{border-color:rgba(232,199,107,.4)!important;background:#332e1c!important;color:#f4dc93!important;}

.v79-party-grid{display:grid;gap:9px;padding:12px;}
.v79-player-card{display:grid;gap:8px;min-width:0;padding:10px;border:1px solid rgba(99,215,189,.17);border-radius:14px;background:var(--v79-panel-2);overflow:hidden;}
.v79-player-card.self{border-color:rgba(99,215,189,.52);}
.v79-player-card.acted{opacity:.74;}
.v79-player-head{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;}
.v79-player-art{display:grid;place-items:center;width:58px;height:58px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#172024;overflow:hidden;}
.v79-player-art>*{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;}
.v79-player-art img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 18%!important;transform:none!important;}
.v79-player-name{min-width:0;}
.v79-player-name h3{margin:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap;}
.v79-player-name h3 em{margin-left:5px;padding:2px 5px;border-radius:5px;background:var(--v79-gold);color:#17150d;font-size:7px;font-style:normal;}
.v79-player-name small{display:block;margin-top:3px;color:var(--v79-muted);font-size:8px;}
.v79-player-action{max-width:90px;min-height:30px!important;padding:5px 7px!important;border:1px solid var(--v79-line)!important;border-radius:9px!important;background:#192126!important;color:#aab8b1!important;font-size:8px!important;overflow:hidden;text-overflow:ellipsis;}
.v79-player-effects{display:flex;flex-wrap:wrap;gap:5px;min-width:0;}
.v79-player-effects .v57-player-effect{min-height:20px!important;padding:3px 6px!important;font-size:7px!important;}
.v79-player-bars{display:grid;gap:6px;}
.v79-stat-row{display:grid;grid-template-columns:65px minmax(0,1fr);align-items:center;gap:7px;color:#d3ded8;font-size:9px;}
.v79-stat-row span{white-space:nowrap;}
.v79-stat-row span i{font-style:normal;font-weight:900;}
.v79-stat-row.hp span i{color:var(--v79-red);}
.v79-stat-row.mp span i{color:var(--v79-blue);}
.v79-stat-row>div{height:6px;border-radius:7px;background:#273238;overflow:hidden;}
.v79-stat-row>div>i{display:block;height:100%;border-radius:inherit;background:#8ddd55;}
.v79-stat-row.mp>div>i{background:#68cfe7;}
.v79-party-toggle{display:none;}
.v79-spectator{margin:0 12px 12px;padding:10px;border:1px solid rgba(232,199,107,.2);border-radius:10px;color:#bcae81;font-size:9px;}

.v79-log-head>div{display:flex;align-items:center;gap:8px;}
.v79-log-head>div>span{color:var(--v79-gold);}
.v79-log-head button{min-height:30px!important;padding:4px 10px!important;border:1px solid var(--v79-line)!important;background:#171e22!important;color:#aab8b1!important;font-size:8px!important;}
.v79-log .battle-log-scroll{display:grid;gap:4px;max-height:160px;padding:9px 11px;overflow-y:auto;}
.v79-log.collapsed .battle-log-scroll{display:none;}
.v79-log-entry{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:7px;min-width:0;padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.025);}
.v79-log-entry>span{color:#84938c;text-align:center;}
.v79-log-entry p{margin:0;overflow-wrap:anywhere;color:#aeb9b4;font-size:9px;line-height:1.35;}
.v79-log-entry.damage>span{color:var(--v79-red);}
.v79-log-entry.heal>span{color:var(--v79-mint);}
.v79-log-entry.reward>span{color:var(--v79-gold);}
.v79-log-empty{padding:18px;color:var(--v79-muted);font-size:9px;text-align:center;}

.v79-edge-tab{position:fixed;top:47%;z-index:95;display:grid;place-items:center;gap:4px;width:34px;height:108px;padding:7px 4px!important;border:1px solid var(--v79-line)!important;background:#11191d!important;color:#aab8b1!important;}
.v79-edge-tab.left{left:0;border-left:0!important;border-radius:0 12px 12px 0!important;}
.v79-edge-tab.right{right:0;border-right:0!important;border-radius:12px 0 0 12px!important;}
.v79-edge-tab span{font-size:8px;font-weight:900;letter-spacing:.16em;writing-mode:vertical-rl;text-transform:uppercase;}
.v79-edge-tab i{font-style:normal;color:var(--v79-gold);}

body.v77-ui .v79-drawer{top:0!important;bottom:0!important;width:min(420px,94vw)!important;height:100dvh!important;max-height:none!important;border-radius:0!important;background:#091115!important;overflow:hidden!important;z-index:120!important;}
body.v77-ui .v79-left-drawer{left:0!important;right:auto!important;transform:translateX(-103%)!important;border-right:1px solid rgba(99,215,189,.25)!important;}
body.v77-ui .v79-chat-drawer{right:0!important;left:auto!important;transform:translateX(103%)!important;border-left:1px solid rgba(103,207,231,.25)!important;}
body.v77-ui .v79-drawer.open{transform:translateX(0)!important;}

.v79-overlay{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:18px;background:rgba(2,5,7,.82);overflow-y:auto;}
.v79-overlay-card{width:min(760px,100%);max-height:calc(100dvh - 36px);padding:14px;border:1px solid var(--v79-line);border-radius:18px;background:#0b1216;overflow-y:auto;}
.v79-overlay-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px;}
.v79-overlay-head small{color:var(--v79-gold);font-size:8px;letter-spacing:.13em;}
.v79-overlay-head h3{margin:3px 0 0;font-size:18px;}
.v79-overlay-card .v79-monster-card{cursor:default;}
.v79-overlay-note{color:var(--v79-muted);font-size:9px;}

/* Карточка монстра: нет индекса этапов, только реально открытая информация. */
.v79-monster-sheet{display:grid!important;gap:10px!important;margin-top:12px!important;}
.v79-monster-intro{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;gap:14px;min-width:0;}
.v79-monster-portrait{width:128px!important;height:142px!important;margin:0!important;border-radius:13px!important;overflow:hidden!important;}
.v79-monster-portrait>*{width:100%!important;height:100%!important;}
.v79-monster-portrait img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 30%!important;transform:none!important;}
.v79-monster-intro h2{margin:0 0 6px!important;font-size:20px!important;}
.v79-monster-intro p{margin:0;color:#9dacA5;font-size:10px;line-height:1.5;}
.v79-monster-block{padding:10px;border:1px solid var(--v79-line);border-radius:12px;background:rgba(255,255,255,.018);}
.v79-monster-block h3{margin:0 0 8px;font-size:12px;}
.v79-monster-bonus{padding:10px;border:1px solid rgba(232,199,107,.28);border-radius:11px;color:#f1d98f;font-size:10px;}
.v79-learn-more{justify-self:start;min-height:38px!important;padding:7px 14px!important;}

/* Сделка с монстром — нижний диалог без размытия остального интерфейса. */
.v79-deal-shade{position:fixed;inset:0;z-index:220;background:rgba(2,5,7,.42);backdrop-filter:none;}
.v79-monster-deal{
  position:absolute;right:0;bottom:0;left:0;display:grid;grid-template-columns:170px minmax(0,1fr) auto;align-items:stretch;gap:16px;
  height:clamp(160px,20dvh,220px);min-height:160px;padding:13px clamp(14px,3vw,34px) max(13px,env(safe-area-inset-bottom));
  border-top:1px solid rgba(232,199,107,.34);background:#0a1115;box-shadow:0 -18px 48px rgba(0,0,0,.5);
}
.v79-deal-monster{display:grid;grid-template-rows:auto minmax(0,1fr);gap:6px;min-width:0;}
.v79-deal-monster>b{overflow:hidden;color:#f0dd9f;font-family:Georgia,serif;font-size:13px;text-overflow:ellipsis;white-space:nowrap;}
.v79-deal-monster>div{min-height:0;border:1px solid var(--v79-line);border-radius:11px;background:#151c20;overflow:hidden;}
.v79-deal-monster>div>*{width:100%!important;height:100%!important;}
.v79-deal-monster img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 28%!important;transform:none!important;}
.v79-deal-copy{min-width:0;padding:7px 0;overflow-y:auto;}
.v79-deal-copy small{color:var(--v79-gold);font-size:8px;font-weight:900;letter-spacing:.14em;}
.v79-deal-copy p{margin:8px 0;color:#d7e0dc;font-size:11px;line-height:1.55;}
.v79-deal-copy select{min-height:34px;padding:0 9px;border:1px solid rgba(232,199,107,.28);border-radius:9px;background:#131b1f;color:#e9dfbf;}
.v79-deal-actions{display:flex;align-items:flex-start;gap:7px;transition:opacity .18s;}
.v79-deal-actions.waiting{opacity:0;pointer-events:none;}
.v79-deal-actions button{min-height:36px!important;padding:6px 11px!important;font-size:9px!important;}

.v79-result-summary{grid-template-columns:repeat(2,1fr)!important;}

/* Чат локации находится справа; фон остаётся резким и доступным. */
.v78-location-chat-tab{right:0!important;left:auto!important;border-right:0!important;border-left:1px solid rgba(150,184,169,.14)!important;border-radius:11px 0 0 11px!important;}
.v78-location-chat{right:0!important;left:auto!important;z-index:150!important;}
.v78-location-chat-fade{display:none!important;backdrop-filter:none!important;pointer-events:none!important;}

@media (max-width:1050px){
  .v79-battle{grid-template-columns:1fr;grid-template-areas:"turn" "enemy" "party" "log";padding-right:40px;padding-left:40px;}
  .v79-monster-grid.count-1{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .v79-battle-header{grid-template-columns:36px minmax(0,1fr) auto;min-height:58px;padding:8px 12px;}
  .v79-battle-mark{width:34px;height:34px;}
  .v79-battle-title h1{font-size:15px;}
  .v79-header-state{padding:6px 8px;}
  .v79-header-state span{display:none;}
  .v79-battle{gap:9px;padding:10px 31px 24px;}
  .v79-turn{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:10px 11px 17px;border-radius:14px;}
  .v79-turn-icon{width:32px;height:32px;}
  .v79-turn-copy b{font-size:14px;}
  .v79-turn-copy p{font-size:8px;}
  .v79-turn-meta small{display:none;}
  .v79-turn-meta span{font-size:11px;}
  .v79-turn-bar{right:11px;bottom:6px;left:53px;}
  .v79-panel{border-radius:14px;}
  .v79-section-head,.v79-log-head{min-height:43px;padding:9px 11px;}
  .v79-monster-grid{grid-template-columns:1fr!important;padding:8px;}
  .v79-monster-card{grid-template-columns:96px minmax(0,1fr);gap:9px;min-height:128px;padding:8px;}
  .v79-monster-art{height:112px;}
  .v79-monster-head h2{font-size:15px;}
  .v79-monster-head>span{font-size:6px;}
  .v79-status-list{margin-top:5px;}
  .v79-monster-tools{margin-top:6px;}
  .v79-monster-tools button{min-height:28px!important;padding:4px 8px!important;font-size:8px!important;}
  .v79-party-grid{padding:8px;}
  .v79-player-head{grid-template-columns:50px minmax(0,1fr) auto;}
  .v79-player-art{width:50px;height:50px;}
  .v79-player-action{max-width:72px;}
  .v79-party-toggle{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:34px!important;padding:5px 9px!important;border:1px dashed rgba(99,215,189,.25)!important;background:rgba(99,215,189,.05)!important;color:#a7c9bd!important;font-size:8px!important;}
  .v79-edge-tab{width:25px;height:84px;}
  .v79-edge-tab span{font-size:7px;}
  .v79-overlay{padding:8px;}
  .v79-overlay-card{max-height:calc(100dvh - 16px);padding:10px;border-radius:14px;}
  .v79-monster-intro{grid-template-columns:92px minmax(0,1fr);gap:9px;}
  .v79-monster-portrait{width:92px!important;height:112px!important;}
  .v79-monster-intro h2{font-size:16px!important;}
  .v79-monster-deal{grid-template-columns:84px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px;height:clamp(190px,26dvh,250px);padding:10px 11px max(10px,env(safe-area-inset-bottom));}
  .v79-deal-monster{grid-row:1 / span 2;}
  .v79-deal-copy{padding:2px 0;}
  .v79-deal-copy p{margin:5px 0;font-size:9px;line-height:1.4;}
  .v79-deal-actions{justify-content:flex-end;}
  .v79-deal-actions button{min-height:32px!important;padding:5px 8px!important;}
}
@media (max-width:420px){
  .v79-battle{padding-right:28px;padding-left:28px;}
  .v79-monster-card{grid-template-columns:82px minmax(0,1fr);}
  .v79-monster-art{height:104px;}
  .v79-player-action{font-size:0!important;}
  .v79-player-action span{font-size:11px;}
}

/* ---- css/v80-ui.css ---- */
:root{
  --v80-gold:#e8c66a;
  --v80-cyan:#2ac7c2;
  --v80-panel:#11171d;
  --v80-panel-2:#171e25;
  --v80-line:rgba(232,198,106,.2);
}
html,body{max-width:100%;overflow-x:hidden}
body.v80-ui{background:#070b0f}
body.v80-ui .v76-side{background:#0b1116!important;background-image:none!important;overflow-y:auto;overflow-x:hidden}
body.v80-ui .v76-side::before,body.v80-ui .v76-side::after{display:none!important}
.v80-title-mark{font-family:Georgia,serif!important;color:var(--v80-gold)!important;background:linear-gradient(145deg,#27251d,#111713)!important;border:1px solid rgba(232,198,106,.38)!important}

/* Карточки предметов: одна сетка, отдельная строка действий и фон редкости. */
.v80-ui .item-card{position:relative;display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:14px;overflow:hidden;min-width:0;background:linear-gradient(135deg,rgba(19,27,34,.98),rgba(10,15,20,.98))!important}
.v80-ui .item-card.rarity-uncommon{background:linear-gradient(135deg,rgba(31,72,49,.55),#0c1413 62%)!important}
.v80-ui .item-card.rarity-rare{background:linear-gradient(135deg,rgba(26,63,100,.62),#0c121a 62%)!important}
.v80-ui .item-card.rarity-epic{background:linear-gradient(135deg,rgba(78,43,105,.65),#120e18 62%)!important}
.v80-ui .item-card.rarity-legendary{background:linear-gradient(135deg,rgba(118,75,20,.68),#17110a 62%)!important}
.v80-ui .item-card.rarity-mythic{background:linear-gradient(135deg,rgba(116,31,46,.7),#190d12 62%)!important}
.v80-ui .v39-item-body{display:flex!important;flex-direction:column;min-width:0}
.v80-ui .item-actions{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%;margin-top:12px!important;transform:none!important}
.v80-ui .item-actions button{position:static!important;flex:1 1 128px!important;min-width:0!important;max-width:none!important;margin:0!important;white-space:normal!important;line-height:1.15}
.v80-ui .v80-item-stats{display:flex!important;flex-wrap:wrap;gap:6px;margin-top:8px!important}
.v80-ui .v80-item-stats span,.v80-ui .v77-slot-effects span{display:inline-flex;padding:5px 8px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(0,0,0,.22);color:#e8edf1}
.v80-stack-count{position:absolute;right:7px;bottom:27px;display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:999px;background:rgba(4,8,12,.82);border:1px solid var(--v80-gold);color:#fff;font-size:12px;z-index:3}
.v80-ui .item-icon-wrap,.v80-ui .item-emblem{position:relative;min-width:0}
.v80-ui .item-emblem img,.v80-ui .item-icon-wrap img,.v80-ui .item-card img{width:100%;height:100%;object-fit:contain!important}
.v80-ui .v78-durability{display:grid!important;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:8px;margin-top:9px;padding:7px 9px;border-radius:9px;background:rgba(0,0,0,.2)}
.v80-ui .v77-slot-effects{display:flex!important;gap:5px;flex-wrap:wrap;white-space:normal!important}
.v80-ui .equip-slot.rarity-uncommon{background:linear-gradient(145deg,rgba(30,87,55,.35),#12191e)!important}
.v80-ui .equip-slot.rarity-rare{background:linear-gradient(145deg,rgba(28,76,126,.38),#111820)!important}
.v80-ui .equip-slot.rarity-epic{background:linear-gradient(145deg,rgba(93,48,128,.4),#17131d)!important}
.v80-ui .equip-slot.rarity-legendary{background:linear-gradient(145deg,rgba(137,88,23,.42),#1c160f)!important}
.v80-ui .equip-slot.rarity-mythic{background:linear-gradient(145deg,rgba(134,37,57,.46),#1d1116)!important}

/* Квесты */
.v80-quests-panel{max-width:980px;margin:0 auto;padding:18px;border:1px solid var(--v80-line);border-radius:18px;background:rgba(13,20,26,.95)}
.v80-quests-panel>header,.v80-quests-panel>header>div,.v80-quest-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.v80-quests-panel>header h2,.v80-quest-card h2{margin:0}
.v80-quests-panel>header p{margin:4px 0 0;color:#8f9aa3}
.v80-quest-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#302817;color:#f5d675;font:800 25px/1 Georgia}
.v80-quest-list{display:grid;gap:12px;margin-top:18px}
.v80-quest-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:14px;border:1px solid rgba(232,198,106,.18);border-radius:15px;background:linear-gradient(120deg,rgba(38,34,23,.45),rgba(15,22,28,.94))}
.v80-quest-giver{height:118px;border-radius:12px;overflow:hidden;background:#0a1015;border:1px solid rgba(255,255,255,.08)}
.v80-quest-giver img{width:100%;height:100%;object-fit:contain}
.v80-quest-giver span{display:grid;place-items:center;height:100%;font-size:45px}
.v80-quest-head small{color:var(--v80-gold);letter-spacing:.12em}
.v80-quest-head time{font-variant-numeric:tabular-nums;padding:7px 10px;border-radius:9px;background:#241d12;color:#f1d16d}
.v80-quest-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.v80-quest-progress>div{height:7px;border-radius:999px;background:#27313a;overflow:hidden}
.v80-quest-progress i{display:block;height:100%;background:linear-gradient(90deg,#4ebf8a,#d6c55f)}
.v76-bottom-nav [data-nav-kind=quests]{position:relative}
.v76-bottom-nav [data-nav-kind=quests]>em,.v80-quest-alert{position:absolute;right:8px;top:5px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#e3ba45;color:#111;font-style:normal;font-size:11px}

/* Диалог монстра */
.v80-ui .v79-deal-shade{display:flex!important;align-items:flex-end!important;padding:14px!important}
.v80-ui .v79-monster-deal{width:min(1180px,100%)!important;min-height:20vh!important;max-height:48vh!important;display:grid!important;grid-template-columns:160px minmax(0,1fr) auto!important;gap:18px!important;border:1px solid rgba(232,198,106,.35)!important;background:linear-gradient(120deg,#18170f,#0e171c 48%,#111820)!important;box-shadow:0 -18px 60px rgba(0,0,0,.55)!important}
.v80-ui .v79-deal-monster>div{height:130px!important}
.v80-ui .v79-deal-monster img,.v80-ui .v79-monster-portrait img,.v80-ui .v79-monster-intro img{width:100%!important;height:100%!important;object-fit:contain!important}
.v80-ui .v79-deal-copy p{min-height:54px;font-size:15px;line-height:1.55}
.v80-ui .v79-deal-actions{align-self:end;display:flex!important;gap:8px;flex-wrap:wrap;min-width:180px}
.v80-ui .v79-deal-actions.waiting{visibility:hidden}
.v80-ui .v79-monster-sheet{background:linear-gradient(145deg,#111a20,#0d1217)!important;border-color:rgba(232,198,106,.2)!important}
.v80-ui .v79-learn-more{margin:14px auto 0!important;display:block!important}

/* Глобальный чат справа без blur/disabled. */
.v80-ui .v78-location-chat,.v80-ui .v78-location-chat *{filter:none!important;backdrop-filter:none;pointer-events:auto}
.v80-ui .v78-location-chat{left:auto!important;right:0!important;transform:translateX(104%)!important;opacity:1!important;z-index:91!important;background:#0c1319!important}
.v80-ui .v78-location-chat.open{transform:translateX(0)!important}
.v80-ui .v78-location-chat-tab{left:auto!important;right:0!important;z-index:92!important;background:#171e23!important;color:#8d989f!important;border-color:rgba(255,255,255,.1)!important;opacity:.72}.v80-ui .v78-location-chat-tab:hover,.v80-ui .v78-location-chat-tab.open{opacity:1;color:#d8e0e5!important}


.v80-chat-meta{display:flex;flex-direction:column;gap:4px;min-width:0}
.v80-chat-meta b{overflow:hidden;text-overflow:ellipsis;color:#e8c66a}

.v80-chat-meta time{font-size:10px;color:#78858f}



.v80-chat-delete{position:absolute!important;left:3px!important;bottom:3px!important;width:23px!important;height:23px!important;padding:0!important;border-radius:7px!important;background:#421d25!important;color:#ff9fa9!important;z-index:2}
.v80-chat-profile{display:grid;grid-template-columns:135px minmax(0,1fr);gap:16px;min-width:0;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:linear-gradient(135deg,#172027,#0d1318)}
.v80-chat-profile.role-moderator{border-color:#4f91cf}.v80-chat-profile.role-administrator{border-color:#d5af4f}
.v80-chat-profile-art{position:relative;height:150px;border-radius:13px;overflow:hidden;background:#0a0f13}
.v80-chat-profile-art img{width:100%;height:100%;object-fit:contain}
.v80-chat-profile-art>span{position:absolute;left:7px;bottom:7px;padding:4px 7px;border-radius:7px;background:rgba(0,0,0,.75)}
.v80-chat-profile-head,.v80-chat-profile-main footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.v80-chat-profile-head h2{margin:3px 0}.v80-chat-profile-head small{color:#83909a}
.v80-chat-profile-head>b{font-size:11px}.v80-chat-profile-head>b.online{color:#54d393}.v80-chat-profile-head>b.offline{color:#7c8790}
.v80-chat-role,.v80-chat-friend-state{display:inline-flex;margin:7px 5px 8px 0;padding:5px 8px;border-radius:8px;background:#202a32;color:#dce3e7}
.v80-chat-friend-state{color:#63d79e;background:#163126}
.v80-chat-profile-main footer{margin-top:16px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.v80-add-friend{min-width:42px!important}

/* Бой: независимые колонки без сдавливания. */
.v80-ui .v79-battle{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(340px,.85fr)!important;gap:14px!important;width:min(1500px,calc(100% - 32px))!important;max-width:none!important;margin:0 auto 84px!important}
.v80-ui .v79-turn,.v80-ui .v79-log{grid-column:1/-1!important;min-width:0}
.v80-ui .v79-enemies{grid-column:1!important;min-width:0}
.v80-ui .v79-party{grid-column:2!important;min-width:0}
.v80-ui .v79-monster-grid,.v80-ui .v79-party-grid{min-width:0!important}
.v80-ui .v79-monster-card,.v80-ui .v79-player-card{min-width:0!important;overflow:hidden!important}
.v80-ui .v79-monster-art,.v80-ui .v79-player-art{flex:0 0 auto;overflow:hidden}
.v80-ui .v79-monster-art img,.v80-ui .v79-player-art img,.v80-ui .battle-monster-art,.v80-ui .class-inline-image{width:100%!important;height:100%!important;object-fit:contain!important;max-width:100%!important}
.v80-ui .v79-turn{grid-template-columns:auto minmax(0,1fr) auto!important}
.v80-ui .v79-turn-bar{width:100%!important;left:0!important;right:0!important}
.v80-ui .v79-left-drawer{top:0!important;bottom:0!important;height:100dvh!important;max-height:none!important}
.v80-ui .v17-skill-scroll{height:calc(100dvh - 88px)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-color:#a98c43 #151c22;scrollbar-width:thin}
.v80-ui .v59-skill-slot-main{min-width:0!important}
.v80-ui .v59-cd-badge{display:grid!important;place-items:center!important;border:2px solid #d1aa4d!important;background:#17120a!important;color:#f1d16d!important}
.v80-ui .v79-overlay-card{max-height:min(86dvh,760px)!important;overflow-y:auto!important}
.v80-ui .v79-status-chip.debuff,.v80-ui .v57-player-effect.debuff{border-color:#bb5570!important;color:#f1a1b3!important;background:#321721!important}.v80-ui .v57-player-effect.buff{border-color:#4fb88d!important;color:#8ce0bc!important;background:#122d24!important}

/* Нижняя панель зелий и помощи. */
.v80-support-tab{position:fixed;left:50%;bottom:0;z-index:85;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:8px 18px;border:1px solid rgba(232,198,106,.28);border-bottom:0;border-radius:12px 12px 0 0;background:#111820;color:#e6edf1}
.v80-support-tab i{color:var(--v80-gold);font-style:normal;transition:transform .25s}.v80-support-tab.open i{transform:rotate(180deg)}
.v80-ui .v62-help-drawer{position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:0!important;width:min(1180px,100%)!important;height:clamp(190px,25dvh,280px)!important;transform:translate(-50%,105%)!important;z-index:94!important;border-radius:16px 16px 0 0!important;background:#0d151b!important}
.v80-ui .v62-help-drawer.open{transform:translate(-50%,0)!important}
.v80-ui .v62-help-drawer .v17-help-scroll{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important;gap:14px!important;height:calc(100% - 68px)!important;overflow:auto!important;padding:10px 14px!important}
.v80-potion-zone,.v80-friend-zone{min-width:0;overflow:hidden}.v80-potion-zone>div:first-child,.v80-friend-zone>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.v80-potion-zone h3,.v80-friend-zone h3{margin:0}.v80-potion-zone small,.v80-friend-zone small{color:#87949d;font-size:10px;text-align:right}
.v80-ui .v59-potion-strip{display:flex!important;gap:8px;overflow-x:auto!important;overflow-y:hidden!important;padding:4px!important}
.v80-ui .v62-potion-card{position:relative;flex:0 0 112px!important;min-width:112px!important}
.v80-ui .v62-potion-card.disabled{filter:blur(1.5px) grayscale(.7)!important;opacity:.42}
.v80-ui .v62-potion-card em{position:absolute;right:6px;bottom:6px;display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.75);border:1px solid #d4b85d;color:white;font-style:normal}
.v80-ui .v59-help-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-width:190px;padding:8px!important;border-radius:10px;background:#171f26}
.v80-ui .v59-help-row button:disabled{background:#4a2029!important;color:#c7a4aa!important}
.v80-ui .v59-help-row.in-battle{border:1px solid #77313f;background:#321821}.v80-ui .v59-help-row.summoned{border:1px solid #a48842}
.v80-friend-strip{display:flex;gap:8px;overflow-x:auto;padding:4px}

/* Сражения рядом */
.v80-nearby-battles{margin-top:14px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:#0d141a;overflow:hidden}
.v80-nearby-battles>summary{display:flex;justify-content:space-between;padding:11px 13px;cursor:pointer}
.v80-nearby-battles>div{display:grid;gap:8px;padding:0 9px 9px}
.v80-battle-card{border:1px solid rgba(232,198,106,.16);border-radius:11px;background:#141b21;overflow:hidden}
.v80-battle-card>summary{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:9px;cursor:pointer}
.v80-battle-side{position:relative;display:flex;align-items:center;justify-content:flex-start;height:54px}
.v80-battle-side.enemy{justify-content:flex-end}.v80-battle-side img{width:60px;height:54px;object-fit:contain}
.v80-battle-side b{position:absolute;right:4px;bottom:0;padding:2px 5px;border-radius:6px;background:#27343d}.v80-battle-side.enemy b{left:4px;right:auto}
.v80-battle-expanded{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:10px;border-top:1px solid rgba(255,255,255,.07)}
.v80-battle-expanded>div{display:flex;gap:5px;flex-wrap:wrap}.v80-battle-expanded>div:nth-of-type(2){justify-content:flex-end}
.v80-battle-expanded span{width:62px}.v80-battle-expanded img{width:62px;height:52px;object-fit:contain}.v80-battle-expanded small{display:block;overflow:hidden;text-overflow:ellipsis}
.v80-battle-expanded button{grid-column:1/-1}
.v80-location-friend{align-self:center;margin-left:auto;min-width:34px!important;width:34px;height:34px;padding:0!important;border-radius:9px!important}.v80-location-friend-state{margin-left:auto;color:#52cf92;font-size:11px}

/* Анимация навыка, уведомления и итог боя. */
.v80-ability-cast{position:fixed;inset:0;z-index:140;display:grid;place-items:center;pointer-events:none;background:radial-gradient(circle,rgba(25,38,48,.32),transparent 50%)}
.v80-ability-cast>div{position:relative;display:grid;place-items:center;width:190px;height:220px;border:1px solid rgba(232,198,106,.5);border-radius:18px;background:linear-gradient(145deg,#202a32,#0b1117);box-shadow:0 20px 70px #000;animation:v80CastIn .25s both}
.v80-ability-cast span{font-size:60px}.v80-ability-cast b{padding:12px;text-align:center;color:#f0d275}
.v80-ability-cast.shatter>div{animation:v80Shatter .55s both}.v80-ability-cast i{position:absolute;inset:50% 4px auto;height:1px;background:rgba(255,255,255,.4);transform:rotate(28deg)}.v80-ability-cast i+ i{transform:rotate(-34deg)}
@keyframes v80CastIn{from{opacity:0;transform:scale(.72) rotate(-3deg)}to{opacity:1;transform:none}}
@keyframes v80Shatter{to{opacity:0;transform:scale(1.2) rotate(4deg);filter:blur(8px)}}
.v80-ui .toast{max-width:min(360px,calc(100vw - 24px))!important;border:1px solid rgba(232,198,106,.22)!important;border-radius:12px!important;background:#111920!important}
.v80-ui .v39-level-notice{border:1px solid rgba(232,198,106,.42)!important;border-radius:12px!important;background:linear-gradient(110deg,#2a2111,#171b1b)!important;color:#f2d87d!important;box-shadow:0 10px 28px rgba(0,0,0,.24)!important}
.v80-ui .v41-level-choice{max-width:620px}.v80-ui .v39-choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v80-ui .v40-choice-card{border-radius:13px!important;background:#151e25!important}
.v80-ui .modal-back{overflow:hidden!important}
.v80-ui .modal-back>.modal{max-height:88dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
.v80-ui .result.v78-result{overflow:visible!important;max-height:none!important}
.v80-ui .rare-drop-cinematic{overflow:hidden!important}

/* Друзья и умения компактнее. */
.v80-ui .v76-social-grid{gap:12px!important}.v80-ui .v76-person{padding:10px!important}.v80-ui .v76-person-actions{display:flex!important;gap:6px;flex-wrap:wrap}
.v80-ui .ability-tabs{position:sticky;top:0;z-index:4;background:#0b1116;padding:8px;border-radius:12px}.v80-ui .ability-tabs button{min-height:42px}
.v80-ui .v39-attr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.v80-attr-card{display:grid!important;grid-template-columns:1fr!important;text-align:left!important;gap:5px!important;min-width:0!important}
.v80-attr-card>span{display:flex;align-items:center;justify-content:space-between}.v80-attr-card em,.v80-attr-card i{font-size:10px;font-style:normal;line-height:1.3;color:#9eabb4}.v80-attr-card i{color:#d4be78}

@media(max-width:900px){
  .v80-ui .v79-battle{grid-template-columns:1fr!important;width:calc(100% - 16px)!important;gap:9px!important;margin-bottom:76px!important}
  .v80-ui .v79-turn,.v80-ui .v79-enemies,.v80-ui .v79-party,.v80-ui .v79-log{grid-column:1!important}
  .v80-ui .v79-battle-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;padding:9px 10px!important;gap:8px!important}
  .v80-ui .v79-battle-title h1{font-size:16px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .v80-ui .v79-header-state{min-width:0!important;padding:6px 8px!important}.v80-ui .v79-header-state span{font-size:10px}
  .v80-ui .v79-turn{padding:10px!important}.v80-ui .v79-turn-copy p{font-size:11px}.v80-ui .v79-turn-meta small{display:none}
  .v80-ui .v79-monster-grid{grid-template-columns:1fr!important}.v80-ui .v79-party-grid{grid-template-columns:1fr!important}
  .v80-ui .v79-monster-card{grid-template-columns:94px minmax(0,1fr)!important}.v80-ui .v79-monster-art{width:94px!important;height:108px!important}
  .v80-ui .v62-help-drawer{height:34dvh!important;min-height:260px!important}
  .v80-ui .v62-help-drawer .v17-help-scroll{grid-template-columns:1fr!important}
  .v80-ui .v79-monster-deal{grid-template-columns:95px minmax(0,1fr)!important;max-height:58dvh!important}
  .v80-ui .v79-deal-actions{grid-column:1/-1;min-width:0;justify-content:flex-end}
  .v80-ui .v79-deal-monster>div{height:90px!important}
  .v80-ui .v76-bottom-nav{overflow-x:auto!important;justify-content:flex-start!important}
  .v80-ui .v76-bottom-nav>button{flex:0 0 68px!important;min-width:68px!important}
}
@media(max-width:560px){
  .v80-ui .topbar{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;min-height:62px!important;padding:8px 10px!important}
  .v80-ui .v76-network{grid-column:2;justify-self:start;max-width:100%;font-size:10px;padding:3px 7px!important}
  .v80-ui .v76-title{min-width:0}.v80-ui .v76-title-copy{min-width:0}.v80-ui .v76-title-copy h1,.v80-ui .v76-title-copy p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .v80-ui .item-card{grid-template-columns:82px minmax(0,1fr)!important;padding:10px!important}
  .v80-ui .item-actions button{flex-basis:calc(50% - 4px)!important;padding:9px 5px!important;font-size:11px!important}
  .v80-ui .v39-item-head{display:block!important}.v80-ui .item-description{font-size:11px!important}
  .v80-quest-card{grid-template-columns:78px minmax(0,1fr);gap:10px;padding:10px}.v80-quest-giver{height:86px}.v80-quest-head{align-items:flex-start}.v80-quest-head h2{font-size:16px}
  .v80-chat-profile{grid-template-columns:88px minmax(0,1fr);gap:10px;padding:10px}.v80-chat-profile-art{height:108px}.v80-chat-profile-main footer{display:block}.v80-add-friend{margin-top:8px}
  
  .v80-battle-expanded span{width:48px}.v80-battle-expanded img{width:48px;height:45px}
}

/* ---- css/v81-ui.css ---- */
:root{--v81-bg:#070b0e;--v81-panel:#0e151a;--v81-panel2:#151d22;--v81-line:rgba(224,190,92,.22);--v81-gold:#e6c468;--v81-green:#9be52d;--v81-text:#edf2f4;--v81-muted:#8e9aa2;--v81-red:#e76878}
*{min-width:0}
body.v81-ui{overflow-x:hidden;background:radial-gradient(circle at 75% -15%,rgba(90,117,34,.1),transparent 34%),#05080a!important}
.v81-ui img{max-width:100%;object-fit:contain}
.v81-ui button,.v81-ui input,.v81-ui select,.v81-ui textarea{font:inherit}

/* Нижняя навигация и боковое меню */
.v81-ui .bottom-nav,.v81-ui .v76-bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:min(620px,calc(100% - 20px))!important;overflow:hidden!important}
.v81-ui .bottom-nav>button{min-width:0!important;flex:1 1 0!important}
.v81-ui .v76-side{position:fixed!important;inset:0 auto 0 0!important;width:min(360px,90vw)!important;height:100dvh!important;z-index:180!important;display:flex!important;flex-direction:column!important;transform:translateX(-105%)!important;visibility:hidden!important;pointer-events:none!important;overflow:hidden!important;background:linear-gradient(145deg,#111a20,#080d11)!important;border-right:1px solid var(--v81-line)!important;transition:transform .28s ease,visibility .28s!important}
.v81-ui .v76-side.open{transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important}
.v81-ui .v76-side-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow-y:auto!important;overscroll-behavior:contain;padding:12px 12px max(20px,env(safe-area-inset-bottom))!important;scrollbar-width:thin;scrollbar-color:#927b3a #11181d}
.v81-ui .v76-side-nav button{position:relative!important;min-height:58px!important;padding:10px 12px!important;text-align:left!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.015))!important;color:#dce3e7!important}
.v81-ui .v76-side-nav button:hover,.v81-ui .v76-side-nav button.active{border-color:rgba(230,196,104,.4)!important;background:linear-gradient(145deg,rgba(230,196,104,.14),rgba(139,201,44,.05))!important;color:#fff!important}
.v81-ui .v76-side-nav button.danger{grid-column:1/-1;color:#ffabb4!important}
.v81-ui .hamburger{position:relative!important;z-index:185!important}
.v81-ui .v76-side-head{flex:0 0 auto}
.v81-ui #side-stats{flex:0 0 auto}

/* Секции локации не прыгают и не сдавливают содержимое */
.v81-ui .v73-location-sections{display:grid!important;gap:10px!important}
.v81-ui .v73-location-section{overflow:clip!important;border-color:rgba(172,224,52,.12)!important;background:linear-gradient(180deg,rgba(14,20,24,.97),rgba(7,11,14,.98))!important}
.v81-ui .v73-location-section>summary{min-height:58px!important;padding:13px 16px!important}
.v81-ui .v73-section-body{padding:10px!important;overflow:hidden!important}
.v81-battles-empty{display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed rgba(230,196,104,.22);border-radius:14px;color:var(--v81-muted)}
.v81-battles-empty span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(230,196,104,.1);color:var(--v81-gold)}
.v81-battles-empty p{margin:0}
.v81-ui .v81-nearby-battles{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.v81-battle-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:9px}
.v81-ui .v80-battle-card{border:1px solid rgba(230,196,104,.18);border-radius:13px;background:linear-gradient(145deg,#151d22,#0c1216)}
.v81-ui .v80-battle-card>summary{grid-template-columns:minmax(72px,1fr) 42px minmax(72px,1fr)!important;gap:5px!important;padding:8px 10px!important}
.v81-ui .v80-battle-side{height:58px!important;justify-content:center!important}
.v81-ui .v80-battle-side.enemy{justify-content:center!important}
.v81-ui .v80-battle-side img{width:68px!important;height:56px!important}
.v81-ui .v80-battle-card>summary>strong{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#221c10;border:1px solid var(--v81-line);color:var(--v81-gold);font-size:11px}
.v81-ui .v80-battle-expanded{grid-template-columns:1fr 36px 1fr!important;gap:6px!important;padding:9px!important}
.v81-ui .v80-battle-expanded>div{justify-content:center!important}
.v81-ui .v80-battle-expanded span{width:50px!important;text-align:center}
.v81-ui .v80-battle-expanded img{width:50px!important;height:44px!important}
.v81-ui .v80-battle-expanded small{font-size:9px}

/* Карточки предметов: изображение, текст и кнопки имеют собственные зоны */
.v81-ui .item-list,.v81-ui .inventory-list,.v81-ui .loot-pile-scroll{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))!important}
.v81-ui .item-card{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;padding:12px!important;min-height:0!important;overflow:hidden!important;border-radius:15px!important}
.v81-ui .item-icon-wrap{width:82px!important;min-width:82px!important}
.v81-ui .item-emblem{width:74px!important;height:74px!important}
.v81-ui .item-body{display:flex!important;flex-direction:column!important;gap:7px!important;padding:0!important}
.v81-ui .v39-item-head{display:flex!important;align-items:flex-start!important;gap:8px!important}
.v81-ui .v39-item-head h3{white-space:normal!important;overflow:visible!important;line-height:1.2!important}
.v81-ui .item-weight{flex:0 0 auto!important}
.v81-ui .item-description{min-height:0!important;-webkit-line-clamp:3!important}
.v81-ui .item-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;gap:7px!important;width:100%!important;margin-top:3px!important}
.v81-ui .item-actions:empty{display:none!important}
.v81-ui .item-actions button,.v81-ui .item-actions .chance-pill{width:100%!important;min-width:0!important;min-height:38px!important;margin:0!important;white-space:normal!important}
.v81-ui .v80-item-stats{gap:5px!important}
.v81-ui .v80-item-stats span{padding:5px 7px!important}
.v81-ui .v78-durability{grid-template-columns:auto minmax(45px,1fr) auto!important;gap:6px!important;padding:6px 7px!important}
.v81-frequency{display:grid!important;place-items:center!important;color:#f2d67b!important}

/* Квесты */
.v81-ui .v80-quests-panel{position:relative;isolation:isolate;max-width:1040px;min-height:min(620px,calc(100dvh - 185px));padding:22px;overflow:hidden;border:1px solid rgba(230,196,104,.28);border-radius:22px;background:radial-gradient(circle at 90% 0,rgba(154,217,47,.09),transparent 35%),linear-gradient(145deg,#121a20,#080d11)}
.v81-ui .v80-quests-panel:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(115deg,transparent 65%,rgba(230,196,104,.035))}
.v81-ui .v80-quests-panel>header{padding-bottom:17px;border-bottom:1px solid rgba(230,196,104,.16)}
.v81-ui .v80-quest-mark{box-shadow:inset 0 0 0 1px rgba(230,196,104,.18),0 0 28px rgba(230,196,104,.1)}
.v81-ui .v80-quest-list{grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}
.v81-ui .v80-quest-card{grid-template-columns:100px minmax(0,1fr);gap:14px;padding:13px;border-color:rgba(230,196,104,.25);background:linear-gradient(130deg,rgba(49,40,21,.55),rgba(15,23,29,.96));box-shadow:0 15px 30px rgba(0,0,0,.2)}
.v81-ui .v80-quest-giver{height:104px}.v81-ui .v80-quest-head{align-items:flex-start}.v81-ui .v80-quest-copy p{margin:8px 0}

/* Диалог монстра — нижняя игровая панель с несжимаемыми кнопками */
.v81-ui .v81-deal-shade{position:fixed!important;inset:0!important;z-index:230!important;display:flex!important;align-items:flex-end!important;padding:clamp(8px,2vw,20px)!important;background:rgba(0,0,0,.62)!important;backdrop-filter:blur(5px)}
.v81-ui .v81-monster-deal{position:relative!important;width:min(1180px,100%)!important;min-height:190px!important;max-height:min(430px,70dvh)!important;margin:0 auto!important;padding:16px!important;display:grid!important;grid-template-columns:150px minmax(0,1fr) 210px!important;grid-template-rows:auto!important;align-items:stretch!important;gap:16px!important;border:1px solid rgba(230,196,104,.42)!important;border-radius:20px!important;background:radial-gradient(circle at 13% 15%,rgba(230,196,104,.12),transparent 28%),linear-gradient(135deg,#1b1a11,#10191f 48%,#0b1115)!important;box-shadow:0 -22px 70px rgba(0,0,0,.65),inset 0 1px rgba(255,255,255,.05)!important;animation:v81DealIn .3s ease both}
@keyframes v81DealIn{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:none}}
.v81-ui .v79-deal-monster{display:flex!important;flex-direction:column!important;gap:6px!important;text-align:center}
.v81-ui .v79-deal-monster>div{flex:1;height:132px!important;min-height:110px;overflow:hidden;border:1px solid rgba(230,196,104,.18);border-radius:14px;background:#090e12}
.v81-ui .v79-deal-monster img{width:100%!important;height:100%!important;object-fit:contain!important}
.v81-ui .v79-deal-copy{align-self:center;overflow:auto;max-height:100%}
.v81-ui .v79-deal-copy small{color:var(--v81-gold);letter-spacing:.16em}
.v81-ui .v79-deal-copy p{min-height:66px!important;margin:8px 0!important;font-size:15px!important;line-height:1.55!important}
.v81-ui .v79-deal-actions{align-self:center!important;display:grid!important;grid-template-columns:1fr!important;gap:9px!important;min-width:0!important}
.v81-ui .v79-deal-actions button{width:100%!important;min-width:0!important;min-height:46px!important;padding:10px 12px!important}
.v81-ui .v79-deal-actions.waiting{visibility:hidden!important}

/* Атрибуты */
.v81-ui .v39-attr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
.v81-ui .v81-attr-card{display:grid!important;grid-template-rows:auto auto auto!important;gap:7px!important;min-height:126px!important;padding:12px!important;text-align:left!important;overflow:hidden!important;border:1px solid rgba(230,196,104,.18)!important;border-radius:14px!important;background:linear-gradient(145deg,#171e23,#0d1216)!important}
.v81-ui .v81-attr-card.weak{border-color:rgba(225,95,112,.24)!important;background:linear-gradient(145deg,rgba(62,27,35,.55),#0e1216)!important}
.v81-ui .v81-attr-title{display:grid!important;grid-template-columns:30px minmax(0,1fr) 42px!important;align-items:center!important;gap:7px!important}
.v81-ui .v81-attr-title i{font-size:20px!important;font-style:normal!important}.v81-ui .v81-attr-title small{font-size:13px!important;color:#e8edf0!important}.v81-ui .v81-attr-title b{display:grid;place-items:center;height:35px;border-radius:10px;background:#2f2717;color:#f1d071;font-size:18px}
.v81-ui .v81-attr-card>strong{font-size:12px;line-height:1.35;color:#f0f3f4}.v81-ui .v81-attr-card>em{align-self:end;font-size:10px!important;color:#9ba7ae!important}
.v81-ui .v81-attr-milestones{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.v81-ui .v81-attr-milestones>div{padding:11px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(0,0,0,.18)}
.v81-ui .v81-attr-milestones small{display:block;margin-bottom:7px;color:var(--v81-gold)}
.v81-ui .v81-attr-milestones span{display:inline-flex;margin:2px;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.06)}
.v81-ui .v39-choice-grid{gap:10px!important}.v81-ui .v39-choice-card{display:grid!important;grid-template-columns:42px 1fr!important;text-align:left!important;gap:4px 10px!important;min-height:126px!important;padding:14px!important}.v81-ui .v39-choice-card>span{grid-row:1/3;font-size:30px}.v81-ui .v39-choice-card small{white-space:normal!important}

/* Чат */

.v81-ui .v80-chat-meta{justify-content:center!important}
.v81-chat-tail{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}.v81-chat-tail time{font-size:10px;color:#78858f}
.v81-ui .v80-chat-delete{position:static!important;order:0;width:27px!important;height:27px!important;flex:0 0 27px}


/* Полностью новая панель поддержки */
.v81-support-tab{z-index:196!important}
.v81-support-drawer{position:fixed;z-index:205;left:50%;bottom:0;width:min(1120px,calc(100% - 20px));height:min(390px,48dvh);display:flex;flex-direction:column;overflow:hidden;transform:translate(-50%,105%);visibility:hidden;pointer-events:none;border:1px solid rgba(230,196,104,.34);border-bottom:0;border-radius:22px 22px 0 0;background:radial-gradient(circle at 13% 0,rgba(230,196,104,.1),transparent 28%),linear-gradient(145deg,#111a20,#080e12);box-shadow:0 -28px 80px rgba(0,0,0,.7);transition:transform .28s ease,visibility .28s}
.v81-support-drawer.open{transform:translate(-50%,0);visibility:visible;pointer-events:auto}
.v81-support-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px solid rgba(230,196,104,.14);background:rgba(255,255,255,.02)}
.v81-support-head>div{display:grid;gap:2px}.v81-support-head small,.v81-support-zone-head small{color:var(--v81-gold);font-size:9px;letter-spacing:.14em}.v81-support-head b{font-size:19px}.v81-support-head span{color:var(--v81-muted);font-size:11px}
.v81-support-scroll{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.4fr);gap:12px;flex:1;overflow:auto;padding:12px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a1873e #11181d}
.v81-support-zone{min-width:0;padding:11px;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:rgba(255,255,255,.025);overflow:hidden}
.v81-support-zone-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.v81-support-zone-head h3{margin:2px 0 0}.v81-support-zone-head>span{color:var(--v81-muted);font-size:10px}
.v81-potion-strip,.v81-friend-strip{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:3px 2px 8px;scrollbar-width:thin;scrollbar-color:#907838 #11181d}
.v81-potion-card{position:relative;flex:0 0 170px;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:9px;min-height:76px;padding:9px!important;text-align:left!important;border:1px solid rgba(230,196,104,.2)!important;border-radius:13px!important;background:linear-gradient(145deg,#172128,#0d1317)!important}
.v81-potion-art{display:block;width:52px;height:56px;overflow:hidden;border-radius:10px;background:#080d11}.v81-potion-art img{width:100%;height:100%;object-fit:contain}.v81-potion-copy{display:grid;gap:3px}.v81-potion-copy b{font-size:11px}.v81-potion-copy small{font-size:9px;color:var(--v81-muted)}.v81-potion-card em{position:absolute;right:5px;bottom:5px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:50%;background:#080b0d;border:1px solid var(--v81-gold);font-style:normal}.v81-potion-card.disabled{filter:grayscale(.7);opacity:.38}
.v81-support-friend{flex:0 0 210px;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:4px 8px;padding:8px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:#141d22}.v81-support-avatar{position:relative;grid-row:1/3;width:48px;height:54px;overflow:hidden;border-radius:10px;background:#090e12}.v81-support-avatar img{width:100%;height:100%;object-fit:contain}.v81-support-avatar small{position:absolute;right:2px;bottom:2px;padding:2px 4px;border-radius:5px;background:#070a0c}.v81-support-friend>div:nth-child(2){display:grid}.v81-support-friend>div:nth-child(2) small{color:var(--v81-muted);font-size:9px}.v81-support-friend button{grid-column:2;min-height:31px!important;padding:5px 8px!important;font-size:10px!important}.v81-support-friend.in-battle{border-color:#7c3342;background:#2b151b}.v81-support-friend.summoned{border-color:#9b8140;background:#292313}

/* Бой, умения, итоги и уведомления */
.v81-ui .v79-battle{align-items:start!important}
.v81-ui .v79-monster-card,.v81-ui .v79-player-card{contain:layout paint}
.v81-ui .v79-monster-art img,.v81-ui .v79-player-art img{object-position:center!important}
.v81-ui .v79-left-drawer{width:min(390px,92vw)!important;max-width:none!important;background:linear-gradient(145deg,#10191e,#070c10)!important;border-color:rgba(230,196,104,.22)!important}
.v81-ui .v17-skill-scroll{padding:8px!important}.v81-ui .v62-skill-slot{grid-template-columns:minmax(0,1fr) 40px!important;min-height:68px!important;border-radius:13px!important}.v81-ui .v59-skill-slot-main{grid-template-columns:42px minmax(0,1fr)!important;padding:8px!important}.v81-ui .v59-skill-slot-main>span{width:40px!important;height:40px!important}.v81-ui .v59-skill-slot-main b{font-size:12px!important}.v81-ui .v59-skill-slot-main small{font-size:9px!important}
.v81-ui .v78-result-block{padding:10px!important}.v81-ui .v79-result-summary{gap:7px!important}.v81-ui .v78-result-summary>span{padding:9px!important}.v81-ui .v78-result .item-card{padding:9px!important}.v81-ui .v78-result-close{position:sticky;bottom:0;z-index:3}
.v81-ui .toast{padding:9px 11px!important;border-left:3px solid var(--v81-gold)!important;box-shadow:0 12px 35px rgba(0,0,0,.45)!important}.v81-ui .v76-toast-mark{width:28px!important;height:28px!important}

/* Админ-панель */
.v81-admin{max-width:1320px!important}
.v81-admin-tabs{position:sticky;top:8px;z-index:12;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:12px;padding:7px;border:1px solid rgba(230,196,104,.2);border-radius:17px;background:rgba(9,14,17,.94);backdrop-filter:blur(15px)}
.v81-admin-tabs button{min-height:46px!important;border-radius:11px!important;background:rgba(255,255,255,.03)!important}.v81-admin-tabs button.active{border-color:rgba(230,196,104,.42)!important;background:linear-gradient(145deg,rgba(230,196,104,.17),rgba(155,229,45,.07))!important;color:#fff!important}
.v81-admin-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v81-admin-card{display:none!important;padding:16px!important;border-radius:18px!important;background:radial-gradient(circle at 100% 0,rgba(230,196,104,.06),transparent 34%),linear-gradient(145deg,#11191e,#0a0f13)!important}.v81-admin-card.active{display:block!important}
.v81-admin-card h2{margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(230,196,104,.16)}
.v81-admin-card label{display:grid;gap:5px;margin:9px 0;color:#b6c0c6;font-size:12px}.v81-admin-card input,.v81-admin-card select{width:100%;min-height:42px;padding:8px 10px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:#090e12;color:#edf2f4}.v81-admin-card .check-line{display:flex;align-items:center}.v81-admin-card .check-line input{width:18px;min-height:18px}.v81-admin-card>.primary,.v81-admin-card>.danger{width:100%;margin-top:10px}.v81-admin-card .admin-editor-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}

@media(max-width:900px){
  .v81-ui .v81-monster-deal{grid-template-columns:105px minmax(0,1fr)!important;gap:11px!important;max-height:72dvh!important}
  .v81-ui .v79-deal-actions{grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v81-support-scroll{grid-template-columns:1fr}.v81-support-drawer{height:min(500px,62dvh)}
  .v81-admin-pages{grid-template-columns:1fr}
}
@media(max-width:600px){
  .v81-ui .bottom-nav,.v81-ui .v76-bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .v81-ui .v76-side-nav{grid-template-columns:1fr 1fr!important}
  .v81-ui .item-list,.v81-ui .inventory-list,.v81-ui .loot-pile-scroll{grid-template-columns:1fr!important}
  .v81-ui .item-card{grid-template-columns:68px minmax(0,1fr)!important;gap:9px!important;padding:9px!important}
  .v81-ui .item-icon-wrap{width:68px!important;min-width:68px!important}.v81-ui .item-emblem{width:62px!important;height:62px!important}
  .v81-ui .item-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v81-ui .item-actions button{font-size:10px!important;padding:7px 4px!important}
  .v81-ui .v39-attr-grid{grid-template-columns:1fr!important}.v81-ui .v81-attr-card{min-height:108px!important}.v81-ui .v81-attr-milestones{grid-template-columns:1fr}
  .v81-ui .v80-quests-panel{min-height:calc(100dvh - 165px);padding:12px}.v81-ui .v80-quests-panel>header>div{align-items:flex-start}.v81-ui .v80-quests-panel>header p{font-size:11px}
  .v81-ui .v80-quest-list{grid-template-columns:1fr}.v81-ui .v80-quest-card{grid-template-columns:76px minmax(0,1fr);gap:9px;padding:9px}.v81-ui .v80-quest-giver{height:82px}.v81-ui .v80-quest-head h2{font-size:15px}.v81-ui .v80-quest-head time{font-size:10px;padding:5px 6px}
  .v81-ui .v81-deal-shade{padding:6px!important}.v81-ui .v81-monster-deal{grid-template-columns:78px minmax(0,1fr)!important;padding:10px!important;border-radius:17px 17px 10px 10px!important}.v81-ui .v79-deal-monster>div{height:82px!important;min-height:82px}.v81-ui .v79-deal-monster>b{font-size:10px}.v81-ui .v79-deal-copy p{font-size:12px!important;line-height:1.42!important;min-height:76px!important}.v81-ui .v79-deal-actions button{font-size:11px!important;min-height:42px!important}
  .v81-chat-tail{flex-direction:column-reverse;gap:2px}.v81-ui .v80-chat-delete{width:24px!important;height:24px!important;flex-basis:24px}
  .v81-ui .v79-battle{width:calc(100% - 8px)!important}.v81-ui .v79-turn{grid-template-columns:36px minmax(0,1fr) auto!important}.v81-ui .v79-monster-card{grid-template-columns:78px minmax(0,1fr)!important}.v81-ui .v79-monster-art{width:78px!important;height:96px!important}
  .v81-support-tab{max-width:52vw!important;padding:7px 10px!important;font-size:10px!important}.v81-support-drawer{width:100%;height:min(520px,68dvh);border-radius:18px 18px 0 0}.v81-support-head{padding:10px 12px}.v81-support-head b{font-size:16px}.v81-support-head span{font-size:9px}.v81-support-scroll{padding:8px;gap:8px}.v81-potion-card{flex-basis:150px}.v81-support-friend{flex-basis:190px}
  .v81-admin-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.v81-admin-card{padding:12px!important}.v81-admin-card .admin-editor-box{grid-template-columns:1fr}
}

/* ---- css/v82-ui.css ---- */
:root{--v82-gold:#d8b95f;--v82-lime:#a9ed30;--v82-cyan:#55c9d5;--v82-panel:#10171c;--v82-panel-deep:#080d10;--v82-line:rgba(216,185,95,.25)}

/* Нарисованные интерфейсные символы: без emoji и растровых пиктограмм. */
.v82-title-mark,.v82-menu-glyph,.v82-stat-icon,.v82-item-symbol,.v82-ability-glyph,.v82-event-symbol,.v82-trash-symbol,.v82-player-symbol,.v82-add-symbol,.v82-check-symbol,.v82-level-symbol,.v82-attribute-symbol,.v82-hamburger{position:relative;display:inline-block;box-sizing:border-box}
.v82-title-mark{width:24px;height:24px;border:1px solid #81d9bc;border-radius:7px;transform:rotate(45deg);background:rgba(90,204,164,.08)}
.v82-title-mark:after{content:"";position:absolute;inset:6px;border:1px solid #e1c66d;border-radius:50%}
.v82-hamburger{width:20px;height:14px;border-block:2px solid currentColor}
.v82-hamburger:after{content:"";position:absolute;left:0;right:0;top:5px;border-top:2px solid currentColor}
.v82-stat-icon{width:14px;height:14px;flex:0 0 14px;margin-right:5px;color:#e4c56a}
.v82-stat-icon.damage:before,.v82-stat-icon.damage:after{content:"";position:absolute;left:6px;top:0;width:2px;height:14px;background:currentColor;border-radius:2px}
.v82-stat-icon.damage:before{transform:rotate(42deg)}.v82-stat-icon.damage:after{transform:rotate(-42deg)}
.v82-stat-icon.defense{border:2px solid currentColor;border-radius:7px 7px 10px 10px;clip-path:polygon(0 0,100% 0,85% 72%,50% 100%,15% 72%)}
.v82-stat-icon.heal{border:2px solid #76db8c;border-radius:50%}.v82-stat-icon.heal:before,.v82-stat-icon.heal:after{content:"";position:absolute;background:#76db8c}.v82-stat-icon.heal:before{left:5px;top:2px;width:2px;height:8px}.v82-stat-icon.heal:after{left:2px;top:5px;width:8px;height:2px}
.v82-stat-icon.mana{border:2px solid #55c9d5;border-radius:60% 40% 62% 38%;transform:rotate(45deg)}
.v82-stat-icon.weight{border:2px solid #d8b95f;border-radius:3px 3px 6px 6px}.v82-stat-icon.weight:before{content:"";position:absolute;left:3px;top:-6px;width:5px;height:5px;border:2px solid #d8b95f;border-bottom:0;border-radius:5px 5px 0 0}
.v82-item-symbol{width:34px;height:34px;border:2px solid currentColor;border-radius:9px;color:#d8b95f}.v82-item-symbol:before,.v82-item-symbol:after{content:"";position:absolute;background:currentColor;border-radius:3px}.v82-item-symbol:before{width:3px;height:22px;left:14px;top:4px}.v82-item-symbol:after{height:3px;width:18px;left:6px;top:14px}
.v82-item-symbol.type-consumable{border-radius:50% 50% 42% 42%;color:#65d6b2}.v82-item-symbol.type-material{transform:rotate(45deg);border-radius:5px;color:#d7b65f}
.v82-ability-glyph{width:26px;height:26px;border:2px solid currentColor;border-radius:50%;color:#e0c369}.v82-ability-glyph:before,.v82-ability-glyph:after{content:"";position:absolute;inset:6px;border:1px solid currentColor;transform:rotate(45deg)}.v82-ability-glyph.type-heal{color:#68d99c}.v82-ability-glyph.type-damage,.v82-ability-glyph.type-debuff{color:#eb8f67}.v82-ability-glyph.type-teamBuff,.v82-ability-glyph.type-defense{color:#66cbd9}.v82-ability-glyph.type-passive{color:#b6a6e9}
.v82-event-symbol{width:28px;height:28px;border:1px solid var(--v82-line);border-radius:8px}.v82-event-symbol:before{content:"";position:absolute;left:7px;top:7px;width:12px;height:12px;background:repeating-linear-gradient(to bottom,#d8b95f 0 2px,transparent 2px 5px)}
.v82-trash-symbol{width:12px;height:13px;border:1px solid currentColor;border-top:0;border-radius:0 0 3px 3px}.v82-trash-symbol:before{content:"";position:absolute;left:-2px;top:-4px;width:14px;border-top:2px solid currentColor}.v82-trash-symbol:after{content:"";position:absolute;left:3px;top:-7px;width:5px;height:3px;border:1px solid currentColor;border-bottom:0;border-radius:3px 3px 0 0}
.v82-player-symbol{width:50px;height:50px;border:2px solid #7e919e;border-radius:50%}.v82-player-symbol:after{content:"";position:absolute;left:-9px;right:-9px;top:39px;height:34px;border:2px solid #7e919e;border-radius:50% 50% 18px 18px}
.v82-add-symbol,.v82-check-symbol{width:18px;height:18px}.v82-add-symbol:before,.v82-add-symbol:after{content:"";position:absolute;background:currentColor;border-radius:2px}.v82-add-symbol:before{left:8px;top:1px;width:2px;height:16px}.v82-add-symbol:after{left:1px;top:8px;width:16px;height:2px}.v82-check-symbol{border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translate(2px,-2px);width:14px;height:8px}
.v82-level-symbol,.v82-attribute-symbol{width:18px;height:18px;border:1px solid currentColor;transform:rotate(45deg);border-radius:4px}.v82-level-symbol:after,.v82-attribute-symbol:after{content:"";position:absolute;inset:4px;border:1px solid currentColor;border-radius:50%}

/* Боковая панель получает собственную прокрутку и разные акцентные полосы. */
.v82-ui .v82-side .v76-side-nav{flex:1 1 auto!important;min-height:0!important;align-content:start!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
.v82-ui .v82-side .v76-side-nav button{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;overflow:hidden!important}
.v82-ui .v82-side .v76-side-nav button span{overflow-wrap:anywhere}
.v82-ui .v82-side .v76-side-nav button:after{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 4px 4px 0;background:#697780}
.v82-ui .v82-side [data-side-kind="quests"]:after,.v82-ui .v82-side [data-side-kind="admin"]:after{background:#dfb957}.v82-ui .v82-side [data-side-kind="inventory"]:after{background:#65c9a8}.v82-ui .v82-side [data-side-kind="abilities"]:after{background:#bd8de8}.v82-ui .v82-side [data-side-kind="friends"]:after{background:#61bde2}.v82-ui .v82-side [data-side-kind="settings"]:after{background:#89939b}.v82-ui .v82-side [data-side-kind="logout"]:after{background:#de6678}
.v82-ui .v82-menu-glyph{width:16px;height:16px;border:1px solid currentColor;border-radius:50%;opacity:.8}.v82-ui .v82-menu-glyph:after{content:"";position:absolute;inset:4px;border:1px solid currentColor;transform:rotate(45deg)}

/* Предметы: фиксированные зоны, длинные названия не меняют геометрию. */
.v82-ui .item-list,.v82-ui .inventory-list,.v82-ui .loot-pile-scroll{grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr))!important;align-items:stretch!important}
.v82-ui .v82-item-card{grid-template-columns:92px minmax(0,1fr)!important;gap:13px!important;min-height:190px!important;height:100%!important;padding:13px!important}
.v82-ui .v82-item-card.type-consumable,.v82-ui .v82-item-card.type-material{min-height:170px!important}
.v82-ui .v82-item-card .item-icon-wrap{width:92px!important;min-width:92px!important;height:106px!important;align-self:start!important}
.v82-ui .v82-item-card .item-emblem{width:84px!important;height:84px!important}
.v82-ui .v82-item-card .item-body{min-height:0!important;height:100%!important}
.v82-ui .v82-item-card .v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important}
.v82-ui .v82-item-card .v39-item-head h3{min-height:2.35em!important;max-height:2.35em!important;margin:0!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;font-size:15px!important}
.v82-ui .v82-item-card .item-description{min-height:2.7em!important;max-height:2.7em!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere!important}
.v82-ui .v82-item-card .item-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:auto!important}
.v82-ui .v82-item-card .item-actions button,.v82-ui .v82-item-card .item-actions .chance-pill{min-width:0!important;width:100%!important;min-height:39px!important;padding:7px 8px!important;font-size:11px!important;overflow-wrap:anywhere!important}
.v82-ui .v82-item-card .item-actions>:only-child{grid-column:1/-1}
.v82-ui .v80-item-stats span{display:inline-flex!important;align-items:center!important;white-space:nowrap!important}
.v82-ui .item-detail-card{width:min(620px,100%)!important;margin:auto!important;overflow:hidden!important}
.v82-ui .item-detail-card h2{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-align:center!important;font-size:clamp(20px,4vw,30px)!important}
.v82-ui .item-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.v82-ui .item-detail-actions button{min-width:0!important;width:100%!important}

/* Компактная карточка монстра. */
.v82-ui .v82-monster-sheet{display:grid!important;gap:12px!important;width:100%!important;padding:0!important;overflow:visible!important}
.v82-ui .v82-monster-intro{display:grid!important;grid-template-columns:128px minmax(0,1fr)!important;align-items:center!important;gap:15px!important;min-height:148px!important;padding:12px!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:16px!important;background:linear-gradient(135deg,#111a20,#0a1014)!important}
.v82-ui .v82-monster-intro .v79-monster-portrait{width:128px!important;height:124px!important;min-width:128px!important;overflow:hidden!important;border-radius:13px!important;background:#080d10!important}
.v82-ui .v82-monster-intro img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.v82-ui .v82-monster-copy{align-self:center!important}.v82-ui .v82-monster-copy h2{margin:0!important;font-size:22px!important;overflow-wrap:anywhere!important}.v82-ui .v82-monster-copy p{margin:7px 0 0!important;line-height:1.5!important;max-width:70ch!important}
.v82-ui .v82-monster-title{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important}.v82-ui .v82-monster-footer{display:flex!important;justify-content:center!important;padding-top:2px!important}.v82-ui .v82-monster-footer button{width:min(300px,100%)!important}

/* Диалог сущности использует свободную высоту; прокручивается только целиком на очень низком экране. */
.v82-ui .v82-deal-shade{overflow-y:auto!important;overscroll-behavior:contain!important}
.v82-ui .v82-monster-deal{min-height:176px!important;max-height:none!important;height:auto!important;overflow:visible!important;grid-template-columns:136px minmax(0,1fr) 210px!important;align-items:center!important}
.v82-ui .v82-monster-deal .v79-deal-copy{overflow:visible!important;max-height:none!important;align-self:center!important}
.v82-ui .v82-monster-deal .v79-deal-copy p{min-height:0!important;max-height:none!important;overflow:visible!important;margin:7px 0!important}
.v82-ui .v82-monster-deal .v79-deal-actions{width:100%!important;align-self:center!important}.v82-ui .v82-monster-deal .v79-deal-actions button{min-width:0!important;width:100%!important}

/* Атрибуты и выбор уровня. */
.v82-ui .v82-attr-card{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center!important;gap:10px!important;min-height:62px!important;padding:11px 13px!important;text-align:left!important}
.v82-ui .v82-attr-card>span{font-weight:800!important;color:#e8edef!important;overflow-wrap:anywhere}.v82-ui .v82-attr-card>b{display:grid;place-items:center;width:40px;height:38px;border:1px solid var(--v82-line);border-radius:11px;background:#292313;color:#ebcc72}
.v82-ui .v82-level-notice{display:grid!important;grid-template-columns:22px minmax(0,1fr) 32px!important;align-items:center!important;gap:8px!important;min-height:46px!important}
.v82-ui .v82-level-choice{display:grid!important;gap:14px!important;overflow:hidden!important}.v82-ui .v82-level-choice>p,.v82-ui .v82-level-choice>small{text-align:center!important;margin:0!important}
.v82-ui .v82-level-choice .v39-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.v82-ui .v82-choice-card{display:grid!important;grid-template-columns:26px minmax(0,1fr) 48px!important;align-items:center!important;gap:9px!important;min-height:88px!important;width:100%!important;padding:13px!important;overflow:hidden!important;text-align:left!important}
.v82-ui .v82-choice-card>i{display:inline-block!important}.v82-ui .v82-choice-card>span{display:block!important;grid-row:auto!important;min-width:0!important;font-size:clamp(15px,3.5vw,20px)!important;font-weight:800!important;overflow-wrap:anywhere!important;word-break:break-word!important}.v82-ui .v82-choice-card>b{justify-self:end!important;font-size:20px!important;color:#f1bf62!important}

/* Чат-профиль: роль, друг и кнопка больше не пересекаются. */
.v82-ui .v82-chat-badges{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;min-height:38px!important}
.v82-ui .v80-chat-profile-main footer{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:10px!important}
.v82-ui .v80-chat-profile-main footer>span{overflow-wrap:anywhere!important}.v82-ui .v80-add-friend{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;margin:0!important}

/* Нижняя навигация без лишней пустоты. */
.v82-ui .bottom-nav,.v82-ui .v76-bottom-nav{min-height:54px!important;height:54px!important;padding:4px!important;bottom:max(6px,env(safe-area-inset-bottom))!important}
.v82-ui .bottom-nav>button{min-height:44px!important;height:44px!important;padding:3px 5px!important}

/* Навыки и события боя. */
.v82-ui .v79-left-drawer .v17-skill-scroll{overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:#9c8140 #10171c!important}
.v82-ui .v62-drawer-section-title{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:8px!important;text-align:center!important}.v82-ui .v62-drawer-section-title:before{content:"";border-top:1px solid rgba(216,185,95,.16)}.v82-ui .v62-drawer-section-title h3{grid-column:2!important;margin:0!important;text-align:center!important}.v82-ui .v62-drawer-section-title>span{grid-column:3!important;justify-self:end!important}
.v82-ui .v62-skill-slot{min-height:94px!important;overflow:hidden!important}.v82-ui .v59-skill-slot-main{position:relative!important;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:3px 8px!important;align-items:center!important;min-height:92px!important;overflow:hidden!important}.v82-ui .v59-skill-slot-main>span{grid-row:1/4!important;display:grid!important;place-items:center!important;width:44px!important;height:48px!important}.v82-ui .v59-skill-slot-main b,.v82-ui .v59-skill-slot-main small,.v82-ui .v59-skill-slot-main em{min-width:0!important;overflow-wrap:anywhere!important}.v82-ui .v59-skill-slot-main small{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-height:1.3!important}.v82-ui .v59-skill-slot-main em{font-size:8px!important;letter-spacing:.06em!important;color:#d3b85f!important}
.v82-ui .v82-skill-cooldown .v59-skill-slot-main>*:not(.v82-cooldown-cover):not(.v59-cd-badge){filter:blur(1.6px)!important;opacity:.45!important}
.v82-ui .v82-cooldown-cover{position:absolute!important;z-index:3!important;inset:0!important;display:grid!important;place-items:center!important;padding:8px!important;background:rgba(3,6,8,.58)!important;backdrop-filter:blur(3px)!important;color:#e7ca70!important;font-weight:800!important;text-align:center!important}.v82-ui .v82-skill-cooldown .v59-cd-badge{z-index:4!important}
.v82-ui .v82-battle-events{min-height:0!important;padding:0!important;overflow:hidden!important;border-radius:16px!important}.v82-ui .v82-battle-events .v79-log-head{min-height:60px!important;padding:10px 13px!important;background:linear-gradient(90deg,rgba(216,185,95,.08),transparent)!important}.v82-ui .v82-battle-events .battle-log-scroll{max-height:190px!important;padding:8px!important}.v82-ui .v82-battle-events .v79-log-entry{grid-template-columns:26px minmax(0,1fr)!important;min-height:38px!important;padding:7px 9px!important;border-radius:9px!important}.v82-ui .v82-battle-events.collapsed .battle-log-scroll{display:none!important}

/* Раздел друзей без пустой правой колонки. */
.v82-ui .v76-social-grid{grid-template-columns:1fr!important;max-width:1040px!important;margin-inline:auto!important}.v82-ui .v76-social-main{grid-template-columns:repeat(2,minmax(0,1fr))!important}

@media (max-width:700px){
  .v82-ui .v82-side .v76-side-nav{grid-template-columns:1fr!important}
  .v82-ui .v82-side .v76-side-nav button.danger{grid-column:auto!important}
  .v82-ui .v82-item-card{grid-template-columns:76px minmax(0,1fr)!important;gap:10px!important;min-height:176px!important;padding:10px!important}
  .v82-ui .v82-item-card .item-icon-wrap{width:76px!important;min-width:76px!important;height:94px!important}.v82-ui .v82-item-card .item-emblem{width:68px!important;height:68px!important}
  .v82-ui .v82-item-card .v39-item-head h3{font-size:13px!important}.v82-ui .v82-item-card .item-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v82-ui .v82-item-card .item-actions button{font-size:10px!important;padding:6px 4px!important}
  .v82-ui .v82-monster-intro{grid-template-columns:92px minmax(0,1fr)!important;gap:10px!important;min-height:116px!important;padding:9px!important}.v82-ui .v82-monster-intro .v79-monster-portrait{width:92px!important;min-width:92px!important;height:96px!important}.v82-ui .v82-monster-copy h2{font-size:17px!important}.v82-ui .v82-monster-copy p{font-size:11px!important;line-height:1.4!important}
  .v82-ui .v82-deal-shade{align-items:flex-end!important;padding:7px!important}
  .v82-ui .v82-monster-deal{grid-template-columns:78px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:9px!important;width:100%!important;min-height:0!important;max-height:calc(100dvh - 18px)!important;padding:10px!important;overflow-y:auto!important;border-radius:18px!important}
  .v82-ui .v82-monster-deal .v79-deal-monster>div{width:78px!important;height:82px!important;min-height:82px!important}.v82-ui .v82-monster-deal .v79-deal-copy p{font-size:12px!important;line-height:1.42!important}
  .v82-ui .v82-monster-deal .v79-deal-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v82-ui .v82-monster-deal .v79-deal-actions button{min-height:42px!important;font-size:11px!important;padding:7px!important}
  .v82-ui .v82-level-choice .v39-choice-grid{grid-template-columns:1fr!important}.v82-ui .v82-choice-card{min-height:74px!important}
  .v82-ui .v80-chat-profile{grid-template-columns:96px minmax(0,1fr)!important}.v82-ui .v80-chat-profile-main footer{grid-template-columns:minmax(0,1fr) 42px!important}
  .v82-ui .v76-social-main{grid-template-columns:1fr!important}
}

@media (max-width:390px){
  .v82-ui .v82-item-card{grid-template-columns:66px minmax(0,1fr)!important}.v82-ui .v82-item-card .item-icon-wrap{width:66px!important;min-width:66px!important}.v82-ui .v82-item-card .item-emblem{width:58px!important;height:58px!important}
  .v82-ui .v82-item-card .item-actions{grid-template-columns:1fr!important}
  .v82-ui .v82-monster-intro{grid-template-columns:78px minmax(0,1fr)!important}.v82-ui .v82-monster-intro .v79-monster-portrait{width:78px!important;min-width:78px!important;height:84px!important}
}

/* ---- css/v83-ui.css ---- */
/* v83 — bitmap UI atlas, compact navigation and explicit ally targeting */
.v83-ui{
  --v83-gold:#d7b75d;
  --v83-mint:#58d3b2;
  --v83-line:rgba(215,183,93,.24);
  --v83-panel:linear-gradient(145deg,rgba(20,27,32,.98),rgba(8,13,17,.99));
}
.v83-ui-icon{
  display:block!important;
  width:22px;
  height:22px;
  min-width:0!important;
  max-width:100%;
  object-fit:contain;
  object-position:center;
  flex:0 0 auto;
  transform:none!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
}
.v83-ui .v82-title-mark:before,.v83-ui .v82-title-mark:after,
.v83-ui .v82-menu-glyph:before,.v83-ui .v82-menu-glyph:after,
.v83-ui .v82-stat-icon:before,.v83-ui .v82-stat-icon:after,
.v83-ui .v82-item-symbol:before,.v83-ui .v82-item-symbol:after,
.v83-ui .v82-ability-glyph:before,.v83-ui .v82-ability-glyph:after,
.v83-ui .v82-event-symbol:before,.v83-ui .v82-event-symbol:after,
.v83-ui .nav-glyph:before,.v83-ui .nav-glyph:after{content:none!important}

/* compact bottom navigation: no floating dead strip */
body.v83-ui .screen.v76-screen{
  padding-bottom:calc(54px + env(safe-area-inset-bottom))!important;
}
body.v83-ui .bottom-nav,body.v83-ui .v76-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(620px,100%)!important;
  height:50px!important;
  min-height:50px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:3px!important;
  padding:3px max(4px,env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))!important;
  overflow:hidden!important;
  border-radius:15px 15px 0 0!important;
  border-bottom:0!important;
  background:rgba(7,13,17,.98)!important;
}
body.v83-ui .bottom-nav>button,body.v83-ui .v76-bottom-nav>button{
  min-width:0!important;
  width:100%!important;
  height:43px!important;
  min-height:43px!important;
  padding:2px 4px!important;
  gap:1px!important;
  border-radius:10px!important;
}
body.v83-ui .bottom-nav .nav-glyph{
  width:18px!important;
  height:18px!important;
  border:0!important;
}
body.v83-ui .bottom-nav button span{font-size:9px!important;line-height:1!important}

/* real image marks in header and side menu */
.v83-ui .v83-header-icon{width:24px;height:24px}
.v83-ui .v83-title-icon{width:30px!important;height:30px!important}
.v83-ui .v76-side{
  overflow:hidden!important;
}
.v83-ui .v76-side-nav{
  overflow-y:auto!important;
  overscroll-behavior:contain;
  min-height:0!important;
  padding:8px 7px 18px!important;
  scrollbar-width:thin;
  scrollbar-color:var(--v83-gold) rgba(255,255,255,.04);
}
.v83-ui .v76-side-nav>button{
  grid-template-columns:31px minmax(0,1fr) auto!important;
  gap:10px!important;
  min-height:48px!important;
  padding:7px 11px!important;
  border-radius:13px!important;
  background:linear-gradient(90deg,rgba(255,255,255,.045),rgba(255,255,255,.018))!important;
}
.v83-ui .v76-side-nav>button:nth-child(3n+1){border-left-color:rgba(88,211,178,.45)!important}
.v83-ui .v76-side-nav>button:nth-child(3n+2){border-left-color:rgba(215,183,93,.5)!important}
.v83-ui .v76-side-nav>button:nth-child(3n){border-left-color:rgba(120,145,218,.46)!important}
.v83-ui .v83-side-icon{width:25px;height:25px}

/* attributes: name remains visible despite legacy span rules */
.v83-ui .v83-attr-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
  align-items:center!important;
  gap:9px!important;
  min-height:58px!important;
  padding:9px 11px!important;
  overflow:hidden!important;
}
.v83-ui .v83-attr-card .v83-attr-name{
  display:block!important;
  grid-column:1!important;
  color:#e9eef0!important;
  font-size:14px!important;
  font-weight:850!important;
  line-height:1.15!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.v83-ui .v83-attr-card>b{
  grid-column:2!important;
  justify-self:end!important;
  margin:0!important;
}
.v83-ui .v83-choice-card{
  grid-template-columns:30px minmax(0,1fr) 40px!important;
  min-width:0!important;
  overflow:hidden!important;
}
.v83-ui .v83-choice-card .v83-ui-icon{width:27px;height:27px}
.v83-ui .v83-choice-card>span{
  display:block!important;
  min-width:0!important;
  font-size:clamp(15px,3vw,22px)!important;
  overflow-wrap:anywhere!important;
  line-height:1.05!important;
}

/* players nearby: social action is always the right, vertically centered column */
.v83-ui .v74-online-card{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-height:78px!important;
  position:relative!important;
}
.v83-ui .v80-location-friend,.v83-ui .v80-location-friend-state{
  position:static!important;
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
  justify-self:end!important;
  margin:0!important;
}
.v83-ui .v80-location-friend{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  padding:6px!important;
}
.v83-ui .v80-location-friend-state{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:5px 7px!important;
  border:1px solid rgba(88,211,178,.3)!important;
  border-radius:10px!important;
  background:rgba(88,211,178,.08)!important;
}
.v83-ui .v80-location-friend-state .v83-ui-icon{width:18px;height:18px}
.v83-ui .v80-location-friend-state b{font-size:10px;color:#70d8b7}

/* compact ability cards: icon + name, details behind the information button */
.v83-ui .v79-left-drawer .v62-drawer-section-title{
  display:grid!important;
  grid-template-columns:1fr auto 1fr!important;
  align-items:center!important;
  text-align:center!important;
}
.v83-ui .v79-left-drawer .v62-drawer-section-title:before,
.v83-ui .v79-left-drawer .v62-drawer-section-title:after{
  content:"";
  height:1px;
  background:linear-gradient(90deg,transparent,var(--v83-line));
}
.v83-ui .v79-left-drawer .v62-drawer-section-title:after{background:linear-gradient(90deg,var(--v83-line),transparent)}
.v83-ui .v79-left-drawer .v62-drawer-section-title h3{padding:0 8px!important;text-align:center!important}
.v83-ui .v79-left-drawer .v62-drawer-section-title>span{position:absolute;right:10px}
.v83-ui .v83-skill-slot{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 38px!important;
  min-height:62px!important;
  border:1px solid rgba(215,183,93,.22)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,rgba(23,31,37,.98),rgba(11,16,21,.99))!important;
}
.v83-ui .v83-skill-slot .v59-skill-slot-main{
  display:grid!important;
  grid-template-columns:45px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  min-height:60px!important;
  padding:7px 9px!important;
  text-align:left!important;
}
.v83-ui .v83-skill-slot .v59-skill-slot-main>span{
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  border:1px solid rgba(215,183,93,.25)!important;
  border-radius:12px!important;
  background:rgba(0,0,0,.22)!important;
}
.v83-ui .v83-skill-slot .v83-ability-icon{width:34px!important;height:34px!important}
.v83-ui .v83-skill-slot .v59-skill-slot-main>b{
  min-width:0!important;
  font-size:12px!important;
  line-height:1.15!important;
  overflow-wrap:anywhere!important;
}
.v83-ui .v83-skill-slot .v59-skill-info{
  width:38px!important;
  min-width:38px!important;
  min-height:60px!important;
  padding:0!important;
  border-radius:0!important;
  border:0!important;
  border-left:1px solid rgba(255,255,255,.08)!important;
  font:800 14px/1 Georgia,serif!important;
}
.v83-ui .v83-skill-slot small,.v83-ui .v83-skill-slot em{display:none!important}
.v83-ui .v83-skill-slot.cooldown .v59-skill-slot-main{
  filter:blur(1.35px) saturate(.55)!important;
  opacity:.58!important;
}
.v83-ui .v83-skill-slot .v82-cooldown-cover{
  display:grid!important;
  place-items:center!important;
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  background:rgba(3,6,9,.62)!important;
  color:#f2d474!important;
  font-size:13px!important;
  font-weight:900!important;
}

/* explicit support target picker */
.v83-ally-target-backdrop{
  position:fixed;
  inset:0;
  z-index:190;
  display:grid;
  place-items:center;
  padding:14px;
  background:rgba(2,5,8,.76);
  backdrop-filter:blur(8px);
}
.v83-ally-target-dialog{
  width:min(720px,100%);
  max-height:min(86dvh,760px);
  overflow:auto;
  padding:15px;
  border:1px solid var(--v83-line);
  border-radius:22px;
  background:var(--v83-panel);
  box-shadow:0 28px 80px rgba(0,0,0,.68);
}
.v83-ally-target-dialog>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:11px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.v83-ally-target-dialog>header>div{display:flex;align-items:center;gap:10px}
.v83-ally-target-dialog>header .v83-ability-icon{width:42px;height:42px}
.v83-ally-target-dialog>header span{display:grid;gap:2px}
.v83-ally-target-dialog>header small{font-size:9px;letter-spacing:.16em;color:#98aaa8}
.v83-ally-target-dialog>header b{font:800 19px/1.1 Georgia,serif;color:#f2e8c5}
.v83-ally-target-dialog>header>button{display:grid;place-items:center;width:38px;height:38px;padding:7px;border-radius:11px}
.v83-ally-target-dialog>p{margin:11px 0;color:#aebbb9;font-size:12px}
.v83-ally-target-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.v83-ally-target-card{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:8px 10px!important;
  min-width:0!important;
  min-height:116px!important;
  padding:10px!important;
  text-align:left!important;
  border:1px solid rgba(88,211,178,.23)!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,rgba(24,34,39,.96),rgba(10,17,21,.98))!important;
}
.v83-ally-target-card:hover{border-color:rgba(88,211,178,.64)!important;transform:translateY(-1px)}
.v83-ally-art{grid-row:1/3;width:58px;height:70px;display:grid;place-items:center;overflow:hidden;border-radius:13px;background:#080d11}
.v83-ally-art img{width:100%;height:100%;object-fit:contain}
.v83-ally-copy{display:grid;min-width:0;gap:2px}
.v83-ally-copy>b{font-size:14px;overflow:hidden;text-overflow:ellipsis}
.v83-ally-copy>small{font-size:10px;color:#9cadab}
.v83-ally-effects{display:flex;gap:3px;min-width:0;overflow:hidden;margin-top:3px}
.v83-ally-effects .v57-player-effect{font-size:8px!important;padding:2px 4px!important;white-space:nowrap}
.v83-ally-bars{grid-column:2;display:grid;gap:5px}
.v83-ally-bars>span{position:relative;height:16px;overflow:hidden;border-radius:7px;background:#071014}
.v83-ally-bars>span>i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#4ab762,#90dc72)}
.v83-ally-bars>span.mp>i{background:linear-gradient(90deg,#368ca9,#55cad5)}
.v83-ally-bars>span>b{position:relative;z-index:1;display:block;padding:2px 5px;font-size:8px;color:#fff}

/* generated icons inside existing controls */
.v83-ui .v79-edge-tab>.v83-ui-icon,.v83-ui .v81-support-tab>.v83-ui-icon{width:19px;height:19px}
.v83-ui .v79-turn-icon>.v83-ui-icon,.v83-ui .v79-battle-mark>.v83-ui-icon{width:28px;height:28px}
.v83-ui .v79-player-action .v83-ui-icon{width:14px;height:14px}
.v83-ui .v79-log-head .v83-ui-icon{width:28px;height:28px}
.v83-ui .v79-log-entry>span .v83-ui-icon{width:18px;height:18px}
.v83-ui .v17-drawer-head b{display:flex!important;align-items:center!important;gap:6px!important}
.v83-ui .v17-drawer-head b .v83-ui-icon{width:19px;height:19px}
.v83-ui .v42-ability-detail-icon .v83-ui-icon,.v83-ui .ability-icon .v83-ui-icon{width:100%;height:100%}
.v83-ui .v38-mob-stats .v83-ui-icon{display:inline-block!important;width:14px;height:14px;vertical-align:middle;margin-right:4px}
.v83-ui .v39-resource-card .v83-ui-icon,.v83-ui .v39-mini-stat .v83-ui-icon{width:22px;height:22px}

@media(max-width:620px){
  body.v83-ui .screen.v76-screen{padding-bottom:calc(51px + env(safe-area-inset-bottom))!important}
  body.v83-ui .bottom-nav,body.v83-ui .v76-bottom-nav{
    width:100%!important;
    height:48px!important;
    min-height:48px!important;
    border-radius:12px 12px 0 0!important;
  }
  body.v83-ui .bottom-nav>button,body.v83-ui .v76-bottom-nav>button{height:41px!important;min-height:41px!important}
  .v83-ui .v74-online-card{grid-template-columns:50px minmax(0,1fr) auto!important;padding:8px!important}
  .v83-ui .v80-location-friend-state b{display:none}
  .v83-ui .v80-location-friend-state{width:36px;height:36px;padding:7px!important}
  .v83-ally-target-backdrop{align-items:end;padding:7px}
  .v83-ally-target-dialog{max-height:88dvh;border-radius:21px 21px 10px 10px;padding:12px}
  .v83-ally-target-grid{grid-template-columns:1fr}
  .v83-ally-target-card{min-height:103px}
  .v83-ui .v83-choice-card{grid-template-columns:25px minmax(0,1fr) 34px!important;padding:10px!important}
  .v83-ui .v83-choice-card>span{font-size:15px!important}
}

/* ---- css/v84-ui.css ---- */
:root{
  --v84-ink:#071015;
  --v84-panel:#0d171d;
  --v84-panel-2:#121f26;
  --v84-line:rgba(119,215,179,.2);
  --v84-gold:#e3b85b;
  --v84-mint:#71d7b2;
}

body.v84-ui{
  background:
    radial-gradient(circle at 14% 0,rgba(55,139,116,.12),transparent 34%),
    radial-gradient(circle at 88% 12%,rgba(202,151,54,.08),transparent 30%),
    var(--v84-ink);
}

.v84-ui .v83-ui-icon,
.v84-ui .asset-image{
  display:block;
  object-fit:contain;
  flex:0 0 auto;
}

.v84-ui .v83-header-icon{width:24px!important;height:24px!important}
.v84-ui .v83-title-icon{width:30px!important;height:30px!important}
.v84-ui .v83-side-icon{width:22px!important;height:22px!important}
.v84-ui .v76-title-mark{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;overflow:hidden!important}
.v84-ui .v76-title-mark img{width:25px!important;height:25px!important}

.v84-ui .location-hero{
  position:relative;
  isolation:isolate;
  min-height:190px;
  overflow:hidden;
  border:1px solid var(--v84-line)!important;
  background:#0b151a!important;
}
.v84-ui .location-hero::before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  background-image:linear-gradient(90deg,rgba(5,12,16,.96) 0%,rgba(5,12,16,.73) 48%,rgba(5,12,16,.28) 100%),var(--v84-location-bg);
  background-position:center;
  background-size:cover;
}
.v84-ui .location-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(0deg,rgba(7,15,19,.72),transparent 48%);
  pointer-events:none;
}
.v84-ui .location-hero>*{position:relative}

body.v84-ui .v79-drawer{
  width:min(380px,42vw)!important;
  max-width:380px!important;
  min-width:300px!important;
  background:
    radial-gradient(circle at 12% 0,rgba(113,215,178,.08),transparent 27%),
    linear-gradient(160deg,#0e191f,#071014)!important;
  border-color:var(--v84-line)!important;
  box-shadow:0 24px 72px rgba(0,0,0,.66)!important;
}


.v84-ui .v59-skill-slot,
.v84-ui .v58-skill-slot{
  min-height:64px!important;
  grid-template-columns:minmax(0,1fr) 38px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.08)!important;
  background:linear-gradient(145deg,#142128,#0c161b)!important;
}
.v84-ui .v59-skill-slot-main>span,
.v84-ui .v58-skill-slot-main>span{
  width:44px!important;
  height:44px!important;
  padding:5px!important;
  overflow:hidden!important;
  border:1px solid rgba(227,184,91,.28);
  border-radius:10px;
  background:#091217;
}
.v84-ui .v59-skill-slot-main>span img,
.v84-ui .v58-skill-slot-main>span img{width:100%!important;height:100%!important}
.v84-ui .v59-skill-slot-main>b,
.v84-ui .v58-skill-slot-main>b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px!important;
}
.v84-ui .v59-skill-info,
.v84-ui .v58-skill-info{
  width:34px!important;
  min-width:34px!important;
  height:40px!important;
  padding:0!important;
  transform:none!important;
}
.v84-ui .v82-cooldown-cover{backdrop-filter:blur(5px)!important;background:rgba(3,7,10,.7)!important}

.v84-ui .v79-edge-tab{
  width:38px!important;
  min-width:38px!important;
  transform:none!important;
  transition:border-color .16s ease,background-color .16s ease,color .16s ease!important;
}
.v84-ui .v79-edge-tab:hover,
.v84-ui .v79-edge-tab:focus-visible{transform:none!important;margin:0!important}
.v84-ui .v79-edge-tab.left{left:0!important}
.v84-ui .v79-edge-tab.right{right:0!important}
.v84-ui .v81-support-tab{
  transform:translateX(-50%)!important;
  transition:border-color .16s ease,background-color .16s ease,color .16s ease!important;
}
.v84-ui .v81-support-tab:hover,
.v84-ui .v81-support-tab:focus-visible{transform:translateX(-50%)!important;margin:0!important}

.v84-ui .v81-support-drawer{
  width:min(760px,62vw)!important;
  max-height:54dvh!important;
  background:
    radial-gradient(circle at 10% 0,rgba(227,184,91,.1),transparent 30%),
    linear-gradient(150deg,#101b21,#071015)!important;
}

.v84-ui .item-card,
.v84-ui .v82-item-card{
  grid-template-columns:78px minmax(0,1fr)!important;
  min-height:156px!important;
  gap:11px!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,rgba(19,31,38,.98),rgba(10,18,23,.98))!important;
}
.v84-ui .item-card .item-icon-wrap,
.v84-ui .v82-item-card .item-icon-wrap{
  width:78px!important;
  min-width:78px!important;
  height:88px!important;
}
.v84-ui .item-card .item-emblem,
.v84-ui .v82-item-card .item-emblem{width:72px!important;height:72px!important}
.v84-ui .item-card .item-emblem img,
.v84-ui .v82-item-card .item-emblem img{width:100%!important;height:100%!important;object-fit:contain!important}
.v84-ui .item-card h3,
.v84-ui .v82-item-card h3{
  font-size:14px!important;
  line-height:1.16!important;
  min-height:0!important;
  max-height:2.35em!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
}
.v84-ui .item-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
.v84-ui .item-actions button{min-width:0!important;width:100%!important;transform:none!important}

.v84-ui .v74-online-card{
  position:relative;
  min-height:72px!important;
  overflow:hidden!important;
}
.v84-ui .v80-location-friend,
.v84-ui .v80-location-friend-state{
  position:static!important;
  align-self:center!important;
  justify-self:end!important;
  margin:0!important;
}

.v84-ui .bottom-nav{
  min-height:54px!important;
  height:54px!important;
  padding:3px max(8px,env(safe-area-inset-right)) max(3px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
}
.v84-ui .bottom-nav button{min-height:46px!important;padding:4px 8px!important;transform:none!important}
.v84-ui .bottom-nav .nav-glyph{width:19px!important;height:19px!important}

.v84-ui .side{
  background:
    linear-gradient(165deg,rgba(16,31,35,.98),rgba(7,15,19,.99)),
    radial-gradient(circle at 20% 0,rgba(113,215,178,.1),transparent 30%)!important;
}
.v84-ui .v76-side-nav{overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:var(--v84-gold) rgba(255,255,255,.05)}
.v84-ui .v76-side-nav>button{
  min-height:48px!important;
  transform:none!important;
  background:linear-gradient(90deg,rgba(255,255,255,.035),transparent)!important;
}
.v84-ui .v76-side-nav>button:nth-child(3n/**/+2){background:linear-gradient(90deg,rgba(113,215,178,.06),transparent)!important}
.v84-ui .v76-side-nav>button:nth-child(3n){background:linear-gradient(90deg,rgba(227,184,91,.055),transparent)!important}

@media (max-width:640px){
  body.v84-ui .v79-drawer,
  body.v84-ui .v78-chat-drawer{
    width:50vw!important;
    min-width:176px!important;
    max-width:50vw!important;
  }
  .v84-ui .v81-support-drawer{
    width:50vw!important;
    min-width:176px!important;
    height:min(520px,64dvh)!important;
    left:50%!important;
  }
  
  
  
  
  .v84-ui .v62-drawer-section-title h3{font-size:10px!important}
  .v84-ui .v59-skill-slot,
  .v84-ui .v58-skill-slot{grid-template-columns:minmax(0,1fr) 32px!important}
  .v84-ui .v59-skill-slot-main>span,
  .v84-ui .v58-skill-slot-main>span{width:38px!important;height:38px!important}
  .v84-ui .v59-skill-slot-main>b,
  .v84-ui .v58-skill-slot-main>b{font-size:10px!important}
  
  
  .v84-ui .location-hero{min-height:170px}
  .v84-ui .item-card,
  .v84-ui .v82-item-card{grid-template-columns:70px minmax(0,1fr)!important;min-height:148px!important;padding:9px!important}
  .v84-ui .item-card .item-icon-wrap,
  .v84-ui .v82-item-card .item-icon-wrap{width:70px!important;min-width:70px!important;height:78px!important}
}

/* ---- css/v85-ui.css ---- */
:root{
  --v85-panel:#0d181e;
  --v85-line:rgba(113,215,178,.24);
  --v85-gold:#e3b85b;
  --v85-mint:#71d7b2;
}

/* v85 is the final geometry layer. It deliberately neutralizes old scale-based art rules. */
.v85-ui .hamburger,
.v85-ui .v76-title-mark{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
.v85-ui .hamburger img{
  width:22px!important;
  height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  margin:0!important;
  padding:1px!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.v85-ui .v76-title-mark{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  padding:6px!important;
}
.v85-ui .v76-title-mark img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:0!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}

/* Travel: real location art plus a dedicated travel emblem, both bounded. */
.v85-ui .v77-travel-card{
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  padding:20px 28px 24px!important;
  background:
    linear-gradient(180deg,rgba(8,18,23,.78),rgba(8,18,23,.98)),
    var(--v85-travel-art),
    linear-gradient(145deg,#13232b,#091216)!important;
  background-size:cover!important;
  background-position:center!important;
}
.v85-ui .v85-travel-scene{
  width:min(460px,76%)!important;
  height:94px!important;
  margin:0 auto 14px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border:1px solid rgba(113,215,178,.25);
  border-radius:18px;
  background:
    linear-gradient(90deg,rgba(5,12,16,.86),rgba(5,12,16,.34),rgba(5,12,16,.86)),
    var(--v85-travel-art),
    #0d181e;
  background-size:cover;
  background-position:center;
}
.v85-ui .v85-travel-scene img{
  width:72px!important;
  height:72px!important;
  padding:4px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 5px 14px rgba(0,0,0,.8));
}
.v85-ui .v77-travel-card .travel-icon{
  width:58px!important;
  height:58px!important;
  margin:0 auto 9px!important;
  padding:5px!important;
  overflow:hidden!important;
}
.v85-ui .v77-travel-card .travel-icon img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  transform:none!important;
}

/* Location and battle monsters: never enlarge the bitmap beyond its frame. */
.v85-ui .v38-mob-icon,
.v85-ui .v56-monster-avatar,
.v85-ui .monster-portrait,
.v85-ui .v65-monster-portrait{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  padding:6px!important;
}
.v85-ui .v38-mob-icon img,
.v85-ui .v38-mob-icon .monster-asset-image,
.v85-ui .v56-monster-avatar img,
.v85-ui .battle-monster-art,
.v85-ui .monster-portrait img,
.v85-ui .v65-monster-portrait img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  filter:drop-shadow(0 7px 8px rgba(0,0,0,.4))!important;
}
.v85-ui .v38-mob-actions button::before,
.v85-ui .v38-mob-actions button::after{
  content:none!important;
}
.v85-ui .v38-mob-actions button{
  font-size:11px!important;
  line-height:1.05!important;
  white-space:normal!important;
}

/* Item and loot art: fixed frame, safe internal padding and compact stat icons. */
.v85-ui .item-card,
.v85-ui .v82-item-card{
  grid-template-columns:76px minmax(0,1fr)!important;
  min-height:142px!important;
  align-items:start!important;
  overflow:hidden!important;
}
.v85-ui .item-icon-wrap,
.v85-ui .v39-item-icon-wrap{
  width:76px!important;
  min-width:76px!important;
  height:88px!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:5px!important;
}
.v85-ui .item-emblem,
.v85-ui .item-icon-wrap .item-emblem,
.v85-ui .v39-item-icon-wrap .item-emblem{
  position:relative!important;
  width:72px!important;
  height:72px!important;
  min-width:72px!important;
  min-height:72px!important;
  padding:6px!important;
  margin:0!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
}
.v85-ui .item-emblem>img,
.v85-ui .item-icon-wrap .item-emblem>img,
.v85-ui .v39-item-icon-wrap .item-emblem>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:0!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.v85-ui .v80-stack-count{
  position:absolute!important;
  right:3px!important;
  bottom:3px!important;
  z-index:4!important;
  min-width:21px!important;
  width:auto!important;
  height:21px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  font-size:11px!important;
  line-height:20px!important;
  color:#fff!important;
  background:rgba(4,8,12,.92)!important;
  border:1px solid var(--v85-gold)!important;
  pointer-events:none!important;
}
.v85-ui .item-stats-line,
.v85-ui .v80-item-stats{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  min-height:22px!important;
  overflow:visible!important;
  white-space:normal!important;
}
.v85-ui .item-stats-line>span,
.v85-ui .v80-item-stats>span{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  max-width:100%!important;
  padding:4px 7px!important;
  border:1px solid rgba(227,184,91,.22)!important;
  border-radius:999px!important;
  background:rgba(227,184,91,.07)!important;
}
.v85-ui .item-stats-line img,
.v85-ui .v80-item-stats img,
.v85-ui .item-stats-line .asset-image,
.v85-ui .v80-item-stats .asset-image{
  display:block!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  max-width:15px!important;
  max-height:15px!important;
  padding:0!important;
  margin:0!important;
  object-fit:contain!important;
  transform:none!important;
}
.v85-ui .item-type-label{
  width:100%!important;
  text-align:center!important;
  line-height:1.1!important;
}

/* Potion count belongs to the icon, not to the whole arsenal card. */
.v85-ui .v81-potion-art{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  padding:4px!important;
}
.v85-ui .v81-potion-art>img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  padding:0!important;
  object-fit:contain!important;
  transform:none!important;
}
.v85-ui .v81-potion-art>em{
  position:absolute!important;
  right:3px!important;
  bottom:3px!important;
  display:grid!important;
  place-items:center!important;
  min-width:21px!important;
  width:auto!important;
  height:21px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:rgba(4,8,12,.94)!important;
  border:1px solid var(--v85-gold)!important;
  color:#fff!important;
  font-size:11px!important;
  font-style:normal!important;
  line-height:1!important;
  z-index:3!important;
}
.v85-ui .v81-potion-card>em{display:none!important}

@media (max-width:720px){
  .v85-ui .v77-travel-card{
    width:min(94vw,560px)!important;
    padding:14px 12px 17px!important;
  }
  .v85-ui .v85-travel-scene{
    width:100%!important;
    height:80px!important;
    margin-bottom:10px!important;
  }
  .v85-ui .v77-travel-route{gap:8px!important}
  .v85-ui .v38-loc-monster{
    grid-template-columns:82px minmax(0,1fr)!important;
    grid-template-areas:"art main" "actions actions"!important;
    gap:8px 10px!important;
    min-height:132px!important;
    padding:9px!important;
  }
  .v85-ui .v38-mob-icon{
    grid-area:art!important;
    width:82px!important;
    height:82px!important;
    min-width:82px!important;
  }
  .v85-ui .v38-mob-main{grid-area:main!important}
  .v85-ui .v38-mob-actions{
    grid-area:actions!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)!important;
    flex-direction:initial!important;
    gap:7px!important;
  }
  .v85-ui .v38-mob-actions button{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    height:38px!important;
    padding:6px 8px!important;
    font-size:11px!important;
  }
  .v85-ui .item-card,
  .v85-ui .v82-item-card{
    grid-template-columns:70px minmax(0,1fr)!important;
    min-height:136px!important;
    gap:9px!important;
  }
  .v85-ui .item-icon-wrap,
  .v85-ui .v39-item-icon-wrap{
    width:70px!important;
    min-width:70px!important;
    height:82px!important;
  }
  .v85-ui .item-emblem,
  .v85-ui .item-icon-wrap .item-emblem,
  .v85-ui .v39-item-icon-wrap .item-emblem{
    width:66px!important;
    height:66px!important;
    min-width:66px!important;
    min-height:66px!important;
    padding:5px!important;
  }
}

@media (max-width:390px){
  .v85-ui .v38-loc-monster{grid-template-columns:72px minmax(0,1fr)!important}
  .v85-ui .v38-mob-icon{width:72px!important;height:72px!important;min-width:72px!important}
  .v85-ui .v38-mob-head h3{font-size:13px!important}
  .v85-ui .v38-mob-stats{font-size:9px!important;gap:7px!important}
}

/* ---- css/v86-ui.css ---- */
:root{--v86-bg:#071014;--v86-panel:#101a20;--v86-line:rgba(94,220,183,.24);--v86-gold:#e7c46c;--v86-jade:#65e2b5;--v86-muted:#91a1a8}
.v86-ui .v86-icon{display:block;width:28px;height:28px;object-fit:contain}

/* New world systems */
.v86-world-feature,.v86-weather{margin:14px 0;border:1px solid var(--v86-line);border-radius:18px;background:linear-gradient(145deg,rgba(16,28,34,.97),rgba(8,15,19,.98));box-shadow:0 18px 45px rgba(0,0,0,.25);overflow:hidden}
.v86-world-feature>header,.v86-weather{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 17px}
.v86-world-feature>header>.v86-icon{width:54px;height:54px}.v86-world-feature header small,.v86-weather small{color:var(--v86-gold);font-size:10px;letter-spacing:.15em}.v86-world-feature header h2,.v86-weather h3{margin:2px 0 4px}.v86-world-feature header p,.v86-weather p{margin:0;color:var(--v86-muted);font-size:12px}.v86-world-feature>header>span,.v86-weather>span{padding:8px 10px;border-radius:10px;background:rgba(101,226,181,.08);color:var(--v86-jade);font-weight:800;white-space:nowrap}
.v86-weather{grid-template-columns:52px minmax(0,1fr) auto}.v86-weather.active{border-color:rgba(231,196,108,.5);background:radial-gradient(circle at 8% 10%,rgba(101,226,181,.14),transparent 30%),linear-gradient(145deg,#142128,#091015)}.v86-weather-icon{width:50px;height:50px;padding:5px;border-radius:13px;background:#091116}.v86-weather-icon img{width:100%;height:100%;object-fit:contain}
.v86-ui .location-btn.has-weather{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}.v86-route-weather{display:flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid rgba(231,196,108,.35);border-radius:8px;background:#0a1217;color:var(--v86-gold);font-size:9px}.v86-route-weather img{width:24px;height:24px;object-fit:contain}.v86-weather-detail{display:grid;justify-items:center;gap:10px;text-align:center}.v86-weather-detail>img{width:110px;height:110px;object-fit:contain}.v86-weather-detail p{max-width:520px;color:var(--v86-muted)}
.v86-trade-nearby{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px;padding:0 15px 15px}.v86-trade-nearby article{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.025)}.v86-trade-nearby article>div{width:52px;height:58px;overflow:hidden;border-radius:10px;background:#081014}.v86-trade-nearby img{width:100%;height:100%;object-fit:contain}.v86-trade-nearby span{display:grid}.v86-trade-nearby small{color:var(--v86-muted)}
.v86-trade-session{margin:0 15px 15px;padding:12px;border:1px solid rgba(231,196,108,.25);border-radius:15px;background:#0b1419}.v86-trade-session>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.v86-trade-session>header>div{display:flex;align-items:center;gap:10px}.v86-trade-session>header span{display:grid}.v86-trade-session>header small{color:var(--v86-gold);letter-spacing:.12em}.v86-trade-session>header h3{margin:2px 0}.v86-trade-session>header>b{max-width:42%;padding:6px 9px;border-radius:8px;background:rgba(255,255,255,.05);color:var(--v86-muted);font-size:11px;text-align:right}
.v86-trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v86-trade-columns>article{display:grid;align-content:start;gap:8px;min-width:0;padding:11px;border:1px solid rgba(255,255,255,.07);border-radius:13px}.v86-trade-columns h4{margin:0}.v86-trade-columns label{display:grid;gap:5px;color:var(--v86-muted);font-size:11px}.v86-trade-columns label small{justify-self:end}.v86-trade-offer-item{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:10px;min-height:70px}.v86-trade-offer-item>div{width:58px;height:58px;padding:5px;border-radius:11px;background:#081014}.v86-trade-offer-item img{width:100%;height:100%;object-fit:contain}.v86-trade-offer-item span{display:grid;min-width:0}.v86-trade-offer-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v86-trade-offer-item small{color:var(--v86-muted)}.v86-trade-offer-item em{color:var(--v86-gold);font-size:11px;font-style:normal}.v86-trade-session>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.v86-trade-countdown{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;padding:9px;border-radius:10px;background:rgba(231,196,108,.08);color:var(--v86-gold)}.v86-trade-countdown .v86-icon{width:24px;height:24px}
.v86-altar-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:0 15px 14px}.v86-altar>h3{display:flex;justify-content:space-between;margin:8px 15px}.v86-altar>h3 span{color:var(--v86-gold)}.v86-altar-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:0 15px 15px}.v86-altar-grid.materials{grid-template-columns:repeat(4,minmax(0,1fr))}.v86-altar-slot{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:7px;min-height:58px;padding:7px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.025)}.v86-altar-slot.filled{border-color:rgba(231,196,108,.3)}.v86-altar-slot>div{width:42px;height:42px;padding:3px;border-radius:8px;background:#081014}.v86-altar-slot img,.v86-altar-slot .v86-icon{width:100%;height:100%;object-fit:contain}.v86-altar-slot span{display:grid;min-width:0}.v86-altar-slot b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.v86-altar-slot small{color:var(--v86-muted);font-size:9px}.v86-altar-locked{display:flex;align-items:center;gap:8px;margin:0 15px 13px;padding:10px;border-radius:10px;background:rgba(231,196,108,.08);color:var(--v86-gold)}

/* Geometry fixes */
.v86-ui .v85-travel-scene{display:none!important}.v86-ui .v77-travel-card{max-width:780px!important;padding:26px!important}.v86-ui .travel-icon{width:74px!important;height:74px!important;padding:10px!important}.v86-ui .travel-icon img{width:100%!important;height:100%!important;object-fit:contain!important}
.v86-ui .v38-mob-icon{display:grid!important;place-items:center!important;overflow:hidden!important;padding:8px!important}.v86-ui .v38-mob-icon img,.v86-ui .monster-asset-image{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.v86-ui .v38-loc-monster{min-width:0!important}.v86-ui .v38-mob-main{min-width:0!important}.v86-ui .v38-mob-head h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Battle ability slots: one asset plus one information button */
.v86-ui .v83-skill-slot{display:grid!important;grid-template-columns:72px 38px!important;width:118px!important;min-width:118px!important;min-height:74px!important;overflow:hidden!important}.v86-ui .v83-skill-slot .v59-skill-slot-main{position:relative!important;display:grid!important;place-items:center!important;min-width:0!important;width:72px!important;height:72px!important;padding:8px!important}.v86-ui .v83-skill-slot .v59-skill-slot-main>span{display:grid!important;place-items:center!important;width:54px!important;height:54px!important}.v86-ui .v83-skill-slot .v59-skill-slot-main>span img,.v86-ui .v83-skill-slot .v59-skill-slot-main>span .v83-ui-icon{width:100%!important;height:100%!important;object-fit:contain!important}.v86-ui .v83-skill-slot .v59-skill-slot-main>b{display:none!important}.v86-ui .v83-skill-slot .v59-skill-info{display:grid!important;place-items:center!important;width:38px!important;min-width:38px!important;height:72px!important;padding:8px!important}.v86-ui .v83-skill-slot .v59-skill-info img{width:21px!important;height:21px!important;object-fit:contain!important}.v86-ui .v83-skill-slot .v59-cd-badge{position:absolute!important;z-index:6!important;top:4px!important;right:4px!important;display:grid!important;place-items:center!important;min-width:25px!important;height:25px!important;padding:0 5px!important;border:1px solid var(--v86-gold)!important;border-radius:8px!important;background:#0b1115!important;color:#ffe58d!important;font-size:13px!important}.v86-ui .v82-cooldown-cover{pointer-events:none!important;background:rgba(3,7,10,.48)!important;backdrop-filter:blur(3px)!important}
.v86-ui .v59-skill-slot-grid{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.v86-ui .v62-drawer-section-title h3{width:100%!important;text-align:center!important}

/* Chat: timestamp remains fixed, delete is after it */
.v86-ui .v81-chat-tail{display:grid!important;grid-template-columns:auto 28px!important;align-items:center!important;gap:5px!important;min-width:max-content!important}.v86-ui .v80-chat-delete{position:static!important;width:28px!important;height:28px!important;padding:4px!important;order:2!important}.v86-ui .v81-chat-tail time{order:1!important;white-space:nowrap!important}.v86-ui .v80-chat-delete img{width:100%!important;height:100%!important;object-fit:contain!important}

/* Compact item and result cards */
.v86-ui .item-card{min-width:0!important;grid-template-columns:82px minmax(0,1fr)!important;align-items:start!important;gap:10px!important;padding:10px!important}.v86-ui .v39-item-icon-wrap{width:82px!important;min-width:82px!important}.v86-ui .item-emblem{width:72px!important;height:72px!important;padding:7px!important}.v86-ui .item-emblem img{width:100%!important;height:100%!important;object-fit:contain!important}.v86-ui .v39-item-body{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 9px!important;min-width:0!important}.v86-ui .v39-item-head{grid-column:1/-1!important;min-width:0!important}.v86-ui .v39-item-head h3{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.v86-ui .item-description{grid-column:1/-1!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.v86-ui .v80-item-stats{align-self:center!important}.v86-ui .v78-durability{grid-column:1/-1!important;margin-top:1px!important}.v86-ui .item-actions{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;gap:7px!important}.v86-ui .item-actions button{flex:1 1 120px!important;min-width:0!important}.v86-ui .v86-item-trade-lock{grid-column:1/-1!important;padding:5px 7px;border:1px solid rgba(231,196,108,.22);border-radius:8px;background:rgba(231,196,108,.07);color:var(--v86-gold);font-size:10px}
.v86-ui .context-result.item-card,.v86-ui .context-info.item-card{min-height:0!important}.v86-ui .context-result .item-description{font-size:11px!important}.v86-ui .v41-result-loot-owner{padding:10px!important}.v86-ui .v41-result-loot-owner .item-card+.item-card{margin-top:8px!important}.v86-ui .v78-result-block{padding:10px!important}.v86-ui .v78-result{max-height:min(82dvh,760px)!important;overflow:auto!important}
.v86-ui .v80-stack-count{right:3px!important;bottom:3px!important;top:auto!important;display:grid!important;place-items:center!important;min-width:25px!important;height:25px!important;border-radius:50%!important;background:#071014!important;color:#fff!important}

/* Inventory currency */
.v86-currency{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:10px 13px;border:1px solid rgba(231,196,108,.3);border-radius:13px;background:linear-gradient(120deg,rgba(231,196,108,.1),rgba(101,226,181,.04))}.v86-currency img{width:42px;height:42px;object-fit:contain}.v86-currency span{display:grid}.v86-currency small{color:var(--v86-muted)}.v86-currency b{color:var(--v86-gold);font-size:18px}
.v86-admin-account-list,.v86-admin-trade-log{display:grid;gap:8px;max-height:430px;overflow:auto}.v86-admin-account-list article,.v86-admin-trade-log article{display:grid;gap:4px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.025)}.v86-admin-account-list span,.v86-admin-trade-log small{color:var(--v86-muted);line-height:1.5}.v86-admin-trade-log header{display:flex;justify-content:space-between;gap:8px}.v86-admin-trade-log time{color:var(--v86-muted);font-size:10px}.v86-admin-trade-log p{margin:0}.v86-admin-trade-log .status-completed{border-color:rgba(101,226,181,.3)}.v86-admin-trade-log .status-rejected{border-color:rgba(255,100,120,.3)}

/* Stable hover geometry */
.v86-ui .v79-edge-tab,.v86-ui .v79-edge-tab:hover,.v86-ui .v79-edge-tab:focus-visible{margin:0!important;transform:none!important}.v86-ui .v81-support-tab,.v86-ui .v81-support-tab:hover,.v86-ui .v81-support-tab:focus-visible{margin:0!important;transform:translateX(-50%)!important}

@media(max-width:760px){
  .v86-ui .side,.v86-ui .v76-side,.v86-ui .v82-side{width:clamp(220px,50vw,520px)!important;min-width:0!important;max-width:520px!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  .v86-ui .v79-drawer,.v86-ui .v78-location-chat,.v86-ui .v78-chat-drawer{width:clamp(220px,50vw,520px)!important;min-width:0!important;max-width:520px!important}
  .v86-ui .v79-left-drawer{left:0!important}.v86-ui .v79-chat-drawer,.v86-ui .v78-location-chat{right:0!important}
  .v86-ui .v81-support-drawer{left:50%!important;width:94vw!important;min-width:0!important;max-width:680px!important;height:min(650px,76dvh)!important;transform:translate(-50%,105%)!important}.v86-ui .v81-support-drawer.open{transform:translate(-50%,0)!important}
  .v86-ui .v81-support-scroll{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px!important}.v86-ui .v81-support-zone{min-height:180px!important;overflow:hidden!important}.v86-ui .v81-potion-strip,.v86-ui .v81-friend-strip{display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:4px 3px 10px!important;scrollbar-width:thin!important;scroll-snap-type:x proximity!important}.v86-ui .v81-potion-card{flex:0 0 170px!important;scroll-snap-align:start!important}.v86-ui .v81-support-friend{flex:0 0 210px!important;scroll-snap-align:start!important}
  .v86-ui .v38-loc-monster{grid-template-columns:96px minmax(0,1fr)!important;gap:9px!important;padding:10px!important}.v86-ui .v38-mob-icon{width:96px!important;height:108px!important;padding:9px!important}.v86-ui .v38-mob-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(105px,.65fr) minmax(0,1.35fr)!important;gap:8px!important}.v86-ui .v38-mob-actions button{width:100%!important}
  .v86-world-feature>header,.v86-weather{grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important;padding:11px!important}.v86-world-feature>header>.v86-icon{width:42px!important;height:42px!important}.v86-world-feature>header>span,.v86-weather>span{grid-column:2!important;justify-self:start!important}.v86-world-feature header p,.v86-weather p{font-size:10px!important}
  .v86-trade-columns{grid-template-columns:1fr!important}.v86-trade-session>header{align-items:flex-start!important}.v86-trade-session>header>b{max-width:48%!important}.v86-trade-session>footer{display:grid!important;grid-template-columns:1fr 1fr!important}.v86-altar-controls{grid-template-columns:1fr!important}.v86-altar-grid,.v86-altar-grid.materials{display:flex!important;overflow-x:auto!important;gap:7px!important;padding-bottom:11px!important}.v86-altar-slot{flex:0 0 145px!important}
  .v86-ui .item-card{grid-template-columns:74px minmax(0,1fr)!important;padding:9px!important}.v86-ui .v39-item-icon-wrap{width:74px!important;min-width:74px!important}.v86-ui .item-emblem{width:66px!important;height:66px!important}.v86-ui .v39-item-body{grid-template-columns:1fr!important}.v86-ui .v39-item-head,.v86-ui .item-description,.v86-ui .v80-item-stats,.v86-ui .v78-durability,.v86-ui .item-actions{grid-column:1!important}.v86-ui .v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}.v86-ui .item-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.v86-ui .item-actions button{width:100%!important}
  .v86-ui .bottom-nav,.v86-ui .v76-bottom-nav{min-height:58px!important;height:58px!important;padding:4px 8px max(4px,env(safe-area-inset-bottom))!important}.v86-ui .bottom-nav button{min-height:48px!important;padding:3px!important}
  .v86-ui .v81-chat-tail{grid-template-columns:auto 25px!important}.v86-ui .v80-chat-delete{width:25px!important;height:25px!important}
}

@media(max-width:430px){
  .v86-ui .side,.v86-ui .v76-side,.v86-ui .v82-side,.v86-ui .v79-drawer,.v86-ui .v78-location-chat,.v86-ui .v78-chat-drawer{width:clamp(220px,52vw,250px)!important;min-width:0!important}
  .v86-ui .v81-support-drawer{width:96vw!important}
  .v86-ui .v38-loc-monster{grid-template-columns:86px minmax(0,1fr)!important}.v86-ui .v38-mob-icon{width:86px!important;height:100px!important}
}

/* ---- css/v87-ui.css ---- */
:root{
  --v87-line:rgba(101,226,181,.25);
  --v87-muted:#91a1a8;
  --v87-gold:#e7c46c;
}

/* Лут в карточке монстра не наследует растягивание обычной сетки предметов. */
.v87-ui .v79-monster-block>.context-info.item-card{
  width:100%!important;
  height:auto!important;
  min-height:96px!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  gap:9px!important;
  padding:8px!important;
  align-items:start!important;
}
.v87-ui .v79-monster-block>.context-info.item-card+.context-info.item-card{
  margin-top:8px!important;
}
.v87-ui .v79-monster-block>.context-info .v39-item-icon-wrap{
  width:64px!important;
  min-width:64px!important;
  height:72px!important;
  gap:3px!important;
}
.v87-ui .v79-monster-block>.context-info .item-emblem{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  padding:5px!important;
}
.v87-ui .v79-monster-block>.context-info .v39-item-body{
  height:auto!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:5px 7px!important;
}
.v87-ui .v79-monster-block>.context-info .v39-item-head h3{
  min-height:0!important;
  max-height:none!important;
  font-size:13px!important;
  white-space:normal!important;
  -webkit-line-clamp:2!important;
}
.v87-ui .v79-monster-block>.context-info .item-description{
  min-height:0!important;
  max-height:2.5em!important;
  font-size:10px!important;
  line-height:1.25!important;
}
.v87-ui .v79-monster-block>.context-info .item-actions{
  display:flex!important;
  justify-content:flex-start!important;
  margin-top:1px!important;
}
.v87-ui .v79-monster-block>.context-info .chance-pill{
  width:auto!important;
  min-width:76px!important;
  min-height:30px!important;
  padding:6px 10px!important;
}
.v87-ui .v79-monster-block>.context-info .v78-durability{
  margin-top:0!important;
}

/* Единая заглушка для временно закрытых разделов. */
.v87-coming-soon{
  min-height:clamp(220px,42dvh,440px);
  display:grid;
  place-content:center;
  justify-items:center;
  gap:9px;
  padding:24px;
  border:1px solid var(--v87-line);
  border-radius:20px;
  background:
    radial-gradient(circle at 50% 25%,rgba(101,226,181,.1),transparent 42%),
    linear-gradient(145deg,#101b21,#071015);
  text-align:center;
}
.v87-coming-soon.compact{
  min-height:142px;
  margin:0 15px 15px;
  border-color:rgba(231,196,108,.22);
  border-radius:14px;
}
.v87-coming-soon-icon{
  width:54px!important;
  height:54px!important;
  object-fit:contain!important;
  opacity:.82;
}
.v87-coming-soon small{
  color:var(--v87-gold);
  font-size:10px;
  letter-spacing:.16em;
}
.v87-coming-soon h2,
.v87-coming-soon h3{
  margin:0;
}
.v87-trade-closed>header{
  grid-template-columns:58px minmax(0,1fr)!important;
}

@media(max-width:760px){
  .v87-ui .v38-mob-icon img,
  .v87-ui .v38-mob-icon .monster-asset-image{
    width:calc(100% - 4px)!important;
    height:calc(100% - 4px)!important;
    max-width:calc(100% - 4px)!important;
    max-height:calc(100% - 4px)!important;
    transform:none!important;
  }
  .v87-ui .v79-monster-block>.context-info.item-card{
    min-height:90px!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    gap:7px!important;
    padding:7px!important;
  }
  .v87-ui .v79-monster-block>.context-info .v39-item-icon-wrap{
    width:58px!important;
    min-width:58px!important;
    height:66px!important;
  }
  .v87-ui .v79-monster-block>.context-info .item-emblem{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
  }
  .v87-coming-soon{
    min-height:38dvh;
  }
}

/* ALDOS MOBILE CHAT WIDTH 2026-07-30 */
@media (max-width: 760px) {
  body.v86-ui .v78-chat-drawer,
  body.v86-ui .v79-chat-drawer,
  body.v86-ui .v78-location-chat {
    right: 0 !important;
    left: auto !important;
    width: 73.333vw !important;
    min-width: 73.333vw !important;
    max-width: 73.333vw !important;
  }
}


/* ALDOS UPDATE MODAL V1 */

.v87-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;

  display: grid;
  place-items: center;

  padding: 20px;

  background: rgba(2, 7, 10, .82);
  backdrop-filter: blur(8px);
}

.v87-update-card {
  width: min(92vw, 430px);

  display: grid;
  justify-items: center;
  gap: 13px;

  padding: 24px;

  border: 1px solid rgba(101, 226, 181, .42);
  border-radius: 20px;

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(101, 226, 181, .13),
      transparent 45%
    ),
    linear-gradient(145deg, #122027, #081116);

  box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
  text-align: center;
}

.v87-update-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.v87-update-card p {
  margin: 0;
  color: #b9c7cc;
  line-height: 1.55;
}

.v87-update-card small {
  color: #e7c46c;
  letter-spacing: .12em;
}

.v87-update-card button {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;

  border: 0;
  border-radius: 13px;

  background: linear-gradient(180deg, #a8ff2f, #79d91d);
  color: #061006;

  font-weight: 900;
  cursor: pointer;
}

/* END ALDOS UPDATE MODAL V1 */

/* ---- css/v88-ui.css ---- */
/* Aldos RPG v1.88 — inventory currency and asset reliability */
:root{
  --v88-currency:#e7c46c;
  --v88-currency-bg:rgba(231,196,108,.10);
  --v88-currency-line:rgba(231,196,108,.30);
}

.v88-inventory-panel{
  overflow:visible!important;
}
.v88-inventory-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.v88-inventory-copy{
  min-width:0;
  display:grid;
  gap:5px;
}
.v88-inventory-title-line{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  flex-wrap:wrap;
}
.v88-inventory-title-line h2{
  margin:0!important;
}
.v88-inventory-currency{
  width:auto!important;
  min-width:0!important;
  min-height:32px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  padding:5px 10px 5px 7px!important;
  border:1px solid var(--v88-currency-line)!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(231,196,108,.13),rgba(231,196,108,.06))!important;
  color:#f8e4a1!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04)!important;
  font:inherit!important;
}
.v88-inventory-currency:hover{
  border-color:rgba(231,196,108,.50)!important;
  background:linear-gradient(180deg,rgba(231,196,108,.19),rgba(231,196,108,.09))!important;
}
.v88-inventory-currency img{
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  object-fit:contain!important;
  transform:none!important;
}
.v88-inventory-currency span{
  display:flex;
  align-items:baseline;
  gap:4px;
  white-space:nowrap;
}
.v88-inventory-currency b{
  color:#fff4bf;
  font-size:13px;
  line-height:1;
}
.v88-inventory-currency small{
  color:#c9b77d;
  font-size:9px;
  line-height:1;
}
.v88-currency-modal{
  display:grid;
  justify-items:center;
  gap:10px;
  text-align:center;
}
.v88-currency-modal>img{
  width:64px!important;
  height:64px!important;
  object-fit:contain!important;
}
.v88-currency-modal>b{
  color:#f4d979;
  font-size:19px;
}
.v88-currency-modal>p{
  margin:0;
  color:#aebbc0;
  line-height:1.5;
}
.v88-currency-modal>button{
  width:100%;
}

/* Final asset fit: old scale/cover rules must never crop game art. */
body.v88-ui .v38-mob-icon,
body.v88-ui .v56-monster-avatar,
body.v88-ui .v79-monster-art,
body.v88-ui .item-emblem,
body.v88-ui .v39-item-icon-wrap,
body.v88-ui .v74-online-art{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
body.v88-ui .v38-mob-icon{
  padding:7px!important;
}
body.v88-ui .v38-mob-icon img,
body.v88-ui .v38-mob-icon .monster-asset-image,
body.v88-ui .v56-monster-avatar img,
body.v88-ui .v56-monster-avatar .battle-monster-art,
body.v88-ui .v79-monster-art img,
body.v88-ui .battle-monster-art,
body.v88-ui .monster-asset-image,
body.v88-ui .item-asset-image,
body.v88-ui .class-asset-image{
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:auto!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  transform:none!important;
  translate:none!important;
  scale:none!important;
  transform-origin:center!important;
}
body.v88-ui .asset-recovered{
  width:58%!important;
  height:58%!important;
  opacity:.65!important;
  filter:grayscale(.25)!important;
}
body.v88-ui .asset-load-fallback{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid rgba(231,196,108,.25);
  border-radius:11px;
  color:#e7c46c;
  background:rgba(231,196,108,.08);
  font-size:15px;
}

@media(max-width:760px){
  .v88-inventory-head{
    align-items:flex-start!important;
  }
  .v88-inventory-title-line{
    gap:7px;
  }
  .v88-inventory-currency{
    min-height:30px!important;
    padding:4px 8px 4px 6px!important;
  }
  .v88-inventory-currency img{
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
  }
  .v88-inventory-currency small{
    display:none;
  }
  body.v88-ui .v38-mob-icon{
    padding:6px!important;
  }
}

/* ---- css/v89-ui.css ---- */
:root{
  --v89-panel:#0d171c;
  --v89-panel-soft:#122028;
  --v89-line:rgba(111,226,185,.22);
  --v89-gold:#e7c46c;
  --v89-jade:#73e8bb;
  --v89-muted:#91a4aa;
}

/* Side menu stays open across live world refreshes. */
.v89-ui .v76-side.open{will-change:transform}

/* Compact battle skill panel: one skill asset + one centered info control. */
.v89-ui .v79-left-drawer .v59-skill-slot-grid,
.v89-ui .v79-left-drawer .v58-skill-slot-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
}
.v89-ui .v79-left-drawer .v83-skill-slot,
.v89-ui .v79-left-drawer .v62-skill-slot.v59-skill-slot{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 30px!important;
  width:100%!important;
  min-width:0!important;
  min-height:62px!important;
  height:62px!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
.v89-ui .v79-left-drawer .v83-skill-slot .v59-skill-slot-main,
.v89-ui .v79-left-drawer .v83-skill-slot .v58-skill-slot-main{
  width:100%!important;
  min-width:0!important;
  height:62px!important;
  min-height:62px!important;
  padding:7px!important;
  display:grid!important;
  place-items:center!important;
  grid-template-columns:1fr!important;
  grid-template-rows:1fr!important;
  border-radius:13px 0 0 13px!important;
}
.v89-ui .v79-left-drawer .v83-skill-slot .v59-skill-slot-main>span,
.v89-ui .v79-left-drawer .v83-skill-slot .v58-skill-slot-main>span{
  width:46px!important;
  height:46px!important;
  display:grid!important;
  place-items:center!important;
  grid-row:auto!important;
  border-radius:12px!important;
  background:radial-gradient(circle,rgba(115,232,187,.14),rgba(255,255,255,.025))!important;
}
.v89-ui .v79-left-drawer .v83-skill-slot .v59-skill-slot-main img,
.v89-ui .v79-left-drawer .v83-skill-slot .v59-skill-slot-main .v83-ui-icon{
  width:42px!important;
  height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  object-fit:contain!important;
  object-position:center!important;
}
.v89-ui .v79-left-drawer .v83-skill-slot .v59-skill-info,
.v89-ui .v79-left-drawer .v83-skill-slot .v58-skill-info{
  width:30px!important;
  min-width:30px!important;
  height:62px!important;
  min-height:62px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-left:1px solid rgba(255,255,255,.07)!important;
  border-radius:0!important;
  background:rgba(255,255,255,.025)!important;
  font-size:0!important;
}
.v89-ui .v79-left-drawer .v59-skill-info::before,
.v89-ui .v79-left-drawer .v58-skill-info::before{
  content:none!important;
  display:none!important;
}
.v89-ui .v79-left-drawer .v59-skill-info img,
.v89-ui .v79-left-drawer .v59-skill-info .v83-ui-icon,
.v89-ui .v79-left-drawer .v58-skill-info img,
.v89-ui .v79-left-drawer .v58-skill-info .v83-ui-icon{
  display:block!important;
  width:18px!important;
  height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  margin:auto!important;
  object-fit:contain!important;
}
.v89-ui .v79-left-drawer .v59-cd-badge{
  top:3px!important;
  right:3px!important;
  min-width:22px!important;
  height:22px!important;
  border-radius:7px!important;
  font-size:11px!important;
}
.v89-ui .v79-left-drawer .v62-drawer-section-title{
  min-height:30px!important;
  margin:7px 0 4px!important;
}
.v89-ui .v79-left-drawer .v62-drawer-section-title h3{
  text-align:left!important;
  font-size:10px!important;
}
.v89-ui .v79-left-drawer .v57-skill-note{
  margin:0 0 7px!important;
  font-size:9px!important;
}

/* Longer and clearer skill-cast card with the applied ability asset in the center. */
.v89-ability-cast{
  background:radial-gradient(circle,rgba(18,43,38,.62),rgba(1,5,8,.48) 50%,rgba(1,4,6,.1) 72%)!important;
  backdrop-filter:blur(3px);
}
.v89-ability-cast>.v89-ability-cast-card{
  width:210px!important;
  height:238px!important;
  padding:18px!important;
  display:grid!important;
  grid-template-rows:auto 1fr auto!important;
  place-items:center!important;
  gap:9px!important;
  border:1px solid rgba(115,232,187,.48)!important;
  border-radius:24px!important;
  background:radial-gradient(circle at 50% 34%,rgba(115,232,187,.14),transparent 44%),linear-gradient(155deg,#16272c,#071014)!important;
  box-shadow:0 30px 100px rgba(0,0,0,.72),0 0 38px rgba(115,232,187,.1)!important;
  opacity:0;
  transform:translateY(12px) scale(.9);
  transition:.28s ease;
  animation:none!important;
}
.v89-ability-cast.show>.v89-ability-cast-card{
  opacity:1;
  transform:none;
}
.v89-ability-cast .v89-ability-cast-card>small{
  color:var(--v89-jade);
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
}
.v89-ability-cast .v89-ability-cast-art{
  width:118px!important;
  height:118px!important;
  display:grid!important;
  place-items:center!important;
  padding:15px!important;
  border:1px solid rgba(231,196,108,.35);
  border-radius:50%;
  background:radial-gradient(circle,rgba(231,196,108,.14),rgba(7,15,18,.82) 68%);
  box-shadow:inset 0 0 30px rgba(231,196,108,.08),0 0 34px rgba(115,232,187,.12);
}
.v89-ability-cast .v89-ability-cast-art img,
.v89-ability-cast .v89-ability-cast-art .v83-ui-icon{
  width:86px!important;
  height:86px!important;
  max-width:86px!important;
  max-height:86px!important;
  object-fit:contain!important;
  object-position:center!important;
}
.v89-ability-cast .v89-ability-cast-card>b{
  padding:0!important;
  color:#f3d987!important;
  font-size:15px!important;
  text-align:center!important;
}
.v89-ability-cast.shatter>.v89-ability-cast-card{
  animation:v89CastOut .6s ease both!important;
}
@keyframes v89CastOut{
  0%{opacity:1;transform:scale(1)}
  55%{opacity:.88;transform:scale(1.035)}
  100%{opacity:0;transform:scale(.92) translateY(-14px);filter:blur(3px)}
}

/* Weather card: compact, animated, two bonus chips only. */
.v89-ui .v89-weather{
  position:relative;
  grid-template-columns:68px minmax(0,1fr) auto!important;
  min-height:94px;
  padding:12px 14px!important;
  overflow:hidden;
  isolation:isolate;
  background:radial-gradient(circle at 8% 12%,rgba(115,232,187,.13),transparent 35%),linear-gradient(145deg,#122127,#071015)!important;
}
.v89-ui .v89-weather::after{
  content:"";
  position:absolute;
  inset:-60% -20%;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.035) 48%,transparent 61%);
  animation:v89WeatherSweep 6s ease-in-out infinite;
}
@keyframes v89WeatherSweep{0%,100%{transform:translateX(-35%)}50%{transform:translateX(35%)}}
.v89-weather-scene{
  position:relative;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border:1px solid rgba(231,196,108,.26);
  border-radius:18px;
  background:rgba(2,8,11,.54);
  overflow:hidden;
}
.v89-weather-scene img{width:54px;height:54px;object-fit:contain;animation:v89WeatherFloat 3.2s ease-in-out infinite}
.v89-weather-scene i{position:absolute;top:-8px;width:2px;height:18px;border-radius:99px;background:linear-gradient(transparent,rgba(115,232,187,.7));animation:v89WeatherDrop 1.8s linear infinite}
.v89-weather-scene i:nth-of-type(1){left:18px;animation-delay:.1s}.v89-weather-scene i:nth-of-type(2){left:34px;animation-delay:.7s}.v89-weather-scene i:nth-of-type(3){left:48px;animation-delay:1.2s}
@keyframes v89WeatherFloat{50%{transform:translateY(-4px) scale(1.03)}}
@keyframes v89WeatherDrop{from{transform:translateY(-8px);opacity:0}30%{opacity:1}to{transform:translateY(78px);opacity:0}}
.v89-weather-copy{min-width:0}.v89-weather-copy h3{margin:1px 0 2px!important;font-size:16px}.v89-weather-copy p{font-size:10px!important}
.v89-weather-bonuses{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.v89-weather-bonus{display:grid;grid-template-columns:22px auto;grid-template-rows:auto auto;align-items:center;column-gap:6px;min-width:110px;padding:5px 7px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.035)}
.v89-weather-bonus img{grid-row:1/3;width:22px;height:22px;object-fit:contain}.v89-weather-bonus b{font-size:11px;color:var(--v89-gold)}.v89-weather-bonus small{font-size:8px;color:var(--v89-muted)}
.v89-weather-time{align-self:start!important;padding:6px 9px!important;font-size:10px!important}

/* Altar summary and full circular interface. */
.v89-altar-summary-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:0 15px 15px}
.v89-altar-summary-foot>div{display:grid;grid-template-columns:auto minmax(100px,1fr);align-items:center;gap:9px}.v89-altar-summary-foot>div>b{color:var(--v89-gold)}.v89-altar-summary-foot>div>span{height:7px;border-radius:99px;background:rgba(255,255,255,.06);overflow:hidden}.v89-altar-summary-foot>div>span>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--v89-jade),var(--v89-gold))}
.v89-altar-summary-foot button{min-width:150px}
.v89-altar-panel>header{grid-template-columns:58px minmax(0,1fr) 42px!important}.v89-altar-panel>header>button{width:42px;height:42px;padding:8px!important}.v89-altar-panel>header>button img{width:100%;height:100%;object-fit:contain}
.v89-altar-chance-panel{display:grid;grid-template-columns:minmax(170px,.42fr) minmax(0,1fr);gap:12px;align-items:center;margin:0 15px 12px;padding:12px;border:1px solid rgba(231,196,108,.18);border-radius:14px;background:linear-gradient(120deg,rgba(231,196,108,.07),rgba(115,232,187,.025))}
.v89-altar-chance-panel small{color:var(--v89-gold);font-size:8px;letter-spacing:.13em}.v89-altar-chance-panel h3{margin:3px 0 0;font-size:13px}
.v89-altar-chances{display:flex;flex-wrap:wrap;gap:7px}.v89-altar-chances>span{position:relative;min-width:115px;max-width:190px;flex:1 1 120px;padding:7px 8px 9px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(255,255,255,.025);overflow:hidden}.v89-altar-chances b{display:block;color:var(--v89-jade);font-size:13px}.v89-altar-chances small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--v89-muted);letter-spacing:0}.v89-altar-chances i{position:absolute;left:0;bottom:0;width:var(--chance);height:3px;background:linear-gradient(90deg,var(--v89-jade),var(--v89-gold))}.v89-altar-chance-empty{margin:0;color:var(--v89-muted);font-size:10px}
.v89-altar-rings{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;padding:0 15px 14px}
.v89-altar-ring{min-width:0;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:16px;background:rgba(255,255,255,.02)}.v89-altar-ring>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.v89-altar-ring>header b{font-size:12px}.v89-altar-ring>header span{color:var(--v89-gold);font-size:11px}
.v89-ring-stage{--ring-radius:-180px;position:relative;width:min(100%,470px);aspect-ratio:1;margin:auto;border:1px solid rgba(115,232,187,.13);border-radius:50%;background:radial-gradient(circle,rgba(115,232,187,.065),rgba(2,8,11,.3) 54%,transparent 55%),repeating-radial-gradient(circle,transparent 0 29%,rgba(255,255,255,.025) 30% 30.5%,transparent 31% 100%)}
.v89-altar-ring.materials .v89-ring-stage{--ring-radius:-140px;width:min(100%,380px)}
.v89-ring-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:92px;height:92px;display:grid;grid-template-columns:36px auto;grid-template-rows:auto auto;place-content:center;align-items:center;gap:0 7px;border:1px solid rgba(231,196,108,.28);border-radius:50%;background:radial-gradient(circle,rgba(231,196,108,.12),#081115 68%);box-shadow:0 0 34px rgba(115,232,187,.08)}
.v89-ring-core .v86-icon{grid-row:1/3;width:36px;height:36px}.v89-ring-core b{font-size:17px;color:var(--v89-gold)}.v89-ring-core small{font-size:8px;color:var(--v89-muted)}
.v89-altar-slot{position:absolute!important;left:50%;top:50%;width:64px!important;height:64px!important;min-height:64px!important;padding:4px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1fr auto!important;place-items:center!important;gap:1px!important;border-radius:15px!important;transform:translate(-50%,-50%) rotate(var(--slot-angle)) translateY(var(--ring-radius)) rotate(var(--slot-angle-neg));transform-origin:center!important;box-shadow:0 7px 18px rgba(0,0,0,.24)}
.v89-altar-slot>div{width:42px!important;height:42px!important;padding:2px!important}.v89-altar-slot>b{width:100%;font-size:8px!important;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v89-altar-slot>small{display:none}.v89-altar-slot.filled{border-color:rgba(231,196,108,.42)!important;background:linear-gradient(145deg,rgba(231,196,108,.11),rgba(9,17,21,.95))!important}.v89-altar-slot.empty{opacity:.62}
.v89-altar-offerings{margin:0 15px 13px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.018)}.v89-altar-offerings>header{display:flex;align-items:end;justify-content:space-between;margin-bottom:8px}.v89-altar-offerings small{color:var(--v89-gold);font-size:8px;letter-spacing:.12em}.v89-altar-offerings h3{margin:2px 0 0;font-size:13px}.v89-altar-offerings>header>span{color:var(--v89-muted);font-size:10px}.v89-altar-offerings>div{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 7px;scroll-snap-type:x proximity}
.v89-altar-donation{flex:0 0 120px;min-width:120px;min-height:112px;display:grid;grid-template-rows:58px auto auto;place-items:center;gap:2px;padding:7px!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:13px!important;background:rgba(255,255,255,.025)!important;scroll-snap-align:start}.v89-altar-donation>span{width:58px;height:58px;display:grid;place-items:center;padding:5px;border-radius:12px;background:#071014}.v89-altar-donation img{width:100%;height:100%;object-fit:contain}.v89-altar-donation>b{width:100%;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v89-altar-donation>small{width:100%;font-size:8px;color:var(--v89-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v89-altar-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:0 15px 15px}.v89-altar-actions p{margin:0;color:var(--v89-muted);font-size:10px;line-height:1.45}.v89-altar-actions button{min-width:190px}

@media(max-width:760px){
  .v89-ui .v79-left-drawer .v59-skill-slot-grid,.v89-ui .v79-left-drawer .v58-skill-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .v89-ui .v89-weather{grid-template-columns:56px minmax(0,1fr)!important;padding:10px!important}.v89-weather-scene{width:52px;height:52px}.v89-weather-scene img{width:45px;height:45px}.v89-weather-time{grid-column:2;justify-self:start}.v89-weather-bonus{min-width:96px;padding:4px 6px}
  .v89-altar-summary-foot{grid-template-columns:1fr}.v89-altar-summary-foot button{width:100%}
  .v89-altar-panel>header{grid-template-columns:44px minmax(0,1fr) 36px!important}.v89-altar-panel>header>button{grid-column:3!important;grid-row:1!important;width:36px;height:36px}
  .v89-altar-chance-panel{grid-template-columns:1fr}.v89-altar-rings{grid-template-columns:1fr;gap:10px}.v89-ring-stage{--ring-radius:-137px;width:min(100%,360px)}.v89-altar-ring.materials .v89-ring-stage{--ring-radius:-115px;width:min(100%,320px)}
  .v89-altar-slot{width:55px!important;height:55px!important;min-height:55px!important;border-radius:13px!important}.v89-altar-slot>div{width:36px!important;height:36px!important}.v89-altar-slot>b{font-size:7px!important}.v89-ring-core{width:78px;height:78px;grid-template-columns:30px auto}.v89-ring-core .v86-icon{width:30px;height:30px}
  .v89-altar-actions{grid-template-columns:1fr}.v89-altar-actions button{width:100%;min-width:0}
}
@media(max-width:380px){
  .v89-ui .v79-left-drawer .v59-skill-slot-grid,.v89-ui .v79-left-drawer .v58-skill-slot-grid{grid-template-columns:1fr 1fr!important}
  .v89-ring-stage{--ring-radius:-105px;width:290px;max-width:100%}.v89-altar-ring.materials .v89-ring-stage{--ring-radius:-95px;width:270px;max-width:100%}.v89-altar-slot{width:50px!important;height:50px!important;min-height:50px!important}.v89-altar-slot>div{width:33px!important;height:33px!important}
}

/* ---- css/v90-ui.css ---- */
:root{
  --v90-line:rgba(111,226,185,.24);
}

/* v90: mobile polish and bugfix layer */
.v90-ui .v76-title{
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
}
.v90-ui .v76-title-mark{
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  justify-self:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  padding:6px!important;
  overflow:hidden!important;
}
.v90-ui .v76-title-mark img,
.v90-ui .v76-title-mark .v83-ui-icon{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.v90-ui .v76-side,
.v90-ui .v82-side{overscroll-behavior:contain}
.v90-ui .v79-left-drawer .v83-skill-slot,
.v90-ui .v79-left-drawer .v62-skill-slot.v59-skill-slot{
  grid-template-columns:minmax(0,1fr) 34px!important;
  min-height:64px!important;
  height:64px!important;
}
.v90-ui .v79-left-drawer .v83-skill-slot .v59-skill-slot-main,
.v90-ui .v79-left-drawer .v83-skill-slot .v58-skill-slot-main{
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
  border-radius:13px 0 0 13px!important;
}
.v90-ui .v79-left-drawer .v83-skill-slot .v59-skill-info,
.v90-ui .v79-left-drawer .v83-skill-slot .v58-skill-info{
  width:34px!important;
  min-width:34px!important;
  height:64px!important;
  min-height:64px!important;
  position:relative!important;
  z-index:2!important;
  place-self:stretch!important;
}
.v90-ui .v79-left-drawer .v83-skill-slot .v59-skill-slot-main>span,
.v90-ui .v79-left-drawer .v83-skill-slot .v58-skill-slot-main>span{
  width:42px!important;
  height:42px!important;
}
.v90-ui .v79-left-drawer .v59-cd-badge,
.v90-ui .v79-left-drawer .v58-cd-badge{
  right:4px!important;
  top:4px!important;
}
.v90-ui .v89-altar-slot{gap:1px!important}
.v90-ui .v89-altar-slot.filled{
  grid-template-rows:1fr auto auto!important;
  padding:3px!important;
}
.v90-ui .v89-altar-slot>small{
  display:block!important;
  max-width:100%!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:var(--v89-muted)!important;
  font-size:6px!important;
  line-height:1.05!important;
}
.v90-ui .v89-altar-slot>b{line-height:1.05!important}

@media (max-width: 700px){
  .v90-ui .v76-topbar{grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important}
  .v90-ui .v76-network{grid-column:1 / -1!important;justify-self:end!important;font-size:10px!important;padding:6px 9px!important}
  .v90-ui .v79-left-drawer .v59-skill-slot-grid,
  .v90-ui .v79-left-drawer .v58-skill-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .v90-ui .v89-ring-stage{--ring-radius:-126px;width:min(100%,340px)!important;max-width:100%!important}
  .v90-ui .v89-altar-ring.materials .v89-ring-stage{--ring-radius:-102px;width:min(100%,300px)!important;max-width:100%!important}
  .v90-ui .v89-altar-slot{width:52px!important;height:58px!important;min-height:58px!important}
  .v90-ui .v89-altar-slot>div{width:32px!important;height:32px!important}
  .v90-ui .v89-ring-core{width:72px!important;height:72px!important;grid-template-columns:28px auto!important}
  .v90-ui .v89-ring-core .v86-icon{width:28px!important;height:28px!important}
}

@media (max-width: 390px){
  .v90-ui .v79-left-drawer .v83-skill-slot,
  .v90-ui .v79-left-drawer .v62-skill-slot.v59-skill-slot{grid-template-columns:minmax(0,1fr) 32px!important;min-height:62px!important;height:62px!important}
  .v90-ui .v79-left-drawer .v83-skill-slot .v59-skill-info,
  .v90-ui .v79-left-drawer .v83-skill-slot .v58-skill-info{width:32px!important;min-width:32px!important;height:62px!important;min-height:62px!important}
  .v90-ui .v89-ring-stage{--ring-radius:-109px;width:286px!important}
  .v90-ui .v89-altar-ring.materials .v89-ring-stage{--ring-radius:-92px;width:260px!important}
  .v90-ui .v89-altar-slot{width:48px!important;height:54px!important;min-height:54px!important}
  .v90-ui .v89-altar-slot>div{width:28px!important;height:28px!important}
}

/* ---- css/v91-ui.css ---- */
:root{
  --v91-mail:#9dff45;
  --v91-mail-soft:rgba(157,255,69,.1);
}
.v91-ui .v91-email-card{max-width:500px!important}
.v91-ui .v91-code-field input{
  min-height:72px!important;
  text-align:center!important;
  font-size:34px!important;
  font-weight:900!important;
  letter-spacing:.28em!important;
  color:var(--v91-mail)!important;
  font-variant-numeric:tabular-nums!important;
  background:linear-gradient(145deg,rgba(157,255,69,.09),rgba(255,255,255,.025))!important;
  border-color:rgba(157,255,69,.32)!important;
}
.v91-ui .v91-code-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}
.v91-ui .v91-code-actions button{
  min-height:40px;
  padding:7px 9px!important;
}
.v91-ui .v91-code-actions button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
@media(max-width:520px){
  .v91-ui .v91-code-field input{font-size:29px!important;letter-spacing:.22em!important}
  .v91-ui .v91-code-actions{flex-direction:column}
  .v91-ui .v91-code-actions button{width:100%}
}

/* ---- css/v92-ui.css ---- */
:root{
  --v92-orange:#ff9f2f;
  --v92-orange-soft:rgba(255,159,47,.13);
  --v92-system:#9aa5ad;
  --v92-system-soft:rgba(154,165,173,.09);
}

/* Skill assets: always centered, contained and clipped inside their slot. */
.v92-ui .v79-left-drawer .v83-skill-slot,
.v92-ui .v79-left-drawer .v62-skill-slot.v59-skill-slot{
  overflow:hidden!important;
}
.v92-ui .v79-left-drawer .v59-skill-slot-main,
.v92-ui .v79-left-drawer .v58-skill-slot-main{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  padding:6px!important;
}
.v92-ui .v79-left-drawer .v59-skill-slot-main>span,
.v92-ui .v79-left-drawer .v58-skill-slot-main>span{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  margin:auto!important;
  padding:4px!important;
  box-sizing:border-box!important;
}
.v92-ui .v79-left-drawer .v59-skill-slot-main img,
.v92-ui .v79-left-drawer .v58-skill-slot-main img,
.v92-ui .v79-left-drawer .v83-ability-icon{
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.v92-ui .v79-left-drawer .v59-skill-info,
.v92-ui .v79-left-drawer .v58-skill-info{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}

/* Same safe asset frame in the non-battle ability list. */
.v92-ui .v83-ability-card .v83-ability-icon,
.v92-ui .v83-ability-row .v83-ability-icon,
.v92-ui [data-ability-detail] .v83-ability-icon{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  padding:5px!important;
}
.v92-ui .v83-ability-card .v83-ability-icon img,
.v92-ui .v83-ability-row .v83-ability-icon img,
.v92-ui [data-ability-detail] .v83-ability-icon img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* Wider global chat on desktop, still a drawer on phones. */
@media (min-width: 901px){
  .v92-ui .v78-location-chat,
  .v92-ui .v79-chat-drawer{
    width:min(540px,42vw)!important;
    max-width:540px!important;
  }
  .v92-ui.chat-extra-wide .v78-location-chat,
  .v92-ui.chat-extra-wide .v79-chat-drawer{
    width:min(620px,48vw)!important;
    max-width:620px!important;
  }
}
@media (max-width: 900px){
  .v92-ui .v78-location-chat,
  .v92-ui .v79-chat-drawer{
    width:min(92vw,430px)!important;
    max-width:none!important;
  }
}

.v92-ui .v78-chat-message{cursor:pointer}
.v92-ui .v78-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere}
.v92-ui .v78-chat-cleared{font-style:italic;opacity:.72}

/* Events: Greizar is orange-neon, System is calm grey. */
.v92-ui .v92-event-message{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  margin:8px 0;
  padding:11px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:15px;
  background:rgba(255,255,255,.025);
  overflow:hidden;
}
.v92-ui .v92-event-message.greizar{
  border-color:rgba(255,159,47,.35);
  background:linear-gradient(125deg,rgba(255,159,47,.12),rgba(255,126,34,.035));
  box-shadow:inset 0 0 22px rgba(255,142,31,.045),0 0 18px rgba(255,142,31,.04);
}
.v92-ui .v92-event-message.system{
  border-color:rgba(154,165,173,.24);
  background:linear-gradient(125deg,rgba(154,165,173,.10),rgba(154,165,173,.025));
}
.v92-ui .v92-event-avatar{
  width:46px;height:46px;padding:4px;display:grid;place-items:center;
  border:1px solid currentColor;border-radius:13px;background:#091115;overflow:hidden;
}
.v92-ui .v92-event-message.greizar .v92-event-avatar{color:var(--v92-orange);box-shadow:0 0 18px rgba(255,159,47,.15)}
.v92-ui .v92-event-message.system .v92-event-avatar{color:var(--v92-system)}
.v92-ui .v92-event-avatar img{width:100%;height:100%;object-fit:contain}
.v92-ui .v92-event-copy{display:grid;gap:3px;min-width:0}
.v92-ui .v92-event-copy>b{font-size:12px}
.v92-ui .v92-event-message.greizar .v92-event-copy>b{color:#ffc36d;text-shadow:0 0 12px rgba(255,159,47,.35)}
.v92-ui .v92-event-message.system .v92-event-copy>b{color:#c2c9ce}
.v92-ui .v92-event-copy>span{font-size:11px;line-height:1.45;color:#d5dadd;overflow-wrap:anywhere}
.v92-ui .v92-event-copy>small{font-size:8px;color:#7f8b91}
.v92-ui .v92-event-message.weather-astral-rain .v92-event-copy>span{color:#b9d6ff}
.v92-ui .v92-event-message.weather-mana-storm .v92-event-copy>span{color:#bca7ff}
.v92-ui .v92-event-message.weather-blood-moon .v92-event-copy>span{color:#ff9b9b}
.v92-ui .v92-event-message.weather-frost-wind .v92-event-copy>span{color:#b7f2ff}
.v92-ui .v92-event-message.weather-emberfall .v92-event-copy>span{color:#ffbd75}
.v92-ui .v92-event-message.weather-void-mist .v92-event-copy>span{color:#c0a8dc}
.v92-ui .v92-event-message.weather-leafstorm .v92-event-copy>span{color:#b9ec91}
.v92-ui .v92-event-delete{
  width:30px;height:30px;min-width:30px;display:grid;place-items:center;padding:6px!important;
  border:1px solid rgba(214,89,104,.24)!important;border-radius:9px!important;background:rgba(214,89,104,.10)!important;
}
.v92-ui .v92-event-delete img{width:15px;height:15px}
.v92-ui .v92-restart-countdown{color:#ffd27b!important;font-weight:800}

/* Player card: account is primary, character remains the visual identity. */
.v92-ui .v92-player-card{
  display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;
  padding:16px;border:1px solid rgba(231,196,108,.34);border-radius:18px;
  background:linear-gradient(145deg,rgba(231,196,108,.055),rgba(8,15,19,.96));
}
.v92-ui .v92-player-art{position:relative;min-height:150px;display:grid;place-items:center;padding:10px;border-radius:16px;background:#071014;overflow:hidden}
.v92-ui .v92-player-art img{width:100%;height:100%;object-fit:contain}
.v92-ui .v92-player-art>span{position:absolute;left:8px;bottom:8px;padding:5px 8px;border-radius:8px;background:rgba(0,0,0,.72);font-weight:800}
.v92-ui .v92-player-main{display:grid;align-content:start;gap:10px;min-width:0}
.v92-ui .v92-player-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.08)}
.v92-ui .v92-player-head small{display:block;color:#8d9ba1;font-size:10px}
.v92-ui .v92-player-head h2{margin:2px 0 0;font-size:25px;overflow:hidden;text-overflow:ellipsis}
.v92-ui .v92-player-status{padding:5px 8px;border-radius:999px;font-size:9px;font-weight:800}
.v92-ui .v92-player-status.online{color:#72eab3;background:rgba(48,201,137,.10)}
.v92-ui .v92-player-status.offline{color:#9ca4a8;background:rgba(156,164,168,.08)}
.v92-ui .v92-player-character{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.v92-ui .v92-player-character span{padding:9px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.025)}
.v92-ui .v92-player-character small{display:block;color:#839197;font-size:8px}.v92-ui .v92-player-character b{font-size:11px}
.v92-ui .v92-player-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.v92-ui .v92-player-actions button{min-height:42px;flex:1 1 130px}
@media(max-width:620px){
  .v92-ui .v92-player-card{grid-template-columns:105px minmax(0,1fr);gap:10px;padding:11px}
  .v92-ui .v92-player-art{min-height:125px}.v92-ui .v92-player-head h2{font-size:20px}
  .v92-ui .v92-player-character{grid-template-columns:1fr}
  .v92-ui .v92-player-actions{grid-column:1/-1}
}

/* Monster research: quest materials are ordinary loot and stay readable. */
.v92-ui .v92-quest-materials{margin-top:10px;padding:10px;border:1px solid rgba(103,218,184,.14);border-radius:13px;background:rgba(103,218,184,.035)}
.v92-ui .v92-quest-materials>h3{margin:0 0 7px;font-size:11px;color:#b8e9d8}
.v92-ui .v92-material-list{display:flex;flex-wrap:wrap;gap:7px}
.v92-ui .v92-material-chip{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:7px;min-width:160px;flex:1 1 170px;padding:7px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.025)}
.v92-ui .v92-material-chip>span{width:32px;height:32px;display:grid;place-items:center;padding:3px;border-radius:9px;background:#071014;overflow:hidden}
.v92-ui .v92-material-chip img{width:100%;height:100%;object-fit:contain}.v92-ui .v92-material-chip b{font-size:9px}.v92-ui .v92-material-chip small{display:block;color:#87979d;font-size:8px}
.v92-ui .v92-loot-list{display:grid;gap:8px}
.v92-ui .v92-loot-list .item-card{min-width:0!important;width:100%!important;overflow:visible!important}
.v92-ui .v92-loot-list .item-card .item-asset-image{object-fit:contain!important;object-position:center!important}
.v92-ui .v79-monster-sheet .v82-monster-footer:empty{display:none}

/* Battle result: fixed footer no longer covers the loot list. */
.v92-ui .modal:has(.v78-result){padding-bottom:0!important;overflow:hidden!important}
.v92-ui .v78-result{max-height:calc(88dvh - 54px);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden}
.v92-ui .v78-result .v78-result-block{overflow:auto;min-height:0;padding-bottom:16px}
.v92-ui .v78-result-close{position:sticky!important;left:auto!important;right:auto!important;bottom:0!important;width:100%!important;margin:0!important;min-height:48px!important;border-radius:12px!important;z-index:5}

/* Functional settings screen. */
.v92-ui .v92-settings{display:grid;gap:12px;max-width:900px;margin:0 auto}
.v92-ui .v92-settings-hero{padding:18px;border:1px solid rgba(115,232,187,.18);border-radius:18px;background:linear-gradient(135deg,rgba(115,232,187,.07),rgba(231,196,108,.025))}
.v92-ui .v92-settings-hero h2{margin:4px 0}.v92-ui .v92-settings-hero p{margin:0;color:#91a4aa}
.v92-ui .v92-setting-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:#0d171c}
.v92-ui .v92-setting-row>span{width:44px;height:44px;display:grid;place-items:center;padding:8px;border-radius:12px;background:rgba(255,255,255,.04)}
.v92-ui .v92-setting-row>div b{display:block}.v92-ui .v92-setting-row>div small{color:#83969d}
.v92-ui .v92-switch{width:48px;height:28px;position:relative;border:0!important;border-radius:999px!important;background:#26343a!important;padding:3px!important}
.v92-ui .v92-switch i{display:block;width:22px;height:22px;border-radius:50%;background:#d8dfe2;transition:.2s}
.v92-ui .v92-switch.active{background:rgba(115,232,187,.28)!important}.v92-ui .v92-switch.active i{transform:translateX(20px);background:#85f0c5}
.v92-ui.reduce-motion *, .v92-ui.reduce-motion *::before, .v92-ui.reduce-motion *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}

/* Quest card and material detail clarity. */
.v92-ui .v80-quest-card .v92-quest-reward{display:flex;align-items:center;gap:7px;margin-top:7px;color:#9fb1b7;font-size:9px}
.v92-ui .v80-quest-card .v92-quest-reward img{width:20px;height:20px;object-fit:contain}
.v92-ui .v92-item-tag{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:rgba(231,196,108,.10);color:#e7c46c;font-size:8px;font-weight:800}

/* Long personal altar notice. */
.v92-ui .v92-altar-toast{max-width:min(430px,calc(100vw - 24px));border-color:rgba(231,196,108,.35)!important;background:linear-gradient(135deg,#182018,#0d171c)!important}
.v92-ui .v92-mob-materials{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.v92-ui .v92-mob-materials span{max-width:150px;padding:3px 6px;border-radius:999px;background:rgba(231,196,108,.08);color:#cdbd8c;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v92-ui.compact-toasts #toast-root .toast{max-width:320px!important;padding:8px 10px!important;font-size:10px!important}

/* ---- css/v93-ui.css ---- */
:root{
  --v93-bg:#071014;
  --v93-panel:#0d171d;
  --v93-panel-2:#121d25;
  --v93-line:rgba(160,187,199,.15);
  --v93-mint:#6fe5b7;
  --v93-lime:#a7f33a;
  --v93-gold:#e8c46c;
  --v93-elite-red:#dc5963;
  --v93-elite-orange:#ff9e3f;
  --v93-boss-blue:#65b9ff;
  --v93-boss-violet:#a67cff;
  --v93-boss-gold:#f2cd68;
}

/* Fundamental geometry: no page may grow beyond the phone viewport. */
html:has(body.v93-ui),body.v93-ui{max-width:100%;overflow-x:hidden!important}
body.v93-ui #app,body.v93-ui .app-shell,body.v93-ui .screen,body.v93-ui .v76-screen{
  width:100%!important;max-width:100vw!important;min-width:0!important;overflow-x:hidden!important;
}
body.v93-ui *{box-sizing:border-box}
body.v93-ui img{max-width:100%}

/* Header no longer drifts beyond the horizon. */
body.v93-ui .v76-topbar,
body.v93-ui .topbar{
  width:100%!important;max-width:100vw!important;min-width:0!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  gap:10px!important;padding:
    max(10px,env(safe-area-inset-top))
    max(12px,env(safe-area-inset-right))
    10px max(12px,env(safe-area-inset-left))!important;
  overflow:hidden!important;left:0!important;right:0!important;
}
body.v93-ui .v76-title{min-width:0!important;max-width:100%!important;overflow:hidden!important}
body.v93-ui .v76-title-copy{min-width:0!important;overflow:hidden!important}
body.v93-ui .v93-title-row{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
body.v93-ui .v93-title-row h1{min-width:0;margin:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.v93-ui .v76-title-copy>p{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.v93-ui .v93-location-danger{
  flex:0 0 auto;display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border:1px solid rgba(255,103,91,.34);
  border-radius:999px;background:linear-gradient(135deg,rgba(224,65,68,.18),rgba(255,158,63,.08));color:#ffb08a;
  font-size:8px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;box-shadow:0 0 18px rgba(224,65,68,.08)
}

/* Main drawer is intentionally about two thirds of a phone, never nearly full width. */
@media(max-width:900px){
  body.v93-ui .v76-side,body.v93-ui .side,body.v93-ui .v82-side{
    width:66.666vw!important;min-width:238px!important;max-width:320px!important;
  }
  body.v93-ui .v76-side-nav,body.v93-ui .v82-side .v76-side-nav{
    grid-template-columns:1fr!important;gap:7px!important;padding:10px 10px max(18px,env(safe-area-inset-bottom))!important;
  }
  body.v93-ui .v76-side-nav>button{min-height:48px!important;padding:8px 10px!important}
  body.v93-ui .v76-side-head{padding:12px 10px!important}
  body.v93-ui .v76-side-copy small{font-size:8px!important}
}

/* Location cards and monster ranks. */
body.v93-ui .v38-location-monster-grid{align-items:stretch!important}
body.v93-ui .v93-monster-card{
  isolation:isolate;position:relative!important;overflow:hidden!important;border:1px solid rgba(107,183,160,.20)!important;
  background:linear-gradient(145deg,rgba(16,30,35,.98),rgba(7,14,18,.98))!important;box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
body.v93-ui .v93-monster-card::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 18% 30%,rgba(107,229,183,.08),transparent 42%)
}
body.v93-ui .v93-monster-card.rank-elite{
  border-color:rgba(255,139,70,.48)!important;
  background:linear-gradient(140deg,rgba(68,20,27,.86),rgba(40,31,25,.94) 48%,rgba(10,18,21,.98))!important;
  box-shadow:inset 0 0 34px rgba(222,76,83,.08),0 0 22px rgba(255,139,70,.06)!important;
}
body.v93-ui .v93-monster-card.rank-elite::before{background:linear-gradient(105deg,rgba(255,255,255,.055),transparent 36%),radial-gradient(circle at 16% 35%,rgba(255,148,70,.18),transparent 43%)}
body.v93-ui .v93-monster-card.rank-boss{
  border-color:rgba(166,124,255,.55)!important;
  background:linear-gradient(138deg,rgba(38,35,81,.96),rgba(21,39,70,.94) 48%,rgba(25,15,42,.98))!important;
  box-shadow:inset 0 0 42px rgba(101,185,255,.07),0 0 28px rgba(166,124,255,.09)!important;
}
body.v93-ui .v93-monster-card.rank-boss::before{background:radial-gradient(circle at 14% 30%,rgba(242,205,104,.15),transparent 38%),linear-gradient(115deg,rgba(101,185,255,.07),rgba(166,124,255,.08))}
body.v93-ui .v93-rank-badge{
  position:absolute;right:10px;top:10px;z-index:3;display:inline-flex;align-items:center;justify-content:center;min-height:24px;
  padding:4px 8px;border:1px solid rgba(107,229,183,.22);border-radius:9px;background:rgba(7,17,20,.88);color:#9ac9b9;
  font-size:8px;font-weight:950;letter-spacing:.07em;text-transform:uppercase;cursor:pointer
}
body.v93-ui .rank-elite>.v93-rank-badge{border-color:rgba(255,158,63,.55);background:linear-gradient(135deg,rgba(192,48,58,.92),rgba(116,52,30,.92));color:#fff5e9;text-shadow:0 1px #5c1c16}
body.v93-ui .rank-boss>.v93-rank-badge{border-color:rgba(242,205,104,.55);background:linear-gradient(135deg,rgba(42,89,140,.94),rgba(93,52,150,.94));color:#fff1b5;text-shadow:0 0 9px rgba(242,205,104,.42)}
body.v93-ui .v93-mob-art{display:grid!important;place-items:center!important;overflow:hidden!important}
body.v93-ui .v93-mob-art img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
body.v93-ui .v93-asset-placeholder{display:grid;place-items:center;width:76%;aspect-ratio:1;border:1px dashed rgba(255,255,255,.18);border-radius:18px;color:#6f858e;font:900 28px/1 system-ui;background:rgba(255,255,255,.025)}
body.v93-ui .v93-mob-stats{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
body.v93-ui .v93-mob-stats>span{white-space:nowrap!important}
body.v93-ui .v92-mob-materials{display:none!important}

/* Battle monster rank treatment. */
body.v93-ui .v79-monster-card.rank-elite{border-color:rgba(255,139,70,.42)!important;background:linear-gradient(145deg,rgba(60,21,27,.82),rgba(12,21,26,.98))!important}
body.v93-ui .v79-monster-card.rank-boss{border-color:rgba(166,124,255,.52)!important;background:linear-gradient(145deg,rgba(31,40,78,.9),rgba(24,15,40,.98))!important;box-shadow:0 0 28px rgba(106,117,255,.08)!important}
body.v93-ui .v79-monster-card.rank-elite .v79-monster-head>span{color:#ffd1a0!important;background:rgba(222,76,83,.16)!important}
body.v93-ui .v79-monster-card.rank-boss .v79-monster-head>span{color:#ffe692!important;background:linear-gradient(90deg,rgba(79,133,196,.20),rgba(143,91,210,.20))!important}
body.v93-ui .v79-status-chip.elite{border-color:rgba(255,158,63,.35)!important;color:#ffc384!important}
body.v93-ui .v79-status-chip.boss{border-color:rgba(166,124,255,.42)!important;color:#d9c4ff!important}

/* Battle drawers and skills: compact visual icons, one info button, readable cooldowns. */
@media(max-width:900px){
  body.v93-ui .v79-left-drawer,body.v93-ui .v78-left-drawer{
    width:66.666vw!important;min-width:244px!important;max-width:330px!important;
  }
  body.v93-ui .v79-left-drawer .v17-skill-scroll,body.v93-ui .v79-left-drawer .v16-skill-scroll{padding:10px!important;gap:10px!important}
  body.v93-ui .v79-left-drawer .v62-drawer-section-title{margin-top:5px!important}
  body.v93-ui .v79-left-drawer .v62-drawer-section-title h3{font-size:12px!important;line-height:1.15!important}
  body.v93-ui .v79-left-drawer .v32-drawer-mini-note{font-size:8px!important;line-height:1.3!important;margin:0!important}
  body.v93-ui .v59-skill-slot-grid,body.v93-ui .v58-skill-slot-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
  }
  body.v93-ui .v83-skill-slot,body.v93-ui .v62-skill-slot.v59-skill-slot{
    width:100%!important;min-width:0!important;height:76px!important;min-height:76px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) 27px!important;grid-template-rows:1fr!important;
    gap:0!important;padding:5px!important;border-radius:15px!important;
  }
  body.v93-ui .v59-skill-slot-main,body.v93-ui .v58-skill-slot-main{
    width:100%!important;height:64px!important;min-height:0!important;border-radius:12px!important;padding:6px!important;
  }
  body.v93-ui .v59-skill-slot-main>span,body.v93-ui .v58-skill-slot-main>span{width:52px!important;height:52px!important;padding:3px!important}
  body.v93-ui .v59-skill-info,body.v93-ui .v58-skill-info{
    align-self:center!important;justify-self:end!important;position:relative!important;width:25px!important;height:43px!important;min-width:25px!important;
    padding:5px!important;border-radius:9px!important;margin:0!important;
  }
  body.v93-ui .v59-cd-badge,body.v93-ui .v58-cd-badge{
    position:absolute!important;right:3px!important;top:3px!important;z-index:5!important;width:25px!important;height:25px!important;
    display:grid!important;place-items:center!important;border:1px solid rgba(255,223,139,.65)!important;border-radius:8px!important;
    background:#1a1110!important;color:#ffe28a!important;font-size:12px!important;font-weight:950!important;box-shadow:0 0 12px rgba(255,190,67,.18)!important;
  }
  body.v93-ui .v82-cooldown-cover{inset:0!important;border-radius:12px!important;background:rgba(4,8,11,.56)!important}
}

/* Chat: a little smaller, more breathing room and less cramped metadata. */
body.v93-ui .v78-chat-message{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:9px!important;row-gap:4px!important;padding:10px 11px!important;margin:7px 0!important;border-radius:14px!important}
body.v93-ui .v78-chat-message>b{font-size:11px!important;line-height:1.2!important}
body.v93-ui .v78-chat-message>p{grid-column:1/-1!important;margin:1px 0 0!important;font-size:10px!important;line-height:1.5!important;color:#c9d3d6!important}
body.v93-ui .v78-chat-message>time{font-size:8px!important;color:#77878d!important;white-space:nowrap!important}
body.v93-ui .v92-event-message{gap:9px!important;padding:10px!important;margin:7px 0!important}
body.v93-ui .v92-event-copy>span{font-size:10px!important;line-height:1.5!important}



/* Inventory and item/material cards. */
body.v93-ui .v93-inventory-panel{max-width:1080px!important;margin-inline:auto!important}
body.v93-ui .v93-inventory-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
body.v93-ui .v93-inventory-metrics{display:flex!important;align-items:stretch!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
body.v93-ui .v88-inventory-currency,body.v93-ui .v93-bag-weight{
  min-height:54px!important;border:1px solid rgba(231,196,108,.22)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(231,196,108,.07),rgba(255,255,255,.02))!important;
}
body.v93-ui .v93-bag-weight{display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:6px!important;padding:7px 10px!important}
body.v93-ui .v93-bag-weight small{grid-column:1/-1;color:#7e9198;font-size:8px;text-transform:uppercase;letter-spacing:.08em}
body.v93-ui .v93-bag-weight b{font-size:15px!important;white-space:nowrap}.v93-ui .v93-bag-weight b i{margin:0 3px;color:#68777d;font-style:normal}.v93-ui .v93-bag-weight span{font-size:9px;color:#a5b0b4}
body.v93-ui .v93-weight-bar{margin:9px 0 13px!important}
body.v93-ui .inventory-tools.compact{display:none!important}
body.v93-ui .v93-inventory-list,body.v93-ui .item-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))!important;gap:11px!important;align-items:start!important}
body.v93-ui .v82-item-card,body.v93-ui .v39-item-card{
  position:relative!important;min-width:0!important;width:100%!important;min-height:0!important;height:auto!important;
  display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:12px!important;padding:12px!important;
  border-radius:18px!important;background:linear-gradient(145deg,rgba(21,34,42,.98),rgba(10,17,22,.98))!important;
}
body.v93-ui .v39-item-icon-wrap{width:82px!important;min-width:82px!important;height:auto!important;align-self:start!important}
body.v93-ui .v39-item-icon-wrap .item-emblem{width:78px!important;height:78px!important;display:grid!important;place-items:center!important;padding:7px!important;border-radius:16px!important;overflow:hidden!important}
body.v93-ui .v39-item-icon-wrap img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
body.v93-ui .v39-item-body{min-width:0!important;display:grid!important;align-content:start!important;gap:7px!important}
body.v93-ui .v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important}
body.v93-ui .v39-item-head h3{font-size:15px!important;line-height:1.2!important;overflow-wrap:anywhere!important}
body.v93-ui .item-weight{align-self:start!important;white-space:nowrap!important;padding:5px 7px!important;border-radius:9px!important;font-size:9px!important}
body.v93-ui .item-description{margin:0!important;font-size:10px!important;line-height:1.42!important;color:#9daeb5!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body.v93-ui .item-stats-line{display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin:0!important}
body.v93-ui .v78-durability{margin:2px 0!important;grid-template-columns:auto minmax(50px,1fr) auto!important;gap:6px!important}
body.v93-ui .item-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;gap:7px!important;margin-top:2px!important}
body.v93-ui .item-actions button{min-width:0!important;min-height:39px!important;padding:7px 8px!important;font-size:10px!important}
body.v93-ui .type-material{border-color:rgba(203,168,91,.25)!important;background:linear-gradient(145deg,rgba(38,35,28,.96),rgba(13,20,23,.98))!important}

/* Profile: resources and six attributes use compact grids on phones. */
body.v93-ui .v39-stat-grid.profile-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.v93-ui .profile-stats .v39-resource-card{grid-column:span 1!important;min-height:82px!important}
body.v93-ui .profile-stats .v39-mini-stat{min-height:65px!important}
body.v93-ui .v39-attr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.v93-ui .v83-attr-card,body.v93-ui .v82-attr-card{min-height:64px!important;padding:9px!important}
@media(max-width:600px){
  body.v93-ui .v39-profile-layout{gap:12px!important}
  body.v93-ui .v39-profile-hero{grid-template-columns:112px minmax(0,1fr)!important;padding:12px!important;gap:10px!important}
  body.v93-ui .v39-avatar-ring{width:108px!important;height:138px!important;grid-row:1/3!important}
  body.v93-ui .v39-hero-info h2{font-size:21px!important}
  body.v93-ui .v39-exp-box{grid-column:2!important;min-width:0!important}
  body.v93-ui .v39-stat-grid.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.v93-ui .profile-stats .v39-resource-card{grid-column:1/-1!important}
  body.v93-ui .v39-attr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.v93-ui .v83-attr-card{min-height:58px!important}
  body.v93-ui .v39-panel-head>div>p{display:none!important}
}

/* Email code registration: no overlapping controls or clipped timer. */
body.v93-ui .v91-email-card{
  width:min(470px,calc(100vw - 24px))!important;max-width:470px!important;padding:clamp(18px,5vw,34px)!important;
  display:grid!important;gap:13px!important;overflow:hidden!important;
}
body.v93-ui .v91-email-card h1{margin:0!important;font-size:clamp(28px,8vw,43px)!important;line-height:1.08!important}
body.v93-ui .v91-email-card>p{margin:0!important;font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere}
body.v93-ui .v91-code-field{min-width:0!important;margin:0!important}
body.v93-ui .v91-code-field input{
  width:100%!important;max-width:100%!important;min-width:0!important;height:68px!important;padding:10px 12px!important;
  font-size:clamp(26px,9vw,40px)!important;font-weight:950!important;line-height:1!important;letter-spacing:.25em!important;text-indent:.25em!important;
  text-align:center!important;font-variant-numeric:tabular-nums;border-radius:16px!important;
}
body.v93-ui .v91-email-card .v69-main-btn{width:100%!important;min-height:54px!important;margin:0!important;white-space:normal!important}
body.v93-ui .v91-email-card .v69-auth-info{min-height:22px!important;margin:0!important;font-size:11px!important;text-align:left!important}
body.v93-ui .v91-code-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
body.v93-ui .v91-code-actions button{min-width:0!important;min-height:42px!important;padding:7px!important;white-space:normal!important;font-size:10px!important}
@media(max-width:390px){body.v93-ui .v91-code-actions{grid-template-columns:1fr!important}}

/* Admin monster editor and loot table. */
body.v93-ui .v93-admin-monster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.v93-ui .v93-admin-monster-grid .v93-admin-wide{grid-column:1/-1}
body.v93-ui .v93-admin-monster-grid textarea{min-height:82px;resize:vertical}
body.v93-ui .v93-admin-loot-manager{grid-column:1/-1;margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.08);display:grid;gap:9px}
body.v93-ui .v93-admin-loot-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
body.v93-ui .v93-admin-loot-head h3{margin:0}.v93-ui .v93-admin-loot-head p{margin:3px 0 0;color:#82949b;font-size:9px}
body.v93-ui .v93-admin-loot-head>b{min-width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(231,196,108,.1);color:#e8c46c}
body.v93-ui .v93-admin-loot-row{display:grid;grid-template-columns:minmax(170px,1.4fr) 105px 125px minmax(130px,1fr) auto;align-items:end;gap:8px;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025)}
body.v93-ui .v93-admin-loot-row label{margin:0}.v93-ui .v93-admin-loot-row label span{display:block;margin-bottom:4px;color:#819298;font-size:8px}
body.v93-ui .v93-loot-row-info b{display:block;font-size:10px}.v93-ui .v93-loot-row-info small{color:#7e9097;font-size:8px}
body.v93-ui .v93-admin-loot-row .row-actions{display:flex;gap:6px}
body.v93-ui .v93-admin-loot-row button{min-height:38px;padding:7px 9px}
@media(max-width:800px){
  body.v93-ui .v93-admin-monster-grid{grid-template-columns:1fr!important}
  body.v93-ui .v93-admin-monster-grid .v93-admin-wide{grid-column:auto}
  body.v93-ui .v93-admin-loot-row{grid-template-columns:1fr 1fr!important;align-items:end}
  body.v93-ui .v93-admin-loot-row>.v93-loot-item,body.v93-ui .v93-loot-row-info{grid-column:1/-1!important}
  body.v93-ui .v93-admin-loot-row .row-actions{grid-column:1/-1!important}
}

/* Prepared future asset/button slots stay stable before pictures arrive. */
body.v93-ui [data-asset-slot]{--v93-slot-glow:rgba(111,229,183,.08)}
body.v93-ui button[data-asset-slot]:empty::before,body.v93-ui [data-asset-slot].asset-empty::before{content:"+";display:grid;place-items:center;min-width:28px;min-height:28px;border:1px dashed rgba(255,255,255,.18);border-radius:9px;color:#72858c;background:var(--v93-slot-glow)}

/* Bottom navigation and safe-area spacing. */
body.v93-ui .v76-bottom-nav,body.v93-ui .bottom-nav{max-width:100vw!important;padding-bottom:max(7px,env(safe-area-inset-bottom))!important}
body.v93-ui .screen{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}

@media(max-width:430px){
  body.v93-ui .v76-network{display:none!important}
  body.v93-ui .v76-topbar,body.v93-ui .topbar{grid-template-columns:auto minmax(0,1fr)!important}
  body.v93-ui .v76-title-mark{width:42px!important;height:42px!important;min-width:42px!important}
  body.v93-ui .v93-location-danger{font-size:7px;padding:3px 6px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.v93-ui .v93-inventory-head{align-items:flex-start!important;flex-direction:column!important}
  body.v93-ui .v93-inventory-metrics{width:100%!important;justify-content:stretch!important}
  body.v93-ui .v88-inventory-currency,body.v93-ui .v93-bag-weight{flex:1 1 0!important}
  body.v93-ui .v82-item-card,body.v93-ui .v39-item-card{grid-template-columns:72px minmax(0,1fr)!important;padding:10px!important;gap:10px!important}
  body.v93-ui .v39-item-icon-wrap{width:72px!important;min-width:72px!important}.v93-ui .v39-item-icon-wrap .item-emblem{width:68px!important;height:68px!important}
  body.v93-ui .v39-item-head h3{font-size:14px!important}.v93-ui .item-description{font-size:9px!important;-webkit-line-clamp:2}
  body.v93-ui .v38-loc-monster{padding-top:40px!important}
  body.v93-ui .v93-rank-badge{right:8px;top:8px}
}

/* Monster information mechanics. */
body.v93-ui .v93-rank-inline.elite{border-color:rgba(255,158,63,.42)!important;background:rgba(214,72,70,.13)!important;color:#ffc18a!important}
body.v93-ui .v93-rank-inline.boss{border-color:rgba(166,124,255,.42)!important;background:linear-gradient(90deg,rgba(74,132,194,.13),rgba(144,85,203,.13))!important;color:#ead9ff!important}
body.v93-ui .v93-monster-mechanics>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
body.v93-ui .v93-monster-mechanics article{padding:10px;border:1px solid rgba(166,124,255,.16);border-radius:13px;background:linear-gradient(145deg,rgba(99,112,201,.055),rgba(126,74,169,.035))}
body.v93-ui .v93-monster-mechanics article b{display:block;color:#dbc8ff;font-size:11px}
body.v93-ui .v93-monster-mechanics article p{margin:5px 0 0;color:#95a7ae;font-size:9px;line-height:1.5}

/* v1.93 final mobile polish: side panels, profile grid and item modals. */
@media(max-width:900px){
  body.v93-ui .v78-chat-drawer{
    width:72vw!important;min-width:260px!important;max-width:360px!important;
  }
}
@media(max-width:600px){
  body.v93-ui .profile-stats .v39-resource-card{
    grid-column:span 1!important;min-height:96px!important;padding:9px!important;
  }
  body.v93-ui .profile-stats .v39-resource-card>div:first-child{
    display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:3px 6px!important;
  }
  body.v93-ui .profile-stats .v39-resource-card>div:first-child>span{grid-row:1/3!important}
  body.v93-ui .profile-stats .v39-resource-card>div:first-child>b{grid-column:2!important;font-size:14px!important}
  body.v93-ui .profile-stats .v39-resource-card>div:first-child>small{font-size:8px!important}
}

body.v93-ui .modal-back{
  padding:max(12px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;
  align-items:center!important;overflow:hidden!important;
}
body.v93-ui .modal{
  width:min(760px,100%)!important;max-width:760px!important;max-height:calc(100dvh - max(24px,env(safe-area-inset-top) + env(safe-area-inset-bottom)))!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;
  padding:clamp(14px,4vw,22px)!important;border-radius:22px!important;
}
body.v93-ui .modal>h1{
  margin:0 50px 14px 0!important;font-size:clamp(22px,6vw,32px)!important;line-height:1.12!important;overflow-wrap:anywhere!important;
}
body.v93-ui .modal-close{position:sticky!important;float:right!important;top:0!important;right:0!important;z-index:8!important;width:42px!important;height:42px!important;min-height:42px!important;margin:0!important}
body.v93-ui .v93-slot-picker{display:grid!important;gap:14px!important;min-width:0!important}
body.v93-ui .v93-picker-intro{margin:-3px 0 0!important;font-size:11px!important}
body.v93-ui .v93-picker-section{display:grid!important;gap:8px!important;min-width:0!important;padding:10px!important;border:1px solid rgba(255,255,255,.075)!important;border-radius:17px!important;background:rgba(255,255,255,.018)!important}
body.v93-ui .v93-picker-section>h3{margin:0!important;font-size:16px!important}
body.v93-ui .v93-picker-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))!important;gap:9px!important;min-width:0!important}
body.v93-ui .v93-picker-list .v82-item-card,body.v93-ui .v93-picker-list .v39-item-card{margin:0!important}
body.v93-ui .item-detail-card.v39-item-detail-card{
  width:min(480px,100%)!important;max-width:480px!important;margin:0 auto!important;padding:clamp(14px,4vw,22px)!important;
  display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:10px 14px!important;align-items:start!important;
  border-radius:22px!important;overflow:hidden!important;
}
body.v93-ui .item-detail-card .v39-detail-aura{position:absolute!important;inset:0!important;pointer-events:none!important}
body.v93-ui .item-detail-card .item-detail-icon{grid-column:1!important;grid-row:1/4!important;width:96px!important;height:96px!important;margin:0!important;padding:9px!important;border-radius:20px!important}
body.v93-ui .item-detail-card .item-detail-icon img{width:100%!important;height:100%!important;object-fit:contain!important}
body.v93-ui .item-detail-card>h2{grid-column:2!important;margin:5px 0 0!important;font-size:clamp(22px,6vw,30px)!important;line-height:1.12!important;overflow-wrap:anywhere!important}
body.v93-ui .item-detail-card .item-detail-desc{grid-column:2!important;margin:0!important;font-size:11px!important;line-height:1.45!important;color:#9eafb6!important}
body.v93-ui .item-detail-card .v39-detail-sections,
body.v93-ui .item-detail-card .v39-requirement-blocks,
body.v93-ui .item-detail-card .item-detail-actions{grid-column:1/-1!important;width:100%!important}
body.v93-ui .item-detail-card .v39-detail-sections{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:4px 0 0!important}
body.v93-ui .item-detail-card .detail-line{min-height:54px!important;margin:0!important;padding:9px 10px!important;display:grid!important;align-content:center!important;gap:3px!important;border-radius:13px!important}
body.v93-ui .item-detail-card .detail-line span{font-size:8px!important}
body.v93-ui .item-detail-card .detail-line b{font-size:12px!important;overflow-wrap:anywhere!important}
body.v93-ui .item-detail-card .item-detail-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important;gap:8px!important;margin-top:4px!important}
body.v93-ui .item-detail-card .item-detail-actions button{min-height:44px!important;margin:0!important}
@media(max-width:420px){
  body.v93-ui .v78-chat-drawer{width:76vw!important;min-width:252px!important}
  body.v93-ui .item-detail-card.v39-item-detail-card{grid-template-columns:78px minmax(0,1fr)!important;gap:8px 11px!important;padding:12px!important}
  body.v93-ui .item-detail-card .item-detail-icon{width:78px!important;height:78px!important;border-radius:17px!important}
  body.v93-ui .item-detail-card>h2{font-size:21px!important;margin-top:2px!important}
  body.v93-ui .item-detail-card .item-detail-desc{font-size:9px!important;-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
  body.v93-ui .item-detail-card .v39-detail-sections{grid-template-columns:1fr 1fr!important}
  body.v93-ui .item-detail-card .detail-line{min-height:48px!important;padding:7px 8px!important}
}


/* v94 hotfixes */

.v39-avatar-ring,.v39-avatar-ring .class-asset-image{display:flex;align-items:center;justify-content:center;}
.v39-avatar-ring .class-asset-image img,.v39-avatar-ring img,.v76-person-avatar img,.v92-player-art img{width:100%;height:100%;object-fit:contain;object-position:center bottom;}
.v39-avatar-ring{padding:10px;overflow:hidden;}
.v38-mob-head{gap:8px;align-items:flex-start;}
.v38-mob-head h3,.v39-item-head h3,.v92-player-character b,.v76-person-copy b{overflow-wrap:anywhere;word-break:break-word;}
.v38-mob-flags{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;}
.v38-mob-stats,.v93-mob-stats{display:flex;flex-wrap:wrap;gap:8px;}
.v93-mob-stats span{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.04);}
.v93-rank-badge{max-width:calc(100% - 18px);white-space:normal;line-height:1.1;text-align:center;}
.v93-monster-hidden-note{margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);color:#b9c2cf;font-size:.92rem;}
.v38-mob-flag.info{background:rgba(186,255,87,.12);color:#d8ff7f;border:1px solid rgba(186,255,87,.25);}
.v82-item-card.context-loot .item-description,.v82-item-card.context-result .item-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.v82-item-card .item-stats-line{flex-wrap:wrap;}
.v78-location-chat.open{width:min(440px,100vw);max-width:100vw;}






#result-loot-view,.v93-result-block{max-height:min(42vh,420px);overflow:auto;padding-right:4px;}
.result.v78-result{max-height:min(86vh,860px);overflow:auto;padding-right:4px;}
.v39-equip-grid,.v93-inventory-list,.loot-pile-scroll{gap:14px;}
.v39-slot-card .v39-slot-actions,.v39-slot-card .item-actions{flex-wrap:wrap;}
.v39-slot-card .v39-slot-actions button,.item-actions button{min-width:0;}
.v92-player-card{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:18px;align-items:stretch;}
.v92-player-art{min-height:320px;display:flex;align-items:flex-end;justify-content:center;position:relative;overflow:hidden;}
.v92-player-art span{position:absolute;left:12px;bottom:12px;}
.v92-player-character{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.v87-update-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px;}
.v87-update-actions button{min-width:120px;}
@media (max-width: 980px){
  .v92-player-card{grid-template-columns:1fr;}
  .v92-player-art{min-height:220px;}
}
@media (max-width: 640px){
  .v92-player-character{grid-template-columns:1fr;}
  .result.v78-result{max-height:84vh;}
  .v78-location-chat.open{width:100vw;}
}

/* ---- css/v95-ui.css ---- */
/* Aldos RPG v95 — mobile/desktop mega patch */
:root{--v95-border:rgba(128,226,190,.20);--v95-gold:rgba(225,184,91,.45);--v95-panel:#101820;--v95-panel2:#151e28}
html,body{overscroll-behavior:none!important;overscroll-behavior-y:none!important;overflow-x:hidden!important;touch-action:pan-x pan-y!important}
body{max-width:100vw!important}
*{box-sizing:border-box;min-width:0}
img{max-width:100%}
.v95-icon,.v95-monster-stat-icon{display:inline-block!important;width:18px!important;height:18px!important;object-fit:contain!important;flex:0 0 18px!important}

/* profile hero and expandable names */
.v39-profile-layout{align-items:start!important}
.v39-profile-hero{align-self:start!important;overflow:hidden!important}
.v39-avatar-ring{overflow:hidden!important;display:grid!important;place-items:center!important}
.v39-avatar-ring .avatar,.v39-avatar-ring img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
.v39-hero-info{align-self:center!important;overflow:hidden!important}
.v76-profile-name-line{display:flex!important;align-items:center!important;gap:8px!important;max-width:100%!important}
.v95-expand-name{appearance:none!important;border:0!important;background:transparent!important;padding:0!important;margin:0!important;max-width:100%!important;min-width:0!important;color:inherit!important;text-align:left!important;box-shadow:none!important}
.v95-expand-name span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:inherit!important;font-size:inherit!important;font-weight:800!important}
.v95-expand-name.expanded span{white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
.v39-exp-box{position:relative!important;z-index:1!important;margin:6px 0 0!important;align-self:end!important}
.v39-profile-card{position:relative!important;z-index:0!important}

/* compact equipment slots */
.v39-equip-slot{display:grid!important;grid-template-columns:60px minmax(0,1fr)!important;grid-template-areas:"icon slot" "icon name" "icon rarity" "effects effects"!important;align-content:center!important;align-items:center!important;gap:3px 10px!important;min-height:112px!important;overflow:hidden!important;text-align:left!important}
.v39-equip-slot .v39-slot-icon{grid-area:icon!important;width:58px!important;height:70px!important;display:grid!important;place-items:center!important;overflow:hidden!important}
.v39-equip-slot .v39-slot-icon img{width:100%!important;height:100%!important;object-fit:contain!important}
.v39-equip-slot .v39-slot-name{grid-area:slot!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v39-equip-slot .v39-slot-item{grid-area:name!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
.v39-equip-slot .v77-slot-rarity{grid-area:rarity!important;width:max-content!important;max-width:100%!important}
.v39-equip-slot .v77-slot-effects{grid-area:effects!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important;overflow:hidden!important}

/* all mini item cards */
.item-card.v95-item-card,.item-card.v39-item-card,.v93-picker-list .item-card,.result-loot-owner .item-card,.loot-pile-scroll .item-card,.inventory-list .item-card{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:12px!important;padding:12px!important;min-height:0!important;border-radius:20px!important;overflow:hidden!important;background:radial-gradient(circle at 80% 0,rgba(129,183,190,.14),transparent 40%),linear-gradient(145deg,#16212a,#10161e)!important;border:1px solid rgba(129,194,178,.22)!important;box-shadow:inset 0 1px rgba(255,255,255,.04)!important}
.item-card .v39-item-aura{inset:0!important;opacity:.45!important;pointer-events:none!important}
.item-card .v39-item-icon-wrap{width:92px!important;height:108px!important;min-height:0!important;align-self:start!important;display:grid!important;place-items:center!important;overflow:hidden!important}
.item-card .item-emblem,.item-card .item-emblem img{width:74px!important;height:74px!important;object-fit:contain!important}
.item-card .item-type-label{display:none!important}
.item-card .v39-item-body{display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important}
.item-card .v39-item-head{display:flex!important;align-items:flex-start!important;gap:8px!important}
.item-card .v39-item-head h3{font-size:clamp(15px,2vw,19px)!important;line-height:1.15!important;overflow-wrap:anywhere!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.item-card .item-weight{margin-left:auto!important;flex:0 0 auto!important;white-space:nowrap!important;font-size:12px!important;padding:6px 9px!important}
.item-card .item-description{font-size:13px!important;line-height:1.35!important;color:#aeb9ba!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin:0!important}
.item-card .v80-item-stats{display:flex!important;flex-wrap:wrap!important;gap:6px!important;overflow:visible!important}
.item-card .v80-item-stats>span{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:5px 8px!important}
.item-card .v80-item-stats img{width:16px!important;height:16px!important;object-fit:contain!important}
.item-card .v78-durability{display:grid!important;grid-template-columns:auto minmax(70px,1fr) auto!important;gap:7px!important;align-items:center!important;font-size:11px!important}
.item-card .item-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important;gap:8px!important;margin-top:auto!important}
.item-card .item-actions button{width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;white-space:normal!important;line-height:1.15!important}
.v93-picker-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;gap:12px!important}
.v93-slot-picker{max-height:min(80dvh,820px)!important;overflow:auto!important;padding-right:5px!important}

/* item detail */
.v39-item-detail-card{display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;grid-template-areas:"icon title" "icon desc" "sections sections" "reqs reqs" "actions actions"!important;gap:10px 16px!important;max-width:760px!important;overflow:hidden!important}
.v39-item-detail-card>.item-detail-icon{grid-area:icon!important;width:110px!important;height:120px!important;display:grid!important;place-items:center!important}
.v39-item-detail-card>.item-detail-icon img{width:100%!important;height:100%!important;object-fit:contain!important}
.v39-item-detail-card>h2{grid-area:title!important;overflow-wrap:anywhere!important;align-self:end!important}
.v39-item-detail-card>.item-detail-desc{grid-area:desc!important;margin:0!important;overflow-wrap:anywhere!important}
.v39-detail-sections{grid-area:sections!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
.v39-detail-sections .detail-line{min-height:70px!important;overflow:hidden!important}
.v39-detail-sections .detail-line b{overflow-wrap:anywhere!important;word-break:normal!important;text-align:right!important}
.v39-item-reqs{grid-area:reqs!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:10px!important}
.v39-req-block{min-width:0!important;overflow:hidden!important}
.v65-req-list{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
.v65-req-list span{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
.item-detail-actions{grid-area:actions!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;gap:9px!important}

/* monsters */
.v93-monster-card{overflow:hidden!important;position:relative!important}
.v38-mob-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
.v38-mob-head h3{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.v38-mob-flags{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:5px!important;max-width:54%!important;position:relative!important;z-index:3!important}
.v38-mob-flag,.v93-rank-badge{position:static!important;transform:none!important;white-space:nowrap!important;max-width:100%!important;font-size:10px!important;line-height:1!important;padding:5px 7px!important}
.v93-rank-badge{position:absolute!important;top:8px!important;left:8px!important;z-index:4!important;pointer-events:none!important}
.v93-mob-stats{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
.v93-mob-stats>span{display:inline-flex!important;align-items:center!important;gap:4px!important;min-height:29px!important;padding:4px 7px!important;white-space:nowrap!important;overflow:hidden!important}
.v93-mob-stats img,.v93-mob-stats svg{width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;object-fit:contain!important;flex:0 0 17px!important}
.v93-monster-hidden-note{font-size:12px!important;line-height:1.3!important}
.v38-mob-actions{display:grid!important;grid-template-columns:minmax(88px,.55fr) minmax(130px,1.45fr)!important;gap:9px!important}
.v38-mob-actions button{width:100%!important;min-width:0!important}

/* result modal — no overlapping return button */
.result.v78-result{display:flex!important;flex-direction:column!important;gap:12px!important;max-height:min(82dvh,850px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:2px 6px 8px 2px!important}
.v78-result-close{position:static!important;inset:auto!important;flex:0 0 auto!important;width:100%!important;margin:8px 0 0!important;z-index:1!important;min-height:50px!important}
.v78-result-block,.v93-result-block{max-height:none!important;overflow:visible!important}
#result-loot-view{max-height:min(42dvh,430px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:4px!important}
.result-loot-owner{display:grid!important;gap:10px!important}
.loot-tabs{display:flex!important;flex-wrap:wrap!important;gap:7px!important;position:sticky!important;top:0!important;z-index:3!important;background:#171c24!important;padding:4px!important}
.loot-tab{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* player cards and friends */
.v92-player-card{display:grid!important;grid-template-columns:minmax(150px,210px) minmax(0,1fr)!important;gap:14px!important;align-items:stretch!important;max-width:760px!important;overflow:hidden!important}
.v92-player-art{min-height:270px!important;max-height:420px!important;display:grid!important;place-items:end center!important;overflow:hidden!important;position:relative!important}
.v92-player-art img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
.v92-player-head{display:flex!important;align-items:flex-start!important;gap:8px!important;min-width:0!important}
.v92-player-head>div{min-width:0!important;flex:1!important}
.v92-player-head h2{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important}
.v92-player-character{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
.v92-player-character>span{min-width:0!important;overflow:hidden!important}
.v92-player-character b{overflow-wrap:anywhere!important}
.v92-player-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.v76-person{display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;overflow:hidden!important}
.v76-person-avatar{width:64px!important;height:72px!important;overflow:hidden!important}
.v76-person-avatar img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
.v76-person-copy b{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v76-person-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:6px!important}
.v76-person-actions button{min-width:0!important}
.v95-device-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:10px!important}
.v95-device-card,.v95-related-card{padding:12px!important;border:1px solid var(--v95-border)!important;border-radius:15px!important;background:rgba(255,255,255,.035)!important;overflow:hidden!important}
.v95-device-card b,.v95-related-card b{overflow-wrap:anywhere!important}
.v95-device-card span,.v95-related-card span{display:block!important;color:#aab6b7!important;font-size:12px!important;margin-top:4px!important;overflow-wrap:anywhere!important}

/* chat */
.v78-location-chat{overscroll-behavior:contain!important}






/* travel */
.v76-travel-header .v76-network,.travel-screen .v76-network,.v76-topbar .v76-network{width:auto!important;max-width:150px!important;min-width:0!important;flex:0 0 auto!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;padding-inline:10px!important}

/* admin */
.v81-admin-screen{overflow-x:hidden!important}
.v81-admin-tabs{overflow-x:auto!important;scrollbar-width:thin!important}
.v81-admin-card[data-admin-page="monsters"]{overflow:hidden!important}
#adm-mon-editor.admin-editor-box{max-height:min(65dvh,720px)!important;overflow:auto!important;overscroll-behavior:contain!important;padding:12px!important;scrollbar-width:thin!important}
.v93-admin-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.v93-admin-wide{grid-column:1/-1!important}
.v93-admin-loot-manager{min-width:0!important;overflow:hidden!important}
.v93-admin-loot-row{display:grid!important;grid-template-columns:minmax(150px,1.3fr) minmax(90px,.5fr) minmax(120px,.7fr)!important;gap:8px!important;align-items:end!important;overflow:hidden!important}
.v93-admin-loot-row .v93-loot-row-info{grid-column:1/3!important;min-width:0!important}
.v93-admin-loot-row .row-actions{grid-column:3!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;min-width:0!important}
.v93-admin-loot-row select,.v93-admin-loot-row input{width:100%!important;min-width:0!important}
.admin-mon-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}

/* ally targeting */
.v83-ally-target-card{grid-template-columns:58px minmax(0,1fr)!important;gap:9px!important;min-height:92px!important;padding:9px!important}
.v83-ally-bars{grid-column:1/-1!important;display:grid!important;gap:5px!important}
.v83-ally-bars>span{height:15px!important;min-height:15px!important;position:relative!important;overflow:hidden!important}
.v83-ally-bars>span i{height:5px!important;top:auto!important;bottom:0!important}
.v83-ally-bars b{font-size:10px!important;line-height:1!important}

/* stop touch panels from disappearing */
.side,.v78-location-chat,.v78-left-drawer,.v81-support-drawer,.modal-back,.modal,.v76-character-sheet{overscroll-behavior:contain!important}

@media (max-width:720px){
  .v39-profile-hero{grid-template-columns:96px minmax(0,1fr)!important;grid-template-areas:"avatar info" "avatar exp"!important;gap:8px 10px!important;padding:11px!important;min-height:150px!important}
  .v39-profile-hero .v39-avatar-ring{grid-area:avatar!important;width:94px!important;height:126px!important}
  .v39-profile-hero .v39-hero-info{grid-area:info!important;align-self:end!important}
  .v39-profile-hero .v39-exp-box{grid-area:exp!important;grid-column:auto!important;margin:0!important;width:100%!important}
  .v95-expand-name span{font-size:24px!important}
  .v39-slot-grid{grid-template-columns:1fr!important}
  .v39-equip-slot{grid-template-columns:68px minmax(0,1fr)!important;min-height:100px!important}
  .item-card.v39-item-card,.v93-picker-list .item-card,.result-loot-owner .item-card,.loot-pile-scroll .item-card,.inventory-list .item-card{grid-template-columns:78px minmax(0,1fr)!important;gap:9px!important;padding:10px!important;border-radius:17px!important}
  .item-card .v39-item-icon-wrap{width:78px!important;height:92px!important}
  .item-card .item-emblem,.item-card .item-emblem img{width:65px!important;height:65px!important}
  .item-card .item-description{-webkit-line-clamp:3!important}
  .item-card .item-actions{grid-template-columns:1fr!important}
  .v93-picker-list{grid-template-columns:1fr!important}
  .v39-item-detail-card{grid-template-columns:88px minmax(0,1fr)!important;gap:8px 11px!important}
  .v39-item-detail-card>.item-detail-icon{width:88px!important;height:100px!important}
  .v39-item-detail-card>h2{font-size:clamp(24px,7vw,35px)!important}
  .v39-detail-sections{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v39-detail-sections .detail-line{min-height:82px!important;padding:11px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important}
  .v39-detail-sections .detail-line b{text-align:left!important;font-size:16px!important}
  .v39-item-reqs{grid-template-columns:1fr!important}
  .v92-player-card{grid-template-columns:112px minmax(0,1fr)!important;gap:9px!important;padding:10px!important}
  .v92-player-art{min-height:300px!important;max-height:440px!important}
  .v92-player-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}
  .v92-player-head h2{font-size:clamp(24px,7vw,34px)!important}
  .v92-player-character{grid-template-columns:1fr!important;gap:7px!important}
  .v92-player-character>span{padding:9px!important}
  .v92-player-actions{grid-column:1/-1!important}
  .v92-player-actions button{flex:1 1 120px!important}
  .v76-person{grid-template-columns:54px minmax(0,1fr)!important}
  .v76-person-avatar{width:54px!important;height:62px!important}
  .v76-person-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))!important;width:100%!important}
  .v93-admin-monster-grid{grid-template-columns:1fr!important}
  .v93-admin-loot-row{grid-template-columns:1fr!important}
  .v93-admin-loot-row>*{grid-column:1!important}
  .admin-mon-actions{grid-template-columns:1fr!important}
  .result.v78-result{max-height:78dvh!important}
  #result-loot-view{max-height:37dvh!important}
  .v78-result-summary,.v79-result-summary{grid-template-columns:1fr 1fr!important}
  .v38-mob-head h3{font-size:18px!important}
  .v38-mob-flags{max-width:48%!important}
}
@media (max-width:420px){
  .v92-player-card{grid-template-columns:96px minmax(0,1fr)!important}
  .v92-player-art{min-height:270px!important}
  .v39-detail-sections{grid-template-columns:1fr!important}
  .v78-result-summary,.v79-result-summary{grid-template-columns:1fr!important}
}
.v95-elite-loot-bonus{margin:8px 0 12px!important;padding:10px 12px!important;border:1px solid rgba(255,126,67,.38)!important;border-radius:13px!important;background:linear-gradient(90deg,rgba(255,65,43,.13),rgba(255,190,78,.08))!important;color:#ffd0a0!important;font-size:12px!important;line-height:1.35!important}

/* ---- css/v96-ui.css ---- */
/* Aldos RPG v1.96 — final layout and interaction corrections */

/* Profile: explicit areas prevent the hero, resources and equipment from overlapping. */
body.v96-ui .v39-profile-layout,
body.v96-ui .v76-profile-layout {
  display:grid !important;
  grid-template-columns:minmax(350px, 410px) minmax(0, 1fr) !important;
  grid-template-areas:
    "hero equipment"
    "stats equipment" !important;
  align-items:start !important;
  gap:16px !important;
  min-height:0 !important;
  padding:0 !important;
}
body.v96-ui .v39-profile-hero,
body.v96-ui .v76-profile-hero {
  grid-area:hero !important;
  position:relative !important;
  inset:auto !important;
  z-index:1 !important;
  min-height:230px !important;
  height:auto !important;
  padding:18px !important;
  display:grid !important;
  grid-template-columns:150px minmax(0,1fr) !important;
  grid-template-areas:"avatar info" "avatar exp" !important;
  align-items:center !important;
  align-content:center !important;
  gap:12px 16px !important;
  overflow:hidden !important;
}
body.v96-ui .v39-avatar-ring {grid-area:avatar !important; width:150px !important; height:190px !important; min-height:0 !important; align-self:center !important;}
body.v96-ui .v39-avatar-ring .avatar {width:100% !important; height:100% !important; min-height:0 !important;}
body.v96-ui .v39-avatar-ring img {width:100% !important; height:100% !important; object-fit:contain !important; object-position:center bottom !important;}
body.v96-ui .v39-hero-info {grid-area:info !important; position:static !important; min-width:0 !important; align-self:end !important;}
body.v96-ui .v39-hero-info p {margin:8px 0 0 !important; line-height:1.35 !important; white-space:normal !important;}
body.v96-ui .v76-profile-name-line {display:flex !important; align-items:center !important; gap:8px !important; min-width:0 !important;}
body.v96-ui .v95-expand-name {min-width:0 !important; max-width:100% !important; overflow:hidden !important;}
body.v96-ui .v95-expand-name span {display:block !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important;}
body.v96-ui .v39-exp-box {grid-area:exp !important; position:static !important; width:100% !important; min-width:0 !important; align-self:start !important; margin:0 !important;}
body.v96-ui .v39-profile-card,
body.v96-ui .v76-profile-card {grid-area:stats !important; position:relative !important; inset:auto !important; z-index:1 !important; margin:0 !important; min-height:0 !important; transform:none !important;}
body.v96-ui .v39-equipment-panel,
body.v96-ui .v76-equipment-panel {grid-area:equipment !important; position:relative !important; inset:auto !important; z-index:1 !important; min-width:0 !important; min-height:0 !important; margin:0 !important;}
body.v96-ui .v39-stat-grid {position:static !important; margin:0 !important;}
body.v96-ui .v39-slot-grid {align-content:start !important;}
body.v96-ui .v39-equip-slot {min-width:0 !important; overflow:hidden !important;}
body.v96-ui .v39-slot-item {max-width:100% !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important;}

/* Monster cards: rank/pack/aggro chips live in document flow and wrap. */
body.v96-ui .v93-rank-badge {display:none !important;}
body.v96-ui .v96-monster-badges,
body.v96-ui .v38-mob-flags,
body.v96-ui .v79-monster-statuses,
body.v96-ui .v79-player-statuses {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:5px !important;
  position:static !important;
  inset:auto !important;
  max-width:100% !important;
  min-width:0 !important;
}
body.v96-ui .v96-monster-badges {grid-column:1/-1; margin:0 0 4px;}
body.v96-ui .v96-monster-chip,
body.v96-ui .v96-monster-badges .v38-mob-flag {
  position:static !important;
  inset:auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:23px !important;
  height:auto !important;
  max-width:100% !important;
  margin:0 !important;
  padding:3px 8px !important;
  border:1px solid rgba(139,255,107,.2) !important;
  border-radius:999px !important;
  background:rgba(12,25,27,.88) !important;
  color:#d9ebe5 !important;
  font-size:10px !important;
  font-weight:800 !important;
  line-height:1.15 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  transform:none !important;
}
body.v96-ui .v96-monster-chip.rank-elite {border-color:rgba(245,173,73,.48) !important;color:#ffd38f !important;background:rgba(77,47,17,.72) !important;}
body.v96-ui .v96-monster-chip.rank-boss {border-color:rgba(219,94,116,.55) !important;color:#ffb4c0 !important;background:rgba(75,22,34,.74) !important;}
body.v96-ui .v38-mob-head {position:static !important; min-width:0 !important;}
body.v96-ui .v38-mob-head h3 {position:static !important; margin:0 !important; padding:0 !important; line-height:1.18 !important; overflow-wrap:anywhere !important;}
body.v96-ui .v38-loc-monster {overflow:hidden !important;}

/* Battle result: one scrollable body and a non-overlapping footer. */
body.v96-ui .modal-back {padding:12px !important; overflow:hidden !important;}
body.v96-ui .modal-back > .modal:has(.v96-result) {
  width:min(760px, calc(100vw - 24px)) !important;
  max-width:760px !important;
  max-height:calc(100dvh - 24px) !important;
  height:min(720px, calc(100dvh - 24px)) !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
}
body.v96-ui .modal-back > .modal:has(.v96-result) > h1 {flex:0 0 auto !important; margin-bottom:10px !important;}
body.v96-ui .v96-result {
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:hidden !important;
  display:grid !important;
  grid-template-rows:minmax(0,1fr) auto !important;
  gap:0 !important;
}
body.v96-ui .v96-result-scroll {
  min-height:0 !important;
  overflow-y:scroll !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  scrollbar-gutter:stable !important;
  padding:0 10px 18px 0 !important;
}
body.v96-ui .v96-result-footer {
  position:relative !important;
  z-index:3 !important;
  margin:0 !important;
  padding:12px 0 0 !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
  background:linear-gradient(180deg,rgba(24,28,31,.88),#181c1f 28%) !important;
}
body.v96-ui .v96-result-footer .v78-result-close {position:static !important; inset:auto !important; width:100% !important; margin:0 !important;}
body.v96-ui .v96-result-scroll::-webkit-scrollbar,
body.v96-ui #result-loot-view::-webkit-scrollbar {width:9px !important;}
body.v96-ui .v96-result-scroll::-webkit-scrollbar-thumb,
body.v96-ui #result-loot-view::-webkit-scrollbar-thumb {background:rgba(167,255,55,.45) !important;border:2px solid transparent !important;background-clip:padding-box !important;border-radius:10px !important;}
body.v96-ui #result-loot-view {max-height:none !important; overflow:visible !important; padding-right:0 !important;}

/* Item details: compact icon, separate header and wrapping fields. */
body.v96-ui .v96-item-detail-card {display:block !important; min-width:0 !important; overflow:hidden !important;}
body.v96-ui .v96-item-detail-head {
  position:relative !important;
  z-index:2 !important;
  display:grid !important;
  grid-template-columns:78px minmax(0,1fr) !important;
  align-items:center !important;
  gap:14px !important;
  margin-bottom:14px !important;
}
body.v96-ui .v96-item-detail-head .item-detail-icon {
  position:static !important;
  width:78px !important;
  height:78px !important;
  min-width:78px !important;
  min-height:78px !important;
  margin:0 !important;
  padding:8px !important;
  overflow:hidden !important;
}
body.v96-ui .v96-item-detail-head .item-detail-icon img {width:100% !important;height:100% !important;object-fit:contain !important;object-position:center !important;}
body.v96-ui .v96-item-detail-title {min-width:0 !important;}
body.v96-ui .v96-item-detail-title h2 {margin:0 0 7px !important; font-size:clamp(22px,4vw,30px) !important; line-height:1.08 !important; overflow-wrap:anywhere !important;}
body.v96-ui .v96-item-detail-title .item-detail-desc {margin:0 !important; line-height:1.45 !important; overflow-wrap:anywhere !important;}
body.v96-ui .v96-item-detail-card .v39-detail-sections {display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:9px !important; min-width:0 !important;}
body.v96-ui .v96-item-detail-card .detail-line {min-width:0 !important; height:auto !important; min-height:58px !important; align-items:flex-start !important;}
body.v96-ui .v96-item-detail-card .detail-line b {white-space:normal !important; overflow-wrap:anywhere !important; text-align:left !important;}
body.v96-ui .v96-item-detail-card .v39-req-block {min-width:0 !important; overflow-wrap:anywhere !important;}

/* Friend avatars and player card use actual art/placeholders, not letters. */
body.v96-ui .v76-person-letter {display:none !important;}
body.v96-ui .v76-person-avatar {overflow:hidden !important;}
body.v96-ui .v76-person-avatar img {width:100% !important;height:100% !important;object-fit:contain !important;object-position:center bottom !important;}
body.v96-ui .v92-player-card {min-width:0 !important; overflow:hidden !important;}
body.v96-ui .v92-player-art {min-width:0 !important; overflow:hidden !important;}
body.v96-ui .v92-player-art img {width:100% !important;height:100% !important;object-fit:contain !important;object-position:center bottom !important;}

/* Skills: keep icon inside its slot even when an image is missing or has odd proportions. */
body.v96-ui .v83-ability-icon,
body.v96-ui .v79-skill-icon,
body.v96-ui .v79-skill-icon img,
body.v96-ui [class*="ability"] img[class*="ability-icon"] {object-fit:contain !important;object-position:center !important;max-width:100% !important;max-height:100% !important;}
body.v96-ui .v79-skill-slot {overflow:hidden !important;}

/* All status collections wrap instead of covering names/stats. */
body.v96-ui [class*="status-list"],
body.v96-ui [class*="status-row"],
body.v96-ui .v79-monster-statuses,
body.v96-ui .v79-player-statuses {position:static !important; display:flex !important; flex-wrap:wrap !important; gap:5px !important; min-width:0 !important;}
body.v96-ui [data-status-tip] {max-width:100% !important; overflow-wrap:anywhere !important;}

@media (max-width: 900px) {
  body.v96-ui .v39-profile-layout,
  body.v96-ui .v76-profile-layout {
    grid-template-columns:1fr !important;
    grid-template-areas:"hero" "stats" "equipment" !important;
  }
  body.v96-ui .v39-profile-hero,
  body.v96-ui .v76-profile-hero {min-height:210px !important; grid-template-columns:125px minmax(0,1fr) !important;}
  body.v96-ui .v39-avatar-ring {width:125px !important; height:165px !important;}
}

@media (max-width: 620px) {
  body.v96-ui .modal-back {padding:8px !important; align-items:center !important;}
  body.v96-ui .modal-back > .modal {width:calc(100vw - 16px) !important; max-height:calc(100dvh - 16px) !important; padding:18px !important;}
  body.v96-ui .v39-profile-hero,
  body.v96-ui .v76-profile-hero {
    grid-template-columns:96px minmax(0,1fr) !important;
    min-height:178px !important;
    padding:14px !important;
    gap:8px 12px !important;
  }
  body.v96-ui .v39-avatar-ring {width:96px !important;height:142px !important;}
  body.v96-ui .v39-hero-info p {font-size:12px !important;}
  body.v96-ui .v39-exp-box {font-size:11px !important;}
  body.v96-ui .v96-item-detail-head {grid-template-columns:64px minmax(0,1fr) !important;gap:11px !important;}
  body.v96-ui .v96-item-detail-head .item-detail-icon {width:64px !important;height:64px !important;min-width:64px !important;min-height:64px !important;padding:7px !important;}
  body.v96-ui .v96-item-detail-card .v39-detail-sections {grid-template-columns:1fr !important;}
  body.v96-ui .v96-item-detail-card .detail-line {min-height:54px !important;}
  body.v96-ui .v92-player-card {
    grid-template-columns:94px minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  body.v96-ui .v92-player-art {
    min-height:190px !important;
    max-height:220px !important;
    height:auto !important;
    padding:8px !important;
  }
  body.v96-ui .v92-player-main {min-width:0 !important;}
  body.v96-ui .v92-player-head h2 {font-size:25px !important; overflow-wrap:anywhere !important;}
  body.v96-ui .v92-player-character span {min-width:0 !important;}
  body.v96-ui .v92-player-character b {white-space:normal !important; overflow-wrap:anywhere !important;}
  body.v96-ui .v96-result-scroll {padding-right:6px !important;}
}

@media (max-width: 410px) {
  body.v96-ui .v92-player-card {grid-template-columns:82px minmax(0,1fr) !important;}
  body.v96-ui .v92-player-art {min-height:170px !important;max-height:190px !important;}
  body.v96-ui .v92-player-actions {grid-column:1/-1 !important;}
}

/* ---- css/v97-ui.css ---- */
/* Aldos RPG v1.97 — isolated repair layer.
   The selectors below intentionally use new v97 classes for item details so
   legacy v39/v93/v95 rules cannot collapse the content into one-letter columns. */

html, body.v97-ui { max-width:100%; overflow-x:hidden; }
body.v97-ui .screen,
body.v97-ui .v76-screen,
body.v97-ui main { min-width:0; max-width:100%; }
body.v97-ui img { max-width:100%; }

/* ---------- Item details: completely independent layout ---------- */
body.v97-ui .modal-back.has-v97-item-modal {
  padding:14px !important;
  overflow:hidden !important;
  align-items:center !important;
  justify-content:center !important;
}
body.v97-ui .modal.v97-item-modal {
  width:min(560px, calc(100vw - 28px)) !important;
  max-width:560px !important;
  max-height:calc(100dvh - 28px) !important;
  min-width:0 !important;
  padding:22px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
  scrollbar-gutter:stable !important;
}
body.v97-ui .modal.v97-item-modal > h1 {
  margin:0 52px 16px 0 !important;
  min-width:0 !important;
  font-size:clamp(22px, 4vw, 30px) !important;
  line-height:1.15 !important;
  white-space:normal !important;
  word-break:normal !important;
}
body.v97-ui .v97-item-detail-card {
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:16px !important;
  border:1px solid rgba(215,228,222,.34) !important;
  border-radius:20px !important;
  background:linear-gradient(155deg,rgba(30,35,40,.98),rgba(18,22,27,.99)) !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
body.v97-ui .v97-item-detail-head {
  position:static !important;
  display:grid !important;
  grid-template-columns:84px minmax(0,1fr) !important;
  align-items:center !important;
  gap:16px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
}
body.v97-ui .v97-item-detail-icon {
  position:static !important;
  display:grid !important;
  place-items:center !important;
  width:84px !important;
  height:84px !important;
  min-width:84px !important;
  min-height:84px !important;
  margin:0 !important;
  padding:9px !important;
  border:1px solid rgba(238,166,59,.55) !important;
  border-radius:17px !important;
  background:radial-gradient(circle at 50% 40%,rgba(239,168,68,.14),rgba(5,11,15,.58)) !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
body.v97-ui .v97-item-detail-icon img,
body.v97-ui .v97-item-detail-icon .item-asset-image {
  position:static !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
}
body.v97-ui .v97-item-detail-copy {
  position:static !important;
  display:block !important;
  min-width:0 !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
}
body.v97-ui .v97-item-detail-copy > small {
  display:block !important;
  margin:0 0 5px !important;
  color:#9ed7c6 !important;
  font-size:10px !important;
  font-weight:850 !important;
  line-height:1.2 !important;
  letter-spacing:.11em !important;
  text-transform:uppercase !important;
  white-space:normal !important;
}
body.v97-ui .v97-item-detail-copy h2 {
  position:static !important;
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 0 7px !important;
  padding:0 !important;
  color:#fff !important;
  font-size:clamp(22px, 5vw, 31px) !important;
  font-weight:900 !important;
  line-height:1.08 !important;
  letter-spacing:0 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  writing-mode:horizontal-tb !important;
  text-orientation:mixed !important;
}
body.v97-ui .v97-item-detail-copy p {
  position:static !important;
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  color:#aeb9b6 !important;
  font-size:13px !important;
  line-height:1.45 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  writing-mode:horizontal-tb !important;
}
body.v97-ui .v97-item-facts {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
  width:100% !important;
  min-width:0 !important;
}
body.v97-ui .v97-item-facts > div {
  position:static !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:4px !important;
  min-width:0 !important;
  min-height:62px !important;
  padding:11px 12px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.025) !important;
  box-sizing:border-box !important;
}
body.v97-ui .v97-item-facts small,
body.v97-ui .v97-item-facts b {
  position:static !important;
  display:block !important;
  min-width:0 !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.3 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  writing-mode:horizontal-tb !important;
  text-align:left !important;
}
body.v97-ui .v97-item-facts small { color:#8e9997 !important; font-size:10px !important; font-weight:650 !important; }
body.v97-ui .v97-item-facts b { color:#f4f7f6 !important; font-size:14px !important; font-weight:850 !important; }
body.v97-ui .v97-item-requirements {
  display:block !important;
  min-width:0 !important;
  margin:0 !important;
  padding:12px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:14px !important;
  background:rgba(7,14,18,.38) !important;
}
body.v97-ui .v97-item-requirements h3 { margin:0 0 8px !important; font-size:13px !important; line-height:1.25 !important; }
body.v97-ui .v97-item-requirements > div { display:flex !important; flex-wrap:wrap !important; gap:7px !important; min-width:0 !important; }
body.v97-ui .v97-item-requirements span { display:inline-flex !important; max-width:100% !important; padding:6px 9px !important; border-radius:9px !important; font-size:12px !important; line-height:1.25 !important; white-space:normal !important; overflow-wrap:break-word !important; }
body.v97-ui .v97-item-requirements .ok { background:rgba(71,186,116,.13) !important; color:#91efb4 !important; }
body.v97-ui .v97-item-requirements .bad { background:rgba(212,76,89,.13) !important; color:#ffadb5 !important; }
body.v97-ui .v97-item-detail-actions {
  position:static !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr)) !important;
  gap:8px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
body.v97-ui .v97-item-detail-actions > button { position:static !important; width:100% !important; min-height:44px !important; margin:0 !important; }

/* ---------- Profile: wider hero and deliberate spacing ---------- */
body.v97-ui .v39-profile-layout,
body.v97-ui .v76-profile-layout {
  width:100% !important;
  max-width:none !important;
  grid-template-columns:minmax(420px, 465px) minmax(0,1fr) !important;
  gap:18px !important;
}
body.v97-ui .v39-profile-hero,
body.v97-ui .v76-profile-hero {
  min-height:250px !important;
  padding:20px !important;
  grid-template-columns:164px minmax(0,1fr) !important;
  grid-template-areas:"avatar info" "avatar exp" !important;
  column-gap:24px !important;
  row-gap:16px !important;
  align-content:center !important;
  overflow:hidden !important;
}
body.v97-ui .v39-avatar-ring {
  width:164px !important;
  height:205px !important;
  min-width:164px !important;
  align-self:center !important;
  margin:0 !important;
  overflow:hidden !important;
}
body.v97-ui .v39-avatar-ring .avatar { width:100% !important; height:100% !important; overflow:hidden !important; }
body.v97-ui .v39-avatar-ring img {
  width:112% !important;
  height:112% !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:translate(-5%, 2%) scale(1.03) !important;
}
body.v97-ui .v39-hero-info { padding:0 !important; align-self:end !important; min-width:0 !important; }
body.v97-ui .v76-profile-name-line { gap:10px !important; }
body.v97-ui .v95-expand-name { padding:0 !important; text-align:left !important; }
body.v97-ui .v95-expand-name span {
  font-size:clamp(25px,3vw,34px) !important;
  line-height:1.08 !important;
}
body.v97-ui .v39-hero-info p { margin-top:10px !important; font-size:13px !important; line-height:1.4 !important; }
body.v97-ui .v39-exp-box {
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:11px 12px !important;
  box-sizing:border-box !important;
}

/* ---------- Equipment: prevent narrow statistic columns and overlays ---------- */
body.v97-ui .v39-slot-grid,
body.v97-ui .v76-slot-grid { min-width:0 !important; gap:10px !important; }
body.v97-ui .v39-equip-slot,
body.v97-ui .v76-equip-slot {
  position:relative !important;
  display:grid !important;
  grid-template-columns:78px minmax(0,1fr) !important;
  grid-template-areas:
    "icon slot"
    "icon rarity"
    "icon effects"
    "item item" !important;
  align-items:center !important;
  align-content:center !important;
  gap:6px 12px !important;
  min-width:0 !important;
  min-height:132px !important;
  height:auto !important;
  padding:14px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  text-align:left !important;
}
body.v97-ui .v39-equip-slot > *,
body.v97-ui .v76-equip-slot > * {
  position:static !important;
  inset:auto !important;
  transform:none !important;
  min-width:0 !important;
  max-width:100% !important;
  writing-mode:horizontal-tb !important;
}
body.v97-ui .v39-equip-slot .v39-slot-icon {
  grid-area:icon !important;
  width:78px !important;
  height:92px !important;
  min-width:78px !important;
  min-height:92px !important;
  padding:7px !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}
body.v97-ui .v39-equip-slot .v39-slot-icon img {
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}
body.v97-ui .v39-equip-slot .v39-slot-name {
  grid-area:slot !important;
  display:block !important;
  margin:0 !important;
  color:#8fa19c !important;
  font-size:9px !important;
  line-height:1.2 !important;
  letter-spacing:.1em !important;
  text-transform:uppercase !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body.v97-ui .v39-equip-slot .v77-slot-rarity {
  grid-area:rarity !important;
  display:block !important;
  width:auto !important;
  margin:0 !important;
  color:#8bd49f !important;
  font-size:10px !important;
  line-height:1.2 !important;
  letter-spacing:.08em !important;
  white-space:normal !important;
}
body.v97-ui .v39-equip-slot .v77-slot-effects {
  grid-area:effects !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:5px !important;
  width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
}
body.v97-ui .v39-equip-slot .v77-slot-effects > span {
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  max-width:100% !important;
  min-width:max-content !important;
  padding:5px 7px !important;
  font-size:10px !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
  word-break:normal !important;
  overflow:visible !important;
}
body.v97-ui .v39-equip-slot .v77-slot-effects img { width:15px !important; height:15px !important; flex:0 0 15px !important; }
body.v97-ui .v39-equip-slot .v39-slot-item {
  grid-area:item !important;
  display:block !important;
  width:100% !important;
  margin:4px 0 0 !important;
  padding:0 !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:900 !important;
  line-height:1.25 !important;
  text-align:right !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body.v97-ui .v39-equip-slot.two-hand-ghost .v39-slot-item::after { display:none !important; content:none !important; }

/* ---------- Friend list and player card ---------- */
body.v97-ui .v76-person-avatar { display:grid !important; place-items:center !important; }
body.v97-ui .v76-person-avatar img {
  width:108% !important;
  height:108% !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:center bottom !important;
}
body.v97-ui .v76-person-avatar .v97-player-placeholder {
  width:70% !important;
  height:70% !important;
  object-position:center !important;
  opacity:.75 !important;
}
body.v97-ui .v92-player-card {
  grid-template-columns:170px minmax(0,1fr) !important;
  gap:18px !important;
  width:min(720px,100%) !important;
  max-width:100% !important;
  min-width:0 !important;
  padding:16px !important;
  box-sizing:border-box !important;
}
body.v97-ui .v92-player-art {
  display:grid !important;
  place-items:center !important;
  min-width:0 !important;
  height:310px !important;
  min-height:0 !important;
  max-height:none !important;
  padding:10px !important;
  overflow:hidden !important;
}
body.v97-ui .v92-player-art img {
  width:118% !important;
  height:118% !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  transform:translateY(4%) !important;
}
body.v97-ui .v92-player-art .v97-player-placeholder { width:68% !important; height:68% !important; transform:none !important; object-position:center !important; }
body.v97-ui .v92-player-main,
body.v97-ui .v92-player-head,
body.v97-ui .v92-player-character,
body.v97-ui .v92-player-character span { min-width:0 !important; }
body.v97-ui .v92-player-head h2,
body.v97-ui .v92-player-character b { white-space:normal !important; word-break:normal !important; overflow-wrap:break-word !important; }

/* Monster information: v97 intentionally does not show boss/mechanics prose. */
body.v97-ui .v93-monster-mechanics { display:none !important; }
body.v97-ui .v65-monster-stat-grid .detail-line,
body.v97-ui .v65-monster-stat-grid .detail-line > * { min-width:0 !important; }
body.v97-ui .v65-monster-tagline { display:flex !important; flex-wrap:wrap !important; justify-content:flex-end !important; gap:5px !important; }

/* Missing art should never resize a card. */
body.v97-ui .asset-load-fallback { display:grid !important; place-items:center !important; width:100% !important; height:100% !important; min-width:0 !important; }

@media (max-width: 900px) {
  body.v97-ui .v39-profile-layout,
  body.v97-ui .v76-profile-layout {
    grid-template-columns:1fr !important;
    grid-template-areas:"hero" "stats" "equipment" !important;
  }
  body.v97-ui .v39-profile-hero,
  body.v97-ui .v76-profile-hero { width:100% !important; }
}

@media (max-width: 700px) {
  body.v97-ui .v39-slot-grid,
  body.v97-ui .v76-slot-grid { grid-template-columns:1fr !important; }
  body.v97-ui .v39-equip-slot,
  body.v97-ui .v76-equip-slot { width:100% !important; min-height:132px !important; }
}

@media (max-width: 620px) {
  body.v97-ui .modal-back.has-v97-item-modal { padding:8px !important; align-items:center !important; }
  body.v97-ui .modal.v97-item-modal {
    width:calc(100vw - 16px) !important;
    max-width:calc(100vw - 16px) !important;
    max-height:calc(100dvh - 16px) !important;
    padding:16px !important;
  }
  body.v97-ui .v97-item-detail-card { padding:14px !important; gap:12px !important; }
  body.v97-ui .v97-item-detail-head { grid-template-columns:72px minmax(0,1fr) !important; gap:13px !important; }
  body.v97-ui .v97-item-detail-icon { width:72px !important; height:72px !important; min-width:72px !important; min-height:72px !important; padding:7px !important; }
  body.v97-ui .v97-item-detail-copy h2 { font-size:23px !important; }
  body.v97-ui .v97-item-detail-copy p { font-size:12px !important; }
  body.v97-ui .v97-item-facts { grid-template-columns:1fr !important; }
  body.v97-ui .v97-item-facts > div { min-height:56px !important; }

  body.v97-ui .v39-profile-hero,
  body.v97-ui .v76-profile-hero {
    min-height:230px !important;
    padding:16px !important;
    grid-template-columns:126px minmax(0,1fr) !important;
    grid-template-areas:"avatar info" "avatar exp" !important;
    column-gap:18px !important;
    row-gap:13px !important;
  }
  body.v97-ui .v39-avatar-ring { width:126px !important; height:188px !important; min-width:126px !important; }
  body.v97-ui .v95-expand-name span { font-size:29px !important; }
  body.v97-ui .v39-hero-info p { font-size:12px !important; }

  body.v97-ui .v92-player-card {
    grid-template-columns:1fr !important;
    gap:12px !important;
    padding:12px !important;
  }
  body.v97-ui .v92-player-art {
    width:100% !important;
    height:180px !important;
    min-height:180px !important;
    padding:8px !important;
  }
  body.v97-ui .v92-player-art img {
    width:150px !important;
    height:190px !important;
    max-width:70% !important;
    transform:translateY(7%) scale(1.05) !important;
  }
  body.v97-ui .v92-player-art .v97-player-placeholder { width:78px !important; height:78px !important; transform:none !important; }
  body.v97-ui .v92-player-actions { grid-column:auto !important; }
}

@media (max-width: 430px) {
  body.v97-ui .v39-profile-hero,
  body.v97-ui .v76-profile-hero {
    grid-template-columns:112px minmax(0,1fr) !important;
    min-height:216px !important;
    padding:14px !important;
    column-gap:16px !important;
  }
  body.v97-ui .v39-avatar-ring { width:112px !important; height:176px !important; min-width:112px !important; }
  body.v97-ui .v95-expand-name span { font-size:27px !important; }
  body.v97-ui .v39-exp-box { padding:9px 10px !important; }

  body.v97-ui .v39-equip-slot,
  body.v97-ui .v76-equip-slot {
    grid-template-columns:72px minmax(0,1fr) !important;
    min-height:126px !important;
    padding:12px !important;
    gap:5px 10px !important;
  }
  body.v97-ui .v39-equip-slot .v39-slot-icon { width:72px !important; height:86px !important; min-width:72px !important; min-height:86px !important; }
  body.v97-ui .v39-equip-slot .v39-slot-item { font-size:14px !important; }
  body.v97-ui .v39-equip-slot .v77-slot-effects > span { font-size:9px !important; padding:5px 6px !important; }
}

/* ---- css/v98-ui.css ---- */
/* Aldos RPG v1.98 — mobile layout, smooth timer, safe containment */
html,body{max-width:100%;overflow-x:hidden}
body.v98-ui *,body.v98-ui *::before,body.v98-ui *::after{box-sizing:border-box}
body.v98-ui .screen,body.v98-ui .panel,body.v98-ui .card,body.v98-ui .modal,body.v98-ui .modal *{min-width:0}
body.v98-ui img{max-width:100%}

/* Timer uses GPU transform, not an easing transition on repeatedly changed width. */
body.v98-ui .v79-turn-bar>i{width:100%!important;transform-origin:left center!important;transition:none!important;will-change:transform!important}
body.v98-ui .v79-turn.urgent .v79-turn-bar>i{animation:none!important}

/* Unified modal shell. */
body.v98-ui .modal-back{padding:12px!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
body.v98-ui .modal-back>.modal{position:relative!important;width:min(720px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:22px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:auto!important}
body.v98-ui .modal-back>.modal>.modal-close{position:absolute!important;top:16px!important;right:16px!important;left:auto!important;z-index:20!important;width:44px!important;height:44px!important;min-width:44px!important;padding:0!important}
body.v98-ui .modal-back>.modal>h1{max-width:calc(100% - 58px)!important;margin:0 0 18px!important;line-height:1.08!important;overflow-wrap:anywhere!important}

/* Status and target information: compact, semantic, no giant empty card. */
body.v98-ui .modal.v98-status-modal{width:min(500px,calc(100vw - 24px))!important;padding:20px!important}
body.v98-ui .v98-status-modal .status-help-card{width:100%!important;padding:18px!important;gap:14px!important}
body.v98-ui .v98-status-modal .status-help-card p{margin:0!important;padding:16px!important;font-size:16px!important;line-height:1.48!important;overflow-wrap:anywhere!important}
body.v98-ui .v98-status-modal .status-help-card button{justify-self:end!important;width:min(220px,100%)!important}

/* Result modal has exactly one vertical scroll area and a safe footer. */
body.v98-ui .modal-back.has-v98-result-modal{padding:8px!important}
body.v98-ui .modal.v98-result-modal{width:min(760px,calc(100vw - 16px))!important;height:min(780px,calc(100dvh - 16px))!important;max-height:calc(100dvh - 16px)!important;padding:18px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body.v98-ui .v98-result-modal>.v96-result{flex:1 1 auto!important;min-height:0!important;width:100%!important;overflow:hidden!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important}
body.v98-ui .v98-result-modal .v96-result-scroll{min-height:0!important;width:100%!important;max-width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 6px 16px 0!important;scrollbar-gutter:auto!important}
body.v98-ui .v98-result-modal .v96-result-footer{flex:0 0 auto!important;padding:12px 0 0!important;margin:0!important;background:#181c1f!important}
body.v98-ui .v98-result-modal #result-loot-view,body.v98-ui .v98-result-modal .v78-result-block,body.v98-ui .v98-result-modal .v93-result-block{width:100%!important;max-width:100%!important;overflow:hidden!important;padding-inline:0!important}
body.v98-ui .v98-result-modal .item-card{width:100%!important;max-width:100%!important;margin:10px 0!important;grid-template-columns:100px minmax(0,1fr)!important;gap:14px!important;padding:14px!important;overflow:hidden!important}
body.v98-ui .v98-result-modal .item-icon-wrap{width:100px!important;min-width:0!important}
body.v98-ui .v98-result-modal .item-emblem{width:92px!important;height:92px!important;min-width:92px!important;margin:0!important}
body.v98-ui .v98-result-modal .item-body,body.v98-ui .v98-result-modal .v39-item-head{width:100%!important;min-width:0!important;max-width:100%!important}
body.v98-ui .v98-result-modal .v39-item-head{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:7px!important}
body.v98-ui .v98-result-modal .v39-item-head h3{flex:1 1 170px!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
body.v98-ui .v98-result-modal .item-weight{flex:0 0 auto!important;position:static!important;max-width:100%!important}
body.v98-ui .v98-result-modal .item-description{display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;text-overflow:clip!important}
body.v98-ui .v98-result-modal .item-stats-line{display:flex!important;flex-wrap:wrap!important;max-width:100%!important;gap:6px!important;overflow:hidden!important}
body.v98-ui .v98-result-modal .item-stats-line>span{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v98-ui .v98-result-modal .v78-durability{grid-template-columns:auto minmax(44px,1fr) auto!important;max-width:100%!important;overflow:hidden!important}

/* Equipment picker and cards. */
body.v98-ui .modal.v98-picker-modal{width:min(680px,calc(100vw - 24px))!important;overflow-y:auto!important;overflow-x:hidden!important}
body.v98-ui .v98-picker-modal .v93-slot-picker,body.v98-ui .v98-picker-modal .v93-picker-section,body.v98-ui .v98-picker-modal .v93-picker-list{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
body.v98-ui .v98-picker-modal .item-card{width:100%!important;max-width:100%!important;grid-template-columns:100px minmax(0,1fr)!important;gap:14px!important;overflow:hidden!important}
body.v98-ui .v98-picker-modal .item-body,body.v98-ui .v98-picker-modal .v39-item-head{min-width:0!important;width:100%!important;max-width:100%!important}
body.v98-ui .v98-picker-modal .v39-item-head h3{white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
body.v98-ui .v98-picker-modal .item-description{white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;text-overflow:clip!important}
body.v98-ui .v98-picker-modal .item-stats-line{display:flex!important;flex-wrap:wrap!important;gap:6px!important;overflow:hidden!important}
body.v98-ui .v98-picker-modal .item-stats-line>span{min-width:0!important;max-width:100%!important;white-space:normal!important}
body.v98-ui .v98-picker-modal::-webkit-scrollbar,body.v98-ui .v98-result-modal .v96-result-scroll::-webkit-scrollbar{width:5px!important}
body.v98-ui .v98-picker-modal::-webkit-scrollbar-thumb,body.v98-ui .v98-result-modal .v96-result-scroll::-webkit-scrollbar-thumb{border:0!important;background:rgba(229,172,75,.55)!important;border-radius:999px!important}

/* Account confirmation. */
body.v98-ui .modal.v98-account-confirm-modal{width:min(560px,calc(100vw - 24px))!important}
body.v98-ui .v98-account-confirm-modal .v76-rename-dialog{display:grid!important;gap:16px!important;width:100%!important}
body.v98-ui .v98-account-confirm-modal .v76-rename-dialog p{margin:0!important;line-height:1.5!important}
body.v98-ui .v98-account-confirm-modal .v76-confirm-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
body.v98-ui .v98-account-confirm-modal input{width:100%!important;max-width:100%!important}

/* Battle skill drawer: no title/count collision and no chat overlap. */
body.v98-ui .v79-left-drawer,body.v98-ui .v78-left-drawer{width:min(420px,84vw)!important;max-width:84vw!important;overflow:hidden!important}
body.v98-ui .v78-left-drawer .v17-skill-scroll{padding:12px!important;overflow-x:hidden!important}
body.v98-ui .v78-left-drawer .v62-drawer-section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-width:0!important;margin:12px 0 8px!important}
body.v98-ui .v78-left-drawer .v62-drawer-section-title h3{flex:1 1 auto!important;min-width:0!important;margin:0!important;font-size:14px!important;line-height:1.25!important;letter-spacing:.06em!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v98-ui .v78-left-drawer .v62-drawer-section-title>span{position:static!important;flex:0 0 auto!important;margin:0!important;min-width:34px!important;text-align:center!important}
body.v98-ui .v78-left-drawer .v59-skill-slot-grid,body.v98-ui .v78-left-drawer .v58-skill-slot-grid{width:100%!important;min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.v98-ui .v78-left-drawer .empty,body.v98-ui .v78-left-drawer .muted{grid-column:1/-1!important;width:100%!important;margin:0!important;padding:14px!important;min-height:0!important;text-align:left!important;overflow-wrap:anywhere!important}
body.v98-ui .v78-left-drawer .v32-drawer-mini-note{margin:0 0 8px!important;line-height:1.35!important}
body.v98-ui .v78-chat-tab{z-index:110!important}
body.v98-ui:has(.v78-left-drawer.open) .v78-chat-tab{opacity:.35!important;pointer-events:none!important}

/* Profile and equipment containment. */
body.v98-ui .v39-profile-hero,body.v98-ui .v76-profile-hero{overflow:hidden!important}
body.v98-ui .v39-hero-info,body.v98-ui .v39-exp-box{min-width:0!important;width:100%!important}
body.v98-ui .v95-expand-name span,body.v98-ui .v39-hero-info p{white-space:normal!important;overflow-wrap:anywhere!important}
body.v98-ui .v39-equip-slot,body.v98-ui .v76-equip-slot{overflow:hidden!important;max-width:100%!important}
body.v98-ui .v39-equip-slot .v77-slot-effects>span{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v98-ui .v39-equip-slot .v39-slot-item{text-align:left!important;max-width:100%!important;overflow-wrap:anywhere!important}

/* Item detail remains in its own grid and never grows horizontally. */
body.v98-ui .v97-item-detail-card,body.v98-ui .v96-item-detail-card{width:100%!important;max-width:100%!important;overflow:hidden!important}
body.v98-ui .v97-item-detail-head,body.v98-ui .v96-item-detail-head{max-width:100%!important;min-width:0!important}
body.v98-ui .v97-item-detail-copy,body.v98-ui .v96-item-detail-title{min-width:0!important;overflow:hidden!important}
body.v98-ui .v97-item-detail-copy h2,body.v98-ui .v96-item-detail-title h2{white-space:normal!important;overflow-wrap:anywhere!important}

@media(max-width:620px){
  body.v98-ui .modal-back{padding:6px!important}
  body.v98-ui .modal-back>.modal{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:18px!important;border-radius:22px!important}
  body.v98-ui .modal-back>.modal>.modal-close{top:14px!important;right:14px!important;width:42px!important;height:42px!important;min-width:42px!important}
  body.v98-ui .modal-back>.modal>h1{font-size:clamp(27px,8vw,38px)!important;margin-bottom:16px!important}
  body.v98-ui .modal.v98-result-modal{height:calc(100dvh - 12px)!important;padding:14px!important}
  body.v98-ui .v98-result-modal .v96-result-scroll{padding-right:2px!important}
  body.v98-ui .v98-result-modal .item-card,body.v98-ui .v98-picker-modal .item-card{grid-template-columns:82px minmax(0,1fr)!important;gap:10px!important;padding:11px!important}
  body.v98-ui .v98-result-modal .item-icon-wrap,body.v98-ui .v98-picker-modal .item-icon-wrap{width:82px!important}
  body.v98-ui .v98-result-modal .item-emblem,body.v98-ui .v98-picker-modal .item-emblem{width:76px!important;height:76px!important;min-width:76px!important}
  body.v98-ui .v98-result-modal .v39-item-head h3,body.v98-ui .v98-picker-modal .v39-item-head h3{font-size:17px!important;line-height:1.2!important}
  body.v98-ui .v98-result-modal .item-description,body.v98-ui .v98-picker-modal .item-description{font-size:11px!important;line-height:1.4!important}
  body.v98-ui .v98-result-modal .item-stats-line>span,body.v98-ui .v98-picker-modal .item-stats-line>span{font-size:9px!important;padding:5px 7px!important}
  body.v98-ui .v98-account-confirm-modal .v76-confirm-actions{grid-template-columns:1fr!important}
  body.v98-ui .v79-left-drawer,body.v98-ui .v78-left-drawer{width:82vw!important;max-width:82vw!important;min-width:0!important}
  body.v98-ui .v39-profile-hero,body.v98-ui .v76-profile-hero{grid-template-columns:118px minmax(0,1fr)!important;column-gap:20px!important;padding:16px!important}
  body.v98-ui .v39-avatar-ring{width:118px!important;min-width:118px!important;height:180px!important}
  body.v98-ui .v39-hero-info{padding-left:2px!important}
  body.v98-ui .v39-exp-box{margin-top:6px!important}
  body.v98-ui .v39-equip-slot,body.v98-ui .v76-equip-slot{grid-template-columns:76px minmax(0,1fr)!important;gap:8px 12px!important;min-height:126px!important;padding:12px!important}
  body.v98-ui .v39-equip-slot .v39-slot-icon{width:76px!important;height:86px!important;min-width:76px!important}
  body.v98-ui .v39-equip-slot .v77-slot-effects{gap:5px!important}
}
@media(max-width:390px){
  body.v98-ui .v39-profile-hero,body.v98-ui .v76-profile-hero{grid-template-columns:104px minmax(0,1fr)!important;column-gap:15px!important;padding:13px!important}
  body.v98-ui .v39-avatar-ring{width:104px!important;min-width:104px!important;height:166px!important}
  body.v98-ui .v95-expand-name span{font-size:25px!important}
  body.v98-ui .v98-result-modal .item-card,body.v98-ui .v98-picker-modal .item-card{grid-template-columns:70px minmax(0,1fr)!important}
  body.v98-ui .v98-result-modal .item-icon-wrap,body.v98-ui .v98-picker-modal .item-icon-wrap{width:70px!important}
  body.v98-ui .v98-result-modal .item-emblem,body.v98-ui .v98-picker-modal .item-emblem{width:66px!important;height:66px!important;min-width:66px!important}
}
@media(prefers-reduced-motion:reduce){body.v98-ui *,body.v98-ui *::before,body.v98-ui *::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* ---- css/v99-ui.css ---- */
/* Aldos RPG v1.99 — compact battle result, stable mobile layouts and cleaner social UI. */
body.v99-ui{--v99-panel:#121920;--v99-panel-2:#0d141a;--v99-line:rgba(151,188,173,.18);--v99-gold:#e5bb69;overflow-x:hidden!important}
body.v99-ui *,body.v99-ui *::before,body.v99-ui *::after{box-sizing:border-box}
body.v99-ui img{max-width:100%}

/* Shared modal containment. */
body.v99-ui .modal-back{overflow:hidden!important}
body.v99-ui .modal{min-width:0!important}
body.v99-ui .modal>*{min-width:0}

/* Equipment picker: one clear compact column instead of the broken two-column desktop grid. */
body.v99-ui .modal.v98-picker-modal{width:min(790px,calc(100vw - 28px))!important;max-height:min(850px,calc(100dvh - 28px))!important;padding:20px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body.v99-ui .v98-picker-modal>h1{flex:0 0 auto!important;margin:0 58px 12px 0!important;font-size:30px!important;line-height:1.1!important}
body.v99-ui .v98-picker-modal>.v93-slot-picker{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 8px 10px 0!important}
body.v99-ui .v98-picker-modal .v93-picker-section{margin:0 0 16px!important;padding:14px!important;border:1px solid var(--v99-line)!important;border-radius:18px!important;background:rgba(9,15,20,.52)!important}
body.v99-ui .v98-picker-modal .v93-picker-section>h3{margin:0 0 10px!important;font-size:17px!important}
body.v99-ui .v98-picker-modal .v93-picker-list{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
body.v99-ui .v98-picker-modal .item-card{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:12px!important;min-height:126px!important;margin:0!important;padding:12px!important;border-radius:16px!important}
body.v99-ui .v98-picker-modal .item-icon-wrap{width:82px!important;align-self:start!important}
body.v99-ui .v98-picker-modal .item-emblem{width:74px!important;height:74px!important;min-width:74px!important}
body.v99-ui .v98-picker-modal .item-type-label{font-size:8px!important;line-height:1.15!important}
body.v99-ui .v98-picker-modal .item-body{display:flex!important;flex-direction:column!important;gap:6px!important;min-height:0!important}
body.v99-ui .v98-picker-modal .v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:start!important}
body.v99-ui .v98-picker-modal .v39-item-head h3{font-size:16px!important;line-height:1.15!important;max-width:none!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.v99-ui .v98-picker-modal .item-weight{font-size:9px!important;padding:4px 7px!important}
body.v99-ui .v98-picker-modal .item-description{margin:0!important;font-size:10px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.v99-ui .v98-picker-modal .item-stats-line{gap:5px!important;margin:0!important}
body.v99-ui .v98-picker-modal .item-stats-line>span{font-size:9px!important;padding:5px 7px!important}
body.v99-ui .v98-picker-modal .v78-durability{margin-top:0!important;font-size:8px!important}
body.v99-ui .v98-picker-modal .item-actions{margin-top:auto!important;padding-top:3px!important}
body.v99-ui .v98-picker-modal .item-actions button{min-height:34px!important;padding:7px 12px!important;font-size:11px!important}

/* Result screen: concise summary, one scroll area, compact loot cards. */
body.v99-ui .modal.v98-result-modal{width:min(760px,calc(100vw - 24px))!important;height:min(820px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:18px!important}
body.v99-ui .v98-result-modal>h1{margin:0 58px 10px 0!important;font-size:28px!important;line-height:1.1!important}
body.v99-ui .v98-result-modal>.v99-result{min-height:0!important}
body.v99-ui .v98-result-modal .v96-result-scroll{padding:0 7px 12px 0!important}
body.v99-ui .v98-result-modal .v99-result>div>header{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;margin:0 0 10px!important;padding:12px!important;border:1px solid var(--v99-line)!important;border-radius:16px!important;background:linear-gradient(135deg,rgba(48,77,68,.25),rgba(22,28,33,.75))!important}
body.v99-ui .v98-result-modal .v78-result-icon{width:52px!important;height:52px!important;margin:0!important}
body.v99-ui .v98-result-modal .v99-result header small{font-size:8px!important;letter-spacing:.12em!important}
body.v99-ui .v98-result-modal .v99-result header h2{margin:1px 0!important;font-size:22px!important;line-height:1.05!important}
body.v99-ui .v98-result-modal .v99-result header p{margin:0!important;font-size:11px!important}
body.v99-ui .v98-result-modal .v78-result-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 8px!important}
body.v99-ui .v98-result-modal .v78-result-summary>span{min-height:60px!important;padding:10px 12px!important;border-radius:14px!important}
body.v99-ui .v98-result-modal .reward-line.level-up{min-height:54px!important;margin:8px 0!important;padding:10px 12px!important}
body.v99-ui .v98-result-modal .reward-line.level-up+p{margin:0 0 9px!important;font-size:10px!important}
body.v99-ui .v98-result-modal .v78-result-block{margin:8px 0 0!important;padding:12px!important;border-radius:16px!important}
body.v99-ui .v98-result-modal .v78-result-block>h3{margin:0 0 4px!important;font-size:15px!important}
body.v99-ui .v98-result-modal .v78-result-block>.muted{margin:0 0 8px!important;font-size:10px!important;line-height:1.35!important}
body.v99-ui .v98-result-modal .loot-tabs{display:flex!important;gap:7px!important;overflow-x:auto!important;padding:2px 1px 7px!important;scrollbar-width:none!important}
body.v99-ui .v98-result-modal .loot-tabs::-webkit-scrollbar{display:none!important}
body.v99-ui .v98-result-modal .loot-tab{flex:0 0 auto!important;min-width:118px!important;min-height:42px!important;padding:8px 12px!important;font-size:13px!important}
body.v99-ui .v98-result-modal .result-loot-owner>h3{margin:4px 0 8px!important;padding:8px 10px!important;font-size:12px!important}
body.v99-ui .v98-result-modal .item-card{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:11px!important;min-height:118px!important;margin:8px 0!important;padding:11px!important;border-radius:16px!important}
body.v99-ui .v98-result-modal .item-icon-wrap{width:74px!important;align-self:start!important}
body.v99-ui .v98-result-modal .item-emblem{width:68px!important;height:68px!important;min-width:68px!important}
body.v99-ui .v98-result-modal .item-type-label{font-size:8px!important}
body.v99-ui .v98-result-modal .item-body{display:flex!important;flex-direction:column!important;gap:5px!important;min-height:0!important}
body.v99-ui .v98-result-modal .v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:start!important}
body.v99-ui .v98-result-modal .v39-item-head h3{font-size:15px!important;line-height:1.12!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.v99-ui .v98-result-modal .item-weight{position:static!important;font-size:8px!important;padding:4px 6px!important}
body.v99-ui .v98-result-modal .item-description{position:static!important;margin:0!important;font-size:10px!important;line-height:1.32!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.v99-ui .v98-result-modal .item-stats-line{display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin:0!important}
body.v99-ui .v98-result-modal .item-stats-line>span{font-size:8px!important;padding:4px 6px!important;white-space:nowrap!important}
body.v99-ui .v98-result-modal .v78-durability{margin:0!important;font-size:8px!important;grid-template-columns:auto minmax(42px,1fr) auto!important}
body.v99-ui .v98-result-modal .item-actions:empty{display:none!important}
body.v99-ui .v98-result-modal .v96-result-footer{padding:10px 0 0!important;border-top:1px solid var(--v99-line)!important;background:linear-gradient(180deg,rgba(18,25,32,0),#121920 25%)!important}
body.v99-ui .v98-result-modal .v78-result-close{min-height:48px!important;font-size:16px!important}

/* Ally target selector: readable values above thin, stable bars. */
body.v99-ui .v83-ally-card{overflow:hidden!important}
body.v99-ui .v99-ally-bars{display:grid!important;gap:8px!important;width:100%!important;min-width:0!important;margin-top:8px!important}
body.v99-ui .v99-ally-resource{display:grid!important;grid-template-rows:auto 7px!important;gap:3px!important;min-width:0!important}
body.v99-ui .v99-ally-resource>span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:0 2px!important;font-size:10px!important;line-height:1!important;color:#dce7e2!important}
body.v99-ui .v99-ally-resource>span b{font-size:9px!important;letter-spacing:.08em!important}
body.v99-ui .v99-ally-resource>span strong{font-size:10px!important;font-weight:700!important}
body.v99-ui .v99-ally-resource>i{display:block!important;position:relative!important;width:100%!important;height:7px!important;overflow:hidden!important;border-radius:999px!important;background:#071014!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)!important}
body.v99-ui .v99-ally-resource>i>em{display:block!important;height:100%!important;border-radius:inherit!important;transition:width .22s ease!important}
body.v99-ui .v99-ally-resource.hp>i>em{background:linear-gradient(90deg,#49a95d,#9bdc72)!important}
body.v99-ui .v99-ally-resource.mp>i>em{background:linear-gradient(90deg,#2891a6,#69d5df)!important}

/* Battle skills: consistent icon alignment, readable label, no half-clipped assets. */
body.v99-ui .v79-left-drawer,body.v99-ui .v78-left-drawer{width:min(390px,86vw)!important;max-width:86vw!important}
body.v99-ui .v78-left-drawer .v59-skill-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.v99-ui .v78-left-drawer .v62-skill-slot.v59-skill-slot{position:relative!important;display:block!important;min-width:0!important;width:100%!important;height:104px!important;min-height:104px!important;overflow:hidden!important;border-radius:15px!important}
body.v99-ui .v78-left-drawer .v59-skill-slot-main{position:relative!important;display:grid!important;grid-template-rows:58px minmax(0,1fr)!important;place-items:center!important;width:100%!important;height:100%!important;min-height:0!important;padding:8px 34px 8px 8px!important;text-align:center!important}
body.v99-ui .v78-left-drawer .v59-skill-slot-main>span{grid-row:auto!important;width:56px!important;height:56px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:13px!important;margin:0!important;padding:4px!important}
body.v99-ui .v78-left-drawer .v59-skill-slot-main>span img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;margin:0!important}
body.v99-ui .v78-left-drawer .v99-skill-name{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;align-self:center!important;width:100%!important;color:#edf4f0!important;font-size:9px!important;font-weight:700!important;line-height:1.15!important;text-align:center!important}
body.v99-ui .v78-left-drawer .v59-skill-info{position:absolute!important;z-index:8!important;right:0!important;top:0!important;width:32px!important;min-width:32px!important;height:100%!important;min-height:0!important;border-left:1px solid var(--v99-line)!important;border-radius:0!important}
body.v99-ui .v78-left-drawer .v59-cd-badge{top:5px!important;right:36px!important}

/* Ability management page: tabs stay usable and cards align naturally. */
body.v99-ui .abilities-tabs-panel{width:100%!important;max-width:980px!important;margin:0 auto!important;overflow:hidden!important;border-radius:22px!important}
body.v99-ui .ability-tabs{display:flex!important;gap:8px!important;width:100%!important;overflow-x:auto!important;padding:10px!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important}
body.v99-ui .ability-tabs::-webkit-scrollbar{display:none!important}
body.v99-ui .ability-tabs>button{flex:1 0 185px!important;min-height:52px!important;scroll-snap-align:start!important;white-space:nowrap!important;font-size:13px!important}
body.v99-ui .ability-tab-page>.panel{padding:14px!important}
body.v99-ui .ability-tab-page>.panel>h2{font-size:20px!important;margin:0 0 4px!important}
body.v99-ui .ability-tab-page>.panel>.muted{font-size:11px!important;margin:0 0 12px!important}
body.v99-ui .ability-card{display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;min-height:86px!important;margin:9px 0!important;padding:12px!important;overflow:hidden!important}
body.v99-ui .ability-card .ability-icon{width:56px!important;height:56px!important;display:grid!important;place-items:center!important;margin:0!important}
body.v99-ui .ability-card .ability-icon img{width:44px!important;height:44px!important;object-fit:contain!important}
body.v99-ui .ability-card .skill-main{min-width:0!important}
body.v99-ui .ability-card .skill-main h3{margin:0 0 3px!important;font-size:17px!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v99-ui .ability-card .skill-main small{font-size:10px!important}
body.v99-ui .ability-card .row-actions{margin:0!important}
body.v99-ui .ability-card .row-actions button{min-width:96px!important;min-height:38px!important;font-size:11px!important}

/* v100: chat layout restored to the stable pre-v99 implementation. */

@media(max-width:620px){
  body.v99-ui .modal.v98-picker-modal,body.v99-ui .modal.v98-result-modal{width:calc(100vw - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:14px!important;border-radius:22px!important}
  body.v99-ui .v98-picker-modal>h1,body.v99-ui .v98-result-modal>h1{font-size:25px!important;margin-right:52px!important}
  body.v99-ui .v98-picker-modal .v93-picker-section{padding:10px!important}
  body.v99-ui .v98-picker-modal .item-card{grid-template-columns:68px minmax(0,1fr)!important;gap:9px!important;min-height:108px!important;padding:9px!important}
  body.v99-ui .v98-picker-modal .item-icon-wrap{width:68px!important}
  body.v99-ui .v98-picker-modal .item-emblem{width:62px!important;height:62px!important;min-width:62px!important}
  body.v99-ui .v98-picker-modal .v39-item-head h3{font-size:14px!important}
  body.v99-ui .v98-picker-modal .item-description{font-size:9px!important;-webkit-line-clamp:2!important}
  body.v99-ui .v98-result-modal .v99-result>div>header{grid-template-columns:44px minmax(0,1fr)!important;padding:9px!important}
  body.v99-ui .v98-result-modal .v78-result-icon{width:42px!important;height:42px!important}
  body.v99-ui .v98-result-modal .v99-result header h2{font-size:19px!important}
  body.v99-ui .v98-result-modal .v78-result-summary{grid-template-columns:1fr!important}
  body.v99-ui .v98-result-modal .v78-result-summary>span{min-height:50px!important}
  body.v99-ui .v98-result-modal .item-card{grid-template-columns:64px minmax(0,1fr)!important;gap:9px!important;min-height:104px!important;padding:9px!important}
  body.v99-ui .v98-result-modal .item-icon-wrap{width:64px!important}
  body.v99-ui .v98-result-modal .item-emblem{width:58px!important;height:58px!important;min-width:58px!important}
  body.v99-ui .v98-result-modal .v39-item-head h3{font-size:13px!important;line-height:1.1!important}
  body.v99-ui .v98-result-modal .item-description{font-size:9px!important;line-height:1.28!important;-webkit-line-clamp:2!important}
  body.v99-ui .v98-result-modal .item-stats-line>span{font-size:8px!important;padding:4px 5px!important}
  body.v99-ui .v98-result-modal .loot-tab{min-width:104px!important;font-size:12px!important}
  body.v99-ui .v79-left-drawer,body.v99-ui .v78-left-drawer{width:84vw!important;max-width:84vw!important}
  body.v99-ui .ability-tabs>button{flex-basis:170px!important}
  body.v99-ui .ability-card{grid-template-columns:48px minmax(0,1fr) 44px!important;gap:9px!important;min-height:76px!important;padding:10px!important}
  body.v99-ui .ability-card .ability-icon{width:46px!important;height:46px!important}
  body.v99-ui .ability-card .skill-main h3{font-size:15px!important}
  body.v99-ui .ability-card .row-actions button{min-width:42px!important;width:42px!important;padding:0!important;font-size:0!important}
  body.v99-ui .ability-card .row-actions button::after{content:'+';font-size:21px!important}
  body.v99-ui .ability-card.equipped .row-actions button::after{content:'−'}
  body.v99-ui .ability-card.locked .row-actions button::after{content:'🔒';font-size:14px!important}
}

@media(max-width:380px){
  body.v99-ui .v98-result-modal .item-card{grid-template-columns:56px minmax(0,1fr)!important}
  body.v99-ui .v98-result-modal .item-icon-wrap{width:56px!important}
  body.v99-ui .v98-result-modal .item-emblem{width:52px!important;height:52px!important;min-width:52px!important}
  body.v99-ui .v98-result-modal .v39-item-head h3{font-size:12px!important}
  body.v99-ui .v78-left-drawer .v59-skill-slot-grid{gap:7px!important}
  body.v99-ui .v78-left-drawer .v62-skill-slot.v59-skill-slot{height:96px!important;min-height:96px!important}
}

/* ---- css/v100-ui.css ---- */
/* Aldos RPG v100: generated asset library and stable legacy chat. */
body.v100-ui img[src*="/assets/v100/"]{object-fit:contain;object-position:center}
body.v100-ui .monster-asset-image[src*="/v100/molfar/"],body.v100-ui .battle-monster-art[src*="/v100/molfar/"]{filter:drop-shadow(0 8px 14px rgba(0,0,0,.42))}
body.v100-ui .item-asset-image[src*="/v100/"],body.v100-ui .ability-icon img[src*="/v100/"]{image-rendering:auto}

/* ---- css/v101-mobile.css ---- */
/* Aldos RPG v101 — mobile-first battle rebuild. */
body.v101-ui{
  overscroll-behavior-y:none;
  -webkit-tap-highlight-color:transparent;
}
body.v101-ui .v101-battle,
body.v101-ui .v101-battle *{box-sizing:border-box}

/* The battle is designed for a phone first. Desktop only gives it more breathing room. */
body.v101-ui .v101-battle{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:none!important;
  gap:8px!important;
  width:100%!important;
  max-width:1180px!important;
  margin:0 auto!important;
  padding:9px 27px max(22px,env(safe-area-inset-bottom))!important;
}
body.v101-ui .v101-battle>.v79-turn,
body.v101-ui .v101-battle>.v101-combat-board,
body.v101-ui .v101-battle>.v101-battle-log{grid-area:auto!important;min-width:0!important}
body.v101-ui .v101-combat-board{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch;
  gap:6px;
  min-width:0;
}
body.v101-ui .v101-roster{
  display:grid!important;
  grid-template-rows:35px minmax(0,1fr)!important;
  min-width:0!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,rgba(21,31,35,.98),rgba(10,17,21,.98))!important;
}
body.v101-ui .v101-player-roster{border-color:rgba(99,215,189,.22)!important}
body.v101-ui .v101-monster-roster{border-color:rgba(236,114,104,.23)!important}
body.v101-ui .v101-roster-head{
  min-height:35px!important;
  height:35px!important;
  padding:6px 8px!important;
  gap:5px!important;
}
body.v101-ui .v101-roster-head h2{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px!important;
  letter-spacing:.01em;
}
body.v101-ui .v101-roster-head span{
  max-width:52%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:7px!important;
}
body.v101-ui .v101-roster-scroll{
  display:flex!important;
  flex-direction:column!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  align-content:initial!important;
  gap:6px!important;
  height:232px!important;
  min-height:232px!important;
  max-height:232px!important;
  padding:6px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  scroll-snap-type:y proximity;
  scrollbar-width:thin;
  scrollbar-color:rgba(232,199,107,.45) rgba(255,255,255,.035);
}
body.v101-ui .v101-roster-scroll::-webkit-scrollbar{width:4px}
body.v101-ui .v101-roster-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.03)}
body.v101-ui .v101-roster-scroll::-webkit-scrollbar-thumb{border-radius:9px;background:rgba(232,199,107,.45)}

/* Compact participant card: portrait at the left, name and resources at the right, effects below. */
body.v101-ui .v101-unit-card{
  position:relative!important;
  flex:0 0 110px!important;
  display:grid!important;
  grid-template-columns:43px minmax(0,1fr)!important;
  grid-template-rows:72px 28px!important;
  align-items:stretch!important;
  gap:4px 6px!important;
  width:100%!important;
  min-width:0!important;
  min-height:110px!important;
  height:110px!important;
  padding:5px!important;
  border-radius:12px!important;
  overflow:hidden!important;
  scroll-snap-align:start;
  transform:none!important;
  background:linear-gradient(145deg,rgba(30,42,46,.96),rgba(15,23,27,.97))!important;
}
body.v101-ui .v101-player-card{border:1px solid rgba(99,215,189,.20)!important}
body.v101-ui .v101-player-card.self{border-color:rgba(99,215,189,.60)!important;box-shadow:inset 0 0 0 1px rgba(99,215,189,.10)}
body.v101-ui .v101-monster-card{border:1px solid rgba(236,114,104,.22)!important;cursor:pointer}
body.v101-ui .v101-monster-card.selected-target{border-color:#e8c76b!important;box-shadow:inset 0 0 0 1px rgba(232,199,107,.30),0 0 14px rgba(232,199,107,.08)!important}
body.v101-ui .v101-unit-card.acted{opacity:.72}
body.v101-ui .v101-unit-art{
  grid-column:1!important;
  grid-row:1!important;
  align-self:center!important;
  display:grid!important;
  place-items:center!important;
  width:43px!important;
  height:63px!important;
  min-width:43px!important;
  min-height:63px!important;
  max-width:43px!important;
  max-height:63px!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:10px!important;
  background:radial-gradient(circle at 50% 36%,rgba(255,255,255,.08),rgba(6,11,14,.7))!important;
  overflow:hidden!important;
}
body.v101-ui .v101-unit-art>*,
body.v101-ui .v101-unit-art picture,
body.v101-ui .v101-unit-art span{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
}
body.v101-ui .v101-unit-art img,
body.v101-ui .v101-unit-art .battle-monster-art,
body.v101-ui .v101-unit-art .class-inline-image,
body.v101-ui .v101-unit-art .class-asset-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
body.v101-ui .v101-unit-body{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
  align-content:start!important;
  gap:3px!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
}
body.v101-ui .v101-unit-name{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  min-width:0!important;
  min-height:20px!important;
  text-align:center!important;
}
body.v101-ui .v101-unit-name h2,
body.v101-ui .v101-unit-name h3{
  flex:1 1 auto;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  color:#edf2ef!important;
  font-family:inherit!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1.05!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.v101-ui .v101-unit-name h3 em{
  margin-left:3px!important;
  padding:1px 3px!important;
  font-size:5px!important;
}
body.v101-ui .v101-player-state,
body.v101-ui .v101-unit-info{
  flex:0 0 20px!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:7px!important;
  background:rgba(7,13,16,.65)!important;
  color:#aebbb5!important;
  overflow:hidden!important;
}
body.v101-ui .v101-player-state b{display:none!important}
body.v101-ui .v101-player-state span,
body.v101-ui .v101-unit-info>*{width:11px!important;height:11px!important;font-size:10px!important}
body.v101-ui .v101-rank-line{
  min-width:0;
  overflow:hidden;
  color:#df8d86;
  font-size:5.5px;
  font-weight:950;
  letter-spacing:.08em;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.v101-ui .v101-unit-bars,
body.v101-ui .v101-resource{
  display:grid!important;
  align-self:end!important;
  gap:5px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body.v101-ui .v101-unit-bars .v79-stat-row,
body.v101-ui .v101-resource{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:2px!important;
  min-width:0!important;
  font-size:6.5px!important;
}
body.v101-ui .v101-unit-bars .v79-stat-row>span,
body.v101-ui .v101-resource>span{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:3px!important;
  min-width:0!important;
  overflow:hidden!important;
  font-size:6.5px!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.v101-ui .v101-unit-bars .v79-stat-row>div,
body.v101-ui .v101-resource>div{
  width:100%!important;
  height:5px!important;
  margin:0!important;
  border-radius:9px!important;
  background:#263238!important;
  overflow:hidden!important;
}
body.v101-ui .v101-unit-effects{
  grid-column:1 / -1!important;
  grid-row:2!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
  min-height:28px!important;
  max-height:28px!important;
  margin:0!important;
  padding:3px!important;
  border-top:1px solid rgba(255,255,255,.055)!important;
  overflow:hidden!important;
}
body.v101-ui .v101-unit-effects .v57-player-effect,
body.v101-ui .v101-unit-effects .v79-status-chip{
  flex:1 1 0!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:20px!important;
  height:20px!important;
  margin:0!important;
  padding:2px 4px!important;
  border-radius:6px!important;
  overflow:hidden!important;
  font-size:5.8px!important;
  line-height:1!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.v101-ui .v101-unit-effects .empty,
body.v101-ui .v101-unit-effects .v79-no-status{flex:1;color:#63716b;font-size:6px;text-align:center;white-space:nowrap}
body.v101-ui .v101-unit-effects .v101-effect-more{
  flex:0 0 25px!important;
  width:25px!important;
  min-width:25px!important;
  border-color:rgba(232,199,107,.32)!important;
  color:#efd886!important;
  font-size:8px!important;
  font-weight:950!important;
}
body.v101-ui .v101-unit-actions{
  position:absolute!important;
  z-index:4!important;
  top:46px!important;
  left:32px!important;
  display:block!important;
  width:23px!important;
  height:23px!important;
  margin:0!important;
}
body.v101-ui .v101-unit-actions>span{display:none}
body.v101-ui .v101-unit-actions button.attack{
  display:grid!important;
  place-items:center!important;
  width:23px!important;
  min-width:23px!important;
  height:23px!important;
  min-height:23px!important;
  padding:0!important;
  border-radius:50%!important;
  box-shadow:0 3px 10px rgba(0,0,0,.38)!important;
}
body.v101-ui .v101-unit-actions button.attack span{display:none!important}
body.v101-ui .v101-unit-actions button.attack>*{width:12px!important;height:12px!important}
body.v101-ui .v101-unit-card .v79-target-label{
  top:3px!important;
  left:3px!important;
  padding:2px 4px!important;
  border-radius:5px!important;
  font-size:5px!important;
}

/* Compact log below both lists. New entries stay at the bottom via battle.js scroll anchoring. */
body.v101-ui .v101-battle-log{border-radius:14px!important;overflow:hidden!important}
body.v101-ui .v101-battle-log .v79-log-head{min-height:38px!important;height:38px!important;padding:6px 9px!important}
body.v101-ui .v101-battle-log .v79-log-head h3{font-size:10px!important}
body.v101-ui .v101-battle-log .v79-log-head small{font-size:6px!important}
body.v101-ui .v101-battle-log .v79-log-head button{min-height:25px!important;height:25px!important;padding:3px 7px!important;font-size:7px!important}
body.v101-ui .v101-battle-log .battle-log-scroll{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  min-height:82px!important;
  max-height:148px!important;
  padding:6px!important;
  overflow-y:auto!important;
  scrollbar-width:thin;
}
body.v101-ui .v101-battle-log.collapsed .battle-log-scroll{display:none!important}
body.v101-ui .v101-battle-log .v79-log-entry{
  grid-template-columns:17px minmax(0,1fr)!important;
  gap:5px!important;
  padding:4px 6px!important;
  border-radius:7px!important;
}
body.v101-ui .v101-battle-log .v79-log-entry>span>*{width:11px!important;height:11px!important}
body.v101-ui .v101-battle-log .v79-log-entry p{font-size:7.5px!important;line-height:1.25!important}

/* Full, live player effect sheet. It is rebuilt on every battle state render. */
body.v101-ui .v101-player-overlay-card{width:min(520px,100%)!important}
body.v101-ui .v101-player-full-card{display:grid;gap:12px;margin-bottom:12px;padding:12px;border:1px solid rgba(99,215,189,.2);border-radius:14px;background:#111b20}
body.v101-ui .v101-player-full-head{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px}
body.v101-ui .v101-player-full-head .v101-unit-art{grid-column:auto!important;grid-row:auto!important;width:72px!important;height:82px!important;max-width:72px!important;max-height:82px!important}
body.v101-ui .v101-player-full-head h2{margin:0;font-size:20px}
body.v101-ui .v101-player-full-head p{margin:5px 0 0;color:#91a09a;font-size:10px}
body.v101-ui .v101-full-bars{display:grid;gap:8px}
body.v101-ui .v101-full-bars .v79-stat-row{grid-template-columns:88px minmax(0,1fr)!important;font-size:10px!important}
body.v101-ui .v101-full-bars .v79-stat-row>div{height:8px!important}
body.v101-ui .v101-full-effects h4{margin:0 0 8px;font-size:12px}
body.v101-ui .v101-effect-list{display:grid;gap:6px}
body.v101-ui .v101-effect-row{display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;width:100%!important;min-height:44px!important;padding:8px 10px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:10px!important;background:#172126!important;color:#d7dfdb!important;text-align:left!important}
body.v101-ui .v101-effect-row b{font-size:9px}
body.v101-ui .v101-effect-row span{color:#91a09a;font-size:8px;line-height:1.35}
body.v101-ui .v101-no-effects{margin:0;padding:12px;border:1px dashed rgba(255,255,255,.1);border-radius:10px;color:#83918b;font-size:9px;text-align:center}

/* Monster modal uses the same proportions, but expands enough to show all effects. */
body.v101-ui .v79-overlay-card .v101-monster-card.modal-card{
  height:auto!important;
  min-height:140px!important;
  grid-template-columns:100px minmax(0,1fr)!important;
  grid-template-rows:100px auto!important;
  padding:10px!important;
}
body.v101-ui .v79-overlay-card .v101-monster-card.modal-card .v101-unit-art{width:100px!important;height:100px!important;max-width:100px!important;max-height:100px!important}
body.v101-ui .v79-overlay-card .v101-monster-card.modal-card .v101-unit-name h2{font-size:16px!important}
body.v101-ui .v79-overlay-card .v101-monster-card.modal-card .v101-unit-effects{flex-wrap:wrap!important;max-height:none!important;height:auto!important;min-height:34px!important}
body.v101-ui .v79-overlay-card .v101-monster-card.modal-card .v101-unit-effects .v79-status-chip{flex:0 1 auto!important;width:auto!important;max-width:100%!important;font-size:8px!important}

/* Rebuilt mini ability cards. */
body.v101-ui .v79-left-drawer .v17-skill-scroll{padding:10px!important}
body.v101-ui .v79-left-drawer .v59-skill-slot-grid,
body.v101-ui .v79-left-drawer .v58-skill-slot-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
}
body.v101-ui .v101-skill-card{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:82px!important;
  height:82px!important;
  padding:0!important;
  border:1px solid rgba(232,199,107,.18)!important;
  border-radius:12px!important;
  background:linear-gradient(160deg,#1b2529,#0e1519)!important;
  overflow:hidden!important;
}
body.v101-ui .v101-skill-card.disabled{opacity:.48!important;filter:saturate(.65)}
body.v101-ui .v101-skill-main{
  position:relative!important;
  display:grid!important;
  grid-template-rows:50px minmax(0,1fr)!important;
  place-items:center!important;
  gap:2px!important;
  width:100%!important;
  height:100%!important;
  min-height:82px!important;
  padding:5px 4px 17px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:hidden!important;
}
body.v101-ui .v101-skill-art{
  display:grid!important;
  place-items:center!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:10px!important;
  background:radial-gradient(circle,rgba(232,199,107,.11),rgba(0,0,0,.18))!important;
  overflow:hidden!important;
}
body.v101-ui .v101-skill-art>*,
body.v101-ui .v101-skill-art img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;transform:none!important}
body.v101-ui .v101-skill-name{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  color:#dbe2de!important;
  font-size:6.5px!important;
  line-height:1.05!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.v101-ui .v101-skill-state{
  position:absolute!important;
  right:4px!important;
  bottom:3px!important;
  left:4px!important;
  display:block!important;
  overflow:hidden!important;
  color:#d8c27e!important;
  font-size:5.5px!important;
  font-style:normal!important;
  font-weight:900!important;
  text-align:left!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.v101-ui .v101-skill-info{
  position:absolute!important;
  z-index:4!important;
  right:3px!important;
  bottom:2px!important;
  display:grid!important;
  place-items:center!important;
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  padding:0!important;
  border-radius:50%!important;
  background:rgba(7,12,15,.88)!important;
}
body.v101-ui .v101-skill-info>*{width:10px!important;height:10px!important}
body.v101-ui .v101-cd-badge{
  position:absolute!important;
  z-index:5!important;
  top:3px!important;
  right:3px!important;
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  padding:0!important;
  border:1px solid rgba(236,114,104,.5)!important;
  border-radius:50%!important;
  background:#30191a!important;
  color:#ffaaa1!important;
  font-size:9px!important;
  font-weight:950!important;
}
body.v101-ui .v101-skill-card .v82-cooldown-cover{position:absolute!important;inset:0!important;border-radius:inherit!important;background:rgba(4,7,9,.44)!important;pointer-events:none!important}

/* Keep side controls reachable without stealing the two-column battle area. */
body.v101-ui .v79-edge-tab{width:23px!important;height:78px!important}
body.v101-ui .v80-support-tab,
body.v101-ui .v81-support-tab{max-width:150px!important}

@media (max-width:420px){
  body.v101-ui .v79-battle-header{padding-right:9px!important;padding-left:9px!important}
  body.v101-ui .v101-battle{padding-right:25px!important;padding-left:25px!important}
  body.v101-ui .v101-combat-board{gap:4px}
  body.v101-ui .v101-roster-scroll{height:224px!important;min-height:224px!important;max-height:224px!important;padding:4px!important;gap:4px!important}
  body.v101-ui .v101-unit-card{flex-basis:106px!important;height:106px!important;min-height:106px!important;grid-template-columns:39px minmax(0,1fr)!important;grid-template-rows:69px 27px!important;gap:3px 4px!important;padding:4px!important}
  body.v101-ui .v101-unit-art{width:39px!important;height:59px!important;min-width:39px!important;min-height:59px!important;max-width:39px!important;max-height:59px!important}
  body.v101-ui .v101-unit-name h2,body.v101-ui .v101-unit-name h3{font-size:8px!important}
  body.v101-ui .v101-unit-effects .v57-player-effect,body.v101-ui .v101-unit-effects .v79-status-chip{font-size:5.2px!important;padding-right:2px!important;padding-left:2px!important}
  body.v101-ui .v101-unit-actions{left:29px!important;top:42px!important}
  body.v101-ui .v101-player-full-head{grid-template-columns:60px minmax(0,1fr)}
  body.v101-ui .v101-player-full-head .v101-unit-art{width:60px!important;height:70px!important;max-width:60px!important;max-height:70px!important}
  body.v101-ui .v101-effect-row{grid-template-columns:1fr!important;gap:3px!important}
  body.v101-ui .v101-skill-name{display:none!important}
  body.v101-ui .v101-skill-main{grid-template-rows:1fr!important;padding-bottom:17px!important}
}

@media (min-width:761px){
  body.v101-ui .v101-battle{padding-right:42px!important;padding-left:42px!important;gap:11px!important}
  body.v101-ui .v101-combat-board{gap:11px}
  body.v101-ui .v101-roster{grid-template-rows:44px minmax(0,1fr)!important}
  body.v101-ui .v101-roster-head{height:44px!important;min-height:44px!important;padding:8px 12px!important}
  body.v101-ui .v101-roster-head h2{font-size:14px!important}
  body.v101-ui .v101-roster-head span{font-size:8px!important}
  body.v101-ui .v101-roster-scroll{height:294px!important;min-height:294px!important;max-height:294px!important;gap:9px!important;padding:9px!important}
  body.v101-ui .v101-unit-card{flex-basis:138px!important;height:138px!important;min-height:138px!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:94px 31px!important;gap:5px 10px!important;padding:7px!important}
  body.v101-ui .v101-unit-art{width:72px!important;height:86px!important;min-width:72px!important;min-height:86px!important;max-width:72px!important;max-height:86px!important}
  body.v101-ui .v101-unit-name h2,body.v101-ui .v101-unit-name h3{font-size:13px!important}
  body.v101-ui .v101-rank-line{font-size:7px}
  body.v101-ui .v101-unit-bars .v79-stat-row,body.v101-ui .v101-resource{font-size:8px!important}
  body.v101-ui .v101-unit-bars .v79-stat-row>span,body.v101-ui .v101-resource>span{font-size:8px!important}
  body.v101-ui .v101-unit-effects .v57-player-effect,body.v101-ui .v101-unit-effects .v79-status-chip{font-size:7px!important}
  body.v101-ui .v101-player-state{flex-basis:27px!important;width:27px!important;min-width:27px!important;max-width:27px!important;height:25px!important;min-height:25px!important}
  body.v101-ui .v101-player-state b{display:none!important}
  body.v101-ui .v101-unit-actions{top:66px!important;left:59px!important;width:28px!important;height:28px!important}
  body.v101-ui .v101-unit-actions button.attack{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important}
  body.v101-ui .v101-battle-log .battle-log-scroll{max-height:190px!important}
  body.v101-ui .v101-battle-log .v79-log-entry p{font-size:9px!important}
  body.v101-ui .v101-skill-card{height:96px!important;min-height:96px!important}
  body.v101-ui .v101-skill-main{height:96px!important;min-height:96px!important;grid-template-rows:61px minmax(0,1fr)!important}
  body.v101-ui .v101-skill-art{width:61px!important;height:61px!important;min-width:61px!important;min-height:61px!important}
  body.v101-ui .v101-skill-name{font-size:8px!important}
}

/* ---- css/v102-combat.css ---- */
/* Aldos RPG v102 — compact readable mobile combat polish. */
body.v102-ui .v101-battle{gap:7px!important;padding-top:6px!important}
body.v102-ui .v101-battle>.v79-turn{order:-10!important;position:relative!important;z-index:8!important;grid-column:1/-1!important;grid-row:auto!important;margin:0!important}
body.v102-ui .v101-combat-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:5px!important}
body.v102-ui .v101-combat-board>.v101-player-roster{grid-column:1!important;grid-row:1!important;display:grid!important;visibility:visible!important;opacity:1!important}
body.v102-ui .v101-combat-board>.v101-monster-roster{grid-column:2!important;grid-row:1!important;display:grid!important;visibility:visible!important;opacity:1!important;z-index:1!important}
body.v102-ui .v101-roster{border-radius:13px!important;box-shadow:0 10px 26px rgba(0,0,0,.22)!important}
body.v102-ui .v101-monster-roster{background:linear-gradient(180deg,rgba(35,24,26,.98),rgba(13,17,20,.98))!important}
body.v102-ui .v101-roster-head{padding:6px 7px!important}
body.v102-ui .v101-roster-head h2{font-size:11px!important}
body.v102-ui .v101-roster-head span{font-size:6.5px!important}
body.v102-ui .v101-unit-card{box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important}
body.v102-ui .v101-unit-name h2,body.v102-ui .v101-unit-name h3{font-size:8.5px!important}
body.v102-ui .v101-unit-bars .v79-stat-row>span,body.v102-ui .v101-resource>span{font-size:6.4px!important}

/* Timer is always the first readable block. */
body.v102-ui .v79-turn{min-height:64px!important;padding:9px 10px 15px!important;border-radius:14px!important;background:linear-gradient(110deg,rgba(24,31,34,.98),rgba(12,17,20,.98))!important;box-shadow:0 9px 24px rgba(0,0,0,.28)!important}
body.v102-ui .v79-turn-copy b{font-size:14px!important;line-height:1.05!important}
body.v102-ui .v79-turn-copy p{max-width:100%!important;font-size:8px!important;line-height:1.25!important}
body.v102-ui .v79-turn-meta{gap:5px!important}
body.v102-ui .v79-turn-meta small{display:none!important}
body.v102-ui .v79-turn-meta span{font-size:13px!important}
body.v102-ui .v79-turn-bar{right:10px!important;bottom:6px!important;left:52px!important;height:4px!important}

/* Newest combat event stays at the top; each event is compact and wraps safely. */
body.v102-ui .v101-battle-log{border-radius:13px!important;background:linear-gradient(180deg,rgba(23,30,34,.98),rgba(10,15,18,.98))!important}
body.v102-ui .v101-battle-log .v79-log-head{height:34px!important;min-height:34px!important;padding:5px 7px!important}
body.v102-ui .v101-battle-log .v79-log-head h3{font-size:10px!important}
body.v102-ui .v101-battle-log .v79-log-head small{font-size:6px!important}
body.v102-ui .v101-battle-log .battle-log-scroll{gap:4px!important;min-height:76px!important;max-height:142px!important;padding:5px!important;scroll-behavior:smooth!important}
body.v102-ui .v101-battle-log .v79-log-entry{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:start!important;gap:6px!important;min-height:42px!important;padding:5px 7px!important;border:1px solid rgba(255,255,255,.055)!important;border-left-width:2px!important;border-radius:9px!important;background:linear-gradient(100deg,rgba(255,255,255,.045),rgba(255,255,255,.018))!important;overflow:hidden!important}
body.v102-ui .v101-battle-log .v79-log-entry.damage{border-left-color:#e66f67!important}
body.v102-ui .v101-battle-log .v79-log-entry.heal{border-left-color:#70d98d!important}
body.v102-ui .v101-battle-log .v79-log-entry.skill{border-left-color:#63d7bd!important}
body.v102-ui .v101-battle-log .v79-log-entry.reward{border-left-color:#e8c76b!important}
body.v102-ui .v102-log-icon{display:grid!important;place-items:center!important;width:26px!important;height:26px!important;border:1px solid rgba(232,199,107,.14)!important;border-radius:8px!important;background:rgba(4,10,13,.55)!important}
body.v102-ui .v102-log-icon>*{width:14px!important;height:14px!important}
body.v102-ui .v102-log-copy{min-width:0!important}
body.v102-ui .v102-log-copy>small{display:block!important;margin:0 0 2px!important;color:#71817a!important;font-size:5.5px!important;font-weight:900!important;letter-spacing:.09em!important}
body.v102-ui .v101-battle-log .v79-log-entry p{display:block!important;min-width:0!important;margin:0!important;overflow:visible!important;color:#b8c2bd!important;font-size:7.4px!important;line-height:1.34!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
body.v102-ui .v101-battle-log mark{display:inline-block!important;margin:0 1px!important;padding:1px 3px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:5px!important;background:rgba(255,255,255,.055)!important;color:#e7ece9!important;font:inherit!important;line-height:1.15!important}
body.v102-ui .v101-battle-log mark.ability{border-color:rgba(99,215,189,.28)!important;color:#77dfc8!important}
body.v102-ui .v101-battle-log mark.number{border-color:rgba(236,114,104,.28)!important;color:#ff8f85!important}
body.v102-ui .v101-battle-log mark.effect{border-color:rgba(180,123,224,.28)!important;color:#d6a4f4!important}
body.v102-ui .v101-battle-log mark.resource{border-color:rgba(103,201,231,.28)!important;color:#80d7ed!important}

/* Effect chips: readable gradient, subtle shine, no text collisions. */
body.v102-ui .v101-unit-effects{gap:3px!important;padding:3px!important;background:linear-gradient(90deg,rgba(0,0,0,.08),rgba(255,255,255,.025),rgba(0,0,0,.08))!important}
body.v102-ui .v101-unit-effects .v57-player-effect,body.v102-ui .v101-unit-effects .v79-status-chip{position:relative!important;border:1px solid rgba(255,255,255,.1)!important;background:linear-gradient(110deg,rgba(49,63,68,.8),rgba(20,29,34,.86))!important;color:#bdc9c4!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important}
body.v102-ui .v101-unit-effects .buff,body.v102-ui .v101-unit-effects .target{border-color:rgba(99,215,189,.28)!important;background:linear-gradient(110deg,rgba(25,77,70,.7),rgba(17,38,38,.86))!important;color:#8fe7d0!important}
body.v102-ui .v101-unit-effects .debuff,body.v102-ui .v101-unit-effects .poison,body.v102-ui .v101-unit-effects .stun{border-color:rgba(176,103,210,.3)!important;background:linear-gradient(110deg,rgba(70,35,82,.72),rgba(34,23,42,.86))!important;color:#daa7ef!important}
body.v102-ui .v101-unit-effects .v57-player-effect::after,body.v102-ui .v101-unit-effects .v79-status-chip::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.09) 48%,transparent 72%);transform:translateX(-115%);animation:v102-effect-shine 5.6s ease-in-out infinite;pointer-events:none}
@keyframes v102-effect-shine{0%,72%,100%{transform:translateX(-115%)}82%{transform:translateX(115%)}}

/* Entire abilities drawer rebuilt around clear cards and a selected-skill detail block. */
body.v102-ui .v102-skill-drawer{width:min(91vw,430px)!important;max-width:430px!important;background:linear-gradient(180deg,#0b191d,#071216 62%,#081317)!important;border-right:1px solid rgba(232,199,107,.28)!important;box-shadow:22px 0 45px rgba(0,0,0,.48)!important}
body.v102-ui .v102-skill-head{min-height:84px!important;padding:14px 14px 12px!important;border-bottom:1px solid rgba(232,199,107,.13)!important}
body.v102-ui .v102-skill-head b{font-size:20px!important}
body.v102-ui .v102-skill-head span{font-size:9px!important}
body.v102-ui .v102-skill-scroll{display:grid!important;align-content:start!important;gap:11px!important;padding:11px 12px max(22px,env(safe-area-inset-bottom))!important}
body.v102-ui .v102-skill-section{display:grid!important;gap:7px!important}
body.v102-ui .v102-skill-section .v62-drawer-section-title{min-height:30px!important;margin:0!important;padding:0 2px 5px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
body.v102-ui .v102-skill-section .v62-drawer-section-title h3{font-size:12px!important;letter-spacing:.04em!important}
body.v102-ui .v102-skill-drawer .v102-skill-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
body.v102-ui .v102-skill-drawer .v102-skill-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.v102-ui .v102-skill-card{height:116px!important;min-height:116px!important;border:1px solid rgba(232,199,107,.22)!important;border-radius:13px!important;background:linear-gradient(155deg,rgba(24,38,42,.98),rgba(9,17,21,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 6px 16px rgba(0,0,0,.16)!important;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease!important}
body.v102-ui .v102-skill-card.selected{border-color:#63d7bd!important;box-shadow:inset 0 0 0 1px rgba(99,215,189,.2),0 0 18px rgba(99,215,189,.14)!important;transform:translateY(-1px)!important}
body.v102-ui .v102-skill-card.await-target:not(.disabled){border-style:dashed!important}
body.v102-ui .v102-skill-card.disabled{opacity:.48!important}
body.v102-ui .v102-skill-card .v101-skill-main{grid-template-rows:68px auto!important;gap:3px!important;height:116px!important;min-height:116px!important;padding:7px 6px 20px!important}
body.v102-ui .v102-skill-card .v101-skill-art{width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;border-radius:11px!important;background:radial-gradient(circle at 50% 42%,rgba(99,215,189,.12),rgba(0,0,0,.24))!important}
body.v102-ui .v102-skill-card .v101-skill-name{display:-webkit-box!important;width:100%!important;min-height:24px!important;margin:0!important;overflow:hidden!important;color:#eef2ef!important;font-size:9px!important;font-weight:800!important;line-height:1.18!important;text-align:center!important;white-space:normal!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
body.v102-ui .v102-skill-card .v101-skill-state{right:auto!important;bottom:5px!important;left:7px!important;max-width:calc(100% - 31px)!important;color:#e4cd83!important;font-size:7px!important}
body.v102-ui .v102-skill-card .v101-skill-info{right:5px!important;bottom:4px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important}
body.v102-ui .v102-skill-card .v101-cd-badge{top:5px!important;right:5px!important;width:24px!important;height:24px!important;border-radius:8px!important;font-size:9px!important}
body.v102-ui .v102-skill-detail{display:grid!important;gap:9px!important;padding:11px!important;border:1px solid rgba(232,199,107,.28)!important;border-radius:14px!important;background:linear-gradient(150deg,rgba(15,32,35,.98),rgba(8,18,22,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important}
body.v102-ui .v102-skill-detail-head{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:10px!important}
body.v102-ui .v102-skill-detail-head>span{display:grid!important;place-items:center!important;width:72px!important;height:72px!important;border:1px solid rgba(99,215,189,.24)!important;border-radius:12px!important;background:radial-gradient(circle,rgba(99,215,189,.13),rgba(0,0,0,.22))!important;overflow:hidden!important}
body.v102-ui .v102-skill-detail-head>span>*{width:100%!important;height:100%!important;object-fit:contain!important}
body.v102-ui .v102-skill-detail-head small{color:#63d7bd!important;font-size:7px!important;font-weight:900!important;letter-spacing:.08em!important}
body.v102-ui .v102-skill-detail-head h4{margin:3px 0 7px!important;color:#f0f3f1!important;font:700 17px/1.08 Georgia,serif!important}
body.v102-ui .v102-skill-detail-head p{display:flex!important;gap:7px!important;margin:0!important;font-size:8px!important}
body.v102-ui .v102-skill-detail-head p b{color:#79d6ee!important}
body.v102-ui .v102-skill-detail-head p em{color:#9ba7a2!important;font-style:normal!important}
body.v102-ui .v102-skill-description{margin:0!important;color:#b9c4bf!important;font-size:10px!important;line-height:1.4!important}
body.v102-ui .v102-skill-feature{padding:8px 9px!important;border:1px solid rgba(99,215,189,.16)!important;border-radius:9px!important;background:rgba(20,77,66,.22)!important;color:#8bdcc7!important;font-size:9px!important;line-height:1.35!important}
body.v102-ui .v102-skill-target{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding-top:7px!important;border-top:1px solid rgba(255,255,255,.07)!important;font-size:8px!important}
body.v102-ui .v102-skill-target span{color:#71807a!important}
body.v102-ui .v102-skill-target b{min-width:0!important;overflow:hidden!important;color:#d9dfdc!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.v102-ui .v102-skill-cast{min-height:44px!important;border:1px solid rgba(232,199,107,.5)!important;border-radius:12px!important;background:linear-gradient(180deg,#143f3f,#0c292d)!important;color:#f1eee2!important;font:700 14px Georgia,serif!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 7px 16px rgba(0,0,0,.2)!important}
body.v102-ui .v102-skill-cast:disabled{border-color:rgba(255,255,255,.1)!important;background:#182126!important;color:#69746f!important;box-shadow:none!important}
body.v102-ui .v102-skill-empty{display:grid!important;gap:5px!important;padding:14px!important;border:1px dashed rgba(255,255,255,.13)!important;border-radius:12px!important;text-align:center!important}
body.v102-ui .v102-skill-empty b{font-size:12px!important}
body.v102-ui .v102-skill-empty span{color:#7f8d87!important;font-size:9px!important}

/* Compact cast animation for ally and enemy abilities. */
.v102-cast-fx{position:fixed;z-index:10050;top:max(72px,calc(env(safe-area-inset-top) + 54px));right:18px;left:18px;display:grid;place-items:center;pointer-events:none;opacity:0;transform:translateY(-14px) scale(.96);transition:opacity .18s ease,transform .2s cubic-bezier(.2,.9,.25,1)}
.v102-cast-fx.show{opacity:1;transform:translateY(0) scale(1)}
.v102-cast-fx.leave{opacity:0;transform:translateY(-10px) scale(.98)}
.v102-cast-card{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:9px;width:min(360px,100%);min-height:58px;padding:6px 12px 6px 7px;border:1px solid rgba(99,215,189,.55);border-radius:14px;background:linear-gradient(110deg,rgba(8,24,27,.98),rgba(12,36,38,.98));box-shadow:0 14px 36px rgba(0,0,0,.48),0 0 24px rgba(99,215,189,.12);overflow:hidden}
.v102-cast-fx.enemy .v102-cast-card{border-color:rgba(236,114,104,.58);background:linear-gradient(110deg,rgba(37,16,18,.98),rgba(26,16,20,.98));box-shadow:0 14px 36px rgba(0,0,0,.48),0 0 24px rgba(236,114,104,.12)}
.v102-cast-art{display:grid;place-items:center;width:46px;height:46px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(0,0,0,.24);overflow:hidden}
.v102-cast-art>*{width:100%!important;height:100%!important;object-fit:contain!important}
.v102-cast-copy{display:grid;gap:1px;min-width:0}
.v102-cast-copy small{color:#64d8c0;font-size:6px;font-weight:900;letter-spacing:.12em}
.v102-cast-fx.enemy .v102-cast-copy small{color:#f0847b}
.v102-cast-copy b{overflow:hidden;color:#f1f4f2;font:700 15px/1.1 Georgia,serif;text-overflow:ellipsis;white-space:nowrap}
.v102-cast-copy em{overflow:hidden;color:#93a09a;font-size:7px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.v102-cast-streak{position:absolute;width:min(430px,96vw);height:2px;background:linear-gradient(90deg,transparent,#63d7bd,transparent);filter:drop-shadow(0 0 6px #63d7bd);transform:scaleX(.15);animation:v102-cast-streak .72s ease-out both}
.v102-cast-fx.enemy .v102-cast-streak{background:linear-gradient(90deg,transparent,#ec7268,transparent);filter:drop-shadow(0 0 6px #ec7268)}
@keyframes v102-cast-streak{0%{opacity:0;transform:scaleX(.1)}35%{opacity:1;transform:scaleX(1)}100%{opacity:0;transform:scaleX(.35)}}
.v102-cast-source{animation:v102-source-pulse .65s ease-out!important}.v102-cast-target{animation:v102-target-hit .7s ease-out!important}
@keyframes v102-source-pulse{0%,100%{filter:none}42%{filter:brightness(1.35) drop-shadow(0 0 10px rgba(99,215,189,.55))}}
@keyframes v102-target-hit{0%,100%{transform:none}30%{transform:translateX(-2px);filter:brightness(1.35)}55%{transform:translateX(2px)}}

@media (max-width:420px){
  body.v102-ui .v101-battle{padding-right:24px!important;padding-left:24px!important}
  body.v102-ui .v101-combat-board{gap:4px!important}
  body.v102-ui .v101-battle-log .v79-log-entry p{font-size:7.2px!important}
  body.v102-ui .v102-skill-drawer{width:92vw!important}
  body.v102-ui .v102-skill-scroll{padding-right:9px!important;padding-left:9px!important}
  body.v102-ui .v102-skill-drawer .v102-skill-grid{gap:5px!important}
  body.v102-ui .v102-skill-card{height:108px!important;min-height:108px!important}
  body.v102-ui .v102-skill-card .v101-skill-main{height:108px!important;min-height:108px!important;grid-template-rows:62px auto!important;padding-right:4px!important;padding-left:4px!important}
  body.v102-ui .v102-skill-card .v101-skill-art{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important}
  body.v102-ui .v102-skill-card .v101-skill-name{font-size:8px!important}
}
@media (min-width:761px){
  body.v102-ui .v102-skill-drawer{width:min(520px,46vw)!important;max-width:520px!important}
  body.v102-ui .v102-skill-drawer .v102-skill-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.v102-ui .v102-skill-card{height:132px!important;min-height:132px!important}
  body.v102-ui .v102-skill-card .v101-skill-main{height:132px!important;min-height:132px!important;grid-template-rows:80px auto!important}
  body.v102-ui .v102-skill-card .v101-skill-art{width:80px!important;height:80px!important;min-width:80px!important;min-height:80px!important}
  body.v102-ui .v101-battle-log .v79-log-entry p{font-size:9px!important}
}
@media (prefers-reduced-motion:reduce){
  body.v102-ui .v101-unit-effects .v57-player-effect::after,body.v102-ui .v101-unit-effects .v79-status-chip::after,.v102-cast-streak,.v102-cast-source,.v102-cast-target{animation:none!important}
}

/* ---- css/v103-mobile-combat.css ---- */
/* Aldos RPG v103 — phone combat alignment, icon-only skills and cleaner logs. */

/* The old global .party-panel padding shifted the player column below the monster column. */
body.v103-ui .v101-combat-board{align-items:stretch!important}
body.v103-ui .v101-roster{
  align-self:stretch!important;
  padding:0!important;
  margin:0!important;
}
body.v103-ui .v101-player-roster,
body.v103-ui .v101-monster-roster{grid-template-rows:35px minmax(0,1fr)!important}
body.v103-ui .v101-roster-head{
  box-sizing:border-box!important;
  width:100%!important;
  height:35px!important;
  min-height:35px!important;
  margin:0!important;
  padding:6px 7px!important;
}
body.v103-ui .v101-roster-scroll{
  align-content:flex-start!important;
  justify-content:flex-start!important;
  width:100%!important;
  margin:0!important;
  padding:5px!important;
}
body.v103-ui .v101-roster-scroll>.v101-unit-card{
  flex:0 0 110px!important;
  margin:0!important;
}

/* Journal rows are flat readable strips, not framed cards that can escape the panel. */
body.v103-ui .v101-battle-log{overflow:hidden!important}
body.v103-ui .v101-battle-log .battle-log-scroll{
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  padding:4px 5px 6px!important;
  overflow-x:hidden!important;
}
body.v103-ui .v101-battle-log .v79-log-entry{
  position:relative!important;
  box-sizing:border-box!important;
  grid-template-columns:26px minmax(0,1fr)!important;
  width:100%!important;
  max-width:100%!important;
  min-height:39px!important;
  margin:0!important;
  padding:5px 7px 5px 6px!important;
  border:0!important;
  border-left:3px solid rgba(133,151,145,.58)!important;
  border-radius:7px!important;
  background:linear-gradient(90deg,rgba(113,129,124,.10),rgba(255,255,255,.018) 76%,transparent)!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.v103-ui .v101-battle-log .v79-log-entry+.v79-log-entry::before{
  content:"";
  position:absolute;
  top:-2px;
  right:7px;
  left:7px;
  height:1px;
  background:rgba(255,255,255,.045);
}
body.v103-ui .v101-battle-log .v79-log-entry.damage{border-left-color:#ef756d!important;background:linear-gradient(90deg,rgba(239,117,109,.14),rgba(239,117,109,.025) 74%,transparent)!important}
body.v103-ui .v101-battle-log .v79-log-entry.heal{border-left-color:#72dc95!important;background:linear-gradient(90deg,rgba(114,220,149,.13),rgba(114,220,149,.022) 74%,transparent)!important}
body.v103-ui .v101-battle-log .v79-log-entry.skill{border-left-color:#65d9c1!important;background:linear-gradient(90deg,rgba(101,217,193,.14),rgba(101,217,193,.024) 74%,transparent)!important}
body.v103-ui .v101-battle-log .v79-log-entry.reward{border-left-color:#ebca70!important;background:linear-gradient(90deg,rgba(235,202,112,.14),rgba(235,202,112,.024) 74%,transparent)!important}
body.v103-ui .v102-log-icon{
  width:24px!important;
  height:24px!important;
  border:0!important;
  border-radius:50%!important;
  background:rgba(4,10,13,.48)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)!important;
}
body.v103-ui .v102-log-icon>*{width:13px!important;height:13px!important}
body.v103-ui .v102-log-copy{width:100%!important;max-width:100%!important;overflow:hidden!important}
body.v103-ui .v102-log-copy>small{margin-bottom:1px!important;font-size:5.8px!important}
body.v103-ui .v101-battle-log .v79-log-entry p{
  width:100%!important;
  max-width:100%!important;
  color:#c4cdc9!important;
  font-size:8px!important;
  line-height:1.32!important;
  overflow-wrap:anywhere!important;
}
body.v103-ui .v101-battle-log mark{
  margin:0 1px!important;
  padding:0 2px!important;
  border:0!important;
  border-radius:3px!important;
  background:rgba(255,255,255,.055)!important;
  font-weight:800!important;
}

/* Skill grid contains only clean square assets. Name, description and action remain in the detail block below. */
body.v103-ui .v102-skill-drawer .v102-skill-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
body.v103-ui .v102-skill-card.v103-icon-only{
  aspect-ratio:1/1!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  border-radius:13px!important;
  overflow:hidden!important;
}
body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-main{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:7px!important;
  border:0!important;
  overflow:hidden!important;
}
body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-art{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  border:1px solid rgba(99,215,189,.17)!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-art>*,
body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-art img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-name,
body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-state,
body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-info{display:none!important}
body.v103-ui .v102-skill-card.v103-icon-only .v101-cd-badge{
  z-index:4!important;
  top:7px!important;
  right:7px!important;
  width:25px!important;
  height:25px!important;
  border:1px solid rgba(240,211,126,.62)!important;
  border-radius:50%!important;
  background:rgba(9,14,17,.92)!important;
  color:#f0d37e!important;
  font-size:10px!important;
  box-shadow:0 2px 8px rgba(0,0,0,.42)!important;
}
body.v103-ui .v102-skill-card.v103-icon-only .v82-cooldown-cover{
  inset:7px!important;
  border-radius:10px!important;
  background:rgba(3,7,9,.50)!important;
}
body.v103-ui .v102-skill-card.v103-icon-only.selected{
  border-color:#65d9c1!important;
  box-shadow:inset 0 0 0 1px rgba(101,217,193,.24),0 0 18px rgba(101,217,193,.15)!important;
}

/* Give the cast banner enough time to be read without turning it into a blocking modal. */
.v102-cast-fx{transition:opacity .24s ease,transform .28s cubic-bezier(.2,.9,.25,1)!important}
.v102-cast-streak{animation-duration:1.15s!important}
.v102-cast-source{animation-duration:1.15s!important}
.v102-cast-target{animation-duration:1.2s!important}

@media (max-width:420px){
  body.v103-ui .v101-roster-scroll{padding:4px!important}
  body.v103-ui .v101-roster-scroll>.v101-unit-card{flex-basis:106px!important}
  body.v103-ui .v101-battle-log .v79-log-entry p{font-size:7.8px!important}
  body.v103-ui .v102-skill-drawer .v102-skill-grid{gap:7px!important}
  body.v103-ui .v102-skill-card.v103-icon-only .v101-skill-main{padding:6px!important}
}

@media (min-width:761px){
  body.v103-ui .v102-skill-card.v103-icon-only{max-height:150px!important}
  body.v103-ui .v101-battle-log .v79-log-entry p{font-size:9px!important}
}

/* ---- css/v105-mobile-adaptive.css ---- */
/* Aldos RPG v105 — Android safe insets and denser, larger phone combat. */

/* The native wrapper now shrinks the WebView above Android navigation controls.
   These rules also keep browser/PWA safe areas respected. */
body.v105-ui .screen,
body.v105-ui .battle-screen{
  padding-bottom:max(28px,calc(env(safe-area-inset-bottom) + 18px))!important;
}
body.v105-ui .v80-support-tab,
body.v105-ui .v81-support-tab{
  bottom:max(10px,calc(env(safe-area-inset-bottom) + 8px))!important;
  min-height:46px!important;
  padding:9px 20px!important;
  border-radius:14px!important;
}

/* Use the phone width better, but leave enough room for edge tabs. */
body.v105-ui .v101-battle{
  gap:10px!important;
  padding:10px 18px max(34px,calc(env(safe-area-inset-bottom) + 24px))!important;
}
body.v105-ui .v101-combat-board{
  align-items:start!important;
  gap:8px!important;
}
body.v105-ui .v101-roster{
  align-self:start!important;
  grid-template-rows:40px auto!important;
  width:100%!important;
  min-height:0!important;
  border-radius:15px!important;
}
body.v105-ui .v101-roster-head{
  height:40px!important;
  min-height:40px!important;
  padding:8px 9px!important;
}
body.v105-ui .v101-roster-head h2{font-size:12.5px!important}
body.v105-ui .v101-roster-head span{font-size:7.4px!important}

/* Roster height follows its actual cards. No giant empty colored rectangle for one unit. */
body.v105-ui .v101-roster-scroll{
  height:auto!important;
  min-height:136px!important;
  max-height:min(38dvh,320px)!important;
  gap:7px!important;
  padding:7px!important;
  align-content:start!important;
}
body.v105-ui .v101-roster-scroll>.v101-unit-card{
  flex:0 0 124px!important;
}
body.v105-ui .v101-unit-card{
  grid-template-columns:48px minmax(0,1fr)!important;
  grid-template-rows:88px 26px!important;
  gap:4px 7px!important;
  height:124px!important;
  min-height:124px!important;
  padding:6px!important;
  border-radius:13px!important;
}
body.v105-ui .v101-unit-art{
  align-self:start!important;
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:57px!important;
  min-height:57px!important;
  max-height:57px!important;
}
body.v105-ui .v101-unit-name{min-height:22px!important}
body.v105-ui .v101-unit-name h2,
body.v105-ui .v101-unit-name h3{font-size:9.5px!important}
body.v105-ui .v101-rank-line{font-size:6.2px!important}
body.v105-ui .v101-unit-bars .v79-stat-row>span,
body.v105-ui .v101-resource>span{font-size:7.2px!important}
body.v105-ui .v101-unit-bars .v79-stat-row>div,
body.v105-ui .v101-resource>div{height:6px!important}
body.v105-ui .v101-unit-effects{
  min-height:26px!important;
  max-height:26px!important;
}

/* Attack is larger and sits below the portrait instead of covering the monster art. */
body.v105-ui .v101-unit-actions{
  top:68px!important;
  left:15px!important;
  width:32px!important;
  height:32px!important;
}
body.v105-ui .v101-unit-actions button.attack{
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  border:1px solid rgba(232,199,107,.48)!important;
  background:linear-gradient(180deg,rgba(58,47,23,.98),rgba(26,25,20,.98))!important;
  box-shadow:0 4px 12px rgba(0,0,0,.45),0 0 0 2px rgba(7,13,16,.82)!important;
}
body.v105-ui .v101-unit-actions button.attack>*{
  width:18px!important;
  height:18px!important;
}

/* Fill the usable phone height: the journal expands instead of leaving a large dead black area. */
@media (max-width:760px){
  body.v105-ui .v101-battle{
    min-height:calc(100dvh - 64px)!important;
    grid-template-rows:auto auto minmax(190px,1fr)!important;
    align-content:stretch!important;
  }
  body.v105-ui .v101-battle-log{
    display:grid!important;
    grid-template-rows:42px minmax(0,1fr)!important;
    min-height:clamp(190px,32dvh,340px)!important;
    align-self:stretch!important;
  }
  body.v105-ui .v101-battle-log .battle-log-scroll{
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
  }
  body.v105-ui .v101-battle-log.collapsed{
    min-height:42px!important;
    align-self:start!important;
    grid-template-rows:42px!important;
  }
}

/* Turn card and journal are readable at real phone scale. */
body.v105-ui .v79-turn{
  min-height:76px!important;
  padding:11px 12px 17px!important;
}
body.v105-ui .v79-turn-copy b{font-size:15.5px!important}
body.v105-ui .v79-turn-copy p{font-size:8.8px!important}
body.v105-ui .v79-turn-meta span{font-size:14.5px!important}
body.v105-ui .v101-battle-log .v79-log-head{
  min-height:42px!important;
  height:42px!important;
  padding:7px 9px!important;
}
body.v105-ui .v101-battle-log .v79-log-head h3{font-size:11.5px!important}
body.v105-ui .v101-battle-log .v79-log-head small{font-size:6.8px!important}
body.v105-ui .v101-battle-log .battle-log-scroll{
  min-height:142px!important;
  max-height:min(30dvh,250px)!important;
  gap:4px!important;
  padding:6px!important;
}
body.v105-ui .v101-battle-log .v79-log-entry{
  grid-template-columns:30px minmax(0,1fr)!important;
  min-height:46px!important;
  padding:7px 8px!important;
  border-radius:9px!important;
}
body.v105-ui .v102-log-icon{width:27px!important;height:27px!important}
body.v105-ui .v102-log-icon>*{width:15px!important;height:15px!important}
body.v105-ui .v102-log-copy>small{font-size:6.6px!important}
body.v105-ui .v101-battle-log .v79-log-entry p{
  font-size:9.2px!important;
  line-height:1.38!important;
}

/* Larger edge handles without stealing the combat columns. */
body.v105-ui .v79-edge-tab{
  width:28px!important;
  height:92px!important;
}

/* Skill drawer and target picker stay above system navigation and use the full phone. */
body.v105-ui .v102-skill-drawer{
  width:min(96vw,540px)!important;
  max-width:540px!important;
  height:100dvh!important;
  max-height:100dvh!important;
}
body.v105-ui .v102-skill-scroll{
  padding:12px 12px max(34px,calc(env(safe-area-inset-bottom) + 24px))!important;
}
body.v105-ui .v102-skill-detail{padding:13px!important}
body.v105-ui .v102-skill-description{font-size:10.5px!important;line-height:1.48!important}
body.v105-ui .v102-skill-cast{min-height:50px!important;font-size:15px!important}

body.v105-ui .v83-ally-target-backdrop{
  align-items:flex-end!important;
  padding:12px 12px max(18px,calc(env(safe-area-inset-bottom) + 12px))!important;
  overflow-y:auto!important;
}
body.v105-ui .v83-ally-target-dialog{
  width:min(100%,620px)!important;
  max-height:calc(100dvh - 24px - env(safe-area-inset-bottom))!important;
  margin:0 auto!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
body.v105-ui .v79-overlay,
body.v105-ui .v58-overlay{
  padding-bottom:max(18px,calc(env(safe-area-inset-bottom) + 12px))!important;
}

@media (max-width:420px){
  body.v105-ui .v101-battle{padding-right:16px!important;padding-left:16px!important}
  body.v105-ui .v101-combat-board{gap:6px!important}
  body.v105-ui .v101-roster-scroll{
    min-height:130px!important;
    max-height:min(36dvh,286px)!important;
    padding:6px!important;
  }
  body.v105-ui .v101-roster-scroll>.v101-unit-card{flex-basis:120px!important}
  body.v105-ui .v101-unit-card{
    grid-template-columns:45px minmax(0,1fr)!important;
    grid-template-rows:85px 25px!important;
    height:120px!important;
    min-height:120px!important;
    gap:4px 6px!important;
    padding:5px!important;
  }
  body.v105-ui .v101-unit-art{
    width:45px!important;min-width:45px!important;max-width:45px!important;
    height:54px!important;min-height:54px!important;max-height:54px!important;
  }
  body.v105-ui .v101-unit-actions{top:62px!important;left:12px!important}
  body.v105-ui .v101-unit-name h2,
  body.v105-ui .v101-unit-name h3{font-size:8.8px!important}
  body.v105-ui .v101-battle-log .battle-log-scroll{min-height:136px!important;max-height:min(29dvh,225px)!important}
  body.v105-ui .v101-battle-log .v79-log-entry p{font-size:8.8px!important}
  body.v105-ui .v102-skill-drawer{width:96vw!important}
  body.v105-ui .v102-skill-scroll{padding-right:10px!important;padding-left:10px!important}
}

@media (min-width:761px){
  body.v105-ui .v101-battle{padding-right:42px!important;padding-left:42px!important}
  body.v105-ui .v101-roster-scroll{max-height:360px!important}
  body.v105-ui .v101-unit-card{height:142px!important;min-height:142px!important;grid-template-rows:103px 29px!important}
  body.v105-ui .v101-roster-scroll>.v101-unit-card{flex-basis:142px!important}
  body.v105-ui .v101-unit-actions{top:77px!important}
}

/* ---- css/v106-mobile-combat.css ---- */
/* Aldos RPG v106 — mobile-first combat interaction, effect assets, target dialogs and compact skills. */

body.v106-ui{
  --v106-gold:#e7c564;
  --v106-teal:#65d9c4;
  --v106-red:#f06e65;
  --v106-green:#80e878;
  --v106-panel:#0a171b;
}

/* Phone board: equal card heights and predictable bottom safe area. */
body.v106-ui .v101-battle{
  gap:9px!important;
  padding:8px 16px max(72px,calc(env(safe-area-inset-bottom) + 62px))!important;
}
body.v106-ui .v101-combat-board{gap:8px!important;align-items:start!important}
body.v106-ui .v101-roster{
  grid-template-rows:40px auto!important;
  min-height:0!important;
  height:auto!important;
  align-self:start!important;
  border-radius:16px!important;
  box-shadow:0 10px 30px rgba(0,0,0,.28)!important;
}
body.v106-ui .v101-roster-head{
  height:40px!important;
  min-height:40px!important;
  padding:8px 10px!important;
}
body.v106-ui .v101-roster-head h2{font-size:13px!important}
body.v106-ui .v101-roster-head span{font-size:7px!important}
body.v106-ui .v101-roster-scroll{
  height:auto!important;
  min-height:180px!important;
  max-height:min(48dvh,390px)!important;
  padding:7px!important;
  gap:8px!important;
}
body.v106-ui .v101-roster-scroll>.v101-unit-card{flex:0 0 168px!important}
body.v106-ui .v101-unit-card{
  width:100%!important;
  height:168px!important;
  min-height:168px!important;
  max-height:168px!important;
  padding:7px!important;
  border-radius:14px!important;
  overflow:hidden!important;
}

/* Player: portrait and HP/MP share one 126px visual row. */
body.v106-ui .v101-player-card{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  grid-template-rows:126px 34px!important;
  gap:1px 8px!important;
}
body.v106-ui .v101-player-card .v101-unit-art{
  grid-column:1!important;
  grid-row:1!important;
  align-self:stretch!important;
  width:58px!important;
  min-width:58px!important;
  max-width:58px!important;
  height:118px!important;
  min-height:118px!important;
  max-height:118px!important;
  margin:auto 0!important;
  border-color:rgba(231,197,100,.34)!important;
  border-radius:11px!important;
}
body.v106-ui .v101-player-card .v101-unit-body{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-rows:30px minmax(0,1fr)!important;
  align-content:stretch!important;
  gap:8px!important;
  padding:3px 0!important;
}
body.v106-ui .v101-player-card .v101-unit-name{
  min-height:30px!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
body.v106-ui .v101-player-card .v101-unit-name h3{
  font-size:10.5px!important;
  text-align:left!important;
}
body.v106-ui .v101-player-card .v101-unit-name h3 em{
  font-size:6px!important;
  padding:2px 4px!important;
}
body.v106-ui .v101-player-card .v101-unit-bars{
  align-self:stretch!important;
  align-content:center!important;
  gap:11px!important;
}
body.v106-ui .v101-player-card .v79-stat-row{gap:4px!important}
body.v106-ui .v101-player-card .v79-stat-row>span{font-size:8px!important}
body.v106-ui .v101-player-card .v79-stat-row>div{height:7px!important}
body.v106-ui .v101-player-card .v101-player-state{width:22px!important;height:22px!important;min-width:22px!important}

/* Monster: name, centered art, HP and effects use a strict grid. */
body.v106-ui .v101-monster-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:24px 72px 30px 34px!important;
  gap:2px!important;
}
body.v106-ui .v101-monster-card .v101-unit-body{
  grid-column:1!important;
  grid-row:1!important;
  display:block!important;
  padding:0!important;
}
body.v106-ui .v101-monster-card .v101-unit-name{
  height:24px!important;
  min-height:24px!important;
  justify-content:center!important;
}
body.v106-ui .v101-monster-card .v101-unit-name h2{
  font-size:10px!important;
  text-align:center!important;
}
body.v106-ui .v101-monster-card .v101-unit-art{
  grid-column:1!important;
  grid-row:2!important;
  justify-self:center!important;
  align-self:center!important;
  width:92%!important;
  min-width:0!important;
  max-width:118px!important;
  height:72px!important;
  min-height:72px!important;
  max-height:72px!important;
  border:0!important;
  border-radius:10px!important;
  background:radial-gradient(circle at 50% 45%,rgba(236,114,104,.10),rgba(4,9,12,.12) 68%,transparent)!important;
}
body.v106-ui .v101-monster-card .v101-unit-art img{object-fit:contain!important;object-position:center!important}
body.v106-ui .v101-monster-card>.v101-resource{
  grid-column:1!important;
  grid-row:3!important;
  align-self:center!important;
  gap:3px!important;
  padding:0 2px!important;
}
body.v106-ui .v101-monster-card>.v101-resource>span{font-size:8px!important}
body.v106-ui .v101-monster-card>.v101-resource>div{height:7px!important}
body.v106-ui .v101-monster-card.selected-target{
  border-color:rgba(231,197,100,.78)!important;
  box-shadow:inset 0 0 0 1px rgba(231,197,100,.22),0 0 18px rgba(231,197,100,.10)!important;
}
body.v106-ui .v101-unit-card .v79-target-label{display:none!important}
body.v106-ui .v101-monster-card .v101-rank-line,
body.v106-ui .v101-monster-card .v101-unit-info{display:none!important}

/* Icon-only status strip for both sides. */
body.v106-ui .v101-unit-effects{
  grid-column:1/-1!important;
  grid-row:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:100%!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:4px 1px 0!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  background:transparent!important;
  overflow:hidden!important;
}
body.v106-ui .v101-monster-card .v101-unit-effects{grid-row:4!important}
body.v106-ui .v106-effect-asset{
  position:relative!important;
  flex:0 0 26px!important;
  display:grid!important;
  place-items:center!important;
  width:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  height:26px!important;
  min-height:26px!important;
  max-height:26px!important;
  margin:0!important;
  padding:3px!important;
  border:1px solid rgba(231,197,100,.34)!important;
  border-radius:8px!important;
  background:linear-gradient(145deg,rgba(24,35,39,.98),rgba(8,14,18,.98))!important;
  color:#d7dedb!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 4px 10px rgba(0,0,0,.28)!important;
  overflow:visible!important;
}
body.v106-ui .v106-effect-asset>*{width:17px!important;height:17px!important;object-fit:contain!important}
body.v106-ui .v106-effect-asset.positive{
  border-color:rgba(128,232,120,.86)!important;
  box-shadow:inset 0 0 0 1px rgba(128,232,120,.13),0 0 10px rgba(80,222,104,.26)!important;
}
body.v106-ui .v106-effect-asset.negative{
  border-color:rgba(240,110,101,.88)!important;
  box-shadow:inset 0 0 0 1px rgba(240,110,101,.12),0 0 10px rgba(240,80,72,.25)!important;
}
body.v106-ui .v106-effect-asset.neutral{border-color:rgba(231,197,100,.55)!important}
body.v106-ui .v106-effect-asset small{
  position:absolute!important;
  right:-2px!important;
  bottom:-2px!important;
  display:grid!important;
  place-items:center!important;
  min-width:12px!important;
  height:12px!important;
  padding:0 2px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:999px!important;
  background:#10171a!important;
  color:#fff!important;
  font:800 7px/1 Arial,sans-serif!important;
}
body.v106-ui .v106-effect-asset.more{font-size:9px!important;font-weight:900!important;color:var(--v106-gold)!important}
body.v106-ui .v106-effect-asset.more>*{display:none!important}
body.v106-ui .v101-unit-effects .v57-player-effect,
body.v106-ui .v101-unit-effects .v79-status-chip,
body.v106-ui .v101-unit-effects .empty,
body.v106-ui .v101-unit-effects .v79-no-status{display:none!important}

/* Tapped monster: frosted card action with one round asset button. */
body.v106-ui .v106-monster-action-overlay{
  position:absolute!important;
  z-index:8!important;
  top:30px!important;
  right:6px!important;
  bottom:38px!important;
  left:6px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(231,197,100,.24)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(6,15,19,.42),rgba(15,22,25,.58))!important;
  -webkit-backdrop-filter:blur(5px) brightness(.68)!important;
  backdrop-filter:blur(5px) brightness(.68)!important;
  animation:v106-overlay-in .18s ease-out both;
}
body.v106-ui .v106-round-attack{
  display:grid!important;
  place-items:center!important;
  width:58px!important;
  min-width:58px!important;
  height:58px!important;
  min-height:58px!important;
  padding:10px!important;
  border:1px solid rgba(231,197,100,.88)!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 42% 35%,rgba(86,71,35,.98),rgba(18,22,23,.99) 68%)!important;
  box-shadow:0 11px 26px rgba(0,0,0,.55),0 0 0 4px rgba(3,10,13,.72),0 0 22px rgba(231,197,100,.22)!important;
}
body.v106-ui .v106-round-attack>*{width:38px!important;height:38px!important;object-fit:contain!important}
body.v106-ui .v106-round-attack:active{transform:scale(.94)!important}
@keyframes v106-overlay-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}

/* Logs: spaced rows with metadata and no collisions. */
body.v106-ui .v101-battle-log{
  min-height:220px!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,rgba(14,24,28,.98),rgba(7,13,17,.98))!important;
}
body.v106-ui .v101-battle-log .v79-log-head{
  min-height:48px!important;
  height:48px!important;
  padding:8px 11px!important;
}
body.v106-ui .v101-battle-log .v79-log-head h3{font-size:13px!important}
body.v106-ui .v101-battle-log .v79-log-head small{font-size:7px!important}
body.v106-ui .v101-battle-log .battle-log-scroll{
  min-height:164px!important;
  max-height:min(34dvh,310px)!important;
  gap:7px!important;
  padding:8px!important;
}
body.v106-ui .v101-battle-log .v106-log-entry{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-height:58px!important;
  padding:8px 10px!important;
  border:1px solid rgba(255,255,255,.06)!important;
  border-left:2px solid rgba(255,255,255,.14)!important;
  border-radius:11px!important;
  background:linear-gradient(105deg,rgba(255,255,255,.045),rgba(255,255,255,.015))!important;
  overflow:hidden!important;
}
body.v106-ui .v101-battle-log .v106-log-entry.damage{border-left-color:var(--v106-red)!important}
body.v106-ui .v101-battle-log .v106-log-entry.heal{border-left-color:var(--v106-green)!important}
body.v106-ui .v101-battle-log .v106-log-entry.skill{border-left-color:var(--v106-teal)!important}
body.v106-ui .v101-battle-log .v106-log-entry.reward{border-left-color:var(--v106-gold)!important}
body.v106-ui .v101-battle-log .v102-log-icon{width:32px!important;height:32px!important;border-radius:50%!important}
body.v106-ui .v101-battle-log .v102-log-icon>*{width:18px!important;height:18px!important}
body.v106-ui .v106-log-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:4px!important}
body.v106-ui .v106-log-meta small{font-size:7px!important;font-weight:900!important;letter-spacing:.09em!important}
body.v106-ui .v106-log-meta time{color:#73817b!important;font-size:6.5px!important;white-space:nowrap!important}
body.v106-ui .v101-battle-log .v106-log-entry p{
  margin:0!important;
  color:#c8d0cc!important;
  font-size:9.5px!important;
  line-height:1.42!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Skills drawer: about two thirds of the screen, smaller tiles, collapsible sections. */
body.v106-ui .v102-skill-drawer{
  width:66.666vw!important;
  min-width:min(248px,92vw)!important;
  max-width:520px!important;
  height:100dvh!important;
  max-height:100dvh!important;
  border-right:1px solid rgba(231,197,100,.42)!important;
  background:linear-gradient(180deg,#09191d,#071317 58%,#081519)!important;
  box-shadow:22px 0 48px rgba(0,0,0,.58)!important;
}
body.v106-ui .v102-skill-head{min-height:76px!important;padding:12px 13px 10px!important}
body.v106-ui .v102-skill-head b{font:700 19px/1 Georgia,serif!important}
body.v106-ui .v102-skill-head span{font-size:7.5px!important}
body.v106-ui .v102-skill-scroll{
  gap:10px!important;
  padding:10px 10px max(78px,calc(env(safe-area-inset-bottom) + 68px))!important;
}
body.v106-ui .v102-skill-drawer .v102-skill-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
}
body.v106-ui .v102-skill-card.v103-icon-only{
  width:100%!important;
  max-width:78px!important;
  justify-self:center!important;
  border-radius:11px!important;
}
body.v106-ui .v102-skill-card.v103-icon-only .v101-skill-main{padding:5px!important}
body.v106-ui .v102-skill-card.v103-icon-only .v101-skill-art{border-radius:8px!important}
body.v106-ui .v106-skill-section-head,
body.v106-ui .v106-ready-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 24px!important;
  align-items:center!important;
  gap:6px!important;
  width:100%!important;
  min-height:32px!important;
  margin:0!important;
  padding:0 2px 6px!important;
  border:0!important;
  border-bottom:1px solid rgba(231,197,100,.12)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
}
body.v106-ui .v106-ready-title{grid-template-columns:minmax(0,1fr) auto!important}
body.v106-ui .v106-skill-section-head h3,
body.v106-ui .v106-ready-title h3{margin:0!important;color:#e9e5d7!important;font:700 12px/1.1 Georgia,serif!important}
body.v106-ui .v106-skill-section-head span,
body.v106-ui .v106-ready-title span{display:grid!important;place-items:center!important;min-width:28px!important;height:24px!important;padding:0 6px!important;border-radius:999px!important;background:rgba(231,197,100,.09)!important;color:#e8d17e!important;font-size:8px!important}
body.v106-ui .v106-skill-section-head i{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border:1px solid rgba(231,197,100,.28)!important;border-radius:50%!important;color:#e8d17e!important;font:900 14px/1 Arial!important;font-style:normal!important}
body.v106-ui .v102-skill-section.collapsed .v106-collapsible-content{display:none!important}
body.v106-ui .v102-skill-detail{gap:8px!important;padding:10px!important}
body.v106-ui .v102-skill-detail-head{grid-template-columns:62px minmax(0,1fr)!important;gap:8px!important}
body.v106-ui .v102-skill-detail-head>span{width:62px!important;height:62px!important}
body.v106-ui .v102-skill-detail-head h4{font-size:16px!important}
body.v106-ui .v102-skill-description{font-size:9.5px!important}
body.v106-ui .v102-skill-cast{min-height:48px!important;font-size:15px!important}

/* Generic centered target selector for enemies and allies. */
body.v106-ui .v106-target-backdrop{
  z-index:10020!important;
  display:grid!important;
  place-items:center!important;
  align-items:center!important;
  padding:max(14px,env(safe-area-inset-top)) 10px max(78px,calc(env(safe-area-inset-bottom) + 68px))!important;
  background:rgba(2,8,11,.72)!important;
  -webkit-backdrop-filter:blur(3px)!important;
  backdrop-filter:blur(3px)!important;
}
body.v106-ui .v106-target-dialog{
  width:min(96vw,720px)!important;
  max-width:720px!important;
  max-height:min(82dvh,620px)!important;
  margin:auto!important;
  padding:12px!important;
  border:1px solid rgba(231,197,100,.58)!important;
  border-radius:17px!important;
  background:linear-gradient(155deg,rgba(9,25,29,.99),rgba(5,14,18,.99))!important;
  box-shadow:0 24px 68px rgba(0,0,0,.72),inset 0 1px 0 rgba(255,255,255,.05)!important;
  overflow:auto!important;
}
body.v106-ui .v106-target-dialog>header{padding:0 0 9px!important;border-bottom:1px solid rgba(231,197,100,.13)!important}
body.v106-ui .v106-target-dialog>header>div>span small{color:#d7b954!important;font-size:7px!important}
body.v106-ui .v106-target-dialog>header>div>span b{font:700 16px/1.1 Georgia,serif!important}
body.v106-ui .v106-target-dialog>p{margin:9px 0!important;color:#9eaaa5!important;font-size:9px!important;text-align:center!important}
body.v106-ui .v106-target-grid{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(112px,1fr)!important;
  grid-template-columns:none!important;
  gap:7px!important;
  width:100%!important;
  padding:2px!important;
  overflow-x:auto!important;
  overscroll-behavior-x:contain!important;
  scroll-snap-type:x proximity!important;
}
body.v106-ui .v106-target-card{
  scroll-snap-align:start!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  min-width:112px!important;
  min-height:86px!important;
  padding:7px!important;
  border:1px solid rgba(231,197,100,.25)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(19,32,36,.98),rgba(7,15,19,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
  text-align:left!important;
}
body.v106-ui .v106-target-card:active,
body.v106-ui .v106-target-card:focus-visible{border-color:var(--v106-gold)!important;box-shadow:0 0 16px rgba(231,197,100,.18)!important}
body.v106-ui .v106-target-art{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:60px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  border-radius:8px!important;
  background:rgba(0,0,0,.24)!important;
  overflow:hidden!important;
}
body.v106-ui .v106-target-art>*{width:100%!important;height:100%!important;object-fit:contain!important}
body.v106-ui .v106-target-copy{display:grid!important;gap:4px!important;min-width:0!important}
body.v106-ui .v106-target-copy>b{overflow:hidden!important;color:#ecefe9!important;font-size:9px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.v106-ui .v106-target-copy>small{overflow:hidden!important;color:#75837d!important;font-size:6.5px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.v106-ui .v106-target-resource{display:grid!important;gap:2px!important}
body.v106-ui .v106-target-resource>span{display:flex!important;justify-content:space-between!important;gap:3px!important;font-size:6px!important}
body.v106-ui .v106-target-resource i{color:var(--v106-red)!important;font-style:normal!important;font-weight:900!important}
body.v106-ui .v106-target-resource.mp i{color:#66d6ee!important}
body.v106-ui .v106-target-resource strong{color:#c8d0cc!important;font-weight:700!important}
body.v106-ui .v106-target-resource>em{display:block!important;width:100%!important;height:5px!important;border-radius:8px!important;background:#253238!important;overflow:hidden!important}
body.v106-ui .v106-target-resource>em>u{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#e45355,#f07a70)!important;text-decoration:none!important}
body.v106-ui .v106-target-resource.mp>em>u{background:linear-gradient(90deg,#45b9d4,#72def1)!important}

/* Keep tabs and support action clear of Android navigation. */
body.v106-ui .v79-edge-tab{z-index:9010!important}
body.v106-ui .v80-support-tab,
body.v106-ui .v81-support-tab{
  z-index:9020!important;
  bottom:max(12px,calc(env(safe-area-inset-bottom) + 10px))!important;
  min-height:48px!important;
}

@media (max-width:420px){
  body.v106-ui .v101-battle{padding-right:14px!important;padding-left:14px!important}
  body.v106-ui .v101-combat-board{gap:6px!important}
  body.v106-ui .v101-roster-scroll{padding:6px!important}
  body.v106-ui .v101-roster-scroll>.v101-unit-card{flex-basis:160px!important}
  body.v106-ui .v101-unit-card{height:160px!important;min-height:160px!important;max-height:160px!important}
  body.v106-ui .v101-player-card{grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:119px 33px!important;gap:1px 6px!important}
  body.v106-ui .v101-player-card .v101-unit-art{width:52px!important;min-width:52px!important;max-width:52px!important;height:110px!important;min-height:110px!important;max-height:110px!important}
  body.v106-ui .v101-monster-card{grid-template-rows:23px 67px 27px 33px!important}
  body.v106-ui .v101-monster-card .v101-unit-art{height:67px!important;min-height:67px!important;max-height:67px!important}
  body.v106-ui .v101-unit-effects{height:33px!important;min-height:33px!important;max-height:33px!important;gap:3px!important}
  body.v106-ui .v106-effect-asset{flex-basis:23px!important;width:23px!important;min-width:23px!important;max-width:23px!important;height:23px!important;min-height:23px!important;max-height:23px!important;padding:2px!important}
  body.v106-ui .v106-effect-asset>*{width:15px!important;height:15px!important}
  body.v106-ui .v106-monster-action-overlay{top:28px!important;bottom:36px!important}
  body.v106-ui .v106-round-attack{width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important}
  body.v106-ui .v106-round-attack>*{width:34px!important;height:34px!important}
  body.v106-ui .v101-battle-log .v106-log-entry p{font-size:9px!important}
  body.v106-ui .v102-skill-drawer{width:69vw!important;min-width:246px!important}
  body.v106-ui .v102-skill-drawer .v102-skill-grid{gap:5px!important}
  body.v106-ui .v106-target-dialog{width:97vw!important;padding:10px!important}
  body.v106-ui .v106-target-grid{grid-auto-columns:minmax(104px,1fr)!important}
  body.v106-ui .v106-target-card{min-width:104px!important;grid-template-columns:34px minmax(0,1fr)!important;gap:5px!important;padding:6px!important}
  body.v106-ui .v106-target-art{width:34px!important;height:56px!important}
}

@media (min-width:761px){
  body.v106-ui .v101-battle{padding-right:44px!important;padding-left:44px!important}
  body.v106-ui .v101-roster-scroll>.v101-unit-card{flex-basis:190px!important}
  body.v106-ui .v101-unit-card{height:190px!important;min-height:190px!important;max-height:190px!important}
  body.v106-ui .v101-player-card{grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:145px 36px!important}
  body.v106-ui .v101-player-card .v101-unit-art{width:72px!important;min-width:72px!important;max-width:72px!important;height:136px!important;min-height:136px!important;max-height:136px!important}
  body.v106-ui .v101-monster-card{grid-template-rows:28px 82px 31px 36px!important}
  body.v106-ui .v102-skill-drawer{width:min(520px,42vw)!important;min-width:390px!important}
  body.v106-ui .v106-target-grid{grid-auto-columns:minmax(150px,1fr)!important}
  body.v106-ui .v106-target-card{min-width:150px!important}
}

@media (prefers-reduced-motion:reduce){
  body.v106-ui .v106-monster-action-overlay{animation:none!important}
}

/* ---- css/v107-mobile-layout.css ---- */
/* Aldos RPG v107 — fixed two-slot mobile rosters, short unit cards and clean logs. */

body.v107-ui{
  --v107-roster-head:36px;
  --v107-card-h:112px;
  --v107-card-gap:5px;
  --v107-roster-pad:4px;
  --v107-roster-scroll:237px;
  --v107-roster-total:273px;
  --v107-log-total:158px;
}

/* Keep the game clear of a temporarily visible Android status bar/cutout. */
body.v107-ui .v79-battle-header{
  min-height:58px!important;
  padding-top:max(7px,env(safe-area-inset-top))!important;
  padding-right:10px!important;
  padding-bottom:7px!important;
  padding-left:10px!important;
}
body.v107-ui .v79-battle-mark{width:34px!important;height:34px!important}
body.v107-ui .v79-battle-title small{font-size:8px!important}
body.v107-ui .v79-battle-title h1{font-size:16px!important;margin-top:1px!important}
body.v107-ui .v79-header-state{min-width:30px!important;width:30px!important;height:30px!important;padding:0!important;justify-content:center!important}
body.v107-ui .v79-header-state span{display:none!important}

@media (max-width:760px){
  /* Stable viewport: rosters never grow when a second or third participant joins. */
  body.v107-ui .v101-battle{
    grid-template-rows:70px var(--v107-roster-total) var(--v107-log-total)!important;
    align-content:start!important;
    gap:7px!important;
    min-height:0!important;
    padding:7px 16px max(72px,calc(env(safe-area-inset-bottom) + 62px))!important;
  }
  body.v107-ui .v101-combat-board{
    height:var(--v107-roster-total)!important;
    min-height:var(--v107-roster-total)!important;
    max-height:var(--v107-roster-total)!important;
    align-items:stretch!important;
    gap:7px!important;
  }
  body.v107-ui .v101-roster{
    grid-template-rows:var(--v107-roster-head) var(--v107-roster-scroll)!important;
    height:var(--v107-roster-total)!important;
    min-height:var(--v107-roster-total)!important;
    max-height:var(--v107-roster-total)!important;
    align-self:stretch!important;
    overflow:hidden!important;
    border-radius:15px!important;
  }
  body.v107-ui .v101-roster-head{
    height:var(--v107-roster-head)!important;
    min-height:var(--v107-roster-head)!important;
    padding:7px 9px!important;
  }
  body.v107-ui .v101-roster-head h2{font-size:12px!important}
  body.v107-ui .v101-roster-head span{font-size:6.8px!important}
  body.v107-ui .v101-roster-scroll{
    box-sizing:border-box!important;
    height:var(--v107-roster-scroll)!important;
    min-height:var(--v107-roster-scroll)!important;
    max-height:var(--v107-roster-scroll)!important;
    padding:var(--v107-roster-pad)!important;
    gap:var(--v107-card-gap)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    align-content:flex-start!important;
    scrollbar-width:thin!important;
    scrollbar-color:rgba(231,197,100,.45) rgba(255,255,255,.025)!important;
  }
  body.v107-ui .v101-roster-scroll::-webkit-scrollbar{width:3px!important}
  body.v107-ui .v101-roster-scroll::-webkit-scrollbar-track{background:rgba(255,255,255,.025)!important}
  body.v107-ui .v101-roster-scroll::-webkit-scrollbar-thumb{border-radius:99px!important;background:rgba(231,197,100,.48)!important}
  body.v107-ui .v101-roster-scroll>.v101-unit-card{
    flex:0 0 var(--v107-card-h)!important;
    scroll-snap-align:start!important;
  }
  body.v107-ui .v101-unit-card{
    box-sizing:border-box!important;
    width:100%!important;
    height:var(--v107-card-h)!important;
    min-height:var(--v107-card-h)!important;
    max-height:var(--v107-card-h)!important;
    padding:4px!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }

  /* Player: shorter portrait, nickname only, HP/MP raised closer to it. */
  body.v107-ui .v101-player-card{
    grid-template-columns:46px minmax(0,1fr)!important;
    grid-template-rows:76px 22px!important;
    gap:2px 6px!important;
  }
  body.v107-ui .v101-player-card .v101-unit-art{
    grid-column:1!important;
    grid-row:1!important;
    align-self:start!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:70px!important;
    min-height:70px!important;
    max-height:70px!important;
    margin:0!important;
    border-radius:9px!important;
  }
  body.v107-ui .v101-player-card .v101-unit-body{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-rows:18px minmax(0,1fr)!important;
    align-content:start!important;
    gap:2px!important;
    padding:1px 0 0!important;
  }
  body.v107-ui .v101-player-card .v101-unit-name{
    min-height:18px!important;
    height:18px!important;
    justify-content:flex-start!important;
    text-align:left!important;
  }
  body.v107-ui .v101-player-card .v101-unit-name h3{
    font-size:9.2px!important;
    line-height:1!important;
    text-align:left!important;
  }
  body.v107-ui .v101-player-card .v101-unit-name h3 em,
  body.v107-ui .v101-player-card .v101-player-state,
  body.v107-ui .v101-player-card .v79-player-action{display:none!important}
  body.v107-ui .v101-player-card .v101-unit-bars{
    align-self:start!important;
    align-content:start!important;
    gap:5px!important;
    padding-top:1px!important;
  }
  body.v107-ui .v101-player-card .v79-stat-row{gap:1px!important}
  body.v107-ui .v101-player-card .v79-stat-row>span{font-size:7.2px!important}
  body.v107-ui .v101-player-card .v79-stat-row>div{height:5px!important}

  /* Monster follows the exact same compact footer line as the player. */
  body.v107-ui .v101-monster-card{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:16px 42px 15px 22px!important;
    gap:1px!important;
  }
  body.v107-ui .v101-monster-card .v101-unit-body{
    grid-column:1!important;
    grid-row:1!important;
    padding:0!important;
  }
  body.v107-ui .v101-monster-card .v101-unit-name{
    height:16px!important;
    min-height:16px!important;
    justify-content:center!important;
  }
  body.v107-ui .v101-monster-card .v101-unit-name h2{
    font-size:9px!important;
    line-height:1!important;
    text-align:center!important;
  }
  body.v107-ui .v101-monster-card .v101-unit-art{
    grid-column:1!important;
    grid-row:2!important;
    justify-self:center!important;
    align-self:center!important;
    width:88%!important;
    max-width:108px!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    border-radius:8px!important;
  }
  body.v107-ui .v101-monster-card>.v101-resource{
    grid-column:1!important;
    grid-row:3!important;
    align-self:start!important;
    gap:1px!important;
    padding:0 2px!important;
  }
  body.v107-ui .v101-monster-card>.v101-resource>span{font-size:7px!important}
  body.v107-ui .v101-monster-card>.v101-resource>div{height:5px!important}

  /* Both effect lines have one fixed height and can never escape the card. */
  body.v107-ui .v101-unit-effects,
  body.v107-ui .v101-monster-card .v101-unit-effects{
    grid-column:1/-1!important;
    grid-row:2!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    gap:3px!important;
    padding:2px 1px 0!important;
    overflow:hidden!important;
    flex-wrap:nowrap!important;
  }
  body.v107-ui .v101-monster-card .v101-unit-effects{grid-row:4!important}
  body.v107-ui .v106-effect-asset{
    flex:0 0 20px!important;
    width:20px!important;
    min-width:20px!important;
    max-width:20px!important;
    height:20px!important;
    min-height:20px!important;
    max-height:20px!important;
    padding:2px!important;
    border-radius:6px!important;
  }
  body.v107-ui .v106-effect-asset>*{width:14px!important;height:14px!important}
  body.v107-ui .v106-effect-asset small{
    right:-1px!important;
    bottom:-1px!important;
    min-width:10px!important;
    height:10px!important;
    font-size:6px!important;
  }

  /* Selecting a monster visibly blurs its content, then reveals only the round asset action. */
  body.v107-ui .v101-monster-card.selected-target .v101-unit-art,
  body.v107-ui .v101-monster-card.selected-target>.v101-resource{
    filter:blur(2.6px) brightness(.58)!important;
    transform:scale(.985)!important;
    transition:filter .17s ease,transform .17s ease!important;
  }
  body.v107-ui .v106-monster-action-overlay{
    top:18px!important;
    right:4px!important;
    bottom:25px!important;
    left:4px!important;
    border-radius:9px!important;
    background:linear-gradient(145deg,rgba(5,13,17,.32),rgba(12,19,22,.52))!important;
    -webkit-backdrop-filter:blur(4px) brightness(.66)!important;
    backdrop-filter:blur(4px) brightness(.66)!important;
  }
  body.v107-ui .v106-round-attack{
    width:50px!important;
    min-width:50px!important;
    height:50px!important;
    min-height:50px!important;
    padding:8px!important;
  }
  body.v107-ui .v106-round-attack>*{width:32px!important;height:32px!important}

  /* Compact turn card: short labels no longer force a two-line title. */
  body.v107-ui .v79-turn{
    min-height:70px!important;
    height:70px!important;
    grid-template-columns:34px minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:8px 10px 14px!important;
    border-radius:15px!important;
  }
  body.v107-ui .v79-turn-icon{width:32px!important;height:32px!important;border-radius:10px!important}
  body.v107-ui .v79-turn-copy b{
    overflow:hidden!important;
    font-size:13px!important;
    line-height:1.05!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.v107-ui .v79-turn-copy p{margin-top:2px!important;font-size:7.5px!important}
  body.v107-ui .v79-turn-meta{gap:5px!important}
  body.v107-ui .v79-turn-meta small{display:none!important}
  body.v107-ui .v79-turn-meta span{font-size:13.5px!important}
  body.v107-ui .v79-turn-bar{right:10px!important;bottom:6px!important;left:52px!important;height:4px!important}

  /* The log panel gives space back to the two fixed participant slots. */
  body.v107-ui .v101-battle-log{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-rows:40px minmax(0,1fr)!important;
    height:var(--v107-log-total)!important;
    min-height:var(--v107-log-total)!important;
    max-height:var(--v107-log-total)!important;
    border-radius:14px!important;
  }
  body.v107-ui .v101-battle-log .v79-log-head{
    height:40px!important;
    min-height:40px!important;
    padding:6px 9px!important;
  }
  body.v107-ui .v101-battle-log .v79-log-head h3{font-size:11.5px!important}
  body.v107-ui .v101-battle-log .v79-log-head small{font-size:6.5px!important}
  body.v107-ui .v101-battle-log .battle-log-scroll{
    min-height:0!important;
    max-height:none!important;
    height:100%!important;
    gap:0!important;
    padding:2px 8px 5px!important;
  }
  body.v107-ui .v101-battle-log .v106-log-entry{
    position:relative!important;
    display:grid!important;
    grid-template-columns:27px minmax(0,1fr)!important;
    align-items:center!important;
    gap:7px!important;
    min-height:43px!important;
    margin:0!important;
    padding:6px 3px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.055)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.v107-ui .v101-battle-log .v106-log-entry:last-child{border-bottom:0!important}
  body.v107-ui .v101-battle-log .v106-log-entry::before{display:none!important}
  body.v107-ui .v101-battle-log .v102-log-icon{
    width:25px!important;
    height:25px!important;
    border:0!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.025)!important;
    box-shadow:none!important;
  }
  body.v107-ui .v101-battle-log .v102-log-icon>*{width:14px!important;height:14px!important}
  body.v107-ui .v106-log-meta{margin-bottom:2px!important}
  body.v107-ui .v106-log-meta small{font-size:6.3px!important}
  body.v107-ui .v106-log-meta time{font-size:6.1px!important}
  body.v107-ui .v101-battle-log .v106-log-entry p{
    font-size:8.4px!important;
    line-height:1.3!important;
  }
  body.v107-ui .v101-battle-log mark{
    margin:0!important;
    padding:0 1px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }

  /* Target selection: larger portrait, shorter bars and compact one-card state. */
  body.v107-ui .v106-target-dialog{
    width:min(94vw,650px)!important;
    padding:10px!important;
    border-radius:16px!important;
  }
  body.v107-ui .v106-target-dialog>header{padding-bottom:7px!important}
  body.v107-ui .v106-target-dialog>header>div>span b{font-size:15px!important}
  body.v107-ui .v106-target-dialog>p{margin:7px 0!important;font-size:8.5px!important}
  body.v107-ui .v106-target-grid{
    grid-auto-columns:168px!important;
    justify-content:center!important;
    gap:7px!important;
    padding:2px 1px!important;
  }
  body.v107-ui .v106-target-card{
    grid-template-columns:48px minmax(0,1fr)!important;
    min-width:168px!important;
    width:168px!important;
    min-height:72px!important;
    padding:6px!important;
    gap:6px!important;
    border-radius:10px!important;
  }
  body.v107-ui .v106-target-art{
    width:48px!important;
    height:58px!important;
    border-radius:8px!important;
  }
  body.v107-ui .v106-target-copy b{font-size:8.5px!important}
  body.v107-ui .v106-target-copy small{font-size:6px!important}
  body.v107-ui .v106-target-resource{gap:1px!important;margin-top:3px!important}
  body.v107-ui .v106-target-resource>span{font-size:6.2px!important}
  body.v107-ui .v106-target-resource>em{
    width:88px!important;
    max-width:100%!important;
    height:4px!important;
  }
}

@media (max-width:360px){
  body.v107-ui{
    --v107-card-h:108px;
    --v107-roster-scroll:229px;
    --v107-roster-total:265px;
    --v107-log-total:150px;
  }
  body.v107-ui .v101-battle{padding-right:14px!important;padding-left:14px!important}
  body.v107-ui .v101-combat-board{gap:5px!important}
  body.v107-ui .v101-player-card{grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:73px 21px!important;gap:2px 4px!important}
  body.v107-ui .v101-player-card .v101-unit-art{width:42px!important;min-width:42px!important;max-width:42px!important;height:66px!important;min-height:66px!important;max-height:66px!important}
  body.v107-ui .v101-player-card .v101-unit-name h3,
  body.v107-ui .v101-monster-card .v101-unit-name h2{font-size:8.2px!important}
  body.v107-ui .v106-effect-asset{flex-basis:19px!important;width:19px!important;min-width:19px!important;max-width:19px!important;height:19px!important;min-height:19px!important;max-height:19px!important}
  body.v107-ui .v106-target-grid{grid-auto-columns:158px!important}
  body.v107-ui .v106-target-card{min-width:158px!important;width:158px!important}
}

/* Desktop keeps v106 proportions, but the player badge/action are still intentionally removed. */
body.v107-ui .v101-player-card .v101-unit-name h3 em,
body.v107-ui .v101-player-card .v101-player-state,
body.v107-ui .v101-player-card .v79-player-action{display:none!important}

/* ---- css/v108-mobile-drawers.css ---- */
/* Aldos RPG v108 — compact mobile battle, precise swipe handles and lightweight drawers. */

body.v108-ui{
  --v108-gold:#e7c564;
  --v108-teal:#67d8c9;
  --v108-red:#ef7069;
  --v108-panel:#08161a;
  --v108-safe-bottom:max(10px,env(safe-area-inset-bottom));
}

@media (max-width:760px){
  /* Fill the useful phone viewport. One-vs-one no longer reserves two empty roster slots. */
  body.v108-ui:not(.v127-ui) .v101-battle{
    box-sizing:border-box!important;
    min-height:calc(100dvh - 58px)!important;
    height:auto!important;
    grid-template-rows:70px auto minmax(190px,1fr)!important;
    align-content:stretch!important;
    gap:7px!important;
    padding:7px 16px calc(var(--v108-safe-bottom) + 42px)!important;
  }
  body.v108-ui:not(.v127-ui) .v101-combat-board{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-items:stretch!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle.players-1.monsters-1 .v101-combat-board{
    height:158px!important;
    min-height:158px!important;
    max-height:158px!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle.players-1.monsters-1 .v101-roster{
    height:158px!important;
    min-height:158px!important;
    max-height:158px!important;
    grid-template-rows:36px 122px!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle.players-1.monsters-1 .v101-roster-scroll{
    height:122px!important;
    min-height:122px!important;
    max-height:122px!important;
    overflow:hidden!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle:not(.players-1.monsters-1) .v101-combat-board{
    height:273px!important;
    min-height:273px!important;
    max-height:273px!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle:not(.players-1.monsters-1) .v101-roster{
    height:273px!important;
    min-height:273px!important;
    max-height:273px!important;
  }

  /* Logs expand into the remaining viewport instead of leaving a black void below. */
  body.v108-ui:not(.v127-ui) .v101-battle-log{
    height:auto!important;
    min-height:190px!important;
    max-height:none!important;
    grid-template-rows:40px minmax(0,1fr)!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle-log .battle-log-scroll{
    height:100%!important;
    min-height:145px!important;
    max-height:min(36dvh,330px)!important;
    padding:4px 8px 8px!important;
    gap:5px!important;
    overscroll-behavior:contain!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle-log .v106-log-entry{
    min-height:48px!important;
    padding:7px 6px!important;
    border:1px solid rgba(255,255,255,.045)!important;
    border-left:2px solid rgba(255,255,255,.12)!important;
    border-radius:10px!important;
    background:linear-gradient(100deg,rgba(255,255,255,.027),rgba(255,255,255,.009))!important;
  }
  body.v108-ui:not(.v127-ui) .v101-battle-log .v106-log-entry.damage{border-left-color:rgba(239,112,105,.82)!important}
  body.v108-ui:not(.v127-ui) .v101-battle-log .v106-log-entry.heal{border-left-color:rgba(128,232,120,.78)!important}
  body.v108-ui:not(.v127-ui) .v101-battle-log .v106-log-entry.skill{border-left-color:rgba(103,216,201,.8)!important}
  body.v108-ui:not(.v127-ui) .v101-battle-log .v106-log-entry.reward{border-left-color:rgba(231,197,100,.82)!important}

  /* Tiny precise drag zones. They sit in the gutters and never cover cards or log text. */
  body.v108-ui .v108-swipe-handle{
    position:fixed!important;
    z-index:74!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(231,197,100,.34)!important;
    color:#dce6e2!important;
    background:linear-gradient(180deg,rgba(13,27,31,.97),rgba(7,15,19,.98))!important;
    box-shadow:0 8px 20px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.04)!important;
    touch-action:none!important;
    user-select:none!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  body.v108-ui .v108-swipe-handle.side{
    top:48%!important;
    width:30px!important;
    min-width:30px!important;
    height:72px!important;
    min-height:72px!important;
    grid-template-rows:22px 28px!important;
    gap:4px!important;
    border-radius:0 13px 13px 0!important;
  }
  body.v108-ui .v108-swipe-handle.side.left{left:0!important;border-left:0!important}
  body.v108-ui .v108-swipe-handle.side.right{right:0!important;border-right:0!important;border-radius:13px 0 0 13px!important}
  body.v108-ui .v108-swipe-handle .v108-chevron{font:700 20px/1 Arial,sans-serif!important;color:#b9c5c0!important}
  body.v108-ui .v108-swipe-handle .v83-ui-icon{width:16px!important;height:16px!important;opacity:.9!important}
  body.v108-ui .v108-swipe-handle.bottom{
    right:50%!important;
    bottom:calc(var(--v108-safe-bottom) + 4px)!important;
    width:min(250px,46vw)!important;
    min-width:150px!important;
    height:34px!important;
    min-height:34px!important;
    grid-template-columns:24px 24px!important;
    gap:12px!important;
    border-radius:999px!important;
    transform:translateX(50%)!important;
  }
  body.v108-ui .v108-swipe-handle.bottom .v108-chevron{font-size:18px!important;transform:rotate(-90deg)!important}
  body.v108-ui .v108-swipe-handle:active{filter:brightness(1.14)!important}

  /* Old large labels are never allowed to return in v108. */
  body.v108-ui .v79-edge-tab:not(.v108-swipe-handle),
  body.v108-ui .v80-support-tab:not(.v108-swipe-handle),
  body.v108-ui .v81-support-tab:not(.v108-swipe-handle){display:none!important}

  /* Lightweight panels: transform-only animation, no expensive full-screen backdrop blur. */
  body.v108-ui .v79-drawer,
  body.v108-ui .v81-support-drawer{
    will-change:transform!important;
    contain:layout paint style!important;
    backface-visibility:hidden!important;
    -webkit-backface-visibility:hidden!important;
  }
  body.v108-ui .v17-drawer-fade{
    background:rgba(1,7,10,.64)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    animation:none!important;
  }
  body.v108-ui .v102-skill-drawer{
    width:72vw!important;
    min-width:min(270px,86vw)!important;
    max-width:520px!important;
    transform:translate3d(-104%,0,0)!important;
    transition:transform .10s cubic-bezier(.18,.82,.24,1)!important;
    box-shadow:18px 0 34px rgba(0,0,0,.46)!important;
  }
  body.v108-ui .v102-skill-drawer.open{transform:translate3d(0,0,0)!important}
  body.v108-ui .v79-chat-drawer{
    width:76vw!important;
    min-width:min(280px,88vw)!important;
    max-width:560px!important;
    transform:translate3d(104%,0,0)!important;
    transition:transform .10s cubic-bezier(.18,.82,.24,1)!important;
    box-shadow:-18px 0 34px rgba(0,0,0,.46)!important;
  }
  body.v108-ui .v79-chat-drawer.open{transform:translate3d(0,0,0)!important}

  /* More air around skill section counters and collapse arrows. */
  body.v108-ui .v102-skill-scroll{gap:12px!important;padding-top:12px!important}
  body.v108-ui .v102-skill-section{padding:0 2px 10px!important;border-bottom:1px solid rgba(231,197,100,.11)!important}
  body.v108-ui .v106-ready-title,
  body.v108-ui .v106-skill-section-head{
    box-sizing:border-box!important;
    min-height:44px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px 34px!important;
    align-items:center!important;
    gap:8px!important;
    padding:5px 3px!important;
    border:0!important;
    background:transparent!important;
  }
  body.v108-ui .v106-ready-title{grid-template-columns:minmax(0,1fr) 42px!important}
  body.v108-ui .v106-ready-title h3,
  body.v108-ui .v106-skill-section-head h3{font-size:11px!important;line-height:1.18!important;overflow-wrap:anywhere!important}
  body.v108-ui .v106-ready-title span,
  body.v108-ui .v106-skill-section-head span{
    display:grid!important;
    place-items:center!important;
    width:40px!important;
    height:28px!important;
    border-radius:999px!important;
    background:rgba(231,197,100,.08)!important;
    color:#dfca82!important;
  }
  body.v108-ui .v106-skill-section-head i{
    display:grid!important;
    place-items:center!important;
    width:32px!important;
    height:32px!important;
    border:1px solid rgba(231,197,100,.38)!important;
    border-radius:50%!important;
    color:#e5cd7d!important;
    font:800 13px/1 Arial,sans-serif!important;
  }
  body.v108-ui .v102-skill-drawer .v102-skill-grid{
    grid-template-columns:repeat(3,minmax(0,72px))!important;
    justify-content:start!important;
    gap:8px!important;
  }
  body.v108-ui .v102-skill-card.v103-icon-only{max-width:72px!important;aspect-ratio:1/1!important}
  body.v108-ui .v102-skill-detail{margin-top:1px!important;padding:11px!important;border-radius:14px!important}

  /* Bottom help becomes a real pull-up sheet. */
  body.v108-ui .v81-support-drawer{
    position:fixed!important;
    z-index:78!important;
    top:auto!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100%!important;
    height:min(43dvh,440px)!important;
    min-height:270px!important;
    max-height:440px!important;
    border:1px solid rgba(231,197,100,.30)!important;
    border-bottom:0!important;
    border-radius:18px 18px 0 0!important;
    background:linear-gradient(180deg,#0b191d,#071317)!important;
    transform:translate3d(0,104%,0)!important;
    transition:transform .10s cubic-bezier(.18,.82,.24,1)!important;
    box-shadow:0 -18px 40px rgba(0,0,0,.48)!important;
  }
  body.v108-ui .v81-support-drawer.open{transform:translate3d(0,0,0)!important}
  body.v108-ui .v81-support-head{min-height:68px!important;padding:10px 14px!important}
  body.v108-ui .v81-support-head span{display:none!important}
  body.v108-ui .v81-support-scroll{padding:8px 12px calc(var(--v108-safe-bottom) + 10px)!important;overscroll-behavior:contain!important}

  /* Small grip zones inside opened drawers allow a precise reverse swipe. */
  body.v108-ui .v108-drawer-grip{
    position:absolute!important;
    z-index:8!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(231,197,100,.30)!important;
    background:rgba(9,20,24,.94)!important;
    color:#dbe3df!important;
    touch-action:none!important;
  }
  body.v108-ui .v108-drawer-grip.side{top:48%!important;width:26px!important;height:70px!important}
  body.v108-ui .v108-drawer-grip.left{right:-13px!important;border-radius:0 12px 12px 0!important}
  body.v108-ui .v108-drawer-grip.right{left:-13px!important;border-radius:12px 0 0 12px!important}
  body.v108-ui .v108-drawer-grip.bottom{top:-15px!important;left:50%!important;width:96px!important;height:28px!important;border-radius:999px!important;transform:translateX(-50%)!important}

  /* Selected target always keeps the attack control. After acting it becomes a stable grey disabled control. */
  body.v108-ui .v106-round-attack:disabled,
  body.v108-ui .v106-round-attack.disabled{
    filter:grayscale(1) brightness(.65)!important;
    opacity:.72!important;
    border-color:rgba(150,160,158,.46)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.45),0 0 0 3px rgba(3,10,13,.68)!important;
    cursor:not-allowed!important;
  }
  body.v108-ui .v106-monster-action-overlay.disabled{
    background:linear-gradient(145deg,rgba(8,14,17,.28),rgba(19,22,24,.42))!important;
  }

  /* Phone performance: no large background blurs or continuous decorative animations. */
  body.v108-ui .v106-monster-action-overlay{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    background:linear-gradient(145deg,rgba(5,13,17,.68),rgba(12,19,22,.76))!important;
  }
  body.v108-ui .v102-cast-fx,
  body.v108-ui .v79-turn.urgent,
  body.v108-ui .v106-effect-asset{animation-duration:.16s!important}
}

@media (max-width:380px){
  body.v108-ui:not(.v127-ui) .v101-battle{padding-right:14px!important;padding-left:14px!important}
  body.v108-ui .v108-swipe-handle.side{width:27px!important;min-width:27px!important;height:66px!important;min-height:66px!important}
  body.v108-ui .v108-swipe-handle.bottom{width:180px!important;min-width:150px!important}
  body.v108-ui .v102-skill-drawer{width:76vw!important;min-width:268px!important}
  body.v108-ui .v102-skill-drawer .v102-skill-grid{grid-template-columns:repeat(3,minmax(0,66px))!important;gap:6px!important}
  body.v108-ui .v102-skill-card.v103-icon-only{max-width:66px!important}
}

@media (prefers-reduced-motion:reduce){
  body.v108-ui .v79-drawer,
  body.v108-ui .v81-support-drawer,
  body.v108-ui .v106-monster-action-overlay{transition-duration:.01ms!important;animation-duration:.01ms!important}
}

/* ---- css/v109-mobile-stability.css ---- */
/* Aldos RPG v109 — stable mobile battle viewport, anchored handles and lightweight drawers. */

body.v109-ui{
  --v109-safe-top:max(0px,env(safe-area-inset-top));
  --v109-safe-bottom:max(8px,env(safe-area-inset-bottom));
  --v109-header-h:64px;
  --v109-turn-h:70px;
  --v109-roster-h:184px;
  --v109-side-handle-top:350px;
}

@media (max-width:760px){
  html:has(body.v109-battle-active),
  body.v109-battle-active{
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body.v109-battle-active #app{
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body.v109-battle-active .v79-battle-header{
    box-sizing:border-box!important;
    height:var(--v109-header-h)!important;
    min-height:var(--v109-header-h)!important;
    max-height:var(--v109-header-h)!important;
    padding:calc(6px + var(--v109-safe-top)) 10px 6px!important;
    overflow:hidden!important;
  }
  body.v109-battle-active .v101-battle{
    box-sizing:border-box!important;
    width:100%!important;
    height:calc(100dvh - var(--v109-header-h))!important;
    min-height:0!important;
    max-height:calc(100dvh - var(--v109-header-h))!important;
    grid-template-rows:var(--v109-turn-h) var(--v109-roster-h) minmax(0,1fr)!important;
    align-content:stretch!important;
    gap:7px!important;
    padding:7px 14px calc(var(--v109-safe-bottom) + 38px)!important;
    overflow:hidden!important;
  }
  body.v109-battle-active .v101-combat-board{
    height:var(--v109-roster-h)!important;
    min-height:var(--v109-roster-h)!important;
    max-height:var(--v109-roster-h)!important;
    gap:7px!important;
    overflow:visible!important;
  }
  body.v109-battle-active .v101-roster{
    height:var(--v109-roster-h)!important;
    min-height:var(--v109-roster-h)!important;
    max-height:var(--v109-roster-h)!important;
    grid-template-rows:38px minmax(0,1fr)!important;
    border-radius:16px!important;
    overflow:hidden!important;
  }
  body.v109-battle-active .v101-roster-head{
    height:38px!important;
    min-height:38px!important;
    padding:7px 9px!important;
  }
  body.v109-battle-active .v101-roster-scroll{
    box-sizing:border-box!important;
    height:146px!important;
    min-height:146px!important;
    max-height:146px!important;
    padding:5px!important;
    gap:5px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-gutter:stable!important;
  }
  body.v109-battle-active .v101-roster-scroll>.v101-unit-card{
    flex:0 0 132px!important;
  }
  body.v109-battle-active .v101-unit-card{
    box-sizing:border-box!important;
    width:100%!important;
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    padding:5px!important;
    border-radius:13px!important;
  }

  /* Player card: slightly larger portrait and a taller effect footer. */
  body.v109-battle-active .v101-player-card{
    grid-template-columns:50px minmax(0,1fr)!important;
    grid-template-rows:92px 30px!important;
    gap:2px 7px!important;
  }
  body.v109-battle-active .v101-player-card .v101-unit-art{
    width:50px!important;
    min-width:50px!important;
    max-width:50px!important;
    height:86px!important;
    min-height:86px!important;
    max-height:86px!important;
    border-radius:10px!important;
  }
  body.v109-battle-active .v101-player-card .v101-unit-body{
    grid-template-rows:20px minmax(0,1fr)!important;
    gap:3px!important;
    padding-top:2px!important;
  }
  body.v109-battle-active .v101-player-card .v101-unit-name,
  body.v109-battle-active .v101-player-card .v101-unit-name h3{
    min-height:20px!important;
    height:20px!important;
  }
  body.v109-battle-active .v101-player-card .v101-unit-name h3{font-size:9.8px!important}
  body.v109-battle-active .v101-player-card .v101-unit-bars{gap:6px!important}
  body.v109-battle-active .v101-player-card .v79-stat-row>span{font-size:7.7px!important}
  body.v109-battle-active .v101-player-card .v79-stat-row>div{height:6px!important}

  /* Monster card uses the same overall height and the same 30px effects row. */
  body.v109-battle-active .v101-monster-card{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:18px 54px 18px 30px!important;
    gap:2px!important;
  }
  body.v109-battle-active .v101-monster-card .v101-unit-name,
  body.v109-battle-active .v101-monster-card .v101-unit-name h2{
    min-height:18px!important;
    height:18px!important;
  }
  body.v109-battle-active .v101-monster-card .v101-unit-name h2{font-size:9.6px!important}
  body.v109-battle-active .v101-monster-card .v101-unit-art{
    width:90%!important;
    max-width:118px!important;
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
  }
  body.v109-battle-active .v101-monster-card>.v101-resource{padding:0 3px!important}
  body.v109-battle-active .v101-monster-card>.v101-resource>span{font-size:7.5px!important}
  body.v109-battle-active .v101-monster-card>.v101-resource>div{height:6px!important}

  body.v109-battle-active .v101-unit-effects,
  body.v109-battle-active .v101-monster-card .v101-unit-effects{
    box-sizing:border-box!important;
    width:100%!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    gap:4px!important;
    padding:3px 2px 1px!important;
    overflow:hidden!important;
    align-items:center!important;
  }
  body.v109-battle-active .v106-effect-asset{
    flex:0 0 25px!important;
    width:25px!important;
    min-width:25px!important;
    max-width:25px!important;
    height:25px!important;
    min-height:25px!important;
    max-height:25px!important;
    padding:3px!important;
    border-radius:7px!important;
    animation:none!important;
    transform:none!important;
  }
  body.v109-battle-active .v106-effect-asset>*{width:17px!important;height:17px!important}
  body.v109-battle-active .v106-effect-asset small{
    right:-2px!important;
    bottom:-2px!important;
    min-width:11px!important;
    height:11px!important;
    padding:0 2px!important;
    font-size:6px!important;
    line-height:11px!important;
    border-width:1px!important;
  }

  /* The log owns the rest of the viewport. The document itself never scrolls. */
  body.v109-battle-active .v101-battle-log{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-rows:40px minmax(0,1fr)!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    border-radius:15px!important;
    overflow:hidden!important;
  }
  body.v109-battle-active .v101-battle-log .battle-log-scroll{
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-gutter:stable!important;
    overscroll-behavior:contain!important;
    contain:content!important;
    padding:3px 8px 7px!important;
    gap:5px!important;
  }
  body.v109-battle-active .v101-battle-log .v106-log-entry{
    contain:layout paint!important;
    min-height:49px!important;
    padding:7px 6px!important;
    border-radius:10px!important;
  }

  /* Handles are anchored to the combat board by JS, not to a percentage of the full page. */
  body.v109-battle-active .v108-swipe-handle.side{
    top:var(--v109-side-handle-top)!important;
    width:29px!important;
    min-width:29px!important;
    height:66px!important;
    min-height:66px!important;
    transform:translateY(-50%)!important;
    transition:opacity .16s ease,filter .16s ease!important;
  }
  body.v109-battle-active .v108-swipe-handle.bottom{
    right:auto!important;
    left:50%!important;
    bottom:calc(var(--v109-safe-bottom) + 4px)!important;
    width:min(230px,48vw)!important;
    min-width:164px!important;
    height:32px!important;
    min-height:32px!important;
    transform:translateX(-50%)!important;
  }
  body.v109-battle-active.v109-drawer-open .v108-swipe-handle{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* Fade exists permanently to avoid creating/destroying a full-screen layer on every open. */
  body.v109-ui .v17-drawer-fade{
    display:block!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    background:rgba(1,7,10,.48)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    transition:opacity .16s linear,visibility 0s linear .16s!important;
  }
  body.v109-ui .v17-drawer-fade.open,
  body.v109-ui .v17-drawer-fade.drag-preview{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transition:opacity .16s linear!important;
  }

  /* Remove paint containment that can produce black WebView frames during drawer transforms. */
  body.v109-ui .v79-drawer,
  body.v109-ui .v81-support-drawer{
    contain:none!important;
    isolation:isolate!important;
    backface-visibility:hidden!important;
    -webkit-backface-visibility:hidden!important;
  }
  body.v109-ui:not(.v109-dragging) .v79-drawer,
  body.v109-ui:not(.v109-dragging) .v81-support-drawer{will-change:auto!important}
  body.v109-ui.v109-dragging .v79-drawer,
  body.v109-ui.v109-dragging .v81-support-drawer{will-change:transform!important}

  body.v109-ui .v102-skill-drawer,
  body.v109-ui .v79-chat-drawer,
  body.v109-ui .v81-support-drawer{
    transition:transform .22s cubic-bezier(.2,.78,.24,1)!important;
  }
  body.v109-ui .v81-support-drawer{
    height:min(41dvh,410px)!important;
    min-height:250px!important;
    background:#08161a!important;
  }

  /* Timer is updated at a low frequency in JS, with CSS smoothing between writes. */
  body.v109-ui .v79-turn-bar>i{
    transition:transform .12s linear!important;
    will-change:transform!important;
  }

  body.v109-ui.v109-rendering *{animation-play-state:paused!important}
}

@media (max-width:380px){
  body.v109-ui{--v109-roster-h:178px}
  body.v109-battle-active .v101-battle{padding-right:12px!important;padding-left:12px!important}
  body.v109-battle-active .v101-roster-scroll{height:140px!important;min-height:140px!important;max-height:140px!important}
  body.v109-battle-active .v101-roster-scroll>.v101-unit-card,
  body.v109-battle-active .v101-unit-card{height:128px!important;min-height:128px!important;max-height:128px!important}
  body.v109-battle-active .v101-player-card{grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:88px 29px!important;gap:2px 5px!important}
  body.v109-battle-active .v101-player-card .v101-unit-art{width:46px!important;min-width:46px!important;max-width:46px!important;height:82px!important;min-height:82px!important;max-height:82px!important}
  body.v109-battle-active .v101-monster-card{grid-template-rows:18px 50px 18px 29px!important}
  body.v109-battle-active .v101-monster-card .v101-unit-art{height:50px!important;min-height:50px!important;max-height:50px!important}
  body.v109-battle-active .v106-effect-asset{flex-basis:24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important}
}

@media (prefers-reduced-motion:reduce){
  body.v109-ui .v79-drawer,
  body.v109-ui .v81-support-drawer,
  body.v109-ui .v17-drawer-fade,
  body.v109-ui .v79-turn-bar>i{transition-duration:.01ms!important}
}

@media (max-width:760px){
  body.v109-ui .v17-drawer-fade{z-index:88!important}
  body.v109-ui .v102-skill-drawer,
  body.v109-ui .v79-chat-drawer,
  body.v109-ui .v81-support-drawer{z-index:94!important}
  body.v109-ui .v108-drawer-grip{z-index:96!important}
}

@media (max-width:760px){
  body.v109-battle-active .v101-battle.players-1.monsters-1 .v101-combat-board,
  body.v109-battle-active .v101-battle:not(.players-1.monsters-1) .v101-combat-board,
  body.v109-battle-active .v101-battle.players-1.monsters-1 .v101-roster,
  body.v109-battle-active .v101-battle:not(.players-1.monsters-1) .v101-roster{
    height:var(--v109-roster-h)!important;
    min-height:var(--v109-roster-h)!important;
    max-height:var(--v109-roster-h)!important;
  }
  body.v109-battle-active .v101-battle.players-1.monsters-1 .v101-roster{
    grid-template-rows:38px minmax(0,1fr)!important;
  }
  body.v109-battle-active .v101-battle.players-1.monsters-1 .v101-roster-scroll,
  body.v109-battle-active .v101-battle:not(.players-1.monsters-1) .v101-roster-scroll{
    height:146px!important;
    min-height:146px!important;
    max-height:146px!important;
    overflow-y:auto!important;
  }
}

/* ---- css/v110-apk-performance.css ---- */
/* Aldos RPG v110 — APK-first battle rendering, stable insets and lightweight interaction. */

body.v110-ui{
  --v110-header-h:74px;
  --v110-turn-h:70px;
  --v110-roster-h:192px;
  --v110-safe-bottom:max(8px,env(safe-area-inset-bottom));
}

@media (max-width:760px){
  html:has(body.v110-battle-active),
  body.v110-battle-active{
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
    background:#050b0e!important;
  }

  body.v110-battle-active #app{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-rows:var(--v110-header-h) minmax(0,1fr)!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }

  /* Header and battle are explicit grid rows, so the location title cannot slide under the turn card. */
  body.v110-battle-active .v79-battle-header{
    position:relative!important;
    inset:auto!important;
    z-index:3!important;
    box-sizing:border-box!important;
    grid-row:1!important;
    height:var(--v110-header-h)!important;
    min-height:var(--v110-header-h)!important;
    max-height:var(--v110-header-h)!important;
    margin:0!important;
    padding:10px 12px 9px!important;
    overflow:hidden!important;
    transform:none!important;
  }
  body.v110-battle-active .v79-battle-title{
    min-width:0!important;
    align-self:center!important;
    padding-bottom:1px!important;
  }
  body.v110-battle-active .v79-battle-title small{font-size:8px!important;line-height:1.1!important}
  body.v110-battle-active .v79-battle-title h1{
    max-width:100%!important;
    margin:3px 0 0!important;
    overflow:hidden!important;
    font-size:17px!important;
    line-height:1.12!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  body.v110-battle-active .v101-battle{
    box-sizing:border-box!important;
    grid-row:2!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    grid-template-rows:var(--v110-turn-h) var(--v110-roster-h) minmax(0,1fr)!important;
    gap:7px!important;
    padding:7px 14px calc(var(--v110-safe-bottom) + 48px)!important;
    overflow:hidden!important;
  }

  body.v110-battle-active .v101-combat-board,
  body.v110-battle-active .v101-battle.players-1.monsters-1 .v101-combat-board,
  body.v110-battle-active .v101-battle:not(.players-1.monsters-1) .v101-combat-board{
    height:var(--v110-roster-h)!important;
    min-height:var(--v110-roster-h)!important;
    max-height:var(--v110-roster-h)!important;
    gap:7px!important;
  }
  body.v110-battle-active .v101-roster,
  body.v110-battle-active .v101-battle.players-1.monsters-1 .v101-roster,
  body.v110-battle-active .v101-battle:not(.players-1.monsters-1) .v101-roster{
    box-sizing:border-box!important;
    height:var(--v110-roster-h)!important;
    min-height:var(--v110-roster-h)!important;
    max-height:var(--v110-roster-h)!important;
    grid-template-rows:38px 154px!important;
    border-width:1px!important;
    border-radius:17px!important;
    box-shadow:0 8px 22px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.025)!important;
  }
  body.v110-battle-active .v101-roster-scroll,
  body.v110-battle-active .v101-battle.players-1.monsters-1 .v101-roster-scroll,
  body.v110-battle-active .v101-battle:not(.players-1.monsters-1) .v101-roster-scroll{
    box-sizing:border-box!important;
    height:154px!important;
    min-height:154px!important;
    max-height:154px!important;
    padding:5px!important;
    gap:5px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  body.v110-battle-active .v101-roster-scroll>.v101-unit-card{flex:0 0 140px!important}
  body.v110-battle-active .v101-unit-card{
    box-sizing:border-box!important;
    width:100%!important;
    height:140px!important;
    min-height:140px!important;
    max-height:140px!important;
    padding:5px!important;
    border-width:2px!important;
    border-radius:14px!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important;
  }

  body.v110-battle-active .v101-player-card{
    grid-template-columns:52px minmax(0,1fr)!important;
    grid-template-rows:94px 34px!important;
    gap:2px 7px!important;
  }
  body.v110-battle-active .v101-player-card .v101-unit-art{
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:88px!important;
    min-height:88px!important;
    max-height:88px!important;
    border-radius:11px!important;
  }
  body.v110-battle-active .v101-player-card .v101-unit-body{
    grid-template-rows:21px minmax(0,1fr)!important;
    gap:4px!important;
    padding-top:2px!important;
  }
  body.v110-battle-active .v101-player-card .v101-unit-name,
  body.v110-battle-active .v101-player-card .v101-unit-name h3{height:21px!important;min-height:21px!important}
  body.v110-battle-active .v101-player-card .v101-unit-name h3{font-size:10px!important}
  body.v110-battle-active .v101-player-card .v101-unit-bars{gap:7px!important}
  body.v110-battle-active .v101-player-card .v79-stat-row>span{font-size:7.8px!important}
  body.v110-battle-active .v101-player-card .v79-stat-row>div{height:6px!important}

  body.v110-battle-active .v101-monster-card{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:18px 52px 18px 35px!important;
    gap:2px!important;
  }
  body.v110-battle-active .v101-monster-card .v101-unit-name,
  body.v110-battle-active .v101-monster-card .v101-unit-name h2{height:18px!important;min-height:18px!important}
  body.v110-battle-active .v101-monster-card .v101-unit-name h2{font-size:9.8px!important}
  body.v110-battle-active .v101-monster-card .v101-unit-art{
    width:92%!important;
    max-width:122px!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
  }
  body.v110-battle-active .v101-monster-card>.v101-resource{padding:0 3px!important}
  body.v110-battle-active .v101-monster-card>.v101-resource>span{font-size:7.6px!important}
  body.v110-battle-active .v101-monster-card>.v101-resource>div{height:6px!important}

  /* A separate, taller footer keeps effects visually detached from HP/MP. */
  body.v110-battle-active .v101-unit-effects,
  body.v110-battle-active .v101-monster-card .v101-unit-effects{
    box-sizing:border-box!important;
    width:100%!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    margin-top:2px!important;
    gap:3px!important;
    padding:4px 2px 2px!important;
    align-items:center!important;
    border-top:1px solid rgba(255,255,255,.075)!important;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.018),transparent)!important;
    overflow:hidden!important;
  }
  body.v110-battle-active .v106-effect-asset{
    position:relative!important;
    flex:0 0 28px!important;
    width:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    padding:3px!important;
    border-radius:8px!important;
    animation:none!important;
    transition:none!important;
    transform:none!important;
  }
  body.v110-battle-active .v106-effect-asset>*{width:18px!important;height:18px!important}
  body.v110-battle-active .v106-effect-asset:has(small)>img{transform:translateX(-3px)!important}
  body.v110-battle-active .v106-effect-asset small{
    top:50%!important;
    right:1px!important;
    bottom:auto!important;
    width:9px!important;
    min-width:9px!important;
    height:15px!important;
    padding:0 1px!important;
    border:0!important;
    border-left:1px solid rgba(255,255,255,.18)!important;
    border-radius:0 5px 5px 0!important;
    background:rgba(5,10,13,.92)!important;
    font-size:6px!important;
    line-height:15px!important;
    transform:translateY(-50%)!important;
  }
  body.v110-battle-active .v106-effect-asset.more{flex-basis:22px!important;width:22px!important;min-width:22px!important;max-width:22px!important}

  /* Target selection uses opacity only; mobile WebView no longer performs a live blur. */
  body.v110-battle-active .v101-monster-card.selected-target .v101-unit-art,
  body.v110-battle-active .v101-monster-card.selected-target>.v101-resource{
    filter:none!important;
    opacity:.42!important;
    transform:none!important;
    transition:opacity .1s linear!important;
  }
  body.v110-battle-active .v106-monster-action-overlay{
    top:21px!important;
    right:5px!important;
    bottom:38px!important;
    left:5px!important;
    animation:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    background:rgba(6,15,19,.64)!important;
  }
  body.v110-battle-active .v106-round-attack{animation:none!important;transition:none!important}

  /* Side handles sit in the roster header, not over a player, monster or the log. */
  body.v110-battle-active .v108-swipe-handle.side{
    width:29px!important;
    min-width:29px!important;
    height:48px!important;
    min-height:48px!important;
    transform:translateY(-50%)!important;
    transition:opacity .12s linear!important;
  }

  /* Full-width support handle with health and mana assets at the corners. */
  body.v110-battle-active .v108-swipe-handle.bottom{
    right:14px!important;
    left:14px!important;
    bottom:calc(var(--v110-safe-bottom) + 5px)!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    width:auto!important;
    min-width:0!important;
    height:40px!important;
    min-height:40px!important;
    padding:3px 7px!important;
    border:1px solid rgba(231,197,100,.5)!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,rgba(15,30,34,.98),rgba(6,15,19,.99))!important;
    box-shadow:0 8px 18px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.05)!important;
    transform:none!important;
  }
  body.v110-battle-active .v110-support-potion{
    display:grid!important;
    place-items:center!important;
    width:32px!important;
    height:32px!important;
    border:1px solid rgba(231,197,100,.22)!important;
    border-radius:10px!important;
    background:rgba(0,0,0,.18)!important;
    overflow:hidden!important;
  }
  body.v110-battle-active .v110-support-potion.right{justify-self:end!important}
  body.v110-battle-active .v110-support-potion img{width:24px!important;height:24px!important;object-fit:contain!important;filter:none!important}
  body.v110-battle-active .v110-support-label{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    min-width:0!important;
    color:#dbe5e1!important;
  }
  body.v110-battle-active .v110-support-label i{color:#e7c564!important;font:800 15px/1 Arial,sans-serif!important}
  body.v110-battle-active .v110-support-label b{overflow:hidden!important;font-size:10px!important;letter-spacing:.05em!important;text-overflow:ellipsis!important;white-space:nowrap!important}

  /* The dim layer stays light and never sits above the drawer. */
  body.v110-ui .v17-drawer-fade{
    z-index:88!important;
    background:rgba(1,7,10,.18)!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  body.v110-ui .v102-skill-drawer,
  body.v110-ui .v79-chat-drawer,
  body.v110-ui .v81-support-drawer{
    z-index:94!important;
    contain:none!important;
    isolation:auto!important;
    -webkit-backface-visibility:visible!important;
    backface-visibility:visible!important;
    transition:transform .2s cubic-bezier(.2,.76,.25,1)!important;
  }
  body.v110-ui.v109-dragging .v102-skill-drawer,
  body.v110-ui.v109-dragging .v79-chat-drawer,
  body.v110-ui.v109-dragging .v81-support-drawer{transition:none!important;will-change:transform!important}
  body.v110-ui:not(.v109-dragging) .v102-skill-drawer,
  body.v110-ui:not(.v109-dragging) .v79-chat-drawer,
  body.v110-ui:not(.v109-dragging) .v81-support-drawer{will-change:auto!important}

  /* Skill art is clipped consistently; baked square corners no longer leak through. */
  body.v110-ui .v102-skill-drawer .v101-skill-art{
    display:grid!important;
    place-items:center!important;
    padding:3px!important;
    border-radius:50%!important;
    overflow:hidden!important;
    background:radial-gradient(circle,rgba(231,197,100,.09),rgba(4,10,13,.5))!important;
  }
  body.v110-ui .v102-skill-drawer .v101-skill-art img{
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    border-radius:50%!important;
    object-fit:cover!important;
    object-position:center!important;
    clip-path:circle(48% at 50% 50%)!important;
    filter:none!important;
    transform:none!important;
  }
  body.v110-ui .v102-skill-card,
  body.v110-ui .v102-skill-main{transition:none!important;animation:none!important}

  body.v110-battle-active .v101-battle-log .battle-log-scroll{scrollbar-gutter:stable!important}
  body.v110-battle-active .v101-battle-log .v106-log-entry{animation:none!important;transition:none!important}
}

@media (max-width:380px){
  body.v110-ui{--v110-roster-h:188px}
  body.v110-battle-active .v101-battle{padding-right:12px!important;padding-left:12px!important}
  body.v110-battle-active .v101-roster,
  body.v110-battle-active .v101-battle.players-1.monsters-1 .v101-roster,
  body.v110-battle-active .v101-battle:not(.players-1.monsters-1) .v101-roster{height:188px!important;min-height:188px!important;max-height:188px!important;grid-template-rows:38px 150px!important}
  body.v110-battle-active .v101-roster-scroll,
  body.v110-battle-active .v101-battle.players-1.monsters-1 .v101-roster-scroll,
  body.v110-battle-active .v101-battle:not(.players-1.monsters-1) .v101-roster-scroll{height:150px!important;min-height:150px!important;max-height:150px!important}
  body.v110-battle-active .v101-roster-scroll>.v101-unit-card,
  body.v110-battle-active .v101-unit-card{height:136px!important;min-height:136px!important;max-height:136px!important}
  body.v110-battle-active .v101-player-card{grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:90px 34px!important;gap:2px 5px!important}
  body.v110-battle-active .v101-player-card .v101-unit-art{width:48px!important;min-width:48px!important;max-width:48px!important;height:84px!important;min-height:84px!important;max-height:84px!important}
  body.v110-battle-active .v101-monster-card{grid-template-rows:18px 48px 18px 34px!important}
  body.v110-battle-active .v101-monster-card .v101-unit-art{height:48px!important;min-height:48px!important;max-height:48px!important}
  body.v110-battle-active .v106-effect-asset{flex-basis:27px!important;width:27px!important;min-width:27px!important;max-width:27px!important;height:27px!important;min-height:27px!important;max-height:27px!important}
  body.v110-battle-active .v108-swipe-handle.bottom{right:12px!important;left:12px!important}
}

@media (prefers-reduced-motion:reduce){
  body.v110-ui .v102-skill-drawer,
  body.v110-ui .v79-chat-drawer,
  body.v110-ui .v81-support-drawer,
  body.v110-ui .v17-drawer-fade{transition-duration:.01ms!important}
}

/* ---- css/v111-mobile-controls.css ---- */
/* Aldos RPG v111 — visible edge controls, immediate gestures and compact combat journal. */

body.v111-ui{
  --v111-side-handle-top:50%;
  --v111-gold:#e7c564;
  --v111-mint:#67d8c9;
  --v111-red:#ef7069;
}

@media (max-width:760px){
  /* The closed drawers must be completely outside the WebView. This removes the coloured
     strip that used to look like a broken skills button on the left edge. */
  body.v111-ui .v102-skill-drawer,
  body.v111-ui .v79-chat-drawer,
  body.v111-ui .v81-support-drawer{
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.v111-ui .v102-skill-drawer{transform:translate3d(calc(-100% - 8px),0,0)!important}
  body.v111-ui .v79-chat-drawer{transform:translate3d(calc(100% + 8px),0,0)!important}
  body.v111-ui .v81-support-drawer{transform:translate3d(0,calc(100% + 8px),0)!important}
  body.v111-ui .v102-skill-drawer.open,
  body.v111-ui .v79-chat-drawer.open,
  body.v111-ui .v81-support-drawer.open,
  body.v111-ui .v111-gesture-visible{
    visibility:visible!important;
    pointer-events:auto!important;
  }
  body.v111-ui .v102-skill-drawer.open,
  body.v111-ui .v79-chat-drawer.open,
  body.v111-ui .v81-support-drawer.open{transform:translate3d(0,0,0)!important}

  /* Two explicit, symmetrical buttons. They are centred against the card body rather
     than the roster title, so «Игроки» and «Монстры» are never covered. */
  body.v111-battle-active .v108-swipe-handle.side{
    position:fixed!important;
    top:var(--v111-side-handle-top)!important;
    z-index:97!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-rows:15px 23px 1fr!important;
    place-items:center!important;
    gap:2px!important;
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:82px!important;
    min-height:82px!important;
    max-height:82px!important;
    padding:5px 3px!important;
    overflow:hidden!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    border:1px solid rgba(231,197,100,.50)!important;
    background:linear-gradient(180deg,rgba(18,37,40,.99),rgba(6,15,19,.99))!important;
    box-shadow:0 8px 18px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.07)!important;
    transform:translateY(-50%)!important;
    touch-action:none!important;
  }
  body.v111-battle-active #skills-drawer-open{
    right:auto!important;
    left:0!important;
    border-left:0!important;
    border-radius:0 14px 14px 0!important;
  }
  body.v111-battle-active #chat-drawer-open{
    right:0!important;
    left:auto!important;
    border-right:0!important;
    border-radius:14px 0 0 14px!important;
  }
  body.v111-battle-active .v108-swipe-handle.side .v108-chevron{
    display:block!important;
    width:auto!important;
    height:auto!important;
    color:#f0d47b!important;
    font:900 16px/1 Arial,sans-serif!important;
    writing-mode:horizontal-tb!important;
    animation:v111-edge-hint 2.8s ease-in-out infinite!important;
  }
  body.v111-battle-active #chat-drawer-open .v108-chevron{animation-name:v111-edge-hint-right!important}
  body.v111-battle-active .v111-handle-icon{
    display:grid!important;
    place-items:center!important;
    width:23px!important;
    height:23px!important;
    writing-mode:horizontal-tb!important;
  }
  body.v111-battle-active .v111-handle-icon img{width:22px!important;height:22px!important;max-width:22px!important;filter:none!important}
  body.v111-battle-active .v111-handle-label{
    display:block!important;
    max-height:30px!important;
    overflow:hidden!important;
    color:#d9e3df!important;
    font:800 7px/1.05 Arial,sans-serif!important;
    letter-spacing:.02em!important;
    writing-mode:vertical-rl!important;
    text-orientation:mixed!important;
  }

  /* Wide centred support control. max-width resets the old v81 52vw limiter. */
  body.v111-battle-active #support-drawer-open.v108-swipe-handle.bottom{
    right:max(18px,7vw)!important;
    left:max(18px,7vw)!important;
    bottom:calc(max(8px,env(safe-area-inset-bottom)) + 5px)!important;
    z-index:97!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    margin:0!important;
    padding:3px 6px!important;
    border:1px solid rgba(231,197,100,.62)!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,rgba(18,37,40,.99),rgba(6,15,19,.99))!important;
    box-shadow:0 10px 22px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.07),0 0 18px rgba(231,197,100,.08)!important;
    transform:none!important;
    visibility:visible!important;
    opacity:1!important;
    overflow:hidden!important;
    touch-action:none!important;
  }
  body.v111-battle-active #support-drawer-open .v110-support-potion{width:36px!important;height:36px!important;border-radius:11px!important}
  body.v111-battle-active #support-drawer-open .v110-support-potion img{width:27px!important;height:27px!important;max-width:27px!important}
  body.v111-battle-active #support-drawer-open .v110-support-label{gap:8px!important}
  body.v111-battle-active #support-drawer-open .v110-support-label i{
    animation:v111-up-hint 2.5s ease-in-out infinite!important;
  }
  body.v111-battle-active #support-drawer-open .v110-support-label b{font-size:10.5px!important;letter-spacing:.035em!important}

  body.v111-battle-active.v109-drawer-open .v108-swipe-handle{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body.v111-battle-active.v109-drawer-open #skills-drawer-open,
  body.v111-battle-active.v109-drawer-open #chat-drawer-open,
  body.v111-battle-active.v109-drawer-open #support-drawer-open{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* Effect count is a small independent badge on the unused right edge of the tile. */
  body.v111-battle-active .v106-effect-asset{width:31px!important;min-width:31px!important;max-width:31px!important;flex-basis:31px!important;padding:3px 8px 3px 2px!important}
  body.v111-battle-active .v106-effect-asset:has(small)>img{transform:translateX(-1px)!important}
  body.v111-battle-active .v106-effect-asset small{
    top:50%!important;
    right:1px!important;
    bottom:auto!important;
    display:grid!important;
    place-items:center!important;
    width:12px!important;
    min-width:12px!important;
    height:12px!important;
    min-height:12px!important;
    padding:0!important;
    border:1px solid rgba(231,197,100,.58)!important;
    border-radius:50%!important;
    background:#081115!important;
    color:#f3e7bc!important;
    box-shadow:0 1px 4px rgba(0,0,0,.55)!important;
    font:900 6.5px/10px Arial,sans-serif!important;
    transform:translateY(-50%)!important;
  }

  /* Compact journal: no UROН/СОБЫТИЕ labels, one text line plus a quiet time stamp. */
  body.v111-battle-active .v101-battle-log{grid-template-rows:42px minmax(0,1fr)!important}
  body.v111-battle-active .v101-battle-log .v79-log-head{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    padding:5px 9px!important;
    overflow:hidden!important;
  }
  body.v111-battle-active .v111-log-title{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
  body.v111-battle-active .v111-log-title>.v83-ui-icon{flex:0 0 25px!important;width:25px!important;height:25px!important}
  body.v111-battle-active .v111-log-title>div{min-width:0!important}
  body.v111-battle-active .v111-log-title h3{margin:0!important;font:700 12px/1.05 Georgia,serif!important;white-space:nowrap!important}
  body.v111-battle-active .v111-log-title small{display:block!important;margin-top:2px!important;font-size:6.5px!important;line-height:1!important}
  body.v111-battle-active .v101-battle-log .v79-log-head>button{height:28px!important;min-height:28px!important;padding:4px 9px!important;font-size:8px!important}
  body.v111-battle-active .v101-battle-log .battle-log-scroll{padding:4px 7px 7px!important;gap:4px!important}
  body.v111-battle-active .v101-battle-log .v106-log-entry{
    position:relative!important;
    display:grid!important;
    grid-template-columns:25px minmax(0,1fr)!important;
    align-items:center!important;
    gap:7px!important;
    min-height:43px!important;
    padding:6px 7px!important;
    border:0!important;
    border-left:2px solid rgba(145,163,156,.58)!important;
    border-radius:8px!important;
    background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.012))!important;
    contain:layout paint!important;
  }
  body.v111-battle-active .v101-battle-log .v102-log-icon{width:25px!important;height:25px!important;border:0!important;background:rgba(4,10,13,.42)!important}
  body.v111-battle-active .v101-battle-log .v102-log-icon>*{width:14px!important;height:14px!important}
  body.v111-battle-active .v102-log-copy{position:relative!important;min-width:0!important;padding-right:34px!important;overflow:hidden!important}
  body.v111-battle-active .v111-log-time{position:absolute!important;top:0!important;right:0!important;color:#74827d!important;font-size:6px!important;line-height:1!important;white-space:nowrap!important}
  body.v111-battle-active .v101-battle-log .v106-log-entry p{margin:0!important;color:#c6cfcb!important;font-size:8.4px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
  body.v111-battle-active .v101-battle-log mark{padding:0 1px!important;border:0!important;background:transparent!important;font-weight:900!important}

  /* An attack acknowledges the touch immediately while the server confirms the result. */
  body.v111-action-pending .v79-turn{border-color:rgba(231,197,100,.48)!important}
  body.v111-action-pending .v79-turn-icon{animation:v111-pending 1s ease-in-out infinite!important}
  body.v111-battle-active .v101-monster-card.v111-action-sent{box-shadow:inset 0 0 0 1px rgba(231,197,100,.55),0 0 18px rgba(231,197,100,.12)!important}

  /* Styled game/APK update card. */
  body.v111-ui .v87-update-overlay{background:rgba(2,8,11,.84)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  body.v111-ui .v87-update-card{
    position:relative!important;
    width:min(380px,calc(100vw - 28px))!important;
    padding:20px 18px 16px!important;
    overflow:hidden!important;
    border:1px solid rgba(231,197,100,.48)!important;
    border-radius:22px!important;
    background:radial-gradient(circle at 86% 0,rgba(103,216,201,.13),transparent 34%),linear-gradient(155deg,#102126,#071116 72%)!important;
    box-shadow:0 24px 80px rgba(0,0,0,.68),inset 0 1px 0 rgba(255,255,255,.07)!important;
  }
  body.v111-ui .v87-update-card::before{content:"";position:absolute;top:0;right:16px;left:16px;height:2px;background:linear-gradient(90deg,transparent,#e7c564,transparent)}
  body.v111-ui .v87-update-card small{color:#67d8c9!important;font-size:8px!important;letter-spacing:.18em!important}
  body.v111-ui .v87-update-card h2{margin:8px 0 10px!important;color:#f1ead7!important;font:700 22px/1.12 Georgia,serif!important}
  body.v111-ui .v87-update-card p{color:#aebdb7!important;font-size:10px!important;line-height:1.55!important}
  body.v111-ui .v87-update-actions{display:grid!important;grid-template-columns:1fr 1.35fr!important;gap:8px!important;margin-top:16px!important}
  body.v111-ui .v87-update-actions button{min-height:42px!important;border-radius:12px!important;font-size:10px!important;font-weight:900!important}
  body.v111-ui .v87-update-actions [data-update-now]{border-color:rgba(231,197,100,.62)!important;background:linear-gradient(180deg,#d9bd65,#8f7434)!important;color:#091014!important}
}

@keyframes v111-edge-hint{0%,72%,100%{transform:translateX(0);opacity:.62}82%{transform:translateX(3px);opacity:1}91%{transform:translateX(0);opacity:.78}}
@keyframes v111-edge-hint-right{0%,72%,100%{transform:translateX(0);opacity:.62}82%{transform:translateX(-3px);opacity:1}91%{transform:translateX(0);opacity:.78}}
@keyframes v111-up-hint{0%,70%,100%{transform:translateY(0);opacity:.68}80%{transform:translateY(-3px);opacity:1}90%{transform:translateY(0);opacity:.8}}
@keyframes v111-pending{0%,100%{transform:scale(1);filter:brightness(1)}50%{transform:scale(.93);filter:brightness(1.22)}}

@media (prefers-reduced-motion:reduce){
  body.v111-ui .v108-chevron,
  body.v111-ui .v110-support-label i,
  body.v111-action-pending .v79-turn-icon{animation:none!important}
}

/* ---- css/v112-world-ui.css ---- */
/* Aldos RPG v112 — unified controls with cheap, touch-first feedback. */

body.v112-ui{
  --v112-ink:#071014;
  --v112-panel:#0d1c20;
  --v112-panel-hi:#142a2d;
  --v112-gold:#e8c76b;
  --v112-mint:#63d7bd;
  --v112-red:#e16f69;
  --v112-stroke:rgba(132,161,153,.28);
}

body.v112-ui button{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

/* Main navigation: every icon owns a stable square and labels no longer jump. */
body.v112-ui .v76-bottom-nav button,
body.v112-ui .v76-side-nav button{
  box-sizing:border-box!important;
  border:1px solid transparent!important;
  color:#c9d4cf!important;
  transition:transform .12s ease,border-color .12s ease,background-color .12s ease!important;
}

body.v112-ui .v76-bottom-nav button:active,
body.v112-ui .v76-side-nav button:active,
body.v112-ui .v38-mob-actions button:active{
  transform:scale(.975)!important;
}

body.v112-ui .v76-bottom-nav button .nav-glyph,
body.v112-ui .v76-side-nav button .v83-side-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  border:1px solid rgba(232,199,107,.22)!important;
  background:linear-gradient(145deg,rgba(232,199,107,.09),rgba(99,215,189,.04))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}

body.v112-ui .v76-bottom-nav button.active,
body.v112-ui .v76-side-nav button.active{
  border-color:rgba(232,199,107,.38)!important;
  background:linear-gradient(100deg,rgba(232,199,107,.13),rgba(99,215,189,.055))!important;
  color:#f2e7c5!important;
}

body.v112-ui .v76-side-nav{
  gap:7px!important;
  padding:8px 10px max(16px,env(safe-area-inset-bottom))!important;
}

body.v112-ui .v76-side-nav button{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  min-height:54px!important;
  padding:6px 12px 6px 7px!important;
  border-radius:15px!important;
  background:linear-gradient(110deg,rgba(255,255,255,.035),rgba(255,255,255,.012))!important;
  text-align:left!important;
}

body.v112-ui .v76-side-nav button .v83-side-icon{
  width:38px!important;
  height:38px!important;
  border-radius:12px!important;
}

body.v112-ui .v76-side-nav button span{
  overflow:hidden!important;
  font-size:13px!important;
  font-weight:750!important;
  letter-spacing:.015em!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

body.v112-ui .v76-side-nav button.danger{
  border-color:rgba(225,111,105,.22)!important;
  color:#efaaa5!important;
  background:rgba(89,31,31,.13)!important;
}

/* Location and modal action buttons use the same visual language as combat. */
body.v112-ui .v38-mob-actions{
  gap:8px!important;
}



body.v112-ui .v38-mob-actions button.ghost{
  border-color:var(--v112-stroke)!important;
  background:linear-gradient(180deg,var(--v112-panel-hi),var(--v112-panel))!important;
  color:#d8e2de!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}

@media (max-width:760px){
  /* Edge controls remain visible and unmistakable without occupying the cards. */
  body.v112-ui.v111-battle-active .v108-swipe-handle.side{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:88px!important;
    min-height:88px!important;
    max-height:88px!important;
    border-color:rgba(232,199,107,.62)!important;
    background:radial-gradient(circle at 50% 28%,rgba(99,215,189,.13),transparent 42%),linear-gradient(180deg,#14292c,#071014)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.08)!important;
  }

  body.v112-ui.v111-battle-active .v108-swipe-handle.side:active,
  body.v112-ui.v111-battle-active #support-drawer-open:active{
    filter:brightness(1.15)!important;
  }

  body.v112-ui.v111-battle-active .v111-handle-icon{
    width:27px!important;
    height:27px!important;
    border:1px solid rgba(232,199,107,.28)!important;
    border-radius:9px!important;
    background:rgba(4,11,14,.5)!important;
  }

  body.v112-ui.v111-battle-active .v111-handle-icon img{
    width:23px!important;
    height:23px!important;
    max-width:23px!important;
  }

  body.v112-ui.v111-battle-active .v111-handle-label{
    color:#f1e9d2!important;
    font-size:7.5px!important;
    letter-spacing:.06em!important;
  }

  body.v112-ui.v111-battle-active #support-drawer-open.v108-swipe-handle.bottom{
    min-height:52px!important;
    max-height:52px!important;
    border-radius:18px!important;
    background:radial-gradient(circle at 50% 120%,rgba(99,215,189,.12),transparent 48%),linear-gradient(180deg,#14292c,#071014)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.08),0 0 20px rgba(232,199,107,.07)!important;
  }

  body.v112-ui.v111-battle-active #support-drawer-open .v110-support-label b{
    color:#f0e7cb!important;
    font-size:11px!important;
    letter-spacing:.055em!important;
  }

  /* Attack is a deliberate, readable target action instead of an anonymous dark disc. */
  body.v112-ui.v111-battle-active .v106-round-attack{
    width:54px!important;
    min-width:54px!important;
    height:54px!important;
    min-height:54px!important;
    border:2px solid rgba(240,203,102,.82)!important;
    background:radial-gradient(circle at 38% 30%,#425b56 0,#173136 36%,#081216 72%)!important;
    box-shadow:0 0 0 5px rgba(6,16,20,.68),0 10px 24px rgba(0,0,0,.48),0 0 18px rgba(232,199,107,.15)!important;
    transition:transform .1s ease,filter .1s ease!important;
  }

  body.v112-ui.v111-battle-active .v106-round-attack:active{
    transform:scale(.91)!important;
    filter:brightness(1.24)!important;
  }

  body.v112-ui.v111-battle-active .v106-round-attack>*,
  body.v112-ui.v111-battle-active .v106-round-attack img{
    width:29px!important;
    height:29px!important;
    max-width:29px!important;
  }

  body.v112-ui.v111-battle-active .v102-skill-cast{
    width:100%!important;
    min-height:48px!important;
    margin-top:10px!important;
  }

  body.v112-ui.v111-battle-active .v102-skill-card,
  body.v112-ui.v111-battle-active .v81-potion-card{
    border-color:rgba(132,161,153,.28)!important;
    background:linear-gradient(145deg,rgba(22,44,47,.96),rgba(7,17,21,.98))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 7px 16px rgba(0,0,0,.22)!important;
  }

  body.v112-ui.v111-battle-active .v101-cd-badge,
  body.v112-ui.v111-battle-active .v81-potion-art em{
    display:grid!important;
    place-items:center!important;
    min-width:17px!important;
    height:17px!important;
    padding:0 3px!important;
    border:1px solid rgba(232,199,107,.72)!important;
    border-radius:9px!important;
    background:#071014!important;
    color:#f5e7bb!important;
    box-shadow:0 2px 7px rgba(0,0,0,.55)!important;
    font-size:9px!important;
    font-weight:900!important;
    line-height:1!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.v112-ui button{transition:none!important}
}

/* ---- css/v113-drawers-fast.css ---- */
/* Aldos RPG v113 — compact handles, reversible drawers, clean effects. */

body.v113-ui .v108-swipe-handle[hidden],
body.v113-ui.v113-panel-open .v108-swipe-handle{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

body.v113-ui.v111-action-pending .v79-turn-icon,
body.v113-ui.v111-action-pending .v106-round-attack,
body.v113-ui .v111-action-sent{
  animation:none!important;
}

body.v113-ui .v111-action-sent{
  filter:brightness(1.08)!important;
  box-shadow:0 0 0 2px rgba(91,211,184,.22)!important;
}

@media (max-width:760px){
  /* The shade is an invisible click target. It can never become a grey screen. */
  body.v113-ui .v17-drawer-fade,
  body.v113-ui .v17-drawer-fade.open,
  body.v113-ui .v17-drawer-fade.drag-preview{
    background:transparent!important;
    opacity:0!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    animation:none!important;
  }

  /* Side handles contain only a direction and an asset. */
  body.v113-ui.v111-battle-active .v108-swipe-handle.side.v113-icon-handle{
    top:var(--v111-side-handle-top)!important;
    display:grid!important;
    grid-template-rows:12px 25px!important;
    place-items:center!important;
    gap:2px!important;
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    padding:4px 3px 5px!important;
    border-color:rgba(232,199,107,.52)!important;
    border-radius:0 13px 13px 0!important;
    background:linear-gradient(180deg,#14292d,#071014)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.07)!important;
  }

  body.v113-ui.v111-battle-active #chat-drawer-open.v113-icon-handle{
    border-radius:13px 0 0 13px!important;
  }

  body.v113-ui .v113-icon-handle .v111-handle-label{display:none!important}
  body.v113-ui .v113-icon-handle .v108-chevron{
    display:block!important;
    height:11px!important;
    color:#e8c76b!important;
    font:900 15px/10px Arial,sans-serif!important;
    animation:none!important;
  }
  body.v113-ui .v113-icon-handle .v111-handle-icon{
    width:25px!important;
    height:25px!important;
    border:0!important;
    border-radius:8px!important;
    background:rgba(3,10,13,.36)!important;
  }
  body.v113-ui .v113-icon-handle .v111-handle-icon img{
    width:22px!important;
    height:22px!important;
    max-width:22px!important;
  }

  /* Wide bottom control remains the only handle with a text label. */
  body.v113-ui.v111-battle-active #support-drawer-open.v108-swipe-handle.bottom{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    height:50px!important;
    min-height:50px!important;
    max-height:50px!important;
  }
  body.v113-ui #support-drawer-open .v110-support-label{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
  }
  body.v113-ui #support-drawer-open .v113-support-caret{
    position:relative!important;
    display:block!important;
    width:14px!important;
    height:10px!important;
    animation:none!important;
    transform:none!important;
  }
  body.v113-ui #support-drawer-open .v113-support-caret::before,
  body.v113-ui #support-drawer-open .v113-support-caret::after{
    content:""!important;
    position:absolute!important;
    top:4px!important;
    width:9px!important;
    height:2px!important;
    border-radius:2px!important;
    background:#e8c76b!important;
  }
  body.v113-ui #support-drawer-open .v113-support-caret::before{left:0!important;transform:rotate(-38deg)!important}
  body.v113-ui #support-drawer-open .v113-support-caret::after{right:0!important;transform:rotate(38deg)!important}
  body.v113-ui #support-drawer-open .v113-support-caret u{display:none!important}

  /* Smaller skill sheet: no automatic giant detail card and no stretched slots. */
  body.v113-ui .v102-skill-drawer{
    width:min(64vw,410px)!important;
    min-width:min(300px,82vw)!important;
    max-width:410px!important;
    background:#08171a!important;
  }
  body.v113-ui .v102-skill-head{
    min-height:54px!important;
    padding:8px 10px!important;
  }
  body.v113-ui .v102-skill-head>div>small,
  body.v113-ui .v102-skill-head>div>span{display:none!important}
  body.v113-ui .v102-skill-head>div>b{font-size:17px!important}
  body.v113-ui .v102-skill-scroll{
    gap:7px!important;
    padding:8px 10px 16px!important;
  }
  body.v113-ui .v102-skill-section{
    padding:0 0 7px!important;
  }
  body.v113-ui .v106-ready-title,
  body.v113-ui .v106-skill-section-head{
    min-height:34px!important;
    height:34px!important;
    grid-template-columns:minmax(0,1fr) 34px 28px!important;
    gap:5px!important;
    padding:2px 0!important;
  }
  body.v113-ui .v106-ready-title{grid-template-columns:minmax(0,1fr) 34px!important}
  body.v113-ui .v106-ready-title h3,
  body.v113-ui .v106-skill-section-head h3{
    font:800 10px/1.1 Georgia,serif!important;
    letter-spacing:.035em!important;
  }
  body.v113-ui .v106-ready-title span,
  body.v113-ui .v106-skill-section-head span{
    width:32px!important;
    height:23px!important;
    font-size:9px!important;
  }
  body.v113-ui .v106-skill-section-head i{
    width:25px!important;
    height:25px!important;
    font-size:10px!important;
  }
  body.v113-ui .v102-skill-drawer .v102-skill-grid,
  body.v113-ui .v102-skill-drawer .v102-skill-grid.compact{
    grid-template-columns:repeat(4,52px)!important;
    justify-content:start!important;
    gap:7px!important;
  }
  body.v113-ui .v102-skill-card.v103-icon-only{
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    aspect-ratio:auto!important;
    border-radius:14px!important;
  }
  body.v113-ui .v102-skill-card .v101-skill-main,
  body.v113-ui .v102-skill-card .v101-skill-art{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
  }
  body.v113-ui .v102-skill-card .v101-skill-art{padding:4px!important}
  body.v113-ui .v102-skill-detail{
    margin:2px 0 0!important;
    padding:10px!important;
    border-radius:15px!important;
  }
  body.v113-ui .v113-skill-hint{
    margin-top:2px!important;
    padding:8px 10px!important;
    border:1px dashed rgba(99,215,189,.22)!important;
    border-radius:12px!important;
    color:#879994!important;
    font-size:9px!important;
    line-height:1.35!important;
  }
  body.v113-ui .v102-skill-detail-head{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:9px!important;
  }
  body.v113-ui .v102-skill-detail-head>span{width:50px!important;height:50px!important}
  body.v113-ui .v102-skill-detail-head h4{font-size:16px!important;line-height:1.05!important}
  body.v113-ui .v102-skill-description{margin:8px 0 5px!important;font-size:10px!important;line-height:1.35!important}
  body.v113-ui .v102-skill-feature{padding:7px 8px!important;font-size:9.5px!important;line-height:1.3!important}
  body.v113-ui .v102-skill-target{padding:7px 0!important;font-size:9px!important}
  body.v113-ui .v102-skill-cast{min-height:40px!important;margin-top:4px!important}

  /* Large edge strips make reverse swipes easy without stealing drawer scroll. */
  body.v113-ui .v108-drawer-grip.side{
    top:24%!important;
    bottom:24%!important;
    width:28px!important;
    height:auto!important;
    min-height:120px!important;
    border-color:rgba(232,199,107,.36)!important;
    background:linear-gradient(180deg,rgba(16,36,39,.82),rgba(5,14,18,.9))!important;
  }
  body.v113-ui .v108-drawer-grip.left{right:-14px!important}
  body.v113-ui .v108-drawer-grip.right{left:-14px!important}

  /* Effect layout: icon owns the left cell, duration owns the right cell. */
  body.v113-ui.v111-battle-active .v106-effect-asset.v113-effect-asset{
    position:relative!important;
    display:grid!important;
    grid-template-columns:23px 15px!important;
    align-items:center!important;
    gap:2px!important;
    width:43px!important;
    min-width:43px!important;
    max-width:43px!important;
    height:31px!important;
    min-height:31px!important;
    padding:3px!important;
    overflow:hidden!important;
  }
  body.v113-ui .v113-effect-icon{
    display:grid!important;
    place-items:center!important;
    width:23px!important;
    height:23px!important;
    overflow:hidden!important;
    border-radius:7px!important;
  }
  body.v113-ui .v113-effect-icon>*,
  body.v113-ui .v113-effect-icon img{
    width:21px!important;
    height:21px!important;
    max-width:21px!important;
    transform:none!important;
  }
  body.v113-ui .v113-effect-turns{
    position:static!important;
    display:grid!important;
    place-items:center!important;
    width:15px!important;
    min-width:15px!important;
    height:17px!important;
    min-height:17px!important;
    padding:0!important;
    border:0!important;
    border-left:1px solid rgba(232,199,107,.28)!important;
    border-radius:0!important;
    background:transparent!important;
    color:#f2dfaa!important;
    box-shadow:none!important;
    font:900 8px/1 Arial,sans-serif!important;
    transform:none!important;
  }
}

@media (max-width:390px){
  body.v113-ui .v102-skill-drawer{width:76vw!important;min-width:276px!important}
  body.v113-ui .v102-skill-drawer .v102-skill-grid,
  body.v113-ui .v102-skill-drawer .v102-skill-grid.compact{grid-template-columns:repeat(4,48px)!important;gap:6px!important}
  body.v113-ui .v102-skill-card.v103-icon-only{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important}
}

@media (prefers-reduced-motion:reduce){
  body.v113-ui .v79-drawer,
  body.v113-ui .v81-support-drawer{transition-duration:.01ms!important}
}

/* ---- css/v114-mobile-battle-polish.css ---- */
/* Aldos RPG v114 — final mobile drawer, skill, effect and log layer. */

html body.v114-ui.v114-panel-open #skills-drawer-open,
html body.v114-ui.v114-panel-open #chat-drawer-open,
html body.v114-ui.v114-panel-open #support-drawer-open,
html body.v114-ui #skills-drawer-open[hidden],
html body.v114-ui #chat-drawer-open[hidden],
html body.v114-ui #support-drawer-open[hidden]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

@media (max-width:760px){
  body.v114-ui .v17-drawer-fade,
  body.v114-ui .v17-drawer-fade.open,
  body.v114-ui .v17-drawer-fade.drag-preview{
    background:transparent!important;
    opacity:0!important;
    backdrop-filter:none!important;
  }

  body.v114-ui.v111-battle-active .v108-swipe-handle.side{
    top:var(--v111-side-handle-top)!important;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    padding:3px!important;
  }

  body.v114-ui .v102-skill-drawer{
    width:min(83vw,440px)!important;
    min-width:min(300px,83vw)!important;
    max-width:440px!important;
    overflow:visible!important;
  }

  

  body.v114-ui .v102-skill-scroll{
    gap:10px!important;
    padding:10px 12px calc(22px + env(safe-area-inset-bottom,0px))!important;
  }

  body.v114-ui .v102-skill-drawer .v102-skill-grid,
  body.v114-ui .v102-skill-drawer .v102-skill-grid.compact{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(66px,84px))!important;
    grid-auto-rows:auto!important;
    justify-content:start!important;
    align-items:start!important;
    gap:9px!important;
  }

  body.v114-ui .v102-skill-drawer .v102-skill-card.v103-icon-only,
  body.v114-ui .v102-skill-drawer .v102-skill-card.v103-icon-only.cooldown,
  body.v114-ui .v102-skill-drawer .v102-skill-card.v103-icon-only.passive{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:84px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    overflow:hidden!important;
    border-radius:15px!important;
  }

  body.v114-ui .v102-skill-drawer .v102-skill-card.v103-icon-only .v101-skill-main{
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    padding:5px!important;
    overflow:hidden!important;
  }

  body.v114-ui .v102-skill-drawer .v102-skill-card.v103-icon-only .v101-skill-art{
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    padding:3px!important;
    overflow:hidden!important;
    border:1px solid rgba(99,215,189,.2)!important;
    border-radius:11px!important;
    background:radial-gradient(circle at 50% 42%,rgba(99,215,189,.11),rgba(3,10,13,.72))!important;
  }

  body.v114-ui .v102-skill-drawer .v101-skill-art>*,
  body.v114-ui .v102-skill-drawer .v101-skill-art img{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:7px!important;
    clip-path:none!important;
    transform:none!important;
  }

  body.v114-ui .v102-skill-detail{
    padding:11px!important;
    margin-top:4px!important;
    border-radius:15px!important;
  }

  body.v114-ui .v113-skill-hint{
    margin-top:5px!important;
    padding:10px 11px!important;
    font-size:10px!important;
  }

  /* The inner tabs are both visible close controls and full drag handles. */
  body.v114-ui .v108-drawer-grip.side{
    z-index:999!important;
    top:58%!important;
    bottom:auto!important;
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    min-width:34px!important;
    height:66px!important;
    min-height:66px!important;
    padding:0!important;
    border:1px solid rgba(232,199,107,.62)!important;
    background:linear-gradient(180deg,#173035,#071014)!important;
    color:#efd574!important;
    box-shadow:0 8px 20px rgba(0,0,0,.52)!important;
    font:900 24px/1 Arial,sans-serif!important;
  }
  body.v114-ui .v108-drawer-grip.left{right:-17px!important;border-radius:0 14px 14px 0!important}
  body.v114-ui .v108-drawer-grip.right{left:-17px!important;border-radius:14px 0 0 14px!important}
  body.v114-ui .v108-drawer-grip.bottom{
    z-index:999!important;
    top:-17px!important;
    display:grid!important;
    place-items:center!important;
    width:104px!important;
    height:32px!important;
    border-color:rgba(232,199,107,.58)!important;
    background:#0c2024!important;
    color:#efd574!important;
  }

  /* A status is one square asset; its turn count is a small corner badge. */
  body.v114-ui.v111-battle-active .v106-effect-asset.v113-effect-asset{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding:3px!important;
    overflow:visible!important;
    border-radius:10px!important;
  }
  body.v114-ui .v113-effect-icon{
    display:grid!important;
    place-items:center!important;
    width:27px!important;
    height:27px!important;
    overflow:hidden!important;
    border-radius:7px!important;
  }
  body.v114-ui .v113-effect-icon>*,
  body.v114-ui .v113-effect-icon img{
    width:25px!important;
    height:25px!important;
    max-width:25px!important;
    object-fit:contain!important;
    clip-path:none!important;
    transform:none!important;
  }
  body.v114-ui .v113-effect-turns{
    position:absolute!important;
    z-index:4!important;
    right:-3px!important;
    bottom:-3px!important;
    display:grid!important;
    place-items:center!important;
    width:14px!important;
    min-width:14px!important;
    height:14px!important;
    min-height:14px!important;
    padding:0!important;
    border:1px solid rgba(243,218,145,.8)!important;
    border-radius:50%!important;
    background:#071014!important;
    color:#fff0be!important;
    box-shadow:0 2px 5px rgba(0,0,0,.65)!important;
    font:900 7.5px/1 Arial,sans-serif!important;
  }

  body.v114-ui .v101-unit-effects,
  body.v114-ui .v101-monster-card .v101-unit-effects{
    gap:6px!important;
    padding:3px 5px 5px!important;
    overflow:visible!important;
  }

  body.v114-ui .v101-battle-log .v106-log-entry{animation:none!important}
  body.v114-ui .v101-battle-log .v106-log-entry.v114-log-enter{
    animation:v114-log-enter .24s cubic-bezier(.18,.78,.24,1) var(--v114-log-delay,0ms) both!important;
  }
}

@keyframes v114-log-enter{
  from{opacity:0;transform:translate3d(0,-9px,0) scale(.985)}
  to{opacity:1;transform:translate3d(0,0,0) scale(1)}
}

@media (max-width:370px){
  body.v114-ui .v102-skill-drawer .v102-skill-grid,
  body.v114-ui .v102-skill-drawer .v102-skill-grid.compact{
    grid-template-columns:repeat(3,minmax(62px,78px))!important;
    gap:7px!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.v114-ui .v101-battle-log .v106-log-entry.v114-log-enter{animation:none!important}
}

/* ---- css/v115-mobile-battle-input-assets.css ---- */
/* Aldos RPG v115 — reliable mobile input, dedicated ability art and compact combat effects. */

body.v115-ui{
  --v115-effect-size:28px;
  --v115-effect-gap:5px;
  --v115-gold:#e7c564;
  --v115-panel:#07161a;
}

/* Dedicated skill art is never replaced by a generic UI glyph. */
body.v115-ui .v115-ability-image,
body.v115-ui .v115-ability-card-image,
body.v115-ui .v115-ability-detail-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  clip-path:none!important;
  transform:none!important;
  filter:none!important;
}
body.v115-ui .v115-ability-card-icon{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
body.v115-ui .v115-ability-card-icon .v115-ability-card-image{
  width:86%!important;
  height:86%!important;
}
body.v115-ui .v115-ability-detail-icon{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
body.v115-ui .v115-ability-detail-image{
  width:90%!important;
  height:90%!important;
}

@media (max-width:760px){
  /* The help bar is a real fourth battle row directly below the journal. */
  body.v115-ui.v111-battle-active .v101-battle{
    grid-template-rows:var(--v110-turn-h,var(--v109-turn-h,70px)) var(--v110-roster-h,var(--v109-roster-h,184px)) minmax(0,1fr) auto!important;
    padding-bottom:var(--v110-safe-bottom,var(--v109-safe-bottom,max(8px,env(safe-area-inset-bottom))))!important;
  }
  html body.v115-ui.v111-battle-active #support-drawer-open.v115-support-under-log{
    position:relative!important;
    inset:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    z-index:12!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    margin:0!important;
    transform:none!important;
  }

  html body.v115-ui.v111-battle-active.v109-drawer-open #support-drawer-open.v115-support-under-log,
  html body.v115-ui.v111-battle-active.v113-panel-open #support-drawer-open.v115-support-under-log,
  html body.v115-ui.v111-battle-active.v114-panel-open #support-drawer-open.v115-support-under-log,
  html body.v115-ui.v111-battle-active #support-drawer-open.v115-support-under-log[hidden]{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  /* Small, evenly spaced status tiles. Every timed effect owns a badge inside its corner. */
  body.v115-ui.v111-battle-active .v101-unit-effects,
  body.v115-ui.v111-battle-active .v101-monster-card .v101-unit-effects{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:var(--v115-effect-gap)!important;
    min-width:0!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    padding:1px 4px!important;
    overflow:hidden!important;
  }
  body.v115-ui.v111-battle-active .v106-effect-asset.v113-effect-asset,
  body.v115-ui.v111-battle-active .v106-effect-asset.v113-effect-asset.more{
    position:relative!important;
    flex:0 0 var(--v115-effect-size)!important;
    display:grid!important;
    place-items:center!important;
    grid-template-columns:1fr!important;
    width:var(--v115-effect-size)!important;
    min-width:var(--v115-effect-size)!important;
    max-width:var(--v115-effect-size)!important;
    height:var(--v115-effect-size)!important;
    min-height:var(--v115-effect-size)!important;
    max-height:var(--v115-effect-size)!important;
    padding:2px!important;
    gap:0!important;
    overflow:hidden!important;
    border-radius:8px!important;
  }
  body.v115-ui .v113-effect-icon{
    display:grid!important;
    place-items:center!important;
    width:23px!important;
    min-width:23px!important;
    max-width:23px!important;
    height:23px!important;
    min-height:23px!important;
    max-height:23px!important;
    overflow:hidden!important;
    border-radius:6px!important;
  }
  body.v115-ui .v113-effect-icon>*,
  body.v115-ui .v113-effect-icon img{
    display:block!important;
    width:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    object-fit:contain!important;
    object-position:center!important;
    clip-path:none!important;
    transform:none!important;
  }
  body.v115-ui .v113-effect-turns{
    position:absolute!important;
    z-index:5!important;
    right:1px!important;
    bottom:1px!important;
    top:auto!important;
    display:grid!important;
    place-items:center!important;
    width:12px!important;
    min-width:12px!important;
    max-width:12px!important;
    height:12px!important;
    min-height:12px!important;
    max-height:12px!important;
    padding:0!important;
    border:1px solid rgba(243,218,145,.86)!important;
    border-radius:50%!important;
    background:rgba(4,12,15,.97)!important;
    color:#fff0be!important;
    box-shadow:0 1px 4px rgba(0,0,0,.72)!important;
    font:900 7px/1 Arial,sans-serif!important;
    transform:none!important;
  }

  /* Cooldown keeps the dedicated icon visible: only its edges blur, the timer is centred. */
  body.v115-ui .v102-skill-card .v101-skill-main{position:relative!important}
  body.v115-ui .v115-cooldown-edge{
    position:absolute!important;
    z-index:3!important;
    inset:4px!important;
    pointer-events:none!important;
    border-radius:10px!important;
    background:radial-gradient(circle at 50% 50%,transparent 0 29%,rgba(3,10,13,.18) 45%,rgba(3,10,13,.82) 100%)!important;
    -webkit-backdrop-filter:blur(1.6px)!important;
    backdrop-filter:blur(1.6px)!important;
    -webkit-mask-image:radial-gradient(circle at 50% 50%,transparent 0 28%,#000 57%)!important;
    mask-image:radial-gradient(circle at 50% 50%,transparent 0 28%,#000 57%)!important;
  }
  body.v115-ui .v115-cooldown-count{
    position:absolute!important;
    z-index:5!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    left:50%!important;
    display:grid!important;
    place-items:center!important;
    width:29px!important;
    min-width:29px!important;
    height:29px!important;
    min-height:29px!important;
    padding:0!important;
    border:1px solid rgba(235,207,119,.78)!important;
    border-radius:50%!important;
    background:rgba(4,12,15,.82)!important;
    color:#fff1ba!important;
    box-shadow:0 4px 12px rgba(0,0,0,.58),inset 0 0 0 2px rgba(255,255,255,.04)!important;
    font:900 15px/1 Arial,sans-serif!important;
    transform:translate(-50%,-50%)!important;
  }

  /* Clear close arrows and comfortable reverse-swipe surfaces. */
  body.v115-ui .v108-drawer-grip.side{
    top:50%!important;
    bottom:auto!important;
    display:grid!important;
    place-items:center!important;
    width:38px!important;
    min-width:38px!important;
    height:68px!important;
    min-height:68px!important;
    padding:0!important;
    border-color:rgba(232,199,107,.62)!important;
    background:linear-gradient(180deg,rgba(18,42,44,.98),rgba(5,15,19,.98))!important;
    box-shadow:0 8px 22px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06)!important;
    color:#f2d77c!important;
    transform:translateY(-50%)!important;
    touch-action:none!important;
  }
  body.v115-ui .v108-drawer-grip.left{right:-19px!important;border-radius:0 15px 15px 0!important}
  body.v115-ui .v108-drawer-grip.right{left:-19px!important;border-radius:15px 0 0 15px!important}
  body.v115-ui .v108-drawer-grip.side>span{
    display:block!important;
    color:#f2d77c!important;
    font:900 25px/1 Arial,sans-serif!important;
    text-shadow:0 2px 8px rgba(231,197,100,.28)!important;
    transform:none!important;
  }
  body.v115-ui.v111-battle-active .v108-swipe-handle.side{
    width:38px!important;
    min-width:38px!important;
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
    grid-template-rows:18px 30px!important;
    padding:6px 4px!important;
  }

  /* Keep ability art centred in both the drawer and the full Skills screen. */
  body.v115-ui .v102-skill-drawer .v101-skill-art .v115-ability-image{
    width:96%!important;
    height:96%!important;
  }
  body.v115-ui .ability-card .v115-ability-card-icon{
    width:54px!important;
    height:54px!important;
    padding:3px!important;
    border-radius:12px!important;
  }

  /* Compact selector: two tidy columns for up to four players/targets. */
  body.v115-ui .v106-target-backdrop{
    padding:max(12px,env(safe-area-inset-top)) 10px max(16px,env(safe-area-inset-bottom))!important;
    background:rgba(2,8,11,.66)!important;
    -webkit-backdrop-filter:blur(2px)!important;
    backdrop-filter:blur(2px)!important;
  }
  body.v115-ui .v106-target-dialog{
    width:min(92vw,390px)!important;
    max-width:390px!important;
    max-height:min(78dvh,520px)!important;
    padding:9px!important;
    border-radius:15px!important;
  }
  body.v115-ui .v106-target-dialog>header{padding-bottom:7px!important}
  body.v115-ui .v106-target-dialog>p{margin:6px 0!important;font-size:8.5px!important}
  body.v115-ui .v106-target-grid{
    display:grid!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;
    gap:7px!important;
    width:100%!important;
    padding:1px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scroll-snap-type:none!important;
  }
  body.v115-ui .v106-target-grid:has(.v106-target-card:only-child){
    grid-template-columns:minmax(0,230px)!important;
    justify-content:center!important;
  }
  body.v115-ui .v106-target-card{
    grid-template-columns:46px minmax(0,1fr)!important;
    width:auto!important;
    min-width:0!important;
    min-height:72px!important;
    padding:6px!important;
    gap:6px!important;
    border-radius:10px!important;
  }
  body.v115-ui .v106-target-art{
    width:46px!important;
    min-width:46px!important;
    height:58px!important;
    min-height:58px!important;
    padding:1px!important;
  }
  body.v115-ui .v106-target-art>*,
  body.v115-ui .v106-target-art img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
  }
  body.v115-ui .v106-target-copy>b{font-size:8.5px!important}
  body.v115-ui .v106-target-copy>small{font-size:6px!important}

  /* Selecting a monster no longer erases the asset under a large opaque panel. */
  body.v115-ui.v111-battle-active .v101-monster-card.selected-target .v101-unit-art,
  body.v115-ui.v111-battle-active .v101-monster-card.selected-target>.v101-resource{
    opacity:.72!important;
    filter:none!important;
  }
  body.v115-ui.v111-battle-active .v106-monster-action-overlay{
    top:23px!important;
    right:7px!important;
    bottom:34px!important;
    left:7px!important;
    border-color:rgba(231,197,100,.34)!important;
    background:radial-gradient(circle at center,rgba(5,14,18,.18),rgba(5,14,18,.38))!important;
    -webkit-backdrop-filter:blur(1px)!important;
    backdrop-filter:blur(1px)!important;
  }
  body.v115-ui.v111-battle-active .v106-round-attack{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    padding:8px!important;
  }
  body.v115-ui.v111-battle-active .v106-round-attack>*{
    width:30px!important;
    height:30px!important;
  }
}

@media (max-width:370px){
  body.v115-ui{--v115-effect-size:27px;--v115-effect-gap:4px}
  body.v115-ui .v106-target-card{grid-template-columns:40px minmax(0,1fr)!important;padding:5px!important;gap:5px!important}
  body.v115-ui .v106-target-art{width:40px!important;min-width:40px!important;height:54px!important;min-height:54px!important}
}

@media (prefers-reduced-motion:reduce){
  body.v115-ui .v108-swipe-handle.side .v108-chevron,
  body.v115-ui #support-drawer-open .v110-support-label i{animation:none!important}
}

/* ---- css/v116-mobile-battle-flow.css ---- */
/* Aldos RPG v116 — compact scrollable effects, inner drawer rails and faster visual battle flow. */

@media (max-width:760px){
  /* Effects: a little smaller, evenly inset from the divider, and horizontally scrollable. */
  body.v116-ui.v111-battle-active .v101-unit-effects,
  body.v116-ui.v111-battle-active .v101-monster-card .v101-unit-effects{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
    height:32px!important;
    min-height:32px!important;
    max-height:32px!important;
    margin:0!important;
    padding:3px 5px 4px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:thin!important;
    scrollbar-color:rgba(104,211,205,.76) rgba(3,12,16,.38)!important;
    scroll-snap-type:x proximity!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x!important;
  }
  body.v116-ui.v111-battle-active .v101-unit-effects::-webkit-scrollbar,
  body.v116-ui.v111-battle-active .v101-monster-card .v101-unit-effects::-webkit-scrollbar{height:3px!important}
  body.v116-ui.v111-battle-active .v101-unit-effects::-webkit-scrollbar-track,
  body.v116-ui.v111-battle-active .v101-monster-card .v101-unit-effects::-webkit-scrollbar-track{background:rgba(3,12,16,.38)!important;border-radius:999px!important}
  body.v116-ui.v111-battle-active .v101-unit-effects::-webkit-scrollbar-thumb,
  body.v116-ui.v111-battle-active .v101-monster-card .v101-unit-effects::-webkit-scrollbar-thumb{background:rgba(104,211,205,.76)!important;border-radius:999px!important}

  body.v116-ui.v111-battle-active .v106-effect-asset.v113-effect-asset{
    position:relative!important;
    flex:0 0 24px!important;
    display:grid!important;
    place-items:center!important;
    width:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    height:24px!important;
    min-height:24px!important;
    max-height:24px!important;
    margin:0!important;
    padding:1px!important;
    overflow:hidden!important;
    border-radius:8px!important;
    scroll-snap-align:start!important;
  }
  body.v116-ui .v113-effect-icon{
    display:grid!important;
    place-items:center!important;
    width:20px!important;
    min-width:20px!important;
    max-width:20px!important;
    height:20px!important;
    min-height:20px!important;
    max-height:20px!important;
    overflow:hidden!important;
    border-radius:6px!important;
  }
  body.v116-ui .v113-effect-icon>*,
  body.v116-ui .v113-effect-icon img{
    display:block!important;
    width:19px!important;
    min-width:19px!important;
    max-width:19px!important;
    height:19px!important;
    min-height:19px!important;
    max-height:19px!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
  }
  body.v116-ui .v113-effect-turns{
    position:absolute!important;
    z-index:6!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    left:auto!important;
    display:grid!important;
    place-items:center!important;
    width:10px!important;
    min-width:10px!important;
    max-width:10px!important;
    height:10px!important;
    min-height:10px!important;
    max-height:10px!important;
    padding:0!important;
    border:1px solid rgba(242,216,139,.82)!important;
    border-radius:50%!important;
    background:rgba(3,10,13,.98)!important;
    color:#fff0b8!important;
    box-shadow:0 1px 3px rgba(0,0,0,.74)!important;
    font:900 6.3px/1 Arial,sans-serif!important;
    transform:none!important;
  }

  /* Closed side controls: arrow first, then the asset, on one horizontal line. */
  body.v116-ui.v111-battle-active .v108-swipe-handle.side.v116-side-trigger{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:13px 29px!important;
    grid-template-rows:40px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    width:51px!important;
    min-width:51px!important;
    max-width:51px!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    padding:5px 3px!important;
  }
  body.v116-ui.v111-battle-active .v108-swipe-handle.side.v116-side-trigger .v108-chevron{
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    place-items:center!important;
    width:13px!important;
    height:40px!important;
    margin:0!important;
    font-size:20px!important;
    line-height:1!important;
  }
  body.v116-ui.v111-battle-active .v108-swipe-handle.side.v116-side-trigger .v111-handle-icon{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    place-items:center!important;
    width:29px!important;
    height:40px!important;
    margin:0!important;
  }
  body.v116-ui.v111-battle-active .v108-swipe-handle.side.v116-side-trigger .v111-handle-icon>*{
    width:25px!important;
    height:25px!important;
  }

  /* Open drawers reserve a narrow inner rail, so the grip never lies over messages or skills. */
  body.v116-ui .v102-skill-drawer,
  body.v116-ui .v79-chat-drawer{overflow:hidden!important}
  body.v116-ui .v102-skill-drawer{padding-right:34px!important}
  body.v116-ui .v79-chat-drawer{padding-left:34px!important}
  body.v116-ui .v108-drawer-grip.side.v116-inner-grip{
    position:absolute!important;
    z-index:120!important;
    top:50%!important;
    bottom:auto!important;
    display:grid!important;
    place-items:center!important;
    width:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    height:64px!important;
    min-height:64px!important;
    max-height:64px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(230,197,105,.58)!important;
    border-radius:11px!important;
    background:linear-gradient(180deg,rgba(17,39,42,.98),rgba(5,15,18,.98))!important;
    box-shadow:0 6px 18px rgba(0,0,0,.5)!important;
    color:#f0d274!important;
    transform:translateY(-50%)!important;
    touch-action:none!important;
  }
  body.v116-ui .v102-skill-drawer .v116-skill-grip{right:3px!important;left:auto!important}
  body.v116-ui .v79-chat-drawer .v116-chat-grip{left:3px!important;right:auto!important}
  body.v116-ui .v108-drawer-grip.side.v116-inner-grip>span{
    display:block!important;
    font:900 23px/1 Arial,sans-serif!important;
    transform:none!important;
  }

  /* Put the support control into the lower free zone, not against the log cards. */
  html body.v116-ui.v111-battle-active #support-drawer-open.v115-support-under-log{
    align-self:end!important;
    margin-top:18px!important;
    margin-bottom:8px!important;
    transform:translateY(6px)!important;
  }

  /* Incoming battle messages are staggered instead of appearing in one jump. */
  body.v116-ui .v101-battle-log .v106-log-entry.v114-log-enter{
    animation:v114-log-enter .38s cubic-bezier(.18,.78,.24,1) var(--v114-log-delay,0ms) both!important;
  }
}

@media (max-width:370px){
  body.v116-ui.v111-battle-active .v108-swipe-handle.side.v116-side-trigger{
    width:48px!important;min-width:48px!important;max-width:48px!important;
    grid-template-columns:12px 27px!important;
  }
  body.v116-ui .v102-skill-drawer{padding-right:31px!important}
  body.v116-ui .v79-chat-drawer{padding-left:31px!important}
  body.v116-ui .v108-drawer-grip.side.v116-inner-grip{width:26px!important;min-width:26px!important;max-width:26px!important}
}

@media (prefers-reduced-motion:reduce){
  body.v116-ui .v101-battle-log .v106-log-entry.v114-log-enter{animation-duration:.01ms!important;animation-delay:0ms!important}
}

/* ---- css/v117-mobile-compact.css ---- */
/* Aldos RPG v117 — balanced mobile compact layout. Battle board stays structurally unchanged. */

@media (max-width:760px){
  /* ---------- Battle: only the requested controls ---------- */
  body.v117-ui.v111-battle-active .v117-turn-timer{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:54px minmax(0,1fr) auto!important;
    grid-template-rows:auto 5px!important;
    column-gap:11px!important;
    row-gap:8px!important;
    min-height:108px!important;
    height:auto!important;
    padding:14px 16px 11px!important;
    overflow:hidden!important;
    border-radius:20px!important;
    background:
      radial-gradient(circle at 14% 18%,rgba(73,199,185,.10),transparent 38%),
      linear-gradient(135deg,rgba(15,28,31,.98),rgba(12,18,22,.98))!important;
    box-shadow:0 12px 30px rgba(0,0,0,.27),inset 0 1px rgba(255,255,255,.035)!important;
  }
  body.v117-ui.v111-battle-active .v117-turn-timer.monster-turn{
    background:
      radial-gradient(circle at 14% 18%,rgba(234,104,104,.11),transparent 38%),
      linear-gradient(135deg,rgba(29,24,25,.98),rgba(14,19,22,.98))!important;
  }
  body.v117-ui .v117-turn-timer .v79-turn-icon{
    grid-column:1!important;grid-row:1!important;
    width:52px!important;height:52px!important;min-width:52px!important;
    align-self:center!important;border-radius:16px!important;
  }
  body.v117-ui .v117-turn-timer .v79-turn-copy{
    grid-column:2!important;grid-row:1!important;min-width:0!important;align-self:center!important;
  }
  body.v117-ui .v117-turn-timer .v79-turn-copy b{
    display:block!important;max-width:100%!important;
    font-size:clamp(20px,5.1vw,27px)!important;line-height:1.05!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.v117-ui .v117-turn-timer .v79-turn-copy p{
    margin-top:5px!important;font-size:13px!important;line-height:1.2!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.v117-ui .v117-turn-timer .v79-turn-meta{
    grid-column:3!important;grid-row:1!important;align-self:center!important;
    display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:3px!important;
  }
  body.v117-ui .v117-turn-timer .v79-turn-meta small{font-size:10px!important;letter-spacing:.08em!important;opacity:.66!important}
  body.v117-ui .v117-turn-timer .v79-turn-meta span{
    min-width:88px!important;font-size:clamp(27px,7.4vw,38px)!important;line-height:1!important;
    text-align:right!important;white-space:nowrap!important;
  }
  body.v117-ui .v117-turn-timer .v79-turn-bar{
    grid-column:1/-1!important;grid-row:2!important;position:relative!important;
    width:100%!important;height:5px!important;margin:0!important;border-radius:999px!important;overflow:hidden!important;
  }
  body.v117-ui .v117-turn-timer.urgent{animation:none!important}
  body.v117-ui .v117-turn-timer.urgent .v79-turn-meta span{color:#ff8f85!important;text-shadow:0 0 14px rgba(255,94,88,.22)!important}

  /* Ability target selector: medium-sized, never giant, and based on battle-card information. */
  body.v117-ui .v106-target-backdrop{padding:18px!important;align-items:center!important}
  body.v117-ui .v106-target-dialog{
    width:min(92vw,590px)!important;max-height:min(78dvh,650px)!important;
    padding:14px!important;border-radius:21px!important;overflow:hidden!important;
  }
  body.v117-ui .v106-target-dialog>header{min-height:55px!important;padding:0 0 10px!important}
  body.v117-ui .v106-target-dialog>header>div{min-width:0!important;gap:9px!important}
  body.v117-ui .v106-target-dialog>header>div>:first-child{
    width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;
    object-fit:contain!important;overflow:hidden!important;
  }
  body.v117-ui .v106-target-dialog>header b{font-size:20px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v117-ui .v106-target-dialog>header small{font-size:9px!important;letter-spacing:.14em!important}
  body.v117-ui .v106-target-dialog>p{margin:0 0 10px!important;font-size:12px!important;line-height:1.35!important}
  body.v117-ui .v106-target-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;max-height:55dvh!important;overflow-y:auto!important;padding:1px 2px 4px!important;
  }
  body.v117-ui .v106-target-card{
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;align-items:center!important;
    min-height:118px!important;height:auto!important;padding:10px!important;gap:10px!important;
    border-radius:16px!important;text-align:left!important;overflow:hidden!important;
  }
  body.v117-ui .v106-target-art{
    width:58px!important;height:78px!important;min-width:58px!important;max-width:58px!important;
    display:grid!important;place-items:center!important;align-self:center!important;overflow:hidden!important;border-radius:12px!important;
  }
  body.v117-ui .v106-target-art>*,body.v117-ui .v106-target-art img{
    width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;object-position:center!important;transform:none!important;
  }
  body.v117-ui .v106-target-copy{display:grid!important;min-width:0!important;gap:4px!important}
  body.v117-ui .v106-target-copy>b{font-size:14px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v117-ui .v106-target-copy>small{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v117-ui .v106-target-resource{gap:2px!important;margin:0!important}
  body.v117-ui .v106-target-resource>span{font-size:9px!important}
  body.v117-ui .v106-target-resource>em{height:5px!important}
  body.v117-ui .v117-target-effects{
    display:flex!important;align-items:center!important;gap:3px!important;
    width:100%!important;min-width:0!important;height:25px!important;margin-top:2px!important;
    overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;
    overscroll-behavior-x:contain!important;touch-action:pan-x!important;
  }
  body.v117-ui .v117-target-effects::-webkit-scrollbar{display:none!important}
  body.v117-ui .v117-target-effects .v106-effect-asset.v113-effect-asset{
    flex:0 0 23px!important;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;
  }
  body.v117-ui .v117-target-effects .v113-effect-icon{width:20px!important;height:20px!important}
  body.v117-ui .v117-target-effects .v113-effect-turns{
    right:0!important;bottom:0!important;top:auto!important;left:auto!important;
    width:9px!important;height:9px!important;min-width:9px!important;min-height:9px!important;
    font-size:6px!important;
  }

  /* Side triggers: skill asset first, inward arrow second; chat remains mirrored. */
  body.v117-ui.v111-battle-active .v117-skill-trigger{
    grid-template-columns:29px 13px!important;
  }
  body.v117-ui.v111-battle-active .v117-skill-trigger .v111-handle-icon{grid-column:1!important}
  body.v117-ui.v111-battle-active .v117-skill-trigger .v108-chevron{grid-column:2!important}
  body.v117-ui.v111-battle-active .v117-chat-trigger{
    grid-template-columns:13px 29px!important;
  }
  body.v117-ui.v111-battle-active .v117-chat-trigger .v108-chevron{grid-column:1!important}
  body.v117-ui.v111-battle-active .v117-chat-trigger .v111-handle-icon{grid-column:2!important}
  body.v117-ui.v111-battle-active #support-drawer-open.v115-support-under-log{
    margin-top:20px!important;margin-bottom:3px!important;transform:translateY(9px)!important;
  }

  /* ---------- Character selection ---------- */
  body.v117-ui .v117-character-modal{
    width:min(94vw,620px)!important;max-height:88dvh!important;padding:16px!important;border-radius:24px!important;
  }
  body.v117-ui .v117-character-modal .v71-sheet-head{padding:0 0 12px!important}
  body.v117-ui .v117-character-modal .v71-sheet-head h2{font-size:28px!important;line-height:1.05!important}
  body.v117-ui .v117-character-modal .v71-sheet-head p{font-size:13px!important;margin-top:5px!important}
  body.v117-ui .v117-char-list{display:grid!important;gap:9px!important;overflow:auto!important;padding:2px!important}
  body.v117-ui .v117-char-row{
    display:grid!important;grid-template-columns:76px minmax(0,1fr) 112px!important;
    align-items:center!important;gap:11px!important;min-height:104px!important;padding:10px!important;border-radius:17px!important;
  }
  body.v117-ui .v117-char-art{
    position:relative!important;width:72px!important;height:78px!important;min-width:72px!important;border-radius:14px!important;overflow:visible!important;
  }
  body.v117-ui .v117-char-art>img,body.v117-ui .v117-char-art>.class-asset-image{width:100%!important;height:100%!important;object-fit:contain!important}
  body.v117-ui .v117-char-art>small{
    position:absolute!important;left:50%!important;bottom:-7px!important;transform:translateX(-50%)!important;
    padding:3px 8px!important;border-radius:999px!important;background:#172125!important;border:1px solid rgba(220,194,104,.38)!important;
    font-size:9px!important;white-space:nowrap!important;
  }
  body.v117-ui .v117-char-content{min-width:0!important;display:grid!important;gap:5px!important}
  body.v117-ui .v117-char-content>b{font-size:22px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v117-ui .v117-char-content>span{font-size:13px!important;color:var(--muted)!important}
  body.v117-ui .v117-char-actions{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  body.v117-ui .v117-char-actions button{min-height:37px!important;height:37px!important;padding:0 10px!important;font-size:12px!important;border-radius:11px!important}
  body.v117-ui .v117-char-bottom{display:grid!important;grid-template-columns:minmax(0,1fr) 104px!important;gap:8px!important;padding-top:12px!important}
  body.v117-ui .v117-char-bottom button{min-height:46px!important;height:46px!important;border-radius:14px!important;font-size:14px!important}

  /* Character switch sheet uses the same balanced compact rows. */
  body.v117-ui .v76-character-sheet{width:min(94vw,620px)!important;padding:15px!important}
  body.v117-ui .v117-drawer-character-list{display:grid!important;gap:9px!important}
  body.v117-ui .v117-drawer-character-row{
    display:grid!important;grid-template-columns:72px minmax(0,1fr) 108px!important;gap:10px!important;
    min-height:98px!important;padding:9px!important;border-radius:16px!important;
  }
  body.v117-ui .v117-drawer-character-row .v76-character-art{position:relative!important;width:68px!important;height:72px!important}
  body.v117-ui .v117-drawer-character-row .v76-character-art small{position:absolute!important;bottom:-5px!important;left:50%!important;transform:translateX(-50%)!important;font-size:9px!important;white-space:nowrap!important}
  body.v117-ui .v117-drawer-character-row .v76-character-copy small{display:none!important}
  body.v117-ui .v117-drawer-character-row .v76-character-copy b{font-size:19px!important}
  body.v117-ui .v117-drawer-character-actions{display:grid!important;gap:5px!important}
  body.v117-ui .v117-drawer-character-actions button{min-height:35px!important;height:35px!important;font-size:11px!important;padding:0 8px!important}

  /* ---------- Location monsters: not tiny, but far shorter than the old cards ---------- */
  body.v117-ui .v38-location-monster-grid{gap:10px!important}
  body.v117-ui .v38-loc-monster.v93-monster-card{
    display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
    gap:9px 12px!important;min-height:154px!important;padding:12px!important;border-radius:19px!important;overflow:hidden!important;
  }
  body.v117-ui .v38-loc-monster .v38-mob-icon{
    grid-column:1!important;grid-row:1!important;width:86px!important;height:101px!important;min-width:86px!important;
    align-self:start!important;border-radius:15px!important;overflow:hidden!important;
  }
  body.v117-ui .v38-loc-monster .v38-mob-icon>*{width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
  body.v117-ui .v38-loc-monster .v38-mob-main{grid-column:2!important;grid-row:1!important;min-width:0!important;align-self:center!important}
  body.v117-ui .v38-loc-monster .v38-mob-head h3{font-size:18px!important;line-height:1.1!important;margin:5px 0 7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v117-ui .v38-loc-monster .v96-monster-badges{gap:4px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important}
  body.v117-ui .v38-loc-monster .v96-monster-badges::-webkit-scrollbar{display:none!important}
  body.v117-ui .v38-loc-monster .v96-monster-chip,body.v117-ui .v38-loc-monster .v38-mob-flag{height:23px!important;min-height:23px!important;padding:0 8px!important;font-size:9px!important;white-space:nowrap!important}
  body.v117-ui .v38-loc-monster .v93-monster-hidden-note{font-size:12px!important;line-height:1.25!important;padding:8px 10px!important;max-height:48px!important;overflow:hidden!important}
  body.v117-ui .v38-loc-monster .v38-mob-stats{display:flex!important;gap:7px!important;overflow-x:auto!important;font-size:10px!important;scrollbar-width:none!important}
  body.v117-ui .v38-loc-monster .v38-mob-actions{
    grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:36% 1fr!important;gap:8px!important;
  }
  body.v117-ui .v38-loc-monster .v38-mob-actions button{height:42px!important;min-height:42px!important;border-radius:13px!important;font-size:13px!important}

  /* ---------- Profile, attributes and equipment ---------- */
  body.v117-ui .v39-profile-layout{gap:12px!important;padding-bottom:8px!important}
  body.v117-ui .v39-profile-hero{
    display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
    min-height:180px!important;padding:14px!important;gap:8px 14px!important;border-radius:21px!important;
  }
  body.v117-ui .v39-profile-hero .v39-avatar-ring{grid-column:1!important;grid-row:1/3!important;width:116px!important;height:150px!important;min-width:116px!important}
  body.v117-ui .v39-profile-hero .v39-hero-info{grid-column:2!important;grid-row:1!important;align-self:end!important;min-width:0!important}
  body.v117-ui .v39-profile-hero .v39-hero-info span{font-size:27px!important}
  body.v117-ui .v39-profile-hero .v39-hero-info p{font-size:13px!important;line-height:1.25!important}
  body.v117-ui .v39-profile-hero .v39-exp-box{grid-column:2!important;grid-row:2!important;align-self:start!important;padding:10px!important}
  body.v117-ui .v39-profile-card{padding:12px!important;border-radius:20px!important}
  body.v117-ui .v39-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.v117-ui .v39-resource-card{min-height:92px!important;padding:11px!important;border-radius:15px!important}
  body.v117-ui .v39-mini-stat{min-height:68px!important;padding:10px 12px!important;border-radius:14px!important}
  body.v117-ui .v39-mini-stat:last-child{grid-column:1/-1!important}
  body.v117-ui .v39-attributes{margin-top:12px!important;padding:12px!important;border-radius:17px!important}
  body.v117-ui .v39-attributes>p{display:none!important}
  body.v117-ui .v39-attributes h2{font-size:23px!important;margin-bottom:9px!important}
  body.v117-ui .v39-attr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.v117-ui .v39-attr-card{
    min-height:62px!important;height:62px!important;padding:9px 11px!important;border-radius:14px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
  }
  body.v117-ui .v39-attr-card strong{font-size:14px!important}
  body.v117-ui .v39-attr-card b{font-size:19px!important;min-width:38px!important;height:38px!important;display:grid!important;place-items:center!important}
  body.v117-ui .v39-equipment-panel{padding:12px!important;border-radius:20px!important}
  body.v117-ui .v39-panel-head{margin-bottom:9px!important}
  body.v117-ui .v39-panel-head p{display:none!important}
  body.v117-ui .v39-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.v117-ui .v39-equip-slot{
    min-height:148px!important;height:148px!important;padding:10px!important;border-radius:16px!important;
    display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:4px 9px!important;text-align:left!important;
  }
  body.v117-ui .v39-equip-slot .v39-slot-name{grid-column:2!important;font-size:9px!important;letter-spacing:.1em!important}
  body.v117-ui .v39-equip-slot .v39-slot-icon{grid-column:1!important;grid-row:1/4!important;width:60px!important;height:76px!important;align-self:center!important}
  body.v117-ui .v39-equip-slot .v39-slot-item{grid-column:2!important;font-size:14px!important;line-height:1.15!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v117-ui .v39-equip-slot .v77-slot-rarity{grid-column:2!important;font-size:9px!important}
  body.v117-ui .v39-equip-slot .v77-slot-effects{grid-column:1/-1!important;max-height:29px!important;overflow:hidden!important}

  /* ---------- Inventory and item cards ---------- */
  body.v117-ui .v93-inventory-panel{padding:13px!important;border-radius:21px!important}
  body.v117-ui .v93-inventory-head{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  body.v117-ui .v93-inventory-metrics{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.v117-ui .v88-inventory-currency,body.v117-ui .v93-bag-weight{min-height:72px!important;height:72px!important;padding:10px!important;border-radius:15px!important}
  body.v117-ui .v93-inventory-list{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  body.v117-ui .item-card.v39-item-card{
    display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;
    min-height:152px!important;height:auto!important;padding:11px!important;gap:10px!important;border-radius:18px!important;
  }
  body.v117-ui .item-card .v39-item-icon-wrap{width:78px!important;min-width:78px!important}
  body.v117-ui .item-card .item-emblem{width:76px!important;height:84px!important;border-radius:14px!important}
  body.v117-ui .item-card .item-type-label{font-size:9px!important;margin-top:4px!important}
  body.v117-ui .item-card .v39-item-head h3{font-size:17px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v117-ui .item-card .item-weight{font-size:10px!important;padding:4px 7px!important}
  body.v117-ui .item-card .item-description{font-size:12px!important;line-height:1.3!important;-webkit-line-clamp:2!important}
  body.v117-ui .item-card .v80-item-stats{display:flex!important;gap:5px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important}
  body.v117-ui .item-card .v80-item-stats::-webkit-scrollbar{display:none!important}
  body.v117-ui .item-card .item-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:7px!important}
  body.v117-ui .item-card .item-actions button{min-height:38px!important;height:38px!important;padding:0 8px!important;font-size:11px!important;border-radius:11px!important}
  body.v117-ui .item-card .item-actions button:only-child{grid-column:1/-1!important}

  /* Item detail is one medium full card, not multiple giant cards. */
  body.v117-ui .v97-item-modal .modal{width:min(94vw,620px)!important;max-height:88dvh!important;padding:14px!important}
  body.v117-ui .v97-item-detail-card{padding:12px!important;border-radius:18px!important}
  body.v117-ui .v97-item-detail-head{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:12px!important}
  body.v117-ui .v97-item-detail-icon{width:90px!important;height:104px!important}
  body.v117-ui .v97-item-detail-copy h2{font-size:25px!important;line-height:1.05!important}
  body.v117-ui .v97-item-detail-copy p{font-size:13px!important;line-height:1.35!important;margin-top:7px!important}
  body.v117-ui .v97-item-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:12px!important}
  body.v117-ui .v97-item-facts>div{min-height:68px!important;padding:10px!important;border-radius:13px!important}
  body.v117-ui .v97-item-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:12px!important}
  body.v117-ui .v97-item-detail-actions button{min-height:46px!important;height:46px!important}

  /* ---------- Battle result ---------- */
  body.v117-ui .v98-result-modal .modal{width:min(94vw,620px)!important;max-height:90dvh!important;padding:13px!important}
  body.v117-ui .v99-result{max-height:84dvh!important;border-radius:20px!important}
  body.v117-ui .v99-result .v96-result-scroll{padding:12px!important;gap:10px!important}
  body.v117-ui .v99-result header{min-height:88px!important;padding:10px!important;border-radius:15px!important}
  body.v117-ui .v99-result header h2{font-size:27px!important}
  body.v117-ui .v79-result-summary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.v117-ui .v79-result-summary>span{min-height:72px!important;padding:10px!important;border-radius:14px!important}
  body.v117-ui .v93-result-block{padding:11px!important;border-radius:16px!important}
  body.v117-ui .v93-result-block>p{display:none!important}
  body.v117-ui .v99-result .item-card{min-height:132px!important}
  body.v117-ui .v96-result-footer{padding:9px 12px 12px!important}
  body.v117-ui .v96-result-footer button{min-height:50px!important;height:50px!important;font-size:16px!important}

  /* ---------- Quests and monster offers ---------- */
  body.v117-ui .v80-quests-panel{padding:12px!important;border-radius:20px!important}
  body.v117-ui .v80-quests-panel>header{padding:10px!important;margin-bottom:9px!important}
  body.v117-ui .v80-quests-panel>header p{display:none!important}
  body.v117-ui .v80-quest-list{display:grid!important;gap:8px!important}
  body.v117-ui .v80-quest-card{
    display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;
    gap:10px!important;min-height:128px!important;padding:10px!important;border-radius:16px!important;
  }
  body.v117-ui .v80-quest-giver{width:64px!important;height:78px!important}
  body.v117-ui .v80-quest-copy h2{font-size:17px!important}
  body.v117-ui .v80-quest-copy p{font-size:12px!important;line-height:1.25!important;margin:4px 0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v117-ui .v92-quest-reward{font-size:10px!important;padding:6px!important}
  body.v117-ui .v79-deal-card{width:min(94vw,620px)!important;padding:12px!important;border-radius:20px!important;gap:10px!important}
  body.v117-ui .v79-deal-monster{width:84px!important;height:94px!important;min-width:84px!important}
  body.v117-ui .v79-deal-copy p{font-size:13px!important;line-height:1.35!important}
  body.v117-ui .v79-deal-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.v117-ui .v79-deal-actions button{min-height:46px!important;height:46px!important;font-size:13px!important}

  /* Monster info: medium card, shortened repeated padding. */
  body.v117-ui .v82-monster-sheet{padding:12px!important;gap:11px!important}
  body.v117-ui .v82-monster-intro{display:grid!important;grid-template-columns:98px minmax(0,1fr)!important;gap:11px!important;padding:10px!important}
  body.v117-ui .v82-monster-intro .v79-monster-portrait{width:96px!important;height:112px!important}
  body.v117-ui .v82-monster-copy h2{font-size:22px!important}
  body.v117-ui .v82-monster-copy p{font-size:12px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-line-clamp:4!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v117-ui .v92-quest-materials{padding:10px!important;border-radius:15px!important}
  body.v117-ui .v92-quest-materials h3{font-size:13px!important;margin-bottom:7px!important}
  body.v117-ui .v92-material-list{gap:6px!important}
}

@media (max-width:430px){
  body.v117-ui .v106-target-grid{grid-template-columns:1fr!important}
  body.v117-ui .v106-target-card{grid-template-columns:62px minmax(0,1fr)!important;min-height:104px!important}
  body.v117-ui .v106-target-art{width:60px!important;height:68px!important;min-width:60px!important}
  body.v117-ui .v117-char-row{grid-template-columns:68px minmax(0,1fr)!important;grid-template-rows:auto auto!important;min-height:126px!important}
  body.v117-ui .v117-char-art{width:64px!important;height:70px!important;grid-row:1!important}
  body.v117-ui .v117-char-actions{grid-column:1/-1!important;grid-row:2!important;grid-template-columns:1fr 96px!important}
  body.v117-ui .v117-drawer-character-row{grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:auto auto!important}
  body.v117-ui .v117-drawer-character-actions{grid-column:1/-1!important;grid-template-columns:1fr 92px!important}
  body.v117-ui .v39-profile-hero{grid-template-columns:104px minmax(0,1fr)!important;min-height:166px!important}
  body.v117-ui .v39-profile-hero .v39-avatar-ring{width:100px!important;height:132px!important}
  body.v117-ui .v39-slot-grid{grid-template-columns:1fr!important}
  body.v117-ui .v39-equip-slot{height:126px!important;min-height:126px!important}
  body.v117-ui .v97-item-detail-head{grid-template-columns:78px minmax(0,1fr)!important}
  body.v117-ui .v97-item-detail-icon{width:76px!important;height:90px!important}
}

@media (max-width:360px){
  body.v117-ui .v117-turn-timer{grid-template-columns:46px minmax(0,1fr) auto!important;padding:12px!important;column-gap:8px!important}
  body.v117-ui .v117-turn-timer .v79-turn-icon{width:44px!important;height:44px!important}
  body.v117-ui .v117-turn-timer .v79-turn-meta span{min-width:76px!important;font-size:27px!important}
  body.v117-ui .v38-loc-monster.v93-monster-card{grid-template-columns:76px minmax(0,1fr)!important}
  body.v117-ui .v38-loc-monster .v38-mob-icon{width:74px!important;height:90px!important;min-width:74px!important}
  body.v117-ui .item-card.v39-item-card{grid-template-columns:70px minmax(0,1fr)!important}
  body.v117-ui .item-card .v39-item-icon-wrap{width:68px!important;min-width:68px!important}
  body.v117-ui .item-card .item-emblem{width:66px!important;height:76px!important}
}

/* ---- css/v118-mobile-rebuild.css ---- */
/* Aldos RPG v118 — mobile rebuild.
   The battle board itself is preserved; only the timer, effects, target selector,
   drawers, log and support control are corrected. */

html,body{max-width:100%;overflow-x:hidden}
body.v118-ui{--v118-nav-h:66px;--v118-safe-top:env(safe-area-inset-top,0px);--v118-safe-bottom:env(safe-area-inset-bottom,0px)}
body.v118-ui *{min-width:0}
body.v118-ui .app-shell{padding-bottom:calc(var(--v118-nav-h) + var(--v118-safe-bottom) + 10px)!important;overflow-x:hidden!important}
body.v118-ui .screen{padding-bottom:calc(var(--v118-nav-h) + var(--v118-safe-bottom) + 16px)!important;overflow-x:clip!important}
body.v118-ui .topbar{padding-top:calc(8px + var(--v118-safe-top))!important;min-height:calc(64px + var(--v118-safe-top))!important}
body.v118-ui .bottom-nav{bottom:0!important;left:0!important;transform:none!important;width:100%!important;max-width:none!important;min-height:calc(var(--v118-nav-h) + var(--v118-safe-bottom))!important;padding:6px 8px calc(6px + var(--v118-safe-bottom))!important;border-radius:18px 18px 0 0!important;z-index:90!important}
body.v118-ui .bottom-nav button{min-height:48px!important;padding:4px 5px!important}
body.v118-ui .bottom-nav span{font-size:10px!important}
body.v118-ui :where(.screen,.modal,.side,.v96-result-scroll,.v102-skill-scroll,.v81-support-scroll,.battle-log-scroll){scrollbar-width:thin;scrollbar-color:rgba(210,187,99,.25) transparent}
body.v118-ui :where(.screen,.modal,.side,.v96-result-scroll,.v102-skill-scroll,.v81-support-scroll,.battle-log-scroll)::-webkit-scrollbar{width:3px;height:3px}
body.v118-ui :where(.screen,.modal,.side,.v96-result-scroll,.v102-skill-scroll,.v81-support-scroll,.battle-log-scroll)::-webkit-scrollbar-track{background:transparent}
body.v118-ui :where(.screen,.modal,.side,.v96-result-scroll,.v102-skill-scroll,.v81-support-scroll,.battle-log-scroll)::-webkit-scrollbar-thumb{background:rgba(210,187,99,.25);border-radius:99px}
body.v118-ui :where(.v101-unit-effects,.v117-target-effects,.v96-monster-badges,.v80-item-stats){scrollbar-width:none!important}
body.v118-ui :where(.v101-unit-effects,.v117-target-effects,.v96-monster-badges,.v80-item-stats)::-webkit-scrollbar{display:none!important}

/* ---------------- Battle: preserve structure, fix requested parts ---------------- */
@media (max-width:760px){
  body.v118-ui.v111-battle-active{overflow:hidden!important;padding-top:var(--v118-safe-top)!important}
  body.v118-ui.v111-battle-active #app{height:calc(100dvh - var(--v118-safe-top))!important;overflow:hidden!important}
  body.v118-ui.v111-battle-active .v79-battle-header{height:62px!important;min-height:62px!important;padding:7px 12px!important;gap:8px!important}
  body.v118-ui.v111-battle-active .v79-battle-title small{font-size:8px!important}
  body.v118-ui.v111-battle-active .v79-battle-title h1{font-size:18px!important;line-height:1.05!important}
  body.v118-ui.v111-battle-active .v79-battle-mark{width:42px!important;height:42px!important}
  body.v118-ui.v111-battle-active .v79-header-state{width:34px!important;height:34px!important;padding:0!important}
  body.v118-ui.v111-battle-active .v79-header-state span{display:none!important}

  body.v118-ui.v111-battle-active .v101-battle{
    --v118-turn-h:78px;
    --v118-board-h:190px;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:var(--v118-turn-h) var(--v118-board-h) minmax(88px,1fr) 42px!important;
    gap:7px!important;
    height:calc(100dvh - var(--v118-safe-top) - 62px)!important;
    min-height:0!important;
    padding:8px 12px calc(7px + var(--v118-safe-bottom))!important;
    overflow:hidden!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer{
    grid-row:1!important;
    position:relative!important;
    z-index:2!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 68px!important;
    grid-template-rows:minmax(0,1fr) 3px!important;
    gap:5px 9px!important;
    width:100%!important;
    height:var(--v118-turn-h)!important;
    min-height:0!important;
    max-height:var(--v118-turn-h)!important;
    margin:0!important;
    padding:8px 10px 7px!important;
    border-radius:16px!important;
    overflow:hidden!important;
    box-shadow:0 7px 18px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.025)!important;
    transform:none!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-icon{
    grid-column:1!important;grid-row:1!important;
    width:40px!important;height:40px!important;min-width:40px!important;
    align-self:center!important;border-radius:12px!important;padding:7px!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-icon :where(img,svg){max-width:100%!important;max-height:100%!important}
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-copy{
    grid-column:2!important;grid-row:1!important;align-self:center!important;
    display:grid!important;gap:2px!important;overflow:visible!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-copy b{
    display:block!important;font-size:15px!important;line-height:1.08!important;
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
    max-height:34px!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-copy p{
    display:block!important;margin:0!important;font-size:9.5px!important;line-height:1.15!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-meta{
    grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;
    min-width:64px!important;text-align:right!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-meta small{display:none!important}
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-meta span{
    display:block!important;font-size:23px!important;line-height:1!important;white-space:nowrap!important;
    letter-spacing:-.035em!important;font-variant-numeric:tabular-nums!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-bar{
    grid-column:1/-1!important;grid-row:2!important;height:3px!important;margin:0!important;border:0!important;
    border-radius:99px!important;overflow:hidden!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-bar i{transform-origin:left center!important;transition:transform .12s linear!important}
  body.v118-ui.v111-battle-active .v118-turn-timer.warning .v79-turn-meta span{color:#f1cf68!important}
  body.v118-ui.v111-battle-active .v118-turn-timer.urgent{animation:none!important}
  body.v118-ui.v111-battle-active .v118-turn-timer.urgent .v79-turn-meta span{color:#ff847b!important;text-shadow:none!important}

  body.v118-ui.v111-battle-active .v101-combat-board{grid-row:2!important;height:var(--v118-board-h)!important;min-height:0!important;gap:7px!important;overflow:hidden!important}
  body.v118-ui.v111-battle-active .v101-battle-log{grid-row:3!important;min-height:0!important;height:100%!important;margin:0!important;opacity:1!important;filter:none!important;overflow:hidden!important}
  body.v118-ui.v111-battle-active .v101-battle-log::before,
  body.v118-ui.v111-battle-active .v101-battle-log::after{display:none!important}
  body.v118-ui.v111-battle-active .v79-log-head{min-height:38px!important;height:38px!important;padding:5px 9px!important}
  body.v118-ui.v111-battle-active .v111-log-title h3{font-size:13px!important;line-height:1!important}
  body.v118-ui.v111-battle-active .v111-log-title small{font-size:8px!important}
  body.v118-ui.v111-battle-active .v79-log-head button{height:29px!important;min-height:29px!important;padding:0 10px!important;font-size:9px!important}
  body.v118-ui.v111-battle-active .battle-log-scroll{height:calc(100% - 38px)!important;max-height:none!important;padding:4px 6px 6px!important;overflow-y:auto!important;opacity:1!important;filter:none!important}
  body.v118-ui.v111-battle-active .v79-log-entry{min-height:38px!important;padding:5px 7px!important;margin:0 0 4px!important;gap:6px!important;opacity:1!important;filter:none!important}
  body.v118-ui.v111-battle-active .v102-log-icon{width:25px!important;height:25px!important;min-width:25px!important}
  body.v118-ui.v111-battle-active .v102-log-copy p{font-size:9.5px!important;line-height:1.25!important}
  body.v118-ui.v111-battle-active .v111-log-time{font-size:7.5px!important}
  body.v118-ui.v111-battle-active.v111-action-pending .v101-battle-log,
  body.v118-ui.v111-battle-active.v111-action-pending .battle-log-scroll{opacity:1!important;filter:none!important}

  body.v118-ui.v111-battle-active #support-drawer-open.v115-support-under-log{
    grid-row:4!important;position:relative!important;inset:auto!important;order:0!important;
    width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
    margin:0!important;padding:4px 10px!important;transform:none!important;border-radius:14px!important;
    z-index:4!important;
  }
  body.v118-ui.v111-battle-active #support-drawer-open .v110-support-potion{width:29px!important;height:29px!important;min-width:29px!important;padding:4px!important;border-radius:9px!important}
  body.v118-ui.v111-battle-active #support-drawer-open .v110-support-label{gap:6px!important}
  body.v118-ui.v111-battle-active #support-drawer-open .v110-support-label b{font-size:11px!important;line-height:1!important}
  body.v118-ui.v111-battle-active #support-drawer-open .v113-support-caret{width:13px!important;height:9px!important}

  /* Effects: fixed compact footer, hidden horizontal scroll and true lower-right timer. */
  body.v118-ui.v111-battle-active .v101-unit-effects,
  body.v118-ui .v118-target-effects{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;
    min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain!important;
    scroll-snap-type:x proximity!important;padding:2px 1px!important;
  }
  body.v118-ui .v106-effect-asset.v113-effect-asset{
    position:relative!important;display:grid!important;place-items:center!important;flex:0 0 28px!important;
    width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
    padding:2px!important;margin:0!important;border-radius:8px!important;overflow:hidden!important;
    grid-template-columns:1fr!important;grid-template-rows:1fr!important;
  }
  body.v118-ui .v106-effect-asset.v113-effect-asset .v113-effect-icon{
    display:grid!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;
  }
  body.v118-ui .v106-effect-asset.v113-effect-asset .v113-effect-icon :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important}
  body.v118-ui .v106-effect-asset.v113-effect-asset .v113-effect-turns{
    position:absolute!important;right:1px!important;bottom:1px!important;left:auto!important;top:auto!important;inset:auto 1px 1px auto!important;
    transform:none!important;display:grid!important;place-items:center!important;
    width:10px!important;height:10px!important;min-width:10px!important;min-height:10px!important;
    margin:0!important;padding:0!important;border-radius:50%!important;
    font-size:6.5px!important;line-height:10px!important;font-weight:900!important;font-variant-numeric:tabular-nums!important;
    background:rgba(5,8,10,.94)!important;border:1px solid rgba(242,220,126,.72)!important;color:#fff5c7!important;
    box-shadow:0 1px 4px rgba(0,0,0,.7)!important;z-index:4!important;
  }
  body.v118-ui .v106-effect-asset.v113-effect-asset.permanent-effect .v113-effect-turns{display:none!important}

  /* Target selector: compact battle-style cards, effects stay inside each target. */
  body.v118-ui .v106-target-backdrop{padding:10px!important;align-items:center!important;overflow:hidden!important}
  body.v118-ui .v118-target-dialog{
    width:min(420px,calc(100vw - 20px))!important;max-width:420px!important;max-height:min(76dvh,590px)!important;
    padding:10px!important;border-radius:18px!important;overflow:hidden!important;
  }
  body.v118-ui .v118-target-dialog>header{min-height:42px!important;height:42px!important;padding:0 0 7px!important;gap:7px!important}
  body.v118-ui .v118-target-dialog>header>div{gap:7px!important}
  body.v118-ui .v118-target-dialog>header>div>:first-child{width:38px!important;height:38px!important;min-width:38px!important;border-radius:10px!important;padding:4px!important}
  body.v118-ui .v118-target-dialog>header b{font-size:16px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v118-ui .v118-target-dialog>header small{font-size:7.5px!important;letter-spacing:.12em!important}
  body.v118-ui .v118-target-dialog>header>button{width:34px!important;height:34px!important;min-width:34px!important;padding:7px!important;border-radius:10px!important}
  body.v118-ui .v118-target-dialog>p{margin:0 0 7px!important;font-size:10px!important;line-height:1.25!important;text-align:left!important}
  body.v118-ui .v106-target-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;max-height:calc(76dvh - 105px)!important;padding:0!important;overflow-y:auto!important;overflow-x:hidden!important}
  body.v118-ui .v118-target-card{
    display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;gap:8px!important;
    width:100%!important;min-height:82px!important;height:auto!important;padding:7px 8px!important;
    border-radius:14px!important;text-align:left!important;overflow:hidden!important;box-shadow:none!important;
  }
  body.v118-ui .v118-target-card .v106-target-art{width:48px!important;height:64px!important;min-width:48px!important;align-self:center!important;border-radius:11px!important;overflow:hidden!important}
  body.v118-ui .v118-target-card .v106-target-art :where(img,.class-inline-image,.battle-monster-art){width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
  body.v118-ui .v118-target-card .v106-target-copy{display:grid!important;grid-template-rows:auto auto auto auto!important;gap:2px!important;align-content:center!important;overflow:hidden!important}
  body.v118-ui .v118-target-card .v106-target-copy>b{font-size:13px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v118-ui .v118-target-card .v106-target-copy>small{font-size:8.5px!important;line-height:1!important}
  body.v118-ui .v118-target-card .v106-target-resource{margin:0!important;gap:1px!important}
  body.v118-ui .v118-target-card .v106-target-resource>span{font-size:8px!important;line-height:1!important}
  body.v118-ui .v118-target-card .v106-target-resource>em{height:4px!important;max-width:180px!important}
  body.v118-ui .v118-target-effects{height:32px!important;min-height:32px!important;max-width:100%!important;margin:1px 0 0!important}
  body.v118-ui .v118-target-effects:empty{display:none!important}
  body.v118-ui .v118-target-effects .v106-effect-asset.v113-effect-asset{flex-basis:25px!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important}
  body.v118-ui .v118-target-effects .v113-effect-icon{width:19px!important;height:19px!important;min-width:19px!important}

  /* Side controls and drawer grips: visually light, no opaque rail. */
  body.v118-ui.v111-battle-active .v116-side-trigger{
    width:54px!important;height:52px!important;min-width:54px!important;min-height:52px!important;
    padding:4px!important;border:0!important;outline:0!important;border-radius:0!important;
    background:linear-gradient(90deg,rgba(8,16,18,.9),rgba(8,16,18,.08))!important;
    box-shadow:none!important;backdrop-filter:none!important;
    display:grid!important;align-items:center!important;gap:2px!important;
  }
  body.v118-ui.v111-battle-active .v117-skill-trigger{grid-template-columns:34px 12px!important;left:0!important}
  body.v118-ui.v111-battle-active .v117-chat-trigger{grid-template-columns:12px 34px!important;right:0!important;background:linear-gradient(270deg,rgba(8,16,18,.9),rgba(8,16,18,.08))!important}
  body.v118-ui.v111-battle-active .v116-side-trigger .v111-handle-icon{width:30px!important;height:30px!important;display:grid!important;place-items:center!important;padding:3px!important;border:0!important;background:transparent!important}
  body.v118-ui.v111-battle-active .v116-side-trigger .v108-chevron{font-size:17px!important;line-height:1!important;color:#ead36e!important;text-shadow:none!important}
  body.v118-ui.v111-battle-active :where(.v108-drawer-grip,.v113-panel-grip){border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
  body.v118-ui.v111-battle-active .v17-drawer-fade{background:transparent!important;backdrop-filter:none!important;opacity:0!important}

  /* Drawers: compact sections and no neon scrollbar rail. */
  body.v118-ui .v102-skill-drawer{width:min(82vw,430px)!important}
  body.v118-ui .v102-skill-drawer header{min-height:56px!important;padding:9px 12px!important}
  body.v118-ui .v102-skill-scroll{padding:7px 12px 12px!important}
  body.v118-ui .v102-skill-section{padding:7px 0!important;margin:0!important}
  body.v118-ui .v102-skill-section-title{min-height:31px!important;margin:0 0 5px!important}
  body.v118-ui .v102-skill-section-title h3{font-size:13px!important;line-height:1.08!important}
  body.v118-ui .v102-skill-grid{gap:6px!important}
  body.v118-ui .v102-skill-tile{width:62px!important;height:62px!important;min-width:62px!important;padding:6px!important;border-radius:13px!important}
  body.v118-ui .v102-skill-tile .v115-ability-image{width:44px!important;height:44px!important}
  body.v118-ui .v102-skill-detail{padding:10px!important;margin-top:7px!important;border-radius:15px!important}
  body.v118-ui .v102-skill-detail h3{font-size:17px!important}
  body.v118-ui .v102-skill-detail p{font-size:10.5px!important;line-height:1.35!important}
  body.v118-ui .v102-skill-detail button{height:42px!important;min-height:42px!important;font-size:14px!important}
  body.v118-ui .v102-cooldown-tile{filter:none!important;opacity:.8!important}
  body.v118-ui .v102-cooldown-tile .v115-ability-image{filter:brightness(.6)!important}
  body.v118-ui .v79-chat-drawer{width:min(78vw,410px)!important}
  body.v118-ui .v81-support-drawer{max-height:62dvh!important}
}

@media (min-width:540px) and (max-width:760px){
  body.v118-ui .v106-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ---------------- Outside battle: compact, medium-sized mobile layout ---------------- */
@media (max-width:760px){
  body.v118-ui:not(.v111-battle-active) .screen{padding:10px 10px calc(var(--v118-nav-h) + var(--v118-safe-bottom) + 16px)!important}
  body.v118-ui .panel,body.v118-ui .profile-card,body.v118-ui .equipment-panel{border-radius:16px!important}

  /* Character select */
  body.v118-ui .v117-character-modal{width:min(94vw,520px)!important;max-height:88dvh!important;padding:12px!important;border-radius:20px!important}
  body.v118-ui .v117-character-modal .v71-sheet-head{padding:0 0 8px!important}
  body.v118-ui .v117-character-modal .v71-sheet-head h2{font-size:22px!important}
  body.v118-ui .v117-character-modal .v71-sheet-head p{font-size:10.5px!important;margin:2px 0 0!important}
  body.v118-ui .v117-char-list{gap:7px!important}
  body.v118-ui .v117-char-row{display:grid!important;grid-template-columns:62px minmax(0,1fr) 82px!important;min-height:82px!important;padding:7px!important;gap:8px!important;border-radius:14px!important}
  body.v118-ui .v117-char-art{width:58px!important;height:64px!important;min-width:58px!important;border-radius:11px!important}
  body.v118-ui .v117-char-art small{font-size:8px!important;bottom:-2px!important}
  body.v118-ui .v117-char-content{gap:2px!important;align-content:center!important}
  body.v118-ui .v117-char-content>b{font-size:16px!important}
  body.v118-ui .v117-char-content>span{font-size:10px!important}
  body.v118-ui .v117-char-actions{gap:4px!important}
  body.v118-ui .v117-char-actions button{height:32px!important;min-height:32px!important;padding:0 5px!important;font-size:9px!important;border-radius:9px!important}
  body.v118-ui .v117-char-bottom{padding-top:8px!important;gap:6px!important;grid-template-columns:1fr 76px!important}
  body.v118-ui .v117-char-bottom button{height:38px!important;min-height:38px!important;font-size:11px!important;border-radius:11px!important}

  /* Location accordion and monster cards */
  body.v118-ui .v38-location-sections{gap:8px!important}
  body.v118-ui .v38-location-section{border-radius:15px!important}
  body.v118-ui .v38-location-summary{min-height:58px!important;padding:9px 12px!important}
  body.v118-ui .v38-location-summary h2{font-size:15px!important}
  body.v118-ui .v38-location-summary p{font-size:9.5px!important}
  body.v118-ui .v38-location-summary button{width:34px!important;height:34px!important;min-width:34px!important}
  body.v118-ui .v38-location-monster-grid{gap:7px!important;padding:7px!important}
  body.v118-ui .v38-loc-monster.v93-monster-card{
    display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;grid-template-rows:auto 34px!important;
    gap:6px 8px!important;min-height:118px!important;height:auto!important;padding:8px!important;border-radius:15px!important;
  }
  body.v118-ui .v38-loc-monster .v38-mob-icon{grid-column:1!important;grid-row:1!important;width:64px!important;height:72px!important;min-width:64px!important;border-radius:11px!important}
  body.v118-ui .v38-loc-monster .v38-mob-main{grid-column:2!important;grid-row:1!important;align-self:center!important;display:grid!important;gap:4px!important}
  body.v118-ui .v38-loc-monster .v38-mob-head h3{font-size:15px!important;line-height:1.08!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v118-ui .v38-loc-monster .v96-monster-badges{gap:3px!important}
  body.v118-ui .v38-loc-monster .v96-monster-chip,body.v118-ui .v38-loc-monster .v38-mob-flag{height:19px!important;min-height:19px!important;padding:0 6px!important;font-size:7.5px!important}
  body.v118-ui .v38-loc-monster .v93-monster-hidden-note{font-size:9.5px!important;line-height:1.18!important;padding:5px 7px!important;max-height:32px!important;border-radius:9px!important}
  body.v118-ui .v38-loc-monster .v38-mob-stats{font-size:8.5px!important;gap:4px!important}
  body.v118-ui .v38-loc-monster .v38-mob-actions{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:32% 1fr!important;gap:6px!important}
  body.v118-ui .v38-loc-monster .v38-mob-actions button{height:34px!important;min-height:34px!important;font-size:10.5px!important;border-radius:10px!important;padding:0 8px!important}

  /* Profile */
  body.v118-ui .v39-profile-layout{gap:8px!important}
  body.v118-ui .v39-profile-hero{grid-template-columns:92px minmax(0,1fr)!important;min-height:132px!important;padding:9px!important;gap:6px 10px!important;border-radius:16px!important}
  body.v118-ui .v39-profile-hero .v39-avatar-ring{width:88px!important;height:112px!important;min-width:88px!important;border-radius:14px!important}
  body.v118-ui .v39-profile-hero .v39-hero-info span{font-size:21px!important}
  body.v118-ui .v39-profile-hero .v39-hero-info p{font-size:10px!important}
  body.v118-ui .v39-profile-hero .v39-exp-box{padding:7px!important;font-size:9px!important;border-radius:10px!important}
  body.v118-ui .v39-profile-card{padding:9px!important}
  body.v118-ui .v39-stat-grid{gap:6px!important}
  body.v118-ui .v39-resource-card{min-height:72px!important;padding:8px!important}
  body.v118-ui .v39-mini-stat{min-height:50px!important;padding:7px 9px!important}
  body.v118-ui .v39-attributes{margin-top:8px!important;padding:8px!important}
  body.v118-ui .v39-attributes h2{font-size:18px!important;margin:0 0 6px!important}
  body.v118-ui .v39-attr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  body.v118-ui .v39-attr-card{min-height:48px!important;height:48px!important;padding:6px 8px!important;border-radius:11px!important}
  body.v118-ui .v39-attr-card strong{font-size:11px!important}
  body.v118-ui .v39-attr-card b{font-size:15px!important;min-width:31px!important;height:31px!important}

  /* Equipment: always 2 columns, including 360–430px. */
  body.v118-ui .v39-equipment-panel{padding:8px!important}
  body.v118-ui .v39-panel-head{margin-bottom:6px!important}
  body.v118-ui .v39-panel-head h2{font-size:19px!important}
  body.v118-ui .v39-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  body.v118-ui .v39-equip-slot{
    display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:14px auto auto!important;
    min-height:94px!important;height:94px!important;padding:7px!important;gap:2px 6px!important;border-radius:13px!important;overflow:hidden!important;
  }
  body.v118-ui .v39-equip-slot .v39-slot-icon{grid-column:1!important;grid-row:1/4!important;width:44px!important;height:58px!important;min-width:44px!important;align-self:center!important;border-radius:9px!important}
  body.v118-ui .v39-equip-slot .v39-slot-name{grid-column:2!important;grid-row:1!important;font-size:7px!important;line-height:1!important;letter-spacing:.08em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v118-ui .v39-equip-slot .v77-slot-rarity{grid-column:2!important;grid-row:2!important;font-size:8px!important;line-height:1!important}
  body.v118-ui .v39-equip-slot .v39-slot-item{grid-column:1/-1!important;grid-row:4!important;font-size:11px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important}
  body.v118-ui .v39-equip-slot .v77-slot-effects{grid-column:2!important;grid-row:3!important;display:flex!important;gap:3px!important;max-height:22px!important;overflow:hidden!important;font-size:7.5px!important}
  body.v118-ui .v39-equip-slot.empty .v39-slot-item,body.v118-ui .v39-equip-slot .v39-slot-empty{font-size:11px!important}

  /* Inventory and item cards */
  body.v118-ui .v93-inventory-panel{padding:9px!important;border-radius:16px!important}
  body.v118-ui .v93-inventory-head{gap:7px!important}
  body.v118-ui .v93-inventory-head h1{font-size:22px!important}
  body.v118-ui .v93-inventory-metrics{gap:6px!important}
  body.v118-ui .v88-inventory-currency,body.v118-ui .v93-bag-weight{height:58px!important;min-height:58px!important;padding:7px!important}
  body.v118-ui .v93-inventory-list{gap:7px!important}
  body.v118-ui .item-card.v39-item-card{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;min-height:116px!important;padding:8px!important;gap:7px!important;border-radius:14px!important}
  body.v118-ui .item-card .v39-item-icon-wrap{width:62px!important;min-width:62px!important}
  body.v118-ui .item-card .item-emblem{width:60px!important;height:68px!important;border-radius:11px!important}
  body.v118-ui .item-card .v39-item-head h3{font-size:14px!important}
  body.v118-ui .item-card .item-description{font-size:9.5px!important;line-height:1.25!important;-webkit-line-clamp:2!important}
  body.v118-ui .item-card .item-weight{font-size:8px!important;padding:3px 5px!important}
  body.v118-ui .item-card .v80-item-stats{gap:3px!important;font-size:8px!important}
  body.v118-ui .item-card .item-actions{gap:4px!important;margin-top:4px!important}
  body.v118-ui .item-card .item-actions button{height:32px!important;min-height:32px!important;font-size:9px!important;border-radius:9px!important}

  /* Item detail */
  body.v118-ui .v97-item-modal .modal{width:min(94vw,520px)!important;max-height:84dvh!important;padding:12px!important;border-radius:19px!important}
  body.v118-ui .v97-item-modal .modal>h1{font-size:23px!important;padding-right:42px!important;margin:0 0 10px!important}
  body.v118-ui .item-detail-card{padding:10px!important;border-radius:15px!important}

  /* Battle result: summary + compact loot rows, no full item cards. */
  body.v118-ui .v98-result-modal{width:min(94vw,520px)!important;max-height:90dvh!important;padding:10px!important;border-radius:20px!important;overflow:hidden!important}
  body.v118-ui .v98-result-modal>h1{font-size:25px!important;line-height:1!important;margin:2px 0 8px!important;padding-right:42px!important}
  body.v118-ui .v96-result{height:min(82dvh,690px)!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr) 50px!important}
  body.v118-ui .v96-result-scroll{padding:4px!important;overflow-y:auto!important}
  body.v118-ui .v96-result header{min-height:72px!important;padding:9px!important;gap:9px!important;border-radius:14px!important}
  body.v118-ui .v78-result-icon{width:48px!important;height:48px!important;min-width:48px!important}
  body.v118-ui .v96-result header h2{font-size:20px!important;margin:1px 0!important}
  body.v118-ui .v96-result header p,body.v118-ui .v96-result header small{font-size:9px!important}
  body.v118-ui .v78-result-summary{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:6px!important;margin:7px 0!important}
  body.v118-ui .v78-result-summary>span{min-height:55px!important;padding:8px!important;border-radius:12px!important}
  body.v118-ui .v78-result-summary small{font-size:8px!important}
  body.v118-ui .v78-result-summary b{font-size:14px!important}
  body.v118-ui .reward-line.level-up{min-height:48px!important;padding:7px 9px!important;border-radius:12px!important}
  body.v118-ui .v78-result-block{padding:9px!important;margin:7px 0!important;border-radius:14px!important}
  body.v118-ui .v78-result-block>h3{font-size:17px!important;margin:0 0 6px!important}
  body.v118-ui .v78-result-block>.muted{display:none!important}
  body.v118-ui .loot-tabs{gap:4px!important;margin:0 0 6px!important;overflow-x:auto!important;scrollbar-width:none!important}
  body.v118-ui .loot-tab{height:34px!important;min-height:34px!important;padding:0 10px!important;font-size:10px!important;border-radius:10px!important}
  body.v118-ui .v118-result-loot-owner{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.v118-ui .v118-result-loot-owner>h3{font-size:11px!important;margin:0 0 5px!important;padding:0!important}
  body.v118-ui .v118-result-loot-grid{display:grid!important;gap:5px!important}
  body.v118-ui .v118-result-loot-item{display:grid!important;grid-template-columns:44px minmax(0,1fr) 20px!important;gap:7px!important;align-items:center!important;width:100%!important;min-height:58px!important;padding:6px 8px!important;border-radius:12px!important;text-align:left!important}
  body.v118-ui .v118-result-loot-icon{width:42px!important;height:46px!important;display:grid!important;place-items:center!important;overflow:hidden!important}
  body.v118-ui .v118-result-loot-icon :where(img,svg){max-width:100%!important;max-height:100%!important;object-fit:contain!important}
  body.v118-ui .v118-result-loot-copy{display:grid!important;gap:2px!important}
  body.v118-ui .v118-result-loot-copy b{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v118-ui .v118-result-loot-copy small{font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v118-ui .v118-result-loot-item>em{font-style:normal!important;font-size:12px!important}
  body.v118-ui .v118-result-empty-line{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:42px!important;padding:8px 10px!important;border:1px dashed rgba(255,255,255,.12)!important;border-radius:11px!important;color:var(--muted)!important;font-size:10px!important}
  body.v118-ui .v118-result-empty{min-height:42px!important;padding:10px!important}
  body.v118-ui .v96-result-footer{height:50px!important;padding:5px 0 0!important}
  body.v118-ui .v78-result-close{height:44px!important;min-height:44px!important;font-size:14px!important;border-radius:12px!important}

  /* Level-up modal */
  body.v118-ui .v82-level-choice{padding:8px!important}
  body.v118-ui .modal:has(.v82-level-choice){width:min(92vw,450px)!important;max-height:76dvh!important;padding:12px!important;border-radius:19px!important}
  body.v118-ui .modal:has(.v82-level-choice)>h1{font-size:23px!important;line-height:1.05!important;margin:2px 0 10px!important;padding-right:42px!important}
  body.v118-ui .v82-level-choice>p{font-size:11px!important;line-height:1.3!important;margin:0 0 8px!important}
  body.v118-ui .v39-choice-grid{gap:6px!important}
  body.v118-ui .v39-choice-grid button{min-height:56px!important;height:56px!important;padding:7px 10px!important;border-radius:12px!important;font-size:13px!important}
  body.v118-ui .v82-level-choice>small{font-size:8.5px!important;line-height:1.25!important;margin-top:7px!important}
}

@media (max-width:430px){
  body.v118-ui .v39-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.v118-ui .v39-equip-slot{min-height:92px!important;height:92px!important}
  body.v118-ui .v38-loc-monster.v93-monster-card{min-height:116px!important}
  body.v118-ui.v111-battle-active .v101-battle{--v118-board-h:184px;padding-left:8px!important;padding-right:8px!important}
  body.v118-ui.v111-battle-active .v118-turn-timer{grid-template-columns:40px minmax(0,1fr) 64px!important;padding-left:8px!important;padding-right:8px!important}
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-copy b{font-size:14px!important}
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-meta span{font-size:21px!important}
}

/* v118 final stability pass: neutralise legacy absolute layouts that leaked through. */
@media (max-width:760px){
  body.v118-ui.v111-battle-active .v118-turn-timer,
  body.v118-ui.v111-battle-active .v118-turn-timer *{box-sizing:border-box!important}
  body.v118-ui.v111-battle-active .v118-turn-timer{max-width:100%!important;min-width:0!important}
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-bar{
    position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;max-width:100%!important;min-width:0!important;transform:none!important;
  }
  body.v118-ui.v111-battle-active .v118-turn-timer .v79-turn-bar i{
    position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;
  }
  body.v118-ui.v111-battle-active #support-drawer-open.v115-support-under-log,
  body.v118-ui.v111-battle-active #support-drawer-open.v115-support-under-log *{box-sizing:border-box!important}

  body.v118-ui .v118-target-card .v118-target-effects{
    position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    transform:none!important;float:none!important;clear:both!important;
    grid-column:auto!important;grid-row:auto!important;align-self:end!important;justify-self:stretch!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
  }

  body.v118-ui .v39-equip-slot{
    grid-template-rows:14px 12px minmax(18px,1fr) 15px!important;
    min-height:102px!important;height:102px!important;box-sizing:border-box!important;
  }
  body.v118-ui .v39-equip-slot .v39-slot-icon{grid-row:1/4!important}
  body.v118-ui .v39-equip-slot .v39-slot-item{grid-row:4!important;align-self:end!important}
}

@media (max-width:430px){
  body.v118-ui .v39-equip-slot{min-height:102px!important;height:102px!important}
}

@media (max-width:760px){
  html body.v118-ui.v115-ui.v116-ui.v117-ui.v111-battle-active:not(.v127-ui) #support-drawer-open.v115-support-under-log{
    align-self:stretch!important;justify-self:stretch!important;
    width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
    margin:0!important;transform:none!important;padding:4px 10px!important;
  }
}

@media (max-width:760px){
  html body.v118-ui .v118-target-dialog .v106-target-grid{
    grid-template-columns:minmax(0,1fr)!important;justify-items:stretch!important;width:100%!important;
  }
  html body.v118-ui .v118-target-dialog .v118-target-card{
    width:100%!important;max-width:none!important;justify-self:stretch!important;
  }
}

@media (max-width:760px){
  html body.v118-ui.v115-ui .v118-target-dialog .v106-target-grid:has(.v118-target-card:only-child){
    grid-template-columns:minmax(0,1fr)!important;justify-content:stretch!important;
  }
}

/* ---- css/v119-final-ui.css ---- */
/* Aldos RPG v119 — final compact mobile dark-fantasy interface.
   This sheet intentionally overrides the accumulated legacy mobile layers.
   Battle layout is left to v118 except for shared modal/button polish. */

:root{
  --v119-bg:#030b0e;
  --v119-panel:#07161a;
  --v119-panel-2:#0a1b20;
  --v119-panel-3:#0d2227;
  --v119-line:#9f6b24;
  --v119-line-soft:rgba(198,132,45,.38);
  --v119-gold:#e4b75c;
  --v119-gold-2:#ffcf72;
  --v119-text:#f3eee4;
  --v119-muted:#a8a39a;
  --v119-green:#a8ee16;
  --v119-green-2:#5f9f0b;
  --v119-red:#d34b4f;
  --v119-nav-h:76px;
  --v119-safe-bottom:max(8px,env(safe-area-inset-bottom));
  --v119-radius:18px;
  --v119-shadow:0 18px 52px rgba(0,0,0,.46);
}

body.v119-ui{
  color:var(--v119-text)!important;
  background:
    radial-gradient(circle at 50% -20%,rgba(26,72,67,.22),transparent 38%),
    linear-gradient(180deg,#02090c,#02080b 55%,#030a0d)!important;
  overflow-x:hidden!important;
}
body.v119-ui *{box-sizing:border-box}
body.v119-ui button,
body.v119-ui input,
body.v119-ui select{font:inherit}
body.v119-ui h1,
body.v119-ui h2,
body.v119-ui h3,
body.v119-ui .v119-serif{font-family:Georgia,"Times New Roman",serif}
body.v119-ui button{touch-action:manipulation}
body.v119-ui button:focus-visible,
body.v119-ui input:focus-visible,
body.v119-ui select:focus-visible{outline:2px solid var(--v119-gold-2)!important;outline-offset:2px}

@media(max-width:760px){
  body.v119-ui:not(.v111-battle-active) .app-shell{min-height:100dvh!important;background:transparent!important}
  body.v119-ui:not(.v111-battle-active) .v119-screen{
    width:100%!important;
    max-width:760px!important;
    margin:0 auto!important;
    padding:calc(84px + env(safe-area-inset-top)) 12px calc(var(--v119-nav-h) + var(--v119-safe-bottom) + 18px)!important;
    overflow:visible!important;
  }

  /* ---------- Shared top bar ---------- */
  body.v119-ui:not(.v111-battle-active) .v119-topbar{
    position:fixed!important;
    inset:0 0 auto!important;
    z-index:900!important;
    height:calc(74px + env(safe-area-inset-top))!important;
    min-height:calc(74px + env(safe-area-inset-top))!important;
    padding:calc(8px + env(safe-area-inset-top)) 12px 8px!important;
    display:grid!important;
    grid-template-columns:52px minmax(92px,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    background:linear-gradient(180deg,rgba(2,10,13,.99),rgba(3,12,15,.96))!important;
    border:0!important;
    border-bottom:1px solid rgba(196,130,42,.42)!important;
    box-shadow:0 8px 22px rgba(0,0,0,.34)!important;
    backdrop-filter:blur(16px)!important;
  }
  body.v119-ui:not(.v111-battle-active) .v119-topbar .hamburger{
    width:52px!important;height:52px!important;min-width:52px!important;
    padding:12px!important;border-radius:15px!important;
    border:1px solid rgba(208,143,48,.55)!important;
    background:linear-gradient(145deg,rgba(16,35,38,.98),rgba(4,15,18,.98))!important;
    color:var(--v119-gold)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important;
  }
  body.v119-ui:not(.v111-battle-active) .v119-topbar .hamburger svg,
  body.v119-ui:not(.v111-battle-active) .v119-topbar .hamburger img{width:100%!important;height:100%!important;object-fit:contain!important}
  body.v119-ui .v119-top-currency{
    justify-self:start!important;height:46px!important;max-width:170px!important;
    display:flex!important;align-items:center!important;gap:9px!important;
    padding:5px 13px 5px 7px!important;border-radius:23px!important;
    border:1px solid rgba(201,133,39,.48)!important;background:rgba(4,15,18,.92)!important;
    color:var(--v119-text)!important;box-shadow:none!important;
  }
  body.v119-ui .v119-top-currency img{width:34px!important;height:34px!important;object-fit:contain!important}
  body.v119-ui .v119-top-currency span{display:grid!important;line-height:1.05!important;text-align:left!important}
  body.v119-ui .v119-top-currency b{font-size:15px!important;font-weight:650!important;white-space:nowrap!important}
  body.v119-ui .v119-top-currency small{font-size:9px!important;color:var(--v119-muted)!important}
  body.v119-ui .v119-top-player{
    justify-self:end!important;min-width:0!important;height:56px!important;
    display:grid!important;grid-template-columns:46px minmax(58px,auto) 48px!important;align-items:center!important;gap:7px!important;
    padding:0!important;border:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;
  }
  body.v119-ui .v119-top-avatar{width:46px!important;height:46px!important;border-radius:50%!important;overflow:hidden!important;border:1px solid var(--v119-line)!important;background:#071417!important}
  body.v119-ui .v119-top-avatar :where(img,.class-inline-image){width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 18%!important}
  body.v119-ui .v119-top-copy{display:grid!important;min-width:0!important;text-align:left!important;line-height:1.05!important}
  body.v119-ui .v119-top-copy b{font-family:Georgia,"Times New Roman",serif!important;font-size:16px!important;font-weight:500!important;max-width:100px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-top-copy small{display:flex!important;align-items:center!important;gap:5px!important;color:#b9a996!important;font-size:10px!important}
  body.v119-ui .v119-top-copy i{display:inline-block!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#89d415!important;box-shadow:0 0 9px rgba(137,212,21,.55)!important}
  body.v119-ui .v119-level-shield{
    width:46px!important;height:52px!important;display:grid!important;place-items:center!important;
    font-family:Georgia,"Times New Roman",serif!important;font-size:22px!important;color:#ffc768!important;
    background:linear-gradient(180deg,#143b43,#071a20)!important;
    clip-path:polygon(50% 0,92% 14%,88% 77%,50% 100%,12% 77%,8% 14%)!important;
    border:0!important;filter:drop-shadow(0 0 0.7px #d09132)!important;
  }

  /* ---------- Page heading and bottom navigation ---------- */
  body.v119-ui .v119-page-heading{
    height:58px!important;display:flex!important;align-items:center!important;gap:12px!important;
    margin:0 0 12px!important;padding:0 6px 9px!important;border-bottom:1px solid rgba(183,119,37,.3)!important;
  }
  body.v119-ui .v119-page-heading .v119-page-icon{width:38px!important;height:38px!important;padding:5px!important;border:1px solid rgba(205,141,48,.35)!important;border-radius:10px!important;background:rgba(12,34,37,.78)!important}
  body.v119-ui .v119-page-heading h1{margin:0!important;font:500 27px/1 Georgia,"Times New Roman",serif!important;color:var(--v119-text)!important}
  body.v119-ui:not(.v111-battle-active) .v119-bottom-nav{
    position:fixed!important;inset:auto 0 0!important;z-index:880!important;
    width:100%!important;height:calc(var(--v119-nav-h) + var(--v119-safe-bottom))!important;
    padding:6px 8px var(--v119-safe-bottom)!important;
    display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4px!important;
    background:linear-gradient(180deg,rgba(4,15,18,.96),rgba(1,8,11,.995))!important;
    border:1px solid rgba(181,118,34,.34)!important;border-bottom:0!important;border-radius:22px 22px 0 0!important;
    box-shadow:0 -12px 36px rgba(0,0,0,.38)!important;
  }
  body.v119-ui .v119-bottom-nav button{
    min-height:58px!important;height:58px!important;padding:5px!important;display:grid!important;grid-template-rows:31px 18px!important;place-items:center!important;
    border:1px solid transparent!important;border-radius:16px!important;background:transparent!important;color:#b9b3aa!important;box-shadow:none!important;
  }
  body.v119-ui .v119-bottom-nav button.active{
    color:#fff0ca!important;border-color:rgba(221,166,64,.75)!important;
    background:radial-gradient(circle at 50% 30%,rgba(186,137,47,.18),rgba(4,17,19,.88) 70%)!important;
    box-shadow:0 0 18px rgba(216,157,50,.12),inset 0 -2px 0 rgba(255,205,94,.5)!important;
  }
  body.v119-ui .v119-bottom-nav .nav-glyph{width:30px!important;height:30px!important;object-fit:contain!important}
  body.v119-ui .v119-bottom-nav span{font-family:Georgia,"Times New Roman",serif!important;font-size:13px!important;line-height:1!important}

  /* ---------- Location ---------- */
  body.v119-ui .v119-location-hero{
    position:relative!important;display:grid!important;grid-template-columns:minmax(112px,38%) 1fr!important;gap:12px!important;
    min-height:185px!important;margin:0 0 11px!important;padding:11px!important;overflow:hidden!important;
    border:1px solid rgba(199,132,42,.52)!important;border-radius:20px!important;
    background:linear-gradient(145deg,rgba(7,29,32,.96),rgba(4,14,17,.98))!important;box-shadow:var(--v119-shadow)!important;
  }
  body.v119-ui .v119-location-image{
    min-height:132px!important;border-radius:14px!important;border:1px solid rgba(196,127,34,.48)!important;
    background-image:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.22)),var(--v119-location-bg)!important;
    background-size:cover!important;background-position:center!important;
  }
  body.v119-ui .v119-location-copy{min-width:0!important;display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:"title map" "round map" "desc desc";align-content:center!important;gap:5px 8px!important}
  body.v119-ui .v119-location-copy h1{grid-area:title!important;margin:0!important;font-size:31px!important;line-height:.98!important;font-weight:500!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-location-copy>b{grid-area:round!important;font-size:14px!important;color:#e99a30!important;font-weight:500!important}
  body.v119-ui .v119-location-copy p{grid-area:desc!important;margin:3px 0 0!important;font-size:11px!important;line-height:1.38!important;color:#b8b1a7!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v119-ui .v119-map-button{grid-area:map!important;align-self:start!important;min-width:84px!important;height:42px!important;padding:0 12px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;border:1px solid rgba(216,150,54,.45)!important;border-radius:13px!important;background:rgba(6,23,26,.86)!important;color:#e7ad4d!important;font-size:13px!important}
  body.v119-ui .v119-map-button svg,body.v119-ui .v119-map-button img{width:19px!important;height:19px!important}
  body.v119-ui .v119-location-routes{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:0!important}
  body.v119-ui .v119-location-routes .location-btn{height:36px!important;min-height:36px!important;padding:0 10px!important;border-radius:11px!important;border:1px solid rgba(65,135,95,.55)!important;background:linear-gradient(180deg,rgba(37,93,66,.78),rgba(17,55,44,.84))!important;color:#f0f1e8!important;font-size:11px!important}

  body.v119-ui .v119-location-panel{
    margin:0 0 11px!important;padding:12px!important;border:1px solid rgba(188,124,38,.38)!important;border-radius:19px!important;
    background:linear-gradient(150deg,rgba(6,24,27,.96),rgba(3,14,17,.98))!important;box-shadow:0 10px 28px rgba(0,0,0,.25)!important;
  }
  body.v119-ui .v119-location-panel>header,
  body.v119-ui .v119-location-panel>summary{min-height:34px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0!important;padding:0 2px 8px!important;border-bottom:1px solid rgba(183,121,38,.2)!important;list-style:none!important}
  body.v119-ui .v119-location-panel>summary::-webkit-details-marker{display:none!important}
  body.v119-ui .v119-location-panel h2{margin:0!important;font:500 22px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-location-panel>header span,
  body.v119-ui .v119-location-panel>summary span{font-size:12px!important;color:#94ce22!important}
  body.v119-ui .v119-location-panel>summary i{display:inline-block!important;font-style:normal!important;color:#e9a748!important;transition:transform .18s ease!important}
  body.v119-ui .v119-location-panel:not([open])>summary i{transform:rotate(180deg)!important}
  body.v119-ui .v119-location-player{
    min-height:70px!important;display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:9px 2px 0!important;
  }
  body.v119-ui .v119-location-player-art{position:relative!important;width:54px!important;height:54px!important;border:1px solid rgba(207,143,48,.65)!important;border-radius:50%!important;overflow:visible!important;background:#071719!important}
  body.v119-ui .v119-location-player-art :where(img,.class-inline-image){width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 16%!important;border-radius:50%!important}
  body.v119-ui .v119-location-player-art>b{position:absolute!important;right:-5px!important;bottom:-3px!important;min-width:23px!important;height:23px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#123d42!important;border:1px solid #d39b3f!important;font-size:10px!important;color:#ffd57a!important}
  body.v119-ui .v119-location-player-copy{display:grid!important;gap:3px!important;min-width:0!important}
  body.v119-ui .v119-location-player-copy strong{font:500 20px/1 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-location-player-copy small{display:flex!important;align-items:center!important;gap:6px!important;color:#ada79d!important;font-size:11px!important}
  body.v119-ui .v119-location-player-copy i{width:8px!important;height:8px!important;border-radius:50%!important;background:#88d414!important}
  body.v119-ui .v119-player-friend{height:40px!important;max-width:168px!important;padding:0 12px!important;display:flex!important;align-items:center!important;gap:6px!important;border:1px solid rgba(191,129,40,.42)!important;border-radius:12px!important;background:rgba(6,20,23,.92)!important;color:#c9c0b5!important;font-size:11px!important}
  body.v119-ui .v119-player-friend svg,body.v119-ui .v119-player-friend img{width:18px!important;height:18px!important}
  body.v119-ui .v119-player-self{padding:5px 9px!important;border-radius:12px!important;background:rgba(109,154,17,.18)!important;color:#aee32d!important;font-size:10px!important}

  body.v119-ui .v119-battles-panel>div{padding-top:8px!important}
  body.v119-ui .v119-battle-list{display:grid!important;gap:7px!important}
  body.v119-ui .v119-battle-row{
    min-height:78px!important;display:grid!important;grid-template-columns:minmax(86px,.9fr) 34px minmax(105px,1.15fr) minmax(92px,.9fr)!important;align-items:center!important;gap:5px!important;
    padding:7px!important;border:1px solid rgba(173,112,33,.3)!important;border-radius:14px!important;background:rgba(4,16,19,.78)!important;
  }
  body.v119-ui .v119-battle-team{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:6px!important;min-width:0!important}
  body.v119-ui .v119-battle-avatar{width:44px!important;height:44px!important;border-radius:50%!important;border:1px solid rgba(203,138,45,.6)!important;overflow:hidden!important}
  body.v119-ui .v119-battle-avatar :where(img,.class-inline-image){width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 18%!important}
  body.v119-ui .v119-battle-team>span:last-child{display:grid!important;min-width:0!important}
  body.v119-ui .v119-battle-team b,
  body.v119-ui .v119-battle-enemies b{font-family:Georgia,"Times New Roman",serif!important;font-size:12px!important;font-weight:500!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-battle-team small,
  body.v119-ui .v119-battle-enemies small{font-size:8.5px!important;color:#aaa49a!important}
  body.v119-ui .v119-battle-team i{display:flex!important;height:12px!important;gap:1px!important;color:#84c919!important}
  body.v119-ui .v119-battle-team i :where(svg,img){width:10px!important;height:10px!important}
  body.v119-ui .v119-battle-vs{display:grid!important;place-items:center!important;gap:0!important;color:#e39432!important}
  body.v119-ui .v119-battle-vs :where(svg,img){width:24px!important;height:24px!important}
  body.v119-ui .v119-battle-vs b{font-family:Georgia,"Times New Roman",serif!important;font-size:12px!important}
  body.v119-ui .v119-battle-enemies{display:grid!important;grid-template-columns:55px minmax(0,1fr)!important;align-items:center!important;gap:5px!important;min-width:0!important}
  body.v119-ui .v119-battle-enemies>div{display:flex!important;align-items:center!important}
  body.v119-ui .v119-battle-enemies>div span{width:34px!important;height:34px!important;margin-right:-10px!important;border-radius:50%!important;border:1px solid rgba(207,142,45,.64)!important;overflow:hidden!important;background:#081619!important}
  body.v119-ui .v119-battle-enemies>div span:last-child{margin-right:0!important}
  body.v119-ui .v119-battle-enemies>div :where(img,.monster-asset-image){width:100%!important;height:100%!important;object-fit:contain!important}
  body.v119-ui .v119-battle-enemies>span{display:grid!important;min-width:0!important}
  body.v119-ui .v119-battle-join{display:grid!important;gap:3px!important;justify-items:stretch!important}
  body.v119-ui .v119-battle-join button{height:38px!important;min-height:38px!important;padding:0 7px!important;border-radius:10px!important;font-size:10px!important;white-space:nowrap!important}
  body.v119-ui .v119-battle-join small{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;color:#d99b37!important;font-size:8.5px!important}
  body.v119-ui .v119-battle-join small :where(svg,img){width:12px!important;height:12px!important}
  body.v119-ui .v119-battles-empty{min-height:84px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;color:#8f8c86!important}
  body.v119-ui .v119-battles-empty :where(svg,img){width:38px!important;height:38px!important;opacity:.6!important}
  body.v119-ui .v119-battles-empty p{margin:0!important;font-size:12px!important}

  body.v119-ui .v119-monsters-panel>header>div{display:grid!important;gap:2px!important}
  body.v119-ui .v119-monsters-panel>header small{font-size:10px!important;color:#a6a097!important}
  body.v119-ui .v119-monsters-panel>header button{height:34px!important;padding:0 10px!important;display:flex!important;align-items:center!important;gap:5px!important;border:1px solid rgba(193,128,37,.38)!important;border-radius:11px!important;background:transparent!important;color:#bdb5a9!important;font-size:10px!important}
  body.v119-ui .v119-monsters-panel>header button :where(svg,img){width:16px!important;height:16px!important}
  body.v119-ui .v119-monster-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:9px 0 0!important}
  body.v119-ui .v119-monster-card{
    min-width:0!important;min-height:164px!important;height:164px!important;padding:8px!important;
    display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;grid-template-rows:1fr 36px!important;gap:6px!important;
    border:1px solid rgba(185,122,37,.38)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(8,27,30,.94),rgba(4,15,18,.98))!important;overflow:hidden!important;
  }
  body.v119-ui .v119-monster-art{width:60px!important;height:70px!important;min-width:60px!important;align-self:center!important;border:1px solid rgba(201,135,42,.5)!important;border-radius:12px!important;overflow:hidden!important;background:rgba(5,14,16,.88)!important}
  body.v119-ui .v119-monster-art :where(img,.monster-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
  body.v119-ui .v119-monster-main{min-width:0!important;align-self:center!important;display:grid!important;gap:5px!important}
  body.v119-ui .v119-monster-main h3{margin:0!important;font:500 15px/1.08 Georgia,"Times New Roman",serif!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v119-ui .v119-monster-tags{display:flex!important;flex-wrap:wrap!important;gap:3px!important}
  body.v119-ui .v119-monster-tags span{height:18px!important;padding:0 6px!important;display:inline-flex!important;align-items:center!important;border:1px solid rgba(154,151,139,.32)!important;border-radius:9px!important;font-size:6.8px!important;letter-spacing:.02em!important;color:#bcb8ae!important;background:rgba(0,0,0,.12)!important}
  body.v119-ui .v119-monster-tags .pack{color:#a8dc29!important;border-color:rgba(130,192,31,.42)!important}
  body.v119-ui .v119-monster-tags .undead{color:#dc62d9!important;border-color:rgba(197,59,198,.42)!important}
  body.v119-ui .v119-monster-tags .beast{color:#e99532!important;border-color:rgba(223,128,32,.42)!important}
  body.v119-ui .v119-monster-main>small{font-size:10px!important;color:#9fe31e!important}
  body.v119-ui .v119-monster-main>p{margin:0!important;font-size:7.5px!important;line-height:1.2!important;color:#98938a!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v119-ui .v119-monster-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:.9fr 1.2fr!important;gap:6px!important}
  body.v119-ui .v119-monster-actions button{height:36px!important;min-height:36px!important;padding:0 6px!important;border-radius:10px!important;font-size:11px!important}

  body.v119-ui .v119-pit-card{
    width:100%!important;min-height:72px!important;margin:0!important;padding:8px 10px!important;display:grid!important;grid-template-columns:84px minmax(0,1fr) 86px 18px!important;align-items:center!important;gap:8px!important;
    border:1px solid rgba(193,128,39,.44)!important;border-radius:17px!important;background:linear-gradient(120deg,rgba(6,24,26,.98),rgba(3,14,16,.98))!important;color:inherit!important;text-align:left!important;
  }
  body.v119-ui .v119-pit-art{height:54px!important;border-radius:11px!important;background:linear-gradient(90deg,rgba(0,0,0,.04),rgba(0,0,0,.28)),url("../assets/v95/world/cave.webp?ah=4462651943e2"),url("../assets/v85/gameplay/loot-chest.webp?ah=a3c7e66ca66b")!important;background-size:cover,cover,contain!important;background-position:center!important;background-repeat:no-repeat!important}
  body.v119-ui .v119-pit-card>span:nth-child(2){display:grid!important;gap:3px!important}
  body.v119-ui .v119-pit-card b{font:500 20px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-pit-card small{font-size:9.5px!important;color:#aaa399!important}
  body.v119-ui .v119-pit-card em{height:38px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:linear-gradient(180deg,#9eda17,#64a20c)!important;color:#0b1906!important;font:600 12px/1 Georgia,"Times New Roman",serif!important;font-style:normal!important}
  body.v119-ui .v119-pit-card>i{font-size:28px!important;color:#e2a447!important;font-style:normal!important}

  /* ---------- Inventory ---------- */
  body.v119-ui .v119-inventory-shell{display:grid!important;gap:11px!important}
  body.v119-ui .v119-inventory-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body.v119-ui .v119-inventory-metrics :where(article,button){min-height:82px!important;padding:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;border:1px solid rgba(195,130,39,.43)!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(8,27,30,.96),rgba(4,15,18,.98))!important}
  body.v119-ui .v119-inventory-metrics :where(article,button)>:first-child{width:42px!important;height:42px!important;object-fit:contain!important;flex:0 0 auto!important}
  body.v119-ui .v119-inventory-metrics :where(article,button) span{display:grid!important;line-height:1.1!important}
  body.v119-ui .v119-inventory-metrics :where(article,button) b{font:500 20px/1.05 Georgia,"Times New Roman",serif!important;white-space:nowrap!important}
  body.v119-ui .v119-inventory-metrics :where(article,button) b i{font:normal 11px/1 sans-serif!important;color:#9e9890!important}
  body.v119-ui .v119-inventory-metrics :where(article,button) small{font-size:9px!important;color:#a8a197!important}
  body.v119-ui .v119-inventory-weight{display:grid!important;grid-template-columns:34px minmax(0,1fr) 82px!important;align-items:center!important;gap:8px!important;padding:0 4px!important}
  body.v119-ui .v119-inventory-weight>span{font-size:11px!important;color:#b5aa9b!important}
  body.v119-ui .v119-inventory-weight .bar{height:11px!important;border:1px solid rgba(176,119,39,.35)!important;background:#10191b!important;border-radius:7px!important;overflow:hidden!important}
  body.v119-ui .v119-inventory-weight .bar i{height:100%!important;display:block!important;background:linear-gradient(90deg,#5f9b08,#a8e820)!important}
  body.v119-ui .v119-inventory-weight>b{text-align:right!important;font-size:11px!important;color:#a7d52d!important}
  body.v119-ui .v119-inventory-weight>b i{font-style:normal!important;color:#9a948b!important}
  body.v119-ui .v119-inventory-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:5px!important;border:1px solid rgba(194,129,39,.4)!important;border-radius:17px!important;background:rgba(5,18,21,.94)!important;overflow:hidden!important}
  body.v119-ui .v119-inventory-tabs button{height:66px!important;min-width:0!important;padding:4px!important;display:grid!important;place-items:center!important;grid-template-rows:30px 18px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:#a69d91!important;font-size:8px!important;box-shadow:none!important}
  body.v119-ui .v119-inventory-tabs button.active{border-color:rgba(224,164,62,.75)!important;background:linear-gradient(145deg,rgba(58,49,18,.5),rgba(8,24,25,.96))!important;color:#ffd46e!important;box-shadow:inset 0 0 14px rgba(217,156,50,.12)!important}
  body.v119-ui .v119-inventory-tabs button :where(svg,img){width:26px!important;height:26px!important}
  body.v119-ui .v119-inventory-tabs span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
  body.v119-ui .v119-inventory-list{display:grid!important;gap:10px!important}
  body.v119-ui .v119-item-card{
    position:relative!important;min-height:154px!important;padding:11px!important;display:grid!important;grid-template-columns:116px minmax(0,1fr)!important;gap:11px!important;
    border:1px solid rgba(185,122,37,.42)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(6,24,27,.98),rgba(3,14,17,.99))!important;overflow:hidden!important;
  }
  body.v119-ui .v119-item-card[hidden]{display:none!important}
  body.v119-ui .v119-item-card .v39-item-aura{position:absolute!important;inset:auto 10% -45% 24%!important;height:130px!important;filter:blur(30px)!important;opacity:.22!important;pointer-events:none!important}
  body.v119-ui .v119-item-card.rarity-uncommon .v39-item-aura{background:#4da55d!important}
  body.v119-ui .v119-item-card.rarity-rare .v39-item-aura{background:#357fd2!important}
  body.v119-ui .v119-item-card.rarity-epic .v39-item-aura{background:#a944c7!important}
  body.v119-ui .v119-item-card.rarity-legendary .v39-item-aura{background:#d77914!important}
  body.v119-ui .v119-item-card .v39-item-icon-wrap{width:116px!important;min-width:116px!important;display:grid!important;grid-template-rows:110px auto!important;gap:4px!important;align-self:start!important}
  body.v119-ui .v119-item-card .item-emblem{position:relative!important;width:110px!important;height:110px!important;display:grid!important;place-items:center!important;border:1px solid rgba(210,145,45,.62)!important;border-radius:17px!important;background:rgba(4,14,16,.92)!important;overflow:visible!important}
  body.v119-ui .v119-item-card .item-emblem :where(img,.item-asset-image){width:92%!important;height:92%!important;object-fit:contain!important}
  body.v119-ui .v119-item-card .v80-stack-count{position:absolute!important;right:-4px!important;bottom:-4px!important;width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:50%!important;border:1px solid #e4b257!important;background:#071214!important;color:#fff!important;font-size:12px!important}
  body.v119-ui .v119-item-card .item-type-label{display:none!important}
  body.v119-ui .v119-item-card .v39-item-body{min-width:0!important;display:flex!important;flex-direction:column!important;gap:7px!important}
  body.v119-ui .v119-item-card .v39-item-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important}
  body.v119-ui .v119-item-card .v39-item-head h3{margin:0!important;font:500 24px/1.04 Georgia,"Times New Roman",serif!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-item-card .item-weight{flex:0 0 auto!important;padding:5px 8px!important;border:1px solid rgba(196,130,39,.38)!important;border-radius:10px!important;font-size:9px!important;color:#b9aea1!important}
  body.v119-ui .v119-item-card .item-description{margin:0!important;font-size:11px!important;line-height:1.35!important;color:#aaa49a!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v119-ui .v119-item-card .v80-item-stats{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  body.v119-ui .v119-item-card .v80-item-stats span{height:27px!important;padding:0 9px!important;display:flex!important;align-items:center!important;gap:5px!important;border:1px solid rgba(186,122,38,.3)!important;border-radius:12px!important;background:rgba(31,31,25,.45)!important;font-size:9px!important;color:#d2c9bc!important}
  body.v119-ui .v119-item-card .v80-item-stats :where(svg,img){width:15px!important;height:15px!important}
  body.v119-ui .v119-item-card .v78-durability{display:grid!important;grid-template-columns:46px minmax(0,1fr) 48px!important;align-items:center!important;gap:6px!important;font-size:8px!important;color:#99938b!important}
  body.v119-ui .v119-item-card .v78-durability>div{height:6px!important;border-radius:4px!important;background:#152024!important;overflow:hidden!important}
  body.v119-ui .v119-item-card .v78-durability i{height:100%!important;display:block!important;background:linear-gradient(90deg,#d0a547,#74e5a9)!important}
  body.v119-ui .v119-item-card .item-actions{margin-top:auto!important;display:flex!important;justify-content:flex-end!important;gap:8px!important}
  body.v119-ui .v119-item-card .item-actions button{height:42px!important;min-width:112px!important;padding:0 14px!important;border-radius:12px!important;font-size:11px!important}
  body.v119-ui .v119-inventory-tools{position:sticky!important;bottom:calc(var(--v119-nav-h) + var(--v119-safe-bottom) + 3px)!important;z-index:12!important;display:grid!important;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;padding:7px!important;border:1px solid rgba(185,122,37,.4)!important;border-radius:15px!important;background:rgba(2,12,15,.96)!important;backdrop-filter:blur(14px)!important}
  body.v119-ui .v119-inventory-tools label{height:40px!important;display:flex!important;align-items:center!important;gap:6px!important;padding:0 9px!important;border:1px solid rgba(185,122,37,.34)!important;border-radius:11px!important;background:rgba(5,17,19,.94)!important}
  body.v119-ui .v119-inventory-tools label :where(svg,img){width:18px!important;height:18px!important;flex:0 0 auto!important}
  body.v119-ui .v119-inventory-tools input,
  body.v119-ui .v119-inventory-tools select{width:100%!important;min-width:0!important;border:0!important;background:transparent!important;color:#c8c0b5!important;font-size:9.5px!important;outline:0!important}
  body.v119-ui .v119-inventory-tools select{appearance:none!important}
  body.v119-ui .v119-inventory-tools>span{text-align:center!important;color:#91c628!important;font-size:10px!important}

  /* ---------- Pit ---------- */
  body.v119-ui .v119-pit-screen{display:grid!important;gap:10px!important}
  body.v119-ui .v119-pit-header{display:flex!important;justify-content:space-between!important;align-items:start!important;padding:0 4px!important}
  body.v119-ui .v119-pit-header h1{margin:0!important;font:500 31px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-pit-header p{margin:4px 0 0!important;font-size:11px!important;color:#94c72a!important}
  body.v119-ui .v119-pit-header>b{min-width:98px!important;padding:8px 10px!important;display:grid!important;text-align:center!important;border:1px solid rgba(190,125,37,.42)!important;border-radius:14px!important;font:500 19px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-pit-header>b i{font-style:normal!important;color:#aaa39a!important}
  body.v119-ui .v119-pit-header>b small{margin-top:4px!important;font:9px/1 sans-serif!important;color:#aaa39a!important}
  body.v119-ui .v119-pit-scene{height:160px!important;border:1px solid rgba(185,121,35,.35)!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.5)),url("../assets/v95/world/cave.webp?ah=4462651943e2"),url("../assets/v85/gameplay/loot-chest.webp?ah=a3c7e66ca66b")!important;background-size:cover,cover,contain!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:inset 0 -40px 65px rgba(0,0,0,.55)!important}
  body.v119-ui .v119-pit-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.v119-ui .v119-pit-metrics article{min-height:76px!important;padding:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;border:1px solid rgba(188,123,37,.38)!important;border-radius:15px!important;background:rgba(6,22,25,.95)!important}
  body.v119-ui .v119-pit-metrics article>:first-child{width:38px!important;height:38px!important}
  body.v119-ui .v119-pit-metrics span{display:grid!important;gap:3px!important}
  body.v119-ui .v119-pit-metrics b{font:500 20px/1 Georgia,"Times New Roman",serif!important;color:#a9df24!important}
  body.v119-ui .v119-pit-metrics b i{font:normal 10px sans-serif!important;color:#aaa39a!important}
  body.v119-ui .v119-pit-metrics small{font-size:9px!important;color:#a59e94!important}
  body.v119-ui .v119-pit-group{padding:10px!important;border:1px solid rgba(188,123,37,.38)!important;border-radius:17px!important;background:rgba(5,19,22,.95)!important}
  body.v119-ui .v119-pit-group h2{margin:0 0 7px!important;font:500 20px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-pit-item{min-height:78px!important;display:grid!important;grid-template-columns:64px minmax(0,1fr) 60px 78px!important;align-items:center!important;gap:8px!important;padding:7px 0!important;border-bottom:1px solid rgba(183,119,36,.22)!important}
  body.v119-ui .v119-pit-item:last-child{border-bottom:0!important}
  body.v119-ui .v119-pit-item-art{position:relative!important;width:62px!important;height:62px!important;display:grid!important;place-items:center!important;border:1px solid rgba(202,137,42,.55)!important;border-radius:12px!important;background:#061518!important}
  body.v119-ui .v119-pit-item-art :where(img,.item-asset-image){width:90%!important;height:90%!important;object-fit:contain!important}
  body.v119-ui .v119-pit-item-art>b{position:absolute!important;right:-4px!important;bottom:-4px!important;width:24px!important;height:24px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#071416!important;border:1px solid #d69a3f!important;font-size:10px!important}
  body.v119-ui .v119-pit-item-copy{display:grid!important;min-width:0!important;gap:4px!important}
  body.v119-ui .v119-pit-item-copy strong{font:500 17px/1.1 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-pit-item-copy small{font-size:9px!important;color:#a49e95!important}
  body.v119-ui .v119-pit-item-copy em{font-style:normal!important;color:#9fd224!important}
  body.v119-ui .v119-pit-item-weight{justify-self:center!important;padding:5px 7px!important;border:1px solid rgba(185,121,36,.28)!important;border-radius:9px!important;font-size:8.5px!important;color:#aaa39a!important}
  body.v119-ui .v119-pit-item>button{height:38px!important;padding:0 8px!important;border-radius:10px!important;font-size:10px!important}
  body.v119-ui .v119-pit-deposit{height:62px!important;display:grid!important;grid-template-columns:46px 1fr 18px!important;align-items:center!important;gap:10px!important;border:1px solid rgba(125,172,36,.65)!important;border-radius:15px!important;background:linear-gradient(180deg,rgba(39,92,28,.78),rgba(18,58,29,.92))!important;color:#f0eedf!important}
  body.v119-ui .v119-pit-deposit :where(svg,img){width:40px!important;height:40px!important}
  body.v119-ui .v119-pit-deposit span{font:500 18px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-pit-deposit i{font-style:normal!important;font-size:26px!important;color:#e0a042!important}
  body.v119-ui .v119-deposit-list{display:grid!important;gap:7px!important;max-height:65dvh!important;overflow-y:auto!important}
  body.v119-ui .v119-deposit-row{min-height:72px!important;padding:7px!important;display:grid!important;grid-template-columns:56px minmax(0,1fr) 80px!important;align-items:center!important;gap:8px!important;border:1px solid rgba(181,119,37,.32)!important;border-radius:13px!important;background:rgba(5,20,23,.96)!important}
  body.v119-ui .v119-deposit-row>span{width:54px!important;height:54px!important;display:grid!important;place-items:center!important}
  body.v119-ui .v119-deposit-row>span :where(img,.item-asset-image){width:100%!important;height:100%!important;object-fit:contain!important}
  body.v119-ui .v119-deposit-row>div{display:grid!important;min-width:0!important}
  body.v119-ui .v119-deposit-row b{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-deposit-row small{font-size:8px!important;color:#aaa39a!important}
  body.v119-ui .v119-deposit-row button{height:36px!important;font-size:9px!important}

  /* ---------- Profile ---------- */
  body.v119-ui .v119-profile-layout{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  body.v119-ui .v119-profile-layout .v39-profile-hero{
    min-height:170px!important;padding:13px!important;display:grid!important;grid-template-columns:126px minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;gap:7px 13px!important;
    border:1px solid rgba(194,129,38,.42)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(8,27,30,.96),rgba(4,15,18,.99))!important;
  }
  body.v119-ui .v119-profile-layout .v39-avatar-ring{grid-row:1/3!important;width:126px!important;height:142px!important;border:1px solid rgba(211,144,43,.62)!important;border-radius:17px!important;overflow:hidden!important;background:#07171a!important}
  body.v119-ui .v119-profile-layout .v39-avatar-ring .avatar,
  body.v119-ui .v119-profile-layout .v39-avatar-ring :where(img,.class-inline-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
  body.v119-ui .v119-profile-layout .v39-hero-info{align-self:end!important;min-width:0!important}
  body.v119-ui .v119-profile-layout .v76-profile-name-line{display:flex!important;align-items:center!important;gap:7px!important}
  body.v119-ui .v119-profile-layout .v95-expand-name{min-width:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important}
  body.v119-ui .v119-profile-layout .v95-expand-name span{display:block!important;font:500 29px/1 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-profile-layout .v76-rename-button{width:32px!important;height:32px!important;border-radius:10px!important;border:1px solid rgba(171,117,42,.28)!important;background:#09191c!important;color:#918b83!important}
  body.v119-ui .v119-profile-layout .v39-hero-info p{margin:6px 0!important;font-size:11px!important;color:#aaa39a!important}
  body.v119-ui .v119-profile-layout .v39-exp-box{align-self:start!important;padding:9px!important;border-radius:12px!important;background:rgba(12,28,31,.86)!important}
  body.v119-ui .v119-profile-layout .v39-exp-box>div:first-child{display:flex!important;justify-content:space-between!important;font-size:10px!important}
  body.v119-ui .v119-profile-layout .v39-exp-box .bar{height:7px!important;margin-top:6px!important;border-radius:5px!important;background:#182124!important;overflow:hidden!important}
  body.v119-ui .v119-profile-layout .v39-exp-box .bar i{height:100%!important;display:block!important;background:linear-gradient(90deg,#7ebd12,#b4ee2d)!important}
  body.v119-ui .v119-profile-stats{display:grid!important;gap:10px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.v119-ui .v119-profile-stats .v39-stat-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important}
  body.v119-ui .v119-profile-stats .v39-resource-card{grid-column:span 3!important;min-height:92px!important;padding:10px!important;border:1px solid rgba(180,120,39,.35)!important;border-radius:15px!important;background:#0b1b20!important}
  body.v119-ui .v119-profile-stats .v39-resource-card>div:first-child{display:grid!important;grid-template-columns:28px 1fr!important;grid-template-rows:auto auto!important;align-items:center!important;gap:2px 7px!important}
  body.v119-ui .v119-profile-stats .v39-resource-card>div:first-child>span{grid-row:1/3!important;width:28px!important;height:28px!important}
  body.v119-ui .v119-profile-stats .v39-resource-card small{font-size:9px!important;color:#a9a298!important}
  body.v119-ui .v119-profile-stats .v39-resource-card b{font-size:17px!important}
  body.v119-ui .v119-profile-stats .v39-resource-card .bar{height:7px!important;margin-top:9px!important;background:#172124!important;border-radius:5px!important;overflow:hidden!important}
  body.v119-ui .v119-profile-stats .v39-resource-card .bar i{height:100%!important;display:block!important}
  body.v119-ui .v119-profile-stats .v39-resource-card.hp .bar i{background:linear-gradient(90deg,#6bb70e,#b9eb43)!important}
  body.v119-ui .v119-profile-stats .v39-resource-card.mp .bar i{background:linear-gradient(90deg,#21aada,#55d7f1)!important}
  body.v119-ui .v119-profile-stats .v39-mini-stat{grid-column:span 2!important;min-height:78px!important;padding:9px!important;display:grid!important;grid-template-columns:26px 1fr!important;grid-template-rows:auto auto!important;align-items:center!important;border:1px solid rgba(180,120,39,.35)!important;border-radius:14px!important;background:#0b1b20!important}
  body.v119-ui .v119-profile-stats .v39-mini-stat>span{grid-row:1/3!important;width:25px!important;height:25px!important}
  body.v119-ui .v119-profile-stats .v39-mini-stat small{font-size:8px!important;color:#aaa39a!important}
  body.v119-ui .v119-profile-stats .v39-mini-stat b{font-size:14px!important}
  body.v119-ui .v119-attributes{padding:11px!important;border:1px solid rgba(186,123,39,.36)!important;border-radius:17px!important;background:rgba(5,19,22,.95)!important}
  body.v119-ui .v119-attributes h2{margin:0 0 8px!important;font:500 23px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-attributes>p{display:none!important}
  body.v119-ui .v119-attributes .v39-attr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.v119-ui .v119-attributes .v83-attr-card{height:50px!important;min-height:50px!important;padding:0 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border:1px solid rgba(182,120,38,.34)!important;border-radius:12px!important;background:rgba(7,22,25,.95)!important;color:inherit!important}
  body.v119-ui .v119-attributes .v83-attr-card.weak{border-color:rgba(165,52,72,.42)!important;background:rgba(44,18,26,.55)!important}
  body.v119-ui .v119-attributes .v83-attr-name{font-size:11px!important}
  body.v119-ui .v119-attributes .v83-attr-card>b{width:38px!important;height:32px!important;display:grid!important;place-items:center!important;border:1px solid rgba(195,133,41,.45)!important;border-radius:10px!important;background:#211c0c!important;color:#ffbe5d!important;font-size:15px!important}
  body.v119-ui .v119-equipment-panel{padding:11px!important;border:1px solid rgba(186,123,39,.38)!important;border-radius:17px!important;background:rgba(5,19,22,.96)!important}
  body.v119-ui .v119-equipment-panel .v39-panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:8px!important}
  body.v119-ui .v119-equipment-panel .v39-panel-head h2{margin:0!important;font:500 23px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-equipment-panel .v39-panel-head p{display:none!important}
  body.v119-ui .v119-equipment-panel .v39-panel-head>span{height:33px!important;padding:0 11px!important;display:grid!important;place-items:center!important;border:1px solid rgba(197,131,37,.44)!important;border-radius:15px!important;background:rgba(51,37,14,.58)!important;color:#ffd079!important;font-size:10px!important}
  body.v119-ui .v119-equipment-panel .v39-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.v119-ui .v119-equipment-panel .v39-equip-slot{position:relative!important;min-height:116px!important;height:116px!important;padding:8px!important;display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:18px 1fr 24px!important;gap:2px 8px!important;text-align:left!important;border:1px solid rgba(159,159,153,.35)!important;border-radius:13px!important;background:linear-gradient(145deg,#0a181c,#071217)!important;color:inherit!important;overflow:hidden!important}
  body.v119-ui .v119-equipment-panel .v39-equip-slot.rarity-uncommon{border-color:#3d7f4c!important;background:linear-gradient(145deg,rgba(19,55,39,.72),#071417)!important}
  body.v119-ui .v119-equipment-panel .v39-equip-slot.rarity-rare{border-color:#306da7!important;background:linear-gradient(145deg,rgba(17,43,71,.72),#071417)!important}
  body.v119-ui .v119-equipment-panel .v39-equip-slot.rarity-epic{border-color:#8844a0!important;background:linear-gradient(145deg,rgba(60,22,70,.7),#071417)!important}
  body.v119-ui .v119-equipment-panel .v39-equip-slot.rarity-legendary{border-color:#b66c1c!important;background:linear-gradient(145deg,rgba(78,40,10,.72),#071417)!important;box-shadow:inset 0 0 18px rgba(230,126,25,.12)!important}
  body.v119-ui .v119-equipment-panel .v39-slot-name{grid-column:2!important;grid-row:1!important;font-size:7.5px!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:#a8a39a!important}
  body.v119-ui .v119-equipment-panel .v39-slot-icon{grid-column:1!important;grid-row:1/4!important;width:72px!important;height:96px!important;display:grid!important;place-items:center!important;border:1px solid rgba(183,129,50,.36)!important;border-radius:11px!important;background:rgba(3,12,15,.74)!important;overflow:hidden!important}
  body.v119-ui .v119-equipment-panel .v39-slot-icon :where(img,.item-asset-image){width:90%!important;height:90%!important;object-fit:contain!important}
  body.v119-ui .v119-equipment-panel .v39-slot-item{grid-column:2!important;grid-row:2!important;align-self:end!important;font:500 14px/1.1 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-equipment-panel .v77-slot-rarity{grid-column:2!important;grid-row:2!important;align-self:start!important;width:max-content!important;padding:3px 6px!important;border-radius:8px!important;background:rgba(0,0,0,.2)!important;color:#9fd52a!important;font-size:7px!important;text-transform:uppercase!important}
  body.v119-ui .v119-equipment-panel .v77-slot-effects{grid-column:2!important;grid-row:3!important;display:flex!important;align-items:center!important;overflow:hidden!important}
  body.v119-ui .v119-equipment-panel .v77-slot-effects span{height:22px!important;padding:0 6px!important;display:flex!important;align-items:center!important;gap:3px!important;border:1px solid rgba(180,121,39,.28)!important;border-radius:8px!important;font-size:7.5px!important;white-space:nowrap!important}
  body.v119-ui .v119-equipment-panel .v77-slot-effects :where(svg,img){width:13px!important;height:13px!important}

  /* ---------- Quests and abilities ---------- */
  body.v119-ui .v119-quests-panel{padding:13px!important;border:1px solid rgba(188,123,37,.38)!important;border-radius:19px!important;background:rgba(5,19,22,.96)!important}
  body.v119-ui .v119-quests-panel>header{display:flex!important;justify-content:space-between!important;align-items:center!important;padding-bottom:12px!important;border-bottom:1px solid rgba(182,119,36,.25)!important}
  body.v119-ui .v119-quests-panel>header>div{display:flex!important;align-items:center!important;gap:12px!important}
  body.v119-ui .v119-quests-panel .v80-quest-mark{width:54px!important;height:54px!important;display:grid!important;place-items:center!important;border:1px solid rgba(202,139,45,.52)!important;border-radius:50%!important;background:radial-gradient(circle,#392e12,#11170f)!important;color:#ffd46f!important;font:700 25px/1 serif!important}
  body.v119-ui .v119-quests-panel h2{margin:0!important;font:500 25px/1.05 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v119-quests-panel header p{display:none!important}
  body.v119-ui .v119-quests-panel>header>b{min-width:58px!important;height:42px!important;display:grid!important;place-items:center!important;border:1px solid rgba(185,121,36,.35)!important;border-radius:12px!important;font-size:16px!important}
  body.v119-ui .v119-quest-empty{min-height:300px!important;margin-top:12px!important;padding:24px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:10px!important;text-align:center!important;border:1px solid rgba(165,113,43,.25)!important;border-radius:17px!important;background:radial-gradient(circle at 50% 40%,rgba(34,68,66,.22),transparent 46%)!important}
  body.v119-ui .v119-quest-empty-icon{width:82px!important;height:82px!important;opacity:.28!important}
  body.v119-ui .v119-quest-empty b{font:500 20px/1.1 Georgia,"Times New Roman",serif!important;color:#aaa69d!important}
  body.v119-ui .v119-quest-empty p{margin:0!important;font-size:12px!important;line-height:1.45!important;color:#8f8b84!important}
  body.v119-ui .v119-quest-how{margin-top:10px!important;padding:12px!important;border:1px solid rgba(183,119,36,.28)!important;border-radius:16px!important;background:rgba(5,17,20,.9)!important}
  body.v119-ui .v119-quest-how h3{margin:0 0 10px!important;text-align:center!important;font:500 20px/1 Georgia,"Times New Roman",serif!important;color:#d6ad63!important}
  body.v119-ui .v119-quest-how>div{display:grid!important;grid-template-columns:1fr 12px 1fr 12px 1fr!important;align-items:center!important;gap:3px!important}
  body.v119-ui .v119-quest-how span{position:relative!important;display:grid!important;place-items:center!important;gap:4px!important;text-align:center!important}
  body.v119-ui .v119-quest-how span>b{position:absolute!important;top:-3px!important;left:4px!important;width:20px!important;height:20px!important;display:grid!important;place-items:center!important;border-radius:50%!important;border:1px solid rgba(204,138,43,.52)!important;background:#0a1719!important;font-size:9px!important}
  body.v119-ui .v119-quest-how span :where(svg,img){width:48px!important;height:48px!important}
  body.v119-ui .v119-quest-how small{font-size:8.5px!important;line-height:1.2!important;color:#b5aea4!important}
  body.v119-ui .v119-quest-how>div>i{font-style:normal!important;font-size:24px!important;color:#b8792d!important}
  body.v119-ui .v80-quest-card{border-radius:15px!important;border:1px solid rgba(185,121,37,.34)!important;background:#071a1e!important}

  body.v119-ui .abilities-tabs-panel{display:grid!important;gap:9px!important}
  body.v119-ui .ability-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:5px!important;border:1px solid rgba(188,123,38,.38)!important;border-radius:16px!important;background:rgba(5,18,21,.96)!important}
  body.v119-ui .ability-tabs button{height:52px!important;min-width:0!important;padding:4px 7px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:#aaa49a!important;font-size:10px!important;box-shadow:none!important}
  body.v119-ui .ability-tabs button.active{border-color:rgba(201,139,45,.64)!important;background:linear-gradient(180deg,rgba(69,87,28,.62),rgba(27,49,24,.8))!important;color:#eef6da!important}
  body.v119-ui .ability-tabs span{min-width:23px!important;height:23px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:rgba(0,0,0,.2)!important;font-size:8px!important}
  body.v119-ui .ability-tab-page>.panel{padding:9px!important;border:1px solid rgba(184,121,37,.34)!important;border-radius:17px!important;background:rgba(5,19,22,.96)!important}
  body.v119-ui .ability-tab-page>.panel>h2{display:none!important}
  body.v119-ui .ability-tab-page>.panel>p{margin:3px 4px 10px!important;font-size:9px!important}
  body.v119-ui .v119-ability-card{min-height:92px!important;margin:0 0 8px!important;padding:8px!important;display:grid!important;grid-template-columns:68px minmax(0,1fr) 86px!important;align-items:center!important;gap:9px!important;border:1px solid rgba(181,120,38,.32)!important;border-radius:14px!important;background:linear-gradient(145deg,#0a1b20,#071317)!important}
  body.v119-ui .v119-ability-card:last-child{margin-bottom:0!important}
  body.v119-ui .v119-ability-card .ability-icon{width:66px!important;height:66px!important;border:1px solid rgba(203,138,43,.45)!important;border-radius:13px!important;background:#061416!important;overflow:hidden!important}
  body.v119-ui .v119-ability-card .ability-icon :where(img,.v115-ability-card-image){width:100%!important;height:100%!important;object-fit:contain!important}
  body.v119-ui .v119-ability-card .skill-main{min-width:0!important;display:grid!important;gap:3px!important}
  body.v119-ui .v119-ability-card .skill-main h3{margin:0!important;font:500 17px/1.05 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-ability-card .skill-main>small{font-size:9px!important;color:#a9a298!important}
  body.v119-ui .v119-ability-card .skill-main>span{display:flex!important;flex-wrap:wrap!important;gap:4px!important}
  body.v119-ui .v119-ability-card .skill-main>span i{padding:3px 5px!important;border-radius:7px!important;background:rgba(0,0,0,.18)!important;color:#b4ad9f!important;font-size:7px!important;font-style:normal!important}
  body.v119-ui .v119-ability-card .row-actions button{width:86px!important;height:38px!important;padding:0 7px!important;border-radius:10px!important;font-size:9px!important}

  /* ---------- Side panel ---------- */
  body.v119-ui .v119-side-backdrop{position:fixed!important;inset:0!important;z-index:970!important;display:block!important;border:0!important;background:rgba(0,0,0,.58)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .2s ease,visibility .2s ease!important}
  body.v119-ui.v119-side-open .v119-side-backdrop{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  body.v119-ui .v119-side{
    position:fixed!important;inset:0 auto 0 0!important;z-index:980!important;width:min(86vw,390px)!important;height:100dvh!important;max-height:none!important;
    padding:calc(13px + env(safe-area-inset-top)) 12px calc(var(--v119-safe-bottom) + 12px)!important;
    display:flex!important;flex-direction:column!important;gap:10px!important;
    transform:translateX(-102%)!important;transition:transform .24s cubic-bezier(.2,.8,.2,1)!important;
    border-right:1px solid rgba(201,136,42,.55)!important;border-radius:0 22px 22px 0!important;
    background:linear-gradient(180deg,#07171b,#030d10)!important;box-shadow:20px 0 60px rgba(0,0,0,.58)!important;overflow:hidden!important;
  }
  body.v119-ui .v119-side.open{transform:translateX(0)!important}
  body.v119-ui .v119-side-head{min-height:110px!important;padding:8px!important;display:grid!important;grid-template-columns:92px minmax(0,1fr) 36px!important;align-items:center!important;gap:10px!important;border:1px solid rgba(184,122,39,.28)!important;border-radius:16px!important;background:rgba(8,24,28,.84)!important}
  body.v119-ui .v119-side-portrait{width:90px!important;height:96px!important;border:1px solid rgba(207,141,43,.54)!important;border-radius:14px!important;overflow:hidden!important}
  body.v119-ui .v119-side-portrait :where(img,.class-inline-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
  body.v119-ui .v119-side-copy{min-width:0!important;display:grid!important;gap:5px!important}
  body.v119-ui .v119-side-copy b{font:500 25px/1 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-side-copy small{font-size:10px!important;color:#aaa39a!important}
  body.v119-ui .v119-side-head>button{width:34px!important;height:34px!important;padding:7px!important;border:1px solid rgba(175,115,36,.25)!important;border-radius:10px!important;background:#08181b!important;color:#d49b41!important}
  body.v119-ui .v119-side #side-stats{flex:0 0 auto!important}
  body.v119-ui .v119-side .v76-side-profile{padding:10px!important;border:1px solid rgba(183,121,38,.28)!important;border-radius:16px!important;background:#0a1920!important}
  body.v119-ui .v119-side .v39-quick-title{display:none!important}
  body.v119-ui .v119-side .v39-quick-bars{display:grid!important;gap:7px!important}
  body.v119-ui .v119-side .v39-quick-bars article{padding:8px!important;border:1px solid rgba(163,120,51,.2)!important;border-radius:11px!important;background:rgba(12,27,31,.8)!important}
  body.v119-ui .v119-side .v39-quick-bars article>div:first-child{display:flex!important;justify-content:space-between!important;font-size:9px!important}
  body.v119-ui .v119-side .v39-quick-bars .bar{height:7px!important;margin-top:5px!important;border-radius:5px!important;background:#182225!important;overflow:hidden!important}
  body.v119-ui .v119-side .v39-quick-bars .bar i{height:100%!important;display:block!important}
  body.v119-ui .v119-side .v39-quick-bars .hp .bar i{background:linear-gradient(90deg,#68ad0e,#b8eb43)!important}
  body.v119-ui .v119-side .v39-quick-bars .mp .bar i{background:linear-gradient(90deg,#27a6d3,#64d9ef)!important}
  body.v119-ui .v119-side .v39-quick-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important;margin-top:8px!important}
  body.v119-ui .v119-side .v39-quick-grid span{min-height:54px!important;display:grid!important;place-items:center!important;align-content:center!important;border:1px solid rgba(163,120,51,.2)!important;border-radius:11px!important;background:#0c1b20!important}
  body.v119-ui .v119-side .v39-quick-grid b{font-size:14px!important}
  body.v119-ui .v119-side .v39-quick-grid small{font-size:7px!important;color:#9d968d!important}
  body.v119-ui .v119-side-nav{flex:1 1 auto!important;min-height:0!important;display:grid!important;align-content:start!important;gap:7px!important;padding:2px!important;overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:#dc8d28 #132125!important}
  body.v119-ui .v119-side-nav button{min-height:55px!important;height:55px!important;padding:7px 11px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 16px!important;align-items:center!important;gap:10px!important;border:1px solid rgba(170,116,42,.22)!important;border-radius:13px!important;background:linear-gradient(90deg,rgba(11,31,35,.96),rgba(6,20,23,.96))!important;color:#d9d3c9!important;text-align:left!important;box-shadow:none!important}
  body.v119-ui .v119-side-nav button.active{border-color:rgba(205,143,51,.55)!important;background:linear-gradient(90deg,rgba(33,57,39,.94),rgba(8,25,27,.96))!important}
  body.v119-ui .v119-side-nav button.danger{border-color:rgba(154,51,51,.45)!important;background:linear-gradient(90deg,rgba(66,24,28,.74),rgba(31,13,17,.92))!important;color:#ff9d99!important}
  body.v119-ui .v119-side-nav .v83-side-icon{width:38px!important;height:38px!important;padding:5px!important;border-radius:11px!important;background:#0a1b1e!important}
  body.v119-ui .v119-side-nav span{font:500 15px/1 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v119-ui .v119-side-arrow{font-style:normal!important;color:#d89b3e!important;font-size:22px!important}

  /* ---------- Global chat ---------- */
  body.v119-ui .v78-location-chat-tab{position:fixed!important;right:0!important;top:47%!important;z-index:920!important;width:42px!important;height:84px!important;border:1px solid rgba(204,140,44,.55)!important;border-right:0!important;border-radius:18px 0 0 18px!important;background:linear-gradient(180deg,rgba(12,33,35,.98),rgba(4,16,19,.98))!important;color:#e1a649!important;box-shadow:-8px 0 24px rgba(0,0,0,.35)!important}
  body.v119-ui .v78-location-chat-tab :where(svg,img){width:24px!important;height:24px!important}
  body.v119-ui .v78-location-chat{
    position:fixed!important;inset:0 0 0 auto!important;z-index:940!important;width:min(88vw,430px)!important;height:100dvh!important;max-height:none!important;padding:calc(12px + env(safe-area-inset-top)) 10px calc(var(--v119-safe-bottom) + 10px)!important;
    display:grid!important;grid-template-rows:62px 52px minmax(0,1fr) auto!important;gap:8px!important;
    transform:translateX(102%)!important;transition:transform .24s cubic-bezier(.2,.8,.2,1)!important;
    border-left:1px solid rgba(205,139,44,.55)!important;border-radius:22px 0 0 22px!important;background:linear-gradient(180deg,#07171b,#031013)!important;box-shadow:-24px 0 70px rgba(0,0,0,.62)!important;
  }
  body.v119-ui .v78-location-chat.open{transform:translateX(0)!important}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   
  body.v119-ui .v80-chat-delete{width:40px!important;height:42px!important;padding:8px!important;border:1px solid rgba(197,52,55,.55)!important;border-radius:10px!important;background:rgba(78,24,29,.68)!important;color:#ff8780!important}
  
  
  body.v119-ui .v119-chat-disabled{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border:1px solid rgba(128,128,128,.32)!important;border-radius:10px!important;color:#7f8583!important}
  
  
  

  /* ---------- Modals / item, monster, skill, result ---------- */
  body.v119-ui .modal-back{padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom))!important;background:rgba(0,4,6,.78)!important;backdrop-filter:blur(8px)!important}
  body.v119-ui .modal{width:min(94vw,560px)!important;max-height:92dvh!important;padding:16px!important;border:1px solid rgba(207,142,46,.62)!important;border-radius:21px!important;background:linear-gradient(160deg,#081b1f,#041014)!important;box-shadow:0 26px 90px rgba(0,0,0,.72)!important;overflow-y:auto!important;overflow-x:hidden!important}
  body.v119-ui .modal>h1{margin:0 50px 14px 0!important;font:500 31px/1 Georgia,"Times New Roman",serif!important;color:#f5ecdc!important}
  body.v119-ui .modal-close{position:absolute!important;top:12px!important;right:12px!important;width:44px!important;height:44px!important;border:1px solid rgba(211,145,47,.48)!important;border-radius:14px!important;background:#101d1f!important;color:#f0ad4c!important;font-size:20px!important}
  body.v119-ui .v97-item-detail-card{display:grid!important;gap:11px!important}
  body.v119-ui .v97-item-detail-head{display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;gap:13px!important;align-items:center!important}
  body.v119-ui .v97-item-detail-icon{width:132px!important;height:145px!important;display:grid!important;place-items:center!important;border:1px solid rgba(212,146,44,.62)!important;border-radius:18px!important;background:#061416!important}
  body.v119-ui .v97-item-detail-icon :where(img,.item-asset-image){width:92%!important;height:92%!important;object-fit:contain!important}
  body.v119-ui .v97-item-detail-copy{min-width:0!important}
  body.v119-ui .v97-item-detail-copy small{display:inline-flex!important;padding:4px 7px!important;border:1px solid rgba(139,174,65,.35)!important;border-radius:9px!important;color:#8fd331!important;font-size:8px!important;text-transform:uppercase!important}
  body.v119-ui .v97-item-detail-copy h2{margin:8px 0!important;font:500 27px/1.03 Georgia,"Times New Roman",serif!important;overflow-wrap:anywhere!important}
  body.v119-ui .v97-item-detail-copy p{margin:0!important;font-size:11px!important;line-height:1.42!important;color:#aaa49a!important}
  body.v119-ui .v97-item-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:10px!important;border:1px solid rgba(181,119,37,.28)!important;border-radius:15px!important;background:#091a1e!important}
  body.v119-ui .v97-item-facts>div{min-height:62px!important;padding:9px!important;display:grid!important;align-content:center!important;gap:4px!important;border-bottom:1px solid rgba(170,112,35,.18)!important}
  body.v119-ui .v97-item-facts small{font-size:9px!important;color:#9f998f!important}
  body.v119-ui .v97-item-facts b{font-size:13px!important;color:#f0e9df!important}
  body.v119-ui .v97-item-requirements{padding:10px!important;border:1px solid rgba(181,119,37,.28)!important;border-radius:15px!important;background:#07171a!important}
  body.v119-ui .v97-item-requirements h3{margin:0 0 7px!important;font-size:12px!important}
  body.v119-ui .v97-item-requirements>div{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
  body.v119-ui .v97-item-requirements span{padding:5px 8px!important;border-radius:9px!important;background:rgba(25,80,53,.45)!important;font-size:9px!important}
  body.v119-ui .v97-item-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.v119-ui .v97-item-detail-actions button{height:48px!important;border-radius:13px!important;font-size:12px!important}
  body.v119-ui .v44-ability-detail{display:grid!important;gap:9px!important;text-align:center!important}
  body.v119-ui .v115-ability-detail-icon{width:132px!important;height:132px!important;margin:0 auto!important;border:1px solid rgba(210,144,43,.6)!important;border-radius:50%!important;background:#071519!important;overflow:hidden!important}
  body.v119-ui .v115-ability-detail-icon :where(img,.v115-ability-detail-image){width:100%!important;height:100%!important;object-fit:contain!important}
  body.v119-ui .v44-ability-detail>h2{margin:0!important;font:500 27px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v44-ability-detail>p{margin:0!important;font-size:12px!important;line-height:1.45!important;color:#b0aaa1!important}
  body.v119-ui .v44-ability-feature{padding:13px!important;border:1px solid rgba(191,128,39,.42)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(53,39,20,.52),rgba(14,24,24,.92))!important}
  body.v119-ui .v44-ability-feature small{display:block!important;color:#e2a95c!important;font-size:9px!important;letter-spacing:.14em!important;text-transform:uppercase!important}
  body.v119-ui .v44-ability-feature b{display:block!important;margin-top:6px!important;font-size:16px!important;line-height:1.35!important}
  body.v119-ui .v42-ability-lines{display:grid!important;gap:6px!important}
  body.v119-ui .v42-ability-lines>div{height:43px!important;padding:0 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border:1px solid rgba(181,119,37,.25)!important;border-radius:11px!important;background:rgba(14,20,21,.86)!important}
  body.v119-ui .v42-ability-lines span{font-size:11px!important;color:#aaa39a!important}
  body.v119-ui .v42-ability-lines b{font-size:11px!important;color:#e8aa50!important}
  body.v119-ui .v44-ability-detail>button{height:48px!important;border-radius:13px!important}
  body.v119-ui .v98-result-modal{width:min(92vw,500px)!important;overflow:hidden!important}
  body.v119-ui .v99-result{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;max-height:82dvh!important}
  body.v119-ui .v96-result-scroll{padding:0 1px 8px!important;overflow-y:auto!important}
  body.v119-ui .v99-result header{min-height:100px!important;padding:11px!important;display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;border:1px solid rgba(181,119,37,.28)!important;border-radius:15px!important;background:#071a1d!important}
  body.v119-ui .v99-result header .v78-result-icon{width:70px!important;height:70px!important;display:grid!important;place-items:center!important;border:1px solid rgba(80,153,106,.48)!important;border-radius:16px!important;background:rgba(25,67,54,.42)!important}
  body.v119-ui .v99-result header .v78-result-icon :where(svg,img){width:44px!important;height:44px!important}
  body.v119-ui .v99-result header small{font-size:8px!important;letter-spacing:.12em!important;color:#aaa39a!important}
  body.v119-ui .v99-result header h2{margin:3px 0!important;font:500 28px/1 Georgia,"Times New Roman",serif!important;color:#a9ec20!important}
  body.v119-ui .v99-result header p{margin:0!important;font-size:11px!important;color:#aaa39a!important}
  body.v119-ui .v79-result-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:9px!important}
  body.v119-ui .v79-result-summary>span{min-height:78px!important;padding:10px!important;display:grid!important;align-content:center!important;gap:5px!important;border:1px solid rgba(181,119,37,.27)!important;border-radius:14px!important;background:#0a171a!important}
  body.v119-ui .v79-result-summary small{font-size:9px!important;color:#a49e94!important}
  body.v119-ui .v79-result-summary b{font-size:16px!important}
  body.v119-ui .v93-result-block{margin-top:9px!important;padding:10px!important;border:1px solid rgba(181,119,37,.27)!important;border-radius:15px!important;background:#08171a!important}
  body.v119-ui .v93-result-block h3{margin:0 0 8px!important;font:500 20px/1 Georgia,"Times New Roman",serif!important}
  body.v119-ui .v96-result-footer{padding-top:9px!important;border-top:1px solid rgba(183,119,36,.22)!important;background:#061416!important}
  body.v119-ui .v96-result-footer button{height:52px!important;border-radius:14px!important;font:600 15px/1 Georgia,"Times New Roman",serif!important}

  body.v119-ui .v119-empty{min-height:72px!important;display:grid!important;place-items:center!important;text-align:center!important;color:#8f8b84!important;font-size:11px!important}
}

@media(max-width:420px){
  body.v119-ui:not(.v111-battle-active) .v119-screen{padding-left:8px!important;padding-right:8px!important}
  body.v119-ui .v119-topbar{grid-template-columns:48px minmax(78px,1fr) auto!important;gap:6px!important;padding-left:8px!important;padding-right:8px!important}
  body.v119-ui .v119-topbar .hamburger{width:48px!important;height:48px!important;min-width:48px!important}
  body.v119-ui .v119-top-currency{padding-right:8px!important;gap:5px!important}
  body.v119-ui .v119-top-currency img{width:30px!important;height:30px!important}
  body.v119-ui .v119-top-currency b{font-size:13px!important}
  body.v119-ui .v119-top-player{grid-template-columns:42px minmax(48px,70px) 42px!important;gap:4px!important}
  body.v119-ui .v119-top-avatar{width:42px!important;height:42px!important}
  body.v119-ui .v119-level-shield{width:42px!important;height:48px!important;font-size:19px!important}
  body.v119-ui .v119-top-copy b{font-size:14px!important}
  body.v119-ui .v119-location-hero{grid-template-columns:104px 1fr!important;gap:8px!important;padding:8px!important}
  body.v119-ui .v119-location-copy h1{font-size:26px!important}
  body.v119-ui .v119-map-button{min-width:70px!important;padding:0 8px!important;font-size:10px!important}
  body.v119-ui .v119-battle-row{grid-template-columns:minmax(72px,.85fr) 28px minmax(86px,1.1fr) 82px!important;padding:5px!important}
  body.v119-ui .v119-battle-avatar{width:38px!important;height:38px!important}
  body.v119-ui .v119-battle-team{grid-template-columns:38px minmax(0,1fr)!important}
  body.v119-ui .v119-battle-enemies{grid-template-columns:45px minmax(0,1fr)!important}
  body.v119-ui .v119-battle-enemies>div span{width:29px!important;height:29px!important}
  body.v119-ui .v119-battle-team b,body.v119-ui .v119-battle-enemies b{font-size:10px!important}
  body.v119-ui .v119-battle-join button{font-size:8.5px!important;padding:0 4px!important}
  body.v119-ui .v119-monster-card{grid-template-columns:54px minmax(0,1fr)!important;height:158px!important;min-height:158px!important;padding:6px!important}
  body.v119-ui .v119-monster-art{width:52px!important;height:64px!important;min-width:52px!important}
  body.v119-ui .v119-monster-main h3{font-size:13px!important}
  body.v119-ui .v119-monster-actions button{font-size:9.5px!important}
  body.v119-ui .v119-item-card{grid-template-columns:94px minmax(0,1fr)!important;padding:8px!important;gap:8px!important}
  body.v119-ui .v119-item-card .v39-item-icon-wrap{width:94px!important;min-width:94px!important;grid-template-rows:90px auto!important}
  body.v119-ui .v119-item-card .item-emblem{width:90px!important;height:90px!important}
  body.v119-ui .v119-item-card .v39-item-head h3{font-size:20px!important}
  body.v119-ui .v119-item-card .item-actions button{min-width:88px!important;padding:0 8px!important;font-size:9px!important}
  body.v119-ui .v119-pit-item{grid-template-columns:56px minmax(0,1fr) 50px 70px!important;gap:5px!important}
  body.v119-ui .v119-pit-item-art{width:54px!important;height:54px!important}
  body.v119-ui .v119-pit-item-copy strong{font-size:15px!important}
  body.v119-ui .v119-profile-layout .v39-profile-hero{grid-template-columns:108px minmax(0,1fr)!important}
  body.v119-ui .v119-profile-layout .v39-avatar-ring{width:108px!important;height:130px!important}
  body.v119-ui .v119-equipment-panel .v39-equip-slot{grid-template-columns:60px minmax(0,1fr)!important;height:108px!important;min-height:108px!important}
  body.v119-ui .v119-equipment-panel .v39-slot-icon{width:60px!important;height:88px!important}
  body.v119-ui .v119-equipment-panel .v39-slot-item{font-size:12px!important}
  
  
}

@media(min-width:761px){
  body.v119-ui .v119-topbar,
  body.v119-ui .v119-bottom-nav{max-width:1180px!important;margin-inline:auto!important}
  body.v119-ui .v119-screen{max-width:1180px!important;margin:0 auto!important}
}

/* ---- css/v120-mobile-compact.css ---- */
/* Aldos RPG v120 — mobile compact correction layer.
   Loaded after v119. It keeps game/content logic intact and fixes viewport sizing,
   overflow, typography, touch targets, collapsible location sections and modal density. */

:root{
  --v120-top-h:64px;
  --v120-nav-h:68px;
  --v120-pad:8px;
  --v120-gap:8px;
  --v120-radius:14px;
}

body.v120-ui{
  overflow-x:hidden!important;
  max-width:100vw!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
body.v120-ui *,body.v120-ui *::before,body.v120-ui *::after{box-sizing:border-box!important;min-width:0}
body.v120-ui :where(img,svg,video,canvas){max-width:100%}
body.v120-ui :where(button,[role="button"]){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body.v120-ui :where(.v119-screen,.modal,.side,.v78-location-chat,.v93-slot-picker){overscroll-behavior:contain}

@media (max-width:760px){
  /* ---------- viewport shell ---------- */
  body.v120-ui:not(.v111-battle-active) .v119-screen{
    width:100%!important;
    max-width:100%!important;
    padding:calc(var(--v120-top-h) + env(safe-area-inset-top) + 8px) var(--v120-pad)
      calc(var(--v120-nav-h) + max(8px,env(safe-area-inset-bottom)) + 12px)!important;
    overflow-x:hidden!important;
  }
  body.v120-ui:not(.v111-battle-active) .v119-screen>*{max-width:100%!important}

  /* ---------- fixed top bar ---------- */
  body.v120-ui:not(.v111-battle-active) .v119-topbar{
    height:calc(var(--v120-top-h) + env(safe-area-inset-top))!important;
    min-height:calc(var(--v120-top-h) + env(safe-area-inset-top))!important;
    padding:calc(6px + env(safe-area-inset-top)) 8px 6px!important;
    grid-template-columns:44px 96px minmax(0,1fr)!important;
    gap:6px!important;
  }
  body.v120-ui:not(.v111-battle-active) .v119-topbar .hamburger{
    width:44px!important;height:44px!important;min-width:44px!important;padding:10px!important;border-radius:13px!important;
  }
  body.v120-ui .v119-top-currency{
    width:96px!important;max-width:96px!important;height:42px!important;padding:4px 7px 4px 5px!important;gap:5px!important;border-radius:15px!important;
  }
  body.v120-ui .v119-top-currency img{width:28px!important;height:28px!important;flex:0 0 28px!important}
  body.v120-ui .v119-top-currency b{font-size:13px!important;line-height:1!important}
  body.v120-ui .v119-top-currency small{font-size:8px!important;line-height:1.05!important}
  body.v120-ui .v119-top-player{
    width:100%!important;height:48px!important;grid-template-columns:38px minmax(0,1fr) 39px!important;gap:4px!important;overflow:hidden!important;
  }
  body.v120-ui .v119-top-avatar{width:38px!important;height:38px!important}
  body.v120-ui .v119-top-copy b{max-width:100%!important;font-size:14px!important}
  body.v120-ui .v119-top-copy small{font-size:8.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v120-ui .v119-level-shield{width:39px!important;height:45px!important;font-size:18px!important}

  /* ---------- headings and bottom navigation ---------- */
  body.v120-ui .v119-page-heading{height:46px!important;margin-bottom:8px!important;padding:0 3px 7px!important;gap:8px!important}
  body.v120-ui .v119-page-heading .v119-page-icon{width:32px!important;height:32px!important;padding:4px!important;border-radius:9px!important}
  body.v120-ui .v119-page-heading h1{font-size:22px!important;line-height:1!important}
  body.v120-ui:not(.v111-battle-active) .v119-bottom-nav{
    height:calc(var(--v120-nav-h) + max(8px,env(safe-area-inset-bottom)))!important;
    padding:4px 6px max(8px,env(safe-area-inset-bottom))!important;border-radius:18px 18px 0 0!important;gap:3px!important;
  }
  body.v120-ui .v119-bottom-nav button{height:54px!important;min-height:54px!important;grid-template-rows:28px 16px!important;padding:3px!important;border-radius:13px!important}
  body.v120-ui .v119-bottom-nav .nav-glyph{width:27px!important;height:27px!important}
  body.v120-ui .v119-bottom-nav span{font-size:11px!important}

  /* ---------- shared panels / collapsible sections ---------- */
  body.v120-ui .v119-location-panel{padding:9px!important;margin-bottom:8px!important;border-radius:14px!important;overflow:hidden!important}
  body.v120-ui .v119-location-panel>summary{
    min-height:36px!important;padding:0 1px 7px!important;cursor:pointer!important;user-select:none!important;
  }
  body.v120-ui .v119-location-panel>summary>div{display:grid!important;gap:2px!important}
  body.v120-ui .v119-location-panel>summary h2,
  body.v120-ui .v119-location-panel h2{font-size:18px!important;line-height:1!important}
  body.v120-ui .v119-location-panel>summary small{font-size:8.5px!important;color:#9d978e!important}
  body.v120-ui .v119-location-panel>summary>span{font-size:9px!important;white-space:nowrap!important}
  body.v120-ui .v120-section-body{padding-top:7px!important}
  body.v120-ui details:not([open])>.v120-section-body,
  body.v120-ui details:not([open])>.v120-monster-toolbar,
  body.v120-ui details:not([open])>.v119-monster-grid{display:none!important}

  /* ---------- location hero ---------- */
  body.v120-ui .v119-location-hero{
    min-height:0!important;margin-bottom:8px!important;padding:8px!important;gap:8px!important;
    grid-template-columns:96px minmax(0,1fr)!important;border-radius:15px!important;
  }
  body.v120-ui .v119-location-image{min-height:96px!important;height:96px!important;border-radius:11px!important}
  body.v120-ui .v119-location-copy{gap:3px 6px!important;align-content:start!important}
  body.v120-ui .v119-location-copy h1{font-size:22px!important;line-height:1.03!important}
  body.v120-ui .v119-location-copy>b{font-size:11px!important}
  body.v120-ui .v119-location-copy p{font-size:9px!important;line-height:1.3!important;-webkit-line-clamp:3!important;margin-top:1px!important}
  body.v120-ui .v119-map-button{min-width:66px!important;height:34px!important;padding:0 7px!important;gap:4px!important;border-radius:10px!important;font-size:9px!important}
  body.v120-ui .v119-map-button :where(svg,img){width:15px!important;height:15px!important}
  body.v120-ui .v119-location-routes{gap:5px!important;margin-top:2px!important}
  body.v120-ui .v119-location-routes .location-btn{height:32px!important;min-height:32px!important;padding:0 7px!important;font-size:9.5px!important;border-radius:9px!important}

  /* ---------- players in location ---------- */
  body.v120-ui .v119-players-panel .v120-section-body{display:grid!important;gap:5px!important}
  body.v120-ui .v119-location-player{
    min-height:56px!important;padding:5px!important;grid-template-columns:44px minmax(0,1fr) auto!important;gap:7px!important;border-radius:11px!important;
  }
  body.v120-ui .v119-location-player-art{width:42px!important;height:42px!important}
  body.v120-ui .v119-location-player-art>b{right:-3px!important;bottom:-2px!important;min-width:19px!important;height:19px!important;font-size:8px!important}
  body.v120-ui .v119-location-player-copy strong{font-size:15px!important}
  body.v120-ui .v119-location-player-copy small{font-size:8.5px!important}
  body.v120-ui .v119-player-friend{height:34px!important;max-width:122px!important;padding:0 8px!important;font-size:8.5px!important;border-radius:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v120-ui .v119-player-friend :where(svg,img){width:14px!important;height:14px!important}
  body.v120-ui .v119-player-self{font-size:8px!important;padding:4px 7px!important}

  /* ---------- active battles ---------- */
  body.v120-ui .v119-battles-panel>div{padding-top:0!important}
  body.v120-ui .v119-battle-list{gap:6px!important}
  body.v120-ui .v119-battle-row{
    min-height:96px!important;padding:6px!important;gap:5px!important;
    grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)!important;
    grid-template-rows:minmax(48px,auto) 34px!important;
    grid-template-areas:"team vs enemies" "join join join"!important;border-radius:11px!important;
  }
  body.v120-ui .v119-battle-team{grid-area:team!important;grid-template-columns:38px minmax(0,1fr)!important;gap:5px!important}
  body.v120-ui .v119-battle-vs{grid-area:vs!important}
  body.v120-ui .v119-battle-enemies{grid-area:enemies!important;grid-template-columns:42px minmax(0,1fr)!important;gap:4px!important}
  body.v120-ui .v119-battle-join{grid-area:join!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:5px!important}
  body.v120-ui .v119-battle-avatar{width:38px!important;height:38px!important}
  body.v120-ui .v119-battle-team b,body.v120-ui .v119-battle-enemies b{font-size:10.5px!important}
  body.v120-ui .v119-battle-team small,body.v120-ui .v119-battle-enemies small{font-size:7.5px!important}
  body.v120-ui .v119-battle-enemies>div span{width:28px!important;height:28px!important;margin-right:-8px!important}
  body.v120-ui .v119-battle-vs :where(svg,img){width:19px!important;height:19px!important}
  body.v120-ui .v119-battle-vs b{font-size:9px!important}
  body.v120-ui .v119-battle-join button{height:32px!important;min-height:32px!important;font-size:9px!important;border-radius:9px!important}
  body.v120-ui .v119-battle-join small{font-size:8px!important}
  body.v120-ui .v119-battles-empty{min-height:58px!important;padding:7px!important}
  body.v120-ui .v119-battles-empty p{font-size:9.5px!important}

  /* ---------- compact existing monster cards (data unchanged) ---------- */
  body.v120-ui .v120-monster-toolbar{display:flex!important;justify-content:flex-end!important;padding:6px 0 0!important}
  body.v120-ui .v120-monster-toolbar button{height:30px!important;padding:0 9px!important;font-size:8.5px!important;border-radius:9px!important}
  body.v120-ui .v119-monster-grid{gap:6px!important;padding-top:6px!important}
  body.v120-ui .v119-monster-card{
    height:140px!important;min-height:140px!important;padding:6px!important;gap:4px!important;
    grid-template-columns:50px minmax(0,1fr)!important;grid-template-rows:1fr 32px!important;border-radius:12px!important;
  }
  body.v120-ui .v119-monster-art{width:48px!important;min-width:48px!important;height:56px!important;border-radius:9px!important}
  body.v120-ui .v119-monster-main{gap:3px!important}
  body.v120-ui .v119-monster-main h3{font-size:13px!important;line-height:1.05!important}
  body.v120-ui .v119-monster-tags{gap:2px!important;flex-wrap:nowrap!important;overflow:hidden!important}
  body.v120-ui .v119-monster-tags span{height:16px!important;padding:0 4px!important;font-size:5.9px!important;white-space:nowrap!important}
  body.v120-ui .v119-monster-main>small{font-size:8.5px!important}
  body.v120-ui .v119-monster-main>p{display:none!important}
  body.v120-ui .v119-monster-actions{gap:4px!important}
  body.v120-ui .v119-monster-actions button{height:32px!important;min-height:32px!important;padding:0 4px!important;font-size:9.5px!important;border-radius:8px!important}

  body.v120-ui .v119-pit-card{min-height:60px!important;padding:6px 8px!important;grid-template-columns:62px minmax(0,1fr) 72px 12px!important;gap:6px!important;border-radius:13px!important}
  body.v120-ui .v119-pit-art{height:46px!important;border-radius:9px!important}
  body.v120-ui .v119-pit-card b{font-size:17px!important}
  body.v120-ui .v119-pit-card small{font-size:8px!important}
  body.v120-ui .v119-pit-card em{height:34px!important;font-size:10px!important;border-radius:9px!important}
  body.v120-ui .v119-pit-card>i{font-size:20px!important}

  /* ---------- inventory ---------- */
  body.v120-ui .v119-inventory-shell{gap:8px!important}
  body.v120-ui .v119-inventory-metrics{gap:5px!important}
  body.v120-ui .v119-inventory-metrics :where(article,button){min-height:62px!important;padding:6px!important;gap:5px!important;border-radius:12px!important}
  body.v120-ui .v119-inventory-metrics :where(article,button)>:first-child{width:30px!important;height:30px!important}
  body.v120-ui .v119-inventory-metrics :where(article,button) b{font-size:16px!important}
  body.v120-ui .v119-inventory-metrics :where(article,button) b i{font-size:8px!important}
  body.v120-ui .v119-inventory-metrics :where(article,button) small{font-size:7.5px!important}
  body.v120-ui .v119-inventory-weight{grid-template-columns:28px minmax(0,1fr) 73px!important;gap:5px!important}
  body.v120-ui .v119-inventory-weight>span,body.v120-ui .v119-inventory-weight>b{font-size:9px!important}
  body.v120-ui .v119-inventory-weight .bar{height:8px!important}
  body.v120-ui .v119-inventory-tabs{padding:3px!important;border-radius:13px!important}
  body.v120-ui .v119-inventory-tabs button{height:50px!important;grid-template-rows:23px 14px!important;padding:2px!important;border-radius:9px!important;font-size:6.8px!important}
  body.v120-ui .v119-inventory-tabs button :where(svg,img){width:21px!important;height:21px!important}
  body.v120-ui .v119-inventory-list{gap:7px!important}
  body.v120-ui .v119-item-card{
    min-height:108px!important;padding:7px!important;grid-template-columns:74px minmax(0,1fr)!important;gap:7px!important;border-radius:13px!important;cursor:pointer!important;
  }
  body.v120-ui .v119-item-card .v39-item-icon-wrap{width:72px!important;min-width:72px!important;grid-template-rows:70px auto!important;gap:2px!important}
  body.v120-ui .v119-item-card .item-emblem{width:70px!important;height:70px!important;border-radius:11px!important}
  body.v120-ui .v119-item-card .item-emblem :where(img,.item-asset-image){width:88%!important;height:88%!important}
  body.v120-ui .v119-item-card .v80-stack-count{width:22px!important;height:22px!important;font-size:9px!important;right:-2px!important;bottom:-2px!important}
  body.v120-ui .v119-item-card .v39-item-body{gap:4px!important}
  body.v120-ui .v119-item-card .v39-item-head{gap:5px!important}
  body.v120-ui .v119-item-card .v39-item-head h3{font-size:16px!important;line-height:1.05!important}
  body.v120-ui .v119-item-card .item-weight{padding:3px 5px!important;font-size:7.5px!important;border-radius:7px!important}
  body.v120-ui .v119-item-card .item-description{font-size:8.5px!important;line-height:1.25!important;-webkit-line-clamp:2!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin:0!important}
  body.v120-ui .v119-item-card .v80-item-stats{display:flex!important;gap:3px!important;flex-wrap:nowrap!important;overflow:hidden!important}
  body.v120-ui .v119-item-card .v80-item-stats>span{height:22px!important;padding:0 5px!important;font-size:7.5px!important;white-space:nowrap!important}
  body.v120-ui .v119-item-card .v80-item-stats :where(svg,img){width:12px!important;height:12px!important}
  body.v120-ui .v119-item-card .v78-durability{grid-template-columns:43px minmax(0,1fr) 42px!important;gap:4px!important;font-size:7px!important}
  body.v120-ui .v119-item-card .v78-durability>div{height:6px!important}
  body.v120-ui .v119-item-card .item-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(74px,1fr))!important;gap:4px!important;margin-top:auto!important}
  body.v120-ui .v119-item-card .item-actions button,
  body.v120-ui .v119-item-card .item-actions>span{min-width:0!important;height:32px!important;min-height:32px!important;padding:0 5px!important;font-size:8.5px!important;border-radius:8px!important}
  body.v120-ui .v119-inventory-tools{gap:5px!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"search count" "sort sort"!important}
  body.v120-ui .v119-inventory-tools>label:first-child{grid-area:search!important;height:38px!important}
  body.v120-ui .v119-inventory-tools>span{grid-area:count!important;font-size:9px!important}
  body.v120-ui .v119-inventory-tools>label:last-child{grid-area:sort!important;height:36px!important}
  body.v120-ui .v119-inventory-tools input,body.v120-ui .v119-inventory-tools select{font-size:9px!important}

  /* ---------- pit ---------- */
  body.v120-ui .v119-pit-screen{gap:8px!important}
  body.v120-ui .v119-pit-header{min-height:54px!important;padding:7px 9px!important;border-radius:13px!important}
  body.v120-ui .v119-pit-header h1{font-size:23px!important}
  body.v120-ui .v119-pit-header p{font-size:8.5px!important}
  body.v120-ui .v119-pit-header>b{font-size:17px!important;min-width:68px!important}
  body.v120-ui .v119-pit-header>b small{font-size:7px!important}
  body.v120-ui .v119-pit-scene{height:106px!important;min-height:106px!important;border-radius:13px!important}
  body.v120-ui .v119-pit-metrics{gap:6px!important}
  body.v120-ui .v119-pit-metrics article{min-height:58px!important;padding:7px!important;border-radius:12px!important}
  body.v120-ui .v119-pit-metrics article> :first-child{width:34px!important;height:34px!important}
  body.v120-ui .v119-pit-metrics b{font-size:16px!important}
  body.v120-ui .v119-pit-metrics small{font-size:7.5px!important}
  body.v120-ui .v119-pit-group{padding:7px!important;border-radius:13px!important}
  body.v120-ui .v119-pit-group h2{font-size:17px!important;margin:0 0 6px!important}
  body.v120-ui .v119-pit-item{min-height:62px!important;padding:5px!important;grid-template-columns:48px minmax(0,1fr) 43px 68px!important;gap:5px!important;border-radius:10px!important}
  body.v120-ui .v119-pit-item-art{width:46px!important;height:46px!important;border-radius:9px!important}
  body.v120-ui .v119-pit-item-copy strong{font-size:13px!important}
  body.v120-ui .v119-pit-item-copy small{font-size:7.5px!important}
  body.v120-ui .v119-pit-item-weight{font-size:7.5px!important}
  body.v120-ui .v119-pit-item>button{height:32px!important;font-size:8.5px!important;border-radius:8px!important}
  body.v120-ui .v119-pit-deposit{height:44px!important;font-size:13px!important;border-radius:11px!important}

  /* ---------- profile ---------- */
  body.v120-ui .v119-profile-layout{gap:8px!important}
  body.v120-ui .v119-profile-layout .v39-profile-hero{
    min-height:112px!important;padding:8px!important;grid-template-columns:88px minmax(0,1fr)!important;grid-template-rows:1fr auto!important;gap:5px 8px!important;border-radius:14px!important;
  }
  body.v120-ui .v119-profile-layout .v39-avatar-ring{width:86px!important;height:96px!important;border-radius:12px!important}
  body.v120-ui .v119-profile-layout .v95-expand-name span{font-size:22px!important}
  body.v120-ui .v119-profile-layout .v76-rename-button{width:28px!important;height:28px!important}
  body.v120-ui .v119-profile-layout .v39-hero-info p{font-size:9px!important;margin:4px 0!important}
  body.v120-ui .v119-profile-layout .v39-exp-box{padding:6px!important;border-radius:9px!important}
  body.v120-ui .v119-profile-layout .v39-exp-box>div:first-child{font-size:8px!important}
  body.v120-ui .v119-profile-layout .v39-exp-box .bar{height:5px!important;margin-top:4px!important}
  body.v120-ui .v119-profile-stats{gap:7px!important}
  body.v120-ui .v119-profile-stats .v39-stat-grid{gap:5px!important}
  body.v120-ui .v119-profile-stats .v39-resource-card{min-height:66px!important;padding:7px!important;border-radius:11px!important}
  body.v120-ui .v119-profile-stats .v39-resource-card>div:first-child{grid-template-columns:22px 1fr!important;gap:1px 5px!important}
  body.v120-ui .v119-profile-stats .v39-resource-card>div:first-child>span{width:22px!important;height:22px!important}
  body.v120-ui .v119-profile-stats .v39-resource-card small{font-size:7.5px!important}
  body.v120-ui .v119-profile-stats .v39-resource-card b{font-size:13px!important}
  body.v120-ui .v119-profile-stats .v39-resource-card .bar{height:5px!important;margin-top:5px!important}
  body.v120-ui .v119-profile-stats .v39-mini-stat{min-height:54px!important;padding:6px!important;grid-template-columns:20px 1fr!important;border-radius:10px!important}
  body.v120-ui .v119-profile-stats .v39-mini-stat>span{width:20px!important;height:20px!important}
  body.v120-ui .v119-profile-stats .v39-mini-stat small{font-size:7px!important}
  body.v120-ui .v119-profile-stats .v39-mini-stat b{font-size:10.5px!important}
  body.v120-ui .v119-attributes{padding:8px!important;border-radius:13px!important}
  body.v120-ui .v119-attributes h2{font-size:18px!important;margin-bottom:6px!important}
  body.v120-ui .v119-attributes .v39-attr-grid{gap:5px!important}
  body.v120-ui .v119-attributes .v83-attr-card{height:40px!important;min-height:40px!important;padding:0 8px!important;border-radius:9px!important}
  body.v120-ui .v119-attributes .v83-attr-name{font-size:8.5px!important}
  body.v120-ui .v119-attributes .v83-attr-card>b{width:30px!important;height:27px!important;font-size:12px!important;border-radius:8px!important}
  body.v120-ui .v119-equipment-panel{padding:8px!important;border-radius:13px!important}
  body.v120-ui .v119-equipment-panel .v39-panel-head{margin-bottom:6px!important}
  body.v120-ui .v119-equipment-panel .v39-panel-head h2{font-size:18px!important}
  body.v120-ui .v119-equipment-panel .v39-panel-head>span{height:28px!important;padding:0 8px!important;font-size:8px!important}
  body.v120-ui .v119-equipment-panel .v39-slot-grid{gap:5px!important}
  body.v120-ui .v119-equipment-panel .v39-equip-slot{
    height:90px!important;min-height:90px!important;padding:6px!important;grid-template-columns:50px minmax(0,1fr)!important;grid-template-rows:14px 1fr 20px!important;gap:2px 6px!important;border-radius:10px!important;
  }
  body.v120-ui .v119-equipment-panel .v39-slot-name{font-size:6.3px!important}
  body.v120-ui .v119-equipment-panel .v39-slot-icon{width:50px!important;height:76px!important;border-radius:8px!important}
  body.v120-ui .v119-equipment-panel .v39-slot-icon :where(img,.item-asset-image){width:82%!important;height:82%!important}
  body.v120-ui .v119-equipment-panel .v39-slot-item{font-size:10.5px!important}
  body.v120-ui .v119-equipment-panel .v77-slot-rarity{font-size:5.8px!important;padding:2px 4px!important}
  body.v120-ui .v119-equipment-panel .v77-slot-effects span{height:18px!important;padding:0 4px!important;font-size:6.5px!important}
  body.v120-ui .v119-equipment-panel .v77-slot-effects :where(svg,img){width:10px!important;height:10px!important}
  body.v120-ui .v119-equipment-panel .v39-equip-slot.rarity-epic{box-shadow:inset 0 0 12px rgba(169,68,199,.12)!important}
  body.v120-ui .v119-equipment-panel .v39-equip-slot.rarity-legendary{box-shadow:inset 0 0 12px rgba(230,126,25,.16)!important}

  /* ---------- quests / abilities ---------- */
  body.v120-ui .v119-quests-panel{padding:9px!important;border-radius:14px!important}
  body.v120-ui .v119-quests-panel>header{padding-bottom:8px!important}
  body.v120-ui .v119-quests-panel>header>div{gap:8px!important}
  body.v120-ui .v119-quests-panel .v80-quest-mark{width:40px!important;height:40px!important;font-size:19px!important}
  body.v120-ui .v119-quests-panel h2{font-size:19px!important}
  body.v120-ui .v119-quests-panel>header>b{min-width:44px!important;height:34px!important;font-size:12px!important}
  body.v120-ui .v119-quest-empty{min-height:180px!important;margin-top:8px!important;padding:14px!important;gap:7px!important;border-radius:12px!important}
  body.v120-ui .v119-quest-empty-icon{width:54px!important;height:54px!important}
  body.v120-ui .v119-quest-empty b{font-size:15px!important}
  body.v120-ui .v119-quest-empty p{font-size:9.5px!important}
  body.v120-ui .v119-quest-how{padding:8px!important;border-radius:12px!important}
  body.v120-ui .v119-quest-how h3{font-size:16px!important;margin-bottom:7px!important}
  body.v120-ui .v119-quest-how span :where(svg,img){width:34px!important;height:34px!important}
  body.v120-ui .v119-quest-how small{font-size:7px!important}
  body.v120-ui .ability-tabs{gap:3px!important;padding:3px!important;border-radius:12px!important}
  body.v120-ui .ability-tabs button{height:44px!important;padding:3px!important;font-size:8px!important;gap:3px!important;border-radius:9px!important;line-height:1.05!important}
  body.v120-ui .ability-tabs span{min-width:19px!important;height:19px!important;font-size:7px!important}
  body.v120-ui .ability-tab-page>.panel{padding:7px!important;border-radius:12px!important}
  body.v120-ui .ability-tab-page>.panel>p{font-size:8px!important;margin:2px 2px 7px!important}
  body.v120-ui .v119-ability-card{min-height:72px!important;margin-bottom:5px!important;padding:6px!important;grid-template-columns:50px minmax(0,1fr) 72px!important;gap:6px!important;border-radius:10px!important}
  body.v120-ui .v119-ability-card .ability-icon{width:48px!important;height:48px!important;border-radius:9px!important}
  body.v120-ui .v119-ability-card .skill-main h3{font-size:13px!important}
  body.v120-ui .v119-ability-card .skill-main>small{font-size:7.5px!important}
  body.v120-ui .v119-ability-card .skill-main>span{gap:3px!important}
  body.v120-ui .v119-ability-card .skill-main>span i{font-size:6.5px!important;padding:2px 4px!important}
  body.v120-ui .v119-ability-card .row-actions button{height:32px!important;font-size:8px!important;padding:0 5px!important;border-radius:8px!important}

  /* ---------- side menu ---------- */
  body.v120-ui .v119-side{width:min(88vw,330px)!important;max-width:330px!important;padding:calc(8px + env(safe-area-inset-top)) 8px calc(10px + env(safe-area-inset-bottom))!important;overflow-y:auto!important}
  body.v120-ui .v119-side-head{min-height:58px!important;padding:4px 3px 8px!important;gap:7px!important}
  body.v120-ui .v119-side-portrait{width:46px!important;height:46px!important}
  body.v120-ui .v119-side-copy b{font-size:16px!important}
  body.v120-ui .v119-side-copy small{font-size:8.5px!important}
  body.v120-ui .v119-side-head>button{width:36px!important;height:36px!important}
  body.v120-ui .v119-side .v76-side-profile{padding:7px!important;margin:0 0 7px!important;border-radius:12px!important}
  body.v120-ui .v119-side .v39-quick-title{display:none!important}
  body.v120-ui .v119-side .v39-quick-bars{display:grid!important;gap:5px!important}
  body.v120-ui .v119-side .v39-quick-bars article{padding:5px 7px!important;border-radius:8px!important}
  body.v120-ui .v119-side .v39-quick-bars article>div:first-child{font-size:8.5px!important}
  body.v120-ui .v119-side .v39-quick-bars .bar{height:6px!important;margin-top:3px!important}
  body.v120-ui .v119-side .v39-quick-grid{gap:4px!important;margin-top:5px!important}
  body.v120-ui .v119-side .v39-quick-grid span{min-height:43px!important;padding:5px!important;border-radius:8px!important}
  body.v120-ui .v119-side .v39-quick-grid b{font-size:12px!important}
  body.v120-ui .v119-side .v39-quick-grid small{font-size:6.5px!important}
  body.v120-ui .v119-side-nav{gap:5px!important;padding-bottom:4px!important}
  body.v120-ui .v119-side-nav>button{height:48px!important;min-height:48px!important;padding:5px 8px!important;grid-template-columns:38px minmax(0,1fr) 16px!important;gap:7px!important;border-radius:11px!important}
  body.v120-ui .v119-side-nav .v83-side-icon{width:34px!important;height:34px!important}
  body.v120-ui .v119-side-nav>button>span{font-size:12px!important}

  /* ---------- location chat drawer ---------- */
  body.v120-ui .v78-location-chat{width:min(88vw,342px)!important;max-width:342px!important;padding:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom))!important;gap:6px!important}
  body.v120-ui .v78-location-chat-tab{width:42px!important;height:72px!important;border-radius:13px 0 0 13px!important}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  body.v120-ui .v80-chat-delete{width:34px!important;height:34px!important;padding:7px!important;border-radius:8px!important}
  
  body.v120-ui .v119-chat-disabled{width:31px!important;height:31px!important;border-radius:8px!important}
  
  
  
  body.v120-ui .v92-event-message{min-height:62px!important;padding:6px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 34px!important;gap:6px!important;border-radius:10px!important;overflow:visible!important}
  body.v120-ui .v92-event-avatar{width:38px!important;height:38px!important}
  body.v120-ui .v92-event-copy b{font-size:11px!important}
  body.v120-ui .v92-event-copy span{font-size:9px!important;line-height:1.25!important}
  body.v120-ui .v92-event-copy small{font-size:7px!important}

  /* ---------- modal shell ---------- */
  body.v120-ui .modal-back{padding:calc(7px + env(safe-area-inset-top)) 7px calc(8px + env(safe-area-inset-bottom))!important;align-items:center!important}
  body.v120-ui .modal{
    width:min(calc(100vw - 14px),430px)!important;max-width:430px!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px)!important;
    padding:12px!important;border-radius:16px!important;overflow-y:auto!important;overflow-x:hidden!important;
  }
  body.v120-ui .modal>h1{margin:0 42px 9px 0!important;font-size:23px!important;line-height:1.04!important}
  body.v120-ui .modal-close{top:8px!important;right:8px!important;width:38px!important;height:38px!important;border-radius:11px!important;font-size:17px!important}

  /* item detail modal */
  body.v120-ui .v97-item-detail-card{gap:8px!important}
  body.v120-ui .v97-item-detail-head{grid-template-columns:92px minmax(0,1fr)!important;gap:9px!important}
  body.v120-ui .v97-item-detail-icon{width:90px!important;height:100px!important;border-radius:13px!important}
  body.v120-ui .v97-item-detail-copy small{font-size:7px!important;padding:3px 5px!important}
  body.v120-ui .v97-item-detail-copy h2{font-size:21px!important;margin:5px 0!important}
  body.v120-ui .v97-item-detail-copy p{font-size:9px!important;line-height:1.3!important}
  body.v120-ui .v97-item-facts{gap:5px!important;padding:6px!important;border-radius:11px!important}
  body.v120-ui .v97-item-facts>div{min-height:48px!important;padding:6px!important;gap:2px!important}
  body.v120-ui .v97-item-facts small{font-size:7.5px!important}
  body.v120-ui .v97-item-facts b{font-size:10.5px!important}
  body.v120-ui .v97-item-requirements{padding:7px!important;border-radius:11px!important}
  body.v120-ui .v97-item-requirements h3{font-size:10px!important;margin-bottom:5px!important}
  body.v120-ui .v97-item-requirements span{font-size:7.5px!important;padding:4px 6px!important}
  body.v120-ui .v97-item-detail-actions{gap:6px!important}
  body.v120-ui .v97-item-detail-actions button{height:40px!important;font-size:10px!important;border-radius:10px!important}

  /* monster detail modal */
  body.v120-ui .v65-monster-sheet{gap:7px!important}
  body.v120-ui .v79-monster-intro{grid-template-columns:88px minmax(0,1fr)!important;gap:8px!important;padding:7px!important;border-radius:11px!important}
  body.v120-ui .v79-monster-portrait{width:86px!important;height:96px!important;border-radius:11px!important}
  body.v120-ui .v82-monster-title h2{font-size:20px!important}
  body.v120-ui .v82-monster-copy p{font-size:9px!important;line-height:1.3!important;-webkit-line-clamp:4!important}
  body.v120-ui .v92-quest-materials,body.v120-ui .v79-monster-block{padding:7px!important;border-radius:11px!important}
  body.v120-ui .v92-quest-materials h3,body.v120-ui .v79-monster-block h3{font-size:13px!important;margin:0 0 6px!important}
  body.v120-ui .v92-material-list{gap:5px!important}
  body.v120-ui .v92-material-chip{min-height:48px!important;padding:5px!important;grid-template-columns:40px minmax(0,1fr)!important;gap:6px!important;border-radius:9px!important}
  body.v120-ui .v92-material-chip>span{width:38px!important;height:38px!important}
  body.v120-ui .v92-material-chip b{font-size:10px!important}
  body.v120-ui .v92-material-chip small{font-size:7px!important}
  body.v120-ui .v65-monster-stat-grid{gap:4px!important}
  body.v120-ui .v65-monster-stat-grid .detail-line{min-height:38px!important;padding:0 8px!important;border-radius:9px!important;font-size:9px!important}
  body.v120-ui .v92-loot-list .v119-item-card{min-height:96px!important}
  body.v120-ui .v82-monster-footer button{height:40px!important;font-size:10px!important}

  /* ability modal */
  body.v120-ui .v44-ability-detail{gap:7px!important}
  body.v120-ui .v115-ability-detail-icon{width:88px!important;height:88px!important}
  body.v120-ui .v44-ability-detail>h2{font-size:21px!important}
  body.v120-ui .v44-ability-detail>p{font-size:9.5px!important;line-height:1.35!important}
  body.v120-ui .v44-ability-feature{padding:9px!important;border-radius:11px!important}
  body.v120-ui .v44-ability-feature small{font-size:7px!important}
  body.v120-ui .v44-ability-feature b{font-size:13px!important;margin-top:4px!important}
  body.v120-ui .v42-ability-lines{gap:4px!important}
  body.v120-ui .v42-ability-lines>div{height:36px!important;padding:0 9px!important;border-radius:9px!important}
  body.v120-ui .v42-ability-lines span,body.v120-ui .v42-ability-lines b{font-size:9px!important}
  body.v120-ui .v44-ability-detail>button{height:40px!important;border-radius:10px!important}

  /* slot picker */
  body.v120-ui .v98-picker-modal{width:min(calc(100vw - 14px),440px)!important}
  body.v120-ui .v93-slot-picker{max-height:calc(100dvh - 95px)!important;overflow-y:auto!important;padding-right:1px!important}
  body.v120-ui .v93-picker-intro{font-size:8.5px!important;margin:0 0 6px!important}
  body.v120-ui .v93-picker-section{padding:7px!important;border-radius:11px!important;margin-bottom:7px!important}
  body.v120-ui .v93-picker-section h3{font-size:14px!important;margin:0 0 6px!important}
  body.v120-ui .v93-picker-list{gap:5px!important}
  body.v120-ui .v93-picker-list .v119-item-card{min-height:92px!important;grid-template-columns:62px minmax(0,1fr)!important}
  body.v120-ui .v93-picker-list .v119-item-card .v39-item-icon-wrap{width:60px!important;min-width:60px!important;grid-template-rows:58px auto!important}
  body.v120-ui .v93-picker-list .v119-item-card .item-emblem{width:58px!important;height:58px!important}

  /* battle result */
  body.v120-ui .v98-result-modal{width:min(calc(100vw - 14px),420px)!important}
  body.v120-ui .v99-result{max-height:calc(100dvh - 82px)!important}
  body.v120-ui .v99-result header{min-height:72px!important;padding:7px!important;grid-template-columns:54px minmax(0,1fr)!important;gap:7px!important;border-radius:11px!important}
  body.v120-ui .v99-result header .v78-result-icon{width:50px!important;height:50px!important;border-radius:11px!important}
  body.v120-ui .v99-result header .v78-result-icon :where(svg,img){width:32px!important;height:32px!important}
  body.v120-ui .v99-result header h2{font-size:22px!important;margin:2px 0!important}
  body.v120-ui .v99-result header small{font-size:7px!important}
  body.v120-ui .v99-result header p{font-size:9px!important}
  body.v120-ui .v79-result-summary{gap:5px!important;margin-top:6px!important}
  body.v120-ui .v79-result-summary>span{min-height:56px!important;padding:7px!important;border-radius:10px!important}
  body.v120-ui .v79-result-summary small{font-size:7.5px!important}
  body.v120-ui .v79-result-summary b{font-size:12px!important}
  body.v120-ui .v93-result-block{margin-top:6px!important;padding:7px!important;border-radius:11px!important}
  body.v120-ui .v93-result-block h3{font-size:16px!important;margin-bottom:6px!important}
  body.v120-ui .v118-result-loot-grid{gap:5px!important}
  body.v120-ui .v118-result-loot-item{min-height:58px!important;padding:5px!important;grid-template-columns:45px minmax(0,1fr) 18px!important;border-radius:9px!important}
  body.v120-ui .v118-result-loot-icon{width:42px!important;height:42px!important}
  body.v120-ui .v118-result-loot-copy b{font-size:11px!important}
  body.v120-ui .v118-result-loot-copy small{font-size:7.5px!important}
  body.v120-ui .v96-result-footer{padding-top:6px!important}
  body.v120-ui .v96-result-footer button{height:42px!important;font-size:12px!important;border-radius:10px!important}

  /* character picker / generic drawer modals */
  body.v120-ui .character-drawer,body.v120-ui .v82-character-drawer{width:min(calc(100vw - 12px),430px)!important;max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;overflow-x:hidden!important}
  body.v120-ui .character-drawer h1,body.v120-ui .v82-character-drawer h1{font-size:22px!important}
  body.v120-ui .character-card,body.v120-ui .v82-character-card{min-height:98px!important;padding:7px!important}

  /* ---------- battle-only small corrections; no layout redesign ---------- */
  body.v120-ui.v111-battle-active .v101-battle-log{min-height:150px!important}
  body.v120-ui.v111-battle-active .battle-log-scroll{min-height:100px!important;overflow-y:auto!important}
  body.v120-ui.v111-battle-active .v106-log-entry{min-height:36px!important}
  body.v120-ui.v111-battle-active .v106-effect-asset.v113-effect-asset{width:30px!important;height:30px!important;margin:2px!important}
  body.v120-ui.v111-battle-active .v113-effect-turns{right:-2px!important;bottom:-2px!important;min-width:15px!important;height:15px!important;font-size:8px!important}
}

@media (max-width:374px){
  :root{--v120-pad:6px}
  body.v120-ui:not(.v111-battle-active) .v119-topbar{grid-template-columns:42px 88px minmax(0,1fr)!important;gap:4px!important;padding-left:6px!important;padding-right:6px!important}
  body.v120-ui .v119-top-currency{width:88px!important;max-width:88px!important}
  body.v120-ui .v119-top-currency img{width:25px!important;height:25px!important;flex-basis:25px!important}
  body.v120-ui .v119-top-currency b{font-size:12px!important}
  body.v120-ui .v119-top-player{grid-template-columns:34px minmax(0,1fr) 36px!important}
  body.v120-ui .v119-top-avatar{width:34px!important;height:34px!important}
  body.v120-ui .v119-top-copy b{font-size:12.5px!important}
  body.v120-ui .v119-level-shield{width:36px!important;height:42px!important;font-size:16px!important}
  body.v120-ui .v119-location-hero{grid-template-columns:84px minmax(0,1fr)!important}
  body.v120-ui .v119-location-image{height:88px!important;min-height:88px!important}
  body.v120-ui .v119-location-copy h1{font-size:19px!important}
  body.v120-ui .v119-monster-card{grid-template-columns:44px minmax(0,1fr)!important;height:136px!important;min-height:136px!important}
  body.v120-ui .v119-monster-art{width:42px!important;min-width:42px!important;height:52px!important}
  body.v120-ui .v119-monster-main h3{font-size:11.5px!important}
  body.v120-ui .v119-item-card{grid-template-columns:66px minmax(0,1fr)!important}
  body.v120-ui .v119-item-card .v39-item-icon-wrap{width:64px!important;min-width:64px!important;grid-template-rows:62px auto!important}
  body.v120-ui .v119-item-card .item-emblem{width:62px!important;height:62px!important}
  body.v120-ui .v119-equipment-panel .v39-equip-slot{grid-template-columns:44px minmax(0,1fr)!important}
  body.v120-ui .v119-equipment-panel .v39-slot-icon{width:44px!important;height:74px!important}
  body.v120-ui .ability-tabs button{font-size:7.2px!important}
}

/* ---- css/v121-mobile-viewport.css ---- */
/* Aldos RPG v121 — compact mobile viewport and safe scrolling layer.
   Loaded last: fixes viewport ownership without changing desktop layout. */

:root{
  --v121-top-h:56px;
  --v121-nav-h:58px;
  --v121-page-gap:8px;
  --v121-safe-top:env(safe-area-inset-top,0px);
  --v121-safe-bottom:env(safe-area-inset-bottom,0px);
}

body.v121-ui :where(.v119-screen,.modal,.side,.v96-result-scroll,.battle-log-scroll){
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

@media (max-width:760px){
  html,
  body.v121-ui{
    width:100%;
    height:100%;
    min-height:100%;
    overflow:hidden!important;
  }

  body.v121-ui:not(.v111-battle-active) #app,
  body.v121-ui:not(.v111-battle-active) .app-shell{
    position:relative!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }

  /* The page, not the document, owns vertical scrolling. Fixed bars can no longer
     hide the first or last controls. */
  body.v121-ui:not(.v111-battle-active) .v119-screen{
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:
      calc(var(--v121-top-h) + var(--v121-safe-top) + var(--v121-page-gap))
      8px
      calc(var(--v121-nav-h) + var(--v121-safe-bottom) + 10px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
    scroll-behavior:smooth;
    scroll-padding-top:calc(var(--v121-top-h) + var(--v121-safe-top) + 8px);
    scroll-padding-bottom:calc(var(--v121-nav-h) + var(--v121-safe-bottom) + 12px);
  }
  body.v121-ui:not(.v111-battle-active) .v119-screen>*{
    min-width:0!important;
    max-width:100%!important;
  }

  /* ---------- compact top bar ---------- */
  body.v121-ui:not(.v111-battle-active) .v119-topbar{
    position:fixed!important;
    inset:0 0 auto 0!important;
    z-index:900!important;
    width:100%!important;
    height:calc(var(--v121-top-h) + var(--v121-safe-top))!important;
    min-height:calc(var(--v121-top-h) + var(--v121-safe-top))!important;
    padding:calc(7px + var(--v121-safe-top)) 7px 7px!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) minmax(68px,82px) 34px 34px!important;
    align-items:center!important;
    gap:4px!important;
    border-radius:0!important;
  }
  body.v121-ui:not(.v111-battle-active) .v119-topbar .hamburger{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    padding:8px!important;
    border-radius:11px!important;
  }
  body.v121-ui .v121-top-player-copy{
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    display:flex!important;
    align-items:center!important;
    padding:0 4px!important;
    border:0!important;
    background:transparent!important;
  }
  body.v121-ui .v121-top-player-copy .v119-top-copy{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    gap:2px!important;
  }
  body.v121-ui .v121-top-player-copy .v119-top-copy b{
    max-width:100%!important;
    font-size:13px!important;
    line-height:1!important;
  }
  body.v121-ui .v121-top-player-copy .v119-top-copy small{
    min-width:0!important;
    font-size:8px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.v121-ui .v119-top-currency{
    justify-self:stretch!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    height:36px!important;
    padding:3px 6px 3px 3px!important;
    gap:4px!important;
    border-radius:18px!important;
    overflow:hidden!important;
  }
  body.v121-ui .v119-top-currency img{
    width:28px!important;
    min-width:28px!important;
    height:28px!important;
  }
  body.v121-ui .v119-top-currency span{min-width:0!important}
  body.v121-ui .v119-top-currency b{
    max-width:45px!important;
    font-size:11px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.v121-ui .v119-top-currency small{font-size:6.5px!important}
  body.v121-ui .v121-top-avatar-button,
  body.v121-ui .v121-level-button{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    min-width:34px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.v121-ui .v121-top-avatar-button .v119-top-avatar{
    display:block!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
  }
  body.v121-ui .v121-level-button .v119-level-shield{
    width:33px!important;
    min-width:33px!important;
    height:38px!important;
    font-size:15px!important;
  }

  /* ---------- compact page chrome ---------- */
  body.v121-ui .v119-page-heading{
    height:42px!important;
    min-height:42px!important;
    margin:0 0 7px!important;
    padding:0 4px 6px!important;
    gap:8px!important;
  }
  body.v121-ui .v119-page-heading .v119-page-icon{
    width:30px!important;
    height:30px!important;
    padding:4px!important;
    border-radius:8px!important;
  }
  body.v121-ui .v119-page-heading h1{
    min-width:0!important;
    font-size:21px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.v121-ui:not(.v111-battle-active) .v119-bottom-nav{
    position:fixed!important;
    inset:auto 0 0 0!important;
    z-index:880!important;
    width:100%!important;
    height:calc(var(--v121-nav-h) + var(--v121-safe-bottom))!important;
    min-height:calc(var(--v121-nav-h) + var(--v121-safe-bottom))!important;
    padding:4px 7px calc(4px + var(--v121-safe-bottom))!important;
    gap:4px!important;
    border-radius:16px 16px 0 0!important;
  }
  body.v121-ui .v119-bottom-nav button{
    height:46px!important;
    min-height:46px!important;
    padding:2px!important;
    grid-template-rows:25px 13px!important;
    border-radius:11px!important;
  }
  body.v121-ui .v119-bottom-nav .nav-glyph{
    width:24px!important;
    height:24px!important;
  }
  body.v121-ui .v119-bottom-nav span{
    font-size:9.5px!important;
    line-height:1!important;
  }

  /* ---------- location and monster mini-cards ---------- */
  body.v121-ui .v119-location-hero{
    min-height:118px!important;
    grid-template-columns:94px minmax(0,1fr)!important;
    gap:8px!important;
    margin-bottom:7px!important;
    padding:7px!important;
    border-radius:14px!important;
  }
  body.v121-ui .v119-location-image{
    height:100px!important;
    min-height:100px!important;
    border-radius:10px!important;
  }
  body.v121-ui .v119-location-copy h1{font-size:22px!important}
  body.v121-ui .v119-location-copy p{font-size:8.5px!important;line-height:1.25!important}

  body.v121-ui .v119-monster-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    padding-top:6px!important;
  }
  body.v121-ui .v119-monster-card{
    height:126px!important;
    min-height:126px!important;
    padding:6px!important;
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) 30px!important;
    gap:4px!important;
    border-radius:12px!important;
  }
  body.v121-ui .v119-monster-art{
    width:42px!important;
    min-width:42px!important;
    height:54px!important;
    border-radius:9px!important;
  }
  body.v121-ui .v119-monster-main{
    align-self:center!important;
    gap:3px!important;
  }
  body.v121-ui .v119-monster-main h3{
    font-size:12px!important;
    line-height:1.05!important;
    -webkit-line-clamp:2!important;
  }
  body.v121-ui .v119-monster-tags{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
  }
  body.v121-ui .v119-monster-tags span{
    height:16px!important;
    max-width:100%!important;
    padding:0 5px!important;
    font-size:6.5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.v121-ui .v119-monster-tags .rank-elite{color:#efba58!important;border-color:rgba(239,186,88,.55)!important}
  body.v121-ui .v119-monster-tags .rank-boss{color:#ff7777!important;border-color:rgba(255,91,91,.58)!important}
  body.v121-ui .v121-monster-level{
    display:block!important;
    margin-top:0!important;
    color:#a9e635!important;
    font:600 8.5px/1.15 system-ui,sans-serif!important;
    letter-spacing:.02em!important;
  }
  body.v121-ui .v119-monster-actions{gap:4px!important}
  body.v121-ui .v119-monster-actions button{
    height:30px!important;
    min-height:30px!important;
    padding:0 3px!important;
    border-radius:8px!important;
    font-size:8.5px!important;
  }

  /* ---------- loot-only pit ---------- */
  body.v121-ui .v119-pit-card{
    min-height:58px!important;
    padding:6px!important;
    grid-template-columns:58px minmax(0,1fr) 66px 12px!important;
    gap:5px!important;
    border-radius:12px!important;
  }
  body.v121-ui .v119-pit-art{height:44px!important;border-radius:8px!important}
  body.v121-ui .v119-pit-card b{font-size:15px!important}
  body.v121-ui .v119-pit-card small{font-size:7.5px!important}
  body.v121-ui .v119-pit-card em{height:32px!important;font-size:9px!important;border-radius:8px!important}
  body.v121-ui .v121-loot-pit{gap:7px!important}
  body.v121-ui .v119-pit-header{
    min-height:50px!important;
    padding:6px 8px!important;
    border-radius:12px!important;
  }
  body.v121-ui .v119-pit-header h1{font-size:21px!important}
  body.v121-ui .v119-pit-header p{font-size:7.5px!important}
  body.v121-ui .v119-pit-header>b{min-width:62px!important;font-size:15px!important}
  body.v121-ui .v119-pit-scene{
    height:92px!important;
    min-height:92px!important;
    border-radius:12px!important;
  }
  body.v121-ui .v121-pit-metrics{gap:5px!important}
  body.v121-ui .v121-pit-metrics article{
    min-height:52px!important;
    padding:6px!important;
    border-radius:10px!important;
  }
  body.v121-ui .v121-pit-metrics article> :first-child{width:30px!important;height:30px!important}
  body.v121-ui .v121-pit-metrics b{font-size:14px!important}
  body.v121-ui .v121-pit-metrics small{font-size:7px!important}
  body.v121-ui .v121-pit-loot{
    padding:7px!important;
    border-radius:12px!important;
  }
  body.v121-ui .v121-pit-loot h2{font-size:16px!important;margin:0 0 3px!important}
  body.v121-ui .v121-pit-note{
    margin:0 0 6px!important;
    color:#a9a298!important;
    font-size:8px!important;
    line-height:1.3!important;
  }
  body.v121-ui .v119-pit-item{
    min-height:58px!important;
    padding:5px!important;
    grid-template-columns:44px minmax(0,1fr) 38px 60px!important;
    gap:4px!important;
    border-radius:9px!important;
  }
  body.v121-ui .v119-pit-item-art{width:42px!important;height:42px!important;border-radius:8px!important}
  body.v121-ui .v119-pit-item-copy strong{font-size:11.5px!important}
  body.v121-ui .v119-pit-item-copy small,
  body.v121-ui .v119-pit-item-weight{font-size:7px!important}
  body.v121-ui .v119-pit-item>button{height:30px!important;min-height:30px!important;font-size:8px!important;border-radius:7px!important}

  /* ---------- safe side panel ---------- */
  body.v121-ui .v119-side{
    height:100dvh!important;
    max-height:100dvh!important;
    padding-bottom:calc(10px + var(--v121-safe-bottom))!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
  }
  body.v121-ui .v119-side-head{position:sticky!important;top:0!important;z-index:3!important}
  body.v121-ui .v119-side-head>button{
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    padding:7px!important;
  }

  /* ---------- all modals: the backdrop can scroll and every close button stays inside ---------- */
  body.v121-ui .modal-back{
    position:fixed!important;
    inset:0!important;
    z-index:2000!important;
    padding:calc(6px + var(--v121-safe-top)) 6px calc(6px + var(--v121-safe-bottom))!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
  }
  body.v121-ui .modal-back>.modal{
    position:relative!important;
    width:min(100%,430px)!important;
    max-width:430px!important;
    height:auto!important;
    min-height:0!important;
    max-height:calc(100dvh - var(--v121-safe-top) - var(--v121-safe-bottom) - 12px)!important;
    margin:auto 0!important;
    padding:11px!important;
    border-radius:15px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  body.v121-ui .modal-back>.modal>.modal-close{
    position:absolute!important;
    top:7px!important;
    right:7px!important;
    z-index:20!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0!important;
    border-radius:9px!important;
    font-size:14px!important;
  }
  body.v121-ui .modal-back>.modal>h1{
    max-width:calc(100% - 42px)!important;
    margin:1px 42px 8px 0!important;
    padding:0!important;
    font-size:22px!important;
    line-height:1.05!important;
    overflow-wrap:anywhere!important;
  }

  /* Battle result has one internal scroller; footer never leaves the viewport. */
  body.v121-ui .modal-back.has-v98-result-modal{
    padding:calc(5px + var(--v121-safe-top)) 5px calc(5px + var(--v121-safe-bottom))!important;
    overflow:hidden!important;
  }
  body.v121-ui .modal.v98-result-modal{
    width:min(calc(100vw - 10px),420px)!important;
    max-width:420px!important;
    height:calc(100dvh - var(--v121-safe-top) - var(--v121-safe-bottom) - 10px)!important;
    max-height:calc(100dvh - var(--v121-safe-top) - var(--v121-safe-bottom) - 10px)!important;
    margin:0!important;
    padding:9px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    border-radius:15px!important;
  }
  body.v121-ui .v98-result-modal>h1{
    flex:0 0 auto!important;
    min-height:28px!important;
    margin:0 40px 5px 2px!important;
    font-size:21px!important;
  }
  body.v121-ui .v98-result-modal>.v96-result,
  body.v121-ui .v98-result-modal>.v99-result{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  body.v121-ui .v98-result-modal .v96-result-scroll{
    flex:1 1 auto!important;
    width:100%!important;
    min-height:0!important;
    max-height:none!important;
    padding:2px 2px 7px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
  }
  body.v121-ui .v98-result-modal .v96-result-footer{
    position:relative!important;
    inset:auto!important;
    flex:0 0 46px!important;
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:5px 0 0!important;
    background:linear-gradient(180deg,rgba(10,17,20,.4),#11191c 32%)!important;
  }
  body.v121-ui .v98-result-modal .v78-result-close{
    width:100%!important;
    height:41px!important;
    min-height:41px!important;
    padding:0 10px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }
  body.v121-ui .v96-result header{
    min-height:62px!important;
    padding:7px!important;
    gap:7px!important;
    border-radius:11px!important;
  }
  body.v121-ui .v78-result-icon{width:42px!important;height:42px!important;min-width:42px!important}
  body.v121-ui .v96-result header h2{font-size:18px!important;margin:0!important}
  body.v121-ui .v96-result header p,
  body.v121-ui .v96-result header small{font-size:8px!important}
  body.v121-ui .v78-result-summary{
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:5px!important;
    margin:5px 0!important;
  }
  body.v121-ui .v78-result-summary>span{
    min-height:46px!important;
    padding:6px!important;
    border-radius:10px!important;
  }
  body.v121-ui .v78-result-summary small{font-size:7px!important}
  body.v121-ui .v78-result-summary b{font-size:12px!important}
  body.v121-ui .v78-result-block{padding:7px!important;margin:5px 0!important;border-radius:11px!important}
  body.v121-ui .v78-result-block>h3{font-size:15px!important;margin:0 0 4px!important}
  body.v121-ui .loot-tab{height:30px!important;min-height:30px!important;font-size:8.5px!important;border-radius:8px!important}
  body.v121-ui .v118-result-loot-item{
    grid-template-columns:38px minmax(0,1fr) 18px!important;
    min-height:50px!important;
    padding:5px 6px!important;
    gap:6px!important;
    border-radius:9px!important;
  }
  body.v121-ui .v118-result-loot-icon{width:36px!important;height:38px!important}
  body.v121-ui .v118-result-loot-copy b{font-size:10.5px!important}
  body.v121-ui .v118-result-loot-copy small{font-size:7px!important}

  /* ---------- battle: slightly more room for logs, gained downward ---------- */
  body.v121-ui.v111-battle-active{
    --v121-battle-header-h:56px;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    overflow:hidden!important;
  }
  body.v121-ui.v111-battle-active .v79-battle-header,
  body.v121-ui.v111-battle-active .battle-header{
    height:var(--v121-battle-header-h)!important;
    min-height:var(--v121-battle-header-h)!important;
    padding-top:calc(5px + var(--v121-safe-top))!important;
    padding-bottom:5px!important;
  }
  body.v121-ui.v111-battle-active .v101-battle{
    --v118-turn-h:70px;
    --v118-board-h:174px;
    width:100%!important;
    height:calc(100dvh - var(--v121-battle-header-h) - var(--v121-safe-top))!important;
    min-height:0!important;
    max-height:calc(100dvh - var(--v121-battle-header-h) - var(--v121-safe-top))!important;
    grid-template-rows:70px 174px minmax(122px,1fr) 38px!important;
    gap:6px!important;
    padding:5px 8px max(6px,var(--v121-safe-bottom))!important;
    overflow:hidden!important;
  }
  body.v121-ui.v111-battle-active .v118-turn-timer{
    height:70px!important;
    min-height:70px!important;
    max-height:70px!important;
  }
  body.v121-ui.v111-battle-active .v101-combat-board{
    height:174px!important;
    min-height:174px!important;
    max-height:174px!important;
  }
  body.v121-ui.v111-battle-active .v101-battle-log{
    height:100%!important;
    min-height:122px!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  body.v121-ui.v111-battle-active .v101-battle-log .v79-log-head{
    height:34px!important;
    min-height:34px!important;
  }
  body.v121-ui.v111-battle-active .v101-battle-log .battle-log-scroll{
    height:calc(100% - 34px)!important;
    min-height:86px!important;
    max-height:none!important;
    padding-bottom:6px!important;
    overflow-y:auto!important;
    touch-action:pan-y!important;
  }
  body.v121-ui.v111-battle-active .v101-battle-log.collapsed{
    height:34px!important;
    min-height:34px!important;
  }
  body.v121-ui.v111-battle-active .v101-battle-log.collapsed .battle-log-scroll{display:none!important}
}

@media (max-width:374px){
  body.v121-ui:not(.v111-battle-active) .v119-topbar{
    grid-template-columns:36px minmax(0,1fr) 66px 31px 31px!important;
    gap:3px!important;
    padding-left:5px!important;
    padding-right:5px!important;
  }
  body.v121-ui:not(.v111-battle-active) .v119-topbar .hamburger{width:36px!important;min-width:36px!important;height:36px!important}
  body.v121-ui .v119-top-currency img{width:25px!important;min-width:25px!important;height:25px!important}
  body.v121-ui .v119-top-currency b{font-size:10px!important}
  body.v121-ui .v121-top-avatar-button,
  body.v121-ui .v121-level-button{width:31px!important;min-width:31px!important}
  body.v121-ui .v121-top-avatar-button .v119-top-avatar{width:29px!important;min-width:29px!important;height:29px!important}
  body.v121-ui .v121-level-button .v119-level-shield{width:30px!important;min-width:30px!important;font-size:14px!important}
  body.v121-ui .v119-monster-card{grid-template-columns:40px minmax(0,1fr)!important;height:122px!important;min-height:122px!important}
  body.v121-ui .v119-monster-art{width:38px!important;min-width:38px!important;height:50px!important}
  body.v121-ui .v119-monster-main h3{font-size:10.5px!important}
  body.v121-ui .v119-monster-actions button{font-size:7.7px!important}
  body.v121-ui .v119-pit-item{grid-template-columns:40px minmax(0,1fr) 34px 54px!important}
}

/* Final specificity guards against older result and battle rules. */
@media (max-width:760px){
  body.v121-ui:not(.v111-battle-active) main.v119-screen,
  body.v121-ui .v98-result-modal .v96-result-scroll,
  body.v121-ui.v111-battle-active .v101-battle-log .battle-log-scroll{
    scroll-behavior:auto!important;
  }

  body.v121-ui .v98-result-modal .v78-result-block.v93-result-block,
  body.v121-ui .v98-result-modal #result-loot-view,
  body.v121-ui .v98-result-modal .v118-result-loot-owner,
  body.v121-ui .v98-result-modal .v118-result-loot-grid{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }

  /* v127.1: obsolete fixed 180px battle-log guard removed.
     The current recovery stylesheet owns the battle grid and log height. */
}

/* ---- css/v122-interface-repack.css ---- */
/* Aldos RPG v122 — dense mobile interface, compact inventory and stable battle UI.
   Loaded after v121 and intentionally owns the final mobile layout. */

:root{
  --v122-top-h:62px;
  --v122-nav-h:62px;
  --v122-gold:#d39a42;
  --v122-lime:#a9ef22;
  --v122-panel:rgba(7,23,26,.96);
  --v122-line:rgba(189,132,48,.38);
}

body.v122-ui :where(.v119-screen,.side,.modal,.v71-char-list,.v76-character-list,.v76-admin-screen,.battle-log-scroll,.v101-roster-scroll){
  scrollbar-width:thin;
  scrollbar-color:rgba(231,155,54,.8) rgba(255,255,255,.06);
}
body.v122-ui :where(.v119-screen,.side,.modal,.v71-char-list,.v76-character-list,.v76-admin-screen,.battle-log-scroll,.v101-roster-scroll)::-webkit-scrollbar{width:5px;height:5px}
body.v122-ui :where(.v119-screen,.side,.modal,.v71-char-list,.v76-character-list,.v76-admin-screen,.battle-log-scroll,.v101-roster-scroll)::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px}
body.v122-ui :where(.v119-screen,.side,.modal,.v71-char-list,.v76-character-list,.v76-admin-screen,.battle-log-scroll,.v101-roster-scroll)::-webkit-scrollbar-thumb{background:linear-gradient(#e7a244,#b86b1c);border-radius:999px}

/* Monster information is now a compact, non-research-stat sheet. */
body.v122-ui .modal.has-v122-monster-modal,
body.v122-ui .modal.v122-monster-modal{overflow:hidden!important}
body.v122-ui .v122-monster-sheet{display:grid!important;gap:12px!important;min-width:0!important}
body.v122-ui .v122-monster-intro{display:grid!important;grid-template-columns:minmax(120px,34%) minmax(0,1fr)!important;gap:14px!important;align-items:center!important}
body.v122-ui .v122-monster-portrait{height:180px!important;border:1px solid var(--v122-line)!important;border-radius:18px!important;background:radial-gradient(circle at 50% 45%,rgba(59,121,104,.15),rgba(2,10,13,.72))!important;overflow:hidden!important;display:grid!important;place-items:center!important}
body.v122-ui .v122-monster-portrait :where(img,.monster-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;padding:8px!important}
body.v122-ui .v122-monster-copy{min-width:0!important}
body.v122-ui .v122-monster-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap!important}
body.v122-ui .v122-monster-title h2{margin:0!important;font:600 clamp(24px,4vw,38px)/1.05 Georgia,"Times New Roman",serif!important}
body.v122-ui .v122-monster-title>div{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
body.v122-ui .v122-monster-copy>p{margin:9px 0 0!important;color:#a9aca9!important;font-size:13px!important;line-height:1.45!important}
body.v122-ui .v122-monster-section{padding:11px!important;border:1px solid rgba(99,152,131,.25)!important;border-radius:16px!important;background:rgba(255,255,255,.025)!important;min-width:0!important}
body.v122-ui .v122-monster-section h3{margin:0 0 9px!important;font:600 18px/1.1 Georgia,"Times New Roman",serif!important;color:#e8efe9!important}
body.v122-ui .v122-monster-material-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
body.v122-ui .v122-monster-material{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-height:58px!important;padding:6px!important;border:1px solid rgba(129,171,155,.22)!important;border-radius:12px!important;background:rgba(8,25,28,.76)!important}
body.v122-ui .v122-monster-material>span{width:44px!important;height:44px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:rgba(0,0,0,.28)!important;overflow:hidden!important}
body.v122-ui .v122-monster-material>span :where(img,svg){width:88%!important;height:88%!important;object-fit:contain!important}
body.v122-ui .v122-monster-material b,body.v122-ui .v122-monster-loot b{display:block!important;font-size:11px!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v122-ui .v122-monster-material small,body.v122-ui .v122-monster-loot small{display:block!important;margin-top:3px!important;font-size:8px!important;color:#909991!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v122-ui .v122-monster-loot-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
body.v122-ui .v122-monster-loot{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:6px!important;align-items:center!important;min-height:55px!important;padding:6px!important;border:1px solid rgba(190,132,50,.25)!important;border-radius:12px!important;background:rgba(5,18,21,.9)!important;cursor:pointer!important}
body.v122-ui .v122-monster-loot>span{width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:rgba(0,0,0,.28)!important;overflow:hidden!important}
body.v122-ui .v122-monster-loot>span :where(img,svg){width:88%!important;height:88%!important;object-fit:contain!important}
body.v122-ui .v122-monster-locked{min-height:76px!important;display:grid!important;align-content:center!important}
body.v122-ui .v122-monster-locked p{margin:0!important;color:#969b96!important;font-size:11px!important;line-height:1.4!important}
body.v122-ui .v122-monster-sheet .v82-monster-footer{margin:0!important;padding:0!important}
body.v122-ui .v122-monster-sheet .v79-learn-more{width:100%!important;min-height:48px!important}

/* Chat profile card leaves a real background layer for future donor backgrounds/skins. */
body.v122-ui .v122-player-card{position:relative!important;isolation:isolate!important;overflow:hidden!important;grid-template-columns:150px minmax(0,1fr)!important;gap:16px!important;padding:16px!important;background:linear-gradient(155deg,rgba(10,29,31,.96),rgba(7,15,20,.98))!important}
body.v122-ui .v122-player-card-bg{position:absolute!important;inset:0!important;z-index:-2!important;background-image:var(--v122-player-bg)!important;background-size:cover!important;background-position:center!important;opacity:.36!important}
body.v122-ui .v122-player-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(3,12,15,.28),rgba(3,12,15,.92) 52%,rgba(3,12,15,.98));pointer-events:none}
body.v122-ui .v122-player-art{height:235px!important;border-radius:18px!important;background:rgba(2,10,13,.7)!important}
body.v122-ui .v122-player-art :where(img,.class-asset-image){object-fit:contain!important;object-position:center bottom!important;transform:none!important;padding:8px!important}
body.v122-ui .v122-player-main{align-self:center!important;min-width:0!important}
body.v122-ui .v122-player-head h2{font-size:32px!important;line-height:1!important;margin:4px 0 5px!important}
body.v122-ui .v122-player-head p{margin:0!important;color:#a7aaa6!important;font-size:12px!important}
body.v122-ui .v122-player-character{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.v122-ui .v122-player-actions{grid-template-columns:minmax(0,1fr) auto auto!important}
body.v122-ui .v122-icon-action{width:44px!important;min-width:44px!important;padding:9px!important}
body.v122-ui .v122-icon-action :where(svg,img){width:24px!important;height:24px!important}
body.v122-ui .v80-chat-meta{display:flex!important;align-items:baseline!important;gap:6px!important;min-width:0!important}
body.v122-ui .v80-chat-meta b{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v122-ui .v80-chat-meta small{font-size:7px!important;color:#7f8b85!important;white-space:nowrap!important}

/* Battle fixes: timer always on top, log owns its scroll, roster positions survive rerenders. */
body.v122-ui.v111-battle-active .v117-turn-timer,
body.v122-ui.v111-battle-active .v118-turn-timer,
body.v122-ui.v111-battle-active .battle-timer{position:relative!important;z-index:40!important;isolation:isolate!important;margin-bottom:8px!important}
body.v122-ui.v111-battle-active .v101-combat-board{position:relative!important;z-index:10!important;gap:9px!important}
body.v122-ui.v111-battle-active .v101-roster{position:relative!important;z-index:8!important;overflow:hidden!important}
body.v122-ui.v111-battle-active .v101-roster-scroll{overflow:auto!important;overscroll-behavior:contain!important;scroll-behavior:auto!important;overflow-anchor:none!important;touch-action:pan-y!important}
body.v122-ui.v111-battle-active .v101-battle-log{position:relative!important;z-index:12!important;min-height:215px!important;height:auto!important;overflow:hidden!important;margin-top:9px!important}
body.v122-ui.v111-battle-active .v101-battle-log .battle-log-scroll{display:block!important;min-height:164px!important;height:min(31dvh,250px)!important;max-height:min(34dvh,280px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;padding-bottom:12px!important;scrollbar-gutter:stable!important}
body.v122-ui.v111-battle-active .v101-battle-log .v106-log-entry{margin-bottom:4px!important}
body.v122-ui.v111-battle-active .v106-effect-asset.v113-effect-asset{overflow:visible!important}
body.v122-ui.v111-battle-active .v113-effect-turns{display:grid!important;place-items:center!important;position:absolute!important;right:-2px!important;bottom:-2px!important;z-index:9!important;min-width:13px!important;width:auto!important;height:13px!important;padding:0 3px!important;border-radius:7px!important;background:#05090b!important;border:1px solid #f0c464!important;color:#fff4cc!important;font-size:7px!important;font-weight:800!important;line-height:1!important;opacity:1!important;visibility:visible!important}
body.v122-ui.v111-battle-active .v106-effect-asset.negative .v113-effect-turns{border-color:#ff6b70!important;background:#2a0b10!important;color:#fff!important}

/* Character selectors and admin forms always have a visible internal scroll area. */
body.v122-ui .v71-character-modal,
body.v122-ui .v76-character-sheet{overflow:hidden!important}
body.v122-ui .v71-char-list,
body.v122-ui .v76-character-list{max-height:min(58dvh,560px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:5px!important;overscroll-behavior:contain!important}
body.v122-ui .v76-admin-screen{max-height:calc(100dvh - 140px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:6px!important}
body.v122-ui .v79-monster-deal{max-height:min(70dvh,620px)!important;overflow-y:auto!important;overscroll-behavior:contain!important}
body.v122-ui .v79-deal-shade{z-index:1500!important}

/* Compact battle result: about 1.5x shorter, with its own scroll. */
body.v122-ui .modal-back.has-v98-result-modal{align-items:center!important;padding:10px!important}
body.v122-ui .modal.v98-result-modal{height:min(74dvh,650px)!important;max-height:min(84dvh,700px)!important;padding:11px!important;border-radius:20px!important}
body.v122-ui .v98-result-modal>h1{font-size:24px!important;line-height:1!important;margin-bottom:8px!important}
body.v122-ui .v98-result-modal .v96-result-scroll{padding:0 4px 8px 0!important}
body.v122-ui .v98-result-modal .v78-result header{min-height:74px!important;padding:9px!important;gap:9px!important}
body.v122-ui .v98-result-modal .v78-result-icon{width:56px!important;height:56px!important}
body.v122-ui .v98-result-modal .v78-result header h2{font-size:25px!important;line-height:1!important}
body.v122-ui .v98-result-modal .v78-result-summary{gap:6px!important;margin:7px 0!important}
body.v122-ui .v98-result-modal .v78-result-summary>span{min-height:54px!important;padding:8px!important}
body.v122-ui .v98-result-modal .v78-result-block{padding:9px!important;margin-top:7px!important}
body.v122-ui .v98-result-modal .v78-result-block h3{font-size:20px!important;margin-bottom:7px!important}
body.v122-ui .v98-result-modal .v118-result-loot-item{min-height:56px!important;padding:6px 8px!important}
body.v122-ui .v98-result-modal .v118-result-loot-icon{width:42px!important;height:42px!important}
body.v122-ui .v98-result-modal .v96-result-footer{padding-top:7px!important}
body.v122-ui .v98-result-modal .v78-result-close{min-height:46px!important;height:46px!important}

/* New item detail card. */
body.v122-ui .modal.v122-item-modal{width:min(760px,calc(100vw - 18px))!important;max-height:92dvh!important;overflow-y:auto!important;padding:16px!important}
body.v122-ui .v122-item-detail-card{display:grid!important;gap:13px!important;min-width:0!important}
body.v122-ui .v122-item-detail-head{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;gap:18px!important;align-items:center!important;padding:12px!important;border:1px solid rgba(171,187,185,.26)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(14,27,32,.95),rgba(6,17,20,.98))!important}
body.v122-ui .v122-item-detail-head .v97-item-detail-icon{position:relative!important;width:190px!important;height:190px!important;border-radius:18px!important;border:1px solid rgba(203,143,46,.65)!important;background:rgba(2,14,16,.82)!important;overflow:hidden!important}
body.v122-ui .v122-item-detail-head .v97-item-detail-icon :where(img,svg,.item-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;padding:12px!important;transform:none!important}
body.v122-ui .v122-item-detail-head .v97-item-detail-icon>b{position:absolute!important;right:7px!important;bottom:7px!important;min-width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:14px!important;background:#071013!important;border:1px solid #efc05a!important;color:#fff!important}
body.v122-ui .v122-item-detail-head .v97-item-detail-copy small{display:inline-flex!important;padding:5px 10px!important;border:1px solid rgba(159,215,50,.38)!important;border-radius:999px!important;color:#a8e83b!important;text-transform:uppercase!important;font-size:9px!important;letter-spacing:.07em!important}
body.v122-ui .v122-item-detail-head .v97-item-detail-copy h2{font:600 clamp(30px,5vw,46px)/1.04 Georgia,"Times New Roman",serif!important;margin:12px 0 8px!important;overflow-wrap:anywhere!important}
body.v122-ui .v122-item-detail-head .v97-item-detail-copy p{margin:0!important;color:#9ba09e!important;font-size:14px!important;line-height:1.45!important}
body.v122-ui .v122-item-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:11px!important;border:1px solid rgba(122,171,151,.25)!important;border-radius:18px!important;background:rgba(6,23,26,.85)!important}
body.v122-ui .v122-item-facts>div{min-height:75px!important;display:grid!important;align-content:center!important;gap:5px!important;padding:10px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:14px!important;background:rgba(255,255,255,.025)!important;text-align:center!important}
body.v122-ui .v122-item-facts small{font-size:10px!important;color:#8f9994!important}
body.v122-ui .v122-item-facts b{font-size:15px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
body.v122-ui .v122-class-requirements>div{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body.v122-ui .v122-class-requirements span{display:flex!important;align-items:center!important;gap:6px!important;min-height:38px!important;padding:6px 10px!important;border-radius:12px!important;background:rgba(27,99,70,.25)!important}
body.v122-ui .v122-class-requirements :where(svg,img){width:22px!important;height:22px!important}
body.v122-ui .v122-material-note{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:10px!important;border:1px solid rgba(28,175,156,.26)!important;border-radius:15px!important;background:rgba(7,43,43,.36)!important}
body.v122-ui .v122-material-note :where(svg,img){width:34px!important;height:34px!important}
body.v122-ui .v122-material-note p{margin:0!important;font-size:11px!important;color:#a9b3ae!important;line-height:1.4!important}
body.v122-ui .v122-item-detail-card .v97-item-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.v122-ui .v122-item-detail-card .v97-item-detail-actions button{min-height:52px!important}

@media (max-width:760px){
  :root{--v122-top-h:62px;--v122-nav-h:62px}
  body.v122-ui:not(.v111-battle-active) .v119-screen{
    padding:calc(var(--v122-top-h) + env(safe-area-inset-top) + 8px) 7px calc(var(--v122-nav-h) + env(safe-area-inset-bottom) + 11px)!important;
  }

  /* Top bar: currency + larger portrait + larger character nickname on the right. */
  body.v122-ui:not(.v111-battle-active) .v119-topbar{
    height:calc(var(--v122-top-h) + env(safe-area-inset-top))!important;
    min-height:calc(var(--v122-top-h) + env(safe-area-inset-top))!important;
    padding:calc(6px + env(safe-area-inset-top)) 7px 6px!important;
    grid-template-columns:42px minmax(88px,106px) 45px minmax(74px,1fr) 39px!important;
    gap:4px!important;
  }
  body.v122-ui:not(.v111-battle-active) .v119-topbar .hamburger{width:42px!important;min-width:42px!important;height:46px!important;padding:9px!important;border-radius:13px!important}
  body.v122-ui .v119-top-currency{width:100%!important;max-width:none!important;height:44px!important;padding:4px 7px 4px 4px!important;gap:5px!important;border-radius:15px!important}
  body.v122-ui .v119-top-currency img{width:33px!important;min-width:33px!important;height:33px!important}
  body.v122-ui .v119-top-currency b{max-width:58px!important;font-size:13px!important;line-height:1!important}
  body.v122-ui .v119-top-currency small{font-size:7.5px!important}
  body.v122-ui .v121-top-avatar-button{width:45px!important;min-width:45px!important;height:48px!important}
  body.v122-ui .v121-top-avatar-button .v119-top-avatar{width:43px!important;min-width:43px!important;height:43px!important;border-width:1.5px!important}
  body.v122-ui .v121-top-player-copy{height:46px!important;padding:0 2px!important}
  body.v122-ui .v121-top-player-copy .v119-top-copy{gap:3px!important}
  body.v122-ui .v121-top-player-copy .v119-top-copy b{font-size:15.5px!important;line-height:1!important}
  body.v122-ui .v121-top-player-copy .v119-top-copy small{font-size:9px!important}
  body.v122-ui .v121-level-button{width:39px!important;min-width:39px!important;height:48px!important}
  body.v122-ui .v121-level-button .v119-level-shield{width:39px!important;min-width:39px!important;height:46px!important;font-size:18px!important}

  /* Two compact player cards per row, up to four visible. */
  body.v122-ui .v119-players-panel .v120-section-body{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding-top:7px!important}
  body.v122-ui .v119-location-player{min-height:76px!important;height:76px!important;grid-template-columns:43px minmax(0,1fr) 32px!important;gap:6px!important;padding:7px!important;border:1px solid rgba(183,123,39,.27)!important;border-radius:13px!important;background:rgba(4,18,21,.82)!important;overflow:hidden!important}
  body.v122-ui .v119-location-player-art{width:42px!important;height:54px!important;border-radius:10px!important;overflow:visible!important}
  body.v122-ui .v119-location-player-art :where(img,.class-asset-image){border-radius:9px!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;padding:2px!important}
  body.v122-ui .v119-location-player-art>b{right:-4px!important;bottom:-4px!important;min-width:18px!important;height:18px!important;font-size:7px!important}
  body.v122-ui .v119-location-player-copy{gap:3px!important}
  body.v122-ui .v119-location-player-copy strong{font:600 12px/1.05 system-ui,sans-serif!important}
  body.v122-ui .v119-location-player-copy small{font-size:7.5px!important;gap:4px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v122-ui .v119-location-player-copy i{width:6px!important;height:6px!important;flex:0 0 6px!important}
  body.v122-ui .v122-player-action{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;padding:6px!important;display:grid!important;place-items:center!important;border-radius:10px!important;font-size:0!important}
  body.v122-ui .v122-player-action :where(svg,img){width:18px!important;height:18px!important}
  body.v122-ui .v119-player-self.v122-player-action{background:rgba(96,145,26,.18)!important;border:1px solid rgba(145,211,38,.35)!important}

  /* Inventory controls are part of the content flow and never cover cards. */
  body.v122-ui .v119-inventory-shell{display:grid!important;gap:7px!important}
  body.v122-ui .v119-inventory-metrics{gap:5px!important}
  body.v122-ui .v119-inventory-metrics :where(article,button){min-height:58px!important;padding:5px!important;border-radius:12px!important}
  body.v122-ui .v119-inventory-weight{margin:0!important}
  body.v122-ui .v119-inventory-tabs{position:static!important;margin:0!important}
  body.v122-ui .v122-inventory-tools{position:static!important;inset:auto!important;z-index:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 47px minmax(118px,.7fr)!important;gap:5px!important;width:100%!important;min-height:48px!important;margin:0!important;padding:5px!important;border:1px solid var(--v122-line)!important;border-radius:13px!important;background:rgba(5,20,23,.97)!important;box-shadow:none!important}
  body.v122-ui .v122-inventory-tools label{min-height:36px!important;height:36px!important;padding:0 7px!important;border-radius:10px!important;background:rgba(0,0,0,.18)!important}
  body.v122-ui .v122-inventory-tools label:first-child{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:center!important;gap:5px!important}
  body.v122-ui .v122-inventory-tools label:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) 20px!important;align-items:center!important;gap:4px!important}
  body.v122-ui .v122-inventory-tools :where(svg,img){width:18px!important;height:18px!important}
  body.v122-ui .v122-inventory-tools :where(input,select){height:32px!important;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;font-size:8.5px!important}
  body.v122-ui .v122-inventory-tools>span{height:36px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:rgba(0,0,0,.18)!important;color:#9edc28!important;font-size:8px!important}

  /* Two-column compact inventory cards. */
  body.v122-ui .v119-inventory-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:7px!important;padding-bottom:4px!important}
  body.v122-ui .v119-item-card.v122-item-card{width:100%!important;min-height:144px!important;height:auto!important;margin:0!important;padding:7px!important;display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;grid-template-rows:auto!important;gap:7px!important;border-radius:14px!important;overflow:hidden!important}
  body.v122-ui .v122-item-card .v39-item-icon-wrap{width:50px!important;min-width:50px!important;height:64px!important;display:block!important}
  body.v122-ui .v122-item-card .item-emblem{width:50px!important;height:64px!important;border-radius:11px!important}
  body.v122-ui .v122-item-card .item-emblem :where(img,svg,.item-asset-image){width:94%!important;height:94%!important;object-fit:contain!important;padding:3px!important;transform:none!important}
  body.v122-ui .v122-item-card .v80-stack-count{right:-2px!important;bottom:-2px!important;width:20px!important;height:20px!important;font-size:8px!important}
  body.v122-ui .v122-item-card .v39-item-body{display:grid!important;grid-template-rows:auto auto auto 1fr!important;gap:4px!important;min-width:0!important}
  body.v122-ui .v122-item-card .v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:3px!important;align-items:start!important}
  body.v122-ui .v122-item-card .v39-item-head h3{margin:0!important;font:600 12px/1.05 system-ui,sans-serif!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;min-height:25px!important}
  body.v122-ui .v122-item-card .item-weight{position:static!important;font-size:6.5px!important;padding:3px 4px!important;white-space:nowrap!important}
  body.v122-ui .v122-item-quick{display:flex!important;align-items:center!important;gap:4px!important;min-height:25px!important;overflow:hidden!important}
  body.v122-ui .v122-item-value{display:inline-flex!important;align-items:center!important;gap:4px!important;min-width:0!important;height:24px!important;padding:3px 6px!important;border:1px solid rgba(178,127,43,.26)!important;border-radius:9px!important;background:rgba(0,0,0,.18)!important;color:#d8d1c5!important;font-size:8px!important}
  body.v122-ui .v122-item-value :where(svg,img){width:14px!important;height:14px!important;flex:0 0 14px!important}
  body.v122-ui .v122-item-value b{font-size:9px!important;white-space:nowrap!important}
  body.v122-ui .v122-item-value.heal{color:#ff8b93!important}
  body.v122-ui .v122-item-value.mana{color:#65d9ef!important}
  body.v122-ui .v122-durability{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;align-items:center!important;min-height:9px!important;margin:0!important}
  body.v122-ui .v122-durability>div{height:5px!important}
  body.v122-ui .v122-durability>b{font-size:6px!important}
  body.v122-ui .v122-item-card .item-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;align-self:end!important;margin-top:2px!important}
  body.v122-ui .v122-item-card .item-actions:has(>button:only-child){grid-template-columns:1fr!important}
  body.v122-ui .v122-item-card .item-actions button{width:100%!important;min-width:0!important;min-height:31px!important;height:31px!important;padding:0 4px!important;border-radius:9px!important;font-size:7.5px!important;line-height:1!important;white-space:nowrap!important}
  body.v122-ui .v122-item-card.type-material{min-height:104px!important}
  body.v122-ui .v122-item-card.type-material .v39-item-icon-wrap,
  body.v122-ui .v122-item-card.type-material .item-emblem{height:52px!important}
  body.v122-ui .v122-item-card.type-material .v39-item-body{grid-template-rows:auto auto 1fr!important}

  /* Square, identical equipment slots. */
  body.v122-ui .v119-equipment-panel .v39-slot-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  body.v122-ui .v119-equipment-panel .v39-equip-slot{aspect-ratio:1/1!important;width:100%!important;height:auto!important;min-height:0!important;padding:6px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:15px 1fr 24px!important;grid-template-areas:"label" "icon" "item"!important;gap:3px!important;place-items:center!important;overflow:hidden!important;border-radius:13px!important}
  body.v122-ui .v119-equipment-panel .v39-slot-name{grid-area:label!important;width:100%!important;font-size:6.5px!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v122-ui .v119-equipment-panel .v39-slot-icon{grid-area:icon!important;width:48px!important;height:48px!important;min-width:48px!important;border-radius:10px!important}
  body.v122-ui .v119-equipment-panel .v39-slot-icon :where(img,svg,.item-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;padding:3px!important;transform:none!important}
  body.v122-ui .v119-equipment-panel .v39-slot-item{grid-area:item!important;width:100%!important;font:600 8px/1.05 system-ui,sans-serif!important;text-align:center!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v122-ui .v119-equipment-panel .v77-slot-rarity,
  body.v122-ui .v119-equipment-panel .v77-slot-effects{display:none!important}

  /* Item detail follows the requested weapon/armor/material examples. */
  body.v122-ui .modal.v122-item-modal{padding:10px!important;max-height:90dvh!important}
  body.v122-ui .modal.v122-item-modal>h1{font-size:28px!important;margin:0 48px 10px 0!important;line-height:1!important}
  body.v122-ui .v122-item-detail-card{gap:9px!important}
  body.v122-ui .v122-item-detail-head{grid-template-columns:112px minmax(0,1fr)!important;gap:11px!important;padding:9px!important;border-radius:16px!important}
  body.v122-ui .v122-item-detail-head .v97-item-detail-icon{width:112px!important;height:132px!important;border-radius:14px!important}
  body.v122-ui .v122-item-detail-head .v97-item-detail-copy small{padding:4px 7px!important;font-size:7px!important}
  body.v122-ui .v122-item-detail-head .v97-item-detail-copy h2{font-size:24px!important;margin:8px 0 6px!important;line-height:1.05!important}
  body.v122-ui .v122-item-detail-head .v97-item-detail-copy p{font-size:10px!important;line-height:1.36!important;display:-webkit-box!important;-webkit-line-clamp:5!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v122-ui .v122-item-facts{gap:6px!important;padding:7px!important;border-radius:14px!important}
  body.v122-ui .v122-item-facts>div{min-height:58px!important;padding:7px!important;border-radius:11px!important}
  body.v122-ui .v122-item-facts small{font-size:7.5px!important}
  body.v122-ui .v122-item-facts b{font-size:11px!important}
  body.v122-ui .v122-item-detail-card .v97-item-requirements{padding:8px!important;margin:0!important;border-radius:13px!important}
  body.v122-ui .v122-item-detail-card .v97-item-requirements h3{font-size:14px!important;margin-bottom:6px!important}
  body.v122-ui .v122-item-detail-card .v97-item-detail-actions button{min-height:44px!important;height:44px!important;font-size:11px!important}
  body.v122-ui .v122-material-note{grid-template-columns:30px minmax(0,1fr)!important;padding:8px!important}
  body.v122-ui .v122-material-note :where(svg,img){width:25px!important;height:25px!important}
  body.v122-ui .v122-material-note p{font-size:8.5px!important}

  /* Monster sheet on a phone: compact enough to avoid a very long modal. */
  body.v122-ui .modal.has-v122-monster-modal,
  body.v122-ui .modal.v122-monster-modal{width:calc(100vw - 18px)!important;max-height:88dvh!important;padding:10px!important;overflow-y:auto!important}
  body.v122-ui .modal.v122-monster-modal>h1{font-size:26px!important;line-height:1!important;margin:0 46px 9px 0!important}
  body.v122-ui .v122-monster-sheet{gap:8px!important}
  body.v122-ui .v122-monster-intro{grid-template-columns:104px minmax(0,1fr)!important;gap:9px!important}
  body.v122-ui .v122-monster-portrait{height:120px!important;border-radius:14px!important}
  body.v122-ui .v122-monster-title h2{font-size:22px!important}
  body.v122-ui .v122-monster-title>div{gap:3px!important}
  body.v122-ui .v122-monster-title .v65-monster-tag{font-size:6px!important;padding:3px 5px!important}
  body.v122-ui .v122-monster-copy>p{margin-top:6px!important;font-size:9px!important;line-height:1.34!important;display:-webkit-box!important;-webkit-line-clamp:5!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.v122-ui .v122-monster-section{padding:8px!important;border-radius:13px!important}
  body.v122-ui .v122-monster-section h3{font-size:14px!important;margin-bottom:6px!important}
  body.v122-ui .v122-monster-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  body.v122-ui .v122-monster-material{grid-template-columns:35px minmax(0,1fr)!important;min-height:46px!important;padding:4px!important;gap:5px!important}
  body.v122-ui .v122-monster-material>span{width:34px!important;height:34px!important}
  body.v122-ui .v122-monster-loot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  body.v122-ui .v122-monster-loot{grid-template-columns:34px minmax(0,1fr)!important;min-height:45px!important;padding:4px!important}
  body.v122-ui .v122-monster-loot>span{width:33px!important;height:33px!important}
  body.v122-ui .v122-monster-material b,body.v122-ui .v122-monster-loot b{font-size:8px!important}
  body.v122-ui .v122-monster-material small,body.v122-ui .v122-monster-loot small{font-size:6px!important}
  body.v122-ui .v122-monster-sheet .v79-learn-more{min-height:40px!important;height:40px!important;font-size:10px!important}

  /* Compact chat profile on a phone. */
  body.v122-ui .v122-player-card{grid-template-columns:100px minmax(0,1fr)!important;gap:9px!important;padding:9px!important}
  body.v122-ui .v122-player-art{height:190px!important}
  body.v122-ui .v122-player-head{display:grid!important;gap:5px!important}
  body.v122-ui .v122-player-head h2{font-size:24px!important}
  body.v122-ui .v122-player-head p{font-size:9px!important}
  body.v122-ui .v122-player-head .v92-player-status{position:static!important;justify-self:start!important}
  body.v122-ui .v122-player-character{grid-template-columns:1fr!important;gap:6px!important}
  body.v122-ui .v122-player-actions{grid-template-columns:minmax(0,1fr) 40px!important}
  body.v122-ui .v122-player-actions .v95-device-button{grid-column:1/-1!important}

  /* Character selection is compact and remains scrollable above buttons. */
  body.v122-ui .v117-character-modal{max-height:86dvh!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;overflow:hidden!important}
  body.v122-ui .v117-char-list{max-height:none!important;min-height:0!important;overflow-y:auto!important;padding-right:4px!important}
  body.v122-ui .v117-char-row{min-height:92px!important;padding:7px!important;gap:7px!important}
  body.v122-ui .v117-char-art{width:58px!important;height:68px!important}
  body.v122-ui .v117-char-actions button{min-height:36px!important;height:36px!important}

  /* Compact result modal on small devices. */
  body.v122-ui .modal.v98-result-modal{height:72dvh!important;max-height:76dvh!important}
}

@media (max-width:390px){
  body.v122-ui:not(.v111-battle-active) .v119-topbar{grid-template-columns:39px 88px 40px minmax(66px,1fr) 36px!important;gap:3px!important}
  body.v122-ui .v119-top-currency img{width:29px!important;min-width:29px!important;height:29px!important}
  body.v122-ui .v119-top-currency b{font-size:11px!important}
  body.v122-ui .v121-top-avatar-button .v119-top-avatar{width:39px!important;min-width:39px!important;height:39px!important}
  body.v122-ui .v121-top-player-copy .v119-top-copy b{font-size:14px!important}
  body.v122-ui .v119-location-player{grid-template-columns:38px minmax(0,1fr) 27px!important;padding:5px!important;gap:4px!important}
  body.v122-ui .v119-location-player-art{width:38px!important;height:49px!important}
  body.v122-ui .v122-player-action{width:27px!important;min-width:27px!important;max-width:27px!important;height:27px!important;min-height:27px!important;padding:5px!important}
  body.v122-ui .v122-inventory-tools{grid-template-columns:minmax(0,1fr) 42px 110px!important}
  body.v122-ui .v119-item-card.v122-item-card{grid-template-columns:46px minmax(0,1fr)!important;padding:6px!important;gap:5px!important}
  body.v122-ui .v122-item-card .v39-item-icon-wrap,body.v122-ui .v122-item-card .item-emblem{width:46px!important;min-width:46px!important}
  body.v122-ui .v122-item-card .v39-item-head h3{font-size:10.5px!important}
  body.v122-ui .v122-item-card .item-actions button{font-size:6.7px!important}
}

/* ---- css/v123-mobile-polish.css ---- */
/* Aldos RPG v123 — mobile polish pass.
   Final override for compact inventory cards, stable battle layout, character selectors,
   skills, player profile, side panel and the rebuilt 150-character chat. */

:root{
  --v123-gold:#dba54d;
  --v123-lime:#a9ef22;
  --v123-panel:#07191c;
  --v123-panel-2:#0b2024;
  --v123-line:rgba(205,148,61,.34);
  --v123-admin-chat-background:none;
  --v123-moderator-chat-background:none;
  --v123-player-profile-background:none;
}

/* ---------- Shared single-action behaviour ---------- */
body.v123-ui :where(.v97-item-detail-actions,.v123-player-actions,.v117-char-actions,.v117-drawer-character-actions) > button:only-child{
  grid-column:1/-1!important;
  width:100%!important;
}

/* ---------- Top bar: character beside menu, currency at the right ---------- */
@media (max-width:760px){
  body.v123-ui:not(.v111-battle-active) .v119-topbar{
    display:grid!important;
    grid-template-columns:42px 44px minmax(78px,1fr) 92px 38px!important;
    grid-template-areas:"menu avatar player currency level"!important;
    gap:5px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
  body.v123-ui .v119-topbar .hamburger{grid-area:menu!important}
  body.v123-ui .v121-top-avatar-button{grid-area:avatar!important;width:44px!important;min-width:44px!important}
  body.v123-ui .v121-top-avatar-button .v119-top-avatar{
    width:42px!important;min-width:42px!important;height:42px!important;
    border-radius:50%!important;overflow:hidden!important;
  }
  body.v123-ui .v121-top-avatar-button .v119-top-avatar :where(img,.class-inline-image){
    width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:1px!important;transform:none!important;
  }
  body.v123-ui .v121-top-player-copy{grid-area:player!important;min-width:0!important;padding:0 2px!important;text-align:left!important}
  body.v123-ui .v121-top-player-copy .v119-top-copy{align-items:flex-start!important;gap:2px!important}
  body.v123-ui .v121-top-player-copy .v119-top-copy b{font-size:15px!important;max-width:100%!important}
  body.v123-ui .v121-top-player-copy .v119-top-copy small{font-size:8.5px!important;max-width:100%!important}
  body.v123-ui .v119-top-currency{
    grid-area:currency!important;width:92px!important;max-width:92px!important;height:40px!important;
    justify-self:end!important;padding:3px 6px 3px 3px!important;gap:4px!important;border-radius:13px!important;
  }
  body.v123-ui .v119-top-currency img{width:28px!important;min-width:28px!important;height:28px!important}
  body.v123-ui .v119-top-currency b{font-size:11.5px!important;max-width:52px!important}
  body.v123-ui .v119-top-currency small{font-size:6.8px!important}
  body.v123-ui .v121-level-button{grid-area:level!important;width:38px!important;min-width:38px!important}
  body.v123-ui .v121-level-button .v119-level-shield{width:38px!important;min-width:38px!important;font-size:17px!important}
}
@media (max-width:390px){
  body.v123-ui:not(.v111-battle-active) .v119-topbar{
    grid-template-columns:39px 40px minmax(66px,1fr) 82px 34px!important;
    gap:3px!important;
  }
  body.v123-ui .v121-top-avatar-button{width:40px!important;min-width:40px!important}
  body.v123-ui .v121-top-avatar-button .v119-top-avatar{width:38px!important;min-width:38px!important;height:38px!important}
  body.v123-ui .v121-top-player-copy .v119-top-copy b{font-size:13.5px!important}
  body.v123-ui .v119-top-currency{width:82px!important;max-width:82px!important}
  body.v123-ui .v119-top-currency img{width:25px!important;min-width:25px!important;height:25px!important}
  body.v123-ui .v119-top-currency b{font-size:10.5px!important}
  body.v123-ui .v121-level-button,.v123-ui .v121-level-button .v119-level-shield{width:34px!important;min-width:34px!important}
}

/* ---------- Inventory search only ---------- */
@media (max-width:760px){
  body.v123-ui .v123-inventory-search{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;
    width:100%!important;padding:7px!important;border:1px solid var(--v123-line)!important;
    border-radius:15px!important;background:rgba(4,17,20,.94)!important;
  }
  body.v123-ui .v123-inventory-search label{
    min-width:0!important;height:38px!important;display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;
    align-items:center!important;gap:6px!important;padding:0 9px!important;border:1px solid rgba(196,139,51,.24)!important;
    border-radius:11px!important;background:rgba(0,0,0,.2)!important;
  }
  body.v123-ui .v123-inventory-search label :where(svg,img){width:18px!important;height:18px!important}
  body.v123-ui .v123-inventory-search input{
    min-width:0!important;width:100%!important;height:34px!important;min-height:34px!important;padding:0!important;
    border:0!important;background:transparent!important;font-size:10px!important;
  }
  body.v123-ui .v123-inventory-search>span{
    min-width:52px!important;height:38px!important;display:grid!important;place-items:center!important;
    padding:0 7px!important;border-radius:11px!important;background:rgba(0,0,0,.2)!important;
    color:#9edc28!important;font-size:8px!important;white-space:nowrap!important;
  }
}

/* ---------- Compact two-column inventory cards ---------- */
@media (max-width:760px){
  body.v123-ui .v119-inventory-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;align-items:start!important;
  }
  body.v123-ui .v119-item-card.v122-item-card{
    width:100%!important;min-height:116px!important;height:auto!important;
    grid-template-columns:42px minmax(0,1fr)!important;gap:5px!important;
    padding:6px!important;border-radius:13px!important;overflow:hidden!important;
  }
  body.v123-ui .v122-item-card .v39-item-icon-wrap{
    width:42px!important;min-width:42px!important;height:54px!important;
  }
  body.v123-ui .v122-item-card .item-emblem{
    width:42px!important;height:54px!important;border-radius:10px!important;
  }
  body.v123-ui .v122-item-card .item-emblem :where(img,svg,.item-asset-image){
    width:100%!important;height:100%!important;object-fit:contain!important;padding:3px!important;transform:none!important;
  }
  body.v123-ui .v122-item-card .v80-stack-count{
    right:-2px!important;bottom:-2px!important;min-width:18px!important;width:auto!important;height:18px!important;
    padding:0 4px!important;font-size:7px!important;border-radius:9px!important;
  }
  body.v123-ui .v122-item-card .v39-item-body{
    min-width:0!important;display:grid!important;grid-template-rows:auto auto auto 1fr!important;gap:3px!important;
  }
  body.v123-ui .v122-item-card .v39-item-head{
    min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:3px!important;align-items:start!important;
  }
  body.v123-ui .v122-item-card .v39-item-head h3{
    min-height:21px!important;margin:0!important;font:650 10px/1.08 system-ui,sans-serif!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
  }
  body.v123-ui .v122-item-card .item-weight{
    position:static!important;max-width:43px!important;padding:2px 4px!important;font-size:6px!important;line-height:1!important;white-space:nowrap!important;
  }
  body.v123-ui .v122-item-quick{min-height:20px!important;gap:3px!important}
  body.v123-ui .v122-item-value{
    height:20px!important;min-height:20px!important;padding:2px 5px!important;gap:3px!important;border-radius:8px!important;font-size:7px!important;
  }
  body.v123-ui .v122-item-value :where(svg,img){width:12px!important;height:12px!important;flex-basis:12px!important}
  body.v123-ui .v122-item-value b{font-size:8px!important}
  body.v123-ui .v122-durability{min-height:7px!important;gap:3px!important}
  body.v123-ui .v122-durability>div{height:4px!important}
  body.v123-ui .v122-durability>b{font-size:5.8px!important}
  body.v123-ui .v122-item-card .item-actions{
    grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;margin-top:1px!important;align-self:end!important;
  }
  body.v123-ui .v122-item-card .item-actions>button:only-child{grid-column:1/-1!important;width:100%!important}
  body.v123-ui .v122-item-card .item-actions button{
    width:100%!important;min-width:0!important;height:28px!important;min-height:28px!important;
    padding:0 3px!important;border-radius:8px!important;font-size:7.1px!important;letter-spacing:-.015em!important;white-space:nowrap!important;
  }
  body.v123-ui .v122-item-card.type-material{min-height:92px!important}
  body.v123-ui .v122-item-card.type-material .v39-item-icon-wrap,
  body.v123-ui .v122-item-card.type-material .item-emblem{height:48px!important}
  body.v123-ui .v122-item-card.type-material .v39-item-body{grid-template-rows:auto auto 1fr!important}
}
@media (max-width:370px){
  body.v123-ui .v119-item-card.v122-item-card{grid-template-columns:38px minmax(0,1fr)!important;padding:5px!important;gap:4px!important}
  body.v123-ui .v122-item-card .v39-item-icon-wrap,
  body.v123-ui .v122-item-card .item-emblem{width:38px!important;min-width:38px!important}
  body.v123-ui .v122-item-card .item-actions button{font-size:6.6px!important}
}

/* ---------- Item details: never leave a half-empty action row ---------- */
body.v123-ui .v122-item-detail-card .v97-item-detail-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.v123-ui .v122-item-detail-card .v97-item-detail-actions>button:only-child{
  grid-column:1/-1!important;width:100%!important;max-width:none!important;
}

/* ---------- Battle: timer in its own grid row, negative effect counters always visible ---------- */
@media (max-width:760px){
  body.v123-ui.v111-battle-active .v101-battle{
    grid-template-rows:70px 174px minmax(122px,1fr) 38px!important;
    align-content:stretch!important;
  }
  body.v123-ui.v111-battle-active .v117-turn-timer,
  body.v123-ui.v111-battle-active .v118-turn-timer,
  body.v123-ui.v111-battle-active .battle-timer{
    position:relative!important;inset:auto!important;grid-row:1!important;z-index:3!important;
    margin:0!important;transform:none!important;translate:none!important;
    align-self:stretch!important;box-sizing:border-box!important;
  }
  body.v123-ui.v111-battle-active .v101-combat-board{grid-row:2!important;margin:0!important;transform:none!important}
  body.v123-ui.v111-battle-active .v101-battle-log{grid-row:3!important;margin:0!important;min-height:0!important;height:100%!important}
  body.v123-ui.v111-battle-active .v101-battle-log .battle-log-scroll{
    height:calc(100% - 34px)!important;min-height:0!important;max-height:none!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  }
  body.v123-ui.v111-battle-active .v113-effect-turns{
    display:grid!important;visibility:visible!important;opacity:1!important;
    right:-3px!important;bottom:-3px!important;z-index:20!important;
    min-width:14px!important;height:14px!important;padding:0 3px!important;
    border-radius:8px!important;font-size:7.5px!important;line-height:1!important;
  }
  body.v123-ui.v111-battle-active .v106-effect-asset.negative,
  body.v123-ui.v111-battle-active .v113-effect-asset.negative{overflow:visible!important}
  body.v123-ui.v111-battle-active .v106-effect-asset.negative .v113-effect-turns,
  body.v123-ui.v111-battle-active .v113-effect-asset.negative .v113-effect-turns{
    display:grid!important;background:#2b0a0f!important;border-color:#ff6e75!important;color:#fff!important;
  }
}

/* ---------- Battle result: substantially shorter and internally scrollable ---------- */
body.v123-ui .modal-back.has-v98-result-modal{align-items:center!important;padding:8px!important}
body.v123-ui .modal.v98-result-modal{
  height:min(58dvh,520px)!important;max-height:min(64dvh,560px)!important;min-height:0!important;
  display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;
  padding:9px!important;border-radius:18px!important;overflow:hidden!important;
}
body.v123-ui .v98-result-modal>h1{font-size:22px!important;margin:0 42px 6px 0!important}
body.v123-ui .v98-result-modal .v96-result{
  min-height:0!important;height:100%!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;overflow:hidden!important;
}
body.v123-ui .v98-result-modal .v96-result-scroll{min-height:0!important;overflow-y:auto!important;padding:0 3px 6px 0!important}
body.v123-ui .v98-result-modal .v78-result header{min-height:58px!important;padding:7px!important;gap:7px!important}
body.v123-ui .v98-result-modal .v78-result-icon{width:44px!important;height:44px!important}
body.v123-ui .v98-result-modal .v78-result header h2{font-size:21px!important}
body.v123-ui .v98-result-modal .v78-result header small{font-size:7px!important}
body.v123-ui .v98-result-modal .v78-result header p{font-size:9px!important}
body.v123-ui .v98-result-modal .v78-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:5px 0!important}
body.v123-ui .v98-result-modal .v78-result-summary>span{min-height:44px!important;padding:6px!important}
body.v123-ui .v98-result-modal .v78-result-summary small{font-size:7px!important}
body.v123-ui .v98-result-modal .v78-result-summary b{font-size:10px!important}
body.v123-ui .v98-result-modal .reward-line{min-height:44px!important;padding:7px!important}
body.v123-ui .v98-result-modal .v78-result-block{padding:7px!important;margin-top:5px!important}
body.v123-ui .v98-result-modal .v78-result-block h3{font-size:17px!important;margin-bottom:5px!important}
body.v123-ui .v98-result-modal .v78-result-block>.muted{display:none!important}
body.v123-ui .v98-result-modal .v118-result-loot-item{min-height:47px!important;padding:5px 7px!important}
body.v123-ui .v98-result-modal .v118-result-loot-icon{width:36px!important;height:36px!important}
body.v123-ui .v98-result-modal .v118-result-loot-copy b{font-size:9px!important}
body.v123-ui .v98-result-modal .v118-result-loot-copy small{font-size:7px!important}
body.v123-ui .v98-result-modal .v78-defeat-note{font-size:9px!important;line-height:1.35!important;padding:8px!important;margin:5px 0!important}
body.v123-ui .v98-result-modal .v78-durability-loss span{min-height:36px!important;padding:6px!important}
body.v123-ui .v98-result-modal .v96-result-footer{padding-top:6px!important;background:linear-gradient(180deg,rgba(5,18,21,0),rgba(5,18,21,.98) 22%)!important}
body.v123-ui .v98-result-modal .v78-result-close{height:42px!important;min-height:42px!important;font-size:10px!important}

/* ---------- Side panel compact redesign ---------- */
@media (max-width:760px){
  body.v123-ui .v119-side{
    width:min(88vw,330px)!important;max-width:330px!important;
    padding:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom))!important;
    gap:7px!important;background:linear-gradient(180deg,#07191d,#041115)!important;
  }
  body.v123-ui .v119-side-head{
    min-height:72px!important;height:72px!important;grid-template-columns:56px minmax(0,1fr) 32px!important;
    gap:8px!important;padding:7px!important;border-radius:14px!important;
  }
  body.v123-ui .v119-side-portrait{width:54px!important;height:58px!important;border-radius:11px!important}
  body.v123-ui .v119-side-copy{gap:3px!important}
  body.v123-ui .v119-side-copy b{font-size:20px!important}
  body.v123-ui .v119-side-copy small{font-size:8px!important}
  body.v123-ui .v119-side-head>button{width:30px!important;height:30px!important;padding:6px!important}
  body.v123-ui .v119-side .v76-side-profile{padding:7px!important;border-radius:13px!important}
  body.v123-ui .v119-side .v39-quick-bars{gap:4px!important}
  body.v123-ui .v119-side .v39-quick-bars article{padding:5px 7px!important;border-radius:9px!important}
  body.v123-ui .v119-side .v39-quick-bars article>div:first-child{font-size:7.5px!important}
  body.v123-ui .v119-side .v39-quick-bars .bar{height:5px!important;margin-top:3px!important}
  body.v123-ui .v119-side .v39-quick-grid{gap:4px!important;margin-top:5px!important}
  body.v123-ui .v119-side .v39-quick-grid span{min-height:40px!important;border-radius:9px!important}
  body.v123-ui .v119-side .v39-quick-grid b{font-size:11px!important}
  body.v123-ui .v119-side .v39-quick-grid small{font-size:6px!important}
  body.v123-ui .v119-side-nav{gap:5px!important;padding:1px 2px 1px 1px!important}
  body.v123-ui .v119-side-nav button{
    min-height:45px!important;height:45px!important;grid-template-columns:34px minmax(0,1fr) 14px!important;
    gap:7px!important;padding:5px 8px!important;border-radius:11px!important;
  }
  body.v123-ui .v119-side-nav .v83-side-icon{width:32px!important;height:32px!important;padding:4px!important;border-radius:9px!important}
  body.v123-ui .v119-side-nav button>span{font-size:12px!important}
  body.v123-ui .v119-side-arrow{font-size:18px!important}
}

/* ---------- Player card opened from chat ---------- */



body.v123-ui .v123-player-art{
  position:relative!important;width:118px!important;height:188px!important;border-radius:15px!important;
  display:grid!important;place-items:end center!important;overflow:hidden!important;
  border:1px solid rgba(194,139,49,.48)!important;background:rgba(1,10,13,.62)!important;
}
body.v123-ui .v123-player-art :where(img,.class-asset-image){
  width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;
  padding:0!important;transform:scale(1.08)!important;transform-origin:center bottom!important;
}
body.v123-ui .v123-player-level{
  position:absolute!important;left:7px!important;bottom:7px!important;z-index:2!important;
  padding:4px 7px!important;border:1px solid rgba(235,188,86,.55)!important;border-radius:9px!important;
  background:rgba(2,9,12,.88)!important;color:#fff!important;font-size:8px!important;
}
body.v123-ui .v123-player-main{min-width:0!important;display:grid!important;align-content:start!important;gap:8px!important}
body.v123-ui .v123-player-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:start!important}
body.v123-ui .v123-player-head small{font-size:7px!important;color:#8f9994!important;letter-spacing:.06em!important}
body.v123-ui .v123-player-head h2{margin:3px 0!important;font:600 25px/1 Georgia,"Times New Roman",serif!important;overflow-wrap:anywhere!important}
body.v123-ui .v123-player-head p{margin:0!important;font-size:9px!important;color:#aeb3af!important}
body.v123-ui .v123-player-status{padding:5px 7px!important;border-radius:9px!important;font-size:7px!important;white-space:nowrap!important;background:rgba(45,70,68,.42)!important}
body.v123-ui .v123-player-status.online{color:#70e0b2!important;background:rgba(22,91,66,.34)!important}
body.v123-ui .v123-player-badges{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
body.v123-ui .v123-player-badges>div{min-height:25px!important;padding:4px 7px!important;border-radius:8px!important;font-size:8px!important}
body.v123-ui .v123-player-info{display:grid!important;grid-template-columns:1fr!important;gap:5px!important}
body.v123-ui .v123-player-info>span{min-height:44px!important;padding:7px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:10px!important;background:rgba(255,255,255,.025)!important}
body.v123-ui .v123-player-info small{display:block!important;font-size:6.5px!important;color:#87928c!important}
body.v123-ui .v123-player-info b{display:block!important;margin-top:2px!important;font-size:9px!important;overflow-wrap:anywhere!important}
body.v123-ui .v123-player-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;gap:6px!important}
body.v123-ui .v123-player-actions button{min-height:38px!important;height:38px!important;font-size:9px!important}
body.v123-ui .v123-player-actions .v123-icon-action{width:38px!important;min-width:38px!important;padding:8px!important}
body.v123-ui .v123-player-actions .v95-device-button{grid-column:1/-1!important}
@media (max-width:390px){
  
  body.v123-ui .v123-player-art{width:102px!important;height:174px!important}
  body.v123-ui .v123-player-head h2{font-size:22px!important}
}

/* ---------- Character choice and character drawer ---------- */
@media (max-width:760px){
  body.v123-ui .v117-character-modal{
    width:calc(100vw - 20px)!important;max-width:520px!important;max-height:84dvh!important;
    display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;overflow:hidden!important;
    padding:10px!important;border-radius:20px!important;
  }
  body.v123-ui .v117-char-list{min-height:0!important;max-height:none!important;overflow-y:auto!important;display:grid!important;gap:7px!important;padding:2px 3px 2px 0!important}
  body.v123-ui .v117-char-row{
    min-height:0!important;height:auto!important;display:grid!important;
    grid-template-columns:62px minmax(0,1fr)!important;grid-template-areas:"art copy" "actions actions"!important;
    gap:7px 9px!important;padding:9px!important;border-radius:14px!important;align-items:center!important;
  }
  body.v123-ui .v117-char-art{grid-area:art!important;position:relative!important;width:62px!important;height:72px!important;border-radius:11px!important;overflow:visible!important}
  body.v123-ui .v117-char-art :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:1px!important;transform:none!important}
  body.v123-ui .v117-char-art small{
    position:absolute!important;left:4px!important;bottom:-4px!important;z-index:2!important;
    padding:3px 6px!important;border-radius:8px!important;background:rgba(4,10,12,.92)!important;
    border:1px solid rgba(222,172,75,.55)!important;font-size:7px!important;white-space:nowrap!important;
  }
  body.v123-ui .v117-char-content{grid-area:copy!important;min-width:0!important;align-self:center!important}
  body.v123-ui .v117-char-content b{font-size:17px!important;line-height:1.05!important}
  body.v123-ui .v117-char-content span{font-size:9px!important;margin-top:4px!important}
  body.v123-ui .v117-char-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(84px,.65fr)!important;gap:6px!important}
  body.v123-ui .v117-char-actions button{height:36px!important;min-height:36px!important;font-size:9px!important;border-radius:10px!important}
  body.v123-ui .v117-char-bottom{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(90px,.65fr)!important;gap:7px!important;padding-top:8px!important}
  body.v123-ui .v117-char-bottom button{height:40px!important;min-height:40px!important;font-size:9px!important}

  body.v123-ui .v76-character-sheet{
    width:min(92vw,360px)!important;max-width:360px!important;max-height:88dvh!important;
    padding:10px!important;gap:8px!important;border-radius:20px!important;
  }
  body.v123-ui .v117-drawer-character-list{min-height:0!important;overflow-y:auto!important;display:grid!important;gap:7px!important;padding-right:3px!important}
  body.v123-ui .v117-drawer-character-row{
    min-height:0!important;height:auto!important;display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;grid-template-areas:"art copy" "actions actions"!important;
    gap:7px 8px!important;padding:8px!important;border-radius:13px!important;
  }
  body.v123-ui .v117-drawer-character-row .v76-character-art{grid-area:art!important;width:58px!important;height:68px!important;position:relative!important;overflow:visible!important}
  body.v123-ui .v117-drawer-character-row .v76-character-art small{
    position:absolute!important;left:3px!important;bottom:-3px!important;padding:3px 6px!important;border-radius:8px!important;
    background:#071013!important;border:1px solid rgba(222,172,75,.55)!important;font-size:7px!important;white-space:nowrap!important;
  }
  body.v123-ui .v117-drawer-character-row .v76-character-copy{grid-area:copy!important;min-width:0!important;align-self:center!important}
  body.v123-ui .v117-drawer-character-row .v76-character-copy b{font-size:16px!important}
  body.v123-ui .v117-drawer-character-row .v76-character-copy span{font-size:9px!important}
  body.v123-ui .v117-drawer-character-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(82px,.65fr)!important;gap:6px!important}
  body.v123-ui .v117-drawer-character-actions button{height:36px!important;min-height:36px!important;font-size:9px!important}
  body.v123-ui .v76-character-sheet>footer{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  body.v123-ui .v76-character-sheet>footer button{height:39px!important;min-height:39px!important;font-size:9px!important}
}

/* ---------- Skills screen and ability card ---------- */
@media (max-width:760px){
  body.v123-ui .abilities-tabs-panel{display:grid!important;gap:8px!important;overflow:visible!important}
  body.v123-ui .ability-tabs{
    position:static!important;top:auto!important;z-index:auto!important;
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;padding:5px!important;border-radius:14px!important;
  }
  body.v123-ui .ability-tabs button{
    min-width:0!important;height:43px!important;min-height:43px!important;padding:5px 3px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
    border-radius:10px!important;font-size:7.8px!important;line-height:1.1!important;white-space:normal!important;text-align:center!important;
  }
  body.v123-ui .ability-tabs span{min-width:19px!important;height:19px!important;margin:0!important;font-size:7px!important}
  body.v123-ui .ability-tab-page>.panel{margin:0!important;padding:7px!important;border-radius:15px!important;overflow:visible!important}
  body.v123-ui .ability-tab-page>.panel>h2{font-size:17px!important;margin:0 0 3px!important}
  body.v123-ui .ability-tab-page>.panel>.muted{font-size:8px!important;margin:0 0 6px!important}
  body.v123-ui .v119-ability-card{
    min-height:0!important;height:auto!important;display:grid!important;
    grid-template-columns:54px minmax(0,1fr)!important;grid-template-areas:"icon main" "actions actions"!important;
    gap:7px 9px!important;padding:8px!important;margin:6px 0!important;border-radius:13px!important;align-items:center!important;overflow:hidden!important;
  }
  body.v123-ui .v119-ability-card .ability-icon{grid-area:icon!important;width:54px!important;height:54px!important;border-radius:12px!important}
  body.v123-ui .v119-ability-card .ability-icon :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important;padding:3px!important}
  body.v123-ui .v119-ability-card .skill-main{grid-area:main!important;min-width:0!important;display:grid!important;gap:3px!important}
  body.v123-ui .v119-ability-card .skill-main h3{margin:0!important;font-size:15px!important;line-height:1.05!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.v123-ui .v119-ability-card .skill-main small{font-size:8px!important}
  body.v123-ui .v119-ability-card .skill-main>span{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
  body.v123-ui .v119-ability-card .skill-main i{font-size:7px!important;padding:3px 5px!important;border-radius:7px!important}
  body.v123-ui .v119-ability-card .row-actions{grid-area:actions!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;margin:0!important}
  body.v123-ui .v119-ability-card .row-actions button{width:100%!important;height:35px!important;min-height:35px!important;font-size:9px!important;border-radius:10px!important}

  body.v123-ui .v123-ability-detail{display:grid!important;gap:8px!important}
  body.v123-ui .v123-ability-hero{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
  body.v123-ui .v123-ability-hero .v115-ability-detail-icon{width:74px!important;height:74px!important;margin:0!important}
  body.v123-ui .v123-ability-copy h2{font-size:23px!important;margin:0 0 4px!important}
  body.v123-ui .v123-ability-copy p{font-size:9px!important;line-height:1.35!important;margin:0!important}
  body.v123-ui .v123-ability-detail .v44-ability-feature{padding:8px!important;border-radius:12px!important}
  body.v123-ui .v123-ability-detail .v44-ability-feature b{font-size:11px!important;line-height:1.3!important}
  body.v123-ui .v123-ability-detail .v42-ability-lines{gap:5px!important}
  body.v123-ui .v123-ability-detail .v42-ability-lines>div{min-height:40px!important;padding:7px!important}
  body.v123-ui .v123-ability-detail>button{height:42px!important;min-height:42px!important}
}

/* ---------- Rebuilt global chat ---------- */










body.v123-ui .v123-chat-role{padding:2px 5px!important;border-radius:7px!important;background:rgba(255,255,255,.06)!important;font-size:5.8px!important;text-transform:uppercase!important;letter-spacing:.05em!important;color:#c8b98e!important}


body.v123-ui .v123-chat-delete{
  position:static!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;
  padding:5px!important;border-radius:8px!important;background:rgba(92,28,34,.62)!important;border:1px solid rgba(210,80,91,.35)!important;
}
body.v123-ui .v123-chat-delete :where(img,svg){width:13px!important;height:13px!important}




body.v123-ui .v123-chat-form{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"input send" "count send"!important;
  gap:4px 6px!important;padding:6px!important;border-radius:12px!important;background:rgba(4,16,19,.98)!important;
}
body.v123-ui .v123-chat-form input{grid-area:input!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:0 9px!important;font-size:9px!important;border-radius:9px!important}
body.v123-ui .v123-chat-form button{grid-area:send!important;height:100%!important;min-height:44px!important;min-width:76px!important;padding:0 10px!important;font-size:8px!important;border-radius:9px!important}
body.v123-ui .v123-chat-count{grid-area:count!important;justify-self:end!important;padding-right:4px!important;font-size:6.5px!important;color:#78847e!important}
@media (max-width:760px){
  body.v123-ui .v78-location-chat{width:min(91vw,350px)!important;max-width:350px!important;padding:calc(7px + env(safe-area-inset-top)) 7px calc(7px + env(safe-area-inset-bottom))!important;gap:6px!important}
  
  
  
  
  
  
}

/* ---- css/v124-mobile-rebuild.css ---- */
/* Aldos RPG v124 — targeted mobile rebuild.
   Final layer: bottom navigation/insets, inventory and item cards, battle flow,
   character screens, equipment, slot picker, player profile and global chat. */

:root{
  --v124-safe-top:env(safe-area-inset-top,0px);
  --v124-safe-bottom:env(safe-area-inset-bottom,0px);
  --v124-top-h:58px;
  --v124-nav-h:62px;
  --v124-gold:#e2ae50;
  --v124-line:rgba(213,157,67,.43);
  --v124-panel:#07191d;
  --v124-panel-2:#0a2024;
}
body.v124-ui.aldos-apk{
  /* Android already applies the navigation-bar inset to the native WebView root. */
  --v124-safe-top:0px;
  --v124-safe-bottom:0px;
}
body.v124-ui *{box-sizing:border-box}





/* ---------- Stable viewport and bottom navigation ---------- */
@media (max-width:760px){
  html,body.v124-ui{width:100%;height:100%;min-height:100%;overflow:hidden!important}
  body.v124-ui:not(.v111-battle-active) #app,
  body.v124-ui:not(.v111-battle-active) .app-shell{
    position:relative!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;
    padding:0!important;overflow:hidden!important;
  }
  body.v124-ui:not(.v111-battle-active) main.v119-screen{
    position:relative!important;inset:auto!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;
    margin:0!important;padding:calc(var(--v124-top-h) + var(--v124-safe-top) + 8px) 8px calc(var(--v124-nav-h) + var(--v124-safe-bottom) + 8px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;
    scroll-padding-top:calc(var(--v124-top-h) + 8px);scroll-padding-bottom:calc(var(--v124-nav-h) + 10px);
  }
  body.v124-ui:not(.v111-battle-active) .v119-topbar{
    position:fixed!important;inset:0 0 auto 0!important;z-index:900!important;
    width:100%!important;height:calc(var(--v124-top-h) + var(--v124-safe-top))!important;min-height:calc(var(--v124-top-h) + var(--v124-safe-top))!important;
    padding:calc(7px + var(--v124-safe-top)) 7px 7px!important;border-radius:0!important;
  }
  body.v124-ui:not(.v111-battle-active) nav.v119-bottom-nav{
    position:fixed!important;inset:auto 0 0 0!important;z-index:890!important;
    width:100%!important;max-width:none!important;height:calc(var(--v124-nav-h) + var(--v124-safe-bottom))!important;min-height:calc(var(--v124-nav-h) + var(--v124-safe-bottom))!important;
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start!important;gap:5px!important;
    margin:0!important;padding:5px 7px calc(5px + var(--v124-safe-bottom))!important;
    border-radius:17px 17px 0 0!important;transform:none!important;
  }
  body.v124-ui:not(.v111-battle-active) .v119-bottom-nav button{
    width:100%!important;height:50px!important;min-height:50px!important;margin:0!important;padding:3px 2px!important;
    display:grid!important;grid-template-rows:27px 14px!important;place-items:center!important;border-radius:12px!important;
  }
  body.v124-ui:not(.v111-battle-active) .v119-bottom-nav .nav-glyph{width:26px!important;height:26px!important;margin:0!important}
  body.v124-ui:not(.v111-battle-active) .v119-bottom-nav span{font-size:10px!important;line-height:1!important;margin:0!important}
  body.v124-ui.aldos-apk:not(.v111-battle-active) main.v119-screen{padding-bottom:70px!important}
  body.v124-ui.aldos-apk:not(.v111-battle-active) nav.v119-bottom-nav{height:62px!important;min-height:62px!important;padding-bottom:5px!important}
}

/* ---------- Inventory capacity first and compact cards ---------- */
@media (max-width:760px){
  body.v124-ui .v124-inventory-shell{display:grid!important;gap:7px!important}
  body.v124-ui .v124-inventory-capacity{
    order:-20!important;min-height:48px!important;margin:0!important;padding:7px 9px!important;
    display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;
    border:1px solid var(--v124-line)!important;border-radius:14px!important;
    background:linear-gradient(145deg,rgba(13,39,38,.96),rgba(4,17,20,.98))!important;
  }
  body.v124-ui .v124-inventory-capacity>span{font-size:9px!important;font-weight:750!important;white-space:nowrap!important;color:#e8dec6!important}
  body.v124-ui .v124-inventory-capacity .bar{height:7px!important;min-width:0!important;border-radius:99px!important;overflow:hidden!important}
  body.v124-ui .v124-inventory-capacity>b{font-size:8px!important;white-space:nowrap!important}
  body.v124-ui .v119-inventory-metrics{order:-10!important;margin:0!important;gap:5px!important}
  body.v124-ui .v119-inventory-tabs{margin:0!important}
  body.v124-ui .v123-inventory-search{margin:0!important}
  body.v124-ui .v119-inventory-list{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;align-items:start!important;
  }
  body.v124-ui .v124-item-card{
    position:relative!important;width:100%!important;min-width:0!important;min-height:132px!important;height:auto!important;
    display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-areas:"icon body" "actions actions"!important;
    grid-template-rows:auto auto!important;align-items:start!important;gap:6px 7px!important;
    margin:0!important;padding:7px!important;border-radius:14px!important;overflow:hidden!important;
    background:linear-gradient(145deg,rgba(8,28,31,.97),rgba(3,15,18,.99))!important;
  }
  body.v124-ui .v124-item-card::before{
    content:"";position:absolute;inset:0;pointer-events:none;opacity:.48;
    background:radial-gradient(circle at 18% 22%,var(--v124-rarity-glow,rgba(128,155,126,.18)),transparent 46%);
  }
  body.v124-ui .v124-item-card.rarity-common{--v124-rarity-glow:rgba(156,169,142,.25);border-color:rgba(185,154,92,.34)!important}
  body.v124-ui .v124-item-card.rarity-uncommon{--v124-rarity-glow:rgba(80,190,109,.32);border-color:rgba(86,190,107,.55)!important}
  body.v124-ui .v124-item-card.rarity-rare{--v124-rarity-glow:rgba(62,139,228,.36);border-color:rgba(75,145,225,.62)!important}
  body.v124-ui .v124-item-card.rarity-epic{--v124-rarity-glow:rgba(157,83,235,.38);border-color:rgba(169,91,233,.66)!important}
  body.v124-ui .v124-item-card.rarity-legendary{--v124-rarity-glow:rgba(241,167,47,.43);border-color:rgba(237,169,61,.78)!important}
  body.v124-ui .v124-item-card.rarity-mythic{--v124-rarity-glow:rgba(244,67,112,.46);border-color:rgba(255,84,127,.84)!important;box-shadow:inset 0 0 18px rgba(129,39,105,.2)!important}
  body.v124-ui .v124-item-card .v39-item-aura{display:none!important}
  body.v124-ui .v124-item-card .v39-item-icon-wrap{
    grid-area:icon!important;position:relative!important;width:52px!important;min-width:52px!important;height:64px!important;margin:0!important;
  }
  body.v124-ui .v124-item-card .item-emblem{
    position:relative!important;width:52px!important;height:64px!important;display:grid!important;place-items:center!important;
    border-radius:12px!important;overflow:visible!important;border:1px solid rgba(222,167,77,.42)!important;
    background:linear-gradient(160deg,rgba(16,40,40,.94),rgba(2,13,16,.98))!important;
  }
  body.v124-ui .v124-item-card .item-emblem :where(img,svg,.item-asset-image){
    width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;
    padding:5px!important;margin:0!important;transform:none!important;filter:none!important;
  }
  body.v124-ui .v124-item-card .v124-stack-count{
    position:absolute!important;right:-5px!important;bottom:-5px!important;z-index:8!important;
    width:auto!important;min-width:24px!important;height:20px!important;display:grid!important;place-items:center!important;
    padding:0 5px!important;border-radius:10px!important;border:1px solid #efc768!important;
    background:#081216!important;color:#fff4c8!important;font-size:8px!important;line-height:1!important;font-weight:850!important;white-space:nowrap!important;
  }
  body.v124-ui .v124-item-card .v39-item-body{
    grid-area:body!important;min-width:0!important;display:grid!important;grid-template-rows:auto auto auto!important;align-content:start!important;gap:5px!important;
  }
  body.v124-ui .v124-item-card .v39-item-head{
    min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;align-items:start!important;
  }
  body.v124-ui .v124-item-card .v39-item-head h3{
    min-width:0!important;min-height:24px!important;margin:0!important;font:700 10.5px/1.15 system-ui,sans-serif!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;overflow-wrap:anywhere!important;
  }
  body.v124-ui .v124-item-card .item-weight{
    position:static!important;align-self:start!important;max-width:47px!important;margin:0!important;padding:3px 5px!important;
    border-radius:8px!important;font-size:6.5px!important;line-height:1!important;white-space:nowrap!important;
  }
  body.v124-ui .v124-item-meta{min-width:0!important;display:grid!important;gap:4px!important}
  body.v124-ui .v124-item-rarity{
    width:max-content!important;max-width:100%!important;padding:2px 5px!important;border-radius:7px!important;
    font-size:6.3px!important;line-height:1!important;text-transform:uppercase!important;letter-spacing:.04em!important;
    color:#d9ccb2!important;background:rgba(255,255,255,.045)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.v124-ui .v124-item-card .v122-item-quick{display:flex!important;min-height:21px!important;gap:4px!important;align-items:center!important;overflow:hidden!important}
  body.v124-ui .v124-item-card .v122-item-value{min-width:0!important;height:21px!important;min-height:21px!important;padding:2px 5px!important;gap:3px!important;border-radius:8px!important}
  body.v124-ui .v124-item-card .v122-item-value :where(svg,img){width:12px!important;height:12px!important;min-width:12px!important}
  body.v124-ui .v124-item-card .v122-item-value b{font-size:7.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v124-ui .v124-item-card .v122-durability{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:5px!important;min-height:9px!important;margin:0!important}
  body.v124-ui .v124-item-card .v122-durability>div{height:5px!important;margin:0!important}
  body.v124-ui .v124-item-card .v122-durability>b{font-size:6px!important;white-space:nowrap!important}
  body.v124-ui .v124-item-actions{
    grid-area:actions!important;width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;margin:0!important;padding:0!important;align-self:end!important;
  }
  body.v124-ui .v124-item-actions>button:only-child{grid-column:1/-1!important}
  body.v124-ui .v124-item-actions button{
    width:100%!important;min-width:0!important;height:31px!important;min-height:31px!important;margin:0!important;padding:0 4px!important;
    border-radius:9px!important;font-size:7.5px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.v124-ui .v124-item-card.type-material{min-height:112px!important}
  body.v124-ui .v124-item-card.type-material .v39-item-icon-wrap,
  body.v124-ui .v124-item-card.type-material .item-emblem{height:58px!important}
}
@media (max-width:374px){
  body.v124-ui .v124-item-card{grid-template-columns:47px minmax(0,1fr)!important;padding:6px!important;gap:5px!important}
  body.v124-ui .v124-item-card .v39-item-icon-wrap,
  body.v124-ui .v124-item-card .item-emblem{width:47px!important;min-width:47px!important}
  body.v124-ui .v124-item-actions button{font-size:7px!important}
}

/* ---------- Battle result: narrower and roughly 1.5x shorter ---------- */
body.v124-ui .modal-back.has-v98-result-modal{align-items:center!important;justify-content:center!important;padding:10px!important}
body.v124-ui .modal.v98-result-modal{
  width:min(88vw,440px)!important;max-width:440px!important;height:min(60dvh,530px)!important;max-height:min(60dvh,530px)!important;min-height:0!important;
  display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;padding:10px!important;border-radius:19px!important;overflow:hidden!important;
}
body.v124-ui .v98-result-modal>h1{font-size:20px!important;line-height:1!important;margin:0 42px 7px 0!important}
body.v124-ui .v98-result-modal .v96-result{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;overflow:hidden!important}
body.v124-ui .v98-result-modal .v96-result-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;padding:0 3px 5px 0!important}
body.v124-ui .v98-result-modal .v78-result header{min-height:54px!important;padding:6px!important;gap:7px!important}
body.v124-ui .v98-result-modal .v78-result-icon{width:42px!important;height:42px!important}
body.v124-ui .v98-result-modal .v78-result header h2{font-size:20px!important}
body.v124-ui .v98-result-modal .v78-result-summary{gap:5px!important;margin:5px 0!important}
body.v124-ui .v98-result-modal .v78-result-summary>span{min-height:42px!important;padding:6px!important}
body.v124-ui .v98-result-modal .v78-result-block{margin:5px 0 0!important;padding:7px!important}
body.v124-ui .v98-result-modal .v78-result-block h3{font-size:16px!important;margin:0 0 5px!important}
body.v124-ui .v98-result-modal .v96-result-footer{padding-top:6px!important}
body.v124-ui .v98-result-modal .v78-result-close{height:40px!important;min-height:40px!important;font-size:10px!important}

/* ---------- Side panel: larger touch targets, less wasted height ---------- */
@media (max-width:760px){
  body.v124-ui .v119-side{
    width:min(88vw,350px)!important;max-width:350px!important;height:100dvh!important;max-height:100dvh!important;
    display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;gap:7px!important;
    padding:calc(7px + var(--v124-safe-top)) 8px calc(7px + var(--v124-safe-bottom))!important;
    background:linear-gradient(180deg,#081c20,#041116)!important;overflow:hidden!important;
  }
  body.v124-ui .v119-side-head{height:68px!important;min-height:68px!important;grid-template-columns:54px minmax(0,1fr) 34px!important;gap:8px!important;padding:6px!important;border-radius:14px!important}
  body.v124-ui .v119-side-portrait{width:52px!important;height:56px!important;border-radius:11px!important}
  body.v124-ui .v119-side-copy b{font-size:18px!important;line-height:1!important}
  body.v124-ui .v119-side-copy small{font-size:8px!important}
  body.v124-ui .v119-side-head>button{width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important}
  body.v124-ui .v119-side .v76-side-profile{padding:6px!important;border-radius:13px!important}
  body.v124-ui .v119-side .v39-quick-title{display:none!important}
  body.v124-ui .v119-side .v39-quick-bars{display:grid!important;grid-template-columns:1fr!important;gap:3px!important}
  body.v124-ui .v119-side .v39-quick-bars article{min-height:31px!important;padding:4px 7px!important;border-radius:8px!important}
  body.v124-ui .v119-side .v39-quick-bars article>div:first-child{font-size:7px!important}
  body.v124-ui .v119-side .v39-quick-bars .bar{height:4px!important;margin-top:3px!important}
  body.v124-ui .v119-side .v39-quick-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;margin-top:4px!important}
  body.v124-ui .v119-side .v39-quick-grid span{min-height:34px!important;padding:3px!important;border-radius:8px!important}
  body.v124-ui .v119-side .v39-quick-grid b{font-size:10px!important}
  body.v124-ui .v119-side .v39-quick-grid small{font-size:5.7px!important}
  body.v124-ui .v119-side-nav{min-height:0!important;height:auto!important;display:grid!important;align-content:start!important;gap:5px!important;padding:1px 3px 4px 0!important;overflow-y:auto!important}
  body.v124-ui .v119-side-nav button{
    width:100%!important;height:52px!important;min-height:52px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 18px!important;
    align-items:center!important;gap:8px!important;margin:0!important;padding:5px 9px!important;border-radius:12px!important;
  }
  body.v124-ui .v119-side-nav .v83-side-icon{width:38px!important;height:38px!important;padding:5px!important;border-radius:10px!important}
  body.v124-ui .v119-side-nav button>span{font-size:13px!important;line-height:1!important}
  body.v124-ui .v119-side-arrow{font-size:20px!important}
}

/* ---------- Character creator and selectors ---------- */
@media (max-width:760px){
  body.v124-ui .v70-creator-shell{height:100dvh!important;min-height:100dvh!important;padding:8px!important;overflow:hidden!important}
  body.v124-ui .v70-creator-card{
    width:100%!important;max-width:560px!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;
    display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr) auto auto!important;gap:7px!important;
    padding:10px!important;overflow:hidden!important;border-radius:20px!important;
  }
  body.v124-ui #wizard-stage{min-height:0!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:1px 5px 5px 0!important}
  body.v124-ui .v70-step-stage{min-height:0!important;height:auto!important;padding:0!important}
  body.v124-ui .v70-gender-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;padding:1px!important}
  body.v124-ui .v70-gender-card{
    min-height:205px!important;height:205px!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto auto!important;gap:5px!important;
    padding:9px!important;border-radius:17px!important;overflow:hidden!important;
  }
  body.v124-ui .v70-gender-circle{width:150px!important;height:150px!important;max-width:55vw!important;max-height:55vw!important;margin:auto!important}
  body.v124-ui .v70-gender-card b{font-size:17px!important;line-height:1!important}
  body.v124-ui .v70-gender-card span{font-size:10px!important}
  body.v124-ui .v70-step-actions{position:relative!important;z-index:4!important;margin:0!important}

  body.v124-ui .v117-character-modal{
    width:calc(100vw - 18px)!important;max-width:500px!important;height:min(86dvh,690px)!important;max-height:86dvh!important;
    display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;padding:9px!important;overflow:hidden!important;
  }
  body.v124-ui .v117-char-list{min-height:0!important;height:auto!important;max-height:none!important;display:grid!important;gap:7px!important;overflow-y:auto!important;padding:2px 4px 2px 0!important}
  body.v124-ui .v117-char-row{
    min-height:116px!important;height:auto!important;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-areas:"art copy" "actions actions"!important;
    gap:7px 10px!important;padding:8px!important;align-items:center!important;border-radius:14px!important;
  }
  body.v124-ui .v117-char-art{grid-area:art!important;width:64px!important;height:72px!important;overflow:hidden!important;border-radius:11px!important}
  body.v124-ui .v117-char-art :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:2px!important;transform:none!important}
  body.v124-ui .v117-char-content{grid-area:copy!important;min-width:0!important;display:grid!important;align-content:center!important;gap:4px!important}
  body.v124-ui .v117-char-content b{font-size:18px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v124-ui .v117-char-content span{font-size:10px!important;margin:0!important}
  body.v124-ui .v124-character-level{width:max-content!important;padding:3px 7px!important;border:1px solid rgba(225,171,79,.45)!important;border-radius:8px!important;background:rgba(0,0,0,.25)!important;color:#f1ca77!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important}
  body.v124-ui .v117-char-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(82px,.55fr)!important;gap:6px!important}
  body.v124-ui .v117-char-actions button{height:36px!important;min-height:36px!important;font-size:9px!important;border-radius:10px!important}
  body.v124-ui .v117-char-bottom{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(86px,.65fr)!important;gap:6px!important;padding-top:6px!important}

  body.v124-ui .v76-character-sheet{
    width:min(92vw,380px)!important;max-width:380px!important;height:min(88dvh,720px)!important;max-height:88dvh!important;
    display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:7px!important;padding:9px!important;overflow:hidden!important;
  }
  body.v124-ui .v117-drawer-character-list{min-height:0!important;height:auto!important;display:grid!important;gap:7px!important;overflow-y:auto!important;padding-right:4px!important}
  body.v124-ui .v117-drawer-character-row{
    min-height:112px!important;height:auto!important;display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;grid-template-areas:"art copy" "actions actions"!important;
    gap:7px 9px!important;padding:8px!important;border-radius:13px!important;align-items:center!important;
  }
  body.v124-ui .v117-drawer-character-row .v76-character-art{grid-area:art!important;width:62px!important;height:70px!important;overflow:hidden!important;border-radius:11px!important}
  body.v124-ui .v117-drawer-character-row .v76-character-art :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:2px!important;transform:none!important}
  body.v124-ui .v117-drawer-character-row .v76-character-copy{grid-area:copy!important;min-width:0!important;display:grid!important;gap:4px!important;align-content:center!important}
  body.v124-ui .v117-drawer-character-row .v76-character-copy b{font-size:17px!important;line-height:1!important}
  body.v124-ui .v117-drawer-character-row .v76-character-copy span{font-size:9px!important}
  body.v124-ui .v117-drawer-character-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(80px,.6fr)!important;gap:6px!important}
  body.v124-ui .v117-drawer-character-actions button{height:36px!important;min-height:36px!important;font-size:9px!important}
  body.v124-ui .v76-character-sheet>footer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
  body.v124-ui .v76-character-sheet>footer button{height:39px!important;min-height:39px!important;font-size:8.5px!important}
}

/* ---------- Battle: header owns its row; controls never cover it ---------- */
@media (max-width:760px){
  body.v124-ui.v111-battle-active{
    --v124-battle-head:58px;width:100%!important;height:100dvh!important;min-height:100dvh!important;
    padding:0!important;overflow:hidden!important;
  }
  body.v124-ui.v111-battle-active #app{
    width:100%!important;height:100dvh!important;min-height:100dvh!important;padding:0!important;overflow:hidden!important;
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:var(--v124-battle-head) minmax(0,1fr)!important;
  }
  body.v124-ui.v111-battle-active .v79-battle-header{
    position:relative!important;inset:auto!important;grid-column:1!important;grid-row:1!important;z-index:70!important;
    width:100%!important;height:var(--v124-battle-head)!important;min-height:var(--v124-battle-head)!important;max-height:var(--v124-battle-head)!important;
    margin:0!important;padding:6px 10px!important;transform:none!important;overflow:hidden!important;
  }
  body.v124-ui.v111-battle-active main.v101-battle{
    position:relative!important;inset:auto!important;grid-column:1!important;grid-row:2!important;
    width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:70px 174px minmax(90px,1fr) 42px!important;
    align-content:stretch!important;gap:6px!important;padding:6px 8px max(6px,var(--v124-safe-bottom))!important;overflow:hidden!important;transform:none!important;
  }
  body.v124-ui.v111-battle-active .v117-turn-timer,
  body.v124-ui.v111-battle-active .v118-turn-timer,
  body.v124-ui.v111-battle-active .battle-timer{
    position:relative!important;inset:auto!important;grid-row:1!important;width:100%!important;height:70px!important;min-height:70px!important;max-height:70px!important;
    margin:0!important;z-index:5!important;transform:none!important;translate:none!important;
  }
  body.v124-ui.v111-battle-active .v101-combat-board{position:relative!important;grid-row:2!important;height:174px!important;min-height:174px!important;max-height:174px!important;margin:0!important;z-index:4!important;transform:none!important}
  body.v124-ui.v111-battle-active .v101-battle-log{
    position:relative!important;grid-row:3!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;z-index:3!important;overflow:hidden!important;
  }
  body.v124-ui.v111-battle-active .v101-battle-log .battle-log-scroll{height:calc(100% - 34px)!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;padding-bottom:6px!important}
  body.v124-ui.v111-battle-active #support-drawer-open.v115-support-under-log{
    position:relative!important;inset:auto!important;grid-row:4!important;width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
    display:grid!important;grid-template-columns:38px minmax(0,1fr) 38px!important;align-items:center!important;justify-items:center!important;
    gap:4px!important;margin:0!important;padding:4px 8px!important;border-radius:14px!important;transform:none!important;z-index:6!important;
  }
  body.v124-ui.v111-battle-active #support-drawer-open .v110-support-potion{
    position:static!important;inset:auto!important;width:32px!important;min-width:32px!important;height:32px!important;margin:0!important;padding:4px!important;
    display:grid!important;place-items:center!important;border-radius:9px!important;transform:none!important;overflow:hidden!important;
  }
  body.v124-ui.v111-battle-active #support-drawer-open .v110-support-potion :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;transform:none!important}
  body.v124-ui.v111-battle-active #support-drawer-open .v110-support-label{min-width:0!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}
  body.v124-ui.v111-battle-active #support-drawer-open .v110-support-label b{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v124-ui.v111-battle-active #skills-drawer-open,
  body.v124-ui.v111-battle-active #chat-drawer-open{
    position:fixed!important;top:54%!important;z-index:410!important;height:56px!important;min-height:56px!important;width:54px!important;
    display:grid!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:5px!important;transform:translateY(-50%)!important;
  }
  body.v124-ui.v111-battle-active #skills-drawer-open{left:0!important;right:auto!important;grid-template-columns:12px 34px!important}
  body.v124-ui.v111-battle-active #chat-drawer-open{right:0!important;left:auto!important;grid-template-columns:12px 34px!important}
  body.v124-ui.v111-battle-active #skills-drawer-open .v108-chevron,
  body.v124-ui.v111-battle-active #chat-drawer-open .v108-chevron{grid-column:1!important;font-size:19px!important;line-height:1!important}
  body.v124-ui.v111-battle-active #skills-drawer-open .v111-handle-icon,
  body.v124-ui.v111-battle-active #chat-drawer-open .v111-handle-icon{grid-column:2!important;width:32px!important;height:32px!important;margin:0!important;padding:4px!important;display:grid!important;place-items:center!important}
  body.v124-ui.v111-battle-active .v113-effect-turns{
    display:grid!important;place-items:center!important;visibility:visible!important;opacity:1!important;right:-3px!important;bottom:-3px!important;z-index:20!important;
    min-width:15px!important;width:auto!important;height:15px!important;padding:0 3px!important;border-radius:8px!important;font-size:7.5px!important;line-height:1!important;
  }
  body.v124-ui.v111-battle-active .v106-effect-asset.permanent-effect .v113-effect-turns,
  body.v124-ui.v111-battle-active .v113-effect-asset.permanent-effect .v113-effect-turns{display:none!important}
}

/* ---------- Smaller location title ---------- */
@media (max-width:760px){
  body.v124-ui .v119-location-copy h1{font-size:18px!important;line-height:1.04!important;letter-spacing:-.02em!important}
}

/* ---------- Equipment: square, readable rarity tiles ---------- */
@media (max-width:760px){
  body.v124-ui .v39-equipment-panel{padding:8px!important;border-radius:17px!important}
  body.v124-ui .v39-slot-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  body.v124-ui .v39-equip-slot{
    --v124-slot-glow:rgba(141,156,139,.16);position:relative!important;isolation:isolate!important;
    width:100%!important;min-width:0!important;aspect-ratio:1/1.08!important;min-height:104px!important;height:auto!important;
    display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;align-items:center!important;justify-items:center!important;gap:3px!important;
    padding:6px!important;border-radius:14px!important;overflow:hidden!important;
    background:radial-gradient(circle at 50% 38%,var(--v124-slot-glow),transparent 55%),linear-gradient(155deg,rgba(12,33,35,.98),rgba(3,14,17,.99))!important;
  }
  body.v124-ui .v39-equip-slot.rarity-common{--v124-slot-glow:rgba(170,170,141,.18);border-color:rgba(190,155,92,.38)!important}
  body.v124-ui .v39-equip-slot.rarity-uncommon{--v124-slot-glow:rgba(59,198,101,.32);border-color:rgba(75,188,104,.62)!important}
  body.v124-ui .v39-equip-slot.rarity-rare{--v124-slot-glow:rgba(55,139,230,.36);border-color:rgba(73,145,226,.68)!important}
  body.v124-ui .v39-equip-slot.rarity-epic{--v124-slot-glow:rgba(163,75,237,.39);border-color:rgba(171,88,235,.72)!important}
  body.v124-ui .v39-equip-slot.rarity-legendary{--v124-slot-glow:rgba(246,174,49,.44);border-color:rgba(242,178,63,.82)!important}
  body.v124-ui .v39-equip-slot.rarity-mythic{--v124-slot-glow:rgba(245,55,125,.49);border-color:rgba(255,76,139,.9)!important;box-shadow:inset 0 0 20px rgba(106,33,120,.28)!important}
  body.v124-ui .v39-equip-slot .v39-slot-name{position:static!important;width:100%!important;font-size:6.5px!important;line-height:1!important;text-align:center!important;color:#b8b1a3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v124-ui .v39-equip-slot .v39-slot-icon{
    width:60px!important;max-width:78%!important;height:60px!important;max-height:58%!important;display:grid!important;place-items:center!important;margin:0!important;padding:3px!important;
    border:1px solid rgba(218,162,72,.34)!important;border-radius:12px!important;background:rgba(0,0,0,.2)!important;overflow:hidden!important;
  }
  body.v124-ui .v39-equip-slot .v39-slot-icon :where(img,svg,.item-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:2px!important;margin:0!important;transform:none!important}
  body.v124-ui .v39-equip-slot .v39-slot-item{width:100%!important;min-width:0!important;font-size:7.5px!important;line-height:1.08!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v124-ui .v39-equip-slot .v77-slot-rarity{width:max-content!important;max-width:100%!important;padding:2px 5px!important;font-size:5.7px!important;line-height:1!important;border-radius:7px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.v124-ui .v39-equip-slot .v77-slot-effects{display:none!important}
}

/* ---------- Slot picker and its mini cards ---------- */
body.v124-ui .modal-back.has-v98-picker-modal{padding:10px!important}
body.v124-ui .modal.v98-picker-modal{width:min(92vw,540px)!important;max-height:min(78dvh,680px)!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;padding:10px!important}
body.v124-ui .v98-picker-modal .v93-slot-picker{min-height:0!important;height:auto!important;display:grid!important;gap:9px!important;overflow-y:auto!important;padding:0 3px 3px 0!important}
body.v124-ui .v98-picker-modal .v93-picker-section{padding:8px!important;border-radius:14px!important}
body.v124-ui .v98-picker-modal .v93-picker-section h3{font-size:17px!important;margin:0 0 7px!important}
body.v124-ui .v98-picker-modal .v93-picker-list{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
body.v124-ui .v124-item-card.layout-picker{
  min-height:92px!important;display:grid!important;grid-template-columns:62px minmax(0,1fr) minmax(76px,105px)!important;grid-template-areas:"icon body actions"!important;
  grid-template-rows:1fr!important;align-items:center!important;gap:8px!important;padding:8px!important;
}
body.v124-ui .v124-item-card.layout-picker .v39-item-icon-wrap,
body.v124-ui .v124-item-card.layout-picker .item-emblem{width:62px!important;min-width:62px!important;height:72px!important}
body.v124-ui .v124-item-card.layout-picker .v39-item-head h3{font-size:11px!important;min-height:0!important}
body.v124-ui .v124-item-card.layout-picker .v124-item-actions{grid-area:actions!important;display:grid!important;grid-template-columns:1fr!important;align-self:stretch!important;align-content:center!important}
body.v124-ui .v124-item-card.layout-picker .v124-item-actions button{height:38px!important;min-height:38px!important;font-size:9px!important}
@media (max-width:390px){
  body.v124-ui .v124-item-card.layout-picker{grid-template-columns:56px minmax(0,1fr)!important;grid-template-areas:"icon body" "actions actions"!important;min-height:116px!important}
  body.v124-ui .v124-item-card.layout-picker .v39-item-icon-wrap,
  body.v124-ui .v124-item-card.layout-picker .item-emblem{width:56px!important;min-width:56px!important;height:66px!important}
}

/* ---------- Player card from chat ---------- */
body.v124-ui .modal-back.has-v124-player-modal{align-items:center!important;padding:12px!important}
body.v124-ui .modal.v124-player-modal{width:min(90vw,470px)!important;max-width:470px!important;max-height:min(72dvh,610px)!important;padding:10px!important;overflow:hidden!important}
body.v124-ui .v124-player-card{
  position:relative!important;display:grid!important;grid-template-columns:104px minmax(0,1fr)!important;grid-template-areas:"art main" "actions actions"!important;
  align-items:stretch!important;gap:9px!important;padding:9px!important;border-radius:16px!important;overflow:hidden!important;
}
body.v124-ui .v124-player-art{grid-area:art!important;width:104px!important;height:170px!important;min-height:170px!important;border-radius:13px!important;overflow:hidden!important}
body.v124-ui .v124-player-art :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:3px!important;transform:none!important}
body.v124-ui .v124-player-main{grid-area:main!important;min-width:0!important;display:grid!important;align-content:start!important;gap:7px!important}
body.v124-ui .v124-player-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;align-items:start!important}
body.v124-ui .v124-player-identity{min-width:0!important}
body.v124-ui .v124-player-identity small{font-size:6.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v124-ui .v124-player-identity h2{font-size:22px!important;line-height:1!important;margin:3px 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v124-ui .v124-player-identity p{font-size:9px!important;margin:0!important}
body.v124-ui .v124-player-state{display:grid!important;justify-items:end!important;gap:5px!important}
body.v124-ui .v124-player-level{padding:4px 6px!important;border:1px solid rgba(235,182,76,.52)!important;border-radius:8px!important;background:rgba(0,0,0,.28)!important;color:#f1c66d!important;font-size:7px!important;white-space:nowrap!important}
body.v124-ui .v124-player-card .v123-player-info{gap:5px!important}
body.v124-ui .v124-player-card .v123-player-info>span{min-height:39px!important;padding:6px!important;border-radius:9px!important}
body.v124-ui .v124-player-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1fr) 40px auto!important;gap:6px!important;margin:0!important}
body.v124-ui .v124-player-actions button{width:auto!important;min-width:0!important;height:38px!important;min-height:38px!important;margin:0!important;font-size:9px!important;border-radius:10px!important}
body.v124-ui .v124-player-actions .v124-add-player{width:40px!important;min-width:40px!important;padding:8px!important}
body.v124-ui .v124-player-actions .v124-device-player{grid-column:auto!important;min-width:88px!important;padding:0 10px!important}
body.v124-ui .v124-player-actions>button:only-child{grid-column:1/-1!important}
@media (max-width:390px){
  body.v124-ui .v124-player-card{grid-template-columns:92px minmax(0,1fr)!important;gap:7px!important;padding:8px!important}
  body.v124-ui .v124-player-art{width:92px!important;height:158px!important;min-height:158px!important}
  body.v124-ui .v124-player-identity h2{font-size:19px!important}
  body.v124-ui .v124-player-actions{grid-template-columns:minmax(0,1fr) 38px!important}
  body.v124-ui .v124-player-actions .v124-device-player{grid-column:1/-1!important}
}

/* ---------- Global chat: restore full cards and stable input ---------- */
@media (max-width:760px){
  body.v124-ui .v78-location-chat{
    width:min(92vw,390px)!important;max-width:390px!important;height:100dvh!important;max-height:100dvh!important;
    display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:7px!important;
    padding:calc(7px + var(--v124-safe-top)) 7px calc(7px + var(--v124-safe-bottom))!important;overflow:hidden!important;
  }
  body.v124-ui .v78-chat-head{min-height:54px!important;height:54px!important;padding:7px!important;border-radius:13px!important}
  body.v124-ui .v78-chat-head b{font-size:19px!important;line-height:1!important}
  body.v124-ui .v78-chat-tabs{height:42px!important;min-height:42px!important;padding:4px!important;gap:5px!important;border-radius:12px!important}
  body.v124-ui .v78-chat-tabs button{height:34px!important;min-height:34px!important;font-size:10px!important;border-radius:9px!important}
  body.v124-ui .v78-chat-scroll{
    min-height:0!important;height:auto!important;max-height:none!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;
    padding:2px 4px 2px 1px!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;
  }
  body.v124-ui .v123-chat-message{
    flex:0 0 auto!important;width:100%!important;min-width:0!important;min-height:72px!important;height:auto!important;max-height:none!important;
    display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:start!important;gap:8px!important;
    margin:0!important;padding:7px!important;border-radius:13px!important;overflow:hidden!important;transform:none!important;
  }
  body.v124-ui .v123-chat-avatar{position:relative!important;width:44px!important;min-width:44px!important;height:56px!important;margin:0!important;align-self:start!important;border-radius:10px!important;overflow:hidden!important}
  body.v124-ui .v123-chat-avatar :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:1px!important;transform:none!important}
  body.v124-ui .v123-chat-content{min-width:0!important;width:100%!important;height:auto!important;min-height:56px!important;display:grid!important;grid-template-rows:auto auto!important;align-content:start!important;gap:6px!important;overflow:visible!important}
  body.v124-ui .v123-chat-head{min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:5px!important}
  body.v124-ui .v123-chat-meta{min-width:0!important;display:flex!important;align-items:baseline!important;gap:4px!important;flex-wrap:wrap!important;overflow:visible!important}
  body.v124-ui .v123-chat-meta b{max-width:100%!important;font-size:11px!important;line-height:1.05!important}
  body.v124-ui .v123-chat-meta small{font-size:6.8px!important}
  body.v124-ui .v123-chat-role{font-size:5.8px!important}
  body.v124-ui .v123-chat-tail{position:static!important;display:flex!important;align-items:center!important;gap:4px!important;margin:0!important}
  body.v124-ui .v123-chat-text{display:block!important;width:100%!important;min-width:0!important;min-height:18px!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;font-size:9px!important;line-height:1.38!important;white-space:pre-wrap!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  body.v124-ui .v123-chat-delete{position:static!important;width:25px!important;min-width:25px!important;height:25px!important;min-height:25px!important;margin:0!important;padding:5px!important}
  body.v124-ui .v123-chat-message.deleted{min-height:47px!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important}
  body.v124-ui .v123-chat-form{
    min-height:58px!important;height:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;grid-template-areas:"input send" "count send"!important;
    align-items:stretch!important;gap:4px 7px!important;margin:0!important;padding:7px!important;border-radius:12px!important;
  }
  body.v124-ui .v123-chat-form input{grid-area:input!important;width:100%!important;min-width:0!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0 9px!important;font-size:9px!important}
  body.v124-ui .v123-chat-form button{grid-area:send!important;width:88px!important;min-width:88px!important;height:100%!important;min-height:47px!important;margin:0!important;padding:0 8px!important;font-size:8px!important}
  body.v124-ui .v123-chat-count{grid-area:count!important;justify-self:end!important;font-size:6.5px!important}
}

/* ---- css/v125-social-battle-rework.css ---- */
/* Aldos RPG v125 — social, inventory and battle rework */
:root{--v125-gold:#d7aa4b;--v125-line:rgba(205,162,76,.34);--v125-panel:rgba(6,27,29,.94);--v125-soft:rgba(255,255,255,.055);--v125-bottom-safe:max(env(safe-area-inset-bottom),8px)}
body.v125-ui{--v125-top-safe:max(env(safe-area-inset-top),4px)}

/* Header: currency lives in inventory only. */
body.v125-ui .v121-topbar{grid-template-columns:48px 46px minmax(0,1fr) 48px!important;gap:7px!important;padding-inline:8px!important}
body.v125-ui .v119-top-currency{display:none!important}
body.v125-ui .v121-top-avatar-button{grid-column:2!important}
body.v125-ui .v121-top-player-copy{grid-column:3!important}
body.v125-ui .v121-level-button{grid-column:4!important}

/* Character selector: fixed compact rows for one, two or three heroes. */
body.v125-ui .v117-character-modal,
body.v125-ui .v76-character-sheet{width:min(94vw,560px)!important;height:auto!important;max-height:min(82dvh,700px)!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
body.v125-ui .v117-char-list,
body.v125-ui .v117-drawer-character-list{display:grid!important;grid-auto-rows:minmax(132px,auto)!important;align-content:start!important;gap:9px!important;min-height:0!important;max-height:min(52dvh,450px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:3px!important}
body.v125-ui .v125-character-row{position:relative!important;display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;grid-template-areas:"art copy" "actions actions"!important;align-items:center!important;gap:8px 11px!important;min-height:132px!important;height:auto!important;padding:10px!important;border-radius:17px!important;overflow:hidden!important}
body.v125-ui .v125-character-row.current{background:linear-gradient(135deg,rgba(86,132,34,.17),rgba(15,39,28,.72))!important;border-color:rgba(143,205,60,.52)!important}
body.v125-ui .v125-character-art{grid-area:art!important;width:84px!important;height:82px!important;min-width:84px!important;min-height:82px!important;border-radius:14px!important;overflow:hidden!important;background:radial-gradient(circle at 50% 75%,rgba(123,173,64,.18),rgba(2,15,18,.82) 72%)!important}
body.v125-ui .v125-character-art :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:4px!important;transform:none!important}
body.v125-ui .v125-character-copy{grid-area:copy!important;position:relative!important;display:grid!important;align-content:center!important;gap:4px!important;min-width:0!important;padding-right:54px!important}
body.v125-ui .v125-character-copy>b{font-size:18px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v125-ui .v125-character-copy>span{font-size:10px!important;color:rgba(234,240,236,.68)!important}
body.v125-ui .v125-character-level{position:absolute!important;top:50%!important;right:0!important;translate:0 -50%!important;margin:0!important;padding:5px 8px!important;border:1px solid rgba(224,176,76,.52)!important;border-radius:999px!important;background:rgba(11,18,16,.78)!important;color:#f0c86d!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important}
body.v125-ui .v125-character-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(88px,.36fr)!important;gap:8px!important;margin:0!important}
body.v125-ui .v125-character-actions button{height:40px!important;min-height:40px!important;margin:0!important;border-radius:12px!important;font-size:9px!important}
body.v125-ui .v125-character-row.current .v125-character-actions .current,
body.v125-ui .v125-character-row.current .v125-character-actions .current-btn{opacity:.68!important;background:rgba(48,66,55,.65)!important;color:rgba(255,255,255,.68)!important}

/* Player profile card from chat/friends. */
body.v125-ui .modal-back.has-v125-player-modal{align-items:center!important;padding:14px!important}
body.v125-ui .modal.v125-player-modal{width:min(92vw,460px)!important;max-height:min(78dvh,650px)!important;padding:10px!important;overflow:hidden!important}
body.v125-ui .modal.v125-player-modal>h1{display:none!important}
body.v125-ui .v125-player-card{position:relative!important;isolation:isolate!important;display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;grid-template-areas:"account account" "portrait identity" "portrait info" "actions actions"!important;gap:9px!important;padding:10px!important;border:1px solid var(--v125-line)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(9,34,34,.96),rgba(5,20,23,.96))!important;overflow:auto!important}

body.v125-ui .v125-player-card-bg{position:absolute!important;inset:0!important;z-index:-1!important;border-radius:inherit!important;background:radial-gradient(circle at 24% 38%,rgba(87,132,67,.16),transparent 42%),linear-gradient(145deg,rgba(9,34,34,.96),rgba(5,20,23,.96))!important;opacity:1!important;pointer-events:none!important}
body.v125-ui .v125-player-account{grid-area:account!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:2px 8px!important;padding:8px 10px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important}
body.v125-ui .v125-player-account small{grid-column:1/-1!important;font-size:7px!important;letter-spacing:.16em!important;color:rgba(238,241,237,.53)!important}
body.v125-ui .v125-player-account b{font-size:15px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.v125-ui .v125-player-account span{align-self:center!important;padding:4px 7px!important;border-radius:999px!important;font-size:7px!important;background:rgba(255,255,255,.07)!important}
body.v125-ui .v125-player-account span.online{color:#9ee15d!important;background:rgba(73,142,55,.18)!important}
body.v125-ui .v125-player-portrait{grid-area:portrait!important;position:relative!important;width:118px!important;height:178px!important;border:1px solid rgba(219,171,73,.4)!important;border-radius:16px!important;overflow:hidden!important;background:radial-gradient(circle at 50% 65%,rgba(84,126,49,.19),rgba(2,13,16,.92) 70%)!important}
body.v125-ui .v125-player-portrait :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center 55%!important;padding:10px 8px 4px!important;transform:scale(.9)!important}
body.v125-ui .v125-player-portrait em{position:absolute!important;left:7px!important;bottom:7px!important;padding:5px 8px!important;border-radius:999px!important;background:#071012!important;border:1px solid rgba(225,175,74,.55)!important;color:#f2d07d!important;font-size:8px!important;font-style:normal!important}
body.v125-ui .v125-player-identity{grid-area:identity!important;align-self:end!important;min-width:0!important}
body.v125-ui .v125-player-identity h2{margin:0!important;font-size:25px!important;line-height:1!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.v125-ui .v125-player-identity p{margin:6px 0!important;font-size:10px!important;color:rgba(238,242,239,.68)!important}
body.v125-ui .v125-player-identity span{display:inline-flex!important;padding:4px 7px!important;border-radius:8px!important;background:rgba(64,150,99,.18)!important;color:#80d3a0!important;font-size:8px!important}
body.v125-ui .v125-player-info{grid-area:info!important;display:grid!important;gap:6px!important;align-self:start!important}
body.v125-ui .v125-player-info>span{display:grid!important;gap:2px!important;padding:8px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:11px!important;background:rgba(255,255,255,.025)!important}
body.v125-ui .v125-player-info small{font-size:7px!important;color:rgba(235,240,236,.52)!important}
body.v125-ui .v125-player-info b{font-size:10px!important}
body.v125-ui .v125-player-actions{grid-area:actions!important;display:flex!important;gap:8px!important;margin:0!important}
body.v125-ui .v125-player-actions button{height:40px!important;min-height:40px!important;margin:0!important;border-radius:11px!important}
body.v125-ui .v125-player-actions .primary{flex:1!important;display:flex!important;justify-content:center!important;gap:7px!important}
body.v125-ui .v125-player-actions .v125-square-action{width:42px!important;min-width:42px!important;padding:9px!important}

/* Global chat and events: stable cards, icon composer, no role labels/counter. */
body.v125-ui .v125-chat-drawer{grid-template-rows:auto auto minmax(0,1fr) auto!important}
body.v125-ui .v125-chat-message{min-height:70px!important;height:auto!important;grid-template-columns:48px minmax(0,1fr)!important;gap:9px!important;padding:8px!important;border-radius:14px!important}
body.v125-ui .v125-chat-avatar{width:48px!important;height:56px!important;min-width:48px!important;border-radius:11px!important;overflow:hidden!important}
body.v125-ui .v125-chat-avatar :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:2px!important;transform:none!important}
body.v125-ui .v125-chat-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;align-items:start!important}
body.v125-ui .v125-chat-head .v123-chat-meta{display:flex!important;flex-wrap:wrap!important;gap:3px 6px!important;min-width:0!important}
body.v125-ui .v125-chat-head .v123-chat-meta b{font-size:12px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v125-ui .v125-chat-head .v123-chat-meta small{font-size:7px!important;color:rgba(235,239,235,.54)!important}
body.v125-ui .v125-chat-message .v123-chat-role{display:none!important}
body.v125-ui .v125-chat-message .v123-chat-text{font-size:10px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
body.v125-ui .v125-chat-form{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;grid-template-areas:"input send"!important;gap:8px!important;align-items:center!important;padding:7px!important;min-height:56px!important}
body.v125-ui .v125-chat-form input{grid-area:input!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0 11px!important;font-size:9px!important}
body.v125-ui .v125-chat-form .v125-chat-send{grid-area:send!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:10px!important;border-radius:13px!important}
body.v125-ui .v125-chat-form .v125-chat-send :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important}
body.v125-ui .v123-chat-count{display:none!important}
body.v125-ui .v125-event-message{display:grid!important;grid-template-columns:48px minmax(0,1fr) 34px!important;align-items:center!important;gap:9px!important;min-height:78px!important;padding:9px!important;border-radius:14px!important}
body.v125-ui .v125-event-message .v92-event-avatar{width:48px!important;height:48px!important;border-radius:12px!important}
body.v125-ui .v125-event-message .v92-event-copy{display:grid!important;gap:3px!important;min-width:0!important}
body.v125-ui .v125-event-message .v92-event-copy b{font-size:12px!important}
body.v125-ui .v125-event-message .v92-event-copy span{font-size:9px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
body.v125-ui .v125-event-message .v92-event-copy small{font-size:7px!important;color:rgba(236,239,237,.5)!important}
body.v125-ui .v125-cleared-message{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:54px!important;padding:9px 12px!important;text-align:center!important;border:1px dashed rgba(185,192,190,.22)!important;border-radius:13px!important;background:rgba(120,126,125,.055)!important;color:rgba(225,229,227,.62)!important;transition:opacity .18s,transform .18s!important}
body.v125-ui .v125-cleared-message.expired{opacity:0!important;transform:scale(.96)!important}
body.v125-ui .v125-cleared-icon{width:30px!important;height:30px!important;padding:6px!important;border-radius:9px!important;background:rgba(255,255,255,.04)!important}
body.v125-ui .v125-cleared-message div{display:grid!important;gap:3px!important}
body.v125-ui .v125-cleared-message b{font-size:9px!important;font-weight:600!important}
body.v125-ui .v125-cleared-message small{font-size:7px!important}
body.v125-ui .v125-cleared-message em{font-style:normal!important;color:#d5ad5e!important}
body.v125-ui .v125-events-note{padding:10px!important;text-align:center!important;font-size:8px!important;color:rgba(233,237,234,.5)!important}

/* Friends: two purpose-built internal panes. */
body.v125-ui .v125-friends-screen{height:calc(100dvh - var(--v119-topbar-height,70px) - var(--v119-nav-height,74px))!important;min-height:0!important;overflow:hidden!important;padding:8px!important}
body.v125-ui .v125-friends-layout{display:grid!important;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;gap:8px!important;height:100%!important;min-height:0!important}
body.v125-ui .v125-friends-pane{display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;min-width:0!important;min-height:0!important;padding:9px!important;border:1px solid var(--v125-line)!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(7,29,30,.93),rgba(4,18,21,.95))!important;overflow:hidden!important}
body.v125-ui .v125-friends-pane>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;padding-bottom:7px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
body.v125-ui .v125-friends-pane>header small{font-size:6px!important;letter-spacing:.16em!important;color:rgba(240,239,230,.46)!important}
body.v125-ui .v125-friends-pane>header h2{margin:2px 0 0!important;font-size:15px!important;line-height:1!important}
body.v125-ui .v125-friends-pane>header>b{min-width:25px!important;height:25px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:rgba(218,172,75,.12)!important;color:#e1ba68!important;font-size:9px!important}
body.v125-ui .v125-friends-pane>p{margin:7px 0!important;min-height:26px!important;font-size:7px!important;line-height:1.25!important;color:rgba(232,237,234,.48)!important}
body.v125-ui .v125-friends-scroll{display:flex!important;flex-direction:column!important;gap:7px!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding-right:3px!important}
body.v125-ui .v125-local-player-card,
body.v125-ui .v125-friend-card{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-areas:"avatar copy" "actions actions"!important;align-items:center!important;gap:7px!important;padding:7px!important;border:1px solid rgba(213,170,77,.22)!important;border-radius:13px!important;background:rgba(255,255,255,.025)!important}
body.v125-ui .v125-local-player-card{grid-template-columns:44px minmax(0,1fr) 36px!important;grid-template-areas:"avatar copy actions"!important}
body.v125-ui .v125-friend-avatar{grid-area:avatar!important;position:relative!important;width:48px!important;height:58px!important;border:1px solid rgba(217,173,76,.34)!important;border-radius:11px!important;overflow:hidden!important;background:#061417!important}
body.v125-ui .v125-local-player-card .v125-friend-avatar{width:44px!important;height:52px!important}
body.v125-ui .v125-friend-avatar :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:2px!important;transform:none!important}
body.v125-ui .v125-friend-avatar i{position:absolute!important;right:3px!important;bottom:3px!important;width:7px!important;height:7px!important;border-radius:50%!important;background:#76807c!important;border:1px solid #081012!important}
body.v125-ui .online .v125-friend-avatar i{background:#7bdb50!important;box-shadow:0 0 8px rgba(123,219,80,.55)!important}
body.v125-ui .v125-friend-copy{grid-area:copy!important;display:grid!important;gap:2px!important;min-width:0!important}
body.v125-ui .v125-friend-copy b{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v125-ui .v125-friend-copy small,
body.v125-ui .v125-friend-copy em{font-size:6.6px!important;font-style:normal!important;color:rgba(235,239,236,.52)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v125-ui .v125-friend-actions{grid-area:actions!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important}
body.v125-ui .v125-friend-actions button,
body.v125-ui .v125-invite-action{height:34px!important;min-height:34px!important;min-width:0!important;margin:0!important;padding:7px!important;border-radius:10px!important}
body.v125-ui .v125-local-player-card .v125-invite-action{grid-area:actions!important;width:36px!important;min-width:36px!important}
body.v125-ui .v125-friends-empty{padding:13px 7px!important;text-align:center!important;border:1px dashed rgba(255,255,255,.1)!important;border-radius:12px!important;font-size:7px!important;color:rgba(235,239,236,.46)!important}

/* Inventory: no separate capacity strip; compact, grouped cards. */
body.v125-ui .v124-inventory-capacity{display:none!important}
body.v125-ui .v124-inventory-shell{gap:8px!important}
body.v125-ui .v119-inventory-metrics{margin-top:0!important}
body.v125-ui .v119-inventory-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:start!important}
body.v125-ui .v124-item-card{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;grid-template-areas:"icon body" "actions actions"!important;align-items:start!important;gap:7px!important;min-height:170px!important;height:auto!important;padding:8px!important;border-radius:16px!important;overflow:hidden!important}
body.v125-ui .v124-item-card .v39-item-icon-wrap{grid-area:icon!important;width:66px!important;min-width:66px!important;height:82px!important;margin:0!important;border-radius:13px!important;overflow:visible!important;background:radial-gradient(circle at 50% 58%,rgba(222,177,80,.11),rgba(3,17,19,.72) 70%)!important}
body.v125-ui .v124-item-card .item-emblem{position:relative!important;display:grid!important;place-items:center!important;width:66px!important;height:82px!important;overflow:visible!important}
body.v125-ui .v124-item-card .item-emblem>:not(.v124-stack-count){max-width:52px!important;max-height:66px!important;width:86%!important;height:86%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
body.v125-ui .v124-stack-count{position:absolute!important;right:-4px!important;bottom:-4px!important;z-index:15!important;display:grid!important;place-items:center!important;min-width:25px!important;height:20px!important;padding:0 6px!important;border:2px solid #071315!important;border-radius:999px!important;background:linear-gradient(#e4b74c,#a66a15)!important;color:#111!important;font-size:9px!important;line-height:1!important;box-shadow:0 3px 10px rgba(0,0,0,.48)!important}
body.v125-ui .v124-item-card .v39-item-body{grid-area:body!important;display:grid!important;grid-template-rows:auto auto auto!important;align-content:start!important;gap:6px!important;min-width:0!important;overflow:visible!important}
body.v125-ui .v124-item-card .v39-item-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;align-items:start!important}
body.v125-ui .v124-item-card .v39-item-head h3{font-size:10px!important;line-height:1.15!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.v125-ui .v124-item-card .item-weight{position:static!important;padding:4px 6px!important;border-radius:999px!important;font-size:6.8px!important;white-space:nowrap!important}
body.v125-ui .v125-item-meta{display:grid!important;gap:6px!important;min-width:0!important}
body.v125-ui .v125-item-tags{display:flex!important;flex-wrap:wrap!important;gap:4px!important}
body.v125-ui .v125-item-tags small{display:inline-flex!important;align-items:center!important;min-height:20px!important;padding:3px 6px!important;border:1px solid rgba(218,173,75,.28)!important;border-radius:999px!important;background:rgba(255,255,255,.035)!important;color:rgba(238,239,231,.76)!important;font-size:6.5px!important;line-height:1!important;text-transform:none!important;letter-spacing:0!important}
body.v125-ui .v124-item-card .v122-item-quick{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important;min-width:0!important}
body.v125-ui .v124-item-card .v122-item-value{min-height:25px!important;padding:4px 7px!important;border-radius:9px!important;font-size:7px!important}
body.v125-ui .v124-item-card .v122-durability{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;margin:0!important}
body.v125-ui .v124-item-card .v122-durability>div{height:6px!important;border-radius:999px!important;overflow:hidden!important}
body.v125-ui .v124-item-card .v122-durability>b{font-size:6.5px!important;white-space:nowrap!important}
body.v125-ui .v124-item-actions{grid-area:actions!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0!important;align-self:end!important}
body.v125-ui .v124-item-actions button{height:38px!important;min-height:38px!important;margin:0!important;padding:0 5px!important;border-radius:11px!important;font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v125-ui .v124-item-actions>button:only-child{grid-column:1/-1!important}
body.v125-ui .v124-item-card.rarity-uncommon{background:linear-gradient(145deg,rgba(23,59,46,.9),rgba(5,24,25,.94))!important}
body.v125-ui .v124-item-card.rarity-rare{background:linear-gradient(145deg,rgba(22,46,70,.9),rgba(5,23,31,.95))!important}
body.v125-ui .v124-item-card.rarity-epic{background:linear-gradient(145deg,rgba(58,33,83,.9),rgba(16,18,36,.95))!important}
body.v125-ui .v124-item-card.rarity-legendary{background:linear-gradient(145deg,rgba(91,57,18,.92),rgba(38,22,8,.96))!important}
body.v125-ui .v124-item-card.rarity-mythic{background:linear-gradient(145deg,rgba(88,20,51,.94),rgba(39,8,27,.97))!important;border-color:rgba(247,72,148,.76)!important;box-shadow:inset 0 0 28px rgba(209,35,104,.1)!important}

/* Battle result rarity fills and refined rare-drop cinematic. */
body.v125-ui .v118-result-loot-item{border-left:0!important;border:1px solid rgba(255,255,255,.09)!important;background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(2,15,19,.55))!important}
body.v125-ui .v118-result-loot-item.rarity-uncommon{background:linear-gradient(135deg,rgba(45,104,71,.28),rgba(4,20,22,.7))!important;border-color:rgba(92,190,116,.34)!important}
body.v125-ui .v118-result-loot-item.rarity-rare{background:linear-gradient(135deg,rgba(39,91,139,.32),rgba(4,19,29,.72))!important;border-color:rgba(83,154,229,.42)!important}
body.v125-ui .v118-result-loot-item.rarity-epic{background:linear-gradient(135deg,rgba(100,54,145,.34),rgba(19,10,33,.76))!important;border-color:rgba(170,100,231,.46)!important}
body.v125-ui .v118-result-loot-item.rarity-legendary{background:linear-gradient(135deg,rgba(149,96,27,.4),rgba(36,20,5,.8))!important;border-color:rgba(235,175,70,.58)!important}
body.v125-ui .v118-result-loot-item.rarity-mythic{background:linear-gradient(135deg,rgba(153,34,85,.42),rgba(45,7,28,.82))!important;border-color:rgba(255,73,150,.66)!important}
body.v125-ui .v125-rare-drop{position:relative!important;isolation:isolate!important;overflow:hidden!important;border-radius:24px!important;background:radial-gradient(circle at 50% 24%,rgba(255,237,170,.72),rgba(76,88,100,.66) 46%,rgba(12,24,29,.94) 100%)!important;animation:v125-rare-arrive .48s cubic-bezier(.2,.8,.2,1) both!important}
body.v125-ui .v125-rare-drop::before{content:"";position:absolute;inset:-45%;z-index:-1;background:conic-gradient(from 0deg,transparent,rgba(255,220,114,.42),transparent 28%,transparent 70%,rgba(255,255,255,.26),transparent);animation:v125-rare-spin 8s linear infinite!important}
body.v125-ui .v125-rare-drop.rarity-mythic{background:radial-gradient(circle at 50% 24%,rgba(255,153,199,.74),rgba(97,33,77,.72) 48%,rgba(20,8,24,.96) 100%)!important}
body.v125-ui .v125-rare-drop .rare-item-icon{animation:v125-item-float 2.8s ease-in-out infinite!important}
body.v125-ui .v125-rare-owner{color:#111!important;background:rgba(255,255,255,.56)!important;padding:7px 10px!important;border-radius:10px!important;text-shadow:none!important}
body.v125-ui .v125-rare-owner b{color:#080808!important}
@keyframes v125-rare-arrive{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:none}}
@keyframes v125-rare-spin{to{transform:rotate(360deg)}}
@keyframes v125-item-float{50%{transform:translateY(-6px) scale(1.025)}}

/* Monster sheet: stats first, then materials and loot, with internal scroll. */
body.v125-ui .modal-back.has-v122-monster-modal{align-items:center!important;padding:10px!important}
body.v125-ui .modal.v122-monster-modal{width:min(94vw,600px)!important;height:auto!important;max-height:min(82dvh,720px)!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;padding:10px!important}
body.v125-ui .v122-monster-modal>h1{font-size:23px!important;margin:0 44px 7px 0!important}
body.v125-ui .v122-monster-sheet{min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding-right:4px!important}
body.v125-ui .v125-monster-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
body.v125-ui .v125-monster-stat-grid article{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-height:52px!important;padding:8px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:12px!important;background:rgba(255,255,255,.028)!important}
body.v125-ui .v125-monster-stat-grid article>:first-child{width:30px!important;height:30px!important;padding:6px!important;border-radius:9px!important;background:rgba(214,170,73,.09)!important}
body.v125-ui .v125-monster-stat-grid span{display:grid!important;gap:2px!important}
body.v125-ui .v125-monster-stat-grid small{font-size:7px!important;color:rgba(236,240,236,.5)!important}
body.v125-ui .v125-monster-stat-grid b{font-size:11px!important}

/* Skills: compact collapsible headers and true cooldown cards. */
body.v125-ui .v102-skill-section{border:1px solid rgba(255,255,255,.075)!important;border-radius:14px!important;padding:7px!important;background:rgba(255,255,255,.022)!important;overflow:hidden!important}
body.v125-ui .v106-skill-section-head,
body.v125-ui .v106-ready-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:7px!important;width:100%!important;min-height:35px!important;padding:6px 8px!important;border:0!important;border-radius:10px!important;background:rgba(255,255,255,.035)!important;text-align:left!important}
body.v125-ui .v106-skill-section-head h3,
body.v125-ui .v106-ready-title h3{font-family:inherit!important;font-size:10px!important;font-weight:700!important;line-height:1.1!important}
body.v125-ui .v106-skill-section-head span,
body.v125-ui .v106-ready-title span{display:grid!important;place-items:center!important;min-width:23px!important;height:23px!important;border-radius:8px!important;background:rgba(216,170,72,.12)!important;color:#e5bd68!important;font-size:7px!important}
body.v125-ui .v106-skill-section-head i{font-style:normal!important;color:#d7ae58!important;font-size:11px!important}
body.v125-ui .v102-skill-section.collapsed .v106-collapsible-content{display:none!important}
body.v125-ui .v102-skill-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin-top:7px!important}
body.v125-ui .v101-skill-card{aspect-ratio:1!important;min-height:0!important;border-radius:13px!important;overflow:hidden!important}
body.v125-ui .v101-skill-card .v101-skill-main{position:relative!important;width:100%!important;height:100%!important;padding:5px!important}
body.v125-ui .v101-skill-card.cooldown .v115-cooldown-edge{position:absolute!important;inset:0!important;background:radial-gradient(circle at center,rgba(4,11,15,.12) 34%,rgba(4,8,12,.74) 100%)!important;backdrop-filter:blur(1.2px)!important;pointer-events:none!important}
body.v125-ui .v101-skill-card.cooldown .v115-cooldown-count{position:absolute!important;inset:50% auto auto 50%!important;translate:-50% -50%!important;display:grid!important;place-items:center!important;min-width:34px!important;height:34px!important;border-radius:50%!important;background:rgba(5,10,14,.82)!important;border:1px solid rgba(231,187,84,.66)!important;color:#ffe39a!important;font-size:17px!important;font-weight:800!important;box-shadow:0 0 16px rgba(0,0,0,.54)!important}
body.v125-ui .v102-skill-cast:disabled{pointer-events:none!important;filter:saturate(.45)!important}

/* Battle vertical composition: header unobstructed, larger log ending near support handle. */
@media (max-width:760px){
  body.v125-ui.v111-battle-active .v79-battle-header{position:relative!important;z-index:12!important;margin-top:0!important}
  body.v125-ui.v111-battle-active .v101-battle{height:calc(100dvh - 66px - var(--v125-bottom-safe))!important;min-height:0!important;grid-template-rows:70px 184px minmax(235px,1fr) 48px!important;gap:8px!important;padding-bottom:4px!important;overflow:hidden!important}
  body.v125-ui.v111-battle-active .v101-battle-log{grid-row:3!important;height:100%!important;min-height:235px!important;margin-top:2px!important}
  body.v125-ui.v111-battle-active .v101-battle-log .battle-log-scroll{height:calc(100% - 39px)!important;max-height:none!important;min-height:0!important;overflow-y:auto!important}
  body.v125-ui.v111-battle-active #support-drawer-open{grid-row:4!important;position:relative!important;inset:auto!important;align-self:stretch!important;width:100%!important;height:44px!important;margin:0!important;transform:none!important}
  body.v125-ui.v111-battle-active .v110-support-potion{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;padding:7px!important}
  body.v125-ui.v111-battle-active .v110-support-potion.left{margin-left:3px!important}
  body.v125-ui.v111-battle-active .v110-support-potion.right{margin-right:3px!important}
  body.v125-ui .v78-chat-drawer .v125-battle-chat-bottom{min-height:0!important}
}

/* Narrow phones still keep readable two-column inventory/friends layout. */
@media (max-width:380px){
  body.v125-ui .v125-character-row{grid-template-columns:72px minmax(0,1fr)!important}
  body.v125-ui .v125-character-art{width:72px!important;min-width:72px!important;height:76px!important;min-height:76px!important}
  body.v125-ui .v125-character-copy>b{font-size:16px!important}
  body.v125-ui .v124-item-card{grid-template-columns:58px minmax(0,1fr)!important;padding:7px!important;gap:6px!important}
  body.v125-ui .v124-item-card .v39-item-icon-wrap,
  body.v125-ui .v124-item-card .item-emblem{width:58px!important;min-width:58px!important;height:76px!important}
  body.v125-ui .v125-friends-layout{grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr)!important;gap:6px!important}
  body.v125-ui .v125-friends-pane{padding:7px!important}
  body.v125-ui .v125-friends-pane>header h2{font-size:12px!important}
  body.v125-ui .v125-friend-card{grid-template-columns:42px minmax(0,1fr)!important}
  body.v125-ui .v125-friend-avatar{width:42px!important;height:52px!important}
  body.v125-ui .v125-friend-actions{gap:4px!important}
}

/* ---- css/v127-recovery-foundation.css ---- */
/* Aldos RPG v127.13 Recovery Foundation — consolidated ownership for mobile cards, social UI, side menu and battle geometry.
   Current v127 selectors replace the repaired component rules; old version layers remain only for unrelated screens. */
:root{
  --v127-gold:#d7aa4b;
  --v127-line:rgba(215,170,75,.34);
  --v127-panel:rgba(4,20,23,.96);
  --v127-safe-bottom:max(env(safe-area-inset-bottom),8px);
  --v127-safe-top:env(safe-area-inset-top);
}
body.v127-ui [hidden]{display:none!important}

/* ---------- Header: no duplicated level shield ---------- */
body.v127-ui .v121-topbar{
  grid-template-columns:48px 46px minmax(0,1fr)!important;
  gap:8px!important;
}
body.v127-ui .v121-level-button{display:none!important}
body.v127-ui .v121-top-player-copy{padding-right:8px!important}

/* ---------- Character selection ---------- */
body.v127-ui .v117-character-modal,
body.v127-ui .v76-character-sheet{
  width:min(94vw,540px)!important;max-height:min(80dvh,700px)!important;border-radius:24px!important;
}
body.v127-ui .v117-char-list,
body.v127-ui .v117-drawer-character-list{gap:8px!important;padding:3px 4px!important;max-height:min(51dvh,440px)!important}
body.v127-ui .v125-character-row{
  grid-template-columns:72px minmax(0,1fr)!important;grid-template-areas:"art copy" "actions actions"!important;
  min-height:108px!important;padding:8px!important;gap:6px 10px!important;border-radius:16px!important;
}
body.v127-ui .v125-character-art{grid-area:art!important;width:72px!important;min-width:72px!important;height:76px!important;min-height:76px!important;border-radius:14px!important}
body.v127-ui .v125-character-art :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center 55%!important;padding:4px!important;transform:none!important}
body.v127-ui .v125-character-copy{grid-area:copy!important;align-self:center!important;display:grid!important;gap:5px!important;min-width:0!important}
body.v127-ui .v125-character-copy>b{font-size:17px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v125-character-meta{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;min-width:0!important}
body.v127-ui .v125-character-meta>span{font-size:9.5px!important;color:rgba(235,239,236,.58)!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v125-character-level{position:static!important;min-width:42px!important;height:23px!important;padding:0 7px!important;display:grid!important;place-items:center!important;border-radius:999px!important;font-size:7px!important;font-weight:800!important;white-space:nowrap!important;color:#f2d581!important;border:1px solid rgba(218,174,76,.58)!important;background:rgba(28,25,15,.72)!important}
body.v127-ui .v125-character-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1fr) 82px!important;gap:7px!important;margin-top:0!important}
body.v127-ui .v125-character-actions button{width:100%!important;min-width:0!important;height:35px!important;min-height:35px!important;padding:5px 8px!important;border-radius:11px!important;font-size:9.5px!important}
body.v127-ui .v126-icon-action{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important}
body.v127-ui .v126-icon-action .v83-ui-icon{width:15px!important;height:15px!important}
body.v127-ui .v117-char-bottom,
body.v127-ui .v76-character-sheet>footer{display:grid!important;grid-template-columns:minmax(0,1fr) 102px!important;gap:7px!important;padding:8px!important;min-height:52px!important}
body.v127-ui .v117-char-bottom button,
body.v127-ui .v76-character-sheet>footer button{width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;padding:6px 9px!important;border-radius:11px!important;font-size:9.5px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important}
body.v127-ui .v117-char-bottom .v83-ui-icon,
body.v127-ui .v76-character-sheet>footer .v83-ui-icon{width:15px!important;height:15px!important}
body.v127-character-drawer-open nav.v119-bottom-nav{display:none!important}
body.v127-character-drawer-open main.v119-screen{padding-bottom:12px!important}

/* Side panel and friends are owned by the consolidated v127 component blocks below. */

/* ---------- Nearby battle summaries ---------- */
body.v127-ui .v127-location-battle-row{
  overflow:hidden!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr)!important;
  grid-template-areas:"team vs enemies" "join join join"!important;
  align-items:center!important;gap:8px 6px!important;padding:9px!important;
}
body.v127-ui .v127-location-battle-row>.v127-battle-party{grid-area:team!important}
body.v127-ui .v127-location-battle-row>.v119-battle-vs{grid-area:vs!important;align-self:center!important;justify-self:center!important}
body.v127-ui .v127-location-battle-row>.v127-battle-enemy-party{grid-area:enemies!important}
body.v127-ui .v127-location-battle-row>.v119-battle-join{grid-area:join!important;width:100%!important}
body.v127-ui .v127-battle-party,
body.v127-ui .v127-battle-enemy-party{min-width:0!important;display:grid!important;align-content:center!important;gap:5px!important}
body.v127-ui .v127-battle-party-icons,
body.v127-ui .v127-battle-enemy-icons{display:flex!important;align-items:center!important;min-width:0!important;height:42px!important;padding-left:2px!important}
body.v127-ui .v127-battle-member,
body.v127-ui .v127-battle-monster{
  position:relative!important;flex:0 0 38px!important;width:38px!important;height:42px!important;margin-left:-7px!important;
  display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:12px!important;
  border:1px solid rgba(218,177,80,.52)!important;background:rgba(3,15,19,.96)!important;box-shadow:0 4px 10px rgba(0,0,0,.28)!important;
}
body.v127-ui .v127-battle-member:first-child,
body.v127-ui .v127-battle-monster:first-child{margin-left:0!important}
body.v127-ui .v127-battle-member :where(img,.class-asset-image),
body.v127-ui .v127-battle-monster :where(img,.monster-asset-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:2px!important;transform:none!important}
body.v127-ui .v127-battle-party-copy{min-width:0!important;display:grid!important;gap:1px!important}
body.v127-ui .v127-battle-party-copy b,
body.v127-ui .v127-battle-enemy-party>span b{font-size:10px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v127-battle-party-copy small,
body.v127-ui .v127-battle-enemy-party>span small{font-size:7px!important;color:rgba(235,239,236,.56)!important}
/* ---------- Travel ---------- */
body.v127-ui .v126-travel-screen{display:grid!important;place-items:center!important;padding:84px 16px 22px!important;background:radial-gradient(circle at 50% 30%,rgba(48,91,79,.13),transparent 55%)!important}
body.v127-ui .v126-travel-card{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;width:min(92vw,560px)!important;
  min-height:430px!important;padding:28px 24px 24px!important;border-radius:28px!important;
  display:grid!important;justify-items:center!important;align-content:center!important;gap:13px!important;
  background:linear-gradient(160deg,rgba(9,32,35,.96),rgba(3,16,20,.98))!important;
  border:1px solid rgba(98,202,170,.32)!important;box-shadow:0 28px 70px rgba(0,0,0,.46)!important;
}
body.v127-ui .v126-travel-backdrop{position:absolute!important;inset:0!important;z-index:-2!important;background-image:linear-gradient(rgba(2,15,18,.74),rgba(2,15,18,.96)),var(--v127-travel-art)!important;background-size:cover!important;background-position:center!important;filter:saturate(.75)!important}
body.v127-ui .v126-travel-card::after{content:"";position:absolute;inset:-40%;z-index:-1;background:conic-gradient(from 0deg,transparent,rgba(91,231,191,.11),transparent 26%,transparent 74%,rgba(217,170,75,.08),transparent);animation:v126TravelGlow 10s linear infinite}
body.v127-ui .v126-travel-card .v77-travel-route{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 86px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;font-size:10px!important}
body.v127-ui .v126-travel-card .v77-travel-route span:first-child{text-align:right!important}
body.v127-ui .v126-travel-card .v77-travel-route span:last-child{text-align:left!important}
body.v127-ui .v126-travel-card .v77-travel-route i{position:relative!important;height:2px!important;background:rgba(91,231,191,.18)!important;overflow:visible!important}
body.v127-ui .v126-travel-card .v77-travel-route i u{position:absolute!important;top:50%!important;left:0!important;width:10px!important;height:10px!important;border-radius:50%!important;background:#69e6bd!important;box-shadow:0 0 18px rgba(105,230,189,.8)!important;transform:translateY(-50%)!important;animation:v126RouteDot 2.4s ease-in-out infinite!important}
body.v127-ui .v126-travel-compass{position:relative!important;width:112px!important;height:112px!important;border-radius:30px!important;display:grid!important;place-items:center!important;background:rgba(7,28,34,.78)!important;border:1px solid rgba(94,193,195,.38)!important;box-shadow:0 0 35px rgba(78,217,181,.1)!important}
body.v127-ui .v126-travel-compass img{width:70px!important;height:70px!important;object-fit:contain!important;animation:v126Compass 5s ease-in-out infinite!important}
body.v127-ui .v126-travel-compass i{position:absolute!important;inset:13px!important;border:1px dashed rgba(107,230,191,.25)!important;border-radius:50%!important;animation:v126TravelGlow 8s linear infinite reverse!important}
body.v127-ui .v126-travel-card>small{color:#6de1ba!important;letter-spacing:.18em!important;font-size:9px!important}
body.v127-ui .v126-travel-card h2{margin:0!important;font-size:27px!important;text-align:center!important}
body.v127-ui .v126-travel-card>p{max-width:440px!important;margin:0!important;text-align:center!important;font-size:12px!important;line-height:1.45!important;color:rgba(234,239,236,.58)!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important}
body.v127-ui .v126-travel-card .v77-travel-timer b{font-size:25px!important;color:#e9ffbe!important}
body.v127-ui .v126-travel-card .bar.travel{width:100%!important;height:9px!important;border-radius:999px!important;overflow:hidden!important}
body.v127-ui .v126-travel-card .bar.travel i{background:linear-gradient(90deg,#5ac9ef,#7be9b9,#b9f23c)!important;box-shadow:0 0 14px rgba(111,228,190,.45)!important}
@keyframes v126TravelGlow{to{transform:rotate(360deg)}}
@keyframes v126RouteDot{0%,100%{left:0}50%{left:calc(100% - 10px)}}
@keyframes v126Compass{0%,100%{transform:rotate(-4deg) scale(.98)}50%{transform:rotate(5deg) scale(1.03)}}


@media(max-width:390px){
  body.v127-ui .v125-character-row{grid-template-columns:68px minmax(0,1fr) auto!important}
  body.v127-ui .v125-character-art{width:68px!important;min-width:68px!important;height:72px!important;min-height:72px!important}
}

/* ========================================================================== */
/* v127.4 RECOVERY OWNERSHIP — one final implementation per repaired component */
/* ========================================================================== */

:root{
  --v127-side-width:min(80vw,320px);
  --v127-battle-head:58px;
  --v127-battle-gap:7px;
}
body.v127-ui{overscroll-behavior:none}
body.aldos-apk.v127-ui{--v127-safe-top:max(env(safe-area-inset-top),24px)}
body.v127-ui .v39-item-aura,
body.v127-ui .v119-side-backdrop,
body.v127-ui .v17-drawer-fade{pointer-events:none}
body.v127-ui.v119-side-open .v119-side-backdrop,
body.v127-ui .v17-drawer-fade.open{pointer-events:auto}

/* Side panel: full-height owner layout with readable stats, compact buttons and its own scrollbar. */
body.v127-ui .v119-side{
  inset:0 auto 0 0!important;width:var(--v127-side-width)!important;max-width:var(--v127-side-width)!important;
  height:var(--v124-viewport-height,100dvh)!important;min-height:var(--v124-viewport-height,100dvh)!important;max-height:var(--v124-viewport-height,100dvh)!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;align-content:start!important;padding:0!important;overflow:hidden!important;
  border-radius:0 22px 22px 0!important;transform:translate3d(calc(-100% + var(--v127-side-drag,0px)),0,0)!important;
  transition:transform .22s cubic-bezier(.22,.8,.2,1)!important;will-change:transform!important;
}
body.v127-ui .v119-side.open{transform:translate3d(0,0,0)!important}
body.v127-ui .v119-side.v127-side-dragging{transition:none!important}
body.v127-ui .v119-side:not(:has(#side-stats)){grid-template-rows:auto minmax(0,1fr)!important}
body.v127-ui .v119-side-head{min-height:66px!important;grid-template-columns:50px minmax(0,1fr) 32px!important;padding:8px 10px!important;gap:9px!important}
body.v127-ui .v119-side-portrait{width:50px!important;height:50px!important}
body.v127-ui .v119-side-portrait :where(img,.class-asset-image){object-fit:contain!important;object-position:center!important;padding:2px!important;transform:none!important}
body.v127-ui .v119-side-copy b{font-size:15px!important;line-height:1.05!important}
body.v127-ui .v119-side-copy small{font-size:8px!important;line-height:1.15!important}
body.v127-ui .v119-side-head>button{width:32px!important;height:32px!important;min-height:32px!important;padding:6px!important;border-radius:10px!important}
body.v127-ui .v127-side-overview{padding:2px 10px 8px!important;display:grid!important;grid-template-columns:1fr!important;gap:5px!important}
body.v127-ui .v127-side-progress{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-height:40px!important;padding:5px 7px!important;border:1px solid rgba(215,170,75,.18)!important;border-radius:11px!important;background:linear-gradient(145deg,rgba(11,37,37,.8),rgba(4,20,23,.9))!important}
body.v127-ui .v127-side-stat-icon{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;padding:4px!important;border-radius:10px!important;border:1px solid rgba(215,170,75,.24)!important;background:rgba(255,255,255,.03)!important}
body.v127-ui .v127-side-stat-icon :where(img,svg){width:27px!important;height:27px!important;max-width:27px!important;max-height:27px!important;object-fit:contain!important}
body.v127-ui .v127-side-progress>div{min-width:0!important;display:grid!important;gap:4px!important}
body.v127-ui .v127-side-progress>div>span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
body.v127-ui .v127-side-progress small{font-size:7px!important;color:rgba(235,239,236,.62)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v127-side-progress b{font-size:8px!important;color:#eff4ef!important;white-space:nowrap!important}
body.v127-ui .v127-side-progress em{display:block!important;width:100%!important;height:6px!important;border-radius:999px!important;overflow:hidden!important;background:rgba(255,255,255,.09)!important}
body.v127-ui .v127-side-progress em i{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#a5e934,#e6d75e)!important}
body.v127-ui .v127-side-progress.hp em i{background:linear-gradient(90deg,#68d78b,#a7ed76)!important}
body.v127-ui .v127-side-progress.mp em i{background:linear-gradient(90deg,#54bddb,#72dcf0)!important}
body.v127-ui .v127-side-weight{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;min-height:34px!important;padding:4px 8px!important;border-radius:10px!important;background:rgba(255,255,255,.022)!important;border:1px solid rgba(255,255,255,.06)!important}
body.v127-ui .v127-side-weight>span{width:28px!important;height:28px!important;display:grid!important;place-items:center!important}
body.v127-ui .v127-side-weight img{width:23px!important;height:23px!important;object-fit:contain!important}
body.v127-ui .v127-side-weight small{font-size:7px!important;color:rgba(235,239,236,.54)!important}
body.v127-ui .v127-side-weight b{font-size:8px!important;color:#d9c477!important;white-space:nowrap!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav,
body.v127-ui .v119-side-nav{
  height:100%!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:62px!important;
  align-content:start!important;gap:6px!important;padding:6px 10px calc(10px + var(--v127-safe-bottom))!important;scrollbar-width:thin!important;scrollbar-color:#c7852e rgba(255,255,255,.045)!important;
}
body.v127-ui .v119-side-nav::-webkit-scrollbar{width:5px!important}
body.v127-ui .v119-side-nav::-webkit-scrollbar-track{background:rgba(255,255,255,.035)!important;border-radius:999px!important}
body.v127-ui .v119-side-nav::-webkit-scrollbar-thumb{background:linear-gradient(#e0b14c,#b66b22)!important;border-radius:999px!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav>button,
body.v127-ui .v119-side-nav>button{
  position:relative!important;grid-column:auto!important;min-width:0!important;width:100%!important;height:62px!important;min-height:62px!important;max-height:62px!important;
  padding:5px!important;display:grid!important;grid-template-rows:43px 12px!important;place-items:center!important;gap:1px!important;border-radius:13px!important;text-align:center!important;
  border:1px solid rgba(211,169,75,.28)!important;background:linear-gradient(145deg,rgba(8,33,34,.93),rgba(4,18,21,.96))!important;
}
body.v127-ui .v119-side-nav>button.active{border-color:rgba(229,184,83,.72)!important;background:linear-gradient(145deg,rgba(39,58,31,.92),rgba(7,29,28,.96))!important;box-shadow:inset 0 0 20px rgba(120,196,69,.07)!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav>button .v83-side-icon,
body.v127-ui .v119-side-nav>button .v83-side-icon{width:45px!important;height:45px!important;margin:0!important;padding:4px!important;border-radius:12px!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav>button>span,
body.v127-ui .v119-side-nav>button>span{width:100%!important;min-width:0!important;font-size:7.5px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important;display:block!important}
body.v127-ui .v119-side-nav .v119-side-arrow{display:none!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav>button.danger,
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav>[data-side-kind="logout"],
body.v127-ui .v119-side-nav>button.danger,
body.v127-ui .v119-side-nav>[data-side-kind="logout"]{
  grid-column:1/-1!important;height:42px!important;min-height:42px!important;max-height:42px!important;
  grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:1fr!important;justify-items:start!important;padding:6px 11px!important;
  background:linear-gradient(135deg,rgba(70,24,31,.72),rgba(29,12,17,.94))!important;
}
body.v127-ui .v119-side-nav>button.danger .v83-side-icon,
body.v127-ui .v119-side-nav>[data-side-kind="logout"] .v83-side-icon{width:23px!important;height:23px!important;padding:2px!important}
body.v127-ui .v119-side-nav>button.danger>span,
body.v127-ui .v119-side-nav>[data-side-kind="logout"]>span{font-size:8.5px!important;text-align:left!important;display:block!important}
/* Inventory tabs always receive touches and remain above cards. */
body.v127-ui .v119-inventory-tabs,
body.v127-ui .v119-inventory-tools{position:relative!important;z-index:8!important;pointer-events:auto!important}
body.v127-ui .v119-inventory-tabs button{pointer-events:auto!important;touch-action:manipulation!important}
body.v127-ui .v119-inventory-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;align-content:start!important}
body.v127-ui .v119-inventory-metrics{order:0!important;position:relative!important;margin:0!important}
body.v127-ui .v119-inventory-tabs{order:1!important;position:relative!important;inset:auto!important;margin:0!important;z-index:8!important}
body.v127-ui .v119-inventory-tools{
  order:2!important;position:relative!important;inset:auto!important;bottom:auto!important;top:auto!important;
  z-index:8!important;margin:0!important;width:100%!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) 52px!important;gap:6px!important;padding:6px!important;
}
body.v127-ui .v119-inventory-tools label{height:38px!important;min-height:38px!important;margin:0!important}
body.v127-ui .v119-inventory-list{
  position:relative!important;z-index:1!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  order:3!important;align-items:start!important;gap:9px!important;margin:0!important;padding:0 0 4px!important;min-height:0!important;
}

/* One static mini-card contract for the inventory grid. Title, asset, metadata and actions have fixed areas. */
html body.v127-ui .v119-inventory-list>.v124-item-card.v119-item-card{
  position:relative!important;display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  grid-template-areas:"head head" "icon body" "actions actions"!important;
  grid-template-rows:26px minmax(0,1fr) 38px!important;
  min-width:0!important;width:100%!important;height:174px!important;min-height:174px!important;max-height:174px!important;
  gap:5px 7px!important;padding:7px!important;border-radius:16px!important;
  overflow:hidden!important;contain:layout paint!important;align-items:stretch!important;
  background:linear-gradient(155deg,rgba(11,35,36,.96),rgba(3,16,20,.99))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 8px 18px rgba(0,0,0,.18)!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v39-item-aura{position:absolute!important;inset:0!important;pointer-events:none!important;opacity:.6!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-head{
  grid-area:head!important;position:relative!important;z-index:2!important;min-width:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;justify-items:stretch!important;gap:5px!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-head h3{
  margin:0!important;padding:0!important;min-width:0!important;max-width:100%!important;
  font-family:inherit!important;font-size:9.5px!important;font-weight:800!important;line-height:1.08!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important;padding:0 42px 0 2px!important;justify-self:stretch!important;color:#fff3d0!important;text-shadow:0 1px 0 rgba(0,0,0,.7)!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-head .item-weight{
  position:absolute!important;right:0!important;top:1px!important;justify-self:end!important;width:auto!important;min-width:38px!important;height:19px!important;
  padding:0 6px!important;display:grid!important;place-items:center!important;border-radius:999px!important;
  font-size:6.5px!important;line-height:1!important;white-space:nowrap!important;
  background:rgba(32,29,17,.78)!important;border:1px solid rgba(218,174,76,.42)!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-icon-wrap{
  grid-area:icon!important;position:relative!important;z-index:2!important;
  width:54px!important;min-width:54px!important;height:84px!important;min-height:84px!important;
  align-self:center!important;justify-self:center!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;border:1px solid rgba(215,170,75,.42)!important;border-radius:13px!important;overflow:hidden!important;
  background:radial-gradient(circle at 50% 45%,rgba(75,123,106,.13),rgba(2,14,17,.78) 72%)!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-icon-wrap>.item-emblem{
  position:relative!important;display:grid!important;place-items:center!important;
  width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;
  background:transparent!important;box-shadow:none!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .item-emblem :where(img,.item-asset-image,.class-asset-image){
  position:static!important;display:block!important;width:78%!important;height:78%!important;max-width:78%!important;max-height:78%!important;
  object-fit:contain!important;object-position:center!important;padding:0!important;margin:auto!important;transform:none!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v124-stack-count,
html body.v127-ui .v119-inventory-list>.v124-item-card .v124-stack-badge,
html body.v127-ui .v119-inventory-list>.v124-item-card .item-emblem>b{
  position:absolute!important;left:auto!important;right:3px!important;bottom:3px!important;top:auto!important;
  min-width:22px!important;height:20px!important;padding:0 4px!important;display:grid!important;place-items:center!important;
  border-radius:999px!important;background:#071013!important;border:1px solid rgba(239,195,91,.82)!important;
  color:#fff4cf!important;font-size:9px!important;font-weight:800!important;z-index:4!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-body{
  grid-area:body!important;position:relative!important;z-index:2!important;min-width:0!important;min-height:0!important;
  display:grid!important;grid-template-rows:auto auto!important;align-content:center!important;gap:4px!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v124-item-meta{
  min-width:0!important;margin:0!important;display:grid!important;grid-template-rows:auto auto!important;gap:5px!important;align-content:center!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v125-item-tags{
  min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;gap:3px!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v125-item-tags small{
  min-width:0!important;width:100%!important;max-width:100%!important;min-height:19px!important;padding:2px 3px!important;
  display:grid!important;place-items:center!important;border-radius:8px!important;
  font-size:8px!important;font-weight:800!important;line-height:1.05!important;text-transform:none!important;letter-spacing:.02em!important;text-align:center!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important;color:#fff3d0!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v122-item-quick{
  min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:1fr!important;align-items:center!important;gap:0!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v122-item-value{
  min-width:0!important;width:100%!important;max-width:100%!important;min-height:23px!important;padding:3px 4px!important;border-radius:9px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  font-size:6.8px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v122-item-value .v83-ui-icon{width:14px!important;height:14px!important;flex:0 0 auto!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v78-durability{
  min-width:0!important;width:100%!important;margin:0!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:4px!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v78-durability>div{height:6px!important;border-radius:999px!important;overflow:hidden!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v78-durability>b{font-size:6.8px!important;white-space:nowrap!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions{
  grid-area:actions!important;position:relative!important;z-index:2!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px!important;gap:6px!important;
  min-height:38px!important;height:38px!important;margin:0!important;align-self:end!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button:only-child){grid-template-columns:1fr!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v126-card-action{
  width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;
  padding:5px 7px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  gap:4px!important;font-size:8px!important;line-height:1!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card .v126-card-action .v83-ui-icon{width:16px!important;height:16px!important;flex:0 0 auto!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v126-card-action.icon-only{width:40px!important;padding:6px!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button:only-child)>.v126-card-action.icon-only{width:100%!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button:only-child)>.v126-card-action.icon-only span{display:inline!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>.v126-card-action.icon-only:not(:only-child) span{display:none!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v127-legacy-badge{
  grid-column:1/-1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;max-width:100%!important;
  padding:3px 4px!important;border:1px solid rgba(244,176,66,.58)!important;border-radius:8px!important;
  color:#ffd58a!important;background:rgba(74,43,12,.72)!important;font-size:6.2px!important;font-weight:800!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.rarity-common{background:linear-gradient(145deg,rgba(18,27,30,.96),rgba(5,17,20,.98))!important}
html body.v127-ui .v119-inventory-list>.v124-item-card.rarity-uncommon{background:linear-gradient(145deg,rgba(18,55,39,.9),rgba(4,24,24,.98))!important}
html body.v127-ui .v119-inventory-list>.v124-item-card.rarity-rare{background:linear-gradient(145deg,rgba(21,51,82,.92),rgba(4,20,31,.98))!important}
html body.v127-ui .v119-inventory-list>.v124-item-card.rarity-epic{background:linear-gradient(145deg,rgba(57,32,79,.92),rgba(15,16,34,.98))!important}
html body.v127-ui .v119-inventory-list>.v124-item-card.rarity-legendary{background:linear-gradient(145deg,rgba(103,63,17,.94),rgba(41,24,7,.98))!important}
html body.v127-ui .v119-inventory-list>.v124-item-card.rarity-mythic{background:linear-gradient(145deg,rgba(91,21,53,.95),rgba(38,7,27,.99))!important}
body.v127-ui .v126-inventory-empty,
body.v127-ui .v119-inventory-list>.empty{
  grid-column:1/-1!important;width:100%!important;min-height:110px!important;margin:0!important;
  display:grid!important;place-items:center!important;border:1px dashed rgba(255,255,255,.12)!important;border-radius:16px!important;
  background:rgba(255,255,255,.018)!important;
}
/* Equipment picker: balanced cards with isolated title, artwork, values and action row. */
body.v127-ui .modal-back.has-v98-picker-modal{padding:10px!important;align-items:center!important}
body.v127-ui .modal.v98-picker-modal{width:min(94vw,680px)!important;max-height:min(90dvh,800px)!important;padding:12px!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
body.v127-ui .v98-picker-modal>.v93-slot-picker{min-height:0!important;height:auto!important;max-height:none!important;display:grid!important;align-content:start!important;gap:12px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding:0 5px 6px 0!important;scrollbar-width:thin!important;scrollbar-color:#d18731 rgba(255,255,255,.04)!important}
body.v127-ui .v98-picker-modal>.v93-slot-picker::-webkit-scrollbar{width:5px!important}
body.v127-ui .v98-picker-modal>.v93-slot-picker::-webkit-scrollbar-thumb{background:#d18731!important;border-radius:999px!important}
body.v127-ui .v98-picker-modal .v93-picker-section{min-width:0!important;padding:10px!important;border-radius:15px!important;overflow:visible!important}
body.v127-ui .v98-picker-modal .v93-picker-section h3{font-size:18px!important;line-height:1.12!important;margin:0 0 9px!important}
body.v127-ui .v98-picker-modal .v93-picker-list{display:grid!important;grid-template-columns:1fr!important;align-items:start!important;gap:10px!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:visible!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker{width:100%!important;max-width:100%!important;min-height:184px!important;height:auto!important;max-height:none!important;display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;grid-template-areas:"head head" "icon body" "actions actions"!important;grid-template-rows:35px minmax(100px,auto) 44px!important;align-items:stretch!important;gap:8px 10px!important;padding:10px!important;overflow:hidden!important;background:radial-gradient(circle at 16% 38%,rgba(84,138,112,.08),transparent 34%),linear-gradient(145deg,rgba(12,33,34,.98),rgba(5,18,22,.99))!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head{grid-area:head!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-width:0!important;margin:0!important;padding:0 1px!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head h3{min-width:0!important;margin:0!important;font-size:13px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head .item-weight{position:static!important;min-width:54px!important;height:27px!important;padding:0 8px!important;display:grid!important;place-items:center!important;border-radius:999px!important;font-size:8.5px!important;white-space:nowrap!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-icon-wrap{grid-area:icon!important;width:92px!important;min-width:92px!important;height:104px!important;min-height:104px!important;display:grid!important;place-items:center!important;align-self:center!important;margin:0!important;overflow:hidden!important;border-radius:15px!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-icon-wrap>.item-emblem{width:86px!important;min-width:86px!important;height:98px!important;min-height:98px!important;display:grid!important;place-items:center!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-icon-wrap>.item-emblem :where(img,.item-asset-image){width:82%!important;height:82%!important;max-width:82%!important;max-height:82%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-body{grid-area:body!important;min-width:0!important;min-height:0!important;display:grid!important;grid-template-rows:auto auto!important;align-content:center!important;gap:8px!important;overflow:hidden!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v125-item-tags{display:grid!important;grid-template-columns:1fr!important;align-content:center!important;gap:5px!important;min-width:0!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v125-item-tags small{font-size:9px!important;font-weight:800!important;padding:5px 8px!important;width:100%!important;max-width:100%!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v122-item-quick{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v122-item-value{min-height:29px!important;font-size:8.5px!important;width:100%!important;max-width:100%!important;justify-content:center!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v78-durability{width:100%!important;min-width:0!important;margin:0!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions{grid-area:actions!important;position:static!important;display:grid!important;grid-template-columns:1fr!important;min-height:44px!important;height:44px!important;margin:0!important;overflow:hidden!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v126-card-action{width:100%!important;height:44px!important;min-height:44px!important;font-size:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;overflow:hidden!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v126-card-action img{width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important;object-fit:contain!important}
body.v127-ui .v127-picker-note{margin:0 0 8px!important;padding:8px 10px!important;border:1px solid rgba(215,170,75,.34)!important;border-radius:12px!important;color:#d8c89e!important;background:rgba(48,36,15,.42)!important;font-size:9px!important;line-height:1.35!important}
body.v127-ui .v39-equip-slot.two-hand-ghost{filter:saturate(.2);opacity:.78}
body.v127-ui .v39-equip-slot.two-hand-ghost .v39-slot-icon{filter:grayscale(1) brightness(.7)}
body.v127-ui .v127-slot-legacy{display:block!important;color:#ffd58a!important;font-size:7px!important;font-weight:800!important}
body.v127-ui .v39-equip-slot.two-hand-ghost .v39-slot-item{white-space:normal!important;line-height:1.15!important}
body.v127-ui .v39-equip-slot.legacy-item{box-shadow:inset 0 0 0 1px rgba(244,176,66,.36)!important}
@media(max-width:390px){html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker{grid-template-columns:82px minmax(0,1fr)!important;padding:9px!important;gap:7px 8px!important}html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-icon-wrap{width:82px!important;min-width:82px!important;height:98px!important;min-height:98px!important}html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-icon-wrap>.item-emblem{width:76px!important;min-width:76px!important;height:92px!important;min-height:92px!important}}
/* Friends: one readable mobile column with compact icon-only actions. */
@media(max-width:760px){
  body.v127-ui .v125-friends-screen{padding:8px!important;overflow-y:auto!important}
  body.v127-ui .v125-friends-layout{display:grid!important;grid-template-columns:1fr!important;height:auto!important;gap:9px!important}
  body.v127-ui .v125-friends-pane{min-height:0!important;height:auto!important;padding:10px!important}
  body.v127-ui .v125-friends-pane.local:has(.v125-friends-empty){max-height:210px!important}
  body.v127-ui .v125-friends-scroll{max-height:none!important;overflow:visible!important;padding-right:0!important}
  body.v127-ui .v125-friends-pane.saved .v125-friends-scroll{display:grid!important;gap:7px!important}
  body.v127-ui .v125-friend-card{
    grid-template-columns:58px minmax(0,1fr)!important;
    grid-template-areas:"avatar copy" "avatar actions"!important;
    align-items:center!important;gap:4px 8px!important;padding:8px!important;min-height:104px!important;
  }
  body.v127-ui .v125-friend-card>.v125-friend-avatar{grid-area:avatar!important;width:58px!important;height:68px!important;align-self:center!important}
  body.v127-ui .v125-friend-card>.v125-friend-copy{grid-area:copy!important;align-self:end!important;min-width:0!important}
  body.v127-ui .v125-friend-copy b{font-size:11px!important;line-height:1.08!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.v127-ui .v125-friend-copy small,body.v127-ui .v125-friend-copy em{font-size:7.5px!important;line-height:1.15!important}
  body.v127-ui .v125-friend-actions{
    grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    gap:6px!important;min-width:0!important;align-self:start!important;
  }
  body.v127-ui .v125-friend-actions button{
    flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;
    height:34px!important;min-height:34px!important;padding:5px!important;border-radius:10px!important;
  }
  body.v127-ui .v125-friend-actions button :where(img,svg,.v83-ui-icon){width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important}
}

/* Chat: light blue-lime cards, compact text, fixed time and moderation slots. */
body.v127-ui .v125-chat-drawer{
  background:linear-gradient(165deg,rgba(10,38,42,.985),rgba(12,31,29,.99))!important;
  border-color:rgba(155,205,133,.35)!important;box-shadow:-18px 0 48px rgba(0,0,0,.5)!important;
}
body.v127-ui .v125-chat-drawer .v78-chat-head,
body.v127-ui .v125-chat-drawer .v78-chat-tabs,
body.v127-ui .v125-chat-drawer .v125-chat-bottom{background:rgba(8,29,32,.88)!important}
body.v127-ui .v125-chat-message{
  position:relative!important;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;
  align-items:start!important;gap:8px!important;padding:8px!important;min-height:72px!important;height:auto!important;
  border:1px solid rgba(151,207,139,.3)!important;border-radius:14px!important;
  background:linear-gradient(145deg,rgba(22,58,61,.94),rgba(23,48,37,.92))!important;
  box-shadow:inset 0 0 18px rgba(92,183,165,.045)!important;
}
body.v127-ui .v125-chat-message.mentioned{border-color:rgba(255,105,117,.62)!important;background:linear-gradient(145deg,rgba(77,36,45,.92),rgba(29,48,39,.94))!important}
body.v127-ui .v125-chat-message>.v125-chat-avatar{width:46px!important;height:54px!important;min-width:46px!important;align-self:start!important}
body.v127-ui .v125-chat-message>.v125-chat-content{
  min-width:0!important;min-height:0!important;width:100%!important;display:grid!important;
  grid-template-rows:auto auto!important;align-content:start!important;gap:2px!important;padding-right:42px!important;overflow:visible!important;
}
body.v127-ui .v125-chat-message .v125-chat-head{min-width:0!important;width:100%!important;display:block!important;margin:0!important;padding:0!important}
body.v127-ui .v125-chat-message .v123-chat-meta{min-width:0!important;display:grid!important;gap:1px!important;margin:0!important}
body.v127-ui .v125-chat-message .v123-chat-meta b{
  min-width:0!important;max-width:100%!important;margin:0!important;font-size:11px!important;line-height:1.08!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.v127-ui .v125-chat-message .v123-chat-meta small{margin:0!important;font-size:6.8px!important;line-height:1.1!important;color:rgba(235,242,237,.62)!important}
body.v127-ui .v125-chat-message .v123-chat-text{
  display:block!important;width:100%!important;min-width:0!important;margin:3px 0 0!important;padding:0!important;
  font-size:9.5px!important;line-height:1.3!important;color:rgba(243,248,244,.86)!important;
  white-space:pre-wrap!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:break-word!important;
}
body.v127-ui .v125-chat-message .v123-chat-tail{
  position:absolute!important;right:8px!important;top:8px!important;width:34px!important;height:54px!important;min-width:34px!important;
  display:block!important;margin:0!important;padding:0!important;
}
body.v127-ui .v125-chat-message .v123-chat-tail time{
  position:absolute!important;right:0!important;bottom:0!important;margin:0!important;font-size:6.4px!important;line-height:1!important;white-space:nowrap!important;
}
body.v127-ui .v125-chat-message .v123-chat-delete{
  position:absolute!important;right:0!important;top:0!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;
  padding:6px!important;border-radius:8px!important;
}
body.v127-ui .v125-chat-message .v123-chat-delete :where(img,svg,.v83-ui-icon){width:15px!important;height:15px!important}
body.v127-ui .v125-chat-drawer .v78-chat-scroll{padding:8px 5px 12px!important;gap:7px!important}

/* Events use the same readable card structure as ordinary chat. */
body.v127-ui .v127-event-message{border-color:rgba(100,158,143,.34)!important;background:linear-gradient(145deg,rgba(10,35,36,.96),rgba(5,19,23,.99))!important}
body.v127-ui .v127-event-message.greizar{border-color:rgba(218,159,61,.4)!important;background:linear-gradient(145deg,rgba(55,37,14,.78),rgba(8,22,24,.98))!important}
body.v127-ui .v127-event-avatar img{width:100%!important;height:100%!important;object-fit:contain!important;padding:4px!important}
body.v127-ui .v127-event-message .v123-chat-text strong{color:#efcf79!important}

/* Monster research proposal: one readable identity row, no clipped monster name. */
body.v127-ui .v79-deal-shade{padding:12px!important;display:grid!important;place-items:end center!important;background:rgba(1,9,12,.68)!important;backdrop-filter:blur(5px)!important}
body.v127-ui .v79-monster-deal.v127-monster-deal{
  width:min(94vw,680px)!important;height:auto!important;min-height:0!important;max-height:min(78dvh,620px)!important;
  display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr) auto!important;gap:10px!important;
  padding:12px!important;overflow:auto!important;border-radius:22px!important;border:1px solid rgba(216,176,79,.55)!important;
  background:radial-gradient(circle at 8% 0,rgba(106,145,74,.13),transparent 34%),linear-gradient(145deg,rgba(11,30,31,.99),rgba(7,18,23,.99))!important;
  box-shadow:0 -22px 62px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.04)!important;
}
body.v127-ui .v127-deal-content{display:grid!important;grid-template-columns:126px minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important;min-width:0!important}
body.v127-ui .v79-deal-monster.v127-deal-monster{display:grid!important;grid-template-rows:94px auto!important;gap:7px!important;width:auto!important;height:auto!important;min-width:0!important;text-align:left!important}
body.v127-ui .v127-deal-art{width:100%!important;height:94px!important;min-height:94px!important;display:grid!important;place-items:center!important;padding:5px!important;overflow:hidden!important;border-radius:15px!important;border:1px solid rgba(216,176,79,.3)!important;background:rgba(2,13,17,.76)!important}
body.v127-ui .v127-deal-art :where(img,.monster-asset-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
body.v127-ui .v127-deal-identity{display:grid!important;gap:2px!important;min-width:0!important;padding:0 2px!important}
body.v127-ui .v127-deal-identity small{font-size:7px!important;letter-spacing:.13em!important;color:#d6b75d!important}
body.v127-ui .v127-deal-identity b{display:block!important;font:700 15px/1.12 Georgia,serif!important;color:#f3ead3!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;text-overflow:clip!important}
body.v127-ui .v79-deal-copy.v127-deal-copy{display:grid!important;align-content:center!important;gap:7px!important;min-width:0!important;padding:7px 0!important;overflow:visible!important;max-height:none!important}
body.v127-ui .v127-deal-copy>small{font-size:8px!important;letter-spacing:.15em!important;color:#d9bc65!important}
body.v127-ui .v127-deal-copy>p{min-height:84px!important;max-height:none!important;margin:0!important;font-size:12px!important;line-height:1.48!important;color:#dce4df!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important}
body.v127-ui .v79-deal-actions.v127-deal-actions{grid-column:1!important;width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-self:end!important;min-width:0!important}
body.v127-ui .v127-deal-actions button{width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:8px 10px!important;border-radius:13px!important;font-size:10.5px!important}
@media(max-width:460px){body.v127-ui .v127-deal-content{grid-template-columns:96px minmax(0,1fr)!important;gap:9px!important}body.v127-ui .v79-deal-monster.v127-deal-monster{grid-template-rows:82px auto!important}body.v127-ui .v127-deal-art{height:82px!important;min-height:82px!important}body.v127-ui .v127-deal-copy>p{font-size:10.5px!important;line-height:1.42!important;min-height:76px!important}}

/* Mobile settings: game-styled device options only, no desktop-only chat control. */
body.v127-ui .v92-settings.v127-settings{width:min(100%,720px)!important;margin:0 auto!important;display:grid!important;gap:10px!important}
body.v127-ui .v92-settings-hero.v127-settings-hero{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;padding:14px!important;border-radius:19px!important;border:1px solid rgba(215,170,75,.34)!important;background:radial-gradient(circle at 0 0,rgba(104,179,130,.14),transparent 44%),linear-gradient(145deg,rgba(10,35,35,.96),rgba(5,19,23,.98))!important}
body.v127-ui .v127-settings-emblem{width:58px!important;height:58px!important;display:grid!important;place-items:center!important;padding:11px!important;border-radius:16px!important;border:1px solid rgba(215,170,75,.38)!important;background:rgba(3,17,20,.75)!important}
body.v127-ui .v127-settings-emblem :where(img,.v83-ui-icon){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v127-settings-hero>div{min-width:0!important;display:grid!important;gap:2px!important}
body.v127-ui .v127-settings-hero small{font-size:7px!important;letter-spacing:.15em!important;color:#d5b65f!important}
body.v127-ui .v127-settings-hero h2{margin:0!important;font:700 20px/1.08 Georgia,serif!important}
body.v127-ui .v127-settings-hero p{margin:3px 0 0!important;font-size:9px!important;line-height:1.35!important;color:rgba(232,238,235,.58)!important}
body.v127-ui .v127-settings-group{display:grid!important;gap:7px!important;padding:10px!important;border-radius:18px!important;border:1px solid rgba(215,170,75,.24)!important;background:rgba(5,21,24,.83)!important}
body.v127-ui .v127-settings-group>header{display:grid!important;gap:2px!important;padding:2px 3px 5px!important;border-bottom:1px solid rgba(255,255,255,.06)!important}
body.v127-ui .v127-settings-group>header small{font-size:7px!important;letter-spacing:.14em!important;color:#7dd7bd!important}
body.v127-ui .v127-settings-group>header b{font-size:11px!important;color:#e7e6d9!important}
body.v127-ui .v92-setting-row.v127-setting-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) 46px!important;align-items:center!important;gap:9px!important;padding:9px!important;border-radius:14px!important;border:1px solid rgba(255,255,255,.065)!important;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012))!important}
body.v127-ui .v127-setting-icon{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;padding:8px!important;border-radius:12px!important;border:1px solid rgba(215,170,75,.24)!important;background:rgba(2,15,18,.7)!important}
body.v127-ui .v127-setting-icon :where(img,.v83-ui-icon){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v127-setting-row>div{min-width:0!important;display:grid!important;gap:2px!important}
body.v127-ui .v127-setting-row>div b{font-size:10px!important;line-height:1.15!important}
body.v127-ui .v127-setting-row>div small{font-size:7.5px!important;line-height:1.3!important;color:rgba(232,238,235,.52)!important}
body.v127-ui .v127-setting-row .v92-switch{width:46px!important;min-width:46px!important;height:27px!important;min-height:27px!important;padding:3px!important;border-radius:999px!important;background:#26343a!important}
body.v127-ui .v127-setting-row .v92-switch i{width:21px!important;height:21px!important}
body.v127-ui .v127-setting-row .v92-switch.active i{transform:translateX(19px)!important}
body.v127-ui .v127-settings-account{display:grid!important;grid-template-columns:40px minmax(0,1fr) 78px!important;align-items:center!important;gap:9px!important;padding:10px!important;border-radius:16px!important;border:1px solid rgba(217,83,100,.26)!important;background:linear-gradient(135deg,rgba(63,21,29,.64),rgba(18,10,14,.88))!important}
body.v127-ui .v127-settings-account>span{width:40px!important;height:40px!important;padding:8px!important;border-radius:11px!important;background:rgba(217,83,100,.09)!important}
body.v127-ui .v127-settings-account>div{display:grid!important;gap:2px!important;min-width:0!important}
body.v127-ui .v127-settings-account b{font-size:10px!important}.v127-ui .v127-settings-account small{font-size:7.5px!important;color:rgba(238,220,223,.56)!important}
body.v127-ui .v127-settings-account button{width:78px!important;height:36px!important;min-height:36px!important;padding:5px 8px!important;border-radius:11px!important;font-size:9px!important}

/* Accepted quest cards: no text can escape or cover the giver name. */
body.v127-ui .v80-quest-card{
  display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:start!important;
  gap:10px!important;height:auto!important;min-height:150px!important;padding:10px!important;overflow:hidden!important;
}
body.v127-ui .v80-quest-giver{width:72px!important;min-width:72px!important;height:92px!important;overflow:hidden!important}
body.v127-ui .v80-quest-giver :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v80-quest-copy{min-width:0!important;display:grid!important;gap:7px!important;overflow:hidden!important}
body.v127-ui .v80-quest-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:start!important}
body.v127-ui .v80-quest-head h2{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.16!important;margin:0!important}
body.v127-ui .v80-quest-copy p,body.v127-ui .v80-quest-copy small,body.v127-ui .v92-quest-reward span{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.35!important}
body.v127-ui .v92-quest-reward{min-width:0!important;height:auto!important;align-items:start!important}

/* Ability-target overlay ONLY. Main monster selection and attack cards are untouched. */
body.v127-ui .v106-target-backdrop{padding:12px!important;background:rgba(1,10,13,.74)!important;backdrop-filter:blur(7px)!important}
body.v127-ui .v106-target-dialog.v127-target-dialog{
  width:min(92vw,560px)!important;max-height:min(82dvh,690px)!important;padding:12px!important;border-radius:20px!important;overflow:hidden!important;
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;
  border:1px solid rgba(221,178,77,.58)!important;background:radial-gradient(circle at 12% 0,rgba(67,125,101,.14),transparent 34%),linear-gradient(155deg,rgba(8,31,33,.99),rgba(5,17,22,.99))!important;
  box-shadow:0 26px 70px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.04)!important;
}
body.v127-ui .v127-target-dialog>header{display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;align-items:center!important;gap:10px!important;padding:0 0 8px!important;border-bottom:0!important;min-width:0!important}
body.v127-ui .v127-target-title{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;min-width:0!important}
body.v127-ui .v127-target-title>:first-child{width:46px!important;height:46px!important;padding:5px!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(215,170,75,.28)!important}
body.v127-ui .v127-target-title>span{display:grid!important;gap:2px!important;min-width:0!important}
body.v127-ui .v127-target-title small{font-size:7px!important;letter-spacing:.13em!important;color:#d8b95e!important}
body.v127-ui .v127-target-title b{font:700 18px/1.05 Georgia,serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v127-target-close{position:static!important;width:40px!important;height:40px!important;min-height:40px!important;padding:8px!important;border-radius:12px!important;align-self:start!important}
body.v127-ui .v127-target-dialog>p{margin:0 0 9px!important;padding-top:8px!important;border-top:1px solid rgba(215,170,75,.2)!important;font-size:9.5px!important;line-height:1.3!important;color:rgba(232,238,235,.62)!important}
body.v127-ui .v106-target-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;overflow-y:auto!important;min-height:0!important;padding:1px 2px 2px!important;overscroll-behavior:contain!important}
body.v127-ui .v106-target-card.v127-target-card{
  display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;
  min-width:0!important;width:100%!important;min-height:118px!important;padding:9px!important;border-radius:15px!important;
  border:1px solid rgba(215,170,75,.28)!important;background:linear-gradient(145deg,rgba(12,37,39,.95),rgba(7,20,24,.98))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018)!important;transition:transform .14s ease,border-color .14s ease,background .14s ease!important;
}
body.v127-ui .v106-target-card.v127-target-card:active{transform:scale(.988)!important;border-color:rgba(237,204,112,.75)!important}
body.v127-ui .v106-target-card.enemy.v127-target-card{border-color:rgba(221,94,107,.3)!important;background:linear-gradient(145deg,rgba(51,22,28,.76),rgba(8,22,25,.98))!important}
body.v127-ui .v106-target-art.v127-target-art{width:66px!important;height:94px!important;align-self:center!important;display:grid!important;place-items:center!important;overflow:hidden!important;padding:4px!important;border-radius:13px!important;background:rgba(2,13,17,.72)!important;border:1px solid rgba(215,170,75,.3)!important}
body.v127-ui .v106-target-card.enemy .v127-target-art{border-color:rgba(224,94,108,.34)!important}
body.v127-ui .v127-target-art :where(img,.class-asset-image,.battle-monster-art){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
body.v127-ui .v106-target-copy.v127-target-copy{min-width:0!important;display:grid!important;grid-template-rows:auto auto 31px!important;gap:6px!important;align-content:center!important}
body.v127-ui .v127-target-head{display:block!important;min-width:0!important}
body.v127-ui .v127-target-head>b{display:block!important;font-size:13px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v127-target-bars{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;min-width:0!important}
body.v127-ui .v106-target-card.enemy .v127-target-bars{grid-template-columns:minmax(0,220px)!important}
body.v127-ui .v106-target-resource{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;align-items:center!important;min-width:0!important}
body.v127-ui .v106-target-resource>span{display:grid!important;grid-template-columns:24px auto!important;justify-content:start!important;gap:6px!important;align-items:center!important;white-space:nowrap!important;font-size:7.5px!important}
body.v127-ui .v106-target-resource>span i{font-style:normal!important;font-weight:800!important;color:#ff8b91!important}
body.v127-ui .v106-target-resource.mp>span i{color:#6fdaf2!important}
body.v127-ui .v106-target-resource>span strong{font-size:8.5px!important;color:#e9eeee!important}
body.v127-ui .v106-target-resource>em{display:block!important;width:100%!important;height:6px!important;min-width:0!important;border-radius:999px!important;overflow:hidden!important;background:rgba(255,255,255,.09)!important}
body.v127-ui .v106-target-resource>em>u{display:block!important;height:100%!important;border-radius:inherit!important;background:#ef6d74!important}
body.v127-ui .v106-target-resource.mp>em>u{background:#61cee8!important}
body.v127-ui .v127-target-footer{display:grid!important;grid-template-columns:minmax(0,1fr) 70px!important;align-items:center!important;gap:8px!important;min-width:0!important;min-height:32px!important;height:32px!important;padding-bottom:1px!important}
body.v127-ui .v118-target-effects{min-width:0!important;width:100%!important;min-height:30px!important;height:30px!important;display:flex!important;align-items:center!important;gap:5px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 4px!important;box-sizing:border-box!important}
body.v127-ui .v118-target-effects>:where(button,span){flex:0 0 22px!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;margin:0!important}
body.v127-ui .v127-target-no-effects{flex:1 1 auto!important;width:auto!important;min-width:0!important;height:auto!important;color:rgba(232,238,235,.42)!important;font-size:7px!important;white-space:nowrap!important}
body.v127-ui .v127-target-select{height:25px!important;display:grid!important;place-items:center!important;border-radius:8px!important;border:1px solid rgba(215,170,75,.34)!important;background:rgba(47,43,24,.72)!important;font-style:normal!important;font-size:7.5px!important;font-weight:800!important;white-space:nowrap!important;color:#ead17d!important}
@media(max-width:430px){body.v127-ui .v127-target-bars{grid-template-columns:1fr!important}body.v127-ui .v106-target-card.v127-target-card{min-height:132px!important}.v127-ui .v127-target-footer{grid-template-columns:minmax(0,1fr) 62px!important}}
/* Battle viewport: every player and monster keeps the same full card; rosters scroll vertically. */
@media(max-width:760px){
  body.v127-ui.v111-battle-active{height:var(--v124-viewport-height,100dvh)!important;min-height:var(--v124-viewport-height,100dvh)!important;padding:0!important;overflow:hidden!important}
  body.v127-ui.v111-battle-active #app{height:var(--v124-viewport-height,100dvh)!important;min-height:0!important;display:grid!important;grid-template-rows:calc(var(--v127-battle-head) + var(--v127-safe-top)) minmax(0,1fr)!important;overflow:hidden!important}
  body.v127-ui.v111-battle-active .v79-battle-header{grid-row:1!important;height:calc(var(--v127-battle-head) + var(--v127-safe-top))!important;min-height:calc(var(--v127-battle-head) + var(--v127-safe-top))!important;max-height:none!important;padding:calc(6px + var(--v127-safe-top)) 10px 6px!important;box-sizing:border-box!important;overflow:hidden!important}
  html body.v127-ui.v111-battle-active main.v101-battle.v79-battle{grid-row:2!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:70px 190px minmax(0,1fr) 46px!important;align-content:stretch!important;gap:var(--v127-battle-gap)!important;padding:7px 8px max(5px,var(--v127-safe-bottom))!important;overflow:hidden!important}
  html body.v127-ui.v111-battle-active main.v101-battle.v79-battle>section.v101-combat-board{position:relative!important;grid-row:2!important;height:190px!important;min-height:190px!important;max-height:190px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;gap:7px!important;overflow:hidden!important;margin:0!important;transform:none!important}
  html body.v127-ui.v111-battle-active .v101-combat-board>.v101-roster{height:190px!important;min-height:190px!important;max-height:190px!important;min-width:0!important;display:grid!important;grid-template-rows:34px minmax(0,1fr)!important;align-content:stretch!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
  html body.v127-ui.v111-battle-active .v101-roster>.v101-roster-head{height:34px!important;min-height:34px!important;max-height:34px!important;padding:6px 9px!important;box-sizing:border-box!important}
  html body.v127-ui.v111-battle-active .v101-roster>.v101-roster-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:5px!important;box-sizing:border-box!important;overscroll-behavior:contain!important;touch-action:pan-y!important;display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:144px!important;align-content:start!important;gap:6px!important;scroll-snap-type:y proximity!important}
  html body.v127-ui.v111-battle-active .v101-roster-scroll>.v101-unit-card{scroll-snap-align:start!important}
  html body.v127-ui.v111-battle-active .v101-player-card{width:100%!important;height:144px!important;min-height:144px!important;max-height:144px!important;display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;grid-template-rows:108px 22px!important;grid-template-areas:"art body" "effects effects"!important;gap:2px 7px!important;padding:6px!important;overflow:hidden!important}
  html body.v127-ui.v111-battle-active .v101-player-card>.v101-unit-art{grid-area:art!important;width:62px!important;min-width:62px!important;height:102px!important;min-height:102px!important;align-self:center!important;overflow:hidden!important}
  html body.v127-ui.v111-battle-active .v101-player-card>.v101-unit-art :where(img,.class-asset-image){width:94%!important;height:94%!important;max-width:94%!important;max-height:94%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important}
  html body.v127-ui.v111-battle-active .v101-player-card>.v101-unit-body{grid-area:body!important;min-width:0!important;display:grid!important;grid-template-rows:30px minmax(0,1fr)!important;align-content:stretch!important;gap:7px!important;padding:2px 0!important;overflow:hidden!important}
  html body.v127-ui.v111-battle-active .v101-player-card .v101-unit-name h3{font-size:10px!important;line-height:1.1!important}
  html body.v127-ui.v111-battle-active .v101-player-card .v79-stat-row span{font-size:8px!important}
  html body.v127-ui.v111-battle-active .v101-player-card .v79-stat-row>div{height:7px!important}
  html body.v127-ui.v111-battle-active .v101-monster-card{width:100%!important;height:144px!important;min-height:144px!important;max-height:144px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:20px 56px 22px 26px!important;grid-template-areas:"body" "art" "hp" "effects"!important;align-content:stretch!important;gap:2px!important;padding:6px!important;overflow:hidden!important;transform:none!important}
  html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-body{grid-area:body!important;position:static!important;inset:auto!important;min-width:0!important;width:100%!important;height:20px!important;display:block!important;overflow:hidden!important;text-align:center!important}
  html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-art{grid-area:art!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:122px!important;height:56px!important;min-height:56px!important;max-height:56px!important;justify-self:center!important;align-self:center!important;overflow:hidden!important;transform:none!important}
  html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art :where(img,.class-asset-image){width:94%!important;height:94%!important;max-width:94%!important;max-height:94%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important}
  html body.v127-ui.v111-battle-active .v101-monster-card>.v101-resource{grid-area:hp!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;height:22px!important;align-self:center!important;transform:none!important}
  html body.v127-ui.v111-battle-active .v101-player-card>.v101-unit-effects{grid-area:effects!important;box-sizing:border-box!important;width:100%!important;height:24px!important;min-height:24px!important;max-height:24px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;padding:2px 3px!important;overflow-x:auto!important;overflow-y:hidden!important}
  html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-effects{grid-area:effects!important;position:static!important;inset:auto!important;box-sizing:border-box!important;width:100%!important;height:26px!important;min-height:26px!important;max-height:26px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;padding:2px 3px!important;overflow-x:auto!important;overflow-y:hidden!important;transform:none!important}
  html body.v127-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v106-effect-asset.v113-effect-asset{position:relative!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;margin:0!important;padding:1px!important;border-radius:7px!important;overflow:hidden!important}
  html body.v127-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v113-effect-icon{width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;max-height:16px!important}
  html body.v127-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v113-effect-icon :where(img,svg,*){width:15px!important;min-width:15px!important;max-width:15px!important;height:15px!important;min-height:15px!important;max-height:15px!important;object-fit:contain!important}
  html body.v127-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v113-effect-turns{right:0!important;bottom:0!important;top:auto!important;left:auto!important;width:9px!important;min-width:9px!important;max-width:9px!important;height:9px!important;min-height:9px!important;max-height:9px!important;padding:0!important;font:900 6px/8px Arial,sans-serif!important}
  html body.v127-ui.v111-battle-active main.v101-battle.v79-battle>section.v101-battle-log{position:relative!important;grid-row:3!important;display:grid!important;grid-template-rows:38px minmax(0,1fr)!important;height:auto!important;min-height:0!important;max-height:none!important;align-self:stretch!important;margin:0!important;overflow:hidden!important;border-radius:17px!important}
  html body.v127-ui.v111-battle-active .v101-battle-log>.v79-log-head{height:38px!important;min-height:38px!important;max-height:38px!important;box-sizing:border-box!important}
  html body.v127-ui.v111-battle-active .v101-battle-log>.battle-log-scroll{height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;padding:6px 8px 8px!important}
  html body.v127-ui.v111-battle-active main.v101-battle.v79-battle>#support-drawer-open.v115-support-under-log{grid-row:4!important;position:relative!important;inset:auto!important;width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:5px 8px!important;transform:none!important;box-sizing:border-box!important;touch-action:pan-x!important}
  html body.v127-ui.v111-battle-active .v108-swipe-handle.side{top:var(--v111-side-handle-top,220px)!important;bottom:auto!important;z-index:64!important;touch-action:pan-y!important;user-select:none!important;-webkit-user-select:none!important}
  html body.v127-ui.v111-battle-active #skills-drawer-open.v108-swipe-handle.side{width:64px!important;min-width:64px!important;max-width:64px!important;height:48px!important;min-height:48px!important;max-height:48px!important;display:grid!important;grid-template-columns:32px 16px!important;grid-template-rows:1fr!important;place-items:center!important;gap:3px!important;padding:5px 7px 5px 5px!important}
  html body.v127-ui.v111-battle-active #skills-drawer-open .v111-handle-icon{grid-column:1!important;grid-row:1!important;width:30px!important;height:30px!important}
  html body.v127-ui.v111-battle-active #skills-drawer-open .v111-handle-icon img{width:27px!important;height:27px!important;max-width:27px!important;max-height:27px!important}
  html body.v127-ui.v111-battle-active #skills-drawer-open .v108-chevron{grid-column:2!important;grid-row:1!important;font-size:18px!important}
  html body.v127-ui.v111-battle-active [data-drawer-grip="left"],html body.v127-ui.v111-battle-active [data-drawer-grip="right"]{touch-action:pan-y!important}
  html body.v127-ui.v111-battle-active [data-drawer-grip="support"]{touch-action:pan-x!important}
}
/* A closed drawer is hidden, but a drawer currently following the finger must remain visible. */
body.v127-ui .v102-skill-drawer:not(.open):not(.v111-gesture-visible),
body.v127-ui .v79-chat-drawer:not(.open):not(.v111-gesture-visible),
body.v127-ui .v81-support-drawer:not(.open):not(.v111-gesture-visible){pointer-events:none!important;visibility:hidden!important}
body.v127-ui .v102-skill-drawer.open,
body.v127-ui .v79-chat-drawer.open,
body.v127-ui .v81-support-drawer.open{pointer-events:auto!important;visibility:visible!important}
body.v127-ui .v102-skill-drawer.v111-gesture-visible,
body.v127-ui .v79-chat-drawer.v111-gesture-visible,
body.v127-ui .v81-support-drawer.v111-gesture-visible{pointer-events:none!important;visibility:visible!important}


/* ========================================================================== */
/* v127.4 ADDITIONS — new research and admin components only */
/* ========================================================================== */

/* Monster research locks. */
body.v127-ui .v127-research-lock{min-height:112px!important;display:grid!important;align-content:center!important}
body.v127-ui .v127-research-lock p{margin:4px 0 0!important;line-height:1.38!important}
body.v127-ui .v127-research-disabled{display:grid!important;place-items:center!important;min-height:44px!important;color:#d6a962!important}

/* Ability actions: remove old +/- pseudo buttons and restore readable proportions. */
body.v127-ui .v119-ability-card .row-actions{display:block!important;width:100%!important;min-width:0!important}
body.v127-ui .v119-ability-card .row-actions button{
  width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;
  padding:7px 12px!important;border-radius:11px!important;font-size:10px!important;line-height:1!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
}
body.v127-ui .v119-ability-card .row-actions button::before,
body.v127-ui .v119-ability-card .row-actions button::after{content:none!important;display:none!important}

/* Admin: clearly distinguish system quest loot and disabled rows. */
body.v127-ui .v127-admin-quest-loot{border-color:rgba(102,213,177,.34)!important;background:linear-gradient(145deg,rgba(7,43,38,.62),rgba(5,20,23,.96))!important}
body.v127-ui .v127-admin-quest-loot.disabled{opacity:.58!important;filter:saturate(.55)!important}
body.v127-ui .v127-loot-kind{display:grid!important;gap:2px!important;min-width:0!important}
body.v127-ui .v127-loot-kind b{font-size:10px!important}
body.v127-ui .v127-loot-kind small{font-size:7px!important;color:rgba(235,239,236,.52)!important}


/* ========================================================================== */
/* v127.5 CONSOLIDATION — profile, equipment, inventory controls and effects */
/* ========================================================================== */

/* Profile identity: nickname and the one-time rename control form one centered group. */
body.v127-ui .v119-profile-layout .v39-profile-hero .v39-hero-info{
  min-width:0!important;width:100%!important;justify-self:stretch!important;text-align:center!important;
}
body.v127-ui .v119-profile-layout .v39-profile-hero .v76-profile-name-line{
  width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;margin:0 auto!important;text-align:center!important;
}
body.v127-ui .v119-profile-layout .v39-profile-hero .v95-expand-name{
  min-width:0!important;max-width:calc(100% - 42px)!important;margin:0!important;padding:0!important;
  display:block!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;text-align:center!important;
}
body.v127-ui .v119-profile-layout .v39-profile-hero .v95-expand-name span{
  display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.v127-ui .v119-profile-layout .v39-profile-hero .v76-rename-button{
  flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  margin:0!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:11px!important;
  border:1px solid rgba(215,174,83,.42)!important;background:linear-gradient(145deg,rgba(34,52,51,.96),rgba(8,21,24,.98))!important;
  color:#e8cb7b!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 5px 12px rgba(0,0,0,.2)!important;
}
body.v127-ui .v119-profile-layout .v39-profile-hero .v76-rename-button span{font-size:17px!important;line-height:1!important;transform:translateY(-1px)!important}
body.v127-ui .v119-profile-layout .v39-profile-hero .v76-rename-button:disabled{opacity:.35!important;filter:grayscale(.75)!important}
body.v127-ui .v119-profile-layout .v39-profile-hero .v39-hero-info>p{text-align:center!important;margin-inline:auto!important}

/* Profile equipment: one compact three-column visual system with visible labels and no inherited square crop. */
body.v127-ui .v119-equipment-panel{
  padding:11px!important;border-radius:20px!important;overflow:hidden!important;
  background:linear-gradient(180deg,rgba(5,24,27,.98),rgba(3,15,19,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(223,183,87,.08),0 12px 28px rgba(0,0,0,.18)!important;
}
body.v127-ui .v119-equipment-panel .v39-panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 9px!important}
body.v127-ui .v119-equipment-panel .v39-panel-head h2{margin:0!important}
body.v127-ui .v119-equipment-panel .v39-slot-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;align-items:stretch!important;
}
body.v127-ui .v119-equipment-panel .v39-equip-slot{
  position:relative!important;isolation:isolate!important;aspect-ratio:auto!important;width:100%!important;height:142px!important;min-height:142px!important;max-height:142px!important;
  padding:7px 6px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:16px 78px 26px 12px!important;
  grid-template-areas:"label" "icon" "item" "rarity"!important;align-items:center!important;justify-items:center!important;gap:1px!important;
  border-radius:15px!important;text-align:center!important;overflow:hidden!important;
  border:1px solid rgba(176,145,75,.34)!important;background:radial-gradient(circle at 50% 35%,rgba(46,72,66,.28),transparent 52%),linear-gradient(160deg,rgba(12,32,34,.98),rgba(4,17,21,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.018),inset 0 -24px 40px rgba(0,0,0,.18)!important;
}
body.v127-ui .v119-equipment-panel .v39-equip-slot::before{
  content:""!important;display:block!important;position:absolute!important;z-index:-1!important;left:14%!important;right:14%!important;bottom:34px!important;height:18px!important;
  border-radius:50%!important;background:radial-gradient(ellipse,rgba(207,169,77,.16),transparent 68%)!important;pointer-events:none!important;
}
body.v127-ui .v119-equipment-panel .v39-equip-slot.rarity-uncommon{border-color:rgba(78,160,102,.58)!important;background:radial-gradient(circle at 50% 35%,rgba(55,132,83,.22),transparent 52%),linear-gradient(160deg,rgba(9,46,34,.96),rgba(4,19,22,.99))!important}
body.v127-ui .v119-equipment-panel .v39-equip-slot.rarity-rare{border-color:rgba(66,131,196,.62)!important;background:radial-gradient(circle at 50% 35%,rgba(53,105,160,.24),transparent 52%),linear-gradient(160deg,rgba(7,34,58,.96),rgba(4,18,23,.99))!important}
body.v127-ui .v119-equipment-panel .v39-equip-slot.rarity-epic{border-color:rgba(190,65,139,.72)!important;background:radial-gradient(circle at 50% 35%,rgba(161,38,109,.28),transparent 55%),linear-gradient(160deg,rgba(72,12,49,.96),rgba(20,8,24,.99))!important}
body.v127-ui .v119-equipment-panel .v39-equip-slot.rarity-legendary{border-color:rgba(221,148,52,.76)!important;background:radial-gradient(circle at 50% 35%,rgba(206,115,32,.28),transparent 55%),linear-gradient(160deg,rgba(75,37,8,.96),rgba(23,13,5,.99))!important}
body.v127-ui .v119-equipment-panel .v39-slot-name{
  grid-area:label!important;width:100%!important;min-width:0!important;margin:0!important;color:rgba(230,222,199,.62)!important;
  font:700 7px/1.05 system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;text-align:center!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.v127-ui .v119-equipment-panel .v39-slot-icon{
  grid-area:icon!important;width:70px!important;height:76px!important;min-width:70px!important;min-height:76px!important;margin:0!important;padding:5px!important;
  display:grid!important;place-items:center!important;border-radius:14px!important;border:1px solid rgba(207,168,78,.32)!important;
  background:linear-gradient(180deg,rgba(3,13,17,.92),rgba(7,22,25,.86))!important;box-shadow:inset 0 0 18px rgba(0,0,0,.45)!important;overflow:hidden!important;
}
body.v127-ui .v119-equipment-panel .v39-slot-icon :where(img,svg,.item-asset-image,.class-asset-image){
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;margin:auto!important;transform:none!important;
}
body.v127-ui .v119-equipment-panel .v39-slot-item{
  grid-area:item!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;align-self:center!important;
  color:#f1efe7!important;font:700 8.5px/1.08 system-ui,sans-serif!important;text-align:center!important;
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;
}
body.v127-ui .v119-equipment-panel .v77-slot-rarity{
  grid-area:rarity!important;position:static!important;align-self:end!important;max-width:100%!important;margin:0!important;padding:1px 5px!important;
  border-radius:999px!important;background:rgba(0,0,0,.28)!important;color:#b6d47b!important;font:700 6.5px/1.2 system-ui,sans-serif!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.v127-ui .v119-equipment-panel .v77-slot-effects{display:none!important}
body.v127-ui .v119-equipment-panel .v127-slot-legacy{position:absolute!important;z-index:4!important;left:5px!important;right:5px!important;bottom:4px!important;font-size:6.3px!important;text-align:center!important}
body.v127-ui .v119-equipment-panel .v39-equip-slot.empty .v39-slot-icon{opacity:.58!important;filter:saturate(.45)!important}
body.v127-ui .v119-equipment-panel .v39-equip-slot.empty .v39-slot-item{color:rgba(224,228,222,.44)!important;font-weight:600!important}

/* Inventory search/filter visibility must beat old item-card display!important declarations. */
body.v127-ui .v119-inventory-list>.v119-item-card.v127-filtered-out,
body.v127-ui .v119-inventory-list>.v119-item-card[hidden]{display:none!important}
body.v127-ui .v119-inventory-list>.v127-filter-empty{grid-column:1/-1!important;min-height:96px!important;margin:0!important}
body.v127-ui .v119-inventory-tabs button[aria-pressed="true"]{pointer-events:auto!important}
body.v127-ui .v119-inventory-tools input{pointer-events:auto!important;touch-action:manipulation!important}

@media(max-width:760px){
  body.v127-ui .v119-profile-layout .v39-profile-hero .v39-hero-info{align-self:center!important}
  body.v127-ui .v119-profile-layout .v39-profile-hero .v95-expand-name span{font-size:24px!important;line-height:1.05!important}
  body.v127-ui .v119-equipment-panel{padding:9px 8px 10px!important}
  body.v127-ui .v119-equipment-panel .v39-slot-grid{gap:6px!important}
  body.v127-ui .v119-equipment-panel .v39-equip-slot{height:136px!important;min-height:136px!important;max-height:136px!important;grid-template-rows:15px 73px 26px 11px!important;padding:6px 5px!important}
  body.v127-ui .v119-equipment-panel .v39-slot-icon{width:66px!important;height:71px!important;min-width:66px!important;min-height:71px!important}
  body.v127-ui .v119-equipment-panel .v39-slot-item{font-size:8px!important}

}

/* v127.9 metadata contract: one badge normally, two centred rows for materials. */
html body.v127-ui .v119-inventory-list>.v124-item-card .v127-item-primary-tag,
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v127-item-primary-tag{width:100%!important;max-width:100%!important;text-align:center!important;font-size:8px!important;font-weight:800!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v127-material-tags,
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v127-material-tags{display:grid!important;grid-template-columns:1fr!important;align-content:center!important;justify-items:stretch!important;gap:5px!important;width:100%!important;min-width:0!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v127-material-kind,
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v127-material-kind{display:grid!important;place-items:center!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:4px 6px!important;border:1px solid rgba(215,170,75,.24)!important;border-radius:9px!important;background:rgba(8,27,29,.68)!important;color:#d8d9d1!important;font-size:7.5px!important;font-weight:700!important;line-height:1.1!important;text-align:center!important;white-space:nowrap!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .v122-item-quick:empty,
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v122-item-quick:empty{display:none!important}


/* ==========================================================================\n   v127.10 consolidated component ownership\n   ========================================================================== */

/* Full item details: denser information, rarity surface, icon-backed facts. */
body.v127-ui .v122-item-modal .modal{width:min(94vw,650px)!important;max-height:min(88dvh,780px)!important;padding:14px!important}
body.v127-ui .v122-item-modal .modal>h1{font-size:27px!important;line-height:1.02!important;margin:0 52px 10px 0!important}
body.v127-ui .v122-item-detail-card{gap:10px!important;padding:10px!important;border-radius:20px!important;background:linear-gradient(155deg,rgba(15,30,35,.98),rgba(6,17,21,.99))!important}
body.v127-ui .v122-item-detail-card.rarity-uncommon{background:radial-gradient(circle at 16% 10%,rgba(62,150,87,.17),transparent 35%),linear-gradient(155deg,rgba(10,39,30,.98),rgba(5,18,21,.99))!important}
body.v127-ui .v122-item-detail-card.rarity-rare{background:radial-gradient(circle at 16% 10%,rgba(55,119,185,.2),transparent 35%),linear-gradient(155deg,rgba(8,31,52,.98),rgba(5,18,23,.99))!important}
body.v127-ui .v122-item-detail-card.rarity-epic{background:radial-gradient(circle at 16% 10%,rgba(175,45,122,.2),transparent 36%),linear-gradient(155deg,rgba(60,13,44,.98),rgba(17,8,22,.99))!important}
body.v127-ui .v122-item-detail-card.rarity-legendary,
body.v127-ui .v122-item-detail-card.rarity-mythic{background:radial-gradient(circle at 16% 10%,rgba(213,126,35,.21),transparent 36%),linear-gradient(155deg,rgba(66,34,9,.98),rgba(20,12,5,.99))!important}
body.v127-ui .v122-item-detail-head{grid-template-columns:150px minmax(0,1fr)!important;gap:13px!important;padding:12px!important;min-height:188px!important;border-radius:17px!important}
body.v127-ui .v122-item-detail-head .v97-item-detail-icon{width:150px!important;height:164px!important;min-width:150px!important;min-height:164px!important;padding:10px!important}
body.v127-ui .v122-item-detail-copy{align-content:center!important;gap:6px!important;min-width:0!important}
body.v127-ui .v122-item-detail-copy>small{justify-self:start!important;font-size:8px!important;padding:4px 9px!important}
body.v127-ui .v122-item-detail-copy h2{margin:0!important;font-size:27px!important;line-height:1.02!important;letter-spacing:-.02em!important;overflow-wrap:anywhere!important}
body.v127-ui .v122-item-detail-copy p{margin:0!important;font-size:10px!important;line-height:1.42!important;color:rgba(233,238,234,.62)!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:5!important;overflow:hidden!important}
body.v127-ui .v122-item-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:8px!important}
body.v127-ui .v122-item-facts>div{min-height:66px!important;padding:8px 10px!important;display:grid!important;place-items:center!important;text-align:center!important;border-radius:13px!important}
body.v127-ui .v122-item-facts>div.has-icon{grid-template-columns:36px minmax(0,1fr)!important;place-items:center start!important;text-align:left!important;gap:8px!important}
body.v127-ui .v127-fact-icon{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;padding:6px!important;border-radius:11px!important;background:rgba(215,170,75,.08)!important;border:1px solid rgba(215,170,75,.16)!important}
body.v127-ui .v127-fact-icon :where(img,svg,.v83-ui-icon){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v122-item-facts>div>span:last-child{min-width:0!important;display:grid!important;gap:3px!important}
body.v127-ui .v122-item-facts small{font-size:7px!important}
body.v127-ui .v122-item-facts b{font-size:11px!important;line-height:1.18!important;overflow-wrap:anywhere!important}
body.v127-ui .v127-item-attributes{display:grid!important;gap:8px!important;padding:10px!important;border:1px solid rgba(117,218,177,.25)!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(23,70,58,.18),rgba(5,20,23,.72))!important}
body.v127-ui .v127-item-attributes>header{display:flex!important;align-items:center!important;gap:8px!important}
body.v127-ui .v127-item-attributes>header>span{width:36px!important;height:36px!important;padding:6px!important;border-radius:11px!important;background:rgba(103,216,176,.08)!important}
body.v127-ui .v127-item-attributes>header img{width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v127-item-attributes>header small{display:block!important;font-size:7px!important;letter-spacing:.14em!important;color:#7bdbbb!important}
body.v127-ui .v127-item-attributes h3{margin:1px 0 0!important;font-size:15px!important}
body.v127-ui .v127-item-attributes>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
body.v127-ui .v127-item-attributes>div>span{min-width:0!important;min-height:48px!important;display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;padding:6px!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:12px!important;background:rgba(255,255,255,.025)!important}
body.v127-ui .v127-item-attributes>div>span>img{width:30px!important;height:30px!important;object-fit:contain!important;padding:4px!important}
body.v127-ui .v127-item-attributes>div small{font-size:8px!important;color:rgba(235,239,235,.68)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v127-item-attributes>div b{font-size:12px!important;color:#91efc4!important}
body.v127-ui .v127-item-attributes>p{margin:0!important;font-size:7.5px!important;color:rgba(232,238,234,.48)!important}
body.v127-ui .v127-item-attributes.compact{display:none!important}
body.v127-ui .v42-attr-big em{font-size:9px!important;font-style:normal!important;color:#7ce0bb!important}

/* Equipment picker: one stable card layout without overlaps. */
body.v127-ui .v98-picker-modal .modal{width:min(94vw,690px)!important;max-height:88dvh!important;padding:12px!important}
body.v127-ui .v98-picker-modal .v93-picker-list{gap:9px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker{height:238px!important;min-height:238px!important;max-height:238px!important;grid-template-columns:136px minmax(0,1fr)!important;grid-template-rows:34px 1fr 50px!important;grid-template-areas:"head head" "icon body" "actions actions"!important;gap:8px 11px!important;padding:10px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v39-item-icon-wrap{width:136px!important;height:132px!important;min-width:136px!important;min-height:132px!important;padding:8px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v39-item-body{align-content:center!important;gap:7px!important;min-width:0!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v39-item-head h3{font-size:13px!important;padding-right:58px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v122-item-tags{gap:6px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v127-item-primary-tag{font-size:9px!important;padding:6px 8px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .item-actions{height:50px!important;min-height:50px!important;gap:8px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v126-card-action{height:46px!important;min-height:46px!important;border-radius:13px!important}

/* Side navigation: compact square tiles, centered icon, title below. */
body.v127-ui .v119-side-nav{grid-auto-rows:82px!important;gap:8px!important;padding:8px 11px calc(12px + var(--v127-safe-bottom))!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav>button,
body.v127-ui .v119-side-nav>button{height:82px!important;min-height:82px!important;max-height:82px!important;grid-template-rows:56px 16px!important;padding:6px!important;border-radius:18px!important;background:radial-gradient(circle at 50% 28%,rgba(76,128,102,.13),transparent 44%),linear-gradient(155deg,rgba(10,35,35,.96),rgba(4,18,22,.99))!important;box-shadow:inset 0 1px rgba(255,255,255,.025),0 7px 16px rgba(0,0,0,.17)!important}
body.v127-ui .v119-side-nav>button .v83-side-icon{width:56px!important;height:56px!important;padding:7px!important;border-radius:16px!important;background:linear-gradient(160deg,rgba(38,72,64,.58),rgba(7,25,28,.88))!important;border:1px solid rgba(215,170,75,.25)!important}
body.v127-ui .v119-side-nav>button>span{font-size:8px!important;line-height:1.1!important;font-weight:800!important}
body.v127-ui .v119-side-nav>button.danger,
body.v127-ui .v119-side-nav>[data-side-kind="logout"]{height:44px!important;min-height:44px!important;max-height:44px!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:1fr!important;border-radius:14px!important}

/* Altar: readable rings, no collisions, compact donation lane. */
body.v127-ui .v89-altar-panel{display:grid!important;gap:10px!important;padding-bottom:12px!important}
body.v127-ui .v89-altar-rings{grid-template-columns:1fr!important;gap:12px!important;padding:0 12px!important}
body.v127-ui .v89-altar-ring{padding:11px!important;overflow:hidden!important}
body.v127-ui .v89-ring-stage{--ring-radius:-118px!important;width:300px!important;height:300px!important;max-width:100%!important;margin:auto!important}
body.v127-ui .v89-altar-ring.materials .v89-ring-stage{--ring-radius:-105px!important;width:280px!important;height:280px!important}
body.v127-ui .v89-altar-slot{width:50px!important;height:58px!important;min-height:58px!important;padding:4px!important;border-radius:13px!important}
body.v127-ui .v89-altar-slot>div{width:34px!important;height:34px!important;padding:3px!important}
body.v127-ui .v89-altar-slot>b{font-size:6.5px!important;line-height:1.05!important}
body.v127-ui .v89-ring-core{width:84px!important;height:84px!important;grid-template-columns:34px auto!important;padding:9px!important}
body.v127-ui .v89-altar-offerings{margin:0 12px!important}
body.v127-ui .v89-altar-donation{flex-basis:108px!important;min-width:108px!important;min-height:102px!important;grid-template-rows:52px auto auto!important}
body.v127-ui .v89-altar-donation>span{width:52px!important;height:52px!important}

/* Travel uses the same visual language as a location header. */
body.v127-ui .v126-travel-screen{place-items:start center!important;align-content:center!important;gap:12px!important;padding:78px 14px 22px!important}
body.v127-ui .v127-travel-location-head{width:min(92vw,560px)!important;display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;padding:12px!important;border:1px solid rgba(215,170,75,.35)!important;border-radius:20px!important;background:linear-gradient(150deg,rgba(9,33,34,.97),rgba(4,18,22,.99))!important;box-shadow:0 12px 30px rgba(0,0,0,.24)!important}
body.v127-ui .v127-travel-location-head>span{width:82px!important;height:82px!important;display:grid!important;place-items:center!important;padding:7px!important;border-radius:16px!important;border:1px solid rgba(215,170,75,.3)!important;background:rgba(3,15,18,.78)!important;overflow:hidden!important}
body.v127-ui .v127-travel-location-head>span :where(img,svg){width:100%!important;height:100%!important;object-fit:cover!important}
body.v127-ui .v127-travel-location-head small{font-size:7px!important;letter-spacing:.15em!important;color:#d9bb63!important}
body.v127-ui .v127-travel-location-head h2{margin:2px 0 4px!important;font-size:22px!important}
body.v127-ui .v127-travel-location-head p{margin:0!important;font-size:9px!important;line-height:1.36!important;color:rgba(233,238,234,.56)!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.v127-ui .v126-travel-card{min-height:310px!important;padding:20px!important;gap:12px!important}
body.v127-ui .v126-travel-card>h2,body.v127-ui .v126-travel-card>p{display:none!important}
body.v127-ui .v126-travel-compass{animation:v127TravelFloat 2.4s ease-in-out infinite!important}
@keyframes v127TravelFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-8px) rotate(3deg)}}

/* Quest dialog: no detached monster-name square. */
body.v127-ui .v127-deal-content{grid-template-columns:112px minmax(0,1fr)!important;align-items:center!important}
body.v127-ui .v79-deal-monster.v127-deal-monster{display:block!important;width:112px!important;height:112px!important}
body.v127-ui .v127-deal-art{width:112px!important;height:112px!important;min-height:112px!important;border-radius:18px!important}
body.v127-ui .v127-deal-copy{align-content:center!important;padding:4px 0!important}
body.v127-ui .v127-deal-copy h2{margin:0!important;font:700 19px/1.08 Georgia,serif!important;color:#f1ead7!important;overflow-wrap:anywhere!important}
body.v127-ui .v127-deal-copy>p{min-height:0!important;font-size:11px!important;line-height:1.42!important}
body.v127-ui .v127-deal-identity{display:none!important}

/* Location battle squad: icons only when the party has several members. */
body.v127-ui .v127-battle-party.multi{display:flex!important;justify-content:center!important}
body.v127-ui .v127-battle-party.multi .v127-battle-party-icons{justify-content:center!important;width:100%!important}
body.v127-ui .v127-battle-enemy-party.multi{display:flex!important;justify-content:center!important}
body.v127-ui .v127-battle-enemy-party.multi .v127-battle-enemy-icons{justify-content:center!important;width:100%!important}
body.v127-ui .v127-battle-monster{flex-basis:42px!important;width:42px!important;height:42px!important;border-radius:12px!important;margin-left:-5px!important}
body.v127-ui .v127-battle-enemy-party:not(.multi){grid-template-columns:46px minmax(0,1fr)!important;align-items:center!important}
body.v127-ui .v127-battle-enemy-party:not(.multi) .v127-battle-enemy-icons{width:46px!important;height:46px!important}

/* Admin item bonus editor. */
body.v127-ui .v127-admin-attribute-bonuses{display:grid!important;gap:7px!important;padding:10px!important;border:1px solid rgba(105,218,178,.22)!important;border-radius:14px!important;background:rgba(8,28,29,.72)!important}
body.v127-ui .v127-admin-attribute-bonuses h3{margin:0!important;font-size:13px!important}
body.v127-ui .v127-admin-attribute-bonuses p{margin:0!important;font-size:8px!important;color:rgba(235,239,236,.54)!important}
body.v127-ui .v127-admin-attribute-bonuses>div{display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;gap:7px!important}

@media(max-width:520px){
  body.v127-ui .v122-item-detail-head{grid-template-columns:118px minmax(0,1fr)!important;min-height:164px!important;gap:10px!important;padding:9px!important}
  body.v127-ui .v122-item-detail-head .v97-item-detail-icon{width:118px!important;height:142px!important;min-width:118px!important;min-height:142px!important}
  body.v127-ui .v122-item-detail-copy h2{font-size:22px!important}
  body.v127-ui .v122-item-detail-copy p{font-size:9px!important;-webkit-line-clamp:4!important}
  body.v127-ui .v122-item-facts>div{min-height:58px!important;padding:7px!important}
  body.v127-ui .v127-item-attributes>div{grid-template-columns:1fr 1fr!important}
  body.v127-ui .v98-picker-modal .v124-item-card.layout-picker{height:218px!important;min-height:218px!important;max-height:218px!important;grid-template-columns:112px minmax(0,1fr)!important}
  body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v39-item-icon-wrap{width:112px!important;height:118px!important;min-width:112px!important;min-height:118px!important}
  body.v127-ui .v127-travel-location-head{grid-template-columns:68px minmax(0,1fr)!important}
  body.v127-ui .v127-travel-location-head>span{width:68px!important;height:68px!important}
  body.v127-ui .v127-deal-content{grid-template-columns:92px minmax(0,1fr)!important}
  body.v127-ui .v79-deal-monster.v127-deal-monster,body.v127-ui .v127-deal-art{width:92px!important;height:92px!important;min-height:92px!important}
}

/* v127.9 side tile correction: true icon-above-title composition. */
body.v127-ui .v119-side-nav{grid-auto-rows:108px!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav>button,
body.v127-ui .v119-side-nav>button:not([data-side-kind="logout"]){
  height:108px!important;min-height:108px!important;max-height:108px!important;
  grid-template-columns:1fr!important;grid-template-rows:70px 22px!important;
  place-items:center!important;align-content:center!important;gap:2px!important;padding:7px!important
}
body.v127-ui .v119-side-nav>button:not([data-side-kind="logout"]) .v83-side-icon{
  grid-column:1!important;grid-row:1!important;align-self:center!important;justify-self:center!important;
  width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;padding:7px!important
}
body.v127-ui .v119-side-nav>button:not([data-side-kind="logout"])>span{
  grid-column:1!important;grid-row:2!important;align-self:center!important;justify-self:stretch!important;
  width:100%!important;text-align:center!important;font-size:9px!important;line-height:1.05!important
}
body.v127-ui .v119-side-nav>button:not([data-side-kind="logout"]) .v119-side-arrow{display:none!important}
body.v127-ui .v119-side-nav>[data-side-kind="logout"]{grid-template-columns:32px minmax(0,1fr)!important;grid-template-rows:1fr!important;place-items:center start!important;padding:5px 10px!important}
body.v127-ui .v119-side-nav>[data-side-kind="logout"] .v83-side-icon{grid-column:1!important;grid-row:1!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:5px!important}
body.v127-ui .v119-side-nav>[data-side-kind="logout"]>span{grid-column:2!important;grid-row:1!important;text-align:center!important;width:100%!important;font-size:9px!important}
body.v127-ui .v119-side.v82-side .v119-side-nav.v76-side-nav,
body.v127-ui .v119-side .v119-side-nav.v76-side-nav{grid-auto-rows:108px!important}


/* ========================================================================== */
/* v127.10 — item protection, unread chat, combat profile and visual cleanup    */
/* ========================================================================== */

/* Top notification cards: neutral frame, icon and downward entrance. */
body.v127-ui #toast-root{
  position:fixed!important;left:50%!important;right:auto!important;top:calc(max(env(safe-area-inset-top),8px) + 8px)!important;
  transform:translateX(-50%)!important;width:min(94vw,520px)!important;display:grid!important;justify-items:stretch!important;gap:7px!important;
  z-index:10050!important;pointer-events:none!important
}
body.v127-ui .toast{
  width:100%!important;min-width:0!important;max-width:none!important;min-height:52px!important;margin:0!important;
  display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;
  padding:7px 12px!important;border:1px solid rgba(235,239,241,.72)!important;border-radius:8px!important;
  background:linear-gradient(180deg,rgba(48,55,59,.97),rgba(21,27,31,.98))!important;color:#f2f4f4!important;
  box-shadow:0 12px 34px rgba(0,0,0,.48),inset 0 0 0 1px rgba(255,255,255,.05)!important;
  font-size:11px!important;font-weight:700!important;line-height:1.3!important;text-align:left!important;
  animation:v128ToastDown .22s cubic-bezier(.2,.8,.25,1) both!important;pointer-events:auto!important
}
body.v127-ui .toast.toast-mention{border-color:rgba(255,93,103,.88)!important;background:linear-gradient(180deg,rgba(73,30,37,.98),rgba(28,22,28,.99))!important}
body.v127-ui .v128-toast-icon{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;padding:5px!important;border-radius:7px!important;background:rgba(255,255,255,.07)!important}
body.v127-ui .v128-toast-icon :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v128-toast-copy{min-width:0!important;overflow-wrap:anywhere!important}
body.v127-ui .toast.leaving{opacity:0!important;transform:translateY(-14px)!important}
@keyframes v128ToastDown{from{opacity:0;transform:translateY(-24px)}to{opacity:1;transform:translateY(0)}}

/* Numeric unread marker on both chat handles: yellow for messages, red for mentions. */
body.v127-ui [data-chat-indicator-host]{position:relative!important;overflow:visible!important}
body.v127-ui .v128-chat-indicator{
  position:absolute!important;left:-7px!important;top:-7px!important;width:26px!important;height:26px!important;z-index:12!important;
  display:grid!important;place-items:center!important;border:2px solid rgba(255,238,164,.9)!important;border-radius:50%!important;
  background:linear-gradient(145deg,#8b6c19,#d8aa38)!important;box-shadow:0 4px 13px rgba(0,0,0,.62)!important;pointer-events:none!important;
}
body.v127-ui .v128-chat-indicator.mention{border-color:#ffb0b6!important;background:linear-gradient(145deg,#941d31,#ec4658)!important}
body.v127-ui .v128-chat-indicator img{display:none!important}
body.v127-ui .v128-chat-indicator b{
  position:static!important;min-width:0!important;height:auto!important;padding:0!important;display:block!important;
  background:none!important;color:#fff!important;font-size:8px!important;font-weight:900!important;line-height:1!important;text-shadow:0 1px 2px rgba(0,0,0,.65)!important;
}

/* Picker card title and primary rarity are centered and visually separated. */
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v39-item-head h3{
  width:100%!important;padding:0 6px!important;text-align:center!important;font-weight:800!important;letter-spacing:.01em!important;
  text-shadow:0 1px 2px rgba(0,0,0,.75)!important
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v125-item-tags{width:100%!important;justify-content:center!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v127-item-primary-tag{
  width:min(100%,230px)!important;min-height:27px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;font-weight:800!important;font-size:9px!important;letter-spacing:.02em!important
}

/* Mythic is consistently red–azure wherever the item appears. */
body.v127-ui :is(.v119-item-card,.v39-equip-slot,.v122-item-detail-card,.v119-pit-item,.v118-result-loot-item,.v125-rare-drop,.v97-item-detail-card).rarity-mythic{
  border-color:rgba(91,224,236,.72)!important;
  background:linear-gradient(145deg,rgba(112,20,45,.96) 0%,rgba(81,20,63,.95) 42%,rgba(9,72,91,.96) 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,116,157,.18),0 0 22px rgba(24,157,183,.16)!important
}
body.v127-ui .rarity-mythic :is(.v124-item-rarity,.v77-slot-rarity,.v97-item-detail-copy>small){color:#a9f5ff!important;border-color:rgba(115,234,243,.62)!important}

/* Attribute totals remain honest but equipment-source tips/highlights are hidden. */
body.v127-ui .v83-attr-card{grid-template-columns:32px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important}
body.v127-ui .v128-profile-attr-icon{width:30px!important;height:30px!important;display:grid!important;place-items:center!important;padding:5px!important;border-radius:9px!important;background:rgba(7,28,31,.85)!important;border:1px solid rgba(215,170,75,.26)!important}
body.v127-ui .v128-profile-attr-icon :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v83-attr-card.equipment-boosted{box-shadow:none!important;border-color:var(--v127-line)!important;background:rgba(5,23,26,.9)!important}
body.v127-ui .v83-attr-card>em,.v42-attr-big em{display:none!important}

/* Four post-equipment combat indicators. */
body.v127-ui .v128-combat-stats{padding:12px!important;border:1px solid var(--v127-line)!important;border-radius:18px!important;background:linear-gradient(150deg,rgba(6,27,29,.96),rgba(4,17,22,.98))!important}
body.v127-ui .v128-combat-stats .v39-panel-head{margin-bottom:10px!important}
body.v127-ui .v128-combat-stats .v39-panel-head span{font-size:7px!important;color:rgba(235,239,236,.5)!important}
body.v127-ui .v128-combat-stat-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
body.v127-ui .v128-combat-stat-grid article{min-height:64px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;padding:9px!important;border:1px solid rgba(215,170,75,.25)!important;border-radius:13px!important;background:rgba(8,30,32,.76)!important}
body.v127-ui .v128-combat-stat-grid article>.v83-ui-icon{width:38px!important;height:38px!important;padding:6px!important;border-radius:10px!important;background:rgba(2,14,18,.72)!important}
body.v127-ui .v128-combat-stat-grid span{display:grid!important;gap:3px!important}
body.v127-ui .v128-combat-stat-grid small{font-size:8px!important;color:rgba(235,239,236,.56)!important}
body.v127-ui .v128-combat-stat-grid b{font-size:15px!important;color:#f3d77c!important}

/* Item lock control and mini locked state. */
body.v127-ui .v122-item-detail-head{position:relative!important}
body.v127-ui .v128-item-lock{position:absolute!important;right:9px!important;top:9px!important;z-index:4!important;min-width:42px!important;height:34px!important;padding:4px 8px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;border-radius:10px!important;border:1px solid rgba(215,170,75,.42)!important;background:rgba(8,25,29,.93)!important;color:#ddd3b2!important}
body.v127-ui .v128-item-lock.locked{border-color:rgba(96,221,184,.65)!important;color:#8ce5bf!important;background:rgba(8,54,48,.94)!important}
body.v127-ui .v128-item-lock .v83-ui-icon{width:20px!important;height:20px!important}
body.v127-ui .v128-item-lock span{font-size:7px!important;font-weight:800!important}
body.v127-ui .v128-mini-lock{position:absolute!important;right:5px!important;top:5px!important;width:22px!important;height:22px!important;display:grid!important;place-items:center!important;padding:3px!important;border-radius:50%!important;border:1px solid rgba(111,229,191,.72)!important;background:rgba(5,49,43,.94)!important;z-index:6!important}
body.v127-ui .v128-mini-lock :where(img,svg){width:100%!important;height:100%!important}

/* Side logout is a deliberate, readable final action. */
body.v127-ui .v119-side-nav>[data-side-kind="logout"]{height:68px!important;min-height:68px!important;grid-template-columns:48px minmax(0,1fr)!important;padding:8px 14px!important;border-radius:16px!important}
body.v127-ui .v119-side-nav>[data-side-kind="logout"] .v83-side-icon{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:8px!important}
body.v127-ui .v119-side-nav>[data-side-kind="logout"]>span{font-size:11px!important;font-weight:800!important}

/* Skill drawer headings preserve natural Russian casing. */
body.v127-ui :is(.v62-drawer-section-title,.v106-ready-title,.v102-skill-section h3){text-transform:none!important;letter-spacing:normal!important}

body.v127-ui .v128-item-lock span{display:none!important}
body.v127-ui .v122-item-detail-head .v97-item-detail-copy{padding-right:42px!important}


/* ========================================================================== */
/* v127.11 — restrictions, compact detail cards, results and battle recovery */
/* ========================================================================== */
body.v127-ui #toast-root{width:min(calc(100vw - 12px),590px)!important;left:calc(50% + 4px)!important}
body.v127-ui .v128-combat-stats .v39-panel-head{display:block!important;width:100%!important}
body.v127-ui .v128-combat-stats .v39-panel-head h2{width:100%!important;margin:0!important}
body.v127-ui .v128-combat-stats .v39-panel-head span{display:none!important}

/* Full item card: compact art, readable title and a separate description rhythm. */
body.v127-ui .v122-item-detail-head{
  position:relative!important;grid-template-columns:94px minmax(0,1fr)!important;gap:14px!important;
  padding:14px!important;min-height:164px!important;align-items:center!important;overflow:hidden!important;
}
body.v127-ui .v122-item-detail-head .v97-item-detail-icon{
  width:94px!important;height:126px!important;min-height:126px!important;padding:10px!important;align-self:center!important;
  border-radius:16px!important;
}
body.v127-ui .v122-item-detail-head .v97-item-detail-icon>img{
  width:100%!important;height:100%!important;max-width:78%!important;max-height:78%!important;object-fit:contain!important;
}
body.v127-ui .v122-item-detail-head .v97-item-detail-copy{
  min-width:0!important;padding:2px 36px 2px 0!important;align-content:center!important;gap:8px!important;overflow:visible!important;
}
body.v127-ui .v122-item-detail-head .v97-item-detail-copy>small{
  justify-self:start!important;max-width:100%!important;margin:0!important;font-size:9px!important;line-height:1!important;
}
body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{
  min-width:0!important;max-width:100%!important;margin:0!important;font-size:clamp(20px,5.8vw,30px)!important;line-height:1.02!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;hyphens:auto!important;
  display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
}
body.v127-ui .v122-item-detail-head .v97-item-detail-copy p{
  min-width:0!important;margin:2px 0 0!important;padding:0!important;font-size:10px!important;line-height:1.42!important;
  color:rgba(228,235,232,.66)!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
  display:-webkit-box!important;-webkit-line-clamp:5!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
}
body.v127-ui .v128-item-lock{
  position:absolute!important;right:12px!important;top:12px!important;width:30px!important;min-width:30px!important;height:30px!important;
  padding:5px!important;border-radius:9px!important;z-index:5!important;
}
body.v127-ui .v128-item-lock .v83-ui-icon{width:18px!important;height:18px!important;opacity:.64!important}
body.v127-ui .v128-item-lock.locked .v83-ui-icon{opacity:1!important}
body.v127-ui .v122-item-facts>div{min-height:64px!important;padding:9px 10px!important;grid-template-columns:32px minmax(0,1fr)!important}
body.v127-ui .v122-item-facts>div .v127-fact-icon{width:30px!important;height:30px!important;padding:5px!important}
body.v127-ui .v122-item-facts>div b{font-size:10.5px!important;line-height:1.18!important;overflow-wrap:break-word!important;word-break:normal!important}
@media(max-width:390px){
  body.v127-ui .v122-item-detail-head{grid-template-columns:86px minmax(0,1fr)!important;gap:11px!important;padding:11px!important;min-height:154px!important}
  body.v127-ui .v122-item-detail-head .v97-item-detail-icon{width:86px!important;height:116px!important;min-height:116px!important;padding:8px!important}
  body.v127-ui .v122-item-detail-head .v97-item-detail-copy{padding-right:32px!important;gap:6px!important}
  body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{font-size:clamp(19px,6vw,27px)!important;-webkit-line-clamp:3!important}
  body.v127-ui .v122-item-detail-head .v97-item-detail-copy p{font-size:9.3px!important;line-height:1.38!important;-webkit-line-clamp:5!important}
}

/* Item restriction states — the mini-card contains only the status asset. */
body.v127-ui .v129-mini-restriction{
  position:absolute!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;z-index:15!important;
  width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;
  padding:6px!important;margin:0!important;display:grid!important;grid-template-columns:1fr!important;place-items:center!important;gap:0!important;overflow:hidden!important;
  border-radius:13px!important;border:1px solid rgba(255,126,139,.84)!important;
  background:linear-gradient(145deg,rgba(108,25,36,.94),rgba(48,10,17,.94))!important;box-shadow:0 8px 20px rgba(0,0,0,.55)!important;
}
body.v127-ui .v129-mini-restriction.confiscated{border-color:rgba(255,72,93,.94)!important;background:linear-gradient(145deg,rgba(92,8,20,.96),rgba(35,5,10,.96))!important}
body.v127-ui .v129-mini-restriction img{display:block!important;width:28px!important;height:28px!important;max-width:28px!important;object-fit:contain!important;pointer-events:none!important;margin:0!important;padding:0!important}
body.v127-ui .v129-mini-restriction>span{display:none!important}
body.v127-ui .v124-item-card.layout-picker>.v129-mini-restriction{left:50%!important;top:50%!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:6px!important;grid-template-columns:1fr!important;gap:0!important;border-radius:13px!important}
body.v127-ui .v124-item-card.layout-picker>.v129-mini-restriction>span{display:none!important}
body.v127-ui .v129-item-status{width:100%!important;min-height:54px!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;padding:8px 10px!important;margin:9px 0!important;border-radius:14px!important;border:1px solid rgba(240,93,105,.58)!important;background:linear-gradient(100deg,rgba(84,20,28,.86),rgba(24,24,29,.95))!important;text-align:left!important}
body.v127-ui .v129-item-status::after{content:"Подробнее";color:rgba(255,219,224,.68)!important;font-size:8px!important;font-weight:750!important}
body.v127-ui .v129-item-status img{width:32px!important;height:32px!important;object-fit:contain!important;padding:4px!important;border-radius:9px!important;background:rgba(0,0,0,.24)!important}
body.v127-ui .v129-item-status span{display:grid!important;gap:2px!important;min-width:0!important}
body.v127-ui .v129-item-status small{font-size:7px!important;color:rgba(255,255,255,.55)!important;letter-spacing:.06em!important}
body.v127-ui .v129-item-status b{font-size:11px!important;color:#ffabb4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .status-worn,body.v127-ui .status-confiscated{filter:saturate(.86)!important}
body.v127-ui .modal.v133-status-modal{width:min(92vw,430px)!important;max-width:430px!important;padding:0!important;overflow:hidden!important;border-color:rgba(234,177,84,.58)!important;background:linear-gradient(155deg,rgba(4,27,29,.99),rgba(4,15,20,.995))!important}
body.v127-ui .modal.v133-status-modal>.modal-head{display:none!important}
body.v127-ui .modal.v133-status-modal>.modal-body{padding:0!important}
body.v127-ui .v133-status-card{display:grid!important;gap:14px!important;padding:18px!important;background:radial-gradient(circle at 88% 4%,rgba(255,107,126,.12),transparent 36%)!important}
body.v127-ui .v133-status-card>header{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;align-items:center!important;gap:13px!important;padding-bottom:13px!important;border-bottom:1px solid rgba(238,190,103,.22)!important}
body.v127-ui .v133-status-art{display:grid!important;place-items:center!important;width:66px!important;height:66px!important;padding:10px!important;border-radius:17px!important;border:1px solid rgba(255,114,132,.58)!important;background:linear-gradient(145deg,rgba(90,21,31,.88),rgba(22,10,15,.94))!important;box-shadow:inset 0 0 20px rgba(255,90,112,.10)!important}
body.v127-ui .v133-status-art img{width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v133-status-card header>div{display:grid!important;gap:3px!important;min-width:0!important}
body.v127-ui .v133-status-card header small{color:#d4ad65!important;font-size:8px!important;font-weight:850!important;letter-spacing:.16em!important}
body.v127-ui .v133-status-card h2{margin:0!important;color:#ff9eaa!important;font-size:clamp(25px,7vw,34px)!important;line-height:1.03!important;overflow-wrap:break-word!important}
body.v127-ui .v133-status-card>p{margin:0!important;padding:13px 14px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:14px!important;background:rgba(255,255,255,.035)!important;color:rgba(242,246,244,.88)!important;font-size:13px!important;line-height:1.55!important}
body.v127-ui .v133-status-card>footer{display:grid!important}
body.v127-ui .v133-status-card>footer button{width:100%!important;min-height:54px!important;border-radius:14px!important;font-size:15px!important}
body.v127-ui .v133-status-card.confiscated{background:radial-gradient(circle at 88% 4%,rgba(255,66,90,.15),transparent 36%)!important}
body.v127-ui .v133-status-card.confiscated .v133-status-art{border-color:rgba(255,71,93,.72)!important;background:linear-gradient(145deg,rgba(99,8,22,.92),rgba(23,4,9,.96))!important}

/* Potion families use clear mana/health surfaces and tier intensity. */
body.v127-ui :is(.v119-item-card,.v122-item-detail-card).potion-mana{background:linear-gradient(145deg,rgba(15,65,88,.95),rgba(221,248,255,.12) 55%,rgba(4,20,29,.98))!important}
body.v127-ui :is(.v119-item-card,.v122-item-detail-card).potion-health{background:linear-gradient(145deg,rgba(117,27,66,.94),rgba(255,226,241,.13) 55%,rgba(28,8,20,.98))!important}
body.v127-ui :is(.v119-item-card,.v122-item-detail-card).potion-minor{--potion-glow:.18}
body.v127-ui :is(.v119-item-card,.v122-item-detail-card).potion-standard{box-shadow:inset 0 0 26px rgba(170,235,255,.10)!important}
body.v127-ui :is(.v119-item-card,.v122-item-detail-card).potion-greater{box-shadow:inset 0 0 38px rgba(255,255,255,.18),0 0 18px rgba(120,210,255,.11)!important}

/* Monster possible loot is scrollable inside its own section. */
body.v127-ui .v122-monster-loot-grid{max-height:190px!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-right:5px!important;scrollbar-width:thin!important;scrollbar-color:#e3982d rgba(255,255,255,.05)!important}
body.v127-ui .v122-monster-copy>p{margin-top:6px!important;line-height:1.38!important;max-height:76px!important;overflow-y:auto!important;padding-right:5px!important}

/* Target card itself is the selection action; no separate button. */
body.v127-ui .v127-target-footer{grid-template-columns:minmax(0,1fr)!important;height:34px!important;min-height:34px!important}
body.v127-ui .v127-target-select{display:none!important}

/* Compact friends. */
body.v127-ui .v125-friend-card{min-height:86px!important;padding:8px!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:8px!important}
body.v127-ui .v125-friend-card .v125-friend-avatar{width:50px!important;height:58px!important}
body.v127-ui .v125-friend-actions{display:grid!important;grid-template-columns:repeat(3,34px)!important;gap:5px!important}
body.v127-ui .v125-friend-actions button{width:34px!important;height:34px!important;padding:6px!important}

/* Logout is taller but sits lower and uses a smaller icon. */
body.v127-ui .v119-side-nav>[data-side-kind="logout"]{height:76px!important;min-height:76px!important;margin-top:8px!important;grid-template-columns:38px minmax(0,1fr)!important;padding:10px 16px!important}
body.v127-ui .v119-side-nav>[data-side-kind="logout"] .v83-side-icon{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:5px!important}

/* Battle result and defeat are 1.5x shorter with a visible internal scrollbar. */
body.v127-ui .modal.v129-result-modal{height:min(64dvh,560px)!important;max-height:min(64dvh,560px)!important;overflow:hidden!important}
body.v127-ui .v129-result{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important}
body.v127-ui .v129-result .v96-result-scroll{min-height:0!important;overflow-y:auto!important;padding-right:7px!important;scrollbar-width:thin!important;scrollbar-color:#e3982d rgba(255,255,255,.06)!important}
body.v127-ui .v129-result-rewards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:9px 0!important}
body.v127-ui .v129-result-rewards article{min-height:70px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;padding:10px!important;border:1px solid rgba(215,170,75,.35)!important;border-radius:14px!important;background:rgba(5,25,29,.82)!important}
body.v127-ui .v129-result-rewards article>img{width:38px!important;height:38px!important;object-fit:contain!important}
body.v127-ui .v129-result-rewards span{display:grid!important;gap:2px!important}
body.v127-ui .v129-result-rewards small{font-size:7px!important;color:rgba(235,239,236,.55)!important}
body.v127-ui .v129-result-rewards b{font-size:20px!important;color:#f3d574!important}
body.v127-ui .v129-result-rewards .xp b{color:#baf25b!important}.v127-ui .v129-result-rewards .gold b{color:#f4c85a!important}
body.v127-ui .v129-level-up{padding:8px 10px!important;border-radius:10px!important;background:rgba(85,119,28,.35)!important;color:#d7f68f!important;font-weight:800!important}
body.v127-ui .v129-result .v96-result-footer{padding-top:7px!important}

/* Restore location chat opener even when old layout rules hide it. */
body.v127-ui .v78-location-chat-tab{display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
/* v127.11 final result geometry wins over the old full-screen mobile modal. */
body.v127-ui .modal.v98-result-modal.v129-result-modal{
  height:64vh!important;
  height:64dvh!important;
  min-height:0!important;
  max-height:560px!important;
  overflow:hidden!important;
}


/* ========================================================================== */
/* v127.12 — item readability, chat visibility and compact action geometry    */
/* ========================================================================== */
/* Status dialogs use the whole available action width. */
body.v127-ui .v98-status-modal .status-help-card>button,
body.v127-ui .v65-monster-skill-card>button,
body.v127-ui .v129-status-info>button{width:100%!important;max-width:none!important;justify-self:stretch!important}

/* A waiting/blocked monster quest has one refusal button, which fills the row. */
body.v127-ui .v127-deal-actions:has(>button:only-child){grid-template-columns:minmax(0,1fr)!important}
body.v127-ui .v127-deal-actions:has(>button:only-child)>button{grid-column:1/-1!important;width:100%!important}

/* Mini lock is a small fixed badge and never participates in item-art sizing. */
body.v127-ui .v119-item-card .item-emblem>.v128-mini-lock{
  position:absolute!important;left:auto!important;right:5px!important;top:5px!important;width:20px!important;min-width:20px!important;max-width:20px!important;
  height:20px!important;min-height:20px!important;max-height:20px!important;padding:3px!important;margin:0!important;display:grid!important;place-items:center!important;
  border-radius:6px!important;overflow:hidden!important;transform:none!important;z-index:9!important;
}
body.v127-ui .v119-item-card .item-emblem>.v128-mini-lock :where(img,svg,.v83-ui-icon){
  width:13px!important;min-width:13px!important;max-width:13px!important;height:13px!important;min-height:13px!important;max-height:13px!important;
  padding:0!important;margin:0!important;object-fit:contain!important;transform:none!important;
}

/* Location chat button is a clear standalone control outside battle. */
body.v127-ui .v78-location-chat-tab{
  position:fixed!important;right:10px!important;left:auto!important;top:auto!important;bottom:calc(88px + var(--v127-safe-bottom))!important;
  z-index:1250!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;padding:8px!important;
  display:grid!important;place-items:center!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  border:1px solid rgba(218,177,80,.58)!important;border-radius:16px!important;
  background:linear-gradient(145deg,rgba(18,57,58,.98),rgba(7,30,34,.99))!important;box-shadow:0 10px 26px rgba(0,0,0,.5)!important;
}
body.v127-ui .v78-location-chat-tab.open{background:linear-gradient(145deg,rgba(48,73,37,.98),rgba(8,37,36,.99))!important}
body.v127-ui .v130-location-chat-icon{width:30px!important;height:30px!important;display:grid!important;place-items:center!important}
body.v127-ui .v130-location-chat-icon :where(img,svg,.v83-ui-icon){width:30px!important;height:30px!important;object-fit:contain!important}

/* Players and monsters in location battle summaries use equal square portraits. */
body.v127-ui .v127-battle-member,
body.v127-ui .v127-battle-monster{
  flex:0 0 42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;
  border-radius:12px!important;overflow:hidden!important;
}
body.v127-ui .v127-battle-member :where(img,.class-asset-image),
body.v127-ui .v127-battle-monster :where(img,.monster-asset-image){
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:3px!important;transform:none!important;
}

/* Logout icon frame is smaller and aligned as one composed control. */
body.v127-ui .v119-side-nav>[data-side-kind="logout"]{
  height:70px!important;min-height:70px!important;margin-top:8px!important;grid-template-columns:32px minmax(0,1fr)!important;padding:9px 14px!important;column-gap:9px!important;
}
body.v127-ui .v119-side-nav>[data-side-kind="logout"] .v83-side-icon{
  width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;
  padding:4px!important;border-radius:8px!important;
}
body.v127-ui .v119-side-nav>[data-side-kind="logout"]>span{font-size:10px!important;text-align:center!important}

/* ========================================================================== */
/* v127.13 — chat hierarchy, portrait crops, rarity picker and item details   */
/* ========================================================================== */

/* The location chat opener belongs to the top bar and disappears while open. */
body.v127-ui:not(.v111-battle-active) .v121-topbar{
  position:fixed!important;
  grid-template-columns:48px 46px minmax(0,1fr) 42px!important;
  gap:7px!important;
}
body.v127-ui:not(.v111-battle-active) .v121-topbar .v121-top-player-copy{
  grid-column:3!important;min-width:0!important;padding-right:2px!important;
}
body.v127-ui:not(.v111-battle-active) .v121-topbar>.v78-location-chat-tab{
  position:static!important;grid-column:4!important;align-self:center!important;justify-self:end!important;
  width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:7px!important;transform:none!important;inset:auto!important;
  display:grid!important;place-items:center!important;border-radius:12px!important;z-index:auto!important;
  border:1px solid rgba(215,170,75,.55)!important;background:linear-gradient(145deg,rgba(18,57,58,.98),rgba(7,30,34,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 6px 18px rgba(0,0,0,.25)!important;
}
body.v127-ui:not(.v111-battle-active) .v121-topbar>.v78-location-chat-tab.open{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}
body.v127-ui .v121-topbar>.v78-location-chat-tab .v130-location-chat-icon,
body.v127-ui .v121-topbar>.v78-location-chat-tab .v130-location-chat-icon :where(img,svg,.v83-ui-icon){
  width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;
}

/* Chat cards: portrait on the left, highlighted name and compact identity above text. */
body.v127-ui .v125-chat-message{
  grid-template-columns:58px minmax(0,1fr)!important;gap:10px!important;
  min-height:88px!important;padding:9px 9px 10px!important;align-items:start!important;
}
body.v127-ui .v125-chat-message>.v131-chat-avatar{
  position:relative!important;width:58px!important;min-width:58px!important;max-width:58px!important;
  height:66px!important;min-height:66px!important;max-height:66px!important;align-self:start!important;
  display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:13px!important;
  border:1px solid rgba(215,170,75,.42)!important;background:linear-gradient(160deg,rgba(10,34,37,.96),rgba(4,17,21,.99))!important;
}
body.v127-ui .v125-chat-message>.v131-chat-avatar>.v131-chat-face{
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center 8%!important;padding:0!important;
  transform:scale(1.72)!important;transform-origin:center 13%!important;
}
body.v127-ui .v125-chat-message>.v127-event-avatar>img{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;padding:8px!important;transform:none!important;
}
body.v127-ui .v125-chat-message>.v125-chat-content{
  grid-template-rows:auto minmax(0,auto)!important;gap:6px!important;padding:0 43px 0 0!important;align-content:start!important;
}
body.v127-ui .v125-chat-message .v131-chat-meta{
  display:grid!important;gap:3px!important;min-width:0!important;padding-top:1px!important;
}
body.v127-ui .v125-chat-message .v131-chat-name{
  display:block!important;min-width:0!important;max-width:100%!important;
  color:#f1d77d!important;font:700 14px/1.08 Georgia,"Times New Roman",serif!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-shadow:0 1px 8px rgba(0,0,0,.34)!important;
}
body.v127-ui .v125-chat-message.mentioned .v131-chat-name{color:#ffd0d4!important}
body.v127-ui .v125-chat-message .v131-chat-submeta{
  display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;
  margin:0!important;font-size:8px!important;line-height:1.1!important;color:rgba(225,235,230,.62)!important;
}
body.v127-ui .v125-chat-message .v131-chat-submeta>span{
  min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.v127-ui .v125-chat-message .v131-chat-submeta>i{
  width:3px!important;height:3px!important;flex:0 0 3px!important;border-radius:50%!important;background:rgba(215,170,75,.72)!important;
}
body.v127-ui .v125-chat-message .v123-chat-text{
  margin:0!important;padding:0!important;font-size:10px!important;line-height:1.35!important;
  color:rgba(244,248,245,.9)!important;
}
body.v127-ui .v125-chat-message .v123-chat-tail{
  right:9px!important;top:8px!important;width:34px!important;height:70px!important;
}
body.v127-ui .v125-chat-message .v123-chat-tail time{
  right:0!important;bottom:0!important;font-size:7px!important;color:rgba(224,232,228,.54)!important;
}
body.v127-ui .v125-chat-message .v123-chat-delete{
  right:0!important;top:0!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;
}
body.v127-ui .v127-event-message .v131-chat-name{color:#c9f3e2!important}

/* Location player portraits show the face/upper body instead of the full silhouette. */
body.v127-ui .v119-location-player-art{
  width:50px!important;min-width:50px!important;height:58px!important;min-height:58px!important;
  border-radius:13px!important;overflow:hidden!important;
}
body.v127-ui .v119-location-player-art :where(img,.class-asset-image){
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center 7%!important;padding:0!important;
  transform:scale(1.68)!important;transform-origin:center 13%!important;border-radius:0!important;
}
body.v127-ui .v119-location-player-art>b{z-index:3!important}

/* Equipment picker: true centered title and rarity-driven surfaces. */
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head{
  grid-template-columns:56px minmax(0,1fr) 56px!important;gap:4px!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head h3{
  grid-column:2!important;justify-self:center!important;width:100%!important;padding:0!important;
  text-align:center!important;font-size:14px!important;font-weight:850!important;line-height:1.12!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head .item-weight{
  grid-column:3!important;justify-self:end!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker .v127-item-primary-tag{
  justify-self:center!important;text-align:center!important;font-size:10px!important;font-weight:850!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.rarity-common{
  background:radial-gradient(circle at 20% 34%,rgba(188,198,191,.10),transparent 38%),linear-gradient(145deg,rgba(24,34,37,.98),rgba(5,17,20,.99))!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.rarity-uncommon{
  background:radial-gradient(circle at 20% 34%,rgba(82,194,116,.20),transparent 40%),linear-gradient(145deg,rgba(16,56,39,.97),rgba(4,23,24,.99))!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.rarity-rare{
  background:radial-gradient(circle at 20% 34%,rgba(72,145,225,.23),transparent 40%),linear-gradient(145deg,rgba(15,47,78,.97),rgba(4,19,30,.99))!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.rarity-epic{
  background:radial-gradient(circle at 20% 34%,rgba(191,79,229,.24),transparent 40%),linear-gradient(145deg,rgba(68,30,87,.97),rgba(16,13,32,.99))!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.rarity-legendary{
  background:radial-gradient(circle at 20% 34%,rgba(244,166,61,.28),transparent 40%),linear-gradient(145deg,rgba(102,61,16,.98),rgba(38,22,6,.99))!important;
}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.rarity-mythic{
  background:radial-gradient(circle at 17% 34%,rgba(47,226,232,.22),transparent 36%),radial-gradient(circle at 84% 18%,rgba(235,47,104,.25),transparent 42%),linear-gradient(145deg,rgba(89,19,52,.98),rgba(7,39,48,.99))!important;
}

/* All inventory mini cards retain a visible rarity surface. */
body.v127-ui .v119-inventory-list>.v124-item-card.rarity-common{border-color:rgba(180,190,184,.24)!important}
body.v127-ui .v119-inventory-list>.v124-item-card.rarity-uncommon{border-color:rgba(87,202,119,.42)!important}
body.v127-ui .v119-inventory-list>.v124-item-card.rarity-rare{border-color:rgba(70,149,227,.48)!important}
body.v127-ui .v119-inventory-list>.v124-item-card.rarity-epic{border-color:rgba(190,83,226,.52)!important}
body.v127-ui .v119-inventory-list>.v124-item-card.rarity-legendary{border-color:rgba(240,166,61,.58)!important}
body.v127-ui .v119-inventory-list>.v124-item-card.rarity-mythic{border-color:rgba(80,223,230,.66)!important}

/* Full item details: smaller art and an independent readable copy column. */
html body.v127-ui .v122-item-modal .v122-item-detail-card>.v122-item-detail-head{
  display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;grid-template-rows:auto!important;
  align-items:center!important;gap:12px!important;min-height:142px!important;height:auto!important;padding:12px!important;overflow:hidden!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-icon{
  grid-column:1!important;width:78px!important;min-width:78px!important;max-width:78px!important;
  height:108px!important;min-height:108px!important;max-height:108px!important;padding:7px!important;align-self:center!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-icon :where(img,.item-asset-image){
  width:100%!important;height:100%!important;max-width:76%!important;max-height:76%!important;
  object-fit:contain!important;object-position:center!important;padding:0!important;transform:none!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-copy{
  grid-column:2!important;display:grid!important;grid-template-rows:auto auto auto!important;align-content:center!important;
  gap:7px!important;min-width:0!important;width:100%!important;padding:0 35px 0 0!important;overflow:hidden!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-copy>small{
  justify-self:start!important;margin:0!important;font-size:8px!important;line-height:1!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-copy>h2{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;
  min-width:0!important;max-width:100%!important;margin:0!important;font-size:clamp(18px,5.2vw,24px)!important;line-height:1.08!important;
  letter-spacing:-.01em!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;overflow:hidden!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-copy>p{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;
  min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;font-size:9px!important;line-height:1.42!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;overflow:hidden!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v128-item-lock{
  right:10px!important;top:10px!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important;
}





html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head{grid-template-columns:56px minmax(0,1fr) 56px!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head h3{grid-column:2!important;justify-self:stretch!important;text-align:center!important;padding:0!important}
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v39-item-head .item-weight{grid-column:3!important;justify-self:end!important}


/* ========================================================================== */
/* v127.14 — compact portraits, material/potion surfaces and corner lock      */
/* ========================================================================== */

/* Keep the v127.13 chat hierarchy, but restore the compact portrait scale. */
body.v127-ui .v125-chat-message{
  grid-template-columns:46px minmax(0,1fr)!important;gap:8px!important;
  min-height:76px!important;padding:8px 8px 9px!important;
}
body.v127-ui .v125-chat-message>.v131-chat-avatar{
  width:46px!important;min-width:46px!important;max-width:46px!important;
  height:54px!important;min-height:54px!important;max-height:54px!important;
  border-radius:11px!important;
}
body.v127-ui .v125-chat-message>.v131-chat-avatar>.v131-chat-face{
  object-position:center 8%!important;transform:scale(1.56)!important;transform-origin:center 13%!important;
}
body.v127-ui .v125-chat-message>.v127-event-avatar>img{
  padding:6px!important;transform:none!important;
}
body.v127-ui .v125-chat-message>.v125-chat-content{
  gap:4px!important;padding-right:40px!important;
}
body.v127-ui .v125-chat-message .v131-chat-name{font-size:12px!important}
body.v127-ui .v125-chat-message .v131-chat-submeta{font-size:7px!important;gap:4px!important}
body.v127-ui .v125-chat-message .v123-chat-text{font-size:9.5px!important;line-height:1.32!important}
body.v127-ui .v125-chat-message .v123-chat-tail{right:8px!important;top:7px!important;height:60px!important}

/* Location players keep the face crop, but return to the previous compact frame. */
body.v127-ui .v119-location-player{
  grid-template-columns:42px minmax(0,1fr) auto!important;column-gap:8px!important;min-height:64px!important;
}
body.v127-ui .v119-location-player-art{
  width:42px!important;min-width:42px!important;max-width:42px!important;
  height:54px!important;min-height:54px!important;max-height:54px!important;border-radius:10px!important;
}
body.v127-ui .v119-location-player-art :where(img,.class-asset-image){
  object-position:center 8%!important;transform:scale(1.50)!important;transform-origin:center 13%!important;
}
body.v127-ui .v119-location-player-art>b{
  right:2px!important;bottom:2px!important;min-width:18px!important;height:18px!important;padding:0 4px!important;font-size:7px!important;border-width:1px!important;box-shadow:0 2px 8px rgba(0,0,0,.58)!important;
}
body.v127-ui .v119-location-player-copy{min-width:0!important;align-self:center!important}
body.v127-ui .v119-location-player-copy>strong{
  display:block!important;min-width:0!important;max-width:100%!important;font-size:11px!important;line-height:1.08!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.v127-ui .v119-location-player-copy>small{
  display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;font-size:7.5px!important;line-height:1.15!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}

/* The lock belongs to the card frame, not to the item artwork. */
body.v127-ui .v119-item-card>.v128-mini-lock{
  position:absolute!important;left:auto!important;right:4px!important;top:4px!important;
  width:20px!important;min-width:20px!important;max-width:20px!important;
  height:20px!important;min-height:20px!important;max-height:20px!important;
  padding:3px!important;margin:0!important;display:grid!important;place-items:center!important;
  border-radius:6px!important;overflow:hidden!important;transform:none!important;z-index:12!important;
}
body.v127-ui .v119-item-card>.v128-mini-lock :where(img,svg,.v83-ui-icon){
  width:13px!important;min-width:13px!important;max-width:13px!important;
  height:13px!important;min-height:13px!important;max-height:13px!important;
  padding:0!important;margin:0!important;object-fit:contain!important;transform:none!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card:has(>.v128-mini-lock)>.v39-item-head .item-weight{right:24px!important}
html body.v127-ui .v119-inventory-list>.v124-item-card:has(>.v128-mini-lock)>.v39-item-head h3{padding-right:64px!important}
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker:has(>.v128-mini-lock)>.v39-item-head .item-weight{margin-right:22px!important}

/* Material frequency owns the mini-card surface instead of falling back to common/rare. */
html body.v127-ui .v119-inventory-list>.v124-item-card.type-material.material-frequency-sometimes,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-material.material-frequency-sometimes{
  border-color:rgba(218,225,224,.48)!important;
  background:radial-gradient(circle at 18% 38%,rgba(244,248,247,.15),transparent 42%),linear-gradient(145deg,rgba(60,67,69,.96),rgba(12,24,27,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.type-material.material-frequency-low,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-material.material-frequency-low{
  border-color:rgba(117,225,139,.55)!important;
  background:radial-gradient(circle at 18% 38%,rgba(146,244,157,.20),transparent 42%),linear-gradient(145deg,rgba(25,78,48,.96),rgba(5,27,25,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.type-material.material-frequency-often,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-material.material-frequency-often{
  border-color:rgba(81,167,241,.62)!important;
  background:radial-gradient(circle at 18% 38%,rgba(95,181,255,.24),transparent 42%),linear-gradient(145deg,rgba(20,63,103,.97),rgba(4,23,38,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.type-material.material-frequency-rare,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-material.material-frequency-rare{
  border-color:rgba(202,99,239,.65)!important;
  background:radial-gradient(circle at 18% 38%,rgba(206,103,243,.25),transparent 42%),linear-gradient(145deg,rgba(74,34,96,.97),rgba(18,13,36,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.type-material.material-frequency-very-rare,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-material.material-frequency-very-rare{
  border-color:rgba(247,177,70,.72)!important;
  background:radial-gradient(circle at 18% 38%,rgba(255,190,80,.28),transparent 42%),linear-gradient(145deg,rgba(112,67,17,.98),rgba(43,24,6,.99))!important;
}

/* Potion mini cards use their family surface at the strongest cascade position. */
html body.v127-ui .v119-inventory-list>.v124-item-card.potion-mana.potion-minor,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.potion-mana.potion-minor{
  border-color:rgba(102,213,241,.55)!important;
  background:radial-gradient(circle at 22% 42%,rgba(223,249,255,.16),transparent 36%),linear-gradient(145deg,rgba(20,80,110,.96),rgba(5,25,36,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.potion-mana.potion-standard,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.potion-mana.potion-standard{
  border-color:rgba(118,225,248,.68)!important;
  background:radial-gradient(circle at 22% 42%,rgba(236,252,255,.23),transparent 39%),linear-gradient(145deg,rgba(24,98,131,.97),rgba(5,29,42,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.potion-mana.potion-greater,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.potion-mana.potion-greater{
  border-color:rgba(189,244,255,.82)!important;
  background:radial-gradient(circle at 24% 40%,rgba(249,254,255,.34),transparent 42%),linear-gradient(145deg,rgba(42,133,166,.98),rgba(6,37,52,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.potion-health.potion-minor,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.potion-health.potion-minor{
  border-color:rgba(242,124,176,.58)!important;
  background:radial-gradient(circle at 22% 42%,rgba(255,236,247,.17),transparent 36%),linear-gradient(145deg,rgba(119,32,69,.96),rgba(31,8,22,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.potion-health.potion-standard,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.potion-health.potion-standard{
  border-color:rgba(247,147,191,.70)!important;
  background:radial-gradient(circle at 22% 42%,rgba(255,241,249,.24),transparent 39%),linear-gradient(145deg,rgba(151,39,83,.97),rgba(39,9,27,.99))!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.potion-health.potion-greater,
body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.potion-health.potion-greater{
  border-color:rgba(255,200,229,.84)!important;
  background:radial-gradient(circle at 24% 40%,rgba(255,250,253,.36),transparent 42%),radial-gradient(circle at 80% 18%,rgba(104,226,239,.14),transparent 40%),linear-gradient(145deg,rgba(181,52,101,.98),rgba(48,11,33,.99))!important;
}


/* v1.127.15 — character levels, equipment features/sockets and targeted item administration. */
body.v127-ui .v132-character-name-line{display:grid!important;grid-template-columns:minmax(0,max-content) auto!important;justify-content:start!important;align-items:center!important;gap:9px!important;min-width:0!important;max-width:100%!important}
body.v127-ui .v132-character-name-line>b{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:17px!important;line-height:1.08!important}
body.v127-ui .v133-character-level{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;margin:0!important;padding:5px 9px!important;border:1px solid rgba(225,171,79,.54)!important;border-radius:10px!important;background:rgba(42,31,13,.72)!important;color:#f4cd78!important;font-size:10px!important;font-weight:850!important;line-height:1!important;white-space:nowrap!important}
body.v127-ui .v132-character-class{display:block!important;color:rgba(225,232,229,.62)!important;font-size:11px!important;line-height:1.2!important}
body.v127-ui .v125-character-copy>.v125-character-level{display:none!important}
body.v127-ui #wizard-name-preview{font-size:var(--v133-name-size,32px)!important;line-height:1.05!important;transition:font-size .12s ease!important;max-width:min(58vw,310px)!important;overflow-wrap:break-word!important}

body.v127-ui .v132-equipment-feature{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:10px!important;padding:9px!important;border:1px solid rgba(202,178,100,.34)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(9,28,31,.97),rgba(16,22,29,.98))!important;overflow:hidden!important}
body.v127-ui .v132-equipment-bonus{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:58px!important;padding:9px 11px!important;border:1px solid rgba(105,222,205,.24)!important;border-radius:12px!important;background:linear-gradient(90deg,rgba(33,102,92,.23),rgba(255,255,255,.025))!important}
body.v127-ui .v132-equipment-bonus>span{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:11px!important;background:rgba(9,21,25,.78)!important;border:1px solid rgba(210,189,112,.28)!important}
body.v127-ui .v132-equipment-bonus .v83-ui-icon{width:24px!important;height:24px!important;object-fit:contain!important}
body.v127-ui .v132-equipment-bonus div{display:grid!important;gap:3px!important;min-width:0!important}
body.v127-ui .v132-equipment-bonus small{color:rgba(225,233,230,.56)!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.1em!important}
body.v127-ui .v132-equipment-bonus b{color:#efffd8!important;font-size:13px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
body.v127-ui .v132-equipment-socket{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:66px!important;padding:9px 11px!important;border:1px solid rgba(156,168,165,.22)!important;border-radius:12px!important;background:rgba(6,18,22,.72)!important}
body.v127-ui .v132-socket-art{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;padding:5px!important;border:1px dashed rgba(219,196,115,.42)!important;border-radius:11px!important;background:rgba(255,255,255,.025)!important;overflow:hidden!important}
body.v127-ui .v132-socket-art :where(img,.v83-ui-icon){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v132-equipment-socket>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:4px 8px!important;min-width:0!important}
body.v127-ui .v132-equipment-socket small{grid-column:1/-1!important;color:rgba(225,233,230,.54)!important;font-size:9px!important}
body.v127-ui .v132-equipment-socket b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important}
body.v127-ui .v132-equipment-socket button{min-height:31px!important;padding:6px 10px!important;border-radius:9px!important;font-size:10px!important;font-weight:800!important}
body.v127-ui .v132-seal-picker{display:grid!important;gap:10px!important}
body.v127-ui .v132-seal-picker>p{margin:0!important;color:rgba(226,234,231,.66)!important;font-size:11px!important;line-height:1.4!important}
body.v127-ui .v132-seal-picker>div{display:grid!important;gap:8px!important;max-height:48dvh!important;overflow-y:auto!important;padding-right:4px!important;scrollbar-width:thin!important}
body.v127-ui .v132-seal-choice{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:68px!important;padding:8px 10px!important;text-align:left!important;border-radius:13px!important}
body.v127-ui .v132-seal-choice>span{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;padding:7px!important;border:1px solid rgba(216,193,111,.32)!important;border-radius:12px!important;background:rgba(2,13,17,.76)!important}
body.v127-ui .v132-seal-choice>span img{width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v132-seal-choice>div{display:grid!important;gap:4px!important;min-width:0!important}
body.v127-ui .v132-seal-choice b{font-size:13px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.v127-ui .v132-seal-choice small{font-size:10px!important;color:rgba(226,234,231,.58)!important}
body.v127-ui .v132-admin-player-item{gap:10px!important}
body.v127-ui .v132-admin-player-item>p{margin:0!important;color:rgba(226,234,231,.63)!important;font-size:11px!important;line-height:1.4!important}
body.v127-ui .v132-admin-player-item .v76-item-preview{margin:0!important}
@media(max-width:390px){
 body.v127-ui .v132-character-name-line{gap:7px!important}
 body.v127-ui .v132-character-name-line>b{font-size:16px!important;max-width:calc(100% - 57px)!important}
 body.v127-ui .v133-character-level{padding:4px 7px!important;font-size:9px!important}
 body.v127-ui .v132-equipment-bonus b{font-size:12px!important}
}


/* ========================================================================== */
/* v127.17 — character metadata, loot previews, stable dialogs and compact UI */
/* ========================================================================== */

/* Character cards: the nickname owns its line; class and level are badges below. */
body.v127-ui .v125-character-copy{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:center!important;gap:7px!important;padding-right:0!important;min-width:0!important}
body.v127-ui .v134-character-name{display:block!important;min-width:0!important;max-width:100%!important;color:#f5f1df!important;font-size:17px!important;font-weight:850!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v134-character-meta{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-width:0!important;max-width:100%!important}
body.v127-ui .v134-character-meta .v132-character-class,
body.v127-ui .v134-character-meta .v133-character-level{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:25px!important;padding:5px 9px!important;border-radius:9px!important;font-size:9px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important}
body.v127-ui .v134-character-meta .v132-character-class{color:#dceee4!important;border:1px solid rgba(109,194,157,.34)!important;background:rgba(18,65,52,.42)!important}
body.v127-ui .v134-character-meta .v133-character-level{color:#f4cd78!important;border:1px solid rgba(225,171,79,.54)!important;background:rgba(42,31,13,.72)!important}
@media(max-width:390px){body.v127-ui .v134-character-name{font-size:15px!important}body.v127-ui .v134-character-meta{gap:5px!important}body.v127-ui .v134-character-meta .v132-character-class,body.v127-ui .v134-character-meta .v133-character-level{padding:4px 7px!important;font-size:8px!important}}

/* Monster possible loot: all configured entries remain reachable by touch scrolling. */
body.v127-ui .v122-monster-loot-grid{max-height:244px!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y!important;overscroll-behavior:contain!important;padding-right:7px!important;scrollbar-width:thin!important;scrollbar-color:#e3982d rgba(255,255,255,.06)!important}
body.v127-ui .v122-monster-loot-grid::-webkit-scrollbar{width:5px!important}body.v127-ui .v122-monster-loot-grid::-webkit-scrollbar-thumb{background:#e3982d!important;border-radius:8px!important}

/* Status asset stays centred on the item artwork; text is shown only in the opened status dialog. */
body.v127-ui .v119-item-card>.v39-item-icon-wrap{position:relative!important}
body.v127-ui .v119-item-card .v129-mini-restriction.worn{border-color:rgba(255,116,116,.72)!important;background:rgba(86,24,26,.9)!important}
body.v127-ui .v119-item-card .v129-mini-restriction.confiscated{border-color:rgba(235,69,97,.78)!important;background:rgba(68,12,32,.92)!important}
body.v127-ui .v98-picker-modal .v119-item-card .v129-mini-restriction{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important}

/* Long item names shrink gently instead of escaping or forcing malformed rows. */
body.v127-ui .v119-item-card.name-long .v39-item-head h3{font-size:10px!important;line-height:1.1!important}
body.v127-ui .v119-item-card.name-very-long .v39-item-head h3{font-size:8.5px!important;line-height:1.08!important}
body.v127-ui .v122-item-detail-card.name-long .v97-item-detail-copy>h2{font-size:19px!important}
body.v127-ui .v122-item-detail-card.name-very-long .v97-item-detail-copy>h2{font-size:16px!important}

/* Equipment features always show potential sockets; closed ones stay compact. */
body.v127-ui .v132-equipment-socket.uncrafted{opacity:.78!important;border-style:dashed!important;background:rgba(14,20,25,.64)!important}
body.v127-ui .v132-equipment-socket.uncrafted b{color:rgba(222,228,225,.62)!important;font-weight:700!important}
body.v127-ui .v132-equipment-socket.preview-range b{color:#f2cf75!important;font-size:16px!important}
body.v127-ui .v132-equipment-feature.preview .v132-equipment-bonus small{color:#9cd9ca!important}
body.v127-ui .v127-item-attributes.preview b{font-size:11px!important}

/* Attribute cards are identical in size and use a tighter two-column rhythm. */
body.v127-ui .v39-attr-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
body.v127-ui .v83-attr-card{width:100%!important;height:58px!important;min-height:58px!important;max-height:58px!important;padding:7px 8px!important;grid-template-columns:28px minmax(0,1fr) 32px!important;align-items:center!important;gap:7px!important;border-radius:12px!important;background:linear-gradient(145deg,rgba(8,31,33,.94),rgba(5,20,25,.97))!important}
body.v127-ui .v128-profile-attr-icon{width:28px!important;height:28px!important;padding:4px!important;border-radius:8px!important}
body.v127-ui .v83-attr-card .v83-attr-name{min-width:0!important;font-size:9px!important;line-height:1.08!important;white-space:normal!important;overflow-wrap:normal!important}
body.v127-ui .v83-attr-card>b{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:9px!important;font-size:13px!important;background:rgba(49,35,13,.78)!important;border:1px solid rgba(224,172,70,.42)!important;color:#f2c76b!important}

/* Notifications are mathematically centred, including narrow safe-area screens. */
body.v127-ui #toast-root{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(calc(100vw - 16px),590px)!important;margin:0!important}

/* Friend cards: no empty lower half, actions remain touchable. */
body.v127-ui .v125-friend-card{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;grid-template-rows:auto!important;grid-template-areas:"avatar copy actions"!important;align-items:center!important;min-height:72px!important;height:auto!important;padding:7px 8px!important;gap:8px!important;border-radius:14px!important}
body.v127-ui .v125-friend-card>.v125-friend-avatar{grid-area:avatar!important;width:46px!important;height:54px!important;align-self:center!important}
body.v127-ui .v125-friend-card>.v125-friend-copy{grid-area:copy!important;align-self:center!important;display:grid!important;gap:2px!important;min-width:0!important}
body.v127-ui .v125-friend-copy b{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v125-friend-copy small,body.v127-ui .v125-friend-copy em{font-size:7px!important;line-height:1.1!important}
body.v127-ui .v125-friend-actions{grid-area:actions!important;display:grid!important;grid-template-columns:repeat(3,30px)!important;gap:4px!important;align-self:center!important}
body.v127-ui .v125-friend-actions button{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:5px!important;border-radius:9px!important}
body.v127-ui .v125-friend-actions button :where(img,svg,.v83-ui-icon){width:17px!important;height:17px!important}
@media(max-width:370px){body.v127-ui .v125-friend-card{grid-template-columns:44px minmax(0,1fr)!important;grid-template-areas:"avatar copy" "actions actions"!important}body.v127-ui .v125-friend-actions{justify-content:start!important}}

/* ---- css/v128-warrior-threat.css ---- */
/* Aldos RPG v1.128.4 — permanent warrior threat effects on monster cards. */
.v101-monster-card{position:relative}
body.v127-ui .v106-effect-asset.v113-effect-asset.threat-held,
body.v127-ui .v106-effect-asset.v113-effect-asset.status-threat-held{
  border-color:rgba(72,224,151,.95)!important;
  background:linear-gradient(145deg,rgba(16,72,54,.96),rgba(6,31,25,.98))!important;
  box-shadow:0 0 0 1px rgba(72,224,151,.16),0 0 12px rgba(72,224,151,.24)!important;
}
body.v127-ui .v106-effect-asset.v113-effect-asset.threat-warning,
body.v127-ui .v106-effect-asset.v113-effect-asset.status-threat-warning{
  border-color:rgba(239,196,73,.96)!important;
  background:linear-gradient(145deg,rgba(84,67,18,.96),rgba(35,28,7,.98))!important;
  box-shadow:0 0 0 1px rgba(239,196,73,.15),0 0 12px rgba(239,196,73,.22)!important;
}
body.v127-ui .v106-effect-asset.v113-effect-asset.threat-lost,
body.v127-ui .v106-effect-asset.v113-effect-asset.status-threat-lost{
  border-color:rgba(242,82,91,.96)!important;
  background:linear-gradient(145deg,rgba(83,24,30,.96),rgba(36,8,13,.98))!important;
  box-shadow:0 0 0 1px rgba(242,82,91,.17),0 0 12px rgba(242,82,91,.25)!important;
}

body.v127-ui .v106-effect-asset.v113-effect-asset.rogue-opening,
body.v127-ui .v106-effect-asset.v113-effect-asset.status-rogue-opening{
  border-color:rgba(178,103,255,.9)!important;
  background:linear-gradient(145deg,rgba(57,25,79,.95),rgba(19,9,29,.98))!important;
  box-shadow:0 0 11px rgba(178,103,255,.2)!important;
}
body.v127-ui .v106-effect-asset.v113-effect-asset.confusion,
body.v127-ui .v106-effect-asset.v113-effect-asset.status-confusion{
  border-color:rgba(152,126,240,.88)!important;
}
body.v127-ui .v106-effect-asset.v113-effect-asset.weak-spot,
body.v127-ui .v106-effect-asset.v113-effect-asset.status-weak-spot{
  border-color:rgba(241,117,91,.9)!important;
}
body.v127-ui .v106-effect-asset.v113-effect-asset.smoke-veil,
body.v127-ui .v106-effect-asset.v113-effect-asset.status-smoke-veil{
  border-color:rgba(126,180,194,.86)!important;
}

/* ---- css/v1281-battle-cleanup.css ---- */
/* Aldos RPG v1.128.4 — immediate ability interaction and cleaned detail modal. */
/* Ability cards already contain their title; the duplicated generic modal heading is intentionally omitted. */
body.v127-ui .modal.v1281-ability-modal{padding-top:22px!important}
body.v127-ui .modal.v1281-ability-modal>.modal-close{z-index:5}
body.v127-ui .modal.v1281-ability-modal>.v123-ability-detail,
body.v127-ui .modal.v1281-ability-modal>.v61-battle-ability-detail{margin-top:4px!important}
body.v127-ui .v102-skill-cast,
body.v127-ui [data-ability-toggle],
body.v127-ui .v106-target-card{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body.v127-ui #v1281-ability-target-layer:empty{display:none}
body.v127-ui #v1281-skill-detail-slot{contain:layout style}

body.v127-ui .v106-target-card.v127-target-card.unavailable{opacity:.58!important;filter:saturate(.62)!important;cursor:not-allowed!important;transform:none!important}
body.v127-ui .v106-target-card.v127-target-card.unavailable:active{transform:none!important;border-color:rgba(221,94,107,.3)!important}
body.v127-ui .v1282-target-unavailable{display:block;grid-column:1/-1;color:rgba(242,198,125,.92);font-size:.76rem;line-height:1.25;margin-top:5px}

/* ---- css/v1284-healer-faith.css ---- */

/* v1.128.4 — healer faith prompt and dual target selector */
.v1284-echo-prompt{position:fixed;z-index:1300;left:50%;top:max(10px,env(safe-area-inset-top));transform:translateX(-50%);width:min(680px,calc(100vw - 22px));display:grid;grid-template-columns:minmax(180px,1fr) repeat(2,minmax(110px,.45fr));gap:9px;padding:10px;border:1px solid rgba(246,210,118,.55);border-radius:16px;background:rgba(20,16,28,.96);box-shadow:0 14px 40px rgba(0,0,0,.42);backdrop-filter:blur(14px)}
.v1284-echo-prompt>div{padding:2px 6px}.v1284-echo-prompt small{display:block;color:#f2ca77;font-size:10px;letter-spacing:.14em}.v1284-echo-prompt b{display:block;font-size:15px;color:#fff}.v1284-echo-prompt p{margin:3px 0 0;color:#c9c3d4;font-size:11px;line-height:1.25}.v1284-echo-prompt button{border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:8px 10px;background:rgba(255,255,255,.06);color:#fff;text-align:left;cursor:pointer}.v1284-echo-prompt button:first-of-type{box-shadow:inset 3px 0 #e7a94d}.v1284-echo-prompt button:last-of-type{box-shadow:inset 3px 0 #7ed6a5}.v1284-echo-prompt button strong,.v1284-echo-prompt button span{display:block}.v1284-echo-prompt button span{font-size:10px;color:#cbc5d6;margin-top:2px}.v1284-dual-section{display:contents}.v1284-dual-section h4{grid-column:1/-1;margin:7px 2px 0;color:#e6d9b7;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
@media(max-width:680px){.v1284-echo-prompt{grid-template-columns:1fr 1fr;top:max(5px,env(safe-area-inset-top));padding:8px}.v1284-echo-prompt>div{grid-column:1/-1}.v1284-echo-prompt p{display:none}.v1284-echo-prompt button{padding:7px 9px}}

/* ---- css/v1285-mage-shields.css ---- */
/* v1.129.1 — Mage constellation rework and universal shield overlays. */
.v79-stat-row.hp > div,
.v106-target-resource.hp > em,
.v99-ally-resource.hp > em {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.v79-stat-row.hp > div > i,
.v106-target-resource.hp > em > u,
.v99-ally-resource.hp > em > u {
  position: relative;
  z-index: 1;
}

.v1285-shield-overlay {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: block;
  width: min(100%, var(--shield-width, 0%));
  min-width: 0;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(234, 252, 255, .88);
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgba(239, 252, 255, .42) 0 5px, rgba(114, 219, 244, .26) 5px 10px),
    linear-gradient(90deg, rgba(75, 181, 222, .32), rgba(178, 242, 255, .68));
  box-shadow: inset 0 0 5px rgba(234, 252, 255, .48), 0 0 5px rgba(85, 215, 255, .28);
  pointer-events: none;
  opacity: .94;
  transition: width .3s ease, opacity .3s ease;
}

.v1285-shield-overlay.compact {
  top: 0;
  right: 0;
  bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .v1285-shield-overlay { transition: none; }
}

/* ---- css/v129-full-rebalance.css ---- */
/* v1.129.1 — системный ребаланс без изменения базовой геометрии интерфейса */
.v129-event-countdown{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center;margin:0 0 12px;padding:12px 14px;border:1px solid rgba(255,177,64,.34);border-radius:17px;background:linear-gradient(135deg,rgba(91,48,14,.82),rgba(23,17,13,.94));box-shadow:inset 0 1px rgba(255,255,255,.05)}
.v129-event-countdown>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:rgba(255,182,65,.12);color:#ffd286}.v129-event-countdown small{display:block;color:#d9a95d;font-size:9px;letter-spacing:.12em}.v129-event-countdown b{display:block;margin-top:2px;font-size:15px}.v129-event-countdown em{font-style:normal;color:#ffe2a7;font-variant-numeric:tabular-nums}.v129-event-countdown p{margin:3px 0 0;color:#d7c4a6;font-size:10px;line-height:1.35}
.v129-item-status-stack{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;min-height:22px}.v129-event-item-status,.v129-mini-restriction{width:22px!important;height:22px!important;min-width:22px!important;padding:2px!important;border-radius:7px!important;border:1px solid rgba(255,255,255,.15)!important;background:#111a20!important;display:grid!important;place-items:center!important}.v129-event-item-status img,.v129-mini-restriction img{width:100%;height:100%;object-fit:contain}.v129-event-item-status.event{border-color:rgba(255,177,64,.55)!important;background:rgba(93,52,13,.72)!important}.v129-event-item-status.one-trade{border-color:rgba(101,188,255,.48)!important}.v129-event-item-status.personal{border-color:rgba(212,117,255,.48)!important}
body.v129-ui .v124-item-card.rarity-common,body.v129-ui .v122-monster-loot.rarity-common{background:linear-gradient(145deg,rgba(47,56,59,.88),rgba(13,19,22,.96))!important;border-color:rgba(181,192,188,.25)!important}body.v129-ui .v124-item-card.rarity-uncommon,body.v129-ui .v122-monster-loot.rarity-uncommon{background:linear-gradient(145deg,rgba(23,59,46,.90),rgba(5,24,25,.96))!important;border-color:rgba(99,208,115,.35)!important}body.v129-ui .v124-item-card.rarity-rare,body.v129-ui .v122-monster-loot.rarity-rare{background:linear-gradient(145deg,rgba(22,46,70,.92),rgba(5,23,31,.96))!important;border-color:rgba(83,154,229,.43)!important}body.v129-ui .v124-item-card.rarity-epic,body.v129-ui .v122-monster-loot.rarity-epic{background:linear-gradient(145deg,rgba(58,33,83,.92),rgba(16,18,36,.97))!important;border-color:rgba(170,100,231,.47)!important}body.v129-ui .v124-item-card.rarity-legendary,body.v129-ui .v122-monster-loot.rarity-legendary{background:linear-gradient(145deg,rgba(91,57,18,.94),rgba(38,22,8,.98))!important;border-color:rgba(235,175,70,.60)!important}
.v129-automatic-attributes{display:grid;gap:12px}.v129-automatic-attributes h2,.v129-automatic-attributes p{margin:0}.v129-automatic-attributes p{color:var(--muted,#aeb9b6);line-height:1.55}
@media(max-width:700px){.v129-event-countdown{grid-template-columns:38px minmax(0,1fr);padding:10px 11px}.v129-event-countdown>span{width:38px;height:38px}.v129-event-countdown b{font-size:13px}}

/* ---- css/v130-admin.css ---- */
.v130-admin-shell{min-height:100vh;background:radial-gradient(circle at 15% 0,rgba(72,106,150,.18),transparent 34%),#10151d;color:#edf3fa;padding:18px;box-sizing:border-box}.v130-admin-shell *{box-sizing:border-box}.v130-admin-header{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1500px;margin:auto;padding:18px 22px;border:1px solid #2f3c4b;border-radius:18px;background:#171e28;box-shadow:0 16px 50px #0007}.v130-admin-header small{color:#72b5e9;letter-spacing:.16em}.v130-admin-header h1{margin:3px 0;font-size:28px}.v130-admin-header p{margin:0;color:#91a0b2}.v130-admin-header-actions,.v130-admin-actions,.v130-admin-inline-form,.v130-admin-filter-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.v130-admin-shell button,.v130-admin-shell input,.v130-admin-shell select{border:1px solid #3a495a;border-radius:10px;background:#111821;color:#eef4fa;padding:10px 12px}.v130-admin-shell button{cursor:pointer;font-weight:700}.v130-admin-shell button:hover{border-color:#6aaee2}.v130-admin-shell button.danger{border-color:#8c4348;color:#ffb4b7}.v130-admin-nav{position:sticky;top:0;z-index:4;display:flex;gap:8px;max-width:1500px;margin:14px auto;padding:9px;border:1px solid #2d3947;border-radius:15px;background:#141b24eF;overflow:auto;backdrop-filter:blur(12px)}.v130-admin-nav button{white-space:nowrap}.v130-admin-nav button.active{background:#2b6794;border-color:#67b5ee}.v130-admin-content{max-width:1500px;margin:auto;display:grid;gap:14px}.v130-admin-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.v130-admin-metric{display:grid;gap:3px;padding:14px;border:1px solid #2e3b49;border-radius:14px;background:#171f29}.v130-admin-metric small,.v130-admin-metric span{color:#8fa0b4}.v130-admin-metric b{font-size:22px}.v130-admin-panel{padding:16px;border:1px solid #2e3b49;border-radius:16px;background:#171f29;min-width:0}.v130-admin-panel>header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.v130-admin-panel h2,.v130-admin-panel h3{margin:0 0 10px}.v130-admin-panel label{display:grid;gap:5px;color:#a9b7c7;font-size:13px}.v130-admin-empty,.v130-admin-loading{display:grid;place-items:center;min-height:100px;color:#8595a8;border:1px dashed #344353;border-radius:12px}.v130-admin-warning-list{display:grid;gap:7px}.v130-admin-warning-list p,.v130-admin-danger{margin:0;padding:10px 12px;border-left:3px solid #d97070;background:#431f243f;border-radius:8px;color:#ffc3c5}.v130-admin-note{color:#91a0b2}.v130-admin-split{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(420px,1.4fr);gap:14px}.v130-admin-player-list{display:grid;gap:6px;max-height:72vh;overflow:auto}.v130-admin-player-row{display:grid!important;grid-template-columns:10px 1fr auto;text-align:left;align-items:center;gap:10px;width:100%}.v130-admin-player-row span:nth-child(2){display:grid}.v130-admin-player-row small{color:#8ea0b3}.v130-admin-player-row em{font-style:normal;color:#8da0b5;font-size:12px}.v130-admin-player-row .status{width:8px;height:8px;border-radius:50%;background:#596574}.v130-admin-player-row .status.online{background:#56d08b;box-shadow:0 0 10px #56d08b}.v130-admin-badge{padding:6px 10px;background:#233348;border-radius:99px}.v130-admin-player-metrics{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:8px}.v130-admin-attrs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.v130-admin-attrs span{padding:7px 9px;background:#111820;border-radius:8px}.v130-admin-equipment-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:8px;margin-bottom:14px}.v130-admin-equipment-grid>div{display:grid;gap:3px;padding:10px;background:#111820;border-radius:10px}.v130-admin-equipment-grid small,.v130-admin-equipment-grid span{color:#8fa0b4}.v130-admin-catalog-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:8px;max-height:58vh;overflow:auto;margin-top:12px}.v130-admin-item{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid #334252;border-radius:11px;background:#111821}.v130-admin-item>div{display:grid;gap:3px}.v130-admin-item span,.v130-admin-item small{color:#8b9caf}.v130-admin-item.rarity-Легендарный{border-color:#a67b2d;background:linear-gradient(135deg,#2b2415,#111821)}.v130-admin-item.rarity-Эпический{border-color:#714a9c}.v130-admin-table-wrap{overflow:auto;max-width:100%}.v130-admin-shell table{width:100%;border-collapse:collapse;min-width:720px}.v130-admin-shell th,.v130-admin-shell td{padding:9px 10px;border-bottom:1px solid #2c3947;text-align:left}.v130-admin-shell th{position:sticky;top:0;background:#18222d;color:#9fb1c5}.v130-admin-shell td small{display:block;color:#8092a5}.v130-admin-shell tr.warning{background:#5c2f2038}.v130-admin-battle,.v130-admin-event{padding:13px;border:1px solid #334252;border-radius:12px;background:#111821;margin-bottom:8px}.v130-admin-battle header,.v130-admin-event header{display:flex;justify-content:space-between;gap:10px}.v130-admin-battle header>div,.v130-admin-event header>div{display:grid}.v130-admin-battle div:last-child{display:flex;gap:8px;flex-wrap:wrap}.v130-admin-battle div:last-child span{padding:5px 8px;background:#202c3a;border-radius:7px}.v130-admin-event.active{border-color:#4c9b72}.v130-admin-event.ended{opacity:.7}.v130-admin-rules{display:grid;gap:8px;color:#b7c2ce}.v130-admin-audit-list{display:grid;gap:7px;max-height:60vh;overflow:auto}.v130-admin-audit-list article{padding:11px;border:1px solid #2e3b49;border-radius:10px;background:#111821}.v130-admin-audit-list header{display:flex;justify-content:space-between}.v130-admin-audit-list p,.v130-admin-audit-list small{margin:4px 0;color:#91a1b3}.v130-admin-give-preview{margin-top:12px}.v130-admin-give-preview article{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;padding:10px;border:1px solid #334252;border-radius:12px;background:#111821}.v130-admin-give-preview article>span{display:grid;place-items:center;width:72px;height:72px;border:1px solid #344353;border-radius:10px;background:#0b1118;overflow:hidden}.v130-admin-give-preview img{display:block;width:64px;height:64px;object-fit:contain}.v130-admin-give-preview article>div{display:grid;gap:4px;min-width:0}.v130-admin-give-preview small{color:#8fa0b4}.v130-admin-give-preview code{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7f91a5;font-size:10px}@media(max-width:780px){.v130-admin-shell{padding:8px}.v130-admin-header{align-items:flex-start;flex-direction:column}.v130-admin-split{grid-template-columns:1fr}.v130-admin-player-list{max-height:42vh}.v130-admin-player-metrics{grid-template-columns:repeat(2,1fr)}.v130-admin-equipment-grid{grid-template-columns:1fr}.v130-admin-inline-form>*{flex:1 1 150px}.v130-admin-panel{padding:12px}}

.v14620-inline-editor{margin:12px 0;padding:14px;border:1px solid #6aaee2;border-radius:14px;background:#101923;box-shadow:0 12px 32px #0005}.v14620-inline-editor>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.v14620-inline-editor h3{margin:2px 0}.v14620-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:9px;margin:10px 0}.v14620-editor-grid label{min-width:0}.v14620-advanced{margin:12px 0;border:1px solid #34475a;border-radius:12px;background:#111821;overflow:hidden}.v14620-advanced summary{cursor:pointer;padding:12px;color:#bcd3e8;font-weight:700}.v14620-advanced>label{padding:0 12px 12px}.v130-admin-shell textarea{width:100%;resize:vertical;border:1px solid #3a495a;border-radius:10px;background:#0d141c;color:#eef4fa;padding:10px 12px;font:inherit;line-height:1.4}.v14620-checks{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0}.v14620-checks label{display:flex;align-items:center;gap:6px}.v14620-checks input{width:20px;min-height:20px}.v1421-admin-item-control [data-item-edit]{border-color:#4a86b3;color:#c8e7ff}@media(max-width:520px){.v14620-editor-grid{grid-template-columns:1fr 1fr}.v14620-inline-editor{padding:10px}.v14620-advanced textarea{min-height:130px}.v1421-admin-item-control{grid-template-columns:56px minmax(0,1fr)!important}.v1421-admin-item-control>select,.v1421-admin-item-control>button{grid-column:1/-1;width:100%}}

/* v1.146.28 — authoritative mobile grant catalog. */
.v14628-grant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:48dvh;overflow:auto;overscroll-behavior:contain;padding:2px}
.v14628-grant-card{display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;padding:7px!important;border:1px solid rgba(129,158,150,.2)!important;border-radius:12px!important;background:rgba(5,19,21,.88)!important;color:#eee9df!important;text-align:left!important}
.v14628-grant-card.selected{border-color:#d3a63f!important;box-shadow:inset 0 0 0 1px #d3a63f55!important}.v14628-grant-card img{width:48px;height:48px;object-fit:contain;border-radius:9px;background:#02090a}.v14628-grant-card span{min-width:0}.v14628-grant-card small,.v14628-grant-card b,.v14628-grant-card em{display:block}.v14628-grant-card small{color:#b99b55;font-size:7px}.v14628-grant-card b{margin:3px 0;color:#f1ece1;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v14628-grant-card em{color:#91a6a1;font-size:7px;font-style:normal}
.v14628-grant-selected{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;align-items:center;min-height:76px;padding:8px;border:1px solid rgba(210,164,61,.28);border-radius:13px;background:#071a1c;color:#9eb0ab}.v14628-grant-selected img{width:60px;height:60px;object-fit:contain;background:#02090a;border-radius:10px}.v14628-grant-selected small,.v14628-grant-selected b,.v14628-grant-selected code,.v14628-grant-selected span{display:block}.v14628-grant-selected b{margin:3px 0;color:#f2ecdf;font-size:12px}.v14628-grant-selected code{color:#8ea49e;font-size:7px;overflow-wrap:anywhere}.v14628-grant-selected span{margin-top:4px;color:#d2b668;font-size:8px}
.v14628-grant-quantity{display:grid;grid-template-columns:42px minmax(70px,120px) 42px;gap:5px;align-items:center;margin:9px 0}.v14628-grant-quantity button,.v14628-grant-quantity input{height:40px;text-align:center;border-radius:10px}
@media(max-width:430px){.v14628-grant-grid{grid-template-columns:1fr;max-height:43dvh}.v130-admin-nav{grid-auto-columns:minmax(82px,auto)!important}}

/* ---- css/v131-beta.css ---- */
/* Aldos RPG v1.131.0 — beta reset, compact admin/chat, legendary variants */

html:has(body.v131-admin-open),
body.v131-admin-open{
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.v131-admin-open #app{
  width:100%!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.v131-admin-open .v130-admin-shell{
  width:100%!important;
  height:100dvh!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:stable!important;
  padding:10px 12px max(88px,env(safe-area-inset-bottom))!important;
  touch-action:pan-y!important;
}
body.v131-admin-open .v130-admin-shell::-webkit-scrollbar,
body.v131-admin-open .v130-admin-player-list::-webkit-scrollbar,
body.v131-admin-open .v130-admin-catalog-list::-webkit-scrollbar,
body.v131-admin-open .v130-admin-audit-list::-webkit-scrollbar,
body.v131-admin-open .v130-admin-table-wrap::-webkit-scrollbar{width:7px;height:7px}
body.v131-admin-open .v130-admin-shell::-webkit-scrollbar-thumb,
body.v131-admin-open .v130-admin-player-list::-webkit-scrollbar-thumb,
body.v131-admin-open .v130-admin-catalog-list::-webkit-scrollbar-thumb,
body.v131-admin-open .v130-admin-audit-list::-webkit-scrollbar-thumb,
body.v131-admin-open .v130-admin-table-wrap::-webkit-scrollbar-thumb{background:#50657a;border-radius:99px}
body.v131-admin-open .v130-admin-shell::-webkit-scrollbar-track,
body.v131-admin-open .v130-admin-table-wrap::-webkit-scrollbar-track{background:#10161e}

.v130-admin-header{
  position:sticky!important;
  top:0!important;
  z-index:12!important;
  padding:10px 12px!important;
  min-height:0!important;
  border-radius:12px!important;
  backdrop-filter:blur(15px)!important;
}
.v130-admin-header h1{font-size:20px!important;line-height:1.1!important;margin:2px 0!important}
.v130-admin-header p{font-size:11px!important}
.v130-admin-header small{font-size:8px!important}
.v130-admin-header-actions{gap:6px!important}
.v130-admin-nav{
  top:71px!important;
  z-index:11!important;
  gap:5px!important;
  margin:7px auto 9px!important;
  padding:6px!important;
  border-radius:11px!important;
  scrollbar-width:thin!important;
  touch-action:pan-x!important;
}
.v130-admin-content{gap:9px!important;padding-bottom:30px!important}
.v130-admin-panel{padding:11px!important;border-radius:12px!important}
.v130-admin-panel>header{margin-bottom:8px!important;gap:7px!important;flex-wrap:wrap!important}
.v130-admin-panel h2{font-size:16px!important;margin:0!important}
.v130-admin-panel h3{font-size:14px!important;margin:9px 0 6px!important}
.v130-admin-panel p,.v130-admin-panel li{font-size:11px!important;line-height:1.35!important}
.v130-admin-metrics{gap:6px!important;grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important}
.v130-admin-metric{padding:8px!important;border-radius:9px!important;min-width:0!important}
.v130-admin-metric small,.v130-admin-metric span{font-size:8px!important;overflow-wrap:anywhere!important}
.v130-admin-metric b{font-size:15px!important;overflow-wrap:anywhere!important}

.v130-admin-shell button,
.v130-admin-shell input,
.v130-admin-shell select,
.v130-admin-shell textarea{
  min-height:32px!important;
  padding:6px 8px!important;
  border-radius:8px!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.v130-admin-shell button{min-width:0!important;font-weight:700!important;white-space:normal!important}
.v130-admin-shell textarea{display:block!important;width:100%!important;min-height:74px!important;resize:vertical!important;background:#111821!important;color:#eef4fa!important;border:1px solid #3a495a!important}
.v130-admin-actions,.v130-admin-inline-form,.v130-admin-filter-row,.v130-admin-header-actions{gap:6px!important}
.v130-admin-actions button,.v130-admin-inline-form button{flex:0 1 auto!important}
.v130-admin-inline-form label,.v130-admin-filter-row label{min-width:100px!important}
.v130-admin-note{font-size:10px!important;line-height:1.35!important}
.v130-admin-badge{padding:4px 7px!important;font-size:9px!important}
.v130-admin-player-row{grid-template-columns:8px minmax(0,1fr) auto!important;gap:6px!important;padding:6px 7px!important;min-height:42px!important}
.v130-admin-player-row b{font-size:11px!important}
.v130-admin-player-row small,.v130-admin-player-row em{font-size:8px!important}
.v130-admin-player-list{gap:4px!important;max-height:60dvh!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
.v130-admin-player-metrics{grid-template-columns:repeat(auto-fit,minmax(95px,1fr))!important;gap:5px!important}
.v130-admin-attrs{gap:5px!important;margin:8px 0!important}
.v130-admin-attrs span{padding:5px 6px!important;font-size:9px!important}
.v130-admin-equipment-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:5px!important;margin-bottom:9px!important}
.v130-admin-equipment-grid>div{padding:7px!important;border-radius:8px!important}
.v130-admin-equipment-grid b{font-size:10px!important}.v130-admin-equipment-grid small,.v130-admin-equipment-grid span{font-size:8px!important}
.v130-admin-catalog-list{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:5px!important;max-height:58dvh!important;-webkit-overflow-scrolling:touch!important}
.v130-admin-item{padding:8px!important;gap:7px!important;border-radius:8px!important}
.v130-admin-item b{font-size:10px!important}.v130-admin-item span,.v130-admin-item small{font-size:8px!important}
.v130-admin-table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;border-radius:8px!important}
.v130-admin-shell table{min-width:620px!important;font-size:9px!important}
.v130-admin-shell th,.v130-admin-shell td{padding:6px 7px!important;white-space:normal!important;vertical-align:top!important}
.v130-admin-shell th{top:0!important;z-index:2!important}
.v130-admin-shell td small{font-size:7px!important}
.v130-admin-battle,.v130-admin-event{padding:8px!important;border-radius:9px!important;margin-bottom:5px!important}
.v130-admin-battle header,.v130-admin-event header{gap:6px!important;flex-wrap:wrap!important}
.v130-admin-audit-list{gap:5px!important;max-height:54dvh!important;-webkit-overflow-scrolling:touch!important}
.v130-admin-audit-list article{padding:7px!important;border-radius:8px!important}
.v130-admin-audit-list header{gap:8px!important;flex-wrap:wrap!important}
.v130-admin-audit-list p,.v130-admin-audit-list small,.v130-admin-audit-list time{font-size:8px!important}
.v131-admin-diagnostic{display:grid!important;gap:4px!important;padding:8px!important;border:1px solid #365b49!important;border-radius:9px!important;background:#14271f!important;overflow-wrap:anywhere!important}
.v131-admin-diagnostic b{font-size:11px!important}.v131-admin-diagnostic span,.v131-admin-diagnostic small{font-size:8px!important;color:#a7c4b5!important}

/* One compact chat card is deliberately small enough for 12+ visible messages. */
body.v127-ui .v125-chat-drawer .v78-chat-scroll{
  padding:4px 4px 8px!important;
  gap:2px!important;
}
body.v127-ui .v125-chat-message{
  grid-template-columns:30px minmax(0,1fr)!important;
  gap:5px!important;
  min-height:43px!important;
  padding:4px 5px!important;
  margin:0!important;
  border-radius:8px!important;
}
body.v127-ui .v125-chat-message>.v131-chat-avatar{
  width:30px!important;min-width:30px!important;max-width:30px!important;
  height:34px!important;min-height:34px!important;max-height:34px!important;
  border-radius:7px!important;
}
body.v127-ui .v125-chat-message>.v131-chat-avatar>.v131-chat-face{
  object-position:center 8%!important;transform:scale(1.42)!important;transform-origin:center 13%!important;
}
body.v127-ui .v125-chat-message>.v127-event-avatar>img{padding:3px!important}
body.v127-ui .v125-chat-message>.v125-chat-content{gap:1px!important;padding-right:31px!important;min-height:34px!important}
body.v127-ui .v125-chat-message .v131-chat-name{font-size:9px!important;line-height:1.05!important}
body.v127-ui .v125-chat-message .v131-chat-submeta{font-size:5.7px!important;line-height:1!important;gap:2px!important}
body.v127-ui .v125-chat-message .v123-chat-text{
  font-size:8px!important;line-height:1.16!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;
  overflow:hidden!important;overflow-wrap:anywhere!important;
}
body.v127-ui .v125-chat-message .v123-chat-tail{right:4px!important;top:4px!important;height:34px!important;gap:1px!important}
body.v127-ui .v125-chat-message .v123-chat-tail time{font-size:5.5px!important}
body.v127-ui .v125-chat-message .v123-chat-delete{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;padding:2px!important}
body.v127-ui .v125-chat-message .v123-chat-delete :where(img,svg,.v83-ui-icon){width:11px!important;height:11px!important}

/* Skill text may use the canonical full description, but battle cards stay bounded. */
body.v127-ui :where(.battle-skill-description,.v114-skill-description,.v125-skill-description,.v128-skill-description,.v131-battle-description){
  max-width:100%!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.v132-equipment-bonus.legendary-skill{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;padding:8px!important;border:1px solid rgba(217,166,58,.52)!important;border-radius:9px!important;background:linear-gradient(135deg,rgba(93,65,17,.28),rgba(20,25,31,.92))!important}
.v132-equipment-bonus.legendary-skill img{width:38px!important;height:38px!important;object-fit:contain!important}
.v132-equipment-bonus.legendary-skill p{margin:2px 0 0!important;font-size:9px!important;line-height:1.3!important}

@media(max-width:780px){
  body.v131-admin-open .v130-admin-shell{padding:5px 5px max(84px,env(safe-area-inset-bottom))!important}
  .v130-admin-header{position:relative!important;top:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;padding:7px 8px!important}
  .v130-admin-header>div:first-child{min-width:0!important}
  .v130-admin-header h1{font-size:16px!important}
  .v130-admin-header p{font-size:8px!important}
  .v130-admin-header-actions{display:grid!important;grid-template-columns:1fr 1fr!important;align-self:stretch!important}
  .v130-admin-header-actions button{padding:4px 6px!important;font-size:9px!important;min-height:28px!important}
  .v130-admin-nav{top:0!important;margin:5px 0 6px!important;border-radius:9px!important;padding:4px!important}
  .v130-admin-nav button{min-height:28px!important;padding:4px 7px!important;font-size:9px!important;white-space:nowrap!important}
  .v130-admin-content{gap:6px!important}
  .v130-admin-panel{padding:8px!important}
  .v130-admin-panel h2{font-size:14px!important}
  .v130-admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v130-admin-split{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
  .v130-admin-player-list{max-height:34dvh!important}
  #adm-player-detail{max-height:none!important;overflow:visible!important}
  .v130-admin-inline-form,.v130-admin-filter-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:end!important}
  .v130-admin-inline-form>*:only-child,.v130-admin-filter-row>*:only-child{grid-column:1/-1!important}
  .v130-admin-inline-form label,.v130-admin-filter-row label{min-width:0!important}
  .v130-admin-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  .v130-admin-actions button{width:100%!important}
  .v130-admin-catalog-list{grid-template-columns:1fr!important;max-height:50dvh!important}
  .v130-admin-shell table{min-width:560px!important}
}

@media(max-width:390px){
  .v130-admin-header{grid-template-columns:1fr!important}
  .v130-admin-header-actions{grid-template-columns:1fr 1fr!important;width:100%!important}
  .v130-admin-metrics{grid-template-columns:1fr 1fr!important}
  .v130-admin-inline-form,.v130-admin-filter-row,.v130-admin-actions{grid-template-columns:1fr!important}
  .v130-admin-shell table{min-width:520px!important}
}

.v131-admin-asset-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;
  gap:6px!important;
  max-height:62dvh!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding:2px!important;
}
.v131-admin-asset{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:7px!important;
  align-items:center!important;
  padding:6px!important;
  border:1px solid #334252!important;
  border-radius:9px!important;
  background:#111821!important;
}
.v131-admin-asset.broken{border-color:#b65359!important;background:#32191d!important}
.v131-admin-asset img{width:48px!important;height:48px!important;object-fit:contain!important;background:#090d12!important;border-radius:7px!important}
.v131-admin-asset>div{min-width:0!important;display:grid!important;gap:2px!important}
.v131-admin-asset b{font-size:9px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.v131-admin-asset small{font-size:7px!important;color:#8fa0b4!important}
.v131-admin-asset code{display:block!important;max-width:100%!important;font-size:6px!important;color:#718399!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media(max-width:520px){.v131-admin-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v131-admin-asset{grid-template-columns:38px minmax(0,1fr)!important}.v131-admin-asset img{width:38px!important;height:38px!important}}

/* ---- css/v1321-hotfix.css ---- */
/* Aldos RPG v1.133.0 — transparent semantic assets and stable icon geometry */
html body :is(.item-emblem,.v39-slot-icon,.v97-item-detail-icon,.v119-pit-item-art) :is(img,.item-asset-image){
  display:block!important;width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;
  object-fit:contain!important;object-position:center!important;margin:auto!important;padding:0!important;transform:none!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
html body .v39-equip-slot .v39-slot-icon{display:grid!important;place-items:center!important;overflow:hidden!important;background:rgba(3,19,20,.3)!important;}
html body.v111-battle-active .v106-effect-asset.v113-effect-asset{width:26px!important;min-width:26px!important;max-width:26px!important;height:26px!important;min-height:26px!important;max-height:26px!important;padding:2px!important;overflow:visible!important;}
html body.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-icon{display:grid!important;place-items:center!important;width:20px!important;height:20px!important;overflow:hidden!important;border-radius:5px!important;background:transparent!important;}
html body.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-icon :is(img,svg,.v114-status-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;margin:0!important;transform:none!important;background:transparent!important;}
html body .location-hero :is(img,.location-background){object-fit:cover!important;object-position:center!important;}

/* ---- css/v1332-network-stability.css ---- */

.v1332-attribute-pending{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin:0 0 14px;padding:12px;border:1px solid rgba(214,171,74,.48);border-radius:16px;background:linear-gradient(135deg,rgba(73,52,16,.5),rgba(7,27,27,.92))}.v1332-attribute-pending>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(214,171,74,.12)}.v1332-attribute-pending img{width:27px;height:27px;object-fit:contain}.v1332-attribute-pending div{min-width:0}.v1332-attribute-pending b,.v1332-attribute-pending small{display:block}.v1332-attribute-pending small{margin-top:3px;opacity:.72}.v1332-attribute-pending button{white-space:nowrap}.v119-location-routes .location-btn{display:flex;align-items:center;gap:9px}.v1332-route-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid rgba(208,167,69,.28);border-radius:10px;background:rgba(6,25,25,.62);overflow:hidden}.v1332-route-location-icon{width:25px!important;height:25px!important;object-fit:contain!important;background:transparent!important}.v1332-route-icon+span{min-width:0;overflow:hidden;text-overflow:ellipsis}.v101-battle .v101-roster-scroll{contain:layout paint}.v101-battle .battle-log-scroll{contain:layout paint}@media(max-width:560px){.v1332-attribute-pending{grid-template-columns:auto 1fr}.v1332-attribute-pending button{grid-column:1/-1;width:100%}}

/* ---- css/v1340-authoritative-ui.css ---- */
/* Aldos RPG v1.134.0 — authoritative multiplayer and low-lag UI */
body.v134-location-screen .topbar .v76-title-mark,
body.v134-location-screen .topbar .v76-title-icon,
body.v134-location-screen .topbar > .asset-icon:first-child{display:none!important}
.v1332-route-icon{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;border:1px solid rgba(201,159,77,.45)!important;border-radius:12px!important;overflow:hidden!important;background:rgba(3,18,20,.72)!important}
.v1332-route-icon img,.v1332-route-location-icon{width:32px!important;height:32px!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important}
.v127-location-battle-row .v127-battle-party-copy{min-width:0!important;margin-left:8px!important;transform:translateX(3px)!important}
.v127-location-battle-row .v127-battle-party-copy b{display:block!important;max-width:112px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important}
.v127-location-battle-row .v127-battle-party-copy small{font-size:11px!important;white-space:nowrap!important}
.v108-chevron,.v113-support-caret,[data-drawer-grip]{display:none!important}
.v108-swipe-handle{touch-action:manipulation!important}
.v78-left-drawer,.v78-chat-drawer,.v81-support-drawer{transition:opacity .13s ease,transform .13s ease!important;will-change:auto!important}
.v79-status-icon,.v101-status-icon,.v113-status-asset,[data-status-tip] .asset-icon{overflow:hidden!important;isolation:isolate!important}
.v79-status-icon img,.v101-status-icon img,.v113-status-asset img,[data-status-tip] img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;margin:0!important;inset:auto!important;filter:none!important}
.v134-empty-socket-note{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 10px;border:1px dashed rgba(201,159,77,.38);border-radius:12px;color:#b7b5a8;font-size:12px;text-align:center;background:rgba(0,0,0,.12)}
.v134-attribute-modal .modal-card{max-width:620px!important}
.v134-attribute-choice>header{display:flex;gap:14px;align-items:center;padding:14px;border:1px solid rgba(210,164,76,.42);border-radius:18px;background:linear-gradient(135deg,rgba(34,51,48,.92),rgba(10,24,25,.96))}
.v134-attribute-choice>header>svg,.v134-attribute-choice>header>img{width:52px!important;height:52px!important;object-fit:contain!important;flex:0 0 52px!important}
.v134-attribute-choice h2{margin:0 0 4px;font-size:24px}.v134-attribute-choice p{margin:0;color:#c7c7be;line-height:1.35}
.v134-attribute-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.v134-attribute-card{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;min-height:92px;padding:12px;border:1px solid rgba(210,164,76,.38);border-radius:16px;background:rgba(4,24,26,.88);color:#f5f1df;text-align:left}
.v134-attribute-card:active{transform:scale(.985)}.v134-attribute-card:disabled{opacity:.55}
.v134-attribute-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:rgba(194,145,48,.12);overflow:hidden}.v134-attribute-icon img,.v134-attribute-icon svg{width:34px!important;height:34px!important;object-fit:contain!important}
.v134-attribute-card b{display:block;font-size:16px}.v134-attribute-card small{display:block;margin-top:4px;color:#aaa;font-size:12px}.v134-attribute-card em{font-style:normal;font-size:18px;font-weight:800;color:#e9b65d}
.v134-attribute-note{margin-top:12px!important;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.035);font-size:12px!important}
#open-attribute-choice{position:relative!important;overflow:hidden!important;min-height:50px!important;padding:10px 16px!important;border-radius:15px!important;background:linear-gradient(180deg,#e7b85f,#a66b22)!important;color:#17120a!important;font-weight:800!important;box-shadow:0 8px 20px rgba(0,0,0,.26)!important}
#open-attribute-choice img,#open-attribute-choice svg{width:28px!important;height:28px!important;object-fit:contain!important;transform:none!important}
#v78-location-chat-open{position:relative!important;top:auto!important;right:auto!important;transform:none!important;margin-left:auto!important;z-index:5!important}
#v78-location-chat-open .v80-unread,#v78-location-chat-open [data-chat-unread],.v117-chat-trigger .v80-unread,.v117-chat-trigger [data-chat-unread]{position:absolute!important;top:-5px!important;right:-5px!important;left:auto!important;bottom:auto!important;transform:none!important;min-width:20px!important;height:20px!important;line-height:20px!important;border-radius:999px!important;text-align:center!important;z-index:8!important}
.v117-chat-trigger .v80-unread,.v117-chat-trigger [data-chat-unread]{top:4px!important;right:4px!important}
@media(max-width:520px){.v134-attribute-grid{grid-template-columns:1fr}.v134-attribute-card{min-height:78px}.v127-location-battle-row .v127-battle-party-copy b{max-width:86px}}

/* ---- css/v1343-gameplay-stability.css ---- */
/* Aldos RPG v1.134.3 — authoritative gameplay and battle UI stability. */

/* The timer and the small header lamp must visibly follow the authoritative
   phase even when only an incremental battle snapshot is received. */
.v79-turn.player-turn {
  --v1343-turn-accent: #b8ff39;
  border-color: color-mix(in srgb, var(--v1343-turn-accent) 58%, transparent);
  box-shadow: inset 0 0 0 1px rgba(184,255,57,.12), 0 0 22px rgba(184,255,57,.08);
}
.v79-turn.monster-turn {
  --v1343-turn-accent: #ff6b52;
  border-color: color-mix(in srgb, var(--v1343-turn-accent) 65%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,107,82,.16), 0 0 24px rgba(255,72,52,.12);
}
.v79-turn.player-turn .v79-turn-bar > i { background: linear-gradient(90deg,#73d624,#c8ff43); }
.v79-turn.monster-turn .v79-turn-bar > i { background: linear-gradient(90deg,#ff3d31,#ff9b4a); }
.v79-turn.player-turn .v79-turn-icon { color:#c9ff4c; filter:drop-shadow(0 0 8px rgba(184,255,57,.35)); }
.v79-turn.monster-turn .v79-turn-icon { color:#ff765d; filter:drop-shadow(0 0 9px rgba(255,70,55,.42)); }
.v79-header-state.ally > i {
  background:#b8ff39 !important;
  box-shadow:0 0 0 4px rgba(184,255,57,.10),0 0 13px rgba(184,255,57,.75) !important;
}
.v79-header-state.enemy > i {
  background:#ff5946 !important;
  box-shadow:0 0 0 4px rgba(255,89,70,.12),0 0 14px rgba(255,89,70,.82) !important;
}
body.v1343-enemy-turn .v79-battle-header { border-bottom-color:rgba(255,89,70,.34); }
body.v1343-player-turn .v79-battle-header { border-bottom-color:rgba(184,255,57,.25); }

/* Old layers squeezed the section arrow into a tiny 10px box. The final
   override gives it a stable touch target and draws a clean chevron. */
.v102-skill-drawer .v106-skill-section-head {
  grid-template-columns:minmax(0,1fr) auto 38px !important;
  gap:8px !important;
  min-height:42px;
  align-items:center;
}
.v102-skill-drawer .v106-skill-section-head > i {
  position:relative;
  display:grid !important;
  place-items:center;
  width:36px !important;
  min-width:36px !important;
  max-width:36px !important;
  height:32px !important;
  min-height:32px !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden;
  font-size:0 !important;
  line-height:1 !important;
  border-radius:10px !important;
  border:1px solid rgba(190,255,66,.24);
  background:rgba(255,255,255,.045);
  flex:0 0 36px !important;
}
.v102-skill-drawer .v106-skill-section-head > i::before {
  content:"";
  width:10px;
  height:10px;
  border-right:2px solid #c9ff4c;
  border-bottom:2px solid #c9ff4c;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .18s ease;
}
.v102-skill-drawer .v106-skill-section-head[aria-expanded="true"] > i::before {
  transform:translateY(2px) rotate(225deg);
}

/* Keep fresh battle drawers above the board without hiding the interface. */
.v79-chat-drawer,
.v102-skill-drawer,
.v81-support-drawer { isolation:isolate; }
.v79-chat-drawer.open { visibility:visible !important; pointer-events:auto !important; }

@media (max-width:700px) {
  .v102-skill-drawer .v106-skill-section-head > i {
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    height:30px !important;
  }
}

/* ---- css/v1350-world-combat-content.css ---- */
/* Aldos RPG v1.135.0 — world, combat, content, rescue and cosmetics. */
body.v119-ui .v119-location-image{display:grid!important;place-items:center!important;overflow:hidden!important;background:radial-gradient(circle at 50% 35%,rgba(74,165,142,.18),transparent 62%),rgba(2,15,18,.72)!important}
body.v119-ui .v119-location-image .v1350-current-location-art,body.v119-ui .v119-location-image img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;filter:none!important;transform:none!important}
body.v119-ui .v119-location-routes .location-btn{justify-content:center!important;text-align:center!important;gap:6px!important}
body.v119-ui .v119-location-routes .v1332-route-icon{display:none!important}
.v1350-attribute-confirm{margin-top:12px;padding:14px;border:1px solid rgba(234,193,91,.55);border-radius:15px;background:linear-gradient(145deg,rgba(48,35,10,.96),rgba(8,24,25,.98));box-shadow:0 14px 36px rgba(0,0,0,.35)}
.v1350-attribute-confirm small{color:#e8c768;letter-spacing:.13em}.v1350-attribute-confirm h3{margin:4px 0;font-size:20px}.v1350-attribute-confirm p{margin:0;color:#c8d0cd}.v1350-attribute-confirm>div:last-child{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin-top:12px}.v134-attribute-choice.confirming .v134-attribute-grid{opacity:.35;pointer-events:none}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v1350-effect-stacks{display:grid!important;place-items:center!important;position:absolute!important;left:-3px!important;bottom:-3px!important;right:auto!important;top:auto!important;z-index:12!important;min-width:14px!important;width:auto!important;height:14px!important;padding:0 3px!important;border-radius:8px!important;border:1px solid #72c7ff!important;background:#082a54!important;color:#dff5ff!important;font:900 8px/1 Arial,sans-serif!important;box-shadow:0 2px 8px rgba(0,0,0,.55)!important}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-turns{right:-3px!important;bottom:-3px!important;left:auto!important}
.v1350-echo-prompt{border-color:rgba(255,216,117,.8)!important;background:radial-gradient(circle at 50% -20%,rgba(255,218,116,.2),transparent 45%),linear-gradient(145deg,rgba(35,24,48,.985),rgba(10,24,29,.985))!important;box-shadow:0 18px 60px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.05) inset!important}
.v1350-echo-prompt button{display:grid!important;grid-template-columns:34px 1fr!important;align-items:center!important;column-gap:9px!important;min-height:58px!important;transition:transform .15s ease,filter .15s ease!important}.v1350-echo-prompt button i{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.08);font-style:normal;font-size:18px}.v1350-echo-prompt button:not(:disabled):active{transform:scale(.97)}.v1350-echo-prompt.locked button{filter:grayscale(.7);opacity:.5;pointer-events:none}
.v125-monster-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v125-monster-stat-grid article:nth-last-child(-n+3){border-color:rgba(113,189,168,.3)!important}
body.v127-ui .v128-chat-indicator{left:auto!important;right:4px!important;top:3px!important;bottom:auto!important;transform:none!important;rotate:0deg!important}
body:not(.v111-battle-active) .v128-chat-indicator{position:absolute!important;left:auto!important;right:3px!important;top:3px!important;margin:0!important}
.v1350-cosmetic-admin{margin-top:12px!important}
.v125-player-card[style*="--v123-player-bg:url"]{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:linear-gradient(155deg,rgba(5,16,19,.96),rgba(3,9,12,.98))!important}
.v125-player-card[style*="--v123-player-bg:url"]::before{content:"";position:absolute;inset:0;z-index:0;background-image:var(--v123-player-bg)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;opacity:.82;pointer-events:none}
.v125-player-card[style*="--v123-player-bg:url"]>*{position:relative;z-index:1}
.chat-message[data-cosmetic-theme]{position:relative;isolation:isolate;overflow:visible}.chat-message[data-cosmetic-theme]::before{content:"";position:absolute;inset:-5px -7px;z-index:0;background-size:100% 100%;background-position:center;background-repeat:no-repeat;opacity:.58;pointer-events:none}.chat-message[data-cosmetic-theme]>*{position:relative;z-index:1}.chat-message[data-cosmetic-theme="fruit"]::before{background-image:url('../assets/v1350/cosmetics/fruit-message.webp?ah=c9b03252b0af')}.chat-message[data-cosmetic-theme="anime"]::before{background-image:url('../assets/v1350/cosmetics/anime-message.webp?ah=42d4fd58f642')}.chat-message[data-cosmetic-theme="lava"]::before{background-image:url('../assets/v1350/cosmetics/lava-message.webp?ah=0591d737c6cb')}.chat-message[data-cosmetic-theme="royal-poop"]::before{background-image:url('../assets/v1350/cosmetics/royal-poop-message.webp?ah=21d1b3536ee5')}.chat-message[data-cosmetic-theme="eshkeere"]::before{background-image:url('../assets/v1350/cosmetics/eshkeere-message.webp?ah=7eb9472c3e84')}
.v89-weather.active,.v86-weather.active{animation:v1350WeatherPulse 4.5s ease-in-out infinite}.v89-weather-scene img,.v86-weather-icon img{animation:v1350WeatherFloat 3.1s ease-in-out infinite!important}@keyframes v1350WeatherPulse{0%,100%{filter:saturate(1);box-shadow:0 14px 40px rgba(0,0,0,.25)}50%{filter:saturate(1.18);box-shadow:0 18px 48px rgba(62,200,170,.16)}}@keyframes v1350WeatherFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@media(max-width:560px){.v1350-attribute-confirm>div:last-child{grid-template-columns:1fr}.v1350-echo-prompt{top:max(8px,env(safe-area-inset-top))!important}.v1350-echo-prompt button{min-height:54px!important}.v125-monster-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* ---- css/v1360-systemic-balance.css ---- */
/* Aldos RPG v1.136.0 — systemic loot, equipment, holy armor, aggression and healer UI. */

/* Healer faith decision: independent fixed modal, centered above every battle layer. */
body.v1350-healer-choice-open{overflow:hidden!important;touch-action:none!important}
.v1350-healer-echo-overlay{
  position:fixed!important;inset:0!important;z-index:2147482500!important;
  display:grid!important;place-items:center!important;padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom))!important;
  background:radial-gradient(circle at 50% 44%,rgba(210,174,88,.14),transparent 39%),rgba(0,7,10,.82)!important;
  -webkit-backdrop-filter:blur(8px) saturate(1.12)!important;backdrop-filter:blur(8px) saturate(1.12)!important;
  pointer-events:auto!important;touch-action:manipulation!important
}
.v1350-healer-echo-card{
  position:relative!important;width:min(94vw,520px)!important;max-height:min(88vh,660px)!important;overflow:auto!important;
  padding:30px 22px 22px!important;border:1px solid rgba(239,205,117,.78)!important;border-radius:26px!important;
  background:radial-gradient(circle at 50% -20%,rgba(255,219,115,.22),transparent 48%),linear-gradient(155deg,rgba(38,26,54,.985),rgba(7,25,28,.99) 67%,rgba(5,16,20,.99))!important;
  box-shadow:0 34px 100px rgba(0,0,0,.76),0 0 0 1px rgba(255,255,255,.055) inset,0 0 45px rgba(226,187,86,.1)!important;
  color:#f5f0df!important;text-align:center!important;pointer-events:auto!important;touch-action:manipulation!important
}
.v1350-healer-echo-mark{display:grid!important;place-items:center!important;width:58px!important;height:58px!important;margin:-2px auto 10px!important;border:1px solid rgba(250,218,133,.75)!important;border-radius:50%!important;background:radial-gradient(circle,rgba(255,229,153,.25),rgba(99,63,126,.16))!important;color:#ffe39b!important;font-size:29px!important;box-shadow:0 0 28px rgba(255,215,111,.2)!important}
.v1350-healer-echo-card>small{display:block!important;color:#e5c875!important;font:800 11px/1.35 system-ui,sans-serif!important;letter-spacing:.14em!important}
.v1350-healer-echo-card h2{margin:8px 0 6px!important;color:#fff7dc!important;font:800 clamp(22px,5.5vw,30px)/1.12 Georgia,serif!important}
.v1350-healer-echo-card>p{max-width:430px!important;margin:0 auto 18px!important;color:#c9d4d1!important;font:500 13px/1.45 system-ui,sans-serif!important}
.v1350-healer-echo-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
.v1350-healer-echo-actions button{
  position:relative!important;display:grid!important;grid-template-columns:46px 1fr!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:10px!important;min-height:88px!important;padding:13px!important;
  border:1px solid rgba(255,255,255,.16)!important;border-radius:18px!important;color:#f8f5ea!important;text-align:left!important;cursor:pointer!important;
  background:linear-gradient(145deg,rgba(70,43,81,.92),rgba(26,28,43,.94))!important;box-shadow:0 10px 25px rgba(0,0,0,.3),0 1px 0 rgba(255,255,255,.06) inset!important;
  transition:transform .14s ease,filter .14s ease,border-color .14s ease!important;pointer-events:auto!important;touch-action:manipulation!important
}
.v1350-healer-echo-actions button:nth-child(2){background:linear-gradient(145deg,rgba(38,88,79,.92),rgba(20,41,46,.95))!important}
.v1350-healer-echo-actions button i{grid-row:1/3!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border:1px solid rgba(255,226,148,.4)!important;border-radius:50%!important;background:rgba(255,255,255,.08)!important;color:#ffe2a0!important;font:normal 22px/1 system-ui!important}
.v1350-healer-echo-actions button strong{align-self:end!important;font:900 18px/1.1 system-ui,sans-serif!important}
.v1350-healer-echo-actions button span{align-self:start!important;margin-top:5px!important;color:#c7d0ce!important;font:600 11px/1.3 system-ui,sans-serif!important}
.v1350-healer-echo-actions button:not(:disabled):active{transform:scale(.965)!important;filter:brightness(1.12)!important}
.v1350-healer-echo-actions button:not(:disabled):focus-visible{outline:2px solid #ffe094!important;outline-offset:3px!important}
.v1350-healer-echo-actions button:disabled{cursor:default!important;filter:grayscale(.55)!important;opacity:.48!important}
.v1350-healer-echo-overlay.sending .v1350-healer-echo-actions button{opacity:.55!important}
.v1350-healer-echo-card>em{display:block!important;min-height:17px!important;margin-top:13px!important;color:#c7b374!important;font:700 11px/1.35 system-ui,sans-serif!important;font-style:normal!important}

/* Status counters: stack count in the left corner, duration in the right corner. */
body.v111-battle-active .v106-effect-asset.v113-effect-asset{position:relative!important;overflow:visible!important}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v1350-effect-stacks{
  display:grid!important;place-items:center!important;position:absolute!important;left:-2px!important;top:-2px!important;right:auto!important;bottom:auto!important;z-index:30!important;
  min-width:12px!important;width:auto!important;height:12px!important;padding:0 2px!important;border:1px solid rgba(151,219,255,.95)!important;border-radius:7px!important;
  background:#062644!important;color:#eefaff!important;font:900 7px/1 Arial,sans-serif!important;line-height:12px!important;transform:none!important;box-shadow:0 2px 6px rgba(0,0,0,.68)!important
}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-turns{left:auto!important;top:auto!important;right:-2px!important;bottom:-2px!important;z-index:29!important;transform:none!important}

/* Monster intrinsic markers. Rightmost is aggressive, second moves left when undead is also present. */
.v1360-monster-traits{position:absolute!important;top:5px!important;right:5px!important;z-index:15!important;display:flex!important;flex-direction:row-reverse!important;align-items:center!important;gap:3px!important;pointer-events:auto!important}
.v1360-monster-trait{display:grid!important;place-items:center!important;appearance:none!important;-webkit-appearance:none!important;flex:0 0 22px!important;width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;padding:1px!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:7px!important;background:rgba(4,12,15,.88)!important;box-shadow:0 3px 10px rgba(0,0,0,.55)!important;overflow:hidden!important;box-sizing:border-box!important;line-height:0!important;cursor:pointer!important;pointer-events:auto!important}
.v1360-monster-trait img,.v1360-monster-trait .monster-trait-image{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1/1!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.v1360-monster-trait.aggressive,.v1360-monster-trait.aggro{border-color:rgba(255,157,66,.8)!important;background:rgba(65,24,5,.9)!important}
.v1360-monster-trait.undead{border-color:rgba(174,191,210,.72)!important;background:rgba(18,27,39,.92)!important}
.v101-monster-card .v101-unit-art,.v119-monster-card .v119-monster-art,.v38-mob-icon,.v93-mob-art{position:relative!important}

/* Location aggression state. */







/* Cosmetic images occupy the exact inner frame, including the center, without edge-only rendering. */








@media(max-width:560px){
  .v1350-healer-echo-overlay{padding:12px!important}.v1350-healer-echo-card{width:min(96vw,480px)!important;padding:24px 14px 17px!important;border-radius:22px!important}.v1350-healer-echo-actions{grid-template-columns:1fr!important;gap:9px!important}.v1350-healer-echo-actions button{min-height:70px!important;grid-template-columns:40px 1fr!important}.v1350-healer-echo-actions button i{width:38px!important;height:38px!important;font-size:19px!important}.v1350-healer-echo-card>p{font-size:12px!important}.v1360-monster-trait{width:19px!important;height:19px!important;border-radius:6px!important}
}

/* ---- css/v1361-loot-aggro-equipment-fix.css ---- */
/* Aldos RPG v1.136.1 — boss-only legendary loot, location-only monster traits,
   conservative equipment attributes and explicit locked socket placeholders. */

/* Monster traits live only on the location mini-card. Battle cards must stay clean. */
body.v127-ui .v119-monster-card .v119-monster-art{position:relative!important;overflow:visible!important}
body.v127-ui .v119-monster-card .v1360-monster-traits{position:absolute!important;top:5px!important;right:5px!important;z-index:6!important;display:flex!important;flex-direction:row-reverse!important;align-items:center!important;gap:4px!important;pointer-events:none!important}
body.v127-ui .v119-monster-card .v1360-monster-trait{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;padding:3px!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:7px!important;box-sizing:border-box!important;box-shadow:0 3px 12px rgba(0,0,0,.5)!important;backdrop-filter:blur(4px)!important}
body.v127-ui .v119-monster-card .v1360-monster-trait img,body.v127-ui .v119-monster-card .v1360-monster-trait .monster-trait-image{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v119-monster-card .v1360-monster-trait.aggro{border-color:rgba(255,130,66,.8)!important;background:rgba(78,21,10,.92)!important}
body.v127-ui .v119-monster-card .v1360-monster-trait.undead{border-color:rgba(166,142,255,.76)!important;background:rgba(28,18,57,.92)!important}
body.v127-ui .v101-monster-card .v1360-monster-traits,body.v127-ui .v79-monster-card .v1360-monster-traits{display:none!important}

/* A physical item always shows its full socket capacity. Closed rolls remain visible and honest. */
body.v127-ui .v132-equipment-feature.all-locked{display:grid!important;gap:7px!important}
body.v127-ui .v132-equipment-socket.locked{opacity:1!important;border-style:dashed!important;border-color:rgba(135,147,153,.3)!important;background:linear-gradient(145deg,rgba(20,25,29,.88),rgba(10,15,19,.9))!important}
body.v127-ui .v132-equipment-socket.locked .v132-socket-art{filter:grayscale(1)!important;opacity:.55!important}
body.v127-ui .v132-equipment-socket.locked small{color:#7e8b91!important}
body.v127-ui .v132-equipment-socket.locked b{color:#aab3b7!important;font-weight:800!important}
body.v127-ui .v132-equipment-socket.locked .v134-empty-socket-note{display:block!important;margin-top:2px!important;color:#707b80!important;font-size:9px!important;line-height:1.2!important}

/* Attribute numbers stay compact and cannot visually imply oversized +8/+10 rolls. */
body.v127-ui .v127-item-attributes>div>span b{min-width:28px!important;max-width:42px!important;font-size:11px!important;text-align:center!important}

@media(max-width:390px){
  body.v127-ui .v119-monster-card .v1360-monster-trait{width:20px!important;height:20px!important;border-radius:6px!important}
  body.v127-ui .v119-monster-card .v1360-monster-traits{top:4px!important;right:4px!important;gap:3px!important}
}

/* ---- css/v1370-event-world.css ---- */
/* Aldos RPG v1.137.0 — Molfar event gear, safe world aggression, compact traits and moderation UX. */

/* Event/trade restriction icons are tiny overlays inside the item picture, never vertical badges. */
body.v127-ui .v39-item-icon-wrap{position:relative!important;overflow:hidden!important;isolation:isolate!important}
body.v127-ui .v39-item-icon-wrap>.v129-item-status-stack{position:absolute!important;left:5px!important;right:5px!important;bottom:5px!important;top:auto!important;z-index:8!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;width:auto!important;height:24px!important;min-height:0!important;max-height:24px!important;padding:0!important;margin:0!important;pointer-events:auto!important;overflow:visible!important}
body.v127-ui .v39-item-icon-wrap .v129-event-item-status,
body.v127-ui .v39-item-icon-wrap .v129-mini-restriction{display:grid!important;place-items:center!important;flex:0 0 22px!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:22px!important;max-height:22px!important;padding:3px!important;margin:0!important;border-radius:7px!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:0 3px 10px rgba(0,0,0,.55)!important}
body.v127-ui .v39-item-icon-wrap .v129-event-item-status img,
body.v127-ui .v39-item-icon-wrap .v129-mini-restriction img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important}

/* Traits belong to the top-right corner of the actual monster artwork. */
body.v127-ui .v119-monster-card .v119-monster-art{position:relative!important;overflow:hidden!important}
body.v127-ui .v119-monster-card .v1360-monster-traits{position:absolute!important;top:5px!important;right:5px!important;left:auto!important;bottom:auto!important;z-index:20!important;display:flex!important;flex-direction:row-reverse!important;align-items:center!important;gap:3px!important;pointer-events:auto!important}
body.v127-ui .v119-monster-card .v1360-monster-trait{display:grid!important;place-items:center!important;flex:0 0 22px!important;width:22px!important;height:22px!important;padding:3px!important;margin:0!important;border-radius:7px!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:0 3px 10px rgba(0,0,0,.62)!important;backdrop-filter:blur(5px)!important}
body.v127-ui .v119-monster-card .v1360-monster-trait img{width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v119-monster-card .v1360-monster-trait.undead{background:linear-gradient(145deg,rgba(36,19,73,.97),rgba(11,11,27,.97))!important;border-color:rgba(169,141,255,.78)!important}
body.v127-ui .v119-monster-card .v1360-monster-trait.aggro{background:linear-gradient(145deg,rgba(91,27,9,.97),rgba(27,10,8,.97))!important;border-color:rgba(255,118,48,.85)!important}
body.v127-ui .v101-monster-card .v1360-monster-traits,
body.v127-ui .v79-monster-card .v1360-monster-traits{display:none!important}

/* Location mood is readable in both active and peaceful states. */
body.v127-ui .v137-location-mood{position:relative!important;overflow:hidden!important;min-height:70px!important;border-radius:18px!important}
body.v127-ui .v137-location-mood::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,rgba(255,255,255,.035),transparent 44%)!important}
body.v127-ui .v137-location-mood.calm{border-color:rgba(82,205,166,.42)!important;background:radial-gradient(circle at 0 50%,rgba(49,147,119,.18),transparent 38%),linear-gradient(145deg,rgba(7,31,30,.98),rgba(5,17,22,.98))!important}

body.v127-ui .v137-location-mood.calm>strong{color:#8ce6ca!important}
body.v127-ui .v137-location-mood.active{box-shadow:0 10px 30px rgba(94,26,7,.35),inset 0 0 24px rgba(255,86,28,.04)!important}

/* Event gear mechanics are visible without turning item cards into walls of text. */
body.v127-ui .v137-event-gear-compact{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;align-items:center!important;margin-top:7px!important;padding:7px 9px!important;border:1px solid rgba(230,178,74,.28)!important;border-radius:11px!important;background:linear-gradient(145deg,rgba(75,44,9,.28),rgba(12,20,22,.65))!important;min-width:0!important}
body.v127-ui .v137-event-gear-compact>span{grid-row:1/3;display:grid!important;place-items:center!important;width:28px!important;height:28px!important;color:#f4c864!important}
body.v127-ui .v137-event-gear-compact>span img{width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v137-event-gear-compact small{min-width:0!important;color:#c49c4b!important;font:800 8px/1.1 system-ui!important;letter-spacing:.08em!important;text-transform:uppercase!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v137-event-gear-compact b{min-width:0!important;color:#f0e4c7!important;font:800 10px/1.2 system-ui!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v137-event-gear-bonus{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;padding:11px!important;border:1px solid rgba(223,173,68,.34)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(91,52,8,.25),rgba(7,18,21,.76))!important}
body.v127-ui .v137-event-gear-bonus>span{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:12px!important;background:rgba(222,164,54,.09)!important;color:#f5c760!important}
body.v127-ui .v137-event-gear-bonus small{display:block!important;color:#bd9444!important;font-size:9px!important;font-weight:900!important;letter-spacing:.09em!important;text-transform:uppercase!important}
body.v127-ui .v137-event-gear-bonus b{display:block!important;margin-top:2px!important;color:#fff0c9!important;font-size:13px!important}
body.v127-ui .v137-event-gear-bonus em{display:inline-block!important;margin-top:5px!important;padding:3px 7px!important;border-radius:8px!important;background:rgba(255,255,255,.06)!important;color:#e0d0a5!important;font-size:9px!important;font-style:normal!important}
body.v127-ui .v137-event-gear-bonus p{margin:6px 0 0!important;color:#c8c2b1!important;font-size:10px!important;line-height:1.35!important}

/* Attribute choice explicitly communicates the current class effect. */
body.v127-ui .v137-class-attribute-card small strong{color:#a9e66b!important;font-weight:900!important}

/* Stable chat links and audited deletion reason dialog. */
body.v127-ui .v137-chat-player-link{appearance:none!important;padding:0!important;border:0!important;background:none!important;color:inherit!important;font:inherit!important;font-weight:900!important;text-align:left!important;cursor:pointer!important}
body.v127-ui .v137-chat-player-link:active{opacity:.72!important}
body.v127-ui .v137-delete-reason{display:grid!important;gap:12px!important}
body.v127-ui .v137-delete-reason p{margin:0!important;color:#b8c4c1!important;font-size:12px!important;line-height:1.45!important}
body.v127-ui .v137-delete-reason textarea{width:100%!important;min-height:100px!important;resize:vertical!important;padding:11px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:12px!important;background:rgba(3,12,15,.82)!important;color:#eef3ef!important;box-sizing:border-box!important}
body.v127-ui .v137-delete-reason>div{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}

/* Admin moderator controls. */
.v137-admin-role.moderator{border-color:rgba(92,202,221,.45)!important;color:#8ee6ef!important;background:rgba(28,105,119,.18)!important}
.v137-admin-role.administrator{border-color:rgba(240,188,70,.5)!important;color:#f5ca67!important;background:rgba(116,75,12,.2)!important}
.v137-admin-moderator{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;margin:10px 0 16px!important;padding:12px!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:14px!important;background:rgba(0,0,0,.15)!important}
.v137-admin-moderator b,.v137-admin-moderator small{display:block!important}.v137-admin-moderator small{margin-top:3px!important;color:#8fa19e!important;line-height:1.35!important}

@media(max-width:430px){
  body.v127-ui .v39-item-icon-wrap>.v129-item-status-stack{left:4px!important;right:4px!important;bottom:4px!important;height:21px!important;max-height:21px!important;gap:3px!important}
  body.v127-ui .v39-item-icon-wrap .v129-event-item-status,
  body.v127-ui .v39-item-icon-wrap .v129-mini-restriction{flex-basis:20px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;padding:2px!important;border-radius:6px!important}
  body.v127-ui .v119-monster-card .v1360-monster-trait{width:20px!important;height:20px!important;flex-basis:20px!important;padding:2px!important;border-radius:6px!important}
  body.v127-ui .v137-event-gear-compact{grid-template-columns:24px minmax(0,1fr)!important;padding:6px 7px!important;column-gap:6px!important}
  body.v127-ui .v137-event-gear-compact>span{width:24px!important;height:24px!important}
  .v137-admin-moderator{grid-template-columns:1fr!important}
}


/* v1.139.0 — compact, stable skill cards and isolated ability artwork. */
body .v115-ability-card-icon,
body .v42-ability-detail-icon,
body .v115-ability-detail-icon,
body .v101-skill-art{
  display:grid!important;place-items:center!important;overflow:hidden!important;padding:0!important;
  background:#061316!important;border:1px solid rgba(207,151,57,.62)!important;box-sizing:border-box!important;
}
body.v127-ui .v119-ability-card{
  display:grid!important;grid-template-columns:60px minmax(0,1fr) 98px!important;align-items:center!important;
  gap:9px!important;min-height:76px!important;margin:0 0 7px!important;padding:8px!important;
  border-radius:14px!important;overflow:hidden!important;box-sizing:border-box!important;
}
body.v127-ui .v119-ability-card .v115-ability-card-icon{
  width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;
  max-width:58px!important;max-height:58px!important;border-radius:12px!important;align-self:center!important;
}
body .v115-ability-detail-icon{
  width:88px!important;height:88px!important;min-width:88px!important;min-height:88px!important;
  max-width:88px!important;max-height:88px!important;border-radius:16px!important;margin:0!important;
}
body .v1390-ability-image,
body .v115-ability-card-icon img,
body .v115-ability-detail-icon img,
body .v101-skill-art img{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:50% 50%!important;margin:0!important;padding:0!important;transform:none!important;
  border:0!important;border-radius:inherit!important;vertical-align:middle!important;line-height:0!important;
}
body.v127-ui .v119-ability-card .skill-main{display:grid!important;gap:3px!important;min-width:0!important;align-content:center!important;overflow:hidden!important}
body.v127-ui .v119-ability-card .skill-main h3{
  display:-webkit-box!important;margin:0!important;min-width:0!important;max-width:100%!important;
  font-size:16px!important;line-height:1.08!important;white-space:normal!important;overflow:hidden!important;
  text-overflow:ellipsis!important;overflow-wrap:anywhere!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
}
body.v127-ui .v119-ability-card .skill-main>small{display:block!important;font-size:9px!important;line-height:1.2!important;white-space:normal!important}
body.v127-ui .v119-ability-card .skill-main>span{display:flex!important;flex-wrap:wrap!important;gap:4px!important;min-width:0!important}
body.v127-ui .v119-ability-card .skill-main>span i{font-size:8px!important;line-height:1.1!important;padding:3px 6px!important;white-space:nowrap!important}
body.v127-ui .v119-ability-card .row-actions{display:block!important;width:98px!important;min-width:0!important;margin:0!important}
body.v127-ui .v119-ability-card .row-actions button{
  width:98px!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:0 8px!important;
  border-radius:10px!important;font-size:10px!important;line-height:1!important;white-space:nowrap!important;
}
body .ability-card.passive .v115-ability-card-icon,
body .v123-ability-detail.passive .v115-ability-detail-icon,
body .v102-skill-card.passive .v101-skill-art{border-radius:50%!important}
body .ability-card.upgraded .v115-ability-card-icon,
body .v123-ability-detail.upgraded .v115-ability-detail-icon,
body .v102-skill-card.upgraded .v101-skill-art{
  border-color:#ffd36e!important;box-shadow:0 0 0 2px rgba(248,174,48,.19),0 0 20px rgba(255,160,30,.18)!important;
}
body.v127-ui .modal.v1281-ability-modal{width:min(520px,calc(100vw - 22px))!important;max-height:min(88dvh,720px)!important;overflow:auto!important;box-sizing:border-box!important}
body.v127-ui .v123-ability-detail{display:grid!important;gap:10px!important;min-width:0!important;overflow:visible!important}
body.v127-ui .v123-ability-detail .v123-ability-hero{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;min-width:0!important}
body.v127-ui .v123-ability-detail .v123-ability-copy{display:grid!important;gap:5px!important;min-width:0!important;overflow:visible!important}
body.v127-ui .v123-ability-detail .v123-ability-copy h2{margin:0!important;font-size:22px!important;line-height:1.08!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v127-ui .v123-ability-detail .v123-ability-copy p{position:static!important;display:block!important;margin:0!important;max-width:none!important;font-size:11px!important;line-height:1.42!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v127-ui .v123-ability-detail .v44-ability-feature{position:static!important;display:grid!important;gap:4px!important;min-height:0!important;padding:10px!important;overflow:visible!important}
body.v127-ui .v123-ability-detail .v44-ability-feature b{font-size:11px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v127-ui .v123-ability-detail .v42-ability-lines{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
body.v127-ui .v123-ability-detail .v42-ability-lines>div{min-width:0!important;min-height:44px!important;padding:8px!important;overflow:hidden!important}
body.v127-ui .v123-ability-detail .v42-ability-lines b{font-size:10px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:right!important}
body .v102-skill-card.v103-icon-only .v101-skill-main{display:grid!important;place-items:center!important;padding:4px!important}
body .v102-skill-card.v103-icon-only .v101-skill-art{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;border-radius:12px!important}
body .v102-skill-card.v103-icon-only.passive .v101-skill-art{border-radius:50%!important}
body.v127-ui .v1390-molfar-mystery{cursor:default!important;user-select:none!important}
body.v127-ui .v1390-mystery-loot{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border:1px solid rgba(255,196,73,.65)!important;border-radius:11px!important;background:radial-gradient(circle,rgba(255,184,49,.2),rgba(11,18,20,.95))!important;color:#ffd574!important;font:900 25px/1 Georgia,serif!important}
body.v127-ui .v1390-socket-range b{font-size:12px!important;letter-spacing:.04em!important}
body.v127-ui .v1390-socket-range div>span{display:block!important;margin-top:2px!important;color:#9ba7a4!important;font-size:8px!important;line-height:1.2!important}
body.v127-ui .v1360-monster-trait{appearance:none!important;cursor:pointer!important;font:inherit!important;color:inherit!important}
body.v127-ui .v65-monster-tag[data-status-info]{appearance:none!important;cursor:pointer!important;font:inherit!important;line-height:1!important}
@media(max-width:760px){
  body.v127-ui .v119-ability-card{grid-template-columns:56px minmax(0,1fr)!important;gap:8px!important;min-height:72px!important;padding:7px!important}
  body.v127-ui .v119-ability-card .v115-ability-card-icon{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important;border-radius:11px!important}
  body.v127-ui .v119-ability-card .skill-main h3{font-size:15px!important}
  body.v127-ui .v119-ability-card .row-actions{grid-column:1/-1!important;width:100%!important;margin-top:1px!important}
  body.v127-ui .v119-ability-card .row-actions button{width:100%!important;height:34px!important;min-height:34px!important;font-size:10px!important}
  body.v127-ui .modal.v1281-ability-modal{padding:14px 11px 12px!important}
  body.v127-ui .v123-ability-detail .v123-ability-hero{grid-template-columns:72px minmax(0,1fr)!important;gap:9px!important}
  body .v115-ability-detail-icon{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;max-width:72px!important;max-height:72px!important;border-radius:14px!important}
  body.v127-ui .v123-ability-detail .v123-ability-copy h2{font-size:19px!important}
  body.v127-ui .v123-ability-detail .v123-ability-copy p{font-size:10px!important;line-height:1.35!important}
  body.v127-ui .v123-ability-detail .v42-ability-lines>div{min-height:40px!important;padding:7px!important}
}
body .v1382-device-panel{display:grid!important;gap:14px!important;max-height:min(82dvh,760px)!important;overflow:auto!important;padding:2px!important}
body .v1382-device-hero{padding:16px!important;border:1px solid rgba(99,215,189,.28)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(10,40,43,.96),rgba(5,17,21,.98))!important}
body .v1382-device-hero>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important}
body .v1382-device-hero>div>span,.v1382-device-facts>span{display:grid!important;gap:4px!important;padding:9px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;min-width:0!important}
body .v1382-device-hero span.ok{border-color:rgba(102,218,143,.45)!important}.v1382-device-hero span.warn{border-color:rgba(242,177,72,.45)!important}
body .v1382-device-card{display:grid!important;gap:10px!important;padding:13px!important}
body .v1382-device-card>header{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
body .v1382-device-card>header>span{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:50%!important;background:rgba(99,215,189,.13)!important;border:1px solid rgba(99,215,189,.35)!important}
body .v1382-device-card small{display:block!important;color:#9caeb1!important;font-size:11px!important}
body .v1382-device-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
body .v1382-device-card details{padding:8px 10px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:11px!important;background:rgba(0,0,0,.18)!important}
body .v1382-device-card summary{cursor:pointer!important;color:#e6c678!important;font-weight:700!important}
body .v1382-device-card code{display:block!important;margin-top:8px!important;white-space:normal!important;overflow-wrap:anywhere!important;color:#c9d5d4!important;font-size:10px!important}
body .v1382-ip-history{display:grid!important;gap:6px!important;margin:8px 0 0!important;padding:0!important;list-style:none!important}
body .v1382-ip-history li{display:grid!important;gap:2px!important;padding:7px!important;border-radius:9px!important;background:rgba(255,255,255,.035)!important}.v1382-ip-history li.local{opacity:.62!important}
body .v1382-ip-history em{font-size:9px!important;color:#819294!important}
body .v1382-device-note{padding:10px!important;border-radius:12px!important;background:rgba(242,177,72,.08)!important;color:#c9b986!important}
@media(max-width:620px){body .v1382-device-hero>div{grid-template-columns:1fr!important}body .v1382-device-facts{grid-template-columns:1fr!important}}

/* v1.139.1 urgent hotfix: intrinsic monster markers must remain square.
   Global mobile button rules set a large min-height, which previously stretched
   Aggressive/Undead markers into vertical capsules. */
body.v127-ui .v119-monster-card .v1360-monster-traits{
  top:4px!important;
  right:4px!important;
  align-items:flex-start!important;
  line-height:0!important;
}
body.v127-ui .v119-monster-card button.v1360-monster-trait{
  display:grid!important;
  place-items:center!important;
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  aspect-ratio:1/1!important;
  padding:2px!important;
  margin:0!important;
  line-height:0!important;
  border-radius:6px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  transform:none!important;
}
body.v127-ui .v119-monster-card button.v1360-monster-trait>img,
body.v127-ui .v119-monster-card button.v1360-monster-trait>.monster-trait-image{
  display:block!important;
  flex:none!important;
  width:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  height:14px!important;
  min-height:14px!important;
  max-height:14px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
@media(max-width:390px){
  body.v127-ui .v119-monster-card button.v1360-monster-trait{
    flex-basis:18px!important;
    width:18px!important;
    min-width:18px!important;
    max-width:18px!important;
    height:18px!important;
    min-height:18px!important;
    max-height:18px!important;
  }
  body.v127-ui .v119-monster-card button.v1360-monster-trait>img,
  body.v127-ui .v119-monster-card button.v1360-monster-trait>.monster-trait-image{
    width:12px!important;
    min-width:12px!important;
    max-width:12px!important;
    height:12px!important;
    min-height:12px!important;
    max-height:12px!important;
  }
}

/* ---- css/v1400-rogue-mage-assets.css ---- */
/* Aldos RPG v1.140.0 — final Rogue/Mage/account/item-asset stabilization. */

/* New inventory assets are transparent 256×256 illustrations. Keep their full silhouette
   visible in every legacy card instead of allowing older cover/crop rules to stretch them. */
body.v1400-ui img[src*="assets/v1400/items/"],
body.v1400-ui img[src*="/v1400/items/"] {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  padding: clamp(4px, 7%, 9px);
  border-radius: inherit;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .58));
  transform: none !important;
}

body.v1400-ui :is(
  .item-icon-wrap,
  .v97-item-detail-icon,
  .v119-pit-item-art,
  .v118-result-loot-icon,
  .rare-item-icon
) {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(205, 157, 59, .48);
  background:
    radial-gradient(circle at 50% 42%, rgba(49, 78, 76, .34), transparent 64%),
    linear-gradient(155deg, rgba(7, 25, 27, .96), rgba(3, 12, 14, .98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 145, .06),
    inset 0 -10px 18px rgba(0, 0, 0, .22),
    0 4px 12px rgba(0, 0, 0, .24);
}

body.v1400-ui :is(.item-icon-wrap, .v97-item-detail-icon, .v119-pit-item-art, .v118-result-loot-icon, .rare-item-icon) > :is(.item-emblem, img) {
  min-width: 0;
  min-height: 0;
}

body.v1400-ui .item-emblem[src*="assets/v1400/items/"],
body.v1400-ui .item-emblem[src*="/v1400/items/"] {
  margin: 0 !important;
  inset: auto !important;
}

/* Detail and victory windows need slightly more breathing room than mini cards. */
body.v1400-ui :is(.v97-item-detail-icon, .v118-result-loot-icon, .rare-item-icon) img[src*="v1400/items/"] {
  padding: clamp(6px, 8%, 12px);
}

@media (max-width: 720px) {
  body.v1400-ui :is(.item-icon-wrap, .v119-pit-item-art) {
    border-radius: 10px;
  }

  body.v1400-ui img[src*="v1400/items/"] {
    padding: clamp(3px, 6%, 7px);
  }
}

/* ---- css/v1410-repair.css ---- */
/* v1.141.0: item framing, announcements, chat stability and boss mechanic visibility */
.v1410-global-notices{position:fixed;z-index:100000;top:max(10px,env(safe-area-inset-top));left:50%;width:min(920px,calc(100vw - 24px));transform:translateX(-50%);display:grid;gap:9px;pointer-events:none}
.v1410-global-notice{pointer-events:auto;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 15px;border:1px solid rgba(228,173,59,.72);border-radius:17px;background:linear-gradient(145deg,rgba(4,21,24,.98),rgba(12,18,25,.98));box-shadow:0 14px 42px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.035);color:#f5f1e4;animation:v1410NoticeIn .25s ease-out both}
.v1410-global-notice.restart{grid-template-columns:50px minmax(0,1fr);border-color:#ff9b28;background:linear-gradient(145deg,rgba(54,16,5,.98),rgba(18,12,13,.99));box-shadow:0 16px 48px rgba(0,0,0,.65),0 0 28px rgba(255,104,20,.17)}
.v1410-global-notice.system{border-color:rgba(104,204,229,.68)}
.v1410-global-notice .v1410-notice-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;border:1px solid currentColor;color:#ffc75b;font:800 23px/1 system-ui;background:rgba(255,174,48,.08)}
.v1410-global-notice small{display:block;color:#d9aa51;font:800 10px/1.2 system-ui;letter-spacing:.14em;margin-bottom:4px}
.v1410-global-notice b{display:block;font:700 clamp(14px,2.2vw,19px)/1.28 system-ui;overflow-wrap:anywhere}
.v1410-global-notice strong{display:inline-flex;margin-top:7px;padding:5px 10px;border-radius:10px;background:#ff9b28;color:#17100a;font:900 18px/1 system-ui;font-variant-numeric:tabular-nums}
.v1410-global-notice p{margin:7px 0 0;color:#e0cdbd;font:600 12px/1.35 system-ui}
.v1410-global-notice button{appearance:none;border:0;background:transparent;color:#e8d7bf;font:700 24px/1 system-ui;cursor:pointer;padding:4px 7px}
.v1410-global-notice.leaving{opacity:0;transform:translateY(-12px);transition:.25s ease}
@keyframes v1410NoticeIn{from{opacity:0;transform:translateY(-16px) scale(.985)}to{opacity:1;transform:none}}
body.v1410-restart-now::after{content:'Сервер перезапускается';position:fixed;z-index:99999;inset:0;display:grid;place-items:center;background:#030b0f;color:#f0d18a;font:800 clamp(22px,5vw,40px)/1.2 system-ui;text-align:center}

/* Every item asset is contained inside a predictable square. */
.v1410-ui :is(.item-icon,.inventory-item-icon,.loot-item-icon,.v132-item-art,.v123-item-art,.v125-item-art,.v137-item-art,.equipment-item-icon,.item-card img,.loot-card img,[data-item-icon-host] img){box-sizing:border-box!important;aspect-ratio:1/1!important;object-fit:contain!important;object-position:center!important;padding:7%!important;transform:none!important;max-width:100%!important;max-height:100%!important;overflow:visible!important}
.v1410-ui :is(.item-icon,.inventory-item-icon,.loot-item-icon,.v132-item-art,.v123-item-art,.v125-item-art,.v137-item-art,.equipment-item-icon,[data-item-icon-host]){overflow:hidden!important;border-radius:14px!important;isolation:isolate}
.v1410-ui :is(.item-card,.inventory-card,.loot-card,.v132-item-card,.v123-item-card){min-width:0!important}
.v1410-ui :is(.item-card,.inventory-card,.loot-card,.v132-item-card,.v123-item-card) :is(h2,h3,b,p,span){overflow-wrap:anywhere}

/* Chat badge: small, upright and pinned to the upper-right corner. */
[data-chat-indicator-host]{position:relative!important}
.v128-chat-indicator{position:absolute!important;top:3px!important;right:3px!important;left:auto!important;bottom:auto!important;width:19px!important;height:19px!important;min-width:19px!important;border:2px solid #061416!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#e7a631!important;transform:none!important;rotate:0deg!important;z-index:8!important;box-shadow:0 2px 9px rgba(0,0,0,.55)!important}
.v128-chat-indicator b{display:block!important;transform:none!important;rotate:0deg!important;color:#111!important;font:900 9px/1 system-ui!important;font-variant-numeric:tabular-nums!important}
.v128-chat-indicator.mention{background:#e36651!important}

.v1410-boss-rule{margin:8px 0;padding:9px 12px;border:1px solid rgba(225,167,54,.55);border-radius:12px;background:rgba(27,18,9,.74);color:#f4d790;font:700 12px/1.35 system-ui}
@media(max-width:600px){.v1410-global-notices{top:max(6px,env(safe-area-inset-top));width:calc(100vw - 12px)}.v1410-global-notice{grid-template-columns:36px minmax(0,1fr) auto;padding:10px;border-radius:14px}.v1410-global-notice.restart{grid-template-columns:40px minmax(0,1fr)}.v1410-global-notice .v1410-notice-mark{width:35px;height:35px;border-radius:10px;font-size:18px}.v1410-global-notice b{font-size:13px}.v1410-global-notice strong{font-size:16px}}

/* v1.144.5 — compact one-turn Silent Guard prohibition. */
.v1445-prohibition{width:min(94vw,560px);margin:7px auto 4px;padding:7px 10px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;border:1px solid rgba(231,166,49,.48);border-radius:11px;background:linear-gradient(180deg,rgba(24,18,10,.93),rgba(14,13,10,.92));box-shadow:0 5px 16px rgba(0,0,0,.22);color:#f5e7c2}
.v1445-prohibition>i{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:rgba(231,166,49,.14);border:1px solid rgba(231,166,49,.42);color:#ffc35b;font:900 17px/1 system-ui;font-style:normal}
.v1445-prohibition>div{min-width:0;display:grid;grid-template-columns:auto 1fr;grid-template-areas:'small small' 'title text';column-gap:8px;align-items:baseline}
.v1445-prohibition small{grid-area:small;color:#ad9f82;font:800 8px/1.2 system-ui;letter-spacing:.07em}
.v1445-prohibition b{grid-area:title;color:#ffc35b;font:900 12px/1.25 system-ui;white-space:nowrap}
.v1445-prohibition span{grid-area:text;min-width:0;color:#ddd4c1;font:600 10px/1.3 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.v1445-prohibition{width:calc(100vw - 16px);margin:5px 8px 2px;padding:6px 8px;grid-template-columns:25px minmax(0,1fr);gap:7px;border-radius:10px}.v1445-prohibition>i{width:25px;height:25px;border-radius:8px;font-size:15px}.v1445-prohibition b{font-size:11px}.v1445-prohibition span{font-size:9px}.v1445-prohibition small{font-size:7px}}

/* ---- css/v1420-mobile-caravan.css ---- */
/* v1.142.0 — mobile-first caravan, public raid, legal pages and asset containment */
:root{--v142-bg:#071316;--v142-panel:#0b1c20;--v142-panel-2:#10262a;--v142-line:rgba(193,145,47,.38);--v142-gold:#d5a33e;--v142-text:#edf4ef;--v142-muted:#9db0ad;--v142-danger:#d86753;--v142-good:#77b95a}
.v1420-caravan-feature,.v1420-rules{margin:10px 0 14px;border:1px solid var(--v142-line);border-radius:20px;background:linear-gradient(155deg,rgba(8,25,28,.98),rgba(5,15,18,.98));box-shadow:0 14px 36px rgba(0,0,0,.34);overflow:hidden;color:var(--v142-text)}
.v1420-caravan-feature>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 14px 10px}.v1420-caravan-feature>header small,.v1420-rules header small{display:block;color:var(--v142-gold);font:800 10px/1.2 system-ui;letter-spacing:.14em}.v1420-caravan-feature>header h2,.v1420-rules h2{margin:3px 0 0;font:800 20px/1.15 system-ui}.v1420-caravan-feature>header>span{flex:0 0 auto;padding:7px 10px;border:1px solid rgba(215,165,60,.35);border-radius:12px;background:rgba(213,163,62,.08);color:#f0cb74;font:800 12px/1 system-ui}
.v1420-tabs{display:flex;gap:5px;overflow-x:auto;padding:0 10px 10px;scrollbar-width:none}.v1420-tabs::-webkit-scrollbar{display:none}.v1420-tabs button{flex:0 0 auto;min-height:38px;padding:0 13px;border:1px solid rgba(133,159,153,.2);border-radius:12px;background:#0c2024;color:#c9d5d2;font:700 12px/1 system-ui}.v1420-tabs button.active{border-color:#b98932;background:linear-gradient(145deg,#3b2d14,#16271f);color:#ffe3a0}
#v1420-caravan-content{padding:0 10px 12px}.v1420-card-stack{display:grid;gap:8px;max-height:min(58vh,620px);overflow-y:auto;overscroll-behavior:contain;padding-right:2px}.v1420-loading,.v1420-empty{padding:20px 12px;text-align:center;color:var(--v142-muted);font:600 13px/1.45 system-ui}
.v1420-merchant-profile,.v1420-away,.v1420-raid-card,.v1420-demand-card,.v1420-order-empty,.v1420-order-active,.v1420-sell-card,.v1420-offer-card{display:grid;align-items:center;gap:10px;border:1px solid rgba(147,173,165,.16);border-radius:16px;background:linear-gradient(145deg,rgba(13,34,38,.96),rgba(7,22,25,.96));min-width:0}
.v1420-merchant-profile,.v1420-away{grid-template-columns:78px minmax(0,1fr);padding:10px}.v1420-merchant-profile>span,.v1420-away>span{display:grid;place-items:center;width:78px;height:92px;border-radius:14px;background:radial-gradient(circle,rgba(212,157,51,.13),transparent 68%);overflow:hidden}.v1420-merchant-profile img,.v1420-away img{width:100%;height:100%;object-fit:contain;object-position:center}.v1420-merchant-profile b,.v1420-away b,.v1420-raid-card b,.v1420-demand-card b,.v1420-order-active b,.v1420-order-empty b{display:block;margin:3px 0;color:#fff4d5;font:800 16px/1.15 system-ui}.v1420-merchant-profile small,.v1420-away small,.v1420-raid-card small,.v1420-demand-card small,.v1420-order-active small{color:var(--v142-gold);font:800 9px/1.2 system-ui;letter-spacing:.12em}.v1420-merchant-profile p,.v1420-away p,.v1420-raid-card p,.v1420-demand-card p,.v1420-order-active p,.v1420-order-empty p{margin:4px 0;color:#bdc9c6;font:600 11px/1.35 system-ui}.v1420-merchant-profile em,.v1420-raid-card em,.v1420-demand-card em,.v1420-order-active em{display:block;color:#91aaa5;font:600 10px/1.35 system-ui;font-style:normal}.v1420-merchant-profile strong{color:#f0cb74;font-variant-numeric:tabular-nums}
.v1420-raid-card{grid-template-columns:52px minmax(0,1fr);padding:10px;margin-top:9px;border-color:rgba(206,91,63,.5);background:linear-gradient(145deg,rgba(48,20,15,.96),rgba(16,22,23,.98))}.v1420-raid-card>span{width:48px;height:48px;display:grid;place-items:center}.v1420-raid-card img{width:100%;height:100%;object-fit:contain}.v1420-raid-card>button{grid-column:1/-1;min-height:42px;border:1px solid #b95843;border-radius:12px;background:#7f3529;color:#fff;font:800 13px/1 system-ui}.v1420-world-event-mini{margin:10px 0}.v1420-world-event-mini .v1420-raid-card{margin:0}
.v1420-demand-list{margin-top:11px}.v1420-demand-list>h4,.v1420-talk>h4{margin:0 0 7px;color:#f4d995;font:800 13px/1.2 system-ui}.v1420-demand-card{grid-template-columns:42px minmax(0,1fr);padding:9px;margin:6px 0}.v1420-demand-card>span{width:40px;height:40px}.v1420-demand-card img{width:100%;height:100%;object-fit:contain}
.v1420-offer-card{grid-template-columns:66px minmax(0,1fr);padding:9px}.v1420-offer-art{width:64px;height:64px;display:grid;place-items:center;border:1px solid rgba(213,163,62,.3);border-radius:13px;background:#071417;overflow:hidden}.v1420-offer-art img{width:100%;height:100%;object-fit:contain;object-position:center;padding:5px;box-sizing:border-box}.v1420-offer-copy{min-width:0}.v1420-offer-copy small,.v1420-sell-card small{color:#8dad9f;font:800 9px/1.2 system-ui;text-transform:uppercase}.v1420-offer-copy b,.v1420-sell-card b{display:block;margin:3px 0;color:#f7f2e4;font:800 14px/1.15 system-ui;overflow-wrap:anywhere}.v1420-offer-copy p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0;color:#aebebb;font:600 10px/1.35 system-ui}.v1420-offer-copy em{display:block;color:#d5bd83;font:600 9px/1.35 system-ui;font-style:normal}.v1420-offer-action{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}.v1420-offer-action strong{color:#f0cb74;font:800 13px/1 system-ui}.v1420-offer-action button,.v1420-sell-card button,.v1420-order-active button,.v1420-order-empty button,.v1420-repair-all,.v1420-talk button,.v1420-rules footer button{min-height:38px;border:1px solid rgba(211,161,56,.62);border-radius:11px;background:#263b27;color:#ffe4a2;padding:0 13px;font:800 11px/1 system-ui}.v1420-offer-action button:disabled,.v1420-sell-card button:disabled,.v1420-order-active button:disabled{opacity:.45}
.v1420-sell-card{grid-template-columns:50px minmax(0,1fr) auto;padding:8px}.v1420-sell-card>span{width:48px;height:48px;border-radius:11px;overflow:hidden}.v1420-sell-card img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}.v1420-sell-card p{margin:3px 0;color:#9dafab;font:600 9px/1.3 system-ui}.v1420-repair-all{width:100%;margin-bottom:2px}
.v1420-order-empty,.v1420-order-active{grid-template-columns:54px minmax(0,1fr);padding:10px}.v1420-order-empty>span,.v1420-order-active>span{width:52px;height:52px}.v1420-order-empty img,.v1420-order-active img{width:100%;height:100%;object-fit:contain}.v1420-order-empty button,.v1420-order-active button{margin-top:7px;width:100%}
.v1420-talk{padding:12px;border:1px solid rgba(147,173,165,.16);border-radius:16px;background:#0a1d21}.v1420-talk>p{margin:0 0 10px;color:#b9c7c4;font:600 12px/1.45 system-ui}.v1420-talk-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:13px}.v1420-talk button.danger,.v1420-duel{border-color:#ae5343!important;background:#48211c!important;color:#ffd3c8!important}.v1420-duel{width:100%;margin-top:5px}
.v1420-caravan-busy .v1420-caravan-feature button{pointer-events:none;opacity:.65}
.v1420-route-level{display:block;margin-top:2px;color:#c2a563;font:700 9px/1 system-ui}.location-btn.v1420-route-locked{opacity:.48;filter:grayscale(.5)}
/* Rules and legal documents */
.v1420-rules{padding:12px}.v1420-rules>header{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;align-items:center;margin-bottom:9px}.v1420-rules>header>span{width:68px;height:68px}.v1420-rules>header img{width:100%;height:100%;object-fit:contain}.v1420-rules>header p{margin:4px 0 0;color:var(--v142-muted);font:600 11px/1.4 system-ui}.v1420-rules details{margin:7px 0;border:1px solid rgba(151,176,168,.17);border-radius:14px;background:#0a1b1f;overflow:hidden}.v1420-rules summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px;cursor:pointer}.v1420-rules summary::-webkit-details-marker{display:none}.v1420-rules summary b{font:800 13px/1.2 system-ui;color:#f2e8ce}.v1420-rules summary small{font:700 9px/1 system-ui;color:#8fa39f}.v1420-rules details>div{padding:0 13px 13px;border-top:1px solid rgba(151,176,168,.12)}.v1420-rules h3{margin:12px 0 4px;color:#e9c66e;font:800 12px/1.2 system-ui}.v1420-rules p{margin:6px 0;color:#b9c8c4;font:600 11px/1.5 system-ui}.v1420-rules footer{padding:12px 3px 2px}.v1420-rules footer button{width:100%;min-height:44px}.v1420-rules footer button:disabled{opacity:.55}
/* Public raid: mobile layout always keeps players on the left and enemies on the right. */
.v1420-raid-battle .v101-combat-board{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px!important;align-items:stretch!important;min-width:0!important}.v1420-raid-battle .v101-player-roster{grid-column:1!important}.v1420-raid-battle .v101-monster-roster{grid-column:2!important}.v1420-raid-battle .v101-roster{min-width:0!important;overflow:hidden!important}.v1420-raid-battle .v101-roster-head{padding:7px 6px!important}.v1420-raid-battle .v101-roster-head h2{font-size:11px!important}.v1420-raid-battle .v101-roster-head span{font-size:8px!important}.v1420-raid-battle .v101-roster-scroll{display:flex!important;flex-direction:column!important;gap:5px!important;max-height:56vh!important;overflow-y:auto!important;overflow-x:hidden!important;padding:5px!important;overscroll-behavior:contain}.v1420-raid-battle .v101-unit-card{min-width:0!important;width:100%!important;min-height:72px!important;padding:5px!important;border-radius:11px!important;box-sizing:border-box!important}.v1420-raid-battle .v101-player-card{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;grid-template-rows:auto auto!important}.v1420-raid-battle .v101-monster-card{display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;grid-template-rows:auto auto auto!important}.v1420-raid-battle .v101-unit-art{width:38px!important;height:38px!important;min-width:38px!important;overflow:hidden!important}.v1420-raid-battle .v101-unit-art img{width:100%!important;height:100%!important;object-fit:contain!important}.v1420-raid-battle .v101-unit-name h2,.v1420-raid-battle .v101-unit-name h3{font-size:10px!important;line-height:1.15!important;overflow-wrap:anywhere}.v1420-raid-battle .v101-unit-name small{display:block;color:#b89f67;font:700 8px/1.1 system-ui}.v1420-raid-battle .v79-stat-row span,.v1420-raid-battle .v101-resource span{font-size:8px!important}.v1420-raid-battle .v101-unit-effects{grid-column:1/-1!important;min-height:18px!important;max-height:20px!important;overflow:hidden!important}.v1420-raid-battle .v106-effect-asset{width:18px!important;height:18px!important}.v1420-raid-battle .v101-player-card.defeated,.v1420-raid-battle .v101-monster-card.dead{opacity:.38;filter:grayscale(.85)}.v1420-raid-battle .v101-monster-card.raid-reserve{opacity:.52;filter:saturate(.45);pointer-events:none}.v1420-raid-battle .v101-monster-card.raid-reserve::after{content:'РЕЗЕРВ';position:absolute;inset:auto 4px 4px auto;padding:2px 4px;border-radius:5px;background:#3c3321;color:#e6c77d;font:800 7px/1 system-ui;letter-spacing:.08em}.v1420-raid-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;margin-bottom:6px;padding:9px 10px;border:1px solid rgba(198,84,56,.48);border-radius:13px;background:linear-gradient(145deg,rgba(55,21,15,.94),rgba(10,22,24,.96));color:#f2e6d0}.v1420-raid-head span{min-width:0}.v1420-raid-head small{display:block;color:#e17e62;font:800 8px/1 system-ui;letter-spacing:.12em}.v1420-raid-head b{display:block;margin-top:3px;font:800 12px/1.2 system-ui}.v1420-raid-head em{grid-column:1;font:600 9px/1.2 system-ui;color:#aebdb9;font-style:normal}.v1420-raid-head strong{grid-column:2;grid-row:1/3;color:#ffd58b;font:900 14px/1 system-ui}
.v1420-public-raid-row{display:grid!important;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)!important;gap:6px!important}.v1420-public-raid-row .v119-battle-join{grid-column:1/-1!important}.v1420-public-raid-row :is(.v127-battle-party-icons,.v127-battle-enemy-icons){display:flex!important;flex-direction:column!important;max-height:180px!important;overflow-y:auto!important}.v1420-public-raid-row :is(.v127-battle-member,.v127-battle-monster){width:34px!important;height:34px!important;margin:0 0 3px!important}
/* Strong final containment: visible pixels stay centered without CSS cropping. */
.v1420-ui :is(.item-asset-image,.monster-asset-image,.battle-monster-art,.class-asset-image,.v1420-offer-art img,.v1420-sell-card img){object-fit:contain!important;object-position:center!important;transform:none!important;clip-path:none!important}
.v1420-ui :is(.v38-mob-icon,.v93-mob-art,.v119-monster-art,.v132-item-art,.v123-item-art,.v125-item-art,.v137-item-art){overflow:hidden!important;isolation:isolate!important}
@media(max-width:430px){.v1420-caravan-feature{margin-inline:-2px}.v1420-offer-card{grid-template-columns:58px minmax(0,1fr)}.v1420-offer-art{width:56px;height:56px}.v1420-talk-actions{grid-template-columns:1fr}.v1420-raid-battle .v101-combat-board{gap:4px!important}.v1420-raid-battle .v101-roster-scroll{padding:3px!important;gap:4px!important}.v1420-raid-battle .v101-unit-card{min-height:67px!important;padding:4px!important}.v1420-raid-battle .v101-player-card{grid-template-columns:34px minmax(0,1fr)!important}.v1420-raid-battle .v101-monster-card{grid-template-columns:minmax(0,1fr) 34px!important}.v1420-raid-battle .v101-unit-art{width:34px!important;height:34px!important;min-width:34px!important}.v1420-raid-head{margin-inline:-2px}}

/* ---- css/v1421-mobile-polish.css ---- */
/* Aldos RPG v1.142.1 — authoritative mobile merchant, notifications and chat polish */

/* Trading street: one coherent location card. Shop actions only exist inside the shop sheet. */
body.v127-ui .v1421-trade-street{
  margin:10px 0 14px!important;
  border:1px solid rgba(198,151,54,.48)!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 86% 0,rgba(212,151,43,.14),transparent 34%),
    linear-gradient(155deg,#0b2023 0%,#071619 58%,#0d1718 100%)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.025)!important;
  overflow:hidden!important;
}
body.v127-ui .v1421-trade-street>header{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;
  align-items:start!important;padding:14px 13px 11px!important;
  border-bottom:1px solid rgba(198,151,54,.16)!important;
}
body.v127-ui .v1421-trade-street>header h2{margin:3px 0 4px!important;font:900 20px/1.05 Georgia,serif!important;color:#f7f1df!important}
body.v127-ui .v1421-trade-street>header p{margin:0!important;max-width:480px!important;color:#9fb2ae!important;font:600 10px/1.4 system-ui!important}
body.v127-ui .v1421-trade-street>header>span{padding:7px 9px!important;border-radius:11px!important;color:#f0cb72!important;font:900 10px/1 system-ui!important;white-space:nowrap!important}
.v1421-street-card{
  display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;align-items:center;
  margin:10px;padding:11px;border:1px solid rgba(158,181,173,.17);border-radius:17px;
  background:linear-gradient(145deg,rgba(12,35,37,.97),rgba(6,17,20,.98));
  box-shadow:0 8px 22px rgba(0,0,0,.25);min-width:0;
}
.v1421-street-card.present{border-color:rgba(211,163,59,.42);background:radial-gradient(circle at 0 50%,rgba(177,119,29,.13),transparent 34%),linear-gradient(145deg,rgba(16,35,34,.98),rgba(7,18,20,.98))}
.v1421-street-card.away{filter:saturate(.75)}
.v1421-street-art{width:74px;height:74px;display:grid;place-items:center;align-self:center;border-radius:15px;background:rgba(0,0,0,.2);overflow:hidden}
.v1421-street-art img{width:100%;height:100%;object-fit:contain;object-position:center;padding:3px;box-sizing:border-box}
.v1421-street-art.merchant img{transform:scale(1.06);transform-origin:center bottom}
.v1421-street-copy{min-width:0}.v1421-street-copy small{display:block;color:#d3ad55;font:900 8px/1.15 system-ui;letter-spacing:.12em}.v1421-street-copy b{display:block;margin:4px 0;color:#f4eee0;font:900 15px/1.1 Georgia,serif;overflow-wrap:anywhere}.v1421-street-copy p{margin:0;color:#a8b8b4;font:600 10px/1.35 system-ui}.v1421-street-copy em{display:block;margin-top:5px;color:#d8bd79;font:700 9px/1.2 system-ui;font-style:normal}
.v1421-open-shop{grid-column:1/-1;min-height:44px;border:1px solid #b9872f;border-radius:13px;background:linear-gradient(180deg,#a6f51a,#7dd80c);color:#071309;font:900 13px/1 system-ui;box-shadow:0 8px 20px rgba(115,209,9,.18)}

/* Full-height mobile shop sheet. */
.v1421-shop-modal .modal-card,.v1421-shop-modal .v65-modal-card,.v1421-shop-modal .v122-modal-card{width:min(96vw,620px)!important;max-height:92dvh!important;padding:0!important;border-radius:22px!important;overflow:hidden!important;background:#071619!important}
.v1421-shop-modal .modal-body,.v1421-shop-modal .v65-modal-body,.v1421-shop-modal .v122-modal-body{padding:0!important;max-height:92dvh!important;overflow:hidden!important}
.v1421-merchant-shop{display:grid;grid-template-rows:auto auto minmax(0,1fr);height:min(88dvh,780px);min-height:520px;background:radial-gradient(circle at 90% 0,rgba(207,151,47,.15),transparent 28%),linear-gradient(155deg,#0b2224,#061518 68%);color:#edf2ec}
.v1421-merchant-shop>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 15px 10px;border-bottom:1px solid rgba(207,158,54,.17)}
.v1421-merchant-shop>header small{display:block;color:#d9b45a;font:900 8px/1.1 system-ui;letter-spacing:.13em}.v1421-merchant-shop>header h2{margin:3px 0 0;color:#faf2df;font:900 20px/1.08 Georgia,serif}.v1421-merchant-shop>header>span{padding:7px 9px;border:1px solid rgba(218,169,62,.34);border-radius:11px;color:#f2ce75;font:900 10px/1 system-ui;white-space:nowrap}
.v1421-shop-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(58px,1fr))!important;gap:5px!important;padding:8px!important;overflow-x:auto!important;scrollbar-width:none!important;border-bottom:1px solid rgba(207,158,54,.13)!important;background:rgba(3,12,14,.62)!important}
.v1421-shop-tabs::-webkit-scrollbar{display:none}.v1421-shop-tabs button{display:grid!important;grid-template-rows:22px auto!important;place-items:center!important;gap:3px!important;min-width:58px!important;min-height:54px!important;padding:5px 4px!important;border:1px solid rgba(132,157,151,.18)!important;border-radius:12px!important;background:rgba(12,31,32,.86)!important;color:#aebeb9!important}.v1421-shop-tabs button span,.v1421-shop-tabs button img,.v1421-shop-tabs button svg{width:20px!important;height:20px!important}.v1421-shop-tabs button b{font:800 8px/1 system-ui!important}.v1421-shop-tabs button.active{border-color:rgba(206,159,58,.68)!important;background:linear-gradient(145deg,rgba(98,69,20,.58),rgba(17,38,35,.96))!important;color:#ffe69e!important;box-shadow:inset 0 -2px #d7a73d!important}
.v1421-shop-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:9px 9px calc(18px + env(safe-area-inset-bottom));scrollbar-width:thin;scrollbar-color:#80652b transparent}
.v1421-shop-content .v1420-merchant-profile,.v1421-shop-content .v1420-talk,.v1421-shop-content .v1420-offer-card,.v1421-shop-content .v1420-sell-card,.v1421-shop-content .v1420-order-empty,.v1421-shop-content .v1420-order-active,.v1421-shop-content .v1420-demand-card{box-shadow:0 7px 18px rgba(0,0,0,.22)}

/* Global notices: one neat stack, no historical burst and no edge overflow. */
#v1410-global-notices.v1410-global-notices{position:fixed!important;z-index:10080!important;top:calc(8px + env(safe-area-inset-top))!important;left:8px!important;right:8px!important;width:auto!important;max-width:560px!important;margin:0 auto!important;display:grid!important;gap:7px!important;pointer-events:none!important}
#v1410-global-notices .v1410-global-notice{display:grid!important;grid-template-columns:34px minmax(0,1fr) 28px!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;margin:0!important;padding:9px 9px!important;border:1px solid rgba(211,161,56,.45)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(9,29,31,.98),rgba(5,16,19,.99))!important;color:#edf2ec!important;box-shadow:0 12px 30px rgba(0,0,0,.45)!important;box-sizing:border-box!important;pointer-events:auto!important;overflow:hidden!important}
#v1410-global-notices .v1410-global-notice.system{border-color:rgba(91,161,180,.46)!important}#v1410-global-notices .v1410-global-notice.restart{grid-template-columns:38px minmax(0,1fr)!important;border-color:rgba(229,103,65,.64)!important;background:linear-gradient(145deg,rgba(65,24,17,.99),rgba(11,22,24,.99))!important}
#v1410-global-notices .v1410-notice-mark{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:rgba(215,164,58,.13)!important;color:#f0c96d!important;font:900 17px/1 system-ui!important}
#v1410-global-notices .v1410-global-notice div{min-width:0!important}#v1410-global-notices .v1410-global-notice small{display:block!important;color:#d3ad55!important;font:900 7px/1.1 system-ui!important;letter-spacing:.11em!important}#v1410-global-notices .v1410-global-notice b{display:block!important;margin-top:3px!important;color:#f4efe4!important;font:800 11px/1.3 system-ui!important;white-space:normal!important;overflow-wrap:anywhere!important}#v1410-global-notices .v1410-global-notice p{margin:4px 0 0!important;color:#aab9b5!important;font:600 9px/1.3 system-ui!important}#v1410-global-notices .v1410-global-notice strong{display:block!important;margin-top:4px!important;color:#ffd587!important;font:900 15px/1 system-ui!important}#v1410-global-notices .v1410-global-notice>button{width:28px!important;height:28px!important;padding:0!important;border:0!important;border-radius:9px!important;background:rgba(255,255,255,.06)!important;color:#dfe8e4!important;font:800 18px/1 system-ui!important}

/* Authoritative mobile chat layout: no sliding columns, no absolute content overlap. */













/* Cosmetics use the whole card and remain readable. */













/* Admin inventory controls. */
.v1421-admin-inventory{display:grid;gap:7px;margin-top:8px}.v1421-admin-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:center;padding:8px;border:1px solid rgba(151,176,168,.16);border-radius:12px;background:rgba(4,17,20,.72)}.v1421-admin-item>span{width:40px;height:40px;border-radius:9px;overflow:hidden;background:rgba(0,0,0,.22)}.v1421-admin-item img{width:100%;height:100%;object-fit:contain;padding:3px;box-sizing:border-box}.v1421-admin-item>div{min-width:0}.v1421-admin-item b{display:block;color:#f0ece1;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v1421-admin-item small{display:block;margin-top:2px;color:#8fa5a0;font-size:7px}.v1421-admin-item footer{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px}.v1421-admin-item select,.v1421-admin-item button{min-height:34px;border-radius:9px;font-size:8px}.v1421-admin-item button.danger{border-color:#a84e42;background:#48201c;color:#ffd5cd}

@media(max-width:430px){
  .v1421-street-card{grid-template-columns:66px minmax(0,1fr);margin:8px;padding:9px}.v1421-street-art{width:64px;height:64px}.v1421-merchant-shop{height:91dvh;min-height:460px}.v1421-shop-tabs{grid-template-columns:repeat(6,61px)!important}.v1421-shop-modal .modal-card,.v1421-shop-modal .v65-modal-card,.v1421-shop-modal .v122-modal-card{width:100vw!important;max-width:100vw!important;max-height:100dvh!important;height:100dvh!important;border-radius:0!important}.v1421-shop-modal .modal-body,.v1421-shop-modal .v65-modal-body,.v1421-shop-modal .v122-modal-body{max-height:100dvh!important;height:100dvh!important}.v1421-merchant-shop{height:100dvh}.v1421-admin-item footer{grid-template-columns:1fr 1fr}.v1421-admin-item footer select{grid-column:1/-1}
}

/* v1.146.28 — coupon call stays on the right without crossing the street copy. */
.v1421-street-card.v14628-away-call{grid-template-columns:76px minmax(0,1fr) 52px}
.v14628-away-call>.v14628-coupon-call{align-self:center;width:48px;height:48px;padding:5px;border:1px solid rgba(218,169,62,.62);border-radius:14px;background:linear-gradient(145deg,#483616,#122b2a);box-shadow:0 7px 18px #0008,inset 0 0 0 1px #ffe18416}
.v14628-coupon-call img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important}
.v1420-away.v14628-away-call{display:grid;grid-template-columns:72px minmax(0,1fr) 52px;align-items:center;gap:9px}
.v14628-coupon-picker{display:grid;gap:8px;min-width:0}.v14628-coupon-picker>p{margin:0 0 3px;color:#9eb1ac;font:600 10px/1.4 system-ui}
.v14628-coupon-option{display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;width:100%!important;min-height:66px!important;padding:7px!important;border:1px solid rgba(206,159,58,.32)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(15,39,39,.98),rgba(6,20,23,.98))!important;text-align:left!important;color:#efe8d9!important}
.v14628-coupon-option>span{width:50px;height:50px;display:grid;place-items:center;border-radius:10px;background:#02090a}.v14628-coupon-option img{width:48px!important;height:48px!important;object-fit:contain!important}.v14628-coupon-option b,.v14628-coupon-option small{display:block}.v14628-coupon-option b{font:800 11px/1.2 system-ui}.v14628-coupon-option small{margin-top:4px;color:#a4b6b1;font:700 8px/1.25 system-ui}.v14628-coupon-option em{color:#f0ca70;font:900 11px/1 system-ui;font-style:normal}
@media(max-width:430px){.v1421-street-card.v14628-away-call{grid-template-columns:64px minmax(0,1fr) 48px}.v14628-away-call>.v14628-coupon-call{width:44px;height:44px}.v1420-away.v14628-away-call{grid-template-columns:58px minmax(0,1fr) 46px}}

/* v1.142.1 admin item status and manual caravan controls. */
.v1421-admin-inventory-controls{display:grid;gap:8px;margin:8px 0 14px}
.v1421-admin-item-control{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;align-items:center;padding:9px;border:1px solid rgba(151,176,168,.18);border-radius:13px;background:linear-gradient(145deg,rgba(8,27,29,.95),rgba(5,17,20,.96));min-width:0}
.v1421-admin-item-control.confiscated{border-color:rgba(210,75,64,.7);background:linear-gradient(145deg,rgba(52,18,17,.96),rgba(13,17,20,.98))}
.v1421-admin-item-control.worn{border-color:rgba(200,147,52,.58)}
.v1421-admin-item-control>img{width:48px;height:48px;object-fit:contain;object-position:center;padding:4px;box-sizing:border-box;border-radius:10px;background:rgba(0,0,0,.23)}
.v1421-admin-item-copy{min-width:0}.v1421-admin-item-copy b{display:block;color:#f3eee2;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v1421-admin-item-copy small,.v1421-admin-item-copy span{display:block;margin-top:2px;color:#93aaa4;font-size:7px;line-height:1.25}.v1421-admin-item-copy span{color:#d7b459;font-weight:800}
.v1421-admin-item-control>select{grid-column:1/-1;min-height:38px;border-radius:10px}.v1421-admin-item-control>button{min-height:38px;border-radius:10px}.v1421-admin-item-control>button[data-item-status-apply]{grid-column:1/2}.v1421-admin-item-control>button[data-item-confiscate]{grid-column:2/3;background:#471b1a;border-color:#a34b43;color:#ffd7d0}
.v1421-admin-caravan-state{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.v1421-admin-caravan-state article{padding:10px;border:1px solid rgba(193,150,57,.26);border-radius:12px;background:rgba(7,23,25,.76)}.v1421-admin-caravan-state small,.v1421-admin-caravan-state span{display:block;color:#8fa5a0;font-size:8px}.v1421-admin-caravan-state b{display:block;margin:4px 0;color:#f1eadb;font-size:11px}.v1421-admin-event-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}.v1421-admin-event-controls label{min-width:0}.v1421-admin-event-controls button{min-height:42px;border-radius:11px}.v1421-admin-event-controls button.danger{background:#461b1a;border-color:#a34b43;color:#ffd7d0}
.v1421-admin-research-open{color:#d2b15d!important;text-align:center!important}
@media(max-width:520px){.v1421-admin-caravan-state,.v1421-admin-event-controls{grid-template-columns:1fr}.v1421-admin-item-control>button[data-item-status-apply],.v1421-admin-item-control>button[data-item-confiscate]{grid-column:auto}}

/* Cosmetic card backgrounds must work regardless of which legacy body version class is present. */








/* v1.144.4 UI integrity recovery — authoritative final overrides. */
/* Restore the deliberately compact chat presentation. */











/* Inventory: the art now fills its cell instead of being a tiny icon in a large frame. */
html body.v127-ui .v119-inventory-list>.v124-item-card.v119-item-card{grid-template-columns:66px minmax(0,1fr)!important;gap:5px 7px!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-icon-wrap{width:66px!important;min-width:66px!important;height:88px!important;min-height:88px!important}
html body.v127-ui .v119-inventory-list>.v124-item-card .item-emblem :where(img,.item-asset-image,.class-asset-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:scale(1.06)!important;transform-origin:center!important}
/* Full item card: larger useful art, slightly calmer title wrapping. */
html body.v127-ui .v122-item-modal .v122-item-detail-card>.v122-item-detail-head{grid-template-columns:94px minmax(0,1fr)!important;gap:11px!important;min-height:150px!important;padding:11px!important}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-icon{width:94px!important;min-width:94px!important;max-width:94px!important;height:122px!important;min-height:122px!important;max-height:122px!important;padding:5px!important}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-icon :where(img,.item-asset-image){width:100%!important;height:100%!important;max-width:94%!important;max-height:94%!important;object-fit:contain!important}
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-copy h2{font-size:clamp(18px,5.2vw,24px)!important;line-height:1.04!important;overflow-wrap:break-word!important;hyphens:none!important}
/* Monster loot: keep two columns but make every reward picture genuinely readable. */
body.v122-ui .v122-monster-loot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
body.v122-ui .v122-monster-loot{grid-template-columns:46px minmax(0,1fr)!important;gap:6px!important;min-height:55px!important;padding:5px!important}
body.v122-ui .v122-monster-loot>span{width:44px!important;height:44px!important;border-radius:9px!important}
body.v122-ui .v122-monster-loot>span :where(img,svg){width:96%!important;height:96%!important;object-fit:contain!important}
body.v122-ui .v122-monster-material b,body.v122-ui .v122-monster-loot b{font-size:8.8px!important;line-height:1.1!important}
body.v122-ui .v122-monster-material small,body.v122-ui .v122-monster-loot small{font-size:6.5px!important;margin-top:2px!important}
/* Travel screen: same information, about one fifth less empty surface. */
body.v127-ui .v126-travel-card{width:min(86vw,520px)!important;min-height:248px!important;padding:15px 17px!important;gap:8px!important;border-radius:22px!important}
body.v127-ui .v126-travel-compass{width:86px!important;height:86px!important;border-radius:23px!important}
body.v127-ui .v126-travel-compass img{width:60px!important;height:60px!important}
body.v127-ui .v126-travel-compass i{inset:10px!important}
body.v127-ui .v126-travel-card .v77-travel-timer b{font-size:22px!important}
body.v127-ui .v126-travel-card .bar.travel{height:8px!important}
/* Attribute chooser: real image slots and predictable sizing even for stale pending choices. */
body.v127-ui .v134-attribute-icon{width:48px!important;height:48px!important;min-width:48px!important;display:grid!important;place-items:center!important;overflow:hidden!important}
body.v127-ui .v134-attribute-icon :where(img,svg,.v83-ui-icon){width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:contain!important}
@media(max-width:390px){
 html body.v127-ui .v119-inventory-list>.v124-item-card.v119-item-card{grid-template-columns:62px minmax(0,1fr)!important}
 html body.v127-ui .v119-inventory-list>.v124-item-card>.v39-item-icon-wrap{width:62px!important;min-width:62px!important;height:84px!important;min-height:84px!important}
 html body.v127-ui .v122-item-modal .v122-item-detail-card>.v122-item-detail-head{grid-template-columns:88px minmax(0,1fr)!important}
 html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-icon{width:88px!important;min-width:88px!important;max-width:88px!important;height:116px!important;min-height:116px!important;max-height:116px!important}
}

/* ---- css/v1447-integrity.css ---- */
/* v1.144.11: no runtime item tinting; all public/assets are preserved byte-for-byte from the v1.144.6.1 visual base. */

/* ---- css/v14416-polish.css ---- */
/* v1.144.16 — authoritative mobile polish: location state, merchant, travel, healer choice, skills, admin, notifications */

/* LOCATION STATUS — same geometry for calm/aggressive; compact banner, readable detail card */
.v14415-location-status-banner{position:relative;isolation:isolate;overflow:hidden;width:100%;height:68px;min-height:68px;margin:7px 0 10px;padding:9px 10px 9px 12px;border:1px solid rgba(211,164,73,.42);border-radius:15px;display:grid;grid-template-columns:minmax(0,1fr) 72px;align-items:center;gap:8px;text-align:left;color:#eef4ee;background:#071619;box-shadow:0 7px 20px rgba(0,0,0,.24)}
.v14415-location-status-banner::before{content:"";position:absolute;inset:-3px;z-index:-2;border-radius:inherit;background-position:center;background-size:cover;background-repeat:no-repeat;transform:scale(1.025)}
.v14415-location-status-banner::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(90deg,rgba(2,14,17,.94) 0%,rgba(2,14,17,.73) 47%,rgba(2,14,17,.52) 72%,rgba(2,14,17,.86) 100%)}
.v14415-location-status-banner.calm::before{background-image:url('../assets/v14415/ui/location-calm-banner.webp?ah=292c2309cb50')}
.v14415-location-status-banner.aggressive::before{background-image:url('../assets/v14415/ui/location-aggressive-banner.webp?ah=d4a6cbb50905')}
.v14415-location-status-banner.calm{border-color:rgba(72,191,159,.34)}
.v14415-location-status-banner.aggressive{border-color:rgba(235,112,49,.48);box-shadow:0 7px 20px rgba(92,29,8,.24)}
.v14415-location-status-copy{display:grid;gap:2px;min-width:0;align-content:center}
.v14415-location-status-copy small{font:850 7px/1 system-ui;letter-spacing:.12em;color:#76cdb5}
.v14415-location-status-copy b{font:900 17px/1.02 Georgia,serif;color:#f5ecd6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v14415-location-status-copy em{font:650 9px/1.18 system-ui;font-style:normal;color:#aabdb7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v14415-location-status-banner.aggressive .v14415-location-status-copy small{color:#ef8e4a}.v14415-location-status-banner.aggressive .v14415-location-status-copy b{color:#ffd7b0}
.v14415-location-status-timer{align-self:center;width:72px;height:48px;padding:5px;border:1px solid rgba(226,178,79,.25);border-radius:11px;background:rgba(1,9,11,.68);display:grid;place-content:center;text-align:center;gap:3px}
.v14415-location-status-timer small{font:800 6px/1 system-ui;letter-spacing:.09em;color:#7e9690}.v14415-location-status-timer span{font:900 15px/1 ui-monospace,monospace;color:#efd287;font-variant-numeric:tabular-nums}
.v14415-location-status-banner.aggressive .v14415-location-status-timer{border-color:rgba(241,117,47,.32);background:rgba(36,10,5,.68)}.v14415-location-status-banner.aggressive .v14415-location-status-timer span{color:#ff9c56}
.modal.v14415-location-status-modal{width:min(92vw,430px)!important;max-width:430px!important;padding:8px!important;border:1px solid rgba(212,164,65,.42)!important;border-radius:18px!important;background:#061417!important;overflow:hidden!important}
.v14415-location-status-modal>.modal-close{z-index:8;top:8px!important;right:8px!important;width:36px!important;height:36px!important;border-radius:11px!important;background:rgba(4,15,17,.78)!important;border:1px solid rgba(211,164,73,.42)!important;color:#efbd61!important}
.v14415-location-status-card{position:relative;isolation:isolate;overflow:hidden;width:100%;height:auto;min-height:276px;margin:0;padding:74px 20px 20px;border-radius:13px;display:flex;align-items:flex-end;background:#071619;border:1px solid rgba(72,191,159,.38);box-shadow:inset 0 0 0 1px rgba(72,191,159,.10);box-sizing:border-box}
.v14415-location-status-card::before{content:"";position:absolute;inset:-5px;z-index:-2;border-radius:inherit;background-position:center;background-size:cover;background-repeat:no-repeat;transform:scale(1.035)}
.v14415-location-status-card.calm::before{background-image:url('../assets/v14415/ui/location-calm-card.webp?ah=a158db1915bf')}.v14415-location-status-card.aggressive::before{background-image:url('../assets/v14415/ui/location-aggressive-card.webp?ah=fe6c0e65f234')}
.v14415-location-status-card::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(180deg,rgba(2,10,12,.14) 0%,rgba(2,10,12,.34) 34%,rgba(2,10,12,.88) 64%,rgba(2,10,12,.98) 100%)}
.v14415-location-status-card.aggressive{border-color:rgba(235,112,49,.52);box-shadow:inset 0 0 0 1px rgba(235,112,49,.12)}.v14415-location-status-card.aggressive::after{background:linear-gradient(180deg,rgba(35,8,3,.18) 0%,rgba(20,8,5,.45) 38%,rgba(14,7,6,.92) 68%,rgba(8,7,7,.98) 100%)}
.v14415-location-status-card-copy{width:100%;display:grid;gap:8px}.v14415-location-status-card-copy>small{color:#d6b85d;font:900 7px/1 system-ui;letter-spacing:.13em}.v14415-location-status-card.aggressive .v14415-location-status-card-copy>small{color:#f28b45}
.v14415-location-status-card h2{margin:0;color:#fff1d2;font:900 25px/1.03 Georgia,serif}.v14415-location-status-card.aggressive h2{color:#ffc28f}
.v14415-location-status-card p{margin:0;color:#c3d0cc;font:600 11px/1.38 system-ui}.v14415-location-status-clock{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid rgba(217,166,67,.22);border-radius:11px;background:rgba(3,13,15,.76)}
.v14415-location-status-clock span{font:700 9px/1.2 system-ui;color:#9dafaa}.v14415-location-status-clock b{font:900 20px/1 ui-monospace,monospace;color:#f3d078;font-variant-numeric:tabular-nums}
.v14415-location-status-card.aggressive .v14415-location-status-clock b{color:#ff9d58}.v14415-location-status-card footer{display:grid;gap:3px}.v14415-location-status-card footer span{font:800 6.5px/1 system-ui;color:#829690;text-transform:uppercase;letter-spacing:.09em}.v14415-location-status-card footer strong{font:700 9px/1.25 system-ui;color:#e3ddd0}

/* MERCHANT — compact hero, visual tabs, readable buy/sell/repair/dialogue */
.modal.v1421-shop-modal{padding:0!important;overflow:hidden!important;background:#061518!important;border:1px solid rgba(210,161,60,.42)!important}
.v1421-merchant-shop{display:grid;grid-template-rows:auto auto minmax(0,1fr);height:min(88dvh,760px);min-height:500px;background:radial-gradient(circle at 18% 0,rgba(60,104,87,.16),transparent 32%),linear-gradient(160deg,#0a2426,#061518 70%);color:#edf2ec;overflow:hidden}
.v14413-shop-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:58px minmax(0,1fr) 70px 78px;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid rgba(207,158,54,.20);background:linear-gradient(105deg,rgba(18,57,53,.94),rgba(6,23,25,.98)),radial-gradient(circle at 12% 35%,rgba(174,129,43,.13),transparent 42%)}
.v14413-shop-portrait{width:56px;height:64px;display:grid;place-items:end center;border:1px solid rgba(212,163,61,.34);border-radius:13px;background:rgba(1,9,11,.48);overflow:hidden}.v14413-shop-portrait img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.v14413-shop-title{min-width:0}.v14413-shop-title small{color:#d5b15d;font:900 6.5px/1 system-ui;letter-spacing:.1em}.v14413-shop-title h2{margin:3px 0 3px;color:#fff0cf;font:900 17px/1 Georgia,serif}.v14413-shop-title p{margin:0;color:#9fb5af;font:650 7.5px/1.2 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v14413-shop-wallet,.v14413-shop-depart{display:grid;justify-items:center;gap:2px;padding:6px 5px;border:1px solid rgba(212,163,61,.23);border-radius:10px;background:rgba(2,10,12,.55);text-align:center}.v14413-shop-wallet small,.v14413-shop-depart small{color:#879b96;font:850 5.7px/1 system-ui;letter-spacing:.06em}.v14413-shop-wallet strong,.v14413-shop-depart strong{color:#efca73;font:900 11px/1 system-ui}.v14413-shop-wallet em{font-size:6px;color:#9b9278;font-style:normal}
.v1421-shop-tabs,.v1420-tabs.v1421-shop-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(58px,1fr))!important;gap:5px!important;overflow-x:auto!important;padding:7px 8px!important;background:#071b1e!important;border-bottom:1px solid rgba(214,164,66,.15)!important;scrollbar-width:none}.v1421-shop-tabs::-webkit-scrollbar{display:none}
.v1421-shop-tabs button{display:grid!important;grid-template-rows:22px auto!important;place-items:center!important;gap:3px!important;min-width:58px!important;min-height:48px!important;padding:5px!important;border:1px solid rgba(113,157,145,.25)!important;border-radius:11px!important;background:linear-gradient(160deg,#123234,#0a2225)!important;color:#b9cac5!important;box-shadow:inset 0 1px rgba(255,255,255,.025)!important}
.v1421-shop-tabs button>span{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:rgba(115,166,149,.08)}.v1421-shop-tabs button>span :is(img,svg,.v83-ui-icon){width:15px!important;height:15px!important}.v1421-shop-tabs button>b{font:800 8px/1 system-ui!important}
.v1421-shop-tabs button.active{border-color:rgba(226,178,69,.72)!important;background:linear-gradient(155deg,#4a3a19,#19352e)!important;color:#ffe4a0!important;box-shadow:inset 0 -3px rgba(232,184,72,.76),0 4px 12px rgba(0,0,0,.22)!important}.v1421-shop-tabs button.active>span{background:rgba(237,192,86,.13)}
.v1421-shop-content{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:9px 10px calc(16px + env(safe-area-inset-bottom))!important;scrollbar-width:thin!important;scrollbar-color:#9a6a2a #0b2224!important}.v1421-shop-content::-webkit-scrollbar{width:4px}.v1421-shop-content::-webkit-scrollbar-thumb{background:#b0722b;border-radius:99px}
.v14413-shop-overview{display:grid;gap:8px}.v14413-merchant-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.v14413-merchant-summary>div{display:grid;gap:3px;padding:9px;border:1px solid rgba(197,153,65,.18);border-radius:12px;background:linear-gradient(145deg,rgba(15,44,43,.94),rgba(8,29,31,.94))}.v14413-merchant-summary small{color:#829a94;font:850 6px/1 system-ui}.v14413-merchant-summary b{color:#f0dfb6;font:850 10px/1.15 system-ui}.v14413-merchant-summary em{color:#92a7a1;font:600 7px/1.2 system-ui;font-style:normal}.v14413-shop-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.v14413-shop-quick button{min-height:38px;border:1px solid rgba(205,158,59,.40);border-radius:11px;background:linear-gradient(155deg,#20443a,#102d2d);color:#f0dca8;font:800 8px/1.15 system-ui;box-shadow:inset 0 -2px rgba(222,172,66,.10)}
.v14413-section-note{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:8px 9px!important;border:1px solid rgba(150,180,169,.13)!important;border-radius:11px!important;background:rgba(9,31,33,.82)!important;color:#a7bbb5!important;font-size:8px!important}.v14413-section-note b{color:#eee2c5!important}.v14413-section-note span,.v14413-section-note em{font-style:normal;color:#91a7a1}
.v14416-sell-head button{min-height:34px;padding:0 10px;border:1px solid rgba(226,174,65,.55);border-radius:10px;background:linear-gradient(145deg,#5b421b,#274438);color:#ffe1a0;font:850 8px/1.1 system-ui}.v14416-sell-rule{margin:0 2px 7px;color:#78908a;font:600 7.5px/1.3 system-ui}
.v1420-offer-card{grid-template-columns:56px minmax(0,1fr) auto!important;gap:8px!important;min-height:76px!important;padding:8px!important;border:1px solid rgba(142,174,164,.18)!important;border-radius:13px!important;background:linear-gradient(145deg,#0d2b2c,#081d20)!important}.v1420-offer-art{width:54px!important;height:58px!important;border-radius:10px!important}.v1420-offer-copy b{font-size:11px!important}.v1420-offer-copy p{font-size:8px!important;-webkit-line-clamp:1!important}.v1420-offer-action{grid-column:auto!important;display:grid!important;justify-items:end!important;gap:5px!important}.v1420-offer-action span{display:grid;justify-items:end}.v1420-offer-action small{font-size:5.5px;color:#81958f}.v1420-offer-action strong{font-size:10px!important}.v1420-offer-action button{min-height:32px!important;padding:0 11px!important;border-radius:9px!important;background:linear-gradient(145deg,#36533b,#263b27)!important}
.v14413-offer-kicker{display:flex;justify-content:space-between;gap:6px}.v14413-offer-kicker span{color:#8fa49f;font:750 6.5px/1 system-ui}.v14415-rarity{font-weight:900!important;text-transform:none!important}.v14415-rarity.rarity-обычный{color:#a8b4b1!important}.v14415-rarity.rarity-необычный{color:#79d67e!important}.v14415-rarity.rarity-редкий{color:#61a8ff!important}.v14415-rarity.rarity-эпический{color:#c181ff!important}.v14415-rarity.rarity-легендарный{color:#ffbd45!important}.v14415-rarity.rarity-мифический{color:#ff6e74!important}.v14413-offer-stats{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px}.v14413-offer-stats em{padding:2px 4px;border-radius:6px;font:750 6px/1 system-ui!important;font-style:normal!important}.v14413-offer-stats em.damage{color:#ffb18e!important;background:rgba(164,64,31,.14)}.v14413-offer-stats em.defense{color:#a8d2ff!important;background:rgba(48,104,159,.14)}.v14413-offer-stats em.magic{color:#c9a7ff!important;background:rgba(102,64,160,.15)}.v14413-offer-stats em.attribute{color:#b8ddb1!important;background:rgba(72,130,62,.14)}.v14413-offer-stats em.durability{color:#e5d18b!important;background:rgba(151,126,43,.13)}
.v1420-sell-card{grid-template-columns:46px minmax(0,1fr) auto!important;gap:8px!important;min-height:72px!important;padding:8px!important;border-radius:13px!important;background:linear-gradient(145deg,#0c292b,#081d20)!important}.v1420-sell-card.demanded{border-color:rgba(112,196,118,.38)!important;background:linear-gradient(145deg,#123228,#081f20)!important}.v1420-sell-card>span:first-child{width:44px!important;height:48px!important}.v1420-sell-card b{font-size:11px!important}.v1420-sell-card p{font-size:7.5px!important}.v1420-sell-card em{color:#8fd191;font:700 7px/1.2 system-ui;font-style:normal}.v14416-sell-action{display:grid!important;justify-items:end!important;align-items:center!important;gap:5px!important}.v14416-sell-action>b{color:#efcc74!important;font-size:10px!important}.v14416-sell-action button{min-height:32px!important;padding:0 10px!important;background:linear-gradient(145deg,#31513a,#223a2e)!important;border-color:rgba(211,161,56,.48)!important}
.v1420-demand-card{grid-template-columns:36px minmax(0,1fr) auto!important;padding:7px 8px!important;margin:5px 0!important;border-radius:11px!important}.v1420-demand-card>span{width:34px!important;height:34px!important}.v1420-demand-card b{font-size:10px!important}.v1420-demand-card p,.v1420-demand-card em{font-size:7px!important}.v1420-demand-card>strong{color:#88d594;font:850 7px/1 system-ui}
.v14415-repair-summary{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:center;padding:9px;border:1px solid rgba(203,157,63,.22);border-radius:12px;background:linear-gradient(145deg,#123a34,#0b292b)}.v14415-repair-summary span{display:grid;gap:2px}.v14415-repair-summary small,.v14415-repair-price small{color:#8ca29c;font:800 6px/1 system-ui;letter-spacing:.08em}.v14415-repair-summary b,.v14415-repair-price b{color:#f0cb74;font:900 10px/1 system-ui}.v14415-repair-summary button,.v14415-repair-price button{min-height:32px;border:1px solid rgba(211,161,56,.55);border-radius:9px;background:linear-gradient(145deg,#36513a,#243b2c);color:#ffe4a2;font:800 8px system-ui}.v14415-repair-list{display:grid;gap:6px}.v14415-repair-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:76px;padding:8px;border:1px solid rgba(143,170,162,.18);border-radius:12px;background:linear-gradient(145deg,#0d3030,#082124)}.v14415-repair-art{width:44px;height:48px;border:1px solid rgba(211,161,56,.25);border-radius:9px;overflow:hidden}.v14415-repair-art img{width:100%;height:100%;object-fit:contain}.v14415-repair-card>div small{color:#95a9a4;font:700 6.5px system-ui}.v14415-repair-card>div b{display:block;color:#f3ead4;font:800 10px/1.2 system-ui}.v14415-repair-card p{margin:2px 0 0;color:#91a7a1;font:650 7px system-ui}.v14415-durability{height:4px;margin-top:4px;border-radius:99px;background:#132d2e;overflow:hidden}.v14415-durability i{display:block;height:100%;background:linear-gradient(90deg,#b66a36,#d4ba63,#72be82)}.v14415-repair-price{display:grid;justify-items:end;gap:4px}.v14415-repair-empty{padding:20px;text-align:center;color:#a7bbb5}
.v14415-merchant-dialogue{display:grid;gap:7px}.v14415-dialogue-stage{position:relative;min-height:238px;overflow:hidden;border:1px solid rgba(205,158,59,.22);border-radius:14px;background:radial-gradient(circle at 70% 28%,rgba(110,83,35,.16),transparent 38%),linear-gradient(160deg,#0b2829,#071719)}.v14415-dialogue-merchant{position:absolute;right:2%;bottom:0;width:42%;height:215px;display:grid;place-items:end center;opacity:.96}.v14415-dialogue-merchant img{width:100%;height:100%;object-fit:contain;object-position:center bottom}.v14415-dialogue-bubble{position:absolute;padding:9px 10px;border-radius:12px;background:rgba(3,14,16,.91);box-shadow:0 8px 22px rgba(0,0,0,.26)}.v14415-dialogue-bubble small{display:block;margin-bottom:3px;color:#d5b35f;font:850 6.5px system-ui}.v14415-dialogue-bubble p{margin:0;color:#e2e8e5;font:650 9px/1.36 system-ui}.v14415-dialogue-bubble.merchant{left:10px;top:12px;width:62%;min-height:78px}.v14415-dialogue-choices{display:grid;grid-template-columns:1fr;gap:5px}.v14415-dialogue-choices button,.v14415-dialogue-tools button{min-height:35px;padding:6px 9px;border:1px solid rgba(203,157,63,.32);border-radius:10px;background:linear-gradient(145deg,#183b37,#102a2c);color:#e7d7ae;font:750 8.5px/1.2 system-ui}.v14415-dialogue-tools{display:grid;grid-template-columns:1fr auto;gap:5px}.v14415-dialogue-tools .danger{border-color:rgba(190,69,47,.45);background:linear-gradient(145deg,#48231f,#2f1b1a);color:#ffb9aa}
.v1420-order-active,.v1420-order-empty{grid-template-columns:42px minmax(0,1fr)!important;padding:9px!important;border-radius:12px!important;background:linear-gradient(145deg,#0d2e2e,#081e21)!important}.v1420-order-active>span,.v1420-order-empty>span{width:40px!important;height:40px!important}.v1420-order-active b,.v1420-order-empty b{font-size:11px!important}.v1420-order-active p,.v1420-order-empty p,.v1420-order-active em{font-size:7.5px!important}.v1420-order-active button,.v1420-order-empty button{margin-top:6px;min-height:32px!important}
.v1420-raid-card{grid-template-columns:44px minmax(0,1fr) auto!important;gap:8px!important;padding:9px!important;margin-top:8px!important;border-color:rgba(221,100,56,.48)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(55,23,17,.96),rgba(15,25,25,.98))!important}.v1420-raid-card>span{width:42px!important;height:42px!important}.v1420-raid-card b{font-size:11px!important}.v1420-raid-card p{font-size:7.5px!important}.v1420-raid-card em{font-size:7px!important}.v1420-raid-card>button{grid-column:auto!important;min-height:34px!important;padding:0 10px!important;border-radius:9px!important;font-size:8px!important}
.v1421-street-card{border-radius:14px!important}.v1421-open-shop{border:1px solid rgba(213,166,70,.52)!important;background:linear-gradient(145deg,#4b3a18,#1d3830)!important;color:#ffe1a0!important;border-radius:10px!important}

/* TRAVEL — fixed crop, stable timer and cancel action */
.v14416-travel-screen{overflow:hidden!important;padding-top:8px!important}.v14416-travel-location-head{overflow:hidden!important;border-radius:14px!important;background:#082022!important;min-height:78px!important}.v14416-travel-location-head>span{overflow:hidden!important;background:#061619!important;display:grid!important;place-items:center!important}.v14416-travel-location-head img{width:112%!important;height:112%!important;object-fit:contain!important;object-position:center 58%!important;transform:translateY(-3%)!important;clip-path:inset(8% 0 0 0)!important}.v14416-travel-location-head h2{font-size:18px!important}.v14416-travel-location-head p{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.v14416-travel-card{position:relative!important;overflow:hidden!important;min-height:292px!important;max-height:360px!important;background:#092326!important}.v14416-travel-card .v126-travel-backdrop{position:absolute!important;inset:0!important;background-image:var(--v126-travel-art)!important;background-size:cover!important;background-position:center!important;opacity:.12!important;filter:saturate(.7) brightness(.62)!important;transform:scale(1.02)!important}.v14416-travel-card>*:not(.v126-travel-backdrop){position:relative;z-index:2}.v14416-travel-card::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(4,21,23,.45),rgba(4,21,23,.86));pointer-events:none}.v14416-travel-cancel{display:block;width:min(220px,78%);min-height:36px;margin:10px auto 0;border:1px solid rgba(217,164,64,.46);border-radius:10px;background:linear-gradient(145deg,#173b37,#0d292c);color:#e9d7ac;font:800 9px/1 system-ui}.v14416-travel-cancel:disabled{opacity:.55}

/* HEALER: Kara / Mercy — real assets and two clearly different paths */
.v14416-faith-choice{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:7px!important}.v14416-faith-choice>button{position:relative!important;overflow:hidden!important;display:grid!important;grid-template-rows:58px auto auto auto!important;justify-items:center!important;gap:4px!important;min-height:142px!important;padding:9px 7px!important;border-radius:14px!important;transition:transform .12s ease,opacity .12s ease,border-color .12s ease!important}.v14416-faith-choice>button i{width:58px!important;height:58px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:rgba(2,10,12,.48)!important}.v14416-faith-choice>button i img{width:56px!important;height:56px!important;object-fit:contain!important}.v14416-faith-choice>button strong{font:900 15px/1 Georgia,serif!important}.v14416-faith-choice>button span{max-width:150px;font:650 8px/1.25 system-ui!important;text-align:center!important}.v14416-faith-choice>button em{font:850 6px/1 system-ui!important;letter-spacing:.1em!important;font-style:normal!important}.v14416-faith-choice>button.wrath{border:1px solid rgba(232,165,55,.55)!important;background:radial-gradient(circle at 50% 20%,rgba(255,170,40,.20),transparent 46%),linear-gradient(160deg,#32210d,#151b18)!important;color:#ffe0a0!important}.v14416-faith-choice>button.mercy{border:1px solid rgba(99,207,179,.45)!important;background:radial-gradient(circle at 50% 20%,rgba(109,224,194,.17),transparent 46%),linear-gradient(160deg,#11342f,#102123)!important;color:#d9fff1!important}.v14416-faith-choice>button.selected{transform:translateY(-2px)!important;box-shadow:0 0 0 2px rgba(241,201,102,.20),0 10px 22px rgba(0,0,0,.28)!important}.v14416-faith-choice>button.dimmed{opacity:.34!important;filter:saturate(.55)!important}

/* SKILLS — stable passive drawer and cooldown overlay */
.v14415-skill-drawer .v102-skill-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.v14415-skill-section-title{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 7px}.v14415-skill-section-title small,.v14415-passive-head small{display:block;color:#78938c;font:850 6px/1 system-ui;letter-spacing:.1em}.v14415-skill-section-title h3{margin:3px 0 0;color:#e8e0cb;font:850 11px system-ui}.v14415-skill-section-title em{color:#c7a953;font:850 9px system-ui;font-style:normal}.v14415-inplace-cooldown .v101-skill-main{position:relative;overflow:hidden}.v14415-cooldown-edge{position:absolute;inset:-4px;background:rgba(4,10,12,.58);backdrop-filter:blur(2px);-webkit-mask:radial-gradient(circle at center,transparent 0 25%,#000 48%);mask:radial-gradient(circle at center,transparent 0 25%,#000 48%);pointer-events:none}.v14415-cooldown-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(3,11,13,.94);border:1px solid rgba(238,199,92,.78);box-shadow:0 0 0 3px rgba(0,0,0,.26),0 0 16px rgba(225,177,62,.18);color:#ffe49b;font:900 15px/1 ui-monospace,monospace;z-index:5}.v14415-passive-head{width:100%;min-height:38px;padding:5px 8px;border:1px solid rgba(117,158,145,.18);border-radius:10px;background:linear-gradient(145deg,#0b2929,#071e21);display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;text-align:left;color:#ddd}.v14415-passive-head b{font:850 9px system-ui;color:#d9e2de}.v14415-passive-head em{font:850 8px system-ui;font-style:normal;color:#afc5be}.v14415-passive-head i{width:23px;height:23px;border-radius:7px;display:grid;place-items:center;background:rgba(197,158,69,.1);color:#d6b85f;font-style:normal}.v14415-ability-lore{margin:8px 0;padding:9px 10px;border-left:2px solid rgba(202,157,62,.6);border-radius:0 9px 9px 0;background:rgba(203,157,62,.055)}.v14415-ability-lore small{color:#c4a65c;font:850 7px system-ui}.v14415-ability-lore p{margin:4px 0 0!important;color:#aebfba!important;font:600 9px/1.4 system-ui!important}

/* EQUIPMENT */
.v14416-unequip-all{min-height:32px!important;padding:0 10px!important;border:1px solid rgba(205,159,61,.38)!important;border-radius:9px!important;background:linear-gradient(145deg,#153432,#0b2528)!important;color:#e8d4a3!important;font:800 8px/1 system-ui!important}

/* NOTIFICATIONS — centered/stable on mobile, no horizontal drift */
.toast,.v76-toast,.v127-toast{left:auto!important;right:12px!important;transform:none!important;max-width:min(360px,calc(100vw - 24px))!important;box-sizing:border-box!important;border-radius:12px!important;background:linear-gradient(145deg,rgba(10,34,35,.97),rgba(5,20,23,.98))!important;border:1px solid rgba(150,180,169,.20)!important;box-shadow:0 10px 28px rgba(0,0,0,.38)!important}.toast.warning,.toast.error{border-color:rgba(224,113,64,.42)!important}.toast.success{border-color:rgba(93,193,150,.35)!important}

/* ADMIN */
.v14415-admin-mobile-quick{display:none}.v130-admin-nav.v14415-admin-nav{scrollbar-width:none}.v14415-admin-quick-actions{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important}.v14416-admin-elite{min-height:28px;padding:0 7px;border:1px solid rgba(205,159,61,.4);border-radius:8px;background:#173632;color:#e7d49f;font:750 7px system-ui;white-space:nowrap}

@media(max-width:650px){
 .v14415-location-status-banner{height:64px;min-height:64px;grid-template-columns:minmax(0,1fr) 66px;padding:8px 9px 8px 10px;border-radius:14px}.v14415-location-status-copy b{font-size:15px}.v14415-location-status-copy em{font-size:8px}.v14415-location-status-timer{width:66px;height:44px}.v14415-location-status-timer span{font-size:14px}
 .modal.v14415-location-status-modal{width:calc(100vw - 28px)!important;max-width:420px!important}.v14415-location-status-card{height:auto;min-height:266px;padding:70px 17px 18px}.v14415-location-status-card h2{font-size:23px}.v14415-location-status-card p{font-size:10px}
 .v1421-shop-modal{width:calc(100vw - 18px)!important;max-width:560px!important;height:min(92dvh,780px)!important;max-height:92dvh!important;border-radius:16px!important}.v1421-merchant-shop{height:100%!important;min-height:0!important}.v14413-shop-hero{grid-template-columns:52px minmax(0,1fr) 62px 70px;padding:8px;gap:6px}.v14413-shop-portrait{width:50px;height:58px}.v14413-shop-title h2{font-size:15px}.v14413-shop-title p{font-size:7px}.v14413-shop-wallet,.v14413-shop-depart{padding:5px 3px}.v14413-shop-wallet strong,.v14413-shop-depart strong{font-size:10px}
 .v1421-shop-tabs,.v1420-tabs.v1421-shop-tabs{grid-template-columns:repeat(6,58px)!important;justify-content:start!important}.v1421-shop-tabs button{min-width:58px!important;min-height:46px!important}
 .v14413-merchant-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.v14413-shop-quick{grid-template-columns:repeat(3,1fr)}
 .v1420-offer-card{grid-template-columns:50px minmax(0,1fr) auto!important}.v1420-offer-art{width:48px!important;height:52px!important}.v1420-offer-copy b{font-size:10px!important}.v1420-offer-copy p{display:none!important}.v1420-offer-action button{padding:0 9px!important}
 .v1420-sell-card{grid-template-columns:42px minmax(0,1fr) auto!important}.v1420-sell-card>span:first-child{width:40px!important;height:44px!important}.v1420-sell-card b{font-size:10px!important}
 .v14415-repair-card{grid-template-columns:42px minmax(0,1fr) auto}.v14415-repair-art{width:40px;height:44px}.v14415-repair-price button{min-width:72px}
 .v14415-dialogue-stage{min-height:220px}.v14415-dialogue-merchant{width:45%;height:200px}.v14415-dialogue-bubble.merchant{width:64%}.v14415-dialogue-choices{grid-template-columns:1fr}.v14415-dialogue-tools{grid-template-columns:1fr}
 .v14416-travel-screen{padding-inline:8px!important}.v14416-travel-location-head{min-height:72px!important}.v14416-travel-card{min-height:275px!important}.v14416-faith-choice{grid-template-columns:1fr 1fr!important;gap:6px!important}.v14416-faith-choice>button{min-height:132px!important;grid-template-rows:52px auto auto auto!important}.v14416-faith-choice>button i,.v14416-faith-choice>button i img{width:50px!important;height:50px!important}
 .v14415-skill-drawer .v102-skill-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
 .toast,.v76-toast,.v127-toast{left:10px!important;right:10px!important;max-width:none!important;margin:0!important;transform:none!important}
 .v130-admin-shell{padding-bottom:64px}.v130-admin-header{position:sticky;top:0;z-index:8;padding:9px 10px!important}.v130-admin-header h1{font-size:18px!important}.v130-admin-nav.v14415-admin-nav{position:sticky;top:64px;z-index:7;display:flex!important;overflow-x:auto!important;gap:5px!important;padding:6px 8px!important;background:#061719}.v130-admin-nav.v14415-admin-nav button{flex:0 0 auto;min-height:34px!important;padding:6px 10px!important}.v14415-admin-mobile-quick{position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:50;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:5px;border:1px solid rgba(201,158,67,.25);border-radius:14px;background:rgba(4,18,20,.94);backdrop-filter:blur(10px)}.v14415-admin-mobile-quick button{min-height:38px;border:0;border-radius:9px;background:#102b2b;color:#d8dfda;font:750 8px system-ui}.v130-admin-content{padding:8px!important}.v130-admin-split{grid-template-columns:1fr!important}.v130-admin-panel{border-radius:13px!important}.v130-admin-table-wrap{overflow-x:auto!important}.v130-admin-inline-form,.v130-admin-actions{grid-template-columns:1fr!important}.v130-admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* v1.144.18 travel topbar: override generic mobile title collapse only on travel. */

/* ---- css/v14417-polish.css ---- */
/* Aldos RPG v1.144.17 — mobile merchant/chat/gift/effects integrity */

/* Merchant tabs: readable buttons, no black empty blocks, no horizontal clipping. */
body.v127-ui .v1421-shop-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:8px 0!important;overflow:visible!important}
body.v127-ui .v1421-shop-tabs>button{min-width:0!important;width:100%!important;min-height:58px!important;padding:6px 5px!important;border:1px solid rgba(89,154,142,.28)!important;border-radius:14px!important;background:linear-gradient(155deg,rgba(20,62,60,.98),rgba(7,31,34,.99))!important;color:#c4d5cf!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 7px 16px rgba(0,0,0,.18)!important}
body.v127-ui .v1421-shop-tabs>button>span{display:grid!important;place-items:center!important;height:26px!important;margin-bottom:3px!important}
body.v127-ui .v1421-shop-tabs>button img{width:24px!important;height:24px!important;object-fit:contain!important}
body.v127-ui .v1421-shop-tabs>button b{display:block!important;min-width:0!important;font:800 10px/1.1 system-ui!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.v127-ui .v1421-shop-tabs>button.active{border-color:rgba(235,188,78,.82)!important;background:linear-gradient(155deg,rgba(86,75,34,.98),rgba(35,52,38,.99))!important;color:#ffe49a!important;box-shadow:inset 0 -3px rgba(232,177,55,.34),0 0 0 1px rgba(244,194,77,.12),0 8px 20px rgba(0,0,0,.22)!important}
.v14413-shop-quick{display:none!important}

/* Merchant sell cards. Reserve a real action column so buttons never leave the panel. */
body.v127-ui .v1420-sell-card{display:grid!important;grid-template-columns:46px minmax(0,1fr) 86px!important;gap:8px!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:9px!important;overflow:hidden!important}
body.v127-ui .v1420-sell-card>div{min-width:0!important;overflow:hidden!important}
body.v127-ui .v1420-sell-card>div b{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;font-size:11px!important;line-height:1.18!important}
body.v127-ui .v1420-sell-card>div p,body.v127-ui .v1420-sell-card>div em{white-space:normal!important;overflow-wrap:anywhere!important}
body.v127-ui .v14416-sell-action{display:grid!important;grid-template-columns:1fr!important;justify-items:stretch!important;align-content:center!important;gap:6px!important;width:86px!important;min-width:0!important;max-width:86px!important;overflow:hidden!important}
body.v127-ui .v14416-sell-action>b{width:100%!important;text-align:center!important;white-space:normal!important;font-size:9.5px!important;line-height:1.12!important}
body.v127-ui .v14416-sell-action>button{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:34px!important;padding:0 4px!important;box-sizing:border-box!important;border-radius:10px!important;background:linear-gradient(160deg,#4d6539,#2a4734)!important;color:#ffe9aa!important;font-size:9.5px!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Repair is a workshop, not a wall of gray controls. */
body.v127-ui .v14415-repair-summary{border-color:rgba(222,174,67,.32)!important;background:linear-gradient(145deg,rgba(38,62,48,.96),rgba(10,37,38,.98))!important;border-radius:14px!important}
body.v127-ui .v14415-repair-summary button,body.v127-ui .v14415-repair-card button{background:linear-gradient(150deg,#5a5735,#304936)!important;border-color:rgba(222,174,67,.52)!important;color:#ffebb0!important;box-shadow:inset 0 -2px rgba(223,164,52,.14)!important}
body.v127-ui .v14415-repair-card{grid-template-columns:52px minmax(0,1fr) 88px!important;gap:8px!important;min-width:0!important;overflow:hidden!important}
body.v127-ui .v14415-repair-card>div{min-width:0!important}.v14415-repair-price{min-width:0!important;width:88px!important}.v14415-repair-price button{width:100%!important;min-width:0!important;padding-inline:4px!important}

/* Dialogue: exactly two meaningful replies at any step. */
body.v127-ui .v14417-merchant-dialogue{display:grid!important;gap:10px!important}
body.v127-ui .v14417-dialogue-choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.v127-ui .v14417-dialogue-choices>button{min-width:0!important;min-height:60px!important;padding:9px 8px!important;border:1px solid rgba(207,164,74,.34)!important;border-radius:14px!important;background:linear-gradient(155deg,rgba(35,45,48,.98),rgba(15,27,31,.99))!important;color:#f1eee5!important;font:750 10.5px/1.25 system-ui!important;white-space:normal!important;overflow-wrap:anywhere!important;box-shadow:inset 0 1px rgba(255,255,255,.03)!important}
body.v127-ui .v14417-dialogue-choices>button:active{transform:scale(.985)!important;border-color:#d8ac58!important;background:linear-gradient(155deg,rgba(67,61,37,.98),rgba(22,38,36,.99))!important}
.v14417-dialogue-closed{grid-column:1/-1;padding:12px;border:1px solid rgba(147,173,165,.18);border-radius:12px;background:#0a1d20;color:#9eb0aa;text-align:center;font:700 9px/1.35 system-ui}
.v14417-dialogue-limit{display:block;text-align:center;color:#819a94;font:700 8px/1.2 system-ui}

/* Raid event — compact action. Never let the icon become a full-size overlay. */
body.v127-ui .v1420-raid-card{grid-template-columns:44px minmax(0,1fr) 104px!important;align-items:center!important;overflow:hidden!important}
body.v127-ui .v1420-raid-card>button{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:104px!important;max-width:104px!important;min-width:0!important;min-height:38px!important;height:auto!important;padding:6px 7px!important;box-sizing:border-box!important;font-size:8.5px!important;line-height:1.15!important;white-space:normal!important;overflow:hidden!important}
body.v127-ui .v1420-raid-card>button>span{display:grid!important;place-items:center!important;width:18px!important;height:18px!important;min-width:18px!important;overflow:hidden!important}
body.v127-ui .v1420-raid-card>button>span img{display:block!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;object-fit:contain!important;padding:0!important;margin:0!important}

/* Toasts stay centered in the safe mobile viewport instead of drifting left. */
body.v127-ui #toast-root{position:fixed!important;left:50%!important;right:auto!important;top:calc(58px + env(safe-area-inset-top))!important;transform:translateX(-50%)!important;width:min(92vw,430px)!important;max-width:430px!important;display:grid!important;justify-items:stretch!important;z-index:5000!important;pointer-events:none!important}
body.v127-ui #toast-root .toast{left:auto!important;right:auto!important;width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important;transform:none!important;pointer-events:auto!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(12,39,40,.98),rgba(7,24,28,.99))!important;border:1px solid rgba(153,183,170,.25)!important;box-shadow:0 12px 30px rgba(0,0,0,.42)!important}

/* One-time developer gift warning. */
.v14417-developer-gift-notice{position:fixed;z-index:6500;left:50%;top:50%;transform:translate(-50%,-50%);width:min(88vw,420px);box-sizing:border-box;display:grid;justify-items:center;gap:7px;padding:20px 18px 18px;border:1px solid rgba(227,177,69,.72);border-radius:20px;background:radial-gradient(circle at 50% 18%,rgba(74,96,56,.32),transparent 34%),linear-gradient(160deg,rgba(10,42,42,.995),rgba(5,20,24,.998));box-shadow:0 28px 80px rgba(0,0,0,.72),inset 0 0 0 1px rgba(255,255,255,.025);text-align:center;color:#e8eee8}
.v14417-developer-gift-notice::before{content:'';position:fixed;inset:-100vh -100vw;background:rgba(1,7,9,.72);backdrop-filter:blur(5px);z-index:-1}
.v14417-developer-gift-notice.closing{opacity:0;transform:translate(-50%,-48%) scale(.98);transition:.16s ease}
.v14417-gift-close{position:absolute;right:10px;top:10px;width:38px;height:38px;padding:0;border:1px solid rgba(221,169,58,.55);border-radius:11px;background:#10282a;color:#e3aa43;font-size:19px}
.v14417-gift-art{display:grid;place-items:center;width:88px;height:88px;margin-top:6px;border-radius:22px;background:radial-gradient(circle,rgba(226,178,68,.18),transparent 68%)}.v14417-gift-image{width:82px!important;height:82px!important;object-fit:contain!important}
.v14417-developer-gift-notice>small{color:#dcb25e;font:850 7px/1 system-ui;letter-spacing:.18em}.v14417-developer-gift-notice>h2{margin:2px 0;color:#fff3cf;font:850 20px/1.05 Georgia,serif}.v14417-developer-gift-notice>p{margin:0;max-width:34em;color:#c8d3cf;font:650 11px/1.45 system-ui}.v14417-developer-gift-notice>b{color:#f1cf7c;font:800 10px/1.3 system-ui}

/* Travel panel: keep the top title and destination art inside their own bounds. */
body.v127-ui .v14416-travel-screen{overflow-x:hidden!important}.v14416-travel-screen .v76-title,.v14416-travel-screen .v119-top-copy{min-width:0!important;max-width:100%!important;overflow:hidden!important}.v14416-travel-screen .v76-title h1,.v14416-travel-screen .v119-top-copy h1{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v14416-travel-screen .v14416-travel-destination,.v14416-travel-screen .v14416-travel-panel{overflow:hidden!important}.v14416-travel-screen img{max-width:100%!important}

/* Admin audit: false-positive orphan source entries are informational, not red failures. */
.v14417-audit-note{margin:8px 0;padding:9px 10px;border:1px solid rgba(96,152,145,.24);border-radius:11px;background:#0d282b;color:#9fb3ae;font:650 9px/1.35 system-ui}

@media(max-width:370px){
 body.v127-ui .v1421-shop-tabs>button{min-height:54px!important}.v1421-shop-tabs>button b{font-size:9px!important}
 body.v127-ui .v1420-sell-card{grid-template-columns:42px minmax(0,1fr) 78px!important;gap:6px!important;padding:7px!important}.v14416-sell-action{width:78px!important;max-width:78px!important}.v14416-sell-action>button{font-size:8.8px!important}
 body.v127-ui .v14417-dialogue-choices{gap:6px!important}.v14417-dialogue-choices>button{min-height:58px!important;padding:7px 5px!important;font-size:9.5px!important}
 body.v127-ui .v1420-raid-card{grid-template-columns:38px minmax(0,1fr)!important}.v1420-raid-card>button{grid-column:1/-1!important;width:100%!important;max-width:none!important}
}

/* Battle log effect icons use the same compact v1.144.17 status family. */
body.v127-ui .v102-log-icon{display:grid!important;place-items:center!important;overflow:hidden!important}
body.v127-ui .v102-log-effect-icon{display:block!important;width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;object-fit:contain!important;padding:0!important;margin:0!important}

/* Inventory material/lock icons are bounded so a real asset never collapses or overflows. */
body.v127-ui [data-inv-filter="material"] img{display:block!important;width:24px!important;height:24px!important;object-fit:contain!important}
body.v127-ui [data-item-lock] img,body.v127-ui .v119-item-lock img{display:block!important;width:18px!important;height:18px!important;object-fit:contain!important}

/* ---- css/v14419-polish.css ---- */
/* Aldos RPG v1.144.19 — chat / healer choice / battle integrity */

/* Healer Echo: the UI clock runs independently of battle rerenders; keep two choices usable on small phones. */
body.v127-ui .v1350-healer-echo-overlay{position:fixed!important;inset:0!important;display:grid!important;place-items:center!important;padding:calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px)!important;overflow:auto!important}
body.v127-ui .v1350-healer-echo-card{width:min(92vw,430px)!important;max-width:430px!important;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:auto!important;padding:18px 14px 16px!important;box-sizing:border-box!important}
body.v127-ui .v1350-healer-echo-actions.v14416-faith-choice{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.v127-ui .v1350-healer-echo-actions button{min-width:0!important;min-height:156px!important;padding:10px 7px!important;overflow:hidden!important}
body.v127-ui .v1350-healer-echo-actions button i{width:58px!important;height:58px!important}.v1350-healer-echo-actions button i img{width:52px!important;height:52px!important;object-fit:contain!important}
body.v127-ui .v1350-healer-echo-overlay.locked .v1350-healer-echo-actions button{pointer-events:none!important}
body.v127-ui .v1350-healer-echo-overlay:not(.locked):not(.sending) .v1350-healer-echo-actions button{pointer-events:auto!important}

/* Side battle drawer triggers stay on the edges and do not cover the journal text. */
body.v127-ui.v111-battle-active #skills-drawer-open.v108-swipe-handle.side,body.v127-ui.v111-battle-active #chat-drawer-open.v108-swipe-handle.side{width:52px!important;min-width:52px!important;max-width:52px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:5px!important;opacity:.96!important}
body.v127-ui.v111-battle-active #skills-drawer-open .v111-handle-icon,body.v127-ui.v111-battle-active #chat-drawer-open .v111-handle-icon{width:28px!important;height:28px!important}.v111-handle-icon img{max-width:26px!important;max-height:26px!important;object-fit:contain!important}

@media(max-width:370px){
 body.v127-ui .v1350-healer-echo-card{width:95vw!important;padding:14px 10px!important}.v1350-healer-echo-actions button{min-height:146px!important}
}

/* ---- css/v14420-polish.css ---- */
/* Aldos RPG v1.144.20 — combat/economy UI integrity */
html body #toast-root,html body.v127-ui #toast-root{position:fixed!important;left:50%!important;right:auto!important;top:calc(env(safe-area-inset-top) + 58px)!important;width:min(calc(100vw - 20px),430px)!important;max-width:430px!important;margin:0!important;padding:0!important;transform:translate3d(-50%,0,0)!important;display:grid!important;justify-items:stretch!important;z-index:6000!important;pointer-events:none!important}
html body #toast-root>.toast,html body.v127-ui #toast-root>.toast{position:relative!important;left:auto!important;right:auto!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important;transform:none!important;pointer-events:auto!important}
html body.v127-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v106-effect-asset.v113-effect-asset{overflow:visible!important}
html body.v127-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v113-effect-icon{overflow:hidden!important;display:grid!important;place-items:center!important}
html body.v127-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v113-effect-icon img{width:92%!important;height:92%!important;max-width:92%!important;max-height:92%!important;object-fit:contain!important;object-position:center!important;transform:none!important;margin:auto!important}
html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-art{max-width:96px!important;height:50px!important;min-height:50px!important;max-height:50px!important}
html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art :where(img,.class-asset-image){width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
body.v127-ui .v1420-offer-art{overflow:hidden!important;display:grid!important;place-items:center!important}body.v127-ui .v1420-offer-art img,body.v127-ui .v1420-offer-art .v1420-asset-image{width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;object-fit:contain!important;object-position:center!important;transform:none!important;margin:auto!important}
body.v127-ui .v14420-market-line{margin-top:4px!important;color:#9fb7af!important;font:700 8px/1.25 system-ui!important;white-space:normal!important;overflow-wrap:anywhere!important}body.v127-ui .v14420-market-line.demanded{color:#8fe4a4!important}
@media(max-width:390px){html body #toast-root,html body.v127-ui #toast-root{top:calc(env(safe-area-inset-top) + 52px)!important;width:calc(100vw - 16px)!important}html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-art{max-width:86px!important;height:46px!important;min-height:46px!important;max-height:46px!important}}

/* ---- css/v1450-mobile-authority.css ---- */
/* consolidated from css/v14422-polish.css */
/* Aldos RPG v1.144.22 — retained player-card / merchant compatibility; superseded chat/toast rules removed in v1.144.25 */

/* Merchant products behave like normal item cards and visibly advertise that they are inspectable. */
html body.v127-ui .v1420-offer-card[data-v142-offer-detail]{cursor:pointer!important;touch-action:manipulation!important}
html body.v127-ui .v1420-offer-card[data-v142-offer-detail]:active{transform:scale(.995)!important}

/* consolidated from css/v14423-polish.css */
/* Aldos RPG v1.144.23 — retained non-conflicting compatibility only.
   Superseded chat/toast geometry was removed in v1.144.25. */
@media(max-width:760px){body.v111-battle-active [data-battle-consumable]:not(:disabled){pointer-events:auto!important;touch-action:manipulation!important;position:relative!important;z-index:3!important}}

/* consolidated from css/v14426-integrity.css */
/* Aldos RPG v1.144.26 — authoritative mobile integrity */

/* Global notices: center the actual v1410 host in the viewport; never carry old translateX. */
html body #v1410-global-notices.v1410-global-notices{
  position:fixed!important; top:calc(env(safe-area-inset-top) + 8px)!important; left:0!important; right:0!important;
  width:100vw!important; max-width:none!important; margin:0!important; padding:0 8px!important; box-sizing:border-box!important;
  transform:none!important; display:flex!important; flex-direction:column!important; align-items:center!important; gap:7px!important;
  z-index:10080!important; pointer-events:none!important;
}
html body #v1410-global-notices .v1410-global-notice{
  position:relative!important; left:auto!important; right:auto!important; width:min(92vw,430px)!important; max-width:430px!important;
  margin:0 auto!important; transform:none!important; box-sizing:border-box!important; pointer-events:auto!important;
}
html body #v1410-global-notices .v1410-global-notice.leaving{transform:translateY(-8px)!important;opacity:0!important;}
html body #toast-root{left:0!important;right:0!important;width:100vw!important;max-width:none!important;margin:0!important;padding:0 8px!important;transform:none!important;justify-items:center!important;box-sizing:border-box!important;}
html body #toast-root>.toast{width:min(92vw,430px)!important;max-width:430px!important;margin:0 auto!important;transform:none!important;}

/* Healer faith choice: compact mobile card without the oversized legacy geometry. */
body.v127-ui .v1350-healer-echo-overlay{padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))!important;box-sizing:border-box!important;}
body.v127-ui .v1350-healer-echo-card{width:min(82vw,340px)!important;max-width:340px!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)!important;padding:9px 8px 8px!important;border-radius:16px!important;overflow:hidden!important;box-sizing:border-box!important;}
body.v127-ui .v1350-healer-echo-mark{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0 auto 4px!important;font-size:17px!important;}
body.v127-ui .v1350-healer-echo-card>small{font:800 7px/1.1 system-ui,sans-serif!important;letter-spacing:.11em!important;}
body.v127-ui .v1350-healer-echo-card h2{margin:4px 0 3px!important;font:800 15px/1.05 Georgia,serif!important;}
body.v127-ui .v1350-healer-echo-card>p{max-width:290px!important;margin:0 auto 6px!important;font:500 8px/1.2 system-ui,sans-serif!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
body.v127-ui .v1350-healer-echo-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:0!important;}
body.v127-ui .v1350-healer-echo-actions button{height:90px!important;min-height:90px!important;max-height:90px!important;padding:6px!important;border-radius:13px!important;overflow:hidden!important;box-sizing:border-box!important;}
body.v127-ui .v1350-healer-echo-actions button i{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0 auto 3px!important;}
body.v127-ui .v1350-healer-echo-actions button strong{font-size:13px!important;line-height:1!important;}
body.v127-ui .v1350-healer-echo-actions button span{font-size:7px!important;line-height:1.15!important;margin-top:2px!important;}
body.v127-ui .v1350-healer-echo-actions button em{font-size:6px!important;line-height:1!important;margin-top:3px!important;}
body.v127-ui .v1350-healer-echo-card>em{min-height:10px!important;margin-top:5px!important;font:700 7px/1.1 system-ui,sans-serif!important;}

/* Effect tile: only the image is clipped. Stack and remaining turns live in separate corners. */
body.v111-battle-active .v106-effect-asset.v113-effect-asset{position:relative!important;overflow:visible!important;isolation:isolate!important;}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-icon{position:relative!important;overflow:hidden!important;border-radius:inherit!important;}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-icon :where(img,.v114-status-image){width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;margin:6%!important;object-fit:contain!important;object-position:center!important;transform:none!important;}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v1350-effect-stacks{position:absolute!important;top:-4px!important;left:-4px!important;right:auto!important;bottom:auto!important;z-index:4!important;min-width:17px!important;height:17px!important;padding:0 4px!important;display:grid!important;place-items:center!important;border-radius:999px!important;font:900 9px/1 system-ui!important;}
body.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-turns{position:absolute!important;right:-4px!important;bottom:-4px!important;left:auto!important;top:auto!important;z-index:4!important;min-width:17px!important;height:17px!important;padding:0 4px!important;display:grid!important;place-items:center!important;border-radius:999px!important;font:900 9px/1 system-ui!important;}

/* Attribute modal: do not present internal formulas as a pseudo-stat dashboard. */
.v1340-attribute-detail .v1340-effect-chip,.v1340-attribute-modal .v1340-effect-chip{font-size:10px!important;}
.v1340-attribute-detail [data-attribute-next] b,.v1340-attribute-modal [data-attribute-next] b{font-size:11px!important;}


/* v1.144.26 battle timer / potion stability */
body.v111-battle-active .v81-potion-card.request-pending{opacity:.62!important;pointer-events:none!important;}

/* Enemy effects: use the same semantic effect tiles as players; no extra wrapper or labels. */
html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-effects{
  height:24px!important;min-height:24px!important;max-height:24px!important;
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;
  gap:2px!important;padding:2px 3px!important;overflow-x:auto!important;overflow-y:visible!important;
}
html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-effects>.v106-effect-asset.v113-effect-asset{
  margin:0!important;filter:none!important;animation:none!important;transition:none!important;
}
html body.v127-ui.v111-battle-active .v106-effect-asset,
html body.v127-ui.v111-battle-active .v113-effect-icon,
html body.v127-ui.v111-battle-active .v114-status-image{filter:none!important;animation:none!important;transition:none!important;}

/* v1.145.0 Android-first geometry authority */
html,body{max-width:100%;min-height:100%;overflow-x:hidden;overscroll-behavior:none}
body.v127-ui #app{min-width:0;width:100%;max-width:100vw;padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right));box-sizing:border-box}
body.v127-ui :where(.app-shell,.screen,.panel,.card,.modal,.drawer,.v101-battle-shell,.v78-location-chat){min-width:0;box-sizing:border-box}
body.v127-ui :where(button,input,select,textarea){font:inherit;touch-action:manipulation}
body.v127-ui :where(img,video,canvas){max-width:100%}
body.v127-ui .v122-item-mini-card{min-width:0;max-width:100%;overflow:hidden}
body.v127-ui .v122-item-mini-card :where(.v122-item-name,.v122-item-stats,.v122-item-meta){min-width:0;overflow-wrap:anywhere}
body.v127-ui.v111-battle-active{overflow:hidden}
body.v127-ui.v111-battle-active :where(.v101-battle-shell,.v101-battle-main,.v101-battle-units,.v101-battle-actions){min-width:0;max-width:100vw}
@media (max-width:480px){
  body.v127-ui{font-size:14px}
  body.v127-ui :where(button,[role="button"],input,select){min-height:40px}
}
@media (max-width:360px){
  body.v127-ui{font-size:13px}
}

/* ---- css/v1464-mobile-authority.css ---- */
/* Aldos RPG v1.146.4 — Android UI authority with v1.135 chat recovery. */
html,body{max-width:100%;min-height:100%;overflow-x:hidden;overscroll-behavior:none}
body.v127-ui #app{min-width:0;width:100%;max-width:100vw;padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right));box-sizing:border-box}
body.v127-ui :where(.app-shell,.screen,.panel,.card,.modal,.drawer,.v101-battle-shell){min-width:0;box-sizing:border-box}
body.v127-ui :where(button,input,select,textarea){font:inherit;touch-action:manipulation}
body.v127-ui :where(img,video,canvas){max-width:100%}

/* Status assets: compact spacing, semantic family frames/glow and equal counters. */
html body.v111-battle-active .v101-unit-effects{height:38px!important;min-height:38px!important;max-height:38px!important;display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:2px!important;padding:2px!important;overflow-x:auto!important;overflow-y:visible!important}
html body.v111-battle-active .v106-effect-asset.family-red{background:rgba(61,24,25,.9)!important;box-shadow:0 0 0 1px rgba(222,89,82,.68),0 0 8px rgba(210,65,59,.4)!important}
html body.v111-battle-active .v106-effect-asset.family-green{background:rgba(12,52,39,.9)!important;box-shadow:0 0 0 1px rgba(74,190,125,.65),0 0 8px rgba(52,179,111,.38)!important}
html body.v111-battle-active .v106-effect-asset.family-purple{background:rgba(47,28,64,.92)!important;box-shadow:0 0 0 1px rgba(158,96,218,.68),0 0 8px rgba(132,70,200,.42)!important}
html body.v111-battle-active .v106-effect-asset.family-blue{background:rgba(17,43,66,.92)!important;box-shadow:0 0 0 1px rgba(77,161,222,.68),0 0 8px rgba(57,139,207,.4)!important}
html body.v111-battle-active .v106-effect-asset.family-gold{background:rgba(57,46,20,.9)!important;box-shadow:0 0 0 1px rgba(213,174,77,.64),0 0 8px rgba(196,148,49,.34)!important}
html body.v111-battle-active .v106-effect-asset.family-orange{background:rgba(66,37,18,.92)!important;box-shadow:0 0 0 1px rgba(225,133,59,.68),0 0 8px rgba(211,105,38,.38)!important}
html body.v111-battle-active .v106-effect-asset.family-gray{background:rgba(28,39,42,.92)!important;box-shadow:0 0 0 1px rgba(132,155,158,.52)!important}
html body.v111-battle-active .v106-effect-asset .v113-effect-icon{width:100%!important;height:100%!important;display:grid!important;place-items:center!important;overflow:hidden!important}.v106-effect-asset .v113-effect-icon :where(img,svg,.v114-status-image){width:100%!important;height:100%!important;margin:0!important;padding:1px!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important;box-sizing:border-box!important}
html body.v111-battle-active .v106-effect-asset :where(.v113-effect-turns,.v1350-effect-stacks){position:absolute!important;display:grid!important;place-items:center!important;width:14px!important;min-width:14px!important;max-width:14px!important;height:14px!important;min-height:14px!important;max-height:14px!important;margin:0!important;padding:0!important;border:1px solid #051417!important;border-radius:999px!important;color:#fff!important;font:900 8px/1 system-ui!important;box-sizing:border-box!important;z-index:2!important}.v106-effect-asset .v1350-effect-stacks{top:-3px!important;right:-3px!important;width:12px!important;min-width:12px!important;max-width:12px!important;height:12px!important;min-height:12px!important;max-height:12px!important;font-size:7px!important;background:#b34b42!important}.v106-effect-asset .v113-effect-turns{right:-4px!important;bottom:-4px!important;background:#347b8d!important}
html body.v111-battle-active .v102-log-icon{flex:0 0 30px!important;width:30px!important;height:30px!important;margin:0 6px 0 0!important;padding:2px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:7px!important;background:rgba(6,24,27,.8)!important}.v102-log-icon :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important}
.v1465-status-details{display:grid!important;gap:5px!important;margin:9px 0!important}.v1465-status-details>div{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:7px!important;padding:6px 7px!important;border-radius:8px!important;background:rgba(0,0,0,.18)!important}.v1465-status-details dt{color:#91a39e!important;font-size:8px!important}.v1465-status-details dd{margin:0!important;color:#e5ece9!important;font-size:9px!important;line-height:1.25!important}.status-help-card.family-red .v34-status-pill{color:#ff9b91!important}.status-help-card.family-green .v34-status-pill{color:#8ee0a3!important}.status-help-card.family-purple .v34-status-pill{color:#ca9df1!important}.status-help-card.family-blue .v34-status-pill{color:#91d2f2!important}.status-help-card.family-gold .v34-status-pill{color:#edcf79!important}.status-help-card.family-orange .v34-status-pill{color:#f3ae6b!important}
.v122-item-value.holy{color:#f1d780!important;background:rgba(111,83,24,.16)!important}.v122-item-value.holy :where(img,svg){filter:drop-shadow(0 0 4px rgba(229,190,76,.45))!important}

/* Item cards keep their old geometry; only readability and icon alignment change. */
body.v127-ui .v122-item-facts>div{min-width:0!important;display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;text-align:left!important}.v122-item-facts .v127-fact-icon{width:32px!important;height:32px!important;min-width:32px!important;padding:4px!important;border-radius:9px!important}.v122-item-facts .v127-fact-icon :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important}.v122-item-facts>div>span:last-child{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important}.v122-item-facts small{white-space:nowrap!important;writing-mode:horizontal-tb!important;word-break:normal!important;font-size:8.5px!important}.v122-item-facts b{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important}
body.v127-ui .v124-item-card .v122-item-value{min-height:26px!important;padding:3px 7px!important;gap:5px!important}.v124-item-card .v122-item-value :where(img,svg,.v83-ui-icon){width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;object-fit:contain!important}.v124-item-card .v122-item-value b{font-size:9px!important}.v124-item-actions>.v126-card-action.icon-only:not(:only-child){display:grid!important;place-items:center!important;padding:5px!important}.v124-item-actions>.v126-card-action.icon-only:not(:only-child) :where(img,svg){width:24px!important;height:24px!important;min-width:24px!important;object-fit:contain!important}.v124-item-actions>.v126-card-action.icon-only:not(:only-child) span{display:none!important}

/* Compact Kara/Mercy choice restored to the accepted combat scale. */
body.v127-ui .v1350-healer-echo-overlay{position:fixed!important;inset:0!important;display:grid!important;place-items:center!important;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;overflow:auto!important;box-sizing:border-box!important}
body.v127-ui .v1350-healer-echo-card{width:min(82vw,340px)!important;max-width:340px!important;height:auto!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)!important;padding:9px 8px 8px!important;border-radius:15px!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important}.v1350-healer-echo-mark{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0 auto 3px!important;font-size:16px!important}.v1350-healer-echo-card>small{font-size:7px!important}.v1350-healer-echo-card h2{margin:3px 0!important;font-size:15px!important;line-height:1.05!important}.v1350-healer-echo-card>p{max-width:290px!important;margin:0 auto 6px!important;font-size:8px!important;line-height:1.2!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}.v1350-healer-echo-actions.v14416-faith-choice{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0!important;padding:0!important}.v1350-healer-echo-actions button{width:100%!important;height:90px!important;min-height:90px!important;max-height:90px!important;padding:5px 4px!important;grid-template-rows:34px auto auto auto!important;overflow:hidden!important;box-sizing:border-box!important}.v1350-healer-echo-actions button i,.v1350-healer-echo-actions button i img{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0 auto!important;object-fit:contain!important}.v1350-healer-echo-actions button strong{font-size:11px!important}.v1350-healer-echo-actions button span{max-width:130px!important;margin:1px auto 0!important;font-size:6.5px!important;line-height:1.15!important;white-space:normal!important;overflow:hidden!important}.v1350-healer-echo-actions button em{margin-top:2px!important;font-size:6px!important;line-height:1!important}.v1350-healer-echo-card>em{min-height:10px!important;margin-top:4px!important;font-size:7px!important;line-height:1.15!important}

/* Generated profile/menu art and top notifications. */
body.v127-ui .hamburger :where(img,svg){width:30px!important;height:30px!important;margin:0!important;padding:1px!important;object-fit:contain!important;transform:none!important;filter:none!important}.hamburger:before,.hamburger:after{display:none!important;content:none!important}
html body #toast-root{position:fixed!important;top:calc(env(safe-area-inset-top) + 8px)!important;left:3vw!important;right:0!important;width:97vw!important;max-width:none!important;margin:0!important;padding:0 8px!important;transform:none!important;display:grid!important;justify-items:center!important;gap:6px!important;z-index:10090!important;box-sizing:border-box!important;pointer-events:none!important}html body #toast-root>.toast{position:relative!important;width:min(94vw,470px)!important;max-width:470px!important;margin:0 auto!important;padding:10px 12px!important;display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;text-align:left!important;box-sizing:border-box!important;pointer-events:auto!important}.v128-toast-icon{width:32px!important;height:32px!important;padding:3px!important}.v128-toast-icon :where(img,svg){width:100%!important;height:100%!important;object-fit:contain!important}#v1410-global-notices.v1410-global-notices{left:3vw!important;right:0!important;width:97vw!important;max-width:none!important;padding:0 8px!important;align-items:center!important}#v1410-global-notices .v1410-global-notice{width:min(94vw,470px)!important;max-width:470px!important;margin:0 auto!important}
.v1460-skill-lore{margin:0;padding:7px 9px;border:1px solid rgba(191,158,82,.22);border-radius:10px;background:rgba(0,0,0,.16)}.v1460-skill-lore summary{cursor:pointer;color:#dfc477;font-size:11px;font-weight:800}.v1460-skill-lore p{margin:6px 0 0;font-size:11px;line-height:1.35;color:#b8c5c0}.v102-skill-description{margin:7px 0!important;font-size:12px!important;line-height:1.3!important;display:block!important;overflow:visible!important}

@media(max-width:380px){.v122-item-facts{grid-template-columns:1fr!important}.v1350-healer-echo-card{width:90vw!important}}

/* v1.146.9 — final mobile chat geometry authority. This is the last CSS source on purpose. */
html body.v127-ui .v78-location-chat.v1469-chat-drawer{
  width:min(92vw,390px)!important;max-width:min(92vw,390px)!important;min-width:0!important;
  height:100dvh!important;max-height:100dvh!important;
  padding:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom))!important;
  display:grid!important;grid-template-rows:68px 48px minmax(0,1fr) 58px!important;gap:6px!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-top{
  width:100%!important;height:68px!important;min-height:68px!important;margin:0!important;padding:8px 9px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;gap:8px!important;align-items:center!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
html body.v127-ui .v1469-chat-drawer .v1469-chat-heading{
  min-width:0!important;display:grid!important;grid-template-columns:1fr!important;gap:2px!important;align-content:center!important;
  margin:0!important;padding:0!important;text-align:left!important;
}
html body.v127-ui .v1469-chat-drawer .v1469-chat-heading small{display:block!important;margin:0!important;font-size:8px!important;line-height:1!important;letter-spacing:.08em!important;white-space:nowrap!important;color:#829a94!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-heading b{display:block!important;margin:0!important;font-size:18px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#f2eee6!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-heading em{display:block!important;margin:0!important;font:500 8px/1.1 system-ui,sans-serif!important;font-style:normal!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#78908a!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-close{position:static!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:8px!important;display:grid!important;place-items:center!important;align-self:center!important;justify-self:end!important;box-sizing:border-box!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-close :where(img,svg,.v83-ui-icon){width:20px!important;height:20px!important;min-width:20px!important;object-fit:contain!important;}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-tabs{
  width:100%!important;height:48px!important;min-height:48px!important;margin:0!important;padding:4px!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;box-sizing:border-box!important;overflow:hidden!important;
}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-tabs>button{
  width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:0 10px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:12px!important;line-height:1!important;white-space:nowrap!important;box-sizing:border-box!important;
}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-scroll{min-width:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:2px 1px 8px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;box-sizing:border-box!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-message{
  width:100%!important;min-width:0!important;min-height:68px!important;height:auto!important;margin:0 0 5px!important;padding:7px 8px!important;
  display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;grid-template-rows:auto!important;gap:8px!important;align-items:start!important;
  box-sizing:border-box!important;overflow:hidden!important;text-align:left!important;
}
html body.v127-ui .v1469-chat-drawer .v1469-chat-message>.v1469-chat-avatar{
  position:relative!important;width:50px!important;min-width:50px!important;max-width:50px!important;height:56px!important;min-height:56px!important;max-height:56px!important;
  margin:0!important;padding:2px!important;align-self:start!important;justify-self:start!important;display:grid!important;place-items:center!important;overflow:hidden!important;box-sizing:border-box!important;
}
html body.v127-ui .v1469-chat-drawer .v1469-chat-message>.v1469-chat-avatar :where(img,svg,.v131-chat-face,.class-asset-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:none!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-content{
  min-width:0!important;width:100%!important;min-height:56px!important;margin:0!important;padding:0!important;
  display:grid!important;grid-template-rows:auto auto!important;gap:3px!important;align-content:start!important;box-sizing:border-box!important;text-align:left!important;
}
html body.v127-ui .v1469-chat-drawer .v1469-chat-message-head{
  min-width:0!important;width:100%!important;margin:0!important;padding:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;align-items:start!important;box-sizing:border-box!important;
}
html body.v127-ui .v1469-chat-drawer .v1469-chat-meta{
  min-width:0!important;width:auto!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:1fr!important;gap:2px!important;
  justify-items:start!important;align-items:start!important;text-align:left!important;align-content:start!important;
}
html body.v127-ui .v1469-chat-drawer .v1469-chat-meta .v131-chat-name{width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1.05!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-meta .v131-chat-submeta{width:auto!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;font-size:7.5px!important;line-height:1!important;text-align:left!important;white-space:nowrap!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-tail{position:static!important;width:auto!important;max-width:72px!important;height:auto!important;min-height:24px!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:auto 24px!important;gap:3px!important;align-items:start!important;justify-self:end!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-tail time{margin-top:2px!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-tail button{width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;margin:0!important;padding:4px!important;box-sizing:border-box!important;}
html body.v127-ui .v1469-chat-drawer .v1469-chat-content>.v123-chat-text{min-width:0!important;width:100%!important;margin:0!important;padding:0!important;font-size:9.5px!important;line-height:1.3!important;text-align:left!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-bottom{width:100%!important;height:58px!important;min-height:58px!important;max-height:58px!important;margin:0!important;padding:4px 0!important;align-self:end!important;box-sizing:border-box!important;overflow:hidden!important;}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-bottom .v123-chat-form{width:100%!important;height:50px!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 50px!important;gap:6px!important;box-sizing:border-box!important;}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-bottom .v123-chat-form input{width:100%!important;min-width:0!important;height:50px!important;margin:0!important;padding:0 11px!important;font-size:10px!important;box-sizing:border-box!important;}
html body.v127-ui .v1469-chat-drawer>.v1469-chat-bottom .v125-chat-send{width:50px!important;min-width:50px!important;max-width:50px!important;height:50px!important;margin:0!important;padding:10px!important;box-sizing:border-box!important;}
@media(max-width:380px){html body.v127-ui .v78-location-chat.v1469-chat-drawer{width:92vw!important;max-width:92vw!important;padding-left:6px!important;padding-right:6px!important;}html body.v127-ui .v1469-chat-drawer .v1469-chat-message{grid-template-columns:46px minmax(0,1fr)!important;gap:7px!important;padding-left:6px!important;padding-right:6px!important;}html body.v127-ui .v1469-chat-drawer .v1469-chat-message>.v1469-chat-avatar{width:46px!important;min-width:46px!important;max-width:46px!important;height:52px!important;min-height:52px!important;max-height:52px!important;}}


/* v1.146.10 — Android chat final placement polish. No new art/assets. */
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer{
  padding-bottom:4px!important;
}
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer>.v125-chat-bottom.v1469-chat-bottom{
  margin:0!important;padding:0!important;display:flex!important;align-items:flex-end!important;justify-content:stretch!important;
}
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer>.v125-chat-bottom.v1469-chat-bottom>.v123-chat-form{
  width:100%!important;margin:0!important;align-self:flex-end!important;
}
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer .v1469-chat-message .v123-chat-content.v1469-chat-content{
  position:relative!important;padding:0 0 11px!important;
}
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer .v1469-chat-message .v123-chat-head.v1469-chat-message-head{
  position:static!important;grid-template-columns:minmax(0,1fr)!important;padding-right:30px!important;
}
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer .v1469-chat-message .v123-chat-tail.v1469-chat-tail{
  position:absolute!important;left:auto!important;right:0!important;top:0!important;bottom:0!important;
  width:92px!important;max-width:92px!important;height:auto!important;min-height:56px!important;margin:0!important;padding:0!important;
  display:block!important;pointer-events:none!important;z-index:4!important;
}
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer .v1469-chat-message .v123-chat-tail.v1469-chat-tail time{
  position:absolute!important;left:auto!important;right:12px!important;top:auto!important;bottom:0!important;
  margin:0!important;padding:0!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important;pointer-events:none!important;
}
html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer .v1469-chat-message .v123-chat-tail.v1469-chat-tail .v123-chat-delete{
  position:absolute!important;left:auto!important;right:0!important;top:0!important;bottom:auto!important;
  width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;
  margin:0!important;padding:5px!important;pointer-events:auto!important;z-index:5!important;
}
@media(max-width:380px){
  html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer{padding-bottom:3px!important;}
  html body.v127-ui .v78-location-chat.v125-chat-drawer.v1469-chat-drawer .v1469-chat-message .v123-chat-tail.v1469-chat-tail time{right:10px!important;}
}
/* v1.146.13 — integrated item stat visibility; replaces standalone v14612 layer. */
/* v1.146.12 — final mobile authority for the compact item quick-stat pill.
   Assets already exist; this only restores their readable size/contrast. */
html body.v127-ui .v124-item-card .v122-item-value{
  min-height:31px!important;
  height:31px!important;
  padding:3px 9px!important;
  gap:7px!important;
  display:inline-grid!important;
  grid-template-columns:24px max-content!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  line-height:1!important;
}
html body.v127-ui .v124-item-card .v122-item-value :where(img,svg,.v83-ui-icon){
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  min-height:24px!important;
  max-height:24px!important;
  flex:0 0 24px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.65))!important;
}
html body.v127-ui .v124-item-card .v122-item-value b{
  display:block!important;
  min-width:0!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
html body.v127-ui .v124-item-card .v122-item-value.damage :where(img,svg,.v83-ui-icon),
html body.v127-ui .v124-item-card .v122-item-value.defense :where(img,svg,.v83-ui-icon),
html body.v127-ui .v124-item-card .v122-item-value.holy :where(img,svg,.v83-ui-icon){
  filter:drop-shadow(0 0 4px rgba(231,195,96,.45)) drop-shadow(0 1px 2px rgba(0,0,0,.7))!important;
}
html body.v127-ui .v124-item-card .v122-item-value.heal :where(img,svg,.v83-ui-icon){
  filter:drop-shadow(0 0 4px rgba(255,105,120,.42)) drop-shadow(0 1px 2px rgba(0,0,0,.7))!important;
}
html body.v127-ui .v124-item-card .v122-item-value.mana :where(img,svg,.v83-ui-icon){
  filter:drop-shadow(0 0 4px rgba(95,210,240,.42)) drop-shadow(0 1px 2px rgba(0,0,0,.7))!important;
}

/* Inventory material filter optical correction — integrated in the existing mobile authority. */
html body.v127-ui .v119-inventory-tabs .v119-material-filter :where(img,svg,.v119-material-filter-icon){width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;object-fit:contain!important;transform:translateY(-5px) scale(1.14)!important;transform-origin:center!important;}

/* ---- css/v14623-forge.css ---- */
:root {
  --forge-orange:#ff8a24;
  --forge-gold:#ffc55d;
  --forge-lime:#c7ff5b;
  --forge-red:#ff5548;
  --forge-ink:#070b0d;
}

.v14623-forge-arrival,
.v14623-forge-arrival *,
.v14623-forge-modal,
.v14623-forge-modal *,
.v14623-forge-animation * { box-sizing:border-box; }

.v14623-forge-arrival {
  position:relative!important;
  display:block!important;
  width:calc(100% - 16px)!important;
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
  max-width:720px!important;
  margin:10px auto!important;
  border:1px solid #ad6339!important;
  border-radius:17px!important;
  overflow:hidden!important;
  isolation:isolate!important;
  color:#fff4e6!important;
  box-shadow:0 14px 34px #000b,inset 0 0 0 1px #ffbd6a24!important;
}
.v14623-forge-location-art { position:absolute!important;z-index:-3!important;inset:0!important;background:url('../assets/v14622/gorgan-forge-location.webp?ah=7d23fe628f19') center 55%/cover no-repeat!important; }
.v14623-forge-arrival::after { content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,#020606f2 0%,#061010dc 54%,#07101147 100%),linear-gradient(0deg,#020505d9,transparent 68%); }
.v14623-forge-arrival::before { content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 72% 48%,#ff7a173f,transparent 31%);animation:v14623-fire-pulse 2.2s ease-in-out infinite; }
.v14623-forge-npc { position:absolute!important;right:1px!important;bottom:-8px!important;width:39%!important;height:188px!important;margin:0!important;filter:drop-shadow(0 8px 9px #000)!important;pointer-events:none; }
.v14623-forge-npc img { display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;object-position:right bottom!important; }
.v14623-forge-intro { position:absolute!important;z-index:2!important;left:15px!important;top:13px!important;width:62%!important;max-width:370px!important;padding:0!important;margin:0!important;text-align:left!important;text-shadow:0 2px 5px #000!important; }
.v14623-forge-intro small,.v14623-forge-modal small { color:#f0a454;font-size:9px;font-weight:900;letter-spacing:.09em; }
.v14623-forge-intro h2 { margin:3px 0 0!important;font-size:28px!important;line-height:1!important; }
.v14623-forge-intro b { display:block;margin-top:3px;color:var(--forge-lime);font-size:12px; }
.v14623-forge-intro p { display:-webkit-box;margin:6px 0 8px!important;max-width:300px;overflow:hidden;color:#e4d8c9!important;font-size:10px!important;line-height:1.32!important;-webkit-line-clamp:3;-webkit-box-orient:vertical; }
.v14623-forge-intro button { display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:auto!important;min-width:132px!important;min-height:34px!important;padding:4px 9px!important;border:1px solid #ffd07c!important;border-radius:10px!important;background:linear-gradient(180deg,#d87c2d,#783115)!important;box-shadow:0 5px 14px #0008,inset 0 1px #fff4!important;color:#fff!important;font-size:10px!important;font-weight:900!important; }
.v14623-forge-intro button img { width:25px!important;height:25px!important;object-fit:contain!important; }

.modal.v14623-forge-shell { width:min(640px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;height:min(92dvh,800px)!important;max-height:92dvh!important;margin:0 auto!important;padding:7px!important;overflow:hidden!important;border:1px solid #b26435!important;border-radius:18px!important;background:#080c0f!important;box-shadow:0 22px 60px #000,inset 0 0 44px #ff762111!important; }
.v14623-forge-shell>h1 { margin:2px 42px 5px 8px!important;font-size:17px!important;line-height:36px!important; }
.v14623-forge-shell>.modal-close { top:6px!important;right:6px!important;width:38px!important;height:38px!important;padding:0!important; }
.v14623-forge-modal { width:100%!important;max-width:100%!important;height:calc(92dvh - 55px)!important;max-height:745px!important;margin:0!important;padding:0 1px max(16px,env(safe-area-inset-bottom))!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;color:#f7eee4;scrollbar-color:#a95b2b #0a0f11; }
.v14623-forge-header { position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) 56px;align-items:center;gap:7px;height:108px;min-height:108px;padding:7px 8px;border:1px solid #8c4b2c;border-radius:13px;overflow:hidden;background:#101617; }
.v14623-header-bg { position:absolute;inset:0;background:linear-gradient(90deg,#050909d9,#0a0f10e6),url('../assets/v14622/gorgan-forge-location.webp?ah=7d23fe628f19') center 49%/cover;opacity:.9; }
.v14623-forge-portrait,.v14623-forge-title,.v14623-stone-wallet { position:relative; }
.v14623-forge-portrait { height:100px;align-self:end;filter:drop-shadow(0 6px 5px #000); }
.v14623-forge-portrait img { width:100%;height:100%;object-fit:contain;object-position:center bottom; }
.v14623-forge-title { min-width:0; }
.v14623-forge-title h2 { margin:1px 0 3px;font-size:21px;line-height:1; }
.v14623-forge-title p { display:-webkit-box;margin:0;color:#ddcfc1;font-size:10px;line-height:1.3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.v14623-stone-wallet { display:grid;justify-items:center;align-content:center;gap:1px;width:52px;height:62px;border:1px solid #e07831;border-radius:11px;background:#07100ddd;box-shadow:inset 0 0 15px #ff7a1822; }
.v14623-stone-wallet img { width:34px;height:34px;object-fit:contain; }
.v14623-stone-wallet b { font-size:14px;line-height:14px; }

.v14623-forge-modes { position:sticky;top:0;z-index:8;display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:7px 0;padding:4px;border:1px solid #4a3930;border-radius:12px;background:#080d0ff2;backdrop-filter:blur(7px); }
.v14623-forge-modes button { display:flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:5px;border:1px solid transparent;border-radius:9px;background:#141a1d;color:#bdb0a5;font-size:12px;font-weight:900; }
.v14623-forge-modes button img { width:26px;height:26px;object-fit:contain; }
.v14623-forge-modes button.active { border-color:#df823d;background:linear-gradient(180deg,#773a1b,#2a170f);color:#fff3e4;box-shadow:inset 0 0 14px #ff751d28; }
.v14623-forge-stages { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin:0 0 7px; }
.v14623-stage { display:grid;grid-template-rows:27px auto auto;justify-items:center;min-width:0;padding:3px 1px;border:1px solid #44362d;border-radius:8px;background:linear-gradient(180deg,#171d20,#0c1113); }
.v14623-stage img { width:27px;height:27px;object-fit:contain; }
.v14623-stage b { max-width:100%;overflow:hidden;color:#e4d8cc;font-size:7px;line-height:10px;text-overflow:ellipsis;white-space:nowrap; }
.v14623-stage small { color:#c7a276;font-size:8px;line-height:9px; }
.v14623-forge-filters { display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 0 7px; }
.v14623-forge-filters button { min-height:32px;padding:4px;border:1px solid #34383a;border-radius:8px;background:#151b1d;color:#bfb2a6;font-size:10px;font-weight:800; }
.v14623-forge-filters button.active { border-color:#d87b39;background:#352017;color:#fff4e5; }

.v14623-forge-items { display:grid;gap:6px;width:100%;min-width:0; }
.v14623-forge-item { position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;width:100%;min-width:0;min-height:112px;padding:7px;border:1px solid #4a3b32;border-radius:11px;overflow:hidden;background:linear-gradient(135deg,#151b1e,#17110d);box-shadow:0 5px 13px #0004; }
.v14623-forge-item::before { content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#a4a4a4; }
.v14623-forge-item.rarity-uncommon::before{background:#54c781}.v14623-forge-item.rarity-rare::before{background:#4aa8ff}.v14623-forge-item.rarity-epic::before{background:#ad60ff}.v14623-forge-item.rarity-legendary::before,.v14623-forge-item.rarity-mythic::before{background:#ff9d33}
.v14623-forge-item.disabled { opacity:.66; }
.v14623-forge-item-art { position:relative;display:grid;place-items:center;width:72px;min-height:96px;border:1px solid #41372f;border-radius:9px;background:radial-gradient(circle at 50% 42%,#ff812b26,#080d10 70%); }
.v14623-forge-item-art>img { width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 5px 5px #000); }
.v14623-forge-rank { position:absolute;z-index:2;left:3px;top:3px;display:grid;place-items:center;width:25px;height:25px;border:1px solid #db8a44;border-radius:7px;background:linear-gradient(145deg,#15100c,#07100e);box-shadow:0 3px 8px #000,inset 0 0 8px #ff8a252b; }
.v14623-forge-rank img { width:21px;height:21px;object-fit:contain; }
.v14623-forge-item-copy { min-width:0; }
.v14623-forge-item-copy>small { display:block;overflow:hidden;color:#b9a99b;font-size:8px;line-height:11px;text-overflow:ellipsis;white-space:nowrap; }
.v14623-forge-item-copy h3 { display:-webkit-box;margin:1px 0 5px;overflow:hidden;font-size:13px;line-height:1.13;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
.v14623-forge-summary { display:flex;align-items:stretch;gap:3px;margin-bottom:5px;min-width:0; }
.v14623-forge-summary>span { display:flex;align-items:center;gap:2px;min-width:0;padding:2px 4px;border:1px solid #4b413a;border-radius:7px;background:#090e11;font-size:9px; }
.v14623-forge-summary>span:first-child { flex:1; }
.v14623-forge-summary img { width:20px;height:20px;flex:0 0 20px;object-fit:contain; }
.v14623-forge-summary b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.v14623-forge-summary strong { margin-left:auto;color:#ffc15c; }
.v14625-attribute-choice { min-width:0;margin:0 0 6px;padding:5px 6px 6px;border:1px solid #725039;border-radius:10px;background:linear-gradient(135deg,#17120e,#091113);box-shadow:inset 0 0 18px #ff84230d; }
.v14625-attribute-choice legend { padding:0 5px;color:#edb069;font-size:8px;font-weight:900;letter-spacing:.035em; }
.v14625-attribute-choice>div { display:flex;gap:4px;overflow-x:auto;scrollbar-width:none; }
.v14625-attribute-choice>div::-webkit-scrollbar { display:none; }
.v14625-attribute-choice button { position:relative;display:flex;flex:1 0 76px;align-items:center;justify-content:flex-start;gap:4px;min-height:34px;padding:3px 5px;border:1px solid #343d3f;border-radius:8px;background:#0a1012;color:#baa99b;font-size:8px;font-weight:900; }
.v14625-attribute-choice button img { width:26px;height:26px;object-fit:contain; }
.v14625-attribute-choice button i { position:absolute;right:4px;top:4px;width:7px;height:7px;border:1px solid #786454;border-radius:50%;background:#111; }
.v14625-attribute-choice button[aria-checked="true"] { border-color:#ffad4e;background:linear-gradient(180deg,#422414,#15100c);color:#fff4e6;box-shadow:0 0 12px #ff861c25,inset 0 0 12px #ff9c2922; }
.v14625-attribute-choice button[aria-checked="true"] i { border-color:#ffe0a2;background:#ff9c2e;box-shadow:0 0 6px #ff8c20; }
.v14625-attribute-choice>small { display:block;margin-top:4px;color:#9f9186;font-size:7px;line-height:1.25;letter-spacing:0; }
.v14623-forge-button,.v14623-salvage-button { display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;min-height:34px!important;padding:4px 7px!important;border-radius:8px!important;font-size:10px!important;font-weight:900!important; }
.v14623-forge-button { border:1px solid #ffd07c!important;background:linear-gradient(180deg,#ed8c32,#8e3415)!important; }
.v14623-salvage-button { border:1px solid #ff7566!important;background:linear-gradient(180deg,#a33e30,#541c19)!important; }
.v14623-forge-button img,.v14623-salvage-button img { width:24px;height:24px;object-fit:contain; }
.v14623-forge-button:disabled { filter:grayscale(.7);opacity:.65; }
.v14625-unlock-button { display:flex;align-items:center;gap:7px;width:100%;min-height:45px;margin-top:5px;padding:5px 8px;border:1px solid #be8244;border-radius:9px;background:linear-gradient(135deg,#2b1e13,#101619);color:#f4dcc1;text-align:left; }
.v14625-unlock-button>img { width:30px;height:30px;object-fit:contain; }
.v14625-unlock-button span,.v14625-unlock-button b,.v14625-unlock-button small { display:block; }
.v14625-unlock-button b { font-size:9px; }
.v14625-unlock-button small { margin-top:2px;color:#bfaa97;font-size:7px;letter-spacing:0; }
.v14623-forge-stop { display:flex;align-items:center;gap:7px;min-height:40px;margin:8px 0 0;padding:5px 7px;border:1px solid #4a3d37;border-radius:8px;background:linear-gradient(135deg,#171210,#0b1113);color:#c8b5a5;font-size:9px;line-height:1.3; }
.v14623-forge-stop img { flex:0 0 28px;width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 2px 4px #000); }
.v14623-forge-stop span { display:block;min-width:0; }
.v14623-salvage-yield { display:flex;align-items:center;gap:5px;min-height:34px;margin:2px 0 5px;padding:3px 7px;border:1px solid #684434;border-radius:8px;background:#0b1011; }
.v14623-salvage-yield span { color:#bba99a;font-size:9px; }
.v14623-salvage-yield img { margin-left:auto;width:28px;height:28px;object-fit:contain; }
.v14623-salvage-yield b { font-size:11px;color:#ffc870; }
.v14623-forge-empty,.v14623-forge-loading { display:grid;justify-items:center;align-content:center;gap:5px;min-height:180px;padding:18px;text-align:center;color:#d9cabc; }
.v14623-forge-empty img,.v14623-forge-loading img { width:82px;height:68px;object-fit:contain; }
.v14623-forge-empty span { max-width:280px;color:#aa9d92;font-size:10px;line-height:1.35; }

.modal.v14625-forge-confirm-shell { width:min(372px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;padding:10px!important;border:1px solid #a96336!important;border-radius:18px!important;background:linear-gradient(155deg,#121819,#080c0e)!important;box-shadow:0 25px 75px #000,inset 0 0 45px #ff7d1718!important; }
.v14625-forge-confirm-shell>h1 { margin:2px 42px 6px 6px!important;color:#f4dfca!important;font-size:15px!important;line-height:34px!important; }
.v14625-forge-confirm { display:grid;justify-items:center;gap:7px;padding:3px 3px 2px;text-align:center; }
.v14625-confirm-emblem { position:relative;display:grid;place-items:center;width:94px;height:94px;border:1px solid #b66b38;border-radius:26px;background:radial-gradient(circle,#ff8a2a25,#080d0f 70%);box-shadow:inset 0 0 26px #ff851422,0 9px 24px #0008;overflow:hidden; }
.v14625-confirm-emblem img { position:relative;z-index:2;width:84px;height:84px;object-fit:contain; }
.v14625-forge-confirm>small { color:#f0a251;font-size:9px;font-weight:900;letter-spacing:.08em; }
.v14625-forge-confirm h2 { margin:0;max-width:290px;color:#fff5e9;font-size:18px;line-height:1.15; }
.v14625-forge-confirm p { margin:0;max-width:310px;color:#c8b8aa;font-size:10px;line-height:1.45; }
.v14625-confirm-metrics { display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:100%;margin-top:2px; }
.v14625-forge-confirm.is-salvage .v14625-confirm-metrics { grid-template-columns:1fr; }
.v14625-confirm-metrics span { display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;align-items:center;min-width:0;padding:5px;border:1px solid #403a34;border-radius:10px;background:#090e10;text-align:left; }
.v14625-confirm-metrics img { grid-row:1/3;width:27px;height:27px;object-fit:contain; }
.v14625-confirm-metrics b { overflow:hidden;color:#ffe3b8;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }
.v14625-confirm-metrics small { color:#95877c;font-size:7px;letter-spacing:0; }
.v14625-confirm-actions { display:grid;grid-template-columns:1fr 1.15fr;gap:6px;width:100%;margin-top:2px; }
.v14625-confirm-actions button { min-height:42px;border-radius:11px!important;font-size:10px!important;font-weight:900!important; }

.v14623-forge-animation { position:fixed;z-index:10050;inset:0;display:grid;place-items:center;padding:12px;background:#030607ed;pointer-events:none; }
.v14623-forge-scene { position:relative;width:min(84vw,320px);height:min(52dvh,390px);min-height:330px;overflow:hidden;border:1px solid #9e5936;border-radius:17px;background:#090d0f;box-shadow:0 22px 70px #000; }
.v14623-scene-bg { position:absolute;inset:0;background:linear-gradient(0deg,#050708 0%,transparent 68%),linear-gradient(90deg,#05090ad6,#0b0c0c6b),url('../assets/v14622/gorgan-forge-location.webp?ah=7d23fe628f19') center/cover; }
.v14623-anvil { position:absolute;z-index:2;left:50%;bottom:64px;width:158px;transform:translateX(-50%);filter:drop-shadow(0 13px 7px #000); }
.v14623-animated-item { position:absolute;z-index:4;left:50%;bottom:125px;display:grid;place-items:center;width:88px;height:88px;transform:translateX(-50%);transition:.42s cubic-bezier(.2,.9,.2,1); }
.v14623-animated-item>img { width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 7px 7px #000); }
.v14623-hammer { position:absolute;z-index:7;right:5%;top:66px;width:112px;transform:rotate(-25deg);transform-origin:78% 78%;filter:drop-shadow(0 9px 6px #000);will-change:transform; }
.v14627-forge-impact { position:absolute;z-index:8;left:50%;bottom:116px;width:118px;opacity:0;transform:translateX(-50%) scale(.4);will-change:opacity,transform; }
.v14623-forge-scene>strong { position:absolute;z-index:12;left:0;right:0;bottom:40px;text-align:center;font-size:23px;letter-spacing:.08em;text-shadow:0 3px 8px #000; }
.v14623-forge-scene>small { position:absolute;z-index:12;left:10px;right:10px;bottom:20px;color:#e4c1a0;font-size:10px;text-align:center; }
.v14623-forge-animation.is-success .v14623-forge-scene { box-shadow:0 0 90px #aaff41; }
.v14623-forge-animation.is-success .v14623-animated-item { transform:translate(-50%,-20px) scale(1.12);filter:saturate(1.35); }
.v14623-forge-animation.is-success .v14623-hammer,.v14623-forge-animation.is-failure .v14623-hammer { transform:translate(52px,-40px) rotate(-55deg);transition:.35s; }
.v14623-forge-animation.is-success strong,.v14623-forge-animation.is-salvaged strong { color:#ceff73; }
.v14623-forge-animation.is-failure .v14623-forge-scene { box-shadow:0 0 90px #ff2418; }
.v14623-forge-animation.is-failure .v14623-animated-item { transform:translate(-50%,22px) scale(.7) rotate(8deg);filter:grayscale(.7) brightness(.6); }
.v14623-forge-animation.is-failure strong { color:#ff5a4d; }

.v14623-crucible { position:absolute;z-index:5;left:50%;bottom:54px;width:150px;transform:translateX(-50%);filter:drop-shadow(0 15px 8px #000); }
.v14623-salvage-scene .v14623-animated-item { bottom:151px; }
.v14627-salvage-melt { position:absolute;z-index:7;left:50%;bottom:82px;width:126px;opacity:0;transform:translateX(-50%) scale(.55);will-change:opacity,transform; }
.v14623-forge-animation.is-salvaged .v14623-animated-item { opacity:0;transform:translate(-50%,25px) scale(.35); }
.v14623-forge-animation.is-salvaged .v14627-salvage-melt { opacity:1;transform:translate(-50%,-8px) scale(1);transition:.5s cubic-bezier(.2,.9,.2,1); }
.v14623-forge-animation.is-salvaged .v14623-forge-scene { box-shadow:0 0 90px #ff922f; }

.v14623-forge-mini { position:absolute;left:3px;top:3px;z-index:4;display:grid;place-items:center;width:27px;height:27px;border:1px solid #dd8b43;border-radius:7px;background:linear-gradient(145deg,#17110d,#07100e);box-shadow:0 3px 8px #000,inset 0 0 8px #ff8a2528; }
.v14623-forge-mini img { width:23px;height:23px;object-fit:contain; }
.v14623-item-forge-detail { display:grid;grid-template-columns:54px 1fr;gap:9px;margin:8px 0;padding:9px;border:1px solid #a86033;border-radius:13px;background:linear-gradient(135deg,#24150e,#101719); }
.v14623-item-forge-detail>img { width:52px;height:52px;object-fit:contain; }
.v14623-item-forge-detail small { color:#e0a562!important;font-size:9px!important;font-weight:800!important;letter-spacing:.02em!important;text-transform:none!important; }
.v14623-item-forge-detail h3 { margin:2px 0 4px;font-size:14px; }
.v14623-item-forge-detail p { margin:0;color:#cbbcaf;font-size:11px;line-height:1.4; }

@keyframes v14623-fire-pulse { 50%{opacity:.62;filter:brightness(1.25)} }

@media(max-width:412px) {
  .v14623-forge-arrival{height:184px!important;min-height:184px!important;max-height:184px!important}
  .v14623-forge-npc{width:40%!important;height:181px!important}
  .v14623-forge-intro{left:12px!important;top:12px!important;width:64%!important}
  .v14623-forge-intro h2{font-size:24px!important}
  .v14623-forge-intro p{font-size:10px!important}
  .v14623-forge-header{grid-template-columns:64px minmax(0,1fr) 50px;height:100px;min-height:100px;padding:6px}
  .v14623-forge-portrait{height:92px}.v14623-forge-title h2{font-size:19px}
  .v14623-stone-wallet{width:47px;height:57px}.v14623-stone-wallet img{width:31px;height:31px}
  .v14623-forge-item{grid-template-columns:67px minmax(0,1fr);min-height:106px;padding:6px;gap:7px}
  .v14623-forge-item-art{width:67px;min-height:92px}.v14623-forge-item-art>img{width:59px;height:59px}
  .v14623-forge-summary>span{padding-inline:3px}.v14623-forge-scene{height:min(50dvh,372px)}
}
@media(max-width:360px) {
  .v14623-forge-arrival{width:calc(100% - 12px)!important;height:178px!important;min-height:178px!important;max-height:178px!important}
  .v14623-forge-npc{right:-5px!important;width:41%!important;height:175px!important}
  .v14623-forge-intro{left:11px!important;top:13px!important;width:64%!important}.v14623-forge-intro h2{font-size:23px!important}
  .v14623-forge-intro p{margin:6px 0 8px!important}.v14623-forge-intro button{min-width:138px!important;min-height:35px!important;padding:4px 8px!important}
  .modal.v14623-forge-shell{width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important;padding:5px!important}
  .v14623-forge-item{grid-template-columns:62px minmax(0,1fr);gap:6px}.v14623-forge-item-art{width:62px}.v14623-forge-item-art>img{width:55px;height:55px}
  .v14623-forge-summary img{width:18px;height:18px;flex-basis:18px}.v14623-forge-summary b,.v14623-forge-summary strong{font-size:8px}
  .v14625-attribute-choice button{flex-basis:70px}.v14623-forge-scene{min-height:318px}.v14623-hammer{right:2%;top:62px;width:106px}
}
@media(prefers-reduced-motion:reduce) {
  .v14623-forge-arrival::before{animation:none!important}
}

/* v1.146.31 — asset-only PRIVATE animation recovery. One geometric center for item/anvil/brazier. */
.v14623-forge-scene{--forge-center-x:50%}
.v14623-forge-scene .v14623-anvil{left:var(--forge-center-x)!important;bottom:67px!important;width:132px!important}
.v14623-forge-scene .v14623-animated-item{left:var(--forge-center-x)!important;bottom:126px!important}
.v14623-forge-scene .v14627-forge-impact{left:var(--forge-center-x)!important;bottom:119px!important;width:82px!important}
.v14623-forge-scene .v14623-hammer{left:calc(var(--forge-center-x) - 72px)!important;right:auto!important;top:56px!important;width:108px!important;transform-origin:24% 84%!important;transform:rotate(20deg)!important}
.v14623-forge-animation.is-forging.is-working.is-animating .v14623-hammer{animation:v14631-forge-hammer-sequence 3.6s linear forwards!important}
.v14623-forge-animation.is-forging.is-working.is-animating .v14627-forge-impact{animation:v14631-forge-impact-sequence 3.6s linear forwards!important}
.v14623-forge-animation.is-forging.is-working.is-animating .v14623-animated-item{animation:v14631-forge-item-sequence 3.6s linear forwards!important}
@keyframes v14631-forge-hammer-sequence{
  0%,4%{transform:rotate(20deg)}
  7%{transform:rotate(-30deg)} 11%{transform:rotate(70deg)} 14%{transform:rotate(30deg)}
  20%{transform:rotate(-27deg)} 25%{transform:rotate(70deg)} 28%{transform:rotate(31deg)}
  35%{transform:rotate(-30deg)} 40%{transform:rotate(71deg)} 43%{transform:rotate(30deg)}
  50%{transform:rotate(-31deg)} 56%{transform:rotate(72deg)} 59%{transform:rotate(29deg)}
  66%{transform:rotate(-34deg)} 72%{transform:rotate(75deg)} 76%{transform:rotate(27deg)}
  84%,100%{transform:rotate(20deg)}
}
@keyframes v14631-forge-impact-sequence{
  0%,9%,13%,23%,27%,38%,42%,54%,58%,70%,74%,100%{opacity:0;transform:translateX(-50%) scale(.35)}
  11%,25%,40%,56%,72%{opacity:1;transform:translateX(-50%) scale(1)}
  12%,26%,41%,57%,73%{opacity:.2;transform:translateX(-50%) scale(1.18)}
}
@keyframes v14631-forge-item-sequence{
  0%,9%,13%,23%,27%,38%,42%,54%,58%,70%,74%,100%{transform:translateX(-50%) translateY(0) scale(1)}
  11%,25%,40%,56%,72%{transform:translateX(-50%) translateY(4px) scale(.965)}
  12%,26%,41%,57%,73%{transform:translateX(-50%) translateY(-2px) scale(1.025)}
}

.v14623-salvage-scene .v14623-crucible{left:var(--forge-center-x)!important}
.v14623-salvage-scene .v14628-crucible-back{z-index:3!important}
.v14623-salvage-scene .v14628-crucible-front{z-index:8!important;clip-path:inset(44% 0 0 0)!important;pointer-events:none}
.v14623-salvage-scene .v14623-animated-item{z-index:5!important;left:var(--forge-center-x)!important;bottom:186px!important;width:86px!important;height:86px!important;will-change:transform,opacity,filter}
.v14623-salvage-scene.is-wide .v14623-animated-item>img{width:94px!important;height:78px!important}
.v14623-salvage-scene.is-tall .v14623-animated-item>img{width:76px!important;height:96px!important}
.v14623-salvage-scene.is-compact .v14623-animated-item>img{width:72px!important;height:72px!important}
.v14630-salvage-cracks{position:absolute;z-index:6;left:var(--forge-center-x)!important;bottom:180px;width:88px;height:88px;object-fit:contain;opacity:0;transform:translateX(-50%) scale(.72);will-change:transform,opacity}
.v14627-salvage-melt{left:var(--forge-center-x)!important;bottom:82px!important;width:126px!important}
.v14630-salvage-shards{position:absolute;z-index:9;left:var(--forge-center-x)!important;bottom:105px;width:112px;height:92px;object-fit:contain;opacity:0;transform:translateX(-50%) scale(.55)}
.v14630-salvage-result{position:absolute;z-index:12;left:var(--forge-center-x)!important;bottom:118px;display:grid;justify-items:center;opacity:0;transform:translateX(-50%) scale(.7)}
.v14630-salvage-result img{width:72px;height:72px;object-fit:contain}.v14630-salvage-result b{color:#ffd080;font-size:10px;text-shadow:0 2px 5px #000}
.v14623-forge-animation.is-salvaging.is-working.is-animating .v14623-animated-item{animation:v14631-salvage-item-drop 3.6s cubic-bezier(.22,.7,.2,1) forwards!important}
.v14623-forge-animation.is-salvaging.is-working.is-animating .v14630-salvage-cracks{animation:v14631-salvage-cracks 3.6s linear forwards!important}
.v14623-forge-animation.is-salvaging.is-working.is-animating .v14627-salvage-melt{animation:v14631-salvage-heat 3.6s linear forwards!important}
.v14623-forge-animation.is-salvaging.is-working.is-animating .v14630-salvage-shards{animation:v14631-salvage-shards 3.6s linear forwards!important}
@keyframes v14631-salvage-item-drop{
  0%,12%{transform:translateX(-50%) translateY(0) scale(1);opacity:1;filter:brightness(1)}
  38%{transform:translateX(-50%) translateY(70px) scale(.98);opacity:1;filter:brightness(1.12)}
  52%{transform:translateX(-50%) translateY(88px) scale(.9);opacity:1;filter:brightness(1.4) saturate(1.25)}
  72%{transform:translateX(-50%) translateY(102px) scale(.68);opacity:.78;filter:brightness(1.75) saturate(1.4)}
  90%,100%{transform:translateX(-50%) translateY(116px) scale(.35);opacity:0;filter:brightness(2)}
}
@keyframes v14631-salvage-cracks{
  0%,20%{opacity:0;transform:translateX(-50%) translateY(0) scale(.72)}
  36%{opacity:.95;transform:translateX(-50%) translateY(66px) scale(1)}
  58%{opacity:.78;transform:translateX(-50%) translateY(87px) scale(.92)}
  76%,100%{opacity:0;transform:translateX(-50%) translateY(105px) scale(.7)}
}
@keyframes v14631-salvage-heat{
  0%,24%{opacity:0;transform:translateX(-50%) scale(.48)}
  42%{opacity:.72;transform:translateX(-50%) scale(.82)}
  58%,78%{opacity:.95;transform:translateX(-50%) scale(1)}
  100%{opacity:0;transform:translateX(-50%) scale(.7)}
}
@keyframes v14631-salvage-shards{
  0%,56%{opacity:0;transform:translateX(-50%) scale(.52)}
  66%{opacity:1;transform:translate(-50%,-8px) scale(1)}
  100%{opacity:0;transform:translate(-50%,32px) scale(.82)}
}
.v14623-forge-animation.is-salvaged .v14623-animated-item,.v14623-forge-animation.is-salvaged .v14627-salvage-melt,.v14623-forge-animation.is-salvaged .v14630-salvage-shards,.v14623-forge-animation.is-salvaged .v14630-salvage-cracks{opacity:0!important}
.v14623-forge-animation.is-salvaged .v14630-salvage-result{animation:v14631-salvage-result .55s ease-out forwards!important}
@keyframes v14631-salvage-result{from{opacity:0;transform:translateX(-50%) scale(.65)}to{opacity:1;transform:translateX(-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){
  .v14623-forge-animation.is-forging.is-working.is-animating .v14623-hammer{animation-duration:3.6s!important}
  .v14623-forge-animation.is-forging.is-working.is-animating .v14627-forge-impact,.v14623-forge-animation.is-forging.is-working.is-animating .v14623-animated-item,
  .v14623-forge-animation.is-salvaging.is-working.is-animating .v14623-animated-item,.v14623-forge-animation.is-salvaging.is-working.is-animating .v14630-salvage-cracks,.v14623-forge-animation.is-salvaging.is-working.is-animating .v14627-salvage-melt,.v14623-forge-animation.is-salvaging.is-working.is-animating .v14630-salvage-shards{animation-duration:3.6s!important;animation-iteration-count:1!important}
}
@media(max-width:393px){
  .v14623-forge-scene .v14623-anvil{left:var(--forge-center-x)!important;width:124px!important}
  .v14623-forge-scene .v14623-animated-item,.v14623-forge-scene .v14627-forge-impact,.v14623-salvage-scene .v14623-crucible,.v14630-salvage-cracks,.v14627-salvage-melt,.v14630-salvage-shards,.v14630-salvage-result{left:var(--forge-center-x)!important}
  .v14623-forge-scene .v14623-hammer{left:calc(var(--forge-center-x) - 69px)!important;width:98px!important}
}

/* ---- css/v14629-chest-auth-forge.css ---- */
/* v1.146.30 authoritative mobile layer: chest, auth, Sigil and diamond UI. */
.v14629-chest-arrival,.v14629-chest-arrival *,.v14629-chest-modal,.v14629-chest-modal *{box-sizing:border-box}
.v14629-chest-arrival{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:10px;width:calc(100% - 16px);max-width:720px;min-height:116px;margin:10px auto;padding:10px 12px;border:1px solid #8d6034;border-radius:16px;background:radial-gradient(circle at 8% 50%,#bd762126,transparent 34%),linear-gradient(145deg,#18130f,#090b0c 70%);box-shadow:0 10px 24px #0007,inset 0 1px #f8ce7c18;overflow:hidden}
.v14629-chest-object{height:88px;display:grid;place-items:center}.v14629-chest-object img{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 7px 8px #000)}
.v14629-chest-arrival-copy{min-width:0}.v14629-chest-arrival small,.v14629-chest-modal small{color:#d99b52;font-weight:900;letter-spacing:.09em}.v14629-chest-arrival h2{margin:2px 0;color:#f5dfbd;font-size:18px}.v14629-chest-arrival p{margin:0 0 7px;color:#c4b6a1;font-size:10px;line-height:1.3}
.v14629-chest-open-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:104px;min-height:34px;padding:4px 9px;border:1px solid #bd7d3d;border-radius:9px;background:linear-gradient(180deg,#7a461f,#3c2415);color:#fff0d8;font-size:10px;font-weight:900}.v14629-chest-open-button img{width:23px;height:23px;object-fit:contain}
.modal.v14629-chest-shell{width:min(520px,calc(100vw - 14px))!important;max-width:calc(100vw - 14px)!important;max-height:calc(100dvh - 14px)!important;padding:7px!important;border:1px solid #9d6a35!important;border-radius:19px!important;background:#080a0b!important;overflow:hidden!important}.v14629-chest-shell>h1{display:none!important}
.v14629-chest-modal{position:relative;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);width:100%;max-width:100%;height:min(760px,calc(100dvh - 30px));overflow:hidden;border-radius:14px;background:linear-gradient(#0b0c0de8,#0a0b0cf4),var(--chest-bg) center/cover;color:#eee}
.v14629-chest-modal>header{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;min-height:116px;padding:8px 11px;background:linear-gradient(180deg,#291a0ecf,#0b0c0dda);border-bottom:1px solid #98602f}.v14629-chest-head-copy{display:grid;align-content:center;min-width:0}.v14629-chest-ornament-wrap{display:grid;place-items:center;width:100%;height:18px;margin:0 0 2px;overflow:hidden}.v14629-chest-ornament{display:block;width:106px;height:18px;object-fit:contain;opacity:.62}.v14629-chest-open-art img{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 8px 8px #000)}
.v14629-chest-modal h2{margin:1px 0;color:#ffe9bf;font-size:18px;line-height:1.05}.v14629-chest-modal header p{margin:1px 0;color:#c8b9a5;font-size:9px;line-height:1.25}.v14629-chest-weight{display:flex;align-items:center;gap:5px;margin-top:4px;color:#f2c27d;font-size:10px}.v14629-chest-weight img{width:19px;height:19px;object-fit:contain}.v14629-chest-meter{display:block;height:5px;margin-top:3px;overflow:hidden;border:1px solid #835027;border-radius:999px;background:#050606}.v14629-chest-meter u{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8a5326,#ffc366);box-shadow:0 0 9px #df8a35}
.v14629-chest-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:6px 8px 3px}.v14629-chest-tabs button,.v14629-chest-filters button{min-height:34px;padding:5px;border:1px solid #634326;border-radius:9px;background:#11100e;color:#c7b69f}.v14629-chest-tabs button.active,.v14629-chest-filters button.active{border-color:#d79a51;background:linear-gradient(145deg,#4b2e17,#20160f);color:#ffe4b5;box-shadow:inset 0 0 13px #f5b55a18}
.v14629-chest-filters{display:flex;max-width:100%;gap:4px;padding:3px 8px 6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}.v14629-chest-filters::-webkit-scrollbar{display:none}.v14629-chest-filters button{flex:0 0 auto;min-height:30px;font-size:10px;white-space:nowrap}
.v14629-chest-list{display:grid;align-content:start;gap:6px;min-width:0;max-width:100%;overflow-x:hidden;overflow-y:auto;padding:2px 8px max(12px,env(safe-area-inset-bottom))}.v14629-chest-item{display:grid;grid-template-columns:54px minmax(0,1fr) 48px;align-items:center;gap:7px;width:100%;min-width:0;min-height:64px;padding:5px 6px;border:1px solid #59422d;border-radius:11px;background:linear-gradient(145deg,#181716,#0d0e0f);box-shadow:inset 0 1px #fff1}.v14629-chest-item-art{display:grid;place-items:center;width:52px;height:52px;border-radius:9px;background:#070809;border:1px solid #4f3c29}.v14629-chest-item-art img{width:47px;height:47px;object-fit:contain}.v14629-chest-item-copy{min-width:0}.v14629-chest-item h3{display:-webkit-box;margin:1px 0;overflow:hidden;color:#f2e6d5;font-size:12px;line-height:1.16;overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical}.v14629-chest-item em{font-style:normal;color:#d99b52;font-size:10px;font-weight:900}
.v14629-chest-action{display:grid!important;place-items:center!important;width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding:4px!important;border:1px solid #a66e34!important;border-radius:12px!important;background:linear-gradient(145deg,#5b3518,#24170f)!important;color:#f6d5a9!important;touch-action:manipulation}.v14629-chest-action.withdraw{border-color:#7d7650!important;background:linear-gradient(145deg,#504522,#201b10)!important}.v14629-chest-action img{width:36px;height:36px;object-fit:contain}.v14629-chest-action:active{transform:translateY(1px) scale(.96)}.v14629-chest-action:disabled{opacity:.48;filter:grayscale(.5)}.v14629-chest-action.is-loading img{animation:v14630-chest-action-loading .8s ease-in-out infinite}
.v14629-chest-empty{display:grid;justify-items:center;gap:5px;padding:18px 12px;color:#c8baa6;text-align:center}.v14629-chest-empty img{width:104px;height:82px;object-fit:contain;opacity:.88}.v14629-chest-empty span{color:#8f8373;font-size:10px}.v14629-transfer-effect{position:absolute;inset:35% 25%;pointer-events:none;opacity:0}.v14629-transfer-effect img{width:100%;height:100%;object-fit:contain}.v14629-chest-modal.is-transfer .v14629-transfer-effect{animation:v14629-transfer .5s ease-out}.v14629-chest-loading{display:grid;justify-items:center;gap:8px;padding:30px;color:#e7c38d}.v14629-chest-loading img{width:90px;height:90px;object-fit:contain}.v14629-quantity{display:grid;gap:12px}.v14629-quantity>div{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.v14629-quantity input{min-height:44px}.v14629-quantity footer{display:grid;grid-template-columns:1fr 1fr;gap:7px}
@keyframes v14629-transfer{0%{opacity:0;transform:translateX(-25px) scale(.7)}35%{opacity:1}100%{opacity:0;transform:translateX(35px) scale(1.1)}}@keyframes v14630-chest-action-loading{50%{filter:brightness(1.45);transform:scale(.9)}}

/* Diamond UI remains separate from ordinary forge bonus. */
.v14629-diamond-resonance,.v14629-resonance-preview{border:1px solid #78cde0!important;background:radial-gradient(circle at 12% 20%,#92e8ff25,transparent 36%),linear-gradient(145deg,#102331,#0c1118)!important;box-shadow:inset 0 0 25px #44ccff12,0 8px 20px #0005}.v14629-diamond-resonance{display:grid;grid-template-columns:38px 1fr;gap:8px;padding:9px;border-radius:13px}.v14629-diamond-resonance>span{color:#8eeaff}.v14629-diamond-resonance small,.v14629-resonance-preview small{color:#86def0!important}.v14629-diamond-resonance b{color:#e4fbff}.v14629-diamond-resonance p,.v14629-resonance-preview p{margin:3px 0 0;color:#bcd6dc!important;font-size:10px;line-height:1.35}.v14629-resonance-preview{padding:9px;border-radius:12px;text-align:left}.v14629-resonance-preview b{display:block;color:#e7fbff}.v14629-forge-risk{display:block;padding:9px;border:1px solid #c64332;border-radius:10px;background:#3a0e0b;color:#ffd3ca;font-size:11px;line-height:1.35}.v14629-confirm-item{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:8px;width:100%;text-align:left}.v14629-confirm-item>img{width:56px;height:56px;object-fit:contain;border:1px solid #7d512d;border-radius:11px;background:#090b0c}.v14629-confirm-item h2{max-width:none!important}.v14623-forge-animation.is-diamond-reveal .v14623-forge-scene{box-shadow:0 0 100px #7be7ff!important}.v14623-forge-animation.is-diamond-reveal .v14623-animated-item{filter:drop-shadow(0 0 18px #8feaff);transform:translateX(-50%) scale(1.15)!important}

/* Auth and creator are one dark-fantasy family, with compact mobile geometry. */
.v69-auth-shell,.v70-creator-shell{background:radial-gradient(circle at 20% 12%,#b06a241a,transparent 26%),radial-gradient(circle at 82% 86%,#385f3520,transparent 24%),linear-gradient(155deg,#080807,#11100e 52%,#070808)!important}.v69-auth-particles i{background:#dfa55d!important;box-shadow:0 0 13px #b87530!important}.v69-auth-card,.v70-creator-card{width:min(410px,calc(100vw - 20px))!important;padding:18px!important;border:1px solid #7f592f!important;border-radius:20px!important;background:linear-gradient(180deg,#17140fef,#090b0ced)!important;box-shadow:0 24px 65px #000b,inset 0 1px #ffe2ac13!important}.v69-auth-login .v69-auth-card{max-width:370px!important}.v69-auth-card h1{margin:12px 0 3px!important;font-size:27px!important}.v69-auth-card>p{margin:0 0 8px!important;font-size:11px!important;line-height:1.35!important}.v69-auth-card h1 span,.v70-creator-card h1 span,.v69-inline-link{color:#e0a35d!important}.v69-field{gap:4px!important;margin:7px 0!important}.v69-field>span{font-size:10px!important}.v69-auth-card input,.v70-creator-card input,.v69-auth-card select,.v70-creator-card select{min-height:44px!important;padding:9px 11px!important;border-color:#5c442c!important;border-radius:11px!important;background:#090b0c!important;color:#f0e5d5!important}.v69-auth-card input:focus,.v70-creator-card input:focus{border-color:#d49a55!important;box-shadow:0 0 0 2px #d49a5524!important}.v69-auth-card input:valid{border-color:#6f8355!important}.v69-main-btn{min-height:44px!important;margin-top:8px!important}.v69-auth-card .primary,.v70-creator-card .primary{border-color:#ca8d49!important;background:linear-gradient(135deg,#a86128,#61351e)!important;color:#fff4df!important}.v14630-mail-action{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}.v14630-mail-action img{width:24px!important;height:24px!important;object-fit:contain!important}.v69-auth-info{min-height:16px!important;margin:5px 0!important;font-size:10px!important}.v69-auth-footer{margin-top:6px!important}.v69-saved-accounts{margin-top:9px!important}.v69-saved-list{max-height:116px!important;overflow:auto!important}
.v91-email-card{max-width:390px!important}.v14630-otp-field{position:relative}.v14630-otp-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.v14630-otp-cells i{display:grid;place-items:center;height:48px;border:1px solid #5d452d;border-radius:10px;background:#080a0b;color:#ffe7bf;font:900 21px/1 ui-monospace,monospace;font-style:normal}.v14630-otp-cells i.active{border-color:#d4974c;box-shadow:0 0 0 2px #d4974c20}.v14630-otp-cells i.filled{background:#171109}.v14630-otp-field>input{position:absolute!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:48px!important;opacity:.01!important;color:transparent!important;caret-color:transparent!important}.v91-code-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:7px!important}.v91-code-actions button{min-height:38px!important;border:1px solid #665039!important;border-radius:10px!important;background:#13100d!important;color:#d7b57e!important;font-size:10px!important}.v91-code-actions button:disabled{opacity:.5!important}.v91-code-actions #register-code-back{color:#d7c9b5!important}
.v14630-creator{max-width:620px!important}.v14630-hero-name{margin-top:10px!important}.v14630-path-head{margin:9px 0 6px}.v14630-path-head small{color:#c68f50;font-size:8px;font-weight:900;letter-spacing:.1em}.v14630-path-head h2{margin:2px 0;font-size:18px}.v14630-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v14630-class-card{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:7px;min-width:0;min-height:76px;padding:6px;border:1px solid #4c4133;border-radius:13px;background:linear-gradient(145deg,#171511,#0b0d0e);color:#ddd;text-align:left;overflow:hidden}.v14630-class-card.active{border-color:#ca8b47;background:linear-gradient(145deg,#2b1b10,#0d1010);box-shadow:inset 0 0 22px #b36b2520,0 0 0 1px #d59a5225}.v14630-class-art{display:grid;place-items:center;width:58px;height:64px;overflow:hidden;border-radius:10px;background:#080a0b}.v14630-class-art img{width:64px;height:70px;object-fit:contain;object-position:center bottom}.v14630-class-copy{min-width:0}.v14630-class-copy b,.v14630-class-copy small,.v14630-class-copy p{display:block}.v14630-class-copy b{font-size:13px}.v14630-class-copy small{color:#ca9a5e;font-size:8px}.v14630-class-copy p{display:none;margin:4px 0 0;color:#a99c8c;font-size:9px;line-height:1.25}.v14630-class-card.active .v14630-class-copy p{display:block}.v14630-class-card>i{position:absolute;right:5px;top:5px;display:none;width:18px;height:18px;place-items:center;border-radius:50%;background:#b57836;color:#fff6e6;font-size:10px;font-style:normal}.v14630-class-card.active>i{display:grid}.v14630-gender-row{display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:6px;margin-top:8px}.v14630-gender-row span{color:#aa9b88;font-size:10px}.v14630-gender-row button{min-height:36px;padding:5px;border:1px solid #4c4133;border-radius:10px;background:#12110f;color:#a99b89;font-size:10px}.v14630-gender-row button.active{border-color:#c58b4c;background:#342115;color:#ffe2b6}.v14630-hero-summary{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:8px;min-height:62px;margin-top:8px;padding:6px 8px;border:1px solid #5f4930;border-radius:12px;background:#0b0d0d}.v14630-summary-art{display:grid;place-items:center;width:50px;height:50px;overflow:hidden}.v14630-summary-art img{width:56px;height:58px;object-fit:contain}.v14630-hero-summary small,.v14630-hero-summary b,.v14630-hero-summary span{display:block}.v14630-hero-summary small{color:#bc8d53;font-size:8px}.v14630-hero-summary b{color:#f2e4d1;font-size:14px}.v14630-hero-summary span{color:#9f9587;font-size:9px}.v14630-start-path{width:100%;min-height:44px;margin-top:8px}.v70-class-card.active,.v70-gender-card.active{border-color:#d59a52!important;box-shadow:0 0 0 1px #d59a5244,inset 0 0 22px #b36b2520!important}

/* Sigil is the sixth active skill column: 5×2 becomes 6×2. */
.v14630-sigil-grid .v14415-active-skill-section .v102-skill-grid{grid-template-columns:repeat(var(--v14630-active-columns,6),minmax(0,1fr))!important}.v14630-sigil-loadout{border-color:#76654a!important;background:radial-gradient(circle at top right,#72562b18,transparent 35%),rgba(27,29,42,.92)!important}.v14628-boundary-sigil img,[data-item-id="v14628_boundary_sigil"] img{object-fit:contain!important;object-position:center center!important;transform:none!important;margin-inline:auto!important}

@media(max-width:412px){.v14629-chest-arrival{grid-template-columns:78px minmax(0,1fr);min-height:106px;padding:9px}.v14629-chest-object,.v14629-chest-object img{width:76px;height:76px}.v14629-chest-modal>header{grid-template-columns:78px minmax(0,1fr);min-height:108px;padding-inline:8px}.v14629-chest-open-art img{width:76px;height:76px}.v14629-chest-item{grid-template-columns:50px minmax(0,1fr) 46px}.v14629-chest-item-art{width:48px;height:48px}.v14629-chest-item-art img{width:43px;height:43px}.v14629-confirm-item{grid-template-columns:52px 1fr}.v14629-confirm-item>img{width:50px;height:50px}.v14623-forge-scene .v14623-hammer{right:5%!important;width:94px!important}.v69-auth-card,.v70-creator-card{padding:14px!important}.v14630-class-card{grid-template-columns:50px minmax(0,1fr)}.v14630-class-art{width:50px;height:60px}.v14630-class-art img{width:56px;height:64px}}
@media(max-width:360px){.v14629-chest-arrival{grid-template-columns:70px minmax(0,1fr)}.v14629-chest-object,.v14629-chest-object img{width:68px;height:68px}.v14629-chest-modal h2{font-size:16px}.v14629-chest-modal header p{font-size:8px}.v14629-chest-tabs button{min-height:32px}.v14629-chest-item{grid-template-columns:46px minmax(0,1fr) 44px;gap:5px}.v14629-chest-item-art{width:44px;height:44px}.v14629-chest-item-art img{width:40px;height:40px}.v14629-chest-action{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important}.v14629-chest-action img{width:32px;height:32px}.v14630-class-grid{gap:5px}.v14630-class-card{grid-template-columns:44px minmax(0,1fr);min-height:70px;padding:5px}.v14630-class-art{width:44px;height:54px}.v14630-class-copy b{font-size:12px}.v14630-class-copy p{font-size:8px}.v14630-otp-cells{gap:3px}.v14630-otp-cells i{height:44px;font-size:19px}}

/* ---- css/v14631-private-polish.css ---- */
/* v1.146.31 PRIVATE polish — assets only, compact mobile layout. */
.v14629-chest-arrival{grid-template-columns:68px minmax(0,1fr)!important;gap:9px!important;width:calc(100% - 30px)!important;min-height:92px!important;margin:10px auto!important;padding:8px 10px!important;border-radius:15px!important}
.v14629-chest-object,.v14629-chest-object img{width:62px!important;height:62px!important}
.v14629-chest-arrival h2{margin:1px 0!important;font-size:17px!important;line-height:1.05!important}.v14629-chest-arrival p{margin:0 0 5px!important;font-size:9px!important;line-height:1.22!important}.v14629-chest-arrival small{font-size:8px!important}
.v14629-chest-open-button{min-width:88px!important;min-height:32px!important;padding:3px 8px!important;border-radius:9px!important;font-size:10px!important}.v14629-chest-open-button img{width:20px!important;height:20px!important}
.v14630-mail-action{min-height:46px!important;max-height:48px!important;padding:7px 14px!important;white-space:nowrap!important;line-height:1!important}.v14630-mail-action .v14631-mail-asset{width:22px!important;height:22px!important;flex:0 0 22px!important;object-fit:contain!important}.v14630-mail-action span{white-space:nowrap!important}
.v14631-mail-brand{overflow:hidden!important}.v14631-mail-brand .v14631-mail-asset{display:block;width:33px!important;height:33px!important;object-fit:contain!important;margin:auto!important}
.v14630-class-grid{gap:6px!important}.v14630-class-card{grid-template-columns:48px minmax(0,1fr)!important;min-height:64px!important;padding:5px 7px!important;border-radius:12px!important}.v14630-class-card.active{background:linear-gradient(145deg,#2a1a0f,#0d1010)!important}.v14630-class-art{width:48px!important;height:54px!important}.v14630-class-art img{width:53px!important;height:59px!important}.v14630-class-copy b{font-size:12px!important}.v14630-class-copy small{font-size:8px!important;line-height:1.15!important}.v14630-class-copy p,.v14630-class-card.active .v14630-class-copy p{display:none!important}.v14630-class-card>i{width:16px!important;height:16px!important;font-size:9px!important}
.v14631-class-detail{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:9px;min-height:78px;margin-top:7px;padding:7px 9px;border:1px solid #6b4b2d;border-radius:13px;background:radial-gradient(circle at 8% 30%,#b6732b18,transparent 40%),linear-gradient(145deg,#17130f,#0b0d0e)}.v14631-class-detail-art{display:grid;place-items:center;width:64px;height:68px;overflow:hidden;border-radius:10px;background:#080a0b}.v14631-class-detail-art img{width:70px;height:75px;object-fit:contain;object-position:center bottom}.v14631-class-detail-copy{min-width:0}.v14631-class-detail-copy small{display:block;color:#c89151;font-size:8px;font-weight:800}.v14631-class-detail-copy b{display:block;color:#f1e5d3;font-size:15px;line-height:1.1}.v14631-class-detail-copy p{margin:3px 0 0;color:#ada192;font-size:9px;line-height:1.28}
.v14630-gender-row{margin-top:7px!important}.v14630-start-path{margin-top:7px!important;min-height:42px!important}
.v14628-boundary-sigil .item-emblem>.item-asset-image,[data-item-id="v14628_boundary_sigil"] .item-emblem>.item-asset-image{display:block!important;object-fit:contain!important;object-position:center!important;transform:translateX(12.5%) scale(.86)!important;transform-origin:center!important;margin-inline:auto!important}
@media(max-width:412px){.v14629-chest-arrival{grid-template-columns:62px minmax(0,1fr)!important;min-height:88px!important;padding:7px 9px!important}.v14629-chest-object,.v14629-chest-object img{width:58px!important;height:58px!important}.v14631-class-detail{grid-template-columns:58px minmax(0,1fr);min-height:72px}.v14631-class-detail-art{width:56px;height:62px}.v14631-class-detail-art img{width:62px;height:68px}}
@media(max-width:360px){.v14629-chest-arrival{width:calc(100% - 22px)!important;grid-template-columns:56px minmax(0,1fr)!important}.v14629-chest-object,.v14629-chest-object img{width:52px!important;height:52px!important}.v14629-chest-arrival h2{font-size:16px!important}.v14630-class-card{grid-template-columns:42px minmax(0,1fr)!important;min-height:60px!important}.v14630-class-art{width:42px!important;height:50px!important}.v14630-class-art img{width:47px!important;height:54px!important}.v14631-class-detail{grid-template-columns:52px minmax(0,1fr);gap:7px}.v14631-class-detail-art{width:50px;height:56px}.v14631-class-detail-art img{width:56px;height:62px}}

/* ---- css/v14632-private-polish.css ---- */
/* ALDOS RPG v1.146.32 — PRIVATE Android polish. Existing assets only. */

/* --- Trading Square: compact account chest card --- */
.v14629-chest-arrival.v14632-chest-arrival{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:calc(100% - 30px)!important;
  max-width:660px!important;
  min-height:82px!important;
  margin:10px auto!important;
  padding:9px 76px 9px 76px!important;
  border:1px solid #72563a!important;
  border-radius:15px!important;
  background:radial-gradient(circle at 12% 50%,#b576251c,transparent 28%),linear-gradient(150deg,#131518,#080b0d 74%)!important;
  box-shadow:0 8px 22px #0006,inset 0 1px #efd19713!important;
  overflow:hidden!important;
}
.v14632-chest-wall-button{
  position:absolute!important;
  left:10px!important;
  top:50%!important;
  display:grid!important;
  place-items:center!important;
  width:58px!important;
  height:58px!important;
  padding:0!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:translateY(-50%)!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
}
.v14632-chest-wall-button img{
  display:block!important;
  width:56px!important;
  height:56px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 7px 8px #0009)!important;
  transition:transform .16s ease,filter .16s ease!important;
}
.v14632-chest-wall-button:active img{transform:scale(.92)!important;filter:drop-shadow(0 3px 4px #0008) brightness(1.08)!important}
.v14632-chest-arrival-copy{
  width:100%!important;
  min-width:0!important;
  text-align:center!important;
}
.v14632-chest-arrival-copy small{display:block!important;margin:0 0 1px!important;color:#bc9c72!important;font-size:7px!important;letter-spacing:.11em!important}
.v14632-chest-arrival-copy h2{margin:0!important;color:#f4e6d1!important;font-size:17px!important;line-height:1.04!important}
.v14632-chest-arrival-copy p{margin:3px 0 0!important;color:#aea69c!important;font-size:8.5px!important;line-height:1.2!important}
.v14632-chest-arrival .v14629-chest-object,.v14632-chest-arrival .v14629-chest-open-button{display:none!important}

/* --- Character creator: two clear stages --- */
.v14632-creator-shell{align-items:flex-start!important;padding-top:max(14px,env(safe-area-inset-top))!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
.v14632-creator{
  width:min(94vw,560px)!important;
  max-width:560px!important;
  min-height:0!important;
  padding:13px 15px 15px!important;
  border-radius:20px!important;
  overflow:hidden!important;
}
.v14632-creator .v70-creator-head{margin-bottom:7px!important}
.v14632-creator .v69-brand-row{gap:10px!important}
.v14632-creator .v69-brand-mark{width:54px!important;height:54px!important;border-radius:15px!important;font-size:30px!important}
.v14632-creator .v69-brand-row b{font-size:18px!important;letter-spacing:.02em!important}
.v14632-creator .v69-brand-row small{font-size:9px!important}
.v14632-creator #wizard-cancel{min-height:36px!important;padding:5px 10px!important;border-radius:11px!important;font-size:10px!important}
.v14632-step-indicator{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:100%!important;
  margin:2px 0 9px!important;
}
.v14632-step-indicator>span{display:flex!important;align-items:center!important;gap:4px!important;color:#80796e!important}
.v14632-step-indicator>span>b{display:grid!important;place-items:center!important;width:19px!important;height:19px!important;border:1px solid #4f4a42!important;border-radius:50%!important;background:#0d1012!important;color:#999087!important;font-size:8px!important}
.v14632-step-indicator>span>small{font-size:8px!important;font-weight:800!important;letter-spacing:.04em!important}
.v14632-step-indicator>span.active{color:#e4bc84!important}
.v14632-step-indicator>span.active>b{border-color:#b97735!important;background:#362314!important;color:#ffe1b6!important;box-shadow:0 0 12px #cc7f2a28!important}
.v14632-step-indicator>i{width:35px!important;height:1px!important;background:linear-gradient(90deg,#74522e,#3e3c39)!important}
.v14632-wizard-stage{display:block!important;width:100%!important}
.v14632-stage-heading{text-align:center!important;margin:0 0 7px!important}
.v14632-stage-heading small{display:block!important;color:#b98145!important;font-size:7px!important;font-weight:900!important;letter-spacing:.13em!important}
.v14632-stage-heading h2{margin:2px 0 1px!important;color:#f1e6d6!important;font-size:22px!important;line-height:1.05!important}
.v14632-stage-heading p{margin:0 auto!important;max-width:360px!important;color:#989188!important;font-size:8.5px!important;line-height:1.25!important}
.v14632-role-carousel{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 42px!important;
  align-items:center!important;
  gap:7px!important;
  width:100%!important;
  max-width:410px!important;
  margin:6px auto 8px!important;
}
.v14632-role-arrow{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:54px!important;
  padding:0!important;
  border:1px solid #66523b!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#171b1f,#0b0d0f)!important;
  box-shadow:inset 0 1px #e4c08a13,0 4px 12px #0005!important;
}
.v14632-role-arrow:active{transform:scale(.94)!important;background:#271a10!important}
.v14632-role-arrow-img{display:block!important;width:24px!important;height:24px!important;object-fit:contain!important;filter:sepia(.2) saturate(.75) brightness(1.28)!important}
.v14632-role-focus{
  min-width:0!important;
  padding:8px 8px 7px!important;
  border:1px solid #775332!important;
  border-radius:17px!important;
  background:radial-gradient(circle at 50% 20%,#ad702628,transparent 37%),linear-gradient(160deg,#17140f,#0a0d0f 72%)!important;
  box-shadow:inset 0 0 30px #a8631710,0 9px 20px #0005!important;
  text-align:center!important;
}
.v14632-role-portrait{
  display:grid!important;
  place-items:center!important;
  width:150px!important;
  height:150px!important;
  margin:0 auto 5px!important;
  overflow:hidden!important;
  border:1px solid #5d4c37!important;
  border-radius:15px!important;
  background:radial-gradient(circle at 50% 70%,#3c2a1730,transparent 45%),#07090a!important;
}
.v14632-role-portrait img{display:block!important;width:142px!important;height:148px!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 8px 7px #0009)!important}
.v14632-role-focus>small{display:block!important;color:#c69a64!important;font-size:8px!important;font-weight:800!important;letter-spacing:.03em!important}
.v14632-role-focus>h3{margin:1px 0 2px!important;color:#f3e6d4!important;font-size:20px!important;line-height:1!important}
.v14632-role-focus>p{min-height:28px!important;margin:0 auto!important;max-width:300px!important;color:#aaa197!important;font-size:8.5px!important;line-height:1.28!important}
.v14632-role-dots{display:flex!important;justify-content:center!important;gap:5px!important;margin-top:6px!important}
.v14632-role-dots button{width:6px!important;height:6px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#4e4c47!important;box-shadow:none!important}
.v14632-role-dots button.active{width:15px!important;border-radius:5px!important;background:#c9843c!important;box-shadow:0 0 8px #e69b4d55!important}
.v14632-gender-question{width:min(100%,410px)!important;margin:0 auto!important;padding:8px 9px!important;border:1px solid #4e4538!important;border-radius:13px!important;background:#0c0f10b8!important}
.v14632-gender-question>b{display:block!important;margin-bottom:6px!important;color:#d3c5b3!important;font-size:10px!important;text-align:center!important}
.v14632-gender-question>div{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
.v14632-gender-question button{min-height:38px!important;padding:5px 7px!important;border:1px solid #45484a!important;border-radius:11px!important;background:linear-gradient(180deg,#171c21,#101317)!important;color:#d0cdc7!important;font-size:11px!important;font-weight:800!important}
.v14632-gender-question button.active{border-color:#8d742f!important;background:linear-gradient(180deg,#242717,#111610)!important;color:#f2dfbc!important;box-shadow:inset 0 0 18px #b6d23612,0 0 0 1px #92aa2930!important}
.v14632-stage-next{display:block!important;width:min(100%,410px)!important;min-height:42px!important;margin:8px auto 0!important;border-radius:12px!important;font-size:11px!important}

/* Stage 2: nickname as a live running row of letters. */
.v14632-nick-preview{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:min(100%,430px)!important;
  height:62px!important;
  margin:9px auto 8px!important;
  overflow:hidden!important;
  border:1px solid #705031!important;
  border-radius:15px!important;
  background:radial-gradient(circle at 50% 50%,#c17d251b,transparent 60%),#080b0d!important;
  box-shadow:inset 0 0 24px #0009!important;
}
.v14632-nick-placeholder{color:#5f5a53!important;font-size:12px!important;font-weight:800!important;letter-spacing:.18em!important}
.v14632-nick-run{display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;max-width:100%!important;white-space:nowrap!important}
.v14632-nick-run i{display:inline-block!important;color:#f1e4d1!important;font-family:Georgia,'Times New Roman',serif!important;font-size:25px!important;font-style:normal!important;font-weight:700!important;line-height:1!important;text-shadow:0 0 10px #c77c3150,0 3px 5px #000!important;animation:v14632-nick-letter-in .22s cubic-bezier(.2,.8,.2,1) both!important;animation-delay:calc(var(--nick-i) * 12ms)!important}
@keyframes v14632-nick-letter-in{from{opacity:0;transform:translateX(14px) scale(.9);filter:blur(2px)}to{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}}
.v14632-name-field{display:block!important;width:min(100%,430px)!important;margin:0 auto!important}
.v14632-name-field>span{font-size:8px!important;letter-spacing:.08em!important}
.v14632-name-field input{min-height:48px!important;height:48px!important;padding:8px 12px!important;border-radius:13px!important;font-size:15px!important;text-align:center!important}
.v14632-final-choice{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;width:min(100%,430px)!important;margin:8px auto 0!important;padding:6px 9px!important;border:1px solid #4f463a!important;border-radius:12px!important;background:#0b0e0f!important}
.v14632-final-choice>div{display:grid!important;place-items:center!important;width:46px!important;height:50px!important;overflow:hidden!important;border-radius:9px!important;background:#07090a!important}
.v14632-final-choice img{width:50px!important;height:54px!important;object-fit:contain!important;object-position:center bottom!important}
.v14632-final-choice p{margin:0!important;min-width:0!important}
.v14632-final-choice small,.v14632-final-choice b{display:block!important}
.v14632-final-choice small{color:#a88f71!important;font-size:7.5px!important}
.v14632-final-choice b{color:#dfd5c7!important;font-size:10px!important}
.v14632-final-actions{display:grid!important;grid-template-columns:.7fr 1.3fr!important;gap:7px!important;width:min(100%,430px)!important;margin:8px auto 0!important}
.v14632-final-actions button{min-height:42px!important;border-radius:12px!important;font-size:10.5px!important;font-weight:900!important}

/* --- Forge: PRIVATE-visible WAAPI motion with CSS fallback. --- */
.v14623-forge-animation.v14632-waapi-motion .v14623-hammer,
.v14623-forge-animation.v14632-waapi-motion .v14627-forge-impact,
.v14623-forge-animation.v14632-waapi-motion .v14623-animated-item{animation:none!important}
.v14623-forge-animation.v14632-waapi-salvage .v14623-animated-item{animation:none!important}
.v14623-forge-scene .v14623-hammer{
  left:calc(var(--forge-center-x) - 76px)!important;
  top:48px!important;
  width:108px!important;
  transform-origin:18% 82%!important;
  transform:translate(-8px,-6px) rotate(18deg)!important;
}
/* Never draw extra forge objects with CSS pseudo-elements. */
.v14623-forge-scene::before,.v14623-forge-scene::after,
.v14623-animated-item::before,.v14623-animated-item::after,
.v14623-anvil::before,.v14623-anvil::after,
.v14623-crucible::before,.v14623-crucible::after{content:none!important;display:none!important}
/* Keep only the real selected item asset over the real anvil asset. */
.v14623-forge-animation.is-forging .v14623-animated-item{background:none!important;border:0!important;box-shadow:none!important}
.v14623-forge-animation.is-forging .v14623-animated-item>img{width:72px!important;height:72px!important;object-fit:contain!important;background:transparent!important}

@media(max-width:412px){
  .v14629-chest-arrival.v14632-chest-arrival{width:calc(100% - 28px)!important;min-height:78px!important;padding:8px 68px!important}
  .v14632-chest-wall-button{left:8px!important;width:54px!important;height:54px!important}
  .v14632-chest-wall-button img{width:52px!important;height:52px!important}
  .v14632-chest-arrival-copy h2{font-size:16px!important}
  .v14632-chest-arrival-copy p{font-size:8px!important}
  .v14632-creator{width:calc(100vw - 18px)!important;padding:11px 12px 13px!important}
  .v14632-role-carousel{grid-template-columns:38px minmax(0,1fr) 38px!important;gap:5px!important}
  .v14632-role-arrow{width:38px!important;height:50px!important}
  .v14632-role-arrow-img{width:21px!important;height:21px!important}
  .v14632-role-portrait{width:138px!important;height:138px!important}
  .v14632-role-portrait img{width:132px!important;height:137px!important}
  .v14632-role-focus>h3{font-size:18px!important}
  .v14632-nick-run i{font-size:23px!important}
}
@media(max-width:360px){
  .v14629-chest-arrival.v14632-chest-arrival{width:calc(100% - 20px)!important;padding-left:62px!important;padding-right:62px!important}
  .v14632-chest-wall-button{left:6px!important;width:50px!important;height:50px!important}
  .v14632-chest-wall-button img{width:48px!important;height:48px!important}
  .v14632-chest-arrival-copy small{font-size:6.5px!important}.v14632-chest-arrival-copy h2{font-size:15px!important}.v14632-chest-arrival-copy p{font-size:7.5px!important}
  .v14632-creator{width:calc(100vw - 12px)!important;padding:9px 10px 12px!important;border-radius:17px!important}
  .v14632-creator .v69-brand-mark{width:48px!important;height:48px!important;font-size:27px!important}
  .v14632-creator .v69-brand-row b{font-size:16px!important}
  .v14632-stage-heading h2{font-size:20px!important}
  .v14632-role-carousel{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:4px!important}
  .v14632-role-arrow{width:34px!important;height:46px!important;border-radius:11px!important}
  .v14632-role-arrow-img{width:19px!important;height:19px!important}
  .v14632-role-focus{padding:6px!important}
  .v14632-role-portrait{width:124px!important;height:124px!important}
  .v14632-role-portrait img{width:119px!important;height:124px!important}
  .v14632-role-focus>p{font-size:8px!important}
  .v14632-gender-question{padding:7px!important}.v14632-gender-question button{min-height:35px!important;font-size:10px!important}
  .v14632-nick-preview{height:56px!important}.v14632-nick-run i{font-size:21px!important}
  .v14632-name-field input{height:45px!important;min-height:45px!important;font-size:14px!important}
  .v14632-final-actions button{min-height:39px!important}
}

/* v1.146.32 CSS fallback uses the same 4.1 s active work window as PRIVATE WAAPI. */
.v14623-forge-animation.is-forging.is-working.is-animating:not(.v14632-waapi-motion) .v14623-hammer{animation-duration:4.1s!important}
.v14623-forge-animation.is-forging.is-working.is-animating:not(.v14632-waapi-motion) .v14627-forge-impact,.v14623-forge-animation.is-forging.is-working.is-animating:not(.v14632-waapi-motion) .v14623-animated-item{animation-duration:4.1s!important}
.v14623-forge-animation.is-salvaging.is-working.is-animating:not(.v14632-waapi-salvage) .v14623-animated-item{animation-duration:4.1s!important}

/* ---- css/v14633-private-polish.css ---- */
/* ALDOS RPG v1.146.33 — PRIVATE targeted polish, existing assets only. */

/* Trading Square: plain chest art on the left, asset-only open action on the right. */
.v14629-chest-arrival.v14633-chest-arrival{
  position:relative!important;
  display:grid!important;
  grid-template-columns:66px minmax(0,1fr) 46px!important;
  align-items:center!important;
  gap:7px!important;
  width:calc(100% - 30px)!important;
  max-width:660px!important;
  min-height:82px!important;
  margin:10px auto!important;
  padding:8px 10px!important;
  border:1px solid #72563a!important;
  border-radius:15px!important;
  background:radial-gradient(circle at 12% 50%,#b5762519,transparent 28%),linear-gradient(150deg,#131518,#080b0d 74%)!important;
  box-shadow:0 8px 22px #0006,inset 0 1px #efd19713!important;
  overflow:hidden!important;
}
.v14633-chest-location-art{display:grid!important;place-items:center!important;width:64px!important;height:64px!important;pointer-events:none!important}
.v14633-chest-location-art img{display:block!important;width:61px!important;height:61px!important;object-fit:contain!important;filter:drop-shadow(0 7px 8px #0009)!important}
.v14633-chest-arrival-copy{min-width:0!important;text-align:center!important;padding:0 2px!important}
.v14633-chest-arrival-copy small{display:block!important;margin:0 0 1px!important;color:#bc9c72!important;font-size:7px!important;letter-spacing:.11em!important}
.v14633-chest-arrival-copy h2{margin:0!important;color:#f4e6d1!important;font-size:17px!important;line-height:1.04!important}
.v14633-chest-arrival-copy p{margin:3px 0 0!important;color:#aea69c!important;font-size:8.5px!important;line-height:1.2!important}
.v14633-chest-open-asset{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border:1px solid #745537!important;border-radius:11px!important;background:linear-gradient(180deg,#1a1d20,#0d1012)!important;box-shadow:inset 0 1px #efd19712,0 4px 12px #0006!important;-webkit-tap-highlight-color:transparent!important}
.v14633-chest-open-asset img{display:block!important;width:31px!important;height:31px!important;object-fit:contain!important;filter:drop-shadow(0 3px 5px #0009)!important}
.v14633-chest-open-asset:active{transform:scale(.94)!important;background:#251a11!important}
.v14633-chest-arrival .v14632-chest-wall-button,.v14633-chest-arrival .v14629-chest-object,.v14633-chest-arrival .v14629-chest-open-button{display:none!important}

/* Boundary Sigil: alpha bounds are asymmetric, so nudge the useful art slightly right. */
.v14628-boundary-sigil .item-emblem>.item-asset-image,[data-item-id="v14628_boundary_sigil"] .item-emblem>.item-asset-image{
  object-fit:contain!important;
  object-position:center!important;
  transform:translateX(15.5%) scale(.84)!important;
  transform-origin:center!important;
  margin-inline:auto!important;
}

/* Forge: actual hammer asset is moved by JS on a wrapper, so old !important transform cannot freeze it. */
.v14633-hammer-motion{position:absolute!important;z-index:7!important;left:calc(var(--forge-center-x,50%) - 72px)!important;top:56px!important;width:108px!important;height:118px!important;display:block!important;transform-origin:24% 84%!important;transform:translate(0,0) rotate(18deg)!important;will-change:transform!important;pointer-events:none!important}
.v14633-hammer-motion .v14623-hammer{position:static!important;display:block!important;width:108px!important;height:auto!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;transform-origin:center!important;animation:none!important;transition:none!important;filter:drop-shadow(0 9px 6px #000)!important}
.v14633-runtime-forge.is-working.is-animating .v14623-hammer{animation:none!important}
.v14633-runtime-forge.is-working.is-animating .v14633-hammer-motion{animation:none!important}
.v14633-runtime-forge.is-working.is-animating .v14627-forge-impact,.v14633-runtime-forge.is-working.is-animating .v14623-animated-item{animation:none!important}

/* Salvage: one real brazier asset + the item + the resulting Gorgan stones. No cracks/melt/explosion overlays. */
.v14633-runtime-salvage .v14630-salvage-cracks,.v14633-runtime-salvage .v14627-salvage-melt,.v14633-runtime-salvage .v14630-salvage-shards,.v14633-runtime-salvage .v14628-crucible-front{display:none!important;animation:none!important}
.v14633-runtime-salvage .v14633-single-crucible{z-index:4!important;left:var(--forge-center-x,50%)!important;bottom:54px!important;width:150px!important;clip-path:none!important}
.v14633-runtime-salvage.is-working.is-animating .v14623-animated-item{animation:none!important;left:var(--forge-center-x,50%)!important;bottom:186px!important}
.v14633-runtime-salvage-motion .v14623-animated-item{animation:none!important}
.v14633-runtime-salvage .v14630-salvage-result{left:var(--forge-center-x,50%)!important}

/* One-button Guardian dialogue, visually related to monster assignment dialogue but much more compact. */
.modal.v14633-guardian-shell{width:min(92vw,430px)!important;max-width:430px!important;padding:0!important;overflow:hidden!important;border:1px solid #76533a!important;border-radius:18px!important;background:#090d0f!important}
.v14633-guardian-shell .modal-close{display:none!important}
.v14633-guardian-dialogue{position:relative!important;display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;min-height:205px!important;padding:14px!important;background:radial-gradient(circle at 18% 38%,#b4722e1a,transparent 37%),linear-gradient(145deg,#141311,#080b0d 72%)!important}
.v14633-guardian-dialogue.is-evil{background:radial-gradient(circle at 18% 38%,#9b203122,transparent 39%),linear-gradient(145deg,#160e12,#08090c 72%)!important;border-color:#723b46!important}
.v14633-guardian-art{display:grid!important;place-items:center!important;width:112px!important;height:168px!important;overflow:hidden!important;border:1px solid #695139!important;border-radius:14px!important;background:#07090a!important}
.v14633-guardian-art img{display:block!important;width:108px!important;height:164px!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 9px 8px #000b)!important}
.v14633-guardian-copy{min-width:0!important}.v14633-guardian-copy>small{display:block!important;color:#b58d61!important;font-size:8px!important;font-weight:900!important;letter-spacing:.11em!important}.v14633-guardian-copy>h2{margin:2px 0 5px!important;color:#f3e5d1!important;font-size:21px!important;line-height:1.05!important}.v14633-guardian-copy>p{margin:0 0 10px!important;color:#bbb0a3!important;font-size:10px!important;line-height:1.4!important}.v14633-guardian-mark{display:block!important;margin:0 0 8px!important;color:#d98b90!important;font-size:10px!important}.v14633-guardian-dialogue button{width:100%!important;min-height:40px!important;padding:7px 10px!important;border-radius:11px!important;font-size:10px!important;font-weight:900!important}.v14633-guardian-dialogue.is-good button{border-color:#887635!important;background:linear-gradient(180deg,#31321b,#161b12)!important;color:#f4e0b8!important}.v14633-guardian-dialogue.is-evil button{border-color:#7a3d45!important;background:linear-gradient(180deg,#30161b,#170c0f)!important;color:#f3c2c5!important}

/* Temporary reputation title. */
.v14633-temp-title{display:inline-flex!important;align-items:center!important;margin-top:3px!important;padding:2px 7px!important;border:1px solid #796737!important;border-radius:999px!important;background:#262311!important;color:#e4cf8e!important;font-size:8px!important;font-weight:800!important;letter-spacing:.02em!important}

@media(max-width:412px){
  .v14629-chest-arrival.v14633-chest-arrival{grid-template-columns:60px minmax(0,1fr) 42px!important;width:calc(100% - 28px)!important;min-height:78px!important;padding:7px 9px!important;gap:5px!important}
  .v14633-chest-location-art{width:58px!important;height:58px!important}.v14633-chest-location-art img{width:55px!important;height:55px!important}.v14633-chest-open-asset{width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important}.v14633-chest-open-asset img{width:28px!important;height:28px!important}.v14633-chest-arrival-copy h2{font-size:16px!important}.v14633-chest-arrival-copy p{font-size:8px!important}
  .v14633-hammer-motion{left:calc(var(--forge-center-x,50%) - 69px)!important;width:98px!important}.v14633-hammer-motion .v14623-hammer{width:98px!important}
  .v14633-guardian-dialogue{grid-template-columns:96px minmax(0,1fr)!important;gap:9px!important;min-height:185px!important;padding:11px!important}.v14633-guardian-art{width:92px!important;height:150px!important}.v14633-guardian-art img{width:90px!important;height:147px!important}.v14633-guardian-copy>h2{font-size:19px!important}
}
@media(max-width:360px){
  .v14629-chest-arrival.v14633-chest-arrival{grid-template-columns:54px minmax(0,1fr) 38px!important;width:calc(100% - 20px)!important;padding:7px!important}.v14633-chest-location-art{width:52px!important;height:52px!important}.v14633-chest-location-art img{width:50px!important;height:50px!important}.v14633-chest-open-asset{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}.v14633-chest-open-asset img{width:26px!important;height:26px!important}.v14633-chest-arrival-copy small{font-size:6.5px!important}.v14633-chest-arrival-copy h2{font-size:15px!important}.v14633-chest-arrival-copy p{font-size:7.4px!important}
  .v14633-guardian-dialogue{grid-template-columns:84px minmax(0,1fr)!important}.v14633-guardian-art{width:80px!important;height:138px!important}.v14633-guardian-art img{width:78px!important;height:135px!important}.v14633-guardian-copy>p{font-size:9px!important}
}

/* ---- css/v14634-public-readiness.css ---- */
/* ALDOS RPG v1.146.34 — public-readiness visual authority. */

/* Boundary Sigil is now physically centered inside a new immutable asset canvas.
   Keep layout transforms neutral so inventory and detail modal agree. */
.v14628-boundary-sigil .item-emblem>.item-asset-image,
[data-item-id="v14628_boundary_sigil"] .item-emblem>.item-asset-image{
  object-fit:contain!important;
  object-position:center!important;
  transform:scale(.88)!important;
  transform-origin:center!important;
  margin-inline:auto!important;
}
body.v122-ui .v122-item-detail-head [data-item-id="v14628_boundary_sigil"] .item-asset-image,
body.v122-ui .v97-item-detail-icon .item-asset-image[src*="v14634/boundary-sigil-centered.webp"]{
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}

/* ---- css/v14635-guardian-badges-forge.css ---- */
/* ALDOS RPG v1.146.35 — Guardian status assets beside nickname + forge hammer alignment */

/* Text title is intentionally replaced by the compact status asset. */
.v14633-temp-title{display:none!important}

.v14635-guardian-badges{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;flex:0 0 auto!important;min-width:0!important;vertical-align:middle!important}
.v14635-guardian-badge{position:relative!important;display:inline-grid!important;place-items:center!important;width:24px!important;height:24px!important;flex:0 0 24px!important;border:1px solid #756039!important;border-radius:6px!important;overflow:visible!important;background:#0b0f10!important;box-shadow:inset 0 0 0 1px #ffffff0b,0 2px 6px #0008!important}
.v14635-guardian-badge.blessing{border-color:#9b8038!important;background:radial-gradient(circle at 50% 45%,#423a17,#0b0e0c 78%)!important}
.v14635-guardian-badge.brand{border-color:#78373c!important;background:radial-gradient(circle at 50% 45%,#3b1418,#0b0b0d 78%)!important}
.v14635-guardian-badge .v14635-guardian-badge-art{display:block!important;width:20px!important;height:20px!important;max-width:none!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important;border-radius:3px!important;background:transparent!important;filter:none!important}
.v14635-guardian-badge>b{position:absolute!important;right:-5px!important;bottom:-5px!important;min-width:14px!important;height:14px!important;padding:0 3px!important;border:1px solid #8f4c4c!important;border-radius:999px!important;background:#1b090b!important;color:#ffd2cf!important;font:900 7px/12px system-ui,sans-serif!important;text-align:center!important;box-shadow:0 1px 4px #000b!important;z-index:2!important}

/* Own profile: status square is immediately left of nickname. */
.v76-profile-name-line>.v14635-guardian-badges.profile{margin-right:1px!important}

/* Chat: keep status + nickname on one compact line, submeta remains below it. */
.v14635-chat-name-line{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;max-width:100%!important}
.v14635-chat-name-line>.v14635-guardian-badges.chat{gap:2px!important}
.v14635-chat-name-line .v14635-guardian-badge{width:17px!important;height:17px!important;flex-basis:17px!important;border-radius:4px!important}
.v14635-chat-name-line .v14635-guardian-badge .v14635-guardian-badge-art{width:14px!important;height:14px!important;border-radius:2px!important}
.v14635-chat-name-line .v14635-guardian-badge>b{right:-4px!important;bottom:-4px!important;min-width:11px!important;height:11px!important;padding:0 2px!important;font-size:6px!important;line-height:9px!important}
.v14635-chat-name-line .v131-chat-name{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* Chat-open player card uses the same status language beside the displayed nickname. */
.v125-player-identity h2{display:flex!important;align-items:center!important;gap:6px!important}
.v125-player-identity h2>.v14635-guardian-badges.player-card .v14635-guardian-badge{width:21px!important;height:21px!important;flex-basis:21px!important}
.v125-player-identity h2>.v14635-guardian-badges.player-card .v14635-guardian-badge-art{width:18px!important;height:18px!important}

/* The animation timings stay unchanged; the whole hammer pivot is simply moved left. */
.v14633-hammer-motion{left:calc(var(--forge-center-x,50%) - 88px)!important}
@media(max-width:600px){.v14633-hammer-motion{left:calc(var(--forge-center-x,50%) - 84px)!important}}

/* ---- css/v14638-boss-recovery.css ---- */
/* v1.146.38 — official sources + safe boss recovery */
body.v127-ui .v14638-source-row{grid-template-columns:42px minmax(0,1fr) 70px!important}
body.v127-ui .v14638-source-link{display:grid!important;place-items:center!important;width:70px!important;height:34px!important;min-height:34px!important;padding:5px 8px!important;border-radius:11px!important;border:1px solid rgba(125,215,189,.34)!important;background:linear-gradient(145deg,rgba(39,117,101,.52),rgba(16,66,63,.72))!important;color:#eefaf6!important;text-decoration:none!important;font-size:8.5px!important;font-weight:800!important;letter-spacing:.02em!important}
body.v127-ui .v14638-source-link:active{transform:translateY(1px)!important}
body.v127-ui .v14638-boss-recovery{display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin:0 0 10px!important;padding:11px!important;border-radius:17px!important;border:1px solid rgba(229,181,81,.44)!important;background:radial-gradient(circle at 8% 0,rgba(229,181,81,.16),transparent 42%),linear-gradient(145deg,rgba(49,31,15,.96),rgba(13,20,25,.98))!important;box-shadow:0 10px 28px rgba(0,0,0,.22)!important}
body.v127-ui .v14638-boss-recovery-icon{width:46px!important;height:46px!important;display:grid!important;place-items:center!important;padding:9px!important;border-radius:13px!important;border:1px solid rgba(229,181,81,.33)!important;background:rgba(229,181,81,.08)!important}
body.v127-ui .v14638-boss-recovery-icon :where(img,.v83-ui-icon){width:100%!important;height:100%!important;object-fit:contain!important}
body.v127-ui .v14638-boss-recovery>div{display:grid!important;gap:2px!important;min-width:0!important}
body.v127-ui .v14638-boss-recovery small{font-size:7px!important;letter-spacing:.12em!important;color:#e5b551!important}
body.v127-ui .v14638-boss-recovery b{font-size:10.5px!important;color:#fff3d3!important}
body.v127-ui .v14638-boss-recovery p{margin:1px 0!important;font-size:8px!important;line-height:1.35!important;color:rgba(238,235,221,.67)!important}
body.v127-ui .v14638-boss-recovery em{font-size:7.5px!important;font-style:normal!important;color:#8fd9c3!important}
body.v127-ui .v14638-boss-recovery button{min-width:76px!important;height:36px!important;min-height:36px!important;padding:6px 10px!important;font-size:9px!important}
@media (max-width:520px){body.v127-ui .v14638-boss-recovery{grid-template-columns:40px minmax(0,1fr)!important}body.v127-ui .v14638-boss-recovery-icon{width:40px!important;height:40px!important}body.v127-ui .v14638-boss-recovery button{grid-column:1/-1!important;width:100%!important}}

/* ===== css/v14640-slime-dungeon.css ===== */
.v14640-dungeon{margin:14px 0;padding:16px;border:1px solid rgba(145,191,79,.32);border-radius:20px;background:linear-gradient(145deg,rgba(19,31,20,.97),rgba(14,20,17,.98));box-shadow:0 16px 40px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.03);color:#e9efdf}.v14640-dungeon header{display:flex;gap:14px;align-items:center;margin-bottom:14px}.v14640-dungeon header>img{width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(76,188,67,.22))}.v14640-dungeon h2,.v14640-dungeon h3,.v14640-dungeon h4{margin:0;color:#f4f8ec}.v14640-dungeon header small,.v14640-room-copy>small{color:#a8d76e;font-weight:800;letter-spacing:.08em}.v14640-dungeon header p,.v14640-room-copy p,.v14640-muted{margin:4px 0 0;color:#aeb8aa;font-size:.9rem}.v14640-entry-copy{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px;border-radius:15px;background:rgba(255,255,255,.035)}.v14640-entry-copy p{margin:0;max-width:70%;color:#cbd3c6}.v14640-key{display:flex;align-items:center;gap:8px;min-width:105px}.v14640-key img{width:45px;height:45px;object-fit:contain}.v14640-key small{display:block;color:#95a391}.v14640-key strong{font-size:1.4rem;color:#d5ff7c}.v14640-warning{padding:12px 14px;border:1px solid rgba(224,170,68,.3);border-radius:13px;background:rgba(149,98,27,.12);color:#e9c981;margin:10px 0}.v14640-dungeon button{border-radius:12px}.v14640-dungeon button.big{width:100%;min-height:48px;margin-top:12px}.v14640-run-head,.v14640-instance-head{display:flex!important;justify-content:space-between;align-items:flex-start!important}.v14640-run-head em,.v14640-instance-head em{font-style:normal;color:#a8d76e;font-variant-numeric:tabular-nums}.v14640-members{display:grid;gap:7px;margin:10px 0}.v14640-member{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:11px;background:rgba(255,255,255,.04)}.v14640-member span{flex:1;font-weight:700}.v14640-member b{font-size:.72rem;text-transform:uppercase;color:#b8e877}.v14640-mini{min-height:30px!important;padding:3px 8px!important;font-size:.75rem}.v14640-sub{margin-top:14px}.v14640-sub h4{margin-bottom:8px}.v14640-nearby{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v14640-nearby button{text-align:left;padding:9px}.v14640-nearby button span,.v14640-nearby button small{display:block}.v14640-nearby button small{color:#9fa99c}.v14640-invite{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:10px;background:rgba(104,139,64,.09);border-radius:12px}.v14640-invite div b,.v14640-invite div small{display:block}.v14640-invite div small{color:#aab5a6}.v14640-invite span{display:flex;gap:6px}.v14640-actions{display:flex;gap:8px;align-items:center;margin-top:10px}.v14640-actions .big{margin:0;flex:1}.v14640-infection{padding:12px;border-radius:15px;background:rgba(5,12,7,.48);margin:6px 0 14px}.v14640-infection-title{display:flex;justify-content:space-between;align-items:center}.v14640-infection-title span{display:flex;align-items:center;gap:7px;font-weight:800}.v14640-infection-title img{width:28px;height:28px;object-fit:contain}.v14640-infection-title b{font-size:1.1rem;color:#d8ff78}.v14640-infection-track{height:9px;margin:8px 0;border-radius:20px;overflow:hidden;background:#27302a}.v14640-infection-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#80a83d,#d4db42,#e57c31);box-shadow:0 0 12px rgba(193,210,68,.32)}.v14640-infection small{color:#aab5a6}.v14640-room{display:grid;grid-template-columns:160px 1fr;gap:14px;align-items:stretch;padding:10px;border-radius:17px;background:rgba(255,255,255,.035)}.v14640-room-art{min-height:150px;border-radius:14px;display:grid;place-items:center;background:radial-gradient(circle at center,rgba(136,176,66,.13),rgba(0,0,0,.18));overflow:hidden}.v14640-room-art img{width:100%;height:100%;max-height:190px;object-fit:contain;padding:5px;box-sizing:border-box}.v14640-room-copy{padding:7px 4px}.v14640-room-copy h3{font-size:1.2rem;margin:3px 0 10px}.v14640-choice-grid,.v14640-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v14640-choice,.v14640-event-action{display:flex!important;flex-direction:column;align-items:flex-start!important;text-align:left;gap:4px;padding:11px!important;min-height:82px}.v14640-choice.selected{outline:2px solid rgba(188,232,100,.7);background:rgba(119,157,57,.18)}.v14640-choice b,.v14640-event-action b{color:#eef8dc}.v14640-choice span,.v14640-event-action span{font-size:.8rem;color:#adb8a8}.v14640-choice em{font-size:.72rem;color:#d0b56f;font-style:normal}.v14640-event-action.quiet{opacity:.8}.v14640-votes{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.v14640-votes span,.v14640-event-history span{font-size:.75rem;padding:5px 7px;border-radius:10px;background:rgba(255,255,255,.05);color:#b9c3b5}.v14640-event-history{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}.v14640-run-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:11px}.v14640-run-meta span{padding:8px;border-radius:11px;background:rgba(0,0,0,.18);font-size:.78rem;color:#aeb8aa}.v14640-run-meta span b{color:#a7d66e}.v14640-run-meta .unlocked{color:#d9eca5;background:rgba(98,135,50,.12)}.v14640-party{margin-top:10px}.v14640-party summary{cursor:pointer;color:#b8c6b1}.v14640-abandon{width:100%;margin-top:9px;opacity:.78}.v14640-loading{display:flex;gap:12px;align-items:center}.v14640-loading img{width:55px;height:55px;object-fit:contain}.v14640-loading b{color:#c5d7b5}@media(max-width:680px){.v14640-dungeon{padding:12px;border-radius:16px}.v14640-dungeon header>img{width:54px;height:54px}.v14640-entry-copy{align-items:flex-start}.v14640-entry-copy p{max-width:none}.v14640-key{min-width:78px;flex-direction:column;text-align:center}.v14640-nearby,.v14640-choice-grid,.v14640-event-grid{grid-template-columns:1fr}.v14640-room{grid-template-columns:1fr}.v14640-room-art{min-height:120px;max-height:180px}.v14640-run-meta{grid-template-columns:1fr}.v14640-invite{align-items:flex-start;flex-direction:column}.v14640-actions{flex-direction:column}.v14640-actions>*{width:100%}}

/* v1.146.41 — single-card mobile dungeon scene */
.v14640-instance{max-width:520px;margin:6px auto 14px;padding:9px;background:linear-gradient(180deg,rgba(11,18,13,.98),rgba(7,12,9,.99));border-radius:18px;overflow:visible}
.v14640-dungeon-top{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:2px 3px 7px}
.v14640-dungeon-top>div:first-child{display:flex;gap:6px;min-width:0;align-items:center;font-size:.78rem;white-space:nowrap}
.v14640-dungeon-top b{color:#e9f1df;overflow:hidden;text-overflow:ellipsis}.v14640-dungeon-top span{color:#a8d76e;font-variant-numeric:tabular-nums}
.v14640-dungeon-top>button{grid-column:2;grid-row:1/3;min-height:30px;padding:4px 8px;font-size:.72rem;background:rgba(255,255,255,.04);border-color:rgba(168,215,110,.18)}
.v14640-progress-dots{display:flex!important;gap:4px;align-items:center}.v14640-progress-dots i{width:6px;height:6px;border-radius:50%;background:#39443a}.v14640-progress-dots i.done{background:#a8d76e;box-shadow:0 0 6px rgba(168,215,110,.35)}
.v14640-infection-core{position:absolute;z-index:3;transform:translate(4px,42px);display:flex;align-items:center;gap:5px;pointer-events:none}.v14640-infection-core img{width:24px;height:24px;object-fit:contain;opacity:.38}.v14640-infection-core span{font-size:.62rem;color:#839083;max-width:95px;white-space:nowrap}.v14640-infection-core.tier-1 img{opacity:.62;filter:saturate(.8)}.v14640-infection-core.tier-2 img{opacity:.82;animation:v14640-core-pulse 2.2s ease-in-out infinite}.v14640-infection-core.tier-3 img{opacity:1;animation:v14640-core-pulse 1.25s ease-in-out infinite;filter:drop-shadow(0 0 5px rgba(173,209,66,.55))}.v14640-infection-core.tier-4 img{opacity:1;animation:v14640-core-max .75s ease-out 1, v14640-core-pulse 1s 1s ease-in-out infinite;filter:drop-shadow(0 0 7px rgba(213,181,57,.75))}
@keyframes v14640-core-pulse{50%{transform:scale(1.10);opacity:.66}}@keyframes v14640-core-max{25%{transform:scale(1.35) rotate(-4deg)}55%{transform:scale(.92) rotate(3deg)}}
.v14640-party-hud{width:100%;min-height:38px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px!important;margin:0 0 7px;background:rgba(255,255,255,.025)!important;border-color:rgba(255,255,255,.06)!important}
.v14640-party-hud>span{display:grid;grid-template-columns:22px 1fr 10px;gap:4px;align-items:center;min-width:0}.v14640-party-hud b{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#263729;color:#dce9d0;font-size:.68rem}.v14640-party-hud i{height:5px;border-radius:9px;background:#2b322d;overflow:hidden}.v14640-party-hud u{display:block;height:100%;background:linear-gradient(90deg,#669d43,#a7d66e);text-decoration:none}.v14640-party-hud em{font-style:normal;color:#c9ec8f;font-size:.68rem}
.v14640-party-panel,.v14640-route-panel{position:relative;z-index:5;margin:-3px 0 8px;padding:8px;border:1px solid rgba(168,215,110,.16);border-radius:13px;background:rgba(12,20,14,.98);box-shadow:0 12px 25px rgba(0,0,0,.28)}
.v14640-member{padding:7px 8px}.v14640-member>span.v14640-member-avatar{flex:0 0 30px;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#263729;color:#e7f0df}.v14640-member>div{display:grid;grid-template-columns:1fr auto;gap:2px 7px;flex:1}.v14640-member>div b{font-size:.72rem;text-transform:none}.v14640-member>div small{font-size:.65rem;color:#94a092}.v14640-member>div i{grid-column:1/3;height:4px;border-radius:8px;background:#2b322d;overflow:hidden}.v14640-member>div i u{display:block;height:100%;text-decoration:none}.v14640-member>div i.hp u{background:#7fb350}.v14640-member>div i.mp u{background:#5a89b8}.v14640-member>div em{grid-column:1/3;font-size:.61rem;font-style:normal;color:#99aa98}
.v14640-route-panel>b{display:block;margin-bottom:7px;color:#dae9ca}.v14640-route-panel span{display:flex;align-items:center;gap:7px;padding:4px 3px;color:#647066;font-size:.75rem}.v14640-route-panel span i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#1d2820;font-style:normal;font-size:.62rem}.v14640-route-panel span.done,.v14640-route-panel span.current{color:#c9d8bf}.v14640-route-panel span.current i{color:#d5ff7c;box-shadow:0 0 0 1px rgba(168,215,110,.25)}
.v14640-scene-card{overflow:hidden;border:1px solid rgba(168,215,110,.15);border-radius:18px;background:linear-gradient(180deg,rgba(25,36,26,.95),rgba(13,20,15,.99));box-shadow:0 15px 28px rgba(0,0,0,.28);animation:v14640-card-in .24s ease-out both}.v14640-scene-card.has-result{animation:v14640-card-shake .38s ease both}
@keyframes v14640-card-in{from{opacity:.6;transform:scale(.985) translateY(3px)}to{opacity:1;transform:none}}@keyframes v14640-card-shake{20%{transform:translateX(-3px)}40%{transform:translateX(3px)}65%{transform:translateX(-2px)}100%{transform:none}}
.v14640-scene-art{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/10;min-height:190px;overflow:hidden;background:radial-gradient(circle at 50% 45%,rgba(123,157,67,.17),rgba(5,9,6,.92) 72%)}.v14640-scene-art>img{width:100%;height:100%;padding:7px;box-sizing:border-box;object-fit:contain;animation:v14640-art-breathe 5s ease-in-out infinite}.v14640-scene-shade{position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(transparent,rgba(8,13,9,.88));pointer-events:none}@keyframes v14640-art-breathe{50%{transform:scale(1.025)}}
.v14640-scene-result{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(86%,360px);padding:12px 14px;border-radius:13px;background:rgba(9,15,10,.88);border:1px solid rgba(209,240,151,.3);color:#eff9df;text-align:center;font-weight:800;box-shadow:0 0 26px rgba(200,231,120,.13);animation:v14640-result .4s ease both}@keyframes v14640-result{from{opacity:0;transform:translate(-50%,-50%) scale(.88)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.v14640-scene-body{padding:12px 14px 14px;text-align:center}.v14640-scene-body>small{color:#8fb862;font-size:.64rem;font-weight:800;letter-spacing:.12em}.v14640-scene-body h2{margin:3px 0 5px;font-size:1.32rem;line-height:1.15}.v14640-scene-body>p{min-height:34px;max-width:360px;margin:0 auto 9px;color:#aeb9aa;font-size:.82rem;line-height:1.4}
.v14640-scene-choice{display:grid;grid-template-columns:38px 1fr 38px;gap:7px;align-items:center;margin-top:5px}.v14640-scene-choice>div{min-height:90px;display:flex;flex-direction:column;justify-content:center;gap:3px}.v14640-scene-choice b{color:#eff7e6;font-size:1rem}.v14640-scene-choice span{color:#b2bcb0;font-size:.78rem;line-height:1.35}.v14640-scene-choice em{color:#c6ad6d;font-size:.68rem;font-style:normal}.v14640-scene-choice small{color:#8f9c8d;font-size:.66rem;letter-spacing:.08em}.v14640-arrow{width:38px;height:52px!important;min-height:52px!important;padding:0!important;border:0!important;background:transparent!important;color:#d5eca9!important;font-size:2rem!important;line-height:1!important}.v14640-arrow:active{transform:scale(.88)}
.v14640-vote-button{margin-top:8px!important}.v14640-vote-seal{min-height:48px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid rgba(168,215,110,.18);border-radius:12px;color:#c9dfb5;background:rgba(104,139,64,.09)}.v14640-vote-seal i{display:grid;place-items:center;width:25px;height:25px;border:1px solid rgba(195,230,130,.4);border-radius:50%;font-style:normal}.v14640-scene-wait{margin:12px 0 3px;color:#96a293;font-size:.76rem}
.v14640-instance-foot{display:flex;justify-content:space-between;align-items:center;padding:8px 3px 0;color:#728074;font-size:.65rem}.v14640-instance-foot button{min-height:26px!important;padding:3px 7px!important;font-size:.62rem;opacity:.65}
@media(max-width:420px){.v14640-instance{margin-left:-3px;margin-right:-3px;padding:7px}.v14640-dungeon-top>div:first-child{font-size:.7rem}.v14640-infection-core span{display:none}.v14640-party-hud{gap:2px}.v14640-scene-art{min-height:175px}.v14640-scene-body{padding:10px 10px 12px}.v14640-scene-choice{grid-template-columns:34px 1fr 34px}.v14640-arrow{width:34px}.v14640-scene-body h2{font-size:1.18rem}}

/* v1.146.42 — compact dungeon-first redesign and dungeon battle stage */
body.v14642-dungeon-location{background:#07100b!important}
body.v14642-dungeon-location .v119-topbar{min-height:52px!important;height:52px!important;padding-top:4px!important;padding-bottom:4px!important;background:rgba(6,13,9,.96)!important}
body.v14642-dungeon-location .v119-topbar .hamburger{width:40px!important;height:40px!important;min-width:40px!important}
body.v14642-dungeon-location .v121-top-avatar-button,body.v14642-dungeon-location .v119-top-avatar{width:38px!important;height:38px!important;min-width:38px!important}
body.v14642-dungeon-location .v119-screen{width:min(100%,560px)!important;padding:5px 7px calc(88px + env(safe-area-inset-bottom))!important}
body.v14642-dungeon-location .v14640-dungeon{box-shadow:none!important}

.v14640-entry-head{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:9px}
.v14640-entry-head>img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(97,183,70,.18))}
.v14640-entry-head small{display:block;color:#9dc86a;font-size:.62rem;font-weight:800;letter-spacing:.08em}
.v14640-entry-head h2{margin:2px 0!important;font-size:1.28rem;line-height:1.08}
.v14640-entry-head p{margin:0!important;color:#899488!important;font-size:.72rem!important;line-height:1.25}
.v14640-entry-ticket{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px 10px;border:1px solid rgba(168,215,110,.12);border-radius:13px;background:rgba(255,255,255,.028)}
.v14640-entry-ticket img{width:46px;height:46px;object-fit:contain}
.v14640-entry-ticket span{display:grid;gap:2px;min-width:0}.v14640-entry-ticket b{font-size:.82rem}.v14640-entry-ticket small{color:#8f9b8c;font-size:.66rem;line-height:1.25}.v14640-entry-ticket strong{color:#d6f598;font-size:1.2rem}
.v14640-entrance{max-width:520px;margin:2px auto 0!important;padding:11px!important;border-radius:17px!important}
.v14640-entrance>.big{height:44px!important;min-height:44px!important;margin-top:9px!important;padding:8px 14px!important;font-size:.86rem!important}
.v14640-entrance .v14640-warning{margin:8px 0 0;padding:9px 11px;font-size:.73rem;line-height:1.3}
.v14640-lobby-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.026)}
.v14640-lobby-head>div{display:flex;gap:7px;align-items:baseline;min-width:0}.v14640-lobby-head small{color:#91bd60;font-size:.58rem;font-weight:900;letter-spacing:.1em}.v14640-lobby-head b{font-size:.73rem;white-space:nowrap}.v14640-lobby-head em{font-style:normal;color:#d4e8bf;font-size:.78rem;font-variant-numeric:tabular-nums}
.v14640-members{gap:5px!important;margin:6px 0!important}.v14640-member{min-height:42px;padding:5px 7px!important;border-radius:10px!important}.v14640-member>span.v14640-member-avatar{flex-basis:32px!important;width:32px!important;height:32px!important;overflow:hidden!important}.v14640-member-avatar :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 20%!important}.v14640-member>div{line-height:1.05}.v14640-member>div b{font-size:.69rem!important}.v14640-member>div small,.v14640-member>div em{font-size:.56rem!important}.v14640-member>div i{height:3px!important}.v14640-member .v14640-mini{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important}
.v14640-nearby-panel{margin:6px 0;border:1px solid rgba(255,255,255,.06);border-radius:11px;background:rgba(0,0,0,.12);overflow:hidden}.v14640-nearby-panel summary{display:flex;justify-content:space-between;padding:8px 9px;color:#b9c7b4;font-size:.68rem;cursor:pointer}.v14640-nearby-panel summary span{color:#bfe183}.v14640-nearby{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding:0 7px 7px}.v14640-nearby button{min-height:38px!important;padding:6px 8px!important}.v14640-nearby button span{font-size:.68rem}.v14640-nearby button small{font-size:.56rem}
.v14640-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;margin-top:7px!important}.v14640-actions .big{height:44px!important;min-height:44px!important;padding:7px 12px!important;font-size:.82rem!important}.v14640-secondary{width:auto!important;min-height:38px!important;padding:6px 10px!important;font-size:.65rem!important;opacity:.72}.v14640-caption{margin:5px 0 0;text-align:center;color:#748075;font-size:.58rem}

.v14640-instance{margin:0 auto!important;padding:6px!important;border:0!important;border-radius:15px!important;background:linear-gradient(180deg,rgba(9,17,11,.98),rgba(5,11,7,.99))!important}
.v14640-dungeon-top{grid-template-columns:minmax(0,1fr) auto auto!important;gap:3px 6px!important;padding:1px 2px 5px!important}
.v14640-run-title{display:flex!important;align-items:baseline!important;gap:6px!important;min-width:0}.v14640-run-title b{font-size:.75rem}.v14640-run-title span{font-size:.7rem;color:#9dcc67!important}
.v14640-dungeon-top>button{grid-column:3!important;grid-row:1!important;height:28px!important;min-height:28px!important;padding:3px 7px!important;font-size:.62rem!important}
.v14640-progress-dots{grid-column:1/-1!important;grid-row:2!important;justify-content:center!important;height:8px}.v14640-progress-dots i{width:5px!important;height:5px!important}
.v14640-infection-core{position:static!important;z-index:auto!important;transform:none!important;display:grid!important;grid-template-columns:20px auto!important;grid-template-rows:1fr!important;gap:3px!important;align-items:center!important;pointer-events:none!important}.v14640-infection-core img{grid-row:1;width:20px!important;height:20px!important}.v14640-infection-core b{color:#d7ed9f;font-size:.7rem;font-variant-numeric:tabular-nums}.v14640-infection-core span{display:none!important}
.v14640-party-hud{min-height:34px!important;height:34px!important;gap:4px!important;margin:0 0 5px!important;padding:3px 4px!important;border-radius:10px!important}.v14640-party-hud>span{grid-template-columns:25px minmax(0,1fr) 8px!important;gap:3px!important}.v14640-party-hud b{width:25px!important;height:25px!important;overflow:hidden!important;border-radius:7px!important}.v14640-party-hud b :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 20%!important}.v14640-party-hud>span.empty{opacity:.3}.v14640-party-hud>span.empty b{font-size:.75rem}.v14640-party-hud i{height:4px!important}.v14640-party-hud em{font-size:.58rem!important}
.v14640-party-panel,.v14640-route-panel{margin:-1px 0 5px!important;padding:6px!important;border-radius:11px!important;box-shadow:0 8px 18px rgba(0,0,0,.25)!important}.v14640-route-panel>b{margin-bottom:3px!important;font-size:.72rem}.v14640-route-panel span{padding:3px 2px!important;font-size:.66rem!important}.v14640-route-panel span i{width:16px!important;height:16px!important}
.v14640-scene-card{border-radius:15px!important;box-shadow:0 10px 22px rgba(0,0,0,.25)!important}
.v14640-scene-art{aspect-ratio:2/1!important;min-height:148px!important;max-height:190px!important;background:radial-gradient(circle at 50% 44%,rgba(123,157,67,.13),rgba(4,8,5,.95) 76%)!important}.v14640-scene-art>img{padding:3px!important;transform:scale(1.04);animation:v14640-art-breathe 5s ease-in-out infinite!important}.v14640-scene-shade{height:30%!important}
.v14640-scene-result{padding:9px 11px!important;font-size:.82rem!important}
.v14640-scene-body{padding:8px 10px 10px!important}.v14640-scene-body>small{font-size:.54rem!important}.v14640-scene-body h2{margin:2px 0 3px!important;font-size:1.08rem!important}.v14640-scene-body>p{min-height:0!important;margin:0 auto 5px!important;font-size:.7rem!important;line-height:1.28!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.v14640-scene-choice{grid-template-columns:32px minmax(0,1fr) 32px!important;gap:4px!important;margin-top:2px!important}.v14640-scene-choice>div{min-height:67px!important;gap:2px!important}.v14640-scene-choice b{font-size:.86rem!important}.v14640-scene-choice span{font-size:.67rem!important;line-height:1.25!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.v14640-scene-choice em{font-size:.59rem!important}.v14640-scene-choice small{font-size:.56rem!important}.v14640-arrow{width:32px!important;height:46px!important;min-height:46px!important;font-size:1.65rem!important}
.v14640-vote-button,.v14640-scene-body>.big{height:43px!important;min-height:43px!important;margin-top:5px!important;padding:7px 12px!important;font-size:.78rem!important}.v14640-vote-seal{min-height:41px!important;margin-top:5px!important;font-size:.72rem!important}.v14640-vote-seal i{width:22px!important;height:22px!important}.v14640-scene-wait{margin:7px 0 2px!important;font-size:.66rem!important}.v14640-instance-foot{padding:5px 2px 0!important;font-size:.56rem!important}.v14640-instance-foot button{height:24px!important;min-height:24px!important}

@media(max-width:380px){.v14640-entry-head{grid-template-columns:47px minmax(0,1fr)}.v14640-entry-head>img{width:47px;height:47px}.v14640-entry-head h2{font-size:1.15rem}.v14640-scene-art{min-height:142px!important}.v14640-nearby{grid-template-columns:1fr!important}}


/* Result stays focused and scrolls only its rewards, instead of becoming a full-screen sheet. */
@media(max-width:560px){body.v119-ui .modal.v98-result-modal{width:calc(100vw - 14px)!important;height:min(72dvh,560px)!important;max-height:calc(100dvh - 18px)!important;padding:10px!important;border-radius:18px!important}body.v119-ui .v98-result-modal>h1{font-size:19px!important;margin:0 40px 5px 0!important}body.v119-ui .v98-result-modal .modal-close{top:7px!important;right:7px!important;width:34px!important;height:34px!important}body.v119-ui .v99-result header{min-height:58px!important;grid-template-columns:42px minmax(0,1fr)!important;padding:7px!important}body.v119-ui .v99-result header .v78-result-icon{width:40px!important;height:40px!important}body.v119-ui .v99-result header .v78-result-icon :where(svg,img){width:25px!important;height:25px!important}body.v119-ui .v99-result header h2{font-size:19px!important}body.v119-ui .v96-result-footer button{height:43px!important}}

/* v1.146.43 — expedition HUD, narrative moments and one-hand scene controls */
.v14643-entrance-nav{display:grid;grid-template-columns:68px minmax(0,1fr) minmax(140px,.85fr);gap:10px;align-items:center;max-width:520px;margin:4px auto 7px;padding:7px 9px;border:1px solid rgba(154,194,95,.16);border-radius:14px;background:linear-gradient(100deg,rgba(13,24,16,.97),rgba(10,17,12,.96)),var(--v119-location-bg);background-size:cover;color:#eaf3df;overflow:hidden}.v14643-entrance-nav-art{width:64px;height:46px;border-radius:10px;overflow:hidden}.v14643-entrance-nav-art :where(img,.v1350-current-location-art){width:100%!important;height:100%!important;object-fit:cover!important}.v14643-entrance-nav>div:nth-child(2){display:grid;gap:1px}.v14643-entrance-nav small{color:#8eb85f;font-size:.52rem;font-weight:900;letter-spacing:.1em}.v14643-entrance-nav b{font-size:.8rem}.v14643-entrance-nav .v119-map-button{width:max-content;min-height:25px!important;margin:2px 0 0!important;padding:2px 7px!important;font-size:.57rem!important}.v14643-entrance-nav nav{display:flex;justify-content:flex-end;gap:5px;overflow:auto}.v14643-entrance-nav nav button{min-height:30px!important;padding:4px 8px!important;font-size:.61rem!important;white-space:nowrap}
.v14643-entrance,.v14643-instance{position:relative;max-width:520px!important;margin:0 auto 12px!important;padding:8px!important;border:0!important;border-radius:16px!important;background:linear-gradient(180deg,#0b1510,#07100b)!important;overflow:visible}.v14643-entry-title{display:grid!important;grid-template-columns:50px 1fr!important;gap:9px!important;margin:0 0 7px!important;padding:3px!important}.v14643-entry-title>img{width:48px!important;height:48px!important}.v14643-entry-title small{color:#8fba60!important;font-size:.54rem!important;font-weight:900;letter-spacing:.08em}.v14643-entry-title h2{margin:1px 0!important;font-size:1.16rem!important}.v14643-entry-title p{margin:0!important;color:#8e9a8c!important;font-size:.64rem!important}.v14643-map-ticket{display:grid;grid-template-columns:52px 1fr auto;gap:8px;align-items:center;padding:7px 10px;border:1px solid rgba(169,214,103,.13);border-radius:13px;background:rgba(255,255,255,.025)}.v14643-map-ticket img{width:50px;height:50px;object-fit:contain}.v14643-map-ticket span{display:grid}.v14643-map-ticket b{font-size:.78rem}.v14643-map-ticket small{color:#8c978a;font-size:.6rem}.v14643-map-ticket strong{color:#d5f591;font-size:1.12rem}.v14643-notice{margin:7px 0;padding:8px 10px;border:1px solid rgba(179,204,126,.12);border-radius:10px;background:rgba(255,255,255,.025);color:#aeb9aa;font-size:.67rem;text-align:center}.v14643-notice.error{border-color:rgba(220,94,70,.28);color:#edb1a4}.v14643-link{display:block;margin:5px auto 0!important;min-height:27px!important;padding:3px 8px!important;border:0!important;background:transparent!important;font-size:.59rem!important;opacity:.68}
.v14643-lobby-title{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0 0 5px!important;padding:6px 8px!important;border-radius:11px;background:rgba(255,255,255,.025)}.v14643-lobby-title span{display:flex;gap:7px;align-items:baseline}.v14643-lobby-title small{color:#8fba60!important;font-size:.53rem!important;font-weight:900}.v14643-lobby-title b{font-size:.72rem}.v14643-lobby-title em{color:#d4e7c0;font-size:.7rem;font-style:normal;font-variant-numeric:tabular-nums}.v14643-lobby-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.v14643-member{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:6px;align-items:center;min-height:48px;padding:5px 6px;border:1px solid rgba(255,255,255,.045);border-radius:11px;background:rgba(255,255,255,.025)}.v14643-member-art{display:block;width:34px;height:36px;border-radius:9px;background:#203026;overflow:hidden}.v14643-member-art :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 20%!important}.v14643-member>div{display:grid;gap:1px;min-width:0}.v14643-member b{overflow:hidden;color:#e6eee0;font-size:.67rem;text-overflow:ellipsis;white-space:nowrap}.v14643-member small,.v14643-member em{overflow:hidden;color:#859183;font-size:.52rem;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.v14643-member em{color:#9fbd82}.v14643-member>button{width:24px!important;height:24px!important;min-height:24px!important;padding:0!important}.v14643-vital{display:block;height:3px;border-radius:6px;background:#28312b;overflow:hidden}.v14643-vital i{display:block;height:100%;background:#78ac51}.v14643-vital.mp i{background:#5682ae}.v14643-nearby{margin:6px 0;border:1px solid rgba(255,255,255,.05);border-radius:11px;background:rgba(0,0,0,.12);overflow:hidden}.v14643-nearby summary{padding:7px 9px;color:#abb7a7;font-size:.62rem;cursor:pointer}.v14643-nearby summary b{float:right;color:#b8dd78}.v14643-nearby>button{display:grid!important;grid-template-columns:1fr auto!important;width:100%;min-height:36px!important;padding:5px 8px!important;text-align:left}.v14643-nearby>button span{font-size:.65rem}.v14643-nearby>button small{grid-row:2;color:#839080;font-size:.52rem}.v14643-nearby>button b{grid-row:1/3;grid-column:2;align-self:center}.v14643-nearby>p{padding:0 8px;color:#849082;font-size:.6rem}.v14643-invites{display:grid;gap:4px;margin-bottom:6px}.v14643-invites>b{font-size:.65rem}.v14643-invites article{display:grid;grid-template-columns:1fr auto auto;gap:5px;align-items:center;padding:6px;border-radius:10px;background:rgba(111,150,64,.1)}.v14643-invites span{display:grid}.v14643-invites strong{font-size:.66rem}.v14643-invites small{color:#8d9989;font-size:.52rem}.v14643-invites button{min-height:28px!important;padding:3px 7px!important;font-size:.58rem!important}
.v14643-runbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:3px 7px!important;align-items:center!important;margin:0!important;padding:2px 3px 5px!important}.v14643-runbar>span{display:flex;gap:6px;align-items:baseline}.v14643-runbar>span b{font-size:.73rem}.v14643-runbar>span small{color:#a8d66f;font-size:.66rem}.v14643-progress{grid-column:1;display:flex;gap:3px}.v14643-progress i{width:5px;height:5px;border-radius:50%;background:#303b33}.v14643-progress i.done{background:#9bc864;box-shadow:0 0 5px rgba(155,200,100,.35)}.v14643-infection{grid-row:1;grid-column:2;display:grid;grid-template-columns:20px auto;align-items:center;gap:0 3px}.v14643-infection img{grid-row:1/3;width:20px;height:20px;object-fit:contain;opacity:.42}.v14643-infection b{font-size:.67rem}.v14643-infection small{color:#7f8d7d;font-size:.48rem}.v14643-infection.tier-2 img,.v14643-infection.tier-3 img,.v14643-infection.tier-4 img{opacity:1;animation:v14640-core-pulse 1.6s ease-in-out infinite}.v14643-runbar nav{grid-column:2;display:flex;gap:3px}.v14643-runbar nav button{min-height:24px!important;padding:2px 5px!important;font-size:.52rem!important}
.v14643-party-hud{display:grid!important;grid-template-columns:repeat(4,1fr);gap:4px;width:100%;height:32px;min-height:32px!important;margin:0 0 5px;padding:3px 4px!important;border-color:rgba(255,255,255,.05)!important;background:rgba(255,255,255,.02)!important}.v14643-party-hud>span{display:grid;grid-template-columns:23px 1fr 8px;gap:3px;align-items:center;min-width:0}.v14643-party-hud>span>:where(img,.class-asset-image),.v14643-party-hud>span>span{width:23px!important;height:24px!important;border-radius:7px;object-fit:cover!important;object-position:50% 20%;overflow:hidden}.v14643-party-hud>span i{height:4px;border-radius:5px;background:#29322c;overflow:hidden}.v14643-party-hud>span u{display:block;height:100%;background:#7caf52}.v14643-party-hud em{color:#cbe796;font-size:.55rem;font-style:normal}.v14643-party-hud .empty{opacity:.25}.v14643-party-hud .empty b{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#263129}.v14643-party-drawer,.v14643-drawer{position:relative;z-index:12;margin:-1px 0 5px;padding:6px;border:1px solid rgba(160,202,97,.15);border-radius:12px;background:#0d1811;box-shadow:0 12px 25px rgba(0,0,0,.35)}.v14643-party-drawer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.v14643-party-drawer .v14643-member{min-height:44px}.v14643-drawer header{display:flex!important;justify-content:space-between!important;margin:0 0 5px!important}.v14643-drawer header b{font-size:.7rem}.v14643-drawer header button{width:25px;height:25px;min-height:25px!important;padding:0!important}.v14643-route>span{display:flex;gap:7px;align-items:center;padding:3px;color:#647068;font-size:.62rem}.v14643-route>span i{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#1d2921;font-style:normal}.v14643-route>span.current,.v14643-route>span.done{color:#b9cbb1}.v14643-chronicle{max-height:270px;overflow:auto}.v14643-chronicle article{display:grid;grid-template-columns:38px 1fr;gap:7px;padding:5px 2px;border-top:1px solid rgba(255,255,255,.045)}.v14643-chronicle article img{width:38px;height:38px;object-fit:contain}.v14643-chronicle article div{display:grid;gap:1px}.v14643-chronicle article b{font-size:.64rem}.v14643-chronicle article p{margin:0;color:#8d998b;font-size:.55rem;line-height:1.3}
.v14643-scene{overflow:hidden;border:1px solid rgba(161,204,98,.14);border-radius:16px;background:linear-gradient(180deg,#17251a,#0b1510);box-shadow:0 12px 24px rgba(0,0,0,.27);animation:v14640-card-in .25s ease-out}.v14643-scene-art{position:relative;display:grid;place-items:center;width:100%;height:clamp(154px,36vw,194px);overflow:hidden;background:radial-gradient(circle,rgba(119,158,63,.14),#050a07 74%)}.v14643-scene-art .background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.86) contrast(1.03)}.v14643-scene-art .object{position:relative;z-index:2;width:86%;height:94%;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.45));animation:v14640-art-breathe 5s ease-in-out infinite}.v14643-scene-art.has-bg .object{width:48%;height:72%;align-self:end}.v14643-scene-art>span{position:absolute;z-index:3;inset:0;background:linear-gradient(180deg,rgba(4,8,5,.04) 45%,rgba(7,12,8,.72));pointer-events:none}.v14643-scene-copy{padding:8px 10px 10px;text-align:center}.v14643-scene-copy>small{color:#8eb75f;font-size:.51rem;font-weight:900;letter-spacing:.12em}.v14643-scene-copy h2{margin:2px 0!important;font-size:1.06rem!important}.v14643-scene-copy>p{display:-webkit-box;max-width:380px;min-height:0;margin:0 auto 4px;color:#aab5a7;font-size:.67rem;line-height:1.3;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.v14643-choice{display:grid;grid-template-columns:31px 1fr 31px;gap:4px;align-items:center}.v14643-choice>button{height:45px!important;min-height:45px!important;padding:0!important;border:0!important;background:transparent!important;color:#d9efae!important;font-size:1.55rem!important}.v14643-choice>div{display:grid;gap:1px;min-height:62px;align-content:center}.v14643-choice b{font-size:.82rem}.v14643-choice p{display:-webkit-box;margin:0;color:#a0ab9d;font-size:.61rem;line-height:1.25;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.v14643-choice em{color:#cfb571;font-size:.53rem;font-style:normal}.v14643-choice small{color:#849180;font-size:.52rem;letter-spacing:.06em}.v14643-scene-copy>.big{height:41px!important;min-height:41px!important;margin-top:4px!important;padding:6px 12px!important;font-size:.75rem!important}.v14643-vote-seal{display:flex;justify-content:center;align-items:center;gap:7px;height:39px;margin-top:4px;border:1px solid rgba(171,214,105,.16);border-radius:11px;background:rgba(108,147,63,.08);color:#c7dda9;font-size:.67rem}.v14643-vote-seal i{display:grid;place-items:center;width:21px;height:21px;border:1px solid rgba(190,225,132,.35);border-radius:50%;font-style:normal}.v14643-instance-foot{display:flex;justify-content:space-between;align-items:center;padding:5px 2px 0;color:#6f7c71;font-size:.53rem}.v14643-instance-foot button{height:23px!important;min-height:23px!important;padding:2px 6px!important;font-size:.52rem!important;opacity:.65}
.v14643-moment{position:absolute;z-index:20;inset:8px;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:1px 10px;align-content:center;padding:14px;border:1px solid rgba(199,232,140,.28);border-radius:15px;background:linear-gradient(145deg,rgba(14,25,16,.97),rgba(7,12,9,.985));box-shadow:0 18px 38px rgba(0,0,0,.52);text-align:left;animation:v14643-moment-in .34s cubic-bezier(.2,.8,.2,1)}.v14643-moment>img{grid-row:1/5;width:56px;height:70px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(0,0,0,.45))}.v14643-moment>small{color:#9ec86d;font-size:.5rem;font-weight:900;letter-spacing:.13em}.v14643-moment>h3{margin:1px 22px 1px 0!important;font-size:.91rem}.v14643-moment>p{margin:0;color:#b0baad;font-size:.62rem;line-height:1.35}.v14643-moment>.primary{width:max-content;min-height:29px!important;margin-top:6px;padding:4px 10px!important;font-size:.59rem!important}.v14643-moment>button:first-child{position:absolute;top:6px;right:6px;width:25px;height:25px;min-height:25px!important;padding:0!important;background:transparent!important}.v14643-moment.warning{border-color:rgba(222,174,74,.35)}.v14643-moment.error{border-color:rgba(220,91,69,.4)}@keyframes v14643-moment-in{from{opacity:0;transform:scale(.92)}55%{transform:scale(1.015)}to{opacity:1;transform:none}}
@media(max-width:520px){.v14643-entrance-nav{grid-template-columns:58px minmax(0,1fr);margin-left:0;margin-right:0}.v14643-entrance-nav-art{width:55px}.v14643-entrance-nav nav{grid-column:1/-1;justify-content:flex-start}.v14643-lobby-grid,.v14643-party-drawer{grid-template-columns:1fr 1fr}.v14643-scene-art{height:155px}.v14643-scene-art.has-bg .object{width:56%}}
@media(max-width:370px){.v14643-lobby-grid,.v14643-party-drawer{grid-template-columns:1fr}.v14643-member{min-height:43px}.v14643-scene-art{height:145px}.v14643-runbar>span b{font-size:.66rem}.v14643-runbar nav button{padding:2px 4px!important}.v14643-moment{grid-template-columns:45px 1fr;padding:11px}.v14643-moment>img{width:45px;height:58px}}

/* Dungeon battle readability: larger creatures, compact categorized log and visible stacks. */

/* v1.146.44 — roomy one-hand dungeon scene, 15-room track and readable party vitals. */
body.v14642-dungeon-location .v119-location-hero{max-width:520px;margin:4px auto 10px}
.v14643-entrance,.v14643-instance{width:min(100%,520px)!important;padding:10px!important;border:1px solid rgba(166,205,105,.1)!important;border-radius:20px!important;background:linear-gradient(180deg,rgba(12,23,16,.98),rgba(6,13,9,.99))!important;box-shadow:0 14px 34px rgba(0,0,0,.25)}
.v14643-entry-title{grid-template-columns:58px 1fr!important;gap:11px!important;padding:7px!important}.v14643-entry-title>img{width:56px!important;height:56px!important}.v14643-entry-title p{font-size:.69rem!important;line-height:1.35}.v14643-map-ticket{grid-template-columns:64px minmax(0,1fr) auto;min-height:78px;padding:9px 11px;border-radius:16px;background:linear-gradient(110deg,rgba(62,76,52,.18),rgba(25,34,26,.5))}.v14643-map-ticket img{width:62px;height:62px}.v14643-map-ticket b{font-size:.84rem}.v14643-map-ticket small{font-size:.61rem;line-height:1.3}.v14643-map-ticket strong{padding:5px 8px;border-radius:10px;background:rgba(155,196,94,.08)}
.v14643-lobby-title{min-height:44px!important;padding:8px 10px!important}.v14643-lobby-grid{gap:7px}.v14643-member{min-height:61px;padding:7px 8px;border-radius:14px}.v14643-member-art{width:40px;height:44px}.v14643-member b{font-size:.72rem}.v14643-member small,.v14643-member em{font-size:.56rem}.v14643-vital{height:4px}.v14643-nearby{margin-top:8px;border-radius:14px}.v14643-invites article{min-height:54px;padding:8px 9px;border:1px solid rgba(161,202,96,.14);border-radius:14px;background:linear-gradient(110deg,rgba(94,130,57,.14),rgba(22,33,24,.68))}
.v14643-runbar{grid-template-columns:minmax(0,1fr) auto!important;gap:5px 8px!important;padding:3px 3px 7px!important}.v14643-runbar>span b{font-size:.79rem}.v14643-runbar>span small{font-size:.7rem}.v14643-progress{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(15,minmax(4px,1fr));gap:3px;width:100%}.v14643-progress i{width:auto;height:5px;border-radius:4px}.v14643-runbar nav{grid-row:1;grid-column:2}.v14643-infection{grid-row:1!important;grid-column:1!important;justify-self:end;margin-right:116px}
.v14644-party-hud{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;height:58px!important;min-height:58px!important;margin:0 0 8px!important;padding:5px!important;border-radius:14px!important}.v14644-party-hud>.v14644-hud-member{display:grid!important;grid-template-columns:30px minmax(0,1fr) 9px!important;gap:4px!important;align-items:center!important;min-width:0}.v14644-party-hud>.v14644-hud-member>:where(img,.class-asset-image),.v14644-party-hud>.v14644-hud-member>span:first-child{width:30px!important;height:44px!important;border-radius:9px;object-fit:cover!important;object-position:50% 20%;overflow:hidden}.v14644-hud-copy{display:grid;gap:3px;min-width:0}.v14644-hud-copy>b{overflow:hidden;color:#dcebd2;font-size:.56rem;text-align:left;text-overflow:ellipsis;white-space:nowrap}.v14644-hud-copy>i{display:block!important;width:100%!important;height:5px!important;border-radius:6px!important;background:#253029!important;overflow:hidden}.v14644-hud-copy>i u{display:block;height:100%;background:linear-gradient(90deg,#528f47,#91c863)}.v14644-hud-copy>i.mp u{background:linear-gradient(90deg,#455f9e,#6b96ce)}.v14644-party-hud em{font-size:.58rem}.v14644-party-hud>.empty{display:grid!important;place-items:center;align-content:center;gap:2px!important;opacity:.32}.v14644-party-hud>.empty b{width:26px;height:26px}.v14644-party-hud>.empty small{font-size:.48rem}
.v14643-scene{border-radius:19px;box-shadow:0 14px 30px rgba(0,0,0,.32)}.v14643-scene-art{height:clamp(205px,48vw,250px)!important;background:radial-gradient(circle at 50% 45%,rgba(113,151,66,.16),#050a07 76%)}.v14643-scene-art .object{width:90%;height:96%;object-fit:contain}.v14643-scene-art.has-bg .object{width:56%;height:78%}.v14643-scene-copy{padding:10px 12px 12px}.v14643-scene-copy h2{font-size:1.18rem!important;margin:3px 0!important}.v14643-scene-copy>p{max-width:400px;margin-bottom:7px;font-size:.72rem;line-height:1.4}.v14643-choice{grid-template-columns:38px 1fr 38px;gap:6px}.v14643-choice>button{height:58px!important;min-height:58px!important;font-size:1.8rem!important}.v14643-choice>div{min-height:74px}.v14643-choice b{font-size:.88rem}.v14643-choice p{font-size:.65rem}.v14643-choice em,.v14643-choice small{font-size:.56rem}.v14643-scene-copy>.big{height:45px!important;min-height:45px!important;font-size:.79rem!important}.v14643-vote-seal{height:43px}.v14643-instance-foot{padding-top:7px}
@media(max-width:390px){.v14643-entrance,.v14643-instance{padding:7px!important}.v14643-runbar nav button{font-size:.49rem!important}.v14643-infection{margin-right:103px}.v14644-party-hud{grid-template-columns:repeat(2,minmax(0,1fr))!important;height:104px!important;min-height:104px!important}.v14644-party-hud>.v14644-hud-member>:where(img,.class-asset-image),.v14644-party-hud>.v14644-hud-member>span:first-child{height:40px!important}.v14643-scene-art{height:210px!important}.v14643-lobby-grid{grid-template-columns:1fr!important}}

/* Secret room can add a sixteenth segment without wrapping or clipping. */
.v14643-progress{display:flex!important;grid-template-columns:none!important}.v14643-progress i{flex:1 1 4px!important;min-width:3px!important}

/* ===== css/v14644-patrons.css ===== */
.v14644-player-title{display:inline-block!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;margin:0 4px 0 0!important;object-fit:contain!important;vertical-align:-5px!important;filter:drop-shadow(0 1px 3px rgba(79,101,210,.45))}.v14644-hall{position:relative;width:min(100%,560px);min-height:620px;margin:0 auto 14px;padding:12px;border:1px solid rgba(213,174,85,.22);border-radius:22px;background:linear-gradient(180deg,rgba(6,10,18,.3),rgba(7,8,13,.96) 34%),var(--patron-bg) center top/100% auto no-repeat;box-shadow:0 18px 40px rgba(0,0,0,.35);color:#e8e2d7;overflow:hidden}.v14644-hall.loading{display:grid;place-items:center;min-height:440px}.v14644-hall>header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;min-height:170px;padding:13px;border-radius:17px;background:linear-gradient(180deg,rgba(5,8,15,.28),rgba(7,9,15,.72));text-shadow:0 2px 8px #000}.v14644-hall>header small,.v14644-vip-card small,.v14644-product-card small{color:#d4b96f;font-size:.54rem;font-weight:900;letter-spacing:.13em}.v14644-hall>header h1{margin:3px 0 5px!important;font-size:1.42rem!important;letter-spacing:.035em}.v14644-hall>header p{max-width:340px;margin:0;color:#c2bdba;font-size:.67rem;line-height:1.45}.v14644-hall>header aside{display:grid;gap:5px;justify-items:end}.v14644-hall>header aside b{display:flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid rgba(223,189,102,.22);border-radius:12px;background:rgba(8,8,14,.62);font-size:.69rem;white-space:nowrap}.v14644-hall>header aside img{width:22px;height:22px;object-fit:contain}.v14644-hall>header aside span{color:#aaa5bb;font-size:.57rem}.v14644-character-select{display:flex;justify-content:space-between;align-items:center;margin:8px 0 7px;padding:7px 9px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(8,10,15,.8)}.v14644-character-select span{color:#aaa6ad;font-size:.61rem}.v14644-character-select select{max-width:62%;height:31px;border-radius:9px;background:#171923;color:#e5dfd3;font-size:.64rem}.v14644-tabs{display:flex;gap:4px;margin-bottom:8px;padding:3px;overflow:auto;scrollbar-width:none}.v14644-tabs button{flex:0 0 auto;min-height:32px!important;padding:5px 9px!important;border-color:transparent!important;background:rgba(255,255,255,.035)!important;color:#a9a5ad!important;font-size:.59rem!important}.v14644-tabs button.active{border-color:rgba(216,181,94,.28)!important;background:linear-gradient(180deg,rgba(190,145,61,.2),rgba(90,67,25,.12))!important;color:#f0d995!important}.v14644-hall>main{display:grid;gap:8px}.v14644-vip-card{display:grid;grid-template-columns:66px minmax(0,1fr);gap:9px;padding:10px;border:1px solid rgba(211,178,92,.2);border-radius:17px;background:linear-gradient(120deg,rgba(54,44,83,.5),rgba(20,20,31,.9));box-shadow:inset 0 1px rgba(255,255,255,.04)}.v14644-vip-card>img{grid-row:1/4;width:64px;height:70px;object-fit:contain}.v14644-vip-card h2{margin:2px 0!important;font-size:1.05rem!important}.v14644-vip-card p{margin:0;color:#bcb7bf;font-size:.63rem;line-height:1.45}.v14644-price-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.v14644-vip-card>.v14644-price-actions{grid-column:2}.v14644-price-actions button{min-height:34px!important;padding:5px 10px!important;font-size:.63rem!important}.v14644-vip-card>.v14644-gift{grid-column:1/-1;min-height:38px!important}.v14644-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v14644-product-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:7px;align-content:start;min-height:150px;padding:8px;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:linear-gradient(145deg,rgba(29,28,38,.94),rgba(13,14,20,.96))}.v14644-product-card>img{width:48px;height:54px;object-fit:contain}.v14644-product-card h3{margin:1px 0!important;font-size:.77rem!important}.v14644-product-card p{display:-webkit-box;margin:0;color:#aaa6ae;font-size:.57rem;line-height:1.35;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.v14644-product-card>.v14644-price-actions{grid-column:1/-1;align-self:end}.v14644-token-grid{display:grid;gap:6px}.v14644-token-card{display:grid;grid-template-columns:48px 1fr auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid rgba(211,178,92,.14);border-radius:14px;background:rgba(16,16,24,.9)}.v14644-token-card>img{width:46px;height:46px;object-fit:contain}.v14644-token-card span{display:grid}.v14644-token-card b{font-size:.75rem}.v14644-token-card del{color:#736e75;font-size:.55rem}.v14644-token-card strong{color:#dfc77f;font-size:.68rem}.v14644-token-card button{min-height:35px!important;font-size:.62rem!important}.v14644-hall>footer{display:flex;gap:4px;align-items:center;margin-top:9px;padding-top:8px;border-top:1px solid rgba(255,255,255,.06);overflow:auto}.v14644-hall>footer button{flex:0 0 auto;min-height:29px!important;padding:4px 7px!important;border:0!important;background:transparent!important;color:#9995a0!important;font-size:.55rem!important}.v14644-hall>footer span{margin-left:auto;color:#967a47;font-size:.48rem;white-space:nowrap}.v14644-drawer{position:absolute;z-index:12;inset:12px;max-height:calc(100% - 24px);padding:10px;border:1px solid rgba(212,177,90,.2);border-radius:17px;background:rgba(9,10,16,.985);box-shadow:0 18px 35px rgba(0,0,0,.55);overflow:auto}.v14644-drawer>header{display:flex;justify-content:space-between;align-items:center;min-height:auto;padding:0 0 8px;background:none}.v14644-drawer>header h3{margin:0!important}.v14644-drawer>header button{width:30px;height:30px;min-height:30px!important;padding:0!important}.v14644-drawer>article,.v14644-owned article{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:center;padding:8px;border-top:1px solid rgba(255,255,255,.06)}.v14644-drawer article span{display:grid}.v14644-drawer article b{font-size:.67rem}.v14644-drawer article small,.v14644-drawer article em{color:#908c95;font-size:.53rem;font-style:normal}.v14644-owned{display:grid}.v14644-owned article{grid-template-columns:44px 1fr auto}.v14644-owned img{width:42px;height:44px;object-fit:contain}.v14644-owned span{display:grid}.v14644-owned button{min-height:31px!important;font-size:.56rem!important}.v14644-rules details{padding:7px;border-bottom:1px solid rgba(255,255,255,.05)}.v14644-rules summary{font-size:.65rem}.v14644-rules summary small{color:#8c8295}.v14644-rules p{color:#aaa6af;font-size:.59rem;line-height:1.45}.v14644-rules time{color:#726e77;font-size:.52rem}.v14644-rules>.primary{width:100%;margin-top:9px}.v14644-modal{position:fixed;z-index:9000;inset:0;display:grid;place-items:center;padding:12px;background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}.v14644-modal>article{position:relative;display:grid;gap:7px;width:min(100%,410px);max-height:88dvh;padding:14px;border:1px solid rgba(218,183,96,.24);border-radius:19px;background:linear-gradient(145deg,#181722,#0b0c12);box-shadow:0 22px 55px rgba(0,0,0,.6);overflow:auto}.v14644-modal>article>button:first-child{position:absolute;top:7px;right:7px;width:31px;height:31px;min-height:31px!important;padding:0!important}.v14644-modal>article>img{width:76px;height:76px;margin:auto;object-fit:contain}.v14644-modal h3{margin:0!important;text-align:center}.v14644-modal>article>small{color:#d2b86c;font-size:.52rem;font-weight:900;letter-spacing:.12em;text-align:center}.v14644-modal p,.v14644-modal li{color:#aaa6ae;font-size:.63rem;line-height:1.4}.v14644-modal strong{color:#ead48f;text-align:center}.v14644-modal em{color:#928e97;font-size:.59rem;font-style:normal;text-align:center}.v14644-modal label{display:flex;gap:7px;align-items:flex-start;color:#b5b0b9;font-size:.58rem}.v14644-modal footer{display:grid;grid-template-columns:1fr 1fr;gap:7px}.v14644-preview-card{display:grid;align-content:end;min-height:220px;padding:14px;border-radius:15px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.75)),var(--patron-card) center/cover;color:#fff}.v14644-preview-card b{font-size:.85rem}.v14644-preview-card small{color:#d0cbd3}.v14644-preview-message{position:relative;min-height:92px;padding:12px 50px 12px 12px;border-radius:14px;background:linear-gradient(90deg,rgba(0,0,0,.4),transparent),var(--patron-message) center/cover;color:#f3eff5}.v14644-preview-message b{font-size:.68rem}.v14644-preview-message p{margin:5px 0!important;color:#e4dfe7!important}.v14644-preview-message time{position:absolute;right:9px;bottom:7px;color:#aaa5ae;font-size:.51rem}
@media(max-width:390px){.v14644-hall{padding:7px;border-radius:17px}.v14644-hall>header{grid-template-columns:1fr;min-height:190px;padding:10px}.v14644-hall>header aside{grid-auto-flow:column;justify-items:start;justify-content:start}.v14644-products{grid-template-columns:1fr}.v14644-product-card{min-height:122px}.v14644-hall>header h1{font-size:1.2rem!important}.v14644-tabs{margin-left:-3px;margin-right:-3px}}

/* Account cosmetics: decoration stays behind readable chat/profile content. */
.v1469-chat-message[data-cosmetic-theme="magma"],.v1469-chat-message[data-cosmetic-theme="astral"],.v1469-chat-message[data-cosmetic-theme="forest"],.v1469-chat-message[data-cosmetic-theme="royal"]{position:relative;isolation:isolate;background:rgba(9,10,14,.82)!important;overflow:hidden}.v1469-chat-message[data-cosmetic-theme="magma"]::before,.v1469-chat-message[data-cosmetic-theme="astral"]::before,.v1469-chat-message[data-cosmetic-theme="forest"]::before,.v1469-chat-message[data-cosmetic-theme="royal"]::before{content:"";position:absolute;z-index:-1;inset:0;background-image:linear-gradient(90deg,rgba(5,7,10,.25),rgba(5,7,10,.55)),var(--v14644-message-bg);background-position:center;background-size:cover;opacity:.88;pointer-events:none}.v1469-chat-message[data-cosmetic-theme] .v131-chat-name,.v1469-chat-message[data-cosmetic-theme] .v123-chat-text{color:#f2edf0!important;text-shadow:0 1px 2px rgba(0,0,0,.85)}.v1469-chat-message[data-cosmetic-theme] time,.v1469-chat-message[data-cosmetic-theme] .v131-chat-submeta{color:#c1bbc3!important}.v125-player-card[data-cosmetic-theme="magma"] .v123-player-card-bg,.v125-player-card[data-cosmetic-theme="astral"] .v123-player-card-bg,.v125-player-card[data-cosmetic-theme="forest"] .v123-player-card-bg,.v125-player-card[data-cosmetic-theme="royal"] .v123-player-card-bg{background-image:linear-gradient(180deg,rgba(5,6,9,.05),rgba(5,6,9,.78)),var(--v123-player-bg)!important;background-position:center!important;background-size:cover!important;opacity:.88!important}
.v14644-travel-sign{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:42px;margin:9px 0 2px;border:1px solid rgba(199,164,79,.55);background:linear-gradient(180deg,rgba(82,62,122,.84),rgba(39,29,61,.94));color:#f5e8bd}.v14644-travel-sign img{width:27px;height:27px;object-fit:contain}.v14644-travel-sign small{color:#d5bb72}
.v1420-offer-art{position:relative}.v14644-merchant-personal-preview{position:absolute!important;right:3px!important;top:3px!important;width:22px!important;height:22px!important;object-fit:contain!important;padding:2px!important;border-radius:8px;background:#0d1715d9;border:1px solid #a8854c99;box-shadow:0 3px 10px #0008}.v14644-personal-note{display:inline-flex;width:max-content;max-width:100%;padding:3px 7px;border:1px solid #a8854c55;border-radius:999px;background:#2a2118aa;color:#d9c39b;font:600 9px/1.2 system-ui,sans-serif;font-style:normal}.v129-event-item-status.merchant-personal{border-color:#a8854c!important;background:#172522!important}.v129-event-item-status.merchant-personal img{width:100%;height:100%;object-fit:contain}.v129-item-status.merchant-personal{border-color:#a8854c66!important;background:linear-gradient(135deg,#171f1d,#2b2118)!important}.v129-item-status.merchant-personal img{object-fit:contain!important}.is-merchant-personal{box-shadow:inset 0 0 0 1px #a8854c35!important}

/* ===== css/v14645-critical-mobile.css ===== */
/* v1.146.45 — authoritative mobile layout. No battle-specific geometry lives here. */
.v14643-entrance,.v14643-instance{width:min(100%,520px)!important;padding:7px!important}
.v14644-party-hud{grid-template-columns:repeat(4,minmax(0,1fr))!important;height:46px!important;min-height:46px!important;gap:3px!important;margin-bottom:5px!important;padding:3px!important}
.v14644-party-hud>.v14644-hud-member{grid-template-columns:24px minmax(0,1fr) 7px!important;gap:2px!important}
.v14644-party-hud>.v14644-hud-member>:where(img,.class-asset-image),.v14644-party-hud>.v14644-hud-member>span:first-child{width:24px!important;height:36px!important;border-radius:7px!important}
.v14644-hud-copy{gap:2px!important}.v14644-hud-copy>b{font-size:.49rem!important}.v14644-hud-copy>i{height:4px!important}.v14644-party-hud em{font-size:.5rem!important}
.v14643-lobby-grid,.v14643-party-drawer{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.v14643-scene{border-radius:16px!important}.v14643-scene-head{padding:8px 10px 6px;text-align:center}.v14643-scene-head small{color:#8eb75f;font-size:.5rem;font-weight:900;letter-spacing:.12em}.v14643-scene-head h2{margin:2px 0!important;font-size:1.08rem!important}
.v14643-scene-art{height:clamp(145px,42vw,175px)!important}.v14643-scene-art .object{width:86%!important;height:92%!important}.v14643-scene-art.has-bg .object{width:52%!important;height:74%!important}
.v14643-scene-copy{padding:7px 10px 10px!important}.v14643-scene-copy>p{margin-bottom:5px!important;font-size:.67rem!important;line-height:1.32!important}
.v14643-choice{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:4px!important}.v14643-choice>button{height:48px!important;min-height:48px!important}.v14643-choice>div{min-height:63px!important}
.v14645-room-complete{display:flex;justify-content:center;align-items:center;gap:6px;margin:0 10px 6px;padding:6px 8px;border:1px solid rgba(159,208,100,.22);border-radius:10px;background:rgba(99,145,55,.1);color:#cfe8ad;font-size:.65rem;font-weight:900;letter-spacing:.05em}
.v14645-loot{margin-top:6px;border:1px solid rgba(206,178,93,.14);border-radius:11px;background:rgba(0,0,0,.14);overflow:hidden}.v14645-loot>summary{display:flex;justify-content:space-between;padding:7px 9px;color:#d9c37e;font-size:.63rem;cursor:pointer}.v14645-loot-list{display:grid;gap:4px;max-height:180px;padding:0 6px 6px;overflow:auto}.v14645-loot-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:6px;align-items:center;padding:5px;border-radius:9px;background:rgba(255,255,255,.025)}.v14645-loot-row img{width:32px;height:32px;object-fit:contain}.v14645-loot-row span{display:grid;min-width:0}.v14645-loot-row b{overflow:hidden;font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}.v14645-loot-row small{color:#899486;font-size:.5rem}.v14645-loot-row button{min-height:28px!important;padding:3px 7px!important;font-size:.55rem!important}
.v14643-loading{display:flex!important;min-height:44px!important;align-items:center!important;justify-content:center!important;gap:7px!important}.v14643-loading img{width:26px!important;height:26px!important}
.v14644-hall{width:min(100%,540px)!important;margin:auto!important;padding:8px!important}.v14644-hall>header{grid-template-columns:minmax(0,1fr) auto!important;min-height:112px!important;padding:10px!important}.v14644-hall>header h1{font-size:1.12rem!important}.v14644-hall>header p{max-width:260px!important;font-size:.61rem!important;line-height:1.3!important}.v14644-hall>header aside{align-self:start!important;padding:6px!important}.v14644-tabs{display:flex!important;gap:4px!important;overflow-x:auto!important;scrollbar-width:none}.v14644-tabs::-webkit-scrollbar{display:none}.v14644-tabs button{flex:0 0 auto!important;min-height:34px!important;padding:5px 9px!important;font-size:.59rem!important}.v14644-products{grid-template-columns:1fr!important}.v14644-product-card,.v14644-vip-card{min-height:0!important;padding:8px!important}.v14644-product-card>img{width:58px!important;height:58px!important}.v14644-preview-card,.v14644-preview-message{min-height:94px!important}.v14644-modal>article{width:min(94vw,390px)!important;max-height:86dvh!important;overflow:auto!important}.v14644-hall>footer{display:flex!important;gap:4px!important;overflow-x:auto!important}.v14644-hall>footer button{flex:0 0 auto!important;min-height:31px!important;font-size:.55rem!important}
@media(max-width:390px){.v14643-lobby-grid,.v14643-party-drawer{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v14644-party-hud{grid-template-columns:repeat(4,minmax(0,1fr))!important;height:46px!important;min-height:46px!important}.v14643-scene-art{height:150px!important}.v14644-hall>header{grid-template-columns:minmax(0,1fr) auto!important}.v14644-hall>header aside{max-width:116px!important}}

/* v1.146.45 UI hotfix 2 — dungeon room/lobby geometry + Hall of Patrons mobile polish.
   Existing assets only. No generated imagery. */

.v14643-instance>.v14644-party-hud{position:relative!important;z-index:1!important;height:42px!important;min-height:42px!important;margin:0 0 12px!important;padding:3px 4px!important;overflow:hidden!important;border-radius:12px!important;box-shadow:none!important}
.v14643-instance>.v14644-party-hud>.v14644-hud-member{min-width:0!important;height:34px!important}
.v14643-instance>.v14644-party-hud>.v14644-hud-member>:where(img,.class-asset-image),.v14643-instance>.v14644-party-hud>.v14644-hud-member>span:first-child{width:23px!important;height:32px!important}
.v14643-instance>.v14643-scene{position:relative!important;z-index:0!important;margin-top:0!important;overflow:hidden!important;border-radius:20px!important}
.v14643-scene-head{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:baseline!important;justify-content:start!important;column-gap:10px!important;min-height:58px!important;padding:11px 14px 9px!important;text-align:left!important;background:linear-gradient(180deg,rgba(36,63,39,.74),rgba(22,42,27,.62))!important;border-bottom:1px solid rgba(155,204,91,.08)!important}
.v14643-scene-head small{margin:0!important;color:#a2ba91!important;font-size:.54rem!important;letter-spacing:.12em!important;white-space:nowrap!important}
.v14643-scene-head h2{min-width:0!important;margin:0!important;color:#f3f6ed!important;font-size:1.25rem!important;line-height:1.08!important;text-align:left!important;overflow-wrap:anywhere!important}
.v14643-scene-art{height:clamp(240px,68vw,300px)!important;min-height:240px!important;max-height:300px!important;margin:0!important}
.v14643-scene-art .object{width:92%!important;height:96%!important;padding:8px!important;box-sizing:border-box!important;object-fit:contain!important}
.v14643-scene-art.has-bg .object{width:62%!important;height:82%!important}
.v14643-scene-copy{min-height:118px!important;padding:12px 14px 14px!important;text-align:center!important;background:linear-gradient(180deg,rgba(18,39,23,.88),rgba(12,27,17,.97))!important}
.v14643-scene-copy>p{display:block!important;max-width:430px!important;margin:0 auto 10px!important;color:#aeb9ab!important;font-size:.72rem!important;line-height:1.42!important;-webkit-line-clamp:unset!important;overflow:visible!important}
.v14643-scene-copy>.big{width:100%!important;min-height:50px!important;height:50px!important;margin:7px 0 0!important;border-radius:13px!important;font-size:.82rem!important}
.v14645-room-complete{margin:0!important;min-height:39px!important;border-width:1px 0!important;border-radius:0!important;background:rgba(91,137,54,.14)!important}
.v14643-instance>.v119-pit-card{margin:10px 0 4px!important}

.v14643-entrance{padding:12px!important;border-radius:22px!important;background:radial-gradient(circle at 18% 0,rgba(118,166,67,.10),transparent 32%),linear-gradient(180deg,rgba(12,22,16,.99),rgba(7,14,10,.995))!important}
.v14643-entry-title{grid-template-columns:54px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;margin:0 0 10px!important;padding:5px 7px 10px!important;border-bottom:1px solid rgba(151,196,92,.08)!important}
.v14643-entry-title>img{width:52px!important;height:60px!important}.v14643-entry-title h2{font-size:1.16rem!important;line-height:1.05!important}.v14643-entry-title p{margin-top:4px!important;font-size:.64rem!important;line-height:1.3!important}
.v14643-lobby-title{min-height:48px!important;margin:0 0 8px!important;padding:8px 10px!important;border:1px solid rgba(149,194,91,.08)!important;border-radius:14px!important;background:linear-gradient(100deg,rgba(70,96,51,.12),rgba(255,255,255,.02))!important}
.v14643-lobby-title span{min-width:0!important;display:grid!important;gap:2px!important}.v14643-lobby-title small{line-height:1!important}.v14643-lobby-title b{font-size:.79rem!important}
.v14643-lobby-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.v14643-lobby-grid>.v14643-member{grid-template-columns:44px minmax(0,1fr) auto!important;min-height:76px!important;padding:8px!important;border:1px solid rgba(255,255,255,.065)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(25,35,29,.84),rgba(14,21,17,.92))!important}
.v14643-lobby-grid>.v14643-member.empty{border-style:dashed!important;border-color:rgba(148,183,105,.13)!important;background:rgba(255,255,255,.018)!important}
.v14643-lobby-grid .v14643-member-art{width:44px!important;height:52px!important;border-radius:12px!important}.v14643-lobby-grid .v14643-member.empty .v14643-member-art{display:grid!important;place-items:center!important;background:linear-gradient(145deg,rgba(79,109,66,.18),rgba(23,35,27,.72))!important}
.v14646-empty-slot-mark{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;color:#7d9275!important;font-size:1.25rem!important;font-weight:700!important}
.v14643-lobby-grid .v14643-member b{font-size:.73rem!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}.v14643-lobby-grid .v14643-member small,.v14643-lobby-grid .v14643-member em{font-size:.55rem!important}
.v14643-nearby{margin:10px 0!important;border-radius:14px!important;background:rgba(0,0,0,.16)!important}.v14643-nearby summary{min-height:38px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 10px!important}
.v14643-entrance>[data-dungeon-start]{min-height:52px!important;margin-top:10px!important;border-radius:14px!important;font-size:.82rem!important}.v14643-entrance>.v14643-link{margin-top:7px!important}

.v14644-hall{width:min(100%,540px)!important;margin:0 auto 16px!important;padding:10px!important;border-radius:22px!important;overflow:visible!important;background:linear-gradient(180deg,rgba(10,12,18,.88),rgba(8,9,14,.97)),var(--patron-bg) center top/cover no-repeat!important}
.v14644-hall>header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-height:0!important;padding:12px!important;border-radius:17px!important}.v14644-hall>header>div{min-width:0!important}
.v14644-hall>header small{font-size:.54rem!important;letter-spacing:.11em!important}.v14644-hall>header h1{margin:2px 0 4px!important;font-size:1.16rem!important;line-height:1.05!important;white-space:normal!important}.v14644-hall>header p{display:-webkit-box!important;max-width:none!important;margin:0!important;color:#aca7b0!important;font-size:.62rem!important;line-height:1.38!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.v14644-hall>header aside{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;width:100%!important;max-width:none!important;padding:7px 9px!important;border-radius:12px!important;background:rgba(7,8,13,.72)!important}.v14644-hall>header aside b,.v14644-hall>header aside span{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v14644-character-select{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-height:42px!important;margin:8px 0!important;padding:7px 9px!important;border-radius:13px!important}.v14644-character-select select{width:100%!important;max-width:none!important;min-width:0!important}
.v14644-tabs{display:flex!important;gap:5px!important;margin:0 0 10px!important;padding:3px 1px 5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}.v14644-tabs::-webkit-scrollbar{display:none!important}.v14644-tabs button{flex:0 0 auto!important;min-height:34px!important;padding:6px 10px!important;border-radius:11px!important;font-size:.61rem!important;line-height:1!important;white-space:nowrap!important}
.v14644-hall>main{display:grid!important;gap:9px!important}.v14644-vip-card,.v14644-product-card{grid-template-columns:62px minmax(0,1fr)!important;gap:9px!important;min-height:0!important;padding:10px!important;border-radius:17px!important;overflow:hidden!important}.v14644-vip-card>img,.v14644-product-card>img{grid-column:1!important;grid-row:1/4!important;width:60px!important;height:66px!important;align-self:start!important;object-fit:contain!important}
.v14644-vip-card h2,.v14644-product-card h3{grid-column:2!important;min-width:0!important;margin:0!important;line-height:1.08!important;overflow-wrap:anywhere!important}.v14644-vip-card h2{font-size:1.02rem!important}.v14644-product-card h3{font-size:.83rem!important}.v14644-vip-card p,.v14644-product-card p{grid-column:2!important;min-width:0!important;margin:2px 0 0!important;color:#aaa6ae!important;font-size:.61rem!important;line-height:1.38!important;overflow-wrap:anywhere!important}.v14644-product-card p{display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.v14644-vip-card>.v14644-price-actions,.v14644-product-card>.v14644-price-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;gap:7px!important;width:100%!important;margin-top:4px!important}.v14644-price-actions button{width:100%!important;min-width:0!important;min-height:38px!important;padding:6px 9px!important;border-radius:11px!important;font-size:.65rem!important;white-space:nowrap!important}.v14644-vip-card>.v14644-gift{grid-column:1/-1!important;width:100%!important;min-height:38px!important;margin-top:2px!important}
.v14644-token-grid{display:grid!important;gap:8px!important}.v14644-token-card{grid-template-columns:52px minmax(0,1fr) minmax(86px,auto)!important;gap:9px!important;min-height:68px!important;padding:9px!important;border-radius:15px!important}.v14644-token-card>img{width:50px!important;height:50px!important}.v14644-token-card span{min-width:0!important}.v14644-token-card button{min-width:86px!important;min-height:38px!important;white-space:nowrap!important}
.v14644-hall>footer{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:11px!important;padding-top:9px!important;overflow:visible!important}.v14644-hall>footer button{width:100%!important;min-width:0!important;min-height:34px!important;padding:6px 7px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:10px!important;background:rgba(255,255,255,.025)!important;font-size:.56rem!important;line-height:1.15!important;white-space:normal!important}.v14644-hall>footer button:nth-of-type(3){grid-column:1/-1!important}.v14644-hall>footer span{grid-column:1/-1!important;justify-self:start!important;margin:0!important;padding:2px 4px!important;font-size:.49rem!important}
.v14644-preview-card{min-height:96px!important;max-height:124px!important;padding:11px!important;background:linear-gradient(180deg,transparent,rgba(0,0,0,.72)),var(--patron-card) center/cover!important}.v14644-preview-message{min-height:82px!important}.v14644-modal>article{width:min(94vw,390px)!important;max-height:84dvh!important;padding:13px!important;border-radius:18px!important}

@media(max-width:390px){.v14643-instance>.v14644-party-hud{grid-template-columns:repeat(4,minmax(0,1fr))!important;height:42px!important;min-height:42px!important;margin-bottom:11px!important}.v14643-scene-art{height:clamp(238px,70vw,272px)!important;min-height:238px!important}.v14643-scene-head h2{font-size:1.14rem!important}.v14643-lobby-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v14643-lobby-grid>.v14643-member{grid-template-columns:38px minmax(0,1fr)!important;min-height:70px!important;padding:7px!important}.v14643-lobby-grid .v14643-member-art{width:38px!important;height:46px!important}.v14643-lobby-grid>.v14643-member>button{grid-column:1/-1!important;justify-self:end!important}.v14644-hall{padding:8px!important}.v14644-hall>header{padding:10px!important}.v14644-hall>header h1{font-size:1.07rem!important}.v14644-hall>header aside{grid-template-columns:minmax(0,1fr)!important;gap:3px!important}.v14644-character-select{grid-template-columns:1fr!important;gap:4px!important}.v14644-vip-card,.v14644-product-card{grid-template-columns:54px minmax(0,1fr)!important}.v14644-vip-card>img,.v14644-product-card>img{width:52px!important;height:58px!important}.v14644-token-card{grid-template-columns:46px minmax(0,1fr)!important}.v14644-token-card>img{width:44px!important;height:44px!important}.v14644-token-card button{grid-column:1/-1!important;width:100%!important}}

/* ===== css/v14647-hotfix.css ===== */
/* Aldos RPG v1.146.47 — targeted mobile stability hotfix. No asset generation. */

/* Dungeon party strip: four stable slots, one row, no overlap with the room card. */
.v14643-instance>.v14647-party-strip{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  margin:10px 0 14px!important;
  padding:4px!important;
  gap:4px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:1px solid rgba(164,199,104,.16)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,rgba(17,28,22,.96),rgba(9,17,13,.96))!important;
  box-shadow:0 7px 18px rgba(0,0,0,.18)!important;
}
.v14647-party-slot{
  position:relative!important;
  display:grid!important;
  grid-template-columns:25px minmax(0,1fr)!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  height:40px!important;
  padding:3px!important;
  border:1px solid rgba(255,255,255,.045)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.022)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.v14647-party-slot.empty{display:grid!important;place-items:center!important;grid-template-columns:1fr!important;opacity:.55!important}
.v14647-party-empty{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:999px!important;background:rgba(255,255,255,.035)!important;color:#89948a!important;font:700 18px/1 system-ui!important}
.v14647-party-avatar{display:grid!important;place-items:center!important;width:25px!important;height:34px!important;overflow:hidden!important;border-radius:8px!important}
.v14647-party-avatar>:where(img,.class-asset-image),.v14647-party-avatar>span{width:100%!important;height:100%!important;object-fit:contain!important}
.v14647-party-info{display:grid!important;align-content:center!important;gap:3px!important;min-width:0!important}
.v14647-party-info>b{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#e8ece7!important;font:700 9px/1.05 system-ui!important;text-align:left!important}
.v14647-party-bars{display:grid!important;gap:2px!important}
.v14647-party-bars>i{display:block!important;width:100%!important;height:3px!important;overflow:hidden!important;border-radius:99px!important;background:rgba(255,255,255,.08)!important}
.v14647-party-bars>i>u{display:block!important;height:100%!important;border-radius:inherit!important;text-decoration:none!important}
.v14647-party-bars>.hp>u{background:#7ab44a!important}.v14647-party-bars>.mp>u{background:#5ba5c5!important}
.v14647-party-vote{position:absolute!important;right:2px!important;top:1px!important;color:#b9e97f!important;font:800 8px/1 system-ui!important;font-style:normal!important}
.v14643-instance>.v14643-party-drawer{position:relative!important;z-index:3!important;margin:-6px 0 14px!important}
.v14643-instance>.v14643-scene{clear:both!important;margin-top:0!important;position:relative!important;z-index:1!important}

/* Standard world pit is kept intact. It is simply placed as the last dungeon card with safe spacing. */
.v14643-instance>.v119-pit-card{
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  margin:14px 0 calc(18px + env(safe-area-inset-bottom,0px))!important;
  flex:none!important;
}
.v14643-instance>.v14643-instance-foot{margin:10px 2px 0!important}
.v14643-instance{padding-bottom:8px!important;overflow:visible!important}

/* Fast travel sign: compact secondary action, not a giant CTA. */
.v14644-travel-sign{
  display:inline-grid!important;
  grid-template-columns:22px auto auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  max-width:100%!important;
  min-height:38px!important;
  margin:10px auto 3px!important;
  padding:6px 11px!important;
  border:1px solid rgba(199,158,75,.42)!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,rgba(51,43,26,.92),rgba(24,28,23,.96))!important;
  color:#e5cf9a!important;
  box-shadow:0 5px 14px rgba(0,0,0,.2)!important;
  font:700 11px/1.1 system-ui!important;
}
.v14644-travel-sign img{width:22px!important;height:22px!important;object-fit:contain!important}
.v14644-travel-sign small{padding-left:2px!important;color:#b8c99a!important;font:700 10px/1 system-ui!important}
.v14644-travel-sign:disabled{opacity:.55!important}

.v14647-travel-sign-confirm{display:grid!important;gap:12px!important;text-align:center!important;padding:6px 2px 2px!important}
.v14647-travel-sign-confirm>img{width:58px!important;height:58px!important;margin:0 auto!important;object-fit:contain!important}
.v14647-travel-sign-confirm>small{color:#bba46e!important;font:800 9px/1 system-ui!important;letter-spacing:.12em!important}
.v14647-travel-sign-confirm>h2{margin:0!important;color:#f2ede2!important;font:700 25px/1.05 Georgia,serif!important}
.v14647-travel-sign-confirm>p{margin:0 auto!important;max-width:330px!important;color:#aab2aa!important;font:500 13px/1.45 system-ui!important}
.v14647-travel-sign-confirm>strong{display:block!important;color:#d9c48c!important;font:700 12px/1.3 system-ui!important}
.v14647-travel-sign-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:3px!important}
.v14647-travel-sign-actions button{min-height:44px!important;border-radius:12px!important}
.v14647-travel-sign-modal{max-width:min(92vw,390px)!important}

/* Paid chat cosmetics: backgrounds must live above the card background and below content. */
.v1469-chat-message[data-cosmetic-theme="magma"],
.v1469-chat-message[data-cosmetic-theme="astral"],
.v1469-chat-message[data-cosmetic-theme="forest"],
.v1469-chat-message[data-cosmetic-theme="royal"]{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:rgba(5,8,10,.28)!important}
.v1469-chat-message[data-cosmetic-theme="magma"]::before,
.v1469-chat-message[data-cosmetic-theme="astral"]::before,
.v1469-chat-message[data-cosmetic-theme="forest"]::before,
.v1469-chat-message[data-cosmetic-theme="royal"]::before{
  z-index:0!important;
  inset:0!important;
  background-image:linear-gradient(90deg,rgba(4,7,9,.25),rgba(4,7,9,.48)),var(--v14644-message-bg)!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  opacity:.95!important;
}
.v1469-chat-message[data-cosmetic-theme="magma"]>*,
.v1469-chat-message[data-cosmetic-theme="astral"]>*,
.v1469-chat-message[data-cosmetic-theme="forest"]>*,
.v1469-chat-message[data-cosmetic-theme="royal"]>*{position:relative!important;z-index:1!important}
.v125-player-card[data-cosmetic-theme="magma"] .v123-player-card-bg,
.v125-player-card[data-cosmetic-theme="astral"] .v123-player-card-bg,
.v125-player-card[data-cosmetic-theme="forest"] .v123-player-card-bg,
.v125-player-card[data-cosmetic-theme="royal"] .v123-player-card-bg{
  z-index:0!important;
  inset:0!important;
  background-image:linear-gradient(180deg,rgba(4,6,8,.10),rgba(4,6,8,.72)),var(--v123-player-bg)!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  opacity:.98!important;
}
.v125-player-card[data-cosmetic-theme="magma"]>*,
.v125-player-card[data-cosmetic-theme="astral"]>*,
.v125-player-card[data-cosmetic-theme="forest"]>*,
.v125-player-card[data-cosmetic-theme="royal"]>*{position:relative!important;z-index:1!important}
.v125-player-card[data-cosmetic-theme]>.v123-player-card-bg{z-index:0!important}

@media(max-width:390px){
  .v14643-instance>.v14647-party-strip{height:48px!important;min-height:48px!important;margin-bottom:13px!important;gap:3px!important;padding:3px!important}
  .v14647-party-slot{height:40px!important;grid-template-columns:23px minmax(0,1fr)!important;gap:3px!important;padding:2px!important}
  .v14647-party-avatar{width:23px!important;height:33px!important}
  .v14647-party-info>b{font-size:8.3px!important}
  .v14644-travel-sign{font-size:10.5px!important;min-height:36px!important;padding:5px 9px!important}
}

/* ===== v1.146.47 final dungeon geometry ownership ===== */
.v14643-instance{
  display:block!important;
  overflow:visible!important;
  padding-bottom:4px!important;
}
.v14643-instance>.v14647-party-strip{
  position:relative!important;
  inset:auto!important;
  float:none!important;
  clear:both!important;
  z-index:1!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;
  height:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  margin:14px 0 18px!important;
  padding:5px!important;
  gap:5px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  transform:none!important;
  border:1px solid rgba(151,190,103,.15)!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,rgba(17,27,22,.98),rgba(8,15,12,.98))!important;
  box-shadow:0 8px 18px rgba(0,0,0,.2)!important;
}
.v14643-instance>.v14647-party-strip .v14647-party-slot{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  align-items:center!important;
  min-width:0!important;
  height:44px!important;
  padding:3px 4px!important;
  gap:4px!important;
  border:1px solid rgba(255,255,255,.04)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.018)!important;
}
.v14643-instance>.v14647-party-strip .v14647-party-avatar{width:28px!important;height:38px!important;border-radius:8px!important}
.v14643-instance>.v14647-party-strip .v14647-party-info>b{font-size:9.5px!important;line-height:1.05!important}
.v14643-instance>.v14647-party-strip .v14647-party-bars>i{height:3px!important}
.v14643-instance>.v14647-party-strip .v14647-party-slot.empty{grid-template-columns:1fr!important;place-items:center!important}
.v14643-instance>.v14643-party-drawer{
  position:relative!important;
  inset:auto!important;
  clear:both!important;
  z-index:2!important;
  margin:-8px 0 18px!important;
}
.v14643-instance>.v14643-scene{
  position:relative!important;
  inset:auto!important;
  clear:both!important;
  z-index:0!important;
  width:100%!important;
  margin:0!important;
  transform:none!important;
  overflow:hidden!important;
}
.v14643-instance .v14643-scene-head{
  min-height:64px!important;
  padding:12px 16px 11px!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  column-gap:12px!important;
}
.v14643-instance .v14643-scene-head h2{font-size:1.32rem!important;line-height:1.08!important}
.v14643-instance .v14643-scene-art{
  height:clamp(300px,83vw,365px)!important;
  min-height:300px!important;
  max-height:365px!important;
}
.v14643-instance .v14643-scene-art .object{width:94%!important;height:97%!important;padding:10px!important;object-fit:contain!important;box-sizing:border-box!important}
.v14643-instance .v14643-scene-art.has-bg .object{width:66%!important;height:84%!important}
.v14643-instance .v14643-scene-copy{
  min-height:126px!important;
  padding:13px 16px 16px!important;
}
.v14643-instance .v14643-scene-copy>p{margin:0 auto 11px!important;font-size:.73rem!important;line-height:1.42!important}
.v14643-instance .v14643-scene-copy>.big{min-height:52px!important;height:52px!important;margin-top:7px!important}
.v14643-instance>.v14643-instance-foot{
  position:relative!important;
  clear:both!important;
  margin:12px 3px 0!important;
  padding:0!important;
}
/* EXACT world pit component: no dungeon skin. Only external placement/safe spacing. */
.v14643-instance>.v119-pit-card{
  position:relative!important;
  inset:auto!important;
  clear:both!important;
  float:none!important;
  transform:none!important;
  z-index:0!important;
  width:100%!important;
  margin:18px 0 calc(28px + env(safe-area-inset-bottom,0px))!important;
}

/* ===== Dungeon lobby rebuilt as a compact expedition roster ===== */
.v14643-entrance{
  padding:10px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(14,22,19,.96),rgba(7,13,11,.98))!important;
}
.v14643-entrance>.v14643-entry-title{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  min-height:82px!important;
  margin:0 0 12px!important;
  padding:10px 12px!important;
  border:1px solid rgba(153,194,96,.12)!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,rgba(28,42,31,.72),rgba(12,19,16,.82))!important;
}
.v14643-entrance>.v14643-entry-title>img{width:56px!important;height:66px!important;object-fit:contain!important}
.v14643-entrance>.v14643-entry-title h2{margin:2px 0!important;font-size:1.23rem!important;line-height:1.08!important}
.v14643-entrance>.v14643-entry-title p{margin:3px 0 0!important;color:#9ca89d!important;font-size:.62rem!important;line-height:1.3!important}
.v14643-lobby-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  min-height:54px!important;
  margin:0 0 9px!important;
  padding:8px 11px!important;
  border:1px solid rgba(255,255,255,.045)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.018)!important;
}
.v14643-lobby-title>span{display:flex!important;align-items:baseline!important;gap:8px!important;min-width:0!important}
.v14643-lobby-title small{font-size:.52rem!important;white-space:nowrap!important}
.v14643-lobby-title b{font-size:.73rem!important;white-space:nowrap!important}
.v14643-lobby-title em{font-size:.68rem!important;white-space:nowrap!important}
.v14643-lobby-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0 0 10px!important;
}
.v14643-lobby-grid>.v14643-member{
  position:relative!important;
  display:grid!important;
  grid-template-columns:43px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  min-height:82px!important;
  padding:8px!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,rgba(22,31,28,.92),rgba(11,17,15,.96))!important;
  overflow:hidden!important;
}
.v14643-lobby-grid>.v14643-member.empty{opacity:.72!important;background:rgba(255,255,255,.018)!important}
.v14643-lobby-grid .v14643-member-art{width:43px!important;height:58px!important;border-radius:11px!important;overflow:hidden!important}
.v14643-lobby-grid .v14643-member-art>:where(img,.class-asset-image),.v14643-lobby-grid .v14643-member-art>span{width:100%!important;height:100%!important;object-fit:contain!important}
.v14643-lobby-grid>.v14643-member>div{display:grid!important;align-content:center!important;gap:2px!important;min-width:0!important}
.v14643-lobby-grid>.v14643-member>div>b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:.73rem!important}
.v14643-lobby-grid>.v14643-member>div>small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:.55rem!important;color:#909b92!important}
.v14643-lobby-grid>.v14643-member em{font-size:.52rem!important;color:#92bd69!important}
.v14643-lobby-grid>.v14643-member>button{position:absolute!important;top:5px!important;right:5px!important;width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border-radius:8px!important;font-size:.65rem!important}
.v14643-nearby{
  margin:2px 0 10px!important;
  padding:7px 9px!important;
  border:1px solid rgba(255,255,255,.045)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.015)!important;
}
.v14643-nearby summary{font-size:.62rem!important}
.v14643-entrance>[data-dungeon-start]{width:100%!important;min-height:50px!important;margin-top:7px!important;border-radius:14px!important}
.v14643-entrance>.v14643-link{display:block!important;margin:8px auto 0!important}

/* ===== Hall of Patrons: final mobile-first layout ownership ===== */
.v14644-hall{
  width:100%!important;
  max-width:560px!important;
  min-width:0!important;
  min-height:0!important;
  margin:0 auto 18px!important;
  padding:10px!important;
  box-sizing:border-box!important;
  border-radius:20px!important;
  overflow:hidden!important;
}
.v14644-hall>header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:9px!important;
  align-items:start!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:12px!important;
  box-sizing:border-box!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,rgba(8,11,17,.54),rgba(8,11,16,.88))!important;
}
.v14644-hall>header>div{min-width:0!important}
.v14644-hall>header h1{margin:2px 0 4px!important;font-size:1.2rem!important;line-height:1.05!important;overflow-wrap:normal!important;word-break:normal!important}
.v14644-hall>header p{display:block!important;max-width:none!important;margin:0!important;font-size:.62rem!important;line-height:1.35!important;color:#b5b1b5!important}
.v14644-hall>header aside{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  justify-items:stretch!important;
}
.v14644-hall>header aside b,.v14644-hall>header aside span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:34px!important;
  margin:0!important;
  padding:5px 7px!important;
  border:1px solid rgba(211,177,91,.14)!important;
  border-radius:10px!important;
  background:rgba(10,12,18,.7)!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:.58rem!important;
}
.v14644-hall>header aside img{width:20px!important;height:20px!important;flex:0 0 20px!important}
.v14644-character-select{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  margin:8px 0!important;
  padding:7px 9px!important;
  box-sizing:border-box!important;
}
.v14644-character-select span{white-space:nowrap!important}
.v14644-character-select select{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:34px!important;
  padding:0 8px!important;
  box-sizing:border-box!important;
  text-overflow:ellipsis!important;
}
.v14644-tabs{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:max-content!important;
  align-items:center!important;
  gap:4px!important;
  width:100%!important;
  margin:0 0 9px!important;
  padding:3px!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}
.v14644-tabs::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.v14644-tabs button{
  min-width:0!important;
  min-height:34px!important;
  padding:5px 9px!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  line-height:1!important;
}
.v14644-hall>main{display:grid!important;gap:8px!important;min-width:0!important;overflow:visible!important}
.v14644-products{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;min-width:0!important}
.v14644-vip-card,.v14644-product-card{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  grid-auto-rows:auto!important;
  align-items:start!important;
  gap:8px 10px!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:10px!important;
  box-sizing:border-box!important;
  border-radius:15px!important;
  overflow:hidden!important;
}
.v14644-vip-card>img,.v14644-product-card>img{
  grid-column:1!important;
  grid-row:1!important;
  width:56px!important;
  height:64px!important;
  max-width:56px!important;
  object-fit:contain!important;
}
.v14644-vip-card>div:not(.v14644-price-actions),.v14644-product-card>div:not(.v14644-price-actions){grid-column:2!important;grid-row:1!important;min-width:0!important}
.v14644-vip-card h2,.v14644-product-card h3{margin:1px 0 3px!important;line-height:1.08!important;overflow-wrap:break-word!important}
.v14644-vip-card h2{font-size:.98rem!important}.v14644-product-card h3{font-size:.79rem!important}
.v14644-vip-card p,.v14644-product-card p{
  display:block!important;
  margin:0!important;
  color:#aaa7ae!important;
  font-size:.59rem!important;
  line-height:1.35!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
}
.v14644-price-actions,.v14644-vip-card>.v14644-price-actions,.v14644-product-card>.v14644-price-actions{
  grid-column:1/-1!important;
  grid-row:auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  margin:1px 0 0!important;
}
.v14644-price-actions button{
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  height:38px!important;
  margin:0!important;
  padding:5px 8px!important;
  border-radius:11px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:.61rem!important;
}
.v14644-price-actions button:only-child{grid-column:1/-1!important}
.v14644-price-actions button[data-patron-preview]{grid-column:1/-1!important;background:rgba(255,255,255,.035)!important}
.v14644-vip-card>.v14644-gift{grid-column:1/-1!important;width:100%!important;margin:0!important;min-height:39px!important;border-radius:11px!important}
.v14644-token-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;min-width:0!important}
.v14644-token-card{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  padding:9px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.v14644-token-card>img{width:44px!important;height:44px!important}
.v14644-token-card span{min-width:0!important}
.v14644-token-card b{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.v14644-token-card button{min-width:90px!important;min-height:36px!important;height:36px!important;padding:5px 9px!important;white-space:nowrap!important}
.v14644-hall>footer{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;
  width:100%!important;
  min-width:0!important;
  margin:10px 0 0!important;
  padding:9px 0 0!important;
  overflow:visible!important;
}
.v14644-hall>footer button{
  width:100%!important;
  min-width:0!important;
  min-height:34px!important;
  margin:0!important;
  padding:5px 6px!important;
  border:1px solid rgba(255,255,255,.045)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.018)!important;
  white-space:normal!important;
  line-height:1.15!important;
}
.v14644-hall>footer button:nth-of-type(3){grid-column:1/-1!important}
.v14644-hall>footer span{grid-column:1/-1!important;margin:1px 0 0!important;text-align:center!important;white-space:normal!important}
.v14644-preview-card{min-height:118px!important;height:118px!important;padding:11px!important;background-position:center!important}
.v14644-preview-message{min-height:82px!important;padding:10px 45px 10px 10px!important}
.v14644-drawer{inset:8px!important;max-height:calc(100% - 16px)!important;box-sizing:border-box!important}

/* Cosmetic card layer must not be lifted above its own content by the generic child rule. */
.v125-player-card[data-cosmetic-theme]>.v123-player-card-bg{position:absolute!important;z-index:0!important}

/* Merchant offer art must show the real item only; no purchase-status crown overlay. */
.v14644-merchant-personal-preview{display:none!important}

@media(max-width:390px){
  .v14643-instance>.v14647-party-strip{height:54px!important;min-height:54px!important;max-height:54px!important;margin:13px 0 17px!important;padding:4px!important;gap:4px!important}
  .v14643-instance>.v14647-party-strip .v14647-party-slot{height:44px!important;grid-template-columns:25px minmax(0,1fr)!important;padding:3px!important;gap:3px!important}
  .v14643-instance>.v14647-party-strip .v14647-party-avatar{width:25px!important;height:37px!important}
  .v14643-instance>.v14647-party-strip .v14647-party-info>b{font-size:8.6px!important}
  .v14643-instance .v14643-scene-art{height:clamp(292px,84vw,330px)!important;min-height:292px!important;max-height:330px!important}
  .v14643-instance .v14643-scene-head{min-height:60px!important;padding:11px 13px 10px!important}
  .v14643-instance .v14643-scene-head h2{font-size:1.18rem!important}
  .v14643-lobby-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .v14643-lobby-grid>.v14643-member{grid-template-columns:38px minmax(0,1fr)!important;min-height:76px!important;padding:7px!important;gap:6px!important}
  .v14643-lobby-grid .v14643-member-art{width:38px!important;height:52px!important}
  .v14643-lobby-grid>.v14643-member>div>b{font-size:.67rem!important}
  .v14643-lobby-grid>.v14643-member>div>small{font-size:.50rem!important}
  .v14644-hall{padding:8px!important;border-radius:17px!important}
  .v14644-hall>header{padding:10px!important;gap:8px!important}
  .v14644-hall>header h1{font-size:1.08rem!important}
  .v14644-hall>header p{font-size:.57rem!important}
  .v14644-hall>header aside b,.v14644-hall>header aside span{font-size:.52rem!important;padding:4px 5px!important}
  .v14644-character-select{grid-template-columns:auto minmax(0,1fr)!important;gap:6px!important}
  .v14644-tabs button{padding:5px 7px!important;font-size:.55rem!important}
  .v14644-vip-card,.v14644-product-card{grid-template-columns:52px minmax(0,1fr)!important;padding:9px!important;gap:7px 9px!important}
  .v14644-vip-card>img,.v14644-product-card>img{width:50px!important;height:58px!important;max-width:50px!important}
  .v14644-token-card{grid-template-columns:42px minmax(0,1fr) auto!important;padding:8px!important;gap:7px!important}
  .v14644-token-card>img{width:40px!important;height:40px!important}
  .v14644-token-card button{min-width:76px!important;font-size:.56rem!important}
}
.v14647-dungeon-loading{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-height:72px!important;padding:14px!important;border-radius:14px!important;background:rgba(12,20,16,.86)!important}
.v14647-loading-dot{width:16px!important;height:16px!important;border:2px solid rgba(171,214,105,.25)!important;border-top-color:#a9d66b!important;border-radius:50%!important;animation:v14647-spin .8s linear infinite!important}
.v14647-dungeon-loading b{font-size:.65rem!important;color:#aeb9ad!important}
@keyframes v14647-spin{to{transform:rotate(360deg)}}

/* ===== css/v14648-hotfix.css ===== */
/* Aldos RPG v1.146.48 — travel/cosmetics/pass/rules hotfix. */
/* Cosmetic art is a real element background, never a negative-z pseudo layer. */
.v1469-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  background-color:rgba(9,10,14,.82)!important;
  background-image:linear-gradient(90deg,rgba(5,7,10,.28),rgba(5,7,10,.58)),var(--v14644-message-bg)!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
}
.v1469-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::before{display:none!important;content:none!important}
.v1469-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>*{position:relative;z-index:1}
.v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v123-player-card-bg{
  background-color:#101117!important;background-image:linear-gradient(180deg,rgba(5,6,9,.06),rgba(5,6,9,.76)),var(--v123-player-bg)!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;opacity:.94!important
}
.v14644-preview-card{background-color:#11131a!important;background-image:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.78)),var(--patron-card)!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
.v14644-preview-message{background-color:#11131a!important;background-image:linear-gradient(90deg,rgba(0,0,0,.36),rgba(0,0,0,.08)),var(--patron-message)!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
.v14644-owned article.active{border-color:rgba(216,181,94,.3);background:rgba(120,89,32,.1)}
.v14648-cosmetic-clear{width:100%;margin-top:8px;min-height:34px!important}

/* ===== css/v14649-hotfix.css ===== */
/* Aldos RPG v1.146.49 — cosmetics, store limits, scroll and personal chest polish. */
.v14649-chat-cosmetic-bg,.v14649-player-cosmetic-bg,.v14649-preview-bg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;pointer-events:none!important;border:0!important;margin:0!important;max-width:none!important;max-height:none!important}
.v1469-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){position:relative!important;isolation:isolate!important;overflow:hidden!important;background:#11131a!important;background-image:none!important}
.v1469-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::before{display:none!important;content:none!important}
.v1469-chat-message .v14649-chat-cosmetic-bg{z-index:0!important;opacity:.9!important;filter:brightness(.72)!important}
.v1469-chat-message>.v1469-chat-avatar,.v1469-chat-message>.v1469-chat-content{position:relative!important;z-index:2!important}
.v125-player-card{position:relative!important;isolation:isolate!important;overflow:hidden!important}
.v125-player-card>.v14649-player-cosmetic-bg{z-index:0!important;opacity:.92!important;filter:brightness(.73)!important}
.v125-player-card>.v123-player-card-bg{z-index:1!important;background-image:linear-gradient(180deg,rgba(5,6,9,.03),rgba(5,6,9,.5))!important;background-color:transparent!important}
.v125-player-card>:not(.v14649-player-cosmetic-bg):not(.v123-player-card-bg){position:relative!important;z-index:2!important}
.v14644-preview-card,.v14644-preview-message{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:#11131a!important;background-image:none!important}
.v14644-preview-card>.v14649-preview-bg,.v14644-preview-message>.v14649-preview-bg{z-index:0!important;opacity:.94!important;filter:brightness(.76)!important}
.v14649-preview-content{position:relative!important;z-index:2!important;display:inherit;flex-direction:inherit;gap:inherit;min-width:0}
.v14644-preview-card .v14649-preview-content{display:flex!important;min-height:100%!important;flex-direction:column!important;justify-content:flex-end!important}
.v14644-preview-message .v14649-preview-content{display:block!important;min-height:100%!important}
.v14649-limit-button{opacity:.46!important;filter:saturate(.35)!important;cursor:not-allowed!important;background:rgba(42,43,48,.72)!important;color:#a5a5aa!important;border-color:rgba(255,255,255,.08)!important}
.v14644-gift [data-patron-gift-countdown]{font-variant-numeric:tabular-nums;letter-spacing:.04em}
.v14629-chest-item.v14649-bound-locked{opacity:.72}.v14629-chest-item.v14649-bound-locked .v14629-chest-action{filter:grayscale(1);opacity:.48!important;cursor:not-allowed!important}

/* ===== css/v14650-hotfix.css ===== */
/* v1.146.50 — expedition interaction reliability */
.v14640-dungeon,.v14643-entrance{position:relative!important}
.v14640-dungeon button:not(:disabled){pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent}
.v14640-dungeon button:disabled{pointer-events:none!important;opacity:.52!important}
.v14643-lobby-grid,.v14643-nearby,.v14643-scene-copy,.v14643-party-drawer{position:relative;z-index:2}

/* ===== css/v14654-font-size.css ===== */
/* Aldos RPG v1.146.54 — per-device mobile font-size preference.
   Typography only: no zoom/transform, no card/image/grid scaling. */

html[data-ui-font-size="compact"],
html[data-ui-font-size="compact"] body{
  -webkit-text-size-adjust:92%!important;
  text-size-adjust:92%!important;
}
html[data-ui-font-size="normal"],
html[data-ui-font-size="normal"] body{
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
html[data-ui-font-size="medium"],
html[data-ui-font-size="medium"] body{
  -webkit-text-size-adjust:125%!important;
  text-size-adjust:125%!important;
}
html[data-ui-font-size="large"],
html[data-ui-font-size="large"] body{
  -webkit-text-size-adjust:150%!important;
  text-size-adjust:150%!important;
}

/* Settings selector deliberately stays a stable 2x2 grid on narrow Android screens. */
body.v127-ui .v14654-font-settings>header p{
  margin:3px 0 0!important;
  color:rgba(232,238,235,.58)!important;
  font-size:8px!important;
  line-height:1.35!important;
}
body.v127-ui .v14654-font-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  min-width:0!important;
}
body.v127-ui .v14654-font-option{
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:7px!important;
  padding:8px!important;
  border-radius:13px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012))!important;
  color:#f3f0e7!important;
  text-align:left!important;
  box-shadow:none!important;
}
body.v127-ui .v14654-font-option.active{
  border-color:rgba(125,215,189,.72)!important;
  background:linear-gradient(145deg,rgba(67,154,132,.20),rgba(255,255,255,.025))!important;
  box-shadow:inset 0 0 0 1px rgba(125,215,189,.12)!important;
}
body.v127-ui .v14654-font-sample{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  background:rgba(3,17,20,.70)!important;
  border:1px solid rgba(215,170,75,.22)!important;
  color:#f5df9c!important;
  line-height:1!important;
  font-weight:900!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
body.v127-ui .v14654-font-sample.compact{font-size:11px!important}
body.v127-ui .v14654-font-sample.normal{font-size:13px!important}
body.v127-ui .v14654-font-sample.medium{font-size:17px!important}
body.v127-ui .v14654-font-sample.large{font-size:20px!important}
body.v127-ui .v14654-font-option>span:nth-child(2){
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
body.v127-ui .v14654-font-option b{
  font-size:10px!important;
  line-height:1.12!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.v127-ui .v14654-font-option small{
  font-size:7.4px!important;
  line-height:1.2!important;
  color:rgba(232,238,235,.52)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.v127-ui .v14654-font-option>i{
  font-style:normal!important;
  font-size:7px!important;
  line-height:1!important;
  color:#7dd7bd!important;
  white-space:nowrap!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
body.v127-ui .v14654-font-note{
  margin:0 2px!important;
  color:rgba(232,238,235,.48)!important;
  font-size:7.5px!important;
  line-height:1.3!important;
}

/* Large text must not widen the fixed mobile shell. Existing compact cards already
   use ellipsis; these guards keep any long Russian strings inside their columns. */
html[data-ui-font-size="medium"] body :where(.v119-top-copy,.v119-side-copy,.location-monster-name,.v21-monster-title-line,.v23-location-monster,.v127-setting-row>div),
html[data-ui-font-size="large"] body :where(.v119-top-copy,.v119-side-copy,.location-monster-name,.v21-monster-title-line,.v23-location-monster,.v127-setting-row>div){
  min-width:0!important;
  max-width:100%!important;
}

/* 125%/150% safety: text may grow, but fixed mobile columns must not overflow.
   We do not zoom containers/images; dense one-line HUD labels use ellipsis, while
   ordinary descriptive text may wrap naturally inside its existing card. */
html[data-ui-font-size="medium"] body :where(button,.v92-setting-row,.v127-setting-row,.v119-top-copy,.v119-side-copy,.location-monster-name,.v21-monster-title-line,.v23-location-monster,.v17-monster-title-line,.top-title),
html[data-ui-font-size="large"] body :where(button,.v92-setting-row,.v127-setting-row,.v119-top-copy,.v119-side-copy,.location-monster-name,.v21-monster-title-line,.v23-location-monster,.v17-monster-title-line,.top-title){
  min-width:0!important;
  max-width:100%!important;
}
html[data-ui-font-size="medium"] body :where(.location-monster-name h3,.v17-monster-title-line h2,.v21-monster-title-line h2,.top-title h1,.top-title p),
html[data-ui-font-size="large"] body :where(.location-monster-name h3,.v17-monster-title-line h2,.v21-monster-title-line h2,.top-title h1,.top-title p){
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html[data-ui-font-size="medium"] body :where(p,small,.item-desc,.effect-description,.v127-setting-row>div),
html[data-ui-font-size="large"] body :where(p,small,.item-desc,.effect-description,.v127-setting-row>div){
  overflow-wrap:break-word;
  word-break:normal;
}
html[data-ui-font-size="large"] body :where(.v14654-font-option b,.v14654-font-option small){
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}

@media (max-width:360px){
  body.v127-ui .v14654-font-option{
    grid-template-columns:30px minmax(0,1fr)!important;
  }
  body.v127-ui .v14654-font-option>i{display:none!important}
  body.v127-ui .v14654-font-sample{width:30px!important;height:30px!important}
}

/* ===== css/v14655-font-layout.css ===== */
/* Aldos RPG v1.146.55 — 125%/150% typography layout stabilization + apply overlay.
   Font preference remains typography-only: no zoom/scale of the whole interface. */

#v14655-settings-applying{
  position:fixed!important;
  inset:0!important;
  z-index:10050!important;
  display:grid!important;
  place-items:center!important;
  padding:20px!important;
  background:rgba(2,9,11,.78)!important;
  -webkit-backdrop-filter:blur(10px)!important;
  backdrop-filter:blur(10px)!important;
  opacity:0!important;
  pointer-events:none!important;
  transition:opacity .16s ease!important;
}
#v14655-settings-applying.visible{
  opacity:1!important;
  pointer-events:auto!important;
}
#v14655-settings-applying>section{
  width:min(86vw,330px)!important;
  min-width:0!important;
  display:grid!important;
  justify-items:center!important;
  gap:8px!important;
  padding:24px 20px!important;
  border-radius:22px!important;
  border:1px solid rgba(215,170,75,.34)!important;
  background:linear-gradient(155deg,rgba(9,32,32,.98),rgba(4,17,21,.99))!important;
  box-shadow:0 24px 70px rgba(0,0,0,.52)!important;
  text-align:center!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
#v14655-settings-applying b{
  font-size:17px!important;
  line-height:1.2!important;
  color:#f0ead8!important;
}
#v14655-settings-applying small{
  font-size:12px!important;
  line-height:1.35!important;
  color:rgba(232,238,235,.64)!important;
}
.v14655-settings-spinner{
  width:42px!important;
  height:42px!important;
  display:block!important;
  border-radius:50%!important;
  border:4px solid rgba(125,215,189,.18)!important;
  border-top-color:#d5b65f!important;
  border-right-color:#7dd7bd!important;
  animation:v14655-settings-spin .72s linear infinite!important;
}
@keyframes v14655-settings-spin{to{transform:rotate(360deg)}}

/* During the half-second before reload, freeze interactive motion under the veil. */
body.v14655-font-applying{overflow:hidden!important}
body.v14655-font-applying #app,
body.v14655-font-applying #modal-root,
body.v14655-font-applying #toast-root{pointer-events:none!important}

/* General text-column guards. They prevent widened text from pushing siblings out. */
html[data-ui-font-size="medium"] body :where(
  .topbar>div,.top-title,.location-monster-name,.monster-battle-info,.skill-main,
  .v39-item-head,.v39-item-body,.item-name,.v127-setting-row>div,.v127-settings-account>div,
  .v119-top-copy,.v119-side-copy,.battle-section-title,.v14638-source-row>div
),
html[data-ui-font-size="large"] body :where(
  .topbar>div,.top-title,.location-monster-name,.monster-battle-info,.skill-main,
  .v39-item-head,.v39-item-body,.item-name,.v127-setting-row>div,.v127-settings-account>div,
  .v119-top-copy,.v119-side-copy,.battle-section-title,.v14638-source-row>div
){
  min-width:0!important;
  max-width:100%!important;
}

/* The most common "line slipped under the next line" cases came from very tight 1.0–1.05 line-height. */
html[data-ui-font-size="medium"] body :where(
  .topbar h1,.topbar p,.top-title h1,.top-title p,.location-monster-name h3,
  .v17-monster-title-line h2,.v21-monster-title-line h2,.v39-item-head h3,
  .skill-main h3,.skill-main>small,.v127-setting-row b,.v127-setting-row small,
  .v127-settings-account b,.v127-settings-account small,.item-description,.effect-description
){line-height:1.16!important}
html[data-ui-font-size="large"] body :where(
  .topbar h1,.topbar p,.top-title h1,.top-title p,.location-monster-name h3,
  .v17-monster-title-line h2,.v21-monster-title-line h2,.v39-item-head h3,
  .skill-main h3,.skill-main>small,.v127-setting-row b,.v127-setting-row small,
  .v127-settings-account b,.v127-settings-account small,.item-description,.effect-description
){line-height:1.22!important}

/* Descriptions may wrap, but never escape their card. */
html[data-ui-font-size="medium"] body :where(
  p,.item-description,.item-desc,.effect-description,.skill-main>small,.v127-setting-row small,
  .v127-settings-account small,.v14638-source-row small,.monster-stats,.v21-monster-stats
),
html[data-ui-font-size="large"] body :where(
  p,.item-description,.item-desc,.effect-description,.skill-main>small,.v127-setting-row small,
  .v127-settings-account small,.v14638-source-row small,.monster-stats,.v21-monster-stats
){
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  max-width:100%!important;
}

/* Single-line identity labels stay single-line and use ellipsis instead of shifting adjacent columns. */
html[data-ui-font-size="medium"] body :where(
  .location-monster-name h3,.v17-monster-title-line h2,.v21-monster-title-line h2,
  .v39-item-head h3,.topbar h1,.bottom-nav span
),
html[data-ui-font-size="large"] body :where(
  .location-monster-name h3,.v17-monster-title-line h2,.v21-monster-title-line h2,
  .v39-item-head h3,.topbar h1,.bottom-nav span
){
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Text-bearing rows get vertical room; icons/images themselves are not scaled. */
html[data-ui-font-size="medium"] body :where(
  .v92-setting-row,.v127-setting-row,.v127-settings-account,.ability-card,.v119-ability-card,.item-row
),
html[data-ui-font-size="large"] body :where(
  .v92-setting-row,.v127-setting-row,.v127-settings-account,.ability-card,.v119-ability-card,.item-row
){
  height:auto!important;
  max-height:none!important;
}
html[data-ui-font-size="medium"] body :where(.v119-ability-card,.ability-card){min-height:88px!important}
html[data-ui-font-size="large"] body :where(.v119-ability-card,.ability-card){min-height:102px!important}

/* Ability action buttons were fixed-height; allow them to grow with 125/150 text. */
html[data-ui-font-size="medium"] body .v119-ability-card .row-actions button{
  height:auto!important;min-height:40px!important;line-height:1.15!important;white-space:normal!important
}
html[data-ui-font-size="large"] body .v119-ability-card .row-actions button{
  height:auto!important;min-height:46px!important;line-height:1.18!important;white-space:normal!important
}

/* Settings selector is deliberately immune to the selected scale; its Aa samples demonstrate scale. */
html[data-ui-font-size="medium"] body .v14654-font-settings,
html[data-ui-font-size="large"] body .v14654-font-settings{
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
body.v127-ui .v14654-font-option{
  height:auto!important;
  max-height:none!important;
}

/* Tiny fixed HUD chips are layout-critical. Keep them readable but do not inflate them by 150%,
   otherwise their fixed icon/bar rows collide. Main names/descriptions still use the chosen scale. */
html[data-ui-font-size="medium"] body :where(
  .v23-battle-badge,.v17-taunt-badge,.target-pill,.item-weight,.v124-stack-badge,
  .v124-stack-count,.v127-item-primary-tag,.v127-material-kind,.v78-durability>b
),
html[data-ui-font-size="large"] body :where(
  .v23-battle-badge,.v17-taunt-badge,.target-pill,.item-weight,.v124-stack-badge,
  .v124-stack-count,.v127-item-primary-tag,.v127-material-kind,.v78-durability>b
){
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
  line-height:1.1!important;
}

/* Bottom navigation labels are allowed a little more vertical room without changing icon geometry. */
html[data-ui-font-size="medium"] body .bottom-nav button{min-height:54px!important;height:auto!important}
html[data-ui-font-size="large"] body .bottom-nav button{min-height:60px!important;height:auto!important}
html[data-ui-font-size="large"] body .bottom-nav span{line-height:1.1!important}

/* Inputs/buttons: prevent clipped glyphs while preserving widths. */
html[data-ui-font-size="medium"] body :where(input,select,textarea,button:not(.v92-switch):not(.hamburger):not(.modal-close)),
html[data-ui-font-size="large"] body :where(input,select,textarea,button:not(.v92-switch):not(.hamburger):not(.modal-close)){
  line-height:1.15!important;
}

@media(max-width:390px){
  html[data-ui-font-size="large"] body .v127-setting-row,
  html[data-ui-font-size="large"] body .v14638-source-row{
    gap:7px!important;
  }
  html[data-ui-font-size="large"] body .v119-ability-card{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
  html[data-ui-font-size="large"] body .v119-ability-card .row-actions{
    grid-column:1/-1!important;
    width:100%!important;
  }
}

/* ===== css/v14658-content-ui.css ===== */
/* Aldos RPG v1.146.58 — human lore, item title, travel geometry, cosmetic art contract. */

/* Item-detail name was visually overpowering, especially with 125/150% device text. */
html body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2,
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-copy>h2{
  font-size:clamp(15px,4.25vw,20px)!important;
  line-height:1.12!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{
  -webkit-text-size-adjust:110%!important;text-size-adjust:110%!important;
}
html[data-ui-font-size="large"] body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{
  -webkit-text-size-adjust:120%!important;text-size-adjust:120%!important;
}
html body.v127-ui .v122-item-modal .v122-item-detail-head.name-long>.v97-item-detail-copy>h2{font-size:15px!important}
html body.v127-ui .v122-item-modal .v122-item-detail-head.name-very-long>.v97-item-detail-copy>h2{font-size:13.5px!important}

/* Character creator: contributor lore first, current mechanics directly below it. */
body.v127-ui .v14658-role-lore{margin:4px 0 0!important;line-height:1.42!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:5!important;overflow:hidden!important}
body.v127-ui .v14658-role-mechanic{display:block!important;margin:7px auto 0!important;max-width:92%!important;padding:6px 8px!important;border-radius:9px!important;background:rgba(7,27,29,.62)!important;border:1px solid rgba(125,215,189,.14)!important;color:rgba(228,238,232,.68)!important;font-style:normal!important;font-size:8px!important;line-height:1.35!important}

/* Attribute prose never replaces authoritative current mechanics. */
body.v127-ui .v14658-attribute-lore{font-style:italic!important;color:rgba(236,229,206,.82)!important;line-height:1.5!important}
body.v127-ui .v14658-attribute-general{display:grid!important;gap:3px!important;margin:8px 0!important;padding:8px 10px!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:11px!important;background:rgba(4,17,20,.48)!important}
body.v127-ui .v14658-attribute-general small,body.v127-ui .v14658-skill-mechanic small{color:#d5b65f!important;font-size:7px!important;letter-spacing:.1em!important;text-transform:uppercase!important}
body.v127-ui .v14658-attribute-general b{font-size:9px!important;line-height:1.4!important;color:rgba(235,240,236,.78)!important}
body.v127-ui .v14658-skill-lore{line-height:1.5!important;color:rgba(240,232,208,.86)!important}
body.v127-ui .v14658-skill-mechanic{display:grid!important;gap:3px!important;margin:7px 0 10px!important;padding:8px 9px!important;border-radius:10px!important;background:rgba(5,20,23,.62)!important;border:1px solid rgba(125,215,189,.12)!important}
body.v127-ui .v14658-skill-mechanic p{margin:0!important}

/* Travel: make the destination/lore card taller and let its art breathe. */
html body.v127-ui .v14416-travel-screen{
  align-content:start!important;place-items:start center!important;gap:0!important;
  overflow-x:hidden!important;overflow-y:auto!important;padding:14px 9px max(28px,env(safe-area-inset-bottom))!important;
}
html body.v127-ui .v14416-travel-location-head{
  width:min(94vw,570px)!important;min-height:118px!important;height:auto!important;
  grid-template-columns:100px minmax(0,1fr)!important;gap:13px!important;padding:12px!important;
}
html body.v127-ui .v14416-travel-location-head>span{
  width:100px!important;height:100px!important;min-width:100px!important;align-self:start!important;
}
html body.v127-ui .v14416-travel-location-head img{
  width:108%!important;height:108%!important;object-fit:contain!important;object-position:center 54%!important;transform:none!important;clip-path:none!important;
}
html body.v127-ui .v14416-travel-location-head h2{font-size:18px!important;line-height:1.12!important;margin:3px 0 5px!important}
html body.v127-ui .v14416-travel-location-head p{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;
  overflow:hidden!important;font-size:9px!important;line-height:1.42!important;
}
/* The animated route card intentionally starts lower instead of sticking to the destination card. */
html body.v127-ui .v14416-travel-card{
  width:min(92vw,550px)!important;min-height:292px!important;max-height:none!important;
  margin-top:18px!important;margin-bottom:8px!important;
}
@media(max-width:380px){
  html body.v127-ui .v14416-travel-location-head{grid-template-columns:84px minmax(0,1fr)!important;min-height:112px!important;padding:10px!important}
  html body.v127-ui .v14416-travel-location-head>span{width:84px!important;height:92px!important;min-width:84px!important}
  html body.v127-ui .v14416-travel-location-head p{-webkit-line-clamp:4!important}
  html body.v127-ui .v14416-travel-card{margin-top:15px!important;min-height:278px!important}
}

/* Cosmetic previews now mirror the agreed source-art contracts. Runtime messages/cards stay content-driven. */
body.v127-ui .v14644-preview-message{aspect-ratio:32/9!important;min-height:92px!important;height:auto!important}
body.v127-ui .v14644-preview-card{aspect-ratio:3/2!important;min-height:0!important;height:auto!important}
body.v127-ui :where(.v14649-chat-cosmetic-bg,.v14649-player-cosmetic-bg,.v14649-preview-bg){object-fit:cover!important;object-position:center!important;image-rendering:auto!important}

/* ===== css/v14659-ui-customization.css ===== */
/* Aldos RPG v1.146.59 — UI personalization / patron hall / battle handles / light theme.
   Android-first. No image generation and no gameplay/state migration. */

/* --------------------------------------------------------------------------
   ITEM DETAIL — the full-card item name stays compact at EVERY font preset.
   Do not let Android text-size-adjust turn a long item name into the whole card.
   -------------------------------------------------------------------------- */
html body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2,
html body.v127-ui .v122-item-modal .v122-item-detail-head>.v97-item-detail-copy>h2{
  margin:0 0 3px!important;
  font-size:14px!important;
  line-height:1.14!important;
  letter-spacing:.005em!important;
  font-weight:800!important;
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  max-width:100%!important;
}
html[data-ui-font-size="compact"] body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{font-size:13px!important}
html[data-ui-font-size="normal"] body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{font-size:14px!important}
html[data-ui-font-size="medium"] body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{font-size:15px!important}
html[data-ui-font-size="large"] body.v127-ui .v122-item-detail-head .v97-item-detail-copy h2{font-size:16px!important}
html body.v127-ui .v122-item-modal .v122-item-detail-head.name-long>.v97-item-detail-copy>h2{font-size:13px!important}
html[data-ui-font-size="medium"] body.v127-ui .v122-item-modal .v122-item-detail-head.name-long>.v97-item-detail-copy>h2{font-size:14px!important}
html[data-ui-font-size="large"] body.v127-ui .v122-item-modal .v122-item-detail-head.name-long>.v97-item-detail-copy>h2{font-size:14.5px!important}
html body.v127-ui .v122-item-modal .v122-item-detail-head.name-very-long>.v97-item-detail-copy>h2{font-size:12px!important}
html[data-ui-font-size="medium"] body.v127-ui .v122-item-modal .v122-item-detail-head.name-very-long>.v97-item-detail-copy>h2{font-size:12.75px!important}
html[data-ui-font-size="large"] body.v127-ui .v122-item-modal .v122-item-detail-head.name-very-long>.v97-item-detail-copy>h2{font-size:13.25px!important}

/* --------------------------------------------------------------------------
   SETTINGS — dark/light selection. It uses the same applying spinner/reload
   already used by typography, so the theme is atomic and never half-applied.
   -------------------------------------------------------------------------- */
body.v127-ui .v14659-theme-settings>header p,
body.v127-ui .v14659-theme-note{
  color:rgba(232,238,235,.56)!important;
  font-size:8px!important;
  line-height:1.4!important;
}
body.v127-ui .v14659-theme-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
body.v127-ui .v14659-theme-option{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:68px!important;
  padding:8px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(255,255,255,.015))!important;
  color:#f2eee5!important;
  text-align:left!important;
  box-shadow:none!important;
}
body.v127-ui .v14659-theme-option.active{
  border-color:rgba(215,182,95,.72)!important;
  box-shadow:inset 0 0 0 1px rgba(215,182,95,.14)!important;
}
body.v127-ui .v14659-theme-option>span:nth-child(2){display:grid!important;gap:2px!important;min-width:0!important}
body.v127-ui .v14659-theme-option>span:nth-child(2)>b{font-size:10px!important;line-height:1.15!important}
body.v127-ui .v14659-theme-option>span:nth-child(2)>small{font-size:7px!important;line-height:1.25!important;color:rgba(232,238,235,.55)!important}
body.v127-ui .v14659-theme-preview{
  position:relative!important;
  display:block!important;
  width:54px!important;
  height:42px!important;
  overflow:hidden!important;
  border-radius:9px!important;
  border:1px solid rgba(255,255,255,.13)!important;
}
body.v127-ui .v14659-theme-preview.dark{background:#081013!important}
body.v127-ui .v14659-theme-preview.light{background:#f5f3ec!important}
body.v127-ui .v14659-theme-preview>i{position:absolute!important;left:5px!important;right:5px!important;top:5px!important;height:7px!important;border-radius:4px!important;background:currentColor!important;opacity:.28!important}
body.v127-ui .v14659-theme-preview>b{position:absolute!important;left:5px!important;right:20px!important;top:17px!important;height:15px!important;border-radius:5px!important;background:currentColor!important;opacity:.16!important}
body.v127-ui .v14659-theme-preview>em{position:absolute!important;right:5px!important;top:17px!important;width:11px!important;height:15px!important;border-radius:4px!important;background:#d5b65f!important}
body.v127-ui .v14659-theme-preview.dark{color:#eef2ec!important}
body.v127-ui .v14659-theme-preview.light{color:#1e2c31!important}
body.v127-ui .v14659-theme-check{font-style:normal!important;color:#d5b65f!important;font-size:14px!important;text-align:center!important}
body.v14659-theme-applying{overflow:hidden!important}
body.v14659-theme-applying #app,body.v14659-theme-applying #modal-root,body.v14659-theme-applying #toast-root{pointer-events:none!important}
html[data-ui-font-size="medium"] body .v14659-theme-settings,
html[data-ui-font-size="large"] body .v14659-theme-settings{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}

/* --------------------------------------------------------------------------
   PATRON HALL — a real premium location, without adding any new image asset.
   Existing art remains background support; cards get their identity from CSS.
   -------------------------------------------------------------------------- */
body.v127-ui .v14659-patron-hall{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  gap:10px!important;
  padding:10px!important;
  border:1px solid rgba(218,183,96,.22)!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 14% 4%,rgba(167,104,221,.18),transparent 29%),
    radial-gradient(circle at 88% 6%,rgba(215,182,95,.16),transparent 31%),
    linear-gradient(160deg,rgba(14,15,25,.95),rgba(7,10,16,.985))!important;
  box-shadow:0 18px 44px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.04)!important;
  overflow:hidden!important;
}
body.v127-ui .v14659-patron-hall::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-2!important;
  background-image:linear-gradient(180deg,rgba(8,9,15,.28),rgba(8,9,15,.92)),var(--patron-bg)!important;
  background-size:cover!important;
  background-position:center top!important;
  opacity:.42!important;
  pointer-events:none!important;
}
body.v127-ui .v14659-patron-hall::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-1!important;
  background:linear-gradient(90deg,rgba(215,182,95,.08) 1px,transparent 1px),linear-gradient(rgba(215,182,95,.06) 1px,transparent 1px)!important;
  background-size:34px 34px!important;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.46),transparent 48%)!important;
  pointer-events:none!important;
}
body.v127-ui .v14659-patron-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(112px,31%)!important;
  gap:10px!important;
  align-items:stretch!important;
  min-height:0!important;
  padding:13px!important;
  border:1px solid rgba(218,183,96,.18)!important;
  border-radius:17px!important;
  background:linear-gradient(135deg,rgba(50,34,73,.73),rgba(17,17,27,.88) 58%,rgba(75,52,26,.48))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.05)!important;
}
body.v127-ui .v14659-patron-hero-copy{min-width:0!important}
body.v127-ui .v14659-patron-hero-copy>small{color:#d5b65f!important;font-size:7px!important;font-weight:900!important;letter-spacing:.12em!important}
body.v127-ui .v14659-patron-hero-copy h1{margin:4px 0!important;color:#f5efe2!important;font:800 clamp(18px,5.4vw,28px)/1.02 Georgia,serif!important;letter-spacing:.015em!important}
body.v127-ui .v14659-patron-hero-copy p{max-width:520px!important;margin:5px 0 0!important;color:rgba(235,231,226,.71)!important;font-size:9px!important;line-height:1.5!important}
body.v127-ui .v14659-patron-trust{display:flex!important;gap:5px!important;flex-wrap:wrap!important;margin-top:8px!important}
body.v127-ui .v14659-patron-trust span{padding:4px 6px!important;border:1px solid rgba(125,215,189,.13)!important;border-radius:999px!important;background:rgba(5,22,25,.36)!important;color:#b9d7ce!important;font-size:6.5px!important;white-space:nowrap!important}
body.v127-ui .v14659-patron-wallet{
  display:grid!important;
  align-content:center!important;
  justify-items:center!important;
  gap:2px!important;
  min-width:0!important;
  padding:10px 7px!important;
  border:1px solid rgba(215,182,95,.22)!important;
  border-radius:14px!important;
  background:linear-gradient(155deg,rgba(9,24,27,.85),rgba(29,22,38,.92))!important;
  text-align:center!important;
}
body.v127-ui .v14659-patron-wallet>small{color:#928c94!important;font-size:6px!important;letter-spacing:.12em!important}
body.v127-ui .v14659-patron-wallet>b{display:flex!important;align-items:center!important;gap:5px!important;color:#f0d98e!important;font-size:16px!important;line-height:1!important}
body.v127-ui .v14659-patron-wallet>b img{width:27px!important;height:27px!important;object-fit:contain!important}
body.v127-ui .v14659-patron-wallet>span{color:#aaa5ad!important;font-size:7px!important}
body.v127-ui .v14659-patron-wallet>em{margin-top:5px!important;padding:4px 6px!important;border-radius:999px!important;background:rgba(215,182,95,.09)!important;color:#d8c27f!important;font-size:6.5px!important;font-style:normal!important}
body.v127-ui .v14659-patron-recipient{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(135px,42%)!important;
  gap:9px!important;
  align-items:center!important;
  padding:9px 10px!important;
  border:1px solid rgba(255,255,255,.065)!important;
  border-radius:14px!important;
  background:rgba(12,17,23,.72)!important;
}
body.v127-ui .v14659-patron-recipient>div{display:grid!important;gap:1px!important;min-width:0!important}
body.v127-ui .v14659-patron-recipient>div>small{color:#7dd7bd!important;font-size:6px!important;letter-spacing:.12em!important}
body.v127-ui .v14659-patron-recipient>div>b{font-size:10px!important;color:#eee9dd!important}
body.v127-ui .v14659-patron-recipient>div>p{margin:0!important;color:#8e9195!important;font-size:7px!important;line-height:1.35!important}
body.v127-ui .v14659-patron-recipient .v14644-character-select{margin:0!important;padding:0!important;border:0!important;background:none!important}
body.v127-ui .v14659-patron-recipient .v14644-character-select>span{display:none!important}
body.v127-ui .v14659-patron-recipient .v14644-character-select select{width:100%!important;max-width:none!important;height:38px!important;padding:0 9px!important;border:1px solid rgba(215,182,95,.18)!important;background:#111922!important;color:#efeade!important}
body.v127-ui .v14659-patron-tabs{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(max-content,1fr))!important;
  gap:4px!important;
  margin:0!important;
  padding:3px!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-radius:13px!important;
  background:rgba(7,11,16,.62)!important;
  overflow-x:auto!important;
}
body.v127-ui .v14659-patron-tabs button{min-height:35px!important;padding:5px 8px!important;border-radius:9px!important;color:#999aa2!important;font-size:7px!important;font-weight:800!important}
body.v127-ui .v14659-patron-tabs button.active{border-color:rgba(215,182,95,.24)!important;background:linear-gradient(180deg,rgba(215,182,95,.18),rgba(106,74,26,.11))!important;color:#f2d98d!important}
body.v127-ui .v14659-patron-main{display:grid!important;gap:9px!important;min-width:0!important}
body.v127-ui .v14659-patron-section-head{display:grid!important;gap:2px!important;padding:2px 2px 0!important;background:none!important;min-height:0!important}
body.v127-ui .v14659-patron-section-head>small{color:#927ec0!important;font-size:6.5px!important;font-weight:900!important;letter-spacing:.13em!important}
body.v127-ui .v14659-patron-section-head h2{margin:0!important;color:#f1ede5!important;font-size:14px!important;line-height:1.15!important}
body.v127-ui .v14659-patron-section-head p{margin:1px 0!important;color:#8f9298!important;font-size:7.5px!important;line-height:1.4!important}
body.v127-ui .v14659-products{gap:8px!important}
body.v127-ui .v14659-patron-product{
  position:relative!important;
  display:grid!important;
  grid-template-columns:55px minmax(0,1fr)!important;
  grid-template-rows:auto 1fr auto!important;
  gap:8px!important;
  min-height:164px!important;
  padding:9px!important;
  border-radius:15px!important;
  overflow:hidden!important;
}
body.v127-ui .v14659-patron-product.convenience{border-color:rgba(125,215,189,.13)!important;background:linear-gradient(145deg,rgba(12,36,36,.83),rgba(12,15,21,.96))!important}
body.v127-ui .v14659-patron-product.cosmetic{border-color:rgba(174,130,226,.17)!important;background:linear-gradient(145deg,rgba(39,28,58,.82),rgba(13,14,21,.96))!important}
body.v127-ui .v14659-product-art{position:relative!important;display:grid!important;align-content:start!important;justify-items:center!important;gap:3px!important}
body.v127-ui .v14659-product-art>img{width:52px!important;height:59px!important;object-fit:contain!important;filter:drop-shadow(0 7px 12px rgba(0,0,0,.28))!important}
body.v127-ui .v14659-product-art>small{padding:2px 4px!important;border-radius:999px!important;background:rgba(0,0,0,.26)!important;color:#d5b65f!important;font-size:5.6px!important;font-weight:900!important}
body.v127-ui .v14659-product-copy{display:grid!important;align-content:start!important;gap:2px!important;min-width:0!important}
body.v127-ui .v14659-product-copy>span{color:#7a9995!important;font-size:6px!important;line-height:1.2!important}
body.v127-ui .v14659-product-copy h3{margin:0!important;color:#f0ece3!important;font-size:10px!important;line-height:1.18!important}
body.v127-ui .v14659-product-copy p{display:-webkit-box!important;margin:1px 0 0!important;color:#a4a4aa!important;font-size:7px!important;line-height:1.4!important;-webkit-line-clamp:4!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
body.v127-ui .v14659-product-buy{grid-column:1/-1!important;align-self:end!important;padding-top:4px!important;border-top:1px solid rgba(255,255,255,.05)!important}
body.v127-ui .v14659-product-buy .v14644-price-actions{justify-content:stretch!important}
body.v127-ui .v14659-product-buy .v14644-price-actions button{flex:1 1 0!important;min-width:0!important}
body.v127-ui .v14659-vip-card{
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  gap:10px!important;
  padding:11px!important;
  border:1px solid rgba(215,182,95,.26)!important;
  border-radius:18px!important;
  background:radial-gradient(circle at 10% 12%,rgba(216,181,94,.13),transparent 34%),linear-gradient(135deg,rgba(49,35,73,.87),rgba(16,16,25,.96) 55%,rgba(54,37,20,.64))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.05),0 10px 28px rgba(0,0,0,.19)!important;
}
body.v127-ui .v14659-vip-card.active{border-color:rgba(125,215,189,.35)!important}
body.v127-ui .v14659-vip-art{grid-row:1/3;position:relative!important;display:grid!important;align-content:start!important;justify-items:center!important;gap:4px!important}
body.v127-ui .v14659-vip-art img{width:74px!important;height:82px!important;object-fit:contain!important;filter:drop-shadow(0 8px 17px rgba(0,0,0,.38))!important}
body.v127-ui .v14659-vip-art span{padding:3px 6px!important;border:1px solid rgba(215,182,95,.2)!important;border-radius:999px!important;background:rgba(6,10,14,.6)!important;color:#f0d687!important;font-size:6px!important;font-weight:900!important;letter-spacing:.08em!important}
body.v127-ui .v14659-vip-copy{min-width:0!important}
body.v127-ui .v14659-vip-copy>small{color:#d5b65f!important;font-size:6px!important;letter-spacing:.12em!important;font-weight:900!important}
body.v127-ui .v14659-vip-copy h2{margin:2px 0!important;font-size:15px!important;color:#f5efe0!important}
body.v127-ui .v14659-vip-copy>p{margin:0!important;color:#acaab0!important;font-size:7.5px!important;line-height:1.42!important}
body.v127-ui .v14659-vip-benefits{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;margin-top:8px!important}
body.v127-ui .v14659-vip-benefits>span{display:grid!important;gap:1px!important;padding:5px 3px!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:9px!important;background:rgba(6,12,17,.42)!important;text-align:center!important}
body.v127-ui .v14659-vip-benefits b{color:#f0d68a!important;font-size:8px!important}
body.v127-ui .v14659-vip-benefits small{color:#868991!important;font-size:5.5px!important}
body.v127-ui .v14659-vip-buy{grid-column:2!important;min-width:0!important}
body.v127-ui .v14659-vip-gift{grid-column:1/-1!important;min-height:39px!important;border-color:rgba(125,215,189,.22)!important;background:linear-gradient(180deg,rgba(47,113,98,.32),rgba(14,44,42,.45))!important;color:#cceade!important}
body.v127-ui .v14659-token-grid{gap:7px!important}
body.v127-ui .v14659-token-card{grid-template-columns:56px minmax(0,1fr) auto!important;min-height:66px!important;padding:8px 9px!important;border-color:rgba(215,182,95,.18)!important;background:linear-gradient(135deg,rgba(32,25,43,.9),rgba(11,15,20,.95))!important}
body.v127-ui .v14659-token-art{display:grid!important;place-items:center!important;width:50px!important;height:50px!important;border-radius:13px!important;background:rgba(215,182,95,.07)!important}
body.v127-ui .v14659-token-art img{width:42px!important;height:42px!important;object-fit:contain!important}
body.v127-ui .v14659-token-card>span{display:grid!important;gap:1px!important;min-width:0!important}
body.v127-ui .v14659-token-card>span>small{color:#8d84a0!important;font-size:5.6px!important;letter-spacing:.1em!important}
body.v127-ui .v14659-token-card>span>b{font-size:10px!important;color:#ede9df!important}
body.v127-ui .v14659-token-card>span>strong{font-size:9px!important;color:#e2c777!important}
body.v127-ui .v14659-patron-footer{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin:0!important;padding:8px 0 0!important;border-top:1px solid rgba(255,255,255,.06)!important;overflow:visible!important}
body.v127-ui .v14659-patron-footer button{min-height:32px!important;padding:5px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:9px!important;background:rgba(255,255,255,.02)!important;color:#9899a1!important;font-size:6.4px!important}
body.v127-ui .v14659-patron-footer>span{grid-column:1/-1!important;margin:0!important;text-align:center!important}
body.v127-ui .v14659-patron-loading{display:grid!important;justify-items:center!important;gap:7px!important;padding:38px 12px!important;text-align:center!important}
body.v127-ui .v14659-patron-loading i{width:32px!important;height:32px!important;border:3px solid rgba(215,182,95,.15)!important;border-top-color:#d5b65f!important;border-radius:50%!important;animation:v14655-settings-spin .8s linear infinite!important}
body.v127-ui .v14659-patron-loading small{color:#888890!important;font-size:7px!important}

/* --------------------------------------------------------------------------
   ABILITIES OUTSIDE BATTLE — clearer loadout/progression hierarchy.
   -------------------------------------------------------------------------- */
body.v127-ui .v14659-abilities-shell{display:grid!important;gap:9px!important;min-width:0!important}
body.v127-ui .v14659-abilities-hero{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  padding:11px!important;
  border:1px solid rgba(125,215,189,.13)!important;
  border-radius:17px!important;
  background:radial-gradient(circle at 9% 10%,rgba(125,215,189,.11),transparent 26%),linear-gradient(145deg,rgba(11,31,33,.91),rgba(12,17,23,.97))!important;
}
body.v127-ui .v14659-abilities-emblem{display:grid!important;place-items:center!important;width:56px!important;height:56px!important;border:1px solid rgba(215,182,95,.18)!important;border-radius:15px!important;background:rgba(5,14,18,.68)!important}
body.v127-ui .v14659-abilities-emblem img,body.v127-ui .v14659-abilities-emblem svg{width:38px!important;height:38px!important;object-fit:contain!important}
body.v127-ui .v14659-abilities-hero>div{min-width:0!important}
body.v127-ui .v14659-abilities-hero>div>small{color:#7dd7bd!important;font-size:6px!important;font-weight:900!important;letter-spacing:.12em!important}
body.v127-ui .v14659-abilities-hero h2{margin:2px 0!important;font-size:15px!important;color:#eef1e9!important}
body.v127-ui .v14659-abilities-hero p{margin:0!important;color:#929c99!important;font-size:7px!important;line-height:1.4!important}
body.v127-ui .v14659-abilities-hero>aside{display:grid!important;grid-template-columns:auto auto!important;align-items:baseline!important;gap:1px 4px!important;padding:7px!important;border-radius:12px!important;background:rgba(0,0,0,.22)!important;text-align:right!important}
body.v127-ui .v14659-abilities-hero>aside>b{color:#e5ce84!important;font-size:11px!important}
body.v127-ui .v14659-abilities-hero>aside>small{color:#7d8885!important;font-size:5.8px!important}
body.v127-ui .v14659-abilities-hero>aside>i{grid-column:1/-1!important;height:1px!important;background:rgba(255,255,255,.06)!important}
body.v127-ui .v14659-abilities-progress{display:grid!important;gap:4px!important;padding:8px 10px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:13px!important;background:rgba(10,16,21,.72)!important}
body.v127-ui .v14659-abilities-progress>div:first-child{display:flex!important;justify-content:space-between!important;gap:8px!important;color:#9aa29f!important;font-size:7px!important}
body.v127-ui .v14659-abilities-progress>div:first-child b{color:#d9c77e!important}
body.v127-ui .v14659-abilities-progressbar{height:5px!important;border-radius:999px!important;background:#071013!important;overflow:hidden!important}
body.v127-ui .v14659-abilities-progressbar i{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#4eaa92,#d5b65f)!important}
body.v127-ui .v14659-abilities-progress>small{color:#747e7b!important;font-size:6.3px!important}
body.v127-ui .v14659-ability-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:4px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:14px!important;background:rgba(8,13,18,.68)!important}
body.v127-ui .v14659-ability-tabs button{display:grid!important;grid-template-columns:25px minmax(0,1fr) auto!important;align-items:center!important;gap:5px!important;min-width:0!important;min-height:48px!important;padding:6px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;text-align:left!important;color:#8e9794!important}
body.v127-ui .v14659-ability-tabs button.active{border-color:rgba(125,215,189,.18)!important;background:linear-gradient(145deg,rgba(55,126,108,.2),rgba(255,255,255,.02))!important;color:#dfe9e4!important}
body.v127-ui .v14659-ability-tab-icon{display:grid!important;place-items:center!important;width:25px!important;height:25px!important;border-radius:8px!important;background:rgba(0,0,0,.2)!important}
body.v127-ui .v14659-ability-tab-icon img{width:18px!important;height:18px!important;object-fit:contain!important}
body.v127-ui .v14659-ability-tabs button>span:nth-child(2){display:grid!important;min-width:0!important}
body.v127-ui .v14659-ability-tabs b{font-size:7.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v14659-ability-tabs small{font-size:5.5px!important;color:#6e7b77!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.v127-ui .v14659-ability-tabs em{display:grid!important;place-items:center!important;min-width:19px!important;height:19px!important;padding:0 4px!important;border-radius:999px!important;background:rgba(215,182,95,.09)!important;color:#d4bd78!important;font-size:6px!important;font-style:normal!important}
body.v127-ui .v14659-ability-page{display:none!important}
body.v127-ui .v14659-ability-page.active{display:block!important}
body.v127-ui .v14659-ability-panel{display:grid!important;gap:7px!important;padding:9px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(12,20,24,.92),rgba(7,12,17,.95))!important}
body.v127-ui .v14659-ability-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
body.v127-ui .v14659-ability-section-head>span{display:grid!important;min-width:0!important}
body.v127-ui .v14659-ability-section-head small{color:#7dd7bd!important;font-size:6px!important;letter-spacing:.12em!important}
body.v127-ui .v14659-ability-section-head h2{margin:1px 0!important;font-size:12px!important;color:#ecefe7!important}
body.v127-ui .v14659-ability-section-head>em{padding:4px 6px!important;border-radius:999px!important;background:rgba(215,182,95,.08)!important;color:#cdb876!important;font-size:6px!important;font-style:normal!important;white-space:nowrap!important}
body.v127-ui .v14659-ability-panel>p.muted{margin:0!important;color:#7f8986!important;font-size:6.8px!important;line-height:1.4!important}
body.v127-ui .v14659-ability-list{display:grid!important;gap:6px!important}
body.v127-ui .v14659-ability-list .v119-ability-card{
  min-height:76px!important;
  border-color:rgba(255,255,255,.06)!important;
  border-radius:13px!important;
  background:linear-gradient(105deg,rgba(255,255,255,.035),rgba(255,255,255,.012))!important;
}
body.v127-ui .v14659-ability-list .v119-ability-card.equipped{border-color:rgba(125,215,189,.2)!important;background:linear-gradient(105deg,rgba(53,122,105,.13),rgba(255,255,255,.012))!important}
body.v127-ui .v14659-ability-list .v119-ability-card.locked{opacity:.58!important;filter:saturate(.55)!important}
body.v127-ui .v14659-ability-list .skill-main h3{font-size:10px!important;line-height:1.15!important}
body.v127-ui .v14659-ability-list .skill-main>small{color:#77817e!important}

/* --------------------------------------------------------------------------
   BATTLE — movable Skills/Chat handles. Long press shows vertical arrows and
   every handle gets its own saved Y position. No obsolete drawer arrows/grips.
   -------------------------------------------------------------------------- */
html body.v127-ui.v111-battle-active #skills-drawer-open.v14659-movable-handle{
  top:var(--v14659-skill-handle-top,var(--v111-side-handle-top,220px))!important;
  grid-template-columns:1fr!important;
  width:52px!important;min-width:52px!important;max-width:52px!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;
  padding:5px!important;
  transition:box-shadow .15s ease,filter .15s ease!important;
  touch-action:pan-y!important;
}
html body.v127-ui.v111-battle-active #chat-drawer-open.v14659-movable-handle{
  top:var(--v14659-chat-handle-top,var(--v111-side-handle-top,220px))!important;
  transition:box-shadow .15s ease,filter .15s ease!important;
  touch-action:pan-y!important;
}
html body.v127-ui.v111-battle-active .v14659-movable-handle .v111-handle-icon{grid-column:1!important;grid-row:1!important}
html body.v127-ui.v111-battle-active .v14659-movable-handle.v14659-handle-dragging{
  z-index:115!important;
  border-color:rgba(215,182,95,.85)!important;
  box-shadow:0 0 0 4px rgba(215,182,95,.12),0 10px 28px rgba(0,0,0,.45)!important;
  filter:brightness(1.14)!important;
  touch-action:none!important;
}
body.v127-ui .v14659-handle-move-hint{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  z-index:8!important;
  display:none!important;
  grid-template-rows:auto auto!important;
  place-items:center!important;
  gap:24px!important;
  width:30px!important;
  height:94px!important;
  transform:translate(-50%,-50%)!important;
  pointer-events:none!important;
}
body.v127-ui .v14659-handle-move-hint i{
  display:grid!important;place-items:center!important;
  width:25px!important;height:25px!important;
  border:1px solid rgba(215,182,95,.58)!important;border-radius:50%!important;
  background:#111820!important;color:#f0d687!important;
  font:900 15px/1 Arial,sans-serif!important;font-style:normal!important;
  box-shadow:0 5px 14px rgba(0,0,0,.38)!important;
}
body.v127-ui .v14659-movable-handle.v14659-handle-dragging .v14659-handle-move-hint{display:grid!important}
body.v127-ui.v14659-handle-repositioning::after{
  content:"Удерживайте и перемещайте · отпустите, чтобы сохранить"!important;
  position:fixed!important;
  z-index:114!important;
  left:50%!important;bottom:max(74px,calc(env(safe-area-inset-bottom) + 62px))!important;
  transform:translateX(-50%)!important;
  max-width:82vw!important;
  padding:6px 9px!important;
  border:1px solid rgba(215,182,95,.28)!important;
  border-radius:999px!important;
  background:rgba(7,13,17,.94)!important;
  color:#e8d896!important;
  font:700 8px/1.2 system-ui,sans-serif!important;
  text-align:center!important;
  pointer-events:none!important;
  box-shadow:0 8px 22px rgba(0,0,0,.34)!important;
}
body.v127-ui :where(.v108-drawer-grip,.v108-chevron,.v113-support-caret,[data-drawer-grip]){display:none!important}

/* Attack is visually unmistakable now: crimson instead of another gold/teal control. */
html body.v127-ui.v111-battle-active .v106-round-attack{
  border-color:rgba(255,111,137,.78)!important;
  background:radial-gradient(circle at 38% 30%,#a62b49 0%,#77172f 40%,#3d0716 100%)!important;
  box-shadow:0 10px 25px rgba(25,0,8,.58),0 0 0 3px rgba(40,4,16,.8),0 0 20px rgba(191,36,75,.3)!important;
}
html body.v127-ui.v111-battle-active .v106-round-attack:active{background:radial-gradient(circle at 38% 30%,#bb3657,#6b1129 48%,#330510 100%)!important}
html body.v127-ui.v111-battle-active .v106-round-attack:disabled{filter:grayscale(.55) brightness(.72)!important;opacity:.62!important}

/* Battle summary colors: no more blanket green. */
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry{border-left-color:#74827d!important;background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.012))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.damage{border-left-color:#e46b75!important;background:linear-gradient(90deg,rgba(143,30,48,.14),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.heal{border-left-color:#72c891!important;background:linear-gradient(90deg,rgba(53,130,89,.13),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill{border-left-color:#74a9e9!important;background:linear-gradient(90deg,rgba(54,92,142,.14),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.condition{border-left-color:#bf79d9!important;background:linear-gradient(90deg,rgba(103,45,126,.15),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.support{border-left-color:#62c9c1!important;background:linear-gradient(90deg,rgba(42,113,108,.14),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.summon{border-left-color:#e09d58!important;background:linear-gradient(90deg,rgba(129,80,31,.14),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.reward{border-left-color:#e2c45f!important;background:linear-gradient(90deg,rgba(135,108,30,.15),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v106-log-entry.damage mark.number{color:#ff8796!important}
html body.v127-ui.v111-battle-active .v106-log-entry.heal mark.number{color:#8ee7a9!important}
html body.v127-ui.v111-battle-active .v106-log-entry.condition mark.effect{color:#d79aee!important}
html body.v127-ui.v111-battle-active .v106-log-entry.support mark.effect{color:#8be0d9!important}
html body.v127-ui.v111-battle-active .v106-log-entry mark.ability{color:#9bc5ff!important}
html body.v127-ui.v111-battle-active .v106-log-entry mark.resource{color:#d7c47f!important}

/* --------------------------------------------------------------------------
   LOCATION — richer hierarchy; distinct areas are not all the same teal slab.
   -------------------------------------------------------------------------- */
body.v127-ui.v134-location-screen .v119-location-hero{
  border-color:rgba(101,173,191,.17)!important;
  background:radial-gradient(circle at 12% 18%,rgba(64,145,165,.13),transparent 32%),linear-gradient(145deg,rgba(12,31,37,.92),rgba(12,17,24,.97))!important;
}
body.v127-ui.v134-location-screen .v119-location-routes{
  border-color:rgba(216,181,94,.13)!important;
  background:linear-gradient(145deg,rgba(46,36,20,.42),rgba(12,17,21,.9))!important;
}
body.v127-ui.v134-location-screen .v119-players-panel{
  border-color:rgba(124,151,222,.13)!important;
  background:linear-gradient(145deg,rgba(28,40,75,.28),rgba(11,17,22,.94))!important;
}
body.v127-ui.v134-location-screen .v119-battles-panel{
  border-color:rgba(190,93,113,.14)!important;
  background:linear-gradient(145deg,rgba(87,28,43,.24),rgba(12,16,21,.94))!important;
}
body.v127-ui.v134-location-screen .v119-monsters-panel{
  border-color:rgba(163,120,193,.14)!important;
  background:linear-gradient(145deg,rgba(55,36,73,.25),rgba(12,17,22,.95))!important;
}
body.v127-ui.v134-location-screen .v119-monster-card:nth-child(4n+1){border-color:rgba(102,182,164,.15)!important}
body.v127-ui.v134-location-screen .v119-monster-card:nth-child(4n+2){border-color:rgba(196,144,82,.15)!important}
body.v127-ui.v134-location-screen .v119-monster-card:nth-child(4n+3){border-color:rgba(132,128,205,.15)!important}
body.v127-ui.v134-location-screen .v119-monster-card:nth-child(4n){border-color:rgba(183,94,119,.15)!important}
body.v127-ui.v134-location-screen .location-btn:nth-child(3n+1){border-color:rgba(99,176,195,.18)!important}
body.v127-ui.v134-location-screen .location-btn:nth-child(3n+2){border-color:rgba(214,178,91,.17)!important}
body.v127-ui.v134-location-screen .location-btn:nth-child(3n){border-color:rgba(150,121,195,.17)!important}

/* --------------------------------------------------------------------------
   LIGHT THEME — full UI recolor, not CSS invert. Images keep natural colors.
   -------------------------------------------------------------------------- */
html[data-ui-theme="light"]{
  color-scheme:light!important;
  background:#ecebe7!important;
}
html[data-ui-theme="light"] body{
  background:linear-gradient(180deg,#f5f4ef,#e9ecea)!important;
  color:#1c292d!important;
}
html[data-ui-theme="light"] body::before,
html[data-ui-theme="light"] body::after{filter:none!important}
html[data-ui-theme="light"] body.v127-ui :where(.screen,.login-screen){color:#1d2b2f!important}
html[data-ui-theme="light"] body.v127-ui :where(.topbar,.v119-topbar){
  border-color:rgba(24,46,52,.10)!important;
  background:rgba(250,249,245,.97)!important;
  color:#1b292d!important;
  box-shadow:0 6px 18px rgba(30,48,55,.07)!important;
}
html[data-ui-theme="light"] body.v127-ui :where(.bottom-nav,.v119-bottom-nav){
  border-color:rgba(24,46,52,.10)!important;
  background:rgba(249,248,244,.98)!important;
  box-shadow:0 -7px 20px rgba(29,48,55,.08)!important;
}
html[data-ui-theme="light"] body.v127-ui .bottom-nav button{color:#657377!important}
html[data-ui-theme="light"] body.v127-ui .bottom-nav button.active{color:#176f67!important;background:rgba(36,126,115,.08)!important}
html[data-ui-theme="light"] body.v127-ui :where(.side,.v119-side){
  border-color:rgba(24,46,52,.10)!important;
  background:linear-gradient(180deg,#fbfaf6,#eef1ef)!important;
  color:#1e2d31!important;
  box-shadow:16px 0 36px rgba(24,42,48,.12)!important;
}
html[data-ui-theme="light"] body.v127-ui :where(.v119-side-head,.v76-side-head){background:rgba(226,232,229,.8)!important;border-color:rgba(24,46,52,.08)!important}
html[data-ui-theme="light"] body.v127-ui .v119-side-nav button{color:#46565a!important;border-color:rgba(24,46,52,.06)!important;background:rgba(255,255,255,.45)!important}
html[data-ui-theme="light"] body.v127-ui .v119-side-nav button.active{color:#155f59!important;background:rgba(40,126,115,.10)!important;border-color:rgba(40,126,115,.18)!important}
html[data-ui-theme="light"] body.v127-ui :where(.v119-page-heading h1,h1,h2,h3,strong,b){text-shadow:none!important}
html[data-ui-theme="light"] body.v127-ui :where(.panel,.v119-location-panel,.v119-inventory-shell,.v39-profile-card,.v119-equipment-panel,.v127-settings-group,.v92-settings-hero,.v127-settings-hero,.v127-settings-account,.v14659-ability-panel,.v14659-abilities-progress){
  border-color:rgba(24,48,54,.095)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(239,242,239,.96))!important;
  color:#1c2b2f!important;
  box-shadow:0 6px 18px rgba(26,46,52,.045)!important;
}
html[data-ui-theme="light"] body.v127-ui :where(.muted,p,small,.v119-location-copy p,.v127-setting-row small,.v127-settings-account small){color:#68777a!important}
html[data-ui-theme="light"] body.v127-ui :where(input,textarea,select){
  border-color:rgba(28,54,60,.14)!important;
  background:#fff!important;
  color:#1b2a2e!important;
  caret-color:#176f67!important;
}
html[data-ui-theme="light"] body.v127-ui :where(button:not(.danger):not(.primary)){border-color:rgba(28,54,60,.11)!important;color:#34474b!important}
html[data-ui-theme="light"] body.v127-ui button.primary{border-color:#19766d!important;background:linear-gradient(180deg,#2e9a8c,#196f67)!important;color:#fff!important}
html[data-ui-theme="light"] body.v127-ui button.danger{border-color:#bd5364!important;background:linear-gradient(180deg,#c85a69,#9d394a)!important;color:#fff!important}
html[data-ui-theme="light"] body.v127-ui :where(.modal-back,.v14644-modal){background:rgba(51,61,63,.38)!important}
html[data-ui-theme="light"] body.v127-ui :where(.modal,.v14644-modal>article){border-color:rgba(28,54,60,.13)!important;background:linear-gradient(145deg,#fff,#eef1ef)!important;color:#1d2c30!important;box-shadow:0 22px 60px rgba(29,49,54,.18)!important}

/* Light location remains colorful but uses pale tints instead of dark slabs. */
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-location-hero{background:linear-gradient(145deg,#edf7f6,#f9f8f3)!important;border-color:rgba(46,130,127,.15)!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-location-routes{background:linear-gradient(145deg,#faf3df,#f8f7f1)!important;border-color:rgba(163,121,35,.14)!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-players-panel{background:linear-gradient(145deg,#edf1fb,#f8f8f4)!important;border-color:rgba(74,100,165,.13)!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-battles-panel{background:linear-gradient(145deg,#faecef,#f9f7f2)!important;border-color:rgba(164,69,91,.13)!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-monsters-panel{background:linear-gradient(145deg,#f4edf9,#f8f7f2)!important;border-color:rgba(117,77,153,.13)!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen :where(.v119-monster-card,.v119-location-player,.v119-battle-row,.location-btn){background:rgba(255,255,255,.72)!important;color:#203034!important;box-shadow:0 4px 12px rgba(29,49,54,.04)!important}

/* Light inventory / item / abilities. */
html[data-ui-theme="light"] body.v127-ui :where(.v119-item-card,.ability-card,.v119-ability-card,.v119-pit-item){border-color:rgba(28,54,60,.09)!important;background:linear-gradient(145deg,#fff,#f1f3f0)!important;color:#1c2c30!important}
html[data-ui-theme="light"] body.v127-ui .v14659-abilities-hero{border-color:rgba(31,126,113,.14)!important;background:linear-gradient(145deg,#e9f5f2,#f8f8f3)!important;color:#1d2d30!important}
html[data-ui-theme="light"] body.v127-ui .v14659-abilities-emblem{background:#fff!important;border-color:rgba(146,111,41,.14)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-abilities-hero h2,
html[data-ui-theme="light"] body.v127-ui .v14659-ability-section-head h2,
html[data-ui-theme="light"] body.v127-ui .v14659-ability-list .skill-main h3{color:#1d2d30!important}
html[data-ui-theme="light"] body.v127-ui .v14659-ability-tabs{background:#e9edeb!important;border-color:rgba(28,54,60,.08)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-ability-tabs button{color:#68777a!important}
html[data-ui-theme="light"] body.v127-ui .v14659-ability-tabs button.active{background:#fff!important;border-color:rgba(31,126,113,.15)!important;color:#1b5f59!important}
html[data-ui-theme="light"] body.v127-ui .v14659-ability-tab-icon{background:#edf2ef!important}

/* Settings in light mode. */
html[data-ui-theme="light"] body.v127-ui .v14654-font-option,
html[data-ui-theme="light"] body.v127-ui .v14659-theme-option{border-color:rgba(27,50,56,.10)!important;background:#fff!important;color:#1e2d31!important}
html[data-ui-theme="light"] body.v127-ui .v14654-font-option.active,
html[data-ui-theme="light"] body.v127-ui .v14659-theme-option.active{border-color:rgba(31,126,113,.38)!important;background:#eef7f4!important}
html[data-ui-theme="light"] body.v127-ui .v14654-font-option small,
html[data-ui-theme="light"] body.v127-ui .v14659-theme-option small,
html[data-ui-theme="light"] body.v127-ui .v14654-font-note,
html[data-ui-theme="light"] body.v127-ui .v14659-theme-note,
html[data-ui-theme="light"] body.v127-ui .v14654-font-settings>header p,
html[data-ui-theme="light"] body.v127-ui .v14659-theme-settings>header p{color:#69777a!important}
html[data-ui-theme="light"] body.v127-ui .v14654-font-sample{background:#eaf1ee!important;color:#8e6f29!important;border-color:rgba(142,111,41,.16)!important}

/* Light battle: keep enemy/skill color semantics, change only surfaces/contrast. */
html[data-ui-theme="light"] body.v127-ui.v111-battle-active{background:#e9ecea!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active :where(.v101-battle,.v101-combat-board){color:#1d2c30!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active :where(.v101-player-card,.v101-monster-card,.v101-battle-log){border-color:rgba(28,54,60,.11)!important;background:linear-gradient(145deg,#fff,#edf0ed)!important;color:#1f2e32!important;box-shadow:0 5px 14px rgba(29,49,54,.05)!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry{color:#26373a!important;background:rgba(255,255,255,.62)!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry p{color:#35474a!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v111-log-time{color:#7c898b!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active :where(.v102-skill-drawer,.v79-chat-drawer,.v81-support-drawer){border-color:rgba(28,54,60,.13)!important;background:linear-gradient(180deg,#fbfaf6,#eef1ef)!important;color:#1e2e31!important;box-shadow:0 12px 35px rgba(29,49,54,.18)!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active :where(.v102-skill-section,.v81-support-zone,.v1469-chat-top,.v1469-chat-bottom){border-color:rgba(28,54,60,.08)!important;background:rgba(255,255,255,.66)!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v1469-chat-scroll{background:#f4f5f1!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v14659-handle-repositioning::after{background:#f8f6ef!important;color:#755b24!important;border-color:rgba(142,111,41,.2)!important}

/* Patron hall has its own premium identity but still adapts its reading surfaces in light mode. */
html[data-ui-theme="light"] body.v127-ui .v14659-patron-hall{background:linear-gradient(160deg,#f8f5ee,#eceff0)!important;border-color:rgba(143,108,41,.16)!important;color:#1d2c30!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-hall::before{opacity:.12!important;filter:saturate(.7)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-hero{background:linear-gradient(135deg,#f1ebf7,#faf7ed)!important;border-color:rgba(143,108,41,.13)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-hero-copy h1,
html[data-ui-theme="light"] body.v127-ui .v14659-patron-recipient>div>b,
html[data-ui-theme="light"] body.v127-ui .v14659-patron-section-head h2,
html[data-ui-theme="light"] body.v127-ui .v14659-product-copy h3,
html[data-ui-theme="light"] body.v127-ui .v14659-vip-copy h2,
html[data-ui-theme="light"] body.v127-ui .v14659-token-card>span>b{color:#253337!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-hero-copy p,
html[data-ui-theme="light"] body.v127-ui .v14659-patron-recipient>div>p,
html[data-ui-theme="light"] body.v127-ui .v14659-patron-section-head p,
html[data-ui-theme="light"] body.v127-ui .v14659-product-copy p,
html[data-ui-theme="light"] body.v127-ui .v14659-vip-copy>p{color:#667579!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-wallet{background:rgba(255,255,255,.72)!important;border-color:rgba(143,108,41,.15)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-recipient{background:rgba(255,255,255,.7)!important;border-color:rgba(28,54,60,.09)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-tabs{background:#e8ecea!important;border-color:rgba(28,54,60,.08)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-tabs button{color:#687679!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-tabs button.active{background:#fff8e8!important;color:#806320!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-product.convenience{background:linear-gradient(145deg,#edf8f4,#fff)!important;border-color:rgba(31,126,113,.11)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-patron-product.cosmetic{background:linear-gradient(145deg,#f3eef9,#fff)!important;border-color:rgba(117,77,153,.11)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-vip-card{background:linear-gradient(145deg,#f2edf8,#fff8e8)!important;border-color:rgba(143,108,41,.16)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-vip-benefits>span{background:rgba(255,255,255,.68)!important;border-color:rgba(28,54,60,.07)!important}
html[data-ui-theme="light"] body.v127-ui .v14659-token-card{background:linear-gradient(145deg,#f2eff8,#fff)!important;border-color:rgba(143,108,41,.13)!important}
html[data-ui-theme="light"] #v14655-settings-applying{background:rgba(226,230,228,.76)!important}
html[data-ui-theme="light"] #v14655-settings-applying>section{background:linear-gradient(155deg,#fff,#e9efec)!important;border-color:rgba(143,108,41,.2)!important;box-shadow:0 24px 70px rgba(30,50,55,.18)!important}
html[data-ui-theme="light"] #v14655-settings-applying b{color:#203033!important}
html[data-ui-theme="light"] #v14655-settings-applying small{color:#687679!important}

@media(max-width:390px){
  body.v127-ui .v14659-patron-hero{grid-template-columns:1fr!important}
  body.v127-ui .v14659-patron-wallet{grid-template-columns:auto auto auto!important;justify-content:start!important;justify-items:start!important;gap:5px!important;text-align:left!important}
  body.v127-ui .v14659-patron-wallet>em{grid-column:1/-1!important}
  body.v127-ui .v14659-patron-recipient{grid-template-columns:1fr!important}
  body.v127-ui .v14659-patron-tabs{grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:max-content!important}
  body.v127-ui .v14659-patron-tabs button{min-width:76px!important}
  body.v127-ui .v14659-products{grid-template-columns:1fr!important}
  body.v127-ui .v14659-patron-product{min-height:128px!important}
  body.v127-ui .v14659-vip-card{grid-template-columns:66px minmax(0,1fr)!important}
  body.v127-ui .v14659-vip-art img{width:62px!important;height:70px!important}
  body.v127-ui .v14659-vip-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.v127-ui .v14659-abilities-hero{grid-template-columns:50px minmax(0,1fr)!important}
  body.v127-ui .v14659-abilities-emblem{width:48px!important;height:48px!important}
  body.v127-ui .v14659-abilities-hero>aside{grid-column:1/-1!important;grid-template-columns:repeat(4,auto)!important;justify-content:start!important;text-align:left!important}
  body.v127-ui .v14659-abilities-hero>aside>i{display:none!important}
  body.v127-ui .v14659-ability-tabs button{grid-template-columns:22px minmax(0,1fr)!important}
  body.v127-ui .v14659-ability-tabs button>em{display:none!important}
}

@media(max-width:350px){
  body.v127-ui .v14659-theme-grid{grid-template-columns:1fr!important}
  body.v127-ui .v14659-patron-footer{grid-template-columns:1fr!important}
  body.v127-ui .v14659-token-card{grid-template-columns:48px minmax(0,1fr)!important}
  body.v127-ui .v14659-token-card>button{grid-column:1/-1!important;width:100%!important}
  body.v127-ui .v14659-ability-tabs{grid-template-columns:1fr!important}
  body.v127-ui .v14659-ability-tabs button{min-height:40px!important}
}

/* Strong semantic text tint in the battle summary — readable, not neon. */
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.event p{color:#c3cbca!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.damage p{color:#e6c4c9!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.heal p{color:#c5e1cd!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill p{color:#c5d6eb!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.condition p{color:#ddc8e7!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.support p{color:#c2dfdb!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.summon p{color:#e2cfb8!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.reward p{color:#e6d79f!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.event p{color:#435357!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.damage p{color:#7d2c39!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.heal p{color:#276941!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill p{color:#315f96!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.condition p{color:#713f87!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.support p{color:#27736c!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.summon p{color:#895a2d!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.reward p{color:#7e651d!important}

/* ===== css/v14660-ui-hotfix.css ===== */
/* Aldos RPG v1.146.60 — patron layout + battle handle reliability + semantic color polish.
   Android-first. UI only. No player/state/item migration. */

/* Patron Hall: prevent the v14644 legacy grid from colliding with v14659 markup,
   especially at 125/150% text presets. Each card owns explicit grid areas. */
html body.v127-ui .v14659-patron-hall{
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
html body.v127-ui .v14659-patron-trust{display:none!important}
html body.v127-ui .v14659-patron-hero{grid-template-columns:minmax(0,1fr) minmax(106px,29%)!important;min-height:0!important}
html body.v127-ui .v14659-patron-hero-copy p{max-width:430px!important}
html body.v127-ui .v14659-products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;align-items:stretch!important}
html body.v127-ui .v14659-patron-product{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"art copy" "buy buy"!important;
  align-content:start!important;
  align-items:start!important;
  gap:7px 9px!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:10px!important;
  overflow:hidden!important;
}
html body.v127-ui .v14659-product-art{grid-area:art!important;position:static!important;align-self:start!important;display:grid!important;grid-template-rows:54px auto!important;place-items:center!important;gap:4px!important;min-width:0!important}
html body.v127-ui .v14659-product-art>img{position:static!important;display:block!important;width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;margin:0!important;object-fit:contain!important;transform:none!important}
html body.v127-ui .v14659-product-art>small{position:static!important;max-width:56px!important;padding:2px 4px!important;font-size:5.5px!important;line-height:1.15!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui .v14659-product-copy{grid-area:copy!important;position:static!important;display:grid!important;align-content:start!important;gap:4px!important;min-width:0!important;overflow:hidden!important}
html body.v127-ui .v14659-product-copy>span{display:none!important}
html body.v127-ui .v14659-product-copy h3{position:static!important;margin:1px 0 0!important;font-size:10.5px!important;line-height:1.18!important;overflow-wrap:anywhere!important}
html body.v127-ui .v14659-product-copy p{position:static!important;display:block!important;margin:0!important;font-size:7.3px!important;line-height:1.38!important;-webkit-line-clamp:unset!important;overflow:visible!important}
html body.v127-ui .v14659-product-buy{grid-area:buy!important;position:static!important;align-self:auto!important;min-width:0!important;margin-top:2px!important;padding-top:7px!important}
html body.v127-ui .v14659-product-buy .v14644-price-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
html body.v127-ui .v14659-product-buy .v14644-price-actions button{width:100%!important;min-width:0!important;min-height:36px!important;padding:6px 7px!important;font-size:7.4px!important;line-height:1.15!important}
html body.v127-ui .v14659-product-buy .v14644-price-actions button:only-child{grid-column:1/-1!important}

html body.v127-ui .v14659-vip-card{
  display:grid!important;
  grid-template-columns:68px minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  grid-template-areas:"art copy" "buy buy" "gift gift"!important;
  align-items:start!important;
  min-height:0!important;
  height:auto!important;
  gap:8px 10px!important;
  overflow:hidden!important;
}
html body.v127-ui .v14659-vip-art{grid-area:art!important;grid-row:auto!important;position:static!important;align-self:start!important}
html body.v127-ui .v14659-vip-art img{position:static!important;width:64px!important;height:68px!important;max-width:64px!important;max-height:68px!important;transform:none!important}
html body.v127-ui .v14659-vip-copy{grid-area:copy!important;position:static!important;min-width:0!important}
html body.v127-ui .v14659-vip-copy h2{font-size:13px!important;line-height:1.16!important;overflow-wrap:anywhere!important}
html body.v127-ui .v14659-vip-copy>p{font-size:7.4px!important;line-height:1.38!important}
html body.v127-ui .v14659-vip-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
html body.v127-ui .v14659-vip-buy{grid-area:buy!important;grid-column:auto!important;position:static!important;min-width:0!important}
html body.v127-ui .v14659-vip-buy .v14644-price-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
html body.v127-ui .v14659-vip-buy .v14644-price-actions button{min-width:0!important;width:100%!important;min-height:36px!important;padding:6px!important}
html body.v127-ui .v14659-vip-gift{grid-area:gift!important;grid-column:auto!important;position:static!important;width:100%!important}
html body.v127-ui .v14659-token-card{align-items:center!important;overflow:hidden!important}
html body.v127-ui .v14659-token-art,html body.v127-ui .v14659-token-art img{position:static!important;transform:none!important}

/* Clear vertical long-press affordance. The touch surface itself must never be
   claimed by page scrolling, otherwise Android emits pointercancel mid-drag. */
html body.v127-ui.v111-battle-active #skills-drawer-open.v14659-movable-handle,
html body.v127-ui.v111-battle-active #chat-drawer-open.v14659-movable-handle{
  touch-action:none!important;
  overscroll-behavior:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  overflow:visible!important;
}
html body.v127-ui .v14659-handle-move-hint{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  z-index:20!important;
  display:none!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:34px!important;
  height:132px!important;
  transform:translate(-50%,-50%)!important;
  pointer-events:none!important;
}
html body.v127-ui .v14659-handle-move-hint b{
  display:grid!important;
  place-items:center!important;
  width:31px!important;
  height:31px!important;
  min-width:31px!important;
  min-height:31px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(226,190,93,.72)!important;
  border-radius:10px!important;
  background:rgba(8,15,20,.97)!important;
  color:#f4d777!important;
  font:900 16px/1 Arial,sans-serif!important;
  text-shadow:none!important;
  box-shadow:0 6px 17px rgba(0,0,0,.46)!important;
}
html body.v127-ui .v14659-movable-handle.v14659-handle-dragging .v14659-handle-move-hint{display:flex!important}
html body.v127-ui.v14659-handle-repositioning::after{content:"Двигайте кнопку вверх или вниз · отпустите для сохранения"!important}

/* More complete battle-log semantics. A skill that applies a status gets its
   own color instead of falling into a generic effect bucket. */
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill-effect{
  border-left-color:#a985ef!important;
  background:linear-gradient(90deg,rgba(78,56,139,.20),rgba(103,48,123,.09),rgba(255,255,255,.01))!important;
}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill-support{
  border-left-color:#67c9c1!important;
  background:linear-gradient(90deg,rgba(39,109,106,.19),rgba(59,86,133,.07),rgba(255,255,255,.01))!important;
}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill-heal{
  border-left-color:#79d49a!important;
  background:linear-gradient(90deg,rgba(47,128,83,.18),rgba(63,89,134,.06),rgba(255,255,255,.01))!important;
}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill-summon{
  border-left-color:#db9c59!important;
  background:linear-gradient(90deg,rgba(128,78,29,.19),rgba(74,55,123,.07),rgba(255,255,255,.01))!important;
}
html body.v127-ui.v111-battle-active .v106-log-entry.skill-effect mark.ability,
html body.v127-ui.v111-battle-active .v106-log-entry.skill-support mark.ability,
html body.v127-ui.v111-battle-active .v106-log-entry.skill-heal mark.ability{color:#a9caff!important}
html body.v127-ui.v111-battle-active .v106-log-entry.skill-effect mark.effect{color:#e0a2f0!important}

/* Location: attack is clearly burgundy; surrounding controls get restrained
   semantic accents so the location screen is not one teal slab. */
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]{
  border:1px solid rgba(220,90,113,.68)!important;
  background:linear-gradient(180deg,#8d2941,#68162d 56%,#4b0d20)!important;
  color:#ffe7eb!important;
  box-shadow:0 7px 16px rgba(67,7,26,.28),inset 0 1px rgba(255,255,255,.08)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.45)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]:active{background:linear-gradient(180deg,#a63350,#731a34 58%,#520e23)!important}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]{
  border-color:rgba(157,126,207,.23)!important;
  background:linear-gradient(180deg,rgba(88,63,119,.32),rgba(33,28,47,.56))!important;
  color:#d9c9ed!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card{
  border-color:rgba(147,99,184,.17)!important;
  background:radial-gradient(circle at 82% 14%,rgba(133,73,167,.10),transparent 28%),linear-gradient(145deg,rgba(23,27,35,.96),rgba(13,20,24,.96))!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{
  border-color:rgba(207,169,78,.18)!important;
  background:linear-gradient(145deg,rgba(72,54,22,.48),rgba(19,25,28,.88))!important;
  color:#ead28b!important;
}
html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{
  border-color:rgba(77,137,196,.14)!important;
  background:linear-gradient(145deg,rgba(24,43,68,.40),rgba(13,22,27,.86))!important;
}
html body.v127-ui.v134-location-screen .v119-battles-panel .v119-battle-row{
  border-color:rgba(179,68,90,.18)!important;
  background:linear-gradient(145deg,rgba(76,25,39,.36),rgba(15,20,24,.88))!important;
}

/* Light theme keeps the semantic colors instead of washing everything white. */
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]{background:linear-gradient(180deg,#a44359,#7b263d)!important;color:#fff!important;border-color:#873148!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]{background:#eee8f6!important;color:#6a4d83!important;border-color:#d9caea!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-monster-card{background:linear-gradient(145deg,#f4eef8,#fff)!important;border-color:#dfd0eb!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-location-routes .location-btn{background:linear-gradient(145deg,#fff5da,#f7edcf)!important;color:#76581e!important;border-color:#dfc57d!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{background:linear-gradient(145deg,#eef5fc,#fff)!important;border-color:#cfdfef!important}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-battles-panel .v119-battle-row{background:linear-gradient(145deg,#fbeef1,#fff)!important;border-color:#ecced5!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill-effect{background:linear-gradient(90deg,#f1e9fb,#fff)!important;border-left-color:#8b69c6!important}
html[data-ui-theme="light"] body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.skill-support{background:linear-gradient(90deg,#e9f7f5,#fff)!important;border-left-color:#3d9e97!important}

@media(max-width:720px){
  html body.v127-ui .v14659-products{grid-template-columns:1fr!important}
  html body.v127-ui .v14659-patron-product{grid-template-columns:62px minmax(0,1fr)!important;gap:8px 10px!important;padding:10px!important}
  html body.v127-ui .v14659-product-art{grid-template-rows:58px auto!important}
  html body.v127-ui .v14659-product-art>img{width:56px!important;height:56px!important;max-width:56px!important;max-height:56px!important}
  html body.v127-ui .v14659-product-copy h3{font-size:11px!important}
  html body.v127-ui .v14659-product-copy p{font-size:7.7px!important}
  html body.v127-ui .v14659-vip-card{grid-template-columns:68px minmax(0,1fr)!important}
}

@media(max-width:390px){
  html body.v127-ui .v14659-patron-hero{grid-template-columns:1fr!important}
  html body.v127-ui .v14659-patron-product{grid-template-columns:56px minmax(0,1fr)!important;padding:9px!important}
  html body.v127-ui .v14659-product-art{grid-template-rows:50px auto!important}
  html body.v127-ui .v14659-product-art>img{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important}
  html body.v127-ui .v14659-product-buy .v14644-price-actions{grid-template-columns:1fr 1fr!important}
  html body.v127-ui .v14659-vip-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ===== css/v14661-mobile-polish.css ===== */
/* Aldos RPG v1.146.61 — mobile readability / touch / travel polish.
   No image generation, no player-state migration. */

/* Monster mini cards: black core, restrained lime -> dark-burgundy edge language. */
html body.v127-ui.v134-location-screen .v119-monster-card{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border:1px solid transparent!important;
  border-radius:16px!important;
  background:
    linear-gradient(#070b0d,#070b0d) padding-box,
    linear-gradient(135deg,#748f35 0%,#4e6725 34%,#35171d 67%,#6f2737 100%) border-box!important;
  box-shadow:0 8px 19px rgba(0,0,0,.30),inset 0 1px rgba(255,255,255,.025)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card::after{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none!important;
  background:linear-gradient(90deg,rgba(137,176,55,.045),transparent 38%,transparent 62%,rgba(118,32,50,.07))!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions{align-items:stretch!important;justify-items:stretch!important;text-align:center!important}
html body.v127-ui.v134-location-screen .v119-monster-actions button{
  width:100%!important;min-width:0!important;text-align:center!important;justify-content:center!important;place-items:center!important;
  -webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]{
  border:1px solid rgba(83,159,224,.48)!important;
  background:linear-gradient(180deg,#275f8a,#184467)!important;
  color:#e8f6ff!important;box-shadow:0 6px 14px rgba(10,50,80,.24)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]{
  border:1px solid rgba(221,86,111,.62)!important;
  background:linear-gradient(180deg,#9b3049 0%,#741b34 52%,#500d23 100%)!important;
  color:#fff0f3!important;box-shadow:0 8px 18px rgba(77,7,29,.33),inset 0 1px rgba(255,255,255,.10)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]:active{background:linear-gradient(180deg,#b33b58,#83203c 54%,#590f27)!important}

/* More visible but still RPG-like semantic color separation on the location screen. */
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{border-color:rgba(214,174,78,.27)!important;background:linear-gradient(145deg,rgba(91,68,25,.54),rgba(18,24,27,.92))!important}
html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{border-color:rgba(62,143,188,.25)!important;background:linear-gradient(145deg,rgba(18,53,72,.55),rgba(10,20,25,.92))!important}
html body.v127-ui.v134-location-screen .v119-battles-panel .v119-battle-row{border-color:rgba(179,62,87,.29)!important;background:linear-gradient(145deg,rgba(83,24,40,.48),rgba(14,19,23,.93))!important}

/* Expedition route header: kicker is always a complete row above the room name. */
html body.v127-ui .v14643-instance .v14643-scene-head{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;
  align-items:start!important;gap:5px!important;min-height:78px!important;padding:11px 14px 12px!important;text-align:left!important;
  -webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;
}
html body.v127-ui .v14643-instance .v14643-scene-head small{grid-row:1!important;display:block!important;width:100%!important;font-size:8px!important;line-height:1.2!important;white-space:normal!important}
html body.v127-ui .v14643-instance .v14643-scene-head h2{grid-row:2!important;display:block!important;width:100%!important;margin:0!important;font-size:21px!important;line-height:1.06!important;white-space:normal!important;overflow-wrap:anywhere!important}
html[data-ui-font-size="medium"] body.v127-ui .v14643-instance .v14643-scene-head h2{font-size:22px!important}
html[data-ui-font-size="large"] body.v127-ui .v14643-instance .v14643-scene-head h2{font-size:23px!important}

/* Dense battle timer is layout-critical. Selected 125/150% cannot inflate it over itself. */
html body.v127-ui.v111-battle-active .v118-turn-timer,
html body.v127-ui.v111-battle-active .v118-turn-timer *{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;box-sizing:border-box!important}
html body.v127-ui.v111-battle-active .v118-turn-timer{
  grid-template-columns:46px minmax(0,1fr) 88px!important;grid-template-rows:minmax(60px,auto) 5px!important;
  min-height:78px!important;height:auto!important;padding:8px 10px 7px!important;column-gap:9px!important;align-items:center!important;
}
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-copy{min-width:0!important;align-self:center!important;overflow:hidden!important}
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-copy b{display:block!important;font-size:17px!important;line-height:1.06!important;white-space:normal!important;max-width:100%!important;margin:0!important}
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-copy p{display:block!important;margin:4px 0 0!important;font-size:9px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-meta{width:88px!important;min-width:88px!important;justify-content:flex-end!important;overflow:visible!important}
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-meta span{font-size:24px!important;line-height:1!important;white-space:nowrap!important}
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-bar{grid-column:1/-1!important;grid-row:2!important;position:static!important;width:100%!important;height:5px!important;margin:0!important}

/* Settings source action cannot escape the card at 150% text size. */
html body.v127-ui .v14638-source-row{
  grid-template-columns:42px minmax(0,1fr) minmax(66px,76px)!important;gap:8px!important;overflow:hidden!important;
  -webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;
}
html body.v127-ui .v14638-source-row>div{min-width:0!important;overflow:hidden!important}
html body.v127-ui .v14638-source-link{box-sizing:border-box!important;width:100%!important;max-width:76px!important;min-width:0!important;padding:5px 6px!important;font-size:9px!important;line-height:1!important;text-align:center!important}

/* Light UI is retired; keep the old CSS harmless but never surface its control. */
html body.v127-ui .v14659-theme-settings{display:none!important}

/* In-handle arrows are intentionally gone. Bottom drag instruction remains. */
html body.v127-ui .v14659-handle-move-hint{display:none!important}
html body.v127-ui.v111-battle-active #skills-drawer-open.v14659-movable-handle,
html body.v127-ui.v111-battle-active #chat-drawer-open.v14659-movable-handle{touch-action:none!important;overscroll-behavior:none!important;-webkit-user-select:none!important;user-select:none!important}
html body.v127-ui.v14659-handle-repositioning::after{content:"Двигайте кнопку вверх или вниз · отпустите для сохранения"!important}

/* Larger battle monster art while keeping effect and HP rows intact. */
@media(max-width:720px){
  html body.v127-ui.v111-battle-active .v101-monster-roster>.v101-roster-scroll{grid-auto-rows:156px!important}
  html body.v127-ui.v111-battle-active .v101-monster-card{height:156px!important;min-height:156px!important;max-height:156px!important;grid-template-rows:20px 68px 22px 26px!important}
  html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-art{max-width:142px!important;height:68px!important;min-height:68px!important;max-height:68px!important}
  html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art :where(img,.class-asset-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important}
}

/* Possible loot: native momentum + explicit touch handler in ui.js, without needing the scrollbar thumb. */
html body.v127-ui .v122-monster-loot-grid{
  max-height:260px!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;scroll-behavior:auto!important;
}
html body.v127-ui .v122-monster-loot{touch-action:pan-y!important}

/* Effect-producing log lines are visibly different from plain combat narration. */
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.condition{border-left-color:#b45fd0!important;background:linear-gradient(90deg,rgba(104,44,126,.20),rgba(54,35,75,.08),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.support{border-left-color:#4eb3a8!important;background:linear-gradient(90deg,rgba(30,102,97,.18),rgba(31,57,67,.07),rgba(255,255,255,.01))!important}
html body.v127-ui.v111-battle-active .v106-log-entry :is(mark.effect,mark.ability){font-weight:850!important}

@media(max-width:390px){
  html body.v127-ui.v111-battle-active .v118-turn-timer{grid-template-columns:42px minmax(0,1fr) 78px!important;column-gap:7px!important;padding-left:8px!important;padding-right:8px!important}
  html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-copy b{font-size:15px!important}
  html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-meta{width:78px!important;min-width:78px!important}
  html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-meta span{font-size:21px!important}
  html body.v127-ui .v14638-source-row{grid-template-columns:38px minmax(0,1fr) 68px!important;gap:6px!important}
  html body.v127-ui .v14638-source-link{max-width:68px!important;font-size:8px!important}
  html body.v127-ui .v14643-instance .v14643-scene-head h2{font-size:19px!important}
}

html body.v127-ui .v14661-pass-source{margin:7px 2px 10px!important;padding:8px 9px!important;border:1px solid rgba(112,153,75,.17)!important;border-radius:11px!important;background:rgba(6,13,10,.48)!important;color:#9eaa9e!important;font-size:8px!important;line-height:1.35!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}html body.v127-ui .v14661-pass-source b{color:#bedc78!important}

/* ===== css/v14663-mobile-fixes.css ===== */
/* Aldos RPG v1.146.63 — Android battle / merchant / patron layout repairs.
   Mobile-first UI patch. No state migration. */

/* BATTLE TIMER
   v1.146.61 made the bar static while its fill remained absolute. That caused
   the fill to use the whole timer card as its containing block on Android. */
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-bar{
  grid-column:1/-1!important;
  grid-row:2!important;
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:5px!important;
  min-height:5px!important;
  max-height:5px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  overflow:hidden!important;
  background:#242d32!important;
  transform:none!important;
}
html body.v127-ui.v111-battle-active .v118-turn-timer .v79-turn-bar>i{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border-radius:inherit!important;
  transform-origin:left center!important;
  pointer-events:none!important;
}

/* BATTLE MONSTERS — keep the v1.146.61 readability increase, but pull art back
   slightly so large monsters do not crowd HP/effect rows on narrow phones. */
@media(max-width:720px){
  html body.v127-ui.v111-battle-active .v101-monster-card>.v101-unit-art{
    width:min(100%,132px)!important;
    max-width:132px!important;
    height:62px!important;
    min-height:62px!important;
    max-height:62px!important;
    justify-self:center!important;
    align-self:center!important;
  }
  html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art :where(img,.class-asset-image,.battle-monster-art,.monster-asset-image){
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
  }
}

/* MERCHANT — 125/150% typography must not reflow a dense four-column header or
   force the offer price column over item text. The modal opts out of WebView's
   blanket text inflation and uses controlled larger values below. */
html[data-ui-font-size="medium"] body.v127-ui .v1421-shop-modal,
html[data-ui-font-size="large"] body.v127-ui .v1421-shop-modal,
html[data-ui-font-size="medium"] body.v127-ui .v1421-merchant-shop,
html[data-ui-font-size="large"] body.v127-ui .v1421-merchant-shop{
  -webkit-text-size-adjust:100%!important;
  text-size-adjust:100%!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v14413-shop-hero,
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-hero{
  grid-template-columns:48px minmax(0,1fr) 66px 72px!important;
  gap:6px!important;
  padding:8px!important;
  min-width:0!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v14413-shop-portrait,
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-portrait{
  width:46px!important;
  height:54px!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v14413-shop-title h2{font-size:16.5px!important;line-height:1.08!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-title h2{font-size:18px!important;line-height:1.08!important}
html[data-ui-font-size="medium"] body.v127-ui .v14413-shop-title p{font-size:8px!important;line-height:1.2!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-title p{font-size:8.7px!important;line-height:1.22!important}
html[data-ui-font-size="medium"] body.v127-ui :is(.v14413-shop-wallet,.v14413-shop-depart) small{font-size:6.2px!important;line-height:1.05!important}
html[data-ui-font-size="large"] body.v127-ui :is(.v14413-shop-wallet,.v14413-shop-depart) small{font-size:6.6px!important;line-height:1.05!important}
html[data-ui-font-size="medium"] body.v127-ui :is(.v14413-shop-wallet,.v14413-shop-depart) strong{font-size:11.5px!important}
html[data-ui-font-size="large"] body.v127-ui :is(.v14413-shop-wallet,.v14413-shop-depart) strong{font-size:12.5px!important}
html[data-ui-font-size="medium"] body.v127-ui .v14413-shop-wallet em,
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-wallet em{font-size:6.5px!important}

html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-card,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-card{
  grid-template-columns:54px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:7px 9px!important;
  align-items:start!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-art,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-art{width:52px!important;height:56px!important;align-self:start!important}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-copy,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-copy{min-width:0!important;overflow:hidden!important}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-copy b{font-size:11.5px!important;line-height:1.2!important}
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-copy b{font-size:12.5px!important;line-height:1.22!important}
html[data-ui-font-size="medium"] body.v127-ui .v14413-offer-kicker :is(small,span){font-size:6.8px!important;line-height:1.15!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-offer-kicker :is(small,span){font-size:7.3px!important;line-height:1.16!important}
html[data-ui-font-size="medium"] body.v127-ui .v14644-personal-note{font-size:8.4px!important;line-height:1.25!important}
html[data-ui-font-size="large"] body.v127-ui .v14644-personal-note{font-size:9px!important;line-height:1.28!important}
html[data-ui-font-size="medium"] body.v127-ui .v14644-personal-note,
html[data-ui-font-size="large"] body.v127-ui .v14644-personal-note{
  display:inline-flex!important;
  width:auto!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  border-radius:10px!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v14420-market-line{font-size:7.4px!important;line-height:1.25!important}
html[data-ui-font-size="large"] body.v127-ui .v14420-market-line{font-size:8px!important;line-height:1.28!important}
html[data-ui-font-size="medium"] body.v127-ui .v14413-offer-stats em{font-size:6.5px!important;line-height:1.05!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-offer-stats em{font-size:7px!important;line-height:1.08!important}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-action,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-action{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:0!important;
  padding-top:5px!important;
  border-top:1px solid rgba(255,255,255,.045)!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-action>span,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-action>span{display:grid!important;justify-items:start!important;min-width:0!important}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-action strong{font-size:11px!important}
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-action strong{font-size:12px!important}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-action button{font-size:9px!important;min-height:34px!important;padding:0 12px!important}
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-action button{font-size:10px!important;min-height:36px!important;padding:0 13px!important}

/* PATRON VIP — v1.146.60 assigned named grid areas and then reset their column
   to auto, shrinking purchase/gift controls into the art column. Force full rows. */
html body.v127-ui .v14659-vip-buy{
  grid-area:auto!important;
  grid-column:1/-1!important;
  min-width:0!important;
  width:100%!important;
}
html body.v127-ui .v14659-vip-gift{
  grid-area:auto!important;
  grid-column:1/-1!important;
  min-width:0!important;
  width:100%!important;
  justify-self:stretch!important;
}
html body.v127-ui .v14659-vip-buy .v14644-price-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  width:100%!important;
}
html body.v127-ui .v14659-vip-buy .v14644-price-actions button{
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v127-ui .v14659-vip-buy .v14644-price-actions button:only-child{grid-column:1/-1!important}
html body.v127-ui .v14659-vip-gift{min-height:42px!important;padding:7px 10px!important;line-height:1.2!important;white-space:normal!important}

@media(max-width:390px){
  html[data-ui-font-size="medium"] body.v127-ui .v14413-shop-hero,
  html[data-ui-font-size="large"] body.v127-ui .v14413-shop-hero{grid-template-columns:44px minmax(0,1fr) 60px 66px!important;gap:5px!important;padding:7px!important}
  html[data-ui-font-size="medium"] body.v127-ui .v14413-shop-portrait,
  html[data-ui-font-size="large"] body.v127-ui .v14413-shop-portrait{width:42px!important;height:50px!important}
  html[data-ui-font-size="large"] body.v127-ui .v14413-shop-title h2{font-size:16.5px!important}
  html body.v127-ui .v14659-vip-card{grid-template-columns:62px minmax(0,1fr)!important;gap:8px!important;padding:10px!important}
  html body.v127-ui .v14659-vip-art img{width:58px!important;height:62px!important;max-width:58px!important;max-height:62px!important}
}

/* ===== css/v14664-battle-log-pass-hotfix.css ===== */
/* Aldos RPG v1.146.64 - battle-log semantic tones.
   Enemy direct attacks = red, allied direct actions = green, effects/events = purple. */
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-enemy{
  border-left-color:#ef6571!important;
  background:linear-gradient(90deg,rgba(143,30,48,.24),rgba(78,18,31,.10),rgba(255,255,255,.01))!important;
}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-enemy p{color:#efc6cc!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-enemy>span,
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-enemy .v111-log-time,
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-enemy mark.number{color:#ff8796!important}

html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-ally{
  border-left-color:#68d48a!important;
  background:linear-gradient(90deg,rgba(42,126,75,.23),rgba(27,74,51,.09),rgba(255,255,255,.01))!important;
}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-ally p{color:#c8ead2!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-ally>span,
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-ally .v111-log-time,
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-ally mark.number{color:#91e8aa!important}

html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-event{
  border-left-color:#b778e5!important;
  background:linear-gradient(90deg,rgba(91,48,132,.24),rgba(65,35,91,.10),rgba(255,255,255,.01))!important;
}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-event p{color:#dfc9ee!important}
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-event>span,
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-event .v111-log-time,
html body.v127-ui.v111-battle-active .v101-battle-log .v106-log-entry.log-tone-event mark.effect{color:#dfa2f4!important}

/* ===== css/v14665-gameplay-hotfix.css ===== */
/* Aldos RPG v1.146.65 — enhanced monster violet/lime identity. */
html body.v127-ui .v93-monster-card.rank-elite,
html body.v127-ui .v119-monster-card.rank-elite{
  border-color:rgba(183,255,71,.54)!important;
  background:
    radial-gradient(circle at 14% 22%,rgba(181,255,65,.18),transparent 34%),
    radial-gradient(circle at 88% 18%,rgba(178,82,255,.24),transparent 40%),
    linear-gradient(142deg,rgba(58,25,82,.97),rgba(29,48,43,.97) 55%,rgba(8,17,22,.99))!important;
  box-shadow:inset 0 0 36px rgba(174,74,255,.12),0 0 24px rgba(180,255,72,.10)!important;
}
html body.v127-ui .v93-monster-card.rank-elite::before,
html body.v127-ui .v119-monster-card.rank-elite::before{
  background:linear-gradient(110deg,rgba(215,255,125,.07),transparent 38%),radial-gradient(circle at 18% 40%,rgba(186,255,67,.16),transparent 45%)!important;
}
html body.v127-ui .rank-elite>.v93-rank-badge,
html body.v127-ui .v119-monster-tags .rank-elite{
  border-color:rgba(190,255,77,.58)!important;
  background:linear-gradient(135deg,rgba(103,40,142,.94),rgba(69,105,25,.92))!important;
  color:#e8ffc1!important;
  text-shadow:0 0 9px rgba(190,255,77,.22)!important;
}
html body.v127-ui .v79-monster-card.rank-elite{
  border-color:rgba(185,255,76,.52)!important;
  background:
    radial-gradient(circle at 86% 16%,rgba(175,73,255,.20),transparent 38%),
    radial-gradient(circle at 14% 82%,rgba(184,255,73,.12),transparent 42%),
    linear-gradient(145deg,rgba(55,24,76,.94),rgba(24,43,39,.97) 58%,rgba(9,17,22,.99))!important;
  box-shadow:inset 0 0 30px rgba(165,70,246,.10),0 0 24px rgba(184,255,73,.08)!important;
}
html body.v127-ui .v79-monster-card.rank-elite .v79-monster-head>span,
html body.v127-ui .v79-status-chip.elite{
  color:#e5ffb8!important;
  border-color:rgba(188,255,79,.42)!important;
  background:linear-gradient(90deg,rgba(113,53,157,.25),rgba(104,145,37,.22))!important;
}

/* ===== css/v14666-gameplay-hotfix.css ===== */
/* Aldos RPG v1.146.66 — tiny battle timer lift + stable dungeon/equipment UX. */
html body.v127-ui.v111-battle-active .v118-turn-timer{
  transform:translateY(-4px)!important;
}
html body.v127-ui .v14643-nearby button.pending,
html body.v127-ui .v14643-nearby button[data-invite-pending="1"]{
  opacity:.72!important;
  pointer-events:none!important;
}
html body.v127-ui .v14666-hand-choice{padding:4px 0 2px!important}
html body.v127-ui .v14666-hand-choice>p{margin:0 0 14px!important;line-height:1.35!important;color:var(--muted,#b8c0cc)!important}
html body.v127-ui .v14666-hand-choice>div{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
html body.v127-ui .v14666-hand-choice button{min-height:48px!important;width:100%!important}
@media(max-width:420px){html body.v127-ui .v14666-hand-choice>div{grid-template-columns:1fr!important}}

/* ===== css/v14667-dagger-status-button-hotfix.css ===== */
/* Aldos RPG v1.146.67 — calmer action colors; no layout/geometry changes. */
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]{
  border:1px solid rgba(161,72,91,.48)!important;
  background:linear-gradient(180deg,#64243a 0%,#471322 56%,#290911 100%)!important;
  color:#f4dde4!important;
  box-shadow:0 7px 16px rgba(35,3,12,.25),inset 0 1px rgba(255,255,255,.045)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.42)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]:active{
  background:linear-gradient(180deg,#743047 0%,#511827 56%,#310c16 100%)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]{
  border:1px solid rgba(62,164,163,.40)!important;
  background:linear-gradient(180deg,#155b5d 0%,#0e4146 56%,#092a30 100%)!important;
  color:#d9f3f0!important;
  box-shadow:0 6px 14px rgba(3,37,40,.22),inset 0 1px rgba(255,255,255,.04)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.36)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]:active{
  background:linear-gradient(180deg,#1b6869 0%,#124b50 56%,#0a3036 100%)!important;
}
/* The centered combat attack uses the same burgundy language, just a little deeper. */
html body.v127-ui.v111-battle-active .v106-round-attack{
  border-color:rgba(160,68,88,.52)!important;
  background:radial-gradient(circle at 38% 30%,#6b263c 0%,#481321 43%,#260812 100%)!important;
  color:#f4dde4!important;
  box-shadow:0 9px 22px rgba(25,0,8,.46),0 0 0 3px rgba(34,4,13,.72),0 0 14px rgba(121,30,54,.19)!important;
}
html body.v127-ui.v111-battle-active .v106-round-attack:active{
  background:radial-gradient(circle at 38% 30%,#7b3048 0%,#531828 46%,#2d0a15 100%)!important;
}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]{
  border-color:#9f6572!important;background:linear-gradient(180deg,#8a4255,#672a3c)!important;color:#fff4f6!important;
}
html[data-ui-theme="light"] body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]{
  border-color:#5d9d9c!important;background:linear-gradient(180deg,#397f7f,#286264)!important;color:#f3ffff!important;
}

/* ===== css/v14668-onslaught-tutorial.css ===== */
/* Aldos RPG v1.146.69 repair — preserves Onslaught mechanics, restores native mobile UI. */
.v14669-ability-path-chip{display:inline-flex;vertical-align:middle;align-items:center;margin:3px 0 4px;padding:3px 7px;border:1px solid rgba(127,180,171,.28);border-radius:999px;background:rgba(13,43,43,.34);color:#9dc8c0;font-family:inherit;font-size:.58rem;font-weight:800;line-height:1.1;white-space:nowrap}.v14669-ability-path-chip.onslaught{border-color:rgba(157,72,63,.34);background:rgba(64,20,24,.32);color:#ca9083}
.v14668-onslaught-meter{display:block;margin-top:5px;min-width:0}.v14668-onslaught-meter>span{display:grid;grid-template-columns:auto auto 1fr;gap:6px;align-items:center;margin-bottom:3px;font-size:.63rem;line-height:1}.v14668-onslaught-meter b{color:#d9b37b;letter-spacing:.055em;font-size:.61rem}.v14668-onslaught-meter em{font-style:normal;font-weight:800;color:#ecd9af}.v14668-onslaught-meter small{justify-self:end;color:rgba(223,199,153,.72);font-size:.56rem;white-space:nowrap}.v14668-onslaught-track{height:7px;position:relative;overflow:hidden;border-radius:999px;background:rgba(4,5,5,.78);border:1px solid rgba(133,71,51,.48);box-shadow:inset 0 1px 3px rgba(0,0,0,.7)}.v14668-onslaught-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#651821 0%,#8e332b 52%,#a9713b 78%,#c7a45e 100%);box-shadow:0 0 7px rgba(137,55,31,.18);transition:width .22s ease}.v14668-onslaught-track>u{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,238,199,.24);text-decoration:none}.v14668-onslaught-track>u.m30{left:30%}.v14668-onslaught-track>u.m70{left:70%}.v14668-onslaught-meter[data-onslaught-value="100"] .v14668-onslaught-track{border-color:rgba(202,168,96,.72)}
/* Tutorial stays inside the normal battle visual. No body/app background replacement. */
.v14668-tutorial-timer{border-color:rgba(168,143,91,.38)!important}.v14668-tutorial-timer .v79-turn-bar>i{background:linear-gradient(90deg,#655739,#9f8751)!important;opacity:.65}
.v14668-tutorial-layer{position:fixed;z-index:3200;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:calc(76px + env(safe-area-inset-bottom));pointer-events:none;display:flex;justify-content:center}.v14668-tutorial-layer.action-step{top:calc(70px + env(safe-area-inset-top));bottom:auto}
.v14668-tutorial-dialog{pointer-events:auto;width:min(620px,100%);display:grid;grid-template-columns:72px minmax(0,1fr);border:1px solid rgba(167,143,91,.46);border-radius:15px;background:linear-gradient(135deg,rgba(11,17,18,.985),rgba(24,21,18,.985));box-shadow:0 12px 34px rgba(0,0,0,.5);overflow:hidden}.v14668-elder{padding:8px;background:rgba(0,0,0,.16);display:flex;align-items:flex-start}.v14668-elder img{display:block;width:56px;height:56px;border-radius:12px;object-fit:cover;object-position:50% 32%;border:1px solid rgba(190,157,92,.28)}.v14668-tutorial-copy{padding:9px 10px 10px;min-width:0;position:relative}.v14668-tutorial-copy>small{font-size:.55rem;letter-spacing:.08em;color:#a99164}.v14668-tutorial-copy h2{margin:1px 42px 4px 0;font-size:.95rem;color:#e9dec7}.v14668-tutorial-copy>p{margin:0;color:rgba(229,229,222,.77);font-size:.76rem;line-height:1.34}.v14668-tutorial-topic-icon{position:absolute;right:8px;top:8px;width:31px;height:31px;object-fit:contain}.v14668-tutorial-actions{display:flex;gap:7px;align-items:center;margin-top:8px}.v14668-tutorial-primary,.v14668-tutorial-skip{min-height:34px;border-radius:10px;padding:6px 10px;font-size:.72rem;font-weight:800;border:1px solid rgba(164,137,82,.4)}.v14668-tutorial-primary{color:#eaddc3;background:linear-gradient(135deg,#423024,#5b472d)}.v14668-tutorial-skip{margin-left:auto;color:#bcb8ad;background:rgba(13,15,15,.58);border-color:rgba(255,255,255,.1)}.v14668-tutorial-do{display:block;margin-top:6px;color:#c0aa78;font-size:.64rem;font-style:normal}.v14668-tutorial-paths{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.v14668-tutorial-path{display:grid;grid-template-columns:44px 1fr;gap:7px;text-align:left;align-items:center;min-height:76px;border-radius:11px;border:1px solid rgba(255,255,255,.11);padding:7px;background:rgba(4,7,8,.5);color:#e9e6dd}.v14668-tutorial-path.guardian{border-color:rgba(71,145,141,.36);background:linear-gradient(135deg,rgba(15,48,48,.52),rgba(11,18,20,.66))}.v14668-tutorial-path.onslaught{border-color:rgba(151,63,49,.42);background:linear-gradient(135deg,rgba(67,17,23,.54),rgba(29,20,16,.68))}.v14668-tutorial-path img{width:42px;height:42px;object-fit:contain}.v14668-tutorial-path span{min-width:0}.v14668-tutorial-path small{color:#ac9c76;font-size:.5rem;letter-spacing:.07em}.v14668-tutorial-path b{display:block;font-size:.86rem;color:#eee1c7}.v14668-tutorial-path em{display:block;font-size:.59rem;color:#c8bea7;font-style:normal;margin:1px 0}.v14668-tutorial-path p{font-size:.58rem;line-height:1.22;color:rgba(226,226,219,.62);margin:0}.v14668-tutorial-settings .v127-setting-icon img{width:42px;height:42px;border-radius:9px;object-fit:cover}.v14668-tutorial-replay{min-width:90px;border-radius:10px;border:1px solid rgba(74,153,148,.35);background:linear-gradient(135deg,#123e3e,#1b5553);color:#dfefeb;font-weight:800;padding:7px 9px}
body[data-v14668-tutorial-focus="turn-timer"] .v79-turn,body[data-v14668-tutorial-focus="battle-log"] .v101-battle-log,body[data-v14668-tutorial-focus="potion-panel"] #support-drawer-open,body[data-v14668-tutorial-focus="skill-panel"] #skills-drawer-open,body[data-v14668-tutorial-focus="skill-panel"] .v102-skill-drawer,body[data-v14668-tutorial-focus="attack-button"] [data-action-attack],body[data-v14668-tutorial-focus="effects"] .v101-unit-effects,body[data-v14668-tutorial-focus="class-mechanic"] .v101-player-card,body[data-v14668-tutorial-focus="guardian-path"] .v101-player-card,body[data-v14668-tutorial-focus="onslaught-path"] .v14668-onslaught-meter{outline:2px solid rgba(184,148,80,.72)!important;outline-offset:2px;box-shadow:0 0 0 4px rgba(102,51,27,.12)!important}
@media(max-width:520px){.v14668-tutorial-layer{bottom:calc(70px + env(safe-area-inset-bottom));left:6px;right:6px}.v14668-tutorial-layer.action-step{top:calc(62px + env(safe-area-inset-top));bottom:auto}.v14668-tutorial-dialog{grid-template-columns:58px minmax(0,1fr);border-radius:13px}.v14668-elder{padding:6px}.v14668-elder img{width:46px;height:46px;border-radius:10px}.v14668-tutorial-copy{padding:8px}.v14668-tutorial-copy h2{font-size:.88rem}.v14668-tutorial-copy>p{font-size:.7rem}.v14668-tutorial-paths{grid-template-columns:1fr}.v14668-tutorial-path{min-height:64px}.v14668-tutorial-path p{display:none}.v14668-onslaught-meter>span{grid-template-columns:auto auto}.v14668-onslaught-meter small{display:none}.v14668-onslaught-track{height:6px}}
@media(max-width:390px){.v14668-tutorial-copy>p{font-size:.66rem}.v14668-tutorial-primary,.v14668-tutorial-skip{padding:6px 8px;font-size:.67rem}.v14669-ability-path-chip{display:block;width:max-content;margin:4px 0 0}}
@media(prefers-reduced-motion:reduce){.v14668-onslaught-track>i{transition:none}}

/* v1.146.70: Onslaught character remains a clean full-body contain asset; profile style is plain text in the existing small metadata line. */
body.v127-ui .v39-profile-hero .v39-avatar-ring .class-inline-image, .v101-player-card .class-inline-image{}

/* ===== css/v14671-warrior-repair.css ===== */
/* Aldos RPG v1.146.71 — surgical Warrior/Onslaught visual repair. */
/* Full-body Onslaught Warrior must never inherit legacy cover/zoom portrait rules. */
img.v14671-onslaught-fullbody,
.v39-profile-hero .avatar img.v14671-onslaught-fullbody,
.v79-player-art img.v14671-onslaught-fullbody,
.v101-unit-art img.v14671-onslaught-fullbody,
.class-inline-image.v14671-onslaught-fullbody{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:none!important;
  padding:2px!important;
  margin:0!important;
}
/* New skill/status/equipment cutouts already have safe transparent padding.
   Never zoom or cover-crop them in older mobile CSS layers. */
.ability-icon img[src*="/v14670/onslaught/"],
.v115-ability-card-icon img[src*="/v14670/onslaught/"],
.v83-ability-icon img[src*="/v14670/onslaught/"],
.v39-slot-icon img[src*="/v14670/onslaught/"],
.v39-item-icon-wrap img[src*="/v14670/onslaught/"],
.item-asset-image[src*="/v14670/onslaught/"],
img[src*="assets/v14670/onslaught/starter_greatsword.webp"]{
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  max-width:100%!important;
  max-height:100%!important;
}
/* Keep the combat-path text as part of the normal metadata line, never a title. */
.v39-profile-hero .v39-hero-info>p{
  font-size:10px!important;
  line-height:1.25!important;
  font-weight:500!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* ===== css/v14672-warrior-onslaught-polish.css ===== */
/* Aldos RPG v1.146.72 — Warrior Onslaught UI/asset/tutorial polish. */

/* Three resource rows: Natisk is a real resource bar, not a large custom widget. */
.v14672-onslaught-row{min-width:0!important;margin:0!important;padding:0!important}
.v14672-onslaught-row>span{color:rgba(235,226,197,.92)!important}
.v14672-onslaught-row>span>i{color:#e2b84f!important;font-weight:900!important}
.v14672-onslaught-row>div{background:rgba(73,58,23,.42)!important;border-color:rgba(197,156,63,.28)!important;overflow:hidden!important}
.v14672-onslaught-row>div>i{background:linear-gradient(90deg,#a97a25 0%,#d5a93e 52%,#f0cb64 100%)!important;box-shadow:0 0 7px rgba(216,171,59,.26)!important}
.v101-player-card .v101-unit-bars{}
.v101-player-card .v79-stat-row,.v101-player-full-card .v79-stat-row{}
.v101-player-card .v79-stat-row>span,.v101-player-full-card .v79-stat-row>span{line-height:1.05!important}
.v101-player-card .v79-stat-row>div,.v101-player-full-card .v79-stat-row>div{}

/* Onslaught art is already a transparent cutout with its own safe canvas. Never crop/zoom it again. */
img.v14672-onslaught-fullbody,
.v39-profile-hero .avatar img.v14672-onslaught-fullbody,
.v79-player-art img.v14672-onslaught-fullbody,
.v101-unit-art img.v14672-onslaught-fullbody,
.class-inline-image.v14672-onslaught-fullbody{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center bottom!important;transform:none!important;
  padding:2px!important;margin:0!important;
}
.ability-icon img[src*="/v14672/onslaught/"],
.v115-ability-card-icon img[src*="/v14672/onslaught/"],
.v83-ability-icon img[src*="/v14672/onslaught/"],
.v102-skill-card img[src*="/v14672/onslaught/"],
.v102-skill-detail img[src*="/v14672/onslaught/"],
.v39-slot-icon img[src*="/v14672/onslaught/"],
.v39-item-icon-wrap img[src*="/v14672/onslaught/"],
.item-asset-image[src*="/v14672/onslaught/"],
img[src*="assets/v14672/onslaught/starter_greatsword.webp"]{
  object-fit:contain!important;object-position:center!important;transform:none!important;
  max-width:100%!important;max-height:100%!important;
}

/* Exact mechanics are intentionally split into short, readable rows. */
.v14672-onslaught-mechanics{display:grid;gap:4px;margin:7px 0 8px;padding:7px;border:1px solid rgba(185,143,55,.2);border-radius:9px;background:rgba(78,48,17,.14)}
.v14672-onslaught-mechanics>span{position:relative;padding-left:11px;color:rgba(233,225,204,.82);font-size:.66rem;line-height:1.3}
.v14672-onslaught-mechanics>span:before{content:"";position:absolute;left:1px;top:.48em;width:4px;height:4px;border-radius:50%;background:#d5aa45;box-shadow:0 0 4px rgba(213,170,69,.35)}

/* Tutorial: compact floating coach card plus a real pointer to the live control. */
.v14668-tutorial-layer.v14672-tutorial-layer{position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;z-index:3200!important;display:block!important;pointer-events:none!important}
.v14672-tutorial-dialog{position:absolute!important;left:50%!important;width:min(390px,calc(100vw - 18px))!important;grid-template-columns:46px minmax(0,1fr)!important;border-radius:12px!important;transform:translateX(-50%)!important;box-shadow:0 9px 24px rgba(0,0,0,.46)!important}
.v14672-tutorial-layer[data-placement="top"] .v14672-tutorial-dialog{top:calc(64px + env(safe-area-inset-top))!important;bottom:auto!important}
.v14672-tutorial-layer[data-placement="bottom"] .v14672-tutorial-dialog{top:auto!important;bottom:calc(70px + env(safe-area-inset-bottom))!important}
.v14672-tutorial-dialog .v14668-elder{padding:5px!important}
.v14672-tutorial-dialog .v14668-elder img{width:36px!important;height:36px!important;border-radius:8px!important}
.v14672-tutorial-dialog .v14668-tutorial-copy{padding:6px 7px 7px!important}
.v14672-tutorial-dialog .v14668-tutorial-copy>small{font-size:.48rem!important;line-height:1!important}
.v14672-tutorial-dialog .v14668-tutorial-copy h2{font-size:.78rem!important;line-height:1.15!important;margin:2px 34px 3px 0!important}
.v14672-tutorial-dialog .v14668-tutorial-copy>p{font-size:.64rem!important;line-height:1.28!important;margin:0!important;color:rgba(234,231,221,.8)!important}
.v14672-tutorial-dialog .v14668-tutorial-topic-icon{width:25px!important;height:25px!important;right:6px!important;top:6px!important;object-fit:contain!important}
.v14672-tutorial-dialog .v14668-tutorial-actions{margin-top:5px!important;gap:5px!important}
.v14672-tutorial-dialog .v14668-tutorial-primary,.v14672-tutorial-dialog .v14668-tutorial-skip{min-height:29px!important;padding:4px 8px!important;border-radius:8px!important;font-size:.61rem!important}
.v14672-tutorial-dialog .v14668-tutorial-do{margin-top:4px!important;font-size:.55rem!important}
.v14672-tutorial-dialog .v14668-tutorial-paths{gap:5px!important;margin-top:6px!important}
.v14672-tutorial-dialog .v14668-tutorial-path{grid-template-columns:34px 1fr!important;gap:5px!important;min-height:54px!important;padding:5px!important;border-radius:9px!important}
.v14672-tutorial-dialog .v14668-tutorial-path img{width:32px!important;height:32px!important;object-fit:contain!important}
.v14672-tutorial-dialog .v14668-tutorial-path small{font-size:.43rem!important}.v14672-tutorial-dialog .v14668-tutorial-path b{font-size:.7rem!important}.v14672-tutorial-dialog .v14668-tutorial-path em{font-size:.5rem!important}.v14672-tutorial-dialog .v14668-tutorial-path p{font-size:.5rem!important;line-height:1.15!important}

.v14672-tutorial-guide{position:absolute;z-index:5;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;pointer-events:none;filter:drop-shadow(0 3px 6px rgba(0,0,0,.55))}
.v14672-tutorial-guide[hidden]{display:none!important}
.v14672-tutorial-guide span{white-space:nowrap;padding:4px 7px;border-radius:8px;background:rgba(28,22,13,.96);border:1px solid rgba(229,187,82,.58);color:#f1d783;font-size:.58rem;font-weight:900;letter-spacing:.02em}
.v14672-tutorial-guide i{display:block;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent}
.v14672-tutorial-guide.above i{border-top:10px solid #e0b749}
.v14672-tutorial-guide.below{flex-direction:column-reverse}.v14672-tutorial-guide.below i{border-bottom:10px solid #e0b749}
.v14672-tutorial-target{outline:2px solid rgba(235,191,77,.88)!important;outline-offset:3px!important;box-shadow:0 0 0 5px rgba(217,166,54,.12),0 0 14px rgba(222,175,63,.28)!important;animation:v14672TutorialPulse 1.1s ease-in-out infinite alternate!important}
@keyframes v14672TutorialPulse{from{filter:brightness(1)}to{filter:brightness(1.12)}}
body[data-v14668-tutorial-focus="onslaught-path"] .v14672-onslaught-row{outline:2px solid rgba(235,191,77,.88)!important;outline-offset:2px!important}

/* Profile style stays a small continuation of the existing metadata line. */
.v39-profile-hero .v39-hero-info>p{font-size:10px!important;line-height:1.25!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}

@media(max-width:520px){
 .v14672-tutorial-dialog{width:min(360px,calc(100vw - 12px))!important;grid-template-columns:42px minmax(0,1fr)!important}
 .v14672-tutorial-dialog .v14668-elder img{width:33px!important;height:33px!important}
 .v14672-tutorial-dialog .v14668-tutorial-copy{padding:5px 6px 6px!important}
 .v14672-tutorial-dialog .v14668-tutorial-copy>p{font-size:.61rem!important}
 .v14672-tutorial-dialog .v14668-tutorial-paths{grid-template-columns:1fr 1fr!important}
 .v14672-tutorial-dialog .v14668-tutorial-path p{display:none!important}
}
@media(max-width:380px){
 .v14672-tutorial-dialog .v14668-tutorial-paths{grid-template-columns:1fr!important}
 .v14672-tutorial-dialog .v14668-tutorial-copy>p{font-size:.59rem!important}
}
/* Keep player name clear: resource stack begins a few pixels lower, Natisk remains the first row. */
.v101-player-card .v101-unit-bars,.v101-player-full-card .v101-unit-bars{}

/* v1.146.74: exact mechanics move into expandable skill history for every class. */
.v14674-ability-history{margin:6px 0!important;padding:0!important;border:1px solid rgba(208,177,100,.16)!important;border-radius:9px!important;background:rgba(9,12,15,.45)!important;overflow:hidden!important}
.v14674-ability-history>summary{padding:7px 9px!important;color:#d8bd79!important;font-size:.62rem!important;font-weight:900!important;cursor:pointer!important;list-style:none!important}
.v14674-ability-history>summary::-webkit-details-marker{display:none!important}
.v14674-ability-history>summary:after{content:"⌄";float:right;color:#8e7a50}
.v14674-ability-history[open]>summary:after{content:"⌃"}
.v14674-ability-history>p{margin:0!important;padding:0 9px 7px!important;color:rgba(231,228,219,.76)!important;font-size:.61rem!important;line-height:1.32!important}
.v14674-ability-history-values{display:grid!important;gap:0!important;margin:0!important;padding:0 9px 8px!important}
.v14674-ability-history-values>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:4px 0!important;border-top:1px solid rgba(255,255,255,.055)!important}
.v14674-ability-history-values dt{color:#aaa69d!important;font-size:.56rem!important;line-height:1.2!important}
.v14674-ability-history-values dd{margin:0!important;color:#efe0ad!important;font-size:.58rem!important;font-weight:900!important;text-align:right!important}

/* ===== css/v14676-onslaught-arsenal.css ===== */
/* Aldos RPG v1.146.76 — compact Onslaught spender/arsenal polish. */
.v14676-onslaught-empowered .v101-skill-main{
  position:relative;
  overflow:visible;
  box-shadow:0 0 0 1px rgba(245,190,54,.78),0 0 12px rgba(245,190,54,.22);
}
.v14676-onslaught-empowered .v101-skill-art,
.v14676-onslaught-empowered .v101-skill-art img,
.v14676-onslaught-empowered-detail .v102-skill-detail-head img{
  object-fit:contain!important;
  object-position:center!important;
}
.v14676-onslaught-spend-badge{
  position:absolute;
  right:-5px;
  bottom:-5px;
  z-index:5;
  min-width:27px;
  height:20px;
  padding:1px 4px 1px 2px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1px;
  border:1px solid rgba(250,203,74,.85);
  border-radius:8px;
  background:rgba(39,28,8,.96);
  box-shadow:0 2px 7px rgba(0,0,0,.45);
  pointer-events:none;
}
.v14676-onslaught-spend-badge img{width:14px!important;height:14px!important;object-fit:contain!important;display:block}
.v14676-onslaught-spend-badge b{font-size:9px!important;line-height:1!important;letter-spacing:-.2px;color:#ffe28a!important;white-space:nowrap}
.v14676-onslaught-spend-banner{
  margin:4px 0 7px;
  min-height:26px;
  padding:4px 7px;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(239,183,48,.44);
  border-radius:8px;
  background:linear-gradient(90deg,rgba(109,73,12,.28),rgba(44,31,10,.13));
  color:#f6d570;
  font-size:11px;
  font-weight:700;
}
.v14676-onslaught-spend-banner img{width:20px!important;height:20px!important;object-fit:contain!important;flex:0 0 20px}
.v14676-onslaught-empowered-detail{box-shadow:inset 0 0 0 1px rgba(238,181,44,.12)}
/* New weapon and status art must never be zoom-cropped by older mobile rules. */
[data-asset-slot] img[src*="/v14676/onslaught/"],
.v114-status-image[src*="/v14676/onslaught/"],
.v115-ability-image[src*="/v14676/onslaught/"]{
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  max-width:100%;
  max-height:100%;
}
@media(max-width:520px){
  .v14676-onslaught-spend-banner{font-size:10px;padding:3px 6px;min-height:24px}
  .v14676-onslaught-spend-banner img{width:18px!important;height:18px!important;flex-basis:18px}
  .v14676-onslaught-spend-badge{right:-3px;bottom:-3px;min-width:24px;height:18px}
  .v14676-onslaught-spend-badge img{width:12px!important;height:12px!important}
  .v14676-onslaught-spend-badge b{font-size:8px!important}
}

/* ===== css/v14677-stabilization-polish.css ===== */
/* Aldos RPG v1.146.77 — mobile stabilization: abilities, Onslaught, Mage gear, tutorial and monster cards. */

/* Outside battle: class innate regeneration is a compact rule card, not another oversized hero. */
html body.v127-ui .v14677-innate-regen{
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
  min-width:0!important;
  padding:8px 10px!important;
  border:1px solid rgba(96,185,157,.15)!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,rgba(19,57,48,.22),rgba(8,15,20,.76))!important;
}
html body.v127-ui .v14677-innate-regen>span{
  display:grid!important;place-items:center!important;width:38px!important;height:38px!important;
  border:1px solid rgba(98,202,165,.18)!important;border-radius:11px!important;background:rgba(6,21,19,.72)!important;
}
html body.v127-ui .v14677-innate-regen>span :is(img,svg){width:25px!important;height:25px!important;object-fit:contain!important}
html body.v127-ui .v14677-innate-regen>div{display:grid!important;gap:1px!important;min-width:0!important}
html body.v127-ui .v14677-innate-regen small{color:#71cfb0!important;font-size:6px!important;font-weight:900!important;letter-spacing:.11em!important}
html body.v127-ui .v14677-innate-regen b{color:#e8eee9!important;font-size:9px!important;line-height:1.18!important}
html body.v127-ui .v14677-innate-regen p{margin:1px 0 0!important;color:#8f9b97!important;font-size:6.8px!important;line-height:1.36!important}
/* Tabs are labels + counters only. Never reserve a second caption line. */
html body.v127-ui .v14659-ability-tabs button{min-height:42px!important;grid-template-columns:25px minmax(0,1fr) auto!important}
html body.v127-ui .v14659-ability-tabs button>span:nth-child(2){display:flex!important;align-items:center!important;min-width:0!important}
html body.v127-ui .v14659-ability-tabs button>span:nth-child(2)>small{display:none!important}

/* Ability history: long legendary rows wrap inside their own column instead of colliding. */
html body.v127-ui .v14674-ability-history{min-width:0!important}
html body.v127-ui .v14674-ability-history>p{
  text-align:left!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
html body.v127-ui .v14674-ability-history-values{min-width:0!important;width:100%!important;box-sizing:border-box!important}
html body.v127-ui .v14674-ability-history-values>div{
  grid-template-columns:minmax(86px,39%) minmax(0,1fr)!important;
  gap:8px!important;align-items:start!important;min-width:0!important;
}
html body.v127-ui .v14674-ability-history-values :is(dt,dd){min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
html body.v127-ui .v14674-ability-history-values dt{text-align:left!important;padding-top:1px!important}
html body.v127-ui .v14674-ability-history-values dd{margin:0!important;text-align:right!important;line-height:1.28!important}
@media(max-width:380px){
  html body.v127-ui .v14674-ability-history-values>div{grid-template-columns:minmax(74px,36%) minmax(0,1fr)!important;gap:6px!important}
  html body.v127-ui .v14674-ability-history-values dd{font-size:.55rem!important}
}


/* Legendary equipment text is factual gameplay data: never line-clamp or truncate it. */
html body.v127-ui .v132-equipment-bonus p{
  display:block!important;max-height:none!important;overflow:visible!important;white-space:normal!important;
  -webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;text-overflow:clip!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
}

/* Natisk readiness is only a tiny corner marker. It must not recolor, resize or replace the normal skill button/art. */
html body.v127-ui .v14676-onslaught-empowered .v101-skill-main{
  position:relative!important;overflow:visible!important;box-shadow:none!important;filter:none!important;
}
html body.v127-ui .v14676-onslaught-spend-badge{
  position:absolute!important;right:-3px!important;top:-3px!important;bottom:auto!important;
  width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;
  padding:2px!important;display:grid!important;place-items:center!important;
  border:1px solid rgba(229,187,72,.72)!important;border-radius:7px!important;
  background:rgba(17,20,19,.96)!important;box-shadow:0 2px 7px rgba(0,0,0,.40)!important;pointer-events:none!important;
}
html body.v127-ui .v14676-onslaught-spend-badge img{display:block!important;width:15px!important;height:15px!important;object-fit:contain!important;object-position:center!important}
html body.v127-ui .v14676-onslaught-spend-badge b{display:none!important}
html body.v127-ui .v14676-onslaught-spend-banner{
  display:block!important;min-height:0!important;margin:4px 0 7px!important;padding:5px 7px!important;
  border:1px solid rgba(207,170,67,.32)!important;border-radius:8px!important;background:rgba(75,57,18,.14)!important;
  color:#d9c47f!important;font-size:10px!important;font-weight:800!important;line-height:1.2!important;text-align:left!important;
}
html body.v127-ui .v14676-onslaught-spend-banner img{display:none!important}
html body.v127-ui .v14676-onslaught-empowered-detail{box-shadow:none!important}

/* Battle active loadout: keep the old card size/layout. A sixth slot goes to a second row and the section scrolls vertically. */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-columns:initial!important;
  gap:5px!important;
  width:100%!important;max-width:100%!important;
  max-height:74px!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  padding:3px 3px 6px!important;
  scroll-snap-type:y proximity!important;
  overscroll-behavior-block:contain!important;
  scrollbar-width:thin!important;scrollbar-color:rgba(217,181,89,.42) transparent!important;
  -webkit-overflow-scrolling:touch!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card{
  width:auto!important;min-width:0!important;max-width:none!important;scroll-snap-align:start!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid::-webkit-scrollbar{width:4px!important;height:0!important}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid::-webkit-scrollbar-thumb{background:rgba(217,181,89,.42)!important;border-radius:999px!important}

/* Enhanced monster: violet/lime identity, but restrained enough to keep loot/text readable. */
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite{
  position:relative!important;
  border:1px solid rgba(184,247,91,.62)!important;
  background:radial-gradient(circle at 88% 8%,rgba(143,72,204,.20),transparent 35%),radial-gradient(circle at 8% 92%,rgba(174,229,70,.11),transparent 38%),linear-gradient(145deg,rgba(39,24,55,.96),rgba(19,38,34,.97) 55%,rgba(8,17,21,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(160,91,217,.25),inset 0 0 22px rgba(154,79,218,.08),0 6px 18px rgba(0,0,0,.25),0 0 14px rgba(181,238,79,.08)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite::after{
  content:''!important;position:absolute!important;inset:3px!important;border:1px solid rgba(174,97,225,.14)!important;border-radius:inherit!important;pointer-events:none!important;
}

/* Monster mini-card actions: familiar Aldos burgundy/turquoise, with cleaner inset frame. */
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]{
  border:1px solid rgba(182,83,103,.68)!important;
  background:linear-gradient(180deg,#6c263d 0%,#4b1424 57%,#2c0a14 100%)!important;
  color:#f7e4e9!important;
  box-shadow:inset 0 0 0 1px rgba(255,215,222,.045),inset 0 1px rgba(255,255,255,.06),0 5px 12px rgba(40,3,14,.26)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]{
  border:1px solid rgba(69,183,180,.62)!important;
  background:linear-gradient(180deg,#176469 0%,#10464c 58%,#092e34 100%)!important;
  color:#dcf7f4!important;
  box-shadow:inset 0 0 0 1px rgba(205,255,251,.04),inset 0 1px rgba(255,255,255,.055),0 5px 12px rgba(2,38,41,.22)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button:is([data-battle],[data-loot-info]){
  border-radius:10px!important;letter-spacing:.01em!important;
}

/* Battle monster art: a very small pull-back only; layout/card geometry does not change. */
@media(max-width:720px){
  html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art :where(img,.class-asset-image,.battle-monster-art,.monster-asset-image){
    width:96%!important;height:96%!important;max-width:96%!important;max-height:96%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important;
  }
}

/* Tutorial dialog actions must stay visible when a repeat also exposes the skip control. */
html body.v127-ui.v111-battle-active .v14668-tutorial-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important}
html body.v127-ui.v111-battle-active .v14668-tutorial-actions>button{min-width:0!important;flex:0 1 auto!important}

html[data-ui-theme="light"] body.v127-ui .v14677-innate-regen{background:#f2f8f5!important;border-color:rgba(32,128,103,.14)!important}
html[data-ui-theme="light"] body.v127-ui .v14677-innate-regen b{color:#233330!important}
html[data-ui-theme="light"] body.v127-ui .v14677-innate-regen p{color:#687773!important}


/* v1.146.78 tutorial action steps: the coach never covers the control the player must press. */
html body.v127-ui.v111-battle-active .v14678-tutorial-action-card{
  position:absolute!important;left:50%!important;transform:translateX(-50%)!important;
  width:min(360px,calc(100vw - 18px))!important;min-height:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;
  padding:7px 9px!important;border:1px solid rgba(176,145,80,.48)!important;border-radius:11px!important;
  background:linear-gradient(135deg,rgba(12,17,18,.975),rgba(30,25,18,.975))!important;
  box-shadow:0 7px 20px rgba(0,0,0,.42)!important;pointer-events:none!important;
}
html body.v127-ui.v111-battle-active .v14672-tutorial-layer[data-placement="top"] .v14678-tutorial-action-card{top:calc(70px + env(safe-area-inset-top))!important;bottom:auto!important}
html body.v127-ui.v111-battle-active .v14672-tutorial-layer[data-placement="bottom"] .v14678-tutorial-action-card{top:auto!important;bottom:calc(76px + env(safe-area-inset-bottom))!important}
html body.v127-ui.v111-battle-active .v14678-tutorial-action-card>div{display:grid!important;gap:1px!important;min-width:0!important}
html body.v127-ui.v111-battle-active .v14678-tutorial-action-card small{font-size:.48rem!important;line-height:1!important;letter-spacing:.08em!important;color:#a99164!important}
html body.v127-ui.v111-battle-active .v14678-tutorial-action-card b{font-size:.72rem!important;line-height:1.15!important;color:#eadfc7!important}
html body.v127-ui.v111-battle-active .v14678-tutorial-action-card span{font-size:.59rem!important;line-height:1.22!important;color:rgba(232,230,221,.76)!important}
html body.v127-ui.v111-battle-active .v14678-tutorial-action-card .v14668-tutorial-skip{
  pointer-events:auto!important;margin:0!important;min-height:28px!important;padding:4px 7px!important;font-size:.56rem!important;white-space:nowrap!important;
}
/* v1.146.78: only the live tutorial target receives the highlight; the whole skill drawer/toggle must not glow at once. */
html body.v127-ui.v111-battle-active[data-v14668-tutorial-focus="skill-panel"] .v102-skill-drawer,
html body.v127-ui.v111-battle-active[data-v14668-tutorial-focus="skill-panel"] #skills-drawer-open{
  outline:none!important;outline-offset:0!important;
}

/* ===== css/v14679-class-arsenal-polish.css ===== */
/* Aldos RPG v1.146.79 — class arsenal / battle skill cards / character switch polish.
   No generated images. Mobile-first, restores the established battle skill-card proportions. */

/* --------------------------------------------------------------------------
   BATTLE SKILLS — restore the old large cards. Only the container scrolls Y.
   -------------------------------------------------------------------------- */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-columns:initial!important;
  gap:7px!important;
  width:100%!important;
  max-width:100%!important;
  max-height:124px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:4px 8px 6px 3px!important;
  scroll-snap-type:y proximity!important;
  overscroll-behavior-y:contain!important;
  overscroll-behavior-x:none!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(220,176,73,.66) rgba(255,255,255,.035)!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:116px!important;
  min-height:116px!important;
  max-height:116px!important;
  border-radius:13px!important;
  scroll-snap-align:start!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  height:116px!important;
  min-height:116px!important;
  max-height:116px!important;
  grid-template-rows:68px auto!important;
  padding:7px 6px 20px!important;
  gap:3px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
  width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;
  max-width:68px!important;max-height:68px!important;border-radius:11px!important;margin:auto!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-name{
  font-size:9px!important;line-height:1.18!important;min-height:22px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid::-webkit-scrollbar{width:5px!important;height:0!important}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid::-webkit-scrollbar-track{background:rgba(255,255,255,.035)!important;border-radius:999px!important}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid::-webkit-scrollbar-thumb{background:linear-gradient(#f0c66a,#b37b28)!important;border-radius:999px!important}

@media(max-width:390px){
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{gap:6px!important;max-height:116px!important}
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card{height:108px!important;min-height:108px!important;max-height:108px!important}
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{height:108px!important;min-height:108px!important;max-height:108px!important;grid-template-rows:62px auto!important;padding:6px 4px 19px!important}
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;max-width:62px!important;max-height:62px!important}
}

/* --------------------------------------------------------------------------
   CLASS ARSENAL — clearer hierarchy, less dead space, stronger mobile rhythm.
   -------------------------------------------------------------------------- */
html body.v127-ui .v14659-abilities-shell{gap:10px!important;padding-bottom:8px!important}
html body.v127-ui .v14659-abilities-hero{
  grid-template-columns:54px minmax(0,1fr) auto!important;
  gap:9px!important;padding:12px!important;border-radius:18px!important;
  border-color:rgba(104,213,184,.24)!important;
  background:radial-gradient(circle at 12% 0%,rgba(93,205,174,.16),transparent 34%),radial-gradient(circle at 100% 10%,rgba(211,169,72,.10),transparent 31%),linear-gradient(150deg,rgba(10,31,32,.97),rgba(7,15,20,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 10px 24px rgba(0,0,0,.16)!important;
}
html body.v127-ui .v14659-abilities-emblem{width:52px!important;height:52px!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(11,30,31,.94),rgba(19,19,15,.96))!important;border-color:rgba(213,179,91,.28)!important}
html body.v127-ui .v14659-abilities-emblem img,html body.v127-ui .v14659-abilities-emblem svg{width:34px!important;height:34px!important}
html body.v127-ui .v14659-abilities-hero>div>small{font-size:6.7px!important;color:#83dcc4!important}
html body.v127-ui .v14659-abilities-hero h2{font-size:17px!important;line-height:1.05!important;margin:2px 0 4px!important}
html body.v127-ui .v14659-abilities-hero p{font-size:7.3px!important;line-height:1.45!important;max-width:48ch!important}
html body.v127-ui .v14659-abilities-hero>aside{padding:7px 8px!important;border:1px solid rgba(215,182,95,.10)!important;background:rgba(0,0,0,.25)!important}

html body.v127-ui .v14679-innate-regression{
  display:grid!important;gap:8px!important;padding:11px!important;
  border:1px solid rgba(211,172,74,.22)!important;border-radius:17px!important;
  background:radial-gradient(circle at 0 0,rgba(211,172,74,.11),transparent 30%),linear-gradient(145deg,rgba(20,24,21,.95),rgba(8,17,20,.96))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html body.v127-ui .v14679-innate-regression>header{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:9px!important;align-items:center!important}
html body.v127-ui .v14679-innate-regression>header>span{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border:1px solid rgba(215,182,95,.22)!important;border-radius:12px!important;background:rgba(3,12,15,.62)!important}
html body.v127-ui .v14679-innate-regression>header>span :where(img,svg){width:27px!important;height:27px!important;object-fit:contain!important}
html body.v127-ui .v14679-innate-regression header small{display:block!important;color:#c9a953!important;font:900 6.6px/1.1 system-ui!important;letter-spacing:.13em!important}
html body.v127-ui .v14679-innate-regression header b{display:block!important;margin-top:3px!important;color:#f0eadb!important;font:850 12.5px/1.1 system-ui!important}
html body.v127-ui .v14679-innate-regression>p{margin:0!important;color:#9ca9a5!important;font:600 7.4px/1.48 system-ui!important}
html body.v127-ui .v14679-innate-regression dl{display:grid!important;gap:0!important;margin:0!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:12px!important;overflow:hidden!important;background:rgba(2,9,12,.35)!important}
html body.v127-ui .v14679-innate-regression dl>div{display:grid!important;grid-template-columns:minmax(92px,.75fr) minmax(0,1.55fr)!important;gap:8px!important;align-items:start!important;padding:7px 8px!important;border-bottom:1px solid rgba(255,255,255,.045)!important}
html body.v127-ui .v14679-innate-regression dl>div:last-child{border-bottom:0!important}
html body.v127-ui .v14679-innate-regression dt{color:#798884!important;font:700 6.8px/1.35 system-ui!important}
html body.v127-ui .v14679-innate-regression dd{margin:0!important;color:#ded7bd!important;font:750 7px/1.4 system-ui!important;text-align:right!important;overflow-wrap:anywhere!important}

html body.v127-ui .v14659-abilities-progress{padding:9px 11px!important;border-color:rgba(99,179,157,.12)!important;background:linear-gradient(145deg,rgba(10,20,23,.88),rgba(8,13,17,.93))!important}
html body.v127-ui .v14659-ability-tabs{padding:5px!important;gap:6px!important;border-color:rgba(215,182,95,.10)!important;background:rgba(5,12,16,.82)!important}
html body.v127-ui .v14659-ability-tabs button{min-height:50px!important;border-radius:11px!important}
html body.v127-ui .v14659-ability-tabs button.active{border-color:rgba(100,215,184,.34)!important;background:linear-gradient(145deg,rgba(45,124,104,.28),rgba(208,170,72,.045))!important;box-shadow:inset 0 0 0 1px rgba(99,215,184,.06)!important}
html body.v127-ui .v14659-ability-panel{padding:10px!important;gap:8px!important;border-radius:17px!important;border-color:rgba(255,255,255,.075)!important;background:radial-gradient(circle at 100% 0,rgba(215,182,95,.045),transparent 25%),linear-gradient(145deg,rgba(10,23,25,.95),rgba(6,12,17,.98))!important}
html body.v127-ui .v14659-ability-list{gap:8px!important}
html body.v127-ui .v14659-ability-list .v119-ability-card{min-height:84px!important;padding:8px!important;border-radius:14px!important;border-color:rgba(101,166,150,.11)!important;background:linear-gradient(110deg,rgba(255,255,255,.045),rgba(255,255,255,.012))!important}
html body.v127-ui .v14659-ability-list .v119-ability-card.equipped{border-color:rgba(98,216,184,.27)!important;background:linear-gradient(110deg,rgba(48,124,104,.16),rgba(255,255,255,.012))!important}

/* Histories: passive rows and long values align, wrap, and never collide. */
html body.v127-ui .v14674-ability-history-values>div{display:grid!important;grid-template-columns:minmax(92px,.8fr) minmax(0,1.35fr)!important;align-items:start!important;gap:9px!important}
html body.v127-ui .v14674-ability-history-values dt{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v127-ui .v14674-ability-history-values dd{min-width:0!important;margin:0!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
html body.v127-ui .v14674-ability-history>p{max-width:none!important;overflow-wrap:anywhere!important}

/* --------------------------------------------------------------------------
   CHARACTER SWITCH — sheet owns height; list owns vertical scroll.
   -------------------------------------------------------------------------- */
html body.v127-ui .v76-character-sheet{
  left:50%!important;bottom:calc(58px + env(safe-area-inset-bottom))!important;
  width:min(94vw,560px)!important;height:min(78dvh,690px)!important;max-height:calc(100dvh - 92px)!important;min-height:0!important;
  display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;
  padding:10px 12px!important;border-radius:23px!important;overflow:hidden!important;
}
html body.v127-ui .v76-character-sheet>header{min-height:0!important;padding:2px 1px 9px!important;gap:8px!important;align-items:start!important}
html body.v127-ui .v76-character-sheet>header>div{min-width:0!important}
html body.v127-ui .v76-character-sheet>header small{font-size:7px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui .v76-character-sheet>header h2{margin:4px 0 3px!important;font-size:22px!important;line-height:1.03!important;white-space:nowrap!important}
html body.v127-ui .v76-character-sheet>header p{margin:0!important;font-size:9px!important;line-height:1.32!important;max-width:42ch!important}
html body.v127-ui .v76-character-sheet>header>button{width:38px!important;height:38px!important;min-height:38px!important;flex:0 0 38px!important}
html body.v127-ui .v76-character-list{
  min-height:0!important;max-height:none!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;
  margin:8px 0!important;padding:1px 6px 4px 1px!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;
  scrollbar-width:thin!important;scrollbar-color:#d99d3f rgba(255,255,255,.04)!important;
}
html body.v127-ui .v76-character-list::-webkit-scrollbar{width:5px!important;height:0!important}
html body.v127-ui .v76-character-list::-webkit-scrollbar-track{background:rgba(255,255,255,.04)!important;border-radius:999px!important}
html body.v127-ui .v76-character-list::-webkit-scrollbar-thumb{background:linear-gradient(#efb44c,#b66c1f)!important;border-radius:999px!important}
html body.v127-ui .v76-character-sheet>footer{position:relative!important;z-index:2!important;margin:0!important;padding:7px 0 0!important;background:linear-gradient(180deg,rgba(8,15,18,0),rgba(8,15,18,.98) 26%)!important}
html body.v127-ui .v117-drawer-character-row{min-width:0!important}
html body.v127-ui .v117-drawer-character-row .v76-character-copy{min-width:0!important;overflow:hidden!important}
html body.v127-ui .v117-drawer-character-row .v76-character-copy b{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

@media(max-width:430px){
  html body.v127-ui .v14659-abilities-hero{grid-template-columns:46px minmax(0,1fr)!important}
  html body.v127-ui .v14659-abilities-emblem{width:44px!important;height:44px!important}
  html body.v127-ui .v14659-abilities-hero>aside{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:5px 7px!important;padding:6px 8px!important;text-align:left!important}
  html body.v127-ui .v14659-abilities-hero>aside>i{width:1px!important;height:16px!important;display:block!important}
  html body.v127-ui .v14679-innate-regression dl>div{grid-template-columns:minmax(88px,.72fr) minmax(0,1.45fr)!important}
  html body.v127-ui .v76-character-sheet{bottom:calc(60px + env(safe-area-inset-bottom))!important;height:min(76dvh,650px)!important}
}

/* ===== css/v14680-mobile-ui-balance.css ===== */
/* Aldos RPG v1.146.80 — mobile creation/switch/battle cards + mage mini stats.
   Existing assets only: no image generation and no image edits. */

/* 1. Warrior mini/full-body portrait: only lift the art slightly inside character/creation previews. */
html body.v127-ui :is(.v125-character-art,.v14632-role-portrait,.v14632-final-choice>div) img[alt^="Воин —"]{
  transform:translateY(-5px)!important;
  object-position:center bottom!important;
}

/* 2. Character creation: one calm composition instead of nested rectangles. */
html body.v127-ui .v14632-role-carousel{
  grid-template-columns:42px minmax(0,1fr) 42px!important;
  gap:5px!important;
  align-items:center!important;
}
html body.v127-ui .v14632-role-focus{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:4px 6px 6px!important;
}
html body.v127-ui .v14632-role-portrait{
  width:154px!important;height:150px!important;
  border:0!important;border-radius:0!important;
  background:radial-gradient(ellipse at 50% 78%,rgba(93,154,87,.13),rgba(9,14,14,.04) 48%,transparent 70%)!important;
  box-shadow:none!important;overflow:visible!important;
}
html body.v127-ui .v14632-role-portrait img{
  width:146px!important;height:150px!important;
  object-fit:contain!important;object-position:center bottom!important;
}
html body.v127-ui .v14632-role-arrow{
  width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
  padding:7px!important;border-radius:50%!important;
  border:1px solid rgba(196,154,86,.28)!important;
  background:radial-gradient(circle,rgba(34,47,43,.82),rgba(11,17,18,.82))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035)!important;
}
html body.v127-ui .v14632-role-arrow:active{transform:scale(.94)!important;background:rgba(36,28,18,.9)!important}
html body.v127-ui .v14658-role-mechanic{
  margin:5px auto 0!important;max-width:94%!important;padding:4px 7px!important;
  border:0!important;border-left:2px solid rgba(92,196,170,.38)!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}
html body.v127-ui .v14632-gender-question{
  width:min(100%,410px)!important;margin:2px auto 0!important;padding:5px 2px 2px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
html body.v127-ui .v14632-gender-question>b{margin-bottom:7px!important}
html body.v127-ui .v14632-gender-question>div{gap:8px!important}
html body.v127-ui .v14632-gender-question button{
  min-height:37px!important;border-radius:999px!important;
  border:1px solid rgba(135,141,139,.26)!important;
  background:rgba(13,18,20,.72)!important;
  box-shadow:none!important;
}
html body.v127-ui .v14632-gender-question button.active{
  border-color:rgba(205,170,70,.62)!important;
  background:linear-gradient(90deg,rgba(74,77,34,.42),rgba(21,34,25,.72))!important;
  box-shadow:inset 0 0 15px rgba(177,211,54,.06)!important;
}
html body.v127-ui .v14632-stage-next{margin-top:9px!important}

/* 2b. Character switch: four direct children need four grid rows (handle/header/list/footer). */
html body.v127-ui .v76-character-sheet{
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
}
html body.v127-ui .v76-character-sheet>.v76-sheet-handle{grid-row:1!important;position:relative!important;z-index:4!important}
html body.v127-ui .v76-character-sheet>header{
  grid-row:2!important;position:relative!important;z-index:3!important;
  margin:0!important;padding:2px 1px 9px!important;
  background:linear-gradient(180deg,rgba(10,25,26,.98),rgba(10,25,26,.92) 74%,rgba(10,25,26,0))!important;
}
html body.v127-ui .v76-character-sheet>.v76-character-list{
  grid-row:3!important;position:relative!important;z-index:1!important;
  margin:0!important;padding:3px 6px 7px 1px!important;
  min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
}
html body.v127-ui .v76-character-sheet>footer{grid-row:4!important;position:relative!important;z-index:4!important}

/* 3. Battle active skills: uniform square cards, no dead lower strip, vertical scroll remains. */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-rows:auto!important;
  gap:7px!important;width:100%!important;max-width:100%!important;
  max-height:112px!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  padding:4px 8px 6px 3px!important;
  align-items:start!important;justify-items:stretch!important;
  scroll-snap-type:y proximity!important;touch-action:pan-y!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown{
  display:block!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1/1!important;
  overflow:visible!important;border-radius:14px!important;scroll-snap-align:start!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  position:relative!important;display:grid!important;place-items:center!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1/1!important;
  grid-template-rows:1fr!important;gap:0!important;padding:5px!important;overflow:hidden!important;
  border-radius:13px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
  position:relative!important;display:grid!important;place-items:center!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:4px!important;overflow:hidden!important;border-radius:11px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art>img:not(.v14680-ignore),
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art>.v83-ability-icon{
  display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;
  clip-path:none!important;transform:none!important;border-radius:8px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid .v14676-onslaught-spend-badge{
  position:absolute!important;z-index:6!important;top:3px!important;right:3px!important;left:auto!important;bottom:auto!important;
  display:grid!important;place-items:center!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important;
  margin:0!important;padding:2px!important;border-radius:50%!important;overflow:hidden!important;
  border:1px solid rgba(238,191,83,.78)!important;background:rgba(21,14,7,.93)!important;
  box-shadow:0 2px 7px rgba(0,0,0,.54),0 0 0 1px rgba(255,220,123,.08)!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid .v14676-onslaught-spend-badge>img{
  display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;padding:0!important;object-fit:contain!important;border-radius:50%!important;transform:none!important;
}
@media(max-width:390px){
  html body.v127-ui .v14632-role-carousel{grid-template-columns:36px minmax(0,1fr) 36px!important}
  html body.v127-ui .v14632-role-arrow{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:6px!important}
  html body.v127-ui .v14632-role-portrait{width:132px!important;height:128px!important}
  html body.v127-ui .v14632-role-portrait img{width:126px!important;height:130px!important}
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{gap:6px!important;max-height:106px!important}
}

/* ===== css/v14682-mobile-battle-fixes.css ===== */
/* Aldos RPG v1.146.82 — mobile battle/card/character polish. Existing assets only. */

/* Character switch: header lives on the sheet itself, without the black rectangular plate. */
html body.v127-ui .v76-character-sheet>header{
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
html body.v127-ui .v76-character-sheet>header::before,
html body.v127-ui .v76-character-sheet>header::after{display:none!important;content:none!important}

/* Onslaught warrior: nickname and all three resource rows form one compact upper block. */
html body.v127-ui.v111-battle-active .v101-player-card.v14682-onslaught-warrior .v101-unit-body{
  
  
  
  
}
html body.v127-ui.v111-battle-active .v101-player-card.v14682-onslaught-warrior .v101-unit-name{
  
  
}
html body.v127-ui.v111-battle-active .v101-player-card.v14682-onslaught-warrior .v101-unit-bars{
  
  
}

/* Active skills: fixed rows eliminate inherited aspect/height collisions. */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  grid-template-columns:repeat(3,minmax(0,96px))!important;
  grid-auto-rows:96px!important;
  column-gap:10px!important;row-gap:14px!important;
  justify-content:center!important;align-items:start!important;
  max-height:210px!important;
  padding:6px 9px 10px 4px!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  scroll-padding-block:6px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown{
  width:96px!important;height:96px!important;min-width:96px!important;min-height:96px!important;max-width:96px!important;max-height:96px!important;
  aspect-ratio:auto!important;margin:0!important;align-self:start!important;justify-self:center!important;
  overflow:hidden!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  width:96px!important;height:96px!important;min-width:96px!important;min-height:96px!important;max-width:96px!important;max-height:96px!important;
  aspect-ratio:auto!important;padding:5px!important;margin:0!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
  width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:4px!important;
}
@media(max-width:390px){
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{grid-template-columns:repeat(3,minmax(0,86px))!important;grid-auto-rows:86px!important;row-gap:12px!important;column-gap:7px!important;max-height:190px!important}
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{width:86px!important;height:86px!important;min-width:86px!important;min-height:86px!important;max-width:86px!important;max-height:86px!important}
}

/* ===== css/v14683-guardian-dungeon.css ===== */
/* Aldos RPG v1.146.83 — Guardian solo mode, large Warrior status art and guardian badge details. */
.v14683-guardian-badge-button{
  -webkit-appearance:none!important;
  appearance:none!important;
  padding:0!important;
  margin:0!important;
  min-width:0!important;
  font:inherit!important;
  color:inherit!important;
  cursor:pointer!important;
  outline:none!important;
}
.v14683-guardian-badge-button:focus-visible{
  box-shadow:0 0 0 2px rgba(105,194,255,.82),0 2px 8px rgba(0,0,0,.62)!important;
}
.v14683-guardian-info{display:grid;gap:10px;min-width:0}
.v14683-guardian-info>p{margin:0;color:var(--text,#e7ece9);line-height:1.45}
.v14683-guardian-info-state{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.v14683-guardian-info-state>span,
.v14683-guardian-info-state>b{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border:1px solid rgba(118,150,145,.34);border-radius:999px;background:rgba(9,26,28,.82);font:800 12px/1.15 system-ui,sans-serif}
.v14683-guardian-info-state>b{border-color:rgba(207,157,67,.56);color:#f0d391}
.v14683-guardian-info>section{padding:10px 11px;border:1px solid rgba(93,145,140,.34);border-radius:12px;background:rgba(7,24,26,.7)}
.v14683-guardian-info>section>small{display:block;margin-bottom:5px;color:#82c7bd;font:900 10px/1.2 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.v14683-guardian-info>section>p{margin:0;line-height:1.42;color:#d9e4e0}

/* Source Warrior art is now tightly cropped. Let it use the whole status icon instead of old 88% padding. */
html body.v111-battle-active :is(
  .status-warrior-defensive-stance,
  .status-warrior-blade-wall,
  .status-warrior-counter-judgment,
  .status-warrior-unbroken,
  .status-warrior-challenge-mark,
  .status-warrior-armor-split,
  .status-warrior-dread-presence
) .v113-effect-icon :where(img,.v114-status-image){
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:scale(1.04)!important;
}

/* ===== css/v14684-mobile-tutorial-skills-traffic.css ===== */
/* Aldos RPG v1.146.84 — tutorial potion anchor, battle skill geometry, mobile paint containment. */

/* --------------------------------------------------------------------------
   TUTORIAL STEP 6/11 — the training potion action is anchored next to the
   lower support area and cannot disappear behind the coach card / safe area.
   -------------------------------------------------------------------------- */
html body.v127-ui.v111-battle-active .v14684-tutorial-potion-action{
  position:absolute!important;
  left:50%!important;
  bottom:calc(126px + env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  z-index:9!important;
  width:min(330px,calc(100vw - 28px))!important;
  min-height:42px!important;
  padding:8px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid rgba(222,181,78,.72)!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,rgba(43,55,46,.985),rgba(38,29,19,.985))!important;
  color:#f4e4bc!important;
  font:850 .72rem/1.1 system-ui!important;
  box-shadow:0 8px 24px rgba(0,0,0,.48),0 0 0 3px rgba(218,171,59,.08)!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
html body.v127-ui.v111-battle-active .v14684-tutorial-potion-action::before{
  content:"✦";
  color:#e8bf62!important;
  font-size:.85rem!important;
}
html body.v127-ui.v111-battle-active .v14684-tutorial-potion-action:disabled{opacity:.58!important;filter:saturate(.65)!important}

/* Step 6/11 keeps the explanation compact because the real action is below. */
html body.v127-ui.v111-battle-active .v14672-tutorial-layer[data-tutorial-step="5"] .v14672-tutorial-dialog{
  top:calc(68px + env(safe-area-inset-top))!important;
  bottom:auto!important;
}
html body.v127-ui.v111-battle-active .v14672-tutorial-layer[data-tutorial-step="5"] .v14668-tutorial-actions{
  margin-top:3px!important;
}

/* --------------------------------------------------------------------------
   BATTLE SKILLS — slightly smaller cards, one exact square size for every row,
   bigger vertical separation and no inherited transforms/margins.
   -------------------------------------------------------------------------- */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  display:grid!important;
  grid-template-columns:repeat(3,88px)!important;
  grid-auto-rows:88px!important;
  column-gap:10px!important;
  row-gap:18px!important;
  justify-content:center!important;
  align-content:start!important;
  align-items:start!important;
  width:100%!important;
  max-width:100%!important;
  max-height:200px!important;
  padding:7px 10px 12px 5px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scroll-padding-block:7px!important;
  touch-action:pan-y!important;
  overscroll-behavior:contain!important;
  contain:layout paint!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected{
  box-sizing:border-box!important;
  position:relative!important;
  width:88px!important;
  height:88px!important;
  min-width:88px!important;
  min-height:88px!important;
  max-width:88px!important;
  max-height:88px!important;
  margin:0!important;
  padding:0!important;
  inset:auto!important;
  transform:none!important;
  translate:none!important;
  align-self:start!important;
  justify-self:center!important;
  overflow:hidden!important;
  border-radius:13px!important;
  contain:layout paint!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  box-sizing:border-box!important;
  width:88px!important;
  height:88px!important;
  min-width:88px!important;
  min-height:88px!important;
  max-width:88px!important;
  max-height:88px!important;
  display:grid!important;
  place-items:center!important;
  padding:5px!important;
  margin:0!important;
  gap:0!important;
  transform:none!important;
  overflow:hidden!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
  box-sizing:border-box!important;
  width:76px!important;
  height:76px!important;
  min-width:76px!important;
  min-height:76px!important;
  max-width:76px!important;
  max-height:76px!important;
  margin:0!important;
  padding:3px!important;
  object-fit:contain!important;
  transform:none!important;
}

/* The drawer itself does not invalidate the whole battle page while scrolling. */
html body.v127-ui.v111-battle-active .v102-skill-drawer{
  contain:layout paint!important;
}

@media(max-width:390px){
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
    grid-template-columns:repeat(3,80px)!important;
    grid-auto-rows:80px!important;
    column-gap:8px!important;
    row-gap:17px!important;
    max-height:184px!important;
    padding:6px 8px 11px 4px!important;
  }
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
    width:80px!important;height:80px!important;min-width:80px!important;min-height:80px!important;max-width:80px!important;max-height:80px!important;
  }
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
    width:69px!important;height:69px!important;min-width:69px!important;min-height:69px!important;max-width:69px!important;max-height:69px!important;
  }
  html body.v127-ui.v111-battle-active .v14684-tutorial-potion-action{
    bottom:calc(120px + env(safe-area-inset-bottom))!important;
    width:min(310px,calc(100vw - 22px))!important;
    min-height:40px!important;
    font-size:.68rem!important;
  }
}

/* ===== css/v14685-ability-status-patron-polish.css ===== */
/* Aldos RPG v1.146.85 — battle abilities, compact status counters, patron UX. */

/* Battle ability grid: keep all three columns inside the mobile drawer. */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(3,74px)!important;
  grid-auto-rows:74px!important;
  column-gap:7px!important;
  row-gap:14px!important;
  justify-content:center!important;
  align-content:start!important;
  width:calc(100% - 16px)!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:7px 0 12px!important;
  max-height:178px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scroll-padding-block:7px!important;
  contain:layout paint!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected{
  box-sizing:border-box!important;
  position:relative!important;
  width:74px!important;height:74px!important;
  min-width:74px!important;min-height:74px!important;
  max-width:74px!important;max-height:74px!important;
  margin:0!important;padding:0!important;
  inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;translate:none!important;
  justify-self:center!important;align-self:start!important;
  overflow:hidden!important;
  border-radius:12px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  box-sizing:border-box!important;
  width:74px!important;height:74px!important;
  min-width:74px!important;min-height:74px!important;
  max-width:74px!important;max-height:74px!important;
  margin:0!important;padding:4px!important;
  display:grid!important;place-items:center!important;
  transform:none!important;translate:none!important;
  overflow:hidden!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
  box-sizing:border-box!important;
  width:64px!important;height:64px!important;
  min-width:64px!important;min-height:64px!important;
  max-width:64px!important;max-height:64px!important;
  margin:0!important;padding:2px!important;
  display:grid!important;place-items:center!important;
  overflow:hidden!important;
  transform:none!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art img,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art svg{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}
@media(max-width:390px){
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
    grid-template-columns:repeat(3,70px)!important;
    grid-auto-rows:70px!important;
    column-gap:6px!important;
    row-gap:13px!important;
    width:calc(100% - 12px)!important;
    max-height:169px!important;
    padding:6px 0 11px!important;
  }
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
    width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important;max-width:70px!important;max-height:70px!important;
  }
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
    width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-width:60px!important;max-height:60px!important;
  }
}

/* Effect stack/duration badges are deliberately tiny so they do not cover art. */
html body.v127-ui.v111-battle-active .v106-effect-asset.v113-effect-asset .v1350-effect-stacks,
html body.v127-ui.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-turns{
  
  
  
  
  
  border-width:1px!important;
  border-radius:50%!important;
  font:900 6px/9px Arial,sans-serif!important;
  letter-spacing:-.2px!important;
  
  
}
html body.v127-ui.v111-battle-active .v106-effect-asset.v113-effect-asset .v1350-effect-stacks{}
html body.v127-ui.v111-battle-active .v106-effect-asset.v113-effect-asset .v113-effect-turns{}

/* Patron purchase: make an unaccepted rules checkbox unmistakable but not harsh. */
.v14685-patron-terms{
  box-sizing:border-box;display:flex!important;align-items:flex-start!important;gap:9px!important;
  margin:12px 0 3px!important;padding:10px 11px!important;border:1px solid rgba(194,160,83,.26)!important;
  border-radius:11px!important;background:rgba(12,16,19,.48)!important;transition:border-color .18s,box-shadow .18s,background .18s!important;
}
.v14685-patron-terms input{flex:0 0 auto;margin-top:2px;accent-color:#d8b45b}
.v14685-patron-terms.v14685-terms-required{
  border-color:rgba(244,93,79,.9)!important;background:rgba(94,27,25,.26)!important;
  box-shadow:0 0 0 3px rgba(244,93,79,.12),0 0 22px rgba(244,93,79,.16)!important;
  animation:v14685TermsNudge .34s ease-out;
}
.v14644-modal [data-patron-confirm].v14685-confirm-required{
  border-color:#f06f5e!important;box-shadow:0 0 0 3px rgba(240,111,94,.12),0 0 18px rgba(240,111,94,.2)!important;
}
@keyframes v14685TermsNudge{0%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}65%{transform:translateX(3px)}}

/* Centered VIP daily-gift result card. Existing game assets only. */
.v14685-gift-modal{align-items:center!important;justify-content:center!important}
.v14685-gift-modal>article{
  width:min(86vw,360px)!important;text-align:center!important;padding:22px 18px 18px!important;
  border:1px solid rgba(219,178,79,.68)!important;border-radius:20px!important;
  background:linear-gradient(155deg,rgba(24,36,34,.98),rgba(16,17,23,.99))!important;
  box-shadow:0 22px 70px rgba(0,0,0,.58),0 0 28px rgba(204,161,65,.12)!important;
}
.v14685-gift-art{display:block!important;width:96px!important;height:96px!important;object-fit:contain!important;margin:0 auto 8px!important}
.v14685-gift-modal h3{margin:5px 0 7px!important;font-size:1.45rem!important}
.v14685-gift-modal p{margin:0 auto 13px!important;max-width:30ch!important;color:#bfc4bd!important}
.v14685-gift-rewards{list-style:none!important;margin:0 0 14px!important;padding:0!important;display:grid!important;gap:7px!important}
.v14685-gift-rewards li{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:9px 11px!important;border:1px solid rgba(122,169,136,.25)!important;border-radius:10px!important;background:rgba(21,44,37,.44)!important}
.v14685-gift-rewards b{color:#f2dfad!important}.v14685-gift-rewards small{color:#92a69c!important}
.v14685-gift-ok{width:100%!important;min-height:44px!important}

/* ===== css/v14686-mobile-payments-merchant.css ===== */
/* Aldos RPG v1.146.86 — mobile skill geometry, Patron dialogs, payment return UX. */

/* Three battle skills must fit even in the narrow Android side drawer. */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(3,68px)!important;
  grid-auto-rows:68px!important;
  column-gap:8px!important;
  row-gap:12px!important;
  justify-content:center!important;
  align-content:start!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:7px 10px 12px!important;
  max-height:161px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  touch-action:pan-y!important;
  contain:layout paint!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  box-sizing:border-box!important;
  position:relative!important;
  width:68px!important;height:68px!important;
  min-width:68px!important;min-height:68px!important;
  max-width:68px!important;max-height:68px!important;
  margin:0!important;padding:0!important;
  inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;translate:none!important;
  justify-self:center!important;align-self:start!important;
  overflow:hidden!important;
  border-radius:11px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  display:grid!important;place-items:center!important;padding:4px!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
  box-sizing:border-box!important;width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;max-width:58px!important;max-height:58px!important;
  margin:0!important;padding:2px!important;display:grid!important;place-items:center!important;overflow:hidden!important;transform:none!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art img,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art svg{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
@media(max-width:390px){
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{grid-template-columns:repeat(3,64px)!important;grid-auto-rows:64px!important;column-gap:7px!important;row-gap:11px!important;padding:6px 9px 11px!important;max-height:151px!important}
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;max-height:64px!important}
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important}
}

/* Purchase dialog: isolate the checkbox from generic button/input styles. */
html body .v14644-modal.v14686-purchase-modal{box-sizing:border-box!important;padding:12px!important;overflow:hidden!important}
html body .v14644-modal.v14686-purchase-modal>.v14686-purchase-card{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
  width:min(92vw,390px)!important;max-width:390px!important;max-height:min(86dvh,690px)!important;
  padding:17px 16px 15px!important;overflow-x:hidden!important;overflow-y:auto!important;
}
html body .v14686-purchase-card>*{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
html body .v14686-purchase-card>.v14686-purchase-art{display:block!important;width:82px!important;height:82px!important;margin:0 auto!important;object-fit:contain!important}
html body .v14686-purchase-card>h3{width:100%!important;margin:0!important;text-align:center!important;overflow-wrap:anywhere!important}
html body .v14686-purchase-description{width:100%!important;margin:1px 0 2px!important;padding:0!important;text-align:center!important;line-height:1.42!important;overflow-wrap:anywhere!important;word-break:normal!important}
html body .v14686-purchase-points{box-sizing:border-box!important;width:100%!important;margin:3px 0!important;padding:0 0 0 20px!important;overflow:hidden!important}
html body .v14686-purchase-points li{margin:3px 0!important;padding:0!important;overflow-wrap:anywhere!important}
html body .v14686-purchase-price{display:block!important;width:100%!important;margin:3px 0 1px!important;text-align:center!important}
html body .v14644-modal .v14685-patron-terms.v14686-patron-terms{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:start!important;column-gap:10px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;margin:7px 0 2px!important;padding:10px 11px!important;
  border:1px solid rgba(194,160,83,.3)!important;border-radius:12px!important;background:rgba(12,16,19,.52)!important;
  overflow:hidden!important;color:#c4bfc3!important;font-size:.64rem!important;line-height:1.35!important;
}
html body .v14644-modal .v14686-patron-terms>input[type="checkbox"][data-patron-terms]{
  -webkit-appearance:none!important;appearance:none!important;box-sizing:border-box!important;
  position:relative!important;display:block!important;inset:auto!important;float:none!important;
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:22px!important;max-height:22px!important;
  margin:0!important;padding:0!important;border:1px solid rgba(222,188,98,.78)!important;border-radius:6px!important;background:#11151a!important;box-shadow:none!important;transform:none!important;
}
html body .v14644-modal .v14686-patron-terms>input[type="checkbox"][data-patron-terms]:checked{background:linear-gradient(145deg,#d9b857,#a77d27)!important;border-color:#f0d178!important}
html body .v14644-modal .v14686-patron-terms>input[type="checkbox"][data-patron-terms]:checked::after{content:'✓'!important;position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#171610!important;font:900 16px/1 Arial,sans-serif!important}
html body .v14644-modal .v14686-patron-terms>span{display:block!important;min-width:0!important;width:auto!important;margin:0!important;padding:1px 0 0!important;overflow-wrap:anywhere!important;white-space:normal!important;text-align:left!important}
html body .v14686-purchase-actions{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr)!important;gap:8px!important;width:100%!important;margin-top:2px!important}
html body .v14686-purchase-actions>button{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0!important;padding:9px 8px!important;font-size:.68rem!important;white-space:normal!important}

/* VIP daily gift: a stable centered result card with no inherited flex/absolute geometry. */
html body .v14644-modal.v14686-gift-modal{box-sizing:border-box!important;display:grid!important;place-items:center!important;padding:14px!important;overflow:hidden!important}
html body .v14644-modal.v14686-gift-modal>.v14686-gift-card{
  box-sizing:border-box!important;position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:stretch!important;align-items:start!important;
  width:min(88vw,350px)!important;max-width:350px!important;max-height:82dvh!important;margin:0!important;padding:20px 18px 17px!important;gap:7px!important;text-align:center!important;overflow-x:hidden!important;overflow-y:auto!important;
  border:1px solid rgba(219,178,79,.66)!important;border-radius:20px!important;background:linear-gradient(155deg,rgba(24,36,34,.99),rgba(16,17,23,.99))!important;
}
html body .v14686-gift-card>*{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
html body .v14686-gift-emblem{display:grid!important;place-items:center!important;width:108px!important;height:108px!important;margin:0 auto 2px!important;border-radius:50%!important;background:radial-gradient(circle,rgba(211,173,79,.16),transparent 68%)!important}
html body .v14686-gift-emblem>.v14685-gift-art{display:block!important;width:96px!important;height:96px!important;margin:0!important;object-fit:contain!important}
html body .v14686-gift-card>h3{margin:0!important;font-size:1.35rem!important;line-height:1.08!important;text-align:center!important}
html body .v14686-gift-card>p{width:100%!important;margin:0 auto 4px!important;padding:0!important;max-width:30ch!important;line-height:1.4!important;text-align:center!important;overflow-wrap:anywhere!important}
html body .v14686-gift-rewards{box-sizing:border-box!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;margin:3px 0 5px!important;padding:0!important;list-style:none!important}
html body .v14686-gift-rewards>li{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;padding:9px 11px!important;text-align:left!important}
html body .v14686-gift-rewards>li>span{min-width:0!important;overflow-wrap:anywhere!important;color:#b9c5bd!important}
html body .v14686-gift-rewards>li>b{white-space:nowrap!important;color:#f1d98d!important}
html body .v14686-gift-ok{box-sizing:border-box!important;width:100%!important;min-height:44px!important;margin:0!important}

/* ===== css/v14687-mobile-status-skill-payment.css ===== */
/* Aldos RPG v1.146.87 — subclass visuals, battle detail containment, status modal containment. */

/* Keep three combat skills comfortably inside the Android drawer. */
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
  grid-template-columns:repeat(3,64px)!important;
  grid-auto-rows:64px!important;
  column-gap:7px!important;
  row-gap:10px!important;
  padding:6px 9px 11px!important;
  max-height:149px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected,
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
  width:64px!important;height:64px!important;
  min-width:64px!important;min-height:64px!important;
  max-width:64px!important;max-height:64px!important;
  margin:0!important;inset:auto!important;transform:none!important;
}
html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
  width:54px!important;height:54px!important;
  min-width:54px!important;min-height:54px!important;
  max-width:54px!important;max-height:54px!important;
}
@media(max-width:390px){
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid{
    grid-template-columns:repeat(3,60px)!important;grid-auto-rows:60px!important;
    column-gap:6px!important;row-gap:9px!important;padding:6px 8px 10px!important;max-height:140px!important;
  }
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.cooldown,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card.selected,
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-main{
    width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-width:60px!important;max-height:60px!important;
  }
  html body.v127-ui.v111-battle-active .v14415-active-skill-section .v102-skill-grid>.v102-skill-card .v101-skill-art{
    width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;max-width:50px!important;max-height:50px!important;
  }
}

/* Skill detail must never consume the whole drawer. The cast button remains reachable. */
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot{
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  max-height:min(48dvh,510px)!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding:0 2px 8px!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:12px 11px 10px!important;overflow:visible!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head{
  grid-template-columns:54px minmax(0,1fr)!important;gap:9px!important;min-width:0!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head>span{
  width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head>div,
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head h4,
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-description,
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-target{
  min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head h4{font-size:1.18rem!important;line-height:1.04!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-description{font-size:.84rem!important;line-height:1.42!important;margin:9px 0!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history[open]{
  box-sizing:border-box!important;max-height:min(31dvh,315px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history-values>div{
  grid-template-columns:minmax(0,48%) minmax(0,52%)!important;gap:7px!important;min-width:0!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history-values dt,
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history-values dd{
  min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-cast{
  position:sticky!important;bottom:0!important;z-index:3!important;width:100%!important;margin-top:10px!important;
  box-shadow:0 -10px 16px rgba(5,18,18,.78)!important;
}

/* The standalone ability modal uses internal scrolling rather than growing beyond the viewport. */
html body .modal-back .modal.v1281-ability-modal,
html body .modal-back .v61-battle-ability-detail{
  box-sizing:border-box!important;max-width:calc(100vw - 20px)!important;min-width:0!important;
}
html body .v61-battle-ability-detail{
  max-height:min(82dvh,760px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
}
html body .v61-battle-ability-detail .v14674-ability-history[open]{max-height:38dvh!important;overflow-y:auto!important;overflow-x:hidden!important}
html body .v61-battle-ability-detail *{min-width:0}

/* Effect help cards: no horizontal overflow even for long classifications/stack rules. */
html body .modal-back .modal.v98-status-modal{
  box-sizing:border-box!important;
  width:min(94vw,430px)!important;max-width:calc(100vw - 16px)!important;min-width:0!important;
  max-height:min(86dvh,760px)!important;margin:auto!important;padding:12px!important;overflow:hidden!important;
}
html body .v98-status-modal .status-help-card{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:100%!important;min-width:0!important;max-height:calc(86dvh - 24px)!important;
  margin:0!important;padding:14px 12px 12px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
}
html body .v98-status-modal .status-help-card>*{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
html body .v98-status-modal .status-help-card h2,
html body .v98-status-modal .status-help-card p,
html body .v98-status-modal .status-help-card span,
html body .v98-status-modal .status-help-card dt,
html body .v98-status-modal .status-help-card dd{
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
html body .v98-status-modal .status-help-card h2{font-size:clamp(1.55rem,8vw,2.25rem)!important;line-height:1.02!important;margin:0 0 10px!important}
html body .v98-status-modal .status-help-card>.v34-status-pill{
  display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;
  margin:0 0 10px!important;padding:8px 10px!important;border-radius:999px!important;text-align:center!important;
  font-size:.78rem!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
html body .v98-status-modal .status-help-card>p{font-size:.91rem!important;line-height:1.48!important;margin:0 0 12px!important}
html body .v98-status-modal .v1465-status-details{width:100%!important;min-width:0!important;margin:0 0 12px!important}
html body .v98-status-modal .v1465-status-details>div{
  display:grid!important;grid-template-columns:minmax(0,84px) minmax(0,1fr)!important;gap:8px!important;
  width:100%!important;min-width:0!important;padding:7px 0!important;
}
html body .v98-status-modal .v1465-status-details dt{font-size:.72rem!important;color:#99a19f!important}
html body .v98-status-modal .v1465-status-details dd{margin:0!important;font-size:.77rem!important;line-height:1.32!important}
html body .v98-status-modal .status-help-card>button.primary{
  position:sticky!important;bottom:0!important;width:100%!important;min-height:44px!important;margin-top:auto!important;z-index:2!important;
}
@media(max-width:380px){
  html body .v98-status-modal .v1465-status-details>div{grid-template-columns:1fr!important;gap:2px!important}
  html body .v98-status-modal .status-help-card{padding:12px 10px 10px!important}
}

/* Path classes are intentionally image-neutral: they only give diagnostics/layout hooks.
   Existing Guardian artwork is used for guardian, existing v14672 artwork for onslaught. */
html body .v119-location-player-art .v14687-warrior-path-guardian,
html body .v119-location-player-art .v14687-warrior-path-onslaught{object-fit:contain!important}

/* ===== css/v14688-mobile-skill-status-cosmetics-guardian.css ===== */
/* Aldos RPG v1.146.88 — battle skills without detail card, legacy status layout + horizontal scroll, temporary cosmetics lock, compact Guardian chat marks. */

/* Battle: the drawer is only a loadout/action panel. Tapping an active icon casts it or opens target selection. */
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot{display:none!important}
html body.v127-ui.v111-battle-active .v102-skill-drawer .v102-skill-scroll{padding-bottom:14px!important}
html body.v127-ui.v111-battle-active .v102-skill-card.selected{outline:none!important;box-shadow:none!important}

/* Restore the familiar effect-card proportions. Long legacy rows may be panned left/right instead of being forced into giant vertical blocks. */
html body .modal-back .modal.v98-status-modal{
  box-sizing:border-box!important;width:min(500px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;
  max-height:calc(100dvh - 24px)!important;padding:20px!important;overflow-x:auto!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
}
html body .v98-status-modal .status-help-card{
  box-sizing:border-box!important;display:grid!important;width:max(100%,430px)!important;min-width:430px!important;max-width:none!important;
  height:auto!important;max-height:none!important;margin:0!important;padding:18px!important;gap:14px!important;
  overflow:visible!important;
}
html body .v98-status-modal .status-help-card>*{min-width:0!important;max-width:none!important}
html body .v98-status-modal .status-help-card h2{
  margin:0!important;font-size:1.5rem!important;line-height:1.12!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
}
html body .v98-status-modal .status-help-card>.v34-status-pill{
  display:inline-flex!important;width:auto!important;max-width:none!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:7px 12px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
}
html body .v98-status-modal .status-help-card>p{
  margin:0!important;padding:16px!important;font-size:16px!important;line-height:1.48!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
}
html body .v98-status-modal .v1465-status-details{width:100%!important;min-width:390px!important;margin:0!important}
html body .v98-status-modal .v1465-status-details>div{
  display:grid!important;grid-template-columns:90px minmax(280px,1fr)!important;gap:7px!important;padding:6px 7px!important;
}
html body .v98-status-modal .v1465-status-details dt{font-size:8px!important}
html body .v98-status-modal .v1465-status-details dd{margin:0!important;font-size:9px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
html body .v98-status-modal .status-help-card>button.primary{
  position:static!important;width:100%!important;max-width:none!important;min-height:44px!important;margin:0!important;box-shadow:none!important;
}
html body .modal.v98-status-modal::-webkit-scrollbar{height:6px!important;width:6px!important}
html body .modal.v98-status-modal::-webkit-scrollbar-thumb{border-radius:999px!important;background:rgba(229,172,75,.62)!important}

/* Cosmetics are visible for context/preview but temporarily cannot be purchased. */
.v14688-cosmetic-notice{margin:0 0 10px;padding:9px 11px;border:1px solid rgba(214,171,77,.3);border-radius:12px;background:rgba(104,73,20,.12);color:#d7c28a;font-size:.67rem;line-height:1.4}
.v14659-patron-product.cosmetic .v14688-cosmetic-disabled>button:disabled{opacity:.9!important;color:#d6c083!important;border-color:rgba(214,171,77,.25)!important;background:rgba(87,65,24,.16)!important}

/* Good/Evil merchant-guardian marks beside chat nicknames stay square and subtle. */
.v14635-chat-name-line>.v14635-guardian-badges.chat{gap:1px!important;max-height:14px!important}
.v14635-chat-name-line .v14635-guardian-badge{
  width:14px!important;height:14px!important;min-width:14px!important;max-width:14px!important;flex:0 0 14px!important;
  padding:0!important;border-radius:4px!important;overflow:hidden!important;box-shadow:none!important;
}
.v14635-chat-name-line .v14635-guardian-badge .v14635-guardian-badge-art{
  width:12px!important;height:12px!important;min-width:12px!important;max-width:12px!important;object-fit:contain!important;margin:0!important;
}
.v14635-chat-name-line .v14635-guardian-badge>b{right:-2px!important;bottom:-2px!important;min-width:9px!important;height:9px!important;font-size:5px!important;line-height:7px!important}

/* ===== css/v14689-battle-skill-card-fix.css ===== */
/* Aldos RPG v1.146.89 — selected battle skill card restored without prose description. */

/* v14688 removed the selected card entirely. Restore only the useful action card: head + History + target + Use. */
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot{
  display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  max-height:min(43dvh,390px)!important;margin-top:10px!important;padding:0 2px 8px!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-gutter:stable!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v113-skill-hint{
  margin:0!important;padding:10px 12px!important;font-size:.72rem!important;line-height:1.35!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:10px!important;overflow:visible!important;border-radius:16px!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head{
  display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;min-width:0!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head>span{
  width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head h4{
  margin:1px 0 3px!important;font-size:1.08rem!important;line-height:1.05!important;overflow-wrap:anywhere!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head small{font-size:.64rem!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head p{margin:0!important;gap:8px!important;font-size:.72rem!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-description{display:none!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:8px 0!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history>summary{min-height:38px!important;padding:9px 10px!important;font-size:.78rem!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history[open]{
  max-height:min(25dvh,220px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history p{font-size:.72rem!important;line-height:1.4!important;overflow-wrap:anywhere!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history-values>div{
  grid-template-columns:minmax(0,46%) minmax(0,54%)!important;gap:6px!important;min-width:0!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history-values dt,
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history-values dd{
  min-width:0!important;max-width:100%!important;font-size:.68rem!important;line-height:1.3!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-target{
  box-sizing:border-box!important;display:flex!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;padding:8px 2px!important;font-size:.7rem!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-target b{min-width:0!important;text-align:right!important;overflow-wrap:anywhere!important}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-cast{
  position:sticky!important;bottom:0!important;z-index:4!important;width:100%!important;min-height:44px!important;margin-top:6px!important;
  box-shadow:0 -10px 16px rgba(4,17,18,.82)!important;
}
@media (max-width:390px){
  html body.v127-ui.v111-battle-active #v1281-skill-detail-slot{max-height:min(41dvh,350px)!important}
  html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head{grid-template-columns:44px minmax(0,1fr)!important}
  html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail-head>span{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important}
}

/* ===== css/v14691-loot-guardian-status-fix.css ===== */
/* Aldos RPG v1.146.91 — merchant mage stats, exact loot preview, Guardian debuffs, wrapped status modal. */

/* Status help: never require horizontal panning. Text flows to the next line. */
html body .modal-back .modal.v98-status-modal{
  box-sizing:border-box!important;
  width:min(500px,calc(100vw - 20px))!important;
  max-width:calc(100vw - 20px)!important;
  min-width:0!important;
  padding:14px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:none!important;
  overscroll-behavior:contain!important;
}
html body .modal-back .modal.v98-status-modal::-webkit-scrollbar{display:none!important}
html body .v98-status-modal .status-help-card{
  box-sizing:border-box!important;
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:14px!important;
  gap:10px!important;
  overflow:visible!important;
}
html body .v98-status-modal .status-help-card,
html body .v98-status-modal .status-help-card *{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
html body .v98-status-modal .status-help-card h2,
html body .v98-status-modal .status-help-card>.v34-status-pill,
html body .v98-status-modal .status-help-card>p,
html body .v98-status-modal .v1465-status-details dt,
html body .v98-status-modal .v1465-status-details dd{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
html body .v98-status-modal .status-help-card h2{font-size:clamp(1.25rem,6vw,1.7rem)!important;line-height:1.12!important}
html body .v98-status-modal .status-help-card>.v34-status-pill{display:inline-flex!important;width:fit-content!important;padding:6px 9px!important}
html body .v98-status-modal .status-help-card>p{margin:0!important;padding:10px!important;font-size:.86rem!important;line-height:1.42!important}
html body .v98-status-modal .v1465-status-details{width:100%!important;min-width:0!important;margin:0!important}
html body .v98-status-modal .v1465-status-details>div{display:grid!important;grid-template-columns:minmax(76px,.42fr) minmax(0,1fr)!important;gap:6px!important;padding:6px 7px!important}
html body .v98-status-modal .v1465-status-details dt{font-size:.66rem!important}
html body .v98-status-modal .v1465-status-details dd{margin:0!important;font-size:.72rem!important;line-height:1.28!important}
html body .v98-status-modal .status-help-card>button.primary{width:100%!important;max-width:100%!important;min-height:42px!important;margin:0!important}
@media(max-width:380px){
  html body .v98-status-modal .v1465-status-details>div{grid-template-columns:1fr!important;gap:2px!important}
  html body .v98-status-modal .status-help-card{padding:11px!important}
}

/* ===== css/v14692-mobile-loot-skill-guardian-effect-fix.css ===== */
/* Aldos RPG v1.146.92 — compact loot preview, flowing skill history, Guardian timers/status dedup. */

/* The selected skill card is one vertical document: History expands, then target, then Use. */
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history[open]{
  max-height:none!important;
  overflow:visible!important;
}
html body.v127-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-cast{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  margin-top:8px!important;
  box-shadow:none!important;
}

/* Monster possible-loot attribute roll stays compact after explanatory copy was removed. */
html body .v127-item-attributes.preview>div>span>small{
  min-width:0!important;
}

/* ===== css/v14695-location-ui-assets.css ===== */
/* Aldos RPG v1.146.95 — generated location UI assets, mobile-first integration. */
:root{
  --v14695-root:assets/v14695/location-ui;
  --v14695-old-gold:#b78a3c;
  --v14695-deep:#030b0e;
  --v14695-teal:#113b3c;
}

/* Location shell and premium transparent frames. */
html body.v127-ui.v134-location-screen .v119-location-hero{
  isolation:isolate!important;
  border-color:transparent!important;
  background:linear-gradient(145deg,rgba(5,21,24,.97),rgba(2,9,12,.99))!important;
  box-shadow:0 12px 30px rgba(0,0,0,.42),inset 0 0 0 1px rgba(185,137,56,.16)!important;
}
html body.v127-ui.v134-location-screen .v119-location-hero::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:5!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/frames/location-main-frame.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-location-hero>*{position:relative!important;z-index:1!important}
html body.v127-ui.v134-location-screen .v119-location-copy h1{text-shadow:0 2px 12px rgba(0,0,0,.85)!important}

/* Route art is attached by target ID in v14695-location-ui-assets.js. */
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  border-color:transparent!important;color:#f5ead4!important;text-shadow:0 1px 3px #000!important;
  background-image:linear-gradient(90deg,rgba(2,9,11,.76),rgba(6,17,19,.44),rgba(2,9,11,.82)),var(--v14695-route-bg)!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
  box-shadow:0 5px 14px rgba(0,0,0,.3)!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn::after{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none!important;
  background-image:var(--v14695-route-frame)!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn.v14695-route-danger{
  color:#ffe2d2!important;box-shadow:0 5px 15px rgba(49,4,12,.32),inset 0 0 20px rgba(111,14,30,.15)!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn>span{position:relative!important;z-index:2!important}

/* Status, collapsible headings and small reusable ornaments. */
html body.v127-ui.v134-location-screen .v14415-location-status-banner{
  position:relative!important;isolation:isolate!important;border-color:transparent!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v14415-location-status-banner::after{
  content:""!important;position:absolute!important;inset:0!important;z-index:4!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/frames/location-status-frame.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel>summary{
  position:relative!important;border-bottom:0!important;padding-bottom:11px!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel>summary::after{
  content:""!important;position:absolute!important;left:4%!important;right:4%!important;bottom:1px!important;height:9px!important;
  background:url("../assets/v14695/location-ui/decorations/divider-large.webp") center/100% 100% no-repeat!important;opacity:.8!important;pointer-events:none!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel:not([open])>summary::after{opacity:.55!important}
html body.v127-ui.v134-location-screen .v119-location-panel>summary i{
  width:18px!important;height:18px!important;font-size:0!important;
  background:url("../assets/v14695/location-ui/decorations/chevron.webp") center/contain no-repeat!important;
}

/* Players: retain class art and interactions, add the generated mini frame. */
html body.v127-ui.v134-location-screen .v119-location-player{
  position:relative!important;isolation:isolate!important;padding-inline:8px!important;
  background:linear-gradient(110deg,rgba(8,28,33,.76),rgba(3,14,18,.42))!important;
  border-radius:12px!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-location-player::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/frames/player-mini-frame.webp") center/100% 100% no-repeat!important;opacity:.9!important;
}

/* Active battle empty state. */
html body.v127-ui.v134-location-screen .v119-battles-empty{
  position:relative!important;overflow:hidden!important;border-radius:11px!important;padding:10px!important;
  background-image:linear-gradient(90deg,rgba(1,7,10,.76),rgba(2,10,13,.4),rgba(1,7,10,.76)),url("../assets/v14695/location-ui/utility/battle-empty-background.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  color:#c6c1b7!important;text-shadow:0 2px 5px #000!important;
}
html body.v127-ui.v134-location-screen .v119-battles-empty::after{
  content:""!important;position:absolute!important;left:12%!important;right:12%!important;bottom:3px!important;height:8px!important;
  background:url("../assets/v14695/location-ui/decorations/divider-small.webp") center/contain no-repeat!important;opacity:.55!important;
}

/* Monster mini cards: per-biome background and rank frame are injected inline. */
html body.v127-ui.v134-location-screen .v119-monster-card{
  position:relative!important;isolation:isolate!important;border-color:transparent!important;
  background-image:linear-gradient(110deg,rgba(2,10,13,.62),rgba(2,9,12,.22),rgba(2,8,11,.72)),var(--v14695-monster-bg)!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  box-shadow:0 8px 18px rgba(0,0,0,.35),inset 0 0 28px rgba(0,0,0,.22)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:5!important;pointer-events:none!important;border-radius:inherit!important;
  background:var(--v14695-monster-frame) center/100% 100% no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card>*{position:relative!important;z-index:2!important}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite{
  border-color:transparent!important;
  background-image:linear-gradient(110deg,rgba(22,8,31,.55),rgba(18,24,15,.18),rgba(7,4,12,.7)),var(--v14695-monster-bg)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.4),0 0 15px rgba(166,229,72,.08),inset 0 0 22px rgba(146,73,201,.12)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite::after{
  content:none!important;display:none!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-boss{
  background-image:linear-gradient(110deg,rgba(28,3,9,.6),rgba(5,7,11,.25),rgba(20,2,7,.72)),var(--v14695-monster-bg)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.45),0 0 18px rgba(154,34,44,.12)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-art{
  border-color:rgba(191,143,61,.34)!important;background:rgba(2,8,11,.58)!important;backdrop-filter:blur(1.5px)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-main h3{text-shadow:0 2px 5px #000!important}

/* Loot strip in the location and the standalone pit screen. */
html body.v127-ui.v134-location-screen .v119-pit-card{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;border-color:transparent!important;
  background-image:linear-gradient(90deg,rgba(2,11,13,.78),rgba(9,29,24,.44),rgba(2,10,12,.86)),url("../assets/v14695/location-ui/utility/loot-pit-background.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-pit-card::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:4!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/frames/loot-strip-frame.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-pit-card>*{position:relative!important;z-index:2!important}
html body.v127-ui.v134-location-screen .v119-pit-art,
html body.v127-ui .v119-pit-scene{
  background-image:linear-gradient(90deg,rgba(0,0,0,.18),rgba(0,0,0,.38)),url("../assets/v14695/location-ui/utility/loot-pit-background.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}
html body.v127-ui .v119-pit-header{
  background-image:linear-gradient(110deg,rgba(3,15,17,.94),rgba(8,28,24,.88))!important;
  border-color:rgba(178,135,53,.42)!important;
}

/* Existing NPC scenes keep Marek and Gorgan art; only generated outer ornament is added. */
html body.v127-ui.v134-location-screen :is(.v1420-caravan-feature,.v14623-forge-arrival,.v14644-patron-location){
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen :is(.v1420-caravan-feature,.v14623-forge-arrival,.v14644-patron-location)::after{
  content:""!important;position:absolute!important;inset:0!important;z-index:5!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/frames/npc-place-frame.webp") center/100% 100% no-repeat!important;opacity:.82!important;
}

/* Event families: Hunt, Mystic and World. */
html body.v127-ui.v134-location-screen :is(.v1420-raid-card,.v86-weather,.v86-altar,.v129-event-countdown){
  position:relative!important;isolation:isolate!important;overflow:hidden!important;border-color:transparent!important;
}
html body.v127-ui.v134-location-screen .v1420-raid-card{
  background-image:linear-gradient(100deg,rgba(25,4,8,.82),rgba(7,12,13,.5)),url("../assets/v14695/location-ui/events/event-bg-hunt.webp")!important;background-size:cover!important;background-position:center!important;
}
html body.v127-ui.v134-location-screen .v86-altar{
  background-image:linear-gradient(100deg,rgba(4,14,17,.84),rgba(5,25,23,.48)),url("../assets/v14695/location-ui/events/event-bg-mystic.webp")!important;background-size:cover!important;background-position:center!important;
}
html body.v127-ui.v134-location-screen :is(.v86-weather,.v129-event-countdown){
  background-image:linear-gradient(100deg,rgba(7,8,18,.82),rgba(4,18,22,.5)),url("../assets/v14695/location-ui/events/event-bg-world.webp")!important;background-size:cover!important;background-position:center!important;
}
html body.v127-ui.v134-location-screen :is(.v1420-raid-card,.v86-weather,.v86-altar,.v129-event-countdown)::after{
  content:""!important;position:absolute!important;inset:0!important;z-index:6!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/frames/event-frame.webp") center/100% 100% no-repeat!important;opacity:.86!important;
}

/* Corner and diamond are deliberately subtle: decoration must not compete with text. */
html body.v127-ui.v134-location-screen .v119-monsters-panel,
html body.v127-ui.v134-location-screen .v119-players-panel{
  position:relative!important;isolation:isolate!important;
}
html body.v127-ui.v134-location-screen .v119-monsters-panel::before{
  content:""!important;position:absolute!important;left:0!important;top:0!important;width:56px!important;height:56px!important;z-index:0!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/decorations/corner-ornament.webp") left top/contain no-repeat!important;opacity:.28!important;
}
html body.v127-ui.v134-location-screen .v119-players-panel::after{
  content:""!important;position:absolute!important;right:10px!important;top:12px!important;width:15px!important;height:20px!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/decorations/diamond-ornament.webp") center/contain no-repeat!important;opacity:.52!important;
}

@media(max-width:430px){
  html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{background-position:center 52%!important}
  html body.v127-ui.v134-location-screen .v119-monster-card::before{inset:0!important}
  html body.v127-ui.v134-location-screen .v119-location-panel>summary::after{left:8%!important;right:8%!important;height:7px!important}
  html body.v127-ui.v134-location-screen .v119-monsters-panel::before{width:44px!important;height:44px!important}
}

@media(prefers-reduced-motion:reduce){
  html body.v127-ui.v134-location-screen :is(.location-btn,.v119-monster-card,.v119-pit-card){transition:none!important}
}

/* ===== css/v14696-location-ui-mobile-hotfix.css ===== */
/* Aldos RPG v1.146.96 — safe mobile fitting for generated location UI assets. */
html body.v127-ui.v134-location-screen :is(
  .v14415-location-status-banner,.v119-location-hero,.v119-location-copy,
  .v119-location-routes,.location-btn,.v119-location-panel,.v119-location-player,
  .v119-battles-empty,.v119-monster-card,.v119-monster-actions,.v119-pit-card
){box-sizing:border-box!important;min-width:0!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}

/* Use the ornate location frame as a nine-slice border and keep text inside its safe area. */
html body.v127-ui.v134-location-screen .v119-location-hero{
  grid-template-columns:minmax(96px,31%) minmax(0,1fr)!important;
  align-items:start!important;gap:9px!important;min-height:0!important;height:auto!important;
  padding:15px 14px 14px!important;border:0!important;border-radius:17px!important;overflow:hidden!important;
  background:linear-gradient(145deg,rgba(5,21,24,.98),rgba(2,9,12,.99))!important;
}
html body.v127-ui.v134-location-screen .v119-location-hero::before{
  inset:0!important;z-index:4!important;background:none!important;
  border:12px solid transparent!important;
  border-image-source:url("../assets/v14695/location-ui/frames/location-main-frame.webp")!important;
  border-image-slice:105!important;border-image-width:12px!important;border-image-repeat:stretch!important;
}
html body.v127-ui.v134-location-screen .v119-location-hero>*{z-index:2!important}
html body.v127-ui.v134-location-screen .v119-location-image{
  min-width:0!important;width:100%!important;height:118px!important;min-height:118px!important;
  margin:5px 0 0 4px!important;border-radius:10px!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-location-copy{
  min-height:128px!important;align-content:start!important;align-self:start!important;
  gap:5px 6px!important;padding:9px 5px 2px 0!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-location-copy h1{
  min-width:0!important;margin:0!important;font-size:clamp(18px,5.2vw,23px)!important;line-height:1.08!important;
  white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
}
html body.v127-ui.v134-location-screen .v119-location-copy>b{font-size:12px!important;line-height:1.15!important}
html body.v127-ui.v134-location-screen .v119-location-copy p{
  margin:1px 0 0!important;font-size:10px!important;line-height:1.34!important;-webkit-line-clamp:3!important;
}
html body.v127-ui.v134-location-screen .v119-map-button{
  align-self:start!important;min-width:58px!important;width:auto!important;height:34px!important;min-height:34px!important;
  padding:0 7px!important;gap:4px!important;border-radius:9px!important;font-size:9px!important;white-space:nowrap!important;
}
html body.v127-ui.v134-location-screen .v119-map-button :is(img,svg){width:15px!important;height:15px!important}

/* Route art needs enough height to be readable; odd final routes stay aligned without overflow. */
html body.v127-ui.v134-location-screen .v119-location-routes{
  grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;width:100%!important;margin:0!important;padding:1px 3px 4px!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{
  position:relative!important;isolation:isolate!important;width:100%!important;height:48px!important;min-height:48px!important;
  padding:7px 12px!important;border:0!important;border-radius:10px!important;overflow:hidden!important;
  background-image:linear-gradient(90deg,rgba(2,9,11,.48),rgba(5,16,18,.28),rgba(2,9,11,.58)),var(--v14695-route-bg)!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
  font-size:10px!important;line-height:1.15!important;text-align:center!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn::after{
  inset:0!important;z-index:1!important;background:none!important;
  border:8px solid transparent!important;border-image-source:var(--v14695-route-frame)!important;
  border-image-slice:110!important;border-image-width:8px!important;border-image-repeat:stretch!important;opacity:.88!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn>span{
  z-index:2!important;display:block!important;min-width:0!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:anywhere!important;text-shadow:0 2px 5px #000!important;
}

/* The generated player-mini bitmap contains interior artifacts: retain the clean game card instead. */
html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{
  min-height:70px!important;height:70px!important;padding:8px 9px!important;gap:8px!important;
  border:1px solid rgba(62,143,188,.34)!important;border-radius:12px!important;overflow:hidden!important;
  background:linear-gradient(145deg,rgba(18,53,72,.66),rgba(8,18,23,.96))!important;
  box-shadow:inset 0 0 0 1px rgba(204,163,75,.08),0 5px 14px rgba(0,0,0,.2)!important;
}
html body.v127-ui.v134-location-screen .v119-location-player::before{content:none!important;display:none!important}
html body.v127-ui.v134-location-screen .v119-location-player-copy>strong{
  max-width:100%!important;font-size:11px!important;line-height:1.1!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v127-ui.v134-location-screen .v119-location-player-copy>small{font-size:8px!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Section ornaments may never cross headings or collapse controls. */
html body.v127-ui.v134-location-screen .v119-location-panel{overflow:hidden!important}
html body.v127-ui.v134-location-screen .v119-location-panel>summary{
  min-width:0!important;padding:0 7px 13px 5px!important;gap:8px!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel>summary>div{min-width:0!important}
html body.v127-ui.v134-location-screen .v119-location-panel>summary h2{
  max-width:100%!important;font-size:clamp(21px,7vw,28px)!important;line-height:1.04!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel>summary>span{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:6px!important;font-size:10px!important;white-space:nowrap!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel>summary::after{left:8%!important;right:8%!important;bottom:1px!important;height:6px!important}
html body.v127-ui.v134-location-screen .v119-monsters-panel::before,
html body.v127-ui.v134-location-screen .v119-players-panel::after{content:none!important;display:none!important}

/* Monster art and rank frame: visible, but the nine-slice border never covers controls. */
html body.v127-ui.v134-location-screen .v119-monster-grid{align-items:stretch!important}
html body.v127-ui.v134-location-screen .v119-monster-card{
  min-width:0!important;height:150px!important;min-height:150px!important;padding:12px 11px 11px!important;gap:6px!important;
  grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 34px!important;
  border:0!important;border-radius:13px!important;overflow:hidden!important;
  background-image:linear-gradient(110deg,rgba(2,10,13,.26),rgba(2,9,12,.08),rgba(2,8,11,.38)),var(--v14695-monster-bg)!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card::before{
  inset:0!important;z-index:4!important;background:none!important;border-radius:inherit!important;
  border:10px solid transparent!important;border-image-source:var(--v14695-monster-frame)!important;
  border-image-slice:110!important;border-image-width:10px!important;border-image-repeat:stretch!important;opacity:.84!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card>*{z-index:2!important;min-width:0!important}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite{
  background-image:linear-gradient(110deg,rgba(24,7,32,.28),rgba(12,20,9,.08),rgba(7,3,12,.38)),var(--v14695-monster-bg)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite::after{content:none!important;display:none!important}
html body.v127-ui.v134-location-screen .v119-monster-art{width:42px!important;min-width:42px!important;height:58px!important;align-self:center!important}
html body.v127-ui.v134-location-screen .v119-monster-main{gap:3px!important;overflow:hidden!important}
html body.v127-ui.v134-location-screen .v119-monster-main h3{
  font-size:12px!important;line-height:1.04!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere!important;
}
html body.v127-ui.v134-location-screen .v119-monster-tags span{max-width:100%!important;font-size:7px!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui.v134-location-screen .v121-monster-level{font-size:9px!important;white-space:nowrap!important}
html body.v127-ui.v134-location-screen .v119-monster-actions{
  grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,.72fr) minmax(0,1.35fr)!important;
  gap:6px!important;width:100%!important;min-width:0!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button{
  width:100%!important;min-width:0!important;max-width:100%!important;height:34px!important;min-height:34px!important;
  padding:0 4px!important;border-radius:9px!important;font-size:9px!important;line-height:1!important;overflow:hidden!important;
}

/* Empty battle and loot frames get protected content insets. */
html body.v127-ui.v134-location-screen .v119-battles-empty{padding:13px 16px!important;overflow:hidden!important}
html body.v127-ui.v134-location-screen .v119-battles-empty p{min-width:0!important;font-size:10px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
html body.v127-ui.v134-location-screen .v119-pit-card{
  min-width:0!important;width:100%!important;min-height:66px!important;height:auto!important;
  grid-template-columns:64px minmax(0,1fr) minmax(70px,86px) 14px!important;
  gap:7px!important;padding:11px 14px!important;border:0!important;border-radius:13px!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-pit-card::before{
  inset:0!important;z-index:4!important;background:none!important;
  border:9px solid transparent!important;border-image-source:url("../assets/v14695/location-ui/frames/loot-strip-frame.webp")!important;
  border-image-slice:110!important;border-image-width:9px!important;border-image-repeat:stretch!important;
}
html body.v127-ui.v134-location-screen .v119-pit-card>*{z-index:2!important;min-width:0!important}
html body.v127-ui.v134-location-screen .v119-pit-card>span:nth-child(2){overflow:hidden!important}
html body.v127-ui.v134-location-screen .v119-pit-card b,
html body.v127-ui.v134-location-screen .v119-pit-card small{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v127-ui.v134-location-screen .v119-pit-card em{min-width:0!important;width:100%!important;padding:0 7px!important;font-size:10px!important;white-space:nowrap!important}

/* The same nine-slice technique prevents NPC and event frames from stretching over content. */
html body.v127-ui.v134-location-screen :is(.v1420-caravan-feature,.v14623-forge-arrival,.v14644-patron-location)::after,
html body.v127-ui.v134-location-screen :is(.v1420-raid-card,.v86-weather,.v86-altar,.v129-event-countdown)::after{
  background:none!important;border:10px solid transparent!important;border-image-width:10px!important;border-image-repeat:stretch!important;
}
html body.v127-ui.v134-location-screen :is(.v1420-caravan-feature,.v14623-forge-arrival,.v14644-patron-location)::after{
  border-image-source:url("../assets/v14695/location-ui/frames/npc-place-frame.webp")!important;border-image-slice:105!important;
}
html body.v127-ui.v134-location-screen :is(.v1420-raid-card,.v86-weather,.v86-altar,.v129-event-countdown)::after{
  border-image-source:url("../assets/v14695/location-ui/frames/event-frame.webp")!important;border-image-slice:110!important;
}

@media(max-width:430px){
  html body.v127-ui.v134-location-screen .v119-players-panel .v120-section-body{grid-template-columns:1fr!important}
  html body.v127-ui.v134-location-screen .v119-location-player{grid-template-columns:42px minmax(0,1fr) 36px!important;width:100%!important}
  html body.v127-ui.v134-location-screen .v119-location-hero{grid-template-columns:94px minmax(0,1fr)!important;padding:14px 13px 13px!important}
  html body.v127-ui.v134-location-screen .v119-location-image{height:112px!important;min-height:112px!important}
  html body.v127-ui.v134-location-screen .v119-location-copy{min-height:122px!important;padding-top:8px!important}
  html body.v127-ui.v134-location-screen .v119-location-copy h1{font-size:18px!important}
  html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{height:46px!important;min-height:46px!important}
}

@media(max-width:340px){
  html body.v127-ui.v134-location-screen .v119-monster-grid{grid-template-columns:1fr!important}
  html body.v127-ui.v134-location-screen .v119-monster-card{grid-template-columns:54px minmax(0,1fr)!important;height:142px!important;min-height:142px!important}
  html body.v127-ui.v134-location-screen .v119-monster-art{width:52px!important;min-width:52px!important;height:64px!important}
}

/* ===== css/v14697-location-ui-asset-layers.css ===== */
/* Aldos RPG v1.146.97 — real bitmap layers and 100/125/150% mobile fitting. */

html body.v127-ui.v134-location-screen :is(.v14697-route-bg,.v14697-route-frame,.v14697-monster-bg,.v14697-monster-frame,.v14697-player-mini-frame,.v14697-map-frame){
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;pointer-events:none!important;user-select:none!important;
}

/* Actual IMG layers are used because older Android WebViews may drop CSS custom-property images. */
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{isolation:isolate!important;background:#071316!important}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-bg{
  z-index:0!important;object-fit:cover!important;filter:brightness(.78) saturate(1.08)!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-frame{
  z-index:2!important;object-fit:fill!important;opacity:.98!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn::after{content:none!important;display:none!important}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn>span,
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn>.v86-route-weather{position:relative!important;z-index:3!important}

/* Map is a complete asset-backed control, not a text button with a missing CSS icon. */
html body.v127-ui.v134-location-screen .v14697-map-button{
  position:relative!important;isolation:isolate!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:70px!important;padding:0 10px!important;border:0!important;background:rgba(4,16,18,.88)!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v14697-map-button .v14697-map-frame{z-index:0!important;object-fit:fill!important;opacity:.96!important}
html body.v127-ui.v134-location-screen .v14697-map-button .v14697-map-art{
  position:relative!important;z-index:2!important;width:18px!important;height:18px!important;min-width:18px!important;object-fit:contain!important;margin:0 4px 0 0!important;
}
html body.v127-ui.v134-location-screen .v14697-map-button>span{position:relative!important;z-index:2!important}

/* Half-width player mini-cards with a clean transparent frame. */
html body.v127-ui.v134-location-screen .v119-players-panel .v120-section-body{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;
}
html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{
  position:relative!important;isolation:isolate!important;width:100%!important;height:70px!important;min-height:70px!important;
  grid-template-columns:40px minmax(0,1fr) 27px!important;gap:4px!important;padding:8px 8px 7px 9px!important;
  border:0!important;border-radius:12px!important;background:linear-gradient(145deg,rgba(11,38,50,.86),rgba(5,15,19,.97))!important;
}
html body.v127-ui.v134-location-screen .v119-location-player .v14697-player-mini-frame{z-index:4!important;object-fit:fill!important;opacity:.98!important}
html body.v127-ui.v134-location-screen .v119-location-player>:not(.v14697-player-mini-frame){position:relative!important;z-index:2!important;min-width:0!important}
html body.v127-ui.v134-location-screen .v119-location-player-art{
  width:40px!important;height:40px!important;min-width:40px!important;border:0!important;border-radius:50%!important;background:rgba(2,10,13,.7)!important;overflow:visible!important;
}
html body.v127-ui.v134-location-screen .v119-location-player-art :where(img,.class-inline-image){border-radius:50%!important;object-fit:contain!important;object-position:center bottom!important}
html body.v127-ui.v134-location-screen .v119-location-player-art>b{right:-2px!important;bottom:-3px!important;min-width:19px!important;height:19px!important;font-size:8px!important}
html body.v127-ui.v134-location-screen .v119-location-player-copy{gap:2px!important;overflow:hidden!important}
html body.v127-ui.v134-location-screen .v119-location-player-copy>strong{font-size:10px!important;line-height:1.1!important}
html body.v127-ui.v134-location-screen .v119-location-player-copy>small{font-size:7.5px!important;line-height:1.1!important;white-space:nowrap!important}
html body.v127-ui.v134-location-screen .v119-location-player .v122-player-action{
  display:grid!important;place-items:center!important;width:27px!important;height:31px!important;min-width:27px!important;padding:4px!important;border-radius:9px!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-location-player .v122-player-action :is(img,svg){width:16px!important;height:16px!important}

/* Monster background and rank ornament are real images; the creature remains its own visible layer. */
html body.v127-ui.v134-location-screen .v119-monster-card{isolation:isolate!important;background:#071015!important}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-bg{
  z-index:0!important;object-fit:cover!important;opacity:.82!important;filter:brightness(1.22) saturate(1.08)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-frame{
  z-index:4!important;object-fit:fill!important;opacity:.96!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card>:not(.v14697-monster-bg):not(.v14697-monster-frame){position:relative!important;z-index:2!important}
html body.v127-ui.v134-location-screen .v119-monster-card::before{content:none!important;display:none!important}
html body.v127-ui.v134-location-screen .v119-monster-art{z-index:3!important;background:rgba(2,7,10,.62)!important}
html body.v127-ui.v134-location-screen .v119-monster-art .monster-asset-image{filter:brightness(1.15) saturate(1.08)!important}

/* Font-size presets: grow safe areas instead of letting Android scale text beyond frames. */
html[data-ui-font-size="normal"] body.v127-ui.v134-location-screen .v119-location-routes .location-btn{height:46px!important;min-height:46px!important;font-size:10px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-location-routes .location-btn{height:50px!important;min-height:50px!important;font-size:10.5px!important;padding-inline:11px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-routes .location-btn{height:54px!important;min-height:54px!important;font-size:11px!important;padding-inline:10px!important}

html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-location-copy{min-height:134px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-copy{min-height:142px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-location-copy h1{font-size:19px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-copy h1{font-size:20px!important;line-height:1.04!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-location-copy p{font-size:10.5px!important;line-height:1.3!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-copy p{font-size:11px!important;line-height:1.27!important;-webkit-line-clamp:3!important}

html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{height:74px!important;min-height:74px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{height:78px!important;min-height:78px!important;padding-block:10px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-location-player-copy>strong{font-size:10.5px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-player-copy>strong{font-size:11px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-player-copy>small{font-size:8px!important}

html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-monster-card{height:158px!important;min-height:158px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-card{height:166px!important;min-height:166px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-monster-main h3{font-size:12.5px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-main h3{font-size:13px!important;line-height:1.03!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-actions button{height:36px!important;min-height:36px!important;font-size:9.5px!important}

/* Gorgan: fixed-height legacy banner becomes a scale-aware contained composition. */
html body.v127-ui.v134-location-screen .v14623-forge-arrival{height:196px!important;min-height:196px!important;max-height:none!important}
html body.v127-ui.v134-location-screen .v14623-forge-intro{
  top:13px!important;bottom:13px!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v14623-forge-intro p{flex:0 1 auto!important;max-width:100%!important;margin:6px 0!important}
html body.v127-ui.v134-location-screen .v14623-forge-intro button{flex:0 0 auto!important;margin-top:auto!important;max-width:100%!important}
html body.v127-ui.v134-location-screen .v14623-forge-npc{height:100%!important;bottom:-5px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v14623-forge-arrival{height:216px!important;min-height:216px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v14623-forge-arrival{height:238px!important;min-height:238px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v14623-forge-intro h2{font-size:27px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v14623-forge-intro h2{font-size:30px!important;line-height:1!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v14623-forge-intro p{font-size:10.5px!important;line-height:1.3!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v14623-forge-intro p{font-size:11px!important;line-height:1.28!important;-webkit-line-clamp:4!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v14623-forge-intro button{min-height:38px!important;font-size:10.5px!important}

@media(max-width:430px){
  html body.v127-ui.v134-location-screen .v119-players-panel .v120-section-body{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.v127-ui.v134-location-screen .v119-location-player{grid-template-columns:40px minmax(0,1fr) 27px!important;width:100%!important}
}
@media(max-width:340px){
  html body.v127-ui.v134-location-screen .v119-players-panel .v120-section-body{gap:4px!important}
  html body.v127-ui.v134-location-screen .v119-location-player{grid-template-columns:38px minmax(0,1fr) 25px!important;gap:2px!important;padding-inline:7px!important}
  html body.v127-ui.v134-location-screen .v119-location-player-art{width:38px!important;height:38px!important;min-width:38px!important}
}

/* ===== css/v14698-location-asset-containment.css ===== */
/* Aldos RPG v1.146.98 — contained location assets, unified route/monster frames. */

html body.v127-ui.v134-location-screen :is(.v119-location-routes .location-btn,.v119-location-player,.v119-monster-card){
  box-sizing:border-box!important;isolation:isolate!important;overflow:hidden!important;
}

/* Every transition uses the same clean golden frame. Art is clipped inside its inner edge. */
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn{
  position:relative!important;border:0!important;border-radius:10px!important;background:#061113!important;
  padding-inline:12px!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-bg{
  inset:4px!important;width:calc(100% - 8px)!important;height:calc(100% - 8px)!important;
  border-radius:7px!important;object-fit:cover!important;object-position:center!important;
  filter:brightness(.68) saturate(.82) contrast(1.04)!important;opacity:1!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-frame{
  inset:1px!important;width:calc(100% - 2px)!important;height:calc(100% - 2px)!important;
  object-fit:fill!important;object-position:center!important;opacity:1!important;
}
html body.v127-ui.v134-location-screen .v119-location-routes .location-btn>span{
  max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  text-shadow:0 1px 3px #000,0 0 7px rgba(0,0,0,.94)!important;
}

/* Half-width player card: one coordinate system for card, art and frame. */
html body.v127-ui.v134-location-screen .v119-players-panel .v120-section-body{
  align-items:stretch!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{
  width:100%!important;max-width:100%!important;min-width:0!important;
  grid-template-columns:39px minmax(0,1fr) 26px!important;gap:5px!important;
  padding:9px 10px!important;border:0!important;border-radius:11px!important;
  background:linear-gradient(145deg,rgba(8,34,44,.94),rgba(3,13,17,.98))!important;
}
html body.v127-ui.v134-location-screen .v119-location-player .v14697-player-mini-frame{
  inset:1px!important;width:calc(100% - 2px)!important;height:calc(100% - 2px)!important;
  object-fit:fill!important;object-position:center!important;opacity:1!important;transform:none!important;
}
html body.v127-ui.v134-location-screen .v119-location-player-art{
  align-self:center!important;width:39px!important;height:43px!important;min-width:39px!important;max-width:39px!important;
  border:1px solid rgba(191,150,64,.58)!important;border-radius:8px!important;background:rgba(2,10,13,.82)!important;
  overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-location-player-art :where(img,.class-inline-image,.class-asset-image){
  position:absolute!important;inset:2px!important;width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;
  max-width:calc(100% - 4px)!important;max-height:calc(100% - 4px)!important;
  border-radius:6px!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important;
}
html body.v127-ui.v134-location-screen .v119-location-player-art>b{
  right:1px!important;bottom:1px!important;min-width:17px!important;width:auto!important;height:17px!important;
  padding:0 3px!important;border-width:1px!important;font-size:7.5px!important;line-height:1!important;z-index:5!important;
}
html body.v127-ui.v134-location-screen .v119-location-player-copy{
  align-self:center!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-location-player-copy>strong,
html body.v127-ui.v134-location-screen .v119-location-player-copy>small{
  display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
html body.v127-ui.v134-location-screen .v119-location-player .v122-player-action{
  align-self:center!important;justify-self:end!important;width:26px!important;max-width:26px!important;min-width:26px!important;
  height:30px!important;margin:0!important;transform:none!important;
}

/* One dark forest background and one contained frame for every monster rank and biome. */
html body.v127-ui.v134-location-screen .v119-monster-card{
  position:relative!important;border:0!important;border-radius:11px!important;background:#040b0d!important;
  padding:13px 12px 12px!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-bg{
  inset:6px!important;width:calc(100% - 12px)!important;height:calc(100% - 12px)!important;
  border-radius:7px!important;object-fit:cover!important;object-position:center!important;
  opacity:1!important;filter:brightness(.66) saturate(.72) contrast(1.08)!important;transform:none!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-frame{
  inset:1px!important;width:calc(100% - 2px)!important;height:calc(100% - 2px)!important;
  object-fit:fill!important;object-position:center!important;opacity:1!important;transform:none!important;
}
html body.v127-ui.v134-location-screen .v119-monster-art{
  align-self:start!important;margin:0!important;border:1px solid rgba(180,145,66,.5)!important;border-radius:8px!important;
  background:linear-gradient(160deg,rgba(7,24,27,.86),rgba(2,8,10,.94))!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-monster-art .monster-asset-image{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center bottom!important;filter:brightness(.96) saturate(.9)!important;transform:none!important;
}
html body.v127-ui.v134-location-screen .v119-monster-main,
html body.v127-ui.v134-location-screen .v119-monster-actions{min-width:0!important;max-width:100%!important}
html body.v127-ui.v134-location-screen .v119-monster-main h3{overflow-wrap:anywhere!important}
html body.v127-ui.v134-location-screen .v119-monster-actions{padding-inline:1px!important;gap:5px!important}
html body.v127-ui.v134-location-screen .v119-monster-actions button{min-width:0!important;padding-inline:5px!important}

/* Keep all three text scales inside the same decorative safe area. */
html[data-ui-font-size="normal"] body.v127-ui.v134-location-screen .v119-location-player{height:70px!important;min-height:70px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-location-player{height:74px!important;min-height:74px!important;padding-block:10px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-player{height:78px!important;min-height:78px!important;padding-block:11px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-location-player-copy>strong{font-size:10.5px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-player-copy>strong{font-size:11px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-location-player-copy>small{font-size:8px!important}

@media(max-width:360px){
  html body.v127-ui.v134-location-screen .v119-players-panel .v120-section-body{gap:4px!important}
  html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player{
    grid-template-columns:36px minmax(0,1fr) 23px!important;gap:3px!important;padding-inline:8px!important;
  }
  html body.v127-ui.v134-location-screen .v119-location-player-art{width:36px!important;min-width:36px!important;max-width:36px!important;height:41px!important}
  html body.v127-ui.v134-location-screen .v119-location-player .v122-player-action{width:23px!important;min-width:23px!important;max-width:23px!important}
}

/* ===== css/v14699-location-panel-monster-polish.css ===== */
/* Aldos RPG v1.146.99 — readable location panels, corrected monster cards and real utility art. */

/* Dedicated section art remains visible behind headings and cards. */
html body.v127-ui.v134-location-screen .v119-location-panel.v119-players-panel{
  background:
    linear-gradient(180deg,rgba(4,13,18,.56),rgba(4,12,17,.84)),
    url("../assets/v14699/location-ui/players-section-background.webp") center/cover no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel.v119-monsters-panel{
  background:
    linear-gradient(180deg,rgba(5,10,18,.48),rgba(4,9,14,.72)),
    url("../assets/v14699/location-ui/monsters-section-background.webp") center/cover no-repeat!important;
}
html body.v127-ui.v134-location-screen :is(.v119-players-panel,.v119-monsters-panel)>summary{
  position:relative!important;z-index:2!important;text-shadow:0 2px 5px rgba(0,0,0,.92)!important;
}
html body.v127-ui.v134-location-screen :is(.v119-players-panel .v120-section-body,.v119-monsters-panel .v119-monster-grid){
  position:relative!important;z-index:2!important;
}

/* The map control uses a single crisp parchment silhouette instead of the tiny node network. */
html body.v127-ui.v134-location-screen .v14697-map-button{
  min-width:84px!important;gap:3px!important;padding-inline:9px 11px!important;
}
html body.v127-ui.v134-location-screen .v14697-map-button .v14697-map-art{
  width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;
  margin:0 2px 0 0!important;object-fit:contain!important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.72))!important;
}

/* Monster card rebuilt around a larger creature viewport and a shorter content rhythm. */
html body.v127-ui.v134-location-screen .v119-monster-card{
  height:150px!important;min-height:150px!important;max-height:150px!important;
  grid-template-columns:80px minmax(0,1fr)!important;grid-template-rows:88px 32px!important;
  gap:5px!important;padding:11px!important;border-radius:11px!important;background:#071015!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-bg{
  inset:5px!important;width:calc(100% - 10px)!important;height:calc(100% - 10px)!important;
  border-radius:7px!important;object-position:center 58%!important;
  opacity:1!important;filter:brightness(.92) saturate(.92) contrast(1.06)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-frame{
  inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;opacity:1!important;
}
html body.v127-ui.v134-location-screen .v119-monster-art{
  align-self:start!important;width:78px!important;height:86px!important;min-width:78px!important;max-width:78px!important;
  margin:0!important;border:1px solid rgba(203,163,73,.66)!important;border-radius:9px!important;
  background:linear-gradient(160deg,rgba(5,22,25,.72),rgba(1,7,9,.84))!important;overflow:hidden!important;
  box-shadow:inset 0 0 14px rgba(0,0,0,.46),0 3px 9px rgba(0,0,0,.42)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-art .monster-asset-image{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;transform:scale(1.38)!important;transform-origin:center!important;
  filter:brightness(1.14) saturate(1.02) drop-shadow(0 3px 5px rgba(0,0,0,.75))!important;
}
html body.v127-ui.v134-location-screen .v119-monster-main{
  align-self:start!important;display:grid!important;gap:4px!important;min-width:0!important;padding:7px 1px 0 0!important;
}
html body.v127-ui.v134-location-screen .v119-monster-main h3{
  margin:0!important;font-size:13px!important;line-height:1.02!important;-webkit-line-clamp:2!important;overflow-wrap:normal!important;
}
html body.v127-ui.v134-location-screen .v119-monster-tags span{height:17px!important;font-size:7px!important;background:rgba(1,6,8,.66)!important}
html body.v127-ui.v134-location-screen .v119-monster-main>small{font-size:9.5px!important;line-height:1.05!important;text-shadow:0 1px 3px #000!important}
html body.v127-ui.v134-location-screen .v119-monster-actions{
  align-self:start!important;grid-column:1/-1!important;height:32px!important;min-height:32px!important;
  display:grid!important;grid-template-columns:minmax(0,.72fr) minmax(0,1.32fr)!important;gap:6px!important;
  margin:-1px 2px 0!important;padding:0!important;transform:none!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button{
  height:32px!important;min-height:32px!important;max-height:32px!important;padding:0 5px!important;
  border-radius:9px!important;font-size:9.5px!important;line-height:1!important;box-shadow:0 3px 8px rgba(0,0,0,.48)!important;
}

html[data-ui-font-size="normal"] body.v127-ui.v134-location-screen .v119-monster-card{
  height:150px!important;min-height:150px!important;max-height:150px!important;grid-template-rows:88px 32px!important;
}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-monster-card{
  height:154px!important;min-height:154px!important;max-height:154px!important;grid-template-rows:92px 32px!important;
}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-card{
  height:158px!important;min-height:158px!important;max-height:158px!important;grid-template-rows:96px 32px!important;
}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-monster-main h3{font-size:13px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-main h3{font-size:13.5px!important;line-height:1.03!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-actions button{height:32px!important;min-height:32px!important;font-size:9.5px!important}

/* The location strip and full Pit screen now show an actual excavated loot pit. */
html body.v127-ui.v134-location-screen .v119-pit-card{
  min-height:72px!important;
  background:
    linear-gradient(90deg,rgba(2,9,11,.20),rgba(3,12,14,.78) 55%,rgba(3,12,14,.94)),
    url("../assets/v14699/location-ui/loot-pit-background-clear.webp") left center/cover no-repeat!important;
}
html body.v127-ui.v134-location-screen .v119-pit-card .v119-pit-art{
  height:50px!important;border:1px solid rgba(196,150,62,.38)!important;border-radius:9px!important;
  background:url("../assets/v14699/location-ui/loot-pit-background-clear.webp") 11% center/cover no-repeat!important;
  box-shadow:inset 0 0 12px rgba(0,0,0,.34)!important;
}
html body.v127-ui.v134-location-screen .v119-pit-card b,
html body.v127-ui.v134-location-screen .v119-pit-card small{text-shadow:0 2px 4px #000!important}
html body.v127-ui .v119-pit-screen .v119-pit-scene{
  background:
    linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.28)),
    url("../assets/v14699/location-ui/loot-pit-background-clear.webp") left center/cover no-repeat!important;
}

@media(max-width:360px){
  html body.v127-ui.v134-location-screen .v119-monster-card{
    grid-template-columns:70px minmax(0,1fr)!important;padding:10px!important;
  }
  html body.v127-ui.v134-location-screen .v119-monster-art{width:68px!important;min-width:68px!important;max-width:68px!important;height:84px!important}
  html body.v127-ui.v134-location-screen .v119-monster-main h3{font-size:12px!important}
  html body.v127-ui.v134-location-screen .v119-pit-card{grid-template-columns:58px minmax(0,1fr) minmax(68px,78px) 12px!important;padding-inline:11px!important}
}

/* ===== css/v146100-location-travel-pit-battle-redesign.css ===== */
/* Aldos RPG v1.146.100 — full location, monster, travel, battle and Pit visual pass. */

/* Remove the stray ornamental underline below every collapsible panel heading. */
html body.v127-ui.v134-location-screen .v119-location-panel>summary{
  border-bottom:0!important;
}
html body.v127-ui.v134-location-screen .v119-location-panel>summary::after{
  content:none!important;display:none!important;background:none!important;
}

/* Battles receive their own readable scene and a clean transparent crossed-swords emblem. */
html body.v127-ui.v134-location-screen .v119-location-panel.v119-battles-panel{
  background:
    linear-gradient(180deg,rgba(16,7,13,.72),rgba(3,11,15,.86)),
    url("../assets/v146100/location-ui/battles-section-background.webp") center/cover no-repeat!important;
  border-color:rgba(154,79,101,.28)!important;
}
html body.v127-ui.v134-location-screen .v119-battles-empty{
  background:linear-gradient(100deg,rgba(3,13,17,.78),rgba(10,20,23,.56),rgba(3,10,14,.82))!important;
  border:1px solid rgba(196,151,65,.30)!important;
  box-shadow:inset 0 0 24px rgba(0,0,0,.36)!important;
}
html body.v127-ui.v134-location-screen .v119-battles-empty>span{
  width:48px!important;height:48px!important;min-width:48px!important;display:grid!important;place-items:center!important;
  padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
}
html body.v127-ui.v134-location-screen .v119-battles-empty .v146100-battle-empty-icon{
  width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;
  object-fit:contain!important;opacity:.92!important;filter:drop-shadow(0 3px 6px rgba(0,0,0,.72))!important;
}

/* Dedicated map control: one complete plate, no old route ornament or empty square. */
html body.v127-ui.v134-location-screen .v146100-map-button{
  position:relative!important;isolation:isolate!important;overflow:visible!important;
  width:96px!important;min-width:96px!important;height:40px!important;min-height:40px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  padding:0 11px 0 8px!important;border:0!important;border-radius:12px!important;background:none!important;
  color:#e2c078!important;box-shadow:none!important;
}
html body.v127-ui.v134-location-screen .v146100-map-button .v146100-map-button-bg{
  position:absolute!important;z-index:-1!important;inset:-3px -5px!important;width:calc(100% + 10px)!important;height:calc(100% + 6px)!important;
  object-fit:fill!important;pointer-events:none!important;filter:drop-shadow(0 4px 6px rgba(0,0,0,.65))!important;
}
html body.v127-ui.v134-location-screen .v146100-map-button .v14697-map-art{
  width:25px!important;height:25px!important;min-width:25px!important;margin:0!important;object-fit:contain!important;
}
html body.v127-ui.v134-location-screen .v146100-map-button span{
  position:relative!important;z-index:2!important;font-size:10px!important;line-height:1!important;white-space:nowrap!important;
}

/* Monster cards: calmer creature scale, edge-to-edge frame and distinct elite atmosphere. */
html body.v127-ui.v134-location-screen .v119-monster-card{
  height:154px!important;min-height:154px!important;max-height:154px!important;
  grid-template-columns:76px minmax(0,1fr)!important;grid-template-rows:92px 34px!important;
  gap:5px!important;padding:11px!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-bg{
  inset:3px!important;width:calc(100% - 6px)!important;height:calc(100% - 6px)!important;
  border-radius:8px!important;object-position:center 56%!important;filter:brightness(.88) saturate(.92) contrast(1.08)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite .v14697-monster-bg{
  filter:brightness(.92) saturate(1.08) contrast(1.12)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite{
  box-shadow:0 0 0 1px rgba(142,85,194,.22),0 7px 16px rgba(0,0,0,.46),0 0 18px rgba(117,52,171,.15)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite::after{
  content:""!important;display:block!important;position:absolute!important;z-index:1!important;inset:4px!important;pointer-events:none!important;
  border-radius:8px!important;box-shadow:inset 0 0 18px rgba(147,71,196,.18),inset 0 -18px 30px rgba(38,7,48,.20)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card .v14697-monster-frame{
  inset:-3px!important;width:calc(100% + 6px)!important;height:calc(100% + 6px)!important;
  max-width:none!important;max-height:none!important;object-fit:fill!important;opacity:1!important;
}
html body.v127-ui.v134-location-screen .v119-monster-art{
  width:74px!important;height:84px!important;min-width:74px!important;max-width:74px!important;
  align-self:start!important;margin:2px 0 0!important;
}
html body.v127-ui.v134-location-screen .v119-monster-art .monster-asset-image{
  inset:4px!important;width:calc(100% - 8px)!important;height:calc(100% - 8px)!important;
  max-width:calc(100% - 8px)!important;max-height:calc(100% - 8px)!important;
  object-fit:contain!important;transform:scale(1.12)!important;transform-origin:center!important;
  filter:brightness(1.08) saturate(1.02) drop-shadow(0 3px 5px rgba(0,0,0,.74))!important;
}
html body.v127-ui.v134-location-screen .v119-monster-main{
  padding-top:7px!important;gap:4px!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions{
  height:34px!important;min-height:34px!important;grid-template-columns:minmax(0,.72fr) minmax(0,1.34fr)!important;
  gap:5px!important;margin:0 2px!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button{
  position:relative!important;height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:0 7px!important;border:0!important;border-radius:10px!important;background-color:transparent!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  color:#fff!important;text-shadow:0 2px 3px rgba(0,0,0,.82)!important;box-shadow:none!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-loot-info]{
  background-image:url("../assets/v146100/location-ui/button-info-plate.webp")!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button[data-battle]{
  background-image:url("../assets/v146100/location-ui/button-attack-plate.webp")!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button:disabled{
  filter:grayscale(.7) brightness(.58)!important;opacity:.72!important;
}

html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v119-monster-card{
  height:162px!important;min-height:162px!important;max-height:162px!important;grid-template-rows:100px 34px!important;
}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-card{
  height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:108px 34px!important;
}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v119-monster-main h3{
  font-size:13px!important;line-height:1.05!important;
}

/* Full Pit screen: dedicated icon, scene, layered panels and a non-empty full-height background. */
html body.v127-ui.v146100-pit-screen-active .v146100-pit-main{
  position:relative!important;isolation:isolate!important;min-height:calc(100dvh - 116px)!important;
  padding-bottom:94px!important;background:
    linear-gradient(180deg,rgba(1,9,12,.76),rgba(0,7,10,.90)),
    url("../assets/v146100/location-ui/pit-screen-background.webp") 35% center/cover fixed no-repeat!important;
}
html body.v127-ui.v146100-pit-screen-active .v146100-pit-main::before{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(circle at 20% 28%,rgba(22,118,117,.12),transparent 35%),radial-gradient(circle at 78% 70%,rgba(184,133,47,.08),transparent 32%);
}
html body.v127-ui .v146100-pit-heading-icon{
  width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border:0!important;border-radius:50%!important;
  background:none!important;object-fit:contain!important;filter:drop-shadow(0 3px 6px rgba(0,0,0,.72))!important;
}
html body.v127-ui .v119-pit-screen{
  gap:11px!important;padding:11px!important;border:1px solid rgba(195,151,66,.26)!important;border-radius:20px!important;
  background:linear-gradient(160deg,rgba(3,17,20,.88),rgba(2,9,12,.74))!important;
  box-shadow:inset 0 0 32px rgba(0,0,0,.35),0 12px 30px rgba(0,0,0,.35)!important;
}
html body.v127-ui .v119-pit-header{
  min-height:78px!important;padding:12px 14px!important;align-items:center!important;
  border:1px solid rgba(194,148,63,.42)!important;border-radius:16px!important;
  background:linear-gradient(135deg,rgba(4,26,29,.92),rgba(7,17,19,.88))!important;
  box-shadow:inset 0 0 18px rgba(41,157,151,.08)!important;
}
html body.v127-ui .v119-pit-header>b{
  border-color:rgba(207,160,70,.54)!important;background:rgba(3,14,16,.72)!important;box-shadow:inset 0 0 12px rgba(204,154,53,.07)!important;
}
html body.v127-ui .v119-pit-screen .v119-pit-scene{
  position:relative!important;height:188px!important;min-height:188px!important;border:1px solid rgba(207,160,70,.52)!important;border-radius:17px!important;
  background:
    linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.24)),
    url("../assets/v146100/location-ui/pit-screen-background.webp") 27% center/cover no-repeat!important;
  box-shadow:inset 0 0 26px rgba(0,0,0,.48),0 4px 12px rgba(0,0,0,.30)!important;overflow:hidden!important;
}
html body.v127-ui .v119-pit-screen .v119-pit-scene::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:radial-gradient(circle at 23% 67%,rgba(59,211,194,.16),transparent 22%),linear-gradient(90deg,transparent,rgba(212,166,74,.05),transparent);
}
html body.v127-ui .v119-pit-metrics>article{
  min-height:72px!important;border:1px solid rgba(201,155,68,.46)!important;border-radius:14px!important;
  background:linear-gradient(145deg,rgba(5,28,31,.94),rgba(4,16,18,.88))!important;
  box-shadow:inset 0 0 18px rgba(34,137,132,.08)!important;
}
html body.v127-ui .v119-pit-group{
  padding:13px!important;border-color:rgba(201,155,68,.48)!important;
  background:linear-gradient(155deg,rgba(4,24,27,.95),rgba(3,13,16,.92))!important;
  box-shadow:inset 0 0 26px rgba(18,102,101,.08)!important;
}
html body.v127-ui .v119-pit-item{
  border-color:rgba(203,157,70,.43)!important;background:linear-gradient(120deg,rgba(7,25,27,.94),rgba(4,15,17,.88))!important;
}

/* Full-screen travel experience: scene fills the viewport, framed destination and richer progress effects. */
html body.v127-ui .v146100-travel-screen{
  position:relative!important;isolation:isolate!important;display:grid!important;place-items:start center!important;align-content:start!important;
  width:100%!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;
  gap:15px!important;padding:max(18px,env(safe-area-inset-top)) 16px max(36px,env(safe-area-inset-bottom))!important;
  background:
    linear-gradient(180deg,rgba(0,8,14,.20),rgba(0,8,12,.48) 48%,rgba(0,6,9,.82)),
    url("../assets/v146100/location-ui/travel-screen-background.webp") center/cover fixed no-repeat!important;
}
html body.v127-ui .v146100-travel-atmosphere{
  position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(circle at 50% 34%,rgba(62,212,197,.13),transparent 23%),radial-gradient(circle at 50% 78%,rgba(69,175,212,.09),transparent 28%);
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head{
  width:min(680px,100%)!important;min-height:150px!important;grid-template-columns:154px minmax(0,1fr)!important;gap:14px!important;
  padding:13px!important;border:1px solid rgba(206,165,80,.52)!important;border-radius:22px!important;
  background:linear-gradient(135deg,rgba(3,20,25,.88),rgba(5,17,21,.78))!important;
  box-shadow:inset 0 0 28px rgba(37,139,136,.08),0 12px 30px rgba(0,0,0,.36)!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head>span{
  width:154px!important;height:124px!important;min-width:154px!important;border:1px solid rgba(205,160,72,.45)!important;border-radius:17px!important;
  background:rgba(2,12,16,.78)!important;box-shadow:inset 0 0 18px rgba(0,0,0,.44)!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head img{
  width:92%!important;height:92%!important;object-fit:contain!important;transform:none!important;clip-path:none!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head h2{
  font-size:29px!important;line-height:1.02!important;margin:5px 0 7px!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head p{
  font-size:13px!important;line-height:1.42!important;-webkit-line-clamp:4!important;color:rgba(226,232,229,.67)!important;
}
html body.v127-ui .v146100-travel-card{
  width:min(660px,calc(100% - 12px))!important;min-height:480px!important;max-height:none!important;
  padding:27px 28px!important;gap:16px!important;border:1px solid rgba(91,211,190,.40)!important;border-radius:27px!important;
  background:rgba(3,19,23,.82)!important;box-shadow:inset 0 0 0 1px rgba(210,166,74,.13),inset 0 0 40px rgba(0,0,0,.38),0 18px 40px rgba(0,0,0,.42)!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-backdrop{
  inset:0!important;opacity:.34!important;filter:saturate(.82) brightness(.56)!important;transform:scale(1.04)!important;
}
html body.v127-ui .v146100-travel-card::after{
  background:linear-gradient(180deg,rgba(3,20,23,.35),rgba(3,18,21,.68) 52%,rgba(2,13,16,.90))!important;
}
html body.v127-ui .v146100-travel-card .v77-travel-route{
  grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr)!important;gap:11px!important;font-size:12px!important;color:#d8ddd7!important;
}
html body.v127-ui .v146100-travel-card .v77-travel-route i{
  height:4px!important;border-radius:999px!important;background:linear-gradient(90deg,rgba(92,219,195,.18),rgba(92,219,195,.50),rgba(210,167,75,.25))!important;
  box-shadow:0 0 14px rgba(82,213,193,.14)!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-compass{
  width:128px!important;height:128px!important;border-radius:38px!important;
  border:1px solid rgba(99,220,205,.48)!important;background:radial-gradient(circle,rgba(13,66,70,.84),rgba(4,24,28,.82))!important;
  box-shadow:inset 0 0 24px rgba(52,203,185,.08),0 0 34px rgba(52,203,185,.12)!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-compass img{width:80px!important;height:80px!important}
html body.v127-ui .v146100-travel-card .v77-travel-timer{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:9px!important}
html body.v127-ui .v146100-travel-card .v77-travel-timer b{font-size:31px!important;color:#e9ffb6!important;text-shadow:0 0 16px rgba(169,239,79,.18)!important}
html body.v127-ui .v146100-travel-card .bar.travel{
  height:12px!important;padding:2px!important;border:1px solid rgba(112,209,193,.25)!important;border-radius:999px!important;background:rgba(1,12,16,.78)!important;
  box-shadow:inset 0 0 7px rgba(0,0,0,.60)!important;
}
html body.v127-ui .v146100-travel-card .bar.travel i{
  border-radius:999px!important;background:linear-gradient(90deg,#4cc7eb,#71ebbd,#b8f241)!important;box-shadow:0 0 12px rgba(88,226,195,.46)!important;
}
html body.v127-ui .v146100-travel-card .v14416-travel-cancel{
  width:min(320px,86%)!important;min-height:48px!important;margin:3px auto 0!important;
  border:1px solid rgba(203,161,78,.43)!important;border-radius:14px!important;
  background:linear-gradient(145deg,rgba(23,37,42,.94),rgba(10,20,25,.96))!important;color:#eff1ed!important;font-size:12px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 6px 14px rgba(0,0,0,.34)!important;
}

@media(max-width:560px){
  html body.v127-ui .v146100-travel-screen{padding-inline:11px!important;gap:12px!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head{
    min-height:142px!important;grid-template-columns:112px minmax(0,1fr)!important;gap:11px!important;padding:11px!important;
  }
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head>span{width:112px!important;min-width:112px!important;height:118px!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head h2{font-size:25px!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head p{font-size:11px!important;line-height:1.32!important;-webkit-line-clamp:4!important}
  html body.v127-ui .v146100-travel-card{min-height:470px!important;padding:24px 18px!important;gap:14px!important}
}

@media(max-width:370px){
  html body.v127-ui.v134-location-screen .v119-monster-card{grid-template-columns:68px minmax(0,1fr)!important;padding:10px!important}
  html body.v127-ui.v134-location-screen .v119-monster-art{width:66px!important;min-width:66px!important;max-width:66px!important;height:82px!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head{grid-template-columns:96px minmax(0,1fr)!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head>span{width:96px!important;min-width:96px!important;height:110px!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head h2{font-size:22px!important}
  html body.v127-ui .v146100-travel-card .v77-travel-route{grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr)!important;font-size:10px!important}
}

html body.reduce-motion .v146100-travel-screen *,
html body.reduce-motion .v119-monster-card.rank-elite *{animation:none!important}

/* ===== css/v146101-compact-travel-elite-pit-loot.css ===== */
/* Aldos RPG v1.146.101 — compact travel, elite monster and in-scene Pit loot pass. */

/* Travel: remove the giant opaque panel and let the generated road remain visible. */
html body.v127-ui .v146100-travel-screen{
  gap:10px!important;padding-inline:12px!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head{
  min-height:116px!important;grid-template-columns:104px minmax(0,1fr)!important;gap:11px!important;
  padding:10px!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(2,17,22,.76),rgba(4,16,20,.58))!important;
  backdrop-filter:blur(3px)!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head>span{
  width:104px!important;min-width:104px!important;height:94px!important;border-radius:14px!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head h2{
  margin:3px 0 5px!important;font-size:24px!important;line-height:1.02!important;
}
html body.v127-ui .v146100-travel-screen .v14416-travel-location-head p{
  font-size:10.5px!important;line-height:1.32!important;-webkit-line-clamp:3!important;
}
html body.v127-ui .v146100-travel-card{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  width:min(660px,100%)!important;min-height:calc(100dvh - 158px)!important;max-height:none!important;
  padding:14px 12px max(18px,env(safe-area-inset-bottom))!important;gap:10px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-backdrop{display:none!important}
html body.v127-ui .v146100-travel-card::after{content:none!important;display:none!important}
html body.v127-ui .v146100-travel-card .v77-travel-route{
  flex:0 0 auto!important;width:min(520px,92%)!important;padding:9px 12px!important;
  border:1px solid rgba(102,213,194,.24)!important;border-radius:16px!important;
  background:rgba(2,18,22,.42)!important;backdrop-filter:blur(3px)!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-compass{
  flex:0 0 auto!important;width:82px!important;height:82px!important;margin-top:5px!important;border-radius:25px!important;
  background:radial-gradient(circle,rgba(12,66,68,.72),rgba(3,18,22,.54))!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-compass img{width:56px!important;height:56px!important}
html body.v127-ui .v146100-travel-card>small{
  flex:0 0 auto!important;margin-top:2px!important;text-shadow:0 2px 8px #001!important;
}
html body.v127-ui .v146100-travel-card .v77-travel-timer{
  flex:0 0 auto!important;margin-top:clamp(28px,7vh,68px)!important;padding:10px 20px!important;
  border-radius:18px!important;background:radial-gradient(circle,rgba(3,28,30,.46),rgba(2,15,19,.18))!important;
  backdrop-filter:blur(2px)!important;
}
html body.v127-ui .v146100-travel-card .v77-travel-timer b{
  font-size:34px!important;line-height:1!important;
}
html body.v127-ui .v146100-travel-card .bar.travel{
  flex:0 0 auto!important;width:min(450px,82%)!important;height:10px!important;margin-top:3px!important;
}
html body.v127-ui .v146100-travel-card .v14644-travel-sign{flex:0 0 auto!important}
html body.v127-ui .v146100-travel-card .v14416-travel-cancel{
  flex:0 0 auto!important;width:min(340px,82%)!important;min-height:46px!important;margin-top:auto!important;margin-bottom:6px!important;
  background:linear-gradient(145deg,rgba(19,31,36,.78),rgba(7,16,21,.82))!important;backdrop-filter:blur(4px)!important;
}

/* Monster grid consumes all available width; the frame reaches farther to the right. */
html body.v127-ui.v134-location-screen .v119-monster-grid{
  width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding-inline:0!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card{
  width:100%!important;max-width:none!important;justify-self:stretch!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card:not(.rank-elite) .v14697-monster-frame{
  inset:-3px -8px -3px -3px!important;width:calc(100% + 11px)!important;height:calc(100% + 6px)!important;
}

/* Elite monsters use a dedicated purple/crimson frame and stricter art containment. */
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite{
  border-color:rgba(171,91,220,.72)!important;
  box-shadow:0 0 0 1px rgba(193,76,223,.36),0 0 18px rgba(147,46,190,.34),0 8px 18px rgba(0,0,0,.58)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite .v14697-monster-frame{
  inset:-4px -7px!important;width:calc(100% + 14px)!important;height:calc(100% + 8px)!important;
  max-width:none!important;max-height:none!important;object-fit:fill!important;filter:drop-shadow(0 0 5px rgba(180,72,222,.55))!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite .v14697-monster-bg{
  inset:2px!important;width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;
  filter:brightness(.92) saturate(1.18) contrast(1.14)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite .v119-monster-art{
  overflow:hidden!important;border-color:rgba(185,91,221,.78)!important;box-shadow:inset 0 0 15px rgba(0,0,0,.55),0 0 11px rgba(144,49,183,.26)!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite .v119-monster-art .monster-asset-image{
  inset:8px!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;
  max-width:calc(100% - 16px)!important;max-height:calc(100% - 16px)!important;transform:scale(.96)!important;object-fit:contain!important;
}
html body.v127-ui.v134-location-screen .v119-monster-card.rank-elite .v119-monster-tags .rank-elite{
  color:#d9ff75!important;border-color:rgba(164,229,62,.72)!important;background:rgba(21,38,9,.72)!important;
  box-shadow:0 0 8px rgba(144,218,49,.18)!important;
}

/* Long names shrink before they reach the right edge instead of turning into an early ellipsis. */
html body.v127-ui.v134-location-screen .v119-monster-main h3{
  max-width:100%!important;overflow:hidden!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;
}
html body.v127-ui.v134-location-screen .v119-monster-main h3.name-medium{font-size:11.7px!important;line-height:1.03!important;letter-spacing:-.015em!important}
html body.v127-ui.v134-location-screen .v119-monster-main h3.name-long{font-size:10.5px!important;line-height:1.02!important;letter-spacing:-.025em!important}
html body.v127-ui.v134-location-screen .v119-monster-main h3.name-very-long{font-size:9.4px!important;line-height:1.02!important;letter-spacing:-.035em!important}

/* Use real image layers for the two monster buttons so older button shorthands cannot erase the assets. */
html body.v127-ui.v134-location-screen .v119-monster-actions button{
  position:relative!important;isolation:isolate!important;overflow:visible!important;background:none!important;border:0!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions .v146101-monster-button-bg{
  position:absolute!important;z-index:0!important;inset:-3px!important;width:calc(100% + 6px)!important;height:calc(100% + 6px)!important;
  max-width:none!important;max-height:none!important;object-fit:fill!important;opacity:1!important;pointer-events:none!important;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.48))!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button>span{
  position:relative!important;z-index:2!important;display:grid!important;place-items:center!important;width:100%!important;height:100%!important;
}

/* Map plate text and parchment share one vertical center. */
html body.v127-ui.v134-location-screen .v146100-map-button{
  align-items:center!important;padding-top:0!important;padding-bottom:0!important;
}
html body.v127-ui.v134-location-screen .v146100-map-button .v14697-map-art{transform:translateY(0)!important}
html body.v127-ui.v134-location-screen .v146100-map-button span{
  display:flex!important;align-items:center!important;height:100%!important;line-height:1!important;transform:translateY(-1px)!important;
}

/* Location Pit strip uses the generated Pit icon, not another crop of the scene. */
html body.v127-ui.v134-location-screen .v146101-pit-card .v119-pit-art{
  display:grid!important;place-items:center!important;background:linear-gradient(145deg,rgba(5,30,31,.78),rgba(2,14,17,.88))!important;
  border-color:rgba(205,160,70,.50)!important;overflow:hidden!important;
}
html body.v127-ui.v134-location-screen .v146101-pit-mini-icon{
  width:45px!important;height:45px!important;max-width:82%!important;max-height:82%!important;object-fit:contain!important;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.72))!important;
}

/* Pit: loot is now a horizontal invisible-scroll carousel placed directly over the scene. */
html body.v127-ui .v146101-pit-main{padding-bottom:90px!important}
html body.v127-ui .v146101-pit-main .v119-pit-screen{
  gap:9px!important;padding:10px!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-header{
  min-height:66px!important;padding:9px 12px!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-header h1{font-size:27px!important}
html body.v127-ui .v146101-pit-main .v119-pit-header>b{padding:7px 9px!important}
html body.v127-ui .v146101-pit-main .v146101-pit-scene{
  order:1!important;position:relative!important;height:286px!important;min-height:286px!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-end!important;padding:18px 0 10px!important;
  background:
    linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,8,11,.20) 38%,rgba(0,8,11,.76)),
    url("../assets/v146100/location-ui/pit-screen-background.webp") 27% center/cover no-repeat!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-metrics{
  order:2!important;gap:8px!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-metrics>article{
  position:relative!important;overflow:hidden!important;min-height:68px!important;
  background:
    linear-gradient(135deg,rgba(3,29,31,.84),rgba(4,15,18,.92)),
    url("../assets/v146100/location-ui/pit-screen-background.webp") center/cover no-repeat!important;
  box-shadow:inset 0 0 18px rgba(35,164,151,.10),0 4px 10px rgba(0,0,0,.26)!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-metrics>article::after{
  content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(5,26,29,.24),rgba(4,18,21,.72));
}
html body.v127-ui .v146101-pit-main .v119-pit-metrics>article>*{position:relative!important;z-index:2!important}
html body.v127-ui .v146101-pit-loot-track{
  position:relative!important;z-index:2!important;display:flex!important;align-items:stretch!important;gap:9px!important;
  width:100%!important;padding:6px 16px 8px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;scroll-padding-inline:16px!important;overscroll-behavior-x:contain!important;touch-action:pan-x!important;
  scrollbar-width:none!important;-ms-overflow-style:none!important;
}
html body.v127-ui .v146101-pit-loot-track::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html body.v127-ui .v146101-pit-loot-card{
  flex:0 0 min(230px,76vw)!important;min-width:0!important;min-height:126px!important;scroll-snap-align:start!important;
  display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;grid-template-rows:66px 38px!important;gap:6px!important;
  padding:9px!important;border:1px solid rgba(205,160,71,.52)!important;border-radius:15px!important;
  background:linear-gradient(145deg,rgba(3,24,28,.91),rgba(4,12,16,.94))!important;
  box-shadow:inset 0 0 20px rgba(31,132,127,.08),0 7px 15px rgba(0,0,0,.42)!important;
}
html body.v127-ui .v146101-pit-loot-art{
  position:relative!important;width:58px!important;height:64px!important;display:grid!important;place-items:center!important;
  border:1px solid rgba(202,156,68,.48)!important;border-radius:11px!important;background:rgba(2,12,15,.82)!important;overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-art :where(img,.item-asset-image,svg){width:88%!important;height:88%!important;object-fit:contain!important}
html body.v127-ui .v146101-pit-loot-art>b{position:absolute!important;right:3px!important;bottom:3px!important}
html body.v127-ui .v146101-pit-loot-copy{min-width:0!important;display:grid!important;align-content:center!important;gap:4px!important}
html body.v127-ui .v146101-pit-loot-copy strong{
  min-width:0!important;font:500 14px/1.05 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v127-ui .v146101-pit-loot-copy small{font-size:8px!important;color:#aaa59b!important}
html body.v127-ui .v146101-pit-loot-actions{
  grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;
}
html body.v127-ui .v146101-pit-loot-actions button{
  min-height:36px!important;height:36px!important;padding:0 6px!important;border-radius:10px!important;font-size:9px!important;
}
html body.v127-ui .v146101-pit-loot-actions button.primary{background:linear-gradient(180deg,#b8f335,#7bc600)!important;color:#102000!important}
html body.v127-ui .v146101-pit-loot-actions button.danger{background:linear-gradient(180deg,#6d263b,#3f1323)!important;border-color:rgba(190,72,105,.58)!important}
html body.v127-ui .v146101-pit-scroll-hint{
  position:relative!important;z-index:2!important;display:block!important;padding:0 16px!important;text-align:center!important;
  color:rgba(218,221,213,.58)!important;font-size:8px!important;letter-spacing:.02em!important;text-shadow:0 2px 4px #000!important;
}
html body.v127-ui .v146101-pit-empty{
  flex:0 0 calc(100% - 32px)!important;min-height:116px!important;display:grid!important;place-items:center!important;
  padding:16px!important;border:1px dashed rgba(203,157,70,.38)!important;border-radius:15px!important;
  background:rgba(2,16,19,.64)!important;color:#aaa69e!important;text-align:center!important;
}

@media(max-width:370px){
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head{grid-template-columns:86px minmax(0,1fr)!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head>span{width:86px!important;min-width:86px!important;height:90px!important}
  html body.v127-ui .v146100-travel-screen .v14416-travel-location-head h2{font-size:21px!important}
  html body.v127-ui .v146100-travel-card{min-height:calc(100dvh - 146px)!important}
  html body.v127-ui.v134-location-screen .v119-monster-grid{gap:3px!important}
  html body.v127-ui.v134-location-screen .v119-monster-main h3.name-medium{font-size:10.8px!important}
  html body.v127-ui.v134-location-screen .v119-monster-main h3.name-long{font-size:9.8px!important}
}

/* ===== css/v146102-merchant-warning-rarity-pit-travel.css ===== */
/* Aldos RPG v1.146.102 — merchant, confirmation, rarity, Pit and travel asset pass. */

/* Merchant: a complete illustrated shop, with the existing controls kept readable above it. */
html body.v127-ui :is(.v1421-shop-modal,.v1421-shop-modal .modal-card,.v1421-shop-modal .modal-body){
  background:#030d10!important;
}
html body.v127-ui .v1421-merchant-shop{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  background:
    linear-gradient(180deg,rgba(2,13,16,.56),rgba(2,12,15,.82) 31%,rgba(1,8,11,.94)),
    url("../assets/v146102/ui/merchant-screen-background.webp") center/cover no-repeat!important;
  box-shadow:inset 0 0 54px rgba(0,0,0,.64)!important;
}
html body.v127-ui .v1421-merchant-shop::before{
  content:"";position:absolute;z-index:8;inset:0;pointer-events:none;
  background:url("../assets/v14695/location-ui/frames/location-main-frame.webp") center/100% 100% no-repeat;
  opacity:.52;filter:saturate(.74) brightness(.78);
}
html body.v127-ui .v1421-merchant-shop>*{position:relative!important;z-index:2!important}
html body.v127-ui .v14413-shop-hero{
  border-bottom:1px solid rgba(215,170,75,.30)!important;
  background:linear-gradient(90deg,rgba(4,24,25,.70),rgba(7,31,29,.50),rgba(3,15,18,.76)),url("../assets/v146102/ui/merchant/merchant-header-background.webp") center/cover no-repeat!important;
  box-shadow:inset 0 -12px 24px rgba(0,0,0,.24)!important;
}
html body.v127-ui .v14413-shop-portrait,
html body.v127-ui .v14413-shop-wallet,
html body.v127-ui .v14413-shop-depart{
  border-color:rgba(211,165,70,.52)!important;
  background:linear-gradient(145deg,rgba(4,31,31,.92),rgba(5,17,20,.92))!important;
  box-shadow:inset 0 0 14px rgba(42,144,133,.08),0 3px 10px rgba(0,0,0,.34)!important;
}
html body.v127-ui .v1421-shop-tabs{
  background:linear-gradient(180deg,rgba(2,13,15,.91),rgba(5,24,25,.86))!important;
  border-bottom-color:rgba(208,162,67,.28)!important;
}
html body.v127-ui .v1421-shop-tabs button{
  border-color:rgba(133,177,164,.25)!important;
  background:linear-gradient(155deg,rgba(10,42,41,.50),rgba(5,24,27,.68)),url("../assets/v146102/ui/merchant/merchant-tab-plate.webp") center/100% 100% no-repeat!important;
  box-shadow:inset 0 0 14px rgba(32,134,128,.08),0 3px 8px rgba(0,0,0,.25)!important;
}
html body.v127-ui .v1421-shop-tabs button.active{
  border-color:rgba(224,181,81,.72)!important;
  background:linear-gradient(145deg,rgba(97,76,29,.42),rgba(17,50,45,.70)),url("../assets/v146102/ui/merchant/merchant-tab-plate.webp") center/100% 100% no-repeat!important;
  box-shadow:inset 0 -2px #d4a84d,0 0 13px rgba(210,161,61,.16)!important;
}
html body.v127-ui .v1421-shop-tabs :is(img,svg){filter:drop-shadow(0 2px 4px #000a)!important}
html body.v127-ui .v1421-shop-content{
  background:linear-gradient(180deg,rgba(2,13,15,.32),rgba(2,12,14,.76))!important;
}
html body.v127-ui .v14413-shop-overview{
  border-radius:15px!important;padding:8px!important;
  background:linear-gradient(155deg,rgba(2,15,18,.68),rgba(2,10,13,.82)),url("../assets/v146102/ui/merchant/merchant-overview-frame.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui .v1420-offer-card{
  background-image:linear-gradient(120deg,rgba(2,16,18,.35),rgba(2,10,13,.70)),url("../assets/v146102/ui/merchant/merchant-offer-card.webp")!important;
  background-size:100% 100%!important;
}
html body.v127-ui .v1420-sell-card{
  background-image:linear-gradient(120deg,rgba(2,16,18,.34),rgba(2,10,13,.69)),url("../assets/v146102/ui/merchant/merchant-sell-card.webp")!important;
  background-size:100% 100%!important;
}
html body.v127-ui :is(.v14415-repair-summary,.v14415-repair-card,.v1420-order-active,.v1420-order-empty,.v14413-section-note){
  background-image:linear-gradient(120deg,rgba(2,16,18,.38),rgba(2,10,13,.72)),url("../assets/v146102/ui/merchant/merchant-workshop-panel.webp")!important;
  background-size:100% 100%!important;
}
html body.v127-ui .v14415-dialogue-stage{
  background-image:linear-gradient(150deg,rgba(2,16,18,.22),rgba(2,10,13,.58)),url("../assets/v146102/ui/merchant/merchant-dialogue-background.webp")!important;
  background-position:center!important;background-size:cover!important;
}
html body.v127-ui :is(.v14413-merchant-summary>div,.v1420-demand-card,.v1420-order-active,.v1420-order-empty,.v14413-section-note,.v14415-repair-summary,.v14415-repair-card,.v14415-dialogue-stage){
  border-color:rgba(198,156,69,.30)!important;
  background:
    linear-gradient(135deg,rgba(6,35,35,.90),rgba(3,17,20,.94)),
    url("../assets/v146102/ui/merchant-screen-background.webp") center/cover no-repeat!important;
  box-shadow:inset 0 0 18px rgba(31,137,128,.06),0 5px 13px rgba(0,0,0,.28)!important;
}
html body.v127-ui .v1420-demand-card>span,
html body.v127-ui :is(.v1420-order-active,.v1420-order-empty)>span,
html body.v127-ui .v14415-repair-art{
  display:grid!important;place-items:center!important;border:1px solid rgba(211,166,72,.35)!important;
  border-radius:10px!important;background:rgba(1,10,13,.72)!important;
}

/* Three exact, quiet frame geometries. Within each geometry only the rarity color changes. */
html body.v127-ui :is(.rarity-common,.rarity-обычный){--v146102-rarity-line:#b7c0bd;--v146102-full:url("../assets/v146102/ui/rarity/full/item-card-common.webp");--v146102-mini:url("../assets/v146102/ui/rarity/mini/item-card-common.webp");--v146102-pit:url("../assets/v146102/ui/rarity/pit/item-card-common.webp")}
html body.v127-ui :is(.rarity-uncommon,.rarity-необычный){--v146102-rarity-line:#55dc72;--v146102-full:url("../assets/v146102/ui/rarity/full/item-card-uncommon.webp");--v146102-mini:url("../assets/v146102/ui/rarity/mini/item-card-uncommon.webp");--v146102-pit:url("../assets/v146102/ui/rarity/pit/item-card-uncommon.webp")}
html body.v127-ui :is(.rarity-rare,.rarity-редкий){--v146102-rarity-line:#4aa9ff;--v146102-full:url("../assets/v146102/ui/rarity/full/item-card-rare.webp");--v146102-mini:url("../assets/v146102/ui/rarity/mini/item-card-rare.webp");--v146102-pit:url("../assets/v146102/ui/rarity/pit/item-card-rare.webp")}
html body.v127-ui :is(.rarity-epic,.rarity-эпический){--v146102-rarity-line:#b06cff;--v146102-full:url("../assets/v146102/ui/rarity/full/item-card-epic.webp");--v146102-mini:url("../assets/v146102/ui/rarity/mini/item-card-epic.webp");--v146102-pit:url("../assets/v146102/ui/rarity/pit/item-card-epic.webp")}
html body.v127-ui :is(.rarity-legendary,.rarity-легендарный){--v146102-rarity-line:#ffbd42;--v146102-full:url("../assets/v146102/ui/rarity/full/item-card-legendary.webp");--v146102-mini:url("../assets/v146102/ui/rarity/mini/item-card-legendary.webp");--v146102-pit:url("../assets/v146102/ui/rarity/pit/item-card-legendary.webp")}
html body.v127-ui :is(.rarity-mythic,.rarity-мифический){--v146102-rarity-line:#ff506d;--v146102-full:url("../assets/v146102/ui/rarity/full/item-card-mythic.webp");--v146102-mini:url("../assets/v146102/ui/rarity/mini/item-card-mythic.webp");--v146102-pit:url("../assets/v146102/ui/rarity/pit/item-card-mythic.webp")}
html body.v127-ui .v122-item-detail-card[class*="rarity-"]{
  background-image:linear-gradient(145deg,rgba(2,11,14,.16),rgba(2,9,12,.48)),var(--v146102-full)!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  border-color:color-mix(in srgb,var(--v146102-rarity-line) 58%,transparent)!important;
  box-shadow:inset 0 0 20px rgba(0,0,0,.22),0 8px 18px rgba(0,0,0,.34)!important;
}
html body.v127-ui :is(.v124-item-card,.v1420-offer-card,.v1420-sell-card)[class*="rarity-"]{
  background-image:linear-gradient(125deg,rgba(2,13,16,.14),rgba(2,9,12,.50)),var(--v146102-mini)!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  border-color:color-mix(in srgb,var(--v146102-rarity-line) 56%,transparent)!important;
  box-shadow:inset 0 0 16px rgba(0,0,0,.20),0 5px 12px rgba(0,0,0,.30)!important;
}
html body.v127-ui .v146101-pit-loot-card[class*="rarity-"]{
  background-image:linear-gradient(145deg,rgba(2,12,15,.12),rgba(2,8,11,.48)),var(--v146102-pit)!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  border-color:color-mix(in srgb,var(--v146102-rarity-line) 58%,transparent)!important;
  box-shadow:inset 0 0 17px rgba(0,0,0,.22),0 6px 13px rgba(0,0,0,.31)!important;
}
html body.v127-ui .v1420-offer-card[class*="rarity-"]{
  background-image:linear-gradient(120deg,rgba(2,16,18,.20),rgba(2,9,12,.54)),var(--v146102-mini),url("../assets/v146102/ui/merchant/merchant-offer-card.webp")!important;
  background-blend-mode:normal,soft-light,normal!important;
}
html body.v127-ui .v1420-sell-card[class*="rarity-"]{
  background-image:linear-gradient(120deg,rgba(2,16,18,.20),rgba(2,9,12,.54)),var(--v146102-mini),url("../assets/v146102/ui/merchant/merchant-sell-card.webp")!important;
  background-blend-mode:normal,soft-light,normal!important;
}
html body.v127-ui :is(.v14415-repair-summary,.v14415-repair-card,.v1420-order-active,.v1420-order-empty,.v14413-section-note){
  background-image:linear-gradient(120deg,rgba(2,16,18,.38),rgba(2,10,13,.72)),url("../assets/v146102/ui/merchant/merchant-workshop-panel.webp")!important;
  background-size:100% 100%!important;
}
html body.v127-ui .v14415-dialogue-stage{
  background-image:linear-gradient(150deg,rgba(2,16,18,.22),rgba(2,10,13,.58)),url("../assets/v146102/ui/merchant/merchant-dialogue-background.webp")!important;
  background-position:center!important;background-size:cover!important;
}

/* Confirmation/warning windows now have a scene, a real emblem and framed actions. */
html body.v127-ui .v76-confirm-dialog{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  gap:16px!important;padding:24px 18px 18px!important;border:1px solid rgba(210,165,73,.54)!important;border-radius:20px!important;
  background:
    linear-gradient(180deg,rgba(4,18,21,.42),rgba(2,10,14,.82)),
    url("../assets/v146102/ui/confirmation-panel-background.webp") center/cover no-repeat!important;
  box-shadow:inset 0 0 34px rgba(0,0,0,.46),0 14px 36px rgba(0,0,0,.48)!important;
}
html body.v127-ui .v76-confirm-dialog::before{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:radial-gradient(circle at 50% 23%,rgba(70,181,166,.10),transparent 31%);
}
html body.v127-ui .v76-confirm-mark,
html body.v127-ui .v76-confirm-mark.danger{
  width:72px!important;height:72px!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;overflow:visible!important;
}
html body.v127-ui .v76-confirm-mark img{width:72px!important;height:72px!important;object-fit:contain!important;filter:drop-shadow(0 5px 8px #000b)!important}
html body.v127-ui .v76-confirm-dialog p{max-width:440px!important;margin:0 auto!important;color:#d7dfdb!important;text-shadow:0 2px 4px #000!important}
html body.v127-ui .v76-confirm-actions button{border-color:rgba(204,160,72,.48)!important;box-shadow:inset 0 1px rgba(255,255,255,.04),0 5px 12px rgba(0,0,0,.30)!important}

/* Monster controls: only one filled raster plate; all legacy line/pseudo frames are suppressed. */
html body.v127-ui.v134-location-screen .v119-monster-actions button,
html body.v127-ui.v134-location-screen .v119-monster-actions button:is(.ghost,.primary){
  outline:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button::before,
html body.v127-ui.v134-location-screen .v119-monster-actions button::after{content:none!important;display:none!important}
html body.v127-ui.v134-location-screen .v119-monster-actions .v146101-monster-button-bg{
  inset:-5px -4px!important;width:calc(100% + 8px)!important;height:calc(100% + 10px)!important;
  object-fit:fill!important;filter:drop-shadow(0 4px 5px rgba(0,0,0,.58))!important;
}

/* Pit: one full illustrated card across the useful viewport; loot stays on the scene. */
html body.v127-ui.v146100-pit-screen-active .v146100-pit-main,
html body.v127-ui .v146101-pit-main{
  min-height:calc(100dvh - 104px)!important;
  background:
    linear-gradient(180deg,rgba(0,8,11,.30),rgba(0,7,10,.78)),
    url("../assets/v146102/ui/pit-fullscreen-background.webp") center/cover fixed no-repeat!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-screen{
  position:relative!important;isolation:isolate!important;min-height:calc(100dvh - 210px)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;padding:12px!important;border-color:rgba(207,165,74,.46)!important;
  background:linear-gradient(180deg,rgba(2,17,20,.56),rgba(1,9,12,.77))!important;
  box-shadow:inset 0 0 36px rgba(0,0,0,.42),0 12px 30px rgba(0,0,0,.38)!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-screen::before{
  content:"";position:absolute;z-index:-1;inset:5px;pointer-events:none;border-radius:17px;
  background:url("../assets/v14695/location-ui/frames/location-main-frame.webp") center/100% 100% no-repeat;opacity:.36;
}
html body.v127-ui .v146101-pit-main .v146101-pit-scene{
  order:2!important;height:clamp(360px,58dvh,650px)!important;min-height:360px!important;padding:18px 0 13px!important;
  border-color:rgba(205,161,69,.58)!important;
  background:
    linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,8,11,.24) 52%,rgba(0,8,11,.70)),
    url("../assets/v146102/ui/pit-fullscreen-background.webp") center/cover no-repeat!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-metrics{order:3!important}
html body.v127-ui .v146101-pit-loot-track{margin-top:auto!important;padding-inline:18px!important}
html body.v127-ui .v146101-pit-loot-card{flex-basis:min(248px,78vw)!important;min-height:132px!important;backdrop-filter:blur(4px)!important}
html body.v127-ui .v146101-pit-loot-art{background:rgba(1,9,12,.72)!important;box-shadow:inset 0 0 13px rgba(0,0,0,.44)!important}
html body.v127-ui .v146101-pit-loot-actions button{position:relative!important;overflow:hidden!important;border-color:rgba(213,169,73,.42)!important}
html body.v127-ui .v146101-pit-main .v119-pit-metrics>article{
  background:
    linear-gradient(135deg,rgba(3,30,31,.82),rgba(3,14,17,.91)),
    url("../assets/v146103/ui/rarity/full/item-card-common.webp") center/cover no-repeat!important;
}

/* Travel: replace the square tile with a medallion and give cancellation a complete plate. */
html body.v127-ui .v146100-travel-card .v126-travel-compass{
  width:96px!important;height:96px!important;margin-top:4px!important;border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;overflow:visible!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-compass img{
  width:92px!important;height:92px!important;max-width:92px!important;max-height:92px!important;object-fit:contain!important;
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.72)) drop-shadow(0 0 9px rgba(63,209,190,.16))!important;
  animation:v146102-compass-breathe 2.4s ease-in-out infinite!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-compass>i{
  position:absolute!important;inset:4px!important;border:1px solid rgba(78,217,196,.22)!important;border-radius:50%!important;
  animation:v146102-compass-ring 3.6s linear infinite!important;
}
html body.v127-ui .v146100-travel-card .v14416-travel-cancel{
  position:relative!important;isolation:isolate!important;overflow:visible!important;width:min(380px,88%)!important;min-height:52px!important;
  padding:0 34px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
}
html body.v127-ui .v146100-travel-card .v14416-travel-cancel::before{
  content:"";position:absolute;z-index:-1;inset:-8px -13px;pointer-events:none;
  background:url("../assets/v146102/ui/travel-cancel-plate.webp") center/100% 100% no-repeat;
  filter:drop-shadow(0 6px 8px rgba(0,0,0,.58));
}
html body.v127-ui .v146100-travel-card .v14416-travel-cancel span{position:relative!important;z-index:2!important;color:#eef1ed!important;text-shadow:0 2px 4px #000!important}
@keyframes v146102-compass-breathe{0%,100%{transform:translateY(0) scale(.98)}50%{transform:translateY(-3px) scale(1.02)}}
@keyframes v146102-compass-ring{to{transform:rotate(360deg)}}

/* 100 / 125 / 150 percent text presets: protect assets and let copy wrap inside them. */
html[data-ui-font-size="medium"] body.v127-ui .v1421-shop-content :is(.v1420-offer-card,.v1420-sell-card){min-height:88px!important}
html[data-ui-font-size="large"] body.v127-ui .v1421-shop-content :is(.v1420-offer-card,.v1420-sell-card){min-height:98px!important}
html[data-ui-font-size="large"] body.v127-ui .v1421-shop-content :is(.v1420-offer-copy b,.v1420-sell-card b){font-size:10px!important;line-height:1.12!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-hero{grid-template-columns:48px minmax(0,1fr) 58px 66px!important;gap:4px!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-title h2{font-size:14px!important;line-height:1.02!important}
html[data-ui-font-size="large"] body.v127-ui .v76-confirm-dialog p{font-size:14px!important;line-height:1.42!important}

@media(max-width:370px){
  html body.v127-ui .v146101-pit-main .v146101-pit-scene{height:clamp(330px,54dvh,560px)!important;min-height:330px!important}
  html body.v127-ui .v146100-travel-card .v126-travel-compass{width:86px!important;height:86px!important}
  html body.v127-ui .v146100-travel-card .v126-travel-compass img{width:82px!important;height:82px!important}
  html body.v127-ui .v76-confirm-dialog{padding:20px 13px 15px!important}
}
html body.reduce-motion .v146100-travel-card .v126-travel-compass :is(img,i){animation:none!important}

/* ===== css/v146103-mobile-card-merchant-pit-fix.css ===== */
/* Aldos RPG v1.146.103 — exact mobile cards, merchant containment, vertical Pit and centered notices. */

/* One geometry per component. Rarity changes only color and matching pre-rendered surface. */
html body.v127-ui :is(.rarity-common,.rarity-обычный){--v146103-line:#AEB7B9;--v146103-full:url("../assets/v146103/ui/rarity/full/item-card-common.webp");--v146103-mini:url("../assets/v146103/ui/rarity/mini/item-card-common.webp");--v146103-merchant:url("../assets/v146103/ui/rarity/merchant/item-card-common.webp");--v146103-slot:url("../assets/v146103/ui/rarity/slot/item-slot-common.webp");--v146103-pit:url("../assets/v146103/ui/rarity/pit/item-card-common.webp")}
html body.v127-ui :is(.rarity-uncommon,.rarity-необычный){--v146103-line:#61DB79;--v146103-full:url("../assets/v146103/ui/rarity/full/item-card-uncommon.webp");--v146103-mini:url("../assets/v146103/ui/rarity/mini/item-card-uncommon.webp");--v146103-merchant:url("../assets/v146103/ui/rarity/merchant/item-card-uncommon.webp");--v146103-slot:url("../assets/v146103/ui/rarity/slot/item-slot-uncommon.webp");--v146103-pit:url("../assets/v146103/ui/rarity/pit/item-card-uncommon.webp")}
html body.v127-ui :is(.rarity-rare,.rarity-редкий){--v146103-line:#4DAAFF;--v146103-full:url("../assets/v146103/ui/rarity/full/item-card-rare.webp");--v146103-mini:url("../assets/v146103/ui/rarity/mini/item-card-rare.webp");--v146103-merchant:url("../assets/v146103/ui/rarity/merchant/item-card-rare.webp");--v146103-slot:url("../assets/v146103/ui/rarity/slot/item-slot-rare.webp");--v146103-pit:url("../assets/v146103/ui/rarity/pit/item-card-rare.webp")}
html body.v127-ui :is(.rarity-epic,.rarity-эпический){--v146103-line:#B76BFF;--v146103-full:url("../assets/v146103/ui/rarity/full/item-card-epic.webp");--v146103-mini:url("../assets/v146103/ui/rarity/mini/item-card-epic.webp");--v146103-merchant:url("../assets/v146103/ui/rarity/merchant/item-card-epic.webp");--v146103-slot:url("../assets/v146103/ui/rarity/slot/item-slot-epic.webp");--v146103-pit:url("../assets/v146103/ui/rarity/pit/item-card-epic.webp")}
html body.v127-ui :is(.rarity-legendary,.rarity-легендарный){--v146103-line:#F2B84C;--v146103-full:url("../assets/v146103/ui/rarity/full/item-card-legendary.webp");--v146103-mini:url("../assets/v146103/ui/rarity/mini/item-card-legendary.webp");--v146103-merchant:url("../assets/v146103/ui/rarity/merchant/item-card-legendary.webp");--v146103-slot:url("../assets/v146103/ui/rarity/slot/item-slot-legendary.webp");--v146103-pit:url("../assets/v146103/ui/rarity/pit/item-card-legendary.webp")}
html body.v127-ui :is(.rarity-mythic,.rarity-мифический){--v146103-line:#FF5777;--v146103-full:url("../assets/v146103/ui/rarity/full/item-card-mythic.webp");--v146103-mini:url("../assets/v146103/ui/rarity/mini/item-card-mythic.webp");--v146103-merchant:url("../assets/v146103/ui/rarity/merchant/item-card-mythic.webp");--v146103-slot:url("../assets/v146103/ui/rarity/slot/item-slot-mythic.webp");--v146103-pit:url("../assets/v146103/ui/rarity/pit/item-card-mythic.webp")}

html body.v127-ui .v122-item-detail-card[class*="rarity-"]{
  border:0!important;background:var(--v146103-full) center/100% 100% no-repeat!important;
  box-shadow:0 10px 24px rgba(0,0,0,.34)!important;overflow:hidden!important;
}
html body.v127-ui .v124-item-card[class*="rarity-"]{
  border:0!important;background:var(--v146103-mini) center/100% 100% no-repeat!important;
  box-shadow:0 6px 15px rgba(0,0,0,.30)!important;overflow:hidden!important;
}
html body.v127-ui .v39-equip-slot[class*="rarity-"]{
  border:0!important;background:var(--v146103-slot) center/100% 100% no-repeat!important;
  box-shadow:0 5px 13px rgba(0,0,0,.28)!important;overflow:hidden!important;
}
html body.v127-ui :is(.v122-item-detail-card,.v124-item-card,.v39-equip-slot)[class*="rarity-"] :is(.v77-slot-rarity,.v14415-rarity,[class*="rarity-label"]){color:var(--v146103-line)!important}

/* Merchant: no giant full-screen ornament and no stacked frames. */
html body.v127-ui .modal.v1421-shop-modal,
html body.v127-ui .v1421-shop-modal .modal-card,
html body.v127-ui .v1421-shop-modal .v65-modal-card,
html body.v127-ui .v1421-shop-modal .v122-modal-card{
  width:min(620px,calc(100vw - 16px))!important;max-width:min(620px,calc(100vw - 16px))!important;
  height:min(94dvh,820px)!important;max-height:min(94dvh,820px)!important;padding:0!important;
  border:1px solid rgba(198,164,87,.62)!important;border-radius:18px!important;overflow:hidden!important;background:#091718!important;
}
html body.v127-ui .v1421-shop-modal .modal-body{height:100%!important;max-height:100%!important;padding:0!important;overflow:hidden!important}
html body.v127-ui .v1421-merchant-shop{
  width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;isolation:auto!important;
  background:url("../assets/v146103/ui/merchant/merchant-screen-surface.webp") center/cover no-repeat!important;
  box-shadow:inset 0 0 34px rgba(0,0,0,.30)!important;
}
html body.v127-ui .v1421-merchant-shop::before{content:none!important;display:none!important}
html body.v127-ui .v1421-merchant-shop>*{z-index:auto!important}
html body.v127-ui .v14413-shop-hero{
  min-height:88px!important;padding:8px 9px!important;grid-template-columns:52px minmax(0,1fr) 68px 74px!important;gap:6px!important;
  border:0!important;border-bottom:1px solid rgba(198,164,87,.42)!important;border-radius:0!important;
  background:url("../assets/v146103/ui/merchant/merchant-header-surface.webp") center/100% 100% no-repeat!important;
  box-shadow:none!important;overflow:hidden!important;
}
html body.v127-ui .v14413-shop-title{min-width:0!important;overflow:hidden!important}
html body.v127-ui .v14413-shop-title h2{font-size:16px!important;line-height:1.05!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v127-ui .v14413-shop-title p{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v127-ui :is(.v14413-shop-portrait,.v14413-shop-wallet,.v14413-shop-depart){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html body.v127-ui .v1421-shop-tabs,
html body.v127-ui .v1420-tabs.v1421-shop-tabs{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:6px 8px 7px!important;
  overflow:visible!important;border:0!important;border-bottom:1px solid rgba(151,179,169,.20)!important;background:rgba(5,20,21,.78)!important;
}
html body.v127-ui .v1421-shop-tabs>button{
  width:100%!important;min-width:0!important;min-height:48px!important;height:48px!important;padding:4px 3px!important;
  border:0!important;border-radius:10px!important;background:url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important;
  box-shadow:none!important;overflow:hidden!important;
}
html body.v127-ui .v1421-shop-tabs>button.active{filter:brightness(1.16) saturate(1.08)!important;box-shadow:inset 0 -2px #d7ae53!important}
html body.v127-ui .v1421-shop-tabs>button>span{height:20px!important;margin:0!important;background:none!important}
html body.v127-ui .v1421-shop-tabs>button :is(img,svg){width:17px!important;height:17px!important}
html body.v127-ui .v1421-shop-tabs>button b{font-size:8px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui .v1421-shop-content{padding:8px 9px calc(15px + env(safe-area-inset-bottom))!important;background:rgba(3,14,16,.22)!important}

html body.v127-ui .v14413-shop-overview,
html body.v127-ui :is(.v14413-merchant-summary>div,.v1420-demand-card,.v1420-order-active,.v1420-order-empty,.v14413-section-note,.v14415-repair-summary,.v14415-repair-card,.v14415-dialogue-stage){
  border:0!important;background:url("../assets/v146103/ui/merchant/merchant-panel-surface.webp") center/100% 100% no-repeat!important;
  box-shadow:0 5px 13px rgba(0,0,0,.24)!important;overflow:hidden!important;
}
html body.v127-ui :is(.v1420-offer-card,.v1420-sell-card)[class*="rarity-"]{
  border:0!important;background:var(--v146103-merchant) center/100% 100% no-repeat!important;
  box-shadow:0 5px 12px rgba(0,0,0,.28)!important;overflow:hidden!important;
}
html body.v127-ui .v1420-offer-card{
  display:grid!important;grid-template-columns:62px minmax(0,1fr) 88px!important;grid-template-rows:auto!important;gap:8px!important;
  min-height:104px!important;height:auto!important;padding:9px!important;align-items:center!important;
}
html body.v127-ui .v1420-offer-art{width:58px!important;height:72px!important;border:1px solid color-mix(in srgb,var(--v146103-line,#C6A457) 52%,transparent)!important;border-radius:11px!important;background:rgba(6,20,22,.48)!important}
html body.v127-ui .v1420-offer-copy{min-width:0!important;overflow:hidden!important}
html body.v127-ui .v1420-offer-copy b{font-size:11px!important;line-height:1.14!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
html body.v127-ui .v1420-offer-copy p{display:none!important}
html body.v127-ui .v1420-offer-action{
  grid-column:3!important;grid-row:1!important;width:88px!important;min-width:0!important;display:grid!important;gap:6px!important;justify-items:stretch!important;align-self:stretch!important;
}
html body.v127-ui .v1420-offer-action>span{min-width:0!important;align-content:center!important}
html body.v127-ui .v1420-offer-action button{width:100%!important;min-width:0!important;min-height:36px!important;padding:0 5px!important}
html body.v127-ui .v1420-sell-card{
  display:grid!important;grid-template-columns:52px minmax(0,1fr) 86px!important;gap:8px!important;min-height:84px!important;height:auto!important;padding:8px!important;align-items:center!important;
}
html body.v127-ui .v1420-sell-card>span:first-child{width:48px!important;height:58px!important;display:grid!important;place-items:center!important;border:1px solid color-mix(in srgb,var(--v146103-line,#C6A457) 48%,transparent)!important;border-radius:10px!important;background:rgba(6,20,22,.48)!important}
html body.v127-ui .v1420-sell-card>div{min-width:0!important;overflow:hidden!important}
html body.v127-ui .v1420-sell-card>div b{font-size:10.5px!important;line-height:1.14!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
html body.v127-ui .v14416-sell-action{width:86px!important;max-width:86px!important;min-width:0!important}
html body.v127-ui .v14416-sell-action button{width:100%!important;min-width:0!important;padding-inline:5px!important}
html body.v127-ui .v14415-repair-card{grid-template-columns:48px minmax(0,1fr) 84px!important;min-height:78px!important;padding:8px!important;gap:7px!important}
html body.v127-ui .v14415-dialogue-stage{min-height:260px!important;background-size:cover!important}

/* Full-width notices and centered contextual confirmation emblem. */
html body.v127-ui #toast-root{
  left:8px!important;right:8px!important;top:max(66px,calc(env(safe-area-inset-top) + 58px))!important;transform:none!important;
  width:auto!important;max-width:none!important;display:grid!important;justify-items:stretch!important;
}
html body.v127-ui #toast-root>.toast{
  width:100%!important;max-width:100%!important;min-width:0!important;min-height:58px!important;margin:0!important;padding:10px 14px!important;
  border:0!important;border-radius:14px!important;background:url("../assets/v146103/ui/notifications/toast-panel.webp") center/100% 100% no-repeat!important;
  box-shadow:0 9px 24px rgba(0,0,0,.38)!important;text-align:left!important;justify-content:flex-start!important;
}
html body.v127-ui #toast-root>.toast :is(.v128-toast-icon,.v128-toast-copy){position:relative!important;z-index:1!important}
html body.v127-ui .modal:has(.v76-confirm-dialog){width:min(480px,calc(100vw - 22px))!important;max-width:min(480px,calc(100vw - 22px))!important;padding:12px!important;overflow:hidden!important}
html body.v127-ui .v76-confirm-dialog{
  width:100%!important;max-width:100%!important;min-height:296px!important;gap:12px!important;padding:20px 16px 16px!important;border:0!important;border-radius:16px!important;
  background:url("../assets/v146103/ui/notifications/confirm-panel.webp") center/100% 100% no-repeat!important;
  box-shadow:none!important;overflow:hidden!important;
}
html body.v127-ui .v76-confirm-dialog::before{content:none!important;display:none!important}
html body.v127-ui .v76-confirm-mark,
html body.v127-ui .v76-confirm-mark.danger{width:80px!important;height:80px!important;display:grid!important;place-items:center!important;margin:2px auto 0!important}
html body.v127-ui .v76-confirm-mark.destructive{width:92px!important;height:92px!important}
html body.v127-ui .v76-confirm-mark img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;margin:auto!important}
html body.v127-ui .v76-confirm-dialog p{width:100%!important;max-width:390px!important;font-size:13px!important;line-height:1.42!important;text-align:center!important}
html body.v127-ui .v76-confirm-actions{width:100%!important;gap:7px!important}
html body.v127-ui .v76-confirm-actions button{min-width:0!important;min-height:44px!important;padding:6px!important}

/* Filled, slightly taller monster buttons; image fits the actual button box without stray outlines. */
html body.v127-ui.v134-location-screen .v119-monster-actions{height:42px!important;min-height:42px!important;gap:5px!important;transform:translateY(-3px)!important;margin-bottom:-3px!important}
html body.v127-ui.v134-location-screen .v119-monster-actions button{height:42px!important;min-height:42px!important;padding:0 7px!important;overflow:visible!important}
html body.v127-ui.v134-location-screen .v119-monster-actions .v146101-monster-button-bg{
  inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:fill!important;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.50))!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button>span{font-size:9.5px!important;line-height:1!important;text-shadow:0 2px 3px #000!important}

/* Pit loot is a vertical list from top to bottom. */
html body.v127-ui .v146101-pit-main .v146101-pit-scene{
  height:clamp(420px,61dvh,680px)!important;min-height:420px!important;padding:12px 8px 10px!important;justify-content:flex-start!important;overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-track{
  flex:1 1 auto!important;display:grid!important;grid-auto-flow:row!important;grid-auto-rows:max-content!important;align-content:start!important;gap:8px!important;
  width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:5px 6px 9px!important;
  overflow-y:auto!important;overflow-x:hidden!important;scroll-snap-type:y proximity!important;scroll-padding-block:5px!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;
  scrollbar-width:none!important;
}
html body.v127-ui .v146101-pit-loot-track::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html body.v127-ui .v146101-pit-loot-card{
  width:100%!important;max-width:100%!important;min-height:118px!important;height:auto!important;scroll-snap-align:start!important;
  display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;grid-template-rows:minmax(62px,auto) 38px!important;gap:7px!important;
  padding:9px!important;border:0!important;border-radius:13px!important;background:var(--v146103-pit) center/100% 100% no-repeat!important;
  box-shadow:0 6px 14px rgba(0,0,0,.34)!important;backdrop-filter:none!important;overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-art{width:60px!important;height:62px!important;border:1px solid color-mix(in srgb,var(--v146103-line,#C6A457) 50%,transparent)!important;border-radius:10px!important;background:rgba(5,17,20,.48)!important}
html body.v127-ui .v146101-pit-loot-copy strong{font-size:14px!important;line-height:1.08!important}
html body.v127-ui .v146101-pit-loot-actions{grid-column:1/-1!important;height:38px!important;gap:7px!important}
html body.v127-ui .v146101-pit-loot-actions button{
  height:38px!important;min-height:38px!important;padding:0 8px!important;border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:none!important;color:#fff!important;text-shadow:0 2px 3px #000!important;
}
html body.v127-ui .v146101-pit-loot-actions button.primary{background-image:url("../assets/v146103/ui/buttons/take.webp")!important;color:#f5ffe9!important}
html body.v127-ui .v146101-pit-loot-actions button.danger{background-image:url("../assets/v146103/ui/buttons/discard.webp")!important}
html body.v127-ui .v146101-pit-scroll-hint{flex:0 0 auto!important;padding:4px 4px 0!important;font-size:8px!important}
html body.v127-ui .v146101-pit-empty{width:100%!important;min-height:160px!important;flex:none!important}

/* Travel emblem optical centering and complete location-status frame height. */
html body.v127-ui .v146100-travel-card .v126-travel-compass{
  display:grid!important;place-items:center!important;align-self:center!important;padding:0!important;margin-inline:auto!important;line-height:0!important;
}
html body.v127-ui .v146100-travel-card .v126-travel-compass img{
  position:relative!important;inset:auto!important;display:block!important;margin:auto!important;object-position:center!important;transform-origin:50% 50%!important;
}
html body.v127-ui.v134-location-screen .v14415-location-status-banner{min-height:66px!important;margin-bottom:5px!important;overflow:visible!important}
html body.v127-ui.v134-location-screen .v14415-location-status-banner::after{inset:-2px -2px -6px!important;background-size:100% 100%!important}

/* 125% and 150%: preserve geometry, wrap copy, never enlarge image frames. */
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-card,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-card{min-height:112px!important}
html[data-ui-font-size="medium"] body.v127-ui .v1420-sell-card,
html[data-ui-font-size="large"] body.v127-ui .v1420-sell-card{min-height:90px!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-hero{grid-template-columns:48px minmax(0,1fr) 62px 68px!important;gap:4px!important}
html[data-ui-font-size="large"] body.v127-ui .v14413-shop-title h2{font-size:14px!important}
html[data-ui-font-size="large"] body.v127-ui .v1421-shop-tabs>button b{font-size:7.4px!important}
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-card{grid-template-columns:58px minmax(0,1fr) 82px!important;gap:6px!important}
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-action{width:82px!important}
html[data-ui-font-size="large"] body.v127-ui .v1420-sell-card{grid-template-columns:48px minmax(0,1fr) 80px!important;gap:6px!important}
html[data-ui-font-size="large"] body.v127-ui .v14416-sell-action{width:80px!important;max-width:80px!important}

@media(max-width:370px){
  html body.v127-ui .modal.v1421-shop-modal{width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important}
  html body.v127-ui .v14413-shop-hero{grid-template-columns:44px minmax(0,1fr) 57px 62px!important;padding-inline:6px!important;gap:4px!important}
  html body.v127-ui .v1420-offer-card{grid-template-columns:54px minmax(0,1fr) 76px!important;gap:5px!important;padding:7px!important}
  html body.v127-ui .v1420-offer-art{width:51px!important;height:66px!important}
  html body.v127-ui .v1420-offer-action{width:76px!important}
  html body.v127-ui .v1420-sell-card{grid-template-columns:46px minmax(0,1fr) 74px!important;gap:5px!important;padding:7px!important}
  html body.v127-ui .v14416-sell-action{width:74px!important;max-width:74px!important}
  html body.v127-ui .v146101-pit-main .v146101-pit-scene{height:clamp(390px,58dvh,580px)!important;min-height:390px!important}
  html body.v127-ui .v76-confirm-dialog{padding-inline:12px!important}
}

/* ===== css/v146105-scoped-rarity-equipment-pit-merchant.css ===== */
/* Aldos RPG v1.146.105
   Scoped correction on top of the known-good v1.146.103 UI.
   This file must not style location monster cards, battle panels or their buttons. */

html body.v127-ui :is(.rarity-common,.rarity-обычный,.rarity-часто,.rarity-иногда){
  --v146105-line:#a9b5b8;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-common.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-common.webp");
  --v146105-slot:url("../assets/v146105/ui/rarity/slot/item-slot-common.webp");
  --v146105-merchant:url("../assets/v146105/ui/rarity/merchant/item-card-common.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-common.webp");
}
html body.v127-ui :is(.rarity-uncommon,.rarity-необычный,.rarity-низко){
  --v146105-line:#48df7a;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-uncommon.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-uncommon.webp");
  --v146105-slot:url("../assets/v146105/ui/rarity/slot/item-slot-uncommon.webp");
  --v146105-merchant:url("../assets/v146105/ui/rarity/merchant/item-card-uncommon.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-uncommon.webp");
}
html body.v127-ui :is(.rarity-rare,.rarity-редкий){
  --v146105-line:#4aa8ff;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-rare.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-rare.webp");
  --v146105-slot:url("../assets/v146105/ui/rarity/slot/item-slot-rare.webp");
  --v146105-merchant:url("../assets/v146105/ui/rarity/merchant/item-card-rare.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-rare.webp");
}
html body.v127-ui :is(.rarity-epic,.rarity-эпический,.rarity-редко){
  --v146105-line:#ba68ff;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-epic.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-epic.webp");
  --v146105-slot:url("../assets/v146105/ui/rarity/slot/item-slot-epic.webp");
  --v146105-merchant:url("../assets/v146105/ui/rarity/merchant/item-card-epic.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-epic.webp");
}
html body.v127-ui :is(.rarity-legendary,.rarity-легендарный,.rarity-очень-редко){
  --v146105-line:#f0b43f;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-legendary.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-legendary.webp");
  --v146105-slot:url("../assets/v146105/ui/rarity/slot/item-slot-legendary.webp");
  --v146105-merchant:url("../assets/v146105/ui/rarity/merchant/item-card-legendary.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-legendary.webp");
}
html body.v127-ui :is(.rarity-mythic,.rarity-мифический){
  --v146105-line:#ff526f;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-mythic.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-mythic.webp");
  --v146105-slot:url("../assets/v146105/ui/rarity/slot/item-slot-mythic.webp");
  --v146105-merchant:url("../assets/v146105/ui/rarity/merchant/item-card-mythic.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-mythic.webp");
}

/* Material frequency is presentation metadata. Preserve its established colour family. */
html body.v127-ui .material-frequency-sometimes{
  --v146105-line:#a9b5b8;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-common.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-common.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-common.webp");
}
html body.v127-ui .material-frequency-low{
  --v146105-line:#48df7a;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-uncommon.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-uncommon.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-uncommon.webp");
}
html body.v127-ui .material-frequency-often{
  --v146105-line:#4aa8ff;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-rare.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-rare.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-rare.webp");
}
html body.v127-ui .material-frequency-rare{
  --v146105-line:#ba68ff;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-epic.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-epic.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-epic.webp");
}
html body.v127-ui .material-frequency-very-rare{
  --v146105-line:#f0b43f;
  --v146105-full:url("../assets/v146105/ui/rarity/full/item-card-legendary.webp");
  --v146105-mini:url("../assets/v146105/ui/rarity/mini/item-card-legendary.webp");
  --v146105-pit:url("../assets/v146105/ui/rarity/pit/item-card-legendary.webp");
}

/* Inventory and equipment picker: dark rarity art, one restrained edge, no white aura. */
html body.v127-ui .v119-inventory-list>.v124-item-card[class*="rarity-"],
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker[class*="rarity-"]{
  border:2px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 82%,#071012)!important;
  border-radius:9px!important;
  background:var(--v146105-mini) center/100% 100% no-repeat!important;
  box-shadow:0 7px 18px rgba(0,0,0,.42),inset 0 0 0 1px rgba(0,0,0,.48)!important;
  filter:none!important;
  overflow:hidden!important;
}
html body.v127-ui :is(.v119-inventory-list,.v98-picker-modal) .v124-item-card[class*="rarity-"]>.v39-item-aura{
  display:none!important;
  animation:none!important;
  background:none!important;
}
html body.v127-ui :is(.v119-inventory-list,.v98-picker-modal) .v124-item-card[class*="rarity-"] :is(.v124-item-rarity,.v127-item-primary-tag){
  color:var(--v146105-line)!important;
}

/* Full item card: the old v103 structure remains; only its rarity surface is replaced. */
html body.v127-ui .v122-item-detail-card[class*="rarity-"]{
  border:2px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 86%,#05090a)!important;
  border-radius:12px!important;
  background:var(--v146105-full) center/100% 100% no-repeat!important;
  box-shadow:0 12px 30px rgba(0,0,0,.48),inset 0 0 0 1px rgba(0,0,0,.55)!important;
  filter:none!important;
  overflow:hidden!important;
}
html body.v127-ui .v122-item-detail-card[class*="rarity-"]>.v39-item-aura{
  display:none!important;
  animation:none!important;
  background:none!important;
}

/* Equipment: filled slots are square and rarity-backed. Empty/ghost slots stay neutral. */
html body.v127-ui .v39-slot-grid>.v39-equip-slot.filled:not(.two-hand-ghost)[class*="rarity-"]{
  border:2px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 84%,#050b0d)!important;
  border-radius:4px!important;
  background:var(--v146105-slot) center/100% 100% no-repeat!important;
  box-shadow:0 6px 16px rgba(0,0,0,.42),inset 0 0 0 1px rgba(0,0,0,.46)!important;
  filter:none!important;
  overflow:hidden!important;
}
html body.v127-ui .v39-slot-grid>.v39-equip-slot:is(.empty,.two-hand-ghost){
  border:1px solid rgba(115,139,137,.42)!important;
  border-radius:4px!important;
  background:linear-gradient(155deg,rgba(19,34,36,.96),rgba(5,14,17,.99))!important;
  box-shadow:inset 0 0 20px rgba(0,0,0,.46)!important;
  filter:none!important;
}
html body.v127-ui .v39-slot-grid>.v39-equip-slot.filled .v39-slot-icon{
  border-color:color-mix(in srgb,var(--v146105-line,#a9b5b8) 58%,transparent)!important;
  background:rgba(0,7,10,.72)!important;
}
html body.v127-ui .v39-slot-grid>.v39-equip-slot.filled .v77-slot-rarity{
  color:var(--v146105-line)!important;
}

/* Merchant: retain v103 frame/DOM, darken only its surfaces and repair card placement. */
html body.v127-ui .v1421-merchant-shop{
  background:linear-gradient(rgba(0,7,9,.18),rgba(0,5,7,.34)),url("../assets/v146105/ui/merchant/merchant-screen.webp") center/cover no-repeat!important;
}
html body.v127-ui .v14413-shop-hero{
  border-bottom:1px solid rgba(198,164,87,.50)!important;
  background:linear-gradient(rgba(0,5,7,.08),rgba(0,5,7,.18)),url("../assets/v146105/ui/merchant/merchant-header.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui .v1421-shop-tabs>button{
  border:1px solid rgba(111,145,139,.34)!important;
  background:url("../assets/v146105/ui/merchant/merchant-tab.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui .v1421-shop-tabs>button.active{
  border-color:rgba(215,174,83,.76)!important;
  box-shadow:inset 0 -2px #d7ae53!important;
}
html body.v127-ui :is(.v14413-shop-overview,.v14413-merchant-summary>div,.v1420-demand-card,.v1420-order-active,.v1420-order-empty,.v14413-section-note,.v14415-repair-summary,.v14415-repair-card,.v14415-dialogue-stage){
  border:1px solid rgba(106,142,136,.34)!important;
  background:url("../assets/v146105/ui/merchant/merchant-panel.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui :is(.v1420-offer-card,.v1420-sell-card)[class*="rarity-"]{
  border:2px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 78%,#061012)!important;
  border-radius:9px!important;
  background:var(--v146105-merchant) center/100% 100% no-repeat!important;
  box-shadow:0 6px 16px rgba(0,0,0,.43),inset 0 0 0 1px rgba(0,0,0,.45)!important;
  filter:none!important;
  overflow:hidden!important;
}
html body.v127-ui .v1420-offer-card{
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) 88px!important;
  grid-template-areas:"art copy action"!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:120px!important;
  height:auto!important;
  padding:9px!important;
}
html body.v127-ui .v1420-offer-card>.v1420-offer-art{
  grid-area:art!important;
  width:58px!important;
  height:72px!important;
  align-self:center!important;
}
html body.v127-ui .v1420-offer-card>.v1420-offer-copy{
  grid-area:copy!important;
  min-width:0!important;
  overflow:hidden!important;
}
html body.v127-ui .v1420-offer-copy>p{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  margin:2px 0!important;
  overflow:hidden!important;
  color:#aebbb7!important;
  font-size:7.5px!important;
  line-height:1.22!important;
}
html body.v127-ui .v1420-offer-card>.v1420-offer-action{
  grid-area:action!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:88px!important;
  min-width:0!important;
  margin:0!important;
  align-self:stretch!important;
}
html body.v127-ui .v1420-offer-action button{
  width:100%!important;
  min-width:0!important;
  min-height:38px!important;
  margin:0!important;
}
html body.v127-ui .v1420-sell-card{
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) 86px!important;
  grid-template-areas:"art copy action"!important;
  align-items:center!important;
  gap:8px!important;
  min-height:92px!important;
  height:auto!important;
  padding:8px!important;
}
html body.v127-ui .v1420-sell-card>span:first-child{grid-area:art!important}
html body.v127-ui .v1420-sell-card>div{grid-area:copy!important}
html body.v127-ui .v1420-sell-card>.v14416-sell-action{
  grid-area:action!important;
  width:86px!important;
  max-width:86px!important;
  min-width:0!important;
  margin:0!important;
}

/* Pit: keep the v103 ornate action buttons and vertical list; correct only frame and rarity rows. */
html body.v127-ui .v146101-pit-main{padding-bottom:112px!important}
html body.v127-ui .v146101-pit-main .v119-pit-screen{
  min-height:calc(100dvh - 126px)!important;
  height:auto!important;
  margin-bottom:18px!important;
  padding:12px 12px 22px!important;
  grid-template-rows:auto minmax(480px,auto) auto!important;
  overflow:visible!important;
}
html body.v127-ui .v146101-pit-main .v119-pit-screen::before{
  inset:4px!important;
  bottom:4px!important;
  border-radius:8px!important;
  background-size:100% 100%!important;
  opacity:.58!important;
}
html body.v127-ui .v146101-pit-main .v146101-pit-scene{
  height:auto!important;
  min-height:clamp(480px,63dvh,720px)!important;
  padding:14px 8px 12px!important;
  overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-track{
  width:100%!important;
  margin:0!important;
  padding:6px!important;
  gap:9px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
html body.v127-ui .v146101-pit-loot-card[class*="rarity-"]{
  width:100%!important;
  max-width:100%!important;
  min-height:126px!important;
  height:auto!important;
  padding:10px!important;
  border:2px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 82%,#050b0d)!important;
  border-radius:9px!important;
  background:var(--v146105-pit) center/100% 100% no-repeat!important;
  box-shadow:0 7px 17px rgba(0,0,0,.46),inset 0 0 0 1px rgba(0,0,0,.46)!important;
  filter:none!important;
  backdrop-filter:none!important;
  overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-art{
  border-color:color-mix(in srgb,var(--v146105-line,#a9b5b8) 58%,transparent)!important;
  background:rgba(0,5,8,.72)!important;
}
html body.v127-ui .v146101-pit-loot-actions{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  height:40px!important;
  gap:8px!important;
}
html body.v127-ui .v146101-pit-loot-actions button{
  height:40px!important;
  min-height:40px!important;
  margin:0!important;
  padding:0 9px!important;
}

@media(max-width:390px){
  html body.v127-ui .v1420-offer-card{
    grid-template-columns:56px minmax(0,1fr) 78px!important;
    gap:6px!important;
    min-height:120px!important;
    padding:8px!important;
  }
  html body.v127-ui .v1420-offer-card>.v1420-offer-art{width:53px!important;height:68px!important}
  html body.v127-ui .v1420-offer-card>.v1420-offer-action{width:78px!important}
  html body.v127-ui .v1420-sell-card{grid-template-columns:46px minmax(0,1fr) 76px!important;gap:6px!important}
  html body.v127-ui .v1420-sell-card>.v14416-sell-action{width:76px!important;max-width:76px!important}
  html body.v127-ui .v146101-pit-main .v119-pit-screen{padding-inline:8px!important}
  html body.v127-ui .v146101-pit-main .v146101-pit-scene{min-height:430px!important;padding-inline:5px!important}
}

html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-card,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-card{min-height:134px!important}
html[data-ui-font-size="medium"] body.v127-ui .v1420-sell-card,
html[data-ui-font-size="large"] body.v127-ui .v1420-sell-card{min-height:102px!important}
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-copy>p{-webkit-line-clamp:1!important}

/* ===== css/v146106-mobile-merchant-pit-item-layout-hotfix.css ===== */
/* Aldos RPG v1.146.106 — targeted mobile layout hotfix.
   No new images. Uses only existing v1.146.103/v1.146.105 assets.
   Scope: Marek tabs/offers, location monster action labels, Pit loot actions/metrics, full item detail background. */

/* 1) Marek tabs: icon and text stay on one horizontal line inside the selected frame. */
html body.v127-ui .v1421-shop-tabs>button{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  padding:4px 6px!important;
  min-width:0!important;
  overflow:hidden!important;
}
html body.v127-ui .v1421-shop-tabs>button>span{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  line-height:0!important;
}
html body.v127-ui .v1421-shop-tabs>button :is(img,svg){
  display:block!important;
  width:17px!important;
  height:17px!important;
  max-width:17px!important;
  max-height:17px!important;
  object-fit:contain!important;
}
html body.v127-ui .v1421-shop-tabs>button b{
  min-width:0!important;
  margin:0!important;
  font-size:8.5px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* 2) Marek product cards: readable copy and stable action column at normal scale. */
html body.v127-ui .v1420-offer-card{
  grid-template-columns:64px minmax(0,1fr) 86px!important;
  grid-template-areas:"art copy action"!important;
  align-items:center!important;
  gap:8px!important;
  min-height:124px!important;
  padding:9px!important;
}
html body.v127-ui .v1420-offer-card>.v1420-offer-art{
  width:60px!important;
  height:76px!important;
  align-self:center!important;
}
html body.v127-ui .v1420-offer-card>.v1420-offer-copy{
  min-width:0!important;
  overflow:visible!important;
  display:grid!important;
  align-content:center!important;
  gap:3px!important;
}
html body.v127-ui .v1420-offer-copy .v14413-offer-kicker{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:5px!important;
}
html body.v127-ui .v1420-offer-copy .v14413-offer-kicker :is(small,span){
  min-width:0!important;
  font-size:7px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v127-ui .v1420-offer-copy>b{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  margin:0!important;
  font-size:11.5px!important;
  line-height:1.14!important;
}
html body.v127-ui .v1420-offer-copy>p{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  min-height:0!important;
  margin:0!important;
  font-size:7.5px!important;
  line-height:1.2!important;
}
html body.v127-ui .v14644-personal-note{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  margin:0!important;
  padding:3px 6px!important;
  border-radius:8px!important;
  font-size:7px!important;
  line-height:1.15!important;
}
html body.v127-ui .v14420-market-line{
  min-width:0!important;
  margin:0!important;
  font-size:7px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v127-ui .v14413-offer-stats{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:3px 6px!important;
  min-width:0!important;
  overflow:hidden!important;
}
html body.v127-ui .v14413-offer-stats em{
  max-width:100%!important;
  margin:0!important;
  font-size:6.8px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
html body.v127-ui .v1420-offer-card>.v1420-offer-action{
  width:86px!important;
  min-width:0!important;
  align-self:stretch!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) 40px!important;
  align-items:center!important;
  gap:6px!important;
}
html body.v127-ui .v1420-offer-action>span{
  min-width:0!important;
  display:grid!important;
  align-content:center!important;
  justify-items:start!important;
  gap:1px!important;
}
html body.v127-ui .v1420-offer-action>span :is(small,del,strong){
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v127-ui .v1420-offer-action strong{
  font-size:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body.v127-ui .v1420-offer-action button{
  width:100%!important;
  min-width:0!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 6px!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
}

/* Narrow phones and 125/150% UI: move price + Buy to their own row instead of squeezing the description. */
@media(max-width:430px){
  html body.v127-ui .v1420-offer-card{
    grid-template-columns:62px minmax(0,1fr)!important;
    grid-template-areas:"art copy" "action action"!important;
    grid-template-rows:auto auto!important;
    min-height:154px!important;
    gap:7px 8px!important;
  }
  html body.v127-ui .v1420-offer-card>.v1420-offer-art{width:58px!important;height:72px!important}
  html body.v127-ui .v1420-offer-card>.v1420-offer-action{
    grid-area:action!important;
    width:100%!important;
    min-height:42px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 96px!important;
    grid-template-rows:42px!important;
    align-items:center!important;
    gap:8px!important;
  }
  html body.v127-ui .v1420-offer-action>span{padding-left:4px!important}
  html body.v127-ui .v1420-offer-action button{height:42px!important;min-height:42px!important}
}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-card,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-card{
  grid-template-columns:62px minmax(0,1fr)!important;
  grid-template-areas:"art copy" "action action"!important;
  grid-template-rows:auto auto!important;
  min-height:162px!important;
  gap:7px 8px!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-card>.v1420-offer-action,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-card>.v1420-offer-action{
  grid-area:action!important;
  width:100%!important;
  min-height:42px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 100px!important;
  grid-template-rows:42px!important;
  align-items:center!important;
  gap:8px!important;
}
html[data-ui-font-size="medium"] body.v127-ui .v1420-offer-copy>p,
html[data-ui-font-size="large"] body.v127-ui .v1420-offer-copy>p{-webkit-line-clamp:2!important}
html[data-ui-font-size="large"] body.v127-ui .v1421-shop-tabs>button{gap:4px!important;padding-inline:4px!important}
html[data-ui-font-size="large"] body.v127-ui .v1421-shop-tabs>button b{font-size:7.5px!important}

/* 3) Location monster action labels: true optical vertical centering. */
html body.v127-ui.v134-location-screen .v119-monster-actions button{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button>span{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}

/* 4) Pit: keep existing ornate assets, but stop stretching them across half the card. */
html body.v127-ui .v146101-pit-loot-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  justify-items:center!important;
  align-items:center!important;
  gap:8px!important;
  height:42px!important;
}
html body.v127-ui .v146101-pit-loot-actions button{
  width:min(100%,132px)!important;
  max-width:132px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 8px!important;
  margin:0 auto!important;
  display:grid!important;
  place-items:center!important;
  background-size:100% 100%!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  line-height:1!important;
  overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-actions button.primary{background-image:url("../assets/v146103/ui/buttons/take.webp")!important}
html body.v127-ui .v146101-pit-loot-actions button.danger{background-image:url("../assets/v146103/ui/buttons/discard.webp")!important}

/* 5) Full item detail: preserve the portrait rarity artwork ratio instead of stretching it sideways. */
html body.v127-ui .v122-item-modal{
  width:min(560px,calc(100vw - 14px))!important;
  max-width:min(560px,calc(100vw - 14px))!important;
  max-height:calc(100dvh - 14px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
html body.v127-ui .v122-item-detail-card[class*="rarity-"]{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  background-image:linear-gradient(rgba(4,12,14,.08),rgba(4,10,12,.28)),var(--v146105-full)!important;
  background-position:center,center top!important;
  background-size:100% 100%,auto 100%!important;
  background-repeat:no-repeat,no-repeat!important;
  background-color:#081214!important;
}
html body.v127-ui .v122-item-detail-card .v122-item-detail-head,
html body.v127-ui .v122-item-detail-card .v122-item-facts,
html body.v127-ui .v122-item-detail-card .v97-item-requirements,
html body.v127-ui .v122-item-detail-card .v97-item-detail-actions{
  min-width:0!important;
  max-width:100%!important;
}

@media(max-width:370px){
  html body.v127-ui .v1421-shop-tabs>button{gap:3px!important;padding-inline:3px!important}
  html body.v127-ui .v1421-shop-tabs>button>span{flex-basis:16px!important;width:16px!important;min-width:16px!important;height:16px!important}
  html body.v127-ui .v1421-shop-tabs>button :is(img,svg){width:15px!important;height:15px!important}
  html body.v127-ui .v1421-shop-tabs>button b{font-size:7.3px!important}
  html body.v127-ui .v146101-pit-loot-actions button{max-width:118px!important}
}

/* ===== css/v146107-mobile-travel-inventory-item-monster-polish.css ===== */
/* Aldos RPG v1.146.107 — mobile travel / inventory / item / monster / Pit UI polish.
   No generated images. Reuses existing v146103/v146105 assets only. */

/* -------------------------------------------------------------------------- */
/* 1) Travel actions: Fast travel lives immediately above Cancel.             */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146100-travel-card .v146107-travel-actions{
  flex:0 0 auto!important;
  width:100%!important;
  margin-top:auto!important;
  display:grid!important;
  justify-items:center!important;
  align-content:end!important;
  gap:7px!important;
  padding-top:10px!important;
}
html body.v127-ui .v146100-travel-card .v146107-travel-actions .v14644-travel-sign{
  position:relative!important;
  isolation:isolate!important;
  width:min(310px,78%)!important;
  min-height:44px!important;
  height:44px!important;
  margin:0!important;
  padding:0 18px!important;
  display:grid!important;
  grid-template-columns:25px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  border:0!important;
  border-radius:0!important;
  background:url("../assets/v146103/ui/buttons/info.webp") center/100% 100% no-repeat!important;
  box-shadow:none!important;
  overflow:hidden!important;
  color:#f2f6ee!important;
  text-shadow:0 2px 3px #000!important;
}
html body.v127-ui .v146100-travel-card .v146107-travel-actions .v14644-travel-sign img{
  width:23px!important;
  height:23px!important;
  max-width:23px!important;
  max-height:23px!important;
  object-fit:contain!important;
  margin:0!important;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.72))!important;
}
html body.v127-ui .v146100-travel-card .v146107-travel-actions .v14644-travel-sign span{
  min-width:0!important;
  text-align:center!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v127-ui .v146100-travel-card .v146107-travel-actions .v14644-travel-sign small{
  color:#d9f1e6!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body.v127-ui .v146100-travel-card .v146107-travel-actions .v14416-travel-cancel{
  width:min(340px,84%)!important;
  min-height:48px!important;
  height:48px!important;
  margin:0!important;
}

/* -------------------------------------------------------------------------- */
/* 2) Inventory quick filters: asset-backed, compact horizontal carousel.      */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146107-inventory-quick-filters{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:stretch!important;
  gap:7px!important;
  width:100%!important;
  margin:0!important;
  padding:5px 4px 7px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}
html body.v127-ui .v146107-inventory-quick-filters::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html body.v127-ui .v146107-inventory-quick-filters>button{
  flex:0 0 88px!important;
  width:88px!important;
  min-width:88px!important;
  max-width:88px!important;
  height:48px!important;
  min-height:48px!important;
  padding:4px 7px!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  place-items:center!important;
  align-items:center!important;
  gap:5px!important;
  scroll-snap-align:start!important;
  border:1px solid rgba(105,145,139,.36)!important;
  border-radius:10px!important;
  background:url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important;
  box-shadow:inset 0 0 12px rgba(0,0,0,.28)!important;
  color:#c8d1cd!important;
  overflow:hidden!important;
}
html body.v127-ui .v146107-inventory-quick-filters>button.active,
html body.v127-ui .v146107-inventory-quick-filters>button[aria-pressed="true"]{
  border-color:rgba(226,181,77,.88)!important;
  color:#f3d67d!important;
  box-shadow:inset 0 0 0 1px rgba(226,181,77,.24),inset 0 0 14px rgba(197,151,55,.14),0 3px 9px rgba(0,0,0,.28)!important;
}
html body.v127-ui .v146107-inventory-quick-filters>button :is(img,svg,.v83-ui-icon,.v119-material-filter-icon){
  width:21px!important;
  height:21px!important;
  max-width:21px!important;
  max-height:21px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  transform:none!important;
}
html body.v127-ui .v146107-inventory-quick-filters>button>span{
  min-width:0!important;
  max-width:100%!important;
  font-size:8px!important;
  font-weight:800!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v127-ui .v119-inventory-tools.v123-inventory-search{
  margin-top:1px!important;
}

/* -------------------------------------------------------------------------- */
/* 3) Location monster actions: asset is the actual button box, not a layer   */
/*    hanging outside it.                                                     */
/* -------------------------------------------------------------------------- */
html body.v127-ui.v134-location-screen .v119-monster-actions{
  height:38px!important;
  min-height:38px!important;
  gap:5px!important;
  transform:none!important;
  margin:0!important;
  padding:0 2px 2px!important;
  align-self:end!important;
  overflow:visible!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button{
  position:relative!important;
  isolation:isolate!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  padding:0 7px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
  line-height:1!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions .v146101-monster-button-bg{
  position:absolute!important;
  z-index:0!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
  filter:none!important;
  pointer-events:none!important;
}
html body.v127-ui.v134-location-screen .v119-monster-actions button>span{
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-size:9.5px!important;
  font-weight:850!important;
  line-height:1!important;
  transform:none!important;
  text-shadow:0 2px 3px #000!important;
}

/* -------------------------------------------------------------------------- */
/* 4) Pit loot: rarity/frequency surface is preserved, actions are compact.    */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146101-pit-loot-card{
  grid-template-columns:66px minmax(0,1fr)!important;
  grid-template-rows:minmax(66px,auto) 36px!important;
  gap:7px 9px!important;
  min-height:112px!important;
  padding:9px 10px!important;
}
html body.v127-ui .v146101-pit-loot-art{
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  min-height:64px!important;
  align-self:center!important;
}
html body.v127-ui .v146101-pit-loot-copy{
  align-self:center!important;
  min-width:0!important;
}
html body.v127-ui .v146101-pit-loot-copy strong{
  font-size:13px!important;
  line-height:1.08!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-copy small{
  margin-top:4px!important;
  font-size:8px!important;
  line-height:1.1!important;
}
html body.v127-ui .v146101-pit-loot-actions{
  grid-column:1/-1!important;
  height:36px!important;
  min-height:36px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:9px!important;
  padding:0 10px!important;
}
html body.v127-ui .v146101-pit-loot-actions button{
  position:relative!important;
  isolation:isolate!important;
  width:100%!important;
  max-width:118px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  justify-self:center!important;
  margin:0!important;
  padding:0 8px!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
  line-height:1!important;
  color:#fff!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146107-pit-action-bg{
  position:absolute!important;
  z-index:0!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:fill!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  pointer-events:none!important;
}
html body.v127-ui .v146101-pit-loot-actions button>span{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  font-size:9.5px!important;
  font-weight:850!important;
  line-height:1!important;
  transform:none!important;
  text-shadow:0 2px 3px #000!important;
}

/* -------------------------------------------------------------------------- */
/* 5) Full item card: same information, noticeably shorter and denser.         */
/* -------------------------------------------------------------------------- */
html body.v127-ui .modal.v122-item-modal{
  width:min(520px,calc(100vw - 12px))!important;
  max-width:min(520px,calc(100vw - 12px))!important;
  max-height:calc(100dvh - 10px)!important;
  padding:10px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
html body.v127-ui .modal.v122-item-modal>h1{
  margin:0 48px 7px 0!important;
  font-size:25px!important;
  line-height:1.02!important;
}
html body.v127-ui .v146107-item-detail-compact{
  gap:7px!important;
  padding:10px!important;
}
html body.v127-ui .v146107-item-detail-compact>.v122-item-detail-head{
  grid-template-columns:72px minmax(0,1fr)!important;
  min-height:108px!important;
  padding:9px!important;
  gap:9px!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-detail-head>.v97-item-detail-icon{
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  height:86px!important;
  min-height:86px!important;
  max-height:86px!important;
  padding:6px!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-detail-head>.v97-item-detail-copy{
  gap:4px!important;
  padding-right:30px!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-detail-head>.v97-item-detail-copy>h2{
  font-size:clamp(17px,4.9vw,22px)!important;
  line-height:1.05!important;
  -webkit-line-clamp:2!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-detail-head>.v97-item-detail-copy>p{
  font-size:8px!important;
  line-height:1.3!important;
  -webkit-line-clamp:2!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-facts{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;
  padding:6px!important;
  border-radius:12px!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-facts>div,
html body.v127-ui .v146107-item-detail-compact .v122-item-facts>div.has-icon{
  min-height:48px!important;
  padding:5px 7px!important;
  grid-template-columns:27px minmax(0,1fr)!important;
  gap:6px!important;
  border-radius:10px!important;
  place-items:center start!important;
  text-align:left!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-facts .v127-fact-icon{
  width:26px!important;
  min-width:26px!important;
  height:26px!important;
  padding:4px!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-item-facts small{font-size:6.8px!important;line-height:1.05!important}
html body.v127-ui .v146107-item-detail-compact .v122-item-facts b{font-size:9.5px!important;line-height:1.1!important}
html body.v127-ui .v146107-item-detail-compact .v127-item-attributes{
  gap:5px!important;
  padding:7px!important;
  border-radius:12px!important;
}
html body.v127-ui .v146107-item-detail-compact .v127-item-attributes>header>span{
  width:29px!important;height:29px!important;padding:5px!important;border-radius:9px!important;
}
html body.v127-ui .v146107-item-detail-compact .v127-item-attributes h3{font-size:13px!important}
html body.v127-ui .v146107-item-detail-compact .v127-item-attributes>div{gap:5px!important}
html body.v127-ui .v146107-item-detail-compact .v127-item-attributes>div>span{
  min-height:40px!important;
  grid-template-columns:25px minmax(0,1fr) auto!important;
  gap:5px!important;
  padding:5px!important;
  border-radius:9px!important;
}
html body.v127-ui .v146107-item-detail-compact .v127-item-attributes>div>span>img{width:24px!important;height:24px!important;padding:3px!important}
html body.v127-ui .v146107-item-detail-compact .v127-item-attributes>p{display:none!important}
html body.v127-ui .v146107-item-detail-compact .v14623-item-forge-detail{
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:7px!important;
  margin:0!important;
  padding:7px 9px!important;
  border-radius:11px!important;
}
html body.v127-ui .v146107-item-detail-compact .v14623-item-forge-detail>img{width:40px!important;height:40px!important}
html body.v127-ui .v146107-item-detail-compact .v14623-item-forge-detail h3{margin:1px 0 2px!important;font-size:12px!important;line-height:1.1!important}
html body.v127-ui .v146107-item-detail-compact .v14623-item-forge-detail p{
  margin:0!important;
  font-size:8px!important;
  line-height:1.25!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
html body.v127-ui .v146107-item-detail-compact .v97-item-requirements{
  margin:0!important;
  padding:7px 9px!important;
  border-radius:11px!important;
}
html body.v127-ui .v146107-item-detail-compact .v97-item-requirements h3{
  margin:0 0 5px!important;
  font-size:12px!important;
  line-height:1.05!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-class-requirements>div{gap:5px!important}
html body.v127-ui .v146107-item-detail-compact .v122-class-requirements span{
  min-height:31px!important;
  padding:4px 8px!important;
  border-radius:9px!important;
}
html body.v127-ui .v146107-item-detail-compact .v122-class-requirements :is(svg,img){width:18px!important;height:18px!important}
html body.v127-ui .v146107-item-detail-compact .v132-equipment-feature{
  gap:5px!important;
  margin-top:0!important;
  padding:6px!important;
  border-radius:11px!important;
}
html body.v127-ui .v146107-item-detail-compact .v132-equipment-bonus,
html body.v127-ui .v146107-item-detail-compact .v132-equipment-socket{
  grid-template-columns:32px minmax(0,1fr)!important;
  gap:7px!important;
  min-height:48px!important;
  padding:6px 8px!important;
  border-radius:9px!important;
}
html body.v127-ui .v146107-item-detail-compact .v132-equipment-bonus>span,
html body.v127-ui .v146107-item-detail-compact .v132-socket-art{
  width:31px!important;
  height:31px!important;
  padding:4px!important;
  border-radius:9px!important;
}
html body.v127-ui .v146107-item-detail-compact .v132-equipment-bonus small,
html body.v127-ui .v146107-item-detail-compact .v132-equipment-socket small{font-size:7px!important}
html body.v127-ui .v146107-item-detail-compact .v132-equipment-bonus b,
html body.v127-ui .v146107-item-detail-compact .v132-equipment-socket b{font-size:10px!important;line-height:1.15!important}
html body.v127-ui .v146107-item-detail-compact .v132-equipment-bonus p{
  margin:2px 0 0!important;
  font-size:7.5px!important;
  line-height:1.23!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
html body.v127-ui .v146107-item-detail-compact .v97-item-detail-actions{
  gap:7px!important;
  margin-top:1px!important;
}
html body.v127-ui .v146107-item-detail-compact .v97-item-detail-actions button{
  min-height:42px!important;
  height:42px!important;
  padding:6px 8px!important;
}

/* -------------------------------------------------------------------------- */
/* 6) Monster info: compact sheet + rarity/frequency artwork on possible loot.*/
/* -------------------------------------------------------------------------- */
html body.v127-ui .modal.v122-monster-modal{
  width:min(560px,calc(100vw - 12px))!important;
  max-width:min(560px,calc(100vw - 12px))!important;
  max-height:calc(100dvh - 12px)!important;
  padding:9px!important;
  overflow:hidden!important;
}
html body.v127-ui .modal.v122-monster-modal>h1{
  margin:0 46px 7px 0!important;
  font-size:24px!important;
  line-height:1.02!important;
}
html body.v127-ui .v122-monster-sheet{
  gap:7px!important;
  max-height:calc(100dvh - 74px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:3px!important;
}
html body.v127-ui .v122-monster-intro{
  grid-template-columns:94px minmax(0,1fr)!important;
  gap:8px!important;
}
html body.v127-ui .v122-monster-portrait{
  height:105px!important;
  min-height:105px!important;
  border-radius:12px!important;
}
html body.v127-ui .v122-monster-copy>p{
  margin-top:5px!important;
  font-size:8.5px!important;
  line-height:1.28!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
  overflow:hidden!important;
}
html body.v127-ui .v122-monster-section{
  padding:7px!important;
  border-radius:11px!important;
}
html body.v127-ui .v122-monster-section h3{
  margin:0 0 5px!important;
  font-size:13px!important;
  line-height:1.05!important;
}
html body.v127-ui .v125-monster-stat-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;
}
html body.v127-ui .v125-monster-stat-grid article{
  grid-template-columns:25px minmax(0,1fr)!important;
  gap:5px!important;
  min-height:42px!important;
  padding:5px 6px!important;
  border-radius:9px!important;
}
html body.v127-ui .v125-monster-stat-grid article>:first-child{
  width:24px!important;
  height:24px!important;
  padding:4px!important;
  border-radius:7px!important;
}
html body.v127-ui .v125-monster-stat-grid small{font-size:6.5px!important}
html body.v127-ui .v125-monster-stat-grid b{font-size:9px!important;line-height:1.05!important}
html body.v127-ui .v122-monster-loot-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  max-height:214px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:1px 3px 1px 1px!important;
  touch-action:pan-y!important;
}
html body.v127-ui .v122-monster-loot[class*="rarity-"]{
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:6px!important;
  min-height:54px!important;
  padding:5px!important;
  border:1px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 76%,#061012)!important;
  border-radius:9px!important;
  background:var(--v146105-mini) center/100% 100% no-repeat!important;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.38),0 3px 8px rgba(0,0,0,.32)!important;
  overflow:hidden!important;
}
html body.v127-ui .v122-monster-loot>span{
  width:38px!important;
  height:38px!important;
  border:1px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 48%,transparent)!important;
  border-radius:8px!important;
  background:rgba(0,7,10,.66)!important;
}
html body.v127-ui .v122-monster-loot b{
  font-size:8.2px!important;
  line-height:1.08!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  overflow:hidden!important;
}
html body.v127-ui .v122-monster-loot small{
  margin-top:2px!important;
  font-size:6.3px!important;
  line-height:1.12!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  white-space:normal!important;
  overflow:hidden!important;
  color:#b9c2bd!important;
}

/* 125% / 150%: keep the same geometry; wrap instead of growing frames. */
html[data-ui-font-size="medium"] body.v127-ui .v146107-inventory-quick-filters>button,
html[data-ui-font-size="large"] body.v127-ui .v146107-inventory-quick-filters>button{
  flex-basis:94px!important;width:94px!important;min-width:94px!important;max-width:94px!important;
}
html[data-ui-font-size="large"] body.v127-ui .v146107-inventory-quick-filters>button>span{font-size:7.2px!important}
html[data-ui-font-size="medium"] body.v127-ui .v146107-item-detail-compact .v122-item-facts>div,
html[data-ui-font-size="large"] body.v127-ui .v146107-item-detail-compact .v122-item-facts>div{
  min-height:50px!important;
}

@media(max-width:370px){
  html body.v127-ui .v146100-travel-card .v146107-travel-actions .v14644-travel-sign{width:min(286px,82%)!important;padding-inline:13px!important}
  html body.v127-ui .v146107-inventory-quick-filters>button{flex-basis:82px!important;width:82px!important;min-width:82px!important;max-width:82px!important;padding-inline:5px!important}
  html body.v127-ui .v146107-inventory-quick-filters>button>span{font-size:7.3px!important}
  html body.v127-ui.v134-location-screen .v119-monster-actions button>span{font-size:9px!important}
  html body.v127-ui .v146101-pit-loot-actions{padding-inline:4px!important;gap:6px!important}
  html body.v127-ui .v146101-pit-loot-actions button{max-width:108px!important}
  html body.v127-ui .v146107-item-detail-compact .v122-item-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.v127-ui .v146107-item-detail-compact .v122-item-facts>div,
  html body.v127-ui .v146107-item-detail-compact .v122-item-facts>div.has-icon{grid-template-columns:24px minmax(0,1fr)!important;padding-inline:5px!important}
  html body.v127-ui .v122-monster-loot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
  html body.v127-ui .v122-monster-loot[class*="rarity-"]{grid-template-columns:34px minmax(0,1fr)!important;padding:4px!important}
  html body.v127-ui .v122-monster-loot>span{width:33px!important;height:33px!important}
}

/* ===== css/v146108-npd-item-pit-rarity-hotfix.css ===== */
/* Aldos RPG v1.146.108 — NPD admin flow + scoped mobile item/Pit fixes.
   No new/generated images: reuses existing v146103/v146105/v1443 art only. */

/* -------------------------------------------------------------------------- */
/* 1) Patron checkout: show where the electronic receipt will be delivered.   */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146108-receipt-email{
  display:grid!important;
  gap:3px!important;
  margin:7px 0 3px!important;
  padding:8px 10px!important;
  border:1px solid rgba(91,177,153,.35)!important;
  border-radius:10px!important;
  background:rgba(5,27,27,.68)!important;
  text-align:left!important;
}
html body.v127-ui .v146108-receipt-email small{font-size:7px!important;letter-spacing:.13em!important;color:#8bd4bc!important}
html body.v127-ui .v146108-receipt-email span{font-size:8px!important;color:#aab8b4!important}
html body.v127-ui .v146108-receipt-email b{font-size:10px!important;color:#edf6f1!important;overflow-wrap:anywhere!important}

/* -------------------------------------------------------------------------- */
/* 2) Admin NPD cards.                                                        */
/* -------------------------------------------------------------------------- */
body.v131-admin-open .v146108-npd-card{
  display:grid!important;
  gap:9px!important;
  margin:0 0 10px!important;
  padding:11px!important;
  border:1px solid rgba(222,169,70,.32)!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,rgba(19,31,31,.96),rgba(7,17,18,.98))!important;
  box-shadow:0 8px 20px rgba(0,0,0,.26)!important;
}
body.v131-admin-open .v146108-npd-card.pending{border-color:rgba(230,158,65,.55)!important}
body.v131-admin-open .v146108-npd-card.done{border-color:rgba(67,190,116,.55)!important}
body.v131-admin-open .v146108-npd-card.sent{border-color:rgba(77,185,165,.68)!important}
body.v131-admin-open .v146108-npd-card.disabled{opacity:.68!important}
body.v131-admin-open .v146108-npd-card>header{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:10px!important}
body.v131-admin-open .v146108-npd-card>header small{font-size:8px!important;color:#e7b55e!important;font-weight:850!important}
body.v131-admin-open .v146108-npd-card.done>header small,body.v131-admin-open .v146108-npd-card.sent>header small{color:#69dda0!important}
body.v131-admin-open .v146108-npd-card>header h3{margin:3px 0 0!important;font-size:15px!important;line-height:1.1!important}
body.v131-admin-open .v146108-npd-card>header time{font-size:8px!important;color:#81908b!important;white-space:nowrap!important}
body.v131-admin-open .v146108-npd-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
body.v131-admin-open .v146108-npd-grid>span{display:grid!important;gap:2px!important;min-width:0!important;padding:7px!important;border:1px solid rgba(105,145,139,.2)!important;border-radius:9px!important;background:rgba(3,13,15,.4)!important}
body.v131-admin-open .v146108-npd-grid small{font-size:7px!important;color:#7f918c!important}
body.v131-admin-open .v146108-npd-grid :is(b,code){font-size:9px!important;color:#e4ece8!important;overflow-wrap:anywhere!important}
body.v131-admin-open .v146108-npd-tax{display:grid!important;gap:5px!important;padding:9px!important;border:1px solid rgba(221,181,92,.28)!important;border-radius:10px!important;background:rgba(37,30,12,.34)!important}
body.v131-admin-open .v146108-npd-tax>small{font-size:7px!important;letter-spacing:.12em!important;color:#e5c270!important;font-weight:850!important}
body.v131-admin-open .v146108-npd-tax>div:not(.v146108-npd-copy){display:grid!important;grid-template-columns:105px minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
body.v131-admin-open .v146108-npd-tax>div>span{font-size:8px!important;color:#8b9793!important}
body.v131-admin-open .v146108-npd-tax>div>b{font-size:9px!important;color:#eef2ef!important}
body.v131-admin-open .v146108-npd-copy{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin-top:3px!important}
body.v131-admin-open .v146108-npd-copy button{min-height:35px!important;padding:6px!important;font-size:8px!important}
body.v131-admin-open .v146108-npd-link{display:grid!important;gap:4px!important;font-size:8px!important;color:#9aa8a3!important}
body.v131-admin-open .v146108-npd-link input{width:100%!important;min-width:0!important;height:38px!important;font-size:9px!important}
body.v131-admin-open .v146108-npd-send{display:grid!important;grid-template-columns:minmax(130px,210px) minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
body.v131-admin-open .v146108-npd-send button{height:39px!important}
body.v131-admin-open .v146108-npd-send small{font-size:8px!important;color:#92a39d!important;overflow-wrap:anywhere!important}
@media(max-width:430px){
  body.v131-admin-open .v146108-npd-grid{grid-template-columns:1fr!important}
  body.v131-admin-open .v146108-npd-send{grid-template-columns:1fr!important}
}

/* -------------------------------------------------------------------------- */
/* 3) Pit actions: kill legacy hanging layers; frame stays inside the button. */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146101-pit-loot-actions{height:34px!important;min-height:34px!important;padding:0 16px!important;gap:12px!important;overflow:visible!important}
html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action{
  position:relative!important;
  isolation:isolate!important;
  width:100%!important;
  max-width:112px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action::before,
html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action::after{content:none!important;display:none!important}
html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action>.v146107-pit-action-bg{inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;object-position:center!important;transform:none!important}
html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action>.v146108-pit-action-icon{position:relative!important;z-index:2!important;width:15px!important;height:15px!important;object-fit:contain!important;margin-right:4px!important;filter:drop-shadow(0 1px 2px #000)!important}
html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action>span{position:relative!important;z-index:2!important;height:auto!important;width:auto!important;display:inline!important;font-size:9px!important;line-height:1!important}
html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action.danger{display:flex!important;align-items:center!important;justify-content:center!important}

/* -------------------------------------------------------------------------- */
/* 4) Full item rarity portrait: fill the whole card width again.              */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146108-item-detail-fix[class*="rarity-"]{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  background-image:linear-gradient(rgba(4,11,12,.16),rgba(4,9,10,.26)),var(--v146105-full)!important;
  background-position:center,center!important;
  background-size:100% 100%,100% 100%!important;
  background-repeat:no-repeat,no-repeat!important;
  background-color:#071113!important;
}
html body.v127-ui .modal.v122-item-modal>.v146108-item-detail-fix{margin-inline:0!important}

/* Legendary skill change: icon and copy share one stable row. */
html body.v127-ui .v146108-item-detail-fix .v132-equipment-bonus.legendary-skill{
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-height:60px!important;
  padding:7px 9px!important;
}
html body.v127-ui .v146108-item-detail-fix .v132-equipment-bonus.legendary-skill>span{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:4px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  border-radius:9px!important;
  overflow:hidden!important;
}
html body.v127-ui .v146108-item-detail-fix .v132-equipment-bonus.legendary-skill>span :is(img,svg,.item-asset-image){
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:none!important;
}
html body.v127-ui .v146108-item-detail-fix .v132-equipment-bonus.legendary-skill>div{min-width:0!important;align-self:center!important}

/* Detail action buttons use the same existing ornate frames as Pit. */
html body.v127-ui .v146108-item-detail-fix .v97-item-detail-actions .v146108-detail-action{
  position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;height:40px!important;min-height:40px!important;padding:0 12px!important;border:0!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;overflow:hidden!important;color:#fff!important;
}
html body.v127-ui .v146108-item-detail-fix .v146108-detail-action::before,
html body.v127-ui .v146108-item-detail-fix .v146108-detail-action::after{content:none!important;display:none!important}
html body.v127-ui .v146108-item-detail-fix .v146108-detail-action-frame{position:absolute!important;z-index:0!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;pointer-events:none!important}
html body.v127-ui .v146108-item-detail-fix .v146108-detail-action-icon{position:relative!important;z-index:2!important;width:17px!important;height:17px!important;object-fit:contain!important;filter:drop-shadow(0 1px 2px #000)!important}
html body.v127-ui .v146108-item-detail-fix .v146108-detail-action>span{position:relative!important;z-index:2!important;font-size:10px!important;font-weight:850!important;text-shadow:0 1px 2px #000!important}

/* -------------------------------------------------------------------------- */
/* 5) Inventory: materials/consumables use established rarity/frequency art.  */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v119-inventory-list>.v124-item-card.type-material[class*="rarity-"],
html body.v127-ui .v119-inventory-list>.v124-item-card.type-consumable[class*="rarity-"],
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-material[class*="rarity-"],
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-consumable[class*="rarity-"]{
  border:2px solid color-mix(in srgb,var(--v146105-line,#a9b5b8) 82%,#050b0d)!important;
  background:var(--v146105-mini) center/100% 100% no-repeat!important;
  box-shadow:0 5px 13px rgba(0,0,0,.38),inset 0 0 0 1px rgba(0,0,0,.45)!important;
}
html body.v127-ui .v122-item-detail-card.type-material[class*="rarity-"],
html body.v127-ui .v122-item-detail-card.type-consumable[class*="rarity-"]{
  background-image:linear-gradient(rgba(4,11,12,.16),rgba(4,9,10,.26)),var(--v146105-full)!important;
  background-size:100% 100%,100% 100%!important;
  background-position:center,center!important;
}

/* Inventory Use/Discard: actual button frame + existing action icon. */
html body.v127-ui .v119-inventory-list .v146108-framed-card-action{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;border:0!important;border-radius:0!important;background:none!important;background-image:none!important;box-shadow:none!important;
}
html body.v127-ui .v119-inventory-list .v146108-framed-card-action::before,
html body.v127-ui .v119-inventory-list .v146108-framed-card-action::after{content:none!important;display:none!important}
html body.v127-ui .v119-inventory-list .v146108-card-action-frame{position:absolute!important;z-index:0!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;pointer-events:none!important}
html body.v127-ui .v119-inventory-list .v146108-framed-card-action>:not(.v146108-card-action-frame){position:relative!important;z-index:2!important}
html body.v127-ui .v119-inventory-list .v146108-framed-card-action :is(img,svg):not(.v146108-card-action-frame){width:17px!important;height:17px!important;object-fit:contain!important}
html body.v127-ui .v119-inventory-list .v146108-framed-card-action>span{font-weight:850!important;text-shadow:0 1px 2px #000!important}

@media(max-width:370px){
  html body.v127-ui .v146101-pit-loot-actions{padding-inline:8px!important;gap:8px!important}
  html body.v127-ui .v146101-pit-loot-actions .v146108-pit-action{max-width:104px!important;padding-inline:6px!important}
  body.v131-admin-open .v146108-npd-copy{grid-template-columns:1fr!important}
}

/* ===== css/v146109-mobile-profile-item-pit-polish.css ===== */
/* Aldos RPG v1.146.109 — mobile profile / item / Pit polish.
   NO generated images. Existing v146103/v146105/v1443 artwork only. */

/* -------------------------------------------------------------------------- */
/* 1) Full item surface: one portrait rarity layer stretched through full      */
/*    card height. This deliberately replaces stacked legacy backgrounds.      */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146108-item-detail-fix[class*="rarity-"]{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:#071113!important;
  background-image:none!important;
  border-color:var(--v146105-line,#b99c58)!important;
}
html body.v127-ui .v146108-item-detail-fix[class*="rarity-"]::before{
  content:""!important;
  position:absolute!important;
  z-index:0!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  pointer-events:none!important;
  background-image:var(--v146109-detail-tint,linear-gradient(rgba(4,11,12,.12),rgba(4,9,10,.22))),var(--v146105-full)!important;
  background-position:center,center!important;
  background-size:100% 100%,100% 100%!important;
  background-repeat:no-repeat,no-repeat!important;
  transform:none!important;
}
html body.v127-ui .v146108-item-detail-fix[class*="rarity-"]>*{
  position:relative!important;
  z-index:1!important;
}

/* Mana/healing consumables keep the existing rarity texture but get their own
   unmistakable colour family. */
html body.v127-ui .type-consumable.potion-mana{
  --v146109-detail-tint:linear-gradient(rgba(11,155,205,.44),rgba(3,45,72,.50))!important;
  --v146109-mini-tint:linear-gradient(rgba(25,181,225,.44),rgba(5,54,91,.52))!important;
  --v146109-potion-line:#66d7f1!important;
}
html body.v127-ui .type-consumable.potion-health{
  --v146109-detail-tint:linear-gradient(rgba(178,33,43,.45),rgba(69,8,16,.54))!important;
  --v146109-mini-tint:linear-gradient(rgba(205,45,53,.44),rgba(77,8,18,.54))!important;
  --v146109-potion-line:#ef6b72!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card.type-consumable:is(.potion-mana,.potion-health),
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker.type-consumable:is(.potion-mana,.potion-health){
  background-image:var(--v146109-mini-tint),var(--v146105-mini)!important;
  background-position:center,center!important;
  background-size:100% 100%,100% 100%!important;
  background-repeat:no-repeat,no-repeat!important;
  border-color:var(--v146109-potion-line)!important;
}
html body.v127-ui .v146108-item-detail-fix.type-consumable:is(.potion-mana,.potion-health){
  border-color:var(--v146109-potion-line)!important;
}

/* Materials always use their frequency family as the full surface. */
html body.v127-ui .v146108-item-detail-fix.type-material[class*="material-frequency-"]::before{
  background-image:linear-gradient(rgba(4,11,12,.12),rgba(4,9,10,.20)),var(--v146105-full)!important;
}

/* -------------------------------------------------------------------------- */
/* 2) Pit: a single button artwork layer. No nested giant <img> to leak.       */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146101-pit-loot-card{
  overflow:hidden!important;
  contain:paint!important;
}
html body.v127-ui .v146101-pit-loot-actions.v146109-pit-actions{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  place-items:center!important;
  gap:10px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 12px!important;
  overflow:hidden!important;
  contain:paint!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action{
  position:relative!important;
  isolation:isolate!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  width:100%!important;
  max-width:116px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  color:#fff!important;
  text-shadow:0 1px 2px #000!important;
  background-color:transparent!important;
  background-position:center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action.take{
  background-image:url("../assets/v146103/ui/buttons/take.webp")!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action.drop{
  background-image:url("../assets/v146103/ui/buttons/discard.webp")!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action::before,
html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action::after{
  content:none!important;
  display:none!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action :is(img,svg,.v83-ui-icon){
  position:relative!important;
  z-index:2!important;
  width:14px!important;
  height:14px!important;
  max-width:14px!important;
  max-height:14px!important;
  object-fit:contain!important;
  margin:0!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action>span{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1!important;
}
/* Suppress obsolete image layers if cached markup from the previous build is
   still alive for one frame in Android WebView. */
html body.v127-ui .v146101-pit-loot-actions :is(.v146107-pit-action-bg,.v146108-pit-action-icon){display:none!important}

/* -------------------------------------------------------------------------- */
/* 3) Inventory / detail / equipment picker action buttons. One consistent    */
/*    frame, readable text, and existing action icon.                          */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v119-inventory-list .v146109-card-action,
html body.v127-ui .v98-picker-modal .v146109-picker-action,
html body.v127-ui .v146108-item-detail-fix .v146109-detail-action{
  position:relative!important;
  isolation:isolate!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  background-color:transparent!important;
  background-position:center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
  color:#fff!important;
  text-shadow:0 1px 2px #000!important;
}
html body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action):is(.use,.equip,.take){
  background-image:url("../assets/v146103/ui/buttons/take.webp")!important;
}
html body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action):is(.drop,.unequip){
  background-image:url("../assets/v146103/ui/buttons/discard.webp")!important;
}
html body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action)::before,
html body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action)::after{
  content:none!important;
  display:none!important;
}
html body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action) :is(img,svg,.v83-ui-icon){
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
  max-width:17px!important;
  max-height:17px!important;
  object-fit:contain!important;
  margin:0!important;
}
html body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action)>span{
  display:inline!important;
  position:relative!important;
  z-index:2!important;
  width:auto!important;
  height:auto!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-weight:850!important;
}

/* Inventory cards: primary action readable, secondary trash button square but
   still properly framed. */
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions{
  min-height:42px!important;
  height:42px!important;
  gap:7px!important;
  align-items:center!important;
  overflow:hidden!important;
}
html body.v127-ui .v119-inventory-list .v146109-card-action{
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  padding:0 9px!important;
  font-size:8.5px!important;
}
html body.v127-ui .v119-inventory-list .v146109-card-action.icon-only:not(:only-child){
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  padding:0!important;
  justify-self:end!important;
}
html body.v127-ui .v119-inventory-list .v146109-card-action.icon-only:not(:only-child)>span{display:none!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>.v146109-card-action.icon-only:not(:only-child)){
  grid-template-columns:minmax(0,1fr) 44px!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>.v146109-card-action:only-child){grid-template-columns:1fr!important}
html body.v127-ui .v119-inventory-list .v146109-card-action.icon-only:only-child{width:100%!important;max-width:none!important}
html body.v127-ui .v119-inventory-list .v146109-card-action.icon-only:only-child>span{display:inline!important}

/* Slot picker actions: full-width ornate frame instead of naked HTML button. */
html body.v127-ui .v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions{
  min-height:48px!important;
  height:48px!important;
  overflow:hidden!important;
}
html body.v127-ui .v98-picker-modal .v146109-picker-action{
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  padding:0 14px!important;
  font-size:10px!important;
}

/* Full item card actions are deliberately larger than inventory mini-actions. */
html body.v127-ui .v146108-item-detail-fix .v97-item-detail-actions{
  min-height:48px!important;
  gap:8px!important;
  overflow:hidden!important;
}
html body.v127-ui .v146108-item-detail-fix .v146109-detail-action{
  width:100%!important;
  min-width:0!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  padding:0 14px!important;
  font-size:10px!important;
}

/* -------------------------------------------------------------------------- */
/* 4) Profile: reuse the established dark surface behind hero, stats,          */
/*    attributes and equipment so the page reads as one visual system.         */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v119-profile-layout{
  gap:10px!important;
}
html body.v127-ui :is(.v39-profile-hero,.v119-profile-stats,.v119-equipment-panel,.v128-combat-stats){
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(202,164,81,.52)!important;
  border-radius:15px!important;
  background-color:#071315!important;
  background-image:linear-gradient(rgba(4,16,18,.30),rgba(3,10,12,.38)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  background-position:center,center!important;
  background-size:100% 100%,100% 100%!important;
  background-repeat:no-repeat,no-repeat!important;
  box-shadow:0 7px 18px rgba(0,0,0,.34),inset 0 0 0 1px rgba(51,112,107,.18)!important;
}
html body.v127-ui .v39-profile-hero{padding:11px!important}
html body.v127-ui .v39-profile-hero .v39-avatar-ring{
  border:1px solid rgba(211,171,77,.72)!important;
  border-radius:14px!important;
  background:rgba(2,13,15,.64)!important;
  box-shadow:inset 0 0 18px rgba(29,103,94,.20)!important;
}
html body.v127-ui .v119-profile-stats{padding:8px!important}
html body.v127-ui .v119-profile-stats :is(.v39-resource-card,.v39-mini-stat){
  border:1px solid rgba(101,144,135,.35)!important;
  border-radius:11px!important;
  background:rgba(5,22,24,.62)!important;
  box-shadow:inset 0 0 10px rgba(0,0,0,.20)!important;
}
html body.v127-ui .v119-attributes{
  margin-top:8px!important;
  padding:8px!important;
  border:1px solid rgba(202,164,81,.32)!important;
  border-radius:12px!important;
  background:rgba(3,15,17,.72)!important;
}
html body.v127-ui .v119-attributes .v83-attr-card{
  border:1px solid rgba(118,154,145,.38)!important;
  border-radius:10px!important;
  background-image:linear-gradient(rgba(7,29,30,.58),rgba(3,17,19,.72)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  background-position:center!important;
  background-size:100% 100%!important;
  box-shadow:inset 0 0 10px rgba(0,0,0,.22)!important;
}
html body.v127-ui .v119-equipment-panel{padding:9px!important}
html body.v127-ui .v119-equipment-panel .v39-panel-head{
  margin-bottom:7px!important;
  padding-bottom:7px!important;
  border-bottom:1px solid rgba(202,164,81,.25)!important;
}
html body.v127-ui .v128-combat-stats{padding:9px!important}
html body.v127-ui .v128-combat-stat-grid article{
  border:1px solid rgba(104,147,139,.34)!important;
  border-radius:10px!important;
  background:rgba(4,20,22,.66)!important;
}

/* -------------------------------------------------------------------------- */
/* 5) Material detail icon + monster loot: the JS now supplies a material icon
/*    for "Частота". Monster loot intentionally shows ONLY art + item name.    */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146108-item-detail-fix.type-material .v122-item-facts>div.has-icon .v127-fact-icon{
  display:grid!important;
  place-items:center!important;
}
html body.v127-ui .v122-monster-loot-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
}
html body.v127-ui .v122-monster-loot.v146109-monster-loot[class*="rarity-"]{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:center!important;
  gap:7px!important;
  min-height:52px!important;
  padding:5px 7px!important;
}
html body.v127-ui .v122-monster-loot.v146109-monster-loot>span{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
}
html body.v127-ui .v122-monster-loot.v146109-monster-loot>b{
  min-width:0!important;
  margin:0!important;
  font-size:8.5px!important;
  line-height:1.12!important;
  color:#f4f1e8!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
html body.v127-ui .v122-monster-loot.v146109-monster-loot>small,
html body.v127-ui .v122-monster-loot.v146109-monster-loot>div{display:none!important}

/* Font presets: keep frame geometry stable instead of allowing buttons to grow. */
html[data-ui-font-size="medium"] body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action,.v146109-pit-action),
html[data-ui-font-size="large"] body.v127-ui :is(.v146109-card-action,.v146109-picker-action,.v146109-detail-action,.v146109-pit-action){line-height:1!important}
html[data-ui-font-size="large"] body.v127-ui .v119-inventory-list .v146109-card-action{font-size:7.4px!important}
html[data-ui-font-size="large"] body.v127-ui .v146108-item-detail-fix .v146109-detail-action{font-size:9px!important}

@media(max-width:370px){
  html body.v127-ui .v146101-pit-loot-actions.v146109-pit-actions{gap:7px!important;padding-inline:7px!important}
  html body.v127-ui .v146101-pit-loot-actions .v146109-pit-action{max-width:106px!important;padding-inline:7px!important}
  html body.v127-ui .v122-monster-loot-grid{grid-template-columns:1fr 1fr!important}
  html body.v127-ui .v122-monster-loot.v146109-monster-loot{grid-template-columns:36px minmax(0,1fr)!important;padding-inline:5px!important}
  html body.v127-ui .v122-monster-loot.v146109-monster-loot>span{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
}

/* ===== css/v146110-mobile-inventory-pit-dungeon-polish.css ===== */
/* Aldos RPG v1.146.110 — inventory / Pit / item modal / dungeon / forge polish.
   NO generated images. Existing assets only. Gameplay/runtime untouched. */

/* -------------------------------------------------------------------------- */
/* 1) Inventory header metrics: three compact framed info cards.               */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v146110-inventory-metrics{
  display:grid!important;
  grid-template-columns:.92fr 1.12fr 1.18fr!important;
  gap:7px!important;
  margin:0 0 9px!important;
  padding:0!important;
  background:none!important;
  border:0!important;
}
html body.v127-ui .v146110-inventory-metric{
  position:relative!important;
  isolation:isolate!important;
  min-width:0!important;
  min-height:70px!important;
  height:70px!important;
  margin:0!important;
  padding:8px 8px!important;
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
  border:1px solid rgba(198,164,87,.62)!important;
  border-radius:13px!important;
  background:
    linear-gradient(145deg,rgba(4,24,27,.88),rgba(3,12,15,.94)),
    url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important;
  box-shadow:inset 0 0 0 1px rgba(65,119,111,.18),inset 0 0 18px rgba(0,0,0,.24),0 4px 12px rgba(0,0,0,.24)!important;
  color:#f5f0e5!important;
  overflow:hidden!important;
  text-align:left!important;
}
html body.v127-ui .v146110-inventory-metric.currency{
  background:
    linear-gradient(145deg,rgba(30,25,10,.62),rgba(4,17,18,.94)),
    url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui .v146110-inventory-metric :is(svg,img,.v83-ui-icon){
  width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;max-height:27px!important;
  object-fit:contain!important;margin:0!important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.68))!important;
}
html body.v127-ui .v146110-inventory-metric>span{display:grid!important;gap:2px!important;min-width:0!important;align-content:center!important}
html body.v127-ui .v146110-inventory-metric small{font-size:8.5px!important;line-height:1!important;color:#aeb8b1!important;white-space:nowrap!important}
html body.v127-ui .v146110-inventory-metric b{font:700 18px/1 Georgia,"Times New Roman",serif!important;color:#f5f0e5!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui .v146110-inventory-metric b i{font:500 9px/1 system-ui,sans-serif!important;color:#a7b0ab!important;font-style:normal!important}
html body.v127-ui .v146110-inventory-metric.currency b{color:#f3d67d!important}

/* -------------------------------------------------------------------------- */
/* 2) Inventory mini-card actions: no oversized bitmap button stretching.     */
/*    Primary remains readable; discard is a clean framed icon button.         */
/* -------------------------------------------------------------------------- */
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions{
  height:42px!important;min-height:42px!important;max-height:42px!important;
  grid-template-columns:minmax(0,1fr) 44px!important;
  gap:7px!important;padding:0!important;overflow:visible!important;
}
html body.v127-ui .v119-inventory-list .v146109-card-action{
  height:40px!important;min-height:40px!important;max-height:40px!important;
  border-radius:11px!important;border:1px solid rgba(168,211,76,.58)!important;
  background-image:linear-gradient(180deg,#456c18 0%,#24470d 52%,#142b0a 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(223,255,139,.18),inset 0 7px 12px rgba(255,255,255,.04),0 3px 7px rgba(0,0,0,.34)!important;
  color:#fff!important;padding:0 8px!important;font-size:9.2px!important;
}
html body.v127-ui .v119-inventory-list .v146109-card-action.drop{
  width:44px!important;min-width:44px!important;max-width:44px!important;
  border-color:rgba(222,91,91,.62)!important;
  background-image:linear-gradient(180deg,#682123 0%,#3b1014 56%,#21090d 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,151,151,.12),0 3px 7px rgba(0,0,0,.34)!important;
  padding:0!important;
}
html body.v127-ui .v119-inventory-list .v146109-card-action.drop :is(img,svg,.v83-ui-icon){width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important}
html body.v127-ui .v119-inventory-list .v146109-card-action.drop>span{display:none!important}
html body.v127-ui .v119-inventory-list .v146109-card-action:is(.use,.equip)>span{display:block!important;font-size:9px!important;line-height:1!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* -------------------------------------------------------------------------- */
/* 3) Pit: the page itself does not scroll the loot; the loot track does.      */
/*    Buttons are CSS-framed so no 900x260 artwork can leak beyond the row.    */
/* -------------------------------------------------------------------------- */
html body.v127-ui.v146100-pit-screen-active{overflow:hidden!important;overscroll-behavior:none!important}
html body.v127-ui.v146100-pit-screen-active .v146100-pit-main{
  height:calc(100dvh - 92px)!important;min-height:0!important;max-height:calc(100dvh - 92px)!important;
  overflow:hidden!important;padding-bottom:84px!important;
}
html body.v127-ui.v146100-pit-screen-active .v146100-pit-main>.v119-page-heading{flex:0 0 auto!important;margin-bottom:6px!important}
html body.v127-ui .v146101-pit-main .v119-pit-screen{
  height:calc(100% - 58px)!important;min-height:0!important;max-height:none!important;
  display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;
}
html body.v127-ui .v146101-pit-main .v146110-pit-scene{
  height:100%!important;min-height:0!important;max-height:none!important;
  display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;
  padding:9px 8px 7px!important;overflow:hidden!important;
}
html body.v127-ui .v146110-pit-loot-scroll{
  min-height:0!important;height:100%!important;max-height:100%!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;
  padding:5px 5px 10px!important;margin:0!important;scrollbar-width:thin!important;scrollbar-color:rgba(208,156,56,.74) rgba(4,17,19,.52)!important;
}
html body.v127-ui .v146110-pit-loot-scroll::-webkit-scrollbar{display:block!important;width:4px!important}
html body.v127-ui .v146110-pit-loot-scroll::-webkit-scrollbar-thumb{background:rgba(208,156,56,.74)!important;border-radius:99px!important}
html body.v127-ui .v146110-pit-loot-scroll::-webkit-scrollbar-track{background:rgba(4,17,19,.52)!important;border-radius:99px!important}
html body.v127-ui .v146101-pit-loot-card{overflow:hidden!important;contain:paint!important}
html body.v127-ui .v146101-pit-loot-actions.v146110-pit-actions{
  grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;
  gap:9px!important;height:38px!important;min-height:38px!important;max-height:38px!important;
  padding:0 8px!important;margin:0!important;overflow:visible!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
  width:100%!important;max-width:120px!important;height:36px!important;min-height:36px!important;max-height:36px!important;
  margin:0!important;padding:0 10px!important;border-radius:11px!important;background-image:none!important;background-color:#17340d!important;
  border:1px solid rgba(170,216,83,.68)!important;box-shadow:inset 0 0 0 1px rgba(222,255,144,.12),0 3px 8px rgba(0,0,0,.34)!important;
  overflow:hidden!important;color:#fff!important;text-shadow:0 1px 2px #000!important;
}
html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action.take{background:linear-gradient(180deg,#497018,#2a500f 52%,#17330b)!important}
html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action.drop{background:linear-gradient(180deg,#6d2326,#421116 54%,#25090d)!important;border-color:rgba(229,91,91,.70)!important}
html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action::before,
html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action::after{display:none!important;content:none!important}
html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action :is(img,svg,.v83-ui-icon){width:15px!important;height:15px!important;max-width:15px!important;max-height:15px!important;object-fit:contain!important;margin:0!important;position:static!important;transform:none!important}
html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action>span{font-size:9px!important;font-weight:900!important;line-height:1!important;position:static!important;width:auto!important;height:auto!important}

/* -------------------------------------------------------------------------- */
/* 4) Item details: remove the redundant empty modal frame/title.             */
/*    The rarity item card itself is the only visible card.                    */
/* -------------------------------------------------------------------------- */
html body.v127-ui .modal-back.has-v97-item-modal{padding:8px!important;align-items:center!important;justify-content:center!important}
html body.v127-ui .modal.v146110-bare-item-modal{
  width:min(520px,calc(100vw - 8px))!important;max-width:min(520px,calc(100vw - 8px))!important;
  max-height:calc(100dvh - 12px)!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  overflow:visible!important;
}
html body.v127-ui .modal.v146110-bare-item-modal>.modal-close{
  position:absolute!important;z-index:30!important;top:10px!important;right:10px!important;
  width:38px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;
  border:1px solid rgba(207,164,73,.70)!important;border-radius:10px!important;background:rgba(3,17,18,.90)!important;
  color:#e6b257!important;box-shadow:0 4px 12px rgba(0,0,0,.42)!important;
}
html body.v127-ui .modal.v146110-bare-item-modal>.v146108-item-detail-fix{
  width:100%!important;max-height:calc(100dvh - 12px)!important;margin:0!important;padding:12px!important;
  overflow-y:auto!important;overflow-x:hidden!important;border-radius:16px!important;
}
html body.v127-ui .modal.v146110-bare-item-modal>.v146108-item-detail-fix::-webkit-scrollbar{width:4px!important}
html body.v127-ui .modal.v146110-bare-item-modal>.v146108-item-detail-fix::-webkit-scrollbar-thumb{background:rgba(207,164,73,.70)!important;border-radius:99px!important}

/* Full detail actions: same clean geometry as the mini cards, no stretched asset. */
html body.v127-ui .v146108-item-detail-fix .v146109-detail-action{
  border-radius:12px!important;border:1px solid rgba(170,216,83,.62)!important;
  background-image:linear-gradient(180deg,#497018,#2a500f 52%,#17330b)!important;
  box-shadow:inset 0 0 0 1px rgba(222,255,144,.12),0 4px 9px rgba(0,0,0,.34)!important;
}
html body.v127-ui .v146108-item-detail-fix .v146109-detail-action:is(.drop,.unequip){
  border-color:rgba(229,91,91,.70)!important;background-image:linear-gradient(180deg,#6d2326,#421116 54%,#25090d)!important;
}

/* -------------------------------------------------------------------------- */
/* 5) Slime dungeon: one consistent framed system for expedition entrance     */
/*    and live room card, using already-shipped surfaces/frames.              */
/* -------------------------------------------------------------------------- */
html body.v127-ui :is(.v14643-entrance,.v14643-instance){
  position:relative!important;isolation:isolate!important;border:0!important;border-radius:18px!important;
  background:
    linear-gradient(180deg,rgba(8,27,20,.90),rgba(3,12,11,.96)),
    url("../assets/v146103/ui/merchant/merchant-screen-surface.webp") center/cover no-repeat!important;
  box-shadow:0 12px 26px rgba(0,0,0,.38),inset 0 0 30px rgba(34,113,83,.10)!important;
  overflow:hidden!important;
}
html body.v127-ui :is(.v14643-entrance,.v14643-instance)::before{
  content:""!important;position:absolute!important;z-index:8!important;inset:0!important;pointer-events:none!important;
  background:url("../assets/v14695/location-ui/frames/location-main-frame.webp") center/100% 100% no-repeat!important;
  opacity:.82!important;
}
html body.v127-ui .v14643-entrance>* ,html body.v127-ui .v14643-instance>*{position:relative!important;z-index:2!important}
html body.v127-ui .v14643-entry-title,
html body.v127-ui .v14643-map-ticket,
html body.v127-ui .v14643-runbar,
html body.v127-ui .v14643-scene{
  border:1px solid rgba(104,156,121,.38)!important;border-radius:14px!important;
  background:
    linear-gradient(145deg,rgba(5,26,23,.78),rgba(3,13,14,.90)),
    url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important;
  box-shadow:inset 0 0 14px rgba(0,0,0,.20)!important;
}
html body.v127-ui .v14643-entry-title{padding:10px!important;margin:2px 2px 9px!important}
html body.v127-ui .v14643-map-ticket{margin:8px 2px!important;padding:9px 10px!important}
html body.v127-ui .v14643-entrance>[data-dungeon-create],
html body.v127-ui .v14643-entrance>[data-dungeon-start],
html body.v127-ui .v14643-scene-copy>.big{
  border:1px solid rgba(161,213,81,.65)!important;border-radius:12px!important;
  background:linear-gradient(180deg,#9bd52a,#6ba915)!important;color:#102006!important;
  box-shadow:inset 0 1px rgba(255,255,255,.28),0 4px 10px rgba(0,0,0,.28)!important;
}
html body.v127-ui .v14643-scene{margin:8px 2px 0!important;overflow:hidden!important}
html body.v127-ui .v14643-scene-head{border-bottom:1px solid rgba(102,151,116,.28)!important;background:rgba(4,21,19,.76)!important}
html body.v127-ui .v14643-scene-art{border-bottom:1px solid rgba(102,151,116,.24)!important;background-color:#06100c!important}
html body.v127-ui .v14643-scene-copy{background:linear-gradient(180deg,rgba(8,33,24,.90),rgba(4,17,15,.96))!important}
html body.v127-ui .v14643-instance-foot{margin:6px 5px 0!important;padding:6px 2px 0!important}

/* -------------------------------------------------------------------------- */
/* 6) Gorgan location card: remove the long description and realign content.  */
/* -------------------------------------------------------------------------- */
html body.v127-ui.v134-location-screen .v14623-forge-arrival{height:184px!important;min-height:184px!important;max-height:184px!important}
html body.v127-ui.v134-location-screen .v146110-forge-intro{
  top:20px!important;left:16px!important;width:56%!important;max-width:340px!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
}
html body.v127-ui.v134-location-screen .v146110-forge-intro small{margin:0 0 3px!important}
html body.v127-ui.v134-location-screen .v146110-forge-intro h2{margin:0!important;font-size:31px!important;line-height:.96!important}
html body.v127-ui.v134-location-screen .v146110-forge-intro b{margin:5px 0 10px!important;font-size:12px!important;line-height:1.1!important}
html body.v127-ui.v134-location-screen .v146110-forge-intro p{display:none!important}
html body.v127-ui.v134-location-screen .v146110-forge-intro button{
  margin:0!important;min-width:154px!important;min-height:38px!important;padding:4px 12px!important;
}

/* Font-scale containment. */
html[data-ui-font-size="medium"] body.v127-ui .v146110-inventory-metric b,
html[data-ui-font-size="large"] body.v127-ui .v146110-inventory-metric b{font-size:16px!important}
html[data-ui-font-size="large"] body.v127-ui .v119-inventory-list .v146109-card-action:is(.use,.equip)>span{font-size:8px!important}
html[data-ui-font-size="medium"] body.v127-ui.v134-location-screen .v14623-forge-arrival,
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v14623-forge-arrival{height:194px!important;min-height:194px!important;max-height:194px!important}
html[data-ui-font-size="large"] body.v127-ui.v134-location-screen .v146110-forge-intro h2{font-size:27px!important}

@media(max-width:370px){
  html body.v127-ui .v146110-inventory-metrics{grid-template-columns:.86fr 1.12fr 1.16fr!important;gap:5px!important}
  html body.v127-ui .v146110-inventory-metric{height:66px!important;min-height:66px!important;padding:6px!important;grid-template-columns:24px minmax(0,1fr)!important;gap:4px!important}
  html body.v127-ui .v146110-inventory-metric :is(svg,img,.v83-ui-icon){width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;max-height:23px!important}
  html body.v127-ui .v146110-inventory-metric b{font-size:15px!important}
  html body.v127-ui .v146110-inventory-metric b i{font-size:8px!important}
  html body.v127-ui .v146101-pit-loot-actions.v146110-pit-actions{gap:6px!important;padding-inline:4px!important}
  html body.v127-ui .v146101-pit-loot-actions .v146110-pit-action{max-width:108px!important;padding-inline:6px!important}
  html body.v127-ui.v134-location-screen .v146110-forge-intro{left:13px!important;top:18px!important;width:58%!important}
  html body.v127-ui.v134-location-screen .v146110-forge-intro h2{font-size:26px!important}
}

/* ===== css/v146111-action-frame-item-pit-hotfix.css ===== */
/* Aldos RPG v1.146.111 — UI action-frame specificity / item modal / Pit root-cause hotfix.
   NO generated images. Existing assets only. */

/* Root cause fixed: older v146103 Pit selectors include button.primary/button.danger
   and had higher specificity than v146110, so their 900x260 artwork could win the
   cascade and appear as clipped tails. v146111 targets the exact buttons with
   higher specificity and uses each artwork once as a contained CSS background. */
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action{
  position:relative!important;isolation:isolate!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  width:100%!important;max-width:none!important;height:38px!important;min-height:38px!important;max-height:38px!important;
  margin:0!important;padding:0 12px!important;border:0!important;border-radius:0!important;
  background-color:transparent!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  box-shadow:none!important;overflow:hidden!important;contain:paint!important;transform:none!important;
  color:#fff!important;text-shadow:0 2px 3px #000!important;
}
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action.take{background-image:url("../assets/v146103/ui/buttons/take.webp")!important}
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action.drop{background-image:url("../assets/v146103/ui/buttons/discard.webp")!important}
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action::before,
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action::after{content:none!important;display:none!important;background:none!important}
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action>.v83-ui-icon{display:block!important;position:static!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;max-height:18px!important;margin:0!important;opacity:1!important;object-fit:contain!important;transform:none!important;filter:drop-shadow(0 1px 2px #000)!important}
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action>span{display:inline!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;font-size:10px!important;line-height:1!important;font-weight:900!important}
html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions{height:40px!important;min-height:40px!important;max-height:40px!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:0 6px!important;overflow:hidden!important;contain:paint!important}
html body.v127-ui .v146101-pit-loot-card{overflow:hidden!important;contain:paint!important}
/* hard-stop any obsolete direct bitmap layers from older cached DOM */
html body.v127-ui .v146101-pit-loot-card :is(.v146107-pit-action-bg,.v146108-pit-action-icon){display:none!important;width:0!important;height:0!important;max-width:0!important;max-height:0!important}

/* Inventory mini cards: restore the shipped ornate button artwork instead of
   the flat v110 gradients. The discard frame stays compact but is visibly a button. */
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:0 8px!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  box-shadow:none!important;overflow:hidden!important;color:#fff!important;text-shadow:0 1px 2px #000!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action:is(.use,.equip){background-image:url("../assets/v146103/ui/buttons/take.webp")!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop{background-image:url("../assets/v146103/ui/buttons/discard.webp")!important;width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button.v146111-card-action.drop){grid-template-columns:minmax(0,1fr) 52px!important;gap:5px!important;overflow:hidden!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action>.v83-ui-icon{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;max-height:18px!important;margin:0!important;opacity:1!important;object-fit:contain!important;filter:drop-shadow(0 1px 2px #000)!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop>.v83-ui-icon{width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;max-height:21px!important}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop>span{display:none!important}

/* Equipment slot picker: exact selector beats old mobile button rules and keeps
   both the ornate frame and the action icon. */
html body.v127-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146111-picker-action{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding:0 15px!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:none!important;overflow:hidden!important;color:#fff!important;text-shadow:0 1px 2px #000!important;
}
html body.v127-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146111-picker-action.equip{background-image:url("../assets/v146103/ui/buttons/take.webp")!important}
html body.v127-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146111-picker-action.unequip{background-image:url("../assets/v146103/ui/buttons/discard.webp")!important}
html body.v127-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146111-picker-action>.v83-ui-icon{display:block!important;position:static!important;width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;max-height:21px!important;margin:0!important;opacity:1!important;visibility:visible!important;object-fit:contain!important;filter:drop-shadow(0 1px 2px #000)!important}
html body.v127-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146111-picker-action>span{display:inline!important;font-size:11px!important;font-weight:900!important}

/* Full item details: no 'Карточка предмета' shell. The rarity card itself is
   the modal; close button occupies the old top-right control location. */
html body.v127-ui .modal-back.has-v97-item-modal{padding:6px!important;align-items:center!important;justify-content:center!important}
html body.v127-ui .modal.v146111-item-modal{
  position:relative!important;width:min(520px,calc(100vw - 10px))!important;max-width:min(520px,calc(100vw - 10px))!important;max-height:calc(100dvh - 10px)!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;overflow:visible!important;
}
html body.v127-ui .modal.v146111-item-modal>h1{display:none!important}
html body.v127-ui .modal.v146111-item-modal>.modal-close{
  position:absolute!important;z-index:80!important;top:10px!important;right:10px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;border:1px solid rgba(216,169,73,.78)!important;border-radius:10px!important;background:rgba(4,18,19,.94)!important;color:#efb65d!important;box-shadow:0 4px 12px rgba(0,0,0,.42)!important;font-size:22px!important;line-height:1!important;
}
html body.v127-ui .modal.v146111-item-modal>.v146111-item-detail{width:100%!important;max-height:calc(100dvh - 10px)!important;margin:0!important;padding:10px!important;overflow-y:auto!important;overflow-x:hidden!important;border-radius:16px!important}
html body.v127-ui .v146111-item-detail .v122-item-detail-head{padding-right:44px!important}
html body.v127-ui .v146111-item-detail .v97-item-detail-copy{padding-right:0!important}
html body.v127-ui .v146111-item-detail .v146111-item-title-row{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;margin:2px 0 0!important}
html body.v127-ui .v146111-item-detail .v146111-item-title-row>h2{min-width:0!important;margin:0!important;flex:1 1 auto!important}
html body.v127-ui .v146111-item-detail .v146111-title-lock.v128-item-lock{
  position:static!important;inset:auto!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:4px!important;
  border:1px solid rgba(211,170,76,.48)!important;border-radius:8px!important;background:rgba(5,23,25,.90)!important;display:grid!important;place-items:center!important;
}
html body.v127-ui .v146111-item-detail .v146111-title-lock.v128-item-lock>.v83-ui-icon{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;max-height:18px!important;margin:0!important;opacity:.72!important}
html body.v127-ui .v146111-item-detail .v146111-title-lock.v128-item-lock.locked>.v83-ui-icon{opacity:1!important}

/* Full detail action buttons: restored ornate artwork and visible icons. */
html body.v127-ui .v146111-item-detail .v97-item-detail-actions>button.v146111-detail-action{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding:0 12px!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:none!important;overflow:hidden!important;color:#fff!important;text-shadow:0 1px 2px #000!important;
}
html body.v127-ui .v146111-item-detail .v97-item-detail-actions>button.v146111-detail-action:is(.use,.equip,.take){background-image:url("../assets/v146103/ui/buttons/take.webp")!important}
html body.v127-ui .v146111-item-detail .v97-item-detail-actions>button.v146111-detail-action:is(.drop,.unequip){background-image:url("../assets/v146103/ui/buttons/discard.webp")!important}
html body.v127-ui .v146111-item-detail .v97-item-detail-actions>button.v146111-detail-action>.v83-ui-icon{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;max-height:20px!important;margin:0!important;opacity:1!important;object-fit:contain!important;filter:drop-shadow(0 1px 2px #000)!important}
html body.v127-ui .v146111-item-detail .v97-item-detail-actions>button.v146111-detail-action>span{display:inline!important;font-size:11px!important;font-weight:900!important}

/* Inventory top metrics: stronger, explicit framed surfaces using existing UI
   artwork. No new image files. */
html body.v127-ui .v146110-inventory-metrics{gap:7px!important;margin-bottom:10px!important}
html body.v127-ui .v146110-inventory-metrics>.v146110-inventory-metric{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;border:1px solid rgba(218,177,78,.68)!important;border-radius:13px!important;
  background-color:#071416!important;background-image:linear-gradient(145deg,rgba(4,24,27,.28),rgba(3,10,12,.48)),url("../assets/v146103/ui/notifications/confirm-panel.webp")!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  box-shadow:inset 0 0 0 1px rgba(89,143,132,.22),inset 0 0 18px rgba(0,0,0,.30),0 5px 12px rgba(0,0,0,.30)!important;
}
html body.v127-ui .v146110-inventory-metrics>.v146110-inventory-metric.currency{background-image:linear-gradient(145deg,rgba(55,39,9,.20),rgba(4,15,16,.48)),url("../assets/v146103/ui/notifications/confirm-panel.webp")!important}
html body.v127-ui .v146110-inventory-metrics>.v146110-inventory-metric small{color:#c1cbc4!important}
html body.v127-ui .v146110-inventory-metrics>.v146110-inventory-metric b{color:#fff8e7!important}

@media(max-width:370px){
  html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop{width:48px!important;min-width:48px!important;max-width:48px!important}
  html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button.v146111-card-action.drop){grid-template-columns:minmax(0,1fr) 48px!important;gap:4px!important}
  html body.v127-ui .v146101-pit-loot-actions.v146111-pit-actions>button.v146111-pit-action{padding-inline:7px!important;font-size:9px!important}
}

/* ===== css/v146112-merchant-pit-item-travel-quests-polish.css ===== */
/* Aldos RPG v1.146.112 — Marek / Pit / item modal / travel / quests polish.
   Existing assets only. No generated image files. */

/* ========================================================================== */
/* 1) Marek in the Trade Street — compact, framed, asset-backed status card.  */
/* ========================================================================== */
html body.v127-ui.v134-location-screen .v1421-street-card.v146112-marek-card{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  width:calc(100% - 12px)!important;max-width:none!important;margin:7px 6px 8px!important;padding:9px!important;
  border:1px solid rgba(205,164,72,.60)!important;border-radius:15px!important;
  background-color:#071719!important;
  background-image:linear-gradient(135deg,rgba(4,22,22,.18),rgba(2,10,12,.58)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp")!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  box-shadow:0 8px 18px rgba(0,0,0,.38),inset 0 0 0 1px rgba(77,139,126,.18),inset 0 0 24px rgba(0,0,0,.22)!important;
}
html body.v127-ui.v134-location-screen .v1421-street-card.v146112-marek-card::before{
  content:""!important;position:absolute!important;z-index:0!important;inset:1px!important;pointer-events:none!important;
  background:url("../assets/v146102/ui/merchant/merchant-overview-frame.webp") center/100% 100% no-repeat!important;opacity:.34!important;
}
html body.v127-ui.v134-location-screen .v1421-street-card.v146112-marek-card>*{position:relative!important;z-index:1!important}
html body.v127-ui.v134-location-screen .v146112-marek-present{
  display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:9px!important;row-gap:7px!important;align-items:center!important;
}
html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-art{
  width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;border-radius:12px!important;
  border:1px solid rgba(202,162,73,.36)!important;background:rgba(2,12,14,.54)!important;box-shadow:inset 0 0 14px rgba(0,0,0,.34)!important;
}
html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-copy{align-self:center!important;display:block!important;min-width:0!important}
html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-copy small{font-size:8px!important;letter-spacing:.12em!important;color:#c6a85b!important}
html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-copy b{margin:2px 0 3px!important;font-size:17px!important;line-height:1.05!important;color:#f4eee0!important}
html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-copy p{font-size:9.5px!important;line-height:1.25!important;color:#aebbb8!important;margin:0!important}
html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-copy em{margin-top:3px!important;font-size:9px!important;color:#d9bd73!important}
html body.v127-ui.v134-location-screen .v146112-marek-open-shop{
  grid-column:1/-1!important;width:100%!important;min-height:40px!important;height:40px!important;margin:0!important;padding:0 14px!important;
  border:1px solid rgba(212,170,75,.68)!important;border-radius:10px!important;
  background-color:#132c29!important;background-image:linear-gradient(90deg,rgba(97,67,13,.42),rgba(14,55,48,.42)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  color:#ffe3a2!important;font:800 13px/1 system-ui!important;box-shadow:inset 0 0 0 1px rgba(255,225,151,.08),0 4px 10px rgba(0,0,0,.30)!important;
}
html body.v127-ui.v134-location-screen .v146112-marek-away{
  display:grid!important;grid-template-columns:58px minmax(0,1fr) 42px!important;gap:8px!important;align-items:center!important;min-height:82px!important;
  filter:none!important;
}
html body.v127-ui.v134-location-screen .v146112-marek-away .v1421-street-art{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important}
html body.v127-ui.v134-location-screen .v146112-marek-away>.v14628-coupon-call{
  width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:6px!important;margin:0!important;
  border:1px solid rgba(204,164,73,.56)!important;border-radius:10px!important;background:rgba(7,20,21,.82)!important;box-shadow:inset 0 0 12px rgba(0,0,0,.34)!important;
}
html body.v127-ui.v134-location-screen .v146112-marek-away>.v14628-coupon-call img{width:100%!important;height:100%!important;object-fit:contain!important}

/* ========================================================================== */
/* 2) Pit — wider centered loot rows + internal scroll + Take all.             */
/* ========================================================================== */
html body.v127-ui .v146112-pit-scene{
  display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:6px!important;min-height:0!important;overflow:hidden!important;
}
html body.v127-ui .v146112-pit-loot-scroll{
  width:100%!important;max-width:100%!important;min-width:0!important;padding:5px 2px 8px!important;margin:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;
}
html body.v127-ui .v146112-pit-loot-scroll>.v146112-pit-loot-card{
  justify-self:center!important;box-sizing:border-box!important;width:calc(100% - 6px)!important;max-width:none!important;min-width:0!important;margin:0 auto!important;
  padding:9px 10px!important;
}
html body.v127-ui .v146112-pit-actions{padding-inline:4px!important;gap:9px!important}
html body.v127-ui .v146112-pit-actions>button.v146112-pit-action{height:39px!important;min-height:39px!important;max-height:39px!important;padding-inline:10px!important}
html body.v127-ui .v146112-pit-actions>button.v146112-pit-action>.v83-ui-icon{width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;max-height:21px!important}
html body.v127-ui .v146112-pit-footer{
  display:grid!important;grid-template-rows:auto auto!important;justify-items:center!important;gap:4px!important;width:100%!important;padding:0 3px 2px!important;min-width:0!important;
}
html body.v127-ui .v146112-pit-footer .v146101-pit-scroll-hint{padding:0 3px!important;margin:0!important;font-size:8px!important}
html body.v127-ui .v146112-pit-take-all{
  position:relative!important;display:grid!important;grid-template-columns:24px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;
  width:min(350px,94%)!important;min-height:43px!important;height:43px!important;margin:0 auto!important;padding:0 18px!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-image:url("../assets/v146103/ui/buttons/take.webp")!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:none!important;overflow:hidden!important;
  color:#fff!important;text-shadow:0 2px 3px #000!important;
}
html body.v127-ui .v146112-pit-take-all>.v83-ui-icon{width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;max-height:23px!important;object-fit:contain!important}
html body.v127-ui .v146112-pit-take-all>span{font-size:12px!important;font-weight:900!important;text-align:center!important}
html body.v127-ui .v146112-pit-take-all>small{min-width:23px!important;height:23px!important;display:grid!important;place-items:center!important;padding:0 5px!important;border-radius:999px!important;background:rgba(4,19,16,.72)!important;border:1px solid rgba(220,246,154,.34)!important;color:#f5ffd8!important;font-size:9px!important;font-weight:900!important}
html body.v127-ui .v146112-pit-take-all.busy{opacity:.62!important;filter:saturate(.7)!important;pointer-events:none!important}

/* ========================================================================== */
/* 3) Inventory action geometry. Solo discard spans full card width.          */
/* ========================================================================== */
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146112-card-action{
  height:42px!important;min-height:42px!important;max-height:42px!important;padding-inline:8px!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146112-card-action>.v83-ui-icon{
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146112-card-action.drop:not(.solo)>.v83-ui-icon{
  width:26px!important;height:26px!important;min-width:26px!important;max-width:26px!important;max-height:26px!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button.v146112-card-action.drop.solo){
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;width:100%!important;padding-inline:0!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146112-card-action.drop.solo{
  width:100%!important;min-width:100%!important;max-width:100%!important;padding:0 16px!important;background-size:100% 100%!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146112-card-action.drop.solo>span{
  display:inline!important;font-size:10px!important;font-weight:900!important;
}
html body.v127-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146112-card-action.drop.solo>.v83-ui-icon{
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;max-height:24px!important;
}

/* Equipment picker action icons/frames stay full-size and visible. */
html body.v127-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146112-picker-action{
  min-height:46px!important;height:46px!important;max-height:46px!important;gap:9px!important;
}
html body.v127-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146112-picker-action>.v83-ui-icon{
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;max-height:24px!important;
}

/* ========================================================================== */
/* 4) Full item modal — no clipped side frame, opaque backdrop, compact close.*/
/* ========================================================================== */
html body.v127-ui .modal-back.has-v97-item-modal{
  inset:0!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;padding:6px!important;
  align-items:center!important;justify-content:center!important;overflow:hidden!important;
  background:rgba(0,5,7,.95)!important;backdrop-filter:blur(7px)!important;
}
html body.v127-ui .modal.v146112-item-modal{
  position:relative!important;box-sizing:border-box!important;width:min(520px,100%)!important;max-width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;
  margin:0 auto!important;padding:0 5px!important;border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;overflow:visible!important;
}
html body.v127-ui .modal.v146112-item-modal>.v146112-item-detail{
  box-sizing:border-box!important;width:calc(100% - 2px)!important;max-width:calc(100% - 2px)!important;min-width:0!important;
  max-height:calc(100dvh - 14px)!important;margin:0 auto!important;padding:10px 11px!important;
  overflow-y:auto!important;overflow-x:hidden!important;border-radius:15px!important;background-clip:padding-box!important;
}
html body.v127-ui .modal.v146112-item-modal>.modal-close{
  position:absolute!important;z-index:90!important;top:8px!important;right:9px!important;width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important;max-width:31px!important;max-height:31px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background-color:transparent!important;background-image:url("../assets/v95/ui/close.webp")!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  box-shadow:0 3px 9px rgba(0,0,0,.32)!important;color:transparent!important;font-size:0!important;line-height:0!important;overflow:hidden!important;
}
html body.v127-ui .v146112-item-detail .v122-item-detail-head{padding-right:34px!important;grid-template-columns:86px minmax(0,1fr)!important;gap:10px!important}
html body.v127-ui .v146112-item-detail .v97-item-detail-copy{min-width:0!important;padding-right:0!important;overflow:visible!important}
html body.v127-ui .v146112-item-detail .v146112-item-rarity-row{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-width:0!important;margin:0 0 3px!important;padding:0!important;
}
html body.v127-ui .v146112-item-detail .v146112-item-rarity-row>small{
  display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:calc(100% - 31px)!important;min-height:23px!important;margin:0!important;padding:3px 9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v127-ui .v146112-item-detail .v146112-rarity-lock.v128-item-lock{
  position:static!important;inset:auto!important;flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;margin:0!important;padding:3px!important;
  border:1px solid rgba(211,170,76,.52)!important;border-radius:7px!important;background:rgba(5,23,25,.90)!important;display:grid!important;place-items:center!important;box-shadow:inset 0 0 8px rgba(0,0,0,.28)!important;
}
html body.v127-ui .v146112-item-detail .v146112-rarity-lock :is(img,svg,.v83-ui-icon){width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;max-height:16px!important;margin:0!important;object-fit:contain!important}
html body.v127-ui .v146112-item-detail .v97-item-detail-copy>h2{margin:0 0 4px!important;min-width:0!important;overflow-wrap:anywhere!important}
html body.v127-ui .v146112-item-detail .v97-item-detail-actions>button.v146112-detail-action>.v83-ui-icon{
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;max-height:24px!important;
}

/* ========================================================================== */
/* 5) Travel final state — no giant “Прибываем…”.                             */
/* ========================================================================== */
html body.v127-ui .v146100-travel-card .v77-travel-timer b.v146112-arriving{
  font-size:20px!important;line-height:1.05!important;letter-spacing:.01em!important;white-space:nowrap!important;color:#dfffae!important;text-shadow:0 0 12px rgba(164,236,87,.15)!important;
}
html[data-ui-font-size="large"] body.v127-ui .v146100-travel-card .v77-travel-timer b.v146112-arriving{font-size:19px!important}

/* ========================================================================== */
/* 6) Quests — rebuilt visual hierarchy with existing framed surfaces.        */
/* ========================================================================== */
html body.v127-ui .v146112-quests-panel{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;width:100%!important;max-width:760px!important;margin:0 auto!important;padding:10px!important;
  border:1px solid rgba(199,157,68,.50)!important;border-radius:17px!important;
  background-color:#061416!important;background-image:linear-gradient(145deg,rgba(4,24,24,.24),rgba(2,10,12,.68)),url("../assets/v146103/ui/merchant/merchant-screen-surface.webp")!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;
  box-shadow:0 9px 22px rgba(0,0,0,.34),inset 0 0 24px rgba(19,99,81,.08)!important;
}
html body.v127-ui .v146112-quests-panel>header{
  position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin:0 0 9px!important;padding:10px 11px!important;
  border:1px solid rgba(198,157,68,.36)!important;border-radius:13px!important;
  background:linear-gradient(135deg,rgba(7,34,30,.82),rgba(4,15,17,.88)),url("../assets/v146103/ui/merchant/merchant-header-surface.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui .v146112-quests-panel>header>div{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
html body.v127-ui .v146112-quests-panel>header .v80-quest-mark{
  flex:0 0 38px!important;width:38px!important;height:38px!important;border-radius:50%!important;border:1px solid rgba(220,176,76,.58)!important;background:radial-gradient(circle,#6a4d18,#241a0d)!important;color:#ffe393!important;box-shadow:0 0 0 3px rgba(203,156,65,.08)!important;
}
html body.v127-ui .v146112-quests-panel>header h2{font-size:20px!important;line-height:1.06!important;margin:0!important}
html body.v127-ui .v146112-quests-panel>header p{display:block!important;margin:2px 0 0!important;font-size:9px!important;color:#9aa8a5!important}
html body.v127-ui .v146112-quests-panel>header>b{
  min-width:44px!important;height:38px!important;display:grid!important;place-items:center!important;margin:0!important;padding:0 8px!important;border-radius:11px!important;border:1px solid rgba(202,162,73,.48)!important;background:rgba(3,16,18,.72)!important;color:#f3f5eb!important;font-size:13px!important;
}
html body.v127-ui .v146112-quests-panel .v80-quest-list{display:grid!important;gap:9px!important;margin:0!important}
html body.v127-ui .v146112-quest-card{
  position:relative!important;overflow:hidden!important;grid-template-columns:68px minmax(0,1fr)!important;gap:10px!important;margin:0!important;padding:9px!important;
  border:1px solid rgba(197,156,70,.42)!important;border-radius:13px!important;
  background:linear-gradient(135deg,rgba(7,31,28,.82),rgba(3,13,15,.92)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp") center/100% 100% no-repeat!important;
  box-shadow:inset 0 0 15px rgba(0,0,0,.20),0 5px 11px rgba(0,0,0,.26)!important;
}
html body.v127-ui .v146112-quest-card .v80-quest-giver{width:68px!important;height:82px!important;border:1px solid rgba(204,164,73,.42)!important;border-radius:10px!important;background:rgba(2,11,13,.70)!important}
html body.v127-ui .v146112-quest-card .v80-quest-head h2{font-size:16px!important;line-height:1.05!important}
html body.v127-ui .v146112-quest-card .v80-quest-head time{padding:5px 7px!important;border:1px solid rgba(205,163,68,.35)!important;border-radius:8px!important;background:rgba(36,27,11,.64)!important;font-size:10px!important}
html body.v127-ui .v146112-quest-card .v80-quest-copy p{margin:3px 0!important;font-size:10px!important;line-height:1.25!important}
html body.v127-ui .v146112-quest-card .v80-quest-progress{gap:7px!important}
html body.v127-ui .v146112-quest-card .v92-quest-reward{margin-top:2px!important;padding:5px 6px!important;border-radius:8px!important;background:rgba(5,24,22,.58)!important;border:1px solid rgba(80,139,123,.25)!important;font-size:8.5px!important}
html body.v127-ui .v146112-quest-empty{
  position:relative!important;min-height:180px!important;margin:0!important;padding:24px 14px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:8px!important;text-align:center!important;
  border:1px solid rgba(198,156,68,.34)!important;border-radius:14px!important;
  background:linear-gradient(180deg,rgba(5,25,23,.75),rgba(3,12,14,.88)),url("../assets/v146103/ui/notifications/confirm-panel.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui .v146112-quest-empty .v119-quest-empty-icon{width:54px!important;height:54px!important;display:grid!important;place-items:center!important;border-radius:50%!important;border:1px solid rgba(199,157,68,.36)!important;background:rgba(4,18,19,.70)!important}
html body.v127-ui .v146112-quest-empty .v119-quest-empty-icon .v83-ui-icon{width:30px!important;height:30px!important;opacity:.72!important}
html body.v127-ui .v146112-quest-empty>b{font:700 18px/1.1 Georgia,"Times New Roman",serif!important;color:#ece8dc!important}
html body.v127-ui .v146112-quest-empty>p{max-width:300px!important;margin:0!important;font-size:10px!important;line-height:1.35!important;color:#9da9a6!important}
html body.v127-ui .v146112-quest-how{
  margin:0!important;padding:10px 9px!important;border:1px solid rgba(198,156,68,.38)!important;border-radius:13px!important;
  background:linear-gradient(135deg,rgba(31,24,9,.38),rgba(4,18,18,.76)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important;
}
html body.v127-ui .v146112-quest-how>h3{margin:0 0 8px!important;text-align:center!important;font-size:17px!important;color:#d9b96f!important}
html body.v127-ui .v146112-quest-how>div{display:grid!important;grid-template-columns:1fr auto 1fr auto 1fr!important;gap:5px!important;align-items:start!important}
html body.v127-ui .v146112-quest-how>div>span{min-width:0!important;display:grid!important;grid-template-rows:20px 31px auto!important;justify-items:center!important;gap:3px!important;text-align:center!important}
html body.v127-ui .v146112-quest-how>div>span>b{width:20px!important;height:20px!important;display:grid!important;place-items:center!important;border:1px solid rgba(203,161,71,.54)!important;border-radius:50%!important;background:#06191a!important;font-size:9px!important}
html body.v127-ui .v146112-quest-how>div>span>.v83-ui-icon{width:29px!important;height:29px!important;object-fit:contain!important}
html body.v127-ui .v146112-quest-how>div>span>small{font-size:8.5px!important;line-height:1.2!important;color:#acb6b1!important}
html body.v127-ui .v146112-quest-how>div>i{align-self:center!important;margin-top:19px!important;color:#c88d39!important;font-size:18px!important}

@media(max-width:390px){
  html body.v127-ui.v134-location-screen .v146112-marek-present{grid-template-columns:58px minmax(0,1fr)!important}
  html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-art{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important}
  html body.v127-ui.v134-location-screen .v146112-marek-card .v1421-street-copy b{font-size:15px!important}
  html body.v127-ui .v146112-pit-loot-scroll>.v146112-pit-loot-card{width:calc(100% - 2px)!important;padding-inline:8px!important}
  html body.v127-ui .modal.v146112-item-modal{max-width:calc(100vw - 8px)!important;padding-inline:2px!important}
  html body.v127-ui .modal.v146112-item-modal>.v146112-item-detail{width:100%!important;max-width:100%!important;padding-inline:9px!important}
  html body.v127-ui .v146112-item-detail .v122-item-detail-head{grid-template-columns:78px minmax(0,1fr)!important;gap:8px!important}
  html body.v127-ui .v146112-quests-panel{padding:8px!important}
  html body.v127-ui .v146112-quests-panel>header h2{font-size:18px!important}
}

/* ===== css/v146113-world-ui-redesign.css ===== */
/* Aldos RPG v1.146.113 — world UI redesign / mobile-first polish.
   Existing assets only. No generated images. */

/* Shared palette and safe close controls. */
html body.v127-ui{--v113-gold:#d6ae61;--v113-line:rgba(202,164,82,.46);--v113-teal:#63d2b0;--v113-panel:#071719;--v113-deep:#031013}
html body.v127-ui :is(.modal-close,.v146113-close,[data-character-close][aria-label*="Зак"],.v14417-gift-close,.v1469-chat-close,[data-dungeon-moment-close]){
  display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;
  border:1px solid rgba(214,174,97,.72)!important;border-radius:11px!important;color:#f2c26d!important;background-color:#071719!important;
  background-image:linear-gradient(145deg,rgba(20,58,54,.82),rgba(5,17,20,.94)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
  box-shadow:0 5px 14px rgba(0,0,0,.38),inset 0 0 0 1px rgba(255,225,151,.08)!important;font-size:20px!important;line-height:1!important;overflow:hidden!important
}
html body.v127-ui :is(.modal-close,.v146113-close,[data-character-close][aria-label*="Зак"]):active{transform:scale(.96)!important}
html body.v127-ui :is(.modal-close,.v146113-close) :where(img,svg,.v83-ui-icon){width:23px!important;height:23px!important;object-fit:contain!important}

/* Top and bottom navigation — cleaner, framed, dark-fantasy surfaces. */
html body.v127-ui .v146113-topbar{border-bottom:1px solid rgba(208,168,77,.42)!important;background:linear-gradient(180deg,rgba(4,18,20,.98),rgba(2,12,14,.97))!important;box-shadow:0 7px 18px rgba(0,0,0,.35)!important}
html body.v127-ui .v146113-topbar :is(.hamburger,.v121-top-avatar-button){border:1px solid rgba(208,168,77,.55)!important;background:linear-gradient(145deg,rgba(18,49,46,.90),rgba(4,18,20,.96))!important;box-shadow:inset 0 0 0 1px rgba(255,224,144,.06),0 3px 9px rgba(0,0,0,.25)!important}
html body.v127-ui .v146113-topbar .v121-top-player-copy{padding-left:5px!important}
html body.v127-ui .v146113-bottom-nav{border-top:1px solid rgba(208,168,77,.42)!important;background:linear-gradient(180deg,rgba(3,17,19,.98),rgba(2,10,12,.99))!important;box-shadow:0 -8px 22px rgba(0,0,0,.34)!important}
html body.v127-ui .v146113-bottom-nav>button{position:relative!important;overflow:hidden!important;border:1px solid transparent!important;border-radius:13px!important}
html body.v127-ui .v146113-bottom-nav>button.active{border-color:rgba(219,180,91,.68)!important;background:linear-gradient(145deg,rgba(63,59,26,.38),rgba(9,35,32,.74))!important;box-shadow:inset 0 0 0 1px rgba(255,226,151,.08)!important}
html body.v127-ui .v78-location-chat-tab{z-index:82!important;border:1px solid rgba(208,168,77,.62)!important;background:linear-gradient(145deg,rgba(22,65,59,.96),rgba(4,19,22,.98))!important;box-shadow:0 5px 15px rgba(0,0,0,.35)!important}

/* 1) Gorgan location: no body copy, compact hierarchy. */
html body.v127-ui.v134-location-screen .v146113-forge-arrival{height:170px!important;min-height:170px!important;max-height:170px!important}
html body.v127-ui.v134-location-screen .v146113-forge-intro{top:18px!important;left:15px!important;width:55%!important;max-width:300px!important;gap:0!important}
html body.v127-ui.v134-location-screen .v146113-forge-intro p{display:none!important;visibility:hidden!important;height:0!important;margin:0!important;padding:0!important}
html body.v127-ui.v134-location-screen .v146113-forge-intro small{font-size:8px!important;letter-spacing:.13em!important}
html body.v127-ui.v134-location-screen .v146113-forge-intro h2{font-size:30px!important;margin:2px 0 0!important}
html body.v127-ui.v134-location-screen .v146113-forge-intro b{font-size:11px!important;margin:3px 0 8px!important}
html body.v127-ui.v134-location-screen .v146113-forge-intro button{height:37px!important;min-height:37px!important;max-width:165px!important;margin:0!important;padding:0 10px!important;border-radius:10px!important}

/* 2) Location status modal — framed, compact, artwork stays inside. */
html body.v127-ui .modal.v146113-location-status-modal{width:min(430px,calc(100vw - 20px))!important;max-height:calc(100dvh - 24px)!important;padding:8px!important;border:1px solid rgba(208,168,77,.48)!important;border-radius:18px!important;background:linear-gradient(145deg,#061719,#031012)!important;box-shadow:0 18px 42px rgba(0,0,0,.50)!important}
html body.v127-ui .v146113-location-status-card{min-height:300px!important;padding:80px 18px 18px!important;border:0!important;border-radius:14px!important;overflow:hidden!important}
html body.v127-ui .v146113-location-status-card::after{border-radius:14px!important}
html body.v127-ui .v146113-location-status-card::before{inset:0!important;transform:none!important;border-radius:14px!important}
html body.v127-ui .v146113-location-status-card .v14415-location-status-card-copy{position:relative!important;padding:14px!important;border:1px solid rgba(202,164,82,.28)!important;border-radius:13px!important;background:rgba(3,14,16,.78)!important;backdrop-filter:blur(4px)!important}
html body.v127-ui .v146113-location-status-card.aggressive .v14415-location-status-card-copy{border-color:rgba(235,112,49,.34)!important;background:rgba(24,9,7,.78)!important}

/* 3-4) Character switch and account confirmation. */
html body.v127-ui .v146113-character-sheet{border:1px solid rgba(204,165,76,.62)!important;border-radius:20px 20px 0 0!important;background:linear-gradient(180deg,rgba(8,25,27,.99),rgba(3,13,16,.995))!important;box-shadow:0 -16px 42px rgba(0,0,0,.50)!important}
html body.v127-ui .v146113-character-sheet>header{border-bottom:1px solid rgba(209,171,85,.24)!important;background:linear-gradient(90deg,rgba(26,66,58,.28),transparent)!important}
html body.v127-ui .v146113-character-row{position:relative!important;overflow:hidden!important;border:1px solid rgba(111,149,141,.28)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(15,40,39,.82),rgba(5,16,19,.95))!important;box-shadow:inset 0 0 18px rgba(0,0,0,.20)!important}
html body.v127-ui .v146113-character-row.tone-warrior{border-color:rgba(203,151,63,.44)!important;background:linear-gradient(135deg,rgba(82,52,18,.28),rgba(8,22,22,.94))!important}
html body.v127-ui .v146113-character-row.tone-rogue{border-color:rgba(163,87,191,.40)!important;background:linear-gradient(135deg,rgba(66,29,82,.28),rgba(8,20,23,.94))!important}
html body.v127-ui .v146113-character-row.tone-healer{border-color:rgba(102,207,176,.42)!important;background:linear-gradient(135deg,rgba(28,83,71,.28),rgba(7,22,23,.94))!important}
html body.v127-ui .v146113-character-row.tone-mage{border-color:rgba(82,134,218,.42)!important;background:linear-gradient(135deg,rgba(25,52,91,.28),rgba(7,18,25,.94))!important}
html body.v127-ui .v146113-character-row.current{box-shadow:inset 0 0 0 1px rgba(169,220,87,.34),0 0 18px rgba(117,187,67,.08)!important}
html body.v127-ui .v146113-character-row .v125-character-art{border:1px solid rgba(205,169,87,.34)!important;background:radial-gradient(circle at 50% 30%,rgba(53,91,77,.26),rgba(3,13,16,.70))!important}
html body.v127-ui .modal.v146113-account-confirm-modal{width:min(430px,calc(100vw - 22px))!important;padding:14px!important;border:1px solid rgba(208,168,77,.60)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(7,28,29,.99),rgba(3,12,15,.99))!important;box-shadow:0 18px 46px rgba(0,0,0,.54)!important}
html body.v127-ui .v146113-account-confirm{padding:10px!important;border:1px solid rgba(101,160,143,.25)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(11,42,38,.55),rgba(4,16,18,.72))!important}
html body.v127-ui .v146113-account-confirm label{display:grid!important;gap:7px!important}
html body.v127-ui .v146113-account-confirm input{height:44px!important;border:1px solid rgba(205,168,82,.34)!important;background:#041316!important;border-radius:11px!important;color:#f1eadb!important}
html body.v127-ui .v146113-account-confirm .v76-confirm-actions{gap:8px!important;margin-top:4px!important}

/* 5) Abilities — themed hierarchy, no flat empty white surfaces. */
html body.v127-ui .v146113-abilities-screen{background:radial-gradient(circle at 50% 10%,rgba(33,87,76,.12),transparent 32%)!important}
html body.v127-ui .v14659-abilities-shell{display:grid!important;gap:10px!important}
html body.v127-ui .v14659-abilities-hero{border:1px solid rgba(105,174,153,.34)!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(11,46,42,.90),rgba(5,19,22,.96)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp") center/100% 100% no-repeat!important;box-shadow:inset 0 0 22px rgba(0,0,0,.24)!important}
html body.v127-ui .v14679-innate-regression{border:1px solid rgba(202,164,82,.34)!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(50,43,18,.34),rgba(5,18,20,.95)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important}
html body.v127-ui .v14659-abilities-progress{border:1px solid rgba(100,153,140,.28)!important;border-radius:14px!important;background:rgba(4,18,21,.88)!important}
html body.v127-ui .v14659-ability-tabs{padding:5px!important;border:1px solid rgba(105,161,148,.28)!important;border-radius:14px!important;background:#041417!important}
html body.v127-ui .v14659-ability-tabs>button{border:1px solid transparent!important;border-radius:11px!important;background:rgba(12,32,34,.70)!important}
html body.v127-ui .v14659-ability-tabs>button.active{border-color:rgba(96,208,176,.46)!important;background:linear-gradient(145deg,rgba(27,96,78,.52),rgba(8,31,31,.88))!important}
html body.v127-ui .v14659-ability-panel{border:1px solid rgba(103,156,144,.30)!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(6,24,27,.94),rgba(3,14,17,.98))!important;padding:10px!important}
html body.v127-ui .v14659-ability-list .v119-ability-card{border:1px solid rgba(108,151,143,.30)!important;background:linear-gradient(120deg,rgba(17,47,43,.80),rgba(5,18,21,.94))!important;box-shadow:inset 0 0 15px rgba(0,0,0,.18)!important}
html body.v127-ui .v14659-ability-list .v119-ability-card.equipped{border-color:rgba(88,207,174,.50)!important;background:linear-gradient(120deg,rgba(23,88,72,.58),rgba(6,22,23,.96))!important}
html body.v127-ui .v14659-ability-list .v119-ability-card.locked{border-color:rgba(128,118,137,.24)!important;background:linear-gradient(120deg,rgba(38,33,44,.55),rgba(9,16,21,.94))!important}
html body.v127-ui .v14659-ability-list .row-actions button{border-radius:10px!important;min-height:38px!important}

/* 6) Rules & documents. */
html body.v127-ui .v146113-rules-screen{background:radial-gradient(circle at 50% 5%,rgba(92,70,28,.10),transparent 28%)!important}
html body.v127-ui .v1420-rules{position:relative!important;padding:10px!important;border:1px solid rgba(203,166,80,.48)!important;border-radius:18px!important;background:linear-gradient(160deg,rgba(10,28,29,.98),rgba(3,14,17,.99)),url("../assets/v146103/ui/merchant/merchant-screen-surface.webp") center/cover no-repeat!important}
html body.v127-ui .v1420-rules>header{padding:10px!important;border:1px solid rgba(203,166,80,.25)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(67,52,21,.26),rgba(7,26,26,.78))!important}
html body.v127-ui .v1420-rules details{border:1px solid rgba(95,151,136,.30)!important;background:linear-gradient(145deg,rgba(7,30,29,.90),rgba(3,15,18,.96))!important;box-shadow:inset 0 0 14px rgba(0,0,0,.18)!important}
html body.v127-ui .v1420-rules details[open]{border-color:rgba(207,167,78,.40)!important;background:linear-gradient(145deg,rgba(52,43,19,.22),rgba(4,19,21,.97))!important}
html body.v127-ui .v1420-rules summary{min-height:54px!important}
html body.v127-ui .v1420-rules footer button{border:1px solid rgba(205,166,77,.55)!important;background:linear-gradient(145deg,rgba(73,63,25,.62),rgba(17,49,43,.78))!important;color:#f5ddb0!important}

/* 7) Settings visual rebuild. */
html body.v127-ui .v146113-settings-screen{background:radial-gradient(circle at 50% 5%,rgba(36,92,82,.12),transparent 31%)!important}
html body.v127-ui .v127-settings{display:grid!important;gap:10px!important}
html body.v127-ui .v127-settings-hero{border:1px solid rgba(111,175,156,.36)!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(15,57,51,.86),rgba(4,18,21,.97)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp") center/100% 100% no-repeat!important}
html body.v127-ui .v127-settings-group{padding:10px!important;border:1px solid rgba(99,148,138,.28)!important;border-radius:16px!important;background:linear-gradient(155deg,rgba(7,28,29,.94),rgba(3,14,17,.98))!important}
html body.v127-ui .v127-settings-group>header{padding-bottom:8px!important;border-bottom:1px solid rgba(99,148,138,.18)!important}
html body.v127-ui .v127-setting-row{border:1px solid rgba(103,153,142,.24)!important;border-radius:13px!important;background:linear-gradient(120deg,rgba(13,41,39,.72),rgba(5,18,21,.90))!important}
html body.v127-ui .v127-setting-icon{border:1px solid rgba(202,164,82,.30)!important;border-radius:11px!important;background:rgba(3,15,17,.72)!important}
html body.v127-ui .v14654-font-option{border:1px solid rgba(105,151,143,.28)!important;background:linear-gradient(135deg,rgba(13,39,38,.78),rgba(5,18,21,.92))!important}
html body.v127-ui .v14654-font-option.active{border-color:rgba(96,209,178,.60)!important;background:linear-gradient(135deg,rgba(25,91,76,.60),rgba(6,25,26,.94))!important}
html body.v127-ui .v127-settings-account{border:1px solid rgba(151,62,74,.44)!important;border-radius:14px!important;background:linear-gradient(120deg,rgba(65,19,27,.52),rgba(13,16,21,.94))!important}

/* 8) Friends — thematic panes and cards. */
html body.v127-ui .v146113-friends-screen{background:radial-gradient(circle at 50% 4%,rgba(38,91,81,.13),transparent 29%)!important}
html body.v127-ui .v146113-friends-pane{padding:10px!important;border:1px solid rgba(101,155,141,.32)!important;border-radius:16px!important;background:linear-gradient(155deg,rgba(7,29,29,.96),rgba(3,14,17,.99)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp") center/100% 100% no-repeat!important;box-shadow:inset 0 0 20px rgba(0,0,0,.20)!important}
html body.v127-ui .v146113-friends-pane>header{padding-bottom:8px!important;border-bottom:1px solid rgba(105,159,146,.20)!important}
html body.v127-ui :is(.v146113-local-player-card,.v146113-friend-card){border:1px solid rgba(107,157,145,.28)!important;border-radius:13px!important;background:linear-gradient(120deg,rgba(15,45,42,.78),rgba(5,17,20,.94))!important;box-shadow:inset 0 0 14px rgba(0,0,0,.16)!important}
html body.v127-ui .v146113-friend-card.online{border-color:rgba(96,195,135,.42)!important;background:linear-gradient(120deg,rgba(20,70,50,.48),rgba(5,18,21,.94))!important}
html body.v127-ui .v125-friend-actions button{border:1px solid rgba(203,166,80,.28)!important;border-radius:10px!important;background:#07191b!important}
html body.v127-ui .v125-friends-empty{border:1px dashed rgba(101,153,141,.30)!important;border-radius:13px!important;background:rgba(4,18,20,.54)!important}

/* 9) Slime Galleries — remove giant stretched frame, frame each logical panel. */
html body.v127-ui :is(.v146113-dungeon-entrance,.v146113-dungeon-instance){overflow:visible!important;padding:9px!important;border:1px solid rgba(111,169,127,.42)!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(7,30,22,.97),rgba(2,14,13,.99)),url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp") center/cover no-repeat!important;box-shadow:0 12px 30px rgba(0,0,0,.36),inset 0 0 26px rgba(65,162,116,.08)!important}
html body.v127-ui :is(.v146113-dungeon-entrance,.v146113-dungeon-instance)::before{display:none!important;content:none!important}
html body.v127-ui :is(.v146113-dungeon-entrance,.v146113-dungeon-instance)>*{position:relative!important;z-index:1!important}
html body.v127-ui :is(.v14643-entry-title,.v14643-map-ticket,.v14643-runbar,.v14643-lobby-title,.v14643-lobby-grid,.v14643-nearby,.v14643-invites,.v14643-party-hud,.v14643-scene,.v14643-route,.v14643-chronicle){border:1px solid rgba(102,156,121,.34)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(6,31,24,.88),rgba(3,15,15,.96)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp") center/100% 100% no-repeat!important;box-shadow:inset 0 0 16px rgba(0,0,0,.18)!important}
html body.v127-ui .v14643-lobby-grid{padding:8px!important;gap:7px!important}
html body.v127-ui .v14643-member{border:1px solid rgba(100,153,119,.26)!important;border-radius:11px!important;background:rgba(5,24,20,.82)!important}
html body.v127-ui .v14643-scene{overflow:hidden!important}
html body.v127-ui .v14643-scene-art{background:linear-gradient(180deg,rgba(3,14,12,.18),rgba(3,14,12,.74))!important}
html body.v127-ui .v14643-scene-copy{background:linear-gradient(180deg,rgba(6,30,23,.94),rgba(2,14,14,.98))!important}
html body.v127-ui .v146113-dungeon-moment{margin:8px!important;border:1px solid rgba(204,165,75,.42)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(40,49,21,.42),rgba(5,22,20,.96)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp") center/100% 100% no-repeat!important;box-shadow:0 8px 18px rgba(0,0,0,.28)!important}
html body.v127-ui .v14643-entrance>[data-dungeon-create],html body.v127-ui .v14643-entrance>[data-dungeon-start]{margin:8px 0 2px!important;border:1px solid rgba(172,216,88,.65)!important;border-radius:12px!important;background:linear-gradient(180deg,#9ed72e,#6da818)!important;color:#102006!important}

/* 10) Attribute modal visual rebuild. */
html body.v127-ui .modal:has(.v119-attribute-detail),html body.v127-ui .modal:has(.attribute-detail-card),html body.v127-ui .modal:has([data-attribute-detail]){border:1px solid rgba(205,166,79,.50)!important;border-radius:18px!important;background:linear-gradient(155deg,rgba(8,30,30,.99),rgba(3,13,16,.99))!important;box-shadow:0 18px 44px rgba(0,0,0,.50)!important}
html body.v127-ui :is(.v119-attribute-detail,.attribute-detail-card){display:grid!important;gap:10px!important}
html body.v127-ui :is(.v119-attribute-detail,.attribute-detail-card)>section,html body.v127-ui :is(.v119-attribute-detail,.attribute-detail-card)>div{border-color:rgba(105,153,142,.28)!important;background:linear-gradient(145deg,rgba(13,43,40,.70),rgba(5,18,21,.90))!important}

/* 11-12) Equipment picker and inventory action geometry. */
html body.v127-ui .v146113-picker-action{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:7px!important}
html body.v127-ui .v146113-picker-action>span{flex:0 1 auto!important;text-align:center!important;line-height:1!important}
html body.v127-ui .v146113-picker-action>.v83-ui-icon{width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;object-fit:contain!important}
html body.v127-ui .v119-inventory-list .v146113-card-action>.v83-ui-icon{width:29px!important;height:29px!important;min-width:29px!important;max-width:29px!important;max-height:29px!important;object-fit:contain!important}
html body.v127-ui .v119-inventory-list .v146113-card-action.drop.solo{min-height:46px!important;height:46px!important}
html body.v127-ui .v119-inventory-list .v146113-card-action.drop.solo>.v83-ui-icon{width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important}

/* 13) Notifications — centered, framed, icon not cropped. */
html body.v127-ui #toast-root{left:50%!important;right:auto!important;top:72px!important;transform:translateX(-50%)!important;width:min(470px,calc(100vw - 22px))!important;justify-items:center!important;pointer-events:none!important}
html body.v127-ui #toast-root>.toast{position:relative!important;width:min(430px,100%)!important;min-width:0!important;min-height:62px!important;margin:0 auto 7px!important;padding:10px 14px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;justify-content:center!important;gap:10px!important;text-align:left!important;border:0!important;border-radius:12px!important;background-color:#0b2023!important;background-image:url("../assets/v146103/ui/notifications/toast-panel.webp")!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;box-shadow:0 9px 24px rgba(0,0,0,.40)!important;overflow:hidden!important;pointer-events:auto!important;transform:none!important}
html body.v127-ui #toast-root>.toast.leaving{opacity:0!important;transform:translateY(-6px) scale(.98)!important}
html body.v127-ui #toast-root>.toast .v128-toast-icon{width:38px!important;height:38px!important;min-width:38px!important;display:grid!important;place-items:center!important;border:1px solid rgba(211,173,86,.36)!important;border-radius:10px!important;background:rgba(3,14,16,.70)!important;overflow:visible!important}
html body.v127-ui #toast-root>.toast .v128-toast-icon :where(img,svg,.v83-ui-icon){width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;object-fit:contain!important}
html body.v127-ui #toast-root>.toast .v128-toast-copy{font-size:11px!important;line-height:1.28!important;font-weight:750!important;color:#f0eadc!important}
html body.v127-ui #notice-root{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(470px,calc(100vw - 22px))!important}
html body.v127-ui #notice-root .timed-notice{border:1px solid rgba(205,167,80,.44)!important;background:linear-gradient(145deg,rgba(13,44,41,.96),rgba(4,16,20,.98)),url("../assets/v146103/ui/notifications/toast-panel.webp") center/100% 100% no-repeat!important;box-shadow:0 10px 26px rgba(0,0,0,.42)!important}

/* 14) Monster information card — loot stays untouched, intro/stats themed. */
html body.v127-ui .v146113-monster-sheet{display:grid!important;gap:9px!important;padding:8px!important;border:1px solid rgba(205,166,78,.44)!important;border-radius:17px!important;background:linear-gradient(155deg,rgba(7,26,28,.98),rgba(3,13,16,.99)),url("../assets/v14699/location-ui/monsters-section-background.webp") center/cover no-repeat!important;box-shadow:inset 0 0 24px rgba(0,0,0,.22)!important}
html body.v127-ui .v146113-monster-intro{padding:9px!important;border:1px solid rgba(106,157,146,.32)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(12,44,40,.78),rgba(5,18,21,.94))!important;align-items:center!important}
html body.v127-ui .v146113-monster-intro .v122-monster-portrait{border:1px solid rgba(205,166,78,.34)!important;border-radius:12px!important;background:radial-gradient(circle,rgba(45,85,72,.20),rgba(3,14,16,.72))!important;overflow:hidden!important}
html body.v127-ui .v146113-monster-intro .v122-monster-portrait :where(img,.monster-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;padding:3px!important}
html body.v127-ui .v146113-monster-intro .v122-monster-title h2{font-size:24px!important;line-height:1!important;margin-bottom:4px!important}
html body.v127-ui .v146113-monster-intro .v122-monster-copy>p{margin-top:6px!important;padding-top:6px!important;border-top:1px solid rgba(105,153,141,.15)!important;font-size:10px!important;line-height:1.35!important;color:#aebebb!important}
html body.v127-ui .v146113-monster-stats{padding:8px!important;border:1px solid rgba(105,153,142,.30)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(8,31,30,.88),rgba(4,16,19,.96))!important}
html body.v127-ui .v146113-monster-stats>h3{margin:0 0 7px!important;color:#f1e4c3!important;font-size:17px!important}
html body.v127-ui .v146113-monster-stats .v125-monster-stat-grid>article{border:1px solid rgba(102,150,139,.24)!important;border-radius:10px!important;background:rgba(9,28,30,.78)!important}
html body.v127-ui .v65-monster-skills .v65-monster-skill{border:1px solid rgba(104,153,141,.28)!important;background:linear-gradient(145deg,rgba(12,40,37,.74),rgba(5,18,21,.92))!important}

/* 15) Battle monster art containment, including Night Cave Bat transparent canvas. */
html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art{overflow:hidden!important}
html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art :where(img,.battle-monster-art,.monster-asset-image){width:90%!important;height:90%!important;max-width:90%!important;max-height:90%!important;object-fit:contain!important;object-position:center!important;transform:none!important;margin:auto!important}
html body.v127-ui.v111-battle-active .v101-monster-card .v101-unit-art img[src*="v93_1_elite.webp"]{transform:translateX(-7%) scale(.86)!important;transform-origin:center!important}

/* 16) Pit — fixed card geometry + take-all aspect corrected. */
html body.v127-ui .v146113-pit-loot-card{width:calc(100% - 4px)!important;min-height:142px!important;height:142px!important;max-height:142px!important;grid-template-columns:78px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 44px!important;align-items:center!important;overflow:hidden!important}
html body.v127-ui .v146113-pit-loot-card .v146101-pit-loot-art{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;align-self:center!important}
html body.v127-ui .v146113-pit-loot-card .v146101-pit-loot-copy{min-width:0!important;align-self:center!important}
html body.v127-ui .v146113-pit-loot-card .v146101-pit-loot-copy strong{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:15px!important;line-height:1.1!important}
html body.v127-ui .v146113-pit-loot-card .v146112-pit-actions{grid-column:1/-1!important;width:100%!important;align-self:end!important}
html body.v127-ui .v146113-pit-take-all{width:min(278px,82%)!important;height:58px!important;min-height:58px!important;max-height:58px!important;padding:0 20px!important;grid-template-columns:28px minmax(0,1fr) 28px!important;background-size:100% 100%!important}
html body.v127-ui .v146113-pit-take-all>.v83-ui-icon{width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;max-height:27px!important}
html body.v127-ui .v146113-pit-take-all>span{font-size:13px!important}
html body.v127-ui .v146113-pit-take-all>small{width:28px!important;height:28px!important;min-width:28px!important;padding:0!important}

/* Item modal close remains in-card and full dim reaches the viewport edge. */
html body.v127-ui .modal-back.has-v146113-item-modal{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;background:rgba(1,7,9,.88)!important;backdrop-filter:blur(8px)!important;padding:7px!important}
html body.v127-ui .modal.v146113-item-modal>.modal-close{top:8px!important;right:8px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;font-size:17px!important}

@media(max-width:380px){
 html body.v127-ui .v146113-pit-loot-card{grid-template-columns:70px minmax(0,1fr)!important;height:136px!important;min-height:136px!important;max-height:136px!important}
 html body.v127-ui .v146113-pit-loot-card .v146101-pit-loot-art{width:66px!important;height:66px!important;min-width:66px!important;min-height:66px!important}
 html body.v127-ui .v146113-pit-take-all{width:min(252px,84%)!important;height:56px!important;min-height:56px!important;max-height:56px!important}
 html body.v127-ui .v146113-monster-intro .v122-monster-title h2{font-size:21px!important}
 html body.v127-ui #toast-root>.toast{grid-template-columns:34px minmax(0,1fr)!important;padding:9px 11px!important}
 html body.v127-ui #toast-root>.toast .v128-toast-icon{width:34px!important;height:34px!important;min-width:34px!important}
}


/* v146113 refinement: all visible X controls use the same compact framed treatment. */
html body.v127-ui :is(button[aria-label="Закрыть"],.v127-target-close,.v14643-drawer>header>button,.v14643-invites article>button:last-child){
  display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border:1px solid rgba(217,174,83,.58)!important;border-radius:11px!important;background:linear-gradient(145deg,rgba(26,55,50,.96),rgba(6,20,23,.98))!important;color:#efb95e!important;box-shadow:inset 0 0 0 1px rgba(255,226,151,.05),0 4px 10px rgba(0,0,0,.26)!important;font-size:20px!important;line-height:1!important;overflow:hidden!important
}

/* Attribute information card: explicit classes rather than heuristic :has selectors. */
html body.v127-ui .modal.v146113-attribute-info-modal{width:min(430px,calc(100vw - 20px))!important;padding:12px!important;border:1px solid rgba(205,166,79,.56)!important;border-radius:18px!important;background:linear-gradient(155deg,rgba(7,28,29,.995),rgba(3,12,15,.995))!important;box-shadow:0 20px 48px rgba(0,0,0,.54)!important}
html body.v127-ui .v146113-attribute-detail{display:grid!important;gap:10px!important}
html body.v127-ui .v146113-attribute-detail .v42-attr-big{padding:12px!important;border:1px solid rgba(220,176,80,.34)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(80,67,28,.26),rgba(9,28,29,.88))!important}
html body.v127-ui .v146113-attribute-detail :is(.v14658-attribute-general,.v44-attr-class-box,.v81-attr-milestones){padding:11px!important;border:1px solid rgba(106,157,145,.30)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(12,42,39,.76),rgba(5,18,21,.94))!important}
html body.v127-ui .v146113-attribute-detail .v14658-attribute-lore{margin:0!important;padding:10px 12px!important;border-left:2px solid rgba(215,174,80,.48)!important;background:rgba(7,24,25,.70)!important;border-radius:0 11px 11px 0!important}
html body.v127-ui .v146113-attribute-detail .v81-attr-milestones>div{padding:9px!important;border:1px solid rgba(104,153,142,.20)!important;border-radius:10px!important;background:rgba(4,18,20,.62)!important}

/* System/world notices share the centered toast language without stretching or clipped marks. */
html body.v127-ui #v1410-global-notices{position:fixed!important;left:50%!important;right:auto!important;top:calc(70px + env(safe-area-inset-top))!important;transform:translateX(-50%)!important;width:min(470px,calc(100vw - 22px))!important;max-width:470px!important;display:grid!important;justify-items:center!important;gap:7px!important;z-index:6000!important;pointer-events:none!important}
html body.v127-ui #v1410-global-notices>.v146113-global-notice{position:relative!important;left:auto!important;right:auto!important;width:min(430px,100%)!important;max-width:430px!important;margin:0 auto!important;padding:10px 12px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) 34px!important;align-items:center!important;gap:9px!important;border:0!important;border-radius:12px!important;background:url("../assets/v146103/ui/notifications/toast-panel.webp") center/100% 100% no-repeat!important;box-shadow:0 10px 26px rgba(0,0,0,.42)!important;transform:none!important;pointer-events:auto!important;overflow:hidden!important}
html body.v127-ui #v1410-global-notices>.v146113-global-notice .v1410-notice-mark{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border:1px solid rgba(211,173,86,.36)!important;border-radius:10px!important;background:rgba(3,14,16,.68)!important;color:#eac160!important;font-size:17px!important}
html body.v127-ui #v1410-global-notices>.v146113-global-notice>div{min-width:0!important}
html body.v127-ui #v1410-global-notices>.v146113-global-notice>div :is(b,p){overflow-wrap:anywhere!important}
html body.v127-ui #v1410-global-notices>.v146113-global-notice>button{justify-self:end!important}

/* Make the dungeon redesign attach to the actual entrance/instance nodes and neutralise legacy full-height pseudo frames. */
html body.v127-ui :is(.v14643-entrance.v146113-dungeon-entrance,.v14643-instance.v146113-dungeon-instance)::before,
html body.v127-ui :is(.v14643-entrance.v146113-dungeon-entrance,.v14643-instance.v146113-dungeon-instance)::after{display:none!important;content:none!important;background:none!important;border:0!important;box-shadow:none!important}
html body.v127-ui .v14643-entrance.v146113-dungeon-entrance{padding:10px!important;background:linear-gradient(180deg,rgba(7,30,22,.96),rgba(2,14,13,.99)),url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp") center/cover no-repeat!important}
html body.v127-ui .v14643-instance.v146113-dungeon-instance{padding:10px!important;background:linear-gradient(180deg,rgba(6,27,22,.96),rgba(2,13,14,.99)),url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp") center/cover no-repeat!important}

/* Item backdrop: modal() now emits has-* for every modal class. */
html body.v127-ui .modal-back.has-v146113-item-modal{display:grid!important;place-items:center!important;overflow:auto!important}

/* ===== css/v146114-ui-refinement.css ===== */
/* Aldos RPG v1.146.114 — UI refinement / mobile-first repair.
   Existing project assets only. No generated images. No gameplay/state changes. */

html body.v146114-ui{
  --v114-deep:#020d10;
  --v114-panel:#07191a;
  --v114-panel-2:#0a2320;
  --v114-line:rgba(203,166,81,.52);
  --v114-line-soft:rgba(104,163,146,.34);
  --v114-gold:#e0b968;
  --v114-teal:#69d4b2;
  --v114-green:#8fd34b;
  --v114-red:#d76762;
  --v114-text:#eee8da;
  --v114-muted:#9ca8a1;
}

/* ========================================================================== */
/* 1. Shared close controls: style ONLY real close buttons.                    */
/* The v1.146.113 selector accidentally also styled the dungeon Continue      */
/* button because it shares data-dungeon-moment-close. v114 overrides it.     */
/* ========================================================================== */
html body.v146114-ui :is(
  .modal-close,
  .v146113-close,
  .v14417-gift-close,
  .v1469-chat-close,
  [data-character-close][aria-label*="Зак"],
  button[aria-label="Закрыть"],
  .v14643-drawer>header>button,
  .timed-notice .notice-head>[data-close],
  button[data-close-monster-card].small,
  button[data-close-player-card].small,
  button[data-close-ability-target][aria-label="Закрыть"],
  [data-act="menu-close"]:not(.v119-side-backdrop),
  [data-side-close]:not(.v119-side-backdrop),
  #help-drawer-close,
  #v89-altar-close,
  .v14644-drawer>header>button,
  .v14644-modal>article>button[data-patron-dialog-close]:first-child,
  .v14643-invites article>button[data-accept="0"],
  [data-dungeon-kick]
){
  display:grid!important;place-items:center!important;
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;
  padding:0!important;border:1px solid rgba(226,184,94,.72)!important;border-radius:11px!important;
  color:#f7ca73!important;background-color:#071719!important;
  background-image:linear-gradient(145deg,rgba(18,58,52,.93),rgba(4,16,19,.98)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  box-shadow:0 5px 14px rgba(0,0,0,.40),inset 0 0 0 1px rgba(255,231,167,.09)!important;
  font-size:20px!important;line-height:1!important;text-align:center!important;overflow:hidden!important;
}
html body.v146114-ui :is(.modal-close,.v146113-close,.v14417-gift-close,.v1469-chat-close,button[aria-label="Закрыть"]):active{transform:scale(.96)!important}

/* CRITICAL: Continue is a normal action, never a 38x38 close square. */
html body.v146114-ui .v14643-moment>.primary[data-dungeon-moment-close]{
  position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:min(190px,100%)!important;max-width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:9px 0 0!important;padding:0 18px!important;border:1px solid rgba(164,215,92,.62)!important;border-radius:11px!important;
  color:#f4ffe4!important;background:linear-gradient(180deg,rgba(72,122,32,.94),rgba(28,66,20,.98))!important;
  box-shadow:inset 0 0 0 1px rgba(230,255,167,.11),0 4px 11px rgba(0,0,0,.30)!important;
  font-size:11px!important;font-weight:900!important;line-height:1!important;overflow:visible!important;
}

/* ========================================================================== */
/* 2. Top bar + bottom navigation. Existing surface asset is cropped, not     */
/* stretched.                                                                  */
/* ========================================================================== */
html body.v146114-ui .v146114-topbar,
html body.v146114-ui .v146113-friends-topbar{
  min-height:58px!important;padding:5px 8px!important;gap:7px!important;
  border-bottom:1px solid rgba(216,174,84,.52)!important;
  background-color:#041416!important;
  background-image:linear-gradient(180deg,rgba(3,18,20,.84),rgba(2,12,15,.96)),url("../assets/v146103/ui/merchant/merchant-header-surface.webp")!important;
  background-size:cover!important;background-position:center 42%!important;background-repeat:no-repeat!important;
  box-shadow:0 7px 20px rgba(0,0,0,.38),inset 0 -1px rgba(255,224,147,.05)!important;
}
html body.v146114-ui .v146114-topbar :is(.hamburger,.v121-top-avatar-button),
html body.v146114-ui .v146113-friends-topbar :is(.hamburger,.v121-top-avatar-button){
  width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:4px!important;
  border:1px solid rgba(215,175,85,.58)!important;border-radius:12px!important;
  background:linear-gradient(145deg,rgba(19,56,51,.94),rgba(4,18,21,.97))!important;
  box-shadow:inset 0 0 0 1px rgba(255,228,157,.06),0 3px 10px rgba(0,0,0,.27)!important;
  overflow:hidden!important;
}
html body.v146114-ui .v146114-topbar .v121-top-avatar-button :is(img,.class-asset-image),
html body.v146114-ui .v146113-friends-topbar .v121-top-avatar-button :is(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146114-ui .v146114-topbar .v121-top-player-copy{min-width:0!important;padding-left:2px!important}
html body.v146114-ui .v146114-topbar .v121-top-player-copy strong{line-height:1.05!important}
html body.v146114-ui .v78-location-chat-tab{
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:5px!important;
  border:1px solid rgba(215,175,85,.60)!important;border-radius:12px!important;
  background:linear-gradient(145deg,rgba(22,66,58,.96),rgba(4,20,23,.98))!important;
  box-shadow:0 4px 12px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,228,157,.06)!important;
}
html body.v146114-ui .v146114-bottom-nav,
html body.v146114-ui .v146113-bottom-nav{
  min-height:62px!important;padding:5px 7px max(5px,env(safe-area-inset-bottom))!important;gap:5px!important;
  border-top:1px solid rgba(216,174,84,.50)!important;
  background-color:#031315!important;
  background-image:linear-gradient(180deg,rgba(4,19,21,.89),rgba(2,11,13,.99)),url("../assets/v146103/ui/merchant/merchant-header-surface.webp")!important;
  background-size:cover!important;background-position:center 62%!important;background-repeat:no-repeat!important;
  box-shadow:0 -8px 22px rgba(0,0,0,.36)!important;
}
html body.v146114-ui .v146114-bottom-nav>button,
html body.v146114-ui .v146113-bottom-nav>button{
  min-height:50px!important;padding:3px 4px!important;border:1px solid rgba(105,151,140,.14)!important;border-radius:13px!important;
  background:rgba(3,18,20,.42)!important;box-shadow:inset 0 0 12px rgba(0,0,0,.14)!important;
}
html body.v146114-ui .v146114-bottom-nav>button.active,
html body.v146114-ui .v146113-bottom-nav>button.active{
  border-color:rgba(222,181,90,.69)!important;
  background:linear-gradient(145deg,rgba(76,66,26,.42),rgba(10,42,37,.82))!important;
  box-shadow:inset 0 0 0 1px rgba(255,230,160,.08),0 0 13px rgba(145,193,82,.08)!important;
}
html body.v146114-ui .v146114-bottom-nav>button .nav-glyph,
html body.v146114-ui .v146113-bottom-nav>button .nav-glyph{width:27px!important;height:27px!important;object-fit:contain!important}

/* ========================================================================== */
/* 3. Gorgan: compact NPC presentation, no descriptive line in location card. */
/* ========================================================================== */
html body.v146114-ui.v134-location-screen .v146114-forge-intro :is(p,b){display:none!important}
html body.v146114-ui.v134-location-screen .v146114-forge-intro{gap:2px!important;align-content:start!important}
html body.v146114-ui.v134-location-screen .v146114-forge-intro h2{margin:2px 0 8px!important}

/* ========================================================================== */
/* 4. Full location-status card: real frame, artwork remains cover-cropped.    */
/* ========================================================================== */
html body.v146114-ui .modal.v146114-location-status-modal{
  width:min(438px,calc(100vw - 16px))!important;max-height:calc(100dvh - 20px)!important;padding:7px!important;
  border:1px solid rgba(218,177,86,.54)!important;border-radius:19px!important;
  background:linear-gradient(145deg,#071c1d,#020d10)!important;box-shadow:0 20px 50px rgba(0,0,0,.58)!important;
}
html body.v146114-ui .v146114-location-status-card{
  position:relative!important;min-height:320px!important;padding:82px 18px 18px!important;border:13px solid transparent!important;border-radius:16px!important;
  border-image-source:url("../assets/v14695/location-ui/frames/location-status-frame.webp")!important;
  border-image-slice:150 260 fill!important;border-image-width:13px!important;border-image-outset:0!important;border-image-repeat:stretch!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;overflow:hidden!important;
}
html body.v146114-ui .v146114-location-status-card.calm{background-image:linear-gradient(180deg,rgba(5,21,22,.14),rgba(2,13,15,.58)),url("../assets/v14415/ui/location-calm-card.webp")!important}
html body.v146114-ui .v146114-location-status-card.aggressive{background-image:linear-gradient(180deg,rgba(32,10,8,.12),rgba(14,4,5,.62)),url("../assets/v14415/ui/location-aggressive-card.webp")!important}
html body.v146114-ui .v146114-location-status-card::before,
html body.v146114-ui .v146114-location-status-card::after{pointer-events:none!important}
html body.v146114-ui .v146114-location-status-card .v14415-location-status-card-copy{
  position:relative!important;padding:15px!important;border:1px solid rgba(217,177,87,.34)!important;border-radius:13px!important;
  background:linear-gradient(145deg,rgba(4,22,22,.88),rgba(3,13,16,.92))!important;box-shadow:inset 0 0 18px rgba(0,0,0,.22)!important;backdrop-filter:blur(5px)!important;
}
html body.v146114-ui .v146114-location-status-card.aggressive .v14415-location-status-card-copy{border-color:rgba(223,105,63,.44)!important;background:linear-gradient(145deg,rgba(35,11,9,.88),rgba(12,8,10,.94))!important}

/* ========================================================================== */
/* 5. Character switch + delayed account confirmation.                        */
/* ========================================================================== */
html body.v146114-ui .v146114-character-sheet{
  border:1px solid rgba(214,174,84,.66)!important;border-radius:20px 20px 0 0!important;
  background-color:#041416!important;background-image:linear-gradient(180deg,rgba(7,30,29,.95),rgba(2,12,15,.995)),url("../assets/v146103/ui/merchant/merchant-screen-surface.webp")!important;
  background-position:center top!important;background-size:cover!important;background-repeat:no-repeat!important;
  box-shadow:0 -18px 46px rgba(0,0,0,.54),inset 0 0 30px rgba(0,0,0,.18)!important;
}
html body.v146114-ui .v146114-character-sheet>header{border-bottom:1px solid rgba(214,174,84,.28)!important;background:linear-gradient(90deg,rgba(44,91,74,.24),rgba(58,45,19,.16),transparent)!important}
html body.v146114-ui .v146114-character-row{
  border:1px solid rgba(113,166,150,.34)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(15,48,44,.88),rgba(4,17,20,.97))!important;
  box-shadow:inset 0 0 20px rgba(0,0,0,.23),0 5px 13px rgba(0,0,0,.16)!important;
}
html body.v146114-ui .v146114-character-row.tone-warrior{border-color:rgba(211,156,65,.56)!important;background:linear-gradient(135deg,rgba(88,55,18,.46),rgba(7,23,22,.98))!important}
html body.v146114-ui .v146114-character-row.tone-rogue{border-color:rgba(165,91,191,.50)!important;background:linear-gradient(135deg,rgba(68,30,83,.44),rgba(7,19,23,.98))!important}
html body.v146114-ui .v146114-character-row.tone-healer{border-color:rgba(99,207,171,.52)!important;background:linear-gradient(135deg,rgba(24,85,68,.42),rgba(6,22,22,.98))!important}
html body.v146114-ui .v146114-character-row.tone-mage{border-color:rgba(88,142,224,.52)!important;background:linear-gradient(135deg,rgba(26,58,100,.46),rgba(6,18,25,.98))!important}
html body.v146114-ui .v146114-character-row .v125-character-art{border:1px solid rgba(219,179,88,.42)!important;border-radius:11px!important;background:radial-gradient(circle at 50% 32%,rgba(65,108,88,.30),rgba(3,13,16,.82))!important}
html body.v146114-ui .modal.v146114-account-confirm-modal{
  width:min(432px,calc(100vw - 20px))!important;padding:10px!important;border:1px solid rgba(218,177,87,.65)!important;border-radius:18px!important;
  background-color:#06191a!important;background-image:linear-gradient(150deg,rgba(7,30,29,.87),rgba(3,12,15,.96)),url("../assets/v146103/ui/notifications/confirm-panel.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:0 21px 50px rgba(0,0,0,.58)!important;
}
html body.v146114-ui .v146114-account-confirm{display:grid!important;gap:11px!important;padding:12px!important;border:1px solid rgba(110,169,150,.29)!important;border-radius:14px!important;background:rgba(3,17,19,.73)!important;backdrop-filter:blur(4px)!important}
html body.v146114-ui .v146114-account-confirm-head{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
html body.v146114-ui .v146114-account-confirm-emblem{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;border:1px solid rgba(219,179,88,.44)!important;border-radius:12px!important;background:linear-gradient(145deg,rgba(53,48,24,.44),rgba(5,23,23,.82))!important}
html body.v146114-ui .v146114-account-confirm-emblem img{width:31px!important;height:31px!important;object-fit:contain!important}
html body.v146114-ui .v146114-account-confirm-head small{color:#83d9be!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important}
html body.v146114-ui .v146114-account-confirm-head b{display:block!important;margin:2px 0!important;color:#f2e6ca!important;font-size:16px!important}
html body.v146114-ui .v146114-account-confirm-head p{margin:0!important;color:#98aaa2!important;font-size:10px!important;line-height:1.35!important}
html body.v146114-ui .v146114-account-confirm input{height:45px!important;border:1px solid rgba(216,176,86,.42)!important;border-radius:11px!important;background:#041416!important;color:#f3ead9!important;box-shadow:inset 0 0 12px rgba(0,0,0,.28)!important}

/* ========================================================================== */
/* 6. Abilities: layered backgrounds, useful state colors, no flat panels.    */
/* ========================================================================== */
html body.v146114-ui .v146114-abilities-screen{background:radial-gradient(circle at 50% 4%,rgba(39,102,87,.16),transparent 31%)!important}
html body.v146114-ui .v146114-abilities-screen .v14659-abilities-shell{gap:11px!important}
html body.v146114-ui .v146114-abilities-screen .v14659-abilities-hero{
  border:1px solid rgba(106,182,156,.42)!important;border-radius:17px!important;background-color:#0a2925!important;
  background-image:linear-gradient(145deg,rgba(12,54,47,.78),rgba(4,18,21,.94)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:inset 0 0 24px rgba(0,0,0,.24),0 6px 16px rgba(0,0,0,.18)!important;
}
html body.v146114-ui .v146114-abilities-screen .v14679-innate-regression{
  border:1px solid rgba(218,177,87,.44)!important;border-radius:16px!important;background-color:#262416!important;
  background-image:linear-gradient(145deg,rgba(59,51,21,.42),rgba(4,19,20,.93)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}
html body.v146114-ui .v146114-abilities-screen .v14659-abilities-progress{border:1px solid rgba(109,164,149,.30)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(5,24,25,.94),rgba(3,14,17,.98))!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-tabs{padding:5px!important;border:1px solid rgba(108,165,150,.32)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(6,28,28,.92),rgba(3,14,17,.98))!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-tabs>button{border:1px solid rgba(103,148,139,.14)!important;border-radius:11px!important;background:rgba(9,31,31,.72)!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-tabs>button.active{border-color:rgba(96,217,181,.58)!important;background:linear-gradient(145deg,rgba(22,100,78,.61),rgba(7,34,32,.94))!important;box-shadow:inset 0 0 0 1px rgba(181,255,225,.06)!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-panel{padding:10px!important;border:1px solid rgba(110,160,148,.32)!important;border-radius:16px!important;background:linear-gradient(180deg,rgba(6,28,29,.95),rgba(3,14,17,.99))!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-list .v119-ability-card{border:1px solid rgba(111,160,149,.33)!important;border-radius:14px!important;background:linear-gradient(120deg,rgba(16,49,44,.83),rgba(5,18,21,.96))!important;box-shadow:inset 0 0 17px rgba(0,0,0,.20)!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-list .v119-ability-card.equipped{border-color:rgba(90,218,181,.57)!important;background:linear-gradient(120deg,rgba(21,97,77,.62),rgba(5,23,23,.97))!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-list .v119-ability-card.locked{border-color:rgba(140,123,153,.30)!important;background:linear-gradient(120deg,rgba(45,36,50,.62),rgba(8,16,21,.97))!important;filter:saturate(.73)!important}
html body.v146114-ui .v146114-abilities-screen .v14659-ability-list .row-actions button{min-height:39px!important;border:1px solid rgba(204,167,82,.30)!important;border-radius:10px!important;background:linear-gradient(145deg,rgba(29,52,49,.84),rgba(8,23,26,.94))!important}

/* ========================================================================== */
/* 7. Rules/documents.                                                         */
/* ========================================================================== */
html body.v146114-ui .v146114-rules-screen{background:radial-gradient(circle at 50% 4%,rgba(95,72,27,.13),transparent 29%)!important}
html body.v146114-ui .v146114-rules-screen .v1420-rules{padding:10px!important;border:1px solid rgba(215,175,85,.55)!important;border-radius:18px!important;background-color:#071719!important;background-image:linear-gradient(160deg,rgba(8,28,28,.89),rgba(3,13,16,.97)),url("../assets/v146103/ui/merchant/merchant-screen-surface.webp")!important;background-size:cover!important;background-position:center top!important;background-repeat:no-repeat!important;box-shadow:inset 0 0 28px rgba(0,0,0,.18)!important}
html body.v146114-ui .v146114-rules-screen .v1420-rules>header{padding:11px!important;border:1px solid rgba(214,174,84,.32)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(70,54,21,.33),rgba(7,28,27,.82))!important}
html body.v146114-ui .v146114-rules-screen .v1420-rules details{overflow:hidden!important;border:1px solid rgba(106,163,147,.32)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(7,32,30,.91),rgba(3,15,18,.97))!important;box-shadow:inset 0 0 16px rgba(0,0,0,.18)!important}
html body.v146114-ui .v146114-rules-screen .v1420-rules details[open]{border-color:rgba(214,175,84,.48)!important;background:linear-gradient(145deg,rgba(56,46,18,.29),rgba(4,20,21,.98))!important}
html body.v146114-ui .v146114-rules-screen .v1420-rules summary{min-height:56px!important;padding-inline:10px!important}
html body.v146114-ui .v146114-rules-screen .v1420-rules footer{padding-top:8px!important;border-top:1px solid rgba(107,159,146,.18)!important}
html body.v146114-ui .v146114-rules-screen .v1420-rules footer button{border:1px solid rgba(214,174,84,.60)!important;border-radius:11px!important;background:linear-gradient(145deg,rgba(78,66,25,.68),rgba(13,49,42,.84))!important;color:#f4ddb0!important}

/* ========================================================================== */
/* 8. Settings.                                                                */
/* ========================================================================== */
html body.v146114-ui .v146114-settings-screen{background:radial-gradient(circle at 50% 4%,rgba(36,102,88,.16),transparent 30%)!important}
html body.v146114-ui .v146114-settings-screen .v127-settings{gap:11px!important}
html body.v146114-ui .v146114-settings-screen .v127-settings-hero{
  border:1px solid rgba(107,181,157,.43)!important;border-radius:17px!important;background-color:#092723!important;
  background-image:linear-gradient(145deg,rgba(13,60,51,.80),rgba(4,18,21,.95)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp")!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}
html body.v146114-ui .v146114-settings-screen .v127-settings-group{padding:10px!important;border:1px solid rgba(106,160,147,.33)!important;border-radius:16px!important;background:linear-gradient(155deg,rgba(7,31,30,.95),rgba(3,14,17,.99))!important;box-shadow:inset 0 0 18px rgba(0,0,0,.18)!important}
html body.v146114-ui .v146114-settings-screen .v127-settings-group>header{padding-bottom:9px!important;border-bottom:1px solid rgba(108,163,148,.19)!important}
html body.v146114-ui .v146114-settings-screen .v127-setting-row{border:1px solid rgba(108,159,147,.28)!important;border-radius:13px!important;background:linear-gradient(120deg,rgba(14,45,41,.76),rgba(5,18,21,.93))!important}
html body.v146114-ui .v146114-settings-screen .v127-setting-icon{border:1px solid rgba(215,175,85,.36)!important;border-radius:11px!important;background:rgba(3,16,18,.80)!important}
html body.v146114-ui .v146114-settings-screen :is(.v14654-font-option,.v14668-tutorial-replay,.v14638-official-sources a){border:1px solid rgba(108,159,148,.29)!important;border-radius:11px!important;background:linear-gradient(135deg,rgba(14,43,41,.81),rgba(5,18,21,.94))!important}
html body.v146114-ui .v146114-settings-screen .v14654-font-option.active{border-color:rgba(94,216,181,.63)!important;background:linear-gradient(135deg,rgba(23,99,78,.64),rgba(6,26,26,.96))!important}
html body.v146114-ui .v146114-settings-screen .v127-settings-account{border:1px solid rgba(180,75,84,.52)!important;border-radius:14px!important;background:linear-gradient(120deg,rgba(72,21,29,.57),rgba(13,16,21,.96))!important}

/* ========================================================================== */
/* 9. Friends.                                                                 */
/* ========================================================================== */
html body.v146114-ui .v146114-friends-screen{background:radial-gradient(circle at 50% 4%,rgba(37,101,86,.16),transparent 30%)!important}
html body.v146114-ui .v146114-friends-pane{padding:10px!important;border:1px solid rgba(107,164,147,.36)!important;border-radius:17px!important;background-color:#071c1b!important;background-image:linear-gradient(155deg,rgba(7,33,31,.90),rgba(3,14,17,.98)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp")!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:inset 0 0 20px rgba(0,0,0,.20),0 6px 16px rgba(0,0,0,.15)!important}
html body.v146114-ui .v146114-friends-pane>header{padding-bottom:8px!important;border-bottom:1px solid rgba(109,165,149,.22)!important}
html body.v146114-ui :is(.v146114-local-player-card,.v146114-friend-card){border:1px solid rgba(109,163,149,.33)!important;border-radius:13px!important;background:linear-gradient(120deg,rgba(15,49,44,.83),rgba(5,17,20,.96))!important;box-shadow:inset 0 0 14px rgba(0,0,0,.18)!important}
html body.v146114-ui .v146114-friend-card.online{border-color:rgba(91,207,133,.50)!important;background:linear-gradient(120deg,rgba(20,76,51,.54),rgba(5,19,21,.96))!important}
html body.v146114-ui .v146114-friends-screen .v125-friend-actions button{min-width:39px!important;min-height:39px!important;border:1px solid rgba(214,174,84,.34)!important;border-radius:10px!important;background:linear-gradient(145deg,rgba(21,49,45,.88),rgba(5,20,23,.96))!important;box-shadow:inset 0 0 0 1px rgba(255,228,158,.04)!important}
html body.v146114-ui .v146114-friends-screen .v125-friend-actions button.danger{border-color:rgba(198,83,88,.42)!important;background:linear-gradient(145deg,rgba(73,23,29,.72),rgba(18,12,17,.96))!important}
html body.v146114-ui .v146114-friends-screen .v125-friends-empty{border:1px dashed rgba(108,161,147,.35)!important;border-radius:13px!important;background:rgba(4,19,21,.64)!important}

/* ========================================================================== */
/* 10. Slime Galleries: no giant frame on entire page. Every logical block     */
/* receives its own surface/frame.                                             */
/* ========================================================================== */
html body.v146114-ui :is(.v146114-dungeon-entrance,.v146114-dungeon-instance,.v14643-entrance.v146113-dungeon-entrance,.v14643-instance.v146113-dungeon-instance){
  position:relative!important;overflow:visible!important;padding:8px!important;border:0!important;border-radius:0!important;
  background-color:#041813!important;background-image:linear-gradient(180deg,rgba(4,25,19,.76),rgba(2,13,13,.96)),url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp")!important;
  background-size:100% auto!important;background-position:center top!important;background-repeat:no-repeat!important;box-shadow:none!important;
}
html body.v146114-ui :is(.v14643-entrance.v146113-dungeon-entrance,.v14643-instance.v146113-dungeon-instance)::before,
html body.v146114-ui :is(.v14643-entrance.v146113-dungeon-entrance,.v14643-instance.v146113-dungeon-instance)::after{display:none!important;content:none!important;border:0!important;background:none!important;box-shadow:none!important}
html body.v146114-ui :is(.v14643-entry-title,.v14643-map-ticket,.v14643-runbar,.v14643-lobby-title,.v14643-lobby-grid,.v14643-nearby,.v14643-invites,.v14643-party-hud,.v14643-scene,.v14643-route,.v14643-chronicle){
  border:1px solid rgba(105,171,126,.38)!important;border-radius:14px!important;background-color:#09241c!important;
  background-image:linear-gradient(145deg,rgba(6,34,25,.89),rgba(3,15,15,.97)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:inset 0 0 17px rgba(0,0,0,.20),0 5px 13px rgba(0,0,0,.14)!important;
}
html body.v146114-ui .v14643-runbar{padding:8px!important}
html body.v146114-ui .v14643-runbar nav button{min-height:31px!important;padding:4px 8px!important;border:1px solid rgba(185,204,116,.27)!important;border-radius:10px!important;background:linear-gradient(145deg,rgba(33,62,40,.75),rgba(8,28,23,.94))!important;color:#e7edd5!important}
html body.v146114-ui .v14643-lobby-grid{padding:8px!important;gap:7px!important}
html body.v146114-ui .v14643-member{border:1px dashed rgba(113,170,129,.26)!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(11,42,29,.62),rgba(4,20,17,.88))!important}
html body.v146114-ui .v14643-member:not(.empty){border-style:solid!important;border-color:rgba(126,188,139,.38)!important}
html body.v146114-ui .v14643-scene{overflow:hidden!important;border-color:rgba(130,190,137,.45)!important;border-radius:17px!important}
html body.v146114-ui .v14643-scene-head{padding:10px 12px!important;border-bottom:1px solid rgba(107,164,121,.22)!important;background:linear-gradient(90deg,rgba(35,74,44,.34),transparent)!important}
html body.v146114-ui .v14643-scene-art{background:radial-gradient(circle at 50% 45%,rgba(118,164,67,.16),rgba(4,13,9,.96) 76%)!important}
html body.v146114-ui .v14643-route,.v146114-ui .v14643-chronicle{padding:8px!important}
html body.v146114-ui .v14643-moment{
  inset:9px!important;padding:14px!important;border:1px solid rgba(218,177,87,.50)!important;border-radius:15px!important;background-color:#10221a!important;
  background-image:linear-gradient(145deg,rgba(40,51,22,.46),rgba(4,21,19,.96)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:0 18px 40px rgba(0,0,0,.55),inset 0 0 18px rgba(0,0,0,.18)!important;
}
html body.v146114-ui .v14643-moment>img{object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 5px 10px rgba(0,0,0,.42))!important}
html body.v146114-ui .v14643-moment>button:first-child{position:absolute!important;top:7px!important;right:7px!important}
html body.v146114-ui .v14643-instance-foot{margin-top:6px!important;padding:7px 5px!important;border:1px solid rgba(105,161,121,.21)!important;border-radius:11px!important;background:rgba(4,20,17,.72)!important}

/* ========================================================================== */
/* 11. Attribute detail modal.                                                 */
/* ========================================================================== */
html body.v146114-ui .modal.v146114-attribute-info-modal{
  width:min(432px,calc(100vw - 18px))!important;padding:10px!important;border:1px solid rgba(218,177,87,.61)!important;border-radius:18px!important;
  background-color:#071b1b!important;background-image:linear-gradient(155deg,rgba(7,31,29,.90),rgba(3,13,16,.98)),url("../assets/v146103/ui/notifications/confirm-panel.webp")!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:0 20px 50px rgba(0,0,0,.57)!important;
}
html body.v146114-ui .v146114-attribute-detail{display:grid!important;gap:10px!important;padding:8px!important;border:1px solid rgba(108,164,148,.25)!important;border-radius:14px!important;background:rgba(3,17,19,.73)!important}
html body.v146114-ui .v146114-attribute-hero{
  display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;padding:11px!important;
  border:1px solid rgba(219,178,87,.42)!important;border-radius:13px!important;background:linear-gradient(135deg,rgba(72,60,24,.36),rgba(7,29,28,.91))!important;
}
html body.v146114-ui .v146114-attribute-icon{display:grid!important;place-items:center!important;width:54px!important;height:54px!important;border:1px solid rgba(214,174,84,.37)!important;border-radius:12px!important;background:rgba(3,16,18,.82)!important}
html body.v146114-ui .v146114-attribute-icon img{width:40px!important;height:40px!important;object-fit:contain!important}
html body.v146114-ui .v146114-attribute-hero div{display:grid!important;gap:2px!important;min-width:0!important}
html body.v146114-ui .v146114-attribute-hero small{color:#77d1b6!important;font-size:8px!important;font-weight:900!important;letter-spacing:.12em!important}
html body.v146114-ui .v146114-attribute-hero b{color:#f2e9d8!important;font-size:20px!important}
html body.v146114-ui .v146114-attribute-hero strong{display:grid!important;place-items:center!important;min-width:52px!important;height:48px!important;padding:0 10px!important;border:1px solid rgba(219,164,64,.55)!important;border-radius:11px!important;background:rgba(79,49,12,.70)!important;color:#f4c56f!important;font-size:22px!important}
html body.v146114-ui .v146114-attribute-detail>p{padding:10px!important;border:1px solid rgba(107,160,147,.24)!important;border-radius:12px!important;background:rgba(4,20,22,.76)!important;color:#cbd4ce!important}

/* ========================================================================== */
/* 12. Equipment picker: true optical centering. Inventory action icons larger.*/
/* ========================================================================== */
html body.v146114-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146114-picker-action{
  display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;align-items:center!important;justify-items:center!important;gap:4px!important;
  width:100%!important;min-width:0!important;padding:0 8px!important;text-align:center!important;
}
html body.v146114-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146114-picker-action::after{content:""!important;display:block!important;width:32px!important;height:1px!important}
html body.v146114-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146114-picker-action>.v83-ui-icon{grid-column:1!important;width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;object-fit:contain!important}
html body.v146114-ui .modal.v98-picker-modal .v124-item-card.layout-picker>.v124-item-actions>button.v146114-picker-action>span{grid-column:2!important;justify-self:center!important;width:100%!important;text-align:center!important}
html body.v146114-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146114-card-action>.v83-ui-icon{width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;max-height:31px!important;object-fit:contain!important}
html body.v146114-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146114-card-action{min-height:44px!important;height:44px!important;max-height:44px!important}

/* ========================================================================== */
/* 13. Regular + system notifications: centered copy, balanced columns,        */
/* uncut icon, existing framed assets.                                         */
/* ========================================================================== */
html body.v146114-ui #toast-root{
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(440px,calc(100vw - 20px))!important;max-width:440px!important;
}
html body.v146114-ui #toast-root>.toast{
  position:relative!important;width:100%!important;max-width:100%!important;margin:0 auto!important;padding:9px 10px!important;
  display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;align-items:center!important;gap:8px!important;
  border:1px solid rgba(214,175,85,.42)!important;border-radius:13px!important;background-color:#07191a!important;
  background-image:linear-gradient(145deg,rgba(7,29,28,.77),rgba(3,14,17,.91)),url("../assets/v146103/ui/notifications/toast-panel.webp")!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:0 10px 28px rgba(0,0,0,.46)!important;overflow:hidden!important;
}
html body.v146114-ui #toast-root>.toast::after{content:""!important;display:block!important;width:42px!important;height:1px!important;grid-column:3!important}
html body.v146114-ui #toast-root>.toast .v128-toast-icon{grid-column:1!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;border:1px solid rgba(214,175,85,.36)!important;border-radius:10px!important;background:rgba(3,16,18,.76)!important;overflow:visible!important}
html body.v146114-ui #toast-root>.toast .v128-toast-icon :is(img,svg,.v83-ui-icon){width:29px!important;height:29px!important;max-width:29px!important;max-height:29px!important;object-fit:contain!important;object-position:center!important;transform:none!important}
html body.v146114-ui #toast-root>.toast .v128-toast-copy{grid-column:2!important;min-width:0!important;text-align:center!important;justify-self:stretch!important;overflow-wrap:anywhere!important}

html body.v146114-ui #v1410-global-notices{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(440px,calc(100vw - 20px))!important;max-width:440px!important}
html body.v146114-ui #v1410-global-notices>.v146114-global-notice{
  width:100%!important;max-width:100%!important;margin:0 auto!important;padding:9px 10px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;align-items:center!important;gap:8px!important;
  border:1px solid rgba(214,175,85,.45)!important;border-radius:13px!important;background-color:#07191a!important;
  background-image:linear-gradient(145deg,rgba(7,29,28,.78),rgba(3,14,17,.93)),url("../assets/v146103/ui/notifications/toast-panel.webp")!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:0 10px 28px rgba(0,0,0,.46)!important;overflow:hidden!important;
}
html body.v146114-ui #v1410-global-notices>.v146114-global-notice .v1410-notice-mark{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;border:1px solid rgba(214,175,85,.38)!important;border-radius:10px!important;background:rgba(3,16,18,.78)!important;overflow:visible!important}
html body.v146114-ui #v1410-global-notices>.v146114-global-notice .v1410-notice-mark img{width:29px!important;height:29px!important;max-width:29px!important;max-height:29px!important;object-fit:contain!important;object-position:center!important}
html body.v146114-ui #v1410-global-notices>.v146114-global-notice>div{min-width:0!important;text-align:center!important}
html body.v146114-ui #v1410-global-notices>.v146114-global-notice>button{grid-column:3!important;justify-self:end!important}
html body.v146114-ui #v1410-global-notices>.v146114-global-notice .v146114-notice-balance{display:block!important;width:42px!important;height:1px!important;grid-column:3!important}

/* ========================================================================== */
/* 14. Monster details: loot remains untouched. Intro/stats/effects are framed.*/
/* ========================================================================== */
html body.v146114-ui .v146114-monster-sheet{gap:10px!important;padding:9px!important;border:1px solid rgba(214,175,85,.46)!important;border-radius:17px!important;background-color:#07191b!important;background-image:linear-gradient(155deg,rgba(7,28,29,.92),rgba(3,13,16,.98)),url("../assets/v14699/location-ui/monsters-section-background.webp")!important;background-size:cover!important;background-position:center top!important;background-repeat:no-repeat!important;box-shadow:inset 0 0 26px rgba(0,0,0,.22)!important}
html body.v146114-ui .v146114-monster-intro{
  padding:12px!important;border:11px solid transparent!important;border-radius:15px!important;
  border-image-slice:120 180 fill!important;border-image-width:11px!important;border-image-repeat:stretch!important;
  background:linear-gradient(135deg,rgba(10,35,34,.76),rgba(4,17,20,.91))!important;overflow:hidden!important;
}
html body.v146114-ui .v146114-monster-sheet.tone-normal .v146114-monster-intro{border-image-source:url("../assets/v14695/location-ui/frames/monster-frame-normal.webp")!important}
html body.v146114-ui .v146114-monster-sheet.tone-enhanced .v146114-monster-intro{border-image-source:url("../assets/v14695/location-ui/frames/monster-frame-enhanced.webp")!important}
html body.v146114-ui .v146114-monster-sheet.tone-boss .v146114-monster-intro{border-image-source:url("../assets/v14695/location-ui/frames/monster-frame-boss.webp")!important}
html body.v146114-ui .v146114-monster-intro .v122-monster-portrait{border:1px solid rgba(215,175,85,.32)!important;border-radius:12px!important;background:radial-gradient(circle at 50% 48%,rgba(70,99,67,.20),rgba(3,12,14,.82))!important;overflow:hidden!important}
html body.v146114-ui .v146114-monster-intro .v122-monster-portrait :is(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146114-ui .v146114-monster-intro .v122-monster-copy{padding:4px 2px!important}
html body.v146114-ui .v146114-monster-intro .v122-monster-copy>p{padding:8px!important;border:1px solid rgba(106,157,146,.20)!important;border-radius:10px!important;background:rgba(3,17,19,.68)!important}
html body.v146114-ui .v146114-monster-stats{padding:8px!important;border:1px solid rgba(108,162,148,.28)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(7,30,29,.89),rgba(3,15,18,.96))!important}
html body.v146114-ui .v146114-monster-sheet :is(.v65-effect-list,.v82-monster-effects,.v122-monster-effects,.v65-skill-list){border-radius:12px!important;background:rgba(4,19,21,.68)!important}
html body.v146114-ui .v146114-monster-sheet .v65-monster-skills{padding:7px!important;border:1px solid rgba(107,161,147,.25)!important;border-radius:12px!important;background:rgba(4,19,21,.70)!important}
html body.v146114-ui .v146114-monster-sheet .v65-monster-skill{border:1px solid rgba(119,165,150,.27)!important;border-radius:10px!important;background:linear-gradient(135deg,rgba(15,44,41,.78),rgba(5,18,21,.94))!important}
html body.v146114-ui .v101-monster-card{overflow:hidden!important;border:1px solid rgba(111,160,146,.33)!important;border-radius:14px!important;background:linear-gradient(155deg,rgba(7,29,29,.94),rgba(3,14,17,.99))!important;box-shadow:inset 0 0 16px rgba(0,0,0,.18)!important}
html body.v146114-ui .v101-monster-card.rank-elite{border-color:rgba(157,92,190,.50)!important;background:linear-gradient(155deg,rgba(48,24,60,.48),rgba(4,17,21,.98))!important}
html body.v146114-ui .v101-monster-card.rank-boss{border-color:rgba(209,145,67,.56)!important;background:linear-gradient(155deg,rgba(72,38,16,.48),rgba(7,16,19,.98))!important}
html body.v146114-ui .v101-monster-card .v101-unit-name{padding:5px 7px!important;border-bottom:1px solid rgba(108,157,145,.18)!important;background:linear-gradient(90deg,rgba(25,65,57,.30),transparent)!important}
html body.v146114-ui .v101-monster-card .v101-unit-art{overflow:hidden!important;border:1px solid rgba(213,174,84,.24)!important;border-radius:11px!important;background:radial-gradient(circle at 50% 48%,rgba(61,95,69,.17),rgba(3,12,14,.58))!important}
html body.v146114-ui .v101-monster-card .v101-unit-art :is(img,.battle-monster-art){object-fit:contain!important;object-position:center!important}
html body.v146114-ui .v101-monster-card .v101-unit-effects{border-top:1px solid rgba(107,159,145,.16)!important;background:rgba(3,16,18,.46)!important;}
html body.v146114-ui .v101-monster-card .v101-unit-effects .v106-effect-asset{border:1px solid rgba(113,164,151,.25)!important;border-radius:8px!important;background:rgba(4,19,21,.74)!important}

/* ========================================================================== */
/* 15. Battle monster art containment. Cave/blood bats no longer drift right. */
/* ========================================================================== */
html body.v146114-ui .v101-monster-card .v101-unit-art img[src*="cave-bat.webp"],
html body.v146114-ui .v101-monster-card .v101-unit-art img[src*="blood-bat.webp"],
html body.v146114-ui .v101-monster-card .v101-unit-art img[src*="v93_1_elite.webp"]{
  width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;object-fit:contain!important;object-position:center!important;
  margin:auto!important;left:auto!important;right:auto!important;transform:translateX(-5%) scale(.88)!important;transform-origin:center center!important;
}

/* ========================================================================== */
/* 16. Pit: lower usable scroll area, stable card geometry, correctly          */
/* proportioned Take all asset.                                                */
/* ========================================================================== */
html body.v146114-ui.v146100-pit-screen-active .v146100-pit-main{padding-bottom:72px!important}
html body.v146114-ui .v146101-pit-main .v119-pit-screen{height:100%!important;min-height:0!important;max-height:none!important}
html body.v146114-ui .v146101-pit-main .v146114-pit-scene{height:100%!important;min-height:445px!important;max-height:none!important;padding:9px 8px 8px!important;grid-template-rows:minmax(0,1fr) auto!important}
html body.v146114-ui .v146114-pit-scene .v146112-pit-loot-scroll{padding:6px 6px 11px!important}
html body.v146114-ui .v146114-pit-loot-card{
  box-sizing:border-box!important;width:calc(100% - 6px)!important;min-width:0!important;max-width:none!important;height:150px!important;min-height:150px!important;max-height:150px!important;
  grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:77px 44px!important;gap:7px!important;padding:9px 10px!important;margin:0 auto!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
}
html body.v146114-ui .v146114-pit-loot-card .v146101-pit-loot-art{align-self:center!important;width:62px!important;height:68px!important;min-width:62px!important;min-height:68px!important}
html body.v146114-ui .v146114-pit-loot-card .v146101-pit-loot-copy{align-self:center!important;display:grid!important;align-content:center!important;gap:4px!important;min-width:0!important;height:68px!important;overflow:hidden!important}
html body.v146114-ui .v146114-pit-loot-card .v146101-pit-loot-copy strong{display:-webkit-box!important;min-height:30px!important;max-height:32px!important;overflow:hidden!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;font-size:13px!important;line-height:1.16!important}
html body.v146114-ui .v146114-pit-loot-card .v146101-pit-loot-copy small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146114-ui .v146114-pit-loot-card .v146112-pit-actions{height:44px!important;min-height:44px!important;max-height:44px!important;align-items:center!important}
html body.v146114-ui .v146114-pit-loot-card .v146112-pit-action{height:40px!important;min-height:40px!important;max-height:40px!important}
html body.v146114-ui .v146112-pit-footer{gap:6px!important;padding:2px 3px 4px!important}
html body.v146114-ui .v146114-pit-take-all{
  display:grid!important;grid-template-columns:27px minmax(0,1fr) 27px!important;align-items:center!important;gap:6px!important;
  width:min(232px,72vw)!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:900/260!important;margin:0 auto!important;padding:0 17px!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-image:url("../assets/v146103/ui/buttons/take.webp")!important;
  background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:none!important;overflow:visible!important;
}
html body.v146114-ui .v146114-pit-take-all>.v83-ui-icon{width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important;max-height:25px!important;object-fit:contain!important}
html body.v146114-ui .v146114-pit-take-all>span{font-size:12px!important;font-weight:900!important;text-align:center!important;white-space:nowrap!important}
html body.v146114-ui .v146114-pit-take-all>small{display:grid!important;place-items:center!important;width:27px!important;height:27px!important;min-width:27px!important;padding:0!important;border:1px solid rgba(220,246,154,.34)!important;border-radius:50%!important;background:rgba(4,19,16,.77)!important;color:#f5ffd8!important}

/* ========================================================================== */
/* Narrow phones.                                                              */
/* ========================================================================== */
@media(max-width:390px){
  html body.v146114-ui .v146114-topbar,html body.v146114-ui .v146113-friends-topbar{padding-inline:5px!important;gap:5px!important}
  html body.v146114-ui .v146114-topbar :is(.hamburger,.v121-top-avatar-button),html body.v146114-ui .v146113-friends-topbar :is(.hamburger,.v121-top-avatar-button){width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important}
  html body.v146114-ui .v146114-location-status-card{padding:72px 12px 14px!important;border-width:10px!important;border-image-width:10px!important}
  html body.v146114-ui .v14643-moment{grid-template-columns:47px minmax(0,1fr)!important;gap:2px 8px!important;padding:11px!important}
  html body.v146114-ui .v14643-moment>img{width:47px!important;height:61px!important}
  html body.v146114-ui .v14643-moment>.primary[data-dungeon-moment-close]{height:40px!important;min-height:40px!important;max-height:40px!important}
  html body.v146114-ui .v146114-pit-loot-card{height:146px!important;min-height:146px!important;max-height:146px!important;grid-template-columns:60px minmax(0,1fr)!important}
  html body.v146114-ui .v146114-pit-take-all{width:min(220px,70vw)!important}
}

/* ===== css/v146115-ui-deep-polish.css ===== */
/* Aldos RPG v1.146.115 — deep mobile UI polish.
   Existing assets only; no generated images; no gameplay/state changes. */

html body.v146115-ui{
  --v115-ink:#020b11;
  --v115-panel:#07171d;
  --v115-panel-blue:#071a2b;
  --v115-blue:#2f78b7;
  --v115-blue-bright:#65b8ff;
  --v115-lime:#9ee632;
  --v115-lime-soft:#bce86f;
  --v115-lime-deep:#24470e;
  --v115-gold:#e4bb67;
  --v115-red:#e26456;
  --v115-teal:#69d6b4;
  --v115-text:#f2ecdf;
  --v115-muted:#9ba9a8;
}

/* ========================================================================== */
/* 1. Gorgan forge / salvage confirmation. Warning is a designed sub-card.    */
/* ========================================================================== */
html body.v146115-ui .modal.v14625-forge-confirm-shell{
  width:min(430px,calc(100vw - 18px))!important;
  max-width:430px!important;
  padding:10px!important;
  border:1px solid rgba(226,180,88,.72)!important;
  border-radius:19px!important;
  background:
    radial-gradient(circle at 50% 0,rgba(178,111,34,.14),transparent 31%),
    linear-gradient(155deg,#0b181b,#030c10 72%)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.62),inset 0 0 0 1px rgba(255,232,169,.05),inset 0 0 32px rgba(168,96,26,.08)!important;
}
html body.v146115-ui .v14625-forge-confirm-shell>h1{
  margin:2px 46px 8px 7px!important;
  padding-bottom:7px!important;
  border-bottom:1px solid rgba(226,180,88,.28)!important;
  color:#f5ead8!important;
  font-size:clamp(24px,7vw,34px)!important;
  line-height:1.05!important;
}
html body.v146115-ui .v14625-forge-confirm{
  gap:9px!important;
  padding:9px!important;
  border:1px solid rgba(216,172,80,.27)!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,rgba(10,31,33,.93),rgba(3,14,18,.98))!important;
  box-shadow:inset 0 0 22px rgba(0,0,0,.28)!important;
}
html body.v146115-ui .v14629-confirm-item{
  width:100%!important;
  padding:9px!important;
  border:1px solid rgba(224,179,86,.30)!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,rgba(34,49,42,.73),rgba(5,17,20,.94))!important;
  box-shadow:inset 0 0 14px rgba(0,0,0,.22)!important;
}
html body.v146115-ui .v14625-confirm-metrics{
  width:100%!important;
  gap:6px!important;
}
html body.v146115-ui .v14625-confirm-metrics>*{
  min-height:54px!important;
  padding:7px!important;
  border:1px solid rgba(205,168,84,.32)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(13,29,31,.96),rgba(5,12,15,.98))!important;
  box-shadow:inset 0 0 12px rgba(0,0,0,.22)!important;
}
html body.v146115-ui .v14629-forge-risk{
  position:relative!important;
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:1px 0!important;
  padding:11px 12px!important;
  border:1px solid rgba(226,88,68,.86)!important;
  border-radius:12px!important;
  outline:1px solid rgba(255,184,116,.10)!important;
  outline-offset:-4px!important;
  background:linear-gradient(145deg,rgba(91,24,19,.96),rgba(47,11,13,.98))!important;
  color:#ffe4dc!important;
  box-shadow:inset 0 0 16px rgba(0,0,0,.21),0 4px 12px rgba(77,12,8,.25)!important;
  font-size:12px!important;
  line-height:1.35!important;
  text-align:center!important;
}
html body.v146115-ui .v14625-forge-confirm.is-salvage .v14629-forge-risk{
  border-color:rgba(236,91,75,.90)!important;
  background:linear-gradient(145deg,rgba(88,25,24,.96),rgba(38,11,15,.98))!important;
}
html body.v146115-ui .v14625-confirm-actions{
  width:100%!important;
  gap:8px!important;
}
html body.v146115-ui .v14625-confirm-actions>button{
  min-height:45px!important;
  border-radius:11px!important;
}

/* ========================================================================== */
/* 2. Slime Galleries: every major block gets its own lime/swamp treatment.   */
/* ========================================================================== */
html body.v146115-ui :is(.v146114-dungeon-entrance,.v146114-dungeon-instance){
  --d-lime:#a6e83a;
  --d-line:rgba(167,225,78,.43);
  --d-deep:rgba(4,24,16,.96);
  padding:10px!important;
  background-image:
    linear-gradient(180deg,rgba(6,30,19,.87),rgba(1,13,11,.985)),
    url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp")!important;
  background-size:cover!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
}
html body.v146115-ui :is(
  .v14643-entry-title,.v14643-map-ticket,.v14643-lobby-title,.v14643-lobby-grid,
  .v14643-nearby,.v14643-invites,.v14643-runbar,.v14643-party-hud,
  .v14643-scene,.v14643-route,.v14643-chronicle,.v14643-instance-foot
){
  border:1px solid var(--d-line)!important;
  border-radius:14px!important;
  background:
    radial-gradient(circle at 15% 0,rgba(158,230,50,.09),transparent 35%),
    linear-gradient(145deg,rgba(10,45,27,.92),rgba(3,18,16,.985))!important;
  box-shadow:inset 0 0 0 1px rgba(213,255,139,.035),inset 0 0 20px rgba(0,0,0,.21),0 5px 14px rgba(0,0,0,.13)!important;
}
html body.v146115-ui .v14643-entry-title{
  border-color:rgba(177,231,85,.54)!important;
  background:
    linear-gradient(100deg,rgba(57,95,24,.32),transparent 52%),
    linear-gradient(145deg,rgba(9,40,25,.96),rgba(3,17,15,.99))!important;
}
html body.v146115-ui .v14643-entry-title :is(h1,h2,strong),
html body.v146115-ui .v14643-lobby-title :is(h1,h2,strong){color:#f0f4df!important}
html body.v146115-ui .v14643-entry-title :is(small,.eyebrow),
html body.v146115-ui .v14643-lobby-title :is(small,.eyebrow){color:var(--d-lime)!important}
html body.v146115-ui .v14643-map-ticket{
  border-color:rgba(197,222,88,.48)!important;
  background:linear-gradient(135deg,rgba(42,70,20,.50),rgba(6,29,22,.97))!important;
}
html body.v146115-ui .v14643-map-ticket strong{color:#cfff72!important}
html body.v146115-ui .v14643-lobby-grid{gap:7px!important;padding:8px!important}
html body.v146115-ui .v14643-member{
  min-height:76px!important;
  border:1px solid rgba(137,193,75,.28)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(14,48,29,.90),rgba(4,20,18,.98))!important;
  box-shadow:inset 0 0 12px rgba(0,0,0,.16)!important;
}
html body.v146115-ui .v14643-member.empty{
  border-style:dashed!important;
  background:linear-gradient(145deg,rgba(13,39,27,.62),rgba(4,18,17,.94))!important;
}
html body.v146115-ui .v14643-nearby{background:linear-gradient(145deg,rgba(12,42,27,.92),rgba(3,19,17,.98))!important}
html body.v146115-ui :is(.v14643-entrance,.v14643-instance) button.primary,
html body.v146115-ui :is(.v14643-entrance,.v14643-instance) .primary.big{
  border:1px solid rgba(193,239,98,.78)!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#a8ef31,#72b814)!important;
  color:#102207!important;
  box-shadow:inset 0 1px rgba(246,255,204,.40),inset 0 -2px rgba(44,83,5,.25),0 5px 14px rgba(71,120,12,.20)!important;
}
html body.v146115-ui :is(.v14643-entrance,.v14643-instance) button:not(.primary):not([aria-label="Закрыть"]){
  border-color:rgba(129,177,102,.28)!important;
  background:linear-gradient(145deg,rgba(18,47,34,.91),rgba(5,20,20,.98))!important;
}
html body.v146115-ui .v14643-runbar{
  border-color:rgba(152,204,91,.34)!important;
  background:linear-gradient(90deg,rgba(17,52,31,.95),rgba(5,23,20,.98))!important;
}
html body.v146115-ui .v14643-scene{
  overflow:hidden!important;
  border-color:rgba(159,216,84,.39)!important;
}
html body.v146115-ui .v14643-scene-head{
  border-bottom:1px solid rgba(160,213,82,.25)!important;
  background:linear-gradient(90deg,rgba(31,70,36,.43),rgba(7,29,23,.94))!important;
}
html body.v146115-ui .v14643-scene-head small{color:#a9dd67!important}
html body.v146115-ui .v14643-scene-art{
  border-bottom:1px solid rgba(145,201,72,.23)!important;
  background:radial-gradient(circle at 50% 45%,rgba(139,204,57,.17),rgba(3,15,10,.97) 76%)!important;
}
html body.v146115-ui .v14643-scene-copy{
  background:linear-gradient(180deg,rgba(9,39,25,.96),rgba(3,18,16,.99))!important;
}
html body.v146115-ui .v14643-route>*,html body.v146115-ui .v14643-chronicle>*{
  border-color:rgba(136,188,80,.22)!important;
}
html body.v146115-ui .v14643-moment{
  border:1px solid rgba(198,226,104,.60)!important;
  background:
    radial-gradient(circle at 20% 20%,rgba(168,224,66,.13),transparent 38%),
    linear-gradient(145deg,rgba(35,65,27,.94),rgba(4,24,20,.985))!important;
  box-shadow:0 18px 40px rgba(0,0,0,.53),inset 0 0 0 1px rgba(239,255,191,.045),inset 0 0 24px rgba(74,116,22,.12)!important;
}
html body.v146115-ui .v14643-instance-foot{
  background:linear-gradient(145deg,rgba(10,37,25,.92),rgba(3,18,16,.97))!important;
}
html body.v146115-ui .v14643-instance-foot .v119-pit-card{
  border-color:rgba(182,219,89,.44)!important;
  background:linear-gradient(100deg,rgba(29,59,24,.58),rgba(3,18,16,.97))!important;
}

/* ========================================================================== */
/* 3. Ability cards/actions: equipped and available states now read clearly.  */
/* ========================================================================== */
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list .v119-ability-card{
  border-color:rgba(94,164,146,.40)!important;
  background:linear-gradient(135deg,rgba(12,48,43,.95),rgba(3,18,21,.985))!important;
}
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list .v119-ability-card.equipped{
  border-color:rgba(76,220,174,.69)!important;
  background:linear-gradient(135deg,rgba(15,94,72,.74),rgba(4,24,24,.99))!important;
  box-shadow:inset 0 0 20px rgba(27,158,117,.08),0 4px 12px rgba(0,0,0,.17)!important;
}
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list .row-actions{
  margin-top:5px!important;
}
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list .row-actions button{
  min-height:42px!important;
  border-radius:11px!important;
  font-weight:900!important;
}
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list .row-actions button.primary,
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list button[data-equip-ability]{
  border:1px solid rgba(154,234,105,.64)!important;
  background:linear-gradient(180deg,rgba(83,162,49,.95),rgba(33,91,32,.98))!important;
  color:#f0ffe6!important;
  box-shadow:inset 0 0 0 1px rgba(222,255,184,.08)!important;
}
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list .row-actions button.danger,
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list button[data-unequip-ability]{
  border:1px solid rgba(220,101,89,.58)!important;
  background:linear-gradient(180deg,rgba(91,38,39,.93),rgba(42,20,25,.98))!important;
  color:#ffe8e2!important;
  box-shadow:inset 0 0 0 1px rgba(255,198,185,.05)!important;
}
html body.v146115-ui .v146114-abilities-screen .v14659-ability-list .v119-ability-card.locked .row-actions button{
  border-color:rgba(125,132,143,.25)!important;
  background:linear-gradient(180deg,rgba(41,48,54,.75),rgba(18,24,29,.92))!important;
  color:#879096!important;
}

/* ========================================================================== */
/* 4. Character switch: one coherent blue drawer, not a rainbow list.         */
/* ========================================================================== */
html body.v146115-ui .v146114-character-sheet{
  border-color:rgba(94,156,214,.68)!important;
  background-image:
    radial-gradient(circle at 24% 0,rgba(61,140,207,.18),transparent 36%),
    linear-gradient(180deg,#0a2437,#04131f 74%,#030d14)!important;
  box-shadow:0 -18px 46px rgba(0,0,0,.56),inset 0 0 32px rgba(37,104,160,.10)!important;
}
html body.v146115-ui .v146114-character-sheet>header{
  border-bottom-color:rgba(107,172,225,.30)!important;
  background:linear-gradient(90deg,rgba(38,102,153,.28),rgba(11,39,63,.34),transparent)!important;
}
html body.v146115-ui .v146114-character-row,
html body.v146115-ui .v146114-character-row.tone-warrior,
html body.v146115-ui .v146114-character-row.tone-rogue,
html body.v146115-ui .v146114-character-row.tone-healer,
html body.v146115-ui .v146114-character-row.tone-mage{
  border-color:rgba(81,145,201,.54)!important;
  background:linear-gradient(135deg,rgba(13,55,88,.94),rgba(4,22,36,.985))!important;
  box-shadow:inset 0 0 18px rgba(29,95,148,.08),0 5px 13px rgba(0,0,0,.18)!important;
}
html body.v146115-ui .v146114-character-row.active{
  border-color:rgba(224,184,91,.65)!important;
  background:linear-gradient(135deg,rgba(28,78,113,.92),rgba(32,39,31,.98))!important;
}
html body.v146115-ui .v146114-character-row .v125-character-art{
  border-color:rgba(115,178,228,.42)!important;
  background:radial-gradient(circle at 50% 28%,rgba(80,147,205,.26),rgba(3,18,31,.90))!important;
}
html body.v146115-ui .v146114-character-row button.primary{
  border-color:rgba(103,183,242,.65)!important;
  background:linear-gradient(180deg,#3c97d7,#23659a)!important;
  color:#f4fbff!important;
}

/* ========================================================================== */
/* 5. Rules/documents: clean UI surfaces, intentionally NO painted asset.     */
/* ========================================================================== */
html body.v146115-ui .v146114-rules-screen{
  background:
    radial-gradient(circle at 50% 0,rgba(44,105,138,.12),transparent 33%),
    linear-gradient(180deg,#031218,#020b10)!important;
}
html body.v146115-ui .v146114-rules-screen .v1420-rules{
  padding:10px!important;
  border:1px solid rgba(105,159,181,.46)!important;
  border-radius:18px!important;
  background-image:none!important;
  background-color:#061820!important;
  box-shadow:inset 0 0 30px rgba(0,0,0,.22)!important;
}
html body.v146115-ui .v146114-rules-screen .v1420-rules>header{
  border-color:rgba(112,174,196,.34)!important;
  background:linear-gradient(135deg,rgba(19,58,75,.88),rgba(5,24,32,.97))!important;
}
html body.v146115-ui .v146114-rules-screen .v1420-rules details{
  border-color:rgba(91,148,170,.32)!important;
  background:linear-gradient(145deg,rgba(8,36,47,.92),rgba(3,18,25,.985))!important;
}
html body.v146115-ui .v146114-rules-screen .v1420-rules details[open]{
  border-color:rgba(220,181,93,.46)!important;
  background:linear-gradient(145deg,rgba(20,45,51,.94),rgba(4,20,27,.99))!important;
}
html body.v146115-ui .v146114-rules-screen .v1420-rules summary{
  border-radius:10px!important;
}
html body.v146115-ui .v146114-rules-screen .v1420-rules details[open] summary{
  background:linear-gradient(90deg,rgba(34,76,89,.24),transparent)!important;
}
html body.v146115-ui .v146114-rules-screen .v1420-rules footer button{
  border-color:rgba(104,171,196,.55)!important;
  background:linear-gradient(145deg,rgba(21,65,82,.93),rgba(7,31,42,.98))!important;
  color:#e9f4f7!important;
}

/* ========================================================================== */
/* 6. Settings: stronger redesign + tutorial replay cannot escape the row.    */
/* ========================================================================== */
html body.v146115-ui .v146114-settings-screen{
  background:
    radial-gradient(circle at 50% 0,rgba(44,123,132,.14),transparent 31%),
    linear-gradient(180deg,#031318,#020b10)!important;
}
html body.v146115-ui .v146114-settings-screen .v127-settings-hero{
  border-color:rgba(92,176,168,.47)!important;
  background:
    radial-gradient(circle at 20% 20%,rgba(73,157,140,.16),transparent 38%),
    linear-gradient(145deg,rgba(10,60,59,.96),rgba(4,24,32,.985))!important;
  box-shadow:inset 0 0 24px rgba(34,117,101,.08),0 5px 15px rgba(0,0,0,.17)!important;
}
html body.v146115-ui .v146114-settings-screen .v127-settings-group{
  border-color:rgba(84,143,151,.42)!important;
  background:linear-gradient(150deg,rgba(7,39,45,.96),rgba(3,18,25,.99))!important;
}
html body.v146115-ui .v146114-settings-screen .v127-setting-row{
  min-width:0!important;
  border-color:rgba(88,146,153,.34)!important;
  background:linear-gradient(120deg,rgba(11,45,49,.91),rgba(4,21,28,.98))!important;
}
html body.v146115-ui .v146114-settings-screen .v127-setting-icon{
  background:linear-gradient(145deg,rgba(26,61,59,.84),rgba(4,20,26,.98))!important;
}
html body.v146115-ui .v146114-settings-screen .v14654-font-option{
  border-color:rgba(91,151,162,.38)!important;
  background:linear-gradient(145deg,rgba(10,43,49,.94),rgba(4,20,28,.98))!important;
}
html body.v146115-ui .v146114-settings-screen .v14654-font-option.active{
  border-color:rgba(93,221,184,.65)!important;
  background:linear-gradient(145deg,rgba(21,100,81,.68),rgba(5,31,36,.98))!important;
}
html body.v146115-ui .v146114-settings-screen .v14668-tutorial-settings .v127-setting-row{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) 104px!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
html body.v146115-ui .v146114-settings-screen .v14668-tutorial-settings .v127-setting-row>div{
  min-width:0!important;
  overflow:hidden!important;
}
html body.v146115-ui .v146114-settings-screen .v14668-tutorial-settings .v127-setting-row>div :is(b,small){
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
html body.v146115-ui .v146114-settings-screen .v14668-tutorial-replay{
  position:static!important;
  justify-self:stretch!important;
  align-self:center!important;
  width:104px!important;
  min-width:0!important;
  max-width:104px!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0 7px!important;
  border:1px solid rgba(100,175,183,.45)!important;
  border-radius:10px!important;
  background:linear-gradient(145deg,rgba(18,59,65,.94),rgba(6,28,37,.99))!important;
  color:#eef7f5!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v146115-ui .v146114-settings-screen .v14638-official-sources a{
  border-color:rgba(88,148,158,.34)!important;
  background:linear-gradient(145deg,rgba(10,42,48,.93),rgba(4,20,27,.98))!important;
}

/* ========================================================================== */
/* 7. Pit: exact row geometry regardless of title length / item rarity.       */
/* ========================================================================== */
html body.v146115-ui .v146114-pit-scene .v146112-pit-loot-scroll,
html body.v146115-ui .v146110-pit-loot-scroll{
  display:grid!important;
  grid-auto-flow:row!important;
  grid-auto-rows:150px!important;
  align-content:start!important;
  gap:8px!important;
}
html body.v146115-ui .v146114-pit-loot-card,
html body.v146115-ui .v146112-pit-loot-scroll>.v146112-pit-loot-card{
  box-sizing:border-box!important;
  align-self:stretch!important;
  flex:none!important;
  flex-basis:150px!important;
  width:calc(100% - 6px)!important;
  height:150px!important;
  min-height:150px!important;
  max-height:150px!important;
  margin:0 auto!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  grid-template-rows:78px 44px!important;
  gap:7px!important;
  overflow:hidden!important;
}
html body.v146115-ui .v146114-pit-loot-card .v146101-pit-loot-copy{
  height:68px!important;
  min-height:68px!important;
  max-height:68px!important;
}
html body.v146115-ui .v146114-pit-loot-card .v146101-pit-loot-copy strong{
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}

/* ========================================================================== */
/* 8. Legendary skill change is interactive: tap to expand full description. */
/* ========================================================================== */
html body.v146115-ui details.v146115-legendary-change{
  display:block!important;
  width:100%!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(100,159,145,.44)!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,rgba(12,37,39,.95),rgba(4,19,24,.99))!important;
  box-shadow:inset 0 0 16px rgba(0,0,0,.17)!important;
}
html body.v146115-ui details.v146115-legendary-change>summary{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:9px!important;
  min-height:72px!important;
  padding:9px 10px!important;
  list-style:none!important;
  cursor:pointer!important;
  background:linear-gradient(90deg,rgba(28,67,58,.33),transparent)!important;
}
html body.v146115-ui details.v146115-legendary-change>summary::-webkit-details-marker{display:none!important}
html body.v146115-ui details.v146115-legendary-change .v146115-legendary-art{
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  border:1px solid rgba(210,175,90,.34)!important;
  border-radius:11px!important;
  background:rgba(3,17,20,.82)!important;
  overflow:hidden!important;
}
html body.v146115-ui details.v146115-legendary-change .v146115-legendary-art :is(img,.item-asset-image,.v83-ui-icon){
  width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important;object-fit:contain!important;
}
html body.v146115-ui details.v146115-legendary-change>summary>div{min-width:0!important;display:grid!important;gap:2px!important}
html body.v146115-ui details.v146115-legendary-change>summary small{color:#9cb5b0!important;font-size:9px!important;letter-spacing:.10em!important;text-transform:uppercase!important}
html body.v146115-ui details.v146115-legendary-change>summary b{color:#b9ffad!important;font-size:14px!important;line-height:1.18!important}
html body.v146115-ui .v146115-legendary-preview{
  display:block!important;
  margin-top:2px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#c4d2cf!important;
  font-size:10px!important;
}
html body.v146115-ui details.v146115-legendary-change>summary>i{
  width:10px!important;height:10px!important;
  justify-self:center!important;
  border-right:2px solid #d7b463!important;border-bottom:2px solid #d7b463!important;
  transform:rotate(45deg)!important;
  transition:transform .16s ease!important;
}
html body.v146115-ui details.v146115-legendary-change[open]>summary>i{transform:rotate(225deg)!important}
html body.v146115-ui details.v146115-legendary-change>p{
  display:block!important;
  margin:0 10px 10px!important;
  padding:10px!important;
  border-top:1px solid rgba(105,162,148,.23)!important;
  border-radius:0 0 10px 10px!important;
  background:rgba(3,16,20,.72)!important;
  color:#d7dfdc!important;
  font-size:11px!important;
  line-height:1.45!important;
  white-space:normal!important;
  overflow:visible!important;
  max-height:none!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
}

/* ========================================================================== */
/* 9. Monster detail intro: portrait, name, badges and description all fit.   */
/* ========================================================================== */
html body.v146115-ui .v146114-monster-intro{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:104px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  align-items:start!important;
  gap:10px!important;
  min-height:150px!important;
  height:auto!important;
  max-height:none!important;
  padding:10px!important;
  border-width:8px!important;
  border-image-width:8px!important;
  overflow:visible!important;
}
html body.v146115-ui .v146114-monster-intro .v122-monster-portrait{
  width:104px!important;
  height:118px!important;
  min-width:104px!important;
  min-height:118px!important;
  max-width:104px!important;
  max-height:118px!important;
  align-self:start!important;
}
html body.v146115-ui .v146114-monster-intro .v122-monster-copy{
  display:grid!important;
  align-content:start!important;
  gap:7px!important;
  min-width:0!important;
  padding:0!important;
  overflow:visible!important;
}
html body.v146115-ui .v146114-monster-intro .v122-monster-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:5px!important;
  align-content:start!important;
  min-width:0!important;
  overflow:visible!important;
}
html body.v146115-ui .v146114-monster-intro .v122-monster-title h2{
  margin:0!important;
  max-width:100%!important;
  color:#f2ece0!important;
  font-size:20px!important;
  line-height:1.06!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
html body.v146115-ui .v146114-monster-intro .v122-monster-title>div{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  min-width:0!important;
}
html body.v146115-ui .v146114-monster-intro .v122-monster-copy>p{
  display:block!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:7px 8px!important;
  overflow:visible!important;
  white-space:normal!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
  color:#b8c4c1!important;
  font-size:10px!important;
  line-height:1.34!important;
}

/* ========================================================================== */
/* 10. Battle skill detail gets more vertical room.                            */
/* ========================================================================== */
html body.v146115-ui.v111-battle-active #v1281-skill-detail-slot{
  max-height:min(51dvh,465px)!important;
  min-height:0!important;
  padding-bottom:4px!important;
}
html body.v146115-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail{
  min-height:300px!important;
  max-height:none!important;
  padding-bottom:13px!important;
}
html body.v146115-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history[open]{
  max-height:min(29dvh,245px)!important;
}
html body.v146115-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-cast{
  min-height:46px!important;
  margin-top:8px!important;
}

/* ========================================================================== */
/* 11. Battle roster: player and monster cards are exactly equal in geometry. */
/* Remove the extra painted strip behind the monster name.                    */
/* ========================================================================== */
html body.v146115-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card){
  
  
  
  
  border-width:1px!important;
  border-radius:13px!important;
  
}
html body.v146115-ui.v111-battle-active .v101-roster-scroll>.v101-unit-card{
  box-sizing:border-box!important;
  height:132px!important;
  min-height:132px!important;
  max-height:132px!important;
}
html body.v146115-ui .v101-monster-card .v101-unit-name{
  border:0!important;
  border-bottom:0!important;
  background:none!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* ========================================================================== */
/* Narrow phones: keep the requested fixes stable at 360–390 px.              */
/* ========================================================================== */
@media(max-width:390px){
  html body.v146115-ui .v146114-settings-screen .v14668-tutorial-settings .v127-setting-row{
    grid-template-columns:48px minmax(0,1fr)!important;
  }
  html body.v146115-ui .v146114-settings-screen .v14668-tutorial-replay{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:100%!important;
  }
  html body.v146115-ui .v146114-pit-scene .v146112-pit-loot-scroll,
  html body.v146115-ui .v146110-pit-loot-scroll{grid-auto-rows:146px!important}
  html body.v146115-ui .v146114-pit-loot-card,
  html body.v146115-ui .v146112-pit-loot-scroll>.v146112-pit-loot-card{
    flex-basis:146px!important;height:146px!important;min-height:146px!important;max-height:146px!important;
    grid-template-columns:60px minmax(0,1fr)!important;
  }
  html body.v146115-ui .v146114-monster-intro{
    grid-template-columns:92px minmax(0,1fr)!important;
    gap:8px!important;
    padding:8px!important;
  }
  html body.v146115-ui .v146114-monster-intro .v122-monster-portrait{
    width:92px!important;height:110px!important;min-width:92px!important;min-height:110px!important;max-width:92px!important;max-height:110px!important;
  }
  html body.v146115-ui .v146114-monster-intro .v122-monster-title h2{font-size:18px!important}
  html body.v146115-ui.v111-battle-active #v1281-skill-detail-slot{max-height:min(53dvh,445px)!important}
  html body.v146115-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card),
  html body.v146115-ui.v111-battle-active .v101-roster-scroll>.v101-unit-card{
    
  }
}

/* ===== css/v146116-ui-precision.css ===== */
/* Aldos RPG v1.146.116 — precision UI correction.
   Existing asset library only. No gameplay/state changes. */
html body.v146116-ui{
  --v116-gold:#e0b65d;--v116-line:rgba(209,169,78,.55);--v116-teal:#66d7b2;
  --v116-lime:#9ce42f;--v116-blue:#55aef1;--v116-panel:#06171c;--v116-deep:#020c11;
}

/* 1. Every actual close/cross control: one neat visual language. */
html body.v146116-ui :is(
  button[aria-label^="Закрыть"],.modal-close,#charhub-close,.v14417-gift-close,.v146113-close,
  .v14643-moment>button:first-child,.v14643-drawer>header>button,
  .v14643-member>button[data-dungeon-kick],.v14643-invites article>button[data-accept="0"],
  .v14644-drawer>header>button,.v14644-modal>article>button:first-child,
  .notice-head>button[data-close],button[data-close-monster-card],button[data-close-player-card]
){
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;
  padding:0!important;border:1px solid rgba(224,182,93,.72)!important;border-radius:11px!important;
  background:radial-gradient(circle at 50% 42%,rgba(52,91,75,.62),rgba(4,21,25,.98) 72%)!important;
  color:#ffd37b!important;font:800 24px/1 system-ui,sans-serif!important;
  box-shadow:inset 0 0 0 1px rgba(255,240,186,.06),0 4px 12px rgba(0,0,0,.35)!important;
  text-shadow:0 1px 5px rgba(0,0,0,.8)!important;overflow:hidden!important;
}
html body.v146116-ui :is(.modal-close,#charhub-close,.v14417-gift-close,.v146113-close):is(:active,:focus-visible),
html body.v146116-ui .v14643-moment>button:first-child:is(:active,:focus-visible){border-color:#ffd57a!important;filter:brightness(1.08)!important}
html body.v146116-ui :is(.modal-close,#charhub-close,.v14417-gift-close,.v146113-close) :is(img,svg,.v83-ui-icon),
html body.v146116-ui :is(button[data-close-monster-card],button[data-close-player-card]) :is(img,svg,.v83-ui-icon){width:23px!important;height:23px!important;object-fit:contain!important}

/* 2. Monster card: description never pushes through the frame. */
html body.v146116-ui .v146114-monster-intro{
  height:176px!important;min-height:176px!important;max-height:176px!important;
  grid-template-columns:108px minmax(0,1fr)!important;gap:10px!important;padding:10px!important;overflow:hidden!important;
}
html body.v146116-ui .v146114-monster-intro .v122-monster-portrait{
  width:108px!important;height:136px!important;min-width:108px!important;min-height:136px!important;max-width:108px!important;max-height:136px!important;overflow:hidden!important;
}
html body.v146116-ui .v146114-monster-intro .v122-monster-copy{height:136px!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:6px!important}
html body.v146116-ui .v146114-monster-intro .v122-monster-title{flex:0 0 auto!important;min-height:0!important}
html body.v146116-ui .v146114-monster-intro .v122-monster-title h2{font-size:19px!important;line-height:1.02!important}
html body.v146116-ui .v146116-monster-description{
  flex:1 1 auto!important;box-sizing:border-box!important;min-height:0!important;max-height:none!important;margin:0!important;padding:7px 9px!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;
  border:1px solid rgba(80,142,128,.26)!important;border-radius:9px!important;background:rgba(2,14,18,.72)!important;
  color:#bdc8c5!important;font-size:11px!important;line-height:1.38!important;white-space:normal!important;overflow-wrap:anywhere!important;
  scrollbar-width:thin!important;scrollbar-color:#db922e rgba(4,22,25,.8)!important;
}
html body.v146116-ui .v146116-monster-description::-webkit-scrollbar{width:5px!important}
html body.v146116-ui .v146116-monster-description::-webkit-scrollbar-thumb{background:#db922e!important;border-radius:99px!important}
html body.v146116-ui .v1421-admin-research-open:empty{display:none!important}

/* 3. Legendary + event skill changes: clean collapsed header; description gets its own framed expansion. */
html body.v146116-ui details.v146116-special-change{
  box-sizing:border-box!important;display:block!important;position:relative!important;width:100%!important;min-width:0!important;margin:7px 0!important;padding:0!important;
  border:1px solid rgba(102,165,149,.46)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(9,33,35,.98),rgba(3,15,20,.99))!important;
  overflow:hidden!important;box-shadow:inset 0 0 18px rgba(0,0,0,.22)!important;
}
html body.v146116-ui details.v146116-special-change>summary{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) 22px!important;align-items:center!important;gap:10px!important;
  min-height:76px!important;padding:10px!important;list-style:none!important;cursor:pointer!important;background:linear-gradient(90deg,rgba(27,76,62,.31),transparent 74%)!important;
}
html body.v146116-ui details.v146116-special-change>summary::-webkit-details-marker{display:none!important}
html body.v146116-ui details.v146116-special-change .v146116-special-art{
  display:grid!important;place-items:center!important;width:54px!important;height:54px!important;min-width:54px!important;border:1px solid rgba(219,178,84,.42)!important;border-radius:12px!important;background:rgba(2,15,18,.88)!important;overflow:hidden!important;
}
html body.v146116-ui details.v146116-special-change .v146116-special-art :is(img,svg,.v83-ui-icon,.item-asset-image){width:43px!important;height:43px!important;max-width:43px!important;max-height:43px!important;object-fit:contain!important}
html body.v146116-ui details.v146116-special-change>summary>div{display:grid!important;gap:3px!important;min-width:0!important}
html body.v146116-ui details.v146116-special-change>summary small{color:#a2b6b0!important;font-size:9px!important;font-weight:800!important;letter-spacing:.09em!important;text-transform:uppercase!important}
html body.v146116-ui details.v146116-special-change>summary b{min-width:0!important;color:#bdffae!important;font-size:14px!important;line-height:1.22!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v146116-ui details.v146116-special-change>summary em{color:#b9a97d!important;font-size:9px!important;font-style:normal!important}
html body.v146116-ui details.v146116-special-change>summary>i{width:11px!important;height:11px!important;justify-self:center!important;border-right:2px solid #dfb65c!important;border-bottom:2px solid #dfb65c!important;transform:rotate(45deg)!important;transition:transform .16s ease!important}
html body.v146116-ui details.v146116-special-change[open]>summary>i{transform:rotate(225deg)!important}
html body.v146116-ui details.v146116-special-change .v146116-special-description{
  position:static!important;box-sizing:border-box!important;display:none!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 10px 10px!important;padding:10px 11px!important;border:1px solid rgba(99,158,144,.31)!important;border-radius:10px!important;
  background:linear-gradient(145deg,rgba(2,14,18,.94),rgba(8,24,27,.82))!important;overflow:visible!important;clear:both!important;
}
html body.v146116-ui details.v146116-special-change[open] .v146116-special-description{display:block!important}
html body.v146116-ui details.v146116-special-change .v146116-special-description>p{position:static!important;display:block!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;color:#d8e0dd!important;font-size:11px!important;line-height:1.48!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;-webkit-line-clamp:unset!important}
html body.v146116-ui details.v146116-special-change.event-change{border-color:rgba(213,177,85,.44)!important}
html body.v146116-ui details.v146116-special-change.event-change>summary{background:linear-gradient(90deg,rgba(87,67,26,.29),transparent 74%)!important}

/* 4. Inventory actions: compact use/equip icon, visible larger drop icon. */
html body.v146116-ui .v119-inventory-list .v146109-card-action:is(.use,.equip){
  display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;justify-content:stretch!important;align-items:center!important;gap:3px!important;padding:0 7px!important;min-width:0!important;
}
html body.v146116-ui .v119-inventory-list .v146109-card-action:is(.use,.equip) :is(img,svg,.v83-ui-icon){width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;max-height:21px!important;object-fit:contain!important}
html body.v146116-ui .v119-inventory-list .v146109-card-action:is(.use,.equip)>span{display:block!important;min-width:0!important;font-size:10px!important;line-height:1!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146116-ui .v119-inventory-list .v146109-card-action.drop :is(img,svg,.v83-ui-icon){width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;max-height:27px!important;object-fit:contain!important}
html body.v146116-ui .v119-inventory-list .v146109-card-action.drop:only-child :is(img,svg,.v83-ui-icon){width:29px!important;height:29px!important}

/* 5. Attribute info: one explanation, current real effects, then next threshold. */
html body.v146116-ui .v146116-attribute-info-modal .modal{max-height:min(86dvh,650px)!important}
html body.v146116-ui .v146116-attribute-detail{display:grid!important;gap:10px!important;padding:4px!important}
html body.v146116-ui .v146116-attribute-description{margin:0!important;padding:12px 13px!important;border-left:3px solid rgba(221,181,85,.62)!important;border-radius:0 11px 11px 0!important;background:rgba(4,22,25,.68)!important;color:#d4ddda!important;font-size:12px!important;line-height:1.52!important;font-style:italic!important}
html body.v146116-ui .v146116-attribute-bonuses{padding:11px!important;border:1px solid rgba(85,145,132,.34)!important;border-radius:12px!important;background:rgba(4,20,23,.76)!important}
html body.v146116-ui .v146116-attribute-bonuses>small{display:block!important;margin-bottom:7px!important;color:#e6bd6e!important;font-size:10px!important;font-weight:900!important;letter-spacing:.07em!important;text-transform:uppercase!important}
html body.v146116-ui .v146116-attribute-bonuses ul{display:grid!important;gap:5px!important;margin:0!important;padding:0!important;list-style:none!important}
html body.v146116-ui .v146116-attribute-bonuses li{padding:7px 9px!important;border-radius:8px!important;background:rgba(109,158,145,.11)!important;color:#eef3ef!important;font-size:12px!important;line-height:1.32!important}
html body.v146116-ui .v146116-attribute-next{padding:10px 11px!important;border:1px solid rgba(219,179,85,.31)!important;border-radius:11px!important;background:rgba(34,28,13,.32)!important}
html body.v146116-ui .v146116-attribute-next small{display:block!important;color:#9aa8a4!important;font-size:9px!important}
html body.v146116-ui .v146116-attribute-next b{display:block!important;margin-top:3px!important;color:#f0e7d0!important;font-size:12px!important;line-height:1.35!important}
html body.v146116-ui .v146116-attribute-ok{width:min(180px,100%)!important;justify-self:end!important}

/* 6. Profile identity statuses are square; mini stats keep art and text on the same row. */
html body.v146116-ui .v76-profile-name-line{display:flex!important;align-items:center!important;gap:5px!important;min-height:34px!important;flex-wrap:wrap!important}
html body.v146116-ui .v76-profile-name-line>.v14635-guardian-badges.profile{display:inline-flex!important;align-items:center!important;gap:4px!important;height:30px!important;max-height:30px!important}
html body.v146116-ui .v76-profile-name-line .v14635-guardian-badge{box-sizing:border-box!important;width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important;flex:0 0 30px!important;border-radius:8px!important;padding:2px!important}
html body.v146116-ui .v76-profile-name-line .v14635-guardian-badge .v14635-guardian-badge-art{width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important}
html body.v146116-ui .v76-profile-name-line>.v14644-player-title{box-sizing:border-box!important;width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;margin:0!important;padding:3px!important;border:1px solid rgba(209,170,81,.35)!important;border-radius:8px!important;background:rgba(5,20,22,.72)!important;object-fit:contain!important;vertical-align:middle!important}
html body.v146116-ui .v119-profile-stats .v39-mini-stat{
  display:grid!important;grid-template-columns:27px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-content:center!important;align-items:center!important;gap:1px 7px!important;padding:9px!important;min-width:0!important;
}
html body.v146116-ui .v119-profile-stats .v39-mini-stat>span{grid-column:1!important;grid-row:1/3!important;display:grid!important;place-items:center!important;width:27px!important;height:27px!important;margin:0!important}
html body.v146116-ui .v119-profile-stats .v39-mini-stat>span :is(img,svg,.v83-ui-icon){width:24px!important;height:24px!important;object-fit:contain!important}
html body.v146116-ui .v119-profile-stats .v39-mini-stat>small{grid-column:2!important;grid-row:1!important;margin:0!important;align-self:end!important}
html body.v146116-ui .v119-profile-stats .v39-mini-stat>b{grid-column:2!important;grid-row:2!important;margin:0!important;align-self:start!important;font-size:14px!important;line-height:1.1!important;white-space:normal!important}

/* 7. Topbar circular portrait: remove the square plate inside it. */
html body.v146116-ui .v121-top-avatar-button .v119-top-avatar,
html body.v146116-ui .v121-top-avatar-button .v119-top-avatar>*{
  border-radius:50%!important;
}
html body.v146116-ui .v121-top-avatar-button .v119-top-avatar>*{
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;outline:0!important;
}
html body.v146116-ui .v121-top-avatar-button .v119-top-avatar :is(img,.class-inline-image,.class-asset-image){width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 16%!important;border:0!important;background:none!important;box-shadow:none!important}

/* 8. Gorgan attribute choice cannot leak out of a card. */
html body.v146116-ui .v146116-attribute-choice>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important}
html body.v146116-ui .v146116-attribute-choice button{box-sizing:border-box!important;display:grid!important;grid-template-columns:25px minmax(0,1fr) 9px!important;align-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:42px!important;padding:5px 7px!important;overflow:hidden!important}
html body.v146116-ui .v146116-attribute-choice button img{width:25px!important;height:25px!important;min-width:25px!important;object-fit:contain!important}
html body.v146116-ui .v146116-attribute-choice button span{display:block!important;min-width:0!important;max-width:100%!important;font-size:9px!important;line-height:1.1!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v146116-ui .v146116-attribute-choice button i{position:static!important;justify-self:end!important;width:8px!important;height:8px!important}

/* 9. Salvage animation typography: title and explanation visibly separated. */
html body.v146116-ui .v146116-salvage-scene>strong{bottom:64px!important;line-height:1!important;margin:0!important}
html body.v146116-ui .v146116-salvage-scene>small{bottom:27px!important;min-height:26px!important;line-height:1.32!important;padding:0 12px!important}

/* 10. Side panel: richer surfaces and assets always fully contained. */
html body.v146116-ui .v119-side{background:linear-gradient(165deg,rgba(5,30,31,.99),rgba(2,13,18,.995) 72%)!important;border-right:1px solid rgba(211,171,78,.45)!important;box-shadow:12px 0 34px rgba(0,0,0,.5)!important}
html body.v146116-ui .v119-side-head{background:linear-gradient(135deg,rgba(25,70,62,.45),rgba(4,21,25,.8))!important;border-bottom:1px solid rgba(211,171,78,.28)!important}
html body.v146116-ui .v119-side-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:8px!important;align-content:start!important;overflow-y:auto!important}
html body.v146116-ui .v119-side-nav>button{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:60px minmax(29px,auto)!important;justify-items:center!important;align-items:center!important;gap:6px!important;
  width:100%!important;height:108px!important;min-height:108px!important;padding:9px 7px!important;border:1px solid rgba(205,164,76,.28)!important;border-radius:16px!important;
  background-image:linear-gradient(155deg,rgba(9,36,36,.73),rgba(3,17,21,.90)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;background-size:100% 100%,cover!important;background-position:center!important;background-repeat:no-repeat!important;
  color:#e7e0d3!important;overflow:hidden!important;box-shadow:inset 0 0 16px rgba(0,0,0,.23)!important;
}
html body.v146116-ui .v119-side-nav>button.active{border-color:rgba(113,214,181,.55)!important;box-shadow:inset 0 0 18px rgba(70,190,156,.11)!important}
html body.v146116-ui .v119-side-nav .v83-side-icon{box-sizing:border-box!important;display:grid!important;place-items:center!important;width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;padding:5px!important;border:1px solid rgba(211,171,78,.32)!important;border-radius:15px!important;background:radial-gradient(circle,rgba(48,95,78,.3),rgba(3,18,21,.78))!important;overflow:hidden!important}
html body.v146116-ui .v119-side-nav .v83-side-icon :is(img,svg),
html body.v146116-ui .v119-side-nav img.v83-side-icon{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;object-fit:contain!important;object-position:center!important}
html body.v146116-ui .v119-side-nav>button>span{display:-webkit-box!important;min-width:0!important;width:100%!important;max-height:30px!important;color:#ece7dc!important;font:700 12px/1.18 Georgia,serif!important;text-align:center!important;white-space:normal!important;overflow:hidden!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;text-overflow:ellipsis!important}
html body.v146116-ui .v119-side-nav .v119-side-arrow{display:none!important}
html body.v146116-ui .v119-side-nav>button.danger{background-image:linear-gradient(155deg,rgba(74,25,29,.72),rgba(22,11,15,.94)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important}

/* 11. Battle unit cards: equal and a little taller so effect row is visible. */
html body.v146116-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card),
html body.v146116-ui.v111-battle-active .v101-roster-scroll>.v101-unit-card{
  
}
html body.v146116-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v101-unit-effects{}
html body.v146116-ui .v101-monster-card .v101-unit-name{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important}

/* 12. Character switch: ONLY character row backgrounds are blue; controls return to normal theme. */
html body.v146116-ui .v146116-character-sheet{border-color:rgba(211,171,78,.48)!important;background:linear-gradient(160deg,rgba(5,27,29,.99),rgba(2,13,18,.995))!important}
html body.v146116-ui .v146116-character-sheet>header{background:linear-gradient(90deg,rgba(38,80,68,.22),rgba(59,46,18,.13),transparent)!important;border-bottom-color:rgba(211,171,78,.28)!important}
html body.v146116-ui .v146116-character-row,
html body.v146116-ui .v146116-character-row[class*="tone-"]{border-color:rgba(83,164,225,.52)!important;background:linear-gradient(145deg,rgba(17,73,118,.66),rgba(4,28,49,.94) 58%,rgba(3,17,25,.99))!important;box-shadow:inset 0 0 18px rgba(45,133,203,.08)!important}
html body.v146116-ui .v146116-character-row.current{border-color:rgba(220,181,83,.62)!important;box-shadow:inset 0 0 0 1px rgba(220,181,83,.12),inset 0 0 18px rgba(43,126,189,.10)!important}
html body.v146116-ui .v146116-character-row .v125-character-actions .primary{border-color:#a8e83b!important;background:linear-gradient(#b6f339,#79be13)!important;color:#10220c!important;box-shadow:inset 0 1px rgba(255,255,255,.34),0 3px 10px rgba(0,0,0,.26)!important}
html body.v146116-ui .v146116-character-row .v125-character-actions .danger{background:linear-gradient(180deg,#2b3037,#151a20)!important;border-color:#404952!important;color:#eef0f2!important}

/* 13. Pit background stays inside its frame all the way to the bottom. */
html body.v146116-ui .v146101-pit-main .v119-pit-screen{position:relative!important;overflow:hidden!important}
html body.v146116-ui .v146101-pit-main .v119-pit-screen::before{inset:5px!important;bottom:5px!important;background-size:100% 100%!important;background-position:center!important;border-radius:14px!important;clip-path:inset(0 round 14px)!important}
html body.v146116-ui .v146101-pit-main .v146114-pit-scene{background-position:center bottom!important;background-size:cover!important;background-repeat:no-repeat!important;border-radius:17px!important;overflow:hidden!important}
html body.v146116-ui .v146101-pit-main .v146114-pit-scene::after{inset:0!important;border-radius:inherit!important;overflow:hidden!important}
html body.v146116-ui .v146112-pit-footer{position:relative!important;z-index:3!important;padding-bottom:8px!important;background:linear-gradient(180deg,transparent,rgba(1,10,12,.62))!important}

/* 14. Equipment slot picker actions: icon+text centered; explicit framed Close action. */
html body.v146116-ui .v146116-picker-modal .v146109-picker-action{
  display:flex!important;justify-content:center!important;align-items:center!important;gap:7px!important;padding:0 12px!important;min-width:0!important;
}
html body.v146116-ui .v146116-picker-modal .v146109-picker-action :is(img,svg,.v83-ui-icon){position:static!important;width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;object-fit:contain!important;margin:0!important}
html body.v146116-ui .v146116-picker-modal .v146109-picker-action>span{display:block!important;min-width:0!important;font-size:12px!important;text-align:center!important;white-space:nowrap!important}
html body.v146116-ui .v146116-picker-footer{position:sticky!important;bottom:0!important;z-index:5!important;display:grid!important;padding:9px 0 2px!important;background:linear-gradient(180deg,transparent,rgba(3,16,20,.98) 30%)!important}
html body.v146116-ui .v146116-picker-close,
html body.v146116-ui .v146116-detail-close{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:42px!important;border:1px solid rgba(207,168,79,.42)!important;background:linear-gradient(180deg,rgba(30,43,47,.97),rgba(12,20,24,.98))!important;color:#f0e7d8!important;border-radius:11px!important}
html body.v146116-ui :is(.v146116-picker-close,.v146116-detail-close) :is(img,svg,.v83-ui-icon){width:21px!important;height:21px!important;object-fit:contain!important}

/* 15. Battle selected skill card: more normal lower room; opened history scrolls internally and never overlays target/cast. */
html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot{
  box-sizing:border-box!important;max-height:min(57dvh,520px)!important;min-height:0!important;padding:0 2px 8px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
}
html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;min-height:340px!important;height:auto!important;max-height:none!important;padding:11px!important;overflow:visible!important;
}
html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history{flex:0 0 auto!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot .v14674-ability-history[open]{box-sizing:border-box!important;max-height:190px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-target{flex:0 0 auto!important;margin-top:auto!important;min-height:42px!important;padding:8px 3px!important}
html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-cast{position:static!important;flex:0 0 auto!important;width:100%!important;min-height:48px!important;margin:0!important;box-shadow:none!important}

/* 16. Dungeon/expedition: responsive framed panels + existing slime background, never stretch object art. */
html body.v146116-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance){
  position:relative!important;isolation:isolate!important;box-sizing:border-box!important;padding:12px!important;border:1px solid rgba(142,202,62,.52)!important;border-radius:22px!important;
  background-image:linear-gradient(160deg,rgba(7,38,27,.82),rgba(2,20,18,.97) 70%),url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp")!important;
  background-size:cover,cover!important;background-position:center,center top!important;background-repeat:no-repeat!important;
  box-shadow:inset 0 0 32px rgba(92,181,47,.09),0 10px 26px rgba(0,0,0,.32)!important;overflow:visible!important;
}
html body.v146116-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance)::before{
  content:""!important;position:absolute!important;z-index:-1!important;inset:3px!important;pointer-events:none!important;border:10px solid transparent!important;border-image-source:url("../assets/v14695/location-ui/frames/location-main-frame.webp")!important;border-image-slice:95 fill!important;border-image-width:10px!important;border-image-repeat:stretch!important;opacity:.76!important;border-radius:18px!important;
}
html body.v146116-ui .v146116-dungeon-entrance :is(.v14643-entry-title,.v14643-map-ticket,.v14643-lobby-title,.v14643-lobby-grid,.v14643-nearby,.v14643-notice),
html body.v146116-ui .v146116-dungeon-instance :is(.v14643-runbar,.v14644-party-hud,.v14643-scene,.v14643-instance-foot){
  border-color:rgba(139,202,66,.38)!important;box-shadow:inset 0 0 18px rgba(89,177,45,.06)!important;
}
html body.v146116-ui .v146116-dungeon-entrance :is(.v14643-entry-title,.v14643-map-ticket,.v14643-lobby-title,.v14643-nearby){background:linear-gradient(145deg,rgba(8,51,33,.78),rgba(3,25,23,.94))!important}
html body.v146116-ui .v146116-dungeon-entrance .v14643-member{border-color:rgba(107,167,71,.23)!important;background:linear-gradient(145deg,rgba(7,44,31,.78),rgba(3,24,23,.93))!important}
html body.v146116-ui .v146116-dungeon-instance .v14643-scene-art{background:radial-gradient(circle at 50% 45%,rgba(137,211,51,.12),rgba(3,24,18,.86) 72%)!important;overflow:hidden!important}
html body.v146116-ui .v146116-dungeon-instance .v14643-scene-art>.object{object-fit:contain!important;max-width:92%!important;max-height:94%!important}

@media(max-width:390px){
  html body.v146116-ui .v146114-monster-intro{height:168px!important;min-height:168px!important;max-height:168px!important;grid-template-columns:94px minmax(0,1fr)!important;gap:8px!important;padding:8px!important}
  html body.v146116-ui .v146114-monster-intro .v122-monster-portrait{width:94px!important;height:128px!important;min-width:94px!important;min-height:128px!important;max-width:94px!important;max-height:128px!important}
  html body.v146116-ui .v146114-monster-intro .v122-monster-copy{height:128px!important}
  html body.v146116-ui .v146114-monster-intro .v122-monster-title h2{font-size:17px!important}
  html body.v146116-ui .v119-side-nav>button{height:102px!important;min-height:102px!important;grid-template-rows:55px minmax(27px,auto)!important}
  html body.v146116-ui .v119-side-nav .v83-side-icon{width:53px!important;height:53px!important;min-width:53px!important;min-height:53px!important}
  html body.v146116-ui .v119-side-nav .v83-side-icon :is(img,svg),html body.v146116-ui .v119-side-nav img.v83-side-icon{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important}
  html body.v146116-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card),html body.v146116-ui.v111-battle-active .v101-roster-scroll>.v101-unit-card{}
  html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot{max-height:min(59dvh,500px)!important}
  html body.v146116-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail{min-height:330px!important}
  html body.v146116-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance){padding:9px!important;border-radius:18px!important}
  html body.v146116-ui .v146116-attribute-choice button{grid-template-columns:23px minmax(0,1fr) 8px!important;padding:4px 5px!important}
  html body.v146116-ui .v146116-attribute-choice button img{width:23px!important;height:23px!important;min-width:23px!important}
}

/* ===== css/v146117-ui-geometry.css ===== */
/* Aldos RPG v1.146.117 — geometry-first mobile UI refinement.
   Existing asset library only. No gameplay/state changes. */
html body.v146117-ui{
  --v117-gold:#e1b861;--v117-lime:#9fe934;--v117-line:rgba(216,177,84,.58);
  --v117-panel:#06181b;--v117-deep:#020d11;
}

/* 1) Full item detail grows with expanded legendary/event description.
   Scroll the overlay, not the rarity card itself, so its full-height art really follows content. */
html body.v146117-ui .modal-back.has-v97-item-modal{
  align-items:flex-start!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:7px 6px max(8px,env(safe-area-inset-bottom))!important;overscroll-behavior:contain!important;
}
html body.v146117-ui .modal.v146112-item-modal{
  width:min(520px,calc(100vw - 12px))!important;max-width:min(520px,calc(100vw - 12px))!important;
  max-height:none!important;margin:auto!important;overflow:visible!important;
}
html body.v146117-ui .modal.v146112-item-modal>.v146112-item-detail{
  width:calc(100% - 2px)!important;max-width:calc(100% - 2px)!important;max-height:none!important;
  height:auto!important;min-height:0!important;overflow:visible!important;
}
html body.v146117-ui .v146108-item-detail-fix[class*="rarity-"]::before{
  inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;
  background-size:100% 100%,100% 100%!important;background-position:center,center!important;
}
html body.v146117-ui details.v146116-special-change[open]{overflow:visible!important}
html body.v146117-ui details.v146116-special-change[open] .v146116-special-description{height:auto!important;max-height:none!important;overflow:visible!important}

/* 2) Forge attribute names stay one line. Smaller type wins over ugly word wrapping. */
html body.v146117-ui .v146116-attribute-choice button span{
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important;
  font-size:8px!important;line-height:1!important;letter-spacing:-.02em!important;
}
html body.v146117-ui .v146116-attribute-choice button{grid-template-columns:23px minmax(0,1fr) 8px!important;gap:4px!important;padding-inline:6px!important}
html body.v146117-ui .v146116-attribute-choice button img{width:23px!important;height:23px!important;min-width:23px!important}

/* 3) Inventory discard actions: text version gets a clearly visible icon;
   icon-only version gets a proper compact square frame instead of a squashed 900x260 plate. */
html body.v146117-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop.solo{
  width:100%!important;min-width:0!important;max-width:none!important;padding:0 12px!important;gap:8px!important;
  background-image:url("../assets/v146103/ui/buttons/discard.webp")!important;background-size:100% 100%!important;
}
html body.v146117-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop.solo>.v83-ui-icon{
  width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;max-height:31px!important;
}
html body.v146117-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop.solo>span{
  display:inline!important;font-size:11px!important;font-weight:900!important;
}
html body.v146117-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop:not(.solo){
  width:44px!important;min-width:44px!important;max-width:44px!important;height:40px!important;
  border:1px solid rgba(215,90,80,.62)!important;border-radius:10px!important;
  background-image:linear-gradient(180deg,rgba(109,24,27,.96),rgba(42,8,12,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(255,190,150,.08),0 2px 7px rgba(0,0,0,.35)!important;
}
html body.v146117-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop:not(.solo)>.v83-ui-icon{
  width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;max-height:27px!important;
}
html body.v146117-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button.v146111-card-action.drop:not(.solo)){
  grid-template-columns:minmax(0,1fr) 44px!important;gap:5px!important;
}

/* 4) Equipment slot picker: icon + label are one centered unit. */
html body.v146117-ui .v146116-picker-modal .v146117-picker-action-content{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:max-content!important;max-width:100%!important;margin:auto!important;
}
html body.v146117-ui .v146116-picker-modal .v146117-picker-action-content>.v83-ui-icon{
  position:static!important;width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;max-height:23px!important;margin:0!important;object-fit:contain!important;
}
html body.v146117-ui .v146116-picker-modal .v146117-picker-action-content>span{
  display:inline!important;width:auto!important;min-width:0!important;margin:0!important;white-space:nowrap!important;text-align:center!important;
}

/* 5) Selected monster: card border is the selection frame. The action overlay no longer draws a second mismatched rectangle. */
html body.v146117-ui.v111-battle-active .v101-monster-card.selected-target{
  border-color:rgba(231,199,103,.82)!important;box-shadow:inset 0 0 0 1px rgba(231,199,103,.20),0 0 15px rgba(231,199,103,.10)!important;
}
html body.v146117-ui.v111-battle-active .v106-monster-action-overlay{
  top:29px!important;right:9px!important;bottom:42px!important;left:9px!important;
  border:0!important;border-radius:10px!important;box-shadow:none!important;
  background:radial-gradient(circle at center,rgba(5,14,18,.12),rgba(5,14,18,.34))!important;
}

/* 6) Battle player/monster cards: truly identical fixed height regardless of effects.
   Internal row math is also fixed, so effect chips never change visual card height. */
html body.v146117-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card),
html body.v146117-ui.v111-battle-active .v101-roster-scroll>.v101-unit-card{
  
  
}
html body.v146117-ui.v111-battle-active .v101-player-card{
  
}
html body.v146117-ui.v111-battle-active .v101-monster-card{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:22px 66px 25px 34px!important;gap:1px!important;
}
html body.v146117-ui.v111-battle-active .v101-monster-card .v101-unit-name{height:22px!important;min-height:22px!important;max-height:22px!important}
html body.v146117-ui.v111-battle-active .v101-monster-card .v101-unit-art{height:66px!important;min-height:66px!important;max-height:66px!important}
html body.v146117-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card) .v101-unit-effects{
  
  
}
html body.v146117-ui.v111-battle-active .v101-player-card .v101-unit-art{}

/* 7) Monster info lore: explicit scroll viewport. It cannot push through the intro frame. */
html body.v146117-ui .v146114-monster-intro{
  height:190px!important;min-height:190px!important;max-height:190px!important;
  grid-template-columns:108px minmax(0,1fr)!important;gap:10px!important;padding:10px!important;overflow:hidden!important;
}
html body.v146117-ui .v146114-monster-intro .v122-monster-portrait{
  width:108px!important;height:150px!important;min-height:150px!important;max-height:150px!important;
}
html body.v146117-ui .v146114-monster-intro .v122-monster-copy{
  box-sizing:border-box!important;height:150px!important;min-height:150px!important;max-height:150px!important;overflow:hidden!important;
}
html body.v146117-ui .v146116-monster-description{
  flex:0 0 76px!important;box-sizing:border-box!important;width:100%!important;height:76px!important;min-height:76px!important;max-height:76px!important;
  overflow-y:scroll!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;
  padding:7px 10px 7px 8px!important;
}
html body.v146117-ui .v146116-monster-description::-webkit-scrollbar{display:block!important;width:5px!important;background:rgba(3,18,21,.55)!important}
html body.v146117-ui .v146116-monster-description::-webkit-scrollbar-thumb{background:#d9932e!important;border-radius:99px!important}

/* 8) Slime expedition: visible existing-art background + real ornate frame above the background.
   v116 put its frame at z-index:-1, which hid it behind the section surface. */
html body.v146117-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance){
  position:relative!important;isolation:isolate!important;overflow:visible!important;padding:15px 13px!important;
  border:1px solid rgba(153,220,60,.54)!important;border-radius:22px!important;
  background:linear-gradient(160deg,rgba(5,43,25,.90),rgba(2,18,17,.97) 72%)!important;
  box-shadow:inset 0 0 36px rgba(110,205,45,.10),0 10px 26px rgba(0,0,0,.34)!important;
}
html body.v146117-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance)::before{
  content:""!important;position:absolute!important;z-index:0!important;inset:7px!important;pointer-events:none!important;border-radius:16px!important;
  background-image:linear-gradient(rgba(4,31,21,.30),rgba(2,20,18,.58)),url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp")!important;
  background-size:cover,cover!important;background-position:center,center!important;background-repeat:no-repeat!important;opacity:.72!important;
}
html body.v146117-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance)::after{
  content:""!important;position:absolute!important;z-index:1!important;inset:2px!important;pointer-events:none!important;
  border:15px solid transparent!important;border-image-source:url("../assets/v14695/location-ui/frames/location-main-frame.webp")!important;
  border-image-slice:96!important;border-image-width:15px!important;border-image-repeat:stretch!important;opacity:.92!important;
}
html body.v146117-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance)>*{position:relative!important;z-index:2!important}
html body.v146117-ui .v146116-dungeon-entrance :is(.v14643-entry-title,.v14643-lobby-title,.v14643-lobby-grid,.v14643-nearby,.v14643-notice),
html body.v146117-ui .v146116-dungeon-instance :is(.v14643-runbar,.v14644-party-hud,.v14643-scene,.v14643-instance-foot){
  border:1px solid rgba(154,220,68,.48)!important;border-radius:16px!important;
  background-image:linear-gradient(145deg,rgba(7,55,31,.78),rgba(3,23,22,.94)),url("../assets/v146103/ui/merchant/merchant-panel-surface.webp")!important;
  background-size:100% 100%,100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
  box-shadow:inset 0 0 0 1px rgba(204,238,117,.04),inset 0 0 18px rgba(78,177,49,.07),0 4px 12px rgba(0,0,0,.18)!important;
}
html body.v146117-ui .v146116-dungeon-entrance .v14643-entry-title{
  background-image:linear-gradient(145deg,rgba(10,62,34,.72),rgba(3,24,22,.91)),url("../assets/v14695/location-ui/route-backgrounds/route-slime-entrance.webp")!important;
  background-size:cover,cover!important;background-position:center!important;
}
html body.v146117-ui .v146116-dungeon-entrance .v14643-member{
  border:1px dashed rgba(143,203,71,.30)!important;border-radius:13px!important;
  background:linear-gradient(145deg,rgba(8,48,31,.74),rgba(3,23,22,.92))!important;
}
html body.v146117-ui .v146116-dungeon-entrance .v14643-lobby-grid{padding:8px!important}
html body.v146117-ui .v146116-dungeon-instance .v14643-scene-art{border:1px solid rgba(151,211,66,.25)!important;border-radius:14px!important;background:radial-gradient(circle at 50% 46%,rgba(135,214,52,.14),rgba(3,26,19,.86) 72%)!important;overflow:hidden!important}

@media(max-width:390px){
  html body.v146117-ui .v146116-attribute-choice button span{font-size:7.5px!important}
  html body.v146117-ui.v111-battle-active :is(.v101-player-card,.v101-monster-card),
  html body.v146117-ui.v111-battle-active .v101-roster-scroll>.v101-unit-card{}
  html body.v146117-ui.v111-battle-active .v101-player-card{}
  html body.v146117-ui.v111-battle-active .v101-monster-card{grid-template-rows:21px 63px 25px 34px!important}
  html body.v146117-ui.v111-battle-active .v101-monster-card .v101-unit-name{height:21px!important;min-height:21px!important;max-height:21px!important}
  html body.v146117-ui.v111-battle-active .v101-monster-card .v101-unit-art{height:63px!important;min-height:63px!important;max-height:63px!important}
  html body.v146117-ui.v111-battle-active .v101-player-card .v101-unit-art{}
  html body.v146117-ui .v146114-monster-intro{height:184px!important;min-height:184px!important;max-height:184px!important;grid-template-columns:94px minmax(0,1fr)!important;gap:8px!important;padding:8px!important}
  html body.v146117-ui .v146114-monster-intro .v122-monster-portrait{width:94px!important;height:146px!important;min-height:146px!important;max-height:146px!important}
  html body.v146117-ui .v146114-monster-intro .v122-monster-copy{height:146px!important;min-height:146px!important;max-height:146px!important}
  html body.v146117-ui .v146116-monster-description{flex-basis:72px!important;height:72px!important;min-height:72px!important;max-height:72px!important}
  html body.v146117-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance){padding:12px 10px!important;border-radius:19px!important}
  html body.v146117-ui :is(.v146116-dungeon-entrance,.v146116-dungeon-instance)::after{border-width:12px!important;border-image-width:12px!important}
}

/* ===== css/v146118-ui-modal-polish.css ===== */
/* Aldos RPG v1.146.118 — modal/status/attribute and action geometry polish.
   Existing assets only; no gameplay/state changes. */
html body.v146118-ui{
  --v118-gold:#e3bd69;--v118-gold-soft:rgba(227,189,105,.45);--v118-lime:#a7ef37;
  --v118-ink:#031316;--v118-panel:#071f21;--v118-panel2:#0a2927;--v118-line:rgba(106,164,149,.32);
}

/* Shared modal frame language for the new sheets. */
html body.v146118-ui :is(.v146118-rename-modal,.v146118-guardian-status-modal,.v146118-attribute-modal){
  box-sizing:border-box!important;width:min(94vw,620px)!important;max-width:620px!important;
  padding:18px!important;border:1px solid rgba(220,177,84,.70)!important;border-radius:22px!important;
  background:
    radial-gradient(circle at 82% 8%,rgba(70,135,104,.14),transparent 34%),
    linear-gradient(155deg,rgba(5,31,32,.985),rgba(2,15,19,.995) 68%,rgba(4,23,22,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(255,221,144,.05),inset 0 0 38px rgba(57,133,101,.06),0 24px 70px rgba(0,0,0,.58)!important;
  overflow:hidden!important;
}
html body.v146118-ui :is(.v146118-rename-modal,.v146118-guardian-status-modal,.v146118-attribute-modal)::before{
  content:"";position:absolute;inset:7px;pointer-events:none;border-radius:17px;
  border:1px solid rgba(92,146,133,.18);box-shadow:inset 0 0 26px rgba(0,0,0,.20);
}

/* 1) Rename nickname: clear hierarchy, existing rename asset, framed fields. */
html body.v146118-ui .v146118-rename-dialog{display:grid!important;gap:14px!important;padding:4px!important;position:relative!important;z-index:1!important}
html body.v146118-ui .v146118-rename-hero{display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:13px!important;align-items:center!important;padding:13px!important;border:1px solid rgba(214,171,74,.40)!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(25,60,52,.78),rgba(5,22,25,.94))!important}
html body.v146118-ui .v146118-rename-art{display:grid!important;place-items:center!important;width:74px!important;height:74px!important;border:1px solid rgba(220,177,84,.50)!important;border-radius:16px!important;background:radial-gradient(circle,rgba(166,231,75,.13),rgba(3,16,19,.70))!important;overflow:hidden!important}
html body.v146118-ui .v146118-rename-art img{width:58px!important;height:58px!important;object-fit:contain!important}
html body.v146118-ui .v146118-rename-hero small{color:#8ed7c1!important;letter-spacing:.13em!important;font-weight:900!important;font-size:10px!important}
html body.v146118-ui .v146118-rename-hero h2{margin:3px 0 4px!important;font:700 clamp(27px,7vw,38px)/1 Georgia,"Times New Roman",serif!important;color:#f5f1df!important}
html body.v146118-ui .v146118-rename-hero p{margin:0!important;text-align:left!important;color:#aab8b4!important;font-size:13px!important;line-height:1.38!important}
html body.v146118-ui .v146118-rename-once{display:grid!important;gap:3px!important;padding:10px 12px!important;border:1px solid rgba(224,181,88,.36)!important;border-radius:13px!important;background:linear-gradient(90deg,rgba(83,60,16,.30),rgba(7,24,24,.86))!important}
html body.v146118-ui .v146118-rename-once b{color:#efd291!important;font-size:13px!important}.v146118-rename-once span{color:#aeb9b6!important;font-size:11px!important;line-height:1.38!important}
html body.v146118-ui .v146118-rename-fields{display:grid!important;gap:10px!important}
html body.v146118-ui .v146118-rename-dialog label{display:grid!important;gap:6px!important;padding:10px!important;border:1px solid rgba(103,158,146,.25)!important;border-radius:14px!important;background:rgba(3,18,21,.78)!important}
html body.v146118-ui .v146118-rename-dialog label>span{font-size:10px!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#8ea6a1!important}
html body.v146118-ui .v146118-rename-dialog input{box-sizing:border-box!important;width:100%!important;height:48px!important;min-height:48px!important;padding:0 13px!important;border:1px solid rgba(203,164,76,.38)!important;border-radius:11px!important;background:linear-gradient(180deg,#0b1519,#080f13)!important;color:#f7f4e8!important;font-size:17px!important;outline:none!important;box-shadow:inset 0 2px 10px rgba(0,0,0,.28)!important}
html body.v146118-ui .v146118-rename-dialog input:focus{border-color:rgba(166,239,55,.72)!important;box-shadow:0 0 0 2px rgba(166,239,55,.09),inset 0 2px 10px rgba(0,0,0,.28)!important}
html body.v146118-ui .v146118-rename-rules{padding:0 4px!important;color:#85938f!important;font-size:11px!important;line-height:1.42!important}
html body.v146118-ui .v146118-rename-actions{grid-template-columns:.9fr 1.1fr!important;gap:9px!important}
html body.v146118-ui .v146118-rename-actions button{height:48px!important;min-height:48px!important;border-radius:13px!important;font-weight:900!important}

/* 2) Player/trade statuses: asset-backed status card instead of plain text modal. */
html body.v146118-ui .v146118-guardian-info{display:grid!important;gap:11px!important;position:relative!important;z-index:1!important}
html body.v146118-ui .v146118-guardian-hero{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;gap:13px!important;align-items:center!important;padding:13px!important;border:1px solid rgba(218,177,83,.44)!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(38,61,49,.83),rgba(5,22,25,.95))!important;overflow:hidden!important}
html body.v146118-ui .v146118-guardian-info.brand .v146118-guardian-hero{background:linear-gradient(145deg,rgba(71,24,29,.67),rgba(8,22,24,.96))!important;border-color:rgba(197,88,76,.50)!important}
html body.v146118-ui .v146118-guardian-hero>span{display:grid!important;place-items:center!important;width:78px!important;height:78px!important;border:1px solid rgba(213,172,75,.38)!important;border-radius:17px!important;background:rgba(2,16,19,.70)!important}
html body.v146118-ui .v146118-guardian-hero img{width:64px!important;height:64px!important;object-fit:contain!important}
html body.v146118-ui .v146118-guardian-hero small,.v146118-guardian-description>small,.v146118-guardian-removal>small,.v146118-guardian-expire>small{color:#94cdbc!important;font-size:9px!important;letter-spacing:.13em!important;font-weight:900!important}
html body.v146118-ui .v146118-guardian-info.brand .v146118-guardian-hero small{color:#e6a48c!important}
html body.v146118-ui .v146118-guardian-hero h2{margin:3px 0 7px!important;font:700 clamp(24px,6.4vw,34px)/1.04 Georgia,"Times New Roman",serif!important;color:#f3efdf!important}
html body.v146118-ui .v146118-guardian-state{display:flex!important;flex-wrap:wrap!important;gap:6px!important}.v146118-guardian-state :is(b,em){display:inline-flex!important;align-items:center!important;min-height:30px!important;padding:0 10px!important;border:1px solid rgba(211,170,76,.38)!important;border-radius:999px!important;background:rgba(4,20,22,.78)!important;font-size:11px!important;font-style:normal!important;color:#e9d29a!important}
html body.v146118-ui .v146118-guardian-info.brand .v146118-guardian-state em{border-color:rgba(194,78,72,.44)!important;color:#efaaa2!important;background:rgba(80,22,26,.32)!important}
html body.v146118-ui :is(.v146118-guardian-description,.v146118-guardian-removal,.v146118-guardian-expire){display:grid!important;gap:6px!important;padding:12px!important;border:1px solid rgba(100,155,143,.27)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(8,34,33,.78),rgba(3,18,21,.94))!important}
html body.v146118-ui .v146118-guardian-removal{border-color:rgba(211,171,79,.31)!important;background:linear-gradient(145deg,rgba(46,37,17,.35),rgba(4,20,22,.94))!important}
html body.v146118-ui :is(.v146118-guardian-description,.v146118-guardian-removal) p{margin:0!important;color:#d2d9d6!important;font-size:14px!important;line-height:1.5!important;text-align:left!important}
html body.v146118-ui .v146118-guardian-expire b{color:#e9d39d!important;font-size:13px!important}
/* Ordinary status-help modals use the same clean surface language. */
html body.v146118-ui .v98-status-modal .status-help-card{border:1px solid rgba(104,159,147,.30)!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(8,34,33,.88),rgba(3,17,20,.97))!important;box-shadow:inset 0 0 24px rgba(76,153,113,.05)!important}
html body.v146118-ui .v98-status-modal .status-help-card>p{border:1px solid rgba(108,157,146,.23)!important;border-radius:12px!important;background:rgba(3,17,20,.67)!important}

/* 3) Attribute selection: full visual rebuild while keeping server-authoritative values. */
html body.v146118-ui .v146118-attribute-modal{max-height:min(91dvh,850px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px 15px!important}
html body.v146118-ui .v146118-attribute-choice{display:grid!important;gap:12px!important;position:relative!important;z-index:1!important}
html body.v146118-ui .v146118-attribute-hero{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:13px!important;align-items:center!important;padding:14px!important;border:1px solid rgba(214,175,82,.46)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(43,53,34,.82),rgba(6,27,27,.96))!important;box-shadow:inset 0 0 24px rgba(180,219,69,.05)!important}
html body.v146118-ui .v146118-attribute-hero>span{display:grid!important;place-items:center!important;width:82px!important;height:82px!important;border:1px solid rgba(217,176,82,.42)!important;border-radius:17px!important;background:rgba(5,19,20,.72)!important}
html body.v146118-ui .v146118-attribute-hero img{width:66px!important;height:66px!important;object-fit:contain!important}
html body.v146118-ui .v146118-attribute-hero small{color:#a6d6a0!important;font-size:9px!important;font-weight:900!important;letter-spacing:.13em!important}
html body.v146118-ui .v146118-attribute-hero h2{margin:3px 0 5px!important;font:700 clamp(24px,6.1vw,34px)/1.05 Georgia,"Times New Roman",serif!important;color:#f4f0df!important}
html body.v146118-ui .v146118-attribute-hero p{margin:0!important;color:#aebbb7!important;font-size:12px!important;line-height:1.4!important}
html body.v146118-ui .v146118-attribute-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0!important}
html body.v146118-ui .v146118-attribute-card{box-sizing:border-box!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) 42px!important;gap:10px!important;align-items:center!important;min-height:126px!important;padding:11px!important;border:1px solid rgba(104,159,145,.32)!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(8,37,35,.88),rgba(4,19,23,.98))!important;color:#f3f0e4!important;box-shadow:inset 0 0 18px rgba(69,144,110,.035)!important;text-align:left!important;overflow:hidden!important}
html body.v146118-ui .v146118-attribute-card:active{transform:scale(.985)!important;border-color:rgba(166,236,61,.54)!important}
html body.v146118-ui .v146118-attribute-icon{width:54px!important;height:54px!important;min-width:54px!important;border:1px solid rgba(214,174,80,.34)!important;border-radius:14px!important;background:rgba(4,20,21,.72)!important}
html body.v146118-ui .v146118-attribute-icon :is(img,svg,.v83-ui-icon){width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;object-fit:contain!important}
html body.v146118-ui .v146118-attribute-copy{display:grid!important;gap:3px!important;min-width:0!important}.v146118-attribute-copy>small{font-size:8px!important;letter-spacing:.10em!important;color:#86bbae!important;font-weight:900!important}.v146118-attribute-copy>b{font-size:17px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v146118-attribute-copy>p{margin:0!important;color:#aab7b3!important;font-size:10px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.v146118-attribute-copy>p strong{color:#a8e956!important}.v146118-attribute-copy>i{font-style:normal!important;color:#e7d09a!important;font-size:11px!important;font-weight:800!important}
html body.v146118-ui .v146118-attribute-card>em{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:12px!important;border:1px solid rgba(216,172,77,.42)!important;background:linear-gradient(145deg,rgba(84,60,15,.70),rgba(34,25,10,.92))!important;color:#ffd277!important;font-size:16px!important;font-weight:900!important;font-style:normal!important}
html body.v146118-ui .v146118-attribute-note{margin:0!important;padding:10px 12px!important;border:1px solid rgba(101,153,141,.20)!important;border-radius:12px!important;background:rgba(3,18,21,.66)!important;color:#94a39f!important;font-size:11px!important;line-height:1.4!important}
html body.v146118-ui .v146118-attribute-choice.confirming .v146118-attribute-options,html body.v146118-ui .v146118-attribute-choice.confirming .v146118-attribute-note{display:none!important}
html body.v146118-ui .v146118-attribute-confirm{display:grid!important;gap:12px!important;margin:0!important;padding:14px!important;border:1px solid rgba(221,179,83,.58)!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(50,39,12,.76),rgba(6,28,28,.98))!important;box-shadow:inset 0 0 22px rgba(209,177,70,.05)!important}
html body.v146118-ui .v146118-attribute-confirm>header{display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;gap:11px!important;align-items:center!important}
html body.v146118-ui .v146118-attribute-confirm-icon{display:grid!important;place-items:center!important;width:62px!important;height:62px!important;border:1px solid rgba(218,177,80,.43)!important;border-radius:14px!important;background:rgba(4,20,21,.77)!important}.v146118-attribute-confirm-icon :is(img,svg,.v83-ui-icon){width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important}
html body.v146118-ui .v146118-attribute-confirm header small{color:#e8ca81!important;letter-spacing:.13em!important;font-size:9px!important;font-weight:900!important}.v146118-attribute-confirm header h3{margin:2px 0!important;font:700 27px/1 Georgia,"Times New Roman",serif!important}.v146118-attribute-confirm header p{margin:0!important;color:#9eaaa7!important;font-size:11px!important}
html body.v146118-ui .v146118-attribute-delta{display:grid!important;grid-template-columns:1fr 32px 1fr!important;gap:7px!important;align-items:center!important}.v146118-attribute-delta>span{display:grid!important;place-items:center!important;gap:2px!important;min-height:68px!important;border:1px solid rgba(105,160,146,.26)!important;border-radius:13px!important;background:rgba(3,20,22,.73)!important}.v146118-attribute-delta small{color:#8fa39d!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.08em!important}.v146118-attribute-delta b{font-size:24px!important;color:#f1e8d0!important}.v146118-attribute-delta>span:last-child b{color:#b9f056!important}.v146118-attribute-delta>i{text-align:center!important;font-style:normal!important;color:#e4bf6a!important;font-size:23px!important}
html body.v146118-ui .v146118-attribute-effect{display:grid!important;gap:5px!important;padding:11px!important;border:1px solid rgba(113,168,152,.25)!important;border-radius:13px!important;background:rgba(4,22,24,.78)!important}.v146118-attribute-effect small{color:#93c6b7!important;font-size:9px!important;font-weight:900!important;letter-spacing:.12em!important}.v146118-attribute-effect p{margin:0!important;color:#d4dbd7!important;font-size:13px!important;line-height:1.43!important}
html body.v146118-ui .v146118-attribute-confirm-actions{display:grid!important;grid-template-columns:.85fr 1.15fr!important;gap:8px!important}.v146118-attribute-confirm-actions button{height:48px!important;min-height:48px!important;border-radius:13px!important;font-weight:900!important}

/* 4) Monster description: a real nested scroll viewport. */
html body.v146118-ui .v146114-monster-intro{height:202px!important;min-height:202px!important;max-height:202px!important;grid-template-columns:108px minmax(0,1fr)!important;gap:10px!important;padding:10px!important;overflow:hidden!important}
html body.v146118-ui .v146114-monster-intro .v122-monster-portrait{width:108px!important;height:162px!important;min-height:162px!important;max-height:162px!important}
html body.v146118-ui .v146114-monster-intro .v122-monster-copy{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:7px!important;height:162px!important;min-height:162px!important;max-height:162px!important;overflow:hidden!important}
html body.v146118-ui .v146118-monster-description{display:block!important;box-sizing:border-box!important;width:100%!important;height:88px!important;min-height:0!important;max-height:88px!important;flex:none!important;margin:0!important;padding:8px 12px 8px 9px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;scrollbar-color:#d9912d rgba(3,18,21,.62)!important;border:1px solid rgba(103,155,145,.24)!important;border-radius:11px!important;background:rgba(3,17,20,.76)!important}
html body.v146118-ui .v146118-monster-description>p{display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#b8c4c0!important;font-size:12px!important;line-height:1.46!important;white-space:normal!important;overflow:visible!important}
html body.v146118-ui .v146118-monster-description::-webkit-scrollbar{display:block!important;width:6px!important}.v146118-monster-description::-webkit-scrollbar-track{background:rgba(3,18,21,.62)!important;border-radius:99px!important}.v146118-monster-description::-webkit-scrollbar-thumb{background:linear-gradient(#edaa3a,#b76820)!important;border-radius:99px!important}

/* 5) Equipped details: only "Снять" remains below; top X closes the modal. */
html body.v146118-ui .v97-item-detail-actions:has(>.v146118-detail-unequip:only-child){grid-template-columns:1fr!important}
html body.v146118-ui .v97-item-detail-actions>.v146118-detail-unequip:only-child{grid-column:1/-1!important;width:100%!important;max-width:none!important;height:44px!important;min-height:44px!important}
html body.v146118-ui .v146118-detail-unequip>.v83-ui-icon{position:static!important;margin:0 7px 0 0!important;width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important}

/* 6) Inventory paired action geometry: text action and compact discard have the same height. */
html body.v146118-ui .v119-inventory-list>.v124-item-card>.v124-item-actions{align-items:stretch!important;gap:6px!important}
html body.v146118-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action{box-sizing:border-box!important;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important}
html body.v146118-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop:not(.solo){width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:0!important;border:1px solid rgba(219,87,79,.66)!important;border-radius:10px!important;background:linear-gradient(180deg,rgba(117,27,31,.98),rgba(48,8,13,.99))!important;background-image:linear-gradient(180deg,rgba(117,27,31,.98),rgba(48,8,13,.99))!important;box-shadow:inset 0 0 0 1px rgba(255,189,144,.07),0 2px 7px rgba(0,0,0,.34)!important}
html body.v146118-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop:not(.solo)>.v83-ui-icon{width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important;max-height:25px!important;margin:auto!important}
html body.v146118-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button.v146111-card-action.drop:not(.solo)){grid-template-columns:minmax(0,1fr) 42px!important;gap:6px!important}

/* 7) Battle selection: gold attack frame ends BEFORE the effects row, never around the whole monster card. */
html body.v146118-ui.v111-battle-active .v101-monster-card.selected-target{box-shadow:inset 0 0 16px rgba(0,0,0,.18)!important}
html body.v146118-ui.v111-battle-active .v101-monster-card.selected-target:not(.rank-elite):not(.rank-boss){border-color:rgba(131,77,79,.46)!important}
html body.v146118-ui.v111-battle-active .v101-monster-card.selected-target.rank-elite{border-color:rgba(157,92,190,.50)!important}.v146118-ui.v111-battle-active .v101-monster-card.selected-target.rank-boss{border-color:rgba(209,145,67,.56)!important}
html body.v146118-ui.v111-battle-active .v106-monster-action-overlay{top:27px!important;right:7px!important;bottom:41px!important;left:7px!important;border:1.5px solid rgba(231,199,103,.82)!important;border-radius:12px!important;box-shadow:inset 0 0 0 1px rgba(231,199,103,.10),0 0 12px rgba(231,199,103,.07)!important;background:radial-gradient(circle at center,rgba(5,14,18,.10),rgba(5,14,18,.31))!important}

@media(max-width:520px){
  html body.v146118-ui .v146118-attribute-options{grid-template-columns:1fr!important}
  html body.v146118-ui .v146118-attribute-card{min-height:108px!important;grid-template-columns:50px minmax(0,1fr) 40px!important}
  html body.v146118-ui .v146118-attribute-icon{width:50px!important;height:50px!important;min-width:50px!important}
}
@media(max-width:390px){
  html body.v146118-ui :is(.v146118-rename-modal,.v146118-guardian-status-modal,.v146118-attribute-modal){padding:14px 12px!important}
  html body.v146118-ui .v146118-rename-hero{grid-template-columns:62px minmax(0,1fr)!important;padding:10px!important}.v146118-rename-art{width:62px!important;height:62px!important}.v146118-rename-art img{width:50px!important;height:50px!important}
  html body.v146118-ui .v146118-guardian-hero{grid-template-columns:66px minmax(0,1fr)!important;padding:10px!important}.v146118-guardian-hero>span{width:66px!important;height:66px!important}.v146118-guardian-hero img{width:54px!important;height:54px!important}
  html body.v146118-ui .v146118-attribute-hero{grid-template-columns:66px minmax(0,1fr)!important;padding:11px!important}.v146118-attribute-hero>span{width:66px!important;height:66px!important}.v146118-attribute-hero img{width:54px!important;height:54px!important}
  html body.v146118-ui .v146114-monster-intro{height:194px!important;min-height:194px!important;max-height:194px!important;grid-template-columns:94px minmax(0,1fr)!important;gap:8px!important;padding:8px!important}
  html body.v146118-ui .v146114-monster-intro .v122-monster-portrait{width:94px!important;height:154px!important;min-height:154px!important;max-height:154px!important}
  html body.v146118-ui .v146114-monster-intro .v122-monster-copy{height:154px!important;min-height:154px!important;max-height:154px!important}
  html body.v146118-ui .v146118-monster-description{height:82px!important;max-height:82px!important}
}

/* ===== css/v146119-responsive-polish.css ===== */
/* Aldos RPG v1.146.119 — compact status, travel, responsive text and paired inventory actions.
   Existing assets only. No gameplay/state changes. */
html body.v146119-ui{--v119-gold:#e7bf68;--v119-lime:#a9ee37;--v119-teal:#82d4be;--v119-ink:#031417}

/* Compact effect information: no more full-screen wall of text. */
html body.v146119-ui .v146119-status-modal{box-sizing:border-box!important;width:min(92vw,470px)!important;max-width:470px!important;max-height:min(84dvh,680px)!important;padding:12px!important;overflow:hidden!important;border-radius:20px!important;background:linear-gradient(155deg,rgba(5,29,30,.99),rgba(2,14,18,.995))!important}
html body.v146119-ui .v146119-status-help{box-sizing:border-box!important;display:grid!important;gap:9px!important;width:100%!important;max-height:calc(84dvh - 24px)!important;padding:10px!important;overflow:hidden!important}
html body.v146119-ui .v146119-status-head{display:grid!important;gap:5px!important;min-width:0!important;padding:0 2px!important}
html body.v146119-ui .v146119-status-head .v34-status-pill{max-width:100%!important;min-height:27px!important;padding:4px 9px!important;font-size:9px!important;line-height:1.1!important;white-space:normal!important;text-align:center!important}
html body.v146119-ui .v146119-status-head h2{margin:0!important;color:#f4f0df!important;font:700 clamp(23px,6.5vw,31px)/1.03 Georgia,"Times New Roman",serif!important;overflow-wrap:anywhere!important}
html body.v146119-ui .v146119-status-copy{box-sizing:border-box!important;max-height:126px!important;padding:10px 11px!important;overflow-y:auto!important;overflow-x:hidden!important;border:1px solid rgba(104,158,146,.25)!important;border-radius:12px!important;background:rgba(2,16,19,.73)!important;scrollbar-width:thin!important;scrollbar-color:#d88d2b rgba(3,18,20,.45)!important}
html body.v146119-ui .v146119-status-copy>p{margin:0!important;padding:0!important;border:0!important;background:none!important;color:#d5ddda!important;font-size:12.5px!important;line-height:1.43!important;text-align:left!important;overflow-wrap:anywhere!important}
html body.v146119-ui .v146119-status-details{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0!important;min-width:0!important}
html body.v146119-ui .v146119-status-details>div{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;min-height:48px!important;padding:7px 8px!important;border:1px solid rgba(94,148,137,.19)!important;border-radius:10px!important;background:rgba(3,18,21,.68)!important}
html body.v146119-ui .v146119-status-details dt{font-size:8px!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.07em!important;color:#879995!important}
html body.v146119-ui .v146119-status-details dd{margin:0!important;color:#e1e7e4!important;font-size:10px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
html body.v146119-ui .v146119-status-ok{justify-self:stretch!important;width:100%!important;min-height:42px!important;height:42px!important;margin:0!important}

/* Travel: destination is a framed information card; description owns its own scroll. */
html body.v146119-ui .v146119-travel-screen{gap:10px!important;padding-top:max(12px,env(safe-area-inset-top))!important}
html body.v146119-ui .v146119-travel-location-head{box-sizing:border-box!important;position:relative!important;grid-template-columns:108px minmax(0,1fr)!important;gap:12px!important;min-height:132px!important;padding:11px!important;overflow:hidden!important;border:1px solid rgba(225,183,88,.66)!important;border-radius:19px!important;background:linear-gradient(145deg,rgba(9,40,39,.94),rgba(2,17,21,.98))!important;box-shadow:inset 0 0 0 1px rgba(106,169,151,.08),inset 0 0 24px rgba(47,138,107,.08),0 8px 26px rgba(0,0,0,.30)!important}
html body.v146119-ui .v146119-travel-location-head::after{content:"";position:absolute;inset:5px;pointer-events:none;border:1px solid rgba(99,157,142,.16);border-radius:15px}
html body.v146119-ui .v146119-travel-location-head>span{position:relative!important;z-index:1!important;width:108px!important;min-width:108px!important;height:108px!important;border-radius:15px!important;overflow:hidden!important;background:radial-gradient(circle,rgba(44,104,86,.25),rgba(2,14,18,.84))!important}
html body.v146119-ui .v146119-travel-location-head>span :is(img,svg){width:92%!important;height:92%!important;object-fit:contain!important}
html body.v146119-ui .v146119-travel-location-copy{position:relative!important;z-index:1!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr)!important;gap:3px!important;min-width:0!important;min-height:108px!important}
html body.v146119-ui .v146119-travel-location-copy>small{color:#c8b16f!important;font-size:9px!important;letter-spacing:.12em!important;font-weight:900!important}
html body.v146119-ui .v146119-travel-location-copy>h2{min-width:0!important;margin:0!important;font:700 clamp(21px,5.8vw,28px)/1.02 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146119-ui .v146119-travel-description{box-sizing:border-box!important;min-height:0!important;max-height:58px!important;padding:4px 8px 4px 0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;scrollbar-width:thin!important;scrollbar-color:#d68b2c rgba(3,18,21,.35)!important}
html body.v146119-ui .v146119-travel-description p{display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#aebbb7!important;font-size:10.5px!important;line-height:1.35!important;-webkit-line-clamp:unset!important;overflow:visible!important}
html body.v146119-ui .v146119-travel-card{min-height:390px!important;padding:18px 20px 20px!important;gap:10px!important;border:1px solid rgba(221,180,84,.56)!important;border-radius:22px!important;background:rgba(3,19,23,.84)!important}
html body.v146119-ui .v146119-travel-card .v77-travel-route{margin-bottom:0!important}
html body.v146119-ui .v146119-travel-actions{order:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;margin:2px 0 1px!important;padding:0!important;align-items:stretch!important}
html body.v146119-ui .v146119-travel-actions:has(>.v14416-travel-cancel:only-child){grid-template-columns:1fr!important}
html body.v146119-ui .v146119-travel-actions :is(.v14644-travel-sign,.v14416-travel-cancel){box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important;border-radius:11px!important}
html body.v146119-ui .v146119-travel-actions .v14644-travel-sign{grid-template-columns:20px minmax(0,1fr) auto!important;padding:0 9px!important;background:url("../assets/v146103/ui/buttons/info.webp") center/100% 100% no-repeat!important}
html body.v146119-ui .v146119-travel-actions .v14644-travel-sign img{width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important}
html body.v146119-ui .v146119-travel-actions .v14644-travel-sign span{font-size:9px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146119-ui .v146119-travel-actions .v14416-travel-cancel{border:1px solid rgba(215,167,77,.45)!important;background:linear-gradient(145deg,rgba(36,43,45,.94),rgba(10,19,23,.98))!important;color:#ebe8df!important;font-size:10px!important;font-weight:850!important}
html body.v146119-ui .v146119-travel-card .v126-travel-compass{width:104px!important;height:104px!important;margin-top:2px!important}.v146119-ui .v146119-travel-card .v126-travel-compass img{width:66px!important;height:66px!important}
html body.v146119-ui .v146119-travel-card .v77-travel-timer b{font-size:27px!important}

/* Responsive attribute typography: names stay inside their cells instead of wrapping into the asset. */
html body.v146119-ui .v146118-attribute-hero{grid-template-columns:68px minmax(0,1fr)!important;padding:11px!important;gap:10px!important}.v146119-ui .v146118-attribute-hero>span{width:68px!important;height:68px!important}.v146119-ui .v146118-attribute-hero img{width:55px!important;height:55px!important}
html body.v146119-ui .v146118-attribute-hero h2{font-size:clamp(21px,5.5vw,29px)!important;line-height:1.03!important;overflow-wrap:anywhere!important}.v146119-ui .v146118-attribute-hero p{font-size:10.5px!important;line-height:1.34!important}
html body.v146119-ui .v146118-attribute-card{grid-template-columns:48px minmax(0,1fr) 38px!important;gap:8px!important;min-height:106px!important;padding:9px!important}.v146119-ui .v146118-attribute-icon{width:48px!important;height:48px!important;min-width:48px!important}.v146119-ui .v146118-attribute-icon :is(img,svg,.v83-ui-icon){width:37px!important;height:37px!important}
html body.v146119-ui .v146118-attribute-copy>b{display:block!important;max-width:100%!important;font-size:15px!important;line-height:1.05!important;white-space:nowrap!important;word-break:normal!important;overflow:visible!important;text-overflow:clip!important}.v146119-ui .v146118-attribute-copy>p{font-size:9.5px!important;line-height:1.25!important}
html body.v146119-ui .v146118-attribute-confirm>header{grid-template-columns:52px minmax(0,1fr)!important;gap:9px!important}.v146119-ui .v146118-attribute-confirm-icon{width:52px!important;height:52px!important}.v146119-ui .v146118-attribute-confirm-icon :is(img,svg,.v83-ui-icon){width:39px!important;height:39px!important}
html body.v146119-ui .v146118-attribute-confirm header h3{display:block!important;max-width:100%!important;font-size:22px!important;line-height:1!important;white-space:nowrap!important;word-break:normal!important;overflow:visible!important;text-overflow:clip!important}

/* Trade/player status: smaller headline, more breathing room from the art. */
html body.v146119-ui .v146118-guardian-hero{grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important;padding:10px!important;align-items:center!important}.v146119-ui .v146118-guardian-hero>span{width:64px!important;height:64px!important}.v146119-ui .v146118-guardian-hero img{width:52px!important;height:52px!important}
html body.v146119-ui .v146118-guardian-hero>div{min-width:0!important;padding-left:1px!important}.v146119-ui .v146118-guardian-hero h2{max-width:100%!important;margin:2px 0 6px!important;font-size:clamp(20px,5.2vw,27px)!important;line-height:1.02!important;overflow-wrap:anywhere!important}.v146119-ui :is(.v146118-guardian-description,.v146118-guardian-removal) p{font-size:12px!important;line-height:1.42!important}

/* VIP description opened from the Patron title icon in the profile. */
html body.v146119-ui .v146119-vip-status-trigger{cursor:pointer!important;outline:none!important;filter:drop-shadow(0 0 5px rgba(222,184,86,.18))!important}.v146119-vip-status-trigger:focus-visible{box-shadow:0 0 0 2px rgba(169,238,55,.65)!important;border-radius:6px!important}
html body.v146119-ui .v146119-vip-status-modal{box-sizing:border-box!important;width:min(92vw,470px)!important;max-width:470px!important;padding:14px!important;border:1px solid rgba(222,179,82,.66)!important;border-radius:20px!important;background:linear-gradient(150deg,rgba(20,42,35,.99),rgba(3,17,20,.995))!important;overflow:hidden!important}
html body.v146119-ui .v146119-vip-info{display:grid!important;gap:10px!important}.v146119-vip-info>header{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;padding:10px!important;border:1px solid rgba(222,179,82,.40)!important;border-radius:15px!important;background:linear-gradient(145deg,rgba(61,56,23,.48),rgba(4,22,23,.91))!important}.v146119-vip-info>header>span{display:grid!important;place-items:center!important;width:64px!important;height:64px!important;border:1px solid rgba(220,177,80,.36)!important;border-radius:14px!important;background:rgba(3,16,19,.72)!important}.v146119-vip-info>header img{width:50px!important;height:50px!important;object-fit:contain!important}.v146119-vip-info>header small,.v146119-vip-info>section>small{color:#9dceb9!important;font-size:9px!important;letter-spacing:.12em!important;font-weight:900!important}.v146119-vip-info>header h2{margin:2px 0!important;font:700 24px/1.02 Georgia,"Times New Roman",serif!important;color:#f3efdd!important}.v146119-vip-info>header b{color:#b6ed53!important;font-size:11px!important}.v146119-vip-info>section{padding:11px!important;border:1px solid rgba(100,157,143,.25)!important;border-radius:13px!important;background:rgba(3,19,21,.75)!important}.v146119-vip-info>section p{margin:6px 0!important;color:#d4dcda!important;font-size:12px!important;line-height:1.4!important}.v146119-vip-info ul{display:grid!important;gap:4px!important;margin:7px 0 0 16px!important;padding:0!important;color:#aebbb7!important;font-size:10.5px!important;line-height:1.3!important}.v146119-vip-info>footer{display:grid!important;gap:8px!important}.v146119-vip-info>footer small{color:#8fa09c!important;font-size:9.5px!important;line-height:1.3!important}.v146119-vip-info>footer button{width:100%!important;height:42px!important}

/* Rename modal: keep text away from the art and reduce headline pressure. */
html body.v146119-ui .v146118-rename-hero{grid-template-columns:62px minmax(0,1fr)!important;gap:11px!important;padding:10px!important}.v146119-ui .v146118-rename-art{width:62px!important;height:62px!important}.v146119-ui .v146118-rename-art img{width:49px!important;height:49px!important}.v146119-ui .v146118-rename-hero>div{min-width:0!important}.v146119-ui .v146118-rename-hero h2{margin:2px 0 3px!important;font-size:clamp(23px,5.9vw,29px)!important;line-height:1!important;overflow-wrap:anywhere!important}.v146119-ui .v146118-rename-hero p{font-size:10.5px!important;line-height:1.32!important}.v146119-ui .v146118-rename-once b{font-size:12px!important}.v146119-ui .v146118-rename-once span{font-size:10px!important}.v146119-ui .v146118-rename-rules{font-size:10px!important}

/* Inventory: paired Use/Activate + Discard are visually equal-width and equal-height. */
html body.v146119-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>button.v146111-card-action.drop:not(.solo)){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
html body.v146119-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:0 5px!important;gap:3px!important;font-size:9px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important}
html body.v146119-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop:not(.solo){width:100%!important;min-width:0!important;max-width:none!important;padding:0 5px!important;border:0!important;border-radius:0!important;background:url("../assets/v146103/ui/buttons/discard.webp") center/100% 100% no-repeat!important;box-shadow:none!important}
html body.v146119-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action.drop:not(.solo)>span{display:inline!important;min-width:0!important;max-width:100%!important;font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146119-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146111-card-action>.v83-ui-icon{position:static!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;max-height:17px!important;margin:0!important}

@media(max-width:390px){
  html body.v146119-ui .v146119-status-details{grid-template-columns:1fr 1fr!important}.v146119-ui .v146119-status-copy{max-height:112px!important}
  html body.v146119-ui .v146119-travel-location-head{grid-template-columns:92px minmax(0,1fr)!important;min-height:118px!important}.v146119-ui .v146119-travel-location-head>span{width:92px!important;min-width:92px!important;height:92px!important}.v146119-ui .v146119-travel-location-copy{min-height:92px!important}.v146119-ui .v146119-travel-description{max-height:48px!important}.v146119-ui .v146119-travel-actions{grid-template-columns:1fr!important}.v146119-ui .v146119-travel-card{min-height:410px!important;padding:16px 14px 18px!important}
  html body.v146119-ui .v146118-attribute-options{grid-template-columns:1fr!important}.v146119-ui .v146118-attribute-card{min-height:96px!important}
}

/* ===== css/v146120-interface-precision.css ===== */
/* Aldos RPG v1.146.120 — final geometry pass over v1.146.119.
   Existing assets only. No generated images; no gameplay/state changes. */

/* 1. Profile status row: VIP/title asset is the exact same square geometry as guardian/seal badges. */
html body.v146120-ui .v76-profile-name-line{align-items:center!important;column-gap:5px!important;row-gap:4px!important}
html body.v146120-ui .v76-profile-name-line>.v14644-player-title{
  display:inline-block!important;box-sizing:border-box!important;flex:0 0 30px!important;align-self:center!important;
  width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important;
  aspect-ratio:1/1!important;margin:0!important;padding:2px!important;border:1px solid rgba(209,170,81,.38)!important;border-radius:8px!important;
  background:rgba(5,20,22,.76)!important;object-fit:contain!important;object-position:center!important;vertical-align:middle!important;
}

/* 2. Travel composition: destination header -> route -> compass/path/timer/bar -> actions at bottom. */
html body.v146120-ui .v146120-travel-card{
  display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;align-content:stretch!important;
  min-height:390px!important;padding:16px 18px 18px!important;gap:11px!important;overflow:hidden!important;
}
html body.v146120-ui .v146120-travel-card .v77-travel-route{align-self:start!important;margin:0!important}
html body.v146120-ui .v146120-travel-progress{
  position:relative!important;z-index:1!important;display:grid!important;grid-template-rows:auto auto auto auto!important;
  justify-items:center!important;align-content:start!important;gap:6px!important;min-height:0!important;padding-top:2px!important;
}
html body.v146120-ui .v146120-travel-progress .v126-travel-compass{width:92px!important;height:92px!important;margin:0 auto!important}
html body.v146120-ui .v146120-travel-progress .v126-travel-compass img{width:64px!important;height:64px!important;object-fit:contain!important}
html body.v146120-ui .v146120-travel-progress>small{display:block!important;margin:0!important;color:#75e0b8!important;font-size:10px!important;font-weight:900!important;letter-spacing:.17em!important}
html body.v146120-ui .v146120-travel-progress .v77-travel-timer{margin:0!important;display:flex!important;align-items:baseline!important;justify-content:center!important;gap:7px!important}
html body.v146120-ui .v146120-travel-progress .v77-travel-timer b{font-size:27px!important;line-height:1!important}
html body.v146120-ui .v146120-travel-progress .v77-travel-timer span{font-size:10px!important}
html body.v146120-ui .v146120-travel-progress .bar.travel{width:min(92%,440px)!important;height:8px!important;margin:1px auto 0!important}
html body.v146120-ui .v146120-travel-actions{
  align-self:end!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  width:100%!important;margin:0!important;padding:0!important;
}
html body.v146120-ui .v146120-travel-actions:has(>.v14416-travel-cancel:only-child){grid-template-columns:1fr!important}
html body.v146120-ui .v146120-travel-actions :is(.v14416-travel-cancel,.v14644-travel-sign){height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important}
html body.v146120-ui .v146120-travel-actions .v14644-travel-sign{grid-template-columns:20px minmax(0,1fr) auto!important;padding-inline:9px!important}

/* 3. Expanded legendary/event skill change: no rectangular inner plate leaking beyond the rounded card. */
html body.v146120-ui details.v146116-special-change,
html body.v146120-ui details.v146116-special-change[open]{overflow:hidden!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(7,30,31,.985),rgba(3,15,20,.995))!important}
html body.v146120-ui details.v146116-special-change>summary{background:radial-gradient(circle at 12% 50%,rgba(38,101,75,.20),transparent 42%)!important}
html body.v146120-ui details.v146116-special-change[open]>summary{border-radius:13px 13px 0 0!important}
html body.v146120-ui details.v146116-special-change .v146116-special-description{
  margin:0 10px 10px!important;border-radius:11px!important;background:rgba(3,17,20,.78)!important;box-shadow:inset 0 0 18px rgba(0,0,0,.18)!important;
}

/* 4. Slot picker + exact equipped-item detail: action text is vertically centered; detail Unequip is compact and centered. */
html body.v146120-ui .v146116-picker-modal .v146109-picker-action{display:grid!important;place-items:center!important;padding:0 10px!important;line-height:1!important}
html body.v146120-ui .v146120-picker-action-content{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:auto!important;height:100%!important;line-height:1!important}
html body.v146120-ui .v146120-picker-action-content>span:last-child{display:block!important;line-height:1!important;margin:0!important;padding:0!important;transform:none!important}
html body.v146120-ui .v97-item-detail-actions:has(>.v146118-detail-unequip:only-child){display:grid!important;grid-template-columns:1fr!important;justify-items:center!important}
html body.v146120-ui .v97-item-detail-actions>.v146118-detail-unequip:only-child{
  grid-column:auto!important;width:min(66%,260px)!important;min-width:180px!important;max-width:260px!important;height:42px!important;min-height:42px!important;
  justify-self:center!important;margin-inline:auto!important;line-height:1!important;
}
html body.v146120-ui .v146118-detail-unequip>span{line-height:1!important}

/* 5. Attribute + player status hero safety: art and text get hard, non-overlapping columns. */
html body.v146120-ui .v146118-attribute-hero{
  grid-template-columns:62px minmax(0,1fr)!important;column-gap:16px!important;align-items:center!important;padding:11px 12px!important;
}
html body.v146120-ui .v146118-attribute-hero>span{width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;overflow:hidden!important}
html body.v146120-ui .v146118-attribute-hero>div{min-width:0!important;max-width:100%!important;overflow:hidden!important}
html body.v146120-ui .v146118-attribute-hero h2{max-width:100%!important;margin:2px 0 4px!important;font-size:clamp(19px,5vw,25px)!important;line-height:1.04!important;overflow-wrap:normal!important;word-break:normal!important}
html body.v146120-ui .v146118-attribute-hero p{max-width:100%!important;font-size:10px!important;line-height:1.32!important}
html body.v146120-ui .v146118-attribute-confirm>header{grid-template-columns:50px minmax(0,1fr)!important;column-gap:13px!important;overflow:hidden!important}
html body.v146120-ui .v146118-attribute-confirm>header>div{min-width:0!important;overflow:hidden!important}
html body.v146120-ui .v146118-attribute-confirm header h3{max-width:100%!important;font-size:21px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important}
html body.v146120-ui .v146118-guardian-hero{
  grid-template-columns:58px minmax(0,1fr)!important;column-gap:16px!important;align-items:center!important;padding:10px 12px!important;overflow:hidden!important;
}
html body.v146120-ui .v146118-guardian-hero>span{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important}
html body.v146120-ui .v146118-guardian-hero img{width:48px!important;height:48px!important}
html body.v146120-ui .v146118-guardian-hero>div{min-width:0!important;max-width:100%!important;overflow:hidden!important;padding-left:0!important}
html body.v146120-ui .v146118-guardian-hero h2{max-width:100%!important;margin:2px 0 5px!important;font-size:clamp(19px,5vw,25px)!important;line-height:1.04!important;overflow-wrap:break-word!important}
html body.v146120-ui :is(.v146118-guardian-description,.v146118-guardian-removal) p{font-size:11.5px!important;line-height:1.42!important}

/* 6. Pit: two-line titles stay inside their dedicated title lane instead of slipping under another layer. */
html body.v146120-ui .v146114-pit-loot-card .v146101-pit-loot-copy{position:relative!important;z-index:2!important;align-content:start!important;padding-top:5px!important;height:68px!important;min-height:68px!important;max-height:68px!important;overflow:hidden!important}
html body.v146120-ui .v146114-pit-loot-card .v146101-pit-loot-copy strong{
  position:relative!important;z-index:2!important;display:-webkit-box!important;width:100%!important;height:34px!important;min-height:34px!important;max-height:34px!important;
  margin:0!important;padding:0!important;font-size:12.5px!important;line-height:1.18!important;white-space:normal!important;overflow:hidden!important;
  -webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;text-overflow:clip!important;background:transparent!important;
}
html body.v146120-ui .v146114-pit-loot-card .v146101-pit-loot-copy small{position:relative!important;z-index:2!important;margin-top:3px!important;line-height:1!important}

/* 7. Battle monster art: frameless normally. Attack selection restores a precise frame around the art only. */
html body.v146120-ui.v111-battle-active .v101-monster-card .v101-unit-art{
  border-color:transparent!important;border-width:1px!important;background:transparent!important;box-shadow:none!important;border-radius:10px!important;
}
html body.v146120-ui.v111-battle-active .v101-monster-card.selected-target .v101-unit-art{
  border-color:rgba(230,196,102,.88)!important;background:rgba(3,17,20,.58)!important;
  box-shadow:inset 0 0 0 1px rgba(230,196,102,.10),0 0 10px rgba(230,196,102,.08)!important;
}
html body.v146120-ui.v111-battle-active .v101-monster-card.selected-target{border-color:rgba(131,77,79,.46)!important;box-shadow:none!important}
/* The attack overlay remains above the effects row; it never encloses effect icons. */
html body.v146120-ui.v111-battle-active .v106-monster-action-overlay{bottom:41px!important}

/* Full monster card: no status/rank pills; description remains an explicit nested scroll area. */
html body.v146120-ui .v146120-monster-title{display:block!important;min-height:0!important}
html body.v146120-ui .v146120-monster-title>div{display:none!important}
html body.v146120-ui .v146120-monster-description{height:96px!important;max-height:96px!important;padding-right:13px!important;overflow-y:scroll!important;scrollbar-gutter:stable!important}
html body.v146120-ui .v146120-monster-description::-webkit-scrollbar{display:block!important;width:6px!important}

/* 8. Inventory mini-card actions: text-only, matching frames, no tiny action asset. */
html body.v146120-ui .v119-inventory-list>.v124-item-card>.v124-item-actions:has(>.v146120-text-action.drop:not(.solo)){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
html body.v146120-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action{
  display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;padding:0 8px!important;gap:0!important;overflow:hidden!important;line-height:1!important;
}
html body.v146120-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action>.v83-ui-icon{display:none!important;width:0!important;height:0!important;min-width:0!important;max-width:0!important;margin:0!important}
html body.v146120-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action>span{
  display:block!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;font-size:10px!important;font-weight:900!important;line-height:1!important;
  text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;
}
html body.v146120-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action.drop:not(.solo){
  border:0!important;border-radius:0!important;background:url("../assets/v146103/ui/buttons/discard.webp") center/100% 100% no-repeat!important;box-shadow:none!important;
}
html body.v146120-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action.drop.solo{grid-column:1/-1!important;width:100%!important}

@media(max-width:390px){
  html body.v146120-ui .v146120-travel-card{min-height:402px!important;padding:14px!important;gap:9px!important}
  html body.v146120-ui .v146120-travel-progress .v126-travel-compass{width:84px!important;height:84px!important}
  html body.v146120-ui .v146120-travel-progress .v126-travel-compass img{width:58px!important;height:58px!important}
  html body.v146120-ui .v146120-travel-actions{grid-template-columns:1fr!important;gap:6px!important}
  html body.v146120-ui .v146118-attribute-hero{grid-template-columns:56px minmax(0,1fr)!important;column-gap:13px!important}
  html body.v146120-ui .v146118-attribute-hero>span{width:56px!important;height:56px!important;min-width:56px!important}
  html body.v146120-ui .v146118-attribute-hero h2{font-size:19px!important}
  html body.v146120-ui .v146118-guardian-hero{grid-template-columns:54px minmax(0,1fr)!important;column-gap:13px!important}
  html body.v146120-ui .v146118-guardian-hero>span{width:54px!important;height:54px!important;min-width:54px!important}
  html body.v146120-ui .v146118-guardian-hero h2{font-size:19px!important}
  html body.v146120-ui .v97-item-detail-actions>.v146118-detail-unequip:only-child{width:min(72%,230px)!important;min-width:160px!important}
}

/* ===== css/v146121-interface-precision.css ===== */
/* Aldos RPG v1.146.121 — precision hotfix over v1.146.120.
   Existing assets only. No generated images. No gameplay/state changes. */

/* 1) Rename modal: the art owns a fixed lane, while the title stays in one safe text lane. */
html body.v146121-ui .v146118-rename-hero{
  box-sizing:border-box!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
  overflow:hidden!important;
  padding:11px!important;
}
html body.v146121-ui .v146118-rename-art{
  width:56px!important;height:56px!important;min-width:56px!important;max-width:56px!important;
  min-height:56px!important;max-height:56px!important;margin:0!important;align-self:center!important;
}
html body.v146121-ui .v146118-rename-art img{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important}
html body.v146121-ui .v146118-rename-hero>div{min-width:0!important;max-width:100%!important;overflow:hidden!important}
html body.v146121-ui .v146118-rename-hero h2{
  display:block!important;max-width:100%!important;margin:2px 0 4px!important;
  font-size:clamp(18px,5.5vw,25px)!important;line-height:1.03!important;letter-spacing:-.025em!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;
}
html body.v146121-ui .v146118-rename-hero p{max-width:100%!important;margin:0!important;font-size:10px!important;line-height:1.3!important;overflow-wrap:normal!important}

/* 2) Profile equipment heading + weight: centered title, no slot-count clutter, weight never spills. */
html body.v146121-ui .v14416-equipment-head{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;min-height:48px!important;
}
html body.v146121-ui .v14416-equipment-head>div{
  position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
  display:block!important;width:max-content!important;max-width:58%!important;margin:0!important;padding:0!important;text-align:center!important;pointer-events:none!important;
}
html body.v146121-ui .v14416-equipment-head>div>h2{margin:0!important;text-align:center!important;white-space:nowrap!important;font-size:clamp(21px,6vw,31px)!important;line-height:1!important}
html body.v146121-ui .v14416-equipment-head>div>span{display:none!important}
html body.v146121-ui .v119-profile-stats .v39-mini-stat:last-child>b{
  display:block!important;min-width:0!important;max-width:100%!important;margin:0!important;
  font-size:clamp(8px,2.55vw,11.5px)!important;line-height:1.05!important;letter-spacing:-.025em!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;word-break:normal!important;
}

/* 3) Equipment slot picker: Unequip/Equip label stays vertically centered inside the ornate button. */
html body.v146121-ui .v146116-picker-modal .v146109-picker-action{
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;padding:0 8px!important;line-height:1!important;overflow:hidden!important;
}
html body.v146121-ui .v146116-picker-modal .v146109-picker-action::after{display:none!important;content:none!important}
html body.v146121-ui .v146116-picker-modal .v146120-picker-action-content{
  position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  align-self:center!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;gap:6px!important;line-height:1!important;transform:none!important;
}
html body.v146121-ui .v146116-picker-modal .v146120-picker-action-content>.v83-ui-icon{
  position:static!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;max-height:20px!important;margin:0!important;
}
html body.v146121-ui .v146116-picker-modal .v146120-picker-action-content>span:last-child{
  position:static!important;display:block!important;align-self:center!important;margin:0!important;padding:0!important;
  font-size:11px!important;line-height:1!important;white-space:nowrap!important;transform:none!important;
}

/* 4) Top bar avatar: no outer square plate — only circular portrait + its round frame. */
html body.v146121-ui .v121-top-avatar-button{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  padding:0!important;border:0!important;outline:0!important;border-radius:50%!important;
  background:transparent!important;background-image:none!important;box-shadow:none!important;filter:none!important;overflow:visible!important;
}
html body.v146121-ui .v121-top-avatar-button::before,
html body.v146121-ui .v121-top-avatar-button::after{display:none!important;content:none!important}
html body.v146121-ui .v121-top-avatar-button .v119-top-avatar{
  box-sizing:border-box!important;border-radius:50%!important;overflow:hidden!important;
  border:1.5px solid rgba(208,168,77,.72)!important;background:#071417!important;background-image:none!important;box-shadow:none!important;
}
html body.v146121-ui .v121-top-avatar-button .v119-top-avatar>*{
  border:0!important;border-radius:50%!important;background:transparent!important;background-image:none!important;box-shadow:none!important;outline:0!important;
}

/* 5) Inventory paired action labels: keep full Russian labels by shrinking text before clipping. */
html body.v146121-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action{
  padding-inline:3px!important;min-width:0!important;overflow:hidden!important;text-overflow:clip!important;
}
html body.v146121-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action>span{
  box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0 1px!important;font-size:clamp(6.5px,2.1vw,8.5px)!important;font-weight:900!important;
  line-height:1!important;letter-spacing:-.035em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;
}
html[data-ui-font-size="large"] body.v146121-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action>span,
html[data-ui-font-size="medium"] body.v146121-ui .v119-inventory-list>.v124-item-card>.v124-item-actions>button.v146120-text-action>span{
  font-size:clamp(6px,1.95vw,7.8px)!important;
}

/* 6) Battle target frame: one full-width attack frame from the card top to the effects divider. */
html body.v146121-ui.v111-battle-active .v101-monster-card{position:relative!important}
html body.v146121-ui.v111-battle-active .v101-monster-card.selected-target{
  border-color:rgba(131,77,79,.46)!important;box-shadow:none!important;
}
html body.v146121-ui.v111-battle-active .v101-monster-card.selected-target .v101-unit-art{
  border-color:transparent!important;background:transparent!important;box-shadow:none!important;
}
html body.v146121-ui.v111-battle-active .v101-monster-card.selected-target::after{
  content:""!important;display:block!important;position:absolute!important;z-index:6!important;
  top:0!important;left:0!important;right:0!important;bottom:39px!important;
  box-sizing:border-box!important;border:2px solid rgba(230,196,102,.88)!important;border-radius:13px 13px 10px 10px!important;
  background:transparent!important;box-shadow:inset 0 0 0 1px rgba(230,196,102,.12),0 0 12px rgba(230,196,102,.09)!important;
  pointer-events:none!important;
}
html body.v146121-ui.v111-battle-active .v106-monster-action-overlay{
  top:0!important;right:0!important;bottom:39px!important;left:0!important;z-index:7!important;
  border:0!important;border-radius:12px!important;box-shadow:none!important;background:radial-gradient(circle at center,rgba(5,14,18,.08),rgba(5,14,18,.20))!important;
}

@media(max-width:390px){
  html body.v146121-ui .v146118-rename-hero{grid-template-columns:50px minmax(0,1fr)!important;gap:8px!important;padding:9px!important}
  html body.v146121-ui .v146118-rename-art{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important}
  html body.v146121-ui .v146118-rename-art img{width:42px!important;height:42px!important}
  html body.v146121-ui .v146118-rename-hero h2{font-size:18px!important}
  html body.v146121-ui .v14416-equipment-head>div>h2{font-size:22px!important}
  html body.v146121-ui .v119-profile-stats .v39-mini-stat:last-child>b{font-size:8.5px!important}
  html body.v146121-ui .v146116-picker-modal .v146120-picker-action-content>span:last-child{font-size:10px!important}
}

/* ===== css/v146122-visual-alignment-hotfix.css ===== */
/* Aldos RPG v1.146.122 — visual alignment hotfix over v1.146.121.
   Existing assets only. No generated images. No gameplay/state changes. */

/* 1) Top bar portrait: the clickable wrapper must not draw a second square/rounded plate.
   Keep exactly one circular portrait frame and preserve the original header geometry. */
html body.v146122-ui.v146114-ui .v146114-topbar .v121-top-avatar-button,
html body.v146122-ui.v146114-ui .v146113-friends-topbar .v121-top-avatar-button,
html body.v146122-ui.v146113-ui .v146113-topbar .v121-top-avatar-button{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  max-width:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  border-radius:50%!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
  clip-path:none!important;
  overflow:visible!important;
}
html body.v146122-ui .v146114-topbar .v121-top-avatar-button::before,
html body.v146122-ui .v146114-topbar .v121-top-avatar-button::after,
html body.v146122-ui .v146113-topbar .v121-top-avatar-button::before,
html body.v146122-ui .v146113-topbar .v121-top-avatar-button::after,
html body.v146122-ui .v146113-friends-topbar .v121-top-avatar-button::before,
html body.v146122-ui .v146113-friends-topbar .v121-top-avatar-button::after{
  content:none!important;
  display:none!important;
}
html body.v146122-ui .v146114-topbar .v121-top-avatar-button>.v119-top-avatar,
html body.v146122-ui .v146113-topbar .v121-top-avatar-button>.v119-top-avatar,
html body.v146122-ui .v146113-friends-topbar .v121-top-avatar-button>.v119-top-avatar{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  max-width:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:1.5px solid rgba(219,181,86,.82)!important;
  border-radius:50%!important;
  background:#071417!important;
  background-image:none!important;
  box-shadow:inset 0 0 0 1px rgba(255,228,157,.06)!important;
  outline:0!important;
  clip-path:circle(50% at 50% 50%)!important;
  overflow:hidden!important;
}
html body.v146122-ui .v121-top-avatar-button>.v119-top-avatar :is(img,.class-inline-image,.class-asset-image){
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  outline:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
  object-fit:cover!important;
  object-position:center 16%!important;
  clip-path:circle(50% at 50% 50%)!important;
}

/* 2) Equipment slot picker: lock action content to the real visual center of the ornate button.
   Earlier layers moved the text baseline down even though the button itself was centered. */
html body.v146122-ui .v146116-picker-modal .v124-item-card.layout-picker>.v124-item-actions{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  place-items:stretch!important;
  min-height:48px!important;
  height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html body.v146122-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action{
  position:relative!important;
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  line-height:1!important;
  overflow:hidden!important;
  text-align:center!important;
}
html body.v146122-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action>.v146120-picker-action-content{
  position:absolute!important;
  inset:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0 10px!important;
  gap:6px!important;
  line-height:1!important;
  transform:none!important;
  overflow:hidden!important;
  z-index:3!important;
}
html body.v146122-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action>.v146120-picker-action-content>.v83-ui-icon{
  position:static!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  object-fit:contain!important;
}
html body.v146122-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action>.v146120-picker-action-content>span:last-child{
  position:static!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  transform:none!important;
}

@media(max-width:390px){
  html body.v146122-ui.v146114-ui .v146114-topbar .v121-top-avatar-button,
  html body.v146122-ui.v146114-ui .v146113-friends-topbar .v121-top-avatar-button,
  html body.v146122-ui .v146114-topbar .v121-top-avatar-button>.v119-top-avatar,
  html body.v146122-ui .v146113-friends-topbar .v121-top-avatar-button>.v119-top-avatar{
    width:41px!important;height:41px!important;min-width:41px!important;min-height:41px!important;max-width:41px!important;max-height:41px!important;
  }
  html body.v146122-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action>.v146120-picker-action-content>span:last-child{font-size:10.5px!important}
}

/* ===== css/v146123-chat-dungeon-redesign.css ===== */
/* Aldos RPG v1.146.123 — compact social chat + private expedition channel.
   Existing art/cosmetics only. No generated images. */
html body.v146123-ui .v78-location-chat.v1469-chat-drawer,
html body.v146123-ui .v79-chat-drawer.v1469-chat-drawer{
  width:min(95vw,420px)!important;max-width:min(95vw,420px)!important;min-width:0!important;
  height:100dvh!important;max-height:100dvh!important;
  padding:calc(5px + env(safe-area-inset-top)) 7px calc(5px + env(safe-area-inset-bottom))!important;
  display:grid!important;grid-template-rows:52px 34px minmax(0,1fr) 46px!important;gap:4px!important;
  overflow:hidden!important;box-sizing:border-box!important;
  background:
    radial-gradient(circle at 18% 4%,rgba(36,125,106,.16),transparent 34%),
    linear-gradient(180deg,rgba(4,25,26,.985),rgba(3,14,18,.992))!important;
  border:1px solid rgba(177,147,72,.62)!important;border-radius:0 18px 18px 0!important;
  box-shadow:18px 0 42px rgba(0,0,0,.46),inset -1px 0 rgba(116,228,196,.08)!important;
}
html body.v146123-ui .v146123-chat-drawer.dungeon-channel{
  background:radial-gradient(circle at 16% 4%,rgba(126,196,43,.17),transparent 36%),linear-gradient(180deg,rgba(7,29,21,.992),rgba(3,16,14,.995))!important;
  border-color:rgba(154,201,74,.62)!important;
}
html body.v146123-ui .v1469-chat-drawer>.v1469-chat-top{
  width:100%!important;height:52px!important;min-height:52px!important;margin:0!important;padding:5px 7px 5px 9px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 34px!important;gap:6px!important;align-items:center!important;
  overflow:hidden!important;box-sizing:border-box!important;border:1px solid rgba(82,148,134,.22)!important;border-radius:12px!important;
  background:linear-gradient(135deg,rgba(16,54,50,.72),rgba(5,25,29,.76))!important;
}
html body.v146123-ui .dungeon-channel>.v1469-chat-top{border-color:rgba(145,196,65,.28)!important;background:linear-gradient(135deg,rgba(42,73,30,.72),rgba(5,29,24,.78))!important}
html body.v146123-ui .v1469-chat-drawer .v1469-chat-heading{gap:1px!important;align-content:center!important}
html body.v146123-ui .v1469-chat-drawer .v1469-chat-heading small{font-size:7.5px!important;line-height:1!important;letter-spacing:.12em!important;color:#79c6b2!important}
html body.v146123-ui .dungeon-channel .v1469-chat-heading small{color:#b9e36e!important}
html body.v146123-ui .v1469-chat-drawer .v1469-chat-heading b{font-size:16px!important;line-height:1!important;color:#f5f0df!important}
html body.v146123-ui .v1469-chat-drawer .v1469-chat-heading em{font-size:7.5px!important;line-height:1.05!important;color:#8fa29d!important}
html body.v146123-ui .v1469-chat-drawer .v1469-chat-close{
  width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:6px!important;border:1px solid rgba(211,176,89,.52)!important;border-radius:10px!important;
  background:linear-gradient(145deg,rgba(23,63,59,.96),rgba(8,29,31,.96))!important;box-shadow:inset 0 0 0 1px rgba(242,209,118,.08)!important
}
html body.v146123-ui .v1469-chat-drawer .v1469-chat-close :where(img,svg,.v83-ui-icon){width:19px!important;height:19px!important;min-width:19px!important}
html body.v146123-ui .v1469-chat-drawer>.v146123-chat-tabs{
  width:100%!important;height:34px!important;min-height:34px!important;margin:0!important;padding:2px!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;overflow:hidden!important;box-sizing:border-box!important;
  border:1px solid rgba(75,130,120,.16)!important;border-radius:10px!important;background:rgba(2,15,18,.55)!important;
}
html body.v146123-ui .v1469-chat-drawer>.v146123-chat-tabs.single{grid-template-columns:minmax(0,1fr)!important}
html body.v146123-ui .v1469-chat-drawer>.v146123-chat-tabs>button{
  width:100%!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:0 8px!important;
  display:grid!important;place-items:center!important;border:1px solid transparent!important;border-radius:8px!important;
  background:transparent!important;color:#829690!important;font:700 10px/1 system-ui,sans-serif!important;white-space:nowrap!important
}
html body.v146123-ui .v1469-chat-drawer>.v146123-chat-tabs>button.active{
  color:#d9fff4!important;border-color:rgba(94,221,189,.34)!important;background:linear-gradient(180deg,rgba(31,116,99,.44),rgba(13,68,63,.38))!important;
  box-shadow:inset 0 -2px rgba(93,224,187,.45)!important
}
html body.v146123-ui .v1469-chat-drawer>.v146123-chat-tabs>button.dungeon.active{
  color:#edffd0!important;border-color:rgba(158,221,70,.42)!important;background:linear-gradient(180deg,rgba(91,136,37,.46),rgba(37,76,29,.4))!important;box-shadow:inset 0 -2px rgba(166,231,75,.54)!important
}
html body.v146123-ui .v1469-chat-drawer>.v1469-chat-scroll{
  width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;margin:0!important;padding:1px 0 4px!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;box-sizing:border-box!important;
  scroll-padding-block:4px!important
}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message{
  --v146123-swipe-x:0px;position:relative!important;isolation:isolate!important;
  width:100%!important;min-width:0!important;min-height:40px!important;height:auto!important;margin:0 0 3px!important;padding:4px 6px!important;
  display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;
  overflow:hidden!important;box-sizing:border-box!important;text-align:left!important;touch-action:pan-y!important;-webkit-user-select:none!important;user-select:none!important;
  border:1px solid rgba(74,126,119,.26)!important;border-radius:10px!important;
  background:linear-gradient(100deg,rgba(16,44,43,.83),rgba(7,25,29,.88))!important;
  box-shadow:inset 2px 0 rgba(84,190,162,.24)!important;transition:border-color .14s ease,background .14s ease!important
}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message.dungeon-channel{border-color:rgba(123,169,67,.3)!important;background:linear-gradient(100deg,rgba(31,57,31,.84),rgba(6,29,25,.9))!important;box-shadow:inset 2px 0 rgba(163,220,75,.34)!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message.mentioned{border-color:rgba(219,181,83,.55)!important;box-shadow:inset 3px 0 rgba(236,193,80,.78)!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message.reply-picked{border-color:rgba(106,237,199,.85)!important;background:linear-gradient(100deg,rgba(27,84,72,.92),rgba(8,34,36,.92))!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content,
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v14649-chat-cosmetic-bg{transform:translateX(var(--v146123-swipe-x))!important;transition:transform .08s linear!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
  position:relative!important;z-index:2!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;
  margin:0!important;padding:1px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border:1px solid rgba(199,166,83,.42)!important;border-radius:8px!important;background:rgba(4,18,21,.7)!important
}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar :where(img,svg,.v131-chat-face,.class-asset-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  position:relative!important;z-index:2!important;min-width:0!important;width:100%!important;min-height:32px!important;margin:0!important;padding:0 30px 0 0!important;
  display:grid!important;grid-template-rows:auto auto!important;gap:1px!important;align-content:start!important;box-sizing:border-box!important
}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-message-head{position:static!important;display:block!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-meta{display:flex!important;align-items:baseline!important;gap:4px!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v14635-chat-name-line{display:inline-flex!important;align-items:center!important;gap:2px!important;min-width:0!important;max-width:66%!important;overflow:hidden!important;white-space:nowrap!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v131-chat-name{min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:800 10.5px/1.05 system-ui,sans-serif!important;color:#f0eee6!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v131-chat-submeta{display:inline-flex!important;align-items:center!important;gap:3px!important;min-width:0!important;width:auto!important;margin:0!important;font:600 6.7px/1 system-ui,sans-serif!important;color:#83a49b!important;white-space:nowrap!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message.dungeon-channel .v131-chat-submeta{color:#a5c97a!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v131-chat-submeta i{width:2px!important;height:2px!important;border-radius:50%!important;background:currentColor!important;opacity:.55!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{
  position:absolute!important;z-index:4!important;right:5px!important;top:4px!important;bottom:auto!important;left:auto!important;width:auto!important;max-width:46px!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:2px!important;pointer-events:none!important
}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail time{position:static!important;margin:0!important;padding:0!important;font:500 6.5px/1 system-ui,sans-serif!important;color:#78908b!important;white-space:nowrap!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail button{pointer-events:auto!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;margin:0!important;padding:3px!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  min-width:0!important;width:100%!important;margin:0!important;padding:0!important;font:500 9px/1.15 system-ui,sans-serif!important;color:#c7d2ce!important;text-align:left!important;
  white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important
}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v14635-guardian-badges{gap:1px!important;transform:scale(.76)!important;transform-origin:left center!important;max-width:30px!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v14635-guardian-badge{width:15px!important;min-width:15px!important;height:15px!important;min-height:15px!important;padding:1px!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v14649-chat-cosmetic-bg{position:absolute!important;z-index:0!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;opacity:.52!important;filter:brightness(.58) saturate(.82)!important;pointer-events:none!important;border:0!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::after{content:""!important;position:absolute!important;z-index:1!important;inset:0!important;background:linear-gradient(90deg,rgba(3,14,17,.38),rgba(3,14,17,.72))!important;pointer-events:none!important}
html body.v146123-ui .v1469-chat-drawer .v146123-reply-hint{position:absolute!important;z-index:6!important;right:8px!important;top:50%!important;translate:0 -50%!important;width:26px!important;height:26px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:rgba(30,119,101,.9)!important;border:1px solid rgba(108,234,199,.48)!important;color:#e8fff8!important;font:900 16px/1 system-ui,sans-serif!important;opacity:0!important;pointer-events:none!important;transition:opacity .08s linear!important}
html body.v146123-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe .v146123-reply-hint{opacity:1!important}
html body.v146123-ui .v1469-chat-drawer>.v1469-chat-bottom{
  width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:2px!important;overflow:hidden!important;box-sizing:border-box!important;
  border:1px solid rgba(79,133,123,.2)!important;border-radius:11px!important;background:rgba(2,14,17,.76)!important
}
html body.v146123-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form{width:100%!important;height:40px!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;gap:4px!important;box-sizing:border-box!important}
html body.v146123-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form input{width:100%!important;min-width:0!important;height:40px!important;margin:0!important;padding:0 10px!important;border:1px solid rgba(82,141,131,.25)!important;border-radius:9px!important;background:rgba(6,24,27,.9)!important;color:#e8f1ee!important;font:500 10px/1 system-ui,sans-serif!important;box-sizing:border-box!important}
html body.v146123-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form.dungeon input{border-color:rgba(144,192,73,.28)!important;background:rgba(13,33,24,.92)!important}
html body.v146123-ui .v1469-chat-drawer>.v1469-chat-bottom .v125-chat-send{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:9px!important;border-radius:9px!important;border:1px solid rgba(83,202,171,.38)!important;background:linear-gradient(145deg,rgba(31,124,104,.92),rgba(11,67,63,.96))!important;box-sizing:border-box!important}
html body.v146123-ui .dungeon-channel>.v1469-chat-bottom .v125-chat-send{border-color:rgba(155,218,71,.4)!important;background:linear-gradient(145deg,rgba(93,142,38,.94),rgba(38,78,31,.96))!important}
html body.v146123-ui .v1469-chat-drawer .v78-chat-empty{display:grid!important;place-items:center!important;min-height:90px!important;margin:4px!important;padding:14px!important;border:1px dashed rgba(100,157,144,.25)!important;border-radius:12px!important;color:#839b95!important;font:600 10px/1.35 system-ui,sans-serif!important;text-align:center!important}

/* Slot-picker correction: `Снять` is intentionally text-only and perfectly centered. */
html body.v146123-ui .v146116-picker-modal .v146109-picker-action.unequip{
  display:grid!important;place-items:center!important;padding:0!important;text-align:center!important
}
html body.v146123-ui .v146116-picker-modal .v146109-picker-action.unequip>.v146123-picker-text-only{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;gap:0!important;line-height:1!important;transform:none!important
}
html body.v146123-ui .v146116-picker-modal .v146109-picker-action.unequip>.v146123-picker-text-only :is(img,svg,.v83-ui-icon){display:none!important;width:0!important;height:0!important;min-width:0!important;margin:0!important;padding:0!important}
html body.v146123-ui .v146116-picker-modal .v146109-picker-action.unequip>.v146123-picker-text-only>span{
  display:block!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;text-align:center!important;white-space:nowrap!important;font-size:clamp(10px,3.4vw,13px)!important;line-height:1!important;transform:none!important
}

@media(max-width:380px){
  html body.v146123-ui .v78-location-chat.v1469-chat-drawer,html body.v146123-ui .v79-chat-drawer.v1469-chat-drawer{width:96vw!important;max-width:96vw!important;padding-left:5px!important;padding-right:5px!important}
  html body.v146123-ui .v1469-chat-drawer .v146123-chat-message{grid-template-columns:30px minmax(0,1fr)!important;gap:5px!important;min-height:39px!important;padding:4px 5px!important}
  html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important}
  html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v131-chat-name{font-size:10px!important}
  html body.v146123-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{font-size:8.7px!important}
}
@media(max-height:700px){
  html body.v146123-ui .v78-location-chat.v1469-chat-drawer,html body.v146123-ui .v79-chat-drawer.v1469-chat-drawer{grid-template-rows:48px 32px minmax(0,1fr) 44px!important;gap:3px!important}
  html body.v146123-ui .v1469-chat-drawer>.v1469-chat-top{height:48px!important;min-height:48px!important}
  html body.v146123-ui .v1469-chat-drawer>.v146123-chat-tabs{height:32px!important;min-height:32px!important}
  html body.v146123-ui .v1469-chat-drawer>.v146123-chat-tabs>button{height:26px!important;min-height:26px!important;max-height:26px!important}
  html body.v146123-ui .v1469-chat-drawer .v146123-chat-message{min-height:37px!important;margin-bottom:2px!important;padding-block:3px!important}
  html body.v146123-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{width:29px!important;min-width:29px!important;height:29px!important;min-height:29px!important}
  html body.v146123-ui .v1469-chat-drawer>.v1469-chat-bottom{height:44px!important;min-height:44px!important;max-height:44px!important}
}

/* ===== css/v146124-chat-alignment-polish.css ===== */
/* Aldos RPG v1.146.124 — chat density/alignment + slot-picker button alignment.
   No new/generated image assets. This layer only corrects geometry and typography. */

/* --------------------------------------------------------------------------
   EQUIPMENT SLOT PICKER
   Both ornate actions are text-only. No icon is allowed to reserve space.
   The label is geometrically centered, not baseline-shifted by legacy layers.
   -------------------------------------------------------------------------- */
html body.v146124-ui .v146116-picker-modal .v124-item-card.layout-picker>.v124-item-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  place-items:stretch!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html body.v146124-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action:is(.equip,.unequip){
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  text-align:center!important;
  overflow:hidden!important;
}
html body.v146124-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action:is(.equip,.unequip)>.v146124-picker-text-only{
  position:absolute!important;
  inset:0!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0 8px!important;
  gap:0!important;
  line-height:1!important;
  transform:none!important;
  box-sizing:border-box!important;
  z-index:4!important;
}
html body.v146124-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action:is(.equip,.unequip)>.v146124-picker-text-only :is(img,svg,.v83-ui-icon){
  display:none!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
html body.v146124-ui .v146116-picker-modal .v124-item-card.layout-picker .v146109-picker-action:is(.equip,.unequip)>.v146124-picker-text-only>span{
  position:static!important;
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  font-size:clamp(10.5px,3.25vw,12.5px)!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:0!important;
}

/* --------------------------------------------------------------------------
   CHAT
   Target: a normal phone viewport shows at least 12 ordinary rows while the
   avatar is slightly larger than v1.146.123. Class + level stay on the same
   line immediately to the right of the character name.
   -------------------------------------------------------------------------- */
html body.v146124-ui .v78-location-chat.v1469-chat-drawer,
html body.v146124-ui .v79-chat-drawer.v1469-chat-drawer{
  width:min(94vw,414px)!important;
  max-width:min(94vw,414px)!important;
  grid-template-rows:46px 30px minmax(0,1fr) 43px!important;
  gap:3px!important;
  padding:calc(4px + env(safe-area-inset-top)) 6px calc(4px + env(safe-area-inset-bottom))!important;
}
html body.v146124-ui .v1469-chat-drawer>.v1469-chat-top{
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  padding:4px 6px 4px 8px!important;
  grid-template-columns:minmax(0,1fr) 32px!important;
}
html body.v146124-ui .v1469-chat-drawer .v1469-chat-heading small{font-size:7px!important}
html body.v146124-ui .v1469-chat-drawer .v1469-chat-heading b{font-size:15px!important}
html body.v146124-ui .v1469-chat-drawer .v1469-chat-heading em{font-size:7px!important}
html body.v146124-ui .v1469-chat-drawer .v1469-chat-close{
  width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:6px!important;
}
html body.v146124-ui .v1469-chat-drawer>.v146123-chat-tabs{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:2px!important;
}
html body.v146124-ui .v1469-chat-drawer>.v146123-chat-tabs>button{
  height:24px!important;
  min-height:24px!important;
  max-height:24px!important;
  font-size:9.5px!important;
}
html body.v146124-ui .v1469-chat-drawer>.v1469-chat-scroll{
  padding:1px 0 2px!important;
  scrollbar-gutter:stable!important;
}

html body.v146124-ui .v1469-chat-drawer .v146123-chat-message{
  --v146123-swipe-x:0px;
  position:relative!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  margin:0 0 3px!important;
  padding:4px 5px!important;
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:6px!important;
  align-items:center!important;
  overflow:hidden!important;
  border-radius:10px!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  padding:1px!important;
  align-self:center!important;
  border-radius:9px!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar :where(img,svg,.v131-chat-face,.class-asset-image){
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  min-width:0!important;
  width:100%!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  padding:0 42px 0 0!important;
  display:grid!important;
  grid-template-rows:13px minmax(0,1fr)!important;
  gap:1px!important;
  align-content:center!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-message-head{
  width:100%!important;
  height:13px!important;
  min-height:13px!important;
  max-height:13px!important;
  overflow:hidden!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-meta{
  display:block!important;
  width:100%!important;
  height:13px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v14635-chat-name-line{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  width:100%!important;
  max-width:100%!important;
  height:13px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v131-chat-name{
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:56%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font:800 10.5px/13px system-ui,sans-serif!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v146124-role-level{
  position:static!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:42%!important;
  height:13px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#89a69e!important;
  font:650 7.2px/13px system-ui,sans-serif!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message.dungeon-channel .v146124-role-level{color:#add07e!important}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v146124-role-level>span{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  min-width:0!important;
  width:100%!important;
  max-height:22px!important;
  margin:0!important;
  padding:0!important;
  color:#d0d9d6!important;
  font:500 9.3px/10.5px system-ui,sans-serif!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{
  position:absolute!important;
  z-index:5!important;
  right:5px!important;
  top:auto!important;
  bottom:4px!important;
  width:auto!important;
  max-width:40px!important;
  min-height:0!important;
  height:auto!important;
  gap:2px!important;
  pointer-events:none!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail time{
  font:500 6.2px/1 system-ui,sans-serif!important;
  color:#7d918c!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail button{
  pointer-events:auto!important;
  width:17px!important;min-width:17px!important;max-width:17px!important;
  height:17px!important;min-height:17px!important;max-height:17px!important;
  padding:3px!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v14635-guardian-badges{
  flex:0 0 auto!important;
  gap:1px!important;
  transform:scale(.72)!important;
  transform-origin:left center!important;
  max-width:27px!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v14635-guardian-badge{
  width:14px!important;min-width:14px!important;height:14px!important;min-height:14px!important;padding:1px!important;
}
html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v14649-chat-cosmetic-bg{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  opacity:.46!important;
  filter:brightness(.55) saturate(.82)!important;
}
html body.v146124-ui .v1469-chat-drawer>.v1469-chat-bottom{
  height:43px!important;
  min-height:43px!important;
  max-height:43px!important;
  padding:2px!important;
}
html body.v146124-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form{
  height:37px!important;
  grid-template-columns:minmax(0,1fr) 37px!important;
  gap:4px!important;
}
html body.v146124-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form input{
  height:37px!important;
  padding-inline:9px!important;
  font-size:9.5px!important;
}
html body.v146124-ui .v1469-chat-drawer>.v1469-chat-bottom .v125-chat-send{
  width:37px!important;min-width:37px!important;max-width:37px!important;
  height:37px!important;min-height:37px!important;max-height:37px!important;
  padding:8px!important;
}

@media(max-width:380px){
  html body.v146124-ui .v78-location-chat.v1469-chat-drawer,
  html body.v146124-ui .v79-chat-drawer.v1469-chat-drawer{width:96vw!important;max-width:96vw!important;padding-left:5px!important;padding-right:5px!important}
  html body.v146124-ui .v1469-chat-drawer .v146123-chat-message{grid-template-columns:35px minmax(0,1fr)!important;gap:5px!important}
  html body.v146124-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{width:35px!important;min-width:35px!important;max-width:35px!important;height:35px!important;min-height:35px!important;max-height:35px!important}
  html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v131-chat-name{font-size:10px!important;max-width:54%!important}
  html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v146124-role-level{font-size:6.9px!important;max-width:44%!important}
  html body.v146124-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{font-size:9px!important}
}

/* ===== css/v146125-chat-face-status-layout.css ===== */
/* Aldos RPG v1.146.125 — chat faces/status layout + attribute/picker geometry */

/* Attribute confirmation: reserve exactly the same column width as the icon. */
html body.v146125-ui .v146118-attribute-confirm>header{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  column-gap:10px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
html body.v146125-ui .v146118-attribute-confirm-icon{
  width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;
  margin:0!important;padding:5px!important;box-sizing:border-box!important;overflow:hidden!important;
}
html body.v146125-ui .v146118-attribute-confirm-icon :is(img,svg,.v83-ui-icon){width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;object-fit:contain!important}
html body.v146125-ui .v146118-attribute-confirm>header>div{min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
html body.v146125-ui .v146118-attribute-confirm>header h3{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  margin:2px 0 3px!important;padding:0!important;white-space:nowrap!important;overflow:hidden!important;
  text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;
  font-size:clamp(18px,5vw,24px)!important;line-height:1.02!important;
}
html body.v146125-ui .v146118-attribute-confirm>header p{margin:0!important;font-size:10px!important;line-height:1.2!important}

/* Slot picker: raw text is the button content, so legacy nested-span offsets cannot move it. */
html body.v146125-ui .v146116-picker-modal .v124-item-card.layout-picker>.v124-item-actions{
  height:48px!important;min-height:48px!important;max-height:48px!important;padding:0!important;overflow:hidden!important;
}
html body.v146125-ui .v146116-picker-modal .v124-item-card.layout-picker .v146125-picker-action{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;
  margin:0!important;padding:0 10px!important;box-sizing:border-box!important;overflow:hidden!important;
  text-align:center!important;text-indent:0!important;white-space:nowrap!important;
  font:900 clamp(11px,3.4vw,13px)/1 system-ui,sans-serif!important;letter-spacing:0!important;
  transform:none!important;vertical-align:middle!important;
}
html body.v146125-ui .v146116-picker-modal .v124-item-card.layout-picker .v146125-picker-action :is(img,svg,.v83-ui-icon){display:none!important}

/* Player card opened from chat: nickname is isolated from status assets. */
html body.v146125-ui .v125-player-card .v146125-player-identity{align-self:center!important;min-width:0!important;display:grid!important;gap:5px!important;overflow:hidden!important}
html body.v146125-ui .v146125-player-name-line{display:flex!important;align-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;overflow:hidden!important}
html body.v146125-ui .v146125-player-name-line h2{
  flex:1 1 auto!important;min-width:0!important;max-width:100%!important;margin:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  font:700 clamp(20px,6.6vw,29px)/1 Georgia,"Times New Roman",serif!important;
}
html body.v146125-ui .v146125-player-name-line>.v146125-friend-tag{flex:0 0 auto!important;margin:0!important;padding:3px 6px!important;font-size:7px!important}
html body.v146125-ui .v146125-player-identity>p{margin:0!important;font-size:9px!important;line-height:1.2!important;color:rgba(228,237,233,.66)!important}
html body.v146125-ui .v146125-player-statuses{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;
  width:100%!important;min-width:0!important;min-height:31px!important;margin-top:2px!important;overflow:hidden!important;
}
html body.v146125-ui .v146125-player-statuses>.v14644-player-title{
  width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;margin:0!important;padding:4px!important;
  border:1px solid rgba(210,169,78,.34)!important;border-radius:8px!important;background:rgba(4,20,22,.78)!important;object-fit:contain!important;vertical-align:middle!important;box-sizing:border-box!important;
}
html body.v146125-ui .v146125-player-statuses>.v14635-guardian-badges{display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;transform:none!important;max-width:none!important}
html body.v146125-ui .v146125-player-statuses .v14635-guardian-badge{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;margin:0!important;padding:4px!important;border-radius:8px!important;box-sizing:border-box!important}

/* Chat shell: slightly larger than v124 but still compact enough for ~12 normal rows. */
html body.v146125-ui .v78-location-chat.v1469-chat-drawer,
html body.v146125-ui .v79-chat-drawer.v1469-chat-drawer{
  width:min(96vw,430px)!important;max-width:calc(100vw - 8px)!important;
  grid-template-rows:54px 30px minmax(0,1fr) 52px!important;gap:4px!important;
  padding:calc(5px + env(safe-area-inset-top)) 6px calc(5px + env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
html body.v146125-ui .v1469-chat-drawer>.v1469-chat-top{
  height:54px!important;min-height:54px!important;max-height:54px!important;
  padding:5px 6px 5px 10px!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:7px!important;
  border:1px solid rgba(89,158,143,.25)!important;border-radius:12px!important;
  background:linear-gradient(135deg,rgba(8,40,39,.92),rgba(4,23,28,.96))!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
html body.v146125-ui .v1469-chat-drawer .v1469-chat-heading{min-width:0!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"eyebrow eyebrow" "title sub"!important;align-items:end!important;gap:1px 7px!important;overflow:hidden!important}
html body.v146125-ui .v1469-chat-drawer .v1469-chat-heading small{grid-area:eyebrow!important;font:800 7px/1 system-ui,sans-serif!important;letter-spacing:.12em!important;color:#82c8b7!important;white-space:nowrap!important}
html body.v146125-ui .v1469-chat-drawer .v1469-chat-heading b{grid-area:title!important;font:700 17px/1 Georgia,"Times New Roman",serif!important;color:#f2eee0!important;white-space:nowrap!important}
html body.v146125-ui .v1469-chat-drawer .v1469-chat-heading em{grid-area:sub!important;min-width:0!important;margin:0 0 1px!important;font:500 7.4px/1 system-ui,sans-serif!important;color:#86a39c!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146125-ui .v1469-chat-drawer .v1469-chat-close{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:7px!important;border-radius:10px!important}
html body.v146125-ui .v1469-chat-drawer>.v146123-chat-tabs{height:30px!important;min-height:30px!important;max-height:30px!important;padding:2px!important;border-radius:10px!important}
html body.v146125-ui .v1469-chat-drawer>.v146123-chat-tabs>button{height:24px!important;min-height:24px!important;max-height:24px!important;border-radius:8px!important;font-size:9.5px!important}
html body.v146125-ui .v1469-chat-drawer>.v1469-chat-scroll{min-width:0!important;padding:1px 1px 3px!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;box-sizing:border-box!important}

/* Dynamic message height: one-line messages stay compact; longer messages grow downward. */
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message{
  --v146123-swipe-x:0px;position:relative!important;width:100%!important;height:auto!important;
  min-height:52px!important;max-height:none!important;margin:0 0 3px!important;padding:5px 6px!important;
  display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:7px!important;align-items:start!important;
  overflow:hidden!important;border-radius:11px!important;box-sizing:border-box!important;
}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
  width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:1px!important;align-self:start!important;border-radius:10px!important;overflow:hidden!important;box-sizing:border-box!important;
  background:rgba(3,17,20,.88)!important;border:1px solid rgba(206,169,83,.34)!important;
}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar :where(img,svg,.v131-chat-face,.class-asset-image){
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;
  object-fit:cover!important;object-position:center!important;transform:none!important;border-radius:8px!important;
}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  min-width:0!important;width:100%!important;height:auto!important;min-height:40px!important;max-height:none!important;
  padding:0 34px 0 0!important;display:grid!important;grid-template-rows:auto auto!important;gap:3px!important;align-content:start!important;
  overflow:visible!important;box-sizing:border-box!important;
}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-message-head{width:100%!important;height:15px!important;min-height:15px!important;max-height:15px!important;overflow:hidden!important}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-meta{display:block!important;width:100%!important;height:15px!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body.v146125-ui .v1469-chat-drawer .v146125-chat-name-line{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;
  width:100%!important;max-width:100%!important;height:15px!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;
}
html body.v146125-ui .v1469-chat-drawer .v146125-chat-name-line>.v131-chat-name{
  flex:0 1 auto!important;min-width:0!important;max-width:44%!important;margin:0!important;padding:0!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:800 11px/15px system-ui,sans-serif!important;color:#f0f3ef!important;
}
html body.v146125-ui .v1469-chat-drawer .v146125-role-level{
  position:static!important;flex:0 1 auto!important;display:inline-flex!important;align-items:center!important;min-width:0!important;max-width:38%!important;
  height:15px!important;margin:0!important;padding:0!important;overflow:hidden!important;color:#8ca7a0!important;font:650 7.7px/15px system-ui,sans-serif!important;white-space:nowrap!important;
}
html body.v146125-ui .v1469-chat-drawer .v146125-role-level>span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v146125-ui .v1469-chat-drawer .v146125-chat-statuses{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:2px!important;height:15px!important;min-width:0!important;margin-left:auto!important;overflow:hidden!important}
html body.v146125-ui .v1469-chat-drawer .v146125-chat-statuses>.v14644-player-title{width:14px!important;height:14px!important;min-width:14px!important;max-width:14px!important;margin:0!important;padding:1px!important;border-radius:4px!important;object-fit:contain!important;vertical-align:middle!important;box-sizing:border-box!important}
html body.v146125-ui .v1469-chat-drawer .v146125-chat-statuses>.v14635-guardian-badges{display:inline-flex!important;align-items:center!important;gap:1px!important;margin:0!important;max-width:none!important;transform:none!important}
html body.v146125-ui .v1469-chat-drawer .v146125-chat-statuses .v14635-guardian-badge{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;max-width:14px!important;max-height:14px!important;margin:0!important;padding:1px!important;border-radius:4px!important;box-sizing:border-box!important}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;max-height:none!important;
  margin:0!important;padding:0!important;color:#d7dfdc!important;font:500 10.4px/1.22 system-ui,sans-serif!important;text-align:left!important;
  white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:break-word!important;-webkit-line-clamp:unset!important;
}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{position:absolute!important;z-index:7!important;right:5px!important;top:5px!important;bottom:auto!important;width:auto!important;max-width:31px!important;min-height:0!important;height:auto!important;gap:2px!important;pointer-events:none!important}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail time{font:500 6.2px/1 system-ui,sans-serif!important;color:#77908a!important}
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail button{pointer-events:auto!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:3px!important}
html body.v146125-ui .v1469-chat-drawer .v146125-system-message.system{border-color:rgba(91,181,177,.32)!important;background:linear-gradient(135deg,rgba(7,35,38,.95),rgba(6,22,28,.96))!important}
html body.v146125-ui .v1469-chat-drawer .v146125-system-message.greizar{border-color:rgba(159,112,199,.34)!important;background:linear-gradient(135deg,rgba(27,19,39,.95),rgba(10,21,29,.97))!important}
html body.v146125-ui .v1469-chat-drawer .v146125-system-message .v131-chat-name{max-width:48%!important;color:#e7d7ff!important}
html body.v146125-ui .v1469-chat-drawer .v146125-system-message.system .v131-chat-name{color:#b9f1e8!important}

/* Cosmetics stay behind growing cards. */
html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v14649-chat-cosmetic-bg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;opacity:.46!important;filter:brightness(.54) saturate(.82)!important}

/* Composer never escapes the drawer edges. */
html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom{
  width:100%!important;height:52px!important;min-height:52px!important;max-height:52px!important;margin:0!important;padding:4px!important;
  overflow:hidden!important;box-sizing:border-box!important;border:1px solid rgba(80,143,130,.28)!important;border-radius:12px!important;background:rgba(2,15,18,.9)!important;
}
html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form{
  width:100%!important;max-width:100%!important;height:42px!important;margin:0!important;padding:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;gap:5px!important;align-items:center!important;box-sizing:border-box!important;overflow:hidden!important;
}
html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form input{
  width:100%!important;max-width:100%!important;min-width:0!important;height:42px!important;margin:0!important;padding:0 11px!important;
  border-radius:9px!important;box-sizing:border-box!important;font-size:10px!important;overflow:hidden!important;
}
html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom .v125-chat-send{
  width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;padding:9px!important;border-radius:9px!important;box-sizing:border-box!important;overflow:hidden!important;
}

@media(max-width:380px){
  html body.v146125-ui .v78-location-chat.v1469-chat-drawer,html body.v146125-ui .v79-chat-drawer.v1469-chat-drawer{width:calc(100vw - 6px)!important;max-width:calc(100vw - 6px)!important;padding-left:4px!important;padding-right:4px!important}
  html body.v146125-ui .v1469-chat-drawer .v146123-chat-message{grid-template-columns:38px minmax(0,1fr)!important;gap:6px!important;min-height:50px!important;padding:5px!important}
  html body.v146125-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important}
  html body.v146125-ui .v1469-chat-drawer .v146125-chat-name-line>.v131-chat-name{font-size:10.5px!important;max-width:42%!important}
  html body.v146125-ui .v1469-chat-drawer .v146125-role-level{font-size:7.2px!important;max-width:36%!important}
  html body.v146125-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{font-size:10px!important}
}
@media(max-height:760px){
  html body.v146125-ui .v78-location-chat.v1469-chat-drawer,html body.v146125-ui .v79-chat-drawer.v1469-chat-drawer{grid-template-rows:50px 28px minmax(0,1fr) 48px!important;gap:3px!important}
  html body.v146125-ui .v1469-chat-drawer>.v1469-chat-top{height:50px!important;min-height:50px!important;max-height:50px!important}
  html body.v146125-ui .v1469-chat-drawer>.v146123-chat-tabs{height:28px!important;min-height:28px!important;max-height:28px!important}
  html body.v146125-ui .v1469-chat-drawer>.v146123-chat-tabs>button{height:22px!important;min-height:22px!important;max-height:22px!important}
  html body.v146125-ui .v1469-chat-drawer .v146123-chat-message{min-height:48px!important;margin-bottom:2px!important;padding-block:4px!important}
  html body.v146125-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}
  html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom{height:48px!important;min-height:48px!important;max-height:48px!important;padding:3px!important}
  html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form{height:40px!important;grid-template-columns:minmax(0,1fr) 40px!important}
  html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form input,html body.v146125-ui .v1469-chat-drawer>.v1469-chat-bottom .v125-chat-send{height:40px!important;min-height:40px!important;max-height:40px!important}
}

/* Reset generic player-card span styling inside the dedicated status rail. */
html body.v146125-ui .v125-player-card .v146125-player-statuses{
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important;
}
html body.v146125-ui .v125-player-card .v146125-player-statuses .v14635-guardian-badges{
  padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important;
}

/* ===== css/v146126-chat-width-caravan-slot-polish.css ===== */
/* Aldos RPG v1.146.126 — chat width/status geometry, caravan CTA, slot-picker centering. */

/* CHAT DRAWER — approximately two thirds of the viewport, never touching screen edges. */
html body.v146126-ui .v78-location-chat.v1469-chat-drawer,
html body.v146126-ui .v79-chat-drawer.v1469-chat-drawer{
  width:clamp(260px,68vw,500px)!important;
  max-width:calc(100vw - 8px)!important;
  grid-template-rows:52px 29px minmax(0,1fr) 48px!important;
  gap:4px!important;
  padding:calc(5px + env(safe-area-inset-top)) 5px calc(5px + env(safe-area-inset-bottom))!important;
  background:linear-gradient(180deg,rgba(5,28,30,.985),rgba(3,19,23,.99))!important;
  border:1px solid rgba(165,139,71,.55)!important;
  border-radius:0 18px 18px 0!important;
  box-shadow:10px 0 34px rgba(0,0,0,.44),inset -1px 0 rgba(118,205,183,.08)!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html body.v146126-ui .v1469-chat-drawer>.v1469-chat-top{
  height:52px!important;min-height:52px!important;max-height:52px!important;
  padding:6px 7px 5px 9px!important;
  grid-template-columns:minmax(0,1fr) 34px!important;gap:6px!important;
  border:1px solid rgba(80,154,139,.28)!important;border-radius:12px!important;
  background:linear-gradient(135deg,rgba(9,48,44,.9),rgba(4,28,33,.96))!important;
  box-shadow:inset 0 1px rgba(170,224,205,.05)!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
html body.v146126-ui .v1469-chat-drawer .v1469-chat-heading{
  display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-areas:"eyebrow eyebrow" "title sub"!important;
  gap:1px 6px!important;align-items:end!important;min-width:0!important;overflow:hidden!important;
}
html body.v146126-ui .v1469-chat-drawer .v1469-chat-heading small{grid-area:eyebrow!important;font:800 7px/1 system-ui,sans-serif!important;letter-spacing:.12em!important;color:#82cbb8!important}
html body.v146126-ui .v1469-chat-drawer .v1469-chat-heading b{grid-area:title!important;font:700 16px/1 Georgia,"Times New Roman",serif!important;color:#f2eee1!important;white-space:nowrap!important}
html body.v146126-ui .v1469-chat-drawer .v1469-chat-heading em{grid-area:sub!important;min-width:0!important;margin:0 0 1px!important;font:600 7px/1 system-ui,sans-serif!important;color:#8ba9a1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146126-ui .v1469-chat-drawer .v1469-chat-close{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:7px!important;border-radius:10px!important}
html body.v146126-ui .v1469-chat-drawer>.v146123-chat-tabs{height:29px!important;min-height:29px!important;max-height:29px!important;padding:2px!important;border-radius:10px!important}
html body.v146126-ui .v1469-chat-drawer>.v146123-chat-tabs>button{height:23px!important;min-height:23px!important;max-height:23px!important;font-size:9px!important;border-radius:8px!important}
html body.v146126-ui .v1469-chat-drawer>.v1469-chat-scroll{padding:1px 1px 3px!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;box-sizing:border-box!important}

/* Donation/cosmetic message backgrounds are deliberately disabled in v1.146.126. */
html body.v146126-ui .v1469-chat-drawer .v14649-chat-cosmetic-bg{display:none!important}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message[class*="cosmetic-"]{background-image:none!important}

/* Compact readable messages. Normal messages keep enough density for ~12 rows. */
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message{
  --v146123-swipe-x:0px!important;
  position:relative!important;width:100%!important;height:auto!important;min-height:47px!important;max-height:none!important;
  margin:0 0 3px!important;padding:5px!important;
  display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;
  border:1px solid rgba(75,137,127,.28)!important;border-radius:11px!important;
  background:linear-gradient(135deg,rgba(7,35,37,.97),rgba(5,27,31,.98))!important;
  box-shadow:inset 0 1px rgba(161,218,200,.035)!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message.dungeon-channel{border-color:rgba(133,186,84,.34)!important;background:linear-gradient(135deg,rgba(20,44,28,.97),rgba(5,28,29,.98))!important}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message.mentioned{border-color:rgba(199,165,78,.7)!important;box-shadow:inset 3px 0 rgba(209,171,79,.72)!important}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
  width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;
  margin:0!important;padding:1px!important;align-self:start!important;border-radius:10px!important;overflow:hidden!important;
  border:1px solid rgba(207,169,84,.40)!important;background:rgba(2,15,18,.9)!important;box-sizing:border-box!important;
}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar :where(img,svg,.v131-chat-face,.class-asset-image){display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:8px!important}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  min-width:0!important;width:100%!important;height:auto!important;min-height:37px!important;padding:0 25px 0 0!important;
  display:grid!important;grid-template-rows:14px auto!important;gap:2px!important;align-content:start!important;overflow:visible!important;box-sizing:border-box!important;
}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-message-head,
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-meta{width:100%!important;height:14px!important;min-height:14px!important;max-height:14px!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body.v146126-ui .v1469-chat-drawer .v146126-chat-name-line{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;
  width:100%!important;max-width:100%!important;height:14px!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;
}
html body.v146126-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{
  flex:0 1 auto!important;min-width:0!important;max-width:48%!important;margin:0!important;padding:0!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:850 10.3px/14px system-ui,sans-serif!important;color:#f4f2e8!important;
}
/* Statuses are intentionally directly after the nickname, never pushed to the far edge. */
html body.v146126-ui .v1469-chat-drawer .v146126-chat-statuses{
  order:2!important;flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:1px!important;
  height:14px!important;min-width:0!important;max-width:42px!important;margin:0!important;overflow:hidden!important;
}
html body.v146126-ui .v1469-chat-drawer .v146126-chat-statuses>.v14644-player-title{width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;margin:0!important;padding:1px!important;border-radius:4px!important;object-fit:contain!important;box-sizing:border-box!important}
html body.v146126-ui .v1469-chat-drawer .v146126-chat-statuses>.v14635-guardian-badges{display:inline-flex!important;align-items:center!important;gap:1px!important;margin:0!important;max-width:27px!important;transform:none!important;overflow:hidden!important}
html body.v146126-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge{width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;max-width:13px!important;max-height:13px!important;margin:0!important;padding:1px!important;border-radius:4px!important;box-sizing:border-box!important}
html body.v146126-ui .v1469-chat-drawer .v146126-role-level{
  order:3!important;position:static!important;flex:0 1 auto!important;display:inline-flex!important;align-items:center!important;
  min-width:0!important;max-width:44%!important;height:14px!important;margin:0!important;padding:0!important;overflow:hidden!important;
  color:#8da9a0!important;font:650 7.2px/14px system-ui,sans-serif!important;white-space:nowrap!important;
}
html body.v146126-ui .v1469-chat-drawer .v146126-role-level>span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;max-height:none!important;
  margin:0!important;padding:0!important;color:#d5ddda!important;font:500 10px/1.18 system-ui,sans-serif!important;text-align:left!important;
  white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:break-word!important;-webkit-line-clamp:unset!important;
}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{position:absolute!important;z-index:7!important;right:5px!important;top:5px!important;bottom:auto!important;width:auto!important;max-width:22px!important;min-height:0!important;height:auto!important;gap:1px!important;pointer-events:none!important}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail time{position:absolute!important;right:0!important;top:30px!important;font:500 5.8px/1 system-ui,sans-serif!important;color:#718b84!important;white-space:nowrap!important}
html body.v146126-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail button{pointer-events:auto!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:3px!important}
html body.v146126-ui .v1469-chat-drawer .v146125-system-message.system{border-color:rgba(72,170,163,.36)!important;background:linear-gradient(135deg,rgba(8,41,42,.97),rgba(4,25,31,.98))!important}
html body.v146126-ui .v1469-chat-drawer .v146125-system-message.greizar{border-color:rgba(143,106,184,.38)!important;background:linear-gradient(135deg,rgba(31,24,43,.97),rgba(8,24,31,.98))!important}

/* Composer remains fully inside the narrower drawer. */
html body.v146126-ui .v1469-chat-drawer>.v1469-chat-bottom{width:100%!important;height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;padding:3px!important;overflow:hidden!important;box-sizing:border-box!important;border:1px solid rgba(78,143,130,.28)!important;border-radius:11px!important;background:rgba(2,15,18,.92)!important}
html body.v146126-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form{width:100%!important;max-width:100%!important;height:40px!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;gap:4px!important;align-items:center!important;box-sizing:border-box!important;overflow:hidden!important}
html body.v146126-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form input{width:100%!important;max-width:100%!important;min-width:0!important;height:40px!important;margin:0!important;padding:0 9px!important;border-radius:9px!important;box-sizing:border-box!important;font-size:9.3px!important;overflow:hidden!important}
html body.v146126-ui .v1469-chat-drawer>.v1469-chat-bottom .v125-chat-send{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:8px!important;border-radius:9px!important;box-sizing:border-box!important;overflow:hidden!important}

/* Equipment slot picker: label is a dedicated absolute layer centered in both axes. */
html body.v146126-ui .v146116-picker-modal .v124-item-card.layout-picker>.v124-item-actions{display:grid!important;place-items:stretch!important;height:48px!important;min-height:48px!important;max-height:48px!important;padding:0!important;overflow:hidden!important}
html body.v146126-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action{
  position:relative!important;display:block!important;width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;
  margin:0!important;padding:0!important;text-indent:0!important;overflow:hidden!important;box-sizing:border-box!important;color:transparent!important;font-size:0!important;line-height:0!important;
}
html body.v146126-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action::before,
html body.v146126-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action::after{content:none!important;display:none!important}
html body.v146126-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action>.v146126-picker-label{
  position:absolute!important;inset:0!important;z-index:5!important;display:grid!important;place-items:center!important;width:100%!important;height:100%!important;
  margin:0!important;padding:0 10px!important;box-sizing:border-box!important;transform:none!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;
  color:#fff!important;text-shadow:0 1px 2px #000!important;font:900 clamp(11px,3.2vw,13px)/1 system-ui,sans-serif!important;letter-spacing:0!important;
}
html body.v146126-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action :is(img,svg,.v83-ui-icon){display:none!important;width:0!important;height:0!important}

/* Caravan raid CTA: wide, centered and visually stronger without changing behavior. */
html body.v146126-ui.v134-location-screen .v1420-raid-card>button,
html body.v146126-ui .v1420-raid-card>button{
  grid-column:1/-1!important;justify-self:center!important;align-self:center!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:min(82%,340px)!important;max-width:340px!important;min-width:190px!important;height:42px!important;min-height:42px!important;
  margin:5px auto 1px!important;padding:0 16px!important;box-sizing:border-box!important;
  border:1px solid rgba(211,151,73,.72)!important;border-radius:12px!important;
  background:linear-gradient(180deg,rgba(76,34,28,.98),rgba(40,20,20,.98))!important;
  box-shadow:inset 0 1px rgba(255,221,149,.12),0 3px 10px rgba(0,0,0,.30)!important;
  color:#fff1dc!important;text-align:center!important;font:850 clamp(10px,3vw,12px)/1 system-ui,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;
}
html body.v146126-ui .v1420-raid-card>button>span{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;overflow:hidden!important}
html body.v146126-ui .v1420-raid-card>button>span img{display:block!important;width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;object-fit:contain!important}
html body.v146126-ui .v1420-raid-card>button:disabled{opacity:.5!important;filter:saturate(.55)!important}

@media(max-width:380px){
  html body.v146126-ui .v78-location-chat.v1469-chat-drawer,html body.v146126-ui .v79-chat-drawer.v1469-chat-drawer{width:clamp(252px,72vw,280px)!important;max-width:calc(100vw - 6px)!important}
  html body.v146126-ui .v1469-chat-drawer .v146123-chat-message{grid-template-columns:36px minmax(0,1fr)!important;gap:5px!important;min-height:45px!important;padding:4px!important}
  html body.v146126-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}
  html body.v146126-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{font-size:9.8px!important;max-width:43%!important}
  html body.v146126-ui .v1469-chat-drawer .v146126-role-level{font-size:6.8px!important;max-width:42%!important}
  html body.v146126-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{font-size:9.5px!important}
}

/* ===== css/v146127-chat-slot-final-alignment.css ===== */
/* Aldos RPG v1.146.127 — chat width/status order + slot action final alignment.
   No generated image assets. Visual geometry only. */

/* --------------------------------------------------------------------------
   CHAT DRAWER
   Target from mobile review: ~2.6/3 of the game viewport (86.67%).
   Keep a narrow safe gap from the left edge and preserve the compact 12-row chat.
   -------------------------------------------------------------------------- */
html body.v146127-ui .v78-location-chat.v1469-chat-drawer,
html body.v146127-ui .v79-chat-drawer.v1469-chat-drawer{
  width:min(86.667vw,560px)!important;
  max-width:calc(100vw - 8px)!important;
  min-width:0!important;
  padding-left:6px!important;
  padding-right:6px!important;
  box-sizing:border-box!important;
}

/* Player identity is one literal line: nickname -> statuses -> class/level. */
html body.v146127-ui .v1469-chat-drawer .v146126-chat-name-line{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{
  order:1!important;
  flex:0 1 auto!important;
  min-width:24px!important;
  max-width:42%!important;
  margin:0!important;
  padding:0!important;
  font:850 10.8px/16px system-ui,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-chat-statuses{
  order:2!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  width:auto!important;
  min-width:0!important;
  max-width:52px!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  margin-left:0!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
}
/* Every status is a small deliberate square, not a loose icon. */
html body.v146127-ui .v1469-chat-drawer .v146126-chat-statuses>.v14644-player-title{
  position:static!important;
  display:block!important;
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  max-width:15px!important;
  max-height:15px!important;
  margin:0!important;
  padding:2px!important;
  border:1px solid rgba(205,169,83,.44)!important;
  border-radius:4px!important;
  background:rgba(5,20,22,.88)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important;
  object-fit:contain!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-chat-statuses>.v14635-guardian-badges{
  position:static!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  width:auto!important;
  min-width:0!important;
  max-width:34px!important;
  height:15px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge{
  position:relative!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  max-width:15px!important;
  max-height:15px!important;
  margin:0!important;
  padding:2px!important;
  border-radius:4px!important;
  box-sizing:border-box!important;
  transform:none!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge .v14635-guardian-badge-art{
  display:block!important;
  width:11px!important;
  height:11px!important;
  min-width:11px!important;
  min-height:11px!important;
  max-width:11px!important;
  max-height:11px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  transform:none!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge>b{
  right:-2px!important;
  bottom:-2px!important;
  min-width:8px!important;
  height:8px!important;
  padding:0 1px!important;
  font:900 5px/6px system-ui,sans-serif!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-role-level{
  order:3!important;
  position:static!important;
  flex:1 1 auto!important;
  display:block!important;
  min-width:0!important;
  max-width:none!important;
  width:auto!important;
  height:16px!important;
  margin:0!important;
  padding:0!important;
  color:#8fa8a1!important;
  font:650 7.5px/16px system-ui,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v146127-ui .v1469-chat-drawer .v146126-role-level>span{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Slightly cleaner compact row geometry; width increase prevents long texts from growing too often. */
html body.v146127-ui .v1469-chat-drawer .v146123-chat-message{
  grid-template-columns:39px minmax(0,1fr)!important;
  column-gap:6px!important;
  min-height:47px!important;
  padding:5px!important;
}
html body.v146127-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
  width:39px!important;
  min-width:39px!important;
  max-width:39px!important;
  height:39px!important;
  min-height:39px!important;
  max-height:39px!important;
}
html body.v146127-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  padding-right:25px!important;
}

/* --------------------------------------------------------------------------
   EQUIPMENT SLOT PICKER
   Old layers were still able to leave labels against the left edge. Center the
   actual label in normal flex flow; no transforms / absolute text positioning.
   -------------------------------------------------------------------------- */
html body.v146127-ui .v146116-picker-modal .v124-item-card.layout-picker>.v124-item-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  place-items:stretch!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html body.v146127-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action{
  position:relative!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:0 12px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  text-indent:0!important;
  color:#fff!important;
  font-size:0!important;
  line-height:1!important;
  overflow:hidden!important;
  transform:none!important;
}
html body.v146127-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action::before,
html body.v146127-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action::after{
  content:none!important;
  display:none!important;
}
html body.v146127-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action>.v146126-picker-label{
  position:static!important;
  inset:auto!important;
  flex:0 1 auto!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  color:#fff!important;
  text-align:center!important;
  text-shadow:0 1px 2px #000!important;
  font:900 clamp(11px,3.2vw,13px)/1 system-ui,sans-serif!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  transform:none!important;
}
html body.v146127-ui .v146116-picker-modal .v124-item-card.layout-picker .v146126-picker-action :is(img,svg,.v83-ui-icon){
  display:none!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}

/* "Снять всё" and full item-detail unequip controls keep icon + label on one row. */
html body.v146127-ui .v14416-unequip-all,
html body.v146127-ui .v146118-detail-unequip{
  display:inline-flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-align:center!important;
  white-space:nowrap!important;
}
html body.v146127-ui .v14416-unequip-all :is(img,svg,.v83-ui-icon),
html body.v146127-ui .v146118-detail-unequip :is(img,svg,.v83-ui-icon){
  position:static!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  transform:none!important;
}
html body.v146127-ui .v14416-unequip-all>span,
html body.v146127-ui .v146118-detail-unequip>span{
  position:static!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  text-align:center!important;
  transform:none!important;
}

@media(max-width:380px){
  html body.v146127-ui .v78-location-chat.v1469-chat-drawer,
  html body.v146127-ui .v79-chat-drawer.v1469-chat-drawer{
    width:86.667vw!important;
    max-width:calc(100vw - 6px)!important;
    padding-left:5px!important;
    padding-right:5px!important;
  }
  html body.v146127-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{
    max-width:38%!important;
    font-size:10.1px!important;
  }
  html body.v146127-ui .v1469-chat-drawer .v146126-role-level{font-size:7px!important}
}

/* ===== css/v146128-dungeon-chat-travel-polish.css ===== */
/* Aldos RPG v1.146.128 — precise dungeon/chat/travel polish.
   Uses only existing shipped assets; no generated images. */

/* --------------------------------------------------------------------------
   1) SLIME DUNGEON — compact, stable run bar
   -------------------------------------------------------------------------- */
html body.v146128-ui .v146116-dungeon-instance .v14643-runbar{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"title infection" "progress nav"!important;
  align-items:center!important;
  gap:8px 10px!important;
  width:100%!important;
  min-width:0!important;
  min-height:82px!important;
  margin:0 0 8px!important;
  padding:10px 11px!important;
  overflow:hidden!important;
  border:1px solid rgba(153,216,73,.48)!important;
  border-radius:15px!important;
  background:
    radial-gradient(circle at 10% 0,rgba(154,232,54,.10),transparent 34%),
    linear-gradient(145deg,rgba(8,53,31,.96),rgba(3,24,22,.985))!important;
  box-shadow:inset 0 0 0 1px rgba(211,247,126,.035),inset 0 0 20px rgba(67,156,46,.07),0 5px 15px rgba(0,0,0,.15)!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-runbar>span{
  grid-area:title!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  overflow:hidden!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-runbar>span>b{
  min-width:0!important;
  margin:0!important;
  color:#f3f0df!important;
  font:700 clamp(14px,4.1vw,18px)/1.05 Georgia,"Times New Roman",serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-runbar>span>small{
  flex:0 0 auto!important;
  min-width:34px!important;
  margin:0!important;
  padding:4px 7px!important;
  border:1px solid rgba(166,220,86,.27)!important;
  border-radius:999px!important;
  background:rgba(4,24,21,.72)!important;
  color:#d5ed9d!important;
  font:800 9px/1 system-ui,sans-serif!important;
  text-align:center!important;
  white-space:nowrap!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-infection{
  grid-area:infection!important;
  position:static!important;
  display:grid!important;
  grid-template-columns:22px auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  gap:0 5px!important;
  min-width:64px!important;
  max-width:92px!important;
  margin:0!important;
  padding:4px 7px!important;
  border:1px solid rgba(144,199,75,.22)!important;
  border-radius:10px!important;
  background:rgba(3,24,20,.66)!important;
  justify-self:end!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-infection>img{
  grid-row:1/3!important;
  grid-column:1!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  margin:0!important;
  object-fit:contain!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-infection>b{
  grid-column:2!important;
  margin:0!important;
  color:#eef4e4!important;
  font:850 11px/1 system-ui,sans-serif!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-infection>small{
  grid-column:2!important;
  margin:1px 0 0!important;
  color:#9eae9b!important;
  font:650 7px/1 system-ui,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-progress{
  grid-area:progress!important;
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
  height:8px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-progress>i{
  flex:1 1 5px!important;
  width:auto!important;
  min-width:3px!important;
  max-width:none!important;
  height:5px!important;
  margin:0!important;
  border-radius:999px!important;
  background:rgba(99,119,101,.27)!important;
  box-shadow:none!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-progress>i.done{
  background:linear-gradient(90deg,#9ce23f,#c8f168)!important;
  box-shadow:0 0 6px rgba(153,225,62,.24)!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-runbar>nav{
  grid-area:nav!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(55px,1fr))!important;
  gap:5px!important;
  min-width:120px!important;
  margin:0!important;
  padding:0!important;
  justify-self:end!important;
}
html body.v146128-ui .v146116-dungeon-instance .v14643-runbar>nav>button{
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  margin:0!important;
  padding:0 7px!important;
  border:1px solid rgba(166,211,99,.27)!important;
  border-radius:9px!important;
  background:linear-gradient(145deg,rgba(22,55,39,.92),rgba(5,25,23,.98))!important;
  color:#dce9d5!important;
  font:750 9px/1 system-ui,sans-serif!important;
  white-space:nowrap!important;
}

/* Dungeon mini pit: same visual language and asset as the normal world Pit. */
html body.v146128-ui .v146116-dungeon-instance>.v14643-instance-foot{
  margin-bottom:0!important;
}
html body.v146128-ui .v146116-dungeon-instance>.v146128-dungeon-pit-card{
  box-sizing:border-box!important;
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) minmax(76px,92px) 12px!important;
  align-items:center!important;
  gap:8px!important;
  width:calc(100% - 4px)!important;
  min-width:0!important;
  min-height:72px!important;
  margin:14px 2px 8px!important;
  padding:9px 12px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:14px!important;
  background:
    linear-gradient(90deg,rgba(2,14,16,.72),rgba(2,17,17,.94) 70%),
    url('../assets/v14699/location-ui/loot-pit-background-clear.webp') left center/cover no-repeat!important;
  box-shadow:0 6px 16px rgba(0,0,0,.22)!important;
}
html body.v146128-ui .v146116-dungeon-instance>.v146128-dungeon-pit-card::before{
  content:""!important;
  position:absolute!important;
  z-index:4!important;
  inset:0!important;
  pointer-events:none!important;
  background:url('../assets/v14695/location-ui/frames/loot-strip-frame.webp') center/100% 100% no-repeat!important;
}
html body.v146128-ui .v146128-dungeon-pit-card>*{position:relative!important;z-index:2!important;min-width:0!important}
html body.v146128-ui .v146128-dungeon-pit-card>.v119-pit-art{
  width:62px!important;
  height:52px!important;
  min-width:62px!important;
  min-height:52px!important;
  margin:0!important;
  border-radius:10px!important;
  overflow:hidden!important;
  background:rgba(3,18,18,.72)!important;
}
html body.v146128-ui .v146128-dungeon-pit-card .v146101-pit-mini-icon{
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center!important;
  transform:none!important;
}
html body.v146128-ui .v146128-dungeon-pit-card>span:nth-of-type(2){display:grid!important;gap:2px!important;min-width:0!important;text-align:left!important}
html body.v146128-ui .v146128-dungeon-pit-card>span:nth-of-type(2)>b{font:700 14px/1.05 Georgia,"Times New Roman",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146128-ui .v146128-dungeon-pit-card>span:nth-of-type(2)>small{font:600 8px/1.15 system-ui,sans-serif!important;color:#9ea8a2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146128-ui .v146128-dungeon-pit-card>em{
  display:grid!important;place-items:center!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;height:38px!important;margin:0!important;padding:0 7px!important;
  border:1px solid rgba(169,232,70,.52)!important;border-radius:10px!important;
  background:linear-gradient(180deg,#9be92d,#69bc11)!important;color:#12210b!important;
  font:850 10px/1 system-ui,sans-serif!important;font-style:normal!important;white-space:nowrap!important;
}
html body.v146128-ui .v146128-dungeon-pit-card>i{display:grid!important;place-items:center!important;margin:0!important;color:#e8bb5a!important;font:900 18px/1 system-ui,sans-serif!important;font-style:normal!important}

/* --------------------------------------------------------------------------
   2) TRAVEL — never reveal edges/corners of another location asset
   -------------------------------------------------------------------------- */
html body.v146128-ui .v146119-travel-location-head>span{
  box-sizing:border-box!important;
  isolation:isolate!important;
  display:grid!important;
  place-items:center!important;
  padding:7px!important;
  overflow:hidden!important;
}
html body.v146128-ui .v146119-travel-location-head>span :is(img,svg,.location-asset-image,.v1350-current-location-art){
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:88%!important;
  height:88%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:88%!important;
  max-height:88%!important;
  margin:auto!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  clip-path:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

/* --------------------------------------------------------------------------
   3) PIT LOOT — text-only discard, equal action geometry
   -------------------------------------------------------------------------- */
html body.v146128-ui .v146101-pit-loot-actions .v146128-pit-drop-text-only{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0 10px!important;
  text-align:center!important;
  text-indent:0!important;
}
html body.v146128-ui .v146101-pit-loot-actions .v146128-pit-drop-text-only :is(img,svg,.v83-ui-icon){display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important}
html body.v146128-ui .v146101-pit-loot-actions .v146128-pit-drop-text-only>span{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  text-align:center!important;
  font:850 clamp(10px,3.3vw,13px)/1 system-ui,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  transform:none!important;
}

/* --------------------------------------------------------------------------
   4) LOCATION STATUS — frame and background share exactly the same box
   -------------------------------------------------------------------------- */
html body.v146128-ui.v134-location-screen .v14415-location-status-banner{
  box-sizing:border-box!important;
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border-color:transparent!important;
  background-clip:padding-box!important;
}
html body.v146128-ui.v134-location-screen .v14415-location-status-banner::after{
  content:""!important;
  position:absolute!important;
  z-index:4!important;
  inset:0!important;
  width:auto!important;
  height:auto!important;
  border-radius:inherit!important;
  pointer-events:none!important;
  background:url('../assets/v14695/location-ui/frames/location-status-frame.webp') center/100% 100% no-repeat!important;
  transform:none!important;
}

/* --------------------------------------------------------------------------
   5) CHAT — status row, moderator control, timestamp and visible swipe reply
   -------------------------------------------------------------------------- */
html body.v146128-ui .v1469-chat-drawer .v146126-chat-statuses{
  transform:translateY(-2px)!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message{
  --v146128-tail-width:24px;
  transition:border-color .10s ease,box-shadow .10s ease,background .10s ease!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  padding-right:calc(var(--v146128-tail-width) + 4px)!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{
  position:absolute!important;
  z-index:9!important;
  top:4px!important;
  right:4px!important;
  bottom:4px!important;
  left:auto!important;
  display:block!important;
  width:var(--v146128-tail-width)!important;
  min-width:var(--v146128-tail-width)!important;
  max-width:var(--v146128-tail-width)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
  overflow:visible!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>button{
  position:absolute!important;
  top:0!important;
  right:0!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  max-height:20px!important;
  margin:0!important;
  padding:4px!important;
  overflow:hidden!important;
  border:1px solid rgba(205,91,109,.38)!important;
  border-radius:6px!important;
  background:linear-gradient(145deg,rgba(91,25,38,.90),rgba(47,17,27,.96))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important;
  pointer-events:auto!important;
  transform:none!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>button :is(img,svg,.v83-ui-icon){
  display:block!important;width:11px!important;height:11px!important;min-width:11px!important;min-height:11px!important;margin:0!important;padding:0!important;object-fit:contain!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>time{
  position:absolute!important;
  right:0!important;
  bottom:0!important;
  top:auto!important;
  left:auto!important;
  display:block!important;
  width:max-content!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  color:#738c86!important;
  font:500 6px/1 system-ui,sans-serif!important;
  white-space:nowrap!important;
  transform:none!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-reply-hint{
  z-index:10!important;
  right:30px!important;
  width:30px!important;
  height:30px!important;
  border-radius:9px!important;
  opacity:0!important;
  transform:translateY(-50%) scale(.72)!important;
  translate:none!important;
  background:linear-gradient(145deg,rgba(33,149,120,.98),rgba(12,86,82,.98))!important;
  border:1px solid rgba(125,248,211,.62)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.28),0 0 0 1px rgba(129,246,211,.08)!important;
  transition:opacity .07s linear,transform .07s linear!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe{
  border-color:rgba(98,224,190,.64)!important;
  box-shadow:inset -4px 0 rgba(76,220,181,.38),inset 2px 0 rgba(84,190,162,.28)!important;
}
html body.v146128-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe .v146123-reply-hint{
  opacity:1!important;
  transform:translateY(-50%) scale(1)!important;
}
html body.v146128-ui .v1469-chat-drawer .v146125-system-message .v146126-chat-name-line>.v131-chat-name{
  max-width:100%!important;
}

/* --------------------------------------------------------------------------
   6) PROFILE — compact "Снять всё"
   -------------------------------------------------------------------------- */
html body.v146128-ui .v14416-equipment-head .v14416-unequip-all{
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:88px!important;
  max-width:112px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 9px!important;
  gap:5px!important;
  border-radius:9px!important;
}
html body.v146128-ui .v14416-equipment-head .v14416-unequip-all :is(img,svg,.v83-ui-icon){
  flex:0 0 15px!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;
}
html body.v146128-ui .v14416-equipment-head .v14416-unequip-all>span{
  min-width:0!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}

@media(max-width:390px){
  html body.v146128-ui .v146116-dungeon-instance .v14643-runbar{gap:7px 8px!important;padding:9px!important}
  html body.v146128-ui .v146116-dungeon-instance .v14643-runbar>nav{min-width:106px!important;grid-template-columns:repeat(2,minmax(50px,1fr))!important}
  html body.v146128-ui .v146116-dungeon-instance .v14643-runbar>nav>button{padding:0 5px!important;font-size:8px!important}
  html body.v146128-ui .v146116-dungeon-instance>.v146128-dungeon-pit-card{grid-template-columns:56px minmax(0,1fr) 76px 10px!important;gap:6px!important;padding:8px 9px!important}
  html body.v146128-ui .v146128-dungeon-pit-card>.v119-pit-art{width:56px!important;height:50px!important;min-width:56px!important}
}

/* ===== css/v146129-status-chat-equipment-polish.css ===== */
/* Aldos RPG v1.146.129 — status detail geometry, equipment heading and moderator chat hold action.
   Existing assets only. No gameplay/state mutations. */

/* 1) STATUS INFO — don't let the short "Стаки" cell inherit the tall refresh row. */
html body.v146129-ui .v146129-status-details{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:auto!important;
  align-items:start!important;
  gap:6px!important;
}
html body.v146129-ui .v146129-status-details>.v146129-status-detail{
  box-sizing:border-box!important;
  align-self:start!important;
  min-height:46px!important;
  height:auto!important;
  max-height:none!important;
}
html body.v146129-ui .v146129-status-details>.detail-stacks{
  min-height:46px!important;
  height:46px!important;
  max-height:46px!important;
}
html body.v146129-ui .v146129-status-details>.detail-refresh{
  grid-column:1 / -1!important;
  min-height:52px!important;
  padding:8px 10px!important;
}
html body.v146129-ui .v146129-status-details>.detail-refresh dd{
  font-size:9.7px!important;
  line-height:1.28!important;
}

/* 2) PROFILE EQUIPMENT HEAD — title remains centered; compact text-only "Снять всё" gets its own column. */
html body.v146129-ui .v14416-equipment-head{
  position:relative!important;
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr) 76px!important;
  align-items:center!important;
  justify-items:center!important;
  gap:6px!important;
  min-height:46px!important;
  padding:0 4px!important;
}
html body.v146129-ui .v14416-equipment-head::before{
  content:""!important;
  grid-column:1!important;
  width:76px!important;
  height:1px!important;
}
html body.v146129-ui .v14416-equipment-head>div{
  position:static!important;
  grid-column:2!important;
  grid-row:1!important;
  transform:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  text-align:center!important;
}
html body.v146129-ui .v14416-equipment-head>div>h2{
  margin:0!important;
  font-size:clamp(20px,5.7vw,29px)!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v146129-ui .v14416-equipment-head .v14416-unequip-all{
  grid-column:3!important;
  grid-row:1!important;
  position:static!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  width:76px!important;
  min-width:76px!important;
  max-width:76px!important;
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  margin:0!important;
  padding:0 6px!important;
  border-radius:9px!important;
  text-align:center!important;
}
html body.v146129-ui .v14416-equipment-head .v14416-unequip-all :is(img,svg,.v83-ui-icon){display:none!important}
html body.v146129-ui .v14416-equipment-head .v14416-unequip-all>span{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  font:750 8.6px/1 system-ui,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:center!important;
}

/* 3) CHAT — status squares exactly share the nickname baseline. */
html body.v146129-ui .v1469-chat-drawer .v146126-chat-name-line{
  align-items:center!important;
}
html body.v146129-ui .v1469-chat-drawer .v146126-chat-statuses{
  align-self:center!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  padding:0!important;
  transform:translateY(0)!important;
}
html body.v146129-ui .v1469-chat-drawer .v146126-chat-statuses>.v14644-player-title,
html body.v146129-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge{
  align-self:center!important;
  transform:none!important;
  vertical-align:middle!important;
}

/* Time has its own unobstructed lower-right corner now that the permanent delete button is gone. */
html body.v146129-ui .v1469-chat-drawer .v146123-chat-message{
  position:relative!important;
}
html body.v146129-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  padding-right:34px!important;
  padding-bottom:7px!important;
}
html body.v146129-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{
  position:absolute!important;
  z-index:7!important;
  right:5px!important;
  bottom:5px!important;
  top:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  pointer-events:none!important;
}
html body.v146129-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>button{display:none!important}
html body.v146129-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>time{
  position:static!important;
  display:block!important;
  width:max-content!important;
  margin:0!important;
  padding:0!important;
  color:#78908a!important;
  font:500 6.8px/1 system-ui,sans-serif!important;
  line-height:1!important;
  white-space:nowrap!important;
  transform:none!important;
}

/* Moderator/admin delete is contextual: long hold reveals one medium centered action. */
html body.v146129-ui .v1469-chat-drawer .v146129-hold-delete{
  position:absolute!important;
  z-index:30!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%) scale(.92)!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  width:min(46%,128px)!important;
  min-width:92px!important;
  max-width:128px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid rgba(226,91,104,.70)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(126,31,42,.98),rgba(69,18,29,.99))!important;
  color:#fff4f1!important;
  box-shadow:0 7px 18px rgba(0,0,0,.36),inset 0 0 0 1px rgba(255,255,255,.05)!important;
  font:800 10.5px/1 system-ui,sans-serif!important;
  text-align:center!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .10s ease,transform .10s ease,visibility 0s linear .10s!important;
}
html body.v146129-ui .v1469-chat-drawer .v146123-chat-message.v146129-delete-revealed::after{
  content:""!important;
  position:absolute!important;
  z-index:20!important;
  inset:2px!important;
  border-radius:inherit!important;
  background:rgba(2,11,13,.54)!important;
  backdrop-filter:blur(1px)!important;
  pointer-events:none!important;
}
html body.v146129-ui .v1469-chat-drawer .v146123-chat-message.v146129-delete-revealed .v146129-hold-delete{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translate(-50%,-50%) scale(1)!important;
  transition-delay:0s!important;
}

@media(max-width:380px){
  html body.v146129-ui .v14416-equipment-head{grid-template-columns:68px minmax(0,1fr) 68px!important}
  html body.v146129-ui .v14416-equipment-head::before{width:68px!important}
  html body.v146129-ui .v14416-equipment-head .v14416-unequip-all{width:68px!important;min-width:68px!important;max-width:68px!important;padding:0 4px!important}
  html body.v146129-ui .v14416-equipment-head .v14416-unequip-all>span{font-size:8px!important}
}

/* ===== css/v146130-chat-gesture-alignment.css ===== */
/* Aldos RPG v1.146.130 — exact chat vertical alignment + moderator swipe-right deletion.
   Existing assets only. No gameplay/state mutations. */

/* 1) Identity line: nickname -> status squares -> role, all sharing one 16px optical centre. */
html body.v146130-ui .v1469-chat-drawer .v146126-chat-name-line{
  height:16px!important;min-height:16px!important;max-height:16px!important;
  align-items:center!important;overflow:hidden!important;
}
html body.v146130-ui .v1469-chat-drawer .v146126-chat-statuses{
  align-self:center!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  height:15px!important;min-height:15px!important;max-height:15px!important;
  margin:0!important;padding:0!important;line-height:0!important;overflow:visible!important;
  transform:translateY(-1px)!important;
}
html body.v146130-ui .v1469-chat-drawer .v146126-chat-statuses>.v14644-player-title{
  display:block!important;align-self:center!important;flex:0 0 15px!important;
  width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;
  margin:0!important;padding:2px!important;vertical-align:middle!important;transform:none!important;box-sizing:border-box!important;
}
html body.v146130-ui .v1469-chat-drawer .v146126-chat-statuses>.v14635-guardian-badges{
  align-self:center!important;display:inline-flex!important;align-items:center!important;
  height:15px!important;min-height:15px!important;max-height:15px!important;
  margin:0!important;padding:0!important;line-height:0!important;transform:none!important;overflow:visible!important;
}
html body.v146130-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge{
  align-self:center!important;flex:0 0 15px!important;
  width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;
  margin:0!important;transform:none!important;box-sizing:border-box!important;
}

/* 2) Timestamp: keep it inside the card, visibly above the lower border. */
html body.v146130-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  padding-right:30px!important;padding-bottom:9px!important;
}
html body.v146130-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{
  position:absolute!important;z-index:9!important;right:7px!important;bottom:8px!important;top:auto!important;left:auto!important;
  width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;pointer-events:none!important;overflow:visible!important;
}
html body.v146130-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>time{
  position:static!important;display:block!important;width:max-content!important;margin:0!important;padding:0!important;
  color:#78908a!important;font:500 6.5px/1 system-ui,sans-serif!important;white-space:nowrap!important;transform:none!important;
}
html body.v146130-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>button,
html body.v146130-ui .v1469-chat-drawer .v146129-hold-delete{display:none!important}

/* 3) Moderator/admin: RIGHT swipe = delete flow. There is no permanent/hold delete button. */
html body.v146130-ui .v1469-chat-drawer .v146130-delete-hint{
  position:absolute!important;z-index:16!important;left:8px!important;top:50%!important;
  display:grid!important;place-items:center!important;box-sizing:border-box!important;
  width:58px!important;height:27px!important;margin:0!important;padding:0 7px!important;
  border:1px solid rgba(235,92,106,.58)!important;border-radius:8px!important;
  background:linear-gradient(180deg,rgba(121,30,42,.96),rgba(65,17,27,.98))!important;
  color:#fff0ee!important;font:800 8px/1 system-ui,sans-serif!important;white-space:nowrap!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transform:translateY(-50%) scale(.88)!important;transition:opacity .08s linear,transform .08s linear!important;
}
html body.v146130-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe{
  border-color:rgba(231,86,101,.72)!important;
  box-shadow:inset 4px 0 rgba(219,70,87,.42),inset -1px 0 rgba(116,41,51,.22)!important;
}
html body.v146130-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe .v146130-delete-hint{
  opacity:1!important;visibility:visible!important;transform:translateY(-50%) scale(1)!important;
}

/* Existing left swipe remains reply; right swipe is deliberately a different red state. */
html body.v146130-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe .v146130-delete-hint{
  opacity:0!important;visibility:hidden!important;
}

/* 4) Reason panel opened after a completed moderator right swipe. */
html body.v146130-ui .v137-delete-reason{gap:9px!important}
html body.v146130-ui .v137-delete-reason p{font-size:10px!important;line-height:1.35!important}
html body.v146130-ui .v137-delete-reason textarea{min-height:78px!important;max-height:128px!important;font-size:11px!important}
html body.v146130-ui .v137-delete-reason>div{gap:7px!important}

/* ===== css/v146131-traffic-regen-chat-time.css ===== */
/* Aldos RPG v1.146.131 — stable chat timestamp flow.
   Network/regen changes are implemented in JS/server; no new images. */

/* Timestamp is a real third content row instead of an absolutely positioned overlay.
   One-line and multi-line messages now keep the time fully inside the card. */
html body.v146131-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  display:grid!important;
  grid-template-rows:16px auto 8px!important;
  row-gap:1px!important;
  align-content:start!important;
  min-height:39px!important;
  padding:0!important;
  overflow:visible!important;
}
html body.v146131-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-message-head{
  grid-row:1!important;width:100%!important;
  height:16px!important;min-height:16px!important;max-height:16px!important;
  overflow:hidden!important;
}
html body.v146131-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  grid-row:2!important;min-height:11px!important;
  margin:0!important;padding:0!important;line-height:1.16!important;
}
html body.v146131-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{
  grid-row:3!important;position:static!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  justify-self:stretch!important;align-self:end!important;
  width:100%!important;height:8px!important;min-height:8px!important;max-height:8px!important;
  margin:0!important;padding:0 1px 0 0!important;overflow:visible!important;pointer-events:none!important;
}
html body.v146131-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>time{
  position:static!important;display:block!important;width:auto!important;height:8px!important;
  margin:0!important;padding:0!important;color:#78908a!important;
  font:500 6.5px/8px system-ui,sans-serif!important;white-space:nowrap!important;transform:none!important;
}
html body.v146131-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>button{display:none!important}

/* Preserve v130 status placement while preventing inherited transforms/line-height from shifting it. */
html body.v146131-ui .v1469-chat-drawer .v146126-chat-name-line{align-items:center!important}
html body.v146131-ui .v1469-chat-drawer .v146126-chat-statuses{
  position:relative!important;top:0!important;bottom:auto!important;align-self:center!important;transform:none!important;
  height:14px!important;min-height:14px!important;max-height:14px!important;
}
html body.v146131-ui .v1469-chat-drawer .v146126-chat-statuses>.v14644-player-title,
html body.v146131-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge{
  width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;max-width:14px!important;max-height:14px!important;
  align-self:center!important;margin:0!important;transform:none!important;box-sizing:border-box!important;
}

/* ===== css/v146132-balance-chat-dungeon.css ===== */
/* Aldos RPG v1.146.132 — Warrior/Rogue balance UI + dungeon status docs + chat geometry.
   Existing assets only. No generated images. Gameplay changes live in server/state/content services. */

/* --------------------------------------------------------------------------
   CHAT MESSAGE GEOMETRY
   The previous 8px timestamp row sat too close to the clipped lower edge on
   one-line messages. Give identity, body and timestamp their own real rows.
   -------------------------------------------------------------------------- */
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message{
  height:auto!important;
  min-height:53px!important;
  max-height:none!important;
  padding:5px!important;
  align-items:start!important;
  overflow:hidden!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
  align-self:start!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  position:relative!important;
  display:grid!important;
  grid-template-rows:18px auto 11px!important;
  row-gap:1px!important;
  align-content:start!important;
  width:100%!important;
  min-width:0!important;
  min-height:43px!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

/* Identity row: nickname -> square statuses -> role. Nothing is vertically
   translated; every child uses the same 18px optical centre. */
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-message-head,
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-meta,
html body.v146132-ui .v1469-chat-drawer .v146126-chat-name-line{
  position:relative!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-meta{gap:0!important}
html body.v146132-ui .v1469-chat-drawer .v146126-chat-name-line{gap:4px!important}
html body.v146132-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{
  order:1!important;
  flex:0 1 auto!important;
  min-width:24px!important;
  max-width:44%!important;
  height:18px!important;
  margin:0!important;
  padding:0!important;
  font:850 10.8px/18px system-ui,sans-serif!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body.v146132-ui .v1469-chat-drawer .v146126-chat-statuses{
  order:2!important;
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  flex:0 0 auto!important;
  align-self:center!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  width:auto!important;
  min-width:0!important;
  max-width:52px!important;
  height:15px!important;
  min-height:15px!important;
  max-height:15px!important;
  margin:0!important;
  padding:0!important;
  line-height:0!important;
  overflow:visible!important;
  transform:none!important;
  translate:none!important;
  box-sizing:border-box!important;
}
html body.v146132-ui .v1469-chat-drawer .v146126-chat-statuses>.v14644-player-title{
  position:static!important;
  display:block!important;
  align-self:center!important;
  flex:0 0 15px!important;
  width:15px!important;
  min-width:15px!important;
  max-width:15px!important;
  height:15px!important;
  min-height:15px!important;
  max-height:15px!important;
  margin:0!important;
  padding:2px!important;
  border-radius:4px!important;
  object-fit:contain!important;
  object-position:center!important;
  vertical-align:middle!important;
  transform:none!important;
  translate:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html body.v146132-ui .v1469-chat-drawer .v146126-chat-statuses>.v14635-guardian-badges{
  position:static!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-self:center!important;
  flex:0 0 auto!important;
  gap:2px!important;
  width:auto!important;
  min-width:0!important;
  max-width:34px!important;
  height:15px!important;
  min-height:15px!important;
  max-height:15px!important;
  margin:0!important;
  padding:0!important;
  line-height:0!important;
  overflow:visible!important;
  transform:none!important;
  translate:none!important;
  box-sizing:border-box!important;
}
html body.v146132-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge{
  position:relative!important;
  display:inline-grid!important;
  place-items:center!important;
  align-self:center!important;
  flex:0 0 15px!important;
  width:15px!important;
  min-width:15px!important;
  max-width:15px!important;
  height:15px!important;
  min-height:15px!important;
  max-height:15px!important;
  margin:0!important;
  padding:2px!important;
  border-radius:4px!important;
  transform:none!important;
  translate:none!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html body.v146132-ui .v1469-chat-drawer .v146126-chat-statuses .v14635-guardian-badge .v14635-guardian-badge-art{
  display:block!important;
  width:11px!important;
  min-width:11px!important;
  max-width:11px!important;
  height:11px!important;
  min-height:11px!important;
  max-height:11px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
html body.v146132-ui .v1469-chat-drawer .v146126-role-level{
  order:3!important;
  position:static!important;
  flex:1 1 auto!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  color:#89a69e!important;
  font:650 7.4px/18px system-ui,sans-serif!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-sizing:border-box!important;
}
html body.v146132-ui .v1469-chat-drawer .v146126-role-level>span{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:18px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Message text grows naturally. The time is a separate visible footer row, so
   one-line messages cannot push it below the card. */
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  grid-row:2!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:12px!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  color:#d7dfdc!important;
  font:500 10.4px/1.18 system-ui,sans-serif!important;
  text-align:left!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  -webkit-line-clamp:unset!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{
  grid-row:3!important;
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  justify-self:stretch!important;
  align-self:start!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:11px!important;
  min-height:11px!important;
  max-height:11px!important;
  margin:0!important;
  padding:0 2px 1px 0!important;
  overflow:visible!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
  transform:none!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>time{
  position:static!important;
  display:block!important;
  width:auto!important;
  height:10px!important;
  margin:0!important;
  padding:0!important;
  color:#78908a!important;
  font:500 7px/10px system-ui,sans-serif!important;
  white-space:nowrap!important;
  transform:none!important;
  translate:none!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail>button{display:none!important}

/* --------------------------------------------------------------------------
   MODERATION SWIPE RIGHT
   Existing delete.webp asset only: icon square, no label text.
   -------------------------------------------------------------------------- */
html body.v146132-ui .v1469-chat-drawer .v146132-delete-hint{
  position:absolute!important;
  z-index:16!important;
  left:10px!important;
  top:50%!important;
  display:grid!important;
  place-items:center!important;
  width:31px!important;
  min-width:31px!important;
  max-width:31px!important;
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  margin:0!important;
  padding:6px!important;
  border:1px solid rgba(235,92,106,.62)!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,rgba(121,30,42,.97),rgba(65,17,27,.99))!important;
  box-shadow:0 4px 12px rgba(0,0,0,.26),inset 0 0 0 1px rgba(255,255,255,.04)!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-50%) scale(.88)!important;
  transition:opacity .08s linear,transform .08s linear!important;
  box-sizing:border-box!important;
}
html body.v146132-ui .v1469-chat-drawer .v146132-delete-hint>img{
  display:block!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:none!important;
  transform:none!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe .v146132-delete-hint{
  opacity:1!important;
  visibility:visible!important;
  transform:translateY(-50%) scale(1)!important;
}
html body.v146132-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe .v146132-delete-hint{
  opacity:0!important;
  visibility:hidden!important;
}

@media(max-width:380px){
  html body.v146132-ui .v1469-chat-drawer .v146123-chat-message{min-height:51px!important;padding:4px 5px!important}
  html body.v146132-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{grid-template-rows:17px auto 11px!important;min-height:42px!important}
  html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-message-head,
  html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-meta,
  html body.v146132-ui .v1469-chat-drawer .v146126-chat-name-line{height:17px!important;min-height:17px!important;max-height:17px!important}
  html body.v146132-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{font-size:10.2px!important;line-height:17px!important;max-width:41%!important}
  html body.v146132-ui .v1469-chat-drawer .v146126-role-level{height:17px!important;min-height:17px!important;max-height:17px!important;font-size:7px!important;line-height:17px!important}
  html body.v146132-ui .v1469-chat-drawer .v146126-role-level>span{height:17px!important}
  html body.v146132-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{font-size:10px!important}
}

/* ===== css/v146133-dungeon-expansion.css ===== */
/* Aldos RPG v1.146.133 — Slime Galleries procedural expansion.
   Generated asset sheets were cut into individual WebP game assets. */

html body.v146133-ui .v14640-dungeon .v14643-scene{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(156,194,118,.34);
  background:linear-gradient(180deg,rgba(9,24,22,.98),rgba(5,15,15,.99));
  box-shadow:0 12px 34px rgba(0,0,0,.34),inset 0 0 0 1px rgba(213,232,177,.035);
}
html body.v146133-ui .v14640-dungeon .v14643-scene::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  border:1px solid rgba(164,214,130,.12);border-radius:inherit;
  background:radial-gradient(circle at 18% 2%,rgba(139,184,83,.075),transparent 32%),radial-gradient(circle at 84% 100%,rgba(73,137,104,.075),transparent 34%);
}
html body.v146133-ui .v14640-dungeon .v14643-scene-head,
html body.v146133-ui .v14640-dungeon .v14643-scene-copy{position:relative;z-index:3}
html body.v146133-ui .v14640-dungeon .v14643-scene-art{
  position:relative;isolation:isolate;min-height:196px;overflow:hidden;
  border-block:1px solid rgba(165,209,132,.17);background:#071210;
}
html body.v146133-ui .v14640-dungeon .v14643-scene-art>.background{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:center!important;filter:brightness(.52) saturate(.85) contrast(1.08)!important;transform:none!important;
}
html body.v146133-ui .v14640-dungeon .v14643-scene-art::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(2,8,8,.10),rgba(2,8,8,.32) 66%,rgba(2,8,8,.72)),radial-gradient(circle at 50% 48%,transparent 26%,rgba(0,0,0,.31) 78%);
}
html body.v146133-ui .v14640-dungeon .v14643-scene-art>.object{
  position:absolute!important;z-index:2!important;left:50%!important;top:50%!important;
  width:min(62%,270px)!important;height:84%!important;max-width:270px!important;max-height:184px!important;
  object-fit:contain!important;object-position:center!important;transform:translate(-50%,-48%)!important;
  filter:drop-shadow(0 12px 16px rgba(0,0,0,.58)) drop-shadow(0 0 10px rgba(137,183,80,.12))!important;
}
html body.v146133-ui .v14640-dungeon [data-v146133-event="expedition_cache"] .v14643-scene-art>.object,
html body.v146133-ui .v14640-dungeon [data-v146133-event="fallen_echo"] .v14643-scene-art>.object{width:min(70%,300px)!important}
html body.v146133-ui .v14640-dungeon [data-v146133-event="living_retort"] .v14643-scene-art>.object,
html body.v146133-ui .v14640-dungeon [data-v146133-event="heart_contagion"] .v14643-scene-art>.object{height:90%!important;max-height:192px!important}
html body.v146133-ui .v14640-dungeon .v14643-choice{
  border:1px solid rgba(155,206,124,.27)!important;border-radius:13px!important;
  background:linear-gradient(180deg,rgba(16,39,34,.94),rgba(7,23,21,.98))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 8px 22px rgba(0,0,0,.19)!important;
}
html body.v146133-ui .v14640-dungeon .v14643-choice>button,
html body.v146133-ui .v14640-dungeon button.primary.big{
  border:1px solid rgba(180,218,125,.42)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 5px 16px rgba(0,0,0,.25)!important;
}

/* Hidden retort: no recipe numbers are revealed by the UI. */
html body.v146133-ui .v146133-retort{display:grid;gap:9px;margin-top:8px}
html body.v146133-ui .v146133-retort-warning{
  padding:10px 11px;border:1px solid rgba(194,139,91,.35);border-radius:11px;
  background:linear-gradient(180deg,rgba(70,42,27,.38),rgba(27,22,18,.46));
}
html body.v146133-ui .v146133-retort-warning b{display:block;color:#e7c699;font-size:12px;margin-bottom:3px}
html body.v146133-ui .v146133-retort-warning p{margin:0!important;font-size:9px!important;line-height:1.35!important;color:#bda992!important}
html body.v146133-ui .v146133-retort-grid{display:grid;grid-template-columns:1fr;gap:6px}
html body.v146133-ui .v146133-retort-grid article{
  display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 7px;
  border:1px solid rgba(131,176,117,.23);border-radius:10px;background:rgba(5,20,18,.72);
}
html body.v146133-ui .v146133-retort-grid article>img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.38))}
html body.v146133-ui .v146133-retort-grid article>div{min-width:0;display:grid;gap:1px}
html body.v146133-ui .v146133-retort-grid article>div b{font-size:9.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d8e5d6}
html body.v146133-ui .v146133-retort-grid article>div small{font-size:7.8px;color:#839b8d}
html body.v146133-ui .v146133-retort-counter{display:grid;grid-template-columns:26px 33px 26px;align-items:center;overflow:hidden;border:1px solid rgba(157,194,134,.28);border-radius:8px;background:#081714}
html body.v146133-ui .v146133-retort-counter button{width:26px;height:28px;padding:0!important;border:0!important;border-radius:0!important;background:rgba(92,132,85,.16)!important;color:#cfe5bf!important;font-size:17px!important;line-height:28px!important}
html body.v146133-ui .v146133-retort-counter input{width:33px;height:28px;padding:0;border:0;outline:0;background:transparent;color:#ecf4e7;text-align:center;font:800 10px/28px system-ui;-moz-appearance:textfield}
html body.v146133-ui .v146133-retort-counter input::-webkit-inner-spin-button{display:none}
html body.v146133-ui .v146133-retort-known{margin:0!important;padding:7px 8px;border-left:2px solid rgba(103,181,139,.58);background:rgba(50,95,74,.11);font-size:8.4px!important;line-height:1.35!important;color:#9fbaaa!important}
html body.v146133-ui .v146133-retort-known b{color:#cde6d2}
html body.v146133-ui .v146133-retort-submit{margin-top:0!important}

/* Marek's rare every-third-visit potion exchange. */
html body.v146133-ui .v146133-marek-exchange,
html body.v146133-ui .v146133-marek-potion.claimed{
  margin:0 0 10px;padding:10px;border:1px solid rgba(212,174,82,.36);border-radius:13px;
  background:radial-gradient(circle at 10% 0,rgba(219,177,66,.10),transparent 36%),linear-gradient(180deg,rgba(39,32,21,.98),rgba(18,19,17,.98));
  box-shadow:0 8px 24px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,231,151,.035);
}
html body.v146133-ui .v146133-marek-exchange>header,
html body.v146133-ui .v146133-marek-potion.claimed{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:9px;align-items:center}
html body.v146133-ui .v146133-marek-exchange>header>span,
html body.v146133-ui .v146133-marek-potion.claimed>span{display:grid;place-items:center;width:58px;height:58px;border:1px solid rgba(218,179,88,.25);border-radius:11px;background:rgba(5,11,10,.66);overflow:hidden}
html body.v146133-ui .v146133-marek-exchange>header>span img,
html body.v146133-ui .v146133-marek-potion.claimed>span img{width:52px!important;height:52px!important;object-fit:contain!important}
html body.v146133-ui .v146133-marek-exchange h3{margin:1px 0 3px;color:#e7cf91;font-size:13px}
html body.v146133-ui .v146133-marek-exchange small,
html body.v146133-ui .v146133-marek-potion.claimed small{color:#aa8d52;font-size:7.5px;font-weight:800;letter-spacing:.05em}
html body.v146133-ui .v146133-marek-exchange p,
html body.v146133-ui .v146133-marek-potion.claimed p{margin:0;color:#c4c0af;font-size:9px;line-height:1.35}
html body.v146133-ui .v146133-marek-exchange label{display:grid;gap:4px;margin-top:9px;color:#a8ad9f;font-size:8px}
html body.v146133-ui .v146133-marek-exchange select{width:100%;min-width:0;padding:8px;border:1px solid rgba(204,172,93,.30);border-radius:9px;background:#121a17;color:#e5e2d8;font-size:9px}
html body.v146133-ui .v146133-marek-exchange .v146133-marek-warning{margin:7px 0!important;padding:7px;border:1px solid rgba(189,91,74,.22);border-radius:8px;background:rgba(92,36,27,.14);color:#bca49b!important;font-size:8px!important}
html body.v146133-ui .v146133-marek-exchange>button{width:100%;min-height:34px;border:1px solid rgba(211,176,85,.42);border-radius:9px;background:linear-gradient(180deg,#615027,#352d1d);color:#f0dda5;font-weight:800;font-size:9px}

/* Dungeon admin teleport controls. */
html body.v146133-ui .v146133-admin-run{display:grid;gap:7px;padding:10px;margin-bottom:8px;border:1px solid rgba(94,151,130,.28);border-radius:12px;background:rgba(7,25,23,.74)}
html body.v146133-ui .v146133-admin-run>header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
html body.v146133-ui .v146133-admin-run>header span{display:grid;min-width:0}
html body.v146133-ui .v146133-admin-run>header small{font-size:7px;color:#729c8d}
html body.v146133-ui .v146133-admin-run>header b{font-size:12px;color:#d7e5df}
html body.v146133-ui .v146133-admin-run>header em{font-size:8px;color:#99ae9f;font-style:normal;text-align:right}
html body.v146133-ui .v146133-admin-run p{margin:0;font-size:8px;color:#82978e;overflow-wrap:anywhere}
html body.v146133-ui .v146133-admin-run label{display:grid;gap:3px;color:#91a69c;font-size:8px}
html body.v146133-ui .v146133-admin-run select,
html body.v146133-ui .v146133-admin-run input{width:100%;padding:7px;border:1px solid rgba(114,161,144,.28);border-radius:8px;background:#071713;color:#dce9e4;font-size:9px}
html body.v146133-ui .v146133-admin-run>button{min-height:34px;border:1px solid rgba(93,171,139,.38);border-radius:9px;background:linear-gradient(180deg,#244f44,#15362f);color:#d9eee7;font-size:9px;font-weight:800}
html body.v146133-ui .v146133-admin-run>button:disabled{opacity:.42}

@media (max-width:560px){
  html body.v146133-ui .v14640-dungeon .v14643-scene-art{min-height:178px}
  html body.v146133-ui .v14640-dungeon .v14643-scene-art>.object{width:min(68%,238px)!important;height:86%!important;max-height:166px!important}
  html body.v146133-ui .v146133-marek-exchange>header{grid-template-columns:52px minmax(0,1fr)}
  html body.v146133-ui .v146133-marek-exchange>header>span{width:50px;height:50px}
  html body.v146133-ui .v146133-marek-exchange>header>span img{width:44px!important;height:44px!important}
}

/* Per-event visual language: one structural frame, different danger/reward accents. */
html body.v146133-ui .v14640-dungeon [data-v146133-event="expedition_cache"],
html body.v146133-ui .v14640-dungeon [data-v146133-event="fallen_echo"]{--v133-accent:187,153,73}
html body.v146133-ui .v14640-dungeon [data-v146133-event="heart_contagion"],
html body.v146133-ui .v14640-dungeon [data-v146133-event="hungry_wall"],
html body.v146133-ui .v14640-dungeon [data-v146133-event="prison_cell"]{--v133-accent:170,69,74}
html body.v146133-ui .v14640-dungeon [data-v146133-event="twisted_spring"],
html body.v146133-ui .v14640-dungeon [data-v146133-event="spore_cloud_v133"],
html body.v146133-ui .v14640-dungeon [data-v146133-event="colony_incubator"]{--v133-accent:121,177,82}
html body.v146133-ui .v14640-dungeon [data-v146133-event="gallery_memory"],
html body.v146133-ui .v14640-dungeon [data-v146133-event="contagion_altar"],
html body.v146133-ui .v14640-dungeon [data-v146133-event="living_retort"]{--v133-accent:115,125,188}
html body.v146133-ui .v14640-dungeon [data-v146133-event]{
  border-color:rgba(var(--v133-accent,156,194,118),.42);
  box-shadow:0 12px 34px rgba(0,0,0,.34),inset 0 0 0 1px rgba(var(--v133-accent,156,194,118),.07);
}
html body.v146133-ui .v14640-dungeon [data-v146133-event] .v14643-scene-head small{color:rgba(var(--v133-accent,156,194,118),.92)}
html body.v146133-ui .v14640-dungeon [data-v146133-event] .v14643-choice{border-color:rgba(var(--v133-accent,156,194,118),.32)!important}
html body.v146133-ui .v14640-dungeon [data-v146133-event] .v14643-choice>button,
html body.v146133-ui .v14640-dungeon [data-v146133-event] button.primary.big{
  border-color:rgba(var(--v133-accent,156,194,118),.48)!important;
  background:linear-gradient(180deg,rgba(var(--v133-accent,156,194,118),.20),rgba(8,24,21,.96))!important;
}
html body.v146133-ui .v14640-dungeon [data-v146133-event] .v14643-choice>button:active,
html body.v146133-ui .v14640-dungeon [data-v146133-event] button.primary.big:active{transform:translateY(1px);filter:brightness(1.08)}

/* Timed Marek potion effects remain visible in the character profile. */
html body.v146133-ui .v146133-profile-boosts{grid-column:1/-1;display:grid;gap:6px;padding:8px 9px;border:1px solid rgba(199,166,83,.28);border-radius:12px;background:linear-gradient(180deg,rgba(38,32,21,.78),rgba(12,21,18,.82))}
html body.v146133-ui .v146133-profile-boosts>header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
html body.v146133-ui .v146133-profile-boosts>header small{font-size:7px;color:#aa8d52;font-weight:900;letter-spacing:.08em}
html body.v146133-ui .v146133-profile-boosts>header b{font-size:9px;color:#d8c994}
html body.v146133-ui .v146133-profile-boosts>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html body.v146133-ui .v146133-profile-boosts article{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:7px;padding:5px 7px;border:1px solid rgba(178,150,83,.20);border-radius:9px;background:rgba(7,18,16,.64)}
html body.v146133-ui .v146133-profile-boosts img{width:32px;height:32px;object-fit:contain}
html body.v146133-ui .v146133-profile-boosts span{display:grid;min-width:0}
html body.v146133-ui .v146133-profile-boosts span b{font-size:9px;color:#e5dec5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.v146133-ui .v146133-profile-boosts span small{font-size:7.5px;color:#9ca79d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.v146133-ui .v146133-profile-boosts em{font-size:9px;color:#d8bd69;font-style:normal;font-weight:900}
@media (max-width:560px){html body.v146133-ui .v146133-profile-boosts>div{grid-template-columns:1fr}}

/* v1.146.133 — Голодная стена: destructive selection is explicit, never automatic. */
html body.v146133-ui .v146133-hungry-picker{display:grid;gap:5px;margin:7px 0;padding:8px;border:1px solid rgba(177,79,78,.30);border-radius:9px;background:rgba(62,20,22,.20)}
html body.v146133-ui .v146133-hungry-picker>b{font-size:8.5px;color:#d7b4aa}
html body.v146133-ui .v146133-hungry-picker select{width:100%;min-width:0;padding:8px;border:1px solid rgba(181,103,94,.30);border-radius:8px;background:#170d0e;color:#e6d8d2;font-size:9px}
html body.v146133-ui .v146133-hungry-picker small,html body.v146133-ui .v146133-hungry-picker p{margin:0!important;color:#aa908a!important;font-size:7.7px!important;line-height:1.4!important}

/* ===== css/v146134-dungeon-admin-asset-hotfix.css ===== */
/* Aldos RPG v1.146.134 — dungeon admin / asset / action / Pit hotfix. No new image generation. */

/* Corrected v134 cutouts: never stretch an asset into a fixed rectangle. */
html body.v146134-ui .v14640-dungeon .v14643-scene-art>.object{
  width:auto!important;height:auto!important;max-width:min(70%,300px)!important;max-height:86%!important;
  object-fit:contain!important;object-position:center!important;transform:translate(-50%,-50%)!important;
  clip-path:none!important;border-radius:0!important;
}
html body.v146134-ui .v14640-dungeon [data-v146133-event="expedition_cache"] .v14643-scene-art>.object{max-width:min(72%,310px)!important;max-height:78%!important}
html body.v146134-ui .v14640-dungeon [data-v146133-event="living_retort"] .v14643-scene-art>.object,
html body.v146134-ui .v14640-dungeon [data-v146133-event="heart_contagion"] .v14643-scene-art>.object,
html body.v146134-ui .v14640-dungeon [data-v146133-event="frozen_cocoon"] .v14643-scene-art>.object{max-width:min(58%,250px)!important;max-height:90%!important}
html body.v146134-ui img[src*="assets/v146134/slime-dungeon/"]{object-fit:contain!important;object-position:center!important}
html body.v146134-ui :is(.battle-monster-art,.monster-art,.v119-monster-art,.v14643-scene-art) img[src*="/v146134/slime-dungeon/monster_"]{transform:none!important;clip-path:none!important;max-width:100%!important;max-height:100%!important}

/* Main dungeon actions must stay readable at every animation frame. */
html body.v146134-ui .v14640-dungeon :is(button[data-dungeon-advance],button[data-dungeon-battle],button.v146133-retort-submit),
html body.v146134-ui .v14643-moment>button.primary[data-dungeon-moment-close]{
  position:relative!important;isolation:isolate!important;opacity:1!important;visibility:visible!important;
  min-height:44px!important;border:1px solid #92c95b!important;border-radius:12px!important;
  background:linear-gradient(180deg,#4d7d25 0%,#315d19 52%,#244612 100%)!important;
  background-image:linear-gradient(180deg,#4d7d25 0%,#315d19 52%,#244612 100%)!important;
  background-size:100% 100%!important;background-position:center!important;
  color:#f4ffe8!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important;
  box-shadow:inset 0 0 0 1px rgba(231,255,189,.12),0 6px 14px rgba(0,0,0,.30)!important;
  filter:none!important;animation:none!important;transition:transform .08s ease,filter .08s ease!important;
  font-weight:850!important;
}
html body.v146134-ui .v14640-dungeon :is(button[data-dungeon-advance],button[data-dungeon-battle],button.v146133-retort-submit)::before,
html body.v146134-ui .v14640-dungeon :is(button[data-dungeon-advance],button[data-dungeon-battle],button.v146133-retort-submit)::after,
html body.v146134-ui .v14643-moment>button.primary[data-dungeon-moment-close]::before,
html body.v146134-ui .v14643-moment>button.primary[data-dungeon-moment-close]::after{content:none!important;display:none!important;animation:none!important}
html body.v146134-ui .v14640-dungeon :is(button[data-dungeon-advance],button[data-dungeon-battle],button.v146133-retort-submit):not(:disabled):active,
html body.v146134-ui .v14643-moment>button.primary[data-dungeon-moment-close]:not(:disabled):active{transform:translateY(1px)!important;filter:brightness(1.07)!important}
html body.v146134-ui .v14640-dungeon :is(button[data-dungeon-advance],button[data-dungeon-battle],button.v146133-retort-submit):disabled{opacity:.42!important;color:#c7d2bd!important;animation:none!important}
html body.v146134-ui .v14643-moment>.primary[data-dungeon-moment-close]{width:100%!important;max-width:230px!important;justify-self:start!important;padding-inline:16px!important}

/* Pit: restore the illustrated scene explicitly and keep it inside its frame. */
html body.v146134-ui.v146100-pit-screen-active .v146100-pit-main,
html body.v146134-ui .v146101-pit-main{
  background-color:#021013!important;
  background-image:linear-gradient(180deg,rgba(0,8,11,.12),rgba(0,7,10,.64)),url("../assets/v146102/ui/pit-fullscreen-background.webp")!important;
  background-size:cover,cover!important;background-position:center,center!important;background-repeat:no-repeat,no-repeat!important;
}
html body.v146134-ui .v146101-pit-main .v146114-pit-scene,
html body.v146134-ui .v146101-pit-main .v119-pit-scene{
  position:relative!important;overflow:hidden!important;
  background-color:#031216!important;
  background-image:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,8,11,.22) 58%,rgba(0,8,11,.58)),url("../assets/v146102/ui/pit-fullscreen-background.webp")!important;
  background-size:cover,cover!important;background-position:center bottom,center bottom!important;background-repeat:no-repeat,no-repeat!important;
}
html body.v146134-ui .v146116-dungeon-instance>.v146128-dungeon-pit-card{
  background-color:#041416!important;
  background-image:linear-gradient(90deg,rgba(2,14,16,.58),rgba(2,17,17,.88) 72%),url("../assets/v14699/location-ui/loot-pit-background-clear.webp")!important;
  background-size:cover,cover!important;background-position:center,left center!important;background-repeat:no-repeat,no-repeat!important;
}
html body.v146134-ui .v146128-dungeon-pit-card>.v119-pit-art{
  background-color:#061719!important;
  background-image:url("../assets/v14699/location-ui/loot-pit-background-clear.webp")!important;
  background-size:cover!important;background-position:left center!important;background-repeat:no-repeat!important;
}
html body.v146134-ui .v146128-dungeon-pit-card .v146101-pit-mini-icon{object-fit:contain!important;object-position:center!important;transform:none!important;padding:2px!important}

/* Full admin teleport catalog. */
html body.v146134-ui .v146134-admin-run{gap:9px!important}
html body.v146134-ui .v146134-admin-room-block{display:grid;gap:6px;padding:9px;border:1px solid rgba(102,167,143,.25);border-radius:10px;background:rgba(4,19,18,.55)}
html body.v146134-ui .v146134-admin-room-block.catalog{border-color:rgba(173,196,96,.30);background:linear-gradient(180deg,rgba(29,51,27,.42),rgba(5,22,19,.56))}
html body.v146134-ui .v146134-admin-room-block>b{font-size:9px;color:#d4e4da}
html body.v146134-ui .v146134-admin-room-block>small{font-size:7.5px;line-height:1.35;color:#91a69c}
html body.v146134-ui .v146134-admin-room-block>button{width:100%;min-height:36px;padding:7px 10px;border:1px solid rgba(117,193,153,.48);border-radius:9px;background:linear-gradient(180deg,#285849,#173d34);color:#e5f6ef;font-size:9px;font-weight:850}
html body.v146134-ui .v146134-admin-room-block.catalog>button{border-color:rgba(178,211,100,.54);background:linear-gradient(180deg,#496a25,#294617);color:#f0f8d9}
html body.v146134-ui .v146134-admin-room-block>button:disabled{opacity:.40!important;filter:none!important;animation:none!important}
html body.v146134-ui .v146134-admin-room-block select{max-height:44px!important}

@media(max-width:560px){
  html body.v146134-ui .v14640-dungeon .v14643-scene-art>.object{max-width:min(72%,260px)!important;max-height:84%!important}
  html body.v146134-ui .v14643-moment>.primary[data-dungeon-moment-close]{max-width:none!important;justify-self:stretch!important}
}

/* ===== css/v146135-dungeon-assets-merchant-events.css ===== */
/* Aldos RPG v1.146.135 — clean dungeon cutouts, white actions, Marek epic picker, event exit. No new images. */

/* Use the clean v135 cutouts at their native aspect ratio; never stretch or clip them into a forced rectangle. */
html body.v146135-ui .v14640-dungeon .v14643-scene-art>.object{
  width:auto!important;height:auto!important;
  max-width:min(68%,292px)!important;max-height:82%!important;
  object-fit:contain!important;object-position:center!important;
  transform:translate(-50%,-50%)!important;
  clip-path:none!important;border-radius:0!important;
  padding:0!important;margin:0!important;
}
html body.v146135-ui .v14640-dungeon [data-v146133-event="expedition_cache"] .v14643-scene-art>.object{
  max-width:min(64%,280px)!important;max-height:76%!important;
}
html body.v146135-ui .v14640-dungeon [data-v146133-event="living_retort"] .v14643-scene-art>.object,
html body.v146135-ui .v14640-dungeon [data-v146133-event="heart_contagion"] .v14643-scene-art>.object,
html body.v146135-ui .v14640-dungeon [data-v146133-event="frozen_cocoon"] .v14643-scene-art>.object{
  max-width:min(56%,244px)!important;max-height:82%!important;
}
html body.v146135-ui img[src*="assets/v146135/slime-dungeon/"]{
  object-fit:contain!important;object-position:center!important;
}
html body.v146135-ui :is(.battle-monster-art,.monster-art,.v119-monster-art,.v14643-scene-art) img[src*="/v146135/slime-dungeon/monster_"]{
  clip-path:none!important;object-fit:contain!important;object-position:center!important;
}

/* Dungeon primary actions are deliberately white and static. */
html body.v146135-ui .v14640-dungeon button.primary.big,
html body.v146135-ui .v14640-dungeon :is(
  button[data-dungeon-vote],
  button[data-dungeon-event],
  button[data-dungeon-advance],
  button[data-dungeon-battle],
  button[data-dungeon-retort],
  button[data-dungeon-retort-leave]
),
html body.v146135-ui .v14643-moment>button.primary[data-dungeon-moment-close]{
  position:relative!important;isolation:isolate!important;
  min-height:44px!important;
  border:1px solid rgba(255,255,255,.94)!important;
  border-radius:12px!important;
  background:#f7f8f4!important;background-image:none!important;
  color:#12261d!important;text-shadow:none!important;
  box-shadow:0 5px 14px rgba(0,0,0,.30),inset 0 0 0 1px rgba(24,68,48,.08)!important;
  filter:none!important;animation:none!important;
  opacity:1!important;visibility:visible!important;
  font-weight:850!important;
  transition:transform .08s ease,background-color .08s ease!important;
}
html body.v146135-ui .v14640-dungeon button.primary.big::before,
html body.v146135-ui .v14640-dungeon button.primary.big::after,
html body.v146135-ui .v14640-dungeon :is(button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-retort-leave])::before,
html body.v146135-ui .v14640-dungeon :is(button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-retort-leave])::after{
  content:none!important;display:none!important;animation:none!important;
}
html body.v146135-ui .v14640-dungeon button.primary.big:not(:disabled):active,
html body.v146135-ui .v14640-dungeon :is(button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-retort-leave]):not(:disabled):active{
  transform:translateY(1px)!important;background:#e9ece6!important;
}
html body.v146135-ui .v14640-dungeon :is(button.primary.big,button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-retort-leave]):disabled{
  opacity:.44!important;background:#e5e7e3!important;color:#56635d!important;animation:none!important;filter:none!important;
}

/* Living Retort always has a visible way to leave the event. */
html body.v146135-ui .v146135-retort-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
html body.v146135-ui .v146135-retort-actions>button{width:100%!important;margin:0!important}
html body.v146135-ui .v146135-retort-leave{border-color:#dfe7e2!important}

/* Marek: special offer opens a proper mini-card picker instead of a native select. */
html body.v146135-ui .v146135-marek-exchange{display:grid;gap:10px}
html body.v146135-ui .v146135-marek-open-picker{
  width:100%;min-height:44px;padding:9px 14px;border:1px solid rgba(196,162,96,.68);
  border-radius:11px;background:linear-gradient(180deg,#4b3d22,#2d2518);
  color:#fff5d2;font-weight:850;font-size:13px;box-shadow:0 5px 14px rgba(0,0,0,.28)
}
html body.v146135-ui .v146135-marek-epic-panel{
  display:grid;gap:9px;padding:10px;border:1px solid rgba(172,105,220,.44);
  border-radius:12px;background:linear-gradient(180deg,rgba(35,17,48,.96),rgba(9,20,20,.98));
  max-height:min(48vh,360px);overflow:hidden
}
html body.v146135-ui .v146135-marek-epic-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
html body.v146135-ui .v146135-marek-epic-panel>header div{display:grid;gap:2px}
html body.v146135-ui .v146135-marek-epic-panel>header small{font-size:9px;color:#caa8df;letter-spacing:.08em}
html body.v146135-ui .v146135-marek-epic-panel>header b{font-size:13px;color:#f4e9fb}
html body.v146135-ui .v146135-marek-epic-panel>header button{
  width:34px;height:34px;border-radius:9px;border:1px solid rgba(213,180,120,.50);
  background:#182521;color:#ffe5a7;font-size:22px;line-height:1
}
html body.v146135-ui .v146135-marek-epic-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
  overflow:auto;min-height:0;padding-right:2px
}
html body.v146135-ui .v146135-marek-epic-card{
  display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;
  gap:5px 8px;align-items:center;text-align:left;padding:7px;
  border:1px solid rgba(184,107,232,.48);border-radius:10px;
  background:linear-gradient(145deg,rgba(78,35,99,.66),rgba(20,23,28,.94));
  color:#f8f0ff;min-width:0
}
html body.v146135-ui .v146135-marek-epic-art{
  grid-row:1/3;width:58px;height:58px;display:grid;place-items:center;
  overflow:hidden;border:1px solid rgba(210,155,242,.38);border-radius:8px;
  background:rgba(10,11,14,.56)
}
html body.v146135-ui .v146135-marek-epic-art img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:3px}
html body.v146135-ui .v146135-marek-epic-copy{display:grid;gap:2px;min-width:0}
html body.v146135-ui .v146135-marek-epic-copy small{font-size:8px;color:#d9adf0}
html body.v146135-ui .v146135-marek-epic-copy b{font-size:11px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
html body.v146135-ui .v146135-marek-epic-copy em{font-size:8.5px;color:#aebcb4;font-style:normal}
html body.v146135-ui .v146135-marek-epic-card>strong{
  grid-column:2;justify-self:start;font-size:9px;color:#ffe7a7;padding:3px 7px;
  border:1px solid rgba(224,187,111,.35);border-radius:7px;background:rgba(86,58,22,.45)
}
html body.v146135-ui .v146135-marek-empty{margin:0;padding:12px;border:1px dashed rgba(187,151,205,.34);border-radius:9px;color:#c9c7cb;text-align:center}

@media(max-width:560px){
  html body.v146135-ui .v14640-dungeon .v14643-scene-art>.object{max-width:min(66%,264px)!important;max-height:80%!important}
  html body.v146135-ui .v146135-retort-actions{grid-template-columns:1fr}
  html body.v146135-ui .v146135-marek-epic-grid{grid-template-columns:1fr}
  html body.v146135-ui .v146135-marek-epic-panel{max-height:min(52vh,390px)}
}


/* v135 potion mini-cards: the asset is always visible and the main effect is readable at a glance. */
html body.v146135-ui .v39-item-icon-wrap{position:relative!important}
html body.v146135-ui .v146135-potion-mini-badge{
  position:absolute;left:5px;bottom:5px;z-index:6;max-width:calc(100% - 10px);
  padding:3px 6px;border-radius:7px;border:1px solid rgba(255,255,255,.38);
  background:rgba(5,16,14,.90);color:#fff;font-size:8px;line-height:1.05;font-weight:900;
  letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  box-shadow:0 2px 8px rgba(0,0,0,.42);pointer-events:none
}
html body.v146135-ui .v122-item-value.v146135-potion-quick b{font-size:9px!important;white-space:nowrap!important}
html body.v146135-ui .v146135-compact-potion-stat{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border-radius:7px;background:rgba(255,255,255,.06);font-size:9px;font-weight:850;color:#f2f6f3}

html body.v146135-ui .v81-potion-card.v146135-potion-card{position:relative!important;padding-right:10px!important;overflow:hidden!important}
html body.v146135-ui .v81-potion-card.v146135-potion-card .v81-potion-art{position:relative!important;overflow:visible!important}
html body.v146135-ui .v81-potion-card.v146135-potion-card .v81-potion-art img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146135-ui .v146135-potion-effect-badge{
  grid-column:2!important;justify-self:start;display:inline-flex;align-items:center;min-height:19px;
  margin-top:3px;padding:3px 6px;border-radius:7px;border:1px solid rgba(217,232,221,.34);
  background:rgba(8,22,18,.88);color:#fff;font-size:8px;line-height:1;font-weight:900;
  white-space:nowrap;letter-spacing:.02em
}

html body.v146135-ui .v146135-marek-potion-art{position:relative!important;display:grid!important;place-items:center!important;overflow:visible!important}
html body.v146135-ui .v146135-marek-potion-art>img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146135-ui .v146135-marek-potion-art>i{
  position:absolute;left:50%;bottom:-4px;transform:translateX(-50%);z-index:4;
  padding:3px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.55);
  background:#f7f8f4;color:#16251d;font-size:8px;font-style:normal;font-weight:950;
  white-space:nowrap;box-shadow:0 3px 9px rgba(0,0,0,.38)
}

/* ===== css/v146136-potion-dungeon-ui.css ===== */
/* Aldos RPG v1.146.136 — original dungeon button backgrounds + white text, minimal potion cards, compact battle potions. No image generation. */

/* Keep the old green dungeon button background; only the text is white. */
html body.v146136-ui .v14640-dungeon button.primary.big,
html body.v146136-ui .v14640-dungeon :is(
  button[data-dungeon-vote],
  button[data-dungeon-event],
  button[data-dungeon-advance],
  button[data-dungeon-battle],
  button[data-dungeon-retort],
  button[data-dungeon-retort-leave]
),
html body.v146136-ui .v14643-moment>button.primary[data-dungeon-moment-close]{
  position:relative!important;isolation:isolate!important;min-height:44px!important;
  border:1px solid #92c95b!important;border-radius:12px!important;
  background:linear-gradient(180deg,#4d7d25 0%,#315d19 52%,#244612 100%)!important;
  background-image:linear-gradient(180deg,#4d7d25 0%,#315d19 52%,#244612 100%)!important;
  background-size:100% 100%!important;background-position:center!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.78)!important;
  box-shadow:inset 0 0 0 1px rgba(231,255,189,.12),0 6px 14px rgba(0,0,0,.30)!important;
  filter:none!important;animation:none!important;opacity:1!important;visibility:visible!important;
  font-weight:850!important;transition:transform .08s ease,filter .08s ease!important
}
html body.v146136-ui .v14640-dungeon button.primary.big::before,
html body.v146136-ui .v14640-dungeon button.primary.big::after,
html body.v146136-ui .v14640-dungeon :is(button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-advance],button[data-dungeon-battle],button[data-dungeon-retort],button[data-dungeon-retort-leave])::before,
html body.v146136-ui .v14640-dungeon :is(button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-advance],button[data-dungeon-battle],button[data-dungeon-retort],button[data-dungeon-retort-leave])::after,
html body.v146136-ui .v14643-moment>button.primary[data-dungeon-moment-close]::before,
html body.v146136-ui .v14643-moment>button.primary[data-dungeon-moment-close]::after{content:none!important;display:none!important;animation:none!important}
html body.v146136-ui .v14640-dungeon :is(button.primary.big,button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-advance],button[data-dungeon-battle],button[data-dungeon-retort],button[data-dungeon-retort-leave]):not(:disabled):active,
html body.v146136-ui .v14643-moment>button.primary[data-dungeon-moment-close]:not(:disabled):active{transform:translateY(1px)!important;filter:brightness(1.07)!important}
html body.v146136-ui .v14640-dungeon :is(button.primary.big,button[data-dungeon-vote],button[data-dungeon-event],button[data-dungeon-advance],button[data-dungeon-battle],button[data-dungeon-retort],button[data-dungeon-retort-leave]):disabled{opacity:.42!important;color:#eef9e7!important;-webkit-text-fill-color:#eef9e7!important;animation:none!important;filter:none!important}

/* Dungeon Pit mini-card: do not touch its background; only make the lower action text white. */
html body.v146136-ui .v146128-dungeon-pit-card>em,
html body.v146136-ui .v146128-dungeon-pit-card :is(em,.v119-pit-action,.v146101-pit-action){color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.8)!important}

/* Inventory mini potion cards: no Event/one-trade clutter and no duplicate badge over the art. */
html body.v146136-ui .v119-item-card.type-consumable .v125-item-tags,
html body.v146136-ui .v119-item-card.type-consumable .v127-item-primary-tag,
html body.v146136-ui .v119-item-card.type-consumable .v146135-potion-mini-badge{display:none!important}
html body.v146136-ui .v119-item-card.type-consumable .v124-item-meta{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:27px!important;padding:0!important}
html body.v146136-ui .v119-item-card.type-consumable .v122-item-quick{width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important}
html body.v146136-ui .v119-item-card.type-consumable .v146135-potion-quick{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:25px!important;max-width:100%!important;padding:4px 8px!important;border:1px solid rgba(219,236,227,.34)!important;border-radius:8px!important;background:rgba(7,20,17,.76)!important;color:#fff!important}
html body.v146136-ui .v119-item-card.type-consumable .v146135-potion-quick :is(img,svg,.v83-ui-icon){display:none!important}
html body.v146136-ui .v119-item-card.type-consumable .v146135-potion-quick b{font-size:10px!important;line-height:1!important;color:#fff!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}

/* Battle “Potions and help”: compact 2-column cards with a visible framed background. */
html body.v146136-ui.v111-battle-active .v81-potion-strip,
html body.v146136-ui.v111-battle-active .v59-potion-strip{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;overflow:visible!important;padding:4px 1px 8px!important;scroll-snap-type:none!important
}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card{
  width:100%!important;min-width:0!important;max-width:none!important;min-height:64px!important;
  display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
  align-items:center!important;gap:2px 7px!important;padding:6px 7px!important;
  border:1px solid rgba(126,180,157,.46)!important;border-radius:11px!important;
  background:linear-gradient(145deg,rgba(17,45,39,.97),rgba(6,18,20,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 4px 10px rgba(0,0,0,.25)!important;
  text-align:left!important;overflow:hidden!important;flex:none!important
}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card.health{border-color:rgba(111,196,115,.56)!important;background:linear-gradient(145deg,rgba(27,67,36,.98),rgba(7,25,19,.98))!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card.mana{border-color:rgba(90,160,216,.58)!important;background:linear-gradient(145deg,rgba(21,48,76,.98),rgba(7,21,31,.98))!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card.effect-v146133_dungeon_shield{border-color:rgba(184,194,96,.58)!important;background:linear-gradient(145deg,rgba(56,66,28,.98),rgba(17,27,20,.98))!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card.effect-v146133_dungeon_cleanse_invuln{border-color:rgba(111,185,190,.60)!important;background:linear-gradient(145deg,rgba(22,61,66,.98),rgba(18,25,39,.98))!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-art{grid-row:1/3!important;width:38px!important;height:48px!important;padding:2px!important;border-radius:9px!important;overflow:hidden!important;background:rgba(4,11,13,.62)!important;border:1px solid rgba(255,255,255,.10)!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-art img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-copy{grid-column:2!important;grid-row:1!important;min-width:0!important;display:block!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-copy b{display:block!important;font-size:9.5px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#f8fbf9!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-copy small{display:none!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v146135-potion-effect-badge{grid-column:2!important;grid-row:2!important;justify-self:start!important;align-self:start!important;margin:0!important;min-height:18px!important;padding:3px 5px!important;border-radius:6px!important;background:rgba(4,13,15,.72)!important;border:1px solid rgba(255,255,255,.20)!important;color:#fff!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-art>em{right:1px!important;bottom:1px!important;min-width:17px!important;height:17px!important;padding:0 3px!important;font-size:8px!important}

@media(max-width:360px){
  html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card{grid-template-columns:34px minmax(0,1fr)!important;padding:5px!important;gap:2px 5px!important}
  html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-art{width:34px!important;height:44px!important}
  html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v81-potion-copy b{font-size:8.5px!important}
  html body.v146136-ui.v111-battle-active .v81-potion-card.v146136-potion-card .v146135-potion-effect-badge{font-size:7.5px!important;padding-inline:4px!important}
}

/* ===== css/v146137-potion-legacy-mini.css ===== */
/* Aldos RPG v1.146.137 — restore classic battle potion strip; inventory potion minis = art + number only. No image generation. */

/* Inventory: consumables keep the existing rarity/potion card background and frame.
   No wordy quick-stat panel: only potion art and a tiny numeric value. */
html body.v146137-ui .v119-item-card.type-consumable .v124-item-meta,
html body.v146137-ui .v119-item-card.type-consumable .v122-item-quick,
html body.v146137-ui .v119-item-card.type-consumable .v146135-potion-quick,
html body.v146137-ui .v119-item-card.type-consumable .v125-item-tags,
html body.v146137-ui .v119-item-card.type-consumable .v127-item-primary-tag,
html body.v146137-ui .v119-item-card.type-consumable .v146135-potion-mini-badge{display:none!important}
html body.v146137-ui .v119-item-card.type-consumable .v39-item-icon-wrap{position:relative!important}
html body.v146137-ui .v119-item-card.type-consumable .v146137-potion-mini-value{
  position:absolute!important;right:4px!important;bottom:5px!important;z-index:9!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:30px!important;min-height:21px!important;padding:3px 6px!important;
  border:1px solid rgba(231,201,121,.72)!important;border-radius:999px!important;
  background:rgba(6,12,13,.88)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  box-shadow:0 2px 7px rgba(0,0,0,.46)!important;text-shadow:0 1px 2px #000!important;
  font-size:9px!important;line-height:1!important;font-weight:900!important;letter-spacing:.01em!important;
  white-space:nowrap!important;pointer-events:none!important
}

/* Battle “Зелья и помощь”: return the pre-v136 horizontal cards instead of the two-column redesign. */
html body.v146137-ui.v111-battle-active .v81-potion-strip,
html body.v146137-ui.v111-battle-active .v59-potion-strip{
  display:flex!important;grid-template-columns:none!important;gap:8px!important;
  overflow-x:auto!important;overflow-y:hidden!important;padding:3px 2px 8px!important;
  scroll-snap-type:x proximity!important;scrollbar-width:thin!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card{
  position:relative!important;flex:0 0 170px!important;width:170px!important;min-width:170px!important;max-width:170px!important;
  min-height:76px!important;display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;align-items:center!important;gap:3px 9px!important;
  padding:9px 10px 9px 9px!important;text-align:left!important;overflow:hidden!important;
  border:1px solid rgba(230,196,104,.20)!important;border-radius:13px!important;
  background:linear-gradient(145deg,#172128,#0d1317)!important;
  box-shadow:none!important;scroll-snap-align:start!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card.health{
  border-color:rgba(191,94,116,.34)!important;background:linear-gradient(145deg,rgba(85,28,47,.76),rgba(26,12,18,.98))!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card.mana{
  border-color:rgba(83,157,207,.40)!important;background:linear-gradient(145deg,rgba(22,62,88,.78),rgba(8,22,31,.98))!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card .v81-potion-art{
  grid-row:1/3!important;width:52px!important;height:56px!important;padding:0!important;overflow:hidden!important;
  border-radius:10px!important;background:#080d11!important;border:0!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card .v81-potion-art img{
  width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card .v81-potion-copy{
  grid-column:2!important;grid-row:1!important;display:grid!important;gap:3px!important;min-width:0!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card .v81-potion-copy b{
  display:block!important;font-size:11px!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card .v81-potion-copy small{
  display:block!important;color:#8f9ba2!important;font-size:9px!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card .v146135-potion-effect-badge{
  grid-column:2!important;grid-row:2!important;justify-self:start!important;align-self:start!important;
  margin:0!important;min-height:19px!important;padding:3px 6px!important;border-radius:7px!important;
  border:1px solid rgba(217,232,221,.34)!important;background:rgba(8,22,18,.88)!important;
  color:#fff!important;font-size:8px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important
}
html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card .v81-potion-art>em{
  right:5px!important;bottom:5px!important;min-width:23px!important;height:23px!important;padding:0 5px!important;font-size:inherit!important
}

@media(max-width:360px){
  html body.v146137-ui.v111-battle-active .v81-potion-card.v146135-potion-card{flex-basis:156px!important;width:156px!important;min-width:156px!important;max-width:156px!important}
}

/* ===== css/v146138-potion-classic-restore.css ===== */
/* Aldos RPG v1.146.138 — exact classic potion-card geometry restored; inventory potion minis stay art + number only. No image generation. */

/* Battle support: return to the original v81/v145-era horizontal strip and card geometry. */
html body.v146138-ui.v111-battle-active .v81-potion-strip,
html body.v146138-ui.v111-battle-active .v59-potion-strip{
  display:flex!important;
  grid-template-columns:none!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:3px 2px 8px!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:thin!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card{
  position:relative!important;
  flex:0 0 170px!important;
  width:170px!important;
  min-width:170px!important;
  max-width:170px!important;
  min-height:76px!important;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  gap:9px!important;
  padding:9px!important;
  text-align:left!important;
  border:1px solid rgba(230,196,104,.20)!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,#172128,#0d1317)!important;
  box-shadow:none!important;
  overflow:hidden!important;
  scroll-snap-align:start!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card.health{
  border-color:rgba(191,94,116,.34)!important;
  background:linear-gradient(145deg,rgba(85,28,47,.76),rgba(26,12,18,.98))!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card.mana{
  border-color:rgba(83,157,207,.40)!important;
  background:linear-gradient(145deg,rgba(22,62,88,.78),rgba(8,22,31,.98))!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card .v81-potion-art{
  display:block!important;
  width:52px!important;
  height:56px!important;
  overflow:hidden!important;
  border-radius:10px!important;
  background:#080d11!important;
  border:0!important;
  padding:0!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card .v81-potion-art img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card .v81-potion-copy{
  display:grid!important;
  grid-column:auto!important;
  grid-row:auto!important;
  gap:3px!important;
  min-width:0!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card .v81-potion-copy b{
  display:block!important;
  font-size:11px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card .v81-potion-copy small{
  display:block!important;
  font-size:9px!important;
  line-height:1.15!important;
  color:var(--v81-muted)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card .v146135-potion-effect-badge{
  display:none!important
}
html body.v146138-ui.v111-battle-active .v81-potion-card .v81-potion-art>em{
  position:absolute!important;
  right:5px!important;
  bottom:5px!important;
  display:grid!important;
  place-items:center!important;
  min-width:23px!important;
  height:23px!important;
  padding:0 5px!important;
  border-radius:50%!important;
  background:#080b0d!important;
  border:1px solid var(--v81-gold)!important;
  font-style:normal!important;
  font-size:inherit!important
}

/* Inventory mini cards: no words/pictograms beside the potion — art plus only the short numeric value. */
html body.v146138-ui .v119-item-card.type-consumable .v124-item-meta,
html body.v146138-ui .v119-item-card.type-consumable .v122-item-quick,
html body.v146138-ui .v119-item-card.type-consumable .v146135-potion-quick,
html body.v146138-ui .v119-item-card.type-consumable .v125-item-tags,
html body.v146138-ui .v119-item-card.type-consumable .v127-item-primary-tag,
html body.v146138-ui .v119-item-card.type-consumable .v146135-potion-mini-badge{
  display:none!important
}
html body.v146138-ui .v119-item-card.type-consumable .v39-item-icon-wrap{
  position:relative!important
}
html body.v146138-ui .v119-item-card.type-consumable .v146137-potion-mini-value{
  position:absolute!important;
  right:4px!important;
  bottom:5px!important;
  z-index:9!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:29px!important;
  min-height:20px!important;
  padding:3px 6px!important;
  border:1px solid rgba(231,201,121,.72)!important;
  border-radius:999px!important;
  background:rgba(6,12,13,.88)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 2px 7px rgba(0,0,0,.46)!important;
  text-shadow:0 1px 2px #000!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
  pointer-events:none!important
}

@media(max-width:720px){
  html body.v146138-ui.v111-battle-active .v81-potion-card{
    flex-basis:150px!important;
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important
  }
}

/* ===== css/v146139-mobile-responsive-hotfix.css ===== */
/* Aldos RPG v1.146.139 — final mobile responsive / chat / overlay / profile / pit hotfix.
   Existing art only. Scoped final layer over v1.146.138. */

html body.v146139-ui{
  --v146139-vh:var(--v146139-visual-height,100dvh);
  --v146139-vtop:var(--v146139-visual-top,0px);
  --v146139-nav-base:58px;
  --v146139-safe-bottom:max(0px,env(safe-area-inset-bottom));
  --v146139-safe-top:max(0px,env(safe-area-inset-top));
}

/* ========================================================================== */
/* 1. Global overlay contract: every true overlay owns the viewport and input. */
/* ========================================================================== */
html body.v146139-ui.v146139-modal-open{overflow:hidden!important;overscroll-behavior:none!important;touch-action:none!important}
html body.v146139-ui.v146139-modal-open #app{pointer-events:none!important;user-select:none!important}
html body.v146139-ui.v146139-modal-open #modal-root{pointer-events:auto!important;touch-action:auto!important}
html body.v146139-ui #modal-root:not(:empty){position:fixed!important;inset:0!important;z-index:10020!important;width:100vw!important;height:var(--v146139-vh)!important;max-height:100dvh!important;pointer-events:auto!important}
html body.v146139-ui #modal-root>.modal-back{
  position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100vw!important;height:var(--v146139-vh)!important;min-height:0!important;max-height:100dvh!important;
  padding:calc(8px + var(--v146139-safe-top)) 8px calc(8px + var(--v146139-safe-bottom))!important;
  display:grid!important;place-items:center!important;overflow:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;
  background:rgba(1,6,9,.78)!important;backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important;
}
html body.v146139-ui #modal-root>.modal-back>.modal{
  position:relative!important;box-sizing:border-box!important;width:min(94vw,560px)!important;max-width:calc(100vw - 16px)!important;
  max-height:calc(var(--v146139-vh) - var(--v146139-safe-top) - var(--v146139-safe-bottom) - 16px)!important;
  overflow:auto!important;overscroll-behavior:contain!important;
}
html body.v146139-ui #modal-root .modal-close{position:absolute!important;top:7px!important;right:7px!important;z-index:50!important;margin:0!important}

/* ========================================================================== */
/* 2. Location chat is a real modal drawer; nothing behind it can be tapped.   */
/* ========================================================================== */
html body.v146139-ui .v146139-chat-backdrop{
  position:fixed!important;inset:0!important;z-index:8970!important;display:block!important;width:100vw!important;height:var(--v146139-vh)!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(0,5,8,.54)!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;touch-action:none!important;transition:opacity .16s ease!important;
}
html body.v146139-ui .v146139-chat-backdrop.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
html body.v146139-ui.v78-location-chat-open{overflow:hidden!important;overscroll-behavior:none!important}
html body.v146139-ui.v78-location-chat-open :is(main.screen,.bottom-nav,.side,.v119-side-backdrop){pointer-events:none!important}
html body.v146139-ui.v78-location-chat-open .v146139-chat-backdrop{pointer-events:auto!important}
html body.v146139-ui.v78-location-chat-open .v78-location-chat.v1469-chat-drawer{pointer-events:auto!important}
html body.v146139-ui .v78-location-chat.v1469-chat-drawer,
html body.v146139-ui .v79-chat-drawer.v1469-chat-drawer{
  position:fixed!important;z-index:8980!important;top:calc(var(--v146139-vtop) + var(--v146139-safe-top))!important;right:0!important;bottom:auto!important;
  box-sizing:border-box!important;width:min(88vw,470px)!important;max-width:calc(100vw - 28px)!important;
  height:calc(var(--v146139-vh) - var(--v146139-safe-top) - var(--v146139-safe-bottom))!important;max-height:none!important;min-height:0!important;
  padding:5px 5px calc(5px + var(--v146139-safe-bottom))!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:4px!important;overflow:hidden!important;overscroll-behavior:contain!important;
}
html body.v146139-ui .v1469-chat-drawer>.v1469-chat-top{height:auto!important;min-height:46px!important;max-height:none!important}
html body.v146139-ui .v1469-chat-drawer>.v146123-chat-tabs{height:auto!important;min-height:28px!important;max-height:none!important}
html body.v146139-ui .v1469-chat-drawer>.v1469-chat-scroll{
  min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;overflow-anchor:none!important;overscroll-behavior:contain!important;touch-action:pan-y!important;
  scrollbar-width:thin!important;scrollbar-color:rgba(107,150,139,.58) rgba(2,12,15,.42)!important;
}
html body.v146139-ui .v1469-chat-drawer>.v1469-chat-bottom{
  height:auto!important;min-height:48px!important;max-height:none!important;padding:4px!important;padding-bottom:max(4px,var(--v146139-safe-bottom))!important;
}
html body.v146139-ui .v1469-chat-drawer>.v1469-chat-bottom .v146123-chat-form{height:42px!important;min-height:42px!important;grid-template-columns:minmax(0,1fr) 42px!important}
html body.v146139-ui .v1469-chat-drawer>.v1469-chat-bottom :is(input,.v125-chat-send){height:42px!important;min-height:42px!important;max-height:42px!important}

/* Battle chat uses the existing drawer fade as its full-viewport blocker. */
html body.v146139-ui.v1460-battle-chat-open #any-drawer-fade{
  position:fixed!important;inset:0!important;z-index:8970!important;width:100vw!important;height:var(--v146139-vh)!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;touch-action:none!important;background:rgba(0,5,8,.54)!important;
}
html body.v146139-ui.v1460-battle-chat-open .v79-chat-drawer.v1469-chat-drawer{z-index:8980!important;pointer-events:auto!important}

/* ========================================================================== */
/* 3. Chat card geometry: timestamp belongs to the meta line, never the tail.  */
/* ========================================================================== */
html body.v146139-ui .v1469-chat-drawer .v146123-chat-message{
  box-sizing:border-box!important;grid-template-columns:clamp(34px,10vw,42px) minmax(0,1fr)!important;gap:6px!important;
  width:100%!important;min-height:0!important;height:auto!important;margin:0 0 3px!important;padding:5px 6px!important;overflow:hidden!important;
}
html body.v146139-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
  width:clamp(34px,10vw,42px)!important;min-width:clamp(34px,10vw,42px)!important;max-width:clamp(34px,10vw,42px)!important;
  height:clamp(34px,10vw,42px)!important;min-height:clamp(34px,10vw,42px)!important;max-height:clamp(34px,10vw,42px)!important;
}
html body.v146139-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  position:relative!important;display:grid!important;grid-template-rows:auto auto!important;align-content:start!important;gap:3px!important;min-width:0!important;min-height:0!important;padding:0!important;
}
html body.v146139-ui .v1469-chat-drawer .v146123-chat-message :is(.v1469-chat-message-head,.v1469-chat-meta){min-width:0!important;height:auto!important;min-height:0!important;overflow:visible!important}
html body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:2px 4px!important;width:100%!important;min-width:0!important;padding-right:0!important;
}
html body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{max-width:min(44%,150px)!important;font-size:clamp(9.8px,2.8vw,11.5px)!important;line-height:1.12!important}
html body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-chat-statuses{flex:0 0 auto!important;min-width:0!important;max-width:34%!important}
html body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-role-level,
html body.v146139-ui .v1469-chat-drawer .v146139-system-meta{
  flex:1 1 110px!important;min-width:92px!important;max-width:none!important;margin:0!important;text-align:left!important;font-size:clamp(7.2px,2vw,8.5px)!important;line-height:1.2!important;white-space:normal!important;
}
html body.v146139-ui .v1469-chat-drawer .v146139-chat-time{display:inline!important;margin-left:2px!important;color:#839b95!important;font:inherit!important;white-space:nowrap!important}
html body.v146139-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  grid-row:2!important;min-width:0!important;margin:0!important;padding:0!important;font-size:clamp(9.4px,2.65vw,11px)!important;line-height:1.32!important;overflow-wrap:anywhere!important;
}
html body.v146139-ui .v1469-chat-drawer .v146123-chat-message .v1469-chat-tail{display:none!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
html body.v146139-ui .v1469-chat-drawer .v146123-chat-message::after{max-height:100%!important}

/* ========================================================================== */
/* 4. Player profile: content-sized card, safe close control, internal scroll. */
/* ========================================================================== */
html body.v146139-ui .modal-back.has-v125-player-modal{align-items:center!important;justify-content:center!important}
html body.v146139-ui .modal.v125-player-modal{
  width:min(94vw,460px)!important;max-width:460px!important;height:auto!important;min-height:0!important;
  max-height:calc(var(--v146139-vh) - var(--v146139-safe-top) - var(--v146139-safe-bottom) - 18px)!important;padding:8px!important;overflow:hidden!important;
}
html body.v146139-ui .modal.v125-player-modal>.modal-close{top:7px!important;right:7px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;z-index:60!important}
html body.v146139-ui .v125-player-card{
  grid-template-columns:clamp(88px,28vw,116px) minmax(0,1fr)!important;
  grid-template-areas:"account account" "portrait identity" "portrait info" "actions actions"!important;
  align-content:start!important;gap:clamp(6px,2vw,9px)!important;width:100%!important;height:auto!important;min-height:0!important;max-height:calc(var(--v146139-vh) - var(--v146139-safe-top) - var(--v146139-safe-bottom) - 38px)!important;
  padding:8px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
}
html body.v146139-ui .v125-player-account{grid-template-columns:minmax(0,1fr) auto!important;padding-right:42px!important;min-height:0!important}
html body.v146139-ui .v125-player-account b{font-size:clamp(11px,3.4vw,14px)!important;min-width:0!important}
html body.v146139-ui .v125-player-account span{justify-self:end!important;white-space:nowrap!important}
html body.v146139-ui .v125-player-portrait{
  width:clamp(88px,28vw,116px)!important;height:clamp(136px,43vw,176px)!important;min-width:0!important;min-height:0!important;max-width:116px!important;max-height:176px!important;
}
html body.v146139-ui .v146125-player-identity{align-self:start!important;overflow:visible!important;min-width:0!important}
html body.v146139-ui .v146125-player-name-line{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px!important;min-width:0!important;padding-right:0!important}
html body.v146139-ui .v146125-player-name-line h2{min-width:0!important;max-width:100%!important;margin:0!important;font-size:clamp(16px,5vw,22px)!important;overflow-wrap:anywhere!important}
html body.v146139-ui .v146125-friend-tag{position:static!important;flex:0 0 auto!important;margin:0!important}
html body.v146139-ui .v125-player-info{gap:5px!important;min-width:0!important}
html body.v146139-ui .v125-player-info>span{padding:6px 7px!important;min-width:0!important}
html body.v146139-ui .v125-player-info b{white-space:normal!important;overflow-wrap:anywhere!important}
html body.v146139-ui .v125-player-actions{gap:6px!important;min-width:0!important}

/* ========================================================================== */
/* 5. Travel: natural content height; calm description scroll; clean plates.  */
/* ========================================================================== */
html body.v146139-ui .v146119-travel-screen{min-height:0!important;height:auto!important;gap:9px!important;padding-bottom:calc(var(--v146139-nav-base) + var(--v146139-safe-bottom) + 10px)!important}
html body.v146139-ui .v146119-travel-location-head{
  grid-template-columns:clamp(82px,25vw,108px) minmax(0,1fr)!important;gap:clamp(8px,2.6vw,12px)!important;
  height:auto!important;min-height:0!important;max-height:none!important;padding:10px!important;align-items:center!important;
}
html body.v146139-ui .v146119-travel-location-head>span{width:clamp(82px,25vw,108px)!important;min-width:clamp(82px,25vw,108px)!important;height:clamp(82px,25vw,108px)!important;min-height:0!important}
html body.v146139-ui .v146119-travel-location-copy{grid-template-rows:auto auto auto!important;min-height:0!important;align-content:center!important}
html body.v146139-ui .v146119-travel-location-copy>h2{font-size:clamp(18px,5.6vw,26px)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
html body.v146139-ui .v146119-travel-description{
  min-height:0!important;max-height:min(22svh,112px)!important;padding:3px 6px 3px 0!important;overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin!important;scrollbar-color:rgba(98,128,119,.62) rgba(2,13,16,.28)!important;
}
html body.v146139-ui .v146119-travel-description::-webkit-scrollbar{width:3px!important}
html body.v146139-ui .v146119-travel-description::-webkit-scrollbar-thumb{background:rgba(98,128,119,.62)!important;border-radius:10px!important}
html body.v146139-ui .v146119-travel-description::-webkit-scrollbar-track{background:rgba(2,13,16,.28)!important}
html body.v146139-ui .v146120-travel-card{
  display:grid!important;grid-template-rows:auto auto auto!important;align-content:start!important;height:auto!important;min-height:0!important;max-height:none!important;
  padding:clamp(12px,3.8vw,18px)!important;gap:clamp(8px,2.8vw,11px)!important;overflow:visible!important;
}
html body.v146139-ui .v146120-travel-progress{align-content:start!important;gap:5px!important;min-height:0!important;padding:0!important}
html body.v146139-ui .v146120-travel-progress .v126-travel-compass{width:clamp(78px,24vw,94px)!important;height:clamp(78px,24vw,94px)!important;margin:0 auto!important}
html body.v146139-ui .v146120-travel-progress .v126-travel-compass img{width:clamp(56px,17vw,66px)!important;height:clamp(56px,17vw,66px)!important}
html body.v146139-ui .v146120-travel-actions{align-self:start!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
html body.v146139-ui .v146120-travel-actions:has(>.v14416-travel-cancel:only-child){grid-template-columns:1fr!important}
html body.v146139-ui .v146120-travel-actions :is(.v14416-travel-cancel,.v14644-travel-sign){height:44px!important;min-height:44px!important;max-height:44px!important;overflow:hidden!important}
html body.v146139-ui .v146120-travel-actions .v14416-travel-cancel{
  position:relative!important;isolation:isolate!important;width:100%!important;max-width:none!important;padding:0 22px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
}
html body.v146139-ui .v146120-travel-actions .v14416-travel-cancel::before{
  content:""!important;position:absolute!important;z-index:-1!important;inset:0!important;pointer-events:none!important;
  background:transparent url("../assets/v146102/ui/travel-cancel-plate.webp") center/contain no-repeat!important;filter:drop-shadow(0 4px 7px rgba(0,0,0,.45))!important;
}
html body.v146139-ui .v146120-travel-actions .v14644-travel-sign{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;overflow:hidden!important}

/* ========================================================================== */
/* 6. Location monster grid: still 2 columns, but cards breathe on 320–480px. */
/* ========================================================================== */
html body.v146139-ui.v134-location-screen .v119-monster-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:clamp(4px,1.7vw,8px)!important;padding-top:7px!important;min-width:0!important}
html body.v146139-ui.v134-location-screen .v119-monster-card{
  box-sizing:border-box!important;grid-template-columns:clamp(42px,14vw,62px) minmax(0,1fr)!important;grid-template-rows:auto auto!important;
  width:100%!important;min-width:0!important;height:auto!important;min-height:clamp(132px,39vw,158px)!important;max-height:none!important;
  padding:clamp(5px,1.7vw,7px)!important;gap:5px!important;overflow:hidden!important;
}
html body.v146139-ui.v134-location-screen .v119-monster-card :is(h2,h3,.v38-mob-name,.v119-monster-name){
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
  font-size:clamp(9px,2.7vw,12px)!important;line-height:1.12!important;overflow-wrap:anywhere!important;
}
html body.v146139-ui.v134-location-screen .v119-monster-card :is(.v119-monster-art,.v38-mob-icon,.v93-mob-art,.v14697-monster-frame){min-width:0!important;max-width:100%!important;overflow:hidden!important}
html body.v146139-ui.v134-location-screen .v119-monster-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:.9fr 1.15fr!important;gap:4px!important;min-width:0!important;margin-top:auto!important}
html body.v146139-ui.v134-location-screen .v119-monster-actions button{min-width:0!important;width:100%!important;height:clamp(32px,9.5vw,38px)!important;min-height:32px!important;padding:0 4px!important;overflow:hidden!important}
html body.v146139-ui.v134-location-screen .v119-monster-actions button>span{min-width:0!important;font-size:clamp(7.5px,2.35vw,10px)!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146139-ui.v134-location-screen .v119-monster-actions .v146101-monster-button-bg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;pointer-events:none!important}

/* ========================================================================== */
/* 7. Pit: responsive rows + a footer that never covers the final loot card.  */
/* ========================================================================== */
html body.v146139-ui.v146100-pit-screen-active .v146100-pit-main{padding-bottom:calc(var(--v146139-nav-base) + var(--v146139-safe-bottom) + 10px)!important}
html body.v146139-ui .v146101-pit-main .v119-pit-screen{height:auto!important;min-height:0!important;max-height:none!important}
html body.v146139-ui .v146114-pit-scene{
  display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:6px!important;height:auto!important;min-height:0!important;
  max-height:calc(var(--v146139-vh) - var(--v146139-nav-base) - var(--v146139-safe-top) - var(--v146139-safe-bottom) - 108px)!important;
  padding:8px!important;overflow:hidden!important;
}
html body.v146139-ui .v146114-pit-scene .v146112-pit-loot-scroll{
  min-height:0!important;max-height:none!important;padding:6px 5px calc(14px + var(--v146139-safe-bottom))!important;scroll-padding-bottom:calc(74px + var(--v146139-safe-bottom))!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;
}
html body.v146139-ui .v146114-pit-loot-card{
  grid-template-columns:clamp(54px,17vw,64px) minmax(0,1fr)!important;grid-template-rows:auto auto!important;
  width:calc(100% - 4px)!important;height:auto!important;min-height:clamp(126px,34vw,146px)!important;max-height:none!important;
  gap:6px!important;padding:8px!important;margin:0 auto!important;
}
html body.v146139-ui .v146114-pit-loot-card .v146101-pit-loot-art{width:clamp(52px,16vw,62px)!important;height:clamp(58px,18vw,68px)!important;min-width:0!important;min-height:0!important}
html body.v146139-ui .v146114-pit-loot-card .v146101-pit-loot-copy{height:auto!important;min-height:0!important;overflow:visible!important}
html body.v146139-ui .v146114-pit-loot-card .v146101-pit-loot-copy strong{min-height:0!important;max-height:none!important;font-size:clamp(10.5px,3.3vw,13px)!important;line-height:1.15!important}
html body.v146139-ui .v146114-pit-loot-card .v146112-pit-actions{height:auto!important;min-height:40px!important;max-height:none!important;gap:5px!important}
html body.v146139-ui .v146114-pit-loot-card .v146112-pit-action{height:40px!important;min-height:40px!important;max-height:40px!important;min-width:0!important}
html body.v146139-ui .v146112-pit-footer{
  position:relative!important;z-index:8!important;display:grid!important;grid-template-rows:auto auto!important;gap:4px!important;width:100%!important;
  padding:5px 4px max(5px,var(--v146139-safe-bottom))!important;margin:0!important;background:linear-gradient(180deg,rgba(3,17,20,.20),rgba(3,17,20,.96) 24%)!important;
}
html body.v146139-ui .v146114-pit-take-all{width:min(232px,72vw)!important;max-width:100%!important;margin:0 auto!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;overflow:hidden!important}

/* ========================================================================== */
/* 8. Bottom navigation: one geometry + safe area, inert below any overlay.    */
/* ========================================================================== */
html body.v146139-ui .bottom-nav.v146114-bottom-nav{
  box-sizing:border-box!important;height:calc(var(--v146139-nav-base) + var(--v146139-safe-bottom))!important;min-height:calc(var(--v146139-nav-base) + var(--v146139-safe-bottom))!important;max-height:calc(var(--v146139-nav-base) + var(--v146139-safe-bottom))!important;
  padding:5px 7px calc(5px + var(--v146139-safe-bottom))!important;gap:5px!important;
}
html body.v146139-ui .bottom-nav.v146114-bottom-nav>button{height:48px!important;min-height:48px!important;max-height:48px!important;min-width:0!important}
html body.v146139-ui :is(.screen,.v119-screen){scroll-padding-bottom:calc(var(--v146139-nav-base) + var(--v146139-safe-bottom) + 12px)!important}
html body.v146139-ui.v78-location-chat-open .bottom-nav,
html body.v146139-ui.v146139-modal-open .bottom-nav{pointer-events:none!important}

/* ========================================================================== */
/* 9. Friends / nearby players: compact rows, actions no longer inflate them. */
/* ========================================================================== */
html body.v146139-ui :is(.v146114-local-player-card,.v146114-friend-card,.v146113-local-player-card,.v146113-friend-card){
  box-sizing:border-box!important;min-height:0!important;height:auto!important;padding:7px 8px!important;gap:7px!important;align-items:center!important;
}
html body.v146139-ui :is(.v146114-local-player-card,.v146114-friend-card) .v125-friend-avatar{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
html body.v146139-ui :is(.v146114-local-player-card,.v146114-friend-card) .v125-friend-copy{min-width:0!important;gap:2px!important}
html body.v146139-ui :is(.v146114-local-player-card,.v146114-friend-card) .v125-friend-copy b{font-size:clamp(10px,3vw,12px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146139-ui :is(.v146114-local-player-card,.v146114-friend-card) .v125-friend-actions{align-self:center!important;display:flex!important;gap:4px!important;min-width:0!important}
html body.v146139-ui .v146114-friends-screen .v125-friend-actions button{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:7px!important}

/* ========================================================================== */
/* 10. Potion mini cards: amount and numeric effect occupy separate corners.  */
/* ========================================================================== */
html body.v146139-ui .v119-item-card.type-consumable .v39-item-icon-wrap{position:relative!important;overflow:visible!important}
html body.v146139-ui .v119-item-card.type-consumable .item-emblem{position:relative!important;overflow:visible!important}
html body.v146139-ui .v119-item-card.type-consumable .v124-stack-count{
  position:absolute!important;z-index:16!important;top:3px!important;right:3px!important;bottom:auto!important;left:auto!important;
  min-width:25px!important;height:19px!important;padding:0 5px!important;margin:0!important;font-size:8.5px!important;line-height:1!important;
}
html body.v146139-ui .v119-item-card.type-consumable .v146137-potion-mini-value{
  position:absolute!important;z-index:15!important;right:3px!important;bottom:3px!important;top:auto!important;left:auto!important;
  min-width:28px!important;min-height:19px!important;padding:3px 5px!important;margin:0!important;font-size:8.5px!important;line-height:1!important;
}
html body.v146139-ui .v127-legacy-badge{display:none!important}

/* ========================================================================== */
/* 11. Width / text-scale safety rails for the requested 320–480px envelope. */
/* ========================================================================== */
@media(max-width:370px){
  html body.v146139-ui .v78-location-chat.v1469-chat-drawer,html body.v146139-ui .v79-chat-drawer.v1469-chat-drawer{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;padding-inline:4px!important}
  html body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{max-width:40%!important;font-size:9.6px!important}
  html body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-role-level{font-size:7px!important;flex-basis:94px!important}
  html body.v146139-ui .v146120-travel-actions{grid-template-columns:1fr!important}
  html body.v146139-ui.v134-location-screen .v119-monster-grid{gap:4px!important}
  html body.v146139-ui.v134-location-screen .v119-monster-card{grid-template-columns:40px minmax(0,1fr)!important;padding:5px!important;min-height:130px!important}
  html body.v146139-ui.v134-location-screen .v119-monster-actions{gap:3px!important}
  html body.v146139-ui .v125-player-card{grid-template-columns:88px minmax(0,1fr)!important}
  html body.v146139-ui .v125-player-portrait{width:88px!important;height:136px!important}
}

html[data-ui-font-size="medium"] body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-role-level,
html[data-ui-font-size="large"] body.v146139-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-role-level{flex-basis:128px!important;white-space:normal!important}
html[data-ui-font-size="large"] body.v146139-ui .v1469-chat-drawer .v146123-chat-message{grid-template-columns:42px minmax(0,1fr)!important;padding:6px!important}
html[data-ui-font-size="large"] body.v146139-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{font-size:11.5px!important;line-height:1.38!important}
html[data-ui-font-size="large"] body.v146139-ui .v146119-travel-description{max-height:min(26svh,132px)!important}
html[data-ui-font-size="large"] body.v146139-ui .v146125-player-name-line h2{font-size:20px!important}
html[data-ui-font-size="large"] body.v146139-ui.v134-location-screen .v119-monster-card{min-height:152px!important}

/* ===== css/v146140-monster-frame-travel-route-hotfix.css ===== */
/* Aldos RPG v1.146.140 — monster frame / travel animation / route background hotfix.
   CSS-only visual correction over v1.146.139. Existing artwork only. FULL NO-WIPE. */

/* ========================================================================== */
/* 1. Location monster cards — restore the frame geometry v139 accidentally   */
/*    capped with max-width:100%.                                             */
/* ========================================================================== */
html body.v146140-ui.v134-location-screen .v119-monster-card{
  position:relative!important;
  isolation:isolate!important;
}

/* Normal frame intentionally extends beyond the box because the bitmap has
   transparent ornament margins. Parent clipping still owns the card boundary. */
html body.v146140-ui.v134-location-screen .v119-monster-card:not(.rank-elite) .v14697-monster-frame{
  position:absolute!important;
  z-index:4!important;
  inset:-3px -8px -3px -3px!important;
  width:calc(100% + 11px)!important;
  height:calc(100% + 6px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:fill!important;
  object-position:center!important;
  overflow:visible!important;
  opacity:1!important;
  pointer-events:none!important;
  transform:none!important;
}

/* Enhanced / elite frame keeps its wider purple/crimson safe geometry. */
html body.v146140-ui.v134-location-screen .v119-monster-card.rank-elite .v14697-monster-frame{
  position:absolute!important;
  z-index:4!important;
  inset:-4px -7px!important;
  width:calc(100% + 14px)!important;
  height:calc(100% + 8px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  overflow:visible!important;
  opacity:1!important;
  pointer-events:none!important;
  transform:none!important;
}

/* v139 responsive constraints apply only to actual creature art, never frame. */
html body.v146140-ui.v134-location-screen .v119-monster-card :is(.v119-monster-art,.v38-mob-icon,.v93-mob-art){
  min-width:0!important;
  max-width:100%!important;
}
html body.v146140-ui.v134-location-screen .v119-monster-card :is(.v119-monster-art,.v119-monster-main,.v119-monster-actions){
  position:relative!important;
  z-index:3!important;
}
html body.v146140-ui.v134-location-screen .v119-monster-card .v14697-monster-bg{z-index:0!important}
html body.v146140-ui.v134-location-screen .v119-monster-main{min-width:0!important;overflow:hidden!important}

/* ========================================================================== */
/* 2. Location transition buttons — keep destination artwork, but never show */
/*    the opaque rectangular source canvas behind the decorative frame.      */
/* ========================================================================== */
html body.v146140-ui.v134-location-screen .v119-location-routes .location-btn{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:10px!important;
  /* Prevent any old --v14695-route-bg CSS background from leaking under the
     explicit IMG layers on WebViews with mixed cached stylesheets. */
  background-image:none!important;
  background:linear-gradient(180deg,#071719 0%,#041012 100%)!important;
}

/* The route source images are opaque 1024x320 rectangles. Move them well
   inside the ornamental frame and clip the inner scene itself. */
html body.v146140-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-bg{
  position:absolute!important;
  z-index:0!important;
  inset:7px 9px 8px!important;
  width:calc(100% - 18px)!important;
  height:calc(100% - 15px)!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  border-radius:7px!important;
  object-fit:cover!important;
  object-position:center!important;
  overflow:hidden!important;
  clip-path:inset(0 round 7px)!important;
  -webkit-clip-path:inset(0 round 7px)!important;
  filter:brightness(.66) saturate(.82) contrast(1.06)!important;
  opacity:.94!important;
  pointer-events:none!important;
  transform:translateZ(0)!important;
}

/* Frame stays full-size and is the only layer reaching the button perimeter. */
html body.v146140-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-frame{
  position:absolute!important;
  z-index:2!important;
  inset:1px!important;
  width:calc(100% - 2px)!important;
  height:calc(100% - 2px)!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  opacity:1!important;
  pointer-events:none!important;
  transform:none!important;
}
html body.v146140-ui.v134-location-screen .v119-location-routes .location-btn>span,
html body.v146140-ui.v134-location-screen .v119-location-routes .location-btn>.v86-route-weather{
  position:relative!important;
  z-index:3!important;
}

/* ========================================================================== */
/* 3. Travel — restore the established compass/ring/route animations while   */
/*    keeping v139's content-sized card.                                     */
/* ========================================================================== */
html body.v146140-ui .v146120-travel-card{
  display:grid!important;
  grid-template-rows:auto auto auto!important;
  align-content:start!important;
  width:min(660px,100%)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:clamp(12px,3.8vw,18px)!important;
  gap:clamp(8px,2.8vw,11px)!important;
  overflow:hidden!important;
}
html body.v146140-ui .v146120-travel-card>.v77-travel-route{
  width:min(520px,94%)!important;
  justify-self:center!important;
  margin:0!important;
  overflow:visible!important;
}
html body.v146140-ui .v146120-travel-progress{
  position:relative!important;
  z-index:1!important;
  display:grid!important;
  grid-template-rows:auto auto auto auto!important;
  justify-items:center!important;
  align-content:start!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  gap:5px!important;
  padding:0!important;
  overflow:visible!important;
}

/* v139 shrank the 92px compass artwork inside a smaller transform box.
   Restore its native animated medallion geometry and explicit animations. */
html body.v146140-ui .v146120-travel-progress .v126-travel-compass{
  position:relative!important;
  width:96px!important;
  height:96px!important;
  min-width:96px!important;
  min-height:96px!important;
  max-width:96px!important;
  max-height:96px!important;
  margin:2px auto 0!important;
  overflow:visible!important;
  transform-origin:50% 50%!important;
  animation:v127TravelFloat 2.4s ease-in-out infinite!important;
  will-change:transform!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
}
html body.v146140-ui .v146120-travel-progress .v126-travel-compass img{
  width:92px!important;
  height:92px!important;
  min-width:92px!important;
  min-height:92px!important;
  max-width:92px!important;
  max-height:92px!important;
  object-fit:contain!important;
  transform-origin:50% 50%!important;
  animation:v146102-compass-breathe 2.4s ease-in-out infinite!important;
  will-change:transform!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
}
html body.v146140-ui .v146120-travel-progress .v126-travel-compass>i{
  position:absolute!important;
  inset:4px!important;
  transform-origin:50% 50%!important;
  animation:v146102-compass-ring 3.6s linear infinite!important;
  will-change:transform!important;
}

/* Route point must keep moving on the line and must not be clipped. */
html body.v146140-ui .v146120-travel-card .v77-travel-route i{overflow:visible!important}
html body.v146140-ui .v146120-travel-card .v77-travel-route i u{
  transform-origin:center!important;
  animation:v126RouteDot 2.4s ease-in-out infinite!important;
  will-change:left,transform!important;
}
html body.v146140-ui .v146120-travel-progress .v77-travel-timer{margin:0!important}
html body.v146140-ui .v146120-travel-progress .bar.travel{
  width:min(450px,88%)!important;
  margin:2px auto 0!important;
}
html body.v146140-ui .v146120-travel-progress .bar.travel>i{
  transform-origin:left center!important;
  will-change:width!important;
}
html body.v146140-ui .v146120-travel-actions{
  align-self:start!important;
  width:100%!important;
  margin:0!important;
}

/* Keep the cancel-plate canvas transparent; only the ornament is visible. */
html body.v146140-ui .v146120-travel-actions .v14416-travel-cancel{
  background:none!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body.v146140-ui .v146120-travel-actions .v14416-travel-cancel::before{
  inset:-6px -10px!important;
  background-color:transparent!important;
  background-image:url("../assets/v146102/ui/travel-cancel-plate.webp")!important;
  background-position:center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
}

@media(max-width:370px){
  html body.v146140-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-bg{
    inset:7px 8px!important;
    width:calc(100% - 16px)!important;
    height:calc(100% - 14px)!important;
  }
  html body.v146140-ui .v146120-travel-progress .v126-travel-compass{
    width:88px!important;height:88px!important;min-width:88px!important;min-height:88px!important;max-width:88px!important;max-height:88px!important;
  }
  html body.v146140-ui .v146120-travel-progress .v126-travel-compass img{
    width:84px!important;height:84px!important;min-width:84px!important;min-height:84px!important;max-width:84px!important;max-height:84px!important;
  }
}

/* Respect the existing accessibility switch. */
html body.v146140-ui.reduce-motion .v146120-travel-progress .v126-travel-compass,
html body.v146140-ui.reduce-motion .v146120-travel-progress .v126-travel-compass :is(img,i),
html body.v146140-ui.reduce-motion .v146120-travel-card .v77-travel-route i u{
  animation:none!important;
  will-change:auto!important;
}

/* ===== css/v146141-pit-travel-responsive-geometry-hotfix.css ===== */
/* Aldos RPG v1.146.141 — Pit + travel responsive geometry hotfix.
   Existing assets only. No gameplay/state changes. */

/* ========================================================================== */
/* 1. PIT — use the whole useful width of the framed scene.                   */
/* ========================================================================== */
html body.v146141-ui.v146100-pit-screen-active .v146100-pit-main{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  padding-left:clamp(6px,2.2vw,12px)!important;
  padding-right:clamp(6px,2.2vw,12px)!important;
}
html body.v146141-ui .v146101-pit-main .v119-pit-screen{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
  padding-inline:clamp(7px,2vw,11px)!important;
}
html body.v146141-ui .v146101-pit-main .v146114-pit-scene{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  justify-items:stretch!important;
  align-items:stretch!important;
  padding:clamp(7px,2vw,10px)!important;
}
html body.v146141-ui .v146114-pit-scene .v146112-pit-loot-scroll,
html body.v146141-ui .v146110-pit-loot-scroll{
  box-sizing:border-box!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:5px clamp(2px,1vw,5px) calc(14px + var(--v146139-safe-bottom,0px))!important;
  grid-template-columns:minmax(0,1fr)!important;
}
html body.v146141-ui .v146114-pit-loot-card,
html body.v146141-ui .v146112-pit-loot-scroll>.v146112-pit-loot-card{
  box-sizing:border-box!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding-inline:clamp(8px,2.5vw,12px)!important;
}
html body.v146141-ui .v146114-pit-loot-card .v146112-pit-actions{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  padding-inline:0!important;
}
html body.v146141-ui .v146114-pit-loot-card .v146112-pit-action{
  width:100%!important;
  max-width:none!important;
}
html body.v146141-ui .v146112-pit-footer{
  box-sizing:border-box!important;
  justify-self:stretch!important;
  width:100%!important;
  max-width:none!important;
  padding-inline:clamp(3px,1vw,6px)!important;
}
html body.v146141-ui .v146114-pit-take-all{
  width:min(390px,92%)!important;
  max-width:92%!important;
}

/* ========================================================================== */
/* 2. TRAVEL — content-sized composition instead of a tall poster.            */
/* ========================================================================== */
html body.v146141-ui .v146120-travel-screen{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:max-content!important;
  justify-items:center!important;
  align-content:start!important;
  width:100%!important;
  min-width:0!important;
  min-height:100dvh!important;
  height:auto!important;
  max-height:none!important;
  gap:clamp(8px,2.2vw,12px)!important;
  padding:max(8px,env(safe-area-inset-top)) clamp(8px,2.8vw,16px) max(18px,env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}

/* Destination block grows with the text instead of creating an inner orange
   scrollbar for ordinary 3–6 line descriptions. */
html body.v146141-ui .v146120-travel-location-head{
  box-sizing:border-box!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:clamp(82px,24vw,108px) minmax(0,1fr)!important;
  align-items:center!important;
  width:min(680px,100%)!important;
  min-width:0!important;
  max-width:680px!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  gap:clamp(8px,2.6vw,13px)!important;
  margin:0 auto!important;
  padding:clamp(9px,2.6vw,13px)!important;
  overflow:hidden!important;
}
html body.v146141-ui .v146120-travel-location-head>span{
  align-self:center!important;
  width:clamp(82px,24vw,108px)!important;
  min-width:clamp(82px,24vw,108px)!important;
  max-width:108px!important;
  height:clamp(82px,24vw,108px)!important;
  min-height:0!important;
  max-height:108px!important;
}
html body.v146141-ui .v146120-travel-location-copy{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:auto auto auto!important;
  align-content:center!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  gap:clamp(3px,1.2vw,6px)!important;
}
html body.v146141-ui .v146120-travel-location-copy>small{
  margin:0!important;
  line-height:1.15!important;
}
html body.v146141-ui .v146120-travel-location-copy>h2{
  min-width:0!important;
  margin:0!important;
  font-size:clamp(19px,5.6vw,28px)!important;
  line-height:1.05!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  text-overflow:clip!important;
}
html body.v146141-ui .v146120-travel-description{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  scrollbar-width:none!important;
}
html body.v146141-ui .v146120-travel-description::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
html body.v146141-ui .v146120-travel-description p{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  font-size:clamp(10px,2.9vw,12px)!important;
  line-height:1.36!important;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
}

/* The actual transition card no longer inherits viewport-based min-height,
   flex growth, or stretch alignment from the older v101/v119/v120 layers. */
html body.v146141-ui .v146120-travel-card{
  box-sizing:border-box!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:max-content max-content max-content!important;
  align-items:start!important;
  align-content:start!important;
  justify-items:stretch!important;
  flex:none!important;
  flex-grow:0!important;
  flex-shrink:0!important;
  align-self:start!important;
  width:min(680px,100%)!important;
  min-width:0!important;
  max-width:680px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 auto!important;
  padding:clamp(12px,3vw,18px)!important;
  gap:clamp(10px,2.8vw,14px)!important;
  overflow:hidden!important;
}
html body.v146141-ui .v146120-travel-card>.v77-travel-route{
  box-sizing:border-box!important;
  align-self:start!important;
  justify-self:center!important;
  width:min(540px,100%)!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:clamp(7px,2vw,10px) clamp(8px,2.4vw,12px)!important;
  grid-template-columns:minmax(0,1fr) clamp(56px,18vw,108px) minmax(0,1fr)!important;
  gap:clamp(5px,1.8vw,10px)!important;
}
html body.v146141-ui .v146120-travel-card>.v77-travel-route span{
  min-width:0!important;
  font-size:clamp(9px,2.8vw,12px)!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
html body.v146141-ui .v146120-travel-progress{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:max-content max-content max-content max-content!important;
  justify-items:center!important;
  align-items:center!important;
  align-content:start!important;
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  gap:clamp(5px,1.7vw,8px)!important;
  margin:0!important;
  padding:clamp(2px,.8vw,5px) 0!important;
}
html body.v146141-ui .v146120-travel-progress .v126-travel-compass{
  flex:none!important;
  width:clamp(78px,23vw,96px)!important;
  height:clamp(78px,23vw,96px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:96px!important;
  max-height:96px!important;
  margin:0 auto!important;
}
html body.v146141-ui .v146120-travel-progress .v126-travel-compass img{
  width:calc(100% - 4px)!important;
  height:calc(100% - 4px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
}
html body.v146141-ui .v146120-travel-progress>small{
  margin:0!important;
  font-size:clamp(9px,2.6vw,11px)!important;
  line-height:1.15!important;
}
html body.v146141-ui .v146120-travel-progress .v77-travel-timer{
  display:flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:clamp(5px,1.6vw,8px)!important;
  margin:0!important;
}
html body.v146141-ui .v146120-travel-progress .v77-travel-timer b{
  font-size:clamp(24px,8vw,34px)!important;
  line-height:1!important;
}
html body.v146141-ui .v146120-travel-progress .v77-travel-timer span{
  font-size:clamp(8px,2.5vw,10px)!important;
}
html body.v146141-ui .v146120-travel-progress .bar.travel{
  box-sizing:border-box!important;
  width:min(460px,86%)!important;
  max-width:86%!important;
  margin:1px auto 0!important;
}
html body.v146141-ui .v146120-travel-actions{
  box-sizing:border-box!important;
  align-self:start!important;
  justify-self:center!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:min(500px,100%)!important;
  min-width:0!important;
  max-width:100%!important;
  gap:clamp(7px,2vw,10px)!important;
  margin:0 auto!important;
  padding:0!important;
}
html body.v146141-ui .v146120-travel-actions:has(>.v14416-travel-cancel:only-child){
  grid-template-columns:minmax(0,1fr)!important;
  width:min(390px,92%)!important;
}
html body.v146141-ui .v146120-travel-actions :is(.v14416-travel-cancel,.v14644-travel-sign){
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:clamp(42px,11vw,48px)!important;
  min-height:42px!important;
  max-height:48px!important;
  margin:0!important;
}

/* Short phones: reduce artwork and spacing; never restore viewport-driven
   panel height. */
@media(max-height:720px){
  html body.v146141-ui .v146120-travel-screen{gap:7px!important;padding-top:max(6px,env(safe-area-inset-top))!important}
  html body.v146141-ui .v146120-travel-location-head{padding:8px!important;grid-template-columns:76px minmax(0,1fr)!important;gap:8px!important}
  html body.v146141-ui .v146120-travel-location-head>span{width:76px!important;min-width:76px!important;height:76px!important}
  html body.v146141-ui .v146120-travel-card{padding:10px 12px!important;gap:8px!important}
  html body.v146141-ui .v146120-travel-progress .v126-travel-compass{width:72px!important;height:72px!important}
}

/* Narrow phones: keep all content inside the frame without creating a second
   column squeeze or horizontal overflow. */
@media(max-width:370px){
  html body.v146141-ui .v146101-pit-main .v119-pit-screen{padding-inline:5px!important}
  html body.v146141-ui .v146101-pit-main .v146114-pit-scene{padding-inline:5px!important}
  html body.v146141-ui .v146114-pit-loot-card,
  html body.v146141-ui .v146112-pit-loot-scroll>.v146112-pit-loot-card{padding-inline:7px!important}
  html body.v146141-ui .v146120-travel-location-head{grid-template-columns:78px minmax(0,1fr)!important;padding:8px!important}
  html body.v146141-ui .v146120-travel-location-head>span{width:78px!important;min-width:78px!important;height:78px!important}
  html body.v146141-ui .v146120-travel-card{padding:10px!important}
  html body.v146141-ui .v146120-travel-card>.v77-travel-route{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;padding-inline:7px!important}
  html body.v146141-ui .v146120-travel-actions{grid-template-columns:1fr!important}
  html body.v146141-ui .v146120-travel-actions:has(>.v14416-travel-cancel:only-child){width:94%!important}
}

/* Keep the v140 animations alive. */
html body.v146141-ui .v146120-travel-progress .v126-travel-compass{
  animation:v127TravelFloat 2.4s ease-in-out infinite!important;
}
html body.v146141-ui .v146120-travel-progress .v126-travel-compass img{
  animation:v146102-compass-breathe 2.4s ease-in-out infinite!important;
}
html body.v146141-ui .v146120-travel-progress .v126-travel-compass>i{
  animation:v146102-compass-ring 3.6s linear infinite!important;
}
html body.v146141-ui .v146120-travel-card .v77-travel-route i u{
  animation:v126RouteDot 2.4s ease-in-out infinite!important;
}
html body.v146141-ui.reduce-motion .v146120-travel-progress .v126-travel-compass,
html body.v146141-ui.reduce-motion .v146120-travel-progress .v126-travel-compass :is(img,i),
html body.v146141-ui.reduce-motion .v146120-travel-card .v77-travel-route i u{
  animation:none!important;
}

/* ===== css/v146142-chat-profile-potion-pit-panel-hotfix.css ===== */
/* Aldos RPG v1.146.142 — chat/profile/potion/Pit/panel/route hotfix.
   Existing assets only. No gameplay/state changes. */

/* ========================================================================== */
/* 1. CHAT — own the full visible WebView height and keep the opener hidden.  */
/* ========================================================================== */
html body.v146142-ui .v78-location-chat.v1469-chat-drawer,
html body.v146142-ui .v79-chat-drawer.v1469-chat-drawer{
  top:var(--v146139-vtop,0px)!important;
  bottom:auto!important;
  height:var(--v146139-vh,100dvh)!important;
  min-height:0!important;
  max-height:none!important;
  padding-top:max(5px,env(safe-area-inset-top))!important;
  padding-bottom:max(5px,env(safe-area-inset-bottom))!important;
}
html body.v146142-ui.v78-location-chat-open #v78-location-chat-open{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:none!important;
}
html body.v146142-ui .v146139-chat-backdrop{
  -webkit-appearance:none!important;
  appearance:none!important;
  box-shadow:none!important;
  outline:0!important;
  transform:none!important;
  filter:none!important;
  text-shadow:none!important;
}
html body.v146142-ui .v146139-chat-backdrop:hover,
html body.v146142-ui .v146139-chat-backdrop:active{
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
}

/* Calm typography: names/actions may be bold, message/meta text stays regular. */
html body.v146142-ui .v1469-chat-drawer{
  font-family:Arial,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
html body.v146142-ui .v1469-chat-drawer .v1469-chat-heading>b{
  font-family:Georgia,"Times New Roman",serif!important;
  font-weight:700!important;
}
html body.v146142-ui .v1469-chat-drawer .v1469-chat-heading :is(small,em),
html body.v146142-ui .v1469-chat-drawer .v146126-role-level,
html body.v146142-ui .v1469-chat-drawer .v146139-system-meta,
html body.v146142-ui .v1469-chat-drawer .v146139-chat-time{
  font-weight:400!important;
}
html body.v146142-ui .v1469-chat-drawer .v131-chat-name,
html body.v146142-ui .v1469-chat-drawer .v146123-chat-tabs button,
html body.v146142-ui .v1469-chat-drawer .v1469-chat-tabs button{
  font-weight:700!important;
}
html body.v146142-ui .v1469-chat-drawer .v123-chat-text,
html body.v146142-ui .v1469-chat-drawer :is(input,textarea){
  font-weight:400!important;
}
html body.v146142-ui .v1469-chat-drawer .v146123-chat-message{
  font-synthesis:none!important;
}

/* ========================================================================== */
/* 2. PROFILE — black iridescent surface with restrained dark-red masses.     */
/*    Major frame geometry uses straight corners, not soft rounded capsules.  */
/* ========================================================================== */
html body.v146142-ui .v146142-profile-screen,
html body.v146142-ui .v119-profile-layout{
  --v146142-profile-bg:
    radial-gradient(ellipse at 84% 16%,rgba(112,4,27,.26) 0%,rgba(65,2,16,.14) 22%,transparent 47%),
    radial-gradient(ellipse at 14% 74%,rgba(93,3,22,.20) 0%,rgba(54,2,13,.10) 26%,transparent 50%),
    linear-gradient(148deg,#030506 0%,#090507 36%,#100508 57%,#030506 100%);
}
html body.v146142-ui .v146142-profile-screen{
  background:var(--v146142-profile-bg)!important;
  background-attachment:local!important;
}
html body.v146142-ui .v119-profile-layout{
  border-radius:0!important;
  background:transparent!important;
}
html body.v146142-ui .v119-profile-layout :is(
  .v39-profile-hero,
  .v119-profile-stats,
  .v119-equipment-panel,
  .v128-combat-stats,
  .v119-attributes,
  .v146133-profile-boosts
){
  border-radius:1px!important;
  border-color:rgba(151,92,65,.42)!important;
  background:
    radial-gradient(ellipse at 88% 12%,rgba(111,3,24,.17),transparent 42%),
    radial-gradient(ellipse at 8% 90%,rgba(75,2,17,.13),transparent 45%),
    linear-gradient(150deg,rgba(4,7,8,.985),rgba(14,5,8,.975) 52%,rgba(3,7,8,.99))!important;
  box-shadow:
    inset 0 0 0 1px rgba(218,168,88,.045),
    inset 0 0 34px rgba(91,0,18,.08),
    0 10px 26px rgba(0,0,0,.26)!important;
}
html body.v146142-ui .v119-profile-layout :is(.v39-resource-card,.v39-mini-stat,.v83-attr-card,.v128-combat-stat-grid article){
  border-radius:1px!important;
  background:linear-gradient(155deg,rgba(8,13,14,.94),rgba(20,6,10,.72),rgba(4,11,12,.96))!important;
}
/* The other-player profile modal follows the same dark straight-frame family. */
html body.v146142-ui .modal.v125-player-modal,
html body.v146142-ui .modal.v125-player-modal .v125-player-card{
  border-radius:1px!important;
  background:
    radial-gradient(ellipse at 82% 14%,rgba(110,2,24,.20),transparent 44%),
    linear-gradient(150deg,#040708,#100609 52%,#030607)!important;
}

/* ========================================================================== */
/* 3. INVENTORY POTIONS — no duplicated +25% badge and no dead right column.  */
/* ========================================================================== */
html body.v146142-ui .v119-inventory-list>.v124-item-card.type-consumable{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"head" "icon" "actions"!important;
  grid-template-rows:26px minmax(0,1fr) 38px!important;
  gap:5px!important;
}
html body.v146142-ui .v119-inventory-list>.v124-item-card.type-consumable>.v39-item-body,
html body.v146142-ui .v119-inventory-list>.v124-item-card.type-consumable .v146137-potion-mini-value,
html body.v146142-ui .v119-item-card.type-consumable .v146137-potion-mini-value{
  display:none!important;
}
html body.v146142-ui .v119-inventory-list>.v124-item-card.type-consumable>.v39-item-icon-wrap{
  grid-area:icon!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:1px!important;
  border:1px solid rgba(212,170,82,.34)!important;
  background:
    radial-gradient(circle at 50% 44%,rgba(99,142,117,.18),transparent 42%),
    linear-gradient(150deg,rgba(4,20,21,.94),rgba(2,10,13,.98))!important;
}
html body.v146142-ui .v119-inventory-list>.v124-item-card.type-consumable>.v39-item-icon-wrap>.item-emblem{
  width:clamp(70px,24vw,92px)!important;
  min-width:70px!important;
  max-width:92px!important;
  height:100%!important;
  min-height:72px!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
html body.v146142-ui .v119-inventory-list>.v124-item-card.type-consumable .item-emblem :is(img,.item-asset-image){
  width:82%!important;
  height:82%!important;
  max-width:82%!important;
  max-height:82%!important;
}
html body.v146142-ui .v119-inventory-list>.v124-item-card.type-consumable .v124-stack-count{
  right:2px!important;
  bottom:2px!important;
  top:auto!important;
  min-width:25px!important;
  height:20px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  font-size:8.5px!important;
}

/* ========================================================================== */
/* 4. LOCATION ROUTE BUTTONS — no brown rectangular plate behind ornament.    */
/* ========================================================================== */
html body.v146142-ui.v134-location-screen .v119-location-routes .location-btn{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body.v146142-ui.v134-location-screen .v119-location-routes .location-btn::before,
html body.v146142-ui.v134-location-screen .v119-location-routes .location-btn::after{
  background:transparent!important;
  box-shadow:none!important;
}
html body.v146142-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-bg{
  inset:7px 12px!important;
  width:calc(100% - 24px)!important;
  height:calc(100% - 14px)!important;
  border-radius:0!important;
  clip-path:polygon(5% 10%,95% 10%,98% 24%,98% 76%,95% 90%,5% 90%,2% 76%,2% 24%)!important;
  -webkit-clip-path:polygon(5% 10%,95% 10%,98% 24%,98% 76%,95% 90%,5% 90%,2% 76%,2% 24%)!important;
}
html body.v146142-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-frame{
  inset:0!important;
  width:100%!important;
  height:100%!important;
}

/* ========================================================================== */
/* 5. PIT — native finger scrolling + visible thin scrollbar.                 */
/* ========================================================================== */
html body.v146142-ui.v146100-pit-screen-active .v146100-pit-main{
  overflow:visible!important;
}
html body.v146142-ui .v146101-pit-main .v146114-pit-scene{
  grid-template-rows:minmax(0,1fr) auto!important;
  height:clamp(420px,calc(var(--v146139-vh,100dvh) - var(--v146139-nav-base,58px) - 150px),680px)!important;
  min-height:420px!important;
  max-height:680px!important;
  overflow:hidden!important;
}
html body.v146142-ui .v146114-pit-scene .v146112-pit-loot-scroll,
html body.v146142-ui .v146110-pit-loot-scroll{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  padding:5px 7px calc(18px + var(--v146139-safe-bottom,0px)) 4px!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  overscroll-behavior-y:contain!important;
  scroll-behavior:auto!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(192,145,63,.74) rgba(3,17,19,.34)!important;
}
html body.v146142-ui .v146114-pit-scene .v146112-pit-loot-scroll::-webkit-scrollbar,
html body.v146142-ui .v146110-pit-loot-scroll::-webkit-scrollbar{
  display:block!important;
  width:4px!important;
  height:4px!important;
}
html body.v146142-ui .v146114-pit-scene .v146112-pit-loot-scroll::-webkit-scrollbar-track,
html body.v146142-ui .v146110-pit-loot-scroll::-webkit-scrollbar-track{
  background:rgba(3,17,19,.34)!important;
  border-radius:0!important;
}
html body.v146142-ui .v146114-pit-scene .v146112-pit-loot-scroll::-webkit-scrollbar-thumb,
html body.v146142-ui .v146110-pit-loot-scroll::-webkit-scrollbar-thumb{
  min-height:34px!important;
  background:linear-gradient(180deg,rgba(213,166,75,.84),rgba(130,91,34,.74))!important;
  border-radius:0!important;
}
html body.v146142-ui .v146112-pit-footer{
  position:relative!important;
  z-index:4!important;
  pointer-events:auto!important;
}

@media(max-height:720px){
  html body.v146142-ui .v146101-pit-main .v146114-pit-scene{
    height:clamp(350px,calc(var(--v146139-vh,100dvh) - var(--v146139-nav-base,58px) - 126px),560px)!important;
    min-height:350px!important;
  }
}

/* ===== css/v146143-classic-monster-potion-route-restore.css ===== */
/* Aldos RPG v1.146.143 — restore v138 monster minis, compact potion metadata and route artwork.
   Existing artwork only. No gameplay/state changes. */

/* ========================================================================== */
/* 1. MONSTER MINI CARDS — restore the proven v138 geometry.                  */
/* ========================================================================== */
html body.v146143-ui.v134-location-screen .v119-monster-grid{
  width:100%!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;
  padding:7px 0 0!important;
  min-width:0!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-card{
  position:relative!important;
  isolation:isolate!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:154px!important;
  min-height:154px!important;
  max-height:154px!important;
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  grid-template-rows:92px 38px!important;
  gap:5px!important;
  padding:11px!important;
  overflow:hidden!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-card .v14697-monster-bg{
  position:absolute!important;
  z-index:0!important;
  inset:3px!important;
  width:calc(100% - 6px)!important;
  height:calc(100% - 6px)!important;
  max-width:none!important;
  max-height:none!important;
  border-radius:8px!important;
  object-fit:cover!important;
  object-position:center 56%!important;
  filter:brightness(.88) saturate(.92) contrast(1.08)!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-card:not(.rank-elite) .v14697-monster-frame{
  position:absolute!important;
  z-index:4!important;
  inset:-3px -8px -3px -3px!important;
  width:calc(100% + 11px)!important;
  height:calc(100% + 6px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  opacity:1!important;
  overflow:visible!important;
  pointer-events:none!important;
  transform:none!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-card.rank-elite .v14697-monster-frame{
  position:absolute!important;
  z-index:4!important;
  inset:-4px -7px!important;
  width:calc(100% + 14px)!important;
  height:calc(100% + 8px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  opacity:1!important;
  overflow:visible!important;
  pointer-events:none!important;
  transform:none!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-card.rank-elite .v14697-monster-bg{
  inset:2px!important;
  width:calc(100% - 4px)!important;
  height:calc(100% - 4px)!important;
  filter:brightness(.92) saturate(1.18) contrast(1.14)!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-art{
  position:relative!important;
  z-index:3!important;
  align-self:start!important;
  width:74px!important;
  min-width:74px!important;
  max-width:74px!important;
  height:84px!important;
  min-height:84px!important;
  max-height:84px!important;
  margin:2px 0 0!important;
  overflow:hidden!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-art .monster-asset-image{
  position:absolute!important;
  inset:4px!important;
  width:calc(100% - 8px)!important;
  height:calc(100% - 8px)!important;
  max-width:calc(100% - 8px)!important;
  max-height:calc(100% - 8px)!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:scale(1.12)!important;
  transform-origin:center!important;
  filter:brightness(1.08) saturate(1.02) drop-shadow(0 3px 5px rgba(0,0,0,.74))!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-card.rank-elite .v119-monster-art .monster-asset-image{
  inset:8px!important;
  width:calc(100% - 16px)!important;
  height:calc(100% - 16px)!important;
  max-width:calc(100% - 16px)!important;
  max-height:calc(100% - 16px)!important;
  transform:scale(.96)!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-main{
  position:relative!important;
  z-index:3!important;
  align-self:start!important;
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
  padding:7px 1px 0 0!important;
  overflow:hidden!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-card .v119-monster-main h3{
  display:block!important;
  margin:0!important;
  max-width:100%!important;
  font-size:13px!important;
  line-height:1.02!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-main h3.name-medium{font-size:10.8px!important;line-height:1.03!important;letter-spacing:-.015em!important}
html body.v146143-ui.v134-location-screen .v119-monster-main h3.name-long{font-size:9.8px!important;line-height:1.02!important;letter-spacing:-.025em!important}
html body.v146143-ui.v134-location-screen .v119-monster-main h3.name-very-long{font-size:9.4px!important;line-height:1.02!important;letter-spacing:-.035em!important}
html body.v146143-ui.v134-location-screen .v119-monster-actions{
  position:relative!important;
  z-index:3!important;
  grid-column:1/-1!important;
  align-self:end!important;
  display:grid!important;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.34fr)!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  gap:5px!important;
  margin:0!important;
  padding:0 2px 2px!important;
  transform:none!important;
  overflow:visible!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-actions button{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  min-width:0!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  margin:0!important;
  padding:0 7px!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-actions .v146101-monster-button-bg{
  position:absolute!important;
  z-index:0!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
  filter:none!important;
  pointer-events:none!important;
}
html body.v146143-ui.v134-location-screen .v119-monster-actions button>span{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  font-size:9.5px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  transform:none!important;
  text-shadow:0 2px 3px #000!important;
}
html[data-ui-font-size="medium"] body.v146143-ui.v134-location-screen .v119-monster-card{
  height:162px!important;min-height:162px!important;max-height:162px!important;grid-template-rows:100px 38px!important;
}
html[data-ui-font-size="large"] body.v146143-ui.v134-location-screen .v119-monster-card{
  height:170px!important;min-height:170px!important;max-height:170px!important;grid-template-rows:108px 38px!important;
}

/* ========================================================================== */
/* 2. INVENTORY POTIONS — compact art left; “Расходник” + short value right.  */
/* ========================================================================== */
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable{
  grid-template-columns:clamp(62px,20vw,78px) minmax(0,1fr)!important;
  grid-template-areas:"head head" "icon body" "actions actions"!important;
  grid-template-rows:26px minmax(72px,auto) 38px!important;
  gap:6px 8px!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable>.v39-item-icon-wrap{
  grid-area:icon!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:72px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:8px!important;
  border:1px solid rgba(212,170,82,.34)!important;
  background:linear-gradient(150deg,rgba(4,20,21,.94),rgba(2,10,13,.98))!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable>.v39-item-icon-wrap>.item-emblem{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  min-height:72px!important;
  max-height:none!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  background:transparent!important;
  overflow:hidden!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .item-emblem :is(img,.item-asset-image){
  width:68%!important;
  height:68%!important;
  max-width:68%!important;
  max-height:68%!important;
  object-fit:contain!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable>.v39-item-body{
  grid-area:body!important;
  display:grid!important;
  align-content:center!important;
  min-width:0!important;
  min-height:72px!important;
  padding:0!important;
  overflow:hidden!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v124-item-meta{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:center!important;
  justify-items:start!important;
  gap:7px!important;
  width:100%!important;
  min-height:0!important;
  padding:0!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v125-item-tags,
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v127-single-item-tag{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:0!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v127-item-primary-tag{
  display:inline-flex!important;
  align-items:center!important;
  min-height:23px!important;
  padding:4px 8px!important;
  border:1px solid rgba(177,157,105,.34)!important;
  border-radius:7px!important;
  background:rgba(5,13,15,.72)!important;
  color:#c9c6ba!important;
  font-size:9px!important;
  font-weight:700!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v122-item-quick{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  gap:0!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v146143-potion-quick{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:52px!important;
  min-height:25px!important;
  max-width:100%!important;
  padding:4px 9px!important;
  border:1px solid rgba(219,236,227,.34)!important;
  border-radius:8px!important;
  background:rgba(7,20,17,.78)!important;
  color:#fff!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035)!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v146143-potion-quick b{
  color:#fff!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.v146143-ui .v119-item-card.type-consumable .v146137-potion-mini-value,
html body.v146143-ui .v119-item-card.type-consumable .v146135-potion-mini-badge{
  display:none!important;
}
html body.v146143-ui .v119-inventory-list>.v124-item-card.type-consumable .v124-stack-count{
  right:3px!important;
  bottom:3px!important;
  top:auto!important;
  min-width:24px!important;
  height:20px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  font-size:8.5px!important;
}

/* ========================================================================== */
/* 3. LOCATION ROUTES — restore destination art; remove the brown container.  */
/* ========================================================================== */
html body.v146143-ui.v134-location-screen .v119-location-routes{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html body.v146143-ui.v134-location-screen .v119-location-routes .location-btn{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
html body.v146143-ui.v134-location-screen .v119-location-routes .location-btn::before,
html body.v146143-ui.v134-location-screen .v119-location-routes .location-btn::after{
  content:none!important;
  display:none!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body.v146143-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-bg{
  position:absolute!important;
  z-index:0!important;
  inset:4px!important;
  width:calc(100% - 8px)!important;
  height:calc(100% - 8px)!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  border-radius:7px!important;
  object-fit:cover!important;
  object-position:center!important;
  filter:brightness(.68) saturate(.82) contrast(1.04)!important;
  opacity:1!important;
  clip-path:inset(0 round 7px)!important;
  -webkit-clip-path:inset(0 round 7px)!important;
  pointer-events:none!important;
  transform:none!important;
}
html body.v146143-ui.v134-location-screen .v119-location-routes .location-btn .v14697-route-frame{
  position:absolute!important;
  z-index:2!important;
  inset:1px!important;
  width:calc(100% - 2px)!important;
  height:calc(100% - 2px)!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  opacity:1!important;
  pointer-events:none!important;
  transform:none!important;
}
html body.v146143-ui.v134-location-screen .v119-location-routes .location-btn>span,
html body.v146143-ui.v134-location-screen .v119-location-routes .location-btn>.v86-route-weather{
  position:relative!important;
  z-index:3!important;
}

/* ===== css/v146144-expedition-chat-panel-potion-mercy-hotfix.css ===== */
/* Aldos RPG v1.146.144 — expedition/chat/panel/potion polish. Existing artwork only. */

/* New dungeon potions keep their normal card art on the left; the short value on
   the right gets a tiny copy of that same existing item asset for faster reading. */
html body.v146144-ui .v119-inventory-list>.v124-item-card.type-consumable .v146144-new-potion-quick{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  min-width:0!important;
  max-width:100%!important;
  padding:3px 7px 3px 4px!important;
}
html body.v146144-ui .v119-inventory-list>.v124-item-card.type-consumable .v146144-potion-quick-asset{
  display:grid!important;
  place-items:center!important;
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  overflow:hidden!important;
  border-radius:5px!important;
  background:rgba(1,7,8,.42)!important;
}
html body.v146144-ui .v119-inventory-list>.v124-item-card.type-consumable .v146144-potion-quick-asset :is(img,svg,.item-asset-image,.class-asset-image){
  display:block!important;
  width:18px!important;
  max-width:18px!important;
  height:18px!important;
  max-height:18px!important;
  object-fit:contain!important;
  margin:0!important;
}
html body.v146144-ui .v119-inventory-list>.v124-item-card.type-consumable .v146144-new-potion-quick b{
  min-width:0!important;
  max-width:100%!important;
  font-size:9.5px!important;
  letter-spacing:-.01em!important;
}

/* Opening chat must never visibly smooth-scroll from an old position. */
html body.v146144-ui :is(#v78-location-chat-scroll,#v78-chat-scroll,.v78-chat-scroll,.v1469-chat-scroll){
  scroll-behavior:auto!important;
}

/* ===== css/v146145-private-cosmetics-prototype.css ===== */
/* Aldos RPG v1.146.145 PRIVATE — donation cosmetics prototype.
   18 user-provided triples: 512x576 avatar plate, 1280x360 message, 1200x800 player card.
   Purchases remain disabled; this layer only restores rendering/preview for PRIVATE testing. */

/* -------------------------------------------------------------------------- */
/* CHAT MESSAGE — keep the current compact layout, only add a clipped art layer. */
/* -------------------------------------------------------------------------- */
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:#061316!important;
  background-image:none!important;
  border-radius:11px!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-chat-cosmetic-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:inherit!important;
  object-fit:cover!important;
  object-position:center!important;
  opacity:1!important;
  filter:none!important;
  pointer-events:none!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  border-radius:inherit!important;
  background:
    linear-gradient(90deg,
      rgba(2,8,10,var(--v146145-message-shade,.46)),
      rgba(2,8,10,var(--v146145-message-shade,.46)) 58%,
      rgba(2,8,10,calc(var(--v146145-message-shade,.46) + .08)))!important;
  pointer-events:none!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content,
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar,
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint,
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint{
  position:relative!important;
  z-index:2!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v131-chat-name,
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v123-chat-text{
  color:#f5f4ee!important;
  text-shadow:0 1px 2px rgba(0,0,0,.92),0 0 5px rgba(0,0,0,.38)!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v146126-role-level{
  color:#c4d2cd!important;
  text-shadow:0 1px 2px rgba(0,0,0,.9)!important;
}

/* -------------------------------------------------------------------------- */
/* 512x576 PLATE — preserve the class/gender portrait in the middle.           */
/* -------------------------------------------------------------------------- */
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar{
  position:relative!important;
  isolation:isolate!important;
  align-self:start!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:45px!important;
  min-height:45px!important;
  max-height:45px!important;
  aspect-ratio:8/9!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:8px!important;
  background:#02090b!important;
  box-shadow:0 1px 4px rgba(0,0,0,.48)!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-cosmetic-plate{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:8px!important;
  object-fit:cover!important;
  object-position:center!important;
  filter:brightness(.88) saturate(.95)!important;
  pointer-events:none!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-face-layer{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  z-index:2!important;
  width:30px!important;
  height:32px!important;
  transform:translate(-50%,-50%)!important;
  display:block!important;
  overflow:hidden!important;
  border:1px solid rgba(229,191,102,.68)!important;
  border-radius:7px!important;
  background:#031014!important;
  box-shadow:0 0 0 1px rgba(1,7,9,.72),0 2px 7px rgba(0,0,0,.52)!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-face-layer :where(img,svg,.v131-chat-face,.class-asset-image){
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:6px!important;
  object-fit:cover!important;
  object-position:center!important;
}
html body.v146145-ui .v1469-chat-drawer .v146123-chat-message:has(>.v146145-cosmetic-avatar){
  grid-template-columns:40px minmax(0,1fr)!important;
  min-height:55px!important;
}
@media (max-width:370px){
  html body.v146145-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar{
    width:38px!important;min-width:38px!important;max-width:38px!important;
    height:43px!important;min-height:43px!important;max-height:43px!important;
  }
  html body.v146145-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-face-layer{width:29px!important;height:30px!important}
  html body.v146145-ui .v1469-chat-drawer .v146123-chat-message:has(>.v146145-cosmetic-avatar){grid-template-columns:38px minmax(0,1fr)!important;min-height:52px!important}
}

/* -------------------------------------------------------------------------- */
/* PLAYER CARD — 1200x800 art, straight corners inherited from v142.           */
/* -------------------------------------------------------------------------- */
html body.v146145-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border-radius:1px!important;
  background:#030607!important;
  background-image:none!important;
}
html body.v146145-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-player-cosmetic-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  border:0!important;
  border-radius:inherit!important;
  object-fit:cover!important;
  object-position:center!important;
  opacity:1!important;
  filter:none!important;
  pointer-events:none!important;
}
html body.v146145-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v123-player-card-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  border-radius:inherit!important;
  opacity:1!important;
  background:
    linear-gradient(90deg,rgba(2,6,8,calc(var(--v146145-card-shade,.34) + .08)),rgba(2,6,8,var(--v146145-card-shade,.34)) 50%,rgba(2,6,8,calc(var(--v146145-card-shade,.34) + .12))),
    linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.32))!important;
  pointer-events:none!important;
}
html body.v146145-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>:not(.v14649-player-cosmetic-bg):not(.v123-player-card-bg){position:relative!important;z-index:2!important}
html body.v146145-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) :is(h2,b,p,small,span){text-shadow:0 1px 2px rgba(0,0,0,.86)!important}

/* -------------------------------------------------------------------------- */
/* HALL OF PATRONS — live three-part preview.                                  */
/* -------------------------------------------------------------------------- */
html body.v146145-ui .v146145-cosmetic-preview{
  width:min(94vw,460px)!important;
  max-height:min(88dvh,760px)!important;
  overflow:auto!important;
  padding:14px!important;
  border:1px solid rgba(214,171,77,.42)!important;
  border-radius:12px!important;
  background:linear-gradient(155deg,#071517,#050b0d)!important;
}
html body.v146145-ui .v146145-cosmetic-preview>small{display:block!important;color:#8ad9c2!important;font-size:9px!important;font-weight:800!important;letter-spacing:.12em!important}
html body.v146145-ui .v146145-cosmetic-preview>h3{margin:4px 0 10px!important}
html body.v146145-ui .v146145-preview-avatar{position:relative!important;width:64px!important;height:72px!important;aspect-ratio:8/9!important;margin:0 0 10px!important;overflow:hidden!important;border-radius:10px!important;background:#031012!important}
html body.v146145-ui .v146145-preview-avatar>.v146145-preview-icon{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important}
html body.v146145-ui .v146145-preview-avatar>span{position:absolute!important;left:50%!important;top:50%!important;width:47px!important;height:50px!important;transform:translate(-50%,-50%)!important;overflow:hidden!important;border:1px solid rgba(229,191,102,.7)!important;border-radius:8px!important;background:#031012!important}
html body.v146145-ui .v146145-preview-avatar>span :where(img,svg,.v146145-preview-face){width:100%!important;height:100%!important;object-fit:cover!important;border-radius:7px!important}
html body.v146145-ui .v146145-cosmetic-preview :is(.v146145-preview-message,.v146145-preview-card){position:relative!important;isolation:isolate!important;overflow:hidden!important;margin:8px 0!important;border:1px solid rgba(214,171,77,.38)!important;background:#071214!important}
html body.v146145-ui .v146145-preview-message{min-height:92px!important;border-radius:11px!important}
html body.v146145-ui .v146145-preview-card{aspect-ratio:3/2!important;min-height:180px!important;border-radius:1px!important}
html body.v146145-ui .v146145-cosmetic-preview .v14649-preview-bg{display:block!important;position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;object-fit:cover!important;opacity:1!important;filter:brightness(.62)!important}
html body.v146145-ui .v146145-cosmetic-preview .v14649-preview-content{position:relative!important;z-index:2!important;display:grid!important;align-content:center!important;gap:4px!important;min-height:100%!important;padding:12px!important;color:#f5f2e9!important;text-shadow:0 1px 3px #000!important}
html body.v146145-ui .v146145-cosmetic-preview .v14649-preview-content>b{font-size:14px!important}
html body.v146145-ui .v146145-cosmetic-preview .v14649-preview-content>small{font-size:10px!important;color:#d1d7d2!important}
html body.v146145-ui .v146145-cosmetic-preview .v14649-preview-content>p{margin:5px 0!important;font-size:12px!important}
html body.v146145-ui .v146145-preview-note{margin:10px 0 0!important;color:#9cb1ac!important;font-size:9px!important;line-height:1.45!important}

/* Store cards are previews only in this PRIVATE build; no buy-button re-enable. */
html body.v146145-ui .v14659-patron-product.cosmetic .v14659-product-art>img{object-fit:cover!important;object-position:center!important}
html body.v146145-ui .v14688-cosmetic-notice{border-color:rgba(78,211,176,.35)!important;background:rgba(14,80,68,.14)!important;color:#b9e9dc!important}

/* ===== css/v146146-private-cosmetics-layout-purchase-hotfix.css ===== */
/* Aldos RPG v1.146.146 PRIVATE — cosmetic layout + purchase iteration.
   Reuses v145 user-provided art. The art is decoration only: it never dictates card height. */

/* CHAT: cosmetic art must never turn a one-word message into a banner. */
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:6px!important;
  min-height:46px!important;
  height:auto!important;
  padding:4px 6px!important;
  align-items:start!important;
  overflow:hidden!important;
  border-radius:10px!important;
  background:#061316!important;
}
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-chat-cosmetic-bg{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;aspect-ratio:auto!important;contain:size paint!important;pointer-events:none!important;
}
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content{
  min-height:0!important;align-self:start!important;padding-top:1px!important;
}
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v123-chat-text{
  min-height:0!important;margin-top:2px!important;line-height:1.28!important;
}

/* CHAT AVATAR: keep the decorative 8:9 source, but crop it into the same compact rhythm as a normal chat face. */
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar{
  position:relative!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  margin:0!important;padding:0!important;align-self:start!important;overflow:visible!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;
}
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-cosmetic-plate{
  position:absolute!important;inset:0!important;width:36px!important;height:40px!important;object-fit:fill!important;object-position:center!important;border-radius:8px!important;
  filter:brightness(.92) saturate(.96) drop-shadow(0 2px 3px rgba(0,0,0,.62))!important;z-index:0!important;
}
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-face-layer{
  left:50%!important;top:50%!important;width:27px!important;height:29px!important;transform:translate(-50%,-49%)!important;border:1px solid rgba(236,202,126,.72)!important;border-radius:6px!important;
  background:rgba(2,11,14,.94)!important;box-shadow:0 0 0 1px rgba(0,0,0,.7),0 2px 6px rgba(0,0,0,.5)!important;z-index:2!important;
}
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-face-layer::after{
  content:""!important;position:absolute!important;inset:1px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:4px!important;pointer-events:none!important;
}
html body.v146146-ui .v1469-chat-drawer .v146123-chat-message:has(>.v146145-cosmetic-avatar){
  grid-template-columns:36px minmax(0,1fr)!important;min-height:46px!important;
}
@media (max-width:370px){
  html body.v146146-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){grid-template-columns:34px minmax(0,1fr)!important;min-height:44px!important;padding:4px 5px!important;gap:5px!important}
  html body.v146146-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar{width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;max-height:38px!important}
  html body.v146146-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-cosmetic-plate{width:34px!important;height:38px!important}
  html body.v146146-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar.v146145-cosmetic-avatar>.v146145-chat-face-layer{width:25px!important;height:27px!important}
  html body.v146146-ui .v1469-chat-drawer .v146123-chat-message:has(>.v146145-cosmetic-avatar){grid-template-columns:34px minmax(0,1fr)!important;min-height:44px!important}
}

/* PLAYER CARD: art remains visible, but the data lives on calm translucent glass panels. */
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  grid-template-columns:clamp(90px,28vw,116px) minmax(0,1fr)!important;
  grid-template-areas:"account account" "portrait identity" "portrait info" "actions actions"!important;
  gap:7px!important;padding:8px!important;background:#020607!important;border-radius:1px!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v123-player-card-bg{
  background:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.28))!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) :is(.v125-player-account,.v125-player-identity,.v125-player-info>span){
  border:1px solid rgba(221,190,119,.20)!important;border-radius:4px!important;background:rgba(2,10,13,.67)!important;
  -webkit-backdrop-filter:blur(2px)!important;backdrop-filter:blur(2px)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-account{
  padding:7px 9px!important;padding-right:42px!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-portrait{
  position:relative!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;width:clamp(90px,28vw,116px)!important;height:clamp(140px,43vw,176px)!important;
  margin:0!important;padding:4px 4px 0!important;border:1px solid rgba(226,190,103,.42)!important;border-radius:4px!important;background:rgba(2,10,13,.66)!important;overflow:hidden!important;
  -webkit-backdrop-filter:blur(2px)!important;backdrop-filter:blur(2px)!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-portrait :where(img,.class-asset-image,svg){
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;margin:0!important;padding:2px 2px 0!important;
  object-fit:contain!important;object-position:center bottom!important;transform:none!important;align-self:flex-end!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-portrait em{
  left:6px!important;bottom:6px!important;border-radius:4px!important;background:rgba(2,10,13,.88)!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-identity{
  align-self:start!important;padding:8px 9px!important;min-width:0!important;
}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-identity h2{font-size:clamp(17px,5vw,22px)!important}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-info{gap:6px!important;align-self:start!important}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-info>span{padding:7px 8px!important}
html body.v146146-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v125-player-actions{
  padding:6px!important;border:1px solid rgba(221,190,119,.16)!important;border-radius:4px!important;background:rgba(2,10,13,.58)!important;
}

/* PRIVATE live preview now mirrors the runtime components instead of showing disconnected art blocks. */
html body.v146146-ui .v146146-cosmetic-preview{width:min(94vw,470px)!important}
html body.v146146-ui .v146146-preview-message{
  position:relative!important;isolation:isolate!important;display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;
  min-height:46px!important;height:auto!important;margin:10px 0!important;padding:4px 6px!important;overflow:hidden!important;border:1px solid rgba(116,205,186,.35)!important;border-radius:10px!important;background:#061316!important;
}
html body.v146146-ui .v146146-preview-message-bg{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;object-fit:cover!important;pointer-events:none!important}
html body.v146146-ui .v146146-preview-message::after{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;background:rgba(2,8,10,var(--v146146-message-shade,.46))!important;pointer-events:none!important}
html body.v146146-ui .v146146-preview-chat-avatar{position:relative!important;z-index:2!important;width:36px!important;height:40px!important;overflow:visible!important}
html body.v146146-ui .v146146-preview-chat-plate{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;border-radius:8px!important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))!important}
html body.v146146-ui .v146146-preview-chat-avatar>span{position:absolute!important;left:50%!important;top:50%!important;width:27px!important;height:29px!important;transform:translate(-50%,-49%)!important;overflow:hidden!important;border:1px solid rgba(236,202,126,.72)!important;border-radius:6px!important;background:#031012!important}
html body.v146146-ui .v146146-preview-chat-avatar>span :where(img,svg,.v146146-preview-face){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;transform:none!important}
html body.v146146-ui .v146146-preview-chat-copy{position:relative!important;z-index:2!important;display:grid!important;gap:2px!important;min-width:0!important;color:#f4f2ec!important;text-shadow:0 1px 2px #000!important}
html body.v146146-ui .v146146-preview-chat-copy>div{display:flex!important;align-items:baseline!important;gap:5px!important;min-width:0!important}
html body.v146146-ui .v146146-preview-chat-copy b{font-size:11px!important}
html body.v146146-ui .v146146-preview-chat-copy small{font-size:7px!important;color:#b9c8c4!important}
html body.v146146-ui .v146146-preview-chat-copy p{margin:0!important;font-size:10px!important;line-height:1.25!important}

html body.v146146-ui .v146146-preview-player-card{
  position:relative!important;isolation:isolate!important;display:grid!important;grid-template-columns:104px minmax(0,1fr)!important;grid-template-areas:"head head" "portrait identity" "portrait info"!important;
  gap:7px!important;min-height:240px!important;margin:10px 0!important;padding:8px!important;overflow:hidden!important;border:1px solid rgba(214,171,77,.42)!important;border-radius:1px!important;background:#020607!important;
}
html body.v146146-ui .v146146-preview-card-bg{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
html body.v146146-ui .v146146-preview-card-shade{position:absolute!important;inset:0!important;z-index:1!important;background:rgba(2,7,10,var(--v146146-card-shade,.34))!important}
html body.v146146-ui .v146146-preview-player-card>:not(.v146146-preview-card-bg):not(.v146146-preview-card-shade){position:relative!important;z-index:2!important}
html body.v146146-ui .v146146-preview-player-card>header{grid-area:head!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:2px 7px!important;padding:7px 8px!important;border:1px solid rgba(221,190,119,.20)!important;border-radius:4px!important;background:rgba(2,10,13,.67)!important}
html body.v146146-ui .v146146-preview-player-card>header small{grid-column:1/-1!important;font-size:6px!important;opacity:.65!important}
html body.v146146-ui .v146146-preview-player-card>header b{font-size:12px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v146146-ui .v146146-preview-player-card>header span{align-self:center!important;font-size:7px!important;color:#a7e76b!important}
html body.v146146-ui .v146146-preview-player-portrait{grid-area:portrait!important;position:relative!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;height:168px!important;padding:4px 4px 0!important;overflow:hidden!important;border:1px solid rgba(226,190,103,.42)!important;border-radius:4px!important;background:rgba(2,10,13,.66)!important}
html body.v146146-ui .v146146-preview-player-portrait :where(img,svg,.v146146-preview-player-art){width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center bottom!important;padding:2px 2px 0!important;transform:none!important}
html body.v146146-ui .v146146-preview-player-portrait em{position:absolute!important;left:6px!important;bottom:6px!important;padding:3px 5px!important;border-radius:4px!important;background:rgba(2,10,13,.88)!important;color:#efc96f!important;font-size:7px!important;font-style:normal!important}
html body.v146146-ui .v146146-preview-player-identity{grid-area:identity!important;align-self:start!important;padding:8px!important;border:1px solid rgba(221,190,119,.20)!important;border-radius:4px!important;background:rgba(2,10,13,.67)!important;color:#f3f0e7!important;text-shadow:0 1px 2px #000!important}
html body.v146146-ui .v146146-preview-player-identity h4{margin:4px 0!important;font-size:18px!important}
html body.v146146-ui .v146146-preview-player-identity p{margin:0!important;font-size:9px!important;color:#c6d0cc!important}
html body.v146146-ui .v146146-preview-player-info{grid-area:info!important;display:grid!important;gap:6px!important;align-self:start!important}
html body.v146146-ui .v146146-preview-player-info>span{display:grid!important;gap:2px!important;padding:7px!important;border:1px solid rgba(221,190,119,.20)!important;border-radius:4px!important;background:rgba(2,10,13,.67)!important}
html body.v146146-ui .v146146-preview-player-info small{font-size:6px!important;color:#9eb0aa!important}
html body.v146146-ui .v146146-preview-player-info b{font-size:9px!important;color:#f2eee4!important}
html body.v146146-ui .v146146-cosmetic-preview>.v146145-preview-avatar,
html body.v146146-ui .v146146-cosmetic-preview>.v146145-preview-message,
html body.v146146-ui .v146146-cosmetic-preview>.v146145-preview-card{display:none!important}
html body.v146146-ui .v146146-cosmetic-notice{border-color:rgba(78,181,139,.38)!important;background:rgba(35,112,82,.14)!important;color:#b9dfcf!important}
html body.v146146-ui .v146146-admin-cosmetic-note{display:block!important;grid-column:1/-1!important;color:rgba(231,222,191,.62)!important;font-size:7px!important;line-height:1.35!important}

/* ===== css/v146147-private-cosmetics-message-footer-hotfix.css ===== */
/* Aldos RPG v1.146.147 PRIVATE — cosmetic message intrinsic-height + compact patron utility footer.
   Existing user-provided cosmetic art only. No generated images. */

/* --------------------------------------------------------------------------
   CHAT COSMETIC BACKGROUND — CSS layer only, never a DOM/grid item.
   This explicitly neutralizes the old image node in case a stale DOM survives
   a hot reconnect, and removes the obsolete empty timestamp row for themed cards.
   -------------------------------------------------------------------------- */
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:6px!important;
  align-items:start!important;
  width:100%!important;
  height:auto!important;
  min-height:48px!important;
  max-height:none!important;
  margin:0 0 3px!important;
  padding:4px 6px!important;
  overflow:hidden!important;
  border-radius:10px!important;
  background:#061316!important;
  box-sizing:border-box!important;
}
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  background-image:var(--v146147-message-bg)!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  opacity:1!important;
  pointer-events:none!important;
  transform:none!important;
}
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  background:linear-gradient(90deg,rgba(2,8,10,calc(var(--v146145-message-shade,.46) + .04)),rgba(2,8,10,var(--v146145-message-shade,.46)))!important;
  pointer-events:none!important;
}
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-chat-cosmetic-bg{
  display:none!important;
  position:absolute!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  max-width:0!important;
  max-height:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar,
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content,
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint,
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint{
  position:relative!important;
  z-index:2!important;
}
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content{
  display:grid!important;
  grid-template-rows:18px auto!important;
  row-gap:1px!important;
  align-content:start!important;
  align-self:start!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:40px!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v123-chat-text{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:2px 0 0!important;
  padding:0!important;
  line-height:1.28!important;
  overflow-wrap:anywhere!important;
}
html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar.v146145-cosmetic-avatar{
  align-self:start!important;
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
}

/* --------------------------------------------------------------------------
   PATRON HALL — compact, readable bottom utility plate.
   Three controls stay on one row down to 320px and visibly show opened state.
   -------------------------------------------------------------------------- */
html body.v146147-ui .v14659-patron-footer.v146147-patron-footer{
  position:relative!important;
  display:grid!important;
  grid-template-columns:.82fr 1.22fr .82fr!important;
  gap:4px!important;
  width:100%!important;
  margin:8px 0 2px!important;
  padding:5px!important;
  border:1px solid rgba(205,174,92,.28)!important;
  border-radius:8px!important;
  background:linear-gradient(180deg,rgba(5,26,27,.94),rgba(3,14,17,.97))!important;
  box-shadow:inset 0 0 0 1px rgba(94,194,169,.05),0 5px 16px rgba(0,0,0,.28)!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
html body.v146147-ui .v14659-patron-footer.v146147-patron-footer>button{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:30px!important;
  height:30px!important;
  margin:0!important;
  padding:4px 5px!important;
  border:1px solid rgba(103,190,168,.20)!important;
  border-radius:6px!important;
  background:linear-gradient(180deg,rgba(15,58,57,.72),rgba(5,29,31,.88))!important;
  color:#d7e4df!important;
  font:750 clamp(7.8px,2.45vw,9.5px)/1 system-ui,sans-serif!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html body.v146147-ui .v14659-patron-footer.v146147-patron-footer>button::before{
  content:""!important;
  position:absolute!important;
  left:7px!important;
  right:7px!important;
  top:2px!important;
  height:1px!important;
  border-radius:2px!important;
  background:linear-gradient(90deg,transparent,rgba(217,184,95,.58),transparent)!important;
  opacity:.72!important;
  pointer-events:none!important;
}
html body.v146147-ui .v14659-patron-footer.v146147-patron-footer>button:active{
  transform:translateY(1px)!important;
  background:linear-gradient(180deg,rgba(20,72,68,.82),rgba(7,35,36,.94))!important;
}
html body.v146147-ui .v14659-patron-footer.v146147-patron-footer>button.active{
  border-color:rgba(220,185,91,.58)!important;
  background:linear-gradient(180deg,rgba(79,69,32,.72),rgba(25,48,39,.94))!important;
  color:#fff4cf!important;
  box-shadow:inset 0 0 0 1px rgba(255,219,118,.08),0 0 10px rgba(213,172,67,.08)!important;
}
html body.v146147-ui .v14659-patron-footer.v146147-patron-footer>span{
  grid-column:1/-1!important;
  display:block!important;
  min-height:0!important;
  margin:0!important;
  padding:1px 0 0!important;
  color:rgba(131,203,185,.62)!important;
  font:800 6px/1 system-ui,sans-serif!important;
  letter-spacing:.14em!important;
  text-align:center!important;
}
@media(max-width:350px){
  html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){grid-template-columns:34px minmax(0,1fr)!important;gap:5px!important;min-height:46px!important;padding:4px 5px!important}
  html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content{min-height:38px!important}
  html body.v146147-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar.v146145-cosmetic-avatar{width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;max-height:38px!important}
  html body.v146147-ui .v14659-patron-footer.v146147-patron-footer{grid-template-columns:.78fr 1.28fr .78fr!important;gap:3px!important;padding:4px!important}
  html body.v146147-ui .v14659-patron-footer.v146147-patron-footer>button{height:28px!important;min-height:28px!important;padding:3px 3px!important;font-size:7.6px!important}
}

/* ===== css/v146148-private-cosmetics-patron-gift-overlay-hotfix.css ===== */
/* Aldos RPG v1.146.148 PRIVATE — cosmetic background restore, Patron Gift, overlay/title fixes. Existing assets only. */

/* Cosmetic chat background: visible again, but remains a zero-layout pseudo layer. */
html body.v146148-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::before{
  display:block!important;content:""!important;position:absolute!important;inset:0!important;z-index:0!important;
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  background-image:var(--v146147-message-bg)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
  opacity:1!important;visibility:visible!important;pointer-events:none!important;transform:none!important;
}
html body.v146148-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::after{
  display:block!important;content:""!important;z-index:1!important;position:absolute!important;inset:0!important;pointer-events:none!important;background:linear-gradient(90deg,rgba(2,8,10,.16),rgba(2,8,10,var(--v146145-message-shade,.46)))!important;
}
html body.v146148-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){background:#061316!important;min-height:48px!important;height:auto!important;max-height:none!important;}

/* No stale dark chat screen after an outside dismiss. */
html body.v146148-ui:not(.v78-location-chat-open) .v146139-chat-backdrop{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:none!important;}

/* Player-card shell: compact close control, title is an explicit interactive icon. */
html body.v146148-ui #modal-root>.modal-back.has-v125-player-modal>.modal>.modal-close{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;top:6px!important;right:6px!important;padding:0!important;border-radius:7px!important;font-size:13px!important;line-height:28px!important;}
html body.v146148-ui #modal-root .v125-player-card .v14644-player-title.v146148-title-trigger,
html body.v146148-ui #modal-root .v125-player-card .v14644-player-title{cursor:pointer!important;pointer-events:auto!important;filter:drop-shadow(0 1px 4px rgba(230,191,91,.38))!important;}

/* Patron Hall utility controls live at the top, before recipient/tabs. */
html body.v146148-ui .v146148-patron-utility{display:grid!important;grid-template-columns:.82fr 1.22fr .82fr!important;gap:4px!important;width:100%!important;margin:7px 0!important;padding:5px!important;border:1px solid rgba(205,174,92,.30)!important;border-radius:8px!important;background:linear-gradient(180deg,rgba(5,27,28,.96),rgba(3,14,17,.98))!important;box-sizing:border-box!important;}
html body.v146148-ui .v146148-patron-utility>button{min-width:0!important;height:30px!important;min-height:30px!important;margin:0!important;padding:4px 5px!important;border:1px solid rgba(103,190,168,.22)!important;border-radius:6px!important;background:linear-gradient(180deg,rgba(15,58,57,.74),rgba(5,29,31,.90))!important;color:#dbe8e3!important;font:750 clamp(7.8px,2.45vw,9.5px)/1 system-ui,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html body.v146148-ui .v146148-patron-utility>button.active{border-color:rgba(220,185,91,.62)!important;color:#fff2c4!important;background:linear-gradient(180deg,rgba(82,69,30,.76),rgba(25,48,39,.96))!important;}
html body.v146148-ui .v146148-patron-utility>span{grid-column:1/-1!important;text-align:center!important;color:rgba(131,203,185,.60)!important;font:800 6px/1 system-ui,sans-serif!important;letter-spacing:.14em!important;}
html body.v146148-ui .v14659-patron-footer.v146147-patron-footer{display:none!important;}

/* The special admin-issued Patron Gift in inventory. */
html body.v146148-ui .v119-item-card[data-item-id="v146148_patron_token_gift"]{border-color:rgba(227,185,79,.66)!important;background:radial-gradient(circle at 22% 42%,rgba(62,87,207,.25),transparent 32%),linear-gradient(135deg,rgba(26,19,43,.98),rgba(4,19,23,.98))!important;box-shadow:inset 0 0 0 1px rgba(255,228,134,.08),0 0 18px rgba(85,107,255,.12)!important;overflow:hidden!important;}
html body.v146148-ui .v119-item-card[data-item-id="v146148_patron_token_gift"] .v39-item-aura{display:block!important;position:absolute!important;inset:-45%!important;background:conic-gradient(from 0deg,transparent,rgba(111,136,255,.14),transparent,rgba(232,189,72,.11),transparent)!important;animation:v146148GiftAura 7s linear infinite!important;pointer-events:none!important;}
html body.v146148-ui .v119-item-card[data-item-id="v146148_patron_token_gift"] .item-emblem{border-color:rgba(226,184,73,.56)!important;background:radial-gradient(circle,rgba(70,77,174,.38),rgba(4,14,20,.94))!important;box-shadow:0 0 13px rgba(92,117,255,.24)!important;}
html body.v146148-ui .v146148-gift-quick{display:inline-flex!important;align-items:center!important;gap:3px!important;color:#f5d777!important;font-weight:800!important;}
html body.v146148-ui .v146148-gift-quick img{width:16px!important;height:16px!important;object-fit:contain!important;}

/* Admin broadcaster. */
html body.v146148-ui .v146148-admin-token-gift{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:10px!important;border:1px solid rgba(220,181,75,.34)!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(42,31,64,.78),rgba(8,31,34,.84))!important;}
html body.v146148-ui .v146148-admin-token-gift>img{width:62px!important;height:62px!important;object-fit:contain!important;filter:drop-shadow(0 5px 8px rgba(0,0,0,.55))!important;}
html body.v146148-ui .v146148-admin-token-gift small{color:#dfbd64!important;font-weight:800!important;letter-spacing:.08em!important;}
html body.v146148-ui .v146148-admin-token-gift h3{margin:2px 0!important;}
html body.v146148-ui .v146148-admin-token-gift p{margin:0!important;color:#b8c4c0!important;font-size:.68rem!important;line-height:1.35!important;}
html body.v146148-ui .v146148-admin-gift-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:8px!important;}
html body.v146148-ui .v146148-admin-gift-form>label{min-width:0!important;}
html body.v146148-ui .v146148-admin-gift-reason{grid-column:1/-1!important;}
html body.v146148-ui .v146148-admin-gift-form>button{grid-column:1/-1!important;min-height:38px!important;border-color:rgba(224,183,75,.48)!important;background:linear-gradient(180deg,rgba(89,69,26,.88),rgba(40,45,31,.96))!important;}

/* Gift opening cinematic; uses existing Patron art only. */
html body.v146148-ui #modal-root .v146148-gift-modal{width:min(92vw,360px)!important;overflow:hidden!important;background:radial-gradient(circle at 50% 18%,rgba(48,57,129,.40),transparent 42%),linear-gradient(180deg,#101521,#060b0f)!important;border-color:rgba(226,184,74,.54)!important;}
html body.v146148-ui .v146148-gift-open{display:grid!important;justify-items:center!important;gap:7px!important;text-align:center!important;padding:8px 4px 4px!important;}
html body.v146148-ui .v146148-gift-stage{position:relative!important;width:154px!important;height:142px!important;display:grid!important;place-items:center!important;}
html body.v146148-ui .v146148-gift-rays{position:absolute!important;inset:-26px!important;background:repeating-conic-gradient(from 0deg,rgba(114,139,255,.18) 0 5deg,transparent 5deg 16deg)!important;border-radius:50%!important;animation:v146148GiftAura 5s linear infinite!important;}
html body.v146148-ui .v146148-gift-box{position:relative!important;z-index:2!important;width:118px!important;height:118px!important;object-fit:contain!important;animation:v146148GiftOpen .72s cubic-bezier(.2,.82,.24,1) both!important;}
html body.v146148-ui .v146148-gift-token{position:absolute!important;z-index:3!important;right:4px!important;top:1px!important;width:52px!important;height:52px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:rgba(7,17,31,.86)!important;border:1px solid rgba(231,192,79,.56)!important;animation:v146148TokenPop .82s .28s cubic-bezier(.2,.9,.2,1.2) both!important;}
html body.v146148-ui .v146148-gift-token img{width:42px!important;height:42px!important;object-fit:contain!important;}
html body.v146148-ui .v146148-gift-open>small{color:#e5c569!important;font-weight:900!important;letter-spacing:.13em!important;}
html body.v146148-ui .v146148-gift-open h2{margin:0!important;color:#fff0b1!important;font-size:1.55rem!important;}
html body.v146148-ui .v146148-gift-open p{margin:0 0 4px!important;color:#bdc8c4!important;}
html body.v146148-ui .v146148-gift-open p b{color:#efd36e!important;}
html body.v146148-ui .v146148-gift-open>button{width:100%!important;}
@keyframes v146148GiftAura{to{transform:rotate(360deg)}}
@keyframes v146148GiftOpen{0%{opacity:0;transform:translateY(18px) scale(.72) rotate(-6deg)}55%{opacity:1;transform:translateY(-4px) scale(1.06) rotate(2deg)}100%{opacity:1;transform:none}}
@keyframes v146148TokenPop{0%{opacity:0;transform:translate(-22px,40px) scale(.2)}100%{opacity:1;transform:none}}
@media(max-width:350px){html body.v146148-ui .v146148-patron-utility{gap:3px!important;padding:4px!important}html body.v146148-ui .v146148-patron-utility>button{height:28px!important;min-height:28px!important;font-size:7.5px!important}html body.v146148-ui .v146148-admin-gift-form{grid-template-columns:1fr!important}html body.v146148-ui .v146148-admin-gift-form>*{grid-column:1!important}}
@media(prefers-reduced-motion:reduce){html body.v146148-ui .v146148-gift-box,html body.v146148-ui .v146148-gift-token,html body.v146148-ui .v146148-gift-rays,html body.v146148-ui .v119-item-card[data-item-id="v146148_patron_token_gift"] .v39-item-aura{animation:none!important}}

/* ===== css/v146149-private-chat-mythic-gift-performance-hotfix.css ===== */
/* Aldos RPG v1.146.149 PRIVATE — chat geometry, mythic iridescence, Patron Gift notice, mobile interaction performance. Existing assets only. */

/* CHAT COSMETIC: the artwork is an absolutely positioned SPAN. It cannot become a grid row and cannot dictate height. */
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  position:relative!important;isolation:isolate!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto!important;
  align-items:start!important;gap:5px!important;width:100%!important;height:auto!important;min-height:44px!important;max-height:none!important;
  margin:0 0 3px!important;padding:4px 5px!important;overflow:hidden!important;border-radius:10px!important;background:#061316!important;box-sizing:border-box!important;
  contain:paint!important;
}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::before{display:none!important;content:none!important;background:none!important;}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-chat-cosmetic-bg{display:none!important;width:0!important;height:0!important;}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message>.v146149-chat-art{
  position:absolute!important;inset:0!important;z-index:0!important;display:block!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  grid-column:auto!important;grid-row:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:inherit!important;
  background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;pointer-events:none!important;transform:translateZ(0)!important;contain:strict!important;
}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])::after{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;border-radius:inherit!important;
  background:linear-gradient(90deg,rgba(2,8,10,.14),rgba(2,8,10,calc(var(--v146145-message-shade,.46) - .08)) 52%,rgba(2,8,10,var(--v146145-message-shade,.46)))!important;
}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar,
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content,
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint,
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint{position:relative!important;z-index:2!important;}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar.v146145-cosmetic-avatar{
  width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;max-height:38px!important;align-self:start!important;
}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:1px!important;
  width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;
}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v1469-chat-message-head,
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v1469-chat-meta,
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v146126-chat-name-line{height:auto!important;min-height:15px!important;max-height:none!important;line-height:15px!important;}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v123-chat-text{
  display:block!important;width:100%!important;min-height:0!important;max-height:none!important;margin:1px 0 0!important;padding:0!important;line-height:1.2!important;overflow-wrap:anywhere!important;
}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message .v146123-reply-hint,
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message .v146130-delete-hint{top:50%!important;bottom:auto!important;transform-origin:center!important;}
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message:is(.reply-swipe,.v146130-delete-swipe)>.v1469-chat-avatar,
html body.v146149-ui .v1469-chat-drawer .v146123-chat-message:is(.reply-swipe,.v146130-delete-swipe)>.v1469-chat-content{will-change:transform!important;transition:none!important;}
@media(max-width:370px){
  html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){grid-template-columns:32px minmax(0,1fr)!important;min-height:42px!important;padding:3px 4px!important;gap:4px!important;}
  html body.v146149-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar.v146145-cosmetic-avatar{width:32px!important;min-width:32px!important;max-width:32px!important;height:36px!important;min-height:36px!important;max-height:36px!important;}
}

/* PRIVATE gift system row: local to the receiving client, vivid but lightweight. */
html body.v146149-ui .v1469-chat-drawer .v146149-patron-gift-system{
  border-color:rgba(220,187,82,.74)!important;background:linear-gradient(110deg,rgba(95,18,48,.94),rgba(25,76,35,.94),rgba(72,28,104,.95),rgba(95,18,48,.94))!important;
  background-size:220% 100%!important;animation:v146149GiftSystemFlow 2.8s ease-in-out infinite!important;box-shadow:inset 0 0 0 1px rgba(255,231,125,.08),0 0 14px rgba(147,75,194,.12)!important;
}
html body.v146149-ui .v146149-patron-gift-system .v1469-chat-avatar{border-color:rgba(239,203,101,.72)!important;background:rgba(8,12,19,.86)!important;}
@keyframes v146149GiftSystemFlow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

/* MYTHIC: red -> lime -> purple compositor-driven iridescent aura. */
html body.v146149-ui :is(.v119-inventory-list,.v98-picker-modal) .v124-item-card.rarity-mythic,
html body.v146149-ui .v122-item-detail-card.rarity-mythic{
  position:relative!important;isolation:isolate!important;border-color:rgba(215,76,125,.82)!important;
  background:radial-gradient(circle at 18% 14%,rgba(172,28,62,.24),transparent 38%),radial-gradient(circle at 82% 18%,rgba(146,255,61,.14),transparent 34%),radial-gradient(circle at 58% 88%,rgba(155,57,225,.22),transparent 42%),linear-gradient(145deg,rgba(37,7,22,.99),rgba(10,17,14,.99) 52%,rgba(29,9,42,.99))!important;
}
html body.v146149-ui :is(.v119-inventory-list,.v98-picker-modal) .v124-item-card.rarity-mythic>.v39-item-aura,
html body.v146149-ui .v122-item-detail-card.rarity-mythic>.v39-item-aura{
  display:block!important;position:absolute!important;inset:-65%!important;z-index:0!important;opacity:.42!important;pointer-events:none!important;
  background:conic-gradient(from 0deg,rgba(255,42,79,0),rgba(255,42,79,.38),rgba(153,255,43,.34),rgba(181,65,255,.38),rgba(255,42,79,0))!important;
  filter:none!important;animation:v146149MythicIridescence 5.2s linear infinite!important;will-change:transform!important;transform:translateZ(0) rotate(0deg)!important;
}
html body.v146149-ui :is(.v119-inventory-list,.v98-picker-modal) .v124-item-card.rarity-mythic>:not(.v39-item-aura),
html body.v146149-ui .v122-item-detail-card.rarity-mythic>:not(.v39-item-aura){position:relative!important;z-index:1!important;}
@keyframes v146149MythicIridescence{to{transform:translateZ(0) rotate(360deg)}}

/* POTION quick value: actual health/mana potion asset left of +25% just like dungeon consumables. */
html body.v146149-ui .v146143-potion-quick.v146149-potion-with-asset{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;gap:4px!important;padding:3px 5px!important;}
html body.v146149-ui .v146143-potion-quick .v146149-potion-quick-asset{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;min-width:24px!important;overflow:hidden!important;border:0!important;background:transparent!important;}
html body.v146149-ui .v146143-potion-quick .v146149-potion-quick-asset :is(img,svg,.item-icon){width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important;object-fit:contain!important;margin:0!important;}
html body.v146149-ui .v146143-potion-quick.v146149-potion-with-asset>b{justify-self:center!important;white-space:nowrap!important;}

/* Gift mini: large existing token art + compact +1, no textual '+1 token' block. */
html body.v146149-ui .v146149-gift-quick{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-height:42px!important;padding:2px 4px!important;background:rgba(8,11,18,.56)!important;border:1px solid rgba(232,193,83,.20)!important;border-radius:7px!important;}
html body.v146149-ui .v146149-gift-quick>img{display:block!important;width:34px!important;height:34px!important;min-width:34px!important;object-fit:contain!important;filter:drop-shadow(0 2px 5px rgba(0,0,0,.55))!important;}
html body.v146149-ui .v146149-gift-quick>b{font:950 16px/1 system-ui,sans-serif!important;color:#ffe88e!important;text-shadow:0 1px 3px #000!important;}

/* Gift was granted: top notice + short full-screen celebration, pointer transparent. */
html body.v146149-ui .v146149-gift-top-notice{position:fixed!important;z-index:12050!important;top:max(8px,env(safe-area-inset-top))!important;left:50%!important;width:min(92vw,430px)!important;min-height:58px!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 36px!important;align-items:center!important;gap:7px!important;padding:7px 9px!important;border:1px solid rgba(233,199,93,.72)!important;border-radius:10px!important;background:linear-gradient(110deg,rgba(73,17,44,.97),rgba(17,60,31,.97),rgba(58,25,89,.97))!important;box-shadow:0 10px 28px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,238,150,.06)!important;color:#f6f1db!important;pointer-events:none!important;opacity:0!important;transform:translate3d(-50%,-16px,0) scale(.97)!important;transition:opacity .16s linear,transform .18s ease-out!important;contain:layout paint!important;}
html body.v146149-ui .v146149-gift-top-notice.show{opacity:1!important;transform:translate3d(-50%,0,0) scale(1)!important;}
html body.v146149-ui .v146149-gift-top-notice>img{width:42px!important;height:42px!important;object-fit:contain!important;}html body.v146149-ui .v146149-gift-top-notice>img.token{width:34px!important;height:34px!important;}
html body.v146149-ui .v146149-gift-top-notice>div{display:grid!important;gap:1px!important;min-width:0!important;}html body.v146149-ui .v146149-gift-top-notice small{color:#c8ff7f!important;font:850 7px/1 system-ui,sans-serif!important;letter-spacing:.12em!important;}html body.v146149-ui .v146149-gift-top-notice b{font:900 12px/1.1 system-ui,sans-serif!important;color:#ffe492!important;}html body.v146149-ui .v146149-gift-top-notice span{font:650 8px/1.2 system-ui,sans-serif!important;color:#d8ddd8!important;}
html body.v146149-ui .v146149-gift-screen-fx{position:fixed!important;inset:0!important;z-index:12040!important;display:grid!important;place-items:center!important;pointer-events:none!important;overflow:hidden!important;opacity:0!important;transition:opacity .12s linear!important;contain:strict!important;}
html body.v146149-ui .v146149-gift-screen-fx.show{opacity:1!important;}html body.v146149-ui .v146149-gift-screen-fx .rays{position:absolute!important;width:420px!important;height:420px!important;border-radius:50%!important;background:conic-gradient(from 0deg,transparent,rgba(255,39,79,.14),transparent,rgba(157,255,57,.12),transparent,rgba(179,57,255,.15),transparent)!important;animation:v146149GiftRays 1.15s linear both!important;will-change:transform,opacity!important;}
html body.v146149-ui .v146149-gift-screen-fx .gift{position:relative!important;display:grid!important;place-items:center!important;width:126px!important;height:126px!important;animation:v146149GiftPop .72s cubic-bezier(.2,.88,.24,1.12) both!important;will-change:transform,opacity!important;}html body.v146149-ui .v146149-gift-screen-fx .gift>img{width:112px!important;height:112px!important;object-fit:contain!important;}html body.v146149-ui .v146149-gift-screen-fx .gift>i{position:absolute!important;right:-6px!important;top:0!important;display:flex!important;align-items:center!important;gap:2px!important;padding:3px 6px!important;border-radius:18px!important;background:rgba(5,15,20,.92)!important;border:1px solid rgba(235,197,84,.6)!important;color:#ffe58f!important;font:950 13px/1 system-ui,sans-serif!important;font-style:normal!important;}html body.v146149-ui .v146149-gift-screen-fx .gift>i img{width:28px!important;height:28px!important;object-fit:contain!important;}html body.v146149-ui .v146149-gift-screen-fx .gift>b{position:absolute!important;left:50%!important;bottom:-6px!important;transform:translateX(-50%)!important;color:#fff0af!important;font:950 15px/1 system-ui,sans-serif!important;text-shadow:0 2px 5px #000!important;}
@keyframes v146149GiftRays{0%{opacity:0;transform:scale(.55) rotate(0deg)}35%{opacity:1}100%{opacity:0;transform:scale(1.2) rotate(120deg)}}@keyframes v146149GiftPop{0%{opacity:0;transform:translate3d(0,20px,0) scale(.55)}60%{opacity:1;transform:translate3d(0,-4px,0) scale(1.08)}100%{opacity:1;transform:none}}

/* PERFORMANCE: no expensive transitions while a battle handle is physically moving. */
html body.v146149-ui.v14659-handle-repositioning :is([data-movable-handle],.v79-chat-drawer,.v109-skill-drawer,.v14659-handle-track){transition:none!important;filter:none!important;}
html body.v146149-ui.v14659-handle-repositioning [data-movable-handle]{will-change:top!important;box-shadow:none!important;}
html body.v146149-ui :is(.v79-chat-drawer button,.v1469-chat-drawer button,.v119-item-card button,.battle-actions button){transition-duration:.08s!important;}
html body.v146149-ui :is(.v79-chat-drawer,.v1469-chat-drawer,.modal-back){transition-duration:.12s!important;}

@media(prefers-reduced-motion:reduce){
  html body.v146149-ui .v146149-patron-gift-system,html body.v146149-ui .rarity-mythic>.v39-item-aura,html body.v146149-ui .v146149-gift-screen-fx .rays,html body.v146149-ui .v146149-gift-screen-fx .gift{animation:none!important;}
}

/* ===== css/v146150-private-chat-row-close-potion-hotfix.css ===== */
/* Aldos RPG v1.146.150 PRIVATE — exact chat row geometry + centered player-card close + compact potion quick icon. Existing assets only. */

/* Root cause fix: v149 accidentally made reply/delete hints normal grid items. Only avatar + content may participate in layout. */
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  grid-template-rows:minmax(38px,auto)!important;
  grid-auto-rows:0!important;
  align-items:start!important;
  align-content:start!important;
  gap:5px!important;
  height:auto!important;
  min-height:46px!important;
  max-height:none!important;
  padding:4px 5px!important;
  overflow:hidden!important;
}
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar{
  position:relative!important;z-index:3!important;grid-column:1!important;grid-row:1!important;align-self:start!important;margin:0!important;
}
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content{
  position:relative!important;z-index:3!important;grid-column:2!important;grid-row:1!important;align-self:start!important;min-height:0!important;height:auto!important;margin:0!important;
}
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message>.v146149-chat-art{
  position:absolute!important;inset:0!important;z-index:0!important;display:block!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;pointer-events:none!important;border-radius:inherit!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
/* These two controls must NEVER become rows/columns. */
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{
  position:absolute!important;z-index:16!important;right:8px!important;left:auto!important;top:50%!important;bottom:auto!important;margin:0!important;
  grid-column:auto!important;grid-row:auto!important;translate:0 -50%!important;
}
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{
  position:absolute!important;z-index:16!important;left:8px!important;right:auto!important;top:50%!important;bottom:auto!important;margin:0!important;
  grid-column:auto!important;grid-row:auto!important;translate:none!important;transform:translateY(-50%) scale(.88)!important;
}
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe>.v146130-delete-hint{transform:translateY(-50%) scale(1)!important;}
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe>.v146123-reply-hint{transform:none!important;}
html body.v146150-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v123-chat-text{
  min-height:0!important;height:auto!important;margin:1px 0 0!important;padding:0!important;display:block!important;overflow:visible!important;
  -webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;white-space:normal!important;line-height:1.2!important;
}
@media(max-width:370px){
  html body.v146150-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){grid-template-columns:32px minmax(0,1fr)!important;grid-template-rows:minmax(36px,auto)!important;min-height:42px!important;padding:3px 4px!important;gap:4px!important;}
}

/* Player card X: center the glyph geometrically, not via font baseline/line-height. */
html body.v146150-ui #modal-root>.modal-back.has-v125-player-modal>.modal>.modal-close{
  display:grid!important;place-items:center!important;box-sizing:border-box!important;
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
  padding:0!important;margin:0!important;line-height:1!important;text-align:center!important;text-indent:0!important;
  font-size:15px!important;font-weight:700!important;transform:none!important;
}

/* Potion quick value: small art on the left, enough room for the full +25%/+50% text. */
html body.v146150-ui .v119-inventory-list>.v124-item-card.type-consumable .v146143-potion-quick.v146149-potion-with-asset{
  display:grid!important;grid-template-columns:16px minmax(0,1fr)!important;align-items:center!important;justify-items:stretch!important;
  gap:2px!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:25px!important;padding:3px 4px!important;overflow:hidden!important;
}
html body.v146150-ui .v119-inventory-list>.v124-item-card.type-consumable .v146143-potion-quick .v146149-potion-quick-asset{
  display:grid!important;place-items:center!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;
}
html body.v146150-ui .v119-inventory-list>.v124-item-card.type-consumable .v146143-potion-quick .v146149-potion-quick-asset :is(img,svg,.item-icon,.item-asset-image){
  width:15px!important;height:15px!important;min-width:15px!important;max-width:15px!important;max-height:15px!important;object-fit:contain!important;margin:0!important;padding:0!important;
}
html body.v146150-ui .v119-inventory-list>.v124-item-card.type-consumable .v146143-potion-quick.v146149-potion-with-asset>b{
  display:block!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;text-align:center!important;
  font-size:9.5px!important;line-height:1!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
}

/* ===== css/v146151-release-candidate-admin-cosmetics-chat-swipe.css ===== */
/* Aldos RPG v1.146.151 RELEASE CANDIDATE — finalized cosmetic names, admin visual identity, anchored chat swipe. Existing images only; no image generation in this version. */

/* CHAT SWIPE: avatar/name/text never slide or leave the card. Only the hint is animated over the fixed message. */
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message{
  --v146123-swipe-x:0px!important;
  touch-action:pan-y!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content,
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message>.v146149-chat-art{
  transform:none!important;translate:none!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{
  position:absolute!important;z-index:20!important;left:auto!important;right:7px!important;top:50%!important;bottom:auto!important;
  width:27px!important;height:27px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;
  translate:none!important;transform:translateY(-50%) scale(.82)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe>.v146123-reply-hint{
  opacity:1!important;visibility:visible!important;transform:translateY(-50%) scale(1)!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{
  position:absolute!important;z-index:20!important;left:7px!important;right:auto!important;top:50%!important;bottom:auto!important;
  width:46px!important;height:27px!important;margin:0!important;padding:0 6px!important;display:grid!important;place-items:center!important;
  translate:none!important;transform:translateY(-50%) scale(.86)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe>.v146130-delete-hint{
  opacity:1!important;visibility:visible!important;transform:translateY(-50%) scale(1)!important;
}
/* Cosmetic rows keep one stable 8:9 avatar slot and one content column. */
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;grid-template-rows:auto!important;grid-auto-rows:0!important;
  align-items:start!important;align-content:start!important;column-gap:6px!important;row-gap:0!important;min-height:46px!important;height:auto!important;
  padding:4px 6px!important;overflow:hidden!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-avatar{
  grid-column:1!important;grid-row:1!important;align-self:start!important;margin:0!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v1469-chat-content{
  grid-column:2!important;grid-row:1!important;align-self:start!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding-right:2px!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v146126-chat-name-line{
  width:100%!important;min-width:0!important;overflow:hidden!important;
}
html body.v146151-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]) .v123-chat-text{
  margin:1px 0 0!important;padding:0!important;min-height:0!important;height:auto!important;line-height:1.2!important;overflow-wrap:anywhere!important;
}

/* ADMIN identity — one face asset for compact slots, one full skin for large portraits. */
html body.v146151-ui .v146151-admin-visual{display:block!important;margin:0!important;padding:0!important;max-width:100%!important;max-height:100%!important;}
html body.v146151-ui .v146151-admin-face{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 30%!important;border-radius:inherit!important;}
html body.v146151-ui .v146151-admin-full{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;border-radius:inherit!important;}
html body.v146151-ui .v119-top-avatar:has(.v146151-admin-face),
html body.v146151-ui .v39-avatar-ring:has(.v146151-admin-face){box-shadow:0 0 0 1px rgba(224,178,72,.44),0 0 12px rgba(171,35,49,.24)!important;}
html body.v146151-ui .v125-player-portrait:has(.v146151-admin-full){background:linear-gradient(180deg,rgba(20,5,8,.72),rgba(3,7,9,.9))!important;}
html body.v146151-ui .v125-player-portrait>.v146151-admin-full{object-fit:contain!important;object-position:center bottom!important;}
html body.v146151-ui .v146145-chat-face-layer>.v146151-admin-face{object-fit:cover!important;object-position:center 28%!important;}

@media(max-width:370px){
  html body.v146151-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""]){grid-template-columns:34px minmax(0,1fr)!important;min-height:43px!important;padding:3px 5px!important;column-gap:5px!important;}
  html body.v146151-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{right:5px!important;width:25px!important;height:25px!important;}
  html body.v146151-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{left:5px!important;height:25px!important;}
}

/* ===== css/v146152-admin-chat-face-swipe-cutout-hotfix.css ===== */
/* Aldos RPG v1.146.152 — admin chat face + visible bidirectional chat swipe + transparent admin full-body cutout. Existing assets only. */

html body.v146152-ui .v1469-chat-drawer .v146123-chat-message{
  --v146152-swipe-x:0px;
  position:relative!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}

/* The visible card layers move together. The action hints stay fixed at the side edges. */
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v146149-chat-art,
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  translate:none!important;
  transform:translate3d(var(--v146152-swipe-x),0,0)!important;
  transition:transform 130ms cubic-bezier(.2,.75,.25,1)!important;
  will-change:transform!important;
}
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message.v146152-swiping>.v146149-chat-art,
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message.v146152-swiping>.v1469-chat-avatar,
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message.v146152-swiping>.v1469-chat-content{
  transition:none!important;
}

/* Swipe LEFT -> reply action on the RIGHT edge. */
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{
  position:absolute!important;
  z-index:40!important;
  top:50%!important;
  right:5px!important;
  bottom:auto!important;
  left:auto!important;
  width:30px!important;
  height:30px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(90,255,218,.8)!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,rgba(16,122,105,.96),rgba(5,69,67,.97))!important;
  color:#e8fff9!important;
  font-size:23px!important;
  line-height:1!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  translate:none!important;
  transform:translate3d(7px,-50%,0) scale(.82)!important;
  transition:opacity 90ms ease,transform 120ms ease!important;
  box-shadow:0 4px 12px rgba(0,0,0,.3)!important;
}
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe>.v146123-reply-hint{
  opacity:1!important;
  visibility:visible!important;
  transform:translate3d(0,-50%,0) scale(1)!important;
}

/* Swipe RIGHT (moderator/admin) -> delete action on the LEFT edge. */
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{
  position:absolute!important;
  z-index:40!important;
  top:50%!important;
  left:5px!important;
  right:auto!important;
  bottom:auto!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  margin:0!important;
  padding:5px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,105,119,.82)!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,rgba(139,34,49,.97),rgba(73,15,25,.98))!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  translate:none!important;
  transform:translate3d(-7px,-50%,0) scale(.82)!important;
  transition:opacity 90ms ease,transform 120ms ease!important;
  box-shadow:0 4px 12px rgba(0,0,0,.3)!important;
}
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint img{
  display:block!important;
  width:18px!important;
  height:18px!important;
  object-fit:contain!important;
  margin:0!important;
  padding:0!important;
}
html body.v146152-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe>.v146130-delete-hint{
  opacity:1!important;
  visibility:visible!important;
  transform:translate3d(0,-50%,0) scale(1)!important;
}

/* Administrator compact identity: never fall back visually to the selected class. */
html body.v146152-ui .v1469-chat-drawer .v146152-admin-chat-face,
html body.v146152-ui .v1469-chat-drawer .v146151-admin-face{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center 30%!important;
  padding:0!important;
  margin:0!important;
  transform:none!important;
  border-radius:inherit!important;
}

/* The full admin portrait now contains alpha; do not paint an artificial black panel behind it. */
html body.v146152-ui .v125-player-portrait:has(.v146151-admin-full),
html body.v146152-ui .v146146-preview-player-portrait:has(.v146151-admin-full),
html body.v146152-ui .v101-unit-art:has(.v146151-admin-full){
  background:transparent!important;
}
html body.v146152-ui .v146151-admin-full{
  object-fit:contain!important;
  object-position:center bottom!important;
  background:transparent!important;
}

@media(max-width:370px){
  html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{right:4px!important;width:28px!important;height:28px!important;font-size:21px!important;}
  html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{left:4px!important;width:28px!important;height:28px!important;min-width:28px!important;padding:5px!important;}
  html body.v146152-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint img{width:16px!important;height:16px!important;}
}

/* ===== css/v146153-chat-swipe-admin-battle-hotfix.css ===== */
/* Aldos RPG v1.146.153 RC — deterministic chat swipe layering + explicit transparent admin battle art. Existing assets only. */

/* New variable wins over v123/v152 history. */
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message{
  --v146153-swipe-x:0px;
  position:relative!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}

/* Move only the visible surface layers; the actions stay fixed at the side edges. */
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v146149-chat-art,
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  translate:none!important;
  transform:translate3d(var(--v146153-swipe-x),0,0)!important;
  transition:transform 145ms cubic-bezier(.2,.76,.24,1)!important;
  will-change:transform!important;
}
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message.v146153-swiping>.v146149-chat-art,
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message.v146153-swiping>.v1469-chat-avatar,
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message.v146153-swiping>.v1469-chat-content{
  transition:none!important;
}

/* CRITICAL specificity fix: v149 declared these two as position:relative on cosmetic rows. */
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint,
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{
  position:absolute!important;
  z-index:80!important;
  top:50%!important;
  right:5px!important;
  bottom:auto!important;
  left:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  align-self:auto!important;
  justify-self:auto!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(95,255,216,.86)!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,rgba(17,139,114,.98),rgba(5,72,68,.99))!important;
  color:#effffb!important;
  font:900 21px/1 system-ui,sans-serif!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  translate:none!important;
  transform:translate3d(5px,-50%,0) scale(.84)!important;
  transition:opacity 80ms linear,transform 110ms ease!important;
  box-shadow:0 4px 12px rgba(0,0,0,.34)!important;
}
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe>.v146123-reply-hint{
  opacity:1!important;
  visibility:visible!important;
  transform:translate3d(0,-50%,0) scale(1)!important;
}

html body.v146153-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint,
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{
  position:absolute!important;
  z-index:80!important;
  top:50%!important;
  left:5px!important;
  right:auto!important;
  bottom:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  align-self:auto!important;
  justify-self:auto!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:5px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(255,103,119,.88)!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,rgba(151,34,50,.98),rgba(76,15,27,.99))!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  translate:none!important;
  transform:translate3d(-5px,-50%,0) scale(.84)!important;
  transition:opacity 80ms linear,transform 110ms ease!important;
  box-shadow:0 4px 12px rgba(0,0,0,.34)!important;
}
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint img{
  display:block!important;
  width:17px!important;
  height:17px!important;
  max-width:17px!important;
  max-height:17px!important;
  object-fit:contain!important;
  margin:0!important;
  padding:0!important;
}
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe>.v146130-delete-hint{
  opacity:1!important;
  visibility:visible!important;
  transform:translate3d(0,-50%,0) scale(1)!important;
}

/* Hints cannot add implicit grid rows even while hidden. */
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint,
html body.v146153-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint{
  position:absolute!important;
  inset-block-start:50%!important;
  margin-block:0!important;
}

/* ADMIN BATTLE: explicit classes instead of a relational parent selector, which is unreliable in some WebViews. */
html body.v146153-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player{
  
}
html body.v146153-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{
  
  
  
  
  
  
  
  
  border:1px solid rgba(208,166,70,.30)!important;
  border-radius:10px!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:inset 0 0 0 1px rgba(126,38,47,.08)!important;
  
  isolation:isolate!important;
}
html body.v146153-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art>.v146151-admin-full,
html body.v146153-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player .v146153-admin-battle-art .v146151-admin-full{
  
  
  
  
  
  
  
  
  
  
  
  background:transparent!important;
  
  
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.30))!important;
}

@media(max-width:370px){
  html body.v146153-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint,
  html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{right:4px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;font-size:20px!important;}
  html body.v146153-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint,
  html body.v146153-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{left:4px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;}
  html body.v146153-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player{}
  html body.v146153-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{}
}

/* ===== css/v146154-chat-swipe-admin-role-cutout-hotfix.css ===== */
/* Aldos RPG v1.146.154 RC — fixed cosmetic swipe surface + authoritative admin role visuals. No new image generation. */

/* CHAT: background art is pinned to the card. Only avatar/text travel a short distance.
   This prevents the black/empty strip visible in v152-v153. */
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message{
  --v146154-swipe-x:0px;
  position:relative!important;
  overflow:hidden!important;
  touch-action:pan-y!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v146149-chat-art{
  transform:none!important;
  translate:none!important;
  inset:0!important;
  width:auto!important;
  height:auto!important;
  background-size:100% 100%!important;
  background-position:center!important;
  will-change:auto!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  translate:none!important;
  transform:translate3d(var(--v146154-swipe-x),0,0)!important;
  transition:transform 135ms cubic-bezier(.2,.78,.22,1)!important;
  will-change:transform!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message.v146154-swiping>.v1469-chat-avatar,
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message.v146154-swiping>.v1469-chat-content{
  transition:none!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message.v146154-returning>.v1469-chat-avatar,
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message.v146154-returning>.v1469-chat-content{
  transition:transform 125ms cubic-bezier(.2,.82,.25,1)!important;
}

/* Stronger than v149/v151: actions can never become grid rows. */
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint,
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{
  position:absolute!important;
  inset:auto 5px auto auto!important;
  top:50%!important;
  z-index:120!important;
  grid-column:auto!important;grid-row:auto!important;align-self:auto!important;justify-self:auto!important;
  width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;
  margin:0!important;padding:0!important;display:grid!important;place-items:center!important;
  border:1px solid rgba(90,255,218,.92)!important;border-radius:8px!important;
  background:linear-gradient(180deg,rgba(18,151,124,.98),rgba(5,76,70,.99))!important;
  color:#f0fffb!important;font:900 20px/1 system-ui,sans-serif!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  translate:none!important;transform:translate3d(5px,-50%,0) scale(.82)!important;
  transition:opacity 70ms linear,transform 100ms ease!important;
  box-shadow:0 3px 10px rgba(0,0,0,.32)!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe>.v146123-reply-hint{
  opacity:1!important;visibility:visible!important;transform:translate3d(0,-50%,0) scale(1)!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint,
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{
  position:absolute!important;
  inset:auto auto auto 5px!important;
  top:50%!important;
  z-index:120!important;
  grid-column:auto!important;grid-row:auto!important;align-self:auto!important;justify-self:auto!important;
  width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;
  margin:0!important;padding:4px!important;display:grid!important;place-items:center!important;
  border:1px solid rgba(255,104,120,.92)!important;border-radius:8px!important;
  background:linear-gradient(180deg,rgba(155,35,51,.98),rgba(78,14,28,.99))!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  translate:none!important;transform:translate3d(-5px,-50%,0) scale(.82)!important;
  transition:opacity 70ms linear,transform 100ms ease!important;
  box-shadow:0 3px 10px rgba(0,0,0,.32)!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint img{
  display:block!important;width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;object-fit:contain!important;margin:0!important;padding:0!important;
}
html body.v146154-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe>.v146130-delete-hint{
  opacity:1!important;visibility:visible!important;transform:translate3d(0,-50%,0) scale(1)!important;
}

/* ADMIN profile: explicit class means no :has() dependency. The already-existing transparent
   cutout is shown directly over the cosmetic card instead of a black portrait plate. */
html body.v146154-ui .v125-player-card.v146154-admin-profile-card .v125-player-portrait.v146154-admin-profile-portrait{
  background:transparent!important;background-image:none!important;box-shadow:inset 0 0 0 1px rgba(218,174,75,.22)!important;overflow:hidden!important;
}
html body.v146154-ui .v125-player-card.v146154-admin-profile-card .v146154-admin-profile-portrait>.v146151-admin-full{
  display:block!important;width:108%!important;height:108%!important;max-width:none!important;max-height:none!important;margin:auto!important;padding:0!important;
  object-fit:contain!important;object-position:center bottom!important;background:transparent!important;transform:translate3d(-2px,2px,0)!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.34))!important;
}

/* ADMIN in location: compact face, never class full-body fallback. */
html body.v146154-ui .v119-location-player.v146154-admin-location-player .v119-location-player-art{
  background:radial-gradient(circle at 50% 45%,rgba(116,25,39,.28),rgba(3,10,12,.88) 72%)!important;
}
html body.v146154-ui .v119-location-player.v146154-admin-location-player .v119-location-player-art>.v146151-admin-face{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;object-position:center 28%!important;margin:0!important;padding:0!important;
}

/* ADMIN in battle: role now arrives from server; keep slot genuinely transparent and make
   the full skin readable at mobile size. */
html body.v146154-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{
  
  background:transparent!important;background-image:none!important;border-color:rgba(216,169,69,.30)!important;box-shadow:none!important;
}
html body.v146154-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player .v146153-admin-battle-art>.v146151-admin-full{
  
  background:transparent!important;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.34))!important;
}

@media(max-width:370px){
  html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{right:4px!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;font-size:19px!important;}
  html body.v146154-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{left:4px!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;}
  html body.v146154-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{}
}

/* ===== css/v146155-admin-cutout-chat-swipe-hardfix.css ===== */
/* Aldos RPG v1.146.155 RC — hard fix: true transparent admin portrait + deterministic visible chat swipe actions. Existing images only. */

/* CHAT: cosmetic art stays pinned; only avatar/content move. */
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message{
  --v146155-swipe-x:0px;position:relative!important;overflow:hidden!important;touch-action:pan-y!important;
}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v146149-chat-art{
  position:absolute!important;inset:0!important;z-index:0!important;transform:none!important;translate:none!important;width:auto!important;height:auto!important;background-size:100% 100%!important;background-position:center!important;pointer-events:none!important;
}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  transform:translate3d(var(--v146155-swipe-x),0,0)!important;translate:none!important;transition:transform 145ms cubic-bezier(.2,.8,.22,1)!important;will-change:transform!important;position:relative!important;z-index:3!important;
}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message.v146155-swiping>.v1469-chat-avatar,
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message.v146155-swiping>.v1469-chat-content{transition:none!important;}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message.v146155-returning>.v1469-chat-avatar,
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message.v146155-returning>.v1469-chat-content{transition:transform 145ms cubic-bezier(.2,.82,.22,1)!important;}

/* Hints are always out of grid and sit exactly at vertical center of the side. Inline JS also repeats these critical properties with !important. */
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint,
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146123-reply-hint{
  position:absolute!important;top:50%!important;right:5px!important;bottom:auto!important;left:auto!important;z-index:999!important;display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0!important;padding:0!important;grid-column:auto!important;grid-row:auto!important;align-self:auto!important;justify-self:auto!important;border:1px solid rgba(92,255,219,.96)!important;border-radius:9px!important;background:linear-gradient(180deg,#159a7f,#075c58)!important;color:#f4fffc!important;font:950 21px/1 system-ui,sans-serif!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translate3d(0,-50%,0) scale(.84)!important;translate:none!important;box-shadow:0 3px 10px rgba(0,0,0,.4)!important;
}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message.reply-swipe>.v146123-reply-hint,
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message[data-swipe-hint="reply"]>.v146123-reply-hint{opacity:1!important;visibility:visible!important;transform:translate3d(0,-50%,0) scale(1)!important;}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint,
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146130-delete-hint{
  position:absolute!important;top:50%!important;left:5px!important;right:auto!important;bottom:auto!important;z-index:999!important;display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0!important;padding:5px!important;grid-column:auto!important;grid-row:auto!important;align-self:auto!important;justify-self:auto!important;border:1px solid rgba(255,101,119,.96)!important;border-radius:9px!important;background:linear-gradient(180deg,#a3273c,#5d1324)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translate3d(0,-50%,0) scale(.84)!important;translate:none!important;box-shadow:0 3px 10px rgba(0,0,0,.4)!important;
}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint img{display:block!important;width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;object-fit:contain!important;margin:0!important;padding:0!important;}
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message.v146130-delete-swipe>.v146130-delete-hint,
html body.v146155-ui .v1469-chat-drawer .v146123-chat-message[data-swipe-hint="delete"]>.v146130-delete-hint{opacity:1!important;visibility:visible!important;transform:translate3d(0,-50%,0) scale(1)!important;}

/* ADMIN PROFILE: no portrait plate at all; transparent PNG sits directly on cosmetic card background. */
html body.v146155-ui .v125-player-card.v146154-admin-profile-card .v125-player-portrait.v146154-admin-profile-portrait{
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;padding:0!important;filter:none!important;overflow:visible!important;isolation:auto!important;
}
html body.v146155-ui .v125-player-card.v146154-admin-profile-card .v125-player-portrait.v146154-admin-profile-portrait>.v146151-admin-full{
  display:block!important;width:112%!important;height:112%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center top!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.32))!important;transform:translate3d(-6%,-4%,0)!important;
}

/* ADMIN BATTLE: remove the dark art plate completely and raise the cutout. */
html body.v146155-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{
  border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;isolation:auto!important;
}
html body.v146155-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player .v146153-admin-battle-art>.v146151-admin-full{
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))!important;
}

@media(max-width:370px){
 html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v146123-reply-hint{right:4px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;font-size:20px!important;}
 html body.v146155-ui .v1469-chat-drawer .v146123-chat-message>.v146130-delete-hint{left:4px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;}
 html body.v146155-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{}
}

/* ===== css/v146156-battle-fit-performance-hotfix.css ===== */
/* Aldos RPG v1.146.156 RC — admin battle containment + Android WebView compositor relief. Existing assets only. */

/* ADMIN BATTLE: fit the transparent cutout inside the portrait column; never let the art cover NAT/HP/MP. */
html body.v146156-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player{
  
}
html body.v146156-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{
  
  
  
  
  
  background:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  
}
html body.v146156-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player .v146153-admin-battle-art>.v146151-admin-full{
  
  
  
  
  
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  filter:none!important;
  
  
}

/* PERF: v155 promoted avatar+content of EVERY chat row to compositor layers. Keep promotion only for the one active swipe. */
html body.v146156-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
html body.v146156-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
  will-change:auto!important;
}
html body.v146156-ui .v1469-chat-drawer .v146123-chat-message.v146155-swiping>.v1469-chat-avatar,
html body.v146156-ui .v1469-chat-drawer .v146123-chat-message.v146155-swiping>.v1469-chat-content{
  will-change:transform!important;
}
html body.v146156-ui .v1469-chat-drawer .v146123-chat-message.v146155-returning>.v1469-chat-avatar,
html body.v146156-ui .v1469-chat-drawer .v146123-chat-message.v146155-returning>.v1469-chat-content{
  will-change:transform!important;
}

/* PERF: avoid long-lived GPU reservations from decorative auras. Animations remain, but WebView can reclaim layers between paints. */
html body.v146156-ui :is(.v119-inventory-list,.v98-picker-modal) .v124-item-card.rarity-mythic>.v39-item-aura,
html body.v146156-ui .v122-item-detail-card.rarity-mythic>.v39-item-aura{
  will-change:auto!important;
}

/* PERF: admin portrait does not need a per-frame drop-shadow/filter in battle or profile. */
html body.v146156-ui .v125-player-card.v146154-admin-profile-card .v125-player-portrait.v146154-admin-profile-portrait>.v146151-admin-full{
  filter:none!important;
}

/* A little less paint work while battle handles are being dragged. */
html body.v146156-ui.v111-battle-active.v14659-handle-repositioning :is(.v101-player-card,.v101-monster-card,.battle-log-scroll){
  box-shadow:none!important;
}

@media(max-width:370px){
  html body.v146156-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player{}
  html body.v146156-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{
    
    
  }
}

@media(prefers-reduced-motion:reduce){
  html body.v146156-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar,
  html body.v146156-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{transition:none!important;will-change:auto!important;}
}

/* ===== css/v146157-admin-battle-size-release-note-hotfix.css ===== */
/* Aldos RPG v1.146.157 RC — smaller admin battle portrait. Existing assets only. */

/* Keep the transparent administrator cutout clearly inside the battle portrait lane. */
html body.v146157-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player{
  
}
html body.v146157-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{
  
  
  
  
  
  background:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  
}
html body.v146157-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player .v146153-admin-battle-art>.v146151-admin-full{
  
  
  
  
  
  
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  filter:none!important;
  
  
}

@media(max-width:370px){
  html body.v146157-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player{
    
  }
  html body.v146157-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player>.v101-unit-art.v146153-admin-battle-art{
    
    
  }
  html body.v146157-ui.v111-battle-active .v101-player-card.v146153-admin-battle-player .v146153-admin-battle-art>.v146151-admin-full{
    
  }
}

/* ===== css/v146158-chat-crop-narrow-header-player-close-hotfix.css ===== */
/* Aldos RPG v1.146.158 RC — runtime cosmetic crop + narrow large-font chat header + reliable player-card close. Existing assets only. */

/* Runtime chat must mirror Patron Hall preview: preserve source aspect ratio and crop, never stretch 1280x360 into a short card. */
html body.v146158-ui .v1469-chat-drawer .v146123-chat-message[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v146149-chat-art{
  position:absolute!important;
  inset:0!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border-radius:inherit!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  transform:none!important;
  translate:none!important;
  pointer-events:none!important;
}

/* Below 348px + Large text: nickname may truncate, but class/level/time stay on the SAME header row. */
@media(max-width:347px){
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146123-chat-message{
    grid-template-columns:36px minmax(0,1fr)!important;
    column-gap:4px!important;
    padding:4px!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-avatar{
    width:36px!important;min-width:36px!important;max-width:36px!important;
    height:36px!important;min-height:36px!important;max-height:36px!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146123-chat-message>.v1469-chat-content{
    min-width:0!important;width:100%!important;padding:0!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146123-chat-message :is(.v1469-chat-message-head,.v1469-chat-meta){
    width:100%!important;min-width:0!important;height:15px!important;min-height:15px!important;max-height:15px!important;overflow:hidden!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146126-chat-name-line{
    display:grid!important;
    grid-template-columns:minmax(48px,1fr) auto minmax(104px,1.35fr)!important;
    align-items:center!important;
    gap:2px!important;
    width:100%!important;min-width:0!important;height:15px!important;min-height:15px!important;max-height:15px!important;
    overflow:hidden!important;white-space:nowrap!important;flex-wrap:nowrap!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146126-chat-name-line>.v131-chat-name{
    min-width:0!important;max-width:none!important;width:auto!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    font-size:9.4px!important;line-height:15px!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-chat-statuses{
    min-width:0!important;max-width:30px!important;height:15px!important;overflow:hidden!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-chat-statuses :is(.v14644-player-title,.v14635-guardian-badge){
    width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;max-width:13px!important;max-height:13px!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-role-level{
    display:block!important;min-width:0!important;max-width:none!important;width:100%!important;height:15px!important;
    margin:0!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important;
    font-size:6.6px!important;line-height:15px!important;text-align:left!important;flex:none!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146126-chat-name-line>.v146126-role-level>span{
    display:block!important;width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146139-chat-time{
    display:inline!important;white-space:nowrap!important;font:inherit!important;margin-left:1px!important;
  }
  html[data-ui-font-size="large"] body.v146158-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
    font-size:10.8px!important;line-height:1.3!important;
  }
}

/* Player profile X is a dedicated hit layer above cosmetic/card content. */
html body.v146158-ui #modal-root>.modal-back.has-v125-player-modal>.modal>.modal-close{
  position:absolute!important;
  top:6px!important;right:6px!important;left:auto!important;
  z-index:32760!important;
  display:grid!important;place-items:center!important;
  width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;
  margin:0!important;padding:0!important;
  pointer-events:auto!important;touch-action:manipulation!important;
  isolation:isolate!important;
  opacity:1!important;visibility:visible!important;
  transform:none!important;
  line-height:1!important;text-align:center!important;
}
html body.v146158-ui #modal-root>.modal-back.has-v125-player-modal>.modal>.modal-close::before,
html body.v146158-ui #modal-root>.modal-back.has-v125-player-modal>.modal>.modal-close::after{pointer-events:none!important;}
html body.v146158-ui #modal-root>.modal-back.has-v125-player-modal>.modal>.v125-player-card{position:relative!important;z-index:1!important;}

/* ===== css/v146159-player-card-preview-parity-hotfix.css ===== */
/* Aldos RPG v1.146.159 — cosmetic player-card background matches Patron Hall preview. Existing assets only. */

/* Runtime player card uses the same source-art contract as the Patron Hall preview:
   preserve 1200x800 proportions, crop with cover, center the composition, never stretch. */
html body.v146159-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) {
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:#020607!important;
  background-image:none!important;
}
html body.v146159-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-player-cosmetic-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:inherit!important;
  object-fit:cover!important;
  object-position:center center!important;
  opacity:1!important;
  filter:none!important;
  transform:none!important;
  pointer-events:none!important;
}
/* Preview uses one neutral shade over the art. Remove the older directional/runtime gradients
   so the purchased card looks like the preview rather than like a second interpretation. */
html body.v146159-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v123-player-card-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  border-radius:inherit!important;
  background:rgba(2,7,10,var(--v146145-card-shade,.34))!important;
  background-image:none!important;
  opacity:1!important;
  pointer-events:none!important;
}
html body.v146159-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>:not(.v14649-player-cosmetic-bg):not(.v123-player-card-bg){
  position:relative!important;
  z-index:2!important;
}

/* ===== css/v146160-account-cosmetics-player-card-chat-close-hotfix.css ===== */
/* Aldos RPG v1.146.160 RC — account-wide cosmetics, full player-card art, stable chat header, one-tap profile close. Existing assets only. */

/* PLAYER CARD BACKGROUND — show the WHOLE 1200x800 cosmetic art without zoom/crop.
   Preview and runtime deliberately use the same contain contract. */
html body.v146160-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]) {
  background:#020607!important;
  background-image:none!important;
  overflow:hidden!important;
}
html body.v146160-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-player-cosmetic-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#020607!important;
  transform:none!important;
  filter:none!important;
}
html body.v146160-ui .v146146-preview-player-card{
  background:#020607!important;
  background-image:none!important;
}
html body.v146160-ui .v146146-preview-player-card>.v146146-preview-card-bg{
  object-fit:contain!important;
  object-position:center center!important;
  background:#020607!important;
}

/* CHAT HEADER — no overlap even with a long nickname / large text / narrow Android WebView.
   Nickname is the expendable field; class+level and time stay on the header line. */
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message :is(.v1469-chat-message-head,.v1469-chat-meta){
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:16px!important;
  max-height:none!important;
  overflow:hidden!important;
}
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-name-line{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(94px,44%)!important;
  align-items:center!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:16px!important;
  max-height:none!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  flex-wrap:nowrap!important;
}
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-name-line>.v131-chat-name{
  display:block!important;
  min-width:0!important;
  width:auto!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:16px!important;
}
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-statuses{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
  max-width:34px!important;
  height:16px!important;
  overflow:hidden!important;
}
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-role-level{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  height:16px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  line-height:16px!important;
}
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146160-role-copy{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146139-chat-time{
  display:block!important;
  flex:0 0 auto!important;
  margin:0!important;
  white-space:nowrap!important;
  font:inherit!important;
}
html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v123-chat-text{
  position:relative!important;
  margin-top:2px!important;
  min-width:0!important;
}

@media(max-width:347px){
  html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-name-line{
    grid-template-columns:minmax(34px,1fr) auto minmax(102px,50%)!important;
    gap:2px!important;
    height:auto!important;
    min-height:16px!important;
    max-height:none!important;
  }
  html body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-role-level{
    height:16px!important;
    min-height:16px!important;
    max-height:16px!important;
    font-size:7px!important;
    line-height:16px!important;
  }
  html[data-ui-font-size="large"] body.v146160-ui .v1469-chat-drawer .v146123-chat-message :is(.v1469-chat-message-head,.v1469-chat-meta){
    height:auto!important;
    min-height:17px!important;
    max-height:none!important;
  }
  html[data-ui-font-size="large"] body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-name-line{
    height:auto!important;
    min-height:17px!important;
    max-height:none!important;
  }
  html[data-ui-font-size="large"] body.v146160-ui .v1469-chat-drawer .v146123-chat-message .v146126-role-level{
    height:17px!important;
    min-height:17px!important;
    max-height:17px!important;
    line-height:17px!important;
  }
}

/* Profile modal remains above the still-open chat. Its X is always the top hit target. */
html body.v146160-ui #modal-root>.modal-back.has-v125-player-modal{
  z-index:10040!important;
  pointer-events:auto!important;
}
html body.v146160-ui #modal-root>.modal-back.has-v125-player-modal>.modal>.modal-close{
  z-index:32767!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
}

/* ===== css/v146161-player-card-v158-chat-header-density-hotfix.css ===== */
/* Aldos RPG v1.146.161 RC — restore v158 player-card background geometry + dense normal-width chat header. Existing assets only. */

/* PLAYER CARD — restore the exact v158 visual contract.
   The 1200x800 art fills the card with cover/center, without the v160 contain letterboxing.
   Runtime glass/shade returns to the v158 geometry instead of the v159/v160 neutral reinterpretation. */
html body.v146161-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""]){
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border-radius:1px!important;
  background:#020607!important;
  background-image:none!important;
  grid-template-columns:clamp(90px,28vw,116px) minmax(0,1fr)!important;
  grid-template-areas:"account account" "portrait identity" "portrait info" "actions actions"!important;
  gap:7px!important;
  padding:8px!important;
}
html body.v146161-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v14649-player-cosmetic-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:inherit!important;
  object-fit:cover!important;
  object-position:center center!important;
  background:transparent!important;
  opacity:1!important;
  filter:none!important;
  transform:none!important;
  pointer-events:none!important;
}
html body.v146161-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>.v123-player-card-bg{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  border-radius:inherit!important;
  background:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.28))!important;
  background-image:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.28))!important;
  opacity:1!important;
  pointer-events:none!important;
}
html body.v146161-ui .modal.v125-player-modal .v125-player-card[data-cosmetic-theme]:not([data-cosmetic-theme=""])>:not(.v14649-player-cosmetic-bg):not(.v123-player-card-bg){
  position:relative!important;
  z-index:2!important;
}

/* Patron preview also returns to its v158 crop contract so preview/runtime use the same geometry again. */
html body.v146161-ui .v146146-preview-player-card{
  background:#020607!important;
  background-image:none!important;
}
html body.v146161-ui .v146146-preview-player-card>.v146146-preview-card-bg{
  object-fit:cover!important;
  object-position:center center!important;
  background:transparent!important;
}

/* NORMAL PHONE WIDTH — metadata sits directly after the nickname.
   v160 used a reserved 44% grid column which created a large artificial gap.
   The <348px safety layout remains untouched below. */
@media(min-width:348px){
  html body.v146161-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-name-line{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:3px!important;
    width:100%!important;
    min-width:0!important;
    height:16px!important;
    min-height:16px!important;
    max-height:16px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  html body.v146161-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-name-line>.v131-chat-name{
    flex:0 1 auto!important;
    min-width:0!important;
    width:auto!important;
    max-width:55%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    line-height:16px!important;
  }
  html body.v146161-ui .v1469-chat-drawer .v146123-chat-message .v146126-chat-statuses{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:34px!important;
    margin:0!important;
  }
  html body.v146161-ui .v1469-chat-drawer .v146123-chat-message .v146126-role-level{
    flex:0 1 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:2px!important;
    width:auto!important;
    min-width:0!important;
    max-width:calc(100% - 52px)!important;
    height:16px!important;
    min-height:16px!important;
    max-height:16px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    line-height:16px!important;
  }
  html body.v146161-ui .v1469-chat-drawer .v146123-chat-message .v146160-role-copy{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body.v146161-ui .v1469-chat-drawer .v146123-chat-message .v146139-chat-time{
    flex:0 0 auto!important;
    display:inline!important;
    margin:0!important;
    white-space:nowrap!important;
    font:inherit!important;
  }
}

/* ===== css/v146162-weekend-double-reward-event.css ===== */
/* Aldos RPG v1.146.162 — 8h weekend double-reward event. Existing game art only. */
.v146162-weekend-banner{
  position:relative!important;
  z-index:72!important;
  width:min(1180px,calc(100% - 20px))!important;
  min-height:68px!important;
  margin:8px auto 4px!important;
  padding:9px 12px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:10px!important;
  align-items:center!important;
  overflow:hidden!important;
  border:1px solid rgba(207,255,96,.38)!important;
  border-radius:16px!important;
  color:#f6f4e9!important;
  background:#0b100d url('../assets/v14695/location-ui/events/event-bg-world.webp') center 47%/cover no-repeat!important;
  box-shadow:0 9px 24px rgba(0,0,0,.35),inset 0 1px rgba(255,255,255,.09)!important;
  isolation:isolate!important;
}
.v146162-weekend-banner::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;
  background:linear-gradient(90deg,rgba(3,7,5,.94) 0%,rgba(7,14,9,.79) 46%,rgba(5,8,6,.90) 100%)!important;
}
.v146162-weekend-banner::after{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none!important;
  background:linear-gradient(90deg,transparent,rgba(184,255,44,.08),transparent)!important;
}
.v146162-weekend-copy{display:grid!important;gap:1px!important;min-width:0!important;padding-left:3px!important}
.v146162-weekend-copy small{font-size:8px!important;font-weight:900!important;letter-spacing:.16em!important;color:#baff34!important}
.v146162-weekend-copy b{font:800 clamp(15px,3.8vw,20px)/1.05 Georgia,serif!important;color:#fff2c0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v146162-weekend-copy em{font-style:normal!important;font-size:9px!important;color:#c9cebf!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.v146162-weekend-boosts{display:flex!important;gap:6px!important;align-items:center!important;justify-content:center!important}
.v146162-weekend-boosts strong{display:flex!important;align-items:center!important;gap:4px!important;min-height:31px!important;padding:5px 8px!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:10px!important;background:rgba(5,9,6,.65)!important;font-size:9px!important;letter-spacing:.05em!important;white-space:nowrap!important}
.v146162-weekend-boosts i{font-style:normal!important;font-size:15px!important;color:#c7ff50!important;text-shadow:0 0 12px rgba(184,255,44,.30)!important}
.v146162-weekend-clock{display:grid!important;justify-items:end!important;min-width:76px!important;padding-left:9px!important;border-left:1px solid rgba(255,255,255,.14)!important}
.v146162-weekend-clock small{font-size:7px!important;font-weight:900!important;letter-spacing:.12em!important;color:#aeb7a7!important}
.v146162-weekend-clock b{font:900 16px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace!important;color:#fff!important;letter-spacing:.02em!important}
body.v111-battle-active .v146162-weekend-banner{width:min(1180px,calc(100% - 16px))!important;margin:6px auto 2px!important;min-height:58px!important;padding:7px 10px!important}
@media(max-width:560px){
  .v146162-weekend-banner{width:calc(100% - 12px)!important;min-height:62px!important;margin:6px 6px 2px!important;padding:7px 8px!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;border-radius:13px!important}
  .v146162-weekend-copy b{font-size:15px!important}.v146162-weekend-copy em{font-size:8px!important;max-width:52vw!important}
  .v146162-weekend-boosts{grid-column:1/2!important;justify-content:flex-start!important;gap:4px!important;margin-top:2px!important}
  .v146162-weekend-boosts strong{min-height:24px!important;padding:3px 6px!important;font-size:8px!important}.v146162-weekend-boosts i{font-size:12px!important}
  .v146162-weekend-clock{grid-column:2!important;grid-row:1/3!important;align-self:stretch!important;align-content:center!important;min-width:70px!important;padding-left:7px!important}.v146162-weekend-clock b{font-size:14px!important}
}
@media(max-width:350px){.v146162-weekend-copy em{display:none!important}.v146162-weekend-boosts strong{padding-left:5px!important;padding-right:5px!important}.v146162-weekend-clock{min-width:64px!important}.v146162-weekend-clock b{font-size:13px!important}}
.v146162-result-event-bonus{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:8px 0 0!important;padding:7px 9px!important;border:1px solid rgba(184,255,44,.25)!important;border-radius:12px!important;background:rgba(86,121,17,.12)!important;color:#ddff98!important;font-size:10px!important;font-weight:800!important}

/* ===== css/v146163-weekend-banner-overlay-collapse-hotfix.css ===== */
/* Aldos RPG v1.146.163 — weekend banner mobile overlay/collapse hotfix. Existing art only. */
html body.v146163-ui .v146162-weekend-banner{
  position:fixed!important;
  inset:auto!important;
  top:72px!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  z-index:880!important;
  width:min(760px,calc(100vw - 20px))!important;
  max-width:calc(100vw - 20px)!important;
  min-height:58px!important;
  margin:0!important;
  padding:8px 44px 8px 10px!important;
  transform:translateX(-50%)!important;
  box-sizing:border-box!important;
  contain:layout paint!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
html body.v146163-ui .v146162-weekend-banner .v146163-weekend-toggle{
  position:absolute!important;
  top:50%!important;
  right:7px!important;
  z-index:4!important;
  display:grid!important;
  place-items:center!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  transform:translateY(-50%)!important;
  border:1px solid rgba(212,255,112,.34)!important;
  border-radius:9px!important;
  background:rgba(3,8,5,.76)!important;
  color:#eaffad!important;
  box-shadow:inset 0 1px rgba(255,255,255,.07)!important;
  font:900 18px/1 Arial,sans-serif!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}
html body.v146163-ui .v146162-weekend-banner .v146163-weekend-toggle:active{transform:translateY(-50%) scale(.94)!important}
html body.v146163-ui .v146163-weekend-mini{display:none!important}

/* Collapse to a small top-right chip. It remains fixed and never changes page/screen height. */
html body.v146163-ui .v146162-weekend-banner.is-collapsed{
  left:auto!important;
  right:6px!important;
  width:auto!important;
  min-width:190px!important;
  max-width:calc(100vw - 12px)!important;
  min-height:38px!important;
  height:38px!important;
  padding:4px 39px 4px 9px!important;
  transform:none!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  border-radius:12px!important;
}
html body.v146163-ui .v146162-weekend-banner.is-collapsed :is(.v146162-weekend-copy,.v146162-weekend-boosts,.v146162-weekend-clock){display:none!important}
html body.v146163-ui .v146162-weekend-banner.is-collapsed .v146163-weekend-mini{
  display:flex!important;
  min-width:0!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  white-space:nowrap!important;
}
html body.v146163-ui .v146162-weekend-banner.is-collapsed .v146163-weekend-mini strong{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#dfff8f!important;
  font:900 8px/1 Arial,sans-serif!important;
  letter-spacing:.035em!important;
}
html body.v146163-ui .v146162-weekend-banner.is-collapsed .v146163-weekend-mini b{
  flex:0 0 auto!important;
  color:#fff7d6!important;
  font:900 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace!important;
}
html body.v146163-ui .v146162-weekend-banner.is-collapsed .v146163-weekend-toggle{
  width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;right:5px!important;border-radius:8px!important;font-size:16px!important;
}

/* World/mobile: stay below the fixed player topbar. No extra padding is added to .v119-screen. */
@media(max-width:760px){
  html body.v146163-ui:not(.v111-battle-active) .v146162-weekend-banner{
    top:calc(var(--v121-top-h,56px) + var(--v121-safe-top,0px) + 5px)!important;
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
    min-height:56px!important;
    padding:6px 40px 6px 8px!important;
    gap:5px!important;
    border-radius:13px!important;
  }
  html body.v146163-ui:not(.v111-battle-active) .v146162-weekend-banner.is-collapsed{
    width:auto!important;
    min-width:184px!important;
    max-width:calc(100vw - 12px)!important;
    height:36px!important;
    min-height:36px!important;
    padding:4px 37px 4px 8px!important;
  }
  html body.v146163-ui .v146162-weekend-copy b{font-size:14px!important}
  html body.v146163-ui .v146162-weekend-copy em{max-width:48vw!important}
}

/* Battle has its own fixed-height two-row viewport; keep the event out of that grid too. */
html body.v146163-ui.v111-battle-active .v146162-weekend-banner{
  top:calc(var(--v127-battle-head,58px) + var(--v127-safe-top,0px) + 4px)!important;
  z-index:74!important;
  margin:0!important;
}
@media(max-width:760px){
  html body.v146163-ui.v111-battle-active .v146162-weekend-banner{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
    min-height:54px!important;
    padding:6px 40px 6px 8px!important;
  }
  html body.v146163-ui.v111-battle-active .v146162-weekend-banner.is-collapsed{
    width:auto!important;
    min-width:184px!important;
    height:36px!important;
    min-height:36px!important;
    padding:4px 37px 4px 8px!important;
  }
}

/* Hard guarantee: the banner can never become a scrolling/layout owner. */
html body.v146163-ui :is(.v119-screen,.v79-battle,.v101-battle){margin-top:0!important}

/* ===== css/v146164-synchronized-freeze-performance-hotfix.css ===== */
/* Aldos RPG v1.146.164 — Android/WebView paint containment hotfix. */
@supports (content-visibility:auto){
  html body.v146163-ui :is(.v119-inventory-list,.v1469-chat-messages,.battle-log-scroll,.v146123-chat-list,.v101-loot-carousel) > *{
    content-visibility:auto;
    contain-intrinsic-size:auto 96px;
  }
}

html body.v146163-ui :is(.v146162-weekend-banner,.v146149-gift-top-notice,.v146149-gift-screen-fx,.modal-overlay,.v65-modal-overlay,.v122-modal-overlay){
  contain:layout paint style;
}

@media (hover:none) and (pointer:coarse){
  html body.v146163-ui :is(.v39-item-aura,.v124-item-card::before,.v122-item-detail-card::before,.v101-monster-card::before,.v101-player-card::before){
    animation-play-state:paused!important;
    will-change:auto!important;
  }
  html body.v146163-ui :is(.v1469-chat-drawer,.v101-battle-shell,.v119-location-hero,.v122-modal-card){
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}

@media (prefers-reduced-motion:reduce){
  html body.v146163-ui *,html body.v146163-ui *::before,html body.v146163-ui *::after{scroll-behavior:auto!important;}
}

/* ===== css/v146166-necromancer.css ===== */
/* Aldos RPG v1.146.166 — Necromancer / Puppeteer path */
.v146166-necro-panel{margin:8px 0 10px;padding:8px;border:1px solid rgba(112,215,200,.36);border-radius:12px;background:linear-gradient(180deg,rgba(10,19,25,.96),rgba(12,9,19,.96));box-shadow:inset 0 0 28px rgba(64,207,207,.05),0 7px 20px rgba(0,0,0,.22);overflow:hidden}
.v146166-necro-panel.performance{border-color:rgba(191,123,255,.62);box-shadow:inset 0 0 30px rgba(109,56,187,.14),0 0 16px rgba(109,56,187,.12)}
.v146166-necro-panel>header{display:flex;align-items:center;gap:8px;min-width:0;padding-bottom:7px;border-bottom:1px solid rgba(255,255,255,.07)}
.v146166-necro-head-icon{width:34px;height:34px;object-fit:contain;display:block}.v146166-necro-panel>header>div:nth-child(2){min-width:0;flex:1}.v146166-necro-panel header small{display:block;color:#7acfc7;font-size:9px;letter-spacing:.11em}.v146166-necro-panel header b{display:block;color:#eee5ff;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146166-necro-resources{display:flex!important;flex-direction:column;align-items:flex-end;gap:2px;flex:0 0 auto}.v146166-necro-resources em{font-style:normal;color:#b7f1ed;font-size:10px;white-space:nowrap}.v146166-necro-resources .tension{color:#c8a8ff}.v146166-necro-resources .danger{color:#ff7777;text-shadow:0 0 8px rgba(255,56,56,.4)}
.v146166-necro-puppet{display:flex;align-items:center;gap:8px;margin-top:7px;padding:6px;border-radius:9px;background:rgba(13,31,31,.68);border:1px solid rgba(98,228,187,.20)}.v146166-necro-puppet-img{width:48px;height:48px;object-fit:contain;flex:0 0 48px}.v146166-necro-puppet>div{min-width:0;flex:1}.v146166-necro-puppet b{display:block;color:#dffdf3;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146166-necro-puppet small{display:block;margin-top:1px;color:#9cc3bd;font-size:9px}.v146166-necro-puppet-hp{height:4px;margin-top:5px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}.v146166-necro-puppet-hp i{display:block;height:100%;background:linear-gradient(90deg,#43d29d,#8ff7bd);box-shadow:0 0 8px rgba(77,239,175,.35)}.v146166-necro-no-puppet{margin-top:7px;padding:7px;border-radius:8px;border:1px dashed rgba(107,204,199,.23);color:#87aaa8;font-size:10px;text-align:center}
.v146166-necro-pattern{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 2px 5px}.v146166-necro-pattern>small{color:#887aa3;font-size:8px;letter-spacing:.08em}.v146166-necro-pattern>div{display:flex;align-items:center;gap:4px;min-width:0}.v146166-necro-pattern span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid rgba(171,114,235,.3);background:rgba(58,31,81,.55);color:#9f80c9;font-size:10px;font-weight:800}.v146166-necro-pattern span.done{border-color:#54d6c2;background:rgba(30,112,105,.35);color:#bcfff3}.v146166-necro-pattern span.next{border-color:#c989ff;box-shadow:0 0 7px rgba(182,102,255,.25);color:#f0d9ff}.v146166-necro-pattern i{font-style:normal;color:#5c536a;font-size:8px}.v146166-necro-pattern em{font-style:normal;color:#6f6879;font-size:9px}
.v146166-necro-commands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.v146166-necro-command{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:34px;padding:3px 5px;border-radius:8px;border:1px solid rgba(144,111,182,.24);background:rgba(28,22,38,.86);color:#c7bbd5}.v146166-necro-command:not(:disabled){cursor:pointer}.v146166-necro-command.active{border-color:rgba(87,223,192,.66);background:linear-gradient(180deg,rgba(31,89,82,.62),rgba(23,48,53,.82));color:#e2fff8;box-shadow:inset 0 0 10px rgba(71,231,190,.1)}.v146166-necro-command:disabled{opacity:.55}.v146166-necro-command-icon{width:22px;height:22px;object-fit:contain}.v146166-necro-command b{font-size:9px;white-space:nowrap}
.v146166-necro-imprints{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:6px}.v146166-necro-imprint{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;column-gap:5px;align-items:center;min-width:0;padding:4px;border-radius:8px;border:1px solid rgba(121,105,145,.18);background:rgba(17,15,24,.76);text-align:left;color:#bcb4c9}.v146166-necro-imprint.selected.filled{border-color:rgba(101,229,191,.55);background:rgba(27,67,59,.48)}.v146166-necro-imprint-img{grid-row:1/3;width:28px;height:28px;object-fit:contain}.v146166-necro-imprint span{min-width:0;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146166-necro-imprint small{min-width:0;color:#80798b;font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146166-necro-imprint.empty{opacity:.48}
.v146166-necromancer-full{object-fit:contain!important}.v146166-necromancer-face{object-fit:cover!important;object-position:center top!important}
@media(max-width:420px){.v146166-necro-panel{margin:6px 0 8px;padding:6px}.v146166-necro-resources em{font-size:9px}.v146166-necro-puppet-img{width:42px;height:42px;flex-basis:42px}.v146166-necro-command{padding-inline:2px}.v146166-necro-command b{font-size:8px}.v146166-necro-imprint{grid-template-columns:24px minmax(0,1fr);column-gap:3px;padding:3px}.v146166-necro-imprint-img{width:24px;height:24px}}

/* ===== css/v146167-necromancer-hotfix.css ===== */
/* Aldos RPG v1.146.167 — Necromancer Rituals / visual / arsenal hotfix. Existing art only. */
.v146167-ritual-host{position:relative;z-index:31;margin:8px 16px 0;isolation:isolate}
.v146167-ritual-toggle{width:100%;min-height:56px;display:grid;grid-template-columns:42px minmax(0,1fr) auto 24px;align-items:center;gap:10px;padding:7px 11px;border:1px solid rgba(189,154,77,.58);border-radius:16px;background:linear-gradient(180deg,rgba(14,37,38,.98),rgba(6,19,24,.99));box-shadow:inset 0 0 0 1px rgba(72,221,194,.1),inset 0 0 24px rgba(43,180,159,.06),0 7px 18px rgba(0,0,0,.3);color:#eaf7f2;text-align:left;overflow:hidden}
.v146167-ritual-toggle:before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle at 10% 50%,rgba(85,225,196,.10),transparent 28%),radial-gradient(circle at 84% 40%,rgba(155,86,224,.09),transparent 34%);pointer-events:none}
.v146167-ritual-toggle>img{position:relative;width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 0 6px rgba(122,76,226,.36))}
.v146167-ritual-toggle>span{position:relative;min-width:0}.v146167-ritual-toggle>span small{display:block;color:#82cfc5;font-size:9px;letter-spacing:.11em;line-height:1.2}.v146167-ritual-toggle>span b{display:block;margin-top:1px;font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.05;color:#f1ead8;white-space:nowrap}
.v146167-ritual-toggle>em{position:relative;font-style:normal;color:#b8ccc8;font-size:10px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146167-ritual-toggle>i{position:relative;display:grid;place-items:center;font-style:normal;font-size:22px;color:#d5b36e;transition:transform .28s ease}
.v146167-ritual-host.open .v146167-ritual-toggle{border-bottom-left-radius:9px;border-bottom-right-radius:9px;border-color:rgba(78,222,194,.58);box-shadow:inset 0 0 28px rgba(67,207,187,.08),0 4px 14px rgba(0,0,0,.28)}.v146167-ritual-host.open .v146167-ritual-toggle>i{transform:rotate(180deg)}
.v146167-ritual-drawer{display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-8px);transition:grid-template-rows .30s cubic-bezier(.2,.72,.2,1),opacity .18s ease,transform .30s cubic-bezier(.2,.72,.2,1);pointer-events:none}
.v146167-ritual-host.open .v146167-ritual-drawer{grid-template-rows:1fr;opacity:1;transform:none;pointer-events:auto}.v146167-ritual-drawer-inner{min-height:0;overflow:hidden}
.v146167-necro-panel{position:relative;margin:5px 0 0!important;padding:10px!important;border-radius:9px 9px 16px 16px!important;border:1px solid rgba(69,205,187,.48)!important;border-top-color:rgba(189,154,77,.32)!important;background:linear-gradient(180deg,rgba(5,25,29,.985),rgba(9,13,24,.985))!important;box-shadow:inset 0 0 45px rgba(31,155,143,.08),inset 0 0 0 1px rgba(132,82,194,.05),0 12px 26px rgba(0,0,0,.30)!important}
.v146167-necro-panel:before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,rgba(55,206,181,.03),transparent 28%,transparent 72%,rgba(118,65,194,.04)),url('../assets/v146167/necromancer/mechanics/innate_regression.webp') center 42%/210px 210px no-repeat;opacity:.16;pointer-events:none}
.v146167-necro-panel>*{position:relative}.v146167-necro-panel>header{padding:2px 2px 9px!important}.v146167-necro-panel .v146166-necro-head-icon{width:43px;height:43px;padding:0;object-fit:contain}
.v146167-necro-guide{display:grid;grid-template-columns:48px minmax(0,1fr);gap:9px;align-items:center;margin-top:8px;padding:8px;border:1px solid rgba(155,118,198,.30);border-radius:11px;background:linear-gradient(110deg,rgba(31,20,49,.76),rgba(10,36,38,.66));box-shadow:inset 0 0 16px rgba(102,70,186,.08)}
.v146167-necro-guide.ready{border-color:rgba(110,235,190,.64);background:linear-gradient(110deg,rgba(13,69,59,.72),rgba(35,26,63,.72))}.v146167-necro-guide.active{border-color:rgba(200,150,255,.52)}.v146167-necro-guide>img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 0 7px rgba(117,76,226,.34))}.v146167-necro-guide>div{min-width:0}.v146167-necro-guide b{display:block;color:#f0e7f8;font-size:11px;line-height:1.25}.v146167-necro-guide small{display:block;margin-top:3px;color:#a9c1c0;font-size:9px;line-height:1.35}
.v146167-necro-panel .v146166-necro-puppet{position:relative;padding:8px 42px 8px 8px;border:1px solid rgba(88,222,190,.38);background:linear-gradient(110deg,rgba(12,56,52,.72),rgba(20,20,37,.8));box-shadow:inset 0 0 18px rgba(67,220,184,.07)}.v146167-necro-panel .v146166-necro-puppet-img{width:64px;height:64px;flex-basis:64px;object-fit:contain;filter:drop-shadow(0 0 8px rgba(75,235,193,.25))}.v146167-puppet-badge{position:absolute;right:7px;top:50%;width:30px;height:30px;transform:translateY(-50%);object-fit:contain}
.v146167-necro-panel .v146166-necro-no-puppet{display:grid;grid-template-columns:50px minmax(0,1fr);align-items:center;gap:8px;padding:8px;text-align:left;border-style:solid;background:rgba(14,22,31,.72)}.v146166-necro-no-puppet>img{width:48px;height:48px;object-fit:contain}.v146166-necro-no-puppet b{display:block;color:#d8d0e5;font-size:10px}.v146166-necro-no-puppet small{display:block;margin-top:2px;color:#8da3a3;font-size:8px;line-height:1.3}
.v146167-command-caption,.v146167-imprint-caption{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin:8px 2px 4px}.v146167-command-caption span,.v146167-imprint-caption span{color:#a996c1;font-size:8px;letter-spacing:.09em}.v146167-command-caption small,.v146167-imprint-caption small{color:#6e8585;font-size:7px;text-align:right}
.v146167-necro-panel .v146166-necro-commands{gap:7px}.v146167-necro-panel .v146166-necro-command{min-height:46px;gap:6px;padding:5px 6px;border-radius:10px;background:linear-gradient(180deg,rgba(26,27,43,.95),rgba(14,20,28,.95));border-color:rgba(132,103,164,.34)}.v146167-necro-panel .v146166-necro-command.active{border-color:rgba(81,224,192,.74);box-shadow:inset 0 0 16px rgba(70,225,190,.12),0 0 8px rgba(70,225,190,.08)}.v146167-necro-panel .v146166-necro-command-icon{width:34px;height:34px;object-fit:contain;padding:0}.v146167-necro-panel .v146166-necro-command b{font-size:10px}
.v146167-necro-panel .v146166-necro-imprints{gap:7px}.v146167-necro-panel .v146166-necro-imprint{grid-template-columns:42px minmax(0,1fr);min-height:60px;padding:6px;border:1px solid rgba(133,101,158,.30);border-radius:11px;background:linear-gradient(180deg,rgba(23,19,32,.92),rgba(11,18,24,.95));box-shadow:inset 0 0 14px rgba(120,70,160,.05)}.v146167-necro-panel .v146166-necro-imprint.selected.filled{border-color:rgba(80,229,187,.7);box-shadow:inset 0 0 15px rgba(71,224,182,.1)}.v146167-necro-panel .v146166-necro-imprint-img{width:40px;height:40px;object-fit:contain;padding:0}.v146167-necro-panel .v146166-necro-imprint span{font-size:9px}.v146167-necro-panel .v146166-necro-imprint small{font-size:7px}
.v146167-necro-panel .v146166-necro-pattern{padding:8px 3px 3px}.v146167-necro-panel .v146166-necro-pattern span{width:25px;height:25px;font-size:11px}
/* Rebuilt from already approved sheets: show the full square, not a small/cropped slice. */
.v115-ability-card-image[src*="/v146167/necromancer/"],.v115-ability-detail-image[src*="/v146167/necromancer/"],.v1390-ability-image[src*="/v146167/necromancer/"]{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;padding:0!important;transform:none!important}
.v115-ability-card-icon:has(img[src*="/v146167/necromancer/"]),.v115-ability-detail-icon:has(img[src*="/v146167/necromancer/"]){overflow:hidden!important}
img[src*="/v146167/necromancer/vfx/"],img[src*="/v146167/necromancer/puppet-vfx/"],img[src*="/v146167/necromancer/tension/"]{object-fit:contain!important;object-position:center!important}
@media(max-width:420px){.v146167-ritual-host{margin:6px 14px 0}.v146167-ritual-toggle{grid-template-columns:38px minmax(0,1fr) 24px;min-height:52px;padding:6px 9px}.v146167-ritual-toggle>img{width:36px;height:36px}.v146167-ritual-toggle>span b{font-size:18px}.v146167-ritual-toggle>em{display:none}.v146167-necro-panel{padding:7px!important}.v146167-necro-guide{grid-template-columns:42px minmax(0,1fr);padding:6px}.v146167-necro-guide>img{width:40px;height:40px}.v146167-necro-panel .v146166-necro-puppet-img{width:54px;height:54px;flex-basis:54px}.v146167-necro-panel .v146166-necro-command-icon{width:30px;height:30px}.v146167-necro-panel .v146166-necro-command b{font-size:9px}.v146167-necro-panel .v146166-necro-imprint{grid-template-columns:35px minmax(0,1fr);min-height:54px;padding:5px}.v146167-necro-panel .v146166-necro-imprint-img{width:34px;height:34px}.v146167-command-caption small,.v146167-imprint-caption small{display:none}}
@media(prefers-reduced-motion:reduce){.v146167-ritual-drawer,.v146167-ritual-toggle>i{transition:none!important}}

/* ===== css/v146168-necromancer-puppet-ui.css ===== */
/* Aldos RPG v1.146.168 — compact rituals, puppet ally card, admin skin toggle */
html body.v111-battle-active main.v101-battle.v79-battle>.v146167-ritual-host{grid-column:1/-1!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;margin:5px 0 0!important;box-sizing:border-box!important;z-index:31!important}
html body.v111-battle-active .v146167-ritual-toggle{position:relative!important;width:100%!important;min-height:46px!important;height:46px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important;padding:4px 10px!important;border:1px solid rgba(218,183,92,.62)!important;border-radius:14px!important;background:linear-gradient(180deg,rgba(13,39,39,.98),rgba(8,22,27,.99))!important;box-shadow:inset 0 0 0 1px rgba(67,225,191,.10),inset 0 0 18px rgba(48,190,165,.07),0 5px 12px rgba(0,0,0,.25)!important}
.v146167-ritual-toggle>img{width:34px!important;height:34px!important}.v146167-ritual-toggle>span small{font-size:8px!important}.v146167-ritual-toggle>span b{font-size:18px!important}.v146167-ritual-toggle>em{font-size:9px!important}.v146167-ritual-toggle>i{display:none!important}
.v146167-ritual-drawer-inner{max-height:min(240px,32vh)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(196,151,74,.8) rgba(8,20,24,.65);padding-right:2px}
.v146167-necro-panel{margin-top:4px!important;padding:7px!important}.v146167-necro-guide{margin-top:5px!important}.v146167-necro-panel .v146166-necro-puppet{margin-top:5px!important}.v146167-necro-panel .v146166-necro-pattern{padding-top:5px!important}.v146167-necro-panel .v146166-necro-imprints{margin-top:4px!important}
.v146168-puppet-ally{border:1px solid rgba(80,238,145,.92)!important;box-shadow:inset 0 0 0 1px rgba(104,255,165,.20),inset 0 0 24px rgba(44,190,103,.10),0 0 12px rgba(56,215,119,.13)!important;background:linear-gradient(180deg,rgba(13,43,31,.94),rgba(12,27,25,.97))!important}
.v146168-puppet-ally .v101-unit-name h3{color:#d9ffe8!important}.v146168-puppet-ally .v101-unit-name small{display:block;color:#72d99e;font-size:8px;margin-top:1px}.v146168-puppet-ally-art img{object-fit:contain!important;filter:drop-shadow(0 0 7px rgba(67,230,135,.26))}.v146168-puppet-thread-row>div>i{background:linear-gradient(90deg,#3dd18d,#66efd0)!important}.v146168-puppet-status{display:inline-flex;align-items:center;gap:3px;color:#75e6a6;font-size:8px}.v146168-puppet-status img{width:18px;height:18px;object-fit:contain}
.v146168-admin-skin-card{margin:8px 0;padding:10px 12px;border:1px solid rgba(217,177,91,.38);border-radius:12px;background:linear-gradient(180deg,rgba(17,31,34,.94),rgba(10,20,25,.96));box-shadow:inset 0 0 18px rgba(202,160,75,.05)}.v146168-admin-skin-card label{display:flex;align-items:center;gap:10px;cursor:pointer}.v146168-admin-skin-card input{width:22px;height:22px;accent-color:#9fe72e;flex:0 0 auto}.v146168-admin-skin-card span{min-width:0}.v146168-admin-skin-card b{display:block;color:#f1e6c9;font-size:13px}.v146168-admin-skin-card small{display:block;margin-top:2px;color:#8fa4a4;font-size:9px;line-height:1.35}
@media(max-width:420px){html body.v111-battle-active main.v101-battle.v79-battle>.v146167-ritual-host{margin-top:4px!important}.v146167-ritual-drawer-inner{max-height:min(220px,30vh)!important}.v146167-ritual-toggle>em{display:none!important}.v146167-ritual-toggle{grid-template-columns:34px minmax(0,1fr)!important}.v146167-ritual-toggle>img{width:31px!important;height:31px!important}}

/* v168 battle vertical compaction: support + Rituals are consecutive real rows. */
html body.v127-ui.v111-battle-active main.v101-battle.v79-battle{grid-template-rows:70px 190px minmax(0,1fr) 46px auto!important;row-gap:5px!important}
html body.v117-ui.v111-battle-active #support-drawer-open.v115-support-under-log,html body.v118-ui.v111-battle-active #support-drawer-open.v115-support-under-log{margin-top:0!important;margin-bottom:0!important;transform:none!important}
html body.v127-ui.v111-battle-active main.v101-battle.v79-battle>.v146167-ritual-host{grid-row:5!important;align-self:end!important}

/* ===== css/v146169-necromancer-battle-ux.css ===== */
/* Aldos RPG v1.146.169 — ritual overlay, puppet roster clarity, timer/performance hotfix. */
html body.v111-battle-active main.v101-battle.v79-battle>.v146169-ritual-host{grid-column:1/-1!important;grid-row:5!important;position:relative!important;width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;z-index:32!important;overflow:visible!important}
html body.v111-battle-active .v146169-ritual-toggle{height:46px!important;min-height:46px!important;max-height:46px!important;width:100%!important;margin:0!important;border:1px solid rgba(215,180,91,.72)!important;border-radius:14px!important;grid-template-columns:38px minmax(0,1fr) auto!important;padding:4px 10px!important;background:linear-gradient(180deg,rgba(13,45,44,.98),rgba(8,25,29,.99))!important;box-shadow:inset 0 0 0 1px rgba(77,230,196,.12),0 3px 10px rgba(0,0,0,.24)!important}
.v146169-ritual-toggle>img{width:34px!important;height:34px!important;object-fit:contain!important}.v146169-ritual-toggle>span small{font-size:8px!important}.v146169-ritual-toggle>span b{font-size:18px!important}.v146169-ritual-toggle>em{font-size:9px!important;color:#b9ddd6!important}.v146169-ritual-host.open .v146169-ritual-toggle{border-color:rgba(100,239,202,.84)!important;box-shadow:inset 0 0 18px rgba(71,221,190,.10),0 0 0 1px rgba(54,176,151,.14)!important}
/* The drawer is a viewport overlay. It covers the log/support rows instead of consuming their height. */
.v146169-ritual-overlay{display:block;position:fixed;z-index:94;box-sizing:border-box;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(8px) scale(.992);transform-origin:bottom center;transition:opacity .14s ease,transform .16s ease,visibility 0s linear .16s;background:linear-gradient(180deg,rgba(7,20,25,.995),rgba(9,14,23,.995));border:1px solid rgba(97,226,199,.58);border-radius:15px;box-shadow:0 -10px 28px rgba(0,0,0,.48),inset 0 0 0 1px rgba(206,170,82,.16);overflow:hidden;contain:layout paint style}
.v146169-ritual-overlay.open{visibility:visible;opacity:1;pointer-events:auto;transform:none;transition-delay:0s}
.v146169-ritual-overlay-scroll{max-height:inherit;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(201,151,71,.85) rgba(7,19,24,.75);padding:7px;touch-action:pan-y}
.v146169-necro-panel{margin:0!important;padding:7px!important;border:0!important;border-radius:10px!important;background:radial-gradient(circle at 85% 10%,rgba(101,57,161,.11),transparent 35%),linear-gradient(180deg,rgba(13,30,34,.9),rgba(11,15,24,.92))!important;box-shadow:none!important;overflow:visible!important}
.v146169-necro-panel>header{position:sticky!important;top:-7px;z-index:3;padding:7px 3px!important;margin:-7px -2px 5px!important;background:linear-gradient(180deg,rgba(9,25,29,.99),rgba(9,25,29,.94),rgba(9,25,29,.78));backdrop-filter:none!important}
.v146169-necro-guide{display:grid;grid-template-columns:78px minmax(0,1fr);gap:7px;align-items:center;margin:5px 0;padding:7px 8px;border:1px solid rgba(104,87,160,.35);border-radius:10px;background:linear-gradient(100deg,rgba(47,32,71,.68),rgba(15,28,35,.75))}.v146169-necro-guide>span{display:grid;place-items:center;min-height:42px;padding:4px;border-radius:8px;background:rgba(95,60,142,.22);color:#c9aaff;font-size:7px;font-weight:800;letter-spacing:.06em;text-align:center}.v146169-necro-guide b{display:block;color:#f0eaff;font-size:10px;line-height:1.15}.v146169-necro-guide small{display:block;margin-top:2px;color:#a7b9ba;font-size:8px;line-height:1.3}.v146169-necro-guide.ready{border-color:rgba(84,225,176,.55);background:linear-gradient(100deg,rgba(28,76,63,.66),rgba(15,31,34,.78))}.v146169-necro-guide.active{border-color:rgba(85,216,176,.44)}
.v146169-soul-progress{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:6px 8px;margin:5px 0;border:1px solid rgba(88,199,182,.23);border-radius:9px;background:rgba(9,28,31,.72)}.v146169-soul-progress small{display:block;color:#6faeaa;font-size:7px;letter-spacing:.08em}.v146169-soul-progress b{display:block;max-width:180px;color:#d8ece7;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146169-soul-progress em{font-style:normal;color:#b9a3dc;font-size:8px;font-weight:800;white-space:nowrap}.v146169-soul-progress.ready em{color:#78e6b3}.v146169-crack-dots{display:flex;gap:5px}.v146169-crack-dots i{display:block;width:18px;height:18px;border-radius:50%;border:1px solid rgba(139,101,187,.5);background:radial-gradient(circle,rgba(72,41,103,.65),rgba(22,20,34,.9))}.v146169-crack-dots i.filled{border-color:#68ddc4;background:radial-gradient(circle at 40% 35%,#aefef1 0 9%,#61d7c3 10% 25%,#6245b0 48%,#251d41 75%);box-shadow:0 0 8px rgba(78,221,194,.38)}
.v146169-necro-panel .v146166-necro-pattern{margin:1px 0 4px;padding:5px 2px!important}.v146169-necro-panel .v146166-necro-pattern span{width:27px!important;height:27px!important;overflow:hidden}.v146169-necro-panel .v146166-necro-pattern span img{width:23px;height:23px;object-fit:contain}.v146169-command-caption,.v146169-imprint-caption{display:flex;align-items:end;justify-content:space-between;gap:8px;margin:5px 1px 4px}.v146169-command-caption span,.v146169-imprint-caption span{color:#9385aa;font-size:7px;letter-spacing:.07em}.v146169-command-caption small,.v146169-imprint-caption small{color:#6f8488;font-size:7px;text-align:right}.v146169-necro-panel .v146166-necro-command{min-height:48px!important;display:grid!important;grid-template-columns:31px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:5px!important;align-items:center!important;justify-items:start!important}.v146169-necro-panel .v146166-necro-command-icon{grid-row:1/3;width:30px!important;height:30px!important}.v146169-necro-panel .v146166-necro-command b{font-size:9px!important}.v146169-necro-panel .v146166-necro-command small{font-size:7px;color:#7f9296}.v146169-necro-panel .v146166-necro-imprints{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.v146169-necro-panel .v146166-necro-imprint{min-height:53px!important;grid-template-columns:34px minmax(0,1fr)!important;padding:5px!important}.v146169-necro-panel .v146166-necro-imprint-img{width:32px!important;height:32px!important}.v146169-necro-panel .v146166-necro-imprint span{font-size:8px!important}.v146169-necro-panel .v146166-necro-imprint small{font-size:6.5px!important}
/* Puppet exists only as a real ally-style card in the left roster, never as a second card in Rituals. */
.v146169-puppet-ally{border:1px solid rgba(76,244,139,.96)!important;box-shadow:inset 0 0 0 1px rgba(117,255,172,.22),inset 0 0 22px rgba(41,188,97,.12),0 0 10px rgba(53,222,116,.15)!important}.v146169-puppet-ally .v101-unit-name small{color:#7ee9aa!important}.v146169-puppet-ally .v79-stat-row.mp>div{background:rgba(54,119,82,.25)!important}.v146169-puppet-ally .v79-stat-row.mp>div>i{background:linear-gradient(90deg,#37cf82,#72edb0)!important}
/* Keep the timer compositor-only between second labels. */
html body.v111-battle-active #turn-bar{will-change:transform;transition:transform .30s linear!important;transform-origin:left center!important}html body.v111-battle-active #turn-ring{contain:layout paint style}html body.v111-battle-active .v79-turn{contain:layout style}
@media(max-width:420px){.v146169-ritual-toggle>em{display:block!important;max-width:74px!important}.v146169-necro-guide{grid-template-columns:67px minmax(0,1fr)}.v146169-necro-guide small{font-size:7.5px}.v146169-command-caption small,.v146169-imprint-caption small{display:none}.v146169-soul-progress b{max-width:125px}.v146169-ritual-overlay-scroll{padding:6px}}
@media(prefers-reduced-motion:reduce){.v146169-ritual-overlay,#turn-bar{transition:none!important}}

/* ===== css/v146170-necromancer-roster-overlay-performance.css ===== */
/* Aldos RPG v1.146.170 — no-gap Rituals row, body portal overlay, visible puppet roster, low-frequency timer. */
/* Five explicit rows: Rituals is immediately under Potions, never parked in an implicit expanding row. */
html body.v127-ui.v111-battle-active main.v101-battle.v79-battle{grid-template-rows:70px 190px minmax(0,1fr) 46px 46px!important;row-gap:4px!important}
html body.v111-battle-active main.v101-battle.v79-battle>#support-drawer-open.v115-support-under-log{grid-row:4!important;margin:0!important;align-self:stretch!important}
html body.v111-battle-active main.v101-battle.v79-battle>.v146169-ritual-host{grid-row:5!important;align-self:stretch!important;height:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:0!important}
html body.v111-battle-active .v146169-ritual-toggle{height:46px!important;min-height:46px!important;margin:0!important;border-radius:14px!important}
/* Portal is moved to document.body in JS. Fixed positioning is therefore never trapped by a transformed #app ancestor. */
body>.v146169-ritual-overlay{position:fixed!important;z-index:2147482500!important;margin:0!important;inset:auto auto auto auto;max-height:min(46dvh,350px)!important;contain:layout paint style!important}
body>.v146169-ritual-overlay.open{pointer-events:auto!important}
body>.v146169-ritual-overlay-scroll{max-height:inherit!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
/* Compact, readable 3-step ritual guidance. */
.v146170-necro-quicksteps{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr);align-items:center;gap:3px;margin:5px 0;padding:5px;border:1px solid rgba(102,194,178,.22);border-radius:10px;background:rgba(5,19,24,.68)}
.v146170-necro-quicksteps>span{min-width:0;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:4px;padding:4px;border-radius:8px;color:#83979a;background:rgba(255,255,255,.025)}
.v146170-necro-quicksteps>span>b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#18242a;color:#a8b4b5;font:900 8px/1 Arial,sans-serif}.v146170-necro-quicksteps>span>em{min-width:0;font-style:normal;font-size:7px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v146170-necro-quicksteps>span.active{color:#efe1b8;background:rgba(172,121,52,.13)}.v146170-necro-quicksteps>span.active>b{background:#725128;color:#fff0b7;box-shadow:0 0 8px rgba(218,166,77,.25)}
.v146170-necro-quicksteps>span.done{color:#9bf0d0;background:rgba(45,154,120,.12)}.v146170-necro-quicksteps>span.done>b{background:#237f63;color:#e7fff6}.v146170-necro-quicksteps>i{text-align:center;color:#6c817f;font-style:normal;font-size:8px}
/* v1.146.219: retired historical solo player-card compression. */
.v146170-puppet-ally{border:1px solid #55ef92!important;box-shadow:inset 0 0 0 1px rgba(112,255,169,.30),inset 0 0 18px rgba(42,199,104,.15),0 0 8px rgba(62,232,128,.20)!important;background:linear-gradient(180deg,rgba(12,48,31,.98),rgba(8,29,26,.98))!important}
/* Timer: one JS paint per displayed second; CSS interpolates the bar between those paints. */
html body.v111-battle-active #turn-bar{will-change:transform!important;transition:transform .98s linear!important}
html body.v111-battle-active #turn-ring{will-change:auto!important}
@media(max-width:420px){body>.v146169-ritual-overlay{max-height:min(44dvh,330px)!important}.v146170-necro-quicksteps>span{grid-template-columns:16px minmax(0,1fr);padding:3px}.v146170-necro-quicksteps>span>b{width:16px;height:16px;font-size:7px}.v146170-necro-quicksteps>span>em{font-size:6.5px}}
@media(prefers-reduced-motion:reduce){html body.v111-battle-active #turn-bar{transition:none!important}}

/* ===== css/v146171-necromancer-ritual-puppet-card.css ===== */
/* Aldos RPG v1.146.171 — compact Ritual button + independent puppet ally card. No new image assets. */
/* Rituals: same location/width as before, but restrained typography and cleaner framed button. */
html body.v111-battle-active #necromancer-ritual-toggle.v146169-ritual-toggle{
  height:44px!important;min-height:44px!important;max-height:44px!important;
  grid-template-columns:30px minmax(0,1fr) auto!important;gap:7px!important;
  padding:4px 9px!important;border-radius:12px!important;
  border:1px solid rgba(215,181,91,.62)!important;
  background:radial-gradient(circle at 12% 20%,rgba(49,139,119,.13),transparent 33%),linear-gradient(180deg,rgba(12,39,40,.99),rgba(8,24,29,.995))!important;
  box-shadow:inset 0 0 0 1px rgba(94,224,195,.09),inset 0 -8px 18px rgba(0,0,0,.13),0 2px 7px rgba(0,0,0,.22)!important;
  overflow:hidden!important;
}
html body.v111-battle-active #necromancer-ritual-toggle.v146169-ritual-toggle::before{
  content:"";position:absolute;left:6px;right:6px;top:2px;height:1px;border-radius:50%;background:linear-gradient(90deg,transparent,rgba(240,211,133,.38),transparent);pointer-events:none;
}
html body.v111-battle-active #necromancer-ritual-toggle>img{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;object-fit:contain!important;filter:drop-shadow(0 0 4px rgba(116,91,205,.26))!important}
html body.v111-battle-active #necromancer-ritual-toggle>span{min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:0!important;line-height:1!important;text-align:left!important}
html body.v111-battle-active #necromancer-ritual-toggle>span small{display:block!important;font:700 6.5px/1.05 Arial,sans-serif!important;letter-spacing:.085em!important;color:#8fa5a2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v111-battle-active #necromancer-ritual-toggle>span b{display:block!important;margin-top:2px!important;font-size:14px!important;line-height:1!important;font-weight:800!important;letter-spacing:.015em!important;color:#f1e9d2!important;white-space:nowrap!important}
html body.v111-battle-active #necromancer-ritual-toggle>em{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:54px!important;max-width:66px!important;height:23px!important;padding:0 7px!important;border:1px solid rgba(95,205,179,.24)!important;border-radius:9px!important;background:rgba(5,24,27,.66)!important;color:#a9ddd0!important;font:800 7.5px/1 Arial,sans-serif!important;font-style:normal!important;white-space:nowrap!important}
html body.v111-battle-active .v146169-ritual-host.open #necromancer-ritual-toggle{border-color:rgba(96,224,192,.72)!important;box-shadow:inset 0 0 0 1px rgba(94,224,195,.12),inset 0 0 13px rgba(72,201,174,.07),0 2px 8px rgba(0,0,0,.24)!important}

/* v170 forced BOTH owner and puppet to 72px. v171 explicitly restores normal player geometry. */










/* Puppet is a separate green ally card directly after owner; only puppet is compact. */
html body.v127-ui.v111-battle-active .v101-player-roster .v146171-puppet-ally{
  flex:0 0 72px!important;box-sizing:border-box!important;width:100%!important;height:72px!important;min-height:72px!important;max-height:72px!important;
  display:grid!important;grid-template-columns:48px minmax(0,1fr) 24px!important;grid-template-rows:1fr!important;grid-template-areas:"art body badge"!important;
  gap:6px!important;padding:5px 6px!important;overflow:hidden!important;
  border:1px solid rgba(82,239,142,.96)!important;border-radius:12px!important;
  background:radial-gradient(circle at 13% 35%,rgba(62,207,124,.14),transparent 35%),linear-gradient(180deg,rgba(10,48,31,.98),rgba(8,28,25,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(123,255,177,.18),inset 0 0 18px rgba(42,190,99,.09),0 0 7px rgba(54,222,116,.14)!important;
}
html body.v127-ui.v111-battle-active .v101-player-roster .v146171-puppet-ally>.v146171-puppet-art{
  grid-area:art!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:60px!important;min-height:60px!important;max-height:60px!important;align-self:center!important;margin:0!important;border-radius:9px!important;
  background:rgba(4,25,19,.43)!important;overflow:hidden!important;
}
html body.v127-ui.v111-battle-active .v101-player-roster .v146171-puppet-ally>.v146171-puppet-art :where(img,.class-inline-image){width:94%!important;height:94%!important;max-width:94%!important;max-height:94%!important;object-fit:contain!important;margin:auto!important;filter:drop-shadow(0 0 5px rgba(79,233,142,.22))!important}
html body.v127-ui.v111-battle-active .v146171-puppet-body{grid-area:body!important;min-width:0!important;display:grid!important;grid-template-rows:23px 21px 15px!important;align-content:center!important;gap:1px!important;padding:0!important;overflow:hidden!important}
html body.v127-ui.v111-battle-active .v146171-puppet-title{min-width:0!important;overflow:hidden!important}
html body.v127-ui.v111-battle-active .v146171-puppet-title h3{margin:0!important;font-size:9px!important;line-height:1.05!important;font-weight:800!important;color:#e1ffeb!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui.v111-battle-active .v146171-puppet-title small{display:block!important;margin-top:2px!important;font:600 6.3px/1 Arial,sans-serif!important;color:#72c997!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v127-ui.v111-battle-active .v146171-puppet-title small b{font-size:6px!important;letter-spacing:.07em!important;color:#9ce7ba!important}
html body.v127-ui.v111-battle-active .v146171-puppet-hp{display:grid!important;grid-template-rows:10px 6px!important;gap:2px!important;align-self:center!important}
html body.v127-ui.v111-battle-active .v146171-puppet-hp>span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;font:700 6.8px/1 Arial,sans-serif!important;color:#cce8d5!important}
html body.v127-ui.v111-battle-active .v146171-puppet-hp>span b{color:#ff8b91!important;font-size:6.7px!important}.v146171-puppet-hp>span em{font-style:normal!important;color:#d8ebe0!important}
html body.v127-ui.v111-battle-active .v146171-puppet-hp>i{display:block!important;width:100%!important;height:6px!important;border-radius:5px!important;background:rgba(52,72,67,.78)!important;overflow:hidden!important}
html body.v127-ui.v111-battle-active .v146171-puppet-hp>i>u{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#45d58b,#80efad)!important;text-decoration:none!important}
html body.v127-ui.v111-battle-active .v146171-puppet-meta{min-width:0!important;display:flex!important;align-items:center!important;gap:5px!important;overflow:hidden!important}
html body.v127-ui.v111-battle-active .v146171-puppet-meta>span{min-width:0!important;display:inline-flex!important;align-items:center!important;gap:2px!important;height:14px!important;padding:1px 4px!important;border:1px solid rgba(106,222,158,.16)!important;border-radius:6px!important;background:rgba(5,29,22,.52)!important;color:#8fc9aa!important;font:600 6px/1 Arial,sans-serif!important;white-space:nowrap!important}
html body.v127-ui.v111-battle-active .v146171-puppet-meta>span:first-child{max-width:70px!important}.v146171-puppet-meta>span b{font-size:6.3px!important;color:#c6efda!important;overflow:hidden!important;text-overflow:ellipsis!important}.v146171-puppet-command-icon{width:10px!important;height:10px!important;max-width:10px!important;max-height:10px!important;object-fit:contain!important}
html body.v127-ui.v111-battle-active .v146171-puppet-badge{grid-area:badge!important;align-self:center!important;justify-self:end!important;width:22px!important;display:grid!important;justify-items:center!important;gap:1px!important;color:#70d497!important;font:700 5.4px/1 Arial,sans-serif!important;text-transform:uppercase!important;letter-spacing:.04em!important}
html body.v127-ui.v111-battle-active .v146171-puppet-badge img{width:20px!important;height:20px!important;object-fit:contain!important}


/* Solo specificity shield: override v170's players-1 emergency compression only for the puppet itself. */




@media(max-width:420px){
  
  
  
  html body.v111-battle-active #necromancer-ritual-toggle.v146169-ritual-toggle{grid-template-columns:28px minmax(0,1fr) auto!important;padding-inline:8px!important;gap:6px!important}
  html body.v111-battle-active #necromancer-ritual-toggle>img{width:26px!important;height:26px!important}
  html body.v111-battle-active #necromancer-ritual-toggle>span b{font-size:13px!important}
  html body.v111-battle-active #necromancer-ritual-toggle>span small{font-size:6px!important}
  html body.v111-battle-active #necromancer-ritual-toggle>em{min-width:49px!important;padding-inline:5px!important;font-size:7px!important}
  html body.v127-ui.v111-battle-active .v101-player-roster .v146171-puppet-ally{grid-template-columns:43px minmax(0,1fr) 20px!important;height:68px!important;min-height:68px!important;max-height:68px!important;flex-basis:68px!important;padding:4px 5px!important;gap:5px!important}
  html body.v127-ui.v111-battle-active .v101-player-roster .v146171-puppet-ally>.v146171-puppet-art{width:43px!important;min-width:43px!important;max-width:43px!important;height:56px!important;min-height:56px!important;max-height:56px!important}
  html body.v127-ui.v111-battle-active .v146171-puppet-body{grid-template-rows:22px 20px 14px!important}
  html body.v127-ui.v111-battle-active .v146171-puppet-title h3{font-size:8.5px!important}
  html body.v127-ui.v111-battle-active .v146171-puppet-title small{font-size:5.8px!important}
  html body.v127-ui.v111-battle-active .v146171-puppet-meta>span{font-size:5.7px!important;padding-inline:3px!important}
  html body.v127-ui.v111-battle-active .v146171-puppet-badge{width:18px!important;font-size:5px!important}.v146171-puppet-badge img{width:18px!important;height:18px!important}
}

/* ===== css/v146172-necromancer-battle-control.css ===== */
/* Aldos RPG v1.146.172 — roster touch scroll, compact ritual copy, visible admin skin switch, basic-attack recovery, low-jank battle UI. */

/* Players roster must remain a real vertical scroll area when a puppet exists. */




/* Never shrink the real player because a servant joined the roster. */

html body.v127-ui.v111-battle-active .v146171-puppet-ally{flex-shrink:0!important;scroll-margin-block:4px!important}

/* Ritual header copy may never escape its frame on long monster names. */
html body.v111-battle-active .v146169-necro-panel>header{grid-template-columns:32px minmax(0,1fr) auto!important;gap:6px!important;overflow:hidden!important}
html body.v111-battle-active .v146172-necro-head-copy{min-width:0!important;overflow:hidden!important}
html body.v111-battle-active .v146172-necro-head-copy>small,
html body.v111-battle-active .v146172-necro-head-copy>b{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v111-battle-active .v146172-necro-head-copy>small{font-size:7px!important;line-height:1.05!important}
html body.v111-battle-active .v146172-necro-head-copy>b{font-size:11px!important;line-height:1.15!important;margin-top:2px!important}
html body.v111-battle-active .v146169-necro-guide{grid-template-columns:64px minmax(0,1fr)!important;overflow:hidden!important}
html body.v111-battle-active .v146169-necro-guide>span{min-width:0!important;min-height:34px!important;padding:3px!important;font-size:6px!important;line-height:1.08!important;overflow:hidden!important}
html body.v111-battle-active .v146169-necro-guide>div{min-width:0!important;overflow:hidden!important}
html body.v111-battle-active .v146169-necro-guide b{font-size:9px!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v111-battle-active .v146169-necro-guide small{font-size:7px!important;line-height:1.22!important}
.v146172-necro-hint-setting{margin:2px 2px 5px!important;color:#718885!important;font:600 6.3px/1.2 Arial,sans-serif!important;text-align:right!important}

/* Opening Rituals should not animate/layout-thrash the battle on Android WebView. */
body>.v146169-ritual-overlay{transition:none!important;transform:none!important;will-change:auto!important}
body>.v146169-ritual-overlay-scroll{contain:content!important;touch-action:pan-y!important}
html body.v111-battle-active #turn-ring{background:rgba(20,29,33,.94)!important;contain:layout paint!important}
html body.v111-battle-active #turn-bar{transition:transform .96s linear!important;will-change:transform!important;backface-visibility:hidden!important}
html body.v111-battle-active .v79-turn{contain:layout style!important}

/* Explicit basic attack: large enough to tap and no longer an icon-only mystery control. */
html body.v127-ui.v111-battle-active .v146172-basic-attack-overlay{display:grid!important;place-items:center!important;pointer-events:none!important}
html body.v127-ui.v111-battle-active .v146172-basic-attack{
  pointer-events:auto!important;width:auto!important;min-width:88px!important;max-width:112px!important;
  height:42px!important;min-height:42px!important;padding:4px 10px!important;border-radius:13px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  touch-action:manipulation!important;position:relative!important;z-index:2!important;
}
html body.v127-ui.v111-battle-active .v146172-basic-attack>.v146172-basic-attack-icon,
html body.v127-ui.v111-battle-active .v146172-basic-attack>.v146172-basic-attack-icon>*{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;display:block!important}
html body.v127-ui.v111-battle-active .v146172-basic-attack>b{display:block!important;color:#ffe9ee!important;font:800 8px/1 Arial,sans-serif!important;letter-spacing:.01em!important;text-shadow:0 1px 2px rgba(0,0,0,.5)!important}

/* Admin skin control: force a visible control instead of a native checkbox that themes could hide. */
.v146172-admin-skin-card{display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;align-items:center!important;gap:10px!important}
.v146172-admin-skin-copy{min-width:0!important}
.v146172-admin-skin-copy b{display:block!important;color:#f1e6c9!important;font-size:13px!important}
.v146172-admin-skin-copy small{display:block!important;margin-top:2px!important;color:#8fa4a4!important;font-size:9px!important;line-height:1.3!important}
.v146172-admin-skin-switch{display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;justify-self:end!important;position:relative!important}

@media(max-width:420px){
  html body.v111-battle-active .v146169-necro-panel>header{grid-template-columns:29px minmax(0,1fr) auto!important;gap:5px!important}
  html body.v111-battle-active .v146172-necro-head-copy>b{font-size:10px!important}
  html body.v111-battle-active .v146169-necro-guide{grid-template-columns:58px minmax(0,1fr)!important;gap:5px!important;padding:5px 6px!important}
  html body.v111-battle-active .v146169-necro-guide>span{font-size:5.6px!important}
  html body.v127-ui.v111-battle-active .v146172-basic-attack{min-width:82px!important;height:40px!important;min-height:40px!important;padding-inline:8px!important}
  html body.v127-ui.v111-battle-active .v146172-basic-attack>b{font-size:7.5px!important}
}

/* ===== css/v146173-necromancer-command-admin-scroll.css ===== */
/* Aldos RPG v1.146.173 — Necromancer roster scroll + admin skin + command lock. No new images. */




html body.v146173-ui .v146173-admin-skin-card{display:grid!important;visibility:visible!important;opacity:1!important;min-height:58px!important;overflow:visible!important;}
html body.v146173-ui #v146168-admin-skin-toggle{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex:0 0 auto!important;}
html body.v146173-ui .v146173-command-locked{opacity:.58!important;filter:saturate(.65)!important;cursor:not-allowed!important;}
html body.v146173-ui .v146169-command-caption small{max-width:60%!important;text-align:right!important;white-space:normal!important;line-height:1.2!important;}

/* ===== css/v146174-necromancer-performance-admin.css ===== */
/* Aldos RPG v1.146.174 — zero-reflow Necromancer battle UX. No new images. */
/* The roster is native Android/WebView scrolling only. No JS touchmove interception. */


/* New puppet card is isolated from every legacy player-card selector. */
html body.v146174-ui.v111-battle-active .v146174-puppet-card{
  position:relative!important;box-sizing:border-box!important;flex:0 0 78px!important;width:100%!important;height:78px!important;min-height:78px!important;max-height:78px!important;
  display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:7px!important;padding:6px!important;overflow:hidden!important;
  border:1px solid rgba(76,225,134,.78)!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(9,43,31,.98),rgba(7,27,25,.99))!important;
  box-shadow:inset 0 0 0 1px rgba(106,255,169,.11),0 1px 5px rgba(0,0,0,.2)!important;contain:layout paint!important;
}
html body.v146174-ui .v146174-puppet-art{width:58px!important;height:64px!important;min-width:58px!important;max-width:58px!important;align-self:center!important;border-radius:9px!important;overflow:hidden!important;background:rgba(2,19,15,.5)!important}
html body.v146174-ui .v146174-puppet-art :where(img,.class-inline-image){display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important;filter:drop-shadow(0 0 4px rgba(63,219,126,.16))!important}
html body.v146174-ui .v146174-puppet-copy{min-width:0!important;display:grid!important;grid-template-rows:28px 23px 15px!important;gap:1px!important;align-content:center!important;overflow:hidden!important}
html body.v146174-ui .v146174-puppet-copy header{min-width:0!important;overflow:hidden!important}
html body.v146174-ui .v146174-puppet-copy h3{margin:0!important;color:#e9fff0!important;font:800 10px/1.05 Arial,sans-serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146174-ui .v146174-puppet-copy header small{display:block!important;margin-top:3px!important;color:#75c997!important;font:700 6px/1 Arial,sans-serif!important;letter-spacing:.055em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146174-ui .v146174-puppet-hp{display:grid!important;grid-template-rows:10px 7px!important;gap:3px!important;min-width:0!important}
html body.v146174-ui .v146174-puppet-hp>span{display:flex!important;align-items:center!important;justify-content:space-between!important;color:#d6eadc!important;font:700 7px/1 Arial,sans-serif!important}.v146174-puppet-hp>span b{color:#ff8693!important}.v146174-puppet-hp>span em{font-style:normal!important}
html body.v146174-ui .v146174-puppet-hp>i{display:block!important;height:7px!important;border-radius:99px!important;overflow:hidden!important;background:rgba(147,174,165,.22)!important}.v146174-puppet-hp>i>u{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#5bdc8a,#a4f099)!important;text-decoration:none!important;transition:width .18s linear!important}
html body.v146174-ui .v146174-puppet-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;min-width:0!important;color:#90b9a1!important;font:700 6px/1 Arial,sans-serif!important;white-space:nowrap!important;overflow:hidden!important}
html body.v146174-ui .v146174-puppet-meta>span{display:flex!important;align-items:center!important;min-width:0!important;gap:3px!important}.v146174-puppet-meta img{width:12px!important;height:12px!important;object-fit:contain!important}.v146174-puppet-meta b{overflow:hidden!important;text-overflow:ellipsis!important;color:#b5eccc!important}
/* Ritual panel stays full-featured, but painting/layout is isolated from the battle. */
body.v146174-ui>.v146169-ritual-overlay{contain:layout paint style!important;transition:none!important;will-change:auto!important}
body.v146174-ui>.v146169-ritual-overlay-scroll{contain:content!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;scroll-behavior:auto!important}
body.v146174-ui .v146166-necro-panel{contain:layout style!important}
body.v146174-ui .v146166-necro-pattern [data-necro-pattern]{contain:layout paint!important}
/* Admin → Players owns the admin-skin switch now. */
.v146174-admin-player-skin{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;margin:8px 0!important;padding:10px 12px!important;border:1px solid rgba(220,187,96,.34)!important;border-radius:12px!important;background:rgba(17,29,31,.72)!important}
.v146174-admin-player-skin>div{min-width:0!important}.v146174-admin-player-skin b{display:block!important;color:#f2e7c8!important;font-size:13px!important}.v146174-admin-player-skin small{display:block!important;margin-top:3px!important;color:#91a3a3!important;font-size:9px!important;line-height:1.3!important}
.v146174-admin-player-skin button{min-width:128px!important;min-height:38px!important;padding:7px 10px!important;border-radius:10px!important}.v146174-admin-player-skin button.active{border-color:rgba(80,225,143,.7)!important;color:#baf3cf!important;background:rgba(35,115,74,.24)!important}
/* Old profile control is intentionally removed from layout. */
body.v146174-ui .v146168-admin-skin-card{display:none!important}
@media(max-width:420px){
 
 html body.v146174-ui .v146174-puppet-card{grid-template-columns:52px minmax(0,1fr)!important;height:74px!important;min-height:74px!important;max-height:74px!important;flex-basis:74px!important;padding:5px!important;gap:6px!important}
 html body.v146174-ui .v146174-puppet-art{width:52px!important;height:62px!important;min-width:52px!important;max-width:52px!important}
 .v146174-admin-player-skin{grid-template-columns:1fr!important}.v146174-admin-player-skin button{width:100%!important}
}
/* Only newly inserted log nodes are created; expensive entry slide animations are disabled on mobile battle. */
html body.v146174-ui.v111-battle-active .v114-log-enter{animation:none!important;transition:none!important}

/* ===== css/v146181-necromancer-auction.css ===== */
/* Aldos RPG v1.146.181 — clean Necromancer + human Froxset auction UI.
   No old v175-v179 composite screen layers are required by this sheet. */
:root{--v181-necro:#90e2d5;--v181-elite:#a889df;--v181-ink:#0b1114;--v181-gold:#d3a85e;--v181-green:#7ebd81;--v181-purple:#7c5d92}
body.v146181-ui .v146181-soul-launcher{display:grid;gap:8px;margin:10px 0 14px}
body.v146181-ui .v146181-open-vault{position:relative;isolation:isolate;width:min(100%,360px);min-height:52px;padding:7px 62px 7px 68px;border:0;background:transparent;color:#eef8f6;text-align:left;cursor:pointer;overflow:hidden}
body.v146181-ui .v146181-open-vault::before{content:"";position:absolute;inset:0;z-index:-1;background:url("../assets/v146181/necromancer/vault_open_button.webp") center/100% 100% no-repeat}
body.v146181-ui .v146181-open-vault span{display:grid;line-height:1.05}body.v146181-ui .v146181-open-vault small{font-size:9px;letter-spacing:.08em;opacity:.72}body.v146181-ui .v146181-open-vault b{font-size:13px;margin-top:3px}body.v146181-ui .v146181-open-vault>em{position:absolute;right:24px;top:50%;transform:translateY(-50%);font-style:normal;font-weight:900;color:#b9eee4}
body.v146181-ui .v146181-soul-launcher>p{margin:0;color:var(--muted,#9da9ae);font-size:11px;line-height:1.35;max-width:520px}

body.v146181-ui .modal.v146181-vault-modal{width:min(780px,96vw);max-height:94dvh;overflow:hidden;padding:0;background:#081014;border:1px solid rgba(118,185,176,.28)}
body.v146181-ui .v146181-vault-shell{position:relative;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;max-height:92dvh;padding:18px 18px 16px;overflow:hidden;background:linear-gradient(180deg,rgba(9,19,22,.96),rgba(7,10,14,.985));border-radius:18px}
body.v146181-ui .v146181-vault-shell::before{content:"";position:absolute;inset:5px;pointer-events:none;opacity:.13;background:url("../assets/v146181/necromancer/vault_panel.webp") center/100% 100% no-repeat}
body.v146181-ui .v146181-vault-shell>*{position:relative;z-index:1}
body.v146181-ui .v146181-vault-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:8px 14px 8px 18px;background:linear-gradient(90deg,rgba(22,40,42,.88),rgba(18,20,29,.82));border:1px solid rgba(118,186,177,.22);border-radius:14px}
body.v146181-ui .v146181-vault-header small,body.v146181-ui .v146181-section-head small{font-size:9px;letter-spacing:.11em;color:#94cfc6}body.v146181-ui .v146181-vault-header h2{font-size:18px;margin:2px 0}body.v146181-ui .v146181-vault-header p{font-size:10px;margin:0;color:#94a5aa}
body.v146181-ui .v146181-prepared{padding:8px 10px 10px;border-radius:14px;background:rgba(10,17,20,.72);border:1px solid rgba(135,178,171,.16)}
body.v146181-ui .v146181-section-head{display:flex;justify-content:space-between;align-items:end;gap:8px;margin:0 3px 8px}body.v146181-ui .v146181-section-head span{display:grid}body.v146181-ui .v146181-section-head b{font-size:12px}body.v146181-ui .v146181-section-head em{font-size:9px;color:#89979d;font-style:normal}
body.v146181-ui .v146181-prepared-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:480px;margin:auto}
body.v146181-ui .v146181-prepared-slot{position:relative;isolation:isolate;display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:0 8px;min-width:0;min-height:72px;padding:8px 12px;border:0;background:transparent;color:#e9f2f1;text-align:left;overflow:hidden}
body.v146181-ui .v146181-prepared-slot::before{content:"";position:absolute;inset:0;z-index:-1;background:url("../assets/v146181/necromancer/prepared_slot.webp") center/100% 100% no-repeat;opacity:.85}body.v146181-ui .v146181-prepared-slot.filled::before{background-image:url("../assets/v146181/necromancer/prepared_slot_selected.webp")}
body.v146181-ui .v146181-prepared-slot:nth-child(5){grid-column:1/-1;width:calc(50% - 5px);justify-self:center}
body.v146181-ui .v146181-prepared-slot>span{grid-row:1/3;width:50px;height:50px;display:grid;place-items:center;overflow:hidden;border-radius:50%;font-size:24px;color:#86cabf}body.v146181-ui .v146181-prepared-slot img{width:100%;height:100%;object-fit:contain}body.v146181-ui .v146181-prepared-slot b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.v146181-ui .v146181-prepared-slot small{font-size:8px;color:#93a2a6}
body.v146181-ui .v146181-catalog{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}
body.v146181-ui .v146181-soul-grid{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 6px 12px 3px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
body.v146181-ui .v146181-soul-card{position:relative;isolation:isolate;display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:8px;min-width:0;min-height:138px;padding:15px 15px 14px;border:0;overflow:hidden}
body.v146181-ui .v146181-soul-card::before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--v181-card);background-size:100% 100%;background-repeat:no-repeat;background-position:center;opacity:.9}
body.v146181-ui .v146181-soul-card.locked{filter:saturate(.45);opacity:.78}.v146181-soul-card.elite{color:#f0eaff}
body.v146181-ui .v146181-soul-art{width:72px;height:82px;display:grid;place-items:center;overflow:hidden}.v146181-soul-art img{width:100%;height:100%;object-fit:contain}.v146181-soul-art img.seal{width:62%;height:62%;opacity:.7}
body.v146181-ui .v146181-soul-copy{display:grid;min-width:0;align-content:center;gap:3px}body.v146181-ui .v146181-soul-copy small{font-size:8px;letter-spacing:.06em;color:#a0b9b6}body.v146181-ui .v146181-soul-copy b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.v146181-ui .v146181-soul-copy em,body.v146181-ui .v146181-soul-copy strong{font-size:9px;font-style:normal}body.v146181-ui .v146181-soul-copy strong{color:#93d6a4}
body.v146181-ui .v146181-soul-progress{height:5px;background:#1c282c;border-radius:99px;overflow:hidden}.v146181-soul-progress i{display:block;height:100%;background:linear-gradient(90deg,#568d85,#8f74b8);border-radius:inherit}
body.v146181-ui .v146181-soul-select{grid-column:1/-1;justify-self:end;min-height:27px;padding:3px 10px;border:1px solid rgba(132,197,187,.32);border-radius:10px;background:#122226;color:#d9f1ed;font-size:9px}.v146181-soul-select.selected{background:#173829;border-color:#72bf8c}
body.v146181-ui .v146181-vault-actions{display:flex;justify-content:center}.v146181-vault-actions button{min-height:38px}

/* Combat puppet: taller, clean, no long imprint labels on the compact card. */
body.v146181-ui .v146181-necro-resource{display:flex;align-items:center;gap:8px;min-height:42px;margin:7px 0;padding:6px 10px;border:1px solid rgba(114,184,173,.24);border-radius:12px;background:rgba(9,20,22,.86)}
body.v146181-ui .v146181-necro-resource>img{width:34px;height:34px;object-fit:contain}.v146181-necro-resource span{display:grid;line-height:1}.v146181-necro-resource small{font-size:8px;color:#86bdb4}.v146181-necro-resource b{font-size:12px;margin-top:3px}.v146181-necro-resource>em{margin-left:auto;font-size:8px;font-style:normal;color:#aab8ba}
body.v146181-ui .v146181-puppet-card{--frame:url("../assets/v146181/necromancer/puppet_card_common.webp");position:relative;isolation:isolate;display:grid;grid-template-columns:86px minmax(0,1fr);min-height:154px;margin:8px 0 12px;padding:15px 16px 15px 14px;border:0;background:transparent;overflow:hidden;cursor:default}
body.v146181-ui .v146181-puppet-card.tier-elite{--frame:url("../assets/v146181/necromancer/puppet_card_elite.webp")}body.v146181-ui .v146181-puppet-card.tier-mythic{--frame:url("../assets/v146181/necromancer/puppet_card_mythic.webp")}body.v146181-ui .v146181-puppet-card::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--frame) center/100% 100% no-repeat;opacity:.9}body.v146181-ui .v146181-puppet-card.owned{cursor:pointer}
body.v146181-ui .v146181-puppet-art{width:82px;height:112px;align-self:center;display:grid;place-items:center;overflow:hidden}.v146181-puppet-art img{width:100%;height:100%;object-fit:contain}
body.v146181-ui .v146181-puppet-copy{display:grid;align-content:center;gap:8px;min-width:0}.v146181-puppet-copy header{display:flex;align-items:center;gap:6px;min-width:0}.v146181-puppet-copy h3{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146181-puppet-copy header i{font-style:normal;color:#8ce4c3;font-size:10px}
body.v146181-ui .v146181-puppet-hp>span{display:flex;justify-content:space-between;font-size:9px}.v146181-puppet-hp>i{display:block;height:6px;margin-top:3px;background:#261416;border-radius:99px;overflow:hidden}.v146181-puppet-hp>i>u{display:block;height:100%;background:#7bba8a;text-decoration:none}
body.v146181-ui .v146181-puppet-skills{display:flex;gap:7px}.v146181-puppet-skills>span{width:33px;height:33px;padding:3px;border:1px solid rgba(178,196,192,.22);border-radius:8px;background:#0a1012}.v146181-puppet-skills img{width:100%;height:100%;object-fit:contain;border-radius:5px}
body.v146181-ui .v146181-corpse-card{position:relative;display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:106px;margin:8px 0;padding:11px 13px;border:1px solid rgba(145,154,158,.22);border-radius:14px;background:linear-gradient(115deg,rgba(44,48,52,.92),rgba(16,20,23,.96));filter:grayscale(.9) saturate(.3);overflow:hidden}.v146181-corpse-card.elite{border-color:rgba(134,104,174,.36)}.v146181-corpse-card.special{opacity:.68}
body.v146181-ui .v146181-corpse-card::after{content:"";position:absolute;inset:0;pointer-events:none;background:url("../assets/v146181/necromancer/corpse_overlay.webp") center/100% 100% no-repeat;opacity:.12}.v146181-corpse-art{width:74px;height:80px;overflow:hidden}.v146181-corpse-art img{width:100%;height:100%;object-fit:contain}.v146181-corpse-card>span{display:grid;gap:2px;min-width:0}.v146181-corpse-card small{display:flex;gap:6px;align-items:center;font-size:7px;color:#adb4b6}.v146181-corpse-card b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146181-corpse-card em{font-size:8px;font-style:normal;color:#9ea7aa}.v146181-corpse-turns{font-size:7px;font-style:normal;padding:2px 5px;border-radius:7px;background:#2e3437;color:#e7eeee}
body.v146181-ui .v146181-corpse-actions{position:relative;z-index:2;display:grid;gap:5px;min-width:112px}.v146181-devour-button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:34px;padding:4px 10px;border:0;border-radius:9px;background:#172226;color:#e5eeee}.v146181-devour-button img{width:24px;height:24px;object-fit:contain}.v146181-devour-button b{font-size:9px}.v146181-imprint-button{min-height:30px;font-size:8px}
body.v146181-ui .modal.v146181-puppet-control-modal{width:min(720px,96vw);max-height:92dvh;overflow:auto}.v146181-puppet-control{display:grid;gap:10px}.v146181-puppet-control>header{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;align-items:center}.v146181-puppet-control-art{width:78px;height:78px}.v146181-puppet-control-art img{width:100%;height:100%;object-fit:contain}.v146181-puppet-control header>span{display:grid;gap:3px}.v146181-puppet-control header small{font-size:8px;color:#9abbb6}.v146181-puppet-control header b{font-size:14px}.v146181-puppet-control header em{font-size:9px;font-style:normal;color:#9ca8ac}.v146181-puppet-help{margin:0;padding:8px 10px;border-radius:10px;background:#10191c;color:#a8b5b8;font-size:10px}
body.v146181-ui .v146181-puppet-skill-grid{display:grid;gap:8px}.v146181-puppet-skill{position:relative;border-radius:12px;overflow:hidden;background:#0d1518}.v146181-puppet-skill-main{width:100%;display:grid;grid-template-columns:62px minmax(0,1fr);gap:9px;padding:9px 10px;border:1px solid rgba(130,164,159,.22);border-radius:12px;background:transparent;color:#e8eeee;text-align:left}.v146181-puppet-skill-main:disabled{opacity:.47}.v146181-puppet-skill-icon{display:grid;place-items:center;gap:2px}.v146181-puppet-skill-icon img{width:50px;height:50px;object-fit:contain}.v146181-puppet-skill-icon i{font-size:7px;font-style:normal}.v146181-puppet-skill-copy{display:grid;gap:3px;min-width:0}.v146181-puppet-skill-copy b{font-size:11px}.v146181-puppet-skill-copy small{font-size:9px;color:#9ca9ad}.v146181-puppet-skill-copy em{font-size:8px;font-style:normal;color:#86c7bc}

/* Human Froxset / Auction. */
body.v146181-ui .v146181-froxset-location{display:grid;grid-template-columns:minmax(100px,28%) minmax(0,1fr);align-items:end;gap:10px;margin:12px 0;padding:12px;border:1px solid rgba(190,155,91,.28);border-radius:16px;background:linear-gradient(120deg,#11140f,#19151b);overflow:hidden}.v146181-froxset-figure{height:190px;display:flex;align-items:flex-end;justify-content:center}.v146181-froxset-figure img{max-width:100%;max-height:100%;object-fit:contain}.v146181-froxset-copy{display:grid;align-content:center;gap:5px;min-width:0}.v146181-froxset-copy small{font-size:8px;color:#cfb778;letter-spacing:.08em}.v146181-froxset-copy h2{font-size:18px;margin:0}.v146181-froxset-copy p{font-size:10px;line-height:1.35;color:#b4aea6;margin:0 0 5px}
body.v146181-ui .v146181-auction-button{position:relative;isolation:isolate;display:inline-grid;place-items:center;min-width:120px;min-height:40px;padding:7px 20px;border:0;background:transparent;color:#f8f2df;cursor:pointer}.v146181-auction-button::before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--v181-btn);background-size:100% 100%;background-position:center;background-repeat:no-repeat}.v146181-auction-button b{font-size:10px;text-shadow:0 1px 3px #000}.v146181-auction-button:disabled{filter:grayscale(.8);opacity:.5}.v146181-auction-button.subtle{opacity:.84}
body.v146181-ui .modal.v146181-auction-modal{width:min(880px,97vw);max-height:94dvh;overflow:hidden;padding:0;background:#121310;border:1px solid rgba(198,156,84,.28)}.v146181-auction-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr);max-height:92dvh;min-height:min(720px,88dvh);overflow:hidden;background:linear-gradient(rgba(14,15,12,.94),rgba(15,11,17,.97)),url("../assets/v146181/auction/auction_hall.webp") center 12%/cover no-repeat;border-radius:17px}.v146181-auction-head{display:grid;grid-template-columns:64px minmax(0,1fr) auto 36px;gap:10px;align-items:center;padding:10px 12px;background:rgba(17,18,14,.93);border-bottom:1px solid rgba(208,164,87,.2)}.v146181-auction-head>img{width:58px;height:58px;border-radius:50%;object-fit:cover}.v146181-auction-head>div{min-width:0}.v146181-auction-head small{font-size:8px;color:#ceb06e}.v146181-auction-head h2{font-size:17px;margin:1px 0}.v146181-auction-head p{font-size:9px;color:#aaa69e;margin:0}.v146181-auction-head>strong{font-size:11px;white-space:nowrap;color:#e3c77d}.v146181-auction-close{min-width:72px;height:34px;padding:0 10px;border:0;background:url("../assets/v146181/auction/close_frame.webp") center/100% 100% no-repeat;cursor:pointer;color:#e7d5b0;font:600 9px/1 system-ui}.v146181-auction-close span{position:relative;z-index:1}
body.v146181-ui .v146181-auction-shell>nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px 10px;background:rgba(10,10,9,.8)}.v146181-auction-tab{position:relative;isolation:isolate;min-height:36px;padding:5px 8px;border:0;background:transparent;color:#cec5b2}.v146181-auction-tab::before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--v181-tab);background-size:100% 100%;background-repeat:no-repeat}.v146181-auction-tab.active{color:#fff7df}.v146181-auction-tab b{font-size:9px}.v146181-auction-tab em{margin-left:5px;font-size:8px;font-style:normal;color:#d9b865}
body.v146181-ui .v146181-auction-page{min-height:0;padding:10px 12px 16px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.v146181-page-intro{margin:0 0 8px;padding:8px 10px;border-radius:10px;background:rgba(17,15,14,.82)}.v146181-page-intro small{font-size:8px;color:#c9ad6b}.v146181-page-intro h3{font-size:14px;margin:2px 0}.v146181-page-intro p{font-size:9px;color:#aaa49a;margin:0}.v146181-auction-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.v146181-auction-toolbar>span{display:flex;gap:6px}.v146181-auction-toolbar>small{font-size:8px;color:#99948d}.v146181-icon-button{display:flex;align-items:center;gap:4px;min-height:34px;padding:3px 8px;border:1px solid rgba(199,158,84,.25);border-radius:9px;background:#171813;color:#dcd2bc}.v146181-icon-button img{width:24px;height:24px;object-fit:contain}.v146181-icon-button b{font-size:8px}
body.v146181-ui .v146181-lot-list{display:grid;gap:9px}.v146181-lot-card{position:relative;isolation:isolate;display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:122px;padding:13px 14px;overflow:hidden}.v146181-lot-card::before,.v146181-appraisal-result::before,.v146181-claim-row::before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--v181-card);background-size:100% 100%;background-repeat:no-repeat;opacity:.92}.v146181-lot-art{width:72px;height:76px;display:grid;place-items:center;overflow:hidden}.v146181-lot-art img{max-width:100%;max-height:100%;object-fit:contain}.v146181-lot-copy{display:grid;gap:3px;min-width:0}.v146181-lot-copy>small{font-size:7px;color:#d1bb80}.v146181-lot-copy>b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146181-lot-copy>p{margin:0;font-size:8px;color:#aaa49b}.v146181-lot-copy>div{display:flex;gap:12px;flex-wrap:wrap;font-size:8px}.v146181-lot-copy footer{display:flex;gap:8px;flex-wrap:wrap;font-size:8px}.v146181-lot-copy footer em{font-style:normal;color:#d5bc7b}
body.v146181-ui .v146181-appraise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v146181-appraise-item{display:grid;grid-template-columns:64px minmax(0,1fr);gap:7px;min-height:88px;padding:8px 10px;border:1px solid rgba(181,148,88,.25);border-radius:12px;background:rgba(19,17,14,.9);color:#eee6d6;text-align:left}.v146181-appraise-item>span{width:60px;height:70px}.v146181-appraise-item img{width:100%;height:100%;object-fit:contain}.v146181-appraise-item>div{display:grid;align-content:center;gap:2px;min-width:0}.v146181-appraise-item small,.v146181-appraise-item em{font-size:8px;font-style:normal}.v146181-appraise-item b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.v146181-ui .v146181-appraisal-result{position:relative;isolation:isolate;min-height:330px;padding:30px 34px}.v146181-appraisal-result>header{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:center}.v146181-appraisal-result>header>span{width:88px;height:100px}.v146181-appraisal-result>header img{width:100%;height:100%;object-fit:contain}.v146181-appraisal-result h3{font-size:15px;margin:2px 0}.v146181-appraisal-result small{font-size:8px;color:#c6a965}.v146181-appraisal-result p{font-size:9px;color:#aaa49a}.v146181-listing-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.v146181-listing-controls label{display:grid;gap:3px;font-size:8px}.v146181-listing-controls select,.v146181-listing-controls input{width:100%;min-height:34px;border:1px solid #57492e;border-radius:8px;background:#13120f;color:#eee4ce;padding:5px}.v146181-listing-controls aside{grid-column:1/-1;padding:8px;border-radius:9px;background:rgba(11,10,9,.72);font-size:8px;color:#aca397}.v146181-listing-controls>div{grid-column:1/-1;display:flex;justify-content:flex-end;gap:6px}
body.v146181-ui .v146181-claim-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v146181-claim-columns section{min-width:0}.v146181-claim-columns h4{font-size:11px;margin:3px 0 6px}.v146181-claim-row{position:relative;isolation:isolate;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:102px;padding:13px;margin-bottom:7px}.v146181-claim-row>span,.v146181-claim-emblem{width:58px;height:64px;object-fit:contain}.v146181-claim-row>span img{width:100%;height:100%;object-fit:contain}.v146181-claim-row>div{display:grid;gap:2px;min-width:0}.v146181-claim-row b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v146181-claim-row small{font-size:7px;color:#aaa296}
body.v146181-ui .modal.v146181-bid-modal{width:min(440px,94vw)}.v146181-bid-box{display:grid;gap:8px;text-align:center}.v146181-bid-box>img{width:64px;height:64px;object-fit:contain;margin:auto}.v146181-bid-box p{margin:0}.v146181-bid-box label{display:grid;gap:3px;font-size:9px}.v146181-bid-box input{min-height:36px;padding:6px;border-radius:8px;border:1px solid #665334;background:#15130f;color:#fff}.v146181-bid-box small{font-size:8px;color:#9e978d}

/* Dungeon handoff, deliberately no two-sided trade UI. */
body.v146181-ui .modal.v146181-dungeon-handoff-modal{width:min(720px,96vw);max-height:92dvh;overflow:auto}.v146181-dungeon-handoff{display:grid;gap:10px}.v146181-dungeon-handoff>header{padding:12px 14px;border:1px solid rgba(170,145,88,.25);border-radius:12px;background:#141512}.v146181-dungeon-handoff header small{font-size:8px;color:#c3a968}.v146181-dungeon-handoff header h3{font-size:15px;margin:2px 0}.v146181-dungeon-handoff header p{font-size:9px;margin:0;color:#aaa49a}.v146181-dungeon-handoff h4{font-size:11px;margin:2px 0 5px}.v146181-handoff-list{display:grid;gap:7px}.v146181-handoff-item{display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:84px;padding:8px 10px;border:1px solid rgba(171,145,88,.22);border-radius:12px;background:#111310}.v146181-handoff-item>span{width:56px;height:62px}.v146181-handoff-item img{width:100%;height:100%;object-fit:contain}.v146181-handoff-item>div{display:grid;gap:2px;min-width:0}.v146181-handoff-item small{font-size:8px;color:#9e998f}.v146181-handoff-item b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v146181-handoff-item>button,.v146181-handoff-actions button{min-height:32px;padding:5px 9px;border:1px solid #655638;border-radius:8px;background:#1b1914;color:#e4dccb;font-size:8px}.v146181-handoff-actions{display:flex!important;gap:5px}.v146181-handoff-actions .primary{background:#22412d;border-color:#547f5a}.v146181-recipient-picker{display:grid;gap:8px}.v146181-recipient-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v146181-recipient-card{min-height:54px;border:1px solid #544a35;border-radius:10px;background:#151510;color:#eee6d4}.v146181-recipient-card b{font-size:9px}

@media (max-width:680px){
 body.v146181-ui .modal.v146181-vault-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.v146181-vault-shell{max-height:100dvh;height:100dvh;border-radius:0;padding:12px 10px 10px}.v146181-vault-header{min-height:58px}.v146181-vault-header p{display:none}.v146181-prepared-grid{gap:6px}.v146181-prepared-slot{min-height:62px;grid-template-columns:44px minmax(0,1fr);padding:7px 10px}.v146181-prepared-slot>span{width:42px;height:42px}.v146181-soul-grid{gap:8px}.v146181-soul-card{grid-template-columns:58px minmax(0,1fr);min-height:116px;padding:12px 12px}.v146181-soul-art{width:56px;height:68px}.v146181-soul-select{padding:2px 7px}
 body.v146181-ui .v146181-corpse-card{grid-template-columns:62px minmax(0,1fr);padding:9px}.v146181-corpse-art{width:58px;height:68px}.v146181-corpse-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;min-width:0}.v146181-devour-button,.v146181-imprint-button{width:100%}
 body.v146181-ui .modal.v146181-auction-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.v146181-auction-shell{height:100dvh;max-height:100dvh;min-height:0;border-radius:0}.v146181-auction-head{grid-template-columns:50px minmax(0,1fr) auto 32px;padding:7px 8px}.v146181-auction-head>img{width:46px;height:46px}.v146181-auction-head p{display:none}.v146181-auction-head>strong{font-size:9px}.v146181-auction-shell>nav{gap:3px;padding:5px 6px}.v146181-auction-tab{padding:4px 3px}.v146181-auction-tab b{font-size:8px}.v146181-auction-page{padding:8px}.v146181-auction-toolbar{align-items:flex-start}.v146181-auction-toolbar>small{display:none}.v146181-lot-card{grid-template-columns:64px minmax(0,1fr);min-height:122px;padding:12px}.v146181-lot-art{width:60px;height:68px}.v146181-lot-card>.v146181-auction-button{grid-column:1/-1;justify-self:stretch;width:100%;min-height:34px}.v146181-appraise-grid{grid-template-columns:1fr}.v146181-appraisal-result{padding:22px 20px}.v146181-listing-controls{grid-template-columns:1fr}.v146181-claim-columns{grid-template-columns:1fr}.v146181-claim-row{grid-template-columns:54px minmax(0,1fr) auto}.v146181-claim-row>.v146181-auction-button{min-width:96px;padding-inline:10px}.v146181-froxset-location{grid-template-columns:100px minmax(0,1fr)}.v146181-froxset-figure{height:160px}.v146181-froxset-copy p{font-size:9px}
}
@media (max-width:430px){body.v146181-ui .v146181-soul-card{grid-template-columns:48px minmax(0,1fr);min-height:108px;padding:10px}.v146181-soul-art{width:48px;height:60px}.v146181-soul-copy b{font-size:10px}.v146181-section-head em{display:none}.v146181-prepared-slot small{display:none}.v146181-froxset-location{grid-template-columns:86px minmax(0,1fr)}.v146181-froxset-figure{height:142px}.v146181-auction-head h2{font-size:15px}.v146181-auction-head small{display:none}.v146181-auction-tab em{display:none}.v146181-handoff-item{grid-template-columns:52px minmax(0,1fr)}.v146181-handoff-item>button,.v146181-handoff-actions{grid-column:1/-1}.v146181-handoff-actions button{flex:1}}

/* v181 summon picker + preserved battle recovery/prohibition styling, migrated off old override files. */
body.v146181-ui .modal.v146181-soul-summon-modal{width:min(620px,95vw);max-height:88dvh;overflow:auto}.v146181-soul-summon{display:grid;gap:9px}.v146181-soul-summon>header small{font-size:8px;color:#8bc7bd}.v146181-soul-summon>header p{font-size:9px;color:#9da8aa;margin:2px 0}.v146181-soul-summon>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v146181-soul-summon-card{display:grid;grid-template-columns:62px minmax(0,1fr);gap:7px;align-items:center;min-height:90px;padding:9px;border:1px solid rgba(126,178,169,.25);border-radius:12px;background:#0d1719;color:#e8efee;text-align:left}.v146181-soul-summon-card.elite{border-color:rgba(153,119,195,.42);background:#151321}.v146181-soul-summon-card:disabled{opacity:.43}.v146181-soul-summon-card>span{width:58px;height:68px}.v146181-soul-summon-card img{width:100%;height:100%;object-fit:contain}.v146181-soul-summon-card>div{display:grid;gap:2px;min-width:0}.v146181-soul-summon-card small{font-size:7px;color:#9db8b3}.v146181-soul-summon-card b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146181-soul-summon-card em{font-size:8px;font-style:normal;color:#8bc8bd}
body.v146181-ui img.v146176-necromancer-full,body.v146181-ui .v146176-necromancer-full img,body.v146181-ui img.v146176-necromancer-face,body.v146181-ui .v146176-necromancer-face img{object-fit:contain!important;transform:none!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;clip-path:none!important}
body.v146181-ui .v146175-puppet-card{overflow:hidden!important;min-width:0!important}body.v146181-ui .v146175-puppet-card :is(b,small,em,span){min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}body.v146181-ui .v101-player-roster .v101-roster-scroll{overflow-y:auto!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
body.v146181-ui .v146176-prohibition{display:flex;align-items:center;gap:10px;margin:8px 16px;padding:10px 12px;border:1px solid rgba(215,91,91,.55);border-radius:14px;background:linear-gradient(145deg,rgba(69,18,26,.94),rgba(12,21,25,.96));color:#f5e8df}.v146176-prohibition>span{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center}.v146176-prohibition>div{min-width:0}.v146176-prohibition small{display:block;font-size:10px;letter-spacing:.12em;color:#d99999}.v146176-prohibition b{display:block;font-size:14px;line-height:1.15}.v146176-prohibition p{margin:3px 0 0;font-size:11px;line-height:1.25;color:#cdbfc0}
body.v146181-ui.v146176-battle-recovery{overflow:auto!important}body.v146181-ui .v146176-render-recovery{min-height:70vh;margin:18px;padding:22px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid rgba(74,204,188,.48);border-radius:22px;background:linear-gradient(180deg,rgba(9,25,29,.98),rgba(5,12,16,.99));color:#f2eee5}.v146176-render-recovery .v146176-recovery-mark{width:58px;height:58px;display:grid;place-items:center;margin-bottom:10px}.v146176-render-recovery small{letter-spacing:.16em;color:#7fd7c8}.v146176-render-recovery h1{font-size:24px;margin:6px 0}.v146176-render-recovery p{max-width:440px;color:#aeb8b8}.v146176-render-recovery code{display:block;max-width:100%;margin:8px 0 18px;padding:8px 10px;white-space:normal;word-break:break-word;color:#d7b4b4;background:rgba(0,0,0,.28);border-radius:8px}.v146176-render-recovery>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
body.v146181-ui .v146177-puppet-history{margin:5px 7px 8px}.v146177-puppet-history summary{font-size:8px;color:#91bdb6;cursor:pointer}.v146177-puppet-history-body{padding:7px 9px;border-radius:9px;background:rgba(7,12,14,.78);font-size:8px;color:#aeb8b9}.v146177-puppet-history-body p{margin:0 0 5px}.v146177-puppet-history-body dl{display:grid;gap:3px;margin:0}.v146177-puppet-history-body dl>div{display:grid;grid-template-columns:110px 1fr;gap:5px}.v146177-puppet-history-body dt{color:#7f9695}.v146177-puppet-history-body dd{margin:0}
body.v146181-ui .v146181-result-souls{display:grid;gap:5px}.v146181-result-soul{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 9px;border:1px solid rgba(106,172,161,.2);border-radius:9px;background:#10191b}.v146181-result-soul span{display:grid}.v146181-result-soul small{font-size:7px;color:#8fc5bb}.v146181-result-soul b{font-size:10px}.v146181-result-soul strong{font-size:10px;color:#9dd1a7}.v146181-result-handoff{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 12px;border:1px solid rgba(172,145,88,.26);border-radius:12px;background:#141510}.v146181-result-handoff>div{display:grid;gap:2px}.v146181-result-handoff small{font-size:7px;color:#c3a96a}.v146181-result-handoff b{font-size:10px}.v146181-result-handoff p{font-size:8px;color:#aaa49b;margin:0}.v146181-dungeon-handoff-btn{min-height:36px;margin:6px 0;padding:6px 10px;border:1px solid rgba(174,148,92,.38);border-radius:9px;background:#1d1b14;color:#f0e6cf}
@media(max-width:520px){body.v146181-ui .v146176-prohibition{margin:6px 12px;padding:8px 10px}.v146176-prohibition p{font-size:10px}.v146181-soul-summon>div{grid-template-columns:1fr}.v146181-result-handoff{grid-template-columns:1fr}.v146181-result-handoff>button{width:100%}}

/* ===== css/v146182-necromancer-auction-hotfix.css ===== */
/* Aldos RPG v1.146.182 — UI recovery for Froxset auction + Necromancer.
   Reuses existing v181 generated assets; no new images. */

/* Correct AldosUI.modal selector: modalClass is applied to .modal itself, not a descendant .modal-card. */
html body.v146181-ui .modal.v146181-auction-modal,
html body.v146181-ui .modal.v146181-vault-modal,
html body.v146181-ui .modal.v146181-soul-summon-modal,
html body.v146181-ui .modal.v146181-puppet-control-modal{
  box-sizing:border-box!important;
}
html body.v146181-ui :is(.modal.v146181-auction-modal,.modal.v146181-vault-modal,.modal.v146181-soul-summon-modal,.modal.v146181-puppet-control-modal)>.modal-close{
  position:absolute!important;top:8px!important;right:8px!important;z-index:80!important;
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;margin:0!important;
  display:grid!important;place-items:center!important;border:1px solid rgba(215,177,102,.55)!important;border-radius:10px!important;
  background:rgba(7,18,20,.94)!important;color:#e8c875!important;font:700 18px/1 Arial,sans-serif!important;
  box-shadow:0 3px 12px rgba(0,0,0,.35)!important;transform:none!important;
}

/* ---------------- FROXSET LOCATION CARD ---------------- */
html body.v146181-ui .v146181-froxset-location{
  position:relative!important;isolation:isolate!important;display:grid!important;
  grid-template-columns:118px minmax(0,1fr)!important;align-items:end!important;gap:14px!important;
  min-height:224px!important;margin:14px 0!important;padding:18px 18px 16px!important;overflow:hidden!important;
  border:2px solid rgba(205,164,87,.70)!important;border-radius:20px!important;
  background:
    linear-gradient(90deg,rgba(7,12,12,.70),rgba(10,14,12,.82) 45%,rgba(15,12,17,.91)),
    url("../assets/v146181/auction/auction_hall.webp") center 45%/cover no-repeat!important;
  box-shadow:inset 0 0 0 3px rgba(15,40,35,.78),0 10px 28px rgba(0,0,0,.30)!important;
}
html body.v146181-ui .v146181-froxset-location::after{
  content:"";position:absolute;inset:8px;z-index:-1;pointer-events:none;border:1px solid rgba(225,190,112,.24);border-radius:14px;
}
html body.v146181-ui .v146181-froxset-figure{height:190px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;background:radial-gradient(circle at 50% 70%,rgba(111,88,47,.20),transparent 64%)!important}
html body.v146181-ui .v146181-froxset-figure img{width:100%!important;height:100%!important;max-width:118px!important;max-height:190px!important;object-fit:contain!important;filter:drop-shadow(0 8px 10px rgba(0,0,0,.45))}
html body.v146181-ui .v146181-froxset-copy{align-self:center!important;gap:6px!important;padding:4px 2px!important}
html body.v146181-ui .v146181-froxset-copy small{font-size:10px!important;color:#d9bd79!important}
html body.v146181-ui .v146181-froxset-copy h2{font-size:26px!important;line-height:1!important;margin:0!important;color:#fff6df!important}
html body.v146181-ui .v146181-froxset-copy p{font-size:13px!important;line-height:1.38!important;color:#c3bdb1!important;margin:2px 0 7px!important}
html body.v146181-ui .v146181-froxset-copy .v146181-auction-button{width:min(100%,340px)!important;min-height:48px!important}

/* ---------------- AUCTION MODAL ---------------- */
html body.v146181-ui .modal.v146181-auction-modal{
  width:min(700px,calc(100vw - 16px))!important;height:min(920px,calc(100dvh - 16px))!important;max-height:calc(100dvh - 16px)!important;
  padding:0!important;overflow:hidden!important;border:2px solid rgba(204,163,85,.66)!important;border-radius:20px!important;
  background:#101310!important;box-shadow:0 22px 70px rgba(0,0,0,.62)!important;
}
html body.v146181-ui .v146181-auction-shell{
  width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;border-radius:18px!important;overflow:hidden!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
  background:linear-gradient(rgba(12,15,12,.93),rgba(15,11,17,.97)),url("../assets/v146181/auction/auction_hall.webp") center/cover no-repeat!important;
}
html body.v146181-ui .v146181-auction-head{
  grid-template-columns:56px minmax(0,1fr) auto!important;gap:10px!important;min-height:78px!important;padding:11px 48px 10px 12px!important;
  background:linear-gradient(90deg,rgba(18,21,15,.98),rgba(20,17,16,.96))!important;border-bottom:1px solid rgba(211,171,91,.34)!important;
}
html body.v146181-ui .v146181-auction-head>img{width:52px!important;height:52px!important;border:1px solid rgba(218,178,96,.48)!important;border-radius:50%!important;object-fit:cover!important;background:#111!important}
html body.v146181-ui .v146181-auction-head small{font-size:9px!important;color:#d1b56f!important}
html body.v146181-ui .v146181-auction-head h2{font-size:21px!important;line-height:1.05!important;margin:1px 0!important;color:#fff7e4!important}
html body.v146181-ui .v146181-auction-head p{font-size:10px!important;line-height:1.25!important;color:#aaa49a!important;margin:2px 0 0!important}
html body.v146181-ui .v146181-auction-head>strong{font-size:12px!important;color:#e7ca7e!important;white-space:nowrap!important}
html body.v146181-ui .v146181-auction-close{display:none!important}
html body.v146181-ui .v146181-auction-shell>nav{gap:7px!important;padding:8px 10px!important;background:rgba(7,9,8,.88)!important}
html body.v146181-ui .v146181-auction-tab{min-width:0!important;min-height:50px!important;padding:6px 4px!important;overflow:hidden!important}
html body.v146181-ui .v146181-auction-tab::before{background-size:100% 100%!important;opacity:.86!important}
html body.v146181-ui .v146181-auction-tab b{display:block!important;font-size:11px!important;line-height:1.1!important;white-space:normal!important;word-break:normal!important}
html body.v146181-ui .v146181-auction-page{padding:12px 12px 20px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
html body.v146181-ui .v146181-page-intro{padding:10px 12px!important;margin-bottom:10px!important;border:1px solid rgba(205,165,89,.20)!important;background:rgba(17,16,13,.88)!important}
html body.v146181-ui .v146181-page-intro h3{font-size:17px!important;margin:2px 0!important}.v146181-page-intro p{font-size:11px!important;line-height:1.35!important}

/* Appraisal inventory: two readable mini-cards, never narrow text strips. */
html body.v146181-ui .v146181-appraise-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
html body.v146181-ui .v146181-appraise-item{
  position:relative!important;isolation:isolate!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:100px auto!important;align-content:start!important;gap:7px!important;
  min-width:0!important;min-height:196px!important;padding:14px 12px 15px!important;overflow:hidden!important;
  border:1px solid rgba(201,165,94,.48)!important;border-radius:16px!important;
  background:linear-gradient(155deg,rgba(25,29,26,.98),rgba(17,20,22,.98))!important;color:#f2ecdf!important;text-align:left!important;
  box-shadow:inset 0 0 0 2px rgba(64,83,73,.30),0 5px 16px rgba(0,0,0,.24)!important;transform:none!important;
}
html body.v146181-ui .v146181-appraise-item::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("../assets/v146181/auction/card_fixed.webp") center/100% 100% no-repeat;opacity:.16;
}
html body.v146181-ui .v146181-appraise-item.rarity-uncommon{border-color:rgba(81,174,111,.65)!important}.v146181-appraise-item.rarity-rare{border-color:rgba(75,145,208,.65)!important}.v146181-appraise-item.rarity-epic{border-color:rgba(156,102,205,.68)!important}
html body.v146181-ui .v146181-appraise-art{width:100%!important;height:100px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:11px!important;background:radial-gradient(circle,rgba(72,87,76,.20),rgba(0,0,0,.08))!important}
html body.v146181-ui .v146181-appraise-art img{width:100%!important;height:100%!important;max-width:112px!important;max-height:96px!important;object-fit:contain!important}
html body.v146181-ui .v146181-appraise-item>div{display:grid!important;align-content:start!important;gap:3px!important;min-width:0!important;padding:0 2px!important}
html body.v146181-ui .v146181-appraise-item small{font-size:10px!important;line-height:1.15!important;color:#c9b981!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146181-ui .v146181-appraise-item b{font-size:14px!important;line-height:1.15!important;white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
html body.v146181-ui .v146181-appraise-item em{font-size:10px!important;line-height:1.25!important;color:#a9c8bd!important;font-style:normal!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v146181-ui .v146181-appraise-item.busy{opacity:.65!important;filter:saturate(.7)!important}

/* Lots/results use stable CSS cards; generated art is only a low-opacity ornament, not geometry. */
html body.v146181-ui .v146181-lot-card{grid-template-columns:82px minmax(0,1fr)!important;gap:10px!important;min-height:132px!important;padding:14px!important;border:1px solid rgba(198,162,91,.40)!important;border-radius:16px!important;background:rgba(19,21,18,.96)!important}
html body.v146181-ui .v146181-lot-card::before{opacity:.10!important}
html body.v146181-ui .v146181-lot-art{width:78px!important;height:86px!important}.v146181-lot-copy>b{font-size:13px!important}.v146181-lot-copy>small,.v146181-lot-copy>p,.v146181-lot-copy>div,.v146181-lot-copy footer{font-size:10px!important}
html body.v146181-ui .v146181-lot-card>.v146181-auction-button{grid-column:1/-1!important;width:100%!important;justify-self:stretch!important;margin-top:2px!important}
html body.v146181-ui .v146181-auction-button{min-height:44px!important;min-width:112px!important;padding:6px 18px!important;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important}
html body.v146181-ui .v146181-auction-button b{font-size:11px!important;line-height:1.1!important;white-space:normal!important;text-align:center!important}
html body.v146181-ui .v146181-auction-page>.empty,
html body.v146181-ui .v146181-lot-list>.empty{min-height:130px!important;margin:10px 2px!important;padding:28px 18px!important;border:1px dashed rgba(198,162,92,.42)!important;border-radius:16px!important;background:linear-gradient(145deg,rgba(28,28,23,.78),rgba(16,16,16,.86))!important;color:#b7b0a5!important;font-size:13px!important;display:grid!important;place-items:center!important}
html body.v146181-ui .v146181-appraisal-result{min-height:0!important;padding:20px!important;border:1px solid rgba(207,170,93,.45)!important;border-radius:18px!important;background:rgba(18,20,17,.96)!important}.v146181-appraisal-result::before{opacity:.10!important}
html body.v146181-ui .v146181-listing-controls{grid-template-columns:1fr 1fr!important;gap:9px!important}.v146181-listing-controls label:first-child{grid-column:1/-1!important}.v146181-listing-controls aside{font-size:9px!important;line-height:1.35!important}.v146181-listing-controls>div{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}

/* ---------------- SOUL VAULT ---------------- */
html body.v146181-ui .v146181-soul-launcher{justify-items:start!important;gap:5px!important;margin:8px 0 12px!important}
html body.v146181-ui .v146181-open-vault{
  width:min(270px,88vw)!important;height:78px!important;min-height:78px!important;padding:9px 58px 8px 64px!important;overflow:hidden!important;
  background:transparent!important;box-shadow:none!important;transform:none!important;
}
html body.v146181-ui .v146181-open-vault::before{inset:0!important;background-size:100% 100%!important;opacity:1!important}
html body.v146181-ui .v146181-open-vault small{font-size:8px!important}.v146181-open-vault b{font-size:12px!important;line-height:1.05!important}.v146181-open-vault>em{right:19px!important;font-size:11px!important}
html body.v146181-ui .v146181-soul-launcher>p{font-size:10px!important;line-height:1.2!important;max-width:300px!important;padding-left:8px!important}

html body.v146181-ui .modal.v146181-vault-modal{
  width:min(680px,calc(100vw - 12px))!important;height:min(875px,calc(100dvh - 12px))!important;max-height:calc(100dvh - 12px)!important;
  padding:0!important;overflow:hidden!important;border:0!important;border-radius:20px!important;background:transparent!important;box-shadow:none!important;
}
html body.v146181-ui .v146181-vault-shell{
  position:relative!important;isolation:isolate!important;width:100%!important;height:100%!important;max-height:none!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:8px!important;
  padding:96px 58px 50px!important;overflow:hidden!important;border-radius:18px!important;background:rgba(5,10,12,.72)!important;
}
html body.v146181-ui .v146181-vault-shell::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-2!important;display:block!important;opacity:1!important;pointer-events:none!important;
  background:url("../assets/v146181/necromancer/vault_panel.webp") center/100% 100% no-repeat!important;
}
html body.v146181-ui .v146181-vault-shell::after{content:"";position:absolute;inset:72px 42px 39px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(7,17,19,.82),rgba(7,10,13,.92));border-radius:12px}
html body.v146181-ui .v146181-vault-header{min-height:58px!important;padding:8px 12px!important;border:1px solid rgba(105,177,164,.25)!important;background:rgba(8,21,23,.86)!important;border-radius:12px!important}.v146181-vault-header h2{font-size:18px!important}.v146181-vault-header p{font-size:9px!important}
html body.v146181-ui .v146181-prepared{padding:8px!important;background:rgba(6,15,17,.77)!important;border-color:rgba(103,169,159,.20)!important}.v146181-prepared-grid{gap:7px!important}
html body.v146181-ui .v146181-prepared-slot{min-height:68px!important;padding:8px 10px!important}.v146181-prepared-slot::before{opacity:.34!important;background-size:100% 100%!important}.v146181-prepared-slot.filled::before{opacity:.46!important}
html body.v146181-ui .v146181-catalog{min-height:0!important}.v146181-soul-grid{gap:8px!important;padding:3px 2px 8px!important}
html body.v146181-ui .v146181-soul-card{
  grid-template-columns:60px minmax(0,1fr)!important;gap:7px!important;min-height:110px!important;padding:9px 10px!important;
  border:1px solid rgba(104,154,147,.25)!important;border-radius:12px!important;background:linear-gradient(145deg,rgba(13,24,25,.96),rgba(10,14,17,.97))!important;
}
html body.v146181-ui .v146181-soul-card::before{display:none!important}.v146181-soul-card.elite{border-color:rgba(142,108,184,.42)!important;background:linear-gradient(145deg,rgba(24,20,33,.96),rgba(12,13,19,.98))!important}.v146181-soul-card.locked{opacity:.62!important}
html body.v146181-ui .v146181-soul-art{width:58px!important;height:66px!important}.v146181-soul-copy b{font-size:11px!important}.v146181-soul-copy small{font-size:7px!important}.v146181-soul-copy em,.v146181-soul-copy strong{font-size:8px!important}.v146181-soul-select{min-height:28px!important}
html body.v146181-ui .v146181-vault-actions button{width:100%!important;min-height:40px!important;border-radius:10px!important}

/* ---------------- SUMMON PICKER ---------------- */
html body.v146181-ui .modal.v146181-soul-summon-modal{
  width:min(560px,calc(100vw - 16px))!important;max-height:min(760px,calc(100dvh - 18px))!important;padding:14px!important;overflow:auto!important;
  border:1px solid rgba(101,176,164,.42)!important;border-radius:18px!important;background:linear-gradient(180deg,#071316,#081014)!important;box-shadow:0 20px 60px rgba(0,0,0,.58)!important;
}
html body.v146181-ui .v146181-soul-summon{gap:10px!important;padding-top:26px!important}
html body.v146181-ui .v146181-soul-summon>header{position:relative!important;min-height:94px!important;padding:14px 40px!important;display:grid!important;align-content:center!important;text-align:center!important;background:url("../assets/v146181/necromancer/vault_header.webp") center/100% 100% no-repeat!important}
html body.v146181-ui .v146181-soul-summon>header small{font-size:8px!important}.v146181-soul-summon>header h2{font-size:19px!important;line-height:1!important;margin:2px 0!important}.v146181-soul-summon>header p{font-size:9px!important;line-height:1.25!important;margin:1px auto 0!important;max-width:360px!important}
html body.v146181-ui .v146181-soul-summon>div{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
html body.v146181-ui .v146181-soul-summon-card{
  position:relative!important;display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;
  min-height:116px!important;padding:10px 12px!important;border:1px solid rgba(98,174,162,.38)!important;border-radius:14px!important;
  background:linear-gradient(135deg,rgba(14,30,31,.97),rgba(10,17,19,.98))!important;color:#edf7f4!important;box-shadow:inset 0 0 0 2px rgba(63,114,106,.12)!important;text-align:left!important;
}
html body.v146181-ui .v146181-soul-summon-card.elite{border-color:rgba(148,109,192,.50)!important;background:linear-gradient(135deg,rgba(28,22,38,.97),rgba(13,13,20,.99))!important}
html body.v146181-ui .v146181-soul-summon-card>span{width:88px!important;height:96px!important;display:grid!important;place-items:center!important;padding:12px!important;background:url("../assets/v146181/necromancer/prepared_slot.webp") center/contain no-repeat!important;overflow:visible!important}
html body.v146181-ui .v146181-soul-summon-card.elite>span{background-image:url("../assets/v146181/necromancer/prepared_slot_selected.webp")!important}
html body.v146181-ui .v146181-soul-summon-card img{width:68px!important;height:72px!important;object-fit:contain!important}.v146181-soul-summon-card>div{gap:4px!important}.v146181-soul-summon-card small{font-size:8px!important}.v146181-soul-summon-card b{font-size:14px!important;line-height:1.1!important}.v146181-soul-summon-card em{font-size:10px!important;line-height:1.2!important}

/* ---------------- PUPPET IN BATTLE: no generated monster-card background ---------------- */
html body.v146181-ui .v146181-puppet-card,
html body.v146181-ui .v146175-puppet-card.v146181-puppet-card{
  position:relative!important;display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;
  min-width:0!important;min-height:116px!important;margin:5px 4px 8px!important;padding:7px 8px!important;overflow:hidden!important;
  border:1px solid rgba(78,170,135,.42)!important;border-radius:13px!important;background:transparent!important;box-shadow:none!important;color:inherit!important;
}
html body.v146181-ui .v146181-puppet-card::before,
html body.v146181-ui .v146181-puppet-card::after{display:none!important;background:none!important}
html body.v146181-ui .v146181-puppet-art{width:72px!important;height:90px!important;align-self:center!important;background:transparent!important;overflow:visible!important}.v146181-puppet-art img{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 4px 4px rgba(0,0,0,.35))}
html body.v146181-ui .v146181-puppet-copy{gap:6px!important;overflow:hidden!important}.v146181-puppet-copy h3{font-size:11px!important;line-height:1.1!important}.v146181-puppet-hp>span{font-size:8px!important}.v146181-puppet-skills>span{width:28px!important;height:28px!important;padding:2px!important;border-radius:7px!important}

/* Puppet command modal: clean, stable, no stretched ornate monster frame. */
html body.v146181-ui .modal.v146181-puppet-control-modal{
  width:min(620px,calc(100vw - 16px))!important;max-height:calc(100dvh - 18px)!important;padding:14px!important;overflow:auto!important;
  border:1px solid rgba(98,172,158,.40)!important;border-radius:18px!important;background:linear-gradient(180deg,#081316,#091014)!important;box-shadow:0 20px 60px rgba(0,0,0,.58)!important;
}
html body.v146181-ui .v146181-puppet-control{gap:9px!important;padding-top:26px!important}.v146181-puppet-control>header{grid-template-columns:88px minmax(0,1fr)!important;gap:11px!important;padding:9px!important;border:1px solid rgba(95,160,151,.25)!important;border-radius:13px!important;background:rgba(12,25,27,.88)!important}.v146181-puppet-control-art{width:84px!important;height:84px!important;background:transparent!important}.v146181-puppet-control header b{font-size:16px!important;line-height:1.1!important}.v146181-puppet-control header small{font-size:8px!important}.v146181-puppet-control header em{font-size:9px!important}.v146181-puppet-help{padding:8px 10px!important;font-size:9px!important;line-height:1.3!important;background:rgba(13,23,25,.78)!important}
html body.v146181-ui .v146181-puppet-skill-grid{gap:8px!important}.v146181-puppet-skill{overflow:visible!important;border-radius:13px!important;background:transparent!important}.v146181-puppet-skill-main{grid-template-columns:70px minmax(0,1fr)!important;gap:10px!important;min-height:104px!important;padding:10px!important;border:1px solid rgba(113,158,151,.32)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(21,28,31,.97),rgba(13,18,21,.98))!important}.v146181-puppet-skill-icon img{width:58px!important;height:58px!important}.v146181-puppet-skill-icon i{font-size:7px!important}.v146181-puppet-skill-copy{gap:4px!important}.v146181-puppet-skill-copy b{font-size:13px!important;line-height:1.15!important}.v146181-puppet-skill-copy small{font-size:9px!important;line-height:1.3!important}.v146181-puppet-skill-copy em{font-size:9px!important;line-height:1.2!important}.v146177-puppet-history{margin:4px 5px 7px!important}.v146177-puppet-history summary{font-size:9px!important}

@media(max-width:520px){
  html body.v146181-ui .v146181-froxset-location{grid-template-columns:92px minmax(0,1fr)!important;min-height:196px!important;padding:13px!important;gap:9px!important}.v146181-froxset-figure{height:166px!important}.v146181-froxset-figure img{max-width:92px!important;max-height:166px!important}.v146181-froxset-copy h2{font-size:21px!important}.v146181-froxset-copy p{font-size:10px!important}.v146181-froxset-copy small{font-size:8px!important}
  html body.v146181-ui .v146181-auction-head{grid-template-columns:46px minmax(0,1fr) auto!important;padding:8px 44px 8px 8px!important;min-height:66px!important}.v146181-auction-head>img{width:42px!important;height:42px!important}.v146181-auction-head h2{font-size:17px!important}.v146181-auction-head p{display:none!important}.v146181-auction-head>strong{font-size:10px!important}.v146181-auction-shell>nav{gap:4px!important;padding:6px!important}.v146181-auction-tab{min-height:44px!important}.v146181-auction-tab b{font-size:9px!important}
  html body.v146181-ui .v146181-appraise-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.v146181-appraise-item{grid-template-rows:74px auto!important;min-height:166px!important;padding:10px 8px!important}.v146181-appraise-art{height:74px!important}.v146181-appraise-art img{max-width:78px!important;max-height:70px!important}.v146181-appraise-item small{font-size:8px!important}.v146181-appraise-item b{font-size:11px!important}.v146181-appraise-item em{font-size:8px!important}
  html body.v146181-ui .v146181-listing-controls{grid-template-columns:1fr!important}.v146181-listing-controls label:first-child{grid-column:auto!important}.v146181-listing-controls>div{grid-template-columns:1fr!important}
  html body.v146181-ui .v146181-vault-shell{padding:78px 34px 40px!important}.v146181-vault-shell::after{inset:60px 25px 30px!important}.v146181-vault-header p{display:none!important}.v146181-prepared-slot{grid-template-columns:40px minmax(0,1fr)!important;min-height:58px!important;padding:6px 7px!important}.v146181-prepared-slot>span{width:38px!important;height:38px!important}.v146181-prepared-slot b{font-size:9px!important}.v146181-prepared-slot small{display:none!important}.v146181-soul-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.v146181-soul-card{grid-template-columns:42px minmax(0,1fr)!important;min-height:94px!important;padding:7px!important}.v146181-soul-art{width:40px!important;height:50px!important}.v146181-soul-copy b{font-size:9px!important}.v146181-soul-copy em,.v146181-soul-copy strong{font-size:7px!important}
  html body.v146181-ui .v146181-soul-summon-card{grid-template-columns:78px minmax(0,1fr)!important;min-height:102px!important;padding:8px!important}.v146181-soul-summon-card>span{width:74px!important;height:82px!important;padding:10px!important}.v146181-soul-summon-card img{width:56px!important;height:60px!important}.v146181-soul-summon-card b{font-size:12px!important}.v146181-soul-summon-card em{font-size:9px!important}
}

/* ===== css/v146183-necromancer-ui-polish.css ===== */
/* Aldos RPG v1.146.183 — Necromancer / auction mobile UI polish.
   Uses only already-generated v146181 assets. No gameplay or network-loop changes. */

/* Common modal close button: keep one compact control above ornate skins. */
html body.v146183-ui :is(.modal.v146181-vault-modal,.modal.v146181-soul-summon-modal,.modal.v146181-puppet-control-modal,.modal.v146181-auction-modal)>.modal-close{
  top:9px!important;right:9px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  border-radius:11px!important;z-index:90!important;
}

/* ------------------------------------------------------------
   LOCATION PLAYER ACTION — icon is readable, not a tiny stamp.
------------------------------------------------------------ */
html body.v146183-ui.v134-location-screen .v119-players-panel .v119-location-player{
  grid-template-columns:48px minmax(0,1fr) 38px!important;
}
html body.v146183-ui.v134-location-screen .v119-location-player .v122-player-action{
  width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;
  padding:6px!important;align-self:center!important;transform:translateY(-2px)!important;border-radius:11px!important;
}
html body.v146183-ui.v134-location-screen .v119-location-player .v122-player-action :is(img,svg){width:24px!important;height:24px!important;object-fit:contain!important}

/* ------------------------------------------------------------
   SOUL VAULT LAUNCHER — correct source aspect, one clear title.
------------------------------------------------------------ */
html body.v146183-ui .v146181-soul-launcher{display:grid!important;justify-items:start!important;gap:4px!important;margin:10px 0 14px!important}
html body.v146183-ui .v146181-open-vault{
  width:min(316px,92vw)!important;aspect-ratio:396/148!important;height:auto!important;min-height:0!important;
  padding:0 58px 0 92px!important;display:grid!important;align-items:center!important;overflow:visible!important;
  border:0!important;background:transparent!important;color:#f5f7f4!important;text-align:left!important;
}
html body.v146183-ui .v146181-open-vault::before{
  inset:0!important;background:url("../assets/v146181/necromancer/vault_open_button.webp") center/contain no-repeat!important;opacity:1!important;
}
html body.v146183-ui .v146181-open-vault span{display:block!important;min-width:0!important}
html body.v146183-ui .v146181-open-vault small{display:none!important}
html body.v146183-ui .v146181-open-vault b{display:block!important;margin:0!important;font-size:15px!important;line-height:1.08!important;white-space:normal!important;text-shadow:0 2px 4px #000!important}
html body.v146183-ui .v146181-open-vault>em{right:22px!important;font-size:13px!important;line-height:1!important;color:#d9fff4!important;text-shadow:0 2px 4px #000!important}
html body.v146183-ui .v146181-soul-launcher>p{padding-left:14px!important;margin-top:-8px!important;max-width:300px!important;font-size:9px!important;line-height:1.2!important;opacity:.78!important}

/* ------------------------------------------------------------
   SOUL VAULT — large outer frame, sane inner viewport.
------------------------------------------------------------ */
html body.v146183-ui .modal.v146181-vault-modal{
  width:min(650px,calc(100vw - 10px))!important;height:min(900px,calc(100dvh - 10px))!important;max-height:calc(100dvh - 10px)!important;
  padding:0!important;overflow:hidden!important;border:0!important;border-radius:22px!important;background:transparent!important;box-shadow:none!important;
}
html body.v146183-ui .v146181-vault-shell{
  position:relative!important;isolation:isolate!important;width:100%!important;height:100%!important;max-height:none!important;
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:9px!important;
  padding:86px 56px 54px!important;overflow:hidden!important;border-radius:22px!important;background:rgba(4,9,11,.82)!important;
}
html body.v146183-ui .v146181-vault-shell::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-2!important;display:block!important;pointer-events:none!important;
  background-image:url("../assets/v146181/necromancer/vault_panel.webp")!important;background-position:center top!important;background-size:100% auto!important;background-repeat:no-repeat!important;opacity:1!important;
}
html body.v146183-ui .v146181-vault-shell::after{
  content:""!important;position:absolute!important;inset:70px 42px 40px!important;z-index:-1!important;pointer-events:none!important;
  border-radius:18px!important;background:linear-gradient(180deg,rgba(5,17,19,.90),rgba(5,10,13,.97))!important;
  box-shadow:inset 0 0 0 1px rgba(95,160,150,.16)!important;
}
html body.v146183-ui .v146181-vault-header{
  min-height:60px!important;padding:8px 12px!important;border:1px solid rgba(101,177,164,.26)!important;border-radius:13px!important;background:rgba(6,19,21,.90)!important;
}
html body.v146183-ui .v146181-vault-header h2{font-size:21px!important;line-height:1!important;margin:2px 0!important}
html body.v146183-ui .v146181-vault-header small{font-size:8px!important;letter-spacing:.11em!important}
html body.v146183-ui .v146181-vault-header p{font-size:9px!important;line-height:1.2!important;margin:3px 0 0!important}
html body.v146183-ui .v146181-section-head{min-height:30px!important;gap:8px!important;padding:0 2px!important}
html body.v146183-ui .v146181-section-head small{font-size:7px!important;letter-spacing:.09em!important}
html body.v146183-ui .v146181-section-head b{font-size:11px!important;line-height:1.1!important}
html body.v146183-ui .v146181-section-head em{font-size:8px!important}

/* Prepared souls are actual slots: monster art only, no crushed names. */
html body.v146183-ui .v146181-prepared{padding:8px 8px 10px!important;border-radius:13px!important;background:rgba(5,14,16,.80)!important;border:1px solid rgba(101,169,159,.18)!important}
html body.v146183-ui .v146181-prepared-grid{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:510px!important;margin:5px auto 0!important;
}
html body.v146183-ui .v146181-prepared-slot,
html body.v146183-ui .v146181-prepared-slot:nth-child(5){
  position:relative!important;isolation:isolate!important;width:100%!important;min-width:0!important;min-height:0!important;aspect-ratio:271/301!important;
  grid-column:auto!important;display:grid!important;place-items:center!important;padding:10%!important;border:0!important;background:transparent!important;overflow:visible!important;
}
html body.v146183-ui .v146181-prepared-slot::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;background:url("../assets/v146181/necromancer/prepared_slot.webp") center/contain no-repeat!important;opacity:.98!important;
}
html body.v146183-ui .v146181-prepared-slot.filled::before{background-image:url("../assets/v146181/necromancer/prepared_slot_selected.webp")!important;opacity:1!important}
html body.v146183-ui .v146181-prepared-slot>span{grid-row:auto!important;width:72%!important;height:72%!important;display:grid!important;place-items:center!important;border-radius:0!important;overflow:visible!important;font-size:28px!important;color:#74d7c9!important}
html body.v146183-ui .v146181-prepared-slot img{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 3px 5px rgba(0,0,0,.55))!important}
html body.v146183-ui .v146181-prepared-slot b,
html body.v146183-ui .v146181-prepared-slot small{display:none!important}

/* Permanent catalogue uses the tall soul-card art at its native proportion instead of stretching it horizontally. */
html body.v146183-ui .v146181-catalog{min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
html body.v146183-ui .v146181-soul-grid{
  min-height:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;
  padding:4px 3px 10px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;
}
html body.v146183-ui .v146181-soul-card{
  --v183-ratio:240/453;position:relative!important;isolation:isolate!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(72px,1fr) auto auto!important;
  aspect-ratio:var(--v183-ratio)!important;min-width:0!important;min-height:0!important;padding:18% 12% 13%!important;gap:3px!important;
  border:0!important;border-radius:0!important;background:transparent!important;overflow:hidden!important;color:#edf5f2!important;
}
html body.v146183-ui .v146181-soul-card.elite{--v183-ratio:241/453!important;background:transparent!important}
html body.v146183-ui .v146181-soul-card.locked{--v183-ratio:262/376!important;filter:saturate(.55)!important;opacity:.78!important}
html body.v146183-ui .v146181-soul-card::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:-1!important;background-image:var(--v181-card)!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;opacity:1!important;
}
html body.v146183-ui .v146181-soul-art{width:100%!important;height:auto!important;min-height:72px!important;display:grid!important;place-items:center!important;overflow:visible!important}
html body.v146183-ui .v146181-soul-art img{width:80%!important;height:100%!important;max-height:116px!important;object-fit:contain!important;filter:drop-shadow(0 4px 5px rgba(0,0,0,.5))!important}
html body.v146183-ui .v146181-soul-art img.seal{width:55%!important;height:55%!important;opacity:.72!important}
html body.v146183-ui .v146181-soul-copy{display:grid!important;align-content:end!important;gap:2px!important;min-width:0!important;text-align:center!important}
html body.v146183-ui .v146181-soul-copy small{font-size:6.5px!important;letter-spacing:.05em!important}
html body.v146183-ui .v146181-soul-copy b{font-size:9px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-soul-copy em,html body.v146183-ui .v146181-soul-copy strong{font-size:7px!important;line-height:1!important}
html body.v146183-ui .v146181-soul-progress{height:4px!important;margin-top:2px!important}
html body.v146183-ui .v146181-soul-select{grid-column:auto!important;justify-self:stretch!important;width:100%!important;min-height:25px!important;padding:2px 4px!important;border-radius:8px!important;font-size:7px!important;line-height:1!important}
html body.v146183-ui .v146181-vault-actions{padding-top:1px!important}
html body.v146183-ui .v146181-vault-actions button{
  width:min(100%,420px)!important;min-height:42px!important;margin:auto!important;border:1px solid rgba(90,185,150,.42)!important;border-radius:12px!important;
  background:linear-gradient(180deg,#173a31,#102b27)!important;color:#dff8ef!important;box-shadow:inset 0 0 0 1px rgba(146,226,196,.08)!important;font-size:11px!important;
}

/* ------------------------------------------------------------
   SUMMON SOUL — larger readable header + framed monster art.
------------------------------------------------------------ */
html body.v146183-ui .modal.v146181-soul-summon-modal{
  position:relative!important;isolation:isolate!important;width:min(620px,calc(100vw - 12px))!important;max-height:min(790px,calc(100dvh - 16px))!important;
  padding:18px 18px 20px!important;overflow:auto!important;border:1px solid rgba(91,169,157,.45)!important;border-radius:21px!important;
  background:linear-gradient(180deg,rgba(6,17,20,.98),rgba(5,10,13,.99))!important;box-shadow:0 22px 66px rgba(0,0,0,.62)!important;
}
html body.v146183-ui .modal.v146181-soul-summon-modal::before{
  content:""!important;position:absolute!important;left:10px!important;right:10px!important;top:10px!important;height:178px!important;z-index:-1!important;pointer-events:none!important;
  background:url("../assets/v146181/necromancer/puppet_history_panel.webp") center top/100% auto no-repeat!important;opacity:.22!important;
}
html body.v146183-ui .v146181-soul-summon{display:grid!important;gap:13px!important;padding-top:25px!important}
html body.v146183-ui .v146181-soul-summon>header{
  width:min(100%,500px)!important;min-height:0!important;aspect-ratio:369/142!important;margin:0 auto!important;padding:22px 62px 18px!important;
  display:grid!important;align-content:center!important;text-align:center!important;background:url("../assets/v146181/necromancer/vault_header.webp") center/contain no-repeat!important;
}
html body.v146183-ui .v146181-soul-summon>header small{font-size:8px!important;line-height:1!important;letter-spacing:.10em!important;color:#9cd9cc!important}
html body.v146183-ui .v146181-soul-summon>header h2{font-size:25px!important;line-height:1!important;margin:4px 0!important;text-shadow:0 2px 5px #000!important}
html body.v146183-ui .v146181-soul-summon>header p{max-width:355px!important;margin:0 auto!important;font-size:9px!important;line-height:1.25!important;color:#b3c0be!important}
html body.v146183-ui .v146181-soul-summon>div{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
html body.v146183-ui .v146181-soul-summon-card{
  position:relative!important;display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;
  min-height:126px!important;padding:10px 16px 10px 10px!important;border:1px solid rgba(88,164,152,.38)!important;border-radius:15px!important;
  background:linear-gradient(135deg,rgba(11,29,30,.98),rgba(7,15,18,.98))!important;color:#edf8f4!important;box-shadow:inset 0 0 0 2px rgba(57,113,103,.10)!important;text-align:left!important;
}
html body.v146183-ui .v146181-soul-summon-card.elite{border-color:rgba(146,107,193,.48)!important;background:linear-gradient(135deg,rgba(25,20,35,.98),rgba(10,12,18,.99))!important}
html body.v146183-ui .v146181-soul-summon-card>span{
  width:108px!important;height:118px!important;padding:18px!important;display:grid!important;place-items:center!important;overflow:visible!important;
  background:url("../assets/v146181/necromancer/prepared_slot.webp") center/contain no-repeat!important;
}
html body.v146183-ui .v146181-soul-summon-card.elite>span{background-image:url("../assets/v146181/necromancer/prepared_slot_selected.webp")!important}
html body.v146183-ui .v146181-soul-summon-card img{width:76px!important;height:82px!important;object-fit:contain!important;filter:drop-shadow(0 4px 6px rgba(0,0,0,.55))!important}
html body.v146183-ui .v146181-soul-summon-card>div{display:grid!important;gap:4px!important;min-width:0!important}
html body.v146183-ui .v146181-soul-summon-card small{font-size:8px!important;line-height:1!important;letter-spacing:.05em!important;color:#a9cbc4!important}
html body.v146183-ui .v146181-soul-summon-card b{font-size:15px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-soul-summon-card em{font-size:10px!important;line-height:1.2!important;color:#8fd0c3!important}

/* ------------------------------------------------------------
   BATTLE PUPPET — no ornate background; smaller card and readable HP.
------------------------------------------------------------ */
html body.v146183-ui .v146181-puppet-card,
html body.v146183-ui .v146175-puppet-card.v146181-puppet-card{
  display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;
  min-height:84px!important;margin:4px 5px 6px!important;padding:6px 7px!important;border:1px solid rgba(72,164,130,.38)!important;border-radius:11px!important;
  background:rgba(7,19,20,.54)!important;box-shadow:none!important;overflow:hidden!important;
}
html body.v146183-ui .v146181-puppet-card::before,html body.v146183-ui .v146181-puppet-card::after{display:none!important}
html body.v146183-ui .v146181-puppet-art{width:56px!important;height:66px!important;display:grid!important;place-items:center!important;overflow:visible!important;background:transparent!important}
html body.v146183-ui .v146181-puppet-art img{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 3px 4px rgba(0,0,0,.4))!important}
html body.v146183-ui .v146181-puppet-copy{display:grid!important;align-content:center!important;gap:4px!important;min-width:0!important;overflow:visible!important}
html body.v146183-ui .v146181-puppet-copy header{min-width:0!important;gap:4px!important}
html body.v146183-ui .v146181-puppet-copy h3{font-size:10px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-puppet-hp>span{font-size:7.5px!important;line-height:1!important;gap:4px!important}
html body.v146183-ui .v146181-puppet-hp>i{height:6px!important;margin-top:3px!important}
html body.v146183-ui .v146181-puppet-skills{display:flex!important;gap:5px!important}
html body.v146183-ui .v146181-puppet-skills>span{width:24px!important;height:24px!important;padding:2px!important;border-radius:6px!important}

/* ------------------------------------------------------------
   PUPPET CONTROL — compact 2-column command cells.
------------------------------------------------------------ */
html body.v146183-ui .modal.v146181-puppet-control-modal{
  width:min(650px,calc(100vw - 12px))!important;max-height:calc(100dvh - 14px)!important;padding:14px!important;overflow:auto!important;
  border:1px solid rgba(91,166,154,.42)!important;border-radius:20px!important;background:linear-gradient(180deg,#071316,#081014)!important;box-shadow:0 20px 64px rgba(0,0,0,.6)!important;
}
html body.v146183-ui .v146181-puppet-control{display:grid!important;gap:8px!important;padding-top:26px!important}
html body.v146183-ui .v146181-puppet-control>header{
  display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-height:84px!important;padding:8px 10px!important;
  border:1px solid rgba(90,158,148,.30)!important;border-radius:13px!important;background:linear-gradient(135deg,rgba(11,28,30,.94),rgba(8,16,19,.96))!important;
}
html body.v146183-ui .v146181-puppet-control-art{width:72px!important;height:72px!important;display:grid!important;place-items:center!important}
html body.v146183-ui .v146181-puppet-control-art img{width:100%!important;height:100%!important;object-fit:contain!important}
html body.v146183-ui .v146181-puppet-control header>span{display:grid!important;gap:2px!important;min-width:0!important}
html body.v146183-ui .v146181-puppet-control header small{font-size:7px!important;line-height:1.1!important;color:#9bbab4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-puppet-control header b{font-size:15px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-puppet-control header em{font-size:8px!important;line-height:1.15!important;font-style:normal!important;color:#9ca9ad!important}
html body.v146183-ui .v146181-puppet-help{margin:0!important;padding:7px 9px!important;border-radius:10px!important;background:rgba(12,23,25,.72)!important;color:#aab6b7!important;font-size:8px!important;line-height:1.25!important}
html body.v146183-ui .v146181-puppet-skill-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:start!important}
html body.v146183-ui .v146181-puppet-skill{position:relative!important;min-width:0!important;display:grid!important;gap:3px!important;overflow:visible!important;border-radius:12px!important;background:transparent!important}
html body.v146183-ui .v146181-puppet-skill-main{
  position:relative!important;isolation:isolate!important;width:100%!important;min-width:0!important;min-height:82px!important;padding:11px 16px!important;
  display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;
  border:0!important;border-radius:11px!important;background:transparent!important;color:#eaf3f1!important;text-align:left!important;overflow:hidden!important;
}
html body.v146183-ui .v146181-puppet-skill-main::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;background:url("../assets/v146181/necromancer/puppet_skill_panel.webp") center/100% 100% no-repeat!important;opacity:.76!important;
}
html body.v146183-ui .v146181-puppet-skill-main:disabled{opacity:.46!important;filter:saturate(.55)!important}
html body.v146183-ui .v146181-puppet-skill-icon{display:grid!important;place-items:center!important;gap:1px!important}
html body.v146183-ui .v146181-puppet-skill-icon img{width:34px!important;height:34px!important;object-fit:contain!important}
html body.v146183-ui .v146181-puppet-skill-icon i{font-size:6px!important;line-height:1!important;font-style:normal!important;white-space:nowrap!important}
html body.v146183-ui .v146181-puppet-skill-copy{display:grid!important;gap:3px!important;min-width:0!important}
html body.v146183-ui .v146181-puppet-skill-copy b{font-size:10px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-puppet-skill-copy small{display:none!important}
html body.v146183-ui .v146181-puppet-skill-copy em{font-size:7.5px!important;line-height:1.1!important;font-style:normal!important;color:#8fd0c3!important;white-space:normal!important}
html body.v146183-ui .v146177-puppet-history{margin:0 4px!important;border:1px solid rgba(113,150,145,.20)!important;border-radius:8px!important;background:rgba(5,12,14,.70)!important;overflow:hidden!important}
html body.v146183-ui .v146177-puppet-history summary{padding:5px 7px!important;font-size:7.5px!important;line-height:1!important;color:#9bc4bc!important;cursor:pointer!important}
html body.v146183-ui .v146177-puppet-history-body{padding:7px!important;font-size:7.5px!important;line-height:1.25!important}
html body.v146183-ui .v146177-puppet-history-body p{font-size:8px!important;line-height:1.25!important;margin:0 0 5px!important}
html body.v146183-ui .v146177-puppet-history-body dl{display:grid!important;gap:3px!important;margin:0!important}
html body.v146183-ui .v146177-puppet-history-body dl>div{display:grid!important;grid-template-columns:1fr!important;gap:1px!important}
html body.v146183-ui .v146177-puppet-history-body dt,html body.v146183-ui .v146177-puppet-history-body dd{font-size:7px!important;line-height:1.15!important;margin:0!important}

/* ------------------------------------------------------------
   BATTLE RESULT SOULS — subordinate, compact information block.
------------------------------------------------------------ */
html body.v146183-ui .v146181-result-souls{padding:10px 12px!important;border-radius:13px!important}
html body.v146183-ui .v146181-result-souls>h3{font-size:18px!important;line-height:1!important;margin:0 0 7px!important}
html body.v146183-ui .v146181-result-soul{min-height:46px!important;padding:7px 9px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;border-radius:10px!important}
html body.v146183-ui .v146181-result-soul span{display:grid!important;gap:2px!important;min-width:0!important}
html body.v146183-ui .v146181-result-soul small{font-size:7px!important;line-height:1!important;letter-spacing:.05em!important}
html body.v146183-ui .v146181-result-soul b{font-size:11px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-result-soul strong{font-size:12px!important;line-height:1!important;white-space:nowrap!important;color:#9bd5bc!important}

/* ------------------------------------------------------------
   AUCTION APPRAISAL — item + rarity + name, nothing else.
------------------------------------------------------------ */
html body.v146183-ui .v146181-page-intro{padding:8px 10px!important;margin-bottom:9px!important}
html body.v146183-ui .v146181-page-intro small{font-size:7px!important}
html body.v146183-ui .v146181-page-intro h3{font-size:15px!important;line-height:1.05!important;margin:2px 0!important}
html body.v146183-ui .v146181-page-intro p{font-size:9px!important;line-height:1.25!important;margin:2px 0 0!important}
html body.v146183-ui .v146181-appraise-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;align-items:start!important}
html body.v146183-ui .v146181-appraise-item{
  position:relative!important;isolation:isolate!important;display:grid!important;grid-template-rows:minmax(86px,1fr) auto!important;gap:4px!important;align-content:stretch!important;
  aspect-ratio:313/440!important;min-width:0!important;min-height:0!important;padding:14% 11% 12%!important;overflow:hidden!important;
  border:0!important;border-radius:0!important;background:transparent!important;color:#f3ecdf!important;text-align:center!important;box-shadow:none!important;
}
html body.v146183-ui .v146181-appraise-item::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;display:block!important;background:url("../assets/v146181/auction/card_appraisal.webp") center/100% 100% no-repeat!important;opacity:1!important;
}
html body.v146183-ui .v146181-appraise-item.rarity-uncommon,html body.v146183-ui .v146181-appraise-item.rarity-rare,html body.v146183-ui .v146181-appraise-item.rarity-epic{border:0!important}
html body.v146183-ui .v146181-appraise-art{width:100%!important;height:100%!important;min-height:86px!important;display:grid!important;place-items:center!important;overflow:visible!important;background:transparent!important}
html body.v146183-ui .v146181-appraise-art img{width:100%!important;height:100%!important;max-width:118px!important;max-height:124px!important;object-fit:contain!important;filter:drop-shadow(0 5px 7px rgba(0,0,0,.55))!important}
html body.v146183-ui .v146181-appraise-item>div{display:grid!important;gap:2px!important;align-content:end!important;min-width:0!important;padding:0 3px!important}
html body.v146183-ui .v146181-appraise-item small{font-size:7.5px!important;line-height:1!important;color:#cdbb85!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146183-ui .v146181-appraise-item b{font-size:11px!important;line-height:1.08!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;text-align:center!important}
html body.v146183-ui .v146181-appraise-item em{display:none!important}
html body.v146183-ui .v146181-appraise-item.busy{opacity:.55!important;filter:saturate(.7)!important}
html body.v146183-ui .v146181-auction-tab b{font-size:clamp(8px,2.5vw,11px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Mobile geometry: preserve asset ratios rather than crushing them. */
@media(max-width:520px){
  html body.v146183-ui.v134-location-screen .v119-players-panel .v119-location-player{grid-template-columns:44px minmax(0,1fr) 36px!important}
  html body.v146183-ui.v134-location-screen .v119-location-player .v122-player-action{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;padding:5px!important}
  html body.v146183-ui.v134-location-screen .v119-location-player .v122-player-action :is(img,svg){width:24px!important;height:24px!important}

  html body.v146183-ui .v146181-open-vault{width:min(304px,92vw)!important;padding-left:88px!important;padding-right:55px!important}
  html body.v146183-ui .v146181-open-vault b{font-size:13px!important}

  html body.v146183-ui .v146181-vault-shell{padding:72px 32px 40px!important}
  html body.v146183-ui .v146181-vault-shell::after{inset:58px 23px 28px!important}
  html body.v146183-ui .v146181-vault-header{min-height:52px!important;padding:7px 9px!important}
  html body.v146183-ui .v146181-vault-header h2{font-size:17px!important}
  html body.v146183-ui .v146181-vault-header p{display:none!important}
  html body.v146183-ui .v146181-prepared-grid{gap:4px!important}
  html body.v146183-ui .v146181-prepared-slot{padding:7%!important}
  html body.v146183-ui .v146181-section-head b{font-size:9px!important}
  html body.v146183-ui .v146181-section-head em{display:none!important}
  html body.v146183-ui .v146181-soul-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  html body.v146183-ui .v146181-soul-card{padding:17% 12% 12%!important}
  html body.v146183-ui .v146181-soul-copy b{font-size:9px!important}
  html body.v146183-ui .v146181-soul-select{font-size:7px!important}

  html body.v146183-ui .modal.v146181-soul-summon-modal{padding:13px 12px 15px!important}
  html body.v146183-ui .v146181-soul-summon{padding-top:28px!important;gap:10px!important}
  html body.v146183-ui .v146181-soul-summon>header{width:100%!important;padding:18px 48px 15px!important}
  html body.v146183-ui .v146181-soul-summon>header h2{font-size:22px!important}
  html body.v146183-ui .v146181-soul-summon>header p{font-size:8px!important;max-width:290px!important}
  html body.v146183-ui .v146181-soul-summon-card{grid-template-columns:94px minmax(0,1fr)!important;min-height:110px!important;padding:8px 11px 8px 7px!important}
  html body.v146183-ui .v146181-soul-summon-card>span{width:92px!important;height:101px!important;padding:15px!important}
  html body.v146183-ui .v146181-soul-summon-card img{width:64px!important;height:68px!important}
  html body.v146183-ui .v146181-soul-summon-card b{font-size:13px!important}

  html body.v146183-ui .modal.v146181-puppet-control-modal{padding:11px!important}
  html body.v146183-ui .v146181-puppet-control>header{grid-template-columns:64px minmax(0,1fr)!important;min-height:74px!important;padding:7px!important}
  html body.v146183-ui .v146181-puppet-control-art{width:62px!important;height:62px!important}
  html body.v146183-ui .v146181-puppet-control header b{font-size:13px!important}
  html body.v146183-ui .v146181-puppet-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
  html body.v146183-ui .v146181-puppet-skill-main{min-height:74px!important;padding:9px 10px!important;grid-template-columns:32px minmax(0,1fr)!important;gap:5px!important}
  html body.v146183-ui .v146181-puppet-skill-icon img{width:29px!important;height:29px!important}
  html body.v146183-ui .v146181-puppet-skill-copy b{font-size:9px!important}
  html body.v146183-ui .v146181-puppet-skill-copy em{font-size:6.5px!important}
  html body.v146183-ui .v146177-puppet-history summary{font-size:7px!important;padding:4px 5px!important}

  html body.v146183-ui .v146181-appraise-grid{gap:7px!important}
  html body.v146183-ui .v146181-appraise-item{padding:14% 10% 11%!important}
  html body.v146183-ui .v146181-appraise-art img{max-width:96px!important;max-height:104px!important}
  html body.v146183-ui .v146181-appraise-item b{font-size:10px!important}
  html body.v146183-ui .v146181-appraise-item small{font-size:7px!important}
  html body.v146183-ui .v146181-result-souls>h3{font-size:16px!important}
}

/* ===== css/v146184-necromancer-auction-rework.css ===== */
/* Aldos RPG v1.146.184 — Necromancer Soul Vault / puppet / Froxset auction rework.
   Existing v146181 art only. No generated images. Mobile first, no network polling. */

/* ---------- sidebar: Soul Vault is a real navigation action ---------- */
html body.v146184-ui .v119-side-nav .v146184-side-vault{
  position:relative;display:grid!important;grid-template-columns:48px minmax(0,1fr) 18px!important;align-items:center!important;
  min-height:58px!important;padding:5px 12px 5px 7px!important;border:1px solid rgba(81,181,154,.25)!important;border-radius:14px!important;
  background:linear-gradient(90deg,rgba(7,35,30,.95),rgba(7,18,20,.96))!important;color:#eaf8f4!important;overflow:hidden!important;
}
html body.v146184-ui .v119-side-nav .v146184-side-vault::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 16% 50%,rgba(49,218,166,.12),transparent 32%)}
html body.v146184-ui .v146184-side-vault-icon{width:46px!important;height:46px!important;display:grid!important;place-items:center!important;z-index:1!important}
html body.v146184-ui .v146184-side-vault-icon img{width:44px!important;height:44px!important;object-fit:contain!important;filter:drop-shadow(0 3px 6px rgba(0,0,0,.55))!important}
html body.v146184-ui .v146184-side-vault>span:nth-child(2){font-size:12px!important;font-weight:800!important;z-index:1!important}
html body.v146184-ui .v146181-soul-launcher{display:none!important}

/* ---------- modal close ---------- */
html body.v146184-ui :is(.modal.v146181-vault-modal,.modal.v146181-soul-summon-modal,.modal.v146181-puppet-control-modal,.modal.v146181-auction-modal,.modal.v146184-appraisal-modal)>.modal-close{
  top:8px!important;right:8px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;z-index:100!important;border-radius:11px!important;
}

/* ---------- Soul Vault: scalable 9-slice outer frame ---------- */
html body.v146184-ui .modal.v146181-vault-modal{
  width:min(620px,calc(100vw - 12px))!important;height:min(880px,calc(100dvh - 12px))!important;max-height:calc(100dvh - 12px)!important;
  padding:0!important;border:0!important;border-radius:18px!important;background:transparent!important;overflow:hidden!important;box-shadow:none!important;
}
html body.v146184-ui .v146181-vault-shell{
  box-sizing:border-box!important;width:100%!important;height:100%!important;max-height:none!important;position:relative!important;isolation:isolate!important;
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:8px!important;padding:48px 43px 42px!important;overflow:hidden!important;
  border:44px solid transparent!important;border-image:url("../assets/v146181/necromancer/vault_panel.webp") 92 68 80 68 fill / 48px 42px 46px 42px stretch!important;
  background:rgba(5,13,15,.94)!important;border-radius:16px!important;
}
html body.v146184-ui .v146181-vault-shell::before,html body.v146184-ui .v146181-vault-shell::after{display:none!important}
html body.v146184-ui .v146181-vault-header{
  min-height:56px!important;padding:8px 12px!important;margin:0!important;border:1px solid rgba(109,180,166,.22)!important;border-radius:13px!important;
  background:linear-gradient(90deg,rgba(7,29,29,.95),rgba(7,16,21,.94))!important;
}
html body.v146184-ui .v146181-vault-header h2{font-size:20px!important;line-height:1.02!important;margin:2px 0!important}
html body.v146184-ui .v146181-vault-header small{font-size:8px!important;letter-spacing:.1em!important}
html body.v146184-ui .v146181-vault-header p{font-size:8px!important;line-height:1.25!important;margin:3px 0 0!important;color:#94aaa8!important}
html body.v146184-ui .v146181-prepared{padding:8px 9px 9px!important;border-radius:13px!important;background:rgba(4,17,19,.84)!important;border:1px solid rgba(102,168,158,.16)!important}
html body.v146184-ui .v146181-section-head{min-height:28px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:5px!important}
html body.v146184-ui .v146181-section-head small{font-size:7px!important;letter-spacing:.09em!important}
html body.v146184-ui .v146181-section-head b{font-size:10px!important;line-height:1.1!important}
html body.v146184-ui .v146181-section-head em{font-size:7px!important;line-height:1.1!important;color:#7f9693!important;max-width:42%!important;text-align:right!important}
html body.v146184-ui .v146181-prepared-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;max-width:none!important;margin:0!important}
html body.v146184-ui .v146181-prepared-slot,html body.v146184-ui .v146181-prepared-slot:nth-child(5){
  width:100%!important;aspect-ratio:271/301!important;min-height:0!important;height:auto!important;grid-column:auto!important;display:grid!important;place-items:center!important;
  padding:10%!important;border:0!important;background:url("../assets/v146181/necromancer/prepared_slot.webp") center/100% 100% no-repeat!important;overflow:hidden!important;
}
html body.v146184-ui .v146181-prepared-slot.filled{background-image:url("../assets/v146181/necromancer/prepared_slot_selected.webp")!important}
html body.v146184-ui .v146181-prepared-slot::before{display:none!important}
html body.v146184-ui .v146181-prepared-slot>span{width:100%!important;height:100%!important;display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;font-size:26px!important;color:#65d7c6!important;overflow:visible!important}
html body.v146184-ui .v146181-prepared-slot img{width:76%!important;height:76%!important;object-fit:contain!important;filter:drop-shadow(0 3px 4px #000)!important}

html body.v146184-ui .v146181-catalog{min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;padding:8px 7px 0!important;border-radius:13px!important;background:rgba(3,12,15,.72)!important;border:1px solid rgba(105,165,156,.12)!important;overflow:hidden!important}
html body.v146184-ui .v146181-soul-grid{
  min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;align-items:start!important;padding:3px 3px 18px!important;
}
html body.v146184-ui .v146181-soul-card{
  --v184-ratio:240/453;position:relative!important;isolation:isolate!important;box-sizing:border-box!important;display:grid!important;
  grid-template-rows:48% minmax(0,1fr) auto!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:2px!important;
  width:100%!important;aspect-ratio:var(--v184-ratio)!important;min-height:0!important;padding:17% 13% 11%!important;border:0!important;background:transparent!important;overflow:hidden!important;
  content-visibility:auto!important;contain:layout paint!important;contain-intrinsic-size:160px 302px!important;
}
html body.v146184-ui .v146181-soul-card.elite{--v184-ratio:241/453}
html body.v146184-ui .v146181-soul-card.locked{--v184-ratio:262/376;opacity:.75!important;filter:saturate(.55)!important}
html body.v146184-ui .v146181-soul-card::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:-1!important;background:var(--v181-card) center/100% 100% no-repeat!important;opacity:1!important}
html body.v146184-ui .v146181-soul-art{width:100%!important;height:100%!important;display:grid!important;place-items:center!important;overflow:visible!important}
html body.v146184-ui .v146181-soul-art img{width:76%!important;height:76%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;filter:drop-shadow(0 4px 5px rgba(0,0,0,.7))!important}
html body.v146184-ui .v146181-soul-art img.seal{width:48%!important;height:48%!important;opacity:.7!important}
html body.v146184-ui .v146181-soul-copy{min-width:0!important;display:grid!important;grid-template-rows:auto auto auto auto!important;align-content:start!important;gap:3px!important;text-align:center!important;padding:0 1px!important}
html body.v146184-ui .v146181-soul-copy small{font-size:6.8px!important;line-height:1!important;letter-spacing:.04em!important;color:#9ec0b9!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-soul-copy b{font-size:9.5px!important;line-height:1.08!important;min-height:20px!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-soul-progress{height:4px!important;border-radius:999px!important;background:#202b2e!important;overflow:hidden!important}
html body.v146184-ui .v146181-soul-progress i{display:block!important;height:100%!important;background:linear-gradient(90deg,#64ceb6,#a28ad3)!important}
html body.v146184-ui .v146181-soul-copy footer{display:flex!important;justify-content:space-between!important;gap:3px!important;font-size:6.8px!important;line-height:1!important}
html body.v146184-ui .v146181-soul-copy footer :is(em,strong){font-size:6.8px!important;font-style:normal!important;white-space:nowrap!important}
html body.v146184-ui .v146181-soul-select{align-self:end!important;justify-self:stretch!important;min-height:24px!important;padding:3px 5px!important;border-radius:7px!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-vault-actions{padding-top:2px!important}
html body.v146184-ui .v146181-vault-actions button{width:100%!important;min-height:36px!important;font-size:10px!important;border-radius:11px!important}

/* ---------- Summon Soul: header and monster card are separate ---------- */
html body.v146184-ui .modal.v146181-soul-summon-modal{
  width:min(590px,calc(100vw - 14px))!important;max-height:84dvh!important;padding:42px 18px 20px!important;overflow:auto!important;
  border:22px solid transparent!important;border-image:url("../assets/v146181/necromancer/vault_panel.webp") 82 64 78 64 fill / 30px stretch!important;
  background:rgba(5,14,16,.96)!important;border-radius:18px!important;box-shadow:0 20px 55px #000!important;
}
html body.v146184-ui .modal.v146181-soul-summon-modal::before{display:none!important}
html body.v146184-ui .v146181-soul-summon{display:grid!important;gap:10px!important;padding:0!important}
html body.v146184-ui .v146181-soul-summon>header{
  width:min(440px,94%)!important;aspect-ratio:369/142!important;justify-self:center!important;display:grid!important;place-content:center!important;padding:20px 56px!important;margin:0!important;
  background:url("../assets/v146181/necromancer/vault_header.webp") center/100% 100% no-repeat!important;text-align:center!important;overflow:hidden!important;
}
html body.v146184-ui .v146181-soul-summon>header small{font-size:6.5px!important;line-height:1!important;letter-spacing:.08em!important;color:#a7c7c2!important}
html body.v146184-ui .v146181-soul-summon>header h2{font-size:19px!important;line-height:1!important;margin:3px 0 0!important;white-space:nowrap!important;text-shadow:0 2px 5px #000!important}
html body.v146184-ui .v146184-summon-lead{font-size:9px!important;line-height:1.35!important;max-width:430px!important;margin:-5px auto 2px!important;padding:0 10px!important;text-align:center!important;color:#a5b5b4!important}
html body.v146184-ui .v146184-summon-list{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
html body.v146184-ui .v146181-soul-summon-card{
  display:grid!important;grid-template-columns:108px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-height:132px!important;padding:10px 13px 10px 8px!important;
  border:1px solid rgba(106,173,162,.27)!important;border-radius:14px!important;background:linear-gradient(120deg,rgba(7,25,25,.96),rgba(8,14,18,.98))!important;color:#ecf4f2!important;text-align:left!important;overflow:hidden!important;
}
html body.v146184-ui .v146184-summon-art-frame{
  width:104px!important;height:116px!important;display:grid!important;place-items:center!important;padding:17px!important;background:url("../assets/v146181/necromancer/prepared_slot_selected.webp") center/100% 100% no-repeat!important;overflow:visible!important;
}
html body.v146184-ui .v146184-summon-art-frame img{width:68px!important;height:73px!important;object-fit:contain!important;filter:drop-shadow(0 4px 5px #000)!important}
html body.v146184-ui .v146181-soul-summon-card>div{display:grid!important;gap:3px!important;min-width:0!important;align-content:center!important}
html body.v146184-ui .v146181-soul-summon-card small{font-size:7px!important;line-height:1!important;letter-spacing:.06em!important;color:#96bbb5!important}
html body.v146184-ui .v146181-soul-summon-card b{font-size:14px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-soul-summon-card p{font-size:8px!important;line-height:1.2!important;margin:1px 0!important;color:#9fadae!important}
html body.v146184-ui .v146181-soul-summon-card em{font-size:9px!important;line-height:1.15!important;font-style:normal!important;color:#7fd3c2!important}

/* ---------- Battle puppet: compact, no ornate background ---------- */
html body.v146184-ui :is(.v146175-puppet-card,.v146181-puppet-card){
  position:relative!important;display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;
  width:100%!important;min-height:92px!important;max-height:108px!important;margin:5px 0 7px!important;padding:7px!important;border:1px solid rgba(83,151,139,.28)!important;border-radius:12px!important;
  background:linear-gradient(130deg,rgba(6,24,23,.96),rgba(8,16,19,.98))!important;overflow:hidden!important;box-shadow:none!important;
}
html body.v146184-ui .v146181-puppet-card::before,html body.v146184-ui .v146181-puppet-card::after{display:none!important}
html body.v146184-ui .v146181-puppet-art{width:64px!important;height:72px!important;display:grid!important;place-items:center!important;border:1px solid rgba(121,156,88,.4)!important;border-radius:10px!important;overflow:hidden!important}
html body.v146184-ui .v146181-puppet-art img{width:90%!important;height:90%!important;object-fit:contain!important}
html body.v146184-ui .v146181-puppet-copy{min-width:0!important;display:grid!important;gap:4px!important}
html body.v146184-ui .v146181-puppet-copy header{display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important}
html body.v146184-ui .v146181-puppet-copy h3{font-size:10px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important}
html body.v146184-ui .v146181-puppet-hp span{display:flex!important;justify-content:space-between!important;gap:5px!important;font-size:7px!important;line-height:1!important}
html body.v146184-ui .v146181-puppet-hp span :is(b,em){font-size:7px!important;font-style:normal!important}
html body.v146184-ui .v146181-puppet-hp>i{display:block!important;height:6px!important;border-radius:999px!important;background:#213033!important;overflow:hidden!important;margin-top:3px!important}
html body.v146184-ui .v146181-puppet-hp>i>u{display:block!important;height:100%!important;background:#7ac993!important;text-decoration:none!important}
html body.v146184-ui .v146181-puppet-skills{display:flex!important;gap:4px!important;height:25px!important}
html body.v146184-ui .v146181-puppet-skills>span{width:24px!important;height:24px!important;display:grid!important;place-items:center!important;border:1px solid rgba(112,158,150,.27)!important;border-radius:7px!important;background:#071214!important}
html body.v146184-ui .v146181-puppet-skills img{width:18px!important;height:18px!important;object-fit:contain!important}

/* ---------- Puppet special picker: one skill per row ---------- */
html body.v146184-ui .modal.v146181-puppet-control-modal{width:min(590px,calc(100vw - 14px))!important;max-height:88dvh!important;padding:44px 15px 16px!important;overflow:auto!important;background:linear-gradient(180deg,#071316,#071013)!important;border:1px solid rgba(81,151,140,.32)!important;border-radius:18px!important}
html body.v146184-ui .v146181-puppet-control{display:grid!important;gap:9px!important;padding:0!important}
html body.v146184-ui .v146181-puppet-control>header{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;min-height:78px!important;padding:7px 9px!important;border:1px solid rgba(100,164,151,.22)!important;border-radius:12px!important;background:rgba(7,24,24,.9)!important}
html body.v146184-ui .v146181-puppet-control-art{width:66px!important;height:66px!important;display:grid!important;place-items:center!important;border:1px solid rgba(119,158,84,.35)!important;border-radius:10px!important}
html body.v146184-ui .v146181-puppet-control-art img{width:88%!important;height:88%!important;object-fit:contain!important}
html body.v146184-ui .v146181-puppet-control header small{font-size:6.8px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-puppet-control header b{font-size:14px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-puppet-control header em{font-size:7.5px!important;line-height:1.15!important;font-style:normal!important}
html body.v146184-ui .v146181-puppet-help{font-size:8px!important;line-height:1.3!important;margin:0!important;padding:7px 9px!important;border-radius:10px!important;background:rgba(8,20,22,.82)!important;color:#a5b7b5!important}
html body.v146184-ui .v146181-puppet-skill-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
html body.v146184-ui .v146181-puppet-skill{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;min-width:0!important}
html body.v146184-ui .v146181-puppet-skill-main{
  box-sizing:border-box!important;width:100%!important;min-height:78px!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;
  padding:10px 18px!important;border:16px solid transparent!important;border-image:url("../assets/v146181/necromancer/puppet_skill_panel.webp") 54 76 54 76 fill / 15px stretch!important;
  background:rgba(6,17,18,.88)!important;color:#edf4f2!important;text-align:left!important;overflow:hidden!important;
}
html body.v146184-ui .v146181-puppet-skill-main:disabled{opacity:.47!important;filter:saturate(.6)!important}
html body.v146184-ui .v146181-puppet-skill-icon{width:44px!important;height:44px!important;display:grid!important;grid-template-rows:32px auto!important;place-items:center!important}
html body.v146184-ui .v146181-puppet-skill-icon img{width:32px!important;height:32px!important;object-fit:contain!important;filter:drop-shadow(0 2px 3px #000)!important}
html body.v146184-ui .v146181-puppet-skill-icon i{font-size:6.5px!important;line-height:1!important;font-style:normal!important;white-space:nowrap!important}
html body.v146184-ui .v146181-puppet-skill-copy{min-width:0!important;display:grid!important;gap:4px!important}
html body.v146184-ui .v146181-puppet-skill-copy b{font-size:11px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-puppet-skill-copy em{font-size:7.5px!important;line-height:1.1!important;font-style:normal!important;color:#77cdbd!important}
html body.v146184-ui .v146177-puppet-history{margin:0 4px!important;border:1px solid rgba(92,146,137,.22)!important;border-radius:10px!important;background:rgba(4,13,15,.84)!important;overflow:hidden!important}
html body.v146184-ui .v146177-puppet-history summary{padding:7px 9px!important;font-size:8px!important;line-height:1!important;font-weight:700!important;color:#98c6bd!important;cursor:pointer!important}
html body.v146184-ui .v146177-puppet-history-body{padding:8px 9px 9px!important}
html body.v146184-ui .v146177-puppet-history-body>p{margin:0 0 7px!important;font-size:8px!important;line-height:1.32!important;color:#c1cdcb!important}
html body.v146184-ui .v146177-puppet-history-body dl{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:0!important}
html body.v146184-ui .v146177-puppet-history-body dl>div{display:grid!important;gap:2px!important;align-content:start!important;min-width:0!important;padding:6px 7px!important;border-radius:8px!important;background:rgba(15,30,31,.75)!important}
html body.v146184-ui .v146177-puppet-history-body dt{font-size:6.3px!important;line-height:1!important;color:#769690!important;text-transform:uppercase!important;letter-spacing:.04em!important}
html body.v146184-ui .v146177-puppet-history-body dd{font-size:7.5px!important;line-height:1.22!important;margin:0!important;color:#d5dfdd!important}

/* ---------- battle result souls ---------- */
html body.v146184-ui .v146181-result-souls{padding:9px 11px!important;border-radius:12px!important}
html body.v146184-ui .v146181-result-souls>h3{font-size:15px!important;line-height:1!important;margin:0 0 6px!important}
html body.v146184-ui .v146181-result-soul{min-height:42px!important;padding:6px 8px!important;border-radius:9px!important}
html body.v146184-ui .v146181-result-soul small{font-size:6.5px!important}.v146181-result-soul b{font-size:9px!important}.v146181-result-soul strong{font-size:10px!important}

/* ---------- Froxset location ---------- */
html body.v146184-ui .v146181-froxset-location{position:relative!important;isolation:isolate!important;grid-template-columns:minmax(95px,31%) minmax(0,1fr)!important;gap:11px!important;padding:13px!important;border:1px solid rgba(205,169,96,.38)!important;background:linear-gradient(rgba(13,14,13,.72),rgba(15,11,16,.82)),url("../assets/v146181/auction/auction_hall.webp") center/cover no-repeat!important}
html body.v146184-ui .v146181-froxset-copy{gap:4px!important;align-content:center!important}
html body.v146184-ui .v146181-froxset-copy h2{font-size:17px!important;line-height:1!important}
html body.v146184-ui .v146181-froxset-copy p{font-size:8.5px!important;line-height:1.3!important;margin:1px 0 4px!important;max-width:330px!important}
html body.v146184-ui .v146181-froxset-copy .v146181-auction-button{min-height:38px!important;width:min(100%,260px)!important;font-size:9px!important}

/* ---------- Auction item picker ---------- */
html body.v146184-ui .v146181-page-intro{padding:7px 9px!important;margin-bottom:7px!important}
html body.v146184-ui .v146181-page-intro p{display:none!important}
html body.v146184-ui .v146181-appraise-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:start!important;padding:0 2px 14px!important}
html body.v146184-ui .v146181-appraise-item{
  position:relative!important;isolation:isolate!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:2px!important;align-items:stretch!important;
  width:100%!important;aspect-ratio:313/440!important;padding:18% 12% 10%!important;border:0!important;border-radius:0!important;background:transparent!important;color:#f7efe2!important;text-align:center!important;overflow:hidden!important;
}
html body.v146184-ui .v146181-appraise-item::before{content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;background:url("../assets/v146181/auction/card_appraisal.webp") center/100% 100% no-repeat!important}
html body.v146184-ui .v146181-appraise-art{min-height:0!important;height:100%!important;display:grid!important;place-items:center!important;overflow:visible!important}
html body.v146184-ui .v146181-appraise-art img{width:82%!important;height:82%!important;max-width:122px!important;max-height:132px!important;object-fit:contain!important;transform:translateY(4%)!important;filter:drop-shadow(0 5px 7px rgba(0,0,0,.55))!important}
html body.v146184-ui .v146181-appraise-item>div{display:grid!important;gap:2px!important;align-content:end!important;min-width:0!important;padding:0 5px!important}
html body.v146184-ui .v146181-appraise-item small{font-size:6.5px!important;line-height:1!important;color:#c7ad75!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146181-appraise-item b{font-size:9.5px!important;line-height:1.08!important;min-height:20px!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
html body.v146184-ui .v146181-appraise-item em{font-size:7px!important;line-height:1!important;font-style:normal!important;color:#d6c27c!important;white-space:nowrap!important}

/* ---------- 3-second local appraisal presentation ---------- */
html body.v146184-ui .modal.v146184-appraisal-modal{width:min(520px,calc(100vw - 18px))!important;max-height:86dvh!important;padding:42px 14px 16px!important;overflow:auto!important;border:1px solid rgba(203,166,92,.38)!important;border-radius:18px!important;background:#14130f!important}
html body.v146184-ui .v146184-appraisal-stage{position:relative!important;isolation:isolate!important;min-height:440px!important;display:grid!important;grid-template-rows:auto minmax(150px,1fr) auto auto!important;gap:10px!important;align-items:center!important;padding:13px!important;overflow:hidden!important;border-radius:14px!important;background:linear-gradient(rgba(16,14,11,.56),rgba(11,10,12,.86)),url("../assets/v146181/auction/auction_hall.webp") center/cover no-repeat!important}
html body.v146184-ui .v146184-appraisal-stage::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(216,176,99,.28),inset 0 0 70px rgba(0,0,0,.7)}
html body.v146184-ui .v146184-appraisal-stage>header{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;width:100%!important;padding:7px 9px!important;border-radius:10px!important;background:rgba(18,17,13,.82)!important}
html body.v146184-ui .v146184-appraisal-stage>header img{width:40px!important;height:40px!important;border-radius:50%!important;object-fit:cover!important}
html body.v146184-ui .v146184-appraisal-stage>header span{display:grid!important;gap:2px!important;min-width:0!important}
html body.v146184-ui .v146184-appraisal-stage>header small{font-size:6.5px!important;letter-spacing:.07em!important;color:#d0b16c!important}
html body.v146184-ui .v146184-appraisal-stage>header b{font-size:11px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146184-ui .v146184-appraisal-item{height:190px!important;display:grid!important;place-items:center!important;animation:v184ItemRise .65s cubic-bezier(.2,.9,.25,1) both!important}
html body.v146184-ui .v146184-appraisal-item img{width:145px!important;height:155px!important;object-fit:contain!important;filter:drop-shadow(0 16px 16px rgba(0,0,0,.65))!important}
html body.v146184-ui .v146184-appraisal-counter{display:grid!important;gap:4px!important;justify-items:center!important;width:min(330px,100%)!important;margin:auto!important;padding:10px 12px!important;border:1px solid rgba(205,169,93,.28)!important;border-radius:11px!important;background:rgba(17,14,11,.88)!important}
html body.v146184-ui .v146184-appraisal-counter small{font-size:7px!important;line-height:1.2!important;color:#b9afa0!important;text-align:center!important}
html body.v146184-ui .v146184-appraisal-counter strong{font-size:18px!important;line-height:1!important;color:#e8c76f!important;font-variant-numeric:tabular-nums!important}
html body.v146184-ui .v146184-appraisal-stamp{position:absolute!important;right:9%;bottom:17%!important;width:100px!important;height:100px!important;object-fit:contain!important;opacity:0!important;transform:scale(1.8) rotate(-18deg)!important;pointer-events:none!important;filter:drop-shadow(0 7px 8px rgba(0,0,0,.65))!important}
html body.v146184-ui .v146184-appraisal-stage.stamped .v146184-appraisal-stamp{animation:v184Stamp .36s cubic-bezier(.2,1.45,.35,1) both!important}
html body.v146184-ui .v146184-appraisal-final{display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:"small button" "price button"!important;gap:2px 10px!important;align-items:center!important;width:min(360px,100%)!important;margin:auto!important;padding:10px 13px!important;border-radius:10px!important;background:linear-gradient(90deg,rgba(38,30,17,.96),rgba(16,16,12,.96))!important;border:1px solid rgba(222,184,104,.38)!important}
html body.v146184-ui .v146184-appraisal-final[hidden]{display:none!important}
html body.v146184-ui .v146184-appraisal-final small{grid-area:small;font-size:6.5px!important;letter-spacing:.08em!important;color:#c6ab6d!important}.v146184-appraisal-final b{grid-area:price;font-size:15px!important;color:#f0d27d!important}.v146184-appraisal-final button{grid-area:button;min-height:36px!important;padding:0 12px!important;border-radius:9px!important;font-size:8px!important}
@keyframes v184ItemRise{from{opacity:0;transform:translateY(24px) scale(.85)}to{opacity:1;transform:none}}
@keyframes v184Stamp{0%{opacity:0;transform:scale(1.8) rotate(-18deg)}65%{opacity:1;transform:scale(.9) rotate(-6deg)}100%{opacity:1;transform:scale(1) rotate(-7deg)}}

/* listing tag + normal inventory detail tag */
html body.v146184-ui .v146184-listing-seal{width:54px!important;height:54px!important;object-fit:contain!important;float:right!important;margin:-4px 0 3px 5px!important}
html body.v146184-ui .v146184-item-auction-tag{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;margin:9px 0!important;padding:8px 10px!important;border:1px solid rgba(204,166,91,.34)!important;border-radius:11px!important;background:linear-gradient(90deg,rgba(39,30,17,.9),rgba(15,17,14,.94))!important}
html body.v146184-ui .v146184-item-auction-tag img{width:46px!important;height:46px!important;object-fit:contain!important}.v146184-item-auction-tag span{display:grid!important;gap:2px!important}.v146184-item-auction-tag small{font-size:6.5px!important;color:#c4a668!important;letter-spacing:.08em!important}.v146184-item-auction-tag b{font-size:12px!important;color:#efd17b!important}.v146184-item-auction-tag em{font-size:7px!important;font-style:normal!important;color:#a9aaa1!important}

@media(max-width:520px){
  html body.v146184-ui .modal.v146181-vault-modal{width:calc(100vw - 6px)!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important}
  html body.v146184-ui .v146181-vault-shell{padding:37px 30px 34px!important;border-width:37px 29px 37px!important;border-image-width:40px 31px 41px 31px!important;gap:6px!important}
  html body.v146184-ui .v146181-vault-header{min-height:48px!important;padding:6px 8px!important}.v146181-vault-header h2{font-size:16px!important}.v146181-vault-header p{display:none!important}
  html body.v146184-ui .v146181-prepared{padding:6px!important}.v146181-section-head{min-height:23px!important;margin-bottom:3px!important}.v146181-section-head em{display:none!important}
  html body.v146184-ui .v146181-prepared-grid{gap:3px!important}.v146181-prepared-slot>span{font-size:20px!important}
  html body.v146184-ui .v146181-catalog{padding:6px 5px 0!important}.v146181-soul-grid{gap:6px!important;padding-inline:1px!important}.v146181-soul-card{padding:16% 12% 10%!important}.v146181-soul-copy b{font-size:8.5px!important}.v146181-soul-copy small{font-size:6px!important}.v146181-soul-select{min-height:22px!important;font-size:6.3px!important}
  html body.v146184-ui .v146181-vault-actions button{min-height:34px!important;font-size:9px!important}

  html body.v146184-ui .modal.v146181-soul-summon-modal{padding:38px 10px 14px!important;border-width:18px!important;border-image-width:24px!important}
  html body.v146184-ui .v146181-soul-summon>header{width:92%!important;padding:17px 45px!important}.v146181-soul-summon>header h2{font-size:17px!important}.v146184-summon-lead{font-size:8px!important}
  html body.v146184-ui .v146181-soul-summon-card{grid-template-columns:94px minmax(0,1fr)!important;min-height:118px!important;padding:8px 10px 8px 6px!important}.v146184-summon-art-frame{width:92px!important;height:104px!important;padding:15px!important}.v146184-summon-art-frame img{width:62px!important;height:67px!important}.v146181-soul-summon-card b{font-size:12px!important}

  html body.v146184-ui :is(.v146175-puppet-card,.v146181-puppet-card){grid-template-columns:60px minmax(0,1fr)!important;min-height:84px!important;max-height:96px!important;padding:6px!important}.v146181-puppet-art{width:56px!important;height:64px!important}.v146181-puppet-copy h3{font-size:9px!important}
  html body.v146184-ui .modal.v146181-puppet-control-modal{padding:40px 9px 12px!important}.v146181-puppet-control>header{grid-template-columns:62px minmax(0,1fr)!important;min-height:70px!important;padding:6px!important}.v146181-puppet-control-art{width:58px!important;height:58px!important}.v146181-puppet-control header b{font-size:12px!important}
  html body.v146184-ui .v146181-puppet-skill-main{min-height:72px!important;padding:8px 14px!important;grid-template-columns:43px minmax(0,1fr)!important;border-width:13px!important;border-image-width:13px!important}.v146181-puppet-skill-icon{width:40px!important;height:40px!important}.v146181-puppet-skill-icon img{width:29px!important;height:29px!important}.v146181-puppet-skill-copy b{font-size:10px!important}.v146177-puppet-history-body dl{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  html body.v146184-ui .v146181-froxset-location{grid-template-columns:102px minmax(0,1fr)!important;padding:10px!important}.v146181-froxset-figure{height:170px!important}.v146181-froxset-copy p{font-size:8px!important}.v146181-froxset-copy .v146181-auction-button{min-height:35px!important}
  html body.v146184-ui .v146181-appraise-grid{gap:6px!important}.v146181-appraise-item{padding:18% 10% 10%!important}.v146181-appraise-art img{max-width:96px!important;max-height:106px!important}.v146181-appraise-item b{font-size:8.5px!important}.v146181-appraise-item small{font-size:6px!important}
  html body.v146184-ui .modal.v146184-appraisal-modal{padding:39px 8px 10px!important}.v146184-appraisal-stage{min-height:390px!important;padding:9px!important}.v146184-appraisal-item{height:165px!important}.v146184-appraisal-item img{width:125px!important;height:135px!important}.v146184-appraisal-stamp{width:86px!important;height:86px!important;right:6%!important;bottom:18%!important}
}

/* ===== css/v146185-stability-recovery.css ===== */
/* Aldos RPG v1.146.185 — stability recovery after v184.
   Existing art only. No new image generation. Mobile-first. */

/* -------------------------------------------------------------------------
   Side panel: Soul Vault uses the normal 2-column menu tile geometry.
   The existing wide vault button art is contained, never stretched to square.
   ------------------------------------------------------------------------- */
html body.v146185-ui .v119-side-nav>.v146185-side-vault{
  height:108px!important;min-height:108px!important;max-height:108px!important;
  display:grid!important;grid-template-columns:1fr!important;grid-template-rows:70px 22px!important;
  place-items:center!important;align-content:center!important;gap:2px!important;padding:7px!important;
  border-radius:18px!important;overflow:hidden!important;
}
html body.v146185-ui .v119-side-nav>.v146185-side-vault .v146185-side-vault-icon{
  grid-column:1!important;grid-row:1!important;width:104px!important;height:58px!important;
  min-width:104px!important;min-height:58px!important;padding:0!important;border:0!important;
  display:grid!important;place-items:center!important;background:transparent!important;overflow:visible!important;
}
html body.v146185-ui .v119-side-nav>.v146185-side-vault .v146185-side-vault-icon img{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
  filter:drop-shadow(0 5px 7px rgba(0,0,0,.48))!important;
}
html body.v146185-ui .v119-side-nav>.v146185-side-vault>span:nth-child(2){
  grid-column:1!important;grid-row:2!important;justify-self:stretch!important;align-self:center!important;
  width:100%!important;text-align:center!important;font-size:9px!important;line-height:1.05!important;font-weight:800!important;
}
html body.v146185-ui .v119-side-nav>.v146185-side-vault .v119-side-arrow{display:none!important}

/* -------------------------------------------------------------------------
   Soul Vault: use the complete authored panel at its original aspect ratio.
   No border-image / no 9-slice stretching. Internal catalogue scrolls.
   ------------------------------------------------------------------------- */
html body.v146185-ui .modal.v146181-vault-modal{
  width:min(96vw,500px)!important;height:auto!important;aspect-ratio:509/654!important;
  max-width:500px!important;max-height:none!important;padding:0!important;margin:auto!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  overflow:visible!important;
}
html body.v146185-ui .modal.v146181-vault-modal>.modal-close{
  top:8px!important;right:7px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;z-index:40!important;
}
html body.v146185-ui .v146181-vault-shell{
  position:relative!important;isolation:isolate!important;box-sizing:border-box!important;width:100%!important;height:100%!important;
  display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:6px!important;
  padding:60px 31px 42px!important;border:0!important;border-image:none!important;border-radius:0!important;overflow:hidden!important;background:transparent!important;
}
html body.v146185-ui .v146181-vault-shell::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:-2!important;pointer-events:none!important;
  background:url("../assets/v146181/necromancer/vault_panel.webp") center/100% 100% no-repeat!important;
}
html body.v146185-ui .v146181-vault-shell::after{
  content:""!important;display:block!important;position:absolute!important;z-index:-1!important;pointer-events:none!important;
  inset:58px 29px 39px!important;border-radius:13px!important;background:linear-gradient(180deg,rgba(4,14,16,.70),rgba(4,11,14,.88))!important;
}
html body.v146185-ui .v146181-vault-header{
  min-height:42px!important;margin:0!important;padding:6px 10px!important;display:grid!important;align-content:center!important;
  border:1px solid rgba(98,178,158,.19)!important;border-radius:11px!important;background:rgba(4,19,20,.77)!important;overflow:hidden!important;
}
html body.v146185-ui .v146181-vault-header small{font-size:7px!important;line-height:1!important;letter-spacing:.10em!important}
html body.v146185-ui .v146181-vault-header h2{margin:2px 0 0!important;font-size:16px!important;line-height:1!important}
html body.v146185-ui .v146181-vault-header p{display:none!important}
html body.v146185-ui .v146181-prepared{
  padding:6px 7px 7px!important;border:1px solid rgba(93,163,151,.16)!important;border-radius:11px!important;background:rgba(3,16,18,.76)!important;overflow:hidden!important;
}
html body.v146185-ui .v146181-section-head{min-height:22px!important;margin:0 0 4px!important;gap:5px!important}
html body.v146185-ui .v146181-section-head small{font-size:6.6px!important;line-height:1!important;letter-spacing:.08em!important}
html body.v146185-ui .v146181-section-head b{font-size:9px!important;line-height:1.05!important}
html body.v146185-ui .v146181-section-head em{display:none!important}
html body.v146185-ui .v146181-prepared-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;margin:0!important}
html body.v146185-ui .v146181-prepared-slot,
html body.v146185-ui .v146181-prepared-slot:nth-child(5){
  width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:271/301!important;grid-column:auto!important;
  padding:10%!important;border:0!important;background:url("../assets/v146181/necromancer/prepared_slot.webp") center/contain no-repeat!important;overflow:hidden!important;
}
html body.v146185-ui .v146181-prepared-slot.filled{background-image:url("../assets/v146181/necromancer/prepared_slot_selected.webp")!important}
html body.v146185-ui .v146181-prepared-slot>span{width:100%!important;height:100%!important;display:grid!important;place-items:center!important;font-size:23px!important}
html body.v146185-ui .v146181-prepared-slot img{width:72%!important;height:72%!important;object-fit:contain!important}

html body.v146185-ui .v146181-catalog{
  min-height:0!important;padding:6px 6px 0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;
  border:1px solid rgba(94,157,149,.14)!important;border-radius:11px!important;background:rgba(3,13,16,.74)!important;overflow:hidden!important;
}
html body.v146185-ui .v146181-soul-grid{
  min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  display:grid!important;grid-template-columns:1fr!important;align-content:start!important;gap:8px!important;padding:3px 2px 14px!important;
  scrollbar-gutter:stable!important;
}
html body.v146185-ui .v146181-soul-card{
  position:relative!important;box-sizing:border-box!important;width:100%!important;min-height:156px!important;height:auto!important;aspect-ratio:auto!important;
  display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;grid-template-rows:1fr!important;gap:8px!important;align-items:center!important;
  padding:7px 8px 7px 5px!important;border:1px solid rgba(95,154,146,.15)!important;border-radius:12px!important;
  background:linear-gradient(100deg,rgba(6,21,22,.96),rgba(6,13,17,.94))!important;overflow:hidden!important;
  content-visibility:auto!important;contain:layout paint!important;contain-intrinsic-size:100% 156px!important;
}
html body.v146185-ui .v146181-soul-card.elite{border-color:rgba(141,93,184,.28)!important;background:linear-gradient(100deg,rgba(13,13,25,.97),rgba(12,8,19,.94))!important}
html body.v146185-ui .v146181-soul-card.locked{opacity:.78!important;filter:none!important}
html body.v146185-ui .v146181-soul-card::before{display:none!important}
html body.v146185-ui .v146185-soul-frame{
  position:relative!important;width:82px!important;height:144px!important;display:grid!important;place-items:center!important;overflow:visible!important;
}
html body.v146185-ui .v146185-soul-frame::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:0!important;background:var(--v185-soul-frame) center/contain no-repeat!important;pointer-events:none!important;
}
html body.v146185-ui .v146185-soul-frame>span{
  position:relative!important;z-index:1!important;width:58px!important;height:66px!important;margin-top:-31px!important;display:grid!important;place-items:center!important;overflow:hidden!important;
}
html body.v146185-ui .v146181-soul-card.locked .v146185-soul-frame>span{margin-top:-4px!important;width:52px!important;height:52px!important}
html body.v146185-ui .v146185-soul-frame img{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 4px 5px rgba(0,0,0,.62))!important}
html body.v146185-ui .v146185-soul-frame img.seal{width:74%!important;height:74%!important;opacity:.75!important}
html body.v146185-ui .v146181-soul-copy{
  min-width:0!important;align-self:stretch!important;display:grid!important;grid-template-rows:auto auto auto auto auto auto!important;align-content:center!important;gap:4px!important;
  text-align:left!important;padding:3px 1px!important;
}
html body.v146185-ui .v146181-soul-copy small{font-size:7px!important;line-height:1!important;letter-spacing:.07em!important;white-space:normal!important;color:#8fb6ad!important}
html body.v146185-ui .v146181-soul-copy b{font-size:12px!important;line-height:1.08!important;min-height:0!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v146185-ui .v146181-soul-copy p{margin:0!important;font-size:7.2px!important;line-height:1.18!important;color:#879995!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
html body.v146185-ui .v146181-soul-progress{height:5px!important;border-radius:999px!important;background:#1a2528!important;overflow:hidden!important}
html body.v146185-ui .v146181-soul-progress i{display:block!important;height:100%!important;background:linear-gradient(90deg,#55bea8,#9a82c8)!important}
html body.v146185-ui .v146181-soul-copy footer{display:flex!important;justify-content:space-between!important;gap:5px!important;font-size:7px!important;line-height:1!important}
html body.v146185-ui .v146181-soul-copy footer :is(em,strong){font-size:7px!important;font-style:normal!important}
html body.v146185-ui .v146181-soul-select{width:100%!important;min-height:27px!important;margin-top:1px!important;padding:4px 7px!important;border-radius:8px!important;font-size:7.5px!important;line-height:1!important}
html body.v146185-ui .v146181-vault-actions{padding:0!important}
html body.v146185-ui .v146181-vault-actions button{width:100%!important;min-height:34px!important;padding:5px 7px!important;font-size:8.5px!important;line-height:1.05!important;border-radius:10px!important}

/* -------------------------------------------------------------------------
   Puppet control: keep one skill per line and avoid the old target-layer path.
   ------------------------------------------------------------------------- */
html body.v146185-ui .modal.v146181-puppet-control-modal{width:min(94vw,500px)!important;max-height:86dvh!important;overflow:auto!important}
html body.v146185-ui .v146181-puppet-skill-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
html body.v146185-ui .v146181-puppet-skill{min-width:0!important}
html body.v146185-ui .v146181-puppet-skill-main{width:100%!important;min-height:64px!important}
html body.v146185-ui .v146177-puppet-history-body{padding:8px 9px!important;font-size:8px!important;line-height:1.28!important}
html body.v146185-ui .v146177-puppet-history-body>p{margin:0 0 7px!important;font-size:8px!important;line-height:1.28!important}
html body.v146185-ui .v146177-puppet-history-body dl{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:0!important}
html body.v146185-ui .v146177-puppet-history-body dl>div{padding:5px 6px!important;border-radius:7px!important;background:rgba(6,19,20,.72)!important}
html body.v146185-ui .v146177-puppet-history-body :is(dt,dd){margin:0!important;font-size:7px!important;line-height:1.18!important}

/* -------------------------------------------------------------------------
   Auction appraisal: failure is readable and retryable. Internal re-renders
   no longer build a modal-history stack, so X closes the current interface.
   ------------------------------------------------------------------------- */
html body.v146185-ui .v146184-appraisal-stage.failed .v146184-appraisal-counter strong{font-size:11px!important;color:#e0ad8d!important}
html body.v146185-ui .v146184-appraisal-stage.failed .v146184-appraisal-final{grid-template-columns:1fr auto!important;grid-template-areas:"small button" "price button"!important}
html body.v146185-ui .v146184-appraisal-stage.failed .v146184-appraisal-final b{font-size:8px!important;line-height:1.2!important;max-width:230px!important;color:#e8c9b3!important}
html body.v146185-ui .v146184-appraisal-stage.failed .v146184-appraisal-final button{min-height:34px!important}

@media (max-width:520px){
  html body.v146185-ui .modal.v146181-vault-modal{width:calc(100vw - 10px)!important;aspect-ratio:509/654!important;height:auto!important;max-height:none!important}
  html body.v146185-ui .v146181-vault-shell{padding:58px 27px 39px!important;gap:5px!important}
  html body.v146185-ui .v146181-vault-shell::after{inset:56px 25px 37px!important}
  html body.v146185-ui .v146181-vault-header{min-height:39px!important;padding:5px 8px!important}
  html body.v146185-ui .v146181-vault-header h2{font-size:15px!important}
  html body.v146185-ui .v146181-prepared{padding:5px!important}
  html body.v146185-ui .v146181-prepared-grid{gap:3px!important}
  html body.v146185-ui .v146181-prepared-slot>span{font-size:19px!important}
  html body.v146185-ui .v146181-catalog{padding:5px 5px 0!important}
  html body.v146185-ui .v146181-soul-grid{gap:6px!important;padding-bottom:10px!important}
  html body.v146185-ui .v146181-soul-card{min-height:142px!important;grid-template-columns:76px minmax(0,1fr)!important;gap:6px!important;padding:5px 6px 5px 3px!important}
  html body.v146185-ui .v146185-soul-frame{width:72px!important;height:130px!important}
  html body.v146185-ui .v146185-soul-frame>span{width:51px!important;height:58px!important;margin-top:-27px!important}
  html body.v146185-ui .v146181-soul-copy b{font-size:10.5px!important}
  html body.v146185-ui .v146181-soul-copy p{font-size:6.7px!important}
  html body.v146185-ui .v146181-soul-select{min-height:25px!important;font-size:7px!important}
  html body.v146185-ui .v146181-vault-actions button{min-height:31px!important;font-size:7.5px!important}
}

/* ===== css/v146186-necromancer-ui-polish.css ===== */
/* Aldos RPG v1.146.186 — Necromancer UI polish.
   Existing art only; no new image generation. Visual-only geometry changes. */

/* Side menu: same 2-column tile geometry as every other navigation action. */
html body.v146186-ui .v119-side-nav>.v146186-side-vault{
  position:relative!important;grid-column:auto!important;min-width:0!important;width:100%!important;
  height:82px!important;min-height:82px!important;max-height:82px!important;
  padding:6px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:56px 16px!important;
  place-items:center!important;gap:1px!important;border-radius:18px!important;text-align:center!important;
  border:1px solid rgba(211,169,75,.28)!important;
  background:radial-gradient(circle at 50% 28%,rgba(76,128,102,.13),transparent 44%),linear-gradient(155deg,rgba(10,35,35,.96),rgba(4,18,22,.99))!important;
  color:#d9d3c9!important;overflow:hidden!important;box-shadow:inset 0 1px rgba(255,255,255,.025),0 7px 16px rgba(0,0,0,.17)!important;
}
html body.v146186-ui .v119-side-nav>.v146186-side-vault .v146186-side-vault-icon{
  width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;margin:0!important;padding:7px!important;
  display:grid!important;place-items:center!important;border-radius:16px!important;
  background:linear-gradient(160deg,rgba(38,72,64,.58),rgba(7,25,28,.88))!important;border:1px solid rgba(215,170,75,.25)!important;overflow:hidden!important;
}
html body.v146186-ui .v119-side-nav>.v146186-side-vault .v146186-side-vault-icon img{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))!important;
}
html body.v146186-ui .v119-side-nav>.v146186-side-vault>span:nth-child(2){
  width:100%!important;min-width:0!important;font-size:8px!important;line-height:1.1!important;font-weight:800!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important;display:block!important;
}
html body.v146186-ui .v119-side-nav>.v146186-side-vault .v119-side-arrow{display:none!important}

/* Summon Soul: title sits a little lower inside its authored header. */
html body.v146186-ui .v146181-soul-summon>header small{display:none!important}
html body.v146186-ui .v146181-soul-summon>header{
  align-content:center!important;padding-top:24px!important;padding-bottom:10px!important;
}
html body.v146186-ui .v146181-soul-summon>header h2{
  margin:0!important;transform:translateY(5px)!important;font-size:22px!important;line-height:1!important;
}
html body.v146186-ui .v146184-summon-lead{margin-top:2px!important}

/* Prepared slots: plus / soul art are visually centered a little lower. */
html body.v146186-ui .v146181-prepared-slot>span{transform:translateY(4px)!important}
html body.v146186-ui .v146181-prepared-slot img{transform:translateY(1px)!important}

/* Soul catalogue: header and 25/15 labels are removed; cards begin immediately. */
html body.v146186-ui .v146181-catalog{
  grid-template-rows:minmax(0,1fr)!important;padding:2px 6px 0!important;
}
html body.v146186-ui .v146181-catalog>.v146181-section-head{display:none!important}
html body.v146186-ui .v146181-soul-grid{
  padding-top:0!important;margin-top:0!important;align-content:start!important;
}

/* Player battle effects: keep badges inside each tile and give tiles breathing room.
   This prevents stack/turn badges from colliding with adjacent icons or card edges. */








@media (max-width:520px){
  html body.v146186-ui .v146181-soul-summon>header{padding-top:22px!important;padding-bottom:8px!important}
  html body.v146186-ui .v146181-soul-summon>header h2{font-size:21px!important;transform:translateY(5px)!important}
  html body.v146186-ui .v146181-prepared-slot>span{transform:translateY(3px)!important}
  html body.v146186-ui .v146181-catalog{padding:1px 5px 0!important}
  html body.v146186-ui .v146181-soul-grid{gap:6px!important;padding-top:0!important}
}

/* ===== css/v146187-necromancer-boss-souls-hotfix.css ===== */
/* v1.146.187 — necromancer boss souls, puppet skill readability, admin folio containment */
html body.v146187-ui .modal.v146181-puppet-control-modal{
  width:min(94vw,520px)!important;max-height:88dvh!important;padding:42px 12px 14px!important;overflow:auto!important;
}
html body.v146187-ui .v146181-puppet-skill-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
html body.v146187-ui .v146181-puppet-skill{overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important}
html body.v146187-ui .v146181-puppet-skill-main{
  position:relative!important;width:min(100%,410px)!important;aspect-ratio:641/258!important;min-height:0!important;margin:0 auto!important;
  display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;
  padding:15px 31px 15px 28px!important;border:0!important;border-radius:13px!important;
  background-color:transparent!important;
  background-image:url("../assets/v146181/necromancer/puppet_history_panel.webp")!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:100% 100%!important;
  box-shadow:none!important;color:#eef4ee!important;text-align:left!important;overflow:hidden!important;
}
html body.v146187-ui .v146181-puppet-skill-main:disabled{opacity:.48!important;filter:saturate(.55)!important}
html body.v146187-ui .v146181-puppet-skill-icon{width:50px!important;height:50px!important;display:grid!important;place-items:center!important;align-self:center!important}
html body.v146187-ui .v146181-puppet-skill-icon img{width:38px!important;height:38px!important;object-fit:contain!important;filter:drop-shadow(0 2px 4px #000)!important}
html body.v146187-ui .v146181-puppet-skill-icon i{font-size:7px!important;line-height:1!important;color:#d9d2bf!important;white-space:nowrap!important}
html body.v146187-ui .v146181-puppet-skill-copy{display:grid!important;gap:5px!important;align-content:center!important;min-width:0!important;padding-right:4px!important}
html body.v146187-ui .v146181-puppet-skill-copy b{font-size:13px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important;color:#f2eee4!important}
html body.v146187-ui .v146181-puppet-skill-copy em{font-size:9px!important;line-height:1.15!important;color:#8ed0bd!important;font-style:normal!important}
html body.v146187-ui .v146177-puppet-history{margin:4px 7px 0!important;border:1px solid rgba(91,142,133,.28)!important;border-radius:11px!important;background:linear-gradient(180deg,rgba(5,17,19,.96),rgba(5,12,15,.96))!important;overflow:hidden!important}
html body.v146187-ui .v146177-puppet-history summary{padding:8px 10px!important;font-size:8px!important;line-height:1!important;font-weight:700!important;color:#9cc9bf!important;cursor:pointer!important}
html body.v146187-ui .v146177-puppet-history-body{padding:9px 10px 10px!important;color:#c4cfcd!important}
html body.v146187-ui .v146177-puppet-history-body>p{margin:0 0 8px!important;font-size:8px!important;line-height:1.35!important}
html body.v146187-ui .v146177-puppet-history-body dl{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0!important}
html body.v146187-ui .v146177-puppet-history-body dl>div{display:grid!important;gap:2px!important;padding:6px 7px!important;border-radius:8px!important;background:rgba(17,34,34,.72)!important;min-width:0!important}
html body.v146187-ui .v146177-puppet-history-body dt{font-size:6.5px!important;line-height:1!important;text-transform:uppercase!important;letter-spacing:.04em!important;color:#78948e!important}
html body.v146187-ui .v146177-puppet-history-body dd{font-size:7.5px!important;line-height:1.2!important;margin:0!important;color:#d7e0de!important;overflow-wrap:anywhere!important}
html body.v146187-ui .v146184-puppet-normalize-note{margin-top:8px!important;padding-top:7px!important;border-top:1px solid rgba(105,147,139,.18)!important;color:#91a39f!important}

/* Great/boss souls use the existing mythic visual family without inventing art. */
html body.v146187-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{
  background-image:url("../assets/v146181/necromancer/puppet_card_mythic.webp")!important;
  background-size:100% 100%!important;background-repeat:no-repeat!important;background-position:center!important;
}
html body.v146187-ui .v146181-soul-summon-card.special{border-color:rgba(177,86,220,.42)!important;box-shadow:inset 0 0 24px rgba(126,42,168,.08)!important}
html body.v146187-ui .v146181-soul-summon-card.special em{color:#d49af1!important}

/* Admin grant catalog: folios stay centered and fully visible. */
html body.v146187-ui .v14628-grant-card.v146187-folio-card img{
  width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;
  object-fit:contain!important;object-position:50% 50%!important;padding:5px!important;box-sizing:border-box!important;
  transform:none!important;inset:auto!important;margin:auto!important;overflow:visible!important;
}
html body.v146187-ui .v14628-grant-card.v146187-folio-card{grid-template-columns:50px minmax(0,1fr)!important;overflow:hidden!important}

/* Mythic relic presentation. */
html body.v146187-ui .rarity-mythic .v146113-item-art img,
html body.v146187-ui .rarity-mythic .v122-item-art img{object-fit:contain!important;object-position:center!important}

@media(max-width:420px){
  html body.v146187-ui .v146181-puppet-skill-main{width:min(100%,360px)!important;aspect-ratio:641/258!important;min-height:0!important;grid-template-columns:46px minmax(0,1fr)!important;padding:13px 25px 13px 23px!important}
  html body.v146187-ui .v146181-puppet-skill-icon{width:42px!important;height:42px!important}
  html body.v146187-ui .v146181-puppet-skill-icon img{width:32px!important;height:32px!important}
  html body.v146187-ui .v146181-puppet-skill-copy b{font-size:11px!important}
  html body.v146187-ui .v146181-puppet-skill-copy em{font-size:8px!important}
  html body.v146187-ui .v146177-puppet-history-body dl{grid-template-columns:1fr 1fr!important}
}

/* ===== css/v146188-necromancer-vault-effects-polish.css ===== */
/* Aldos RPG v1.146.188 — Necromancer prepared-soul authority + battle UI polish.
   Existing images only. No generated artwork. */

/* Side menu: reuse the exact standard v119/v146116 tile and icon frame. */
html body.v146188-ui .v119-side-nav>.v146188-side-vault .v146188-side-vault-icon img{
  display:block!important;width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;
  object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.45))!important;
}

/* Battle puppet card: keep it visually centered in the player roster, slightly left of the v184 placement. */
html body.v146188-ui.v111-battle-active .v101-player-roster .v146175-puppet-card.v146181-puppet-card{
  box-sizing:border-box!important;width:calc(100% - 8px)!important;max-width:calc(100% - 8px)!important;
  margin:5px 8px 7px 0!important;justify-self:start!important;transform:translateX(-2px)!important;
}

/* Restore the classic effect-chip proportions; only add breathing room between effects. */








/* Puppet skill picker: remove the generated skill picture, preserve the exact text column position. */
html body.v146188-ui .v146181-puppet-skill-main{grid-template-columns:54px minmax(0,1fr)!important}
html body.v146188-ui .v146181-puppet-skill-icon.v146188-no-skill-art{
  width:50px!important;height:50px!important;display:grid!important;place-items:end center!important;align-self:center!important;
}
html body.v146188-ui .v146181-puppet-skill-icon.v146188-no-skill-art i{
  display:block!important;margin:0 0 5px!important;font-size:7px!important;line-height:1!important;color:#d9d2bf!important;white-space:nowrap!important;
}
html body.v146188-ui .v146181-puppet-skill-icon.v146188-no-skill-art::before{content:none!important;display:none!important}

@media(max-width:420px){
  html body.v146188-ui .v146181-puppet-skill-main{grid-template-columns:46px minmax(0,1fr)!important}
  html body.v146188-ui .v146181-puppet-skill-icon.v146188-no-skill-art{width:42px!important;height:42px!important}
  html body.v146188-ui .v146181-puppet-skill-icon.v146188-no-skill-art i{margin-bottom:4px!important}
  html body.v146188-ui.v111-battle-active .v101-player-roster .v146175-puppet-card.v146181-puppet-card{width:calc(100% - 6px)!important;max-width:calc(100% - 6px)!important;margin-right:6px!important;transform:translateX(-2px)!important}
}

/* ===== css/v146189-necromancer-combat-effects-recovery.css ===== */
/* v1.146.219: historical battle geometry retired; non-battle soul presentation retained. */
/* Great souls: preserve the authored mythic frame proportions and center the monster inside its circular opening. */
html body.v146189-ui .v146181-soul-card.special{grid-template-columns:102px minmax(0,1fr)!important;min-height:166px!important;gap:8px!important;padding:6px 8px 6px 4px!important}
html body.v146189-ui .v146181-soul-card.special .v146185-soul-frame{width:98px!important;height:154px!important;place-self:center!important;overflow:visible!important}
html body.v146189-ui .v146181-soul-card.special .v146185-soul-frame>span{width:66px!important;height:66px!important;margin-top:-18px!important;border-radius:50%!important;overflow:hidden!important;display:grid!important;place-items:center!important}
html body.v146189-ui .v146181-soul-card.special .v146185-soul-frame>span img{width:94%!important;height:94%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important}
html body.v146189-ui .v146181-soul-card.special .v146181-soul-copy b{font-size:12px!important;line-height:1.08!important}
html body.v146189-ui .v146181-soul-card.special .v146181-soul-copy p{font-size:7px!important;line-height:1.25!important}

@media(max-width:390px){
  
  
  html body.v146189-ui .v146181-soul-card.special{grid-template-columns:92px minmax(0,1fr)!important;min-height:154px!important}
  html body.v146189-ui .v146181-soul-card.special .v146185-soul-frame{width:88px!important;height:142px!important}
  html body.v146189-ui .v146181-soul-card.special .v146185-soul-frame>span{width:60px!important;height:60px!important;margin-top:-17px!important}
}

/* ===== css/v146191-necromancer-helper-support-ui.css ===== */
/* Aldos RPG v1.146.191 — summoned helper/support UI recovery. Existing assets only. */

/* 1) Player effects: return to the compact pre-v189 proportions. The duration/stacks stay over the icon,
      so effect chips do not steal width from the real player card. */








/* Keep the real player card geometry stable even when a puppet + one/two helpers are in the same scroll column. */


/* 2) Auxiliary servant: same visual language and width as the puppet, but it is intentionally not clickable. */
html body.v146191-ui.v111-battle-active .v101-player-roster .v146191-aux-puppet-card{
  cursor:default!important;pointer-events:none!important;opacity:.98!important;
  border-color:rgba(89,160,139,.36)!important;
}
html body.v146191-ui .v146191-aux-puppet-card .v146181-puppet-art img{
  width:92%!important;height:92%!important;max-width:92%!important;max-height:92%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important;
}
html body.v146191-ui .v146191-aux-puppet-card .v146181-puppet-copy header h3{font-size:10px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146191-ui .v146191-auto-mark{
  display:inline-grid!important;place-items:center!important;min-width:28px!important;height:15px!important;padding:0 4px!important;border-radius:6px!important;
  background:rgba(31,91,72,.62)!important;border:1px solid rgba(118,211,176,.28)!important;color:#9fe0c7!important;font:900 6.5px/1 system-ui,sans-serif!important;font-style:normal!important;
}
html body.v146191-ui .v146191-aux-puppet-card .v146191-aux-life span b{color:#87d8bd!important;font-size:7px!important;white-space:nowrap!important}
html body.v146191-ui .v146191-aux-puppet-card .v146191-aux-life>i>u{background:linear-gradient(90deg,#4eb58f,#91d4a8)!important}
html body.v146191-ui .v146191-aux-source{font-size:6.5px!important;line-height:1.1!important;color:#79928d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin-top:3px!important}

/* 3) Great soul in Summon Soul: preserve the authored tall mythic frame and move the boss portrait UP into its circular opening. */
html body.v146191-ui .v146181-soul-summon-card.special{
  grid-template-columns:96px minmax(0,1fr)!important;min-height:144px!important;gap:8px!important;padding:7px 9px 7px 4px!important;align-items:center!important;
}
html body.v146191-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{
  box-sizing:border-box!important;width:91px!important;height:124px!important;min-width:91px!important;min-height:124px!important;place-self:center!important;
  display:grid!important;place-items:center!important;padding:0!important;margin:0!important;overflow:visible!important;
  background-image:url("../assets/v146181/necromancer/puppet_card_mythic.webp")!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
html body.v146191-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{
  width:60px!important;height:60px!important;max-width:60px!important;max-height:60px!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;
  transform:translateY(-15px)!important;filter:drop-shadow(0 3px 5px rgba(0,0,0,.8))!important;
}
html body.v146191-ui .v146181-soul-summon-card.special>div{align-self:center!important;padding-top:0!important}

/* 4) Froxset CTA: the existing appraise button asset must sit in front of the card background, not behind it. */
html body.v146191-ui .v146181-froxset-copy .v146181-auction-button{
  position:relative!important;isolation:isolate!important;overflow:visible!important;z-index:2!important;
  width:min(100%,276px)!important;min-height:48px!important;margin-top:4px!important;padding:8px 28px!important;
  border:0!important;background:transparent!important;box-shadow:none!important;color:#f8efd3!important;
}
html body.v146191-ui .v146181-froxset-copy .v146181-auction-button::before{
  content:""!important;position:absolute!important;inset:0!important;z-index:0!important;pointer-events:none!important;
  background-image:var(--v181-btn)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;opacity:1!important;filter:none!important;
}
html body.v146191-ui .v146181-froxset-copy .v146181-auction-button b{
  position:relative!important;z-index:1!important;font-size:10.5px!important;line-height:1.1!important;color:#f9ebc2!important;text-shadow:0 2px 4px #000!important;
}

@media(max-width:390px){
  html body.v146191-ui .v146181-soul-summon-card.special{grid-template-columns:88px minmax(0,1fr)!important;min-height:134px!important}
  html body.v146191-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{width:84px!important;height:115px!important;min-width:84px!important;min-height:115px!important}
  html body.v146191-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{width:55px!important;height:55px!important;max-width:55px!important;max-height:55px!important;transform:translateY(-14px)!important}
}

/* ===== css/v146192-necromancer-layout-item-bonus-recovery.css ===== */
/* Aldos RPG v1.146.192 — Necromancer roster/effect geometry + auction CTA recovery. Existing assets only. */

/* Player card owns its dimensions. Puppets/helpers are siblings in a vertical scroll column and must never reflow it. */





/* Classic compact effect chips. The row has a fixed height/width and is never scaled by the number of summoned cards. */









/* Main puppet and automatic helper: equal width and deterministic vertical rhythm, no negative offsets. */
html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card){
  box-sizing:border-box!important;display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;
  flex:0 0 88px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:88px!important;min-height:88px!important;max-height:88px!important;
  margin:0!important;padding:7px!important;justify-self:stretch!important;align-self:stretch!important;transform:none!important;overflow:hidden!important;
}
html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-art{
  box-sizing:border-box!important;width:58px!important;min-width:58px!important;max-width:58px!important;height:68px!important;min-height:68px!important;max-height:68px!important;margin:auto!important;display:grid!important;place-items:center!important;overflow:hidden!important;
}
html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-art img{
  display:block!important;width:90%!important;height:90%!important;max-width:90%!important;max-height:90%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important;
}
html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-copy{
  box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;display:grid!important;align-content:center!important;gap:4px!important;overflow:hidden!important;
}
html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-copy header{
  display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;
}
html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-copy h3{
  margin:0!important;font-size:10px!important;line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v146192-ui .v146192-aux-puppet-card{cursor:default!important;pointer-events:none!important}
html body.v146192-ui .v146192-aux-puppet-card .v146192-aux-duration span{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;min-height:13px!important;
}
html body.v146192-ui .v146192-aux-puppet-card .v146192-aux-duration span em{
  color:#b9d9ce!important;font:800 8px/1 system-ui,sans-serif!important;font-style:normal!important;white-space:nowrap!important;
}
html body.v146192-ui .v146191-auto-mark,html body.v146192-ui .v146191-aux-source{display:none!important}

/* Great souls: keep the mythic authored aspect ratio, boss portrait centered high in the round opening. */
html body.v146192-ui .v146181-soul-summon-card.special{
  grid-template-columns:98px minmax(0,1fr)!important;min-height:146px!important;gap:8px!important;padding:7px 9px 7px 4px!important;align-items:center!important;
}
html body.v146192-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{
  box-sizing:border-box!important;width:94px!important;height:128px!important;min-width:94px!important;min-height:128px!important;place-self:center!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:0!important;overflow:visible!important;
  background-image:url("../assets/v146181/necromancer/puppet_card_mythic.webp")!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
html body.v146192-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{
  width:62px!important;height:62px!important;max-width:62px!important;max-height:62px!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:translateY(-16px)!important;
}

/* Froxset CTA: paint the existing authored button directly on the element; no negative pseudo-layer can hide it. */
html body.v146192-ui .v146181-froxset-copy .v146181-auction-button[data-v146181-open-auction]{
  position:relative!important;isolation:isolate!important;box-sizing:border-box!important;width:min(100%,276px)!important;min-height:50px!important;margin-top:5px!important;padding:9px 29px!important;
  border:0!important;border-radius:0!important;background-color:transparent!important;background-image:var(--v181-btn)!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
  box-shadow:none!important;overflow:visible!important;color:#f8efd3!important;
}
html body.v146192-ui .v146181-froxset-copy .v146181-auction-button[data-v146181-open-auction]::before,
html body.v146192-ui .v146181-froxset-copy .v146181-auction-button[data-v146181-open-auction]::after{content:none!important;display:none!important}
html body.v146192-ui .v146181-froxset-copy .v146181-auction-button[data-v146181-open-auction] b{
  position:relative!important;z-index:2!important;color:#f9ebc2!important;font-size:10.5px!important;line-height:1.1!important;text-shadow:0 2px 4px #000!important;
}

@media(max-width:390px){
  
  
  html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card){grid-template-columns:58px minmax(0,1fr)!important;flex-basis:84px!important;height:84px!important;min-height:84px!important;max-height:84px!important;padding:6px!important}
  html body.v146192-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-art{width:54px!important;min-width:54px!important;max-width:54px!important;height:64px!important;min-height:64px!important;max-height:64px!important}
  html body.v146192-ui .v146181-soul-summon-card.special{grid-template-columns:90px minmax(0,1fr)!important;min-height:136px!important}
  html body.v146192-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{width:86px!important;height:118px!important;min-width:86px!important;min-height:118px!important}
  html body.v146192-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{width:56px!important;height:56px!important;max-width:56px!important;max-height:56px!important;transform:translateY(-14px)!important}
}

/* ===== css/v146193-necromancer-visual-auction-duration-recovery.css ===== */
/* Aldos RPG v1.146.193 — visual/auction/duration recovery. Existing assets only; no generated images. */

/* ========================================================================== */
/* 1. PLAYER EFFECTS — EXACT CLASSIC v127 GEOMETRY, INDEPENDENT OF SUMMONS    */
/* ========================================================================== */








/* ========================================================================== */
/* 2. PLAYER / PUPPET / HELPER ROSTER — ONE STABLE VERTICAL STACK            */
/* ========================================================================== */




html body.v146193-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card){
  box-sizing:border-box!important;display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;
  flex:0 0 88px!important;width:100%!important;min-width:0!important;max-width:100%!important;height:88px!important;min-height:88px!important;max-height:88px!important;
  margin:0!important;padding:7px!important;justify-self:stretch!important;align-self:stretch!important;transform:none!important;overflow:hidden!important;
}
html body.v146193-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-art{
  box-sizing:border-box!important;width:54px!important;min-width:54px!important;max-width:54px!important;height:68px!important;min-height:68px!important;max-height:68px!important;
  margin:auto!important;display:grid!important;place-items:center!important;overflow:hidden!important;
}
html body.v146193-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-art img{
  display:block!important;width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;transform:none!important;
}
html body.v146193-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-copy{
  box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;display:grid!important;align-content:center!important;gap:4px!important;overflow:hidden!important;
}
html body.v146193-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-copy header{
  display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;
}
html body.v146193-ui.v111-battle-active .v101-player-roster :is(.v146175-puppet-card,.v146181-puppet-card) .v146181-puppet-copy h3{
  margin:0!important;font-size:9.5px!important;line-height:1.08!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
}
html body.v146193-ui .v146193-aux-puppet-card{cursor:default!important;pointer-events:none!important}
html body.v146193-ui .v146193-aux-puppet-card .v146191-auto-mark,
html body.v146193-ui .v146193-aux-puppet-card .v146191-aux-source{display:none!important}
html body.v146193-ui .v146193-aux-puppet-card .v146192-aux-duration{
  display:grid!important;grid-template-rows:14px 4px!important;gap:3px!important;min-width:0!important;margin:0!important;padding:0!important;
}
html body.v146193-ui .v146193-aux-puppet-card .v146192-aux-duration>span{
  display:flex!important;justify-content:flex-start!important;align-items:center!important;min-height:14px!important;
}
html body.v146193-ui .v146193-aux-puppet-card .v146192-aux-duration>span em{
  color:#c5ded7!important;font:800 8px/1 system-ui,sans-serif!important;font-style:normal!important;white-space:nowrap!important;
}
html body.v146193-ui .v146193-aux-puppet-card .v146192-aux-duration>i{
  display:block!important;width:100%!important;height:4px!important;min-height:4px!important;max-height:4px!important;border-radius:4px!important;background:rgba(61,81,78,.64)!important;overflow:hidden!important;
}
html body.v146193-ui .v146193-aux-puppet-card .v146192-aux-duration>i>u{
  display:block!important;height:100%!important;border-radius:inherit!important;text-decoration:none!important;background:linear-gradient(90deg,#60cfa8,#90d9b9)!important;transition:width .18s linear!important;
}
html body.v146193-ui.v111-battle-active .v101-player-roster>.v101-roster-head span{
  min-width:0!important;max-width:46%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}

/* ========================================================================== */
/* 3. SOUL SUMMON MODAL — FIXED HEADER/CLOSE, ONLY LIST SCROLLS              */
/* ========================================================================== */
html body.v146193-ui .modal.v146181-soul-summon-modal{
  box-sizing:border-box!important;width:min(620px,calc(100vw - 14px))!important;max-width:calc(100vw - 14px)!important;
  height:min(84dvh,780px)!important;max-height:min(84dvh,780px)!important;min-height:0!important;
  overflow:hidden!important;padding-top:44px!important;
}
html body.v146193-ui .v146193-soul-summon{
  box-sizing:border-box!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:8px!important;
  width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:0!important;overflow:hidden!important;
}
html body.v146193-ui .v146193-soul-summon>.v146193-summon-fixed{
  position:relative!important;z-index:3!important;display:grid!important;gap:7px!important;min-width:0!important;flex:none!important;
  padding:0 4px 6px!important;background:linear-gradient(180deg,rgba(7,21,22,.98),rgba(7,21,22,.88),rgba(7,21,22,0))!important;
}
html body.v146193-ui .v146193-soul-summon>.v146193-summon-fixed>header{
  box-sizing:border-box!important;width:100%!important;min-height:78px!important;margin:0!important;padding:17px 52px 13px!important;
  display:grid!important;place-items:center!important;text-align:center!important;
  background:url("../assets/v146181/necromancer/vault_header.webp") center/100% 100% no-repeat!important;
}
html body.v146193-ui .v146193-soul-summon>.v146193-summon-fixed>header h2{
  margin:0!important;font-size:20px!important;line-height:1!important;white-space:nowrap!important;text-shadow:0 2px 5px #000!important;
}
html body.v146193-ui .v146193-soul-summon .v146184-summon-lead{
  margin:0!important;padding:0 10px!important;max-width:none!important;font-size:8px!important;line-height:1.35!important;color:#aeb9b8!important;text-align:center!important;
}
html body.v146193-ui .v146193-soul-summon>.v146184-summon-list{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:9px!important;
  min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:2px 5px 10px!important;
  overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;
}
html body.v146193-ui .v146181-soul-summon-card{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:112px!important;height:auto!important;
  grid-template-columns:94px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;padding:8px 11px 8px 7px!important;margin:0!important;overflow:hidden!important;
}
html body.v146193-ui .v146181-soul-summon-card>div{min-width:0!important;max-width:100%!important;overflow:hidden!important}
html body.v146193-ui .v146181-soul-summon-card b{
  min-width:0!important;max-width:100%!important;font-size:12.5px!important;line-height:1.08!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere!important;
}
html body.v146193-ui .v146181-soul-summon-card p{margin:2px 0!important;font-size:8px!important;line-height:1.22!important}
html body.v146193-ui .v146181-soul-summon-card em{font-size:9px!important;line-height:1.15!important}
html body.v146193-ui .v146181-soul-summon-card.special{
  box-sizing:border-box!important;grid-template-columns:94px minmax(0,1fr)!important;min-height:130px!important;gap:9px!important;padding:7px 11px 7px 6px!important;align-items:center!important;overflow:hidden!important;
}
html body.v146193-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{
  box-sizing:border-box!important;width:88px!important;min-width:88px!important;max-width:88px!important;height:120px!important;min-height:120px!important;max-height:120px!important;
  place-self:center!important;display:grid!important;place-items:center!important;margin:0!important;padding:0!important;overflow:visible!important;
  background-image:url("../assets/v146181/necromancer/puppet_card_mythic.webp")!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;
}
html body.v146193-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{
  width:56px!important;min-width:56px!important;max-width:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;
  object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:translateY(-20px)!important;
}

/* ========================================================================== */
/* 4. PUPPET SKILLS — COMPACT ROWS, NO DEAD ICON COLUMN                      */
/* ========================================================================== */
html body.v146193-ui .modal.v146181-puppet-control-modal{
  box-sizing:border-box!important;width:min(620px,calc(100vw - 14px))!important;max-width:calc(100vw - 14px)!important;max-height:86dvh!important;overflow-y:auto!important;overflow-x:hidden!important;
}
html body.v146193-ui .v146181-puppet-skill-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
html body.v146193-ui .v146181-puppet-skill{box-sizing:border-box!important;width:100%!important;min-width:0!important;overflow:visible!important;background:transparent!important}
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:66px!important;height:auto!important;aspect-ratio:auto!important;
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;align-items:center!important;
  padding:10px 13px!important;border:1px solid rgba(111,171,159,.34)!important;border-image:none!important;border-radius:12px!important;
  background:linear-gradient(145deg,rgba(12,30,31,.97),rgba(11,18,23,.99))!important;color:#e7efec!important;box-shadow:inset 0 0 0 1px rgba(125,199,183,.04)!important;overflow:hidden!important;
}
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main::before,
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main::after{content:none!important;display:none!important}
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main .v146181-puppet-skill-icon{display:none!important}
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main .v146181-puppet-skill-copy{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"name rarity" "state state"!important;
  gap:4px 8px!important;align-items:center!important;min-width:0!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;
}
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main .v146181-puppet-skill-copy>b{
  grid-area:name!important;min-width:0!important;font-size:11.5px!important;line-height:1.12!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere!important;
}
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main .v146181-puppet-skill-copy>small{
  grid-area:rarity!important;align-self:start!important;justify-self:end!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important;color:#b5aa88!important;
}
html body.v146193-ui .v146181-puppet-skill-main.v146193-puppet-skill-main .v146181-puppet-skill-copy>em{
  grid-area:state!important;font-size:8px!important;line-height:1.15!important;font-style:normal!important;color:#84ccbd!important;white-space:normal!important;
}
html body.v146193-ui .v146181-puppet-skill :is(details,.v146177-puppet-history){margin-top:5px!important;border-radius:9px!important;overflow:hidden!important}
html body.v146193-ui .v146181-puppet-skill :is(summary,.v146177-puppet-history>summary){min-height:32px!important;padding:6px 9px!important;font-size:8px!important;line-height:1.1!important}
html body.v146193-ui .v146177-puppet-history-body{padding:8px 10px!important;font-size:8px!important;line-height:1.3!important}
html body.v146193-ui .v146177-puppet-history-body dl{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:7px 0!important}
html body.v146193-ui .v146177-puppet-history-body :is(dt,dd){font-size:7px!important;line-height:1.2!important;margin:0!important}
html body.v146193-ui .v146181-puppet-control>header h2,
html body.v146193-ui .v146181-puppet-control header h3{
  white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere!important;
}

/* ========================================================================== */
/* 5. AUCTION — BUTTON ART, STORAGE/LISTS MOBILE GEOMETRY                     */
/* ========================================================================== */
html body.v146193-ui .v146193-auction-button{
  position:relative!important;isolation:isolate!important;box-sizing:border-box!important;overflow:hidden!important;
  border:0!important;background:none!important;background-image:none!important;box-shadow:none!important;
}
html body.v146193-ui .v146193-auction-button::before,
html body.v146193-ui .v146193-auction-button::after{content:none!important;display:none!important}
html body.v146193-ui .v146193-auction-button>.v146193-auction-button-frame{
  position:absolute!important;inset:0!important;z-index:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:fill!important;object-position:center!important;margin:0!important;padding:0!important;pointer-events:none!important;user-select:none!important;
}
html body.v146193-ui .v146193-auction-button>b{position:relative!important;z-index:1!important;display:block!important;color:#f3ead6!important;text-shadow:0 1px 3px #000!important}
html body.v146193-ui .v146181-froxset-copy .v146193-auction-button[data-v146181-open-auction]{
  width:min(100%,276px)!important;min-width:0!important;height:50px!important;min-height:50px!important;max-height:50px!important;margin:6px 0 0!important;padding:8px 30px!important;justify-self:start!important;
}
html body.v146193-ui .v146181-froxset-copy .v146193-auction-button[data-v146181-open-auction]>b{font-size:10px!important;line-height:1.05!important;white-space:nowrap!important}
html body.v146193-ui .modal.v146181-auction-modal{overflow:hidden!important}
html body.v146193-ui .v146181-auction-shell{min-width:0!important;overflow:hidden!important}
html body.v146193-ui .v146181-auction-shell>nav{position:relative!important;z-index:6!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important}
html body.v146193-ui .v146181-auction-page{
  box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:auto!important;scroll-padding-top:0!important;overscroll-behavior-y:contain!important;
}
html body.v146193-ui .v146181-claim-columns{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;min-width:0!important;width:100%!important}
html body.v146193-ui .v146181-claim-columns>section{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important}
html body.v146193-ui .v146181-claim-row{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:60px minmax(0,1fr)!important;grid-template-areas:"art copy" "action action"!important;
  align-items:center!important;gap:8px 10px!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:118px!important;height:auto!important;
  padding:11px!important;margin:0 0 8px!important;overflow:hidden!important;
}
html body.v146193-ui .v146181-claim-row>span,
html body.v146193-ui .v146181-claim-row>.v146181-claim-emblem{grid-area:art!important;width:56px!important;min-width:56px!important;max-width:56px!important;height:62px!important;min-height:62px!important;max-height:62px!important;place-self:center!important}
html body.v146193-ui .v146181-claim-row>div{grid-area:copy!important;min-width:0!important;width:100%!important;max-width:100%!important;display:grid!important;gap:4px!important;align-content:center!important;overflow:hidden!important}
html body.v146193-ui .v146181-claim-row b{font-size:10px!important;line-height:1.15!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
html body.v146193-ui .v146181-claim-row small{font-size:7px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;color:#aaa296!important}
html body.v146193-ui .v146181-claim-row>.v146193-auction-button{grid-area:action!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:38px!important;height:38px!important;padding:5px 16px!important;margin:0!important}
html body.v146193-ui .v146181-lot-list{box-sizing:border-box!important;display:grid!important;gap:9px!important;min-width:0!important;width:100%!important;padding-top:1px!important}
html body.v146193-ui .v146181-lot-card{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;grid-template-areas:"art copy" "action action"!important;
  gap:8px 10px!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:126px!important;height:auto!important;padding:11px!important;margin:0!important;overflow:hidden!important;
}
html body.v146193-ui .v146181-lot-card>.v146181-lot-art{grid-area:art!important;width:62px!important;min-width:62px!important;max-width:62px!important;height:70px!important;min-height:70px!important;max-height:70px!important;place-self:center!important}
html body.v146193-ui .v146181-lot-card>.v146181-lot-copy{grid-area:copy!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
html body.v146193-ui .v146181-lot-copy>b{font-size:10px!important;line-height:1.12!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere!important}
html body.v146193-ui .v146181-lot-copy>div{display:flex!important;gap:5px 10px!important;flex-wrap:wrap!important;font-size:8px!important}
html body.v146193-ui .v146181-lot-card>.v146193-auction-button{grid-area:action!important;width:100%!important;min-width:0!important;min-height:38px!important;height:38px!important;margin:0!important;padding:5px 15px!important}
html body.v146193-ui .v146181-page-intro{position:relative!important;z-index:1!important;margin-top:0!important}

/* ========================================================================== */
/* 6. DUNGEON FRESH-LOOT HANDOFF — COMPACT EMPTY STATE                       */
/* ========================================================================== */
html body.v146193-ui .modal.v146181-dungeon-handoff-modal{
  box-sizing:border-box!important;width:min(620px,94vw)!important;max-width:94vw!important;max-height:82dvh!important;min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;
}
html body.v146193-ui .v146181-dungeon-handoff{gap:8px!important}
html body.v146193-ui .v146181-dungeon-handoff>header{padding:10px 12px!important}
html body.v146193-ui .v146181-dungeon-handoff header h3{font-size:13px!important;line-height:1.08!important;margin:2px 0 4px!important}
html body.v146193-ui .v146181-dungeon-handoff header p{font-size:8px!important;line-height:1.25!important}
html body.v146193-ui .v146193-handoff-empty{box-sizing:border-box!important;min-height:0!important;height:auto!important;max-height:none!important;padding-bottom:2px!important}
html body.v146193-ui .v146193-handoff-empty .v146181-handoff-list>.empty,
html body.v146193-ui .v146193-handoff-empty>.empty{
  box-sizing:border-box!important;min-height:70px!important;height:auto!important;margin:3px 0!important;padding:18px 12px!important;display:grid!important;place-items:center!important;font-size:12px!important;line-height:1.2!important;text-align:center!important;
}

/* ========================================================================== */
/* 7. MONSTER ACTION OVERLAY — NEVER OBSCURE NON-ACTIONABLE ENEMY            */
/* ========================================================================== */
html body.v146193-ui .v101-monster-card:not(.can-act) .v146176-monster-action-overlay,
html body.v146193-ui .v101-monster-card:not(.selected) .v146176-monster-action-overlay{pointer-events:none!important}

@media(max-width:520px){
  html body.v146193-ui .modal.v146181-soul-summon-modal{width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important;height:82dvh!important;max-height:82dvh!important;padding:42px 8px 10px!important}
  html body.v146193-ui .v146193-soul-summon>.v146193-summon-fixed>header{min-height:70px!important;padding:15px 42px 12px!important}
  html body.v146193-ui .v146193-soul-summon>.v146193-summon-fixed>header h2{font-size:18px!important}
  html body.v146193-ui .v146181-soul-summon-card{grid-template-columns:88px minmax(0,1fr)!important;min-height:108px!important;padding:7px 9px 7px 5px!important}
  html body.v146193-ui .v146181-soul-summon-card.special{grid-template-columns:88px minmax(0,1fr)!important;min-height:126px!important;padding:6px 9px 6px 5px!important}
  html body.v146193-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{width:84px!important;min-width:84px!important;max-width:84px!important;height:116px!important;min-height:116px!important;max-height:116px!important}
  html body.v146193-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important;transform:translateY(-19px)!important}
  html body.v146193-ui .v146181-soul-summon-card b{font-size:11.5px!important}
  html body.v146193-ui .v146181-froxset-copy .v146193-auction-button[data-v146181-open-auction]{width:min(100%,250px)!important;height:46px!important;min-height:46px!important;max-height:46px!important;padding-inline:25px!important}
  html body.v146193-ui .v146181-claim-row{grid-template-columns:54px minmax(0,1fr)!important;padding:9px!important;min-height:110px!important}
  html body.v146193-ui .v146181-claim-row>span,html body.v146193-ui .v146181-claim-row>.v146181-claim-emblem{width:50px!important;min-width:50px!important;max-width:50px!important;height:58px!important;min-height:58px!important;max-height:58px!important}
  html body.v146193-ui .v146181-lot-card{grid-template-columns:60px minmax(0,1fr)!important;padding:9px!important;min-height:118px!important}
  html body.v146193-ui .v146181-lot-card>.v146181-lot-art{width:56px!important;min-width:56px!important;max-width:56px!important;height:64px!important;min-height:64px!important;max-height:64px!important}
  html body.v146193-ui .modal.v146181-dungeon-handoff-modal{width:94vw!important;max-width:94vw!important;max-height:76dvh!important}
}

/* ===== css/v146194-battle-scroll-exchange-auction-recovery.css ===== */
/* Aldos RPG v1.146.194 — battle state, scroll, Room 16 exchange and auction recovery.
   Existing art only. No generated images. */

/* ========================================================================== */
/* 1. CLASSIC PLAYER EFFECTS — FIXED SIZE EVEN WITH PUPPETS / HELPERS         */
/* ========================================================================== */







/* Keep the player card independent from any number of auxiliary cards. */
html body.v146194-ui.v111-battle-active main.v101-battle .v101-player-roster>.v101-roster-scroll{
  align-items:stretch!important;overflow-y:auto!important;overflow-x:hidden!important;scroll-snap-type:none!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;
}
html body.v146194-ui.v111-battle-active main.v101-battle .v101-player-roster>.v101-roster-scroll>*{
  width:100%!important;min-width:0!important;max-width:100%!important;flex-shrink:0!important;align-self:stretch!important;
}
html body.v146194-ui.v111-battle-active .v146193-aux-puppet-card .v146192-aux-duration>span em{font-size:8px!important;line-height:1!important;white-space:nowrap!important}
html body.v146194-ui.v111-battle-active .v146193-aux-puppet-card .v146192-aux-duration>i{height:4px!important;min-height:4px!important;max-height:4px!important}

/* ========================================================================== */
/* 2. SOUL SUMMON — LOWER TITLE, CLEAN GREAT-SOUL FRAME FIT                  */
/* ========================================================================== */
html body.v146194-ui .v146193-soul-summon>.v146193-summon-fixed>header{transform:translateY(5px)!important;margin-bottom:5px!important}
html body.v146194-ui .v146193-soul-summon>.v146193-summon-fixed>header h2{font-size:19px!important;line-height:1!important}
html body.v146194-ui .v146181-soul-summon-card.special{
  grid-template-columns:86px minmax(0,1fr)!important;min-height:116px!important;gap:9px!important;padding:7px 11px 7px 7px!important;align-items:center!important;
}
html body.v146194-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{
  box-sizing:border-box!important;width:82px!important;min-width:82px!important;max-width:82px!important;height:106px!important;min-height:106px!important;max-height:106px!important;
  display:grid!important;place-items:center!important;place-self:center!important;margin:0!important;padding:0!important;overflow:visible!important;background-size:100% 100%!important;background-position:center!important;
}
html body.v146194-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{
  width:52px!important;min-width:52px!important;max-width:52px!important;height:52px!important;min-height:52px!important;max-height:52px!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:translateY(-10px)!important;
}
html body.v146194-ui .v146181-soul-summon-card :is(b,p,em,small){min-width:0!important;overflow-wrap:anywhere!important}

/* ========================================================================== */
/* 3. NECROMANCER FULL-BODY LOCATION CARD                                    */
/* ========================================================================== */
html body.v146194-ui .v119-location-player.v146194-necro-location-player .v119-location-player-art{
  overflow:visible!important;display:grid!important;place-items:end center!important;
}
html body.v146194-ui .v119-location-player.v146194-necro-location-player .v119-location-player-art .v146194-necro-location-full{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center bottom!important;padding:0!important;margin:0 auto!important;transform:none!important;
}

/* ========================================================================== */
/* 4. PUPPET SKILLS — COMPACT ROWS, NO DEAD ART RESERVATION                  */
/* ========================================================================== */
html body.v146194-ui .v146181-puppet-skill-main.v146193-puppet-skill-main{
  min-height:62px!important;padding:9px 12px!important;
}
html body.v146194-ui .v146181-puppet-skill-main.v146193-puppet-skill-main .v146181-puppet-skill-copy{
  grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"name rarity" "state state"!important;gap:3px 8px!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important;
}
html body.v146194-ui .v146181-puppet-skill-main.v146193-puppet-skill-main .v146181-puppet-skill-copy>b{font-size:11px!important;line-height:1.12!important}
html body.v146194-ui .v146181-puppet-skill :is(details,.v146177-puppet-history){margin-top:4px!important}
html body.v146194-ui .v146177-puppet-history-body{font-size:8px!important;line-height:1.28!important;padding:8px 10px!important}

/* ========================================================================== */
/* 5. AUCTION — RELIABLE CTA / TABS / LOT PREVIEW                            */
/* ========================================================================== */
html body.v146194-ui .v146181-froxset-copy .v146193-auction-button[data-v146181-open-auction]{
  display:grid!important;place-items:center!important;width:min(100%,276px)!important;height:50px!important;min-height:50px!important;max-height:50px!important;margin:7px 0 0!important;padding:8px 28px!important;
}
html body.v146194-ui .v146181-auction-shell>nav{
  display:grid!important;grid-template-columns:repeat(4,minmax(92px,1fr))!important;gap:6px!important;padding:7px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;overscroll-behavior-x:contain!important;
}
html body.v146194-ui .v146181-auction-shell>nav::-webkit-scrollbar{display:none!important}
html body.v146194-ui .v146181-auction-shell>nav>button{box-sizing:border-box!important;min-width:92px!important;min-height:52px!important;padding:8px 7px!important;white-space:normal!important;line-height:1.05!important}
html body.v146194-ui .v146181-lot-art{
  border:0!important;background:transparent!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;overflow:hidden!important;
}
html body.v146194-ui .v146181-lot-art :where(img,.item-asset-image){display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:auto!important;padding:2px!important}
html body.v146194-ui .v146181-lot-card.own-lot .v146181-lot-copy footer em,
html body.v146194-ui .v146194-own-lot-note{color:#bfcab8!important}

/* ========================================================================== */
/* 6. COMBAT LOG SEMANTICS                                                   */
/* ========================================================================== */
html body.v146194-ui .v146194-ally-damage mark.number{
  color:#ef8b8f!important;text-decoration-line:underline!important;text-decoration-thickness:2px!important;text-underline-offset:2px!important;text-decoration-color:#6fce8f!important;
}
html body.v146194-ui .v146194-ally-heal mark.number{color:#86dfa0!important;font-weight:800!important}
html body.v146194-ui .log-tone-enemy .v102-log-copy>p{color:#e8a0a6!important}
html body.v146194-ui .log-tone-enemy mark.number{color:#ff858c!important}
html body.v146194-ui .log-tone-event .v102-log-copy>p{color:#cdb8e8!important}

/* ========================================================================== */
/* 7. ROOM 16 — PUBLIC FOUR-PLAYER DUNGEON EXCHANGE                          */
/* ========================================================================== */
html body.v146194-ui .v146133-scene-exchange>.v14643-scene-art{
  display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;
}
html body.v146194-ui .v146133-scene-exchange>.v14643-scene-copy{padding-top:5px!important}
html body.v146194-ui .v146133-scene-exchange>.v14643-scene-copy>p{display:none!important}
html body.v146194-ui .v146194-exchange{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-height:min(62dvh,720px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:9px!important;border:1px solid rgba(112,166,150,.30)!important;border-radius:14px!important;background:linear-gradient(180deg,rgba(8,27,27,.97),rgba(7,18,22,.98))!important;overscroll-behavior-y:contain!important;scrollbar-width:thin!important;
}
html body.v146194-ui .v146194-exchange>header{display:grid!important;gap:3px!important;padding:4px 4px 10px!important}
html body.v146194-ui .v146194-exchange>header small{font-size:8px!important;letter-spacing:.08em!important;color:#9dc9b8!important}
html body.v146194-ui .v146194-exchange>header h3{margin:0!important;font-size:18px!important;line-height:1!important}
html body.v146194-ui .v146194-exchange>header p{margin:0!important;font-size:8px!important;line-height:1.3!important;color:#aab8b3!important}
html body.v146194-ui .v146194-exchange-players{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
html body.v146194-ui .v146194-exchange-player{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;min-width:0!important;padding:8px!important;border:1px solid rgba(137,183,167,.20)!important;border-radius:13px!important;background:rgba(3,16,18,.68)!important;
}
html body.v146194-ui .v146194-exchange-owner{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;grid-template-areas:"art name" "art meta"!important;gap:2px 6px!important;align-items:center!important;min-width:0!important}
html body.v146194-ui .v146194-exchange-owner>span{grid-area:art!important;width:36px!important;height:42px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:9px!important;background:rgba(21,50,44,.55)!important}
html body.v146194-ui .v146194-exchange-owner>span :where(img,.class-asset-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146194-ui .v146194-exchange-owner>b{grid-area:name!important;min-width:0!important;font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146194-ui .v146194-exchange-owner>small{grid-area:meta!important;font-size:6.5px!important;color:#879b94!important;white-space:nowrap!important}
html body.v146194-ui .v146194-exchange-slots{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;min-width:0!important}
html body.v146194-ui .v146194-exchange-slot{
  box-sizing:border-box!important;position:relative!important;min-width:0!important;height:88px!important;min-height:88px!important;max-height:88px!important;border:1px solid rgba(131,172,158,.25)!important;border-radius:11px!important;background:rgba(8,28,29,.72)!important;overflow:hidden!important;
}
html body.v146194-ui button.v146194-exchange-slot.empty{display:grid!important;place-items:center!important;align-content:center!important;gap:3px!important;color:#8fcbb8!important;padding:4px!important}
html body.v146194-ui button.v146194-exchange-slot.empty>span{font-size:24px!important;line-height:1!important}
html body.v146194-ui button.v146194-exchange-slot.empty>small{font-size:6.5px!important}
html body.v146194-ui button.v146194-exchange-slot.empty:disabled{opacity:.38!important}
html body.v146194-ui .v146194-exchange-slot.filled{display:grid!important;grid-template-rows:minmax(0,1fr) 15px!important;padding:4px!important}
html body.v146194-ui .v146194-exchange-slot.filled.claimable{border-color:rgba(112,212,153,.70)!important;box-shadow:inset 0 0 14px rgba(65,164,114,.13)!important}
html body.v146194-ui .v146194-exchange-art{border:0!important;background:transparent!important;padding:1px!important;margin:0!important;display:grid!important;place-items:center!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
html body.v146194-ui .v146194-exchange-art :where(img,.item-asset-image,.v146194-exchange-item-image){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;padding:2px!important;margin:auto!important}
html body.v146194-ui .v146194-exchange-slot.filled>small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:center!important;font-size:6px!important;line-height:14px!important;color:#a8b8b0!important}
html body.v146194-ui .v146194-exchange-remove{position:absolute!important;z-index:4!important;top:3px!important;right:3px!important;width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;border-radius:50%!important;font-size:12px!important;line-height:16px!important}
html body.v146194-ui .v146194-exchange-claim{position:absolute!important;z-index:4!important;left:4px!important;right:4px!important;bottom:18px!important;min-height:22px!important;height:22px!important;padding:2px 5px!important;font-size:7px!important;border-radius:7px!important}
html body.v146194-ui .v146194-exchange-note{margin:8px 2px 1px!important;font-size:7px!important;line-height:1.3!important;color:#82928e!important}

html body.v146194-ui .modal.v146194-exchange-modal{box-sizing:border-box!important;width:min(600px,94vw)!important;max-width:94vw!important;max-height:82dvh!important;overflow-y:auto!important;overflow-x:hidden!important}
html body.v146194-ui .v146194-exchange-picker{display:grid!important;gap:10px!important;min-width:0!important}
html body.v146194-ui .v146194-exchange-picker>p{font-size:9px!important;line-height:1.3!important;margin:0!important;color:#aab8b3!important}
html body.v146194-ui .v146194-exchange-picker>label{display:grid!important;gap:5px!important;font-size:8px!important}
html body.v146194-ui .v146194-exchange-picker select{box-sizing:border-box!important;width:100%!important;min-height:42px!important;padding:7px 10px!important}
html body.v146194-ui .v146194-exchange-picker-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-height:52dvh!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain!important}
html body.v146194-ui .v146194-exchange-picker-items>button{box-sizing:border-box!important;display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-areas:"art name" "art meta"!important;gap:3px 7px!important;align-items:center!important;min-width:0!important;min-height:76px!important;padding:7px!important;text-align:left!important}
html body.v146194-ui .v146194-exchange-picker-items>button>span{grid-area:art!important;width:52px!important;height:60px!important;display:grid!important;place-items:center!important;overflow:hidden!important}
html body.v146194-ui .v146194-exchange-picker-items>button>span :where(img,.item-asset-image){width:100%!important;height:100%!important;object-fit:contain!important}
html body.v146194-ui .v146194-exchange-picker-items>button>b{grid-area:name!important;min-width:0!important;font-size:9px!important;line-height:1.1!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
html body.v146194-ui .v146194-exchange-picker-items>button>small{grid-area:meta!important;font-size:7px!important;color:#8ca097!important}

/* ========================================================================== */
/* 8. SCROLL STABILITY                                                       */
/* ========================================================================== */
html body.v146194-ui :where(.v146181-auction-page,.v146184-summon-list,.v146194-exchange,.v146194-exchange-picker-items,.v101-roster-scroll,.v101-battle-log,.v119-screen,.modal){
  overscroll-behavior:contain;
}

@media(max-width:520px){
  html body.v146194-ui .v146181-soul-summon-card.special{grid-template-columns:80px minmax(0,1fr)!important;min-height:112px!important;padding:6px 8px 6px 5px!important}
  html body.v146194-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{width:76px!important;min-width:76px!important;max-width:76px!important;height:100px!important;min-height:100px!important;max-height:100px!important}
  html body.v146194-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;transform:translateY(-9px)!important}
  html body.v146194-ui .v146181-auction-shell>nav{grid-template-columns:repeat(4,100px)!important}
  html body.v146194-ui .v146194-exchange-player{grid-template-columns:1fr!important;gap:6px!important}
  html body.v146194-ui .v146194-exchange-owner{grid-template-columns:34px minmax(0,1fr)!important}
  html body.v146194-ui .v146194-exchange-owner>span{width:34px!important;height:38px!important}
  html body.v146194-ui .v146194-exchange-slots{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
  html body.v146194-ui .v146194-exchange-slot{height:78px!important;min-height:78px!important;max-height:78px!important}
  html body.v146194-ui .v146194-exchange-picker-items{grid-template-columns:1fr!important}
}

/* ===== css/v146195-necromancer-intercept-target-log-soul-auction.css ===== */
/* Aldos RPG v1.146.195 — Necromancer intercept/targeting/state, soul detail and auction polish.
   Existing image assets only. No image generation. */

/* ========================================================================== */
/* 1. PLAYER EFFECTS — NEVER SHRINK WHEN PUPPETS OR HELPERS APPEAR            */
/* ========================================================================== */




/* ========================================================================== */
/* 2. AUTHORITATIVE SKILL STATE + CLEAN TARGET ROW                            */
/* ========================================================================== */


html body.v146195-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-target.v146195-skill-target{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-areas:"label value" ". hint"!important;
  align-items:start!important;gap:3px 8px!important;width:100%!important;min-width:0!important;min-height:48px!important;margin-top:8px!important;padding:8px 4px!important;
}
html body.v146195-ui.v111-battle-active #v1281-skill-detail-slot .v146195-skill-target>span{grid-area:label!important;display:block!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;color:#87958f!important}
html body.v146195-ui.v111-battle-active #v1281-skill-detail-slot .v146195-skill-target>b{grid-area:value!important;display:block!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;text-align:left!important;color:#ecf2ef!important;line-height:1.15!important}
html body.v146195-ui.v111-battle-active #v1281-skill-detail-slot .v146195-skill-target>small{grid-area:hint!important;display:block!important;min-width:0!important;font-size:7.5px!important;line-height:1.25!important;color:#82918b!important;white-space:normal!important;overflow-wrap:break-word!important}

/* ========================================================================== */
/* 3. MANUAL ALLY TARGET FOR PUPPET HEAL / GUARD / BUFF / CLEANSE            */
/* ========================================================================== */
html body.v146195-ui .modal.v146195-ally-target-shell{box-sizing:border-box!important;width:min(520px,94vw)!important;max-width:94vw!important;max-height:80dvh!important;overflow:hidden!important}
html body.v146195-ui .v146195-ally-target-modal{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important;min-width:0!important;max-height:74dvh!important}
html body.v146195-ui .v146195-ally-target-modal>header{display:grid!important;gap:3px!important;padding:3px 4px 8px!important;border-bottom:1px solid rgba(126,172,158,.18)!important}
html body.v146195-ui .v146195-ally-target-modal>header small{font-size:7px!important;letter-spacing:.1em!important;color:#8fc8b6!important}
html body.v146195-ui .v146195-ally-target-modal>header h2{margin:0!important;font-size:18px!important;line-height:1.05!important}
html body.v146195-ui .v146195-ally-target-modal>header p{margin:0!important;font-size:8px!important;line-height:1.3!important;color:#9caaa5!important}
html body.v146195-ui .v146195-ally-target-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding:2px!important}
html body.v146195-ui .v146195-ally-target{box-sizing:border-box!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-areas:"art name" "art hp" "bar bar"!important;gap:2px 7px!important;align-items:center!important;min-width:0!important;min-height:72px!important;padding:7px!important;border:1px solid rgba(118,176,155,.28)!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(9,35,34,.96),rgba(5,22,25,.98))!important;text-align:left!important}
html body.v146195-ui .v146195-ally-target>span{grid-area:art!important;display:grid!important;place-items:center!important;width:48px!important;height:54px!important;overflow:hidden!important;border-radius:9px!important;background:rgba(20,50,44,.45)!important}
html body.v146195-ui .v146195-ally-target>span :where(img,.class-inline-image){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}
html body.v146195-ui .v146195-ally-target>b{grid-area:name!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important}
html body.v146195-ui .v146195-ally-target>em{grid-area:hp!important;font-size:7.5px!important;color:#9fc2b5!important;font-style:normal!important}
html body.v146195-ui .v146195-ally-target>i{grid-area:bar!important;display:block!important;height:4px!important;border-radius:999px!important;overflow:hidden!important;background:rgba(255,255,255,.08)!important}
html body.v146195-ui .v146195-ally-target>i>u{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#4bb986,#83d69e)!important;text-decoration:none!important}

/* ========================================================================== */
/* 4. COMBAT LOG — TEAM ACCENT IS IN THE UNDERLINE                           */
/* ========================================================================== */
html body.v146195-ui .v102-log-copy mark.team-number{font-weight:900!important;text-decoration-line:underline!important;text-decoration-thickness:2px!important;text-underline-offset:2px!important;text-decoration-skip-ink:none!important;background:transparent!important;padding:0!important}
html body.v146195-ui .v102-log-copy mark.ally-damage-number{color:#ff858c!important;text-decoration-color:#65d694!important}
html body.v146195-ui .v102-log-copy mark.ally-positive-number{color:#75dfa0!important;text-decoration-color:#65d694!important}
html body.v146195-ui .v102-log-copy mark.enemy-number{color:#ff858c!important;text-decoration-color:#e55b64!important}
html body.v146195-ui .v146195-ally-damage .v102-log-copy>p{border-bottom-color:rgba(101,214,148,.28)!important}
html body.v146195-ui .v146195-ally-heal .v102-log-copy>p,
html body.v146195-ui .v146195-ally-positive .v102-log-copy>p{color:#c9e9d5!important}
html body.v146195-ui .v146195-enemy-event .v102-log-copy>p{color:#edb0b5!important}
html body.v146195-ui .log-tone-event .v102-log-copy>p{color:#cbb8e7!important}

/* ========================================================================== */
/* 5. MASTERED SOUL DETAIL — MONSTER CARD WITHOUT LOOT                       */
/* ========================================================================== */
html body.v146195-ui .v146181-soul-card.v146195-soul-inspectable{cursor:pointer!important;transition:border-color .15s ease,transform .15s ease!important}
html body.v146195-ui .v146181-soul-card.v146195-soul-inspectable:active{transform:scale(.992)!important}
html body.v146195-ui .v146181-soul-card.v146195-soul-inspectable:focus-visible{outline:2px solid rgba(126,215,177,.70)!important;outline-offset:2px!important}
html body.v146195-ui .modal.v146195-soul-detail-modal{box-sizing:border-box!important;width:min(590px,95vw)!important;max-width:95vw!important;max-height:86dvh!important;overflow-y:auto!important;overflow-x:hidden!important}
html body.v146195-ui .v146195-soul-detail{display:grid!important;gap:10px!important;min-width:0!important;padding:2px!important}
html body.v146195-ui .v146195-soul-detail-head{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;min-width:0!important;padding:7px!important;border:1px solid rgba(116,166,150,.22)!important;border-radius:14px!important;background:rgba(5,24,25,.76)!important}
html body.v146195-ui .v146195-soul-detail-head .v146185-soul-frame{width:88px!important;min-width:88px!important;max-width:88px!important;height:100px!important;min-height:100px!important;max-height:100px!important;display:grid!important;place-items:center!important;background-size:100% 100%!important;background-position:center!important}
html body.v146195-ui .v146195-soul-detail-head .v146185-soul-frame>span{display:grid!important;place-items:center!important;width:68px!important;height:68px!important;overflow:hidden!important;border-radius:50%!important}
html body.v146195-ui .v146195-soul-detail-head .v146185-soul-frame img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146195-ui .v146195-soul-detail-head>div:last-child{min-width:0!important;display:grid!important;gap:3px!important}
html body.v146195-ui .v146195-soul-detail-head small{font-size:7px!important;letter-spacing:.09em!important;color:#96c7b8!important}
html body.v146195-ui .v146195-soul-detail-head h2{margin:0!important;min-width:0!important;font-size:18px!important;line-height:1.03!important;overflow-wrap:break-word!important}
html body.v146195-ui .v146195-soul-detail-head p{margin:0!important;font-size:8px!important;line-height:1.3!important;color:#a8b5b0!important}
html body.v146195-ui .v146195-soul-detail>section{display:grid!important;gap:7px!important;min-width:0!important;padding:9px!important;border:1px solid rgba(119,157,146,.18)!important;border-radius:13px!important;background:rgba(7,20,24,.72)!important}
html body.v146195-ui .v146195-soul-detail-title{display:grid!important;gap:1px!important}
html body.v146195-ui .v146195-soul-detail-title small{font-size:6.5px!important;letter-spacing:.1em!important;color:#819b92!important}
html body.v146195-ui .v146195-soul-detail-title b{font-size:12px!important}
html body.v146195-ui .v146195-soul-detail-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:0!important}
html body.v146195-ui .v146195-soul-detail-stats>div{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;min-width:0!important;padding:6px 7px!important;border-radius:8px!important;background:rgba(27,48,47,.42)!important}
html body.v146195-ui .v146195-soul-detail-stats dt{font-size:7px!important;color:#8fa39c!important}
html body.v146195-ui .v146195-soul-detail-stats dd{margin:0!important;font-size:8px!important;font-weight:800!important;color:#d9e7e1!important}
html body.v146195-ui .v146195-soul-detail-skills{display:grid!important;gap:7px!important}
html body.v146195-ui .v146195-soul-detail-skill{display:grid!important;gap:5px!important;min-width:0!important;padding:8px 9px!important;border:1px solid rgba(126,174,158,.20)!important;border-radius:10px!important;background:linear-gradient(180deg,rgba(8,31,31,.82),rgba(7,21,25,.88))!important}
html body.v146195-ui .v146195-soul-detail-skill>header{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:7px!important;align-items:center!important}
html body.v146195-ui .v146195-soul-detail-skill>header>span{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:7px!important;background:rgba(89,145,126,.18)!important;font-size:9px!important;font-weight:900!important;color:#a9dac8!important}
html body.v146195-ui .v146195-soul-detail-skill>header>div{min-width:0!important;display:grid!important;gap:1px!important}
html body.v146195-ui .v146195-soul-detail-skill small{font-size:6.5px!important;color:#91aaa1!important}
html body.v146195-ui .v146195-soul-detail-skill b{font-size:10px!important;line-height:1.15!important;overflow-wrap:break-word!important}
html body.v146195-ui .v146195-soul-detail-skill p{margin:0!important;font-size:8px!important;line-height:1.35!important;color:#b8c8c2!important}
html body.v146195-ui .v146195-soul-detail-skill footer{font-size:7px!important;line-height:1.3!important;color:#79c9aa!important}
html body.v146195-ui .v146195-soul-detail-back{min-height:44px!important}

/* ========================================================================== */
/* 6. AUCTION — OWN LOT IS A NORMAL CARD, NOT A VERTICAL TEXT BLOCK          */
/* ========================================================================== */
html body.v146195-ui .v146181-auction-shell>nav{grid-template-columns:repeat(4,minmax(78px,1fr))!important;gap:5px!important}
html body.v146195-ui .v146181-auction-shell>nav>button{min-width:78px!important;min-height:48px!important;padding:7px 5px!important;font-size:8px!important}
html body.v146195-ui .v146181-lot-card.v146195-own-lot{border-color:rgba(195,169,91,.36)!important;box-shadow:inset 0 0 0 1px rgba(209,184,102,.06)!important}
html body.v146195-ui .v146195-own-lot-badge{grid-area:action!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;align-content:center!important;gap:1px!important;width:100%!important;min-width:0!important;min-height:42px!important;padding:6px 8px!important;margin:0!important;border:1px solid rgba(194,170,94,.28)!important;border-radius:9px!important;background:rgba(71,59,28,.20)!important;text-align:center!important;white-space:normal!important;overflow:hidden!important}
html body.v146195-ui .v146195-own-lot-badge>b{display:block!important;font-size:8.5px!important;line-height:1.05!important;color:#dfc879!important;white-space:nowrap!important}
html body.v146195-ui .v146195-own-lot-badge>small{display:block!important;font-size:6.5px!important;line-height:1.1!important;color:#aeb7b1!important;white-space:nowrap!important}

/* ========================================================================== */
/* 7. AUXILIARY SUMMON DURATION — FIXED CARD, READABLE 3→2→1                 */
/* ========================================================================== */
html body.v146195-ui.v111-battle-active .v146193-aux-puppet-card{width:100%!important;min-width:100%!important;max-width:100%!important;flex:0 0 auto!important;align-self:stretch!important}
html body.v146195-ui.v111-battle-active .v146193-aux-puppet-card .v146192-aux-duration>span em{font-size:8px!important;font-weight:800!important;white-space:nowrap!important;color:#c5ddd4!important}
html body.v146195-ui.v111-battle-active .v146193-aux-puppet-card .v146192-aux-duration>i{height:4px!important;background:rgba(255,255,255,.08)!important;overflow:hidden!important;border-radius:999px!important}
html body.v146195-ui.v111-battle-active .v146193-aux-puppet-card .v146192-aux-duration>i>u{display:block!important;height:100%!important;background:linear-gradient(90deg,#50b98b,#8bd8a4)!important;transition:width .18s linear!important;text-decoration:none!important}

@media(max-width:520px){
  html body.v146195-ui .v146195-ally-target-grid{grid-template-columns:1fr!important}
  html body.v146195-ui .v146195-soul-detail-head{grid-template-columns:78px minmax(0,1fr)!important;gap:7px!important;padding:6px!important}
  html body.v146195-ui .v146195-soul-detail-head .v146185-soul-frame{width:76px!important;min-width:76px!important;max-width:76px!important;height:88px!important;min-height:88px!important;max-height:88px!important}
  html body.v146195-ui .v146195-soul-detail-head .v146185-soul-frame>span{width:58px!important;height:58px!important}
  html body.v146195-ui .v146195-soul-detail-stats{grid-template-columns:1fr!important}
  html body.v146195-ui .v146181-auction-shell>nav{grid-template-columns:repeat(4,minmax(72px,1fr))!important;overflow-x:hidden!important}
  html body.v146195-ui .v146181-auction-shell>nav>button{min-width:0!important;font-size:7.5px!important}
}
html body.v146195-ui .v146195-soul-detail-skill>details{margin:0!important;border-top:1px solid rgba(128,166,154,.13)!important;padding-top:5px!important}
html body.v146195-ui .v146195-soul-detail-skill>details>summary{cursor:pointer!important;font-size:7.5px!important;font-weight:800!important;color:#c8b477!important;list-style:none!important}
html body.v146195-ui .v146195-soul-detail-skill>details>summary::-webkit-details-marker{display:none!important}
html body.v146195-ui .v146195-soul-detail-skill>details>summary::before{content:"▸ ";color:#7ebba3!important}
html body.v146195-ui .v146195-soul-detail-skill>details[open]>summary::before{content:"▾ "}
html body.v146195-ui .v146195-soul-detail-skill>details>div{display:grid!important;gap:4px!important;padding-top:5px!important}
html body.v146195-ui .v146195-soul-detail-skill>details p{margin:0!important;font-size:8px!important;line-height:1.35!important;color:#b8c8c2!important}
html body.v146195-ui .v146195-soul-detail-skill>details small{font-size:6.5px!important;line-height:1.3!important;color:#81948d!important}

/* ===== css/v146196-dungeon-battle-soul-log-auction-recovery.css ===== */
/* Aldos RPG v1.146.196 — dungeon exchange/lobby live UI, battle roster/soul phase/log, auction mobile recovery. Existing assets only. */
html body.v146196-ui .v146196-exchange-picker-inline{
  box-sizing:border-box;display:grid;gap:9px;margin:12px 0 2px;padding:10px;border:1px solid rgba(112,194,151,.38);border-radius:14px;background:linear-gradient(180deg,rgba(7,31,29,.98),rgba(5,21,23,.99));min-width:0
}
html body.v146196-ui .v146196-exchange-picker-inline>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body.v146196-ui .v146196-exchange-picker-inline>header>div{display:grid;gap:2px;min-width:0}
html body.v146196-ui .v146196-exchange-picker-inline>header small{font:800 8px/1 system-ui;letter-spacing:.08em;color:#83cdb3}
html body.v146196-ui .v146196-exchange-picker-inline>header b{font:800 13px/1.15 system-ui;color:#f2eee4}
html body.v146196-ui .v146196-exchange-picker-inline>header>button{flex:0 0 34px;width:34px;height:34px;border:1px solid rgba(218,183,100,.36);border-radius:10px;background:#112a28;color:#efcc7c;font-size:22px;line-height:1}
html body.v146196-ui .v146196-exchange-picker-inline>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;color:#aab9b4;font-size:9px}
html body.v146196-ui .v146196-exchange-picker-inline select{min-width:0;width:100%;height:36px;padding:0 8px;border:1px solid rgba(114,177,154,.28);border-radius:9px;background:#0d2423;color:#f0eee6}
html body.v146196-ui .v146196-exchange-picker-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:250px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:1px}
html body.v146196-ui .v146196-exchange-pick{box-sizing:border-box;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:7px;min-width:0;min-height:72px;padding:7px;border:1px solid rgba(124,182,159,.24);border-radius:11px;background:rgba(9,29,28,.92);color:#ece8dc;text-align:left}
html body.v146196-ui .v146196-exchange-pick>span{display:grid;place-items:center;width:54px;height:58px;overflow:hidden}
html body.v146196-ui .v146196-exchange-pick>span :where(img,.v146194-exchange-item-image){max-width:100%;max-height:100%;object-fit:contain}
html body.v146196-ui .v146196-exchange-pick>div{display:grid;gap:2px;min-width:0}
html body.v146196-ui .v146196-exchange-pick small{font-size:7px;color:#8fc7b3}
html body.v146196-ui .v146196-exchange-pick b{font-size:9px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
html body.v146196-ui .v146196-exchange-pick em{font-size:7px;font-style:normal;color:#999f9b}
html body.v146196-ui .v146196-exchange-foot{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important}
html body.v146196-ui .v146196-exchange-leave-confirm{display:flex;gap:6px;align-items:center}
html body.v146196-ui .v146196-exchange-leave-confirm button{min-height:34px;padding:6px 9px;border-radius:9px;white-space:nowrap}

/* Real players are independent vertical stacks. A puppet/helper can never become a grid row that overlaps the next real player. */
html body.v146196-ui.v111-battle-active main.v101-battle .v101-player-roster>.v101-roster-scroll{
  display:flex!important;flex-direction:column!important;grid-template-columns:none!important;grid-auto-rows:unset!important;gap:6px!important;align-content:flex-start!important;overflow-y:auto!important;overflow-x:hidden!important;min-width:0!important;padding:5px!important
}
html body.v146196-ui.v111-battle-active main.v101-battle .v146196-player-stack{
  box-sizing:border-box;display:flex!important;flex-direction:column!important;gap:6px!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;position:relative!important;transform:none!important
}

html body.v146196-ui.v111-battle-active main.v101-battle .v146196-player-stack>:is(.v146175-puppet-card,.v146181-puppet-card){
  box-sizing:border-box!important;flex:0 0 84px!important;width:100%!important;height:84px!important;min-height:84px!important;max-height:84px!important;margin:0!important;position:relative!important;inset:auto!important;transform:none!important
}


/* Defeated souls have their own vertical list and must never inherit monster fixed-row geometry. */
html body.v146196-ui.v111-battle-active .v101-monster-roster.v146196-soul-roster>.v101-roster-scroll.v146196-soul-grid{
  display:flex!important;flex-direction:column!important;grid-template-columns:none!important;grid-auto-rows:unset!important;gap:7px!important;align-content:flex-start!important;overflow-y:auto!important;overflow-x:hidden!important;padding:5px!important
}
html body.v146196-ui.v111-battle-active .v146196-soul-grid>.v146181-corpse-card{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:62px minmax(0,1fr)!important;grid-template-areas:"art copy" "actions actions"!important;gap:7px!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:126px!important;max-height:none!important;margin:0!important;padding:8px!important;overflow:visible!important;position:relative!important;transform:none!important
}
html body.v146196-ui.v111-battle-active .v146196-soul-grid>.v146181-corpse-card>.v146181-corpse-art{grid-area:art!important;width:62px!important;height:70px!important;min-width:62px!important;overflow:hidden!important}
html body.v146196-ui.v111-battle-active .v146196-soul-grid>.v146181-corpse-card>.v146181-corpse-art :where(img,.battle-monster-art){width:100%!important;height:100%!important;object-fit:contain!important}
html body.v146196-ui.v111-battle-active .v146196-soul-grid>.v146181-corpse-card>span:not(.v146181-corpse-actions){grid-area:copy!important;min-width:0!important;display:grid!important;align-content:center!important;gap:3px!important}
html body.v146196-ui.v111-battle-active .v146196-soul-grid>.v146181-corpse-card>span>b{font-size:10px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v146196-ui.v111-battle-active .v146196-soul-grid>.v146181-corpse-card>span>em{font-size:7.5px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:break-word!important}
html body.v146196-ui.v111-battle-active .v146196-soul-grid .v146181-corpse-actions{grid-area:actions!important;display:grid!important;grid-template-columns:1fr!important;gap:5px!important;width:100%!important;min-width:0!important;position:static!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
html body.v146196-ui.v111-battle-active .v146196-soul-grid .v146181-devour-button{width:100%!important;min-height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;pointer-events:auto!important;opacity:1!important;visibility:visible!important;z-index:2!important}
html body.v146196-ui.v111-battle-active .v146196-soul-grid .v146181-devour-button img{width:24px!important;height:24px!important;object-fit:contain!important}

/* Auction: on phone the four sections become a stable 2x2 block; no clipped fourth tab. */
@media(max-width:760px){
  html body.v146196-ui .v146181-auction-shell>nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:44px!important;gap:6px!important;padding:7px 8px!important;overflow:visible!important}
  html body.v146196-ui .v146181-auction-tab{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:5px 7px!important;overflow:hidden!important}
  html body.v146196-ui .v146181-auction-tab b{display:block!important;font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body.v146196-ui .v146181-auction-page{padding:9px!important}
  html body.v146196-ui .v146181-lot-card{box-sizing:border-box!important;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;min-height:132px!important;height:auto!important;padding:10px!important;overflow:hidden!important}
  html body.v146196-ui .v146181-lot-copy{min-width:0!important;overflow:hidden!important}
  html body.v146196-ui .v146181-lot-copy>b{font-size:10px!important;white-space:normal!important;line-height:1.15!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
  html body.v146196-ui .v146181-lot-copy>div,html body.v146196-ui .v146181-lot-copy>footer{gap:5px 9px!important;line-height:1.25!important}
  html body.v146196-ui .v146195-own-lot-badge{grid-column:1/-1!important;width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:34px!important;padding:6px 9px!important;box-sizing:border-box!important}
  html body.v146196-ui .v146195-own-lot-badge b,html body.v146196-ui .v146195-own-lot-badge small{white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
  html body.v146196-ui .v146181-appraise-grid{grid-template-columns:1fr!important;gap:7px!important}
  html body.v146196-ui .v146181-appraise-item{grid-template-columns:58px minmax(0,1fr)!important;width:100%!important;min-width:0!important;min-height:78px!important;padding:7px 9px!important}
  html body.v146196-ui .v146181-appraise-item>span{width:54px!important;height:62px!important}
}
@media(max-width:420px){
  html body.v146196-ui .v146196-exchange-picker-items{grid-template-columns:1fr!important}
  html body.v146196-ui .v146196-exchange-foot{grid-template-columns:1fr!important}
  html body.v146196-ui .v146196-exchange-leave-confirm{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  
}

/* v1.146.220 — unanimous room transition / exchange readiness */
html body.v146220-ui .v146220-dungeon-ready{margin-bottom:5px!important}
html body.v146220-ui .v146220-dungeon-ready-note{margin:0!important;font-size:8px!important;line-height:1.3!important;color:#8ea09b!important;text-align:center!important}
html body.v146220-ui .v146135-retort-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin-top:8px!important}
html body.v146220-ui .v146135-retort-actions>button{width:100%!important;margin:0!important}
html body.v146220-ui .v146194-exchange-player.ready{border-color:rgba(85,205,145,.42)!important;box-shadow:inset 0 0 18px rgba(44,150,102,.08)!important}
html body.v146220-ui .v146194-exchange-owner>em{margin-left:auto!important;padding:3px 6px!important;border-radius:99px!important;background:rgba(74,189,132,.13)!important;color:#70d9a2!important;font-size:7px!important;font-style:normal!important;font-weight:900!important}

/* ===== css/v146197-battle-state-exchange-auction-recovery.css ===== */
/* Aldos RPG v1.146.197 — authoritative battle UI, exchange mini cards, auction appraisal list. Existing assets only. */

/* Battle: selection/action decoration exists only while the current player can really act. */
html body.v146197-ui.v111-battle-active .v101-monster-card:not(.selected-target) .v106-monster-action-overlay{display:none!important}
html body.v146197-ui.v111-battle-active .v106-monster-action-overlay{pointer-events:auto!important}
html body.v146197-ui.v111-battle-active .v106-monster-action-overlay .v106-round-attack:disabled,
html body.v146197-ui.v111-battle-active .v106-monster-action-overlay .v106-round-attack.disabled{opacity:.32!important;filter:grayscale(.65)!important;box-shadow:none!important}

/* Player, puppet and helper are independent rows. Effects keep their classic geometry. */
html body.v146197-ui.v111-battle-active main.v101-battle .v101-player-roster>.v101-roster-scroll{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;contain:layout paint!important
}
html body.v146197-ui.v111-battle-active main.v101-battle .v146196-player-stack{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;width:100%!important;min-width:0!important;flex:0 0 auto!important;contain:layout!important
}

html body.v146197-ui.v111-battle-active main.v101-battle .v146196-player-stack>:is(.v146175-puppet-card,.v146181-puppet-card){
  width:100%!important;min-width:0!important;flex:0 0 84px!important;height:84px!important;min-height:84px!important;max-height:84px!important;margin:0!important;transform:none!important
}



/* Room 16: the selector belongs to the owner's block, not to the bottom of the whole room. */
html body.v146197-ui .v146197-exchange .v146194-exchange-player{box-sizing:border-box;display:grid;gap:8px;min-width:0;padding:9px!important}
html body.v146197-ui .v146197-exchange .v146194-exchange-owner{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-width:0!important}
html body.v146197-ui .v146197-exchange .v146194-exchange-owner>span{grid-row:1!important;width:44px!important;height:44px!important}
html body.v146197-ui .v146197-exchange .v146194-exchange-owner>b{grid-column:2!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v146197-ui .v146197-exchange .v146194-exchange-slots{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important}
html body.v146197-ui .v146197-exchange .v146194-exchange-slot{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:82px!important;height:82px!important;margin:0!important;padding:5px!important;overflow:hidden!important}
html body.v146197-ui .v146197-exchange .v146194-exchange-slot.empty>span{font-size:24px!important;line-height:1!important}
html body.v146197-ui .v146197-exchange .v146194-exchange-slot.empty>small{font-size:7px!important;white-space:nowrap!important}

html body.v146197-ui .v146197-exchange-picker-inline{
  box-sizing:border-box;display:grid;gap:9px;width:100%;min-width:0;margin:2px 0 0;padding:9px;border:1px solid rgba(116,196,163,.34);border-radius:13px;background:linear-gradient(180deg,rgba(8,31,29,.98),rgba(5,21,23,.99))
}
html body.v146197-ui .v146197-exchange-picker-inline>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
html body.v146197-ui .v146197-exchange-picker-inline>header>div{display:grid;gap:2px;min-width:0}
html body.v146197-ui .v146197-exchange-picker-inline>header small{font:800 7px/1 system-ui;letter-spacing:.08em;color:#82cbb1}
html body.v146197-ui .v146197-exchange-picker-inline>header b{font:800 11px/1.15 system-ui;color:#f0eee6;white-space:normal}
html body.v146197-ui .v146197-exchange-picker-inline>header>button{width:32px;height:32px;flex:0 0 32px;border:1px solid rgba(217,182,96,.35);border-radius:9px;background:#102927;color:#efcc7b;font-size:20px}
html body.v146197-ui .v146197-exchange-targets{display:grid;gap:5px;min-width:0}
html body.v146197-ui .v146197-exchange-targets>small{font-size:7px;letter-spacing:.06em;color:#91aaa2}
html body.v146197-ui .v146197-exchange-targets>div{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding:1px 0 3px}
html body.v146197-ui .v146197-exchange-target{box-sizing:border-box;display:grid;grid-template-columns:34px minmax(60px,1fr);grid-template-rows:auto auto;column-gap:6px;align-items:center;flex:0 0 132px;min-width:132px;height:52px;padding:5px;border:1px solid rgba(123,173,154,.22);border-radius:10px;background:#0b2221;color:#e9e6dd;text-align:left}
html body.v146197-ui .v146197-exchange-target.selected{border-color:#b8d86a;box-shadow:inset 0 0 0 1px rgba(172,218,98,.25);background:#122b22}
html body.v146197-ui .v146197-exchange-target>span{grid-row:1/3;width:34px;height:40px;overflow:hidden;border-radius:8px}
html body.v146197-ui .v146197-exchange-target>span :where(img,.class-asset-image){width:100%;height:100%;object-fit:contain}
html body.v146197-ui .v146197-exchange-target>b{font-size:8px;line-height:1.05;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.v146197-ui .v146197-exchange-target>small{font-size:6.5px;color:#8ca29b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.v146197-ui .v146197-exchange-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:280px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:1px}
html body.v146197-ui .v146197-exchange-mini{box-sizing:border-box;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:7px;min-width:0;height:72px;padding:6px;border:1px solid rgba(119,174,153,.22);border-radius:10px;background:#0a211f;color:#ede9df;text-align:left;overflow:hidden}
html body.v146197-ui .v146197-exchange-mini .art{position:relative;display:grid;place-items:center;width:54px;height:58px;overflow:hidden;border-radius:8px;background:rgba(0,0,0,.16)}
html body.v146197-ui .v146197-exchange-mini .art :where(img,.v146194-exchange-item-image){max-width:100%;max-height:100%;object-fit:contain}
html body.v146197-ui .v146197-exchange-mini .art>i{position:absolute;right:2px;bottom:2px;padding:1px 3px;border-radius:5px;background:rgba(0,0,0,.78);font:800 7px/1 system-ui;color:#f6df96}
html body.v146197-ui .v146197-exchange-mini>div{display:grid;gap:2px;min-width:0}
html body.v146197-ui .v146197-exchange-mini small{font-size:6.5px;color:#89c7b0}
html body.v146197-ui .v146197-exchange-mini b{font-size:8px;line-height:1.12;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
html body.v146197-ui .v146197-exchange-mini em{font-size:6.5px;font-style:normal;color:#929e99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Auction appraisal inventory: always a compact real list. Decorative appraisal art appears only after selecting an item. */
html body.v146197-ui .v146197-appraise-list{box-sizing:border-box;display:grid;grid-template-columns:1fr;gap:7px;width:100%;min-width:0;padding:1px}
html body.v146197-ui .v146197-appraise-row{box-sizing:border-box;display:grid!important;grid-template-columns:62px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;height:82px!important;min-height:82px!important;max-height:82px!important;margin:0!important;padding:7px 9px!important;border:1px solid rgba(181,156,91,.28)!important;border-radius:12px!important;background:linear-gradient(180deg,rgba(17,30,30,.98),rgba(8,20,22,.99))!important;color:#eee9dc!important;text-align:left!important;overflow:hidden!important;box-shadow:none!important}
html body.v146197-ui .v146197-appraise-row::before,html body.v146197-ui .v146197-appraise-row::after{display:none!important;content:none!important}
html body.v146197-ui .v146197-appraise-art{display:grid!important;place-items:center!important;width:62px!important;height:68px!important;min-width:62px!important;overflow:hidden!important;background:rgba(0,0,0,.14)!important;border-radius:9px!important}
html body.v146197-ui .v146197-appraise-art :where(img,.v146181-auction-item-image){max-width:100%!important;max-height:100%!important;object-fit:contain!important}
html body.v146197-ui .v146197-appraise-copy{display:grid;gap:2px;min-width:0;align-content:center}
html body.v146197-ui .v146197-appraise-copy>small{font-size:7px;color:#b9a56a}
html body.v146197-ui .v146197-appraise-copy>b{font-size:10px;line-height:1.12;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body.v146197-ui .v146197-appraise-copy>em{font-size:7px;font-style:normal;color:#96a09d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.v146197-ui .v146197-appraise-row>strong{font:800 8px/1 system-ui;color:#efcf7b;white-space:nowrap}

/* Server semantic log accents. */
html body.v146197-ui .v79-log-entry.v146195-ally-damage mark.team-number{color:#ff817a!important;text-decoration-line:underline!important;text-decoration-color:#62d891!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}
html body.v146197-ui .v79-log-entry.v146195-enemy-event mark.team-number{color:#ff756f!important;text-decoration-line:underline!important;text-decoration-color:#ef5f5f!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}
html body.v146197-ui .v79-log-entry.v146195-ally-heal mark.team-number,html body.v146197-ui .v79-log-entry.v146195-ally-positive mark.team-number{color:#79e89e!important;text-decoration-line:underline!important;text-decoration-color:#61d68e!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}

@media(max-width:460px){
  html body.v146197-ui .v146197-exchange-items{grid-template-columns:1fr}
  html body.v146197-ui .v146197-exchange .v146194-exchange-slots{gap:4px!important}
  html body.v146197-ui .v146197-exchange .v146194-exchange-slot{height:76px!important;min-height:76px!important;padding:4px!important}
  html body.v146197-ui .v146197-appraise-row{grid-template-columns:56px minmax(0,1fr) auto!important;height:76px!important;min-height:76px!important;max-height:76px!important;padding:6px 7px!important}
  html body.v146197-ui .v146197-appraise-art{width:56px!important;min-width:56px!important;height:62px!important}
}

/* ===== css/v146199-stability-canonical.css ===== */
/* Aldos RPG v1.146.199 STABILITY — canonical battle/auction geometry.
   No generated assets. This file intentionally owns the final geometry of the
   components below so historical hotfixes cannot squeeze them again. */

/* Player card contract: 144px total, 30px effect rail. Puppets/helpers stay siblings. */






html body.v146199-ui.v111-battle-active main.v101-battle .v146196-player-stack>:is(.v146175-puppet-card,.v146181-puppet-card){
  width:100%!important;min-width:0!important;flex:0 0 84px!important;height:84px!important;min-height:84px!important;max-height:84px!important;margin:0!important;transform:none!important;
}

/* A puppet command locks only its own command controls; never gray the main skill drawer. */
html body.v146199-ui.v146199-puppet-command-pending [data-v177-puppet-skill],
html body.v146199-ui.v146199-puppet-command-pending [data-v146195-ally-target]{pointer-events:none!important;opacity:.55!important}
html body.v146199-ui.v146199-puppet-command-pending .v102-skill-drawer,
html body.v146199-ui.v146199-puppet-command-pending .v79-left-drawer{opacity:1!important;filter:none!important}

/* Structured battle-log accents remain visible for typed damage/heal/action values. */
html body.v146199-ui .v79-log-entry.v146195-ally-damage mark.team-number{color:#ff817a!important;text-decoration-line:underline!important;text-decoration-color:#62d891!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}
html body.v146199-ui .v79-log-entry.v146195-enemy-event mark.team-number{color:#ff756f!important;text-decoration-line:underline!important;text-decoration-color:#ef5f5f!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}
html body.v146199-ui :is(.v79-log-entry.v146195-ally-heal,.v79-log-entry.v146195-ally-positive) mark.team-number{color:#79e89e!important;text-decoration-line:underline!important;text-decoration-color:#61d68e!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}

/* Auction runtime recovery: keep the four real tabs and compact appraisal list in bounds. */
html body.v146199-ui .v146199-auction-runtime{min-width:0!important;width:100%!important}
html body.v146199-ui .v146199-auction-runtime>nav{box-sizing:border-box!important;width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important}
html body.v146199-ui .v146199-auction-runtime>nav>.v146181-auction-tab{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important}
html body.v146199-ui .v146181-appraisal-result{box-sizing:border-box!important;max-width:100%!important;overflow:hidden!important}

@media(min-width:680px){
  html body.v146199-ui .v146199-auction-runtime>nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* ===== css/v146201-necromancer-puppeteer.css ===== */
/* ALDOS RPG v1.146.201 — Necromancer Puppeteer mechanics only.
   v1.146.202 restores the established v200 monster/puppet card geometry.
   Keep only lifecycle/state rules introduced by v201; card dimensions are not owned here. */

/* Network command in-flight state only affects command controls, never the main skill drawer. */
html body.v146201-ui.v146201-puppet-command-pending [data-v177-puppet-skill],
html body.v146201-ui.v146201-puppet-command-pending [data-v146195-ally-target]{pointer-events:none!important;opacity:.58!important}
html body.v146201-ui.v146201-puppet-command-pending :is(.v102-skill-drawer,.v79-left-drawer,.v102-skill-grid,.v102-skill-card){}

/* Two-stage Soul Book progress. */
html body.v146201-ui .v146201-soul-stages{display:flex!important;flex-direction:column!important;gap:2px!important;margin:5px 0!important;min-width:0!important}
html body.v146201-ui .v146201-soul-stages>span{font-size:10px!important;line-height:1.25!important;color:#b7c2ce!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Historical soul/corpse intermission is gone in v201. */
html body.v146201-ui :is(.v146196-soul-grid,.v146196-soul-roster,[data-v146181-devour],.v146181-corpse-card,.v146196-corpse-card){display:none!important}

/* ===== css/v146202-necromancer-battle-polish.css ===== */
/* v1.146.219: old roster/effect geometry retired; semantic log/vault rules retained. */
/* -------------------------------------------------------------------------- */
/* 3. COMBAT LOG: exact semantic color always wins over whole-line damage.   */
/* -------------------------------------------------------------------------- */
html body.v146202-ui .v79-log-entry mark.ally-positive-number,
html body.v146202-ui .v79-log-entry.v146195-ally-damage mark.ally-positive-number{
  color:#79e89e!important;
  text-decoration-line:underline!important;
  text-decoration-color:#61d68e!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:3px!important;
}
html body.v146202-ui .v79-log-entry mark.enemy-number,
html body.v146202-ui .v79-log-entry.v146195-enemy-event mark.enemy-number{
  color:#ff756f!important;
  text-decoration-line:underline!important;
  text-decoration-color:#ef5f5f!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:3px!important;
}

/* -------------------------------------------------------------------------- */
/* 4. SOUL VAULT: prepared strip and catalogue must not touch/overlap.        */
/* -------------------------------------------------------------------------- */
html body.v146202-ui .v146181-vault-shell>.v146181-catalog{
  box-sizing:border-box!important;
  margin-top:7px!important;
  padding-top:5px!important;
}
html body.v146202-ui .v146181-vault-shell .v146181-soul-grid{
  box-sizing:border-box!important;
  padding-top:7px!important;
  scroll-padding-top:7px!important;
  align-content:start!important;
}

@media(max-width:520px){
  html body.v146202-ui .v146181-vault-shell>.v146181-catalog{margin-top:6px!important;padding-top:4px!important}
  html body.v146202-ui .v146181-vault-shell .v146181-soul-grid{padding-top:6px!important;scroll-padding-top:6px!important}
}

/* ===== css/v146203-battle-effect-vault-alignment.css ===== */
/* v1.146.219: old player-effect geometry retired; vault rules retained. */
/* -------------------------------------------------------------------------- */
/* 2. SOUL VAULT: catalogue begins cleanly below prepared souls.              */
/*    Scroll snapping prevents a half-card from sitting against the divider.  */
/* -------------------------------------------------------------------------- */
html body.v146203-ui .v146181-vault-shell>.v146181-catalog{
  box-sizing:border-box!important;
  margin-top:10px!important;
  padding-top:8px!important;
  overflow:hidden!important;
}
html body.v146203-ui .v146181-vault-shell .v146181-soul-grid{
  box-sizing:border-box!important;
  padding-top:10px!important;
  scroll-padding-top:10px!important;
  scroll-snap-type:y proximity!important;
  align-content:start!important;
}
html body.v146203-ui .v146181-vault-shell .v146181-soul-card{
  scroll-snap-align:start!important;
  scroll-snap-stop:normal!important;
}

@media(max-width:520px){
  html body.v146203-ui .v146181-vault-shell>.v146181-catalog{margin-top:9px!important;padding-top:7px!important}
  html body.v146203-ui .v146181-vault-shell .v146181-soul-grid{padding-top:9px!important;scroll-padding-top:9px!important}
}

/* ===== css/v146204-necromancer-turn-effects-vault-height.css ===== */
/* v1.146.219: old combat effect geometry retired; vault height rules retained. */
/* -------------------------------------------------------------------------- */
/* 2. SOUL VAULT: physically extend the whole panel DOWN instead of trying    */
/*    to hide overlap with scroll tricks. More real catalogue viewport.       */
/* -------------------------------------------------------------------------- */
html body.v146204-ui .modal.v146181-vault-modal{
  width:min(96vw,500px)!important;
  height:auto!important;
  aspect-ratio:509/720!important;
  max-width:500px!important;
  max-height:96dvh!important;
  overflow:visible!important;
}
html body.v146204-ui .v146181-vault-shell{
  height:100%!important;
  min-height:0!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
}
html body.v146204-ui .v146181-vault-shell>.v146181-catalog{
  min-height:0!important;
  margin-top:10px!important;
  padding-top:8px!important;
  overflow:hidden!important;
}
html body.v146204-ui .v146181-vault-shell .v146181-soul-grid{
  min-height:0!important;
  align-content:start!important;
  padding-top:10px!important;
  padding-bottom:14px!important;
  scroll-padding-top:10px!important;
  scroll-snap-type:none!important;
}
html body.v146204-ui .v146181-vault-shell .v146181-soul-card{
  flex:none!important;
  scroll-snap-align:none!important;
}

@media(max-width:520px){
  html body.v146204-ui .modal.v146181-vault-modal{
    width:calc(100vw - 10px)!important;
    height:auto!important;
    aspect-ratio:509/760!important;
    max-height:96dvh!important;
  }
  html body.v146204-ui .v146181-vault-shell>.v146181-catalog{margin-top:10px!important;padding-top:8px!important}
  html body.v146204-ui .v146181-vault-shell .v146181-soul-grid{padding-top:10px!important;padding-bottom:16px!important;scroll-padding-top:10px!important}
}

/* Very short screens: stay inside viewport, catalogue remains the scroller. */
@media(max-height:700px){
  html body.v146204-ui .modal.v146181-vault-modal{max-height:96dvh!important}
}

/* ===== css/v146205-private-refresh-timer-passive-vault-recovery.css ===== */
/* v1.146.219: old battle status rail retired; vault rules retained. */
/* Soul Vault: v204 still inherited max-width:500px from the old authored-aspect
   layout, so changing aspect-ratio barely created any extra vertical room.
   v205 releases that cap on mobile and gives the panel a real explicit height. */
html body.v146205-ui .modal.v146181-vault-modal{
  box-sizing:border-box!important;width:min(96vw,560px)!important;max-width:560px!important;
  height:min(90dvh,900px)!important;max-height:90dvh!important;aspect-ratio:auto!important;
  overflow:visible!important;
}
html body.v146205-ui .v146181-vault-shell{
  box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;overflow:hidden!important;
}
html body.v146205-ui .v146181-vault-shell>.v146181-catalog{
  min-height:0!important;margin-top:10px!important;padding-top:8px!important;overflow:hidden!important;
}
html body.v146205-ui .v146181-vault-shell .v146181-soul-grid{
  min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;
  align-content:start!important;padding-top:10px!important;padding-bottom:18px!important;
}

@media(max-width:760px){
  html body.v146205-ui .modal.v146181-vault-modal{
    width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important;
    height:min(92dvh,1040px)!important;max-height:92dvh!important;aspect-ratio:auto!important;
  }
}
@media(max-height:760px){
  html body.v146205-ui .modal.v146181-vault-modal{height:94dvh!important;max-height:94dvh!important}
}

/* ===== css/v146206-necromancer-battle-vault-recovery.css ===== */
/* v1.146.219: historical battle rail/skill overrides retired; vault rules retained. */
/* Soul Vault: compact shell, but cards are a true sequential vertical flow.
   No grid-row virtualization/containment can make one card paint over another. */
html body.v146206-ui .modal.v146181-vault-modal{
  box-sizing:border-box!important;width:min(94vw,540px)!important;max-width:540px!important;
  height:min(78dvh,780px)!important;max-height:min(78dvh,780px)!important;
  aspect-ratio:auto!important;overflow:visible!important;
}
html body.v146206-ui .v146181-vault-shell{
  box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;overflow:hidden!important;
}
html body.v146206-ui .v146181-vault-shell>.v146181-catalog{
  box-sizing:border-box!important;min-height:0!important;margin-top:7px!important;padding:5px 5px 0!important;
  display:block!important;overflow:hidden!important;
}
html body.v146206-ui .v146181-vault-shell .v146181-soul-grid{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:10px!important;width:100%!important;height:100%!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;padding:6px 3px 14px!important;margin:0!important;
  scroll-snap-type:none!important;scroll-padding:6px!important;overscroll-behavior:contain!important;
}
html body.v146206-ui .v146181-vault-shell .v146181-soul-card{
  box-sizing:border-box!important;position:relative!important;display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:stretch!important;
  gap:8px!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:172px!important;
  margin:0!important;padding:7px 8px 7px 5px!important;overflow:hidden!important;
  content-visibility:visible!important;contain:none!important;contain-intrinsic-size:auto!important;
}
html body.v146206-ui .v146181-vault-shell .v146181-soul-card+.v146181-soul-card{margin-top:0!important}
html body.v146206-ui .v146181-vault-shell .v146181-soul-copy{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-items:stretch!important;gap:3px!important;min-width:0!important;min-height:156px!important;height:auto!important;overflow:visible!important;
}
html body.v146206-ui .v146181-vault-shell .v146181-soul-select{
  position:static!important;display:block!important;width:100%!important;min-height:28px!important;height:auto!important;
  margin:4px 0 0!important;align-self:stretch!important;transform:none!important;
}

/* Great/boss soul assets already carry a large authored red frame. Do not put
   that artwork inside the additional green prepared-soul frame. */
html body.v146206-ui .v146181-soul-summon-card.special .v146184-summon-art-frame{
  box-sizing:border-box!important;width:104px!important;height:116px!important;min-width:104px!important;min-height:116px!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:2px!important;overflow:hidden!important;
  background:none!important;transform:none!important;
}
html body.v146206-ui .v146181-soul-summon-card.special .v146184-summon-art-frame::before,
html body.v146206-ui .v146181-soul-summon-card.special .v146184-summon-art-frame::after{content:none!important;display:none!important}
html body.v146206-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important;
}

/* ===== css/v146207-necromancer-arsenal-effects-recovery.css ===== */
/* v1.146.219: historical battle rail retired; status/travel/summon rules retained. */
/* --------------------------------------------------------------------------
   2. Status help: smaller copy, exact server-provided numbers remain readable.
   -------------------------------------------------------------------------- */
html body.v146207-ui .v146119-status-copy{max-height:112px!important;padding:8px 10px!important}
html body.v146207-ui .v146119-status-copy>p{
  font-size:11px!important;line-height:1.34!important;letter-spacing:0!important;overflow-wrap:anywhere!important;
}

/* --------------------------------------------------------------------------
   3. Next-location description: actual visible touch scrollbar.
   -------------------------------------------------------------------------- */
html body.v146207-ui .v146119-travel-description,
html body.v146207-ui .v146120-travel-description{
  overflow-y:scroll!important;overflow-x:hidden!important;scrollbar-width:thin!important;
  scrollbar-color:#d68b2c rgba(3,18,21,.42)!important;padding-right:7px!important;touch-action:pan-y!important;
}
html body.v146207-ui .v146119-travel-description::-webkit-scrollbar,
html body.v146207-ui .v146120-travel-description::-webkit-scrollbar{display:block!important;width:5px!important}
html body.v146207-ui .v146119-travel-description::-webkit-scrollbar-track,
html body.v146207-ui .v146120-travel-description::-webkit-scrollbar-track{background:rgba(3,18,21,.42)!important;border-radius:99px!important}
html body.v146207-ui .v146119-travel-description::-webkit-scrollbar-thumb,
html body.v146207-ui .v146120-travel-description::-webkit-scrollbar-thumb{background:#d68b2c!important;border-radius:99px!important}

/* --------------------------------------------------------------------------
   4. Summon picker: bosses use the same prepared-soul frame family as mobs.
   No new image: reuse prepared_slot_selected.webp already used by normal souls.
   -------------------------------------------------------------------------- */
html body.v146207-ui .v146181-soul-summon-card.special{grid-template-columns:108px minmax(0,1fr)!important;align-items:center!important;}
html body.v146207-ui .v146181-soul-summon-card.special .v146184-summon-art-frame,
html body.v146207-ui .v146181-soul-summon-card .v146184-summon-art-frame{
  box-sizing:border-box!important;width:104px!important;min-width:104px!important;max-width:104px!important;
  height:116px!important;min-height:116px!important;max-height:116px!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:17px!important;overflow:visible!important;
  background:url("../assets/v146181/necromancer/prepared_slot_selected.webp") center/100% 100% no-repeat!important;
  transform:none!important;
}
html body.v146207-ui .v146181-soul-summon-card.special .v146184-summon-art-frame::before,
html body.v146207-ui .v146181-soul-summon-card.special .v146184-summon-art-frame::after{content:none!important}
html body.v146207-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img,
html body.v146207-ui .v146181-soul-summon-card .v146184-summon-art-frame img{
  display:block!important;width:68px!important;min-width:68px!important;max-width:68px!important;
  height:73px!important;min-height:73px!important;max-height:73px!important;
  object-fit:contain!important;object-position:center center!important;margin:0!important;padding:0!important;transform:none!important;
  filter:drop-shadow(0 4px 5px #000)!important;
}

/* Enhanced bat and every other existing monster asset stay centered in both
   location and battle frames; no per-monster transform can push art sideways. */
html body.v146207-ui :is(.v119-monster-art,.v93-mob-art,.v101-monster-card>.v101-unit-art) :is(img.monster-asset-image,img.battle-monster-art,img){
  object-fit:contain!important;object-position:center center!important;margin-left:auto!important;margin-right:auto!important;transform:none!important;
}

@media(max-width:520px){
  html body.v146207-ui .v146181-soul-summon-card.special{grid-template-columns:94px minmax(0,1fr)!important;}
  html body.v146207-ui .v146181-soul-summon-card.special .v146184-summon-art-frame,
  html body.v146207-ui .v146181-soul-summon-card .v146184-summon-art-frame{width:92px!important;min-width:92px!important;max-width:92px!important;height:104px!important;min-height:104px!important;max-height:104px!important;padding:15px!important}
  html body.v146207-ui .v146181-soul-summon-card.special .v146184-summon-art-frame img,
  html body.v146207-ui .v146181-soul-summon-card .v146184-summon-art-frame img{width:62px!important;min-width:62px!important;max-width:62px!important;height:67px!important;min-height:67px!important;max-height:67px!important}
}

/* ===== css/v146208-legendary-loot-auction-side-menu.css ===== */
/* Aldos RPG v1.146.208 — legendary / loot / auction / supplied side-menu assets */

/* Supplied side-menu art: same calm geometry for every entry. */
.v146208-ui .v119-side-nav .v146208-side-art{
  width:44px!important;height:44px!important;min-width:44px!important;
  display:grid!important;place-items:center!important;overflow:hidden!important;
  border-radius:12px!important;padding:0!important;background:rgba(5,20,22,.7)!important;
}
.v146208-ui .v119-side-nav .v146208-side-art img{
  width:100%!important;height:100%!important;display:block!important;
  object-fit:contain!important;object-position:center!important;transform:none!important;
}

/* Puppet roster card: abilities are text labels, never extra square icon assets. */
.v146208-ui .v146181-puppet-card .v146181-puppet-skills{display:none!important}
.v146208-ui .v146208-puppet-skill-summary{
  display:flex;gap:4px;min-width:0;max-width:100%;overflow:hidden;
  margin-top:4px;align-items:center;white-space:nowrap;
}
.v146208-ui .v146208-puppet-skill-summary span{
  min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  font-size:10px;line-height:1.15;color:rgba(223,235,231,.68);
}
.v146208-ui .v146208-puppet-skill-summary span+span::before{content:"·";margin-right:4px;color:#8db6a8}

/* Auction shell: existing v146181 artwork remains authoritative. */
.v146208-ui .v146181-auction-shell{
  background:
    linear-gradient(rgba(4,7,9,.17),rgba(4,7,9,.38)),
    url("../assets/v146181/auction/auction_hall.webp") center/cover no-repeat!important;
}
.v146208-ui .v146181-auction-head{
  background-image:url("../assets/v146181/auction/auction_header.webp")!important;
  background-size:100% 100%!important;background-position:center!important;
}

/* Appraisal inventory: clean 2-column cards like the appraisal references. */
.v146208-ui .v146208-appraise-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;padding:6px 8px 20px!important;
}
.v146208-ui .v146208-appraise-card{
  position:relative;appearance:none;border:0;background:transparent!important;
  min-width:0;aspect-ratio:0.72;overflow:hidden;padding:12px 10px 11px!important;
  display:grid;grid-template-rows:minmax(0,1fr) auto auto;align-items:end;
  color:#f5efe2;text-align:center;isolation:isolate;
}
.v146208-ui .v146208-appraise-card::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background-image:var(--v208-appraise-card);background-size:100% 100%;background-repeat:no-repeat;
  filter:saturate(.94) brightness(.96);
}
.v146208-ui .v146208-appraise-art{
  align-self:stretch;display:grid;place-items:center;min-height:0;padding:20% 8% 4%;
}
.v146208-ui .v146208-appraise-art .v146181-auction-item-image,
.v146208-ui .v146208-appraise-art img{
  width:100%!important;height:100%!important;max-height:160px!important;
  object-fit:contain!important;object-position:center!important;transform:none!important;
}
.v146208-ui .v146208-appraise-name{min-width:0;padding:0 7px 4px}
.v146208-ui .v146208-appraise-name small{display:block;font-size:10px;line-height:1.2;color:#9eaa9f}
.v146208-ui .v146208-appraise-name b{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  min-height:2.45em;font-size:14px;line-height:1.18;color:#fff8e8;overflow-wrap:anywhere;
}
.v146208-ui .v146208-appraise-card>strong{
  justify-self:center;font-size:11px;line-height:1;color:#d9f2c0;padding:5px 10px 7px;
}

/* Appraisal result and listing choices. */
.v146208-ui .v146208-listing-controls{display:grid!important;gap:12px!important}
.v146208-ui .v146208-listing-controls h4{margin:0 0 7px;font-size:13px;color:#e7ddbd}
.v146208-ui .v146208-price-banner{
  display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center;
  padding:10px 12px;border:1px solid rgba(188,151,77,.42);border-radius:14px;
  background:rgba(8,19,20,.9);
}
.v146208-ui .v146208-price-banner>img{width:50px;height:50px;object-fit:contain}
.v146208-ui .v146208-price-banner div{display:grid;gap:2px;min-width:0}
.v146208-ui .v146208-price-banner small{font-size:9px;letter-spacing:.08em;color:#9ba8a0}
.v146208-ui .v146208-price-banner strong{font-size:22px;line-height:1.1;color:#f3d77c}
.v146208-ui .v146208-price-banner em{font-style:normal;font-size:10px;color:#a9bab4}
.v146208-ui .v146208-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.v146208-ui .v146208-auction-choice{
  min-height:102px;border:1px solid rgba(131,135,142,.35);border-radius:14px;padding:12px 10px;
  background:linear-gradient(rgba(7,12,16,.65),rgba(7,12,16,.86)),var(--v208-choice) center/100% 100% no-repeat;
  color:#f2eee3;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;text-align:left;
}
.v146208-ui .v146208-auction-choice b{font-size:13px;line-height:1.15}
.v146208-ui .v146208-auction-choice small{font-size:9px;line-height:1.25;color:#aab4b2}
.v146208-ui .v146208-auction-choice.selected{
  border-color:#dfbd66;box-shadow:inset 0 0 0 1px rgba(223,189,102,.38),0 0 14px rgba(152,117,47,.18);
}
.v146208-ui .v146208-price-input{display:grid!important;gap:5px!important}
.v146208-ui .v146208-price-input span{font-size:12px;color:#d5d9d3}
.v146208-ui .v146208-price-input input{
  width:100%;min-height:50px;border-radius:13px;border:1px solid rgba(208,170,82,.45);
  background:#071417;color:#f4dc82;font-size:20px;font-weight:800;padding:0 14px;box-sizing:border-box;
}
.v146208-ui .v146208-price-input small{font-size:10px;color:#9aa9a4}
.v146208-ui .v146208-duration-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.v146208-ui .v146208-duration-choice{
  min-width:0;min-height:58px;border-radius:12px;border:1px solid rgba(104,120,119,.35);
  background:rgba(7,18,20,.92);color:#e8dfc6;display:grid;place-items:center;grid-template-columns:24px auto;gap:3px;padding:6px;
}
.v146208-ui .v146208-duration-choice img{width:24px;height:24px;object-fit:contain}
.v146208-ui .v146208-duration-choice b{font-size:11px;white-space:nowrap}
.v146208-ui .v146208-duration-choice.selected{border-color:#dfbd66;background:rgba(40,34,18,.92);color:#ffe59b}
.v146208-ui .v146208-list-actions{display:grid!important;grid-template-columns:1fr 1.3fr;gap:8px}

/* Market cards: keep item and price hierarchy stable and readable. */
.v146208-ui .v146181-lot-card .v146181-lot-copy>b{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  line-height:1.18;overflow-wrap:anywhere;
}
.v146208-ui .v146181-lot-card .v146181-lot-copy strong{font-size:1.06em;color:#f1d57a}
.v146208-ui .v146181-claim-row small{overflow-wrap:anywhere}

/* The appraisal result must never look like a technical placeholder. */
.v146208-ui .v146184-appraisal-final b{font-size:clamp(28px,7vw,42px)!important;color:#f3d77c!important}

@media (max-width:380px){
  .v146208-ui .v146208-appraise-grid{gap:6px;padding-inline:4px!important}
  .v146208-ui .v146208-appraise-card{padding-inline:6px!important}
  .v146208-ui .v146208-duration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== css/v146210-rollback-ui-rebuild.css ===== */
/* v1.146.219: historical battle section retired; side-menu/auction rules retained. */
/* ========================================================================== 
   2. SIDE MENU — keep the old two-column menu; only integrate supplied art.
   The source PNGs already have a frame and black edge, so crop the dead edge
   instead of drawing a second frame around them.
   ========================================================================== */
html body.v146210-ui .v119-side-nav>button.v146210-side-supplied{
  box-sizing:border-box!important;
  grid-template-rows:64px 28px!important;
  align-content:center!important;
  overflow:hidden!important;
}
html body.v146210-ui .v119-side-nav>button.v146210-side-supplied .v146210-side-art{
  box-sizing:border-box!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;
  padding:0!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;
  overflow:hidden!important;place-self:center!important;
}
html body.v146210-ui .v119-side-nav>button.v146210-side-supplied .v146210-side-art img{
  display:block!important;width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important;
  max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;
  margin:-5px!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important;
}
html body.v146210-ui .v119-side-nav>button.v146210-side-supplied>span:not(.v83-side-icon){
  box-sizing:border-box!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  width:100%!important;min-width:0!important;max-width:100%!important;min-height:24px!important;max-height:28px!important;
  white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;
  font-size:9.5px!important;line-height:1.15!important;text-align:center!important;font-weight:800!important;
}

/* ========================================================================== 
   3. AUCTION — robust header, compact catalogue and real claim cards.
   ========================================================================== */
html body.v146210-ui .v146181-auction-head.v146210-auction-head{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;
  align-items:center!important;gap:9px!important;min-height:78px!important;padding:8px 66px 8px 10px!important;overflow:hidden!important;
}
html body.v146210-ui .v146210-auction-head>img{
  width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;object-fit:contain!important;
}
html body.v146210-ui .v146210-auction-title{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;
  align-content:center!important;gap:1px!important;min-width:0!important;overflow:hidden!important;
}
html body.v146210-ui .v146210-auction-title>small{
  display:block!important;min-width:0!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v146210-ui .v146210-auction-title>h2{
  display:block!important;margin:0!important;min-width:0!important;max-width:100%!important;font-size:22px!important;line-height:1.02!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v146210-ui .v146210-auction-balance{
  display:block!important;margin:2px 0 0!important;justify-self:start!important;max-width:100%!important;
  color:#e8c86f!important;font-size:10px!important;line-height:1!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
/* Return to the stable mobile 2x2 navigation geometry. */
html body.v146210-ui .v146199-auction-runtime>nav{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:44px!important;gap:6px!important;padding:7px 8px!important;overflow:visible!important;position:relative!important;
}
html body.v146210-ui .v146199-auction-runtime>nav>.v146181-auction-tab{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;max-height:44px!important;padding:5px 7px!important;
}
html body.v146210-ui .v146199-auction-runtime>nav>.v146181-auction-tab b{font-size:9px!important;line-height:1.05!important}

/* Appraisal catalogue: two stable cards per row, no giant empty paper area. */
html body.v146210-ui .v146208-appraise-grid{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;padding:7px 7px 20px!important;align-items:start!important;
}
html body.v146210-ui .v146208-appraise-card{
  box-sizing:border-box!important;aspect-ratio:auto!important;height:214px!important;min-height:214px!important;max-height:214px!important;
  display:grid!important;grid-template-rows:124px 55px 23px!important;align-items:stretch!important;padding:7px 7px 5px!important;overflow:hidden!important;
}
html body.v146210-ui .v146208-appraise-art{
  box-sizing:border-box!important;height:124px!important;min-height:124px!important;max-height:124px!important;padding:10px 8px 2px!important;display:grid!important;place-items:center!important;
}
html body.v146210-ui .v146208-appraise-art :is(.v146181-auction-item-image,img){
  width:100%!important;height:100%!important;max-width:100%!important;max-height:112px!important;object-fit:contain!important;object-position:center!important;transform:none!important;
}
html body.v146210-ui .v146208-appraise-name{
  box-sizing:border-box!important;height:55px!important;min-height:55px!important;display:grid!important;grid-template-rows:14px minmax(0,1fr)!important;align-content:start!important;gap:2px!important;padding:2px 4px!important;
}
html body.v146210-ui .v146208-appraise-name small{
  font-size:8px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body.v146210-ui .v146208-appraise-name b{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;min-height:0!important;max-height:2.35em!important;
  font-size:11px!important;line-height:1.16!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;
}
html body.v146210-ui .v146208-appraise-card>strong{font-size:9px!important;line-height:1!important;padding:3px 5px!important}

/* Listing controls: keep v208 art, but remove ambiguous zero upper-bound text. */
html body.v146210-ui .v146208-listing-controls{gap:10px!important}
html body.v146210-ui .v146208-price-input small{min-height:1.25em!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v146210-ui .v146208-duration-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
html body.v146210-ui .v146208-duration-choice{min-height:54px!important}

/* Storage: one readable claim card per row. */
html body.v146210-ui .v146181-claim-columns{grid-template-columns:1fr!important;gap:12px!important}
html body.v146210-ui .v146181-claim-row.v146210-storage-card{
  box-sizing:border-box!important;display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;
  grid-template-rows:minmax(74px,auto) 38px!important;gap:8px 10px!important;align-items:center!important;
  width:100%!important;min-width:0!important;min-height:126px!important;padding:10px 11px!important;margin:0 0 8px!important;overflow:hidden!important;
}
html body.v146210-ui .v146181-claim-row.v146210-storage-card>span,
html body.v146210-ui .v146181-claim-row.v146210-storage-card>.v146181-claim-emblem{
  grid-column:1!important;grid-row:1!important;width:70px!important;height:72px!important;display:grid!important;place-items:center!important;overflow:hidden!important;
}
html body.v146210-ui .v146181-claim-row.v146210-storage-card>span img,
html body.v146210-ui .v146181-claim-row.v146210-storage-card>.v146181-claim-emblem{
  width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;
}
html body.v146210-ui .v146181-claim-row.v146210-storage-card>div{
  grid-column:2!important;grid-row:1!important;display:grid!important;gap:3px!important;min-width:0!important;
}
html body.v146210-ui .v146181-claim-row.v146210-storage-card b{
  font-size:12px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
html body.v146210-ui .v146181-claim-row.v146210-storage-card small{font-size:8px!important;line-height:1.25!important;white-space:normal!important}
html body.v146210-ui .v146181-claim-row.v146210-storage-card>.v146181-auction-button{
  grid-column:1/-1!important;grid-row:2!important;width:100%!important;justify-self:stretch!important;min-height:36px!important;margin:0!important;
}

/* Keep the v207 travel description behaviour exactly: visible scrollbar when needed. */
html body.v146210-ui .v146119-travel-description,
html body.v146210-ui .v146120-travel-description{
  max-height:122px!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:7px!important;
  scrollbar-width:thin!important;scrollbar-color:#d68b2c rgba(3,18,21,.42)!important;
}
html body.v146210-ui .v146119-travel-description::-webkit-scrollbar,
html body.v146210-ui .v146120-travel-description::-webkit-scrollbar{display:block!important;width:5px!important}
html body.v146210-ui .v146119-travel-description::-webkit-scrollbar-thumb,
html body.v146210-ui .v146120-travel-description::-webkit-scrollbar-thumb{background:#d68b2c!important;border-radius:99px!important}

@media(max-width:390px){
  html body.v146210-ui .v146208-appraise-grid{gap:6px!important;padding-inline:4px!important}
  html body.v146210-ui .v146208-appraise-card{height:204px!important;min-height:204px!important;max-height:204px!important;grid-template-rows:116px 53px 23px!important}
  html body.v146210-ui .v146208-appraise-art{height:116px!important;min-height:116px!important;max-height:116px!important}
  html body.v146210-ui .v146210-auction-title>h2{font-size:20px!important}
  html body.v146210-ui .v119-side-nav>button.v146210-side-supplied>span:not(.v83-side-icon){font-size:9px!important}
}

/* v1.146.220 — exact attribute bonuses / threshold presentation (canonical profile extension) */
html body.v146220-ui .v39-attr-card{min-height:64px!important;grid-template-rows:auto auto!important;align-content:center!important}
html body.v146220-ui .v39-attr-card>.v146220-attr-current-boost{grid-column:1/-1!important;display:block!important;max-width:100%!important;margin:1px 2px 0!important;font-style:normal!important;font-size:7.5px!important;line-height:1.15!important;color:#d7bd76!important;white-space:normal!important;text-align:center!important;overflow-wrap:anywhere!important}
html body.v146220-ui .v146220-attribute-percentages{margin:10px 0!important;padding:10px!important;border:1px solid rgba(207,173,86,.24)!important;border-radius:12px!important;background:rgba(7,24,25,.82)!important}
html body.v146220-ui .v146220-attribute-percentages>small{display:block!important;margin-bottom:7px!important;font-size:8px!important;letter-spacing:.12em!important;color:#a9b5af!important}
html body.v146220-ui .v146220-attribute-percentages>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
html body.v146220-ui .v146220-attribute-percentages span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;padding:7px 8px!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:9px!important;background:rgba(255,255,255,.025)!important}
html body.v146220-ui .v146220-attribute-percentages b{font-size:8px!important;color:#c5d0ca!important}
html body.v146220-ui .v146220-attribute-percentages em{font-style:normal!important;font-size:10px!important;font-weight:900!important;color:#e6c66d!important;white-space:nowrap!important}

/* ===== css/v146212-battle-history-side-menu.css ===== */
/* ALDOS RPG v1.146.212 — battle history + supplied side-menu art cleanup.
   Existing image assets only. FULL NO-WIPE. */

/* --------------------------------------------------------------------------
   1. SIDE MENU — keep the calm old card geometry, crop only the black outer
      margin baked into the supplied PNGs. The artwork itself is not redrawn.
   -------------------------------------------------------------------------- */
html body.v146212-ui .v119-side-nav>button.v146210-side-supplied{
  position:relative!important;isolation:isolate!important;
  background-image:linear-gradient(155deg,rgba(9,36,36,.78),rgba(3,17,21,.94)),url("../assets/v146103/ui/merchant/merchant-tab-surface.webp")!important;
  box-shadow:inset 0 0 16px rgba(0,0,0,.20)!important;
}
html body.v146212-ui .v119-side-nav>button.v146210-side-supplied .v146210-side-art{
  width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;
  padding:0!important;border:0!important;border-radius:13px!important;background:transparent!important;
  box-shadow:none!important;overflow:hidden!important;display:grid!important;place-items:center!important;
}
html body.v146212-ui .v119-side-nav>button.v146210-side-supplied .v146210-side-art img{
  width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;
  max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;
  object-fit:cover!important;object-position:center!important;background:transparent!important;
  transform:translate(var(--v212-side-x,0),var(--v212-side-y,0)) scale(var(--v212-side-scale,1))!important;
  transform-origin:center!important;
}
/* Individual source files have different baked black margins. */
html body.v146212-ui [data-side-kind="character"]{--v212-side-scale:1.20;--v212-side-x:-4%;--v212-side-y:-2.5%}
html body.v146212-ui [data-side-kind="quests"]{--v212-side-scale:1.10;--v212-side-x:0%;--v212-side-y:0%}
html body.v146212-ui [data-side-kind="abilities"]{--v212-side-scale:1.035;--v212-side-x:0%;--v212-side-y:0%}
html body.v146212-ui [data-side-kind="friends"]{--v212-side-scale:1.40;--v212-side-x:0%;--v212-side-y:2%}
html body.v146212-ui [data-side-kind="settings"]{--v212-side-scale:1.10;--v212-side-x:0%;--v212-side-y:0%}
html body.v146212-ui [data-side-kind="rules"]{--v212-side-scale:1.20;--v212-side-x:-4%;--v212-side-y:-2.5%}
html body.v146212-ui [data-side-kind="characters"]{--v212-side-scale:1.20;--v212-side-x:-4%;--v212-side-y:-2.5%}
/* The journal already has clean transparent/contained edges — do not crop it. */
html body.v146212-ui [data-side-kind="battle-history"]{--v212-side-scale:.86;--v212-side-x:0%;--v212-side-y:0%}
html body.v146212-ui [data-side-kind="battle-history"] .v146210-side-art img{object-fit:contain!important}
html body.v146212-ui .v119-side-nav>button.v146210-side-supplied>span:not(.v83-side-icon){
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  white-space:normal!important;text-overflow:clip!important;overflow:hidden!important;
  font-size:10px!important;line-height:1.15!important;max-height:28px!important;text-align:center!important;
}

/* --------------------------------------------------------------------------
   2. BATTLE HISTORY — three latest completed battles, full chronological log.
   -------------------------------------------------------------------------- */
html body.v146212-ui .v146212-battle-history-screen{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
html body.v146212-ui .v146212-history-heading-icon{
  display:grid!important;place-items:center!important;width:42px!important;height:42px!important;
  padding:5px!important;border:1px solid rgba(210,173,86,.35)!important;border-radius:13px!important;background:rgba(4,24,27,.76)!important;overflow:hidden!important;
}
html body.v146212-ui .v146212-history-heading-icon img{width:100%!important;height:100%!important;object-fit:contain!important}
html body.v146212-ui .v146212-history-root{display:grid!important;gap:12px!important;min-width:0!important}
html body.v146212-ui .v146212-history-loading,
html body.v146212-ui .v146212-history-empty{
  min-height:220px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:10px!important;
  padding:22px 16px!important;border:1px solid rgba(210,173,86,.27)!important;border-radius:20px!important;
  background:linear-gradient(155deg,rgba(7,34,35,.88),rgba(3,18,23,.96))!important;color:#d9e0da!important;text-align:center!important;
}
html body.v146212-ui .v146212-history-empty img{width:76px!important;height:76px!important;object-fit:contain!important;opacity:.82!important}
html body.v146212-ui .v146212-history-empty b{font:800 20px/1.1 Georgia,serif!important;color:#f1ead8!important}
html body.v146212-ui .v146212-history-empty p{margin:0!important;max-width:360px!important;font-size:12px!important;line-height:1.42!important;color:#9eaaa5!important}
html body.v146212-ui .v146212-history-intro{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;
  padding:14px 15px!important;border:1px solid rgba(113,203,169,.26)!important;border-radius:18px!important;background:rgba(5,27,29,.88)!important;
}
html body.v146212-ui .v146212-history-intro small{font-size:9px!important;letter-spacing:.12em!important;color:#75c8ad!important}
html body.v146212-ui .v146212-history-intro h2{margin:2px 0 4px!important;font:800 22px/1.05 Georgia,serif!important;color:#f2ebdb!important}
html body.v146212-ui .v146212-history-intro p{margin:0!important;font-size:11px!important;line-height:1.35!important;color:#9ca8a4!important}
html body.v146212-ui .v146212-history-intro>b{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;border-radius:14px!important;border:1px solid rgba(210,173,86,.4)!important;background:rgba(36,32,18,.68)!important;color:#f1d47a!important;font-size:15px!important}
html body.v146212-ui .v146212-history-list{display:grid!important;gap:11px!important}
html body.v146212-ui .v146212-history-card{
  min-width:0!important;overflow:hidden!important;border:1px solid rgba(112,130,126,.3)!important;border-radius:19px!important;
  background:linear-gradient(155deg,rgba(7,32,33,.96),rgba(3,16,20,.985))!important;box-shadow:inset 0 0 22px rgba(0,0,0,.18)!important;
}
html body.v146212-ui .v146212-history-card.win{border-color:rgba(102,205,160,.38)!important}
html body.v146212-ui .v146212-history-card.lose{border-color:rgba(218,91,106,.38)!important}
html body.v146212-ui .v146212-history-card>header{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:start!important;padding:13px 14px 8px!important;
}
html body.v146212-ui .v146212-history-card>header small{font-size:9px!important;letter-spacing:.09em!important;font-weight:900!important;color:#76cda9!important}
html body.v146212-ui .v146212-history-card.lose>header small{color:#e17c89!important}
html body.v146212-ui .v146212-history-card>header h2{margin:3px 0 0!important;font:800 19px/1.08 Georgia,serif!important;color:#f3ebd9!important;overflow-wrap:anywhere!important}
html body.v146212-ui .v146212-history-card>header time{font-size:9px!important;color:#8f9c98!important;white-space:nowrap!important}
html body.v146212-ui .v146212-history-meta{display:flex!important;flex-wrap:wrap!important;gap:5px!important;padding:0 14px 9px!important}
html body.v146212-ui .v146212-history-meta span{padding:4px 7px!important;border-radius:999px!important;background:rgba(255,255,255,.045)!important;color:#aeb9b5!important;font-size:9px!important}
html body.v146212-ui .v146212-history-self{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:7px!important;align-items:center!important;margin:0 12px 10px!important;padding:8px 9px!important;border:1px solid rgba(80,139,123,.24)!important;border-radius:12px!important;background:rgba(3,18,21,.72)!important}
html body.v146212-ui .v146212-history-self b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#dce9e2!important;font-size:11px!important}
html body.v146212-ui .v146212-history-self span{font-size:9px!important;color:#9eb0aa!important;white-space:nowrap!important}
html body.v146212-ui .v146212-history-open{width:calc(100% - 24px)!important;margin:0 12px 12px!important;min-height:38px!important;border:1px solid rgba(210,173,86,.36)!important;border-radius:12px!important;background:rgba(20,39,36,.88)!important;color:#e7d7a4!important;font-weight:800!important}
html body.v146212-ui .v146212-history-detail{border-top:1px solid rgba(255,255,255,.06)!important;padding:11px 12px 13px!important;background:rgba(1,11,14,.35)!important}
html body.v146212-ui .v146212-history-detail[hidden]{display:none!important}
html body.v146212-ui .v146212-history-units{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:10px!important}
html body.v146212-ui .v146212-history-units>section{min-width:0!important;padding:9px!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:12px!important;background:rgba(5,20,23,.72)!important}
html body.v146212-ui .v146212-history-units h3{margin:0 0 6px!important;font-size:10px!important;color:#d6c58e!important}
html body.v146212-ui .v146212-history-units span{display:grid!important;gap:1px!important;padding:4px 0!important;border-top:1px solid rgba(255,255,255,.04)!important}
html body.v146212-ui .v146212-history-units span:first-of-type{border-top:0!important}
html body.v146212-ui .v146212-history-units b{font-size:9px!important;color:#dce5df!important;overflow-wrap:anywhere!important}
html body.v146212-ui .v146212-history-units small{font-size:8px!important;color:#8f9b98!important}
html body.v146212-ui .v146212-history-log-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:8px!important;margin:2px 1px 7px!important}
html body.v146212-ui .v146212-history-log-head small{font-size:8px!important;letter-spacing:.1em!important;color:#73bca6!important}
html body.v146212-ui .v146212-history-log-head h3{margin:1px 0 0!important;font:800 16px/1.05 Georgia,serif!important;color:#eee7d7!important}
html body.v146212-ui .v146212-history-log-head>b{font-size:10px!important;color:#9dabaa!important}
html body.v146212-ui .v146212-history-log{
  max-height:min(58dvh,560px)!important;overflow-y:auto!important;overflow-x:hidden!important;display:grid!important;gap:6px!important;padding:2px 5px 2px 0!important;
  scrollbar-width:thin!important;scrollbar-color:#d88a2b rgba(4,17,19,.5)!important;overscroll-behavior:contain!important;
}
html body.v146212-ui .v146212-history-log::-webkit-scrollbar{display:block!important;width:5px!important}
html body.v146212-ui .v146212-history-log::-webkit-scrollbar-thumb{background:#d88a2b!important;border-radius:99px!important}
html body.v146212-ui .v146212-history-event{
  display:grid!important;grid-template-columns:22px minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;min-width:0!important;padding:8px!important;border-left:3px solid #60716f!important;border-radius:10px!important;background:rgba(255,255,255,.035)!important;
}
html body.v146212-ui .v146212-history-event.team-ally{border-left-color:#55cf91!important;background:rgba(45,142,96,.08)!important}
html body.v146212-ui .v146212-history-event.team-enemy{border-left-color:#df6574!important;background:rgba(162,55,70,.08)!important}
html body.v146212-ui .v146212-history-event>i{font-style:normal!important;font-size:8px!important;color:#70807d!important;text-align:center!important}
html body.v146212-ui .v146212-history-event p{margin:0!important;font-size:10px!important;line-height:1.32!important;color:#d7dfda!important;overflow-wrap:anywhere!important}
html body.v146212-ui .v146212-history-event small{display:block!important;margin-top:2px!important;font-size:7px!important;color:#81918e!important;text-transform:uppercase!important}
html body.v146212-ui .v146212-history-event>em{font-style:normal!important;font-size:9px!important;font-weight:900!important;color:#e6d8ae!important;white-space:nowrap!important}
html body.v146212-ui .v146212-history-event.team-ally.kind-damage>em{color:#72d9a2!important}
html body.v146212-ui .v146212-history-event.team-enemy.kind-damage>em{color:#ef7b89!important}
html body.v146212-ui .v146212-history-event.kind-heal>em{color:#80ddaa!important}

@media(max-width:390px){
  html body.v146212-ui .v146212-history-units{grid-template-columns:1fr!important}
  html body.v146212-ui .v146212-history-self{grid-template-columns:minmax(0,1fr) auto!important}
  html body.v146212-ui .v146212-history-self span:last-child{grid-column:2!important}
  html body.v146212-ui .v119-side-nav>button.v146210-side-supplied .v146210-side-art{width:53px!important;height:53px!important;min-width:53px!important;min-height:53px!important}
}

/* --------------------------------------------------------------------------
   v1.146.221 — HISTORY REBUILD. This rewrites the history tab itself; live-log
   visual language is reused instead of introducing a separate card aesthetic.
   -------------------------------------------------------------------------- */
html body.v146221-ui .v146212-battle-history-screen{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
html body.v146221-ui .v146212-history-root{display:grid!important;gap:12px!important}
html body.v146221-ui .v146220-history-intro{position:relative!important;overflow:hidden!important;padding:15px!important;border:1px solid rgba(73,168,143,.28)!important;border-radius:19px!important;background:linear-gradient(145deg,rgba(8,35,36,.96),rgba(2,16,21,.985))!important;box-shadow:inset 0 0 24px rgba(0,0,0,.22)!important}
html body.v146221-ui .v146220-history-intro:after{content:""!important;position:absolute!important;inset:auto -15% -80% 35%!important;height:150px!important;background:radial-gradient(circle,rgba(79,178,145,.15),transparent 68%)!important;pointer-events:none!important}
html body.v146221-ui .v146212-history-list{display:grid!important;gap:12px!important}
html body.v146221-ui .v146220-history-card{overflow:hidden!important;border-radius:19px!important;border:1px solid rgba(114,138,132,.30)!important;background:linear-gradient(155deg,rgba(7,31,33,.985),rgba(2,14,19,.995))!important;box-shadow:0 9px 26px rgba(0,0,0,.18),inset 0 0 25px rgba(0,0,0,.15)!important}
html body.v146221-ui .v146220-history-card.win{border-color:rgba(79,194,143,.38)!important}
html body.v146221-ui .v146220-history-card.lose{border-color:rgba(215,86,105,.38)!important}
html body.v146221-ui .v146220-history-card-head{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;padding:12px 13px 8px!important}
html body.v146221-ui .v146220-history-card-head .result-mark{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:11px!important;background:rgba(71,190,137,.13)!important;border:1px solid rgba(71,190,137,.35)!important;color:#68d79f!important;font-size:18px!important;font-weight:900!important}
html body.v146221-ui .v146220-history-card.lose .result-mark{background:rgba(204,75,95,.13)!important;border-color:rgba(204,75,95,.35)!important;color:#ec7889!important}
html body.v146221-ui .v146220-history-card-head h2{margin:1px 0!important;font:800 18px/1.05 Georgia,serif!important;color:#f1ebdc!important;overflow-wrap:anywhere!important}
html body.v146221-ui .v146220-history-card-head small{font-size:8px!important;letter-spacing:.11em!important;color:#79cfae!important;font-weight:900!important}
html body.v146221-ui .v146220-history-card.lose .v146220-history-card-head small{color:#e37d8a!important}
html body.v146221-ui .v146220-history-card-head p{margin:2px 0 0!important;font-size:8px!important;color:#879793!important}
html body.v146221-ui .v146220-history-card-head time{align-self:start!important;font-size:8px!important;color:#82908d!important;white-space:nowrap!important}
html body.v146221-ui .v146212-history-meta{padding:0 13px 9px!important;display:flex!important;gap:5px!important;flex-wrap:wrap!important}
html body.v146221-ui .v146212-history-meta span{padding:4px 7px!important;border-radius:999px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.045)!important;font-size:8px!important;color:#9eaeaa!important}
html body.v146221-ui .v146220-history-versus{display:grid!important;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;margin:0 10px 10px!important;padding:8px!important;border:1px solid rgba(255,255,255,.055)!important;border-radius:14px!important;background:rgba(0,10,14,.38)!important}
html body.v146221-ui .v146220-history-versus>div{display:grid!important;gap:5px!important;min-width:0!important}
html body.v146221-ui .v146220-history-versus>div>small{font-size:7px!important;letter-spacing:.11em!important;color:#8ca09a!important;text-align:center!important}
html body.v146221-ui .v146220-history-versus>b{align-self:center!important;text-align:center!important;font:800 11px/1 Georgia,serif!important;color:#d5bb74!important;opacity:.75!important}
html body.v146221-ui .v146220-history-unit{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:6px!important;align-items:center!important;min-width:0!important;padding:5px!important;border:1px solid rgba(73,160,138,.17)!important;border-radius:10px!important;background:rgba(7,32,32,.72)!important}
html body.v146221-ui .v146220-history-unit.enemy{border-color:rgba(193,77,92,.17)!important;background:rgba(40,17,21,.52)!important}
html body.v146221-ui .v146220-history-unit-art{display:grid!important;place-items:center!important;width:34px!important;height:38px!important;border-radius:9px!important;overflow:hidden!important;background:rgba(0,0,0,.34)!important}
html body.v146221-ui .v146220-history-unit-art :is(img,picture,svg){width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146221-ui .v146220-history-unit>div{min-width:0!important}
html body.v146221-ui .v146220-history-unit b{display:block!important;font-size:8.5px!important;color:#dce6e0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146221-ui .v146220-history-unit small{display:block!important;font-size:6.8px!important;color:#81908d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146221-ui .v146220-history-unit em{display:block!important;height:3px!important;margin-top:4px!important;border-radius:99px!important;background:#1d2a2d!important;overflow:hidden!important}
html body.v146221-ui .v146220-history-unit em i{display:block!important;height:100%!important;background:#63ce8e!important}
html body.v146221-ui .v146220-history-unit.enemy em i{background:#e25e6b!important}
html body.v146221-ui .v146212-history-open{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;width:calc(100% - 20px)!important;min-height:39px!important;margin:0 10px 10px!important;padding:6px 10px!important;border:1px solid rgba(203,171,91,.32)!important;border-radius:11px!important;background:linear-gradient(180deg,rgba(28,42,36,.92),rgba(9,25,27,.95))!important;color:#e4d5a5!important;text-align:left!important;font-size:10px!important;font-weight:900!important}
html body.v146221-ui .v146212-history-open>b{display:grid!important;place-items:center!important;min-width:25px!important;height:23px!important;border-radius:8px!important;background:rgba(216,176,80,.1)!important;color:#d9bd70!important;font-size:8px!important}
html body.v146221-ui .v146212-history-detail{padding:10px!important;border-top:1px solid rgba(255,255,255,.055)!important;background:rgba(0,7,11,.40)!important}
html body.v146221-ui .v146212-history-log-head{display:flex!important;align-items:end!important;justify-content:space-between!important;margin:0 1px 8px!important}
html body.v146221-ui .v146212-history-log-head small{font-size:7px!important;letter-spacing:.12em!important;color:#62ba9f!important}
html body.v146221-ui .v146212-history-log-head h3{margin:2px 0 0!important;font:800 15px/1.05 Georgia,serif!important;color:#eee8da!important}
html body.v146221-ui .v146212-history-log{display:grid!important;gap:6px!important;max-height:min(62dvh,590px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:4px!important;scrollbar-width:thin!important;scrollbar-color:#d98a2b rgba(2,15,18,.6)!important}
html body.v146221-ui .v146220-history-live-entry{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-width:0!important;padding:7px 8px!important;border-left:3px solid #526663!important;border-radius:10px!important;background:linear-gradient(90deg,rgba(68,86,82,.10),rgba(255,255,255,.025))!important}
html body.v146221-ui .v146220-history-live-entry.log-tone-ally{border-left-color:#51cc8d!important;background:linear-gradient(90deg,rgba(39,145,91,.13),rgba(255,255,255,.022))!important}
html body.v146221-ui .v146220-history-live-entry.log-tone-enemy{border-left-color:#d95b6b!important;background:linear-gradient(90deg,rgba(155,45,62,.14),rgba(255,255,255,.022))!important}
html body.v146221-ui .v146220-history-live-entry>.v102-log-icon{display:grid!important;place-items:center!important;width:29px!important;height:29px!important;border-radius:9px!important;background:rgba(0,0,0,.25)!important}
html body.v146221-ui .v146220-history-live-entry>.v102-log-icon :is(img,svg){width:20px!important;height:20px!important;object-fit:contain!important}
html body.v146221-ui .v146220-history-live-entry .v102-log-copy{min-width:0!important}
html body.v146221-ui .v146220-history-live-entry .v111-log-time{display:block!important;margin-bottom:1px!important;font-size:7px!important;color:#7e8e8a!important}
html body.v146221-ui .v146220-history-live-entry p{margin:0!important;font-size:9.5px!important;line-height:1.34!important;color:#d6dfda!important;overflow-wrap:anywhere!important}
html body.v146221-ui .v146220-history-live-entry mark{padding:0!important;background:transparent!important;font-weight:900!important;color:#e8c969!important}
html body.v146221-ui .v146220-history-live-entry mark.resource{color:#6fcbd4!important}
html body.v146221-ui .v146220-history-live-entry mark.ability{color:#cf9dea!important}
html body.v146221-ui .v146220-history-live-entry mark.effect{color:#b68de2!important}
html body.v146221-ui .v146220-history-live-entry mark.ally-heal-number{color:#65d59b!important}
html body.v146221-ui .v146220-history-live-entry mark.enemy-number{color:#ef7e8b!important}
@media(max-width:390px){html body.v146221-ui .v146220-history-versus{grid-template-columns:1fr!important}html body.v146221-ui .v146220-history-versus>b{display:none!important}}

/* v221: completed-battle log uses natural height. Old live-battle positioning must never leak here. */
html body.v146221-ui .v146212-history-log .v146220-history-live-entry{
  position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:start!important;height:auto!important;min-height:42px!important;max-height:none!important;margin:0!important;padding:7px 8px!important;overflow:visible!important;contain:none!important;transform:none!important;
}
html body.v146221-ui .v146212-history-log .v146220-history-live-entry>.v102-log-icon{position:relative!important;inset:auto!important;align-self:start!important;width:28px!important;height:28px!important;}
html body.v146221-ui .v146212-history-log .v146220-history-live-entry>.v102-log-copy{position:relative!important;inset:auto!important;display:block!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:visible!important;}
html body.v146221-ui .v146212-history-log .v146220-history-live-entry .v111-log-time{position:static!important;inset:auto!important;display:block!important;width:auto!important;height:auto!important;margin:0 0 3px!important;padding:0!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important;}
html body.v146221-ui .v146212-history-log .v146220-history-live-entry p{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;font-size:9.5px!important;line-height:1.38!important;}

/* ===== css/v146214-battle-foundation-recovery.css ===== */
/* v1.146.219: battle foundation retired; non-battle side menu/admin rules retained. */
/* ========================================================================== 
   5) SIDE MENU — one safe area, zero per-image crop/scale hacks
   ========================================================================== */
html body.v146214-ui .v119-side-nav>button:not([data-side-kind="logout"]){
  overflow:hidden!important;
}
html body.v146214-ui .v119-side-nav .v146214-side-icon,
html body.v146214-ui .v119-side-nav .v83-side-icon.v146214-side-icon{
  box-sizing:border-box!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  min-height:56px!important;
  max-width:56px!important;
  max-height:56px!important;
  display:grid!important;
  place-items:center!important;
  padding:5px!important;
  overflow:hidden!important;
  transform:none!important;
}
html body.v146214-ui .v119-side-nav .v146214-side-icon :is(img,svg){
  width:46px!important;
  height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  scale:1!important;
}
html body.v146214-ui .v119-side-nav>button.v146210-side-supplied .v146210-side-art,
html body.v146214-ui .v119-side-nav>button.v146210-side-supplied .v146208-side-art{
  transform:none!important;
  overflow:hidden!important;
}
html body.v146214-ui .v119-side-nav>button.v146210-side-supplied .v146210-side-art img,
html body.v146214-ui .v119-side-nav>button.v146210-side-supplied .v146208-side-art img{
  transform:none!important;
  object-fit:contain!important;
}

/* The skill detail sheet may contain long capstone titles. Never let the close
   button cover the title. */
html body.v146214-ui .v1281-ability-modal .v123-ability-copy h2{
  padding-right:44px!important;
  overflow-wrap:anywhere!important;
  line-height:1.05!important;
}

@media(max-width:390px){
  
  
  
  
  html body.v146214-ui.v111-battle-active main.v146200-battle .v101-monster-card{grid-template-rows:21px 63px 25px 34px!important}
  html body.v146214-ui.v111-battle-active main.v146200-battle .v101-monster-card .v101-unit-name{height:21px!important;min-height:21px!important;max-height:21px!important}
  html body.v146214-ui.v111-battle-active main.v146200-battle .v101-monster-card>.v101-unit-art{height:63px!important;min-height:63px!important;max-height:63px!important}
  html body.v146214-ui .modal.v146181-soul-summon-modal{height:min(620px,calc(100dvh - 18px))!important;max-height:min(620px,calc(100dvh - 18px))!important;padding:34px 9px 12px!important}
  html body.v146214-ui .v146184-summon-list{max-height:250px!important}
  html body.v146214-ui .v146181-soul-summon-card{height:116px!important;min-height:116px!important;max-height:116px!important;grid-template-columns:88px minmax(0,1fr)!important}
  html body.v146214-ui .v146184-summon-art-frame{width:84px!important;height:100px!important;padding:14px!important}
  html body.v146214-ui .v146184-summon-art-frame img{width:57px!important;height:64px!important}
  html body.v146214-ui .v119-side-nav .v146214-side-icon,
  html body.v146214-ui .v119-side-nav .v83-side-icon.v146214-side-icon{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important}
  html body.v146214-ui .v119-side-nav .v146214-side-icon :is(img,svg){width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important}
}


/* v1.146.214 mobile admin: fixed quick navigation must never cover grant forms. */
@media(max-width:780px){
  html body.v146214-ui.v131-admin-open .v130-admin-shell{padding-bottom:max(132px,calc(112px + env(safe-area-inset-bottom)))!important;}
  html body.v146214-ui.v131-admin-open .v130-admin-content{padding-bottom:max(126px,calc(106px + env(safe-area-inset-bottom)))!important;}
  html body.v146214-ui .v119-side-nav button>span{white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;line-height:1.12!important;text-overflow:ellipsis!important;}
}

/* ===== css/v146200-battle-canonical.css ===== */
/* ALDOS RPG v1.146.221 — SINGLE BATTLE CANONICAL CONTRACT.
   This file replaces the historical combat geometry/state stack. Do not add
   another battle hotfix above it: change this contract directly. */

html body.v146221-ui.v111-battle-active main.v146200-battle{
  --battle-card-h:158px;
  --battle-effect-h:18px;
  --battle-effect-w:18px;
  --battle-effect-icon:13px;
  --battle-puppet-h:80px;
  min-width:0!important;
}

/* One roster owner, native scrolling, no snap/focus jump after a summon. */
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-roster-scroll{
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overflow-anchor:none!important;
  scroll-snap-type:none!important;
  scroll-padding:0!important;
  scroll-behavior:auto!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-roster>.v101-roster-scroll{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:7px!important;
  min-width:0!important;
  transform:none!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v146196-player-stack{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:var(--battle-card-h)!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
}

/* Player card: art/body first row, effects ALWAYS full-width second row. */
html body.v146221-ui.v111-battle-active main.v146200-battle .v146196-player-stack>.v101-player-card,
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card{
  box-sizing:border-box!important;
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:68px minmax(0,1fr)!important;
  grid-template-rows:125px var(--battle-effect-h)!important;
  grid-template-areas:"art body" "effects effects"!important;
  column-gap:8px!important;
  row-gap:1px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:var(--battle-card-h)!important;
  min-height:var(--battle-card-h)!important;
  max-height:var(--battle-card-h)!important;
  flex:0 0 var(--battle-card-h)!important;
  margin:0!important;
  padding:7px!important;
  overflow:hidden!important;
  transform:none!important;
  filter:none!important;
  scroll-snap-align:none!important;
  scroll-snap-stop:normal!important;
  contain:layout paint!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-art{
  grid-area:art!important;
  position:relative!important;
  inset:auto!important;
  box-sizing:border-box!important;
  width:68px!important;
  min-width:68px!important;
  max-width:68px!important;
  height:118px!important;
  min-height:118px!important;
  max-height:118px!important;
  margin:auto 0!important;
  overflow:hidden!important;
  transform:none!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-art :is(img,svg,picture){
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center bottom!important;transform:none!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-body{
  grid-area:body!important;
  position:relative!important;
  inset:auto!important;
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  height:118px!important;
  min-height:118px!important;
  max-height:118px!important;
  margin:0!important;
  overflow:hidden!important;
  transform:none!important;
}

/* Enemy card uses the same outer height and protected effect row. */
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card{
  box-sizing:border-box!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:29px 70px 24px var(--battle-effect-h)!important;
  gap:1px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:var(--battle-card-h)!important;
  min-height:var(--battle-card-h)!important;
  max-height:var(--battle-card-h)!important;
  flex:0 0 var(--battle-card-h)!important;
  padding:7px!important;
  overflow:hidden!important;
  transform:none!important;
  filter:none!important;
  contain:layout paint!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card>.v101-unit-art{
  height:70px!important;min-height:70px!important;max-height:70px!important;overflow:hidden!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card>.v101-unit-art :is(img,svg,picture){
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;transform:none!important;
}

/* Effect rail: in normal document flow. Never absolute, never 12px with puppet. */
html body.v146221-ui.v111-battle-active main.v146200-battle :is(.v101-player-card,.v101-monster-card)>.v101-unit-effects{
  grid-area:effects!important;
  position:relative!important;
  inset:auto!important;
  z-index:3!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:var(--battle-effect-h)!important;
  min-height:var(--battle-effect-h)!important;
  max-height:var(--battle-effect-h)!important;
  flex:0 0 var(--battle-effect-h)!important;
  margin:0!important;
  padding:1px 2px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  transform:none!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-x:contain!important;
  contain:layout paint!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects::-webkit-scrollbar{display:none!important}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects>:is(.v106-effect-asset,.v113-effect-asset,.v79-status-chip,.v57-player-effect,[data-status-tip]){
  box-sizing:border-box!important;
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:13px 5px!important;
  align-items:center!important;
  justify-items:center!important;
  flex:0 0 var(--battle-effect-w)!important;
  width:var(--battle-effect-w)!important;
  min-width:var(--battle-effect-w)!important;
  max-width:var(--battle-effect-w)!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  padding:1px!important;
  overflow:visible!important;
  transform:none!important;
  filter:none!important;
  line-height:1!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v113-effect-icon,.v106-effect-icon,.v79-status-icon){
  box-sizing:border-box!important;width:14px!important;min-width:14px!important;max-width:14px!important;
  height:14px!important;min-height:14px!important;max-height:14px!important;margin:0!important;padding:0!important;overflow:hidden!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v113-effect-icon,.v106-effect-icon,.v79-status-icon) :is(img,svg,.v114-status-image),
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects>:is(.v106-effect-asset,.v113-effect-asset,.v79-status-chip,.v57-player-effect)>img{
  width:var(--battle-effect-icon)!important;height:var(--battle-effect-icon)!important;
  max-width:var(--battle-effect-icon)!important;max-height:var(--battle-effect-icon)!important;
  object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important;filter:none!important;
}
/* Old shine animation caused needless paints on every effect chip in WebView. */
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v57-player-effect,.v79-status-chip)::after{
  content:none!important;animation:none!important;
}

/* Summons are siblings under the complete owner card; they cannot alter owner geometry. */
html body.v146221-ui.v111-battle-active main.v146200-battle .v146196-player-stack>:is(.v146175-puppet-card,.v146181-puppet-card):not(.v146191-aux-puppet-card){
  box-sizing:border-box!important;
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:var(--battle-puppet-h)!important;
  min-height:var(--battle-puppet-h)!important;
  max-height:var(--battle-puppet-h)!important;
  flex:0 0 var(--battle-puppet-h)!important;
  margin:0!important;
  overflow:hidden!important;
  transform:none!important;
  scroll-snap-align:none!important;
  contain:layout paint!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v146196-player-stack>.v146191-aux-puppet-card{
  height:72px!important;min-height:72px!important;max-height:72px!important;flex:0 0 72px!important;scroll-snap-align:none!important;
}
/* Explicitly neutralize historical has-puppet compression. */
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-roster.v146170-has-puppet .v101-player-card{
  height:var(--battle-card-h)!important;min-height:var(--battle-card-h)!important;max-height:var(--battle-card-h)!important;
  grid-template-columns:68px minmax(0,1fr)!important;grid-template-rows:125px var(--battle-effect-h)!important;grid-template-areas:"art body" "effects effects"!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-roster.v146170-has-puppet .v101-player-card>.v101-unit-effects{
  height:var(--battle-effect-h)!important;min-height:var(--battle-effect-h)!important;max-height:var(--battle-effect-h)!important;
  overflow-x:auto!important;overflow-y:hidden!important;transform:none!important;
}


/* v221: tiny counters stay inside the 18x16 effect chip. */
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v113-effect-turns,.v1350-effect-stacks){
  position:absolute!important;right:-1px!important;bottom:-1px!important;min-width:7px!important;height:7px!important;padding:0 1px!important;border-radius:5px!important;font-size:5px!important;line-height:7px!important;text-align:center!important;z-index:4!important;
}
/* Names get usable room; no single-line squeeze. */
html body.v146221-ui.v111-battle-active main.v146200-battle :is(.v101-player-card,.v101-monster-card) .v101-unit-name :is(h2,h3){
  margin:0!important;max-width:100%!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.05!important;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card .v101-unit-name h2{font-size:11px!important;}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card .v101-unit-name h3{font-size:10px!important;}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-roster-head{min-width:0!important;gap:4px!important;}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-roster-head h2{min-width:0!important;font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html body.v146221-ui.v111-battle-active main.v146200-battle .v101-roster-head span{font-size:7px!important;white-space:nowrap!important;}

/* Skills: JS owns the truth. CSS only reflects .disabled/.cooldown/.locked. */
html body.v146221-ui.v111-battle-active .v102-skill-card{
  transition:none!important;
  filter:none!important;
  transform:none!important;
}
html body.v146221-ui.v111-battle-active .v102-skill-card:not(.disabled):not(.cooldown):not(.locked):not([disabled]),
html body.v146221-ui.v111-battle-active .v102-skill-card:not(.disabled):not(.cooldown):not(.locked):not([disabled]) .v101-skill-art,
html body.v146221-ui.v111-battle-active .v102-skill-card:not(.disabled):not(.cooldown):not(.locked):not([disabled]) [data-ability-toggle]{
  opacity:1!important;filter:none!important;pointer-events:auto!important;
}
html body.v146221-ui.v111-battle-active .v102-skill-card:is(.disabled,.cooldown,.locked,[disabled]){
  opacity:.58!important;filter:none!important;
}
html body.v146221-ui.v111-battle-active:not(.v111-action-pending) .v102-skill-cast:not(:disabled):not([aria-disabled="true"]){
  opacity:1!important;filter:none!important;pointer-events:auto!important;
}
html body.v146221-ui.v111-battle-active.v111-action-pending [data-ability-cast],
html body.v146221-ui.v146201-puppet-command-pending [data-v177-puppet-skill]{
  pointer-events:none!important;opacity:.58!important;
}
html body.v146221-ui.v146201-puppet-command-pending :is(.v102-skill-drawer,.v79-left-drawer,.v102-skill-grid,.v102-skill-card){
  filter:none!important;
}

/* Cheap second-based timer paint. */
html body.v146221-ui.v111-battle-active #turn-bar{transition:transform .98s linear!important;will-change:transform!important}
html body.v146221-ui.v111-battle-active #turn-ring{will-change:auto!important}

@media(max-width:390px){
  html body.v146221-ui.v111-battle-active main.v146200-battle{--battle-card-h:154px}
  html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card,
  html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-roster.v146170-has-puppet .v101-player-card{
    grid-template-rows:121px var(--battle-effect-h)!important;
  }
  html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-art,
  html body.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-body{
    height:114px!important;min-height:114px!important;max-height:114px!important;
  }
  html body.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card{grid-template-rows:27px 67px 23px var(--battle-effect-h)!important}
  html body.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card>.v101-unit-art{height:67px!important;min-height:67px!important;max-height:67px!important}
}
@media(prefers-reduced-motion:reduce){html body.v146221-ui.v111-battle-active #turn-bar{transition:none!important}}


/* v1.146.226 — Chapter II asset replacement + battle card spacing */
html body.v146221-ui.v111-battle-active main.v146200-battle{
  --battle-card-h:148px;
  --battle-effect-h:24px;
  --battle-effect-w:24px;
  --battle-effect-icon:15px;
}
html body.v146221-ui.v111-battle-active main.v146200-battle .battle-entity-avatar,
html body.v146221-ui.v111-battle-active main.v146200-battle .monster-avatar,
html body.v146221-ui.v111-battle-active main.v146200-battle .player-avatar{
  transform:scale(.86);
  transform-origin:center bottom;
}

/* ===== css/v146237-mini-patch.css ===== */
/* Aldos RPG v1.146.237 — mini-patch UI fixes. */
body.v146237-ui .v146237-auction-toolbar>span{
  display:flex;
  align-items:stretch;
  flex-wrap:wrap;
  gap:6px;
}
body.v146237-ui .v146237-auction-rarity{
  display:grid;
  grid-template-columns:auto minmax(118px,1fr);
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:3px 8px;
  border:1px solid rgba(199,158,84,.35);
  border-radius:9px;
  background:#171813;
  color:#dcd2bc;
}
body.v146237-ui .v146237-auction-rarity>span{
  color:#a99a7a;
  font-size:8px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.v146237-ui .v146237-auction-rarity select{
  min-width:0;
  border:0;
  outline:0;
  background:#0d100d;
  color:#f1e8d2;
  font-family:inherit;
  font-size:10px;
  font-weight:700;
  line-height:1.2;
  color-scheme:dark;
}
body.v146237-ui .v14629-chest-item-image{
  width:100%;
  height:100%;
  object-fit:contain;
}
@media(max-width:640px){
  body.v146237-ui .v146237-auction-toolbar{display:block}
  body.v146237-ui .v146237-auction-toolbar>span{display:grid;grid-template-columns:auto minmax(0,1fr) auto}
  body.v146237-ui .v146237-auction-rarity{grid-template-columns:1fr;padding-inline:6px;gap:1px}
  body.v146237-ui .v146237-auction-rarity>span{font-size:7px}
  body.v146237-ui .v146237-auction-rarity select{width:100%;font-size:9px}
}

/* ===== css/v146238-sacrificial-bug-event.css ===== */
/* Aldos RPG v1.146.239 — «Жертвенный баг»: generated ritual art + pointer/drag hotfix. */
html body.v146238-ui .v146238-sacrificial-root{position:fixed!important;inset:0!important;z-index:9100!important;width:100vw!important;height:100dvh!important;pointer-events:none!important;color:#f8eee8!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
html body.v146238-ui.v111-battle-active .v146238-sacrificial-root{display:none!important}
html body.v146238-ui .v146238-sacrificial-chip{position:fixed!important;z-index:9101!important;display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;width:218px!important;min-width:218px!important;max-width:calc(100vw - 12px)!important;min-height:56px!important;margin:0!important;padding:6px 8px!important;border:1px solid rgba(255,90,84,.55)!important;border-radius:14px!important;background:radial-gradient(circle at 10% 0,rgba(217,47,57,.28),transparent 43%),linear-gradient(135deg,rgba(36,7,14,.97),rgba(9,12,18,.97))!important;box-shadow:0 10px 28px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.08),0 0 22px rgba(172,19,34,.18)!important;color:#fff6ee!important;text-align:left!important;cursor:grab!important;pointer-events:auto!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;-webkit-tap-highlight-color:transparent!important;backdrop-filter:blur(13px)!important;contain:layout paint!important}
html body.v146238-ui .v146238-sacrificial-chip::before{content:""!important;position:absolute!important;inset:3px!important;border:1px solid rgba(255,202,156,.07)!important;border-radius:11px!important;pointer-events:none!important}
html body.v146238-ui .v146238-sacrificial-chip:hover{border-color:rgba(255,126,103,.82)!important;filter:brightness(1.06)!important}
html body.v146238-ui .v146238-sacrificial-chip.is-pressed{transform:scale(.985)!important;border-color:rgba(255,135,113,.82)!important}
html body.v146238-ui .v146238-sacrificial-chip.is-drag-ready{box-shadow:0 13px 32px rgba(0,0,0,.58),inset 0 0 0 1px rgba(255,167,132,.14),0 0 25px rgba(214,35,52,.24)!important}
html body.v146238-ui .v146238-sacrificial-chip.is-dragging{cursor:grabbing!important;filter:brightness(1.12)!important;box-shadow:0 16px 36px rgba(0,0,0,.62),0 0 26px rgba(214,35,52,.28)!important}
html body.v146238-ui .v146238-sacrificial-drop{display:grid!important;place-items:center!important;width:34px!important;height:40px!important;border-radius:12px!important;background:radial-gradient(circle,rgba(255,74,70,.18),transparent 68%)!important;font-size:23px!important;filter:drop-shadow(0 0 7px rgba(255,49,49,.48))!important}
html body.v146238-ui .v146238-sacrificial-drop img{display:block!important;width:32px!important;height:32px!important;object-fit:contain!important;pointer-events:none!important;-webkit-user-drag:none!important}
html body.v146238-ui .v146238-sacrificial-chip-copy{display:grid!important;gap:2px!important;min-width:0!important}
html body.v146238-ui .v146238-sacrificial-chip-copy b{overflow:hidden!important;color:#ffe4ce!important;font:900 11px/1.05 Georgia,serif!important;white-space:nowrap!important;text-overflow:ellipsis!important}
html body.v146238-ui .v146238-sacrificial-chip-copy small{display:block!important;color:#c8afb0!important;font:750 7px/1.15 system-ui!important;letter-spacing:.025em!important;white-space:nowrap!important}
html body.v146238-ui .v146238-sacrificial-chip-copy strong{color:#ff7770!important;font:950 10px/1 system-ui!important;text-shadow:0 0 10px rgba(255,53,61,.35)!important}
html body.v146238-ui .v146238-sacrificial-chip time{min-width:49px!important;color:#ffe6d5!important;font:900 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace!important;text-align:right!important;letter-spacing:-.025em!important}
html body.v146238-ui .v146238-sacrificial-veil{position:fixed!important;inset:0!important;z-index:9101!important;display:none!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(2,3,7,.76)!important;backdrop-filter:blur(8px)!important;pointer-events:auto!important}
html body.v146238-ui .v146238-sacrificial-card{position:fixed!important;z-index:9102!important;left:50%!important;top:50%!important;display:none!important;width:min(700px,calc(100vw - 24px))!important;max-height:min(820px,calc(100dvh - 24px))!important;overflow:auto!important;margin:0!important;padding:16px!important;transform:translate(-50%,-50%)!important;border:1px solid rgba(233,88,80,.58)!important;border-radius:22px!important;background-image:linear-gradient(180deg,rgba(13,5,12,.54),rgba(10,7,12,.92) 36%,rgba(7,9,13,.99) 72%),var(--v146238-event-bg)!important;background-position:center!important;background-size:cover!important;box-shadow:0 28px 86px rgba(0,0,0,.76),inset 0 1px rgba(255,255,255,.09),0 0 42px rgba(157,12,31,.19)!important;pointer-events:auto!important;overscroll-behavior:contain!important;box-sizing:border-box!important}
html body.v146238-ui .v146238-sacrificial-root.is-expanded .v146238-sacrificial-chip{display:none!important}
html body.v146238-ui .v146238-sacrificial-root.is-expanded :is(.v146238-sacrificial-veil,.v146238-sacrificial-card){display:block!important}
html body.v146238-ui .v146238-sacrificial-close{position:absolute!important;z-index:5!important;top:9px!important;right:9px!important;display:grid!important;place-items:center!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,133,112,.35)!important;border-radius:11px!important;background:rgba(17,6,11,.78)!important;color:#ffd7c2!important;font:700 20px/1 Arial,sans-serif!important}
html body.v146238-ui .v146238-sacrificial-card>header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;padding:3px 42px 13px 2px!important;border-bottom:1px solid rgba(255,180,143,.12)!important}
html body.v146238-ui .v146238-sacrificial-card>header>div{min-width:0!important}
html body.v146238-ui .v146238-sacrificial-card>header small{color:#ff7c73!important;font:900 8px/1 system-ui!important;letter-spacing:.14em!important}
html body.v146238-ui .v146238-sacrificial-card>header h2{margin:5px 0 2px!important;color:#ffe3c9!important;font:900 clamp(22px,5vw,34px)/1 Georgia,serif!important;text-shadow:0 2px 12px rgba(0,0,0,.74)!important}
html body.v146238-ui .v146238-sacrificial-card>header p{margin:0!important;color:#bfa9a7!important;font:650 10px/1.35 system-ui!important}
html body.v146238-ui .v146238-sacrificial-card>header time{flex:0 0 auto!important;margin-top:23px!important;color:#fff0df!important;font:950 16px/1 ui-monospace,SFMono-Regular,Menlo,monospace!important;text-shadow:0 0 13px rgba(255,74,71,.25)!important}
html body.v146238-ui .v146238-sacrificial-hero{position:relative!important;display:grid!important;grid-template-columns:minmax(140px,220px) minmax(0,1fr)!important;align-items:center!important;gap:14px!important;min-height:230px!important;margin:12px 0!important;padding:10px 14px!important;overflow:hidden!important;border:1px solid rgba(235,107,89,.22)!important;border-radius:18px!important;background:radial-gradient(circle at 30% 55%,rgba(212,22,47,.22),transparent 35%),linear-gradient(90deg,rgba(11,3,8,.82),rgba(18,7,12,.42))!important}
html body.v146238-ui .v146238-sacrificial-hero::after{content:""!important;position:absolute!important;inset:0!important;pointer-events:none!important;background:linear-gradient(90deg,transparent,rgba(255,57,57,.055),transparent)!important}
html body.v146238-ui .v146238-sacrificial-hero img{position:relative!important;z-index:1!important;display:block!important;width:100%!important;max-width:220px!important;max-height:220px!important;object-fit:contain!important;filter:drop-shadow(0 12px 16px rgba(0,0,0,.65)) drop-shadow(0 0 17px rgba(210,26,40,.32))!important}
html body.v146238-ui .v146238-sacrificial-hero>div{position:relative!important;z-index:2!important;display:grid!important;justify-items:start!important;gap:3px!important;min-width:0!important}
html body.v146238-ui .v146238-sacrificial-hero small{color:#d09a8f!important;font:900 8px/1 system-ui!important;letter-spacing:.12em!important}
html body.v146238-ui .v146238-sacrificial-hero strong{color:#ff655e!important;font:950 clamp(48px,13vw,82px)/.92 Georgia,serif!important;text-shadow:0 0 28px rgba(255,42,48,.34),0 3px 12px #000!important}
html body.v146238-ui .v146238-sacrificial-hero span{color:#efd7ca!important;font:750 11px/1.3 system-ui!important}
html body.v146238-ui .v146238-sacrificial-progress{display:grid!important;gap:7px!important;margin:0 0 12px!important;padding:11px 12px!important;border:1px solid rgba(231,118,91,.2)!important;border-radius:14px!important;background:rgba(13,6,10,.74)!important}
html body.v146238-ui .v146238-sacrificial-progress>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;color:#cbb6b0!important;font:700 10px/1 system-ui!important}
html body.v146238-ui .v146238-sacrificial-progress b{color:#ffe9da!important;font-size:12px!important}
html body.v146238-ui .v146238-sacrificial-progress em{display:block!important;width:100%!important;height:9px!important;overflow:hidden!important;border:1px solid rgba(255,165,127,.18)!important;border-radius:999px!important;background:#130b10!important}
html body.v146238-ui .v146238-sacrificial-progress em i{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#6d0717,#d31f36,#ff7a64)!important;box-shadow:0 0 16px rgba(239,37,57,.42)!important;transition:width .24s ease!important}
html body.v146238-ui .v146238-sacrificial-description{margin:0!important;padding:11px 12px!important;border-left:3px solid rgba(221,55,62,.75)!important;border-radius:0 12px 12px 0!important;background:rgba(27,7,14,.65)!important;color:#cdbdb8!important;font:650 10px/1.55 system-ui!important}
html body.v146238-ui .v146238-sacrificial-description :is(b,strong){color:#ffb0a0!important}
html body.v146238-ui .v146238-sacrificial-example{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important;margin:10px 0 14px!important}
html body.v146238-ui .v146238-sacrificial-example span{display:grid!important;place-items:center!important;min-height:32px!important;padding:5px!important;border:1px solid rgba(218,108,86,.17)!important;border-radius:9px!important;background:rgba(8,10,15,.82)!important;color:#d8c2ba!important;font:800 9px/1 system-ui!important}
html body.v146238-ui .v146238-sacrificial-card>footer{display:flex!important;justify-content:flex-end!important;gap:8px!important}
html body.v146238-ui .v146238-sacrificial-card>footer button{min-height:42px!important;margin:0!important;padding:8px 16px!important;border-radius:12px!important;font:850 10px/1 system-ui!important}
html body.v146238-ui .v146238-sacrificial-card>footer .primary{border:1px solid #e76058!important;background:linear-gradient(145deg,#a51327,#5b0b18)!important;color:#fff1df!important;box-shadow:0 8px 19px rgba(104,3,19,.34)!important}
html body.v146238-ui .v146238-sacrificial-card>footer .primary:disabled{opacity:.55!important;filter:saturate(.35)!important}
html body.v146238-ui .v146238-sacrificial-card>footer .ghost{border:1px solid rgba(185,154,143,.25)!important;background:rgba(8,10,15,.76)!important;color:#cbb8b0!important}

html body.v146238-ui .modal-back.has-v146238-sacrifice-picker-modal{align-items:center!important;justify-content:center!important;padding:10px!important}
html body.v146238-ui .modal.v146238-sacrifice-picker-modal{width:min(760px,calc(100vw - 20px))!important;max-height:min(820px,calc(100dvh - 20px))!important;padding:12px!important;border:1px solid rgba(221,70,68,.43)!important;background:linear-gradient(165deg,#170810,#080c12 48%,#070a0e)!important}
html body.v146238-ui .v146238-sacrifice-picker{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important;min-height:0!important;max-height:calc(100dvh - 72px)!important}
html body.v146238-ui .v146238-sacrifice-picker>header{display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;align-items:center!important;gap:10px!important;min-height:92px!important;padding:10px 45px 10px 12px!important;border:1px solid rgba(226,94,75,.2)!important;border-radius:15px!important;background:radial-gradient(circle at 85% 50%,rgba(180,18,36,.18),transparent 32%),rgba(18,7,12,.78)!important}
html body.v146238-ui .v146238-sacrifice-picker>header small{color:#f27369!important;font:900 8px/1 system-ui!important;letter-spacing:.13em!important}
html body.v146238-ui .v146238-sacrifice-picker>header h2{margin:4px 0!important;color:#ffe5ce!important;font:900 25px/1 Georgia,serif!important}
html body.v146238-ui .v146238-sacrifice-picker>header p{margin:0!important;color:#bca9a5!important;font:650 9px/1.4 system-ui!important}
html body.v146238-ui .v146238-sacrifice-picker>header img{display:block!important;width:76px!important;height:76px!important;object-fit:contain!important;filter:drop-shadow(0 7px 8px rgba(0,0,0,.7)) drop-shadow(0 0 10px rgba(210,26,40,.24))!important}
html body.v146238-ui .v146238-sacrifice-list{display:grid!important;gap:7px!important;min-height:0!important;overflow:auto!important;padding:1px 3px 4px 1px!important;overscroll-behavior:contain!important}
html body.v146238-ui .v146238-sacrifice-item{display:grid!important;grid-template-columns:68px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-height:76px!important;padding:7px!important;border:1px solid rgba(165,126,113,.22)!important;border-radius:13px!important;background:linear-gradient(100deg,rgba(20,11,15,.96),rgba(9,13,17,.96))!important}
html body.v146238-ui .v146238-sacrifice-item.rarity-rare{border-color:rgba(64,142,211,.38)!important}
html body.v146238-ui .v146238-sacrifice-item.rarity-epic{border-color:rgba(165,84,216,.5)!important;background:linear-gradient(100deg,rgba(31,12,38,.95),rgba(9,13,17,.96))!important}
html body.v146238-ui .v146238-sacrifice-art{display:grid!important;place-items:center!important;width:66px!important;min-width:66px!important;height:62px!important;min-height:62px!important;margin:0!important;padding:3px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:10px!important;background:#080b10!important}
html body.v146238-ui .v146238-sacrifice-art img{display:block!important;width:56px!important;height:56px!important;object-fit:contain!important}
html body.v146238-ui .v146238-sacrifice-item>div{display:grid!important;gap:3px!important;min-width:0!important}
html body.v146238-ui .v146238-sacrifice-item>div small{color:#c29bb8!important;font:850 8px/1 system-ui!important}
html body.v146238-ui .v146238-sacrifice-item>div b{overflow:hidden!important;color:#f2e5dc!important;font:850 11px/1.15 system-ui!important;white-space:nowrap!important;text-overflow:ellipsis!important}
html body.v146238-ui .v146238-sacrifice-item>div span{color:#9e9190!important;font:650 8px/1.2 system-ui!important}
html body.v146238-ui .v146238-sacrifice-item>button.danger{min-width:90px!important;min-height:38px!important;margin:0!important;padding:7px 10px!important;border:1px solid rgba(234,75,74,.55)!important;border-radius:10px!important;background:linear-gradient(#781120,#4b0914)!important;color:#ffe6d5!important;font:850 9px/1 system-ui!important}
html body.v146238-ui .v146238-sacrifice-empty{display:grid!important;place-items:center!important;align-content:center!important;gap:6px!important;min-height:210px!important;padding:24px!important;border:1px dashed rgba(203,78,75,.3)!important;border-radius:15px!important;color:#bdaaa5!important;text-align:center!important}
html body.v146238-ui .v146238-sacrifice-empty span{font-size:36px!important}.v146238-sacrifice-empty b{color:#efd9ca!important}.v146238-sacrifice-empty p{max-width:360px!important;margin:0!important;font-size:10px!important}

html body.v146238-ui .v146238-admin-sacrificial{position:relative!important;overflow:hidden!important;border-color:rgba(224,66,66,.42)!important;background:radial-gradient(circle at 90% 0,rgba(179,20,37,.2),transparent 40%),linear-gradient(145deg,rgba(30,8,15,.94),rgba(7,12,17,.96))!important}
html body.v146238-ui .v146238-admin-sacrificial::after{content:""!important;position:absolute!important;right:-26px!important;bottom:-34px!important;width:150px!important;height:150px!important;opacity:.22!important;background:url('../assets/v146239/events/sacrificial-bug-altar.webp') center/contain no-repeat!important;filter:drop-shadow(0 0 16px rgba(214,35,52,.2))!important;pointer-events:none!important}
html body.v146238-ui .v146238-admin-sacrificial>*{position:relative!important;z-index:1!important}
html body.v146238-ui .v146238-admin-sacrificial-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:10px 0!important}
html body.v146238-ui .v146238-admin-sacrificial-metrics span{display:grid!important;gap:4px!important;padding:10px!important;border:1px solid rgba(218,93,77,.22)!important;border-radius:11px!important;background:rgba(7,10,15,.72)!important}
html body.v146238-ui .v146238-admin-sacrificial-metrics small{color:#b99e9a!important;font-size:9px!important}
html body.v146238-ui .v146238-admin-sacrificial-metrics b{color:#ffdfcb!important;font-size:14px!important}
html body.v146238-ui .v146238-admin-sacrificial-actions{display:flex!important;justify-content:flex-end!important;margin-top:8px!important}
html body.v146238-ui .v146238-admin-sacrificial-actions button{min-width:190px!important}

@media(max-width:620px){
  html body.v146238-ui .v146238-sacrificial-chip{width:204px!important;min-width:204px!important;min-height:52px!important;grid-template-columns:30px minmax(0,1fr) auto!important;padding:5px 7px!important;border-radius:13px!important}
  html body.v146238-ui .v146238-sacrificial-drop{width:30px!important;height:36px!important;font-size:20px!important}
  html body.v146238-ui .v146238-sacrificial-chip-copy b{font-size:10px!important}.v146238-sacrificial-chip-copy small{font-size:6.5px!important}.v146238-sacrificial-chip time{font-size:8px!important;min-width:44px!important}
  html body.v146238-ui .v146238-sacrificial-card{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:11px!important;border-radius:18px!important}
  html body.v146238-ui .v146238-sacrificial-card>header{padding-right:35px!important}.v146238-sacrificial-card>header time{font-size:12px!important;margin-top:24px!important}
  html body.v146238-ui .v146238-sacrificial-hero{grid-template-columns:126px minmax(0,1fr)!important;min-height:180px!important;padding:8px!important}.v146238-sacrificial-hero img{max-height:170px!important}.v146238-sacrificial-hero strong{font-size:48px!important}
  html body.v146238-ui .v146238-sacrificial-example{grid-template-columns:repeat(2,1fr)!important}
  html body.v146238-ui .modal.v146238-sacrifice-picker-modal{width:calc(100vw - 10px)!important;max-height:calc(100dvh - 10px)!important;padding:7px!important}
  html body.v146238-ui .v146238-sacrifice-picker{max-height:calc(100dvh - 36px)!important}.v146238-sacrifice-picker>header{grid-template-columns:minmax(0,1fr) 58px!important;min-height:82px!important;padding:8px 38px 8px 9px!important}.v146238-sacrifice-picker>header img{width:58px!important;height:58px!important}.v146238-sacrifice-picker>header h2{font-size:21px!important}.v146238-sacrifice-picker>header p{font-size:8px!important}
  html body.v146238-ui .v146238-sacrifice-item{grid-template-columns:58px minmax(0,1fr)!important;gap:7px!important;min-height:94px!important}.v146238-sacrifice-art{grid-row:1/3!important;width:56px!important;min-width:56px!important;height:56px!important;min-height:56px!important}.v146238-sacrifice-art img{width:49px!important;height:49px!important}.v146238-sacrifice-item>button.danger{grid-column:2!important;width:100%!important;min-width:0!important;min-height:32px!important}.v146238-sacrifice-item>div b{font-size:10px!important}
  html body.v146238-ui .v146238-admin-sacrificial-metrics{grid-template-columns:1fr!important}
}
@media(max-width:360px){html body.v146238-ui .v146238-sacrificial-card>header{display:grid!important;gap:5px!important}.v146238-sacrificial-card>header time{margin-top:0!important}.v146238-sacrificial-hero{grid-template-columns:105px minmax(0,1fr)!important}.v146238-sacrificial-hero strong{font-size:40px!important}.v146238-sacrificial-card>footer{display:grid!important;grid-template-columns:1fr!important}.v146238-sacrificial-card>footer button{width:100%!important}}
@media(prefers-reduced-motion:reduce){html body.v146238-ui .v146238-sacrificial-progress em i{transition:none!important}}

/* ===== css/v146239-manual-events.css ===== */
/* Aldos RPG v1.146.239 — manual weekend controls and event interaction polish. */
html body.v146239-ui .v146239-admin-weekend{position:relative!important;overflow:hidden!important;border-color:rgba(176,229,80,.38)!important;background:linear-gradient(120deg,rgba(12,25,15,.96),rgba(7,12,13,.97))!important}
html body.v146239-ui .v146239-admin-weekend::after{content:""!important;position:absolute!important;inset:0!important;opacity:.18!important;background:url('../assets/v14695/location-ui/events/event-bg-world.webp') center/cover no-repeat!important;pointer-events:none!important}
html body.v146239-ui .v146239-admin-weekend>*{position:relative!important;z-index:1!important}
html body.v146239-ui .v146239-admin-weekend-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:10px 0!important}
html body.v146239-ui .v146239-admin-weekend-metrics span{display:grid!important;gap:4px!important;padding:10px!important;border:1px solid rgba(188,239,92,.22)!important;border-radius:11px!important;background:rgba(5,12,8,.76)!important}
html body.v146239-ui .v146239-admin-weekend-metrics small{color:#b5c29d!important;font-size:9px!important}
html body.v146239-ui .v146239-admin-weekend-metrics b{color:#e7ffb8!important;font-size:14px!important}
html body.v146239-ui .v146239-admin-weekend-actions{display:grid!important;grid-template-columns:minmax(140px,220px) minmax(180px,1fr) auto!important;align-items:end!important;gap:8px!important;margin-top:9px!important}
html body.v146239-ui .v146239-admin-weekend-actions label{margin:0!important}
html body.v146239-ui .v146239-admin-weekend-actions button{min-height:42px!important;margin:0!important}
html body.v146239-ui .v146162-weekend-banner{pointer-events:auto!important}
html body.v146239-ui .v146162-result-event-bonus{flex-wrap:wrap!important;text-align:center!important}
@media(max-width:680px){
  html body.v146239-ui .v146239-admin-weekend-metrics{grid-template-columns:1fr!important}
  html body.v146239-ui .v146239-admin-weekend-actions{grid-template-columns:1fr!important}
  html body.v146239-ui .v146239-admin-weekend-actions button{width:100%!important}
}

/* ===== css/v146240-event-core-effects-mini-patch.css ===== */
/* ALDOS RPG v1.146.240 — targeted NO-WIPE mini patch. */

/* Slightly larger battle effects: +2px in both directions. The protected
   24px effect rail and combat-card geometry remain unchanged. */
html body.v146240-ui.v146221-ui.v111-battle-active main.v146200-battle{
  --battle-effect-w:26px;
  --battle-effect-icon:16px;
}
html body.v146240-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects>:is(.v106-effect-asset,.v113-effect-asset,.v79-status-chip,.v57-player-effect,[data-status-tip]){
  grid-template-columns:16px 6px!important;
  width:26px!important;
  min-width:26px!important;
  max-width:26px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
}
html body.v146240-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v113-effect-icon,.v106-effect-icon,.v79-status-icon){
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
}
html body.v146240-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v113-effect-turns,.v1350-effect-stacks){
  min-width:8px!important;
  height:8px!important;
  font-size:5.5px!important;
  line-height:8px!important;
}

/* ===== css/v146241-stability-update-chest-hotfix.css ===== */
/* ALDOS RPG v1.146.241 — login/update/chest stability quick fix. */

html body.v146241-ui .v87-update-overlay.is-forced{
  pointer-events:auto!important;
  touch-action:none!important;
  user-select:none!important;
}
html body.v146241-ui .v87-update-overlay.is-forced .v87-update-card{
  pointer-events:auto!important;
}
html body.v146241-ui .v87-update-overlay.is-forced .v87-update-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
}
html body.v146241-ui .v87-update-overlay.is-forced [data-update-now]{
  width:100%!important;
}
html body.v146241-ui .v87-update-overlay.is-forced [data-update-now]:disabled{
  opacity:.72!important;
  cursor:wait!important;
}
html body.v146241-ui .v87-update-overlay.is-forced .v87-update-card>em{
  color:#9aa9a6!important;
  font:700 8px/1.25 system-ui!important;
  font-style:normal!important;
  letter-spacing:.04em!important;
}

html body.v146241-ui .v14629-chest-item-art{
  display:grid!important;
  place-items:center!important;
  flex:0 0 52px!important;
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  overflow:hidden!important;
  contain:layout paint!important;
}
html body.v146241-ui .v14629-chest-item-art>:is(img,picture),
html body.v146241-ui .v14629-chest-item-art img,
html body.v146241-ui .v14629-chest-item-image{
  display:block!important;
  width:47px!important;
  min-width:0!important;
  max-width:47px!important;
  height:47px!important;
  min-height:0!important;
  max-height:47px!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
@media(max-width:412px){
  html body.v146241-ui .v14629-chest-item-art{flex-basis:48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important}
  html body.v146241-ui .v14629-chest-item-art>:is(img,picture),html body.v146241-ui .v14629-chest-item-art img,html body.v146241-ui .v14629-chest-item-image{width:43px!important;max-width:43px!important;height:43px!important;max-height:43px!important}
}
@media(max-width:360px){
  html body.v146241-ui .v14629-chest-item-art{flex-basis:44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important}
  html body.v146241-ui .v14629-chest-item-art>:is(img,picture),html body.v146241-ui .v14629-chest-item-art img,html body.v146241-ui .v14629-chest-item-image{width:40px!important;max-width:40px!important;height:40px!important;max-height:40px!important}
}

/* ===== css/v146242-chest-elite-battle-ui-fix.css ===== */
/* Aldos RPG v1.146.242 — chest, elite lifecycle and battle mobile UI fix. */

/* The v226 compact card reduced the outer height without reducing its rows.
   The effect rail was therefore painted below the clipped card. Give both
   sides an explicit 28px rail and geometry that fits inside the border box. */
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle{
  --battle-card-h:164px;
  --battle-effect-h:28px;
  --battle-effect-w:28px;
  --battle-effect-icon:18px;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card,
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-roster.v146170-has-puppet .v101-player-card{
  grid-template-rows:121px var(--battle-effect-h)!important;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-art,
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-body{
  height:116px!important;
  min-height:116px!important;
  max-height:116px!important;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card{
  grid-template-rows:27px 67px 23px var(--battle-effect-h)!important;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card>.v101-unit-art{
  height:67px!important;
  min-height:67px!important;
  max-height:67px!important;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle :is(.v101-player-card,.v101-monster-card)>.v101-unit-effects{
  height:var(--battle-effect-h)!important;
  min-height:var(--battle-effect-h)!important;
  max-height:var(--battle-effect-h)!important;
  padding:2px!important;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects>:is(.v106-effect-asset,.v113-effect-asset,.v79-status-chip,.v57-player-effect,[data-status-tip]){
  grid-template-columns:18px 7px!important;
  width:var(--battle-effect-w)!important;
  min-width:var(--battle-effect-w)!important;
  max-width:var(--battle-effect-w)!important;
  height:22px!important;
  min-height:22px!important;
  max-height:22px!important;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v113-effect-icon,.v106-effect-icon,.v79-status-icon){
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
}
html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-unit-effects :is(.v113-effect-turns,.v1350-effect-stacks){
  right:-1px!important;
  bottom:-1px!important;
  min-width:9px!important;
  height:9px!important;
  font-size:6px!important;
  line-height:9px!important;
}

/* A target frame and its attack button are one atomic state. Never leave a
   selected frame behind after the actor has acted or the phase has changed. */
html body.v146242-ui.v111-battle-active .v101-monster-card.selected-target:not(:has(.v106-round-attack))::after{
  content:none!important;
  display:none!important;
}
html body.v146242-ui.v111-battle-active .v101-monster-card.selected-target:not(:has(.v106-round-attack)) .v106-monster-action-overlay{
  display:none!important;
}

@media(max-width:390px){
  html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle{--battle-card-h:160px}
  html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card,
  html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-roster.v146170-has-puppet .v101-player-card{
    grid-template-rows:117px var(--battle-effect-h)!important;
  }
  html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-art,
  html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-player-card>.v101-unit-body{
    height:112px!important;min-height:112px!important;max-height:112px!important;
  }
  html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card{
    grid-template-rows:25px 65px 21px var(--battle-effect-h)!important;
  }
  html body.v146242-ui.v146221-ui.v111-battle-active main.v146200-battle .v101-monster-card>.v101-unit-art{
    height:65px!important;min-height:65px!important;max-height:65px!important;
  }
}

/* ===== css/v146243-android-auction-assets.css ===== */
/* Aldos RPG v1.146.243 — tappable auction cards, generated mobile art and Android notification bridge. */
html body.v146243-ui .v146181-auction-head{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:linear-gradient(90deg,rgba(5,10,12,.96),rgba(7,18,19,.76),rgba(8,9,11,.90)),url('../assets/v146243/mobile/auction_banner.webp') center 46%/cover no-repeat!important}
html body.v146243-ui .v146181-auction-head>*{position:relative;z-index:1}
html body.v146243-ui .v146243-inspectable-lot{cursor:pointer!important;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important}
html body.v146243-ui .v146243-inspectable-lot:hover,html body.v146243-ui .v146243-inspectable-lot:focus-visible{outline:none!important;border-color:rgba(107,220,190,.76)!important;box-shadow:0 0 0 2px rgba(91,211,184,.18),0 14px 34px rgba(0,0,0,.42)!important;transform:translateY(-1px)}
html body.v146243-ui .v146243-inspect-hint{margin-left:auto!important;color:#75dbc1!important;font-weight:800!important;white-space:nowrap!important}
html body.v146243-ui .v146243-inspect-hint::before{content:'◈';margin-right:4px;color:#e8c76b}
html body.v146243-ui .v1420-raid-card{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:linear-gradient(90deg,rgba(6,12,14,.96),rgba(7,19,20,.83),rgba(19,11,10,.88)),url('../assets/v146243/mobile/caravan_raid_banner.webp') center/cover no-repeat!important}
html body.v146243-ui .v1420-raid-card>*{position:relative;z-index:1}
@media(max-width:560px){html body.v146243-ui .v146243-inspect-hint{display:block!important;width:100%;margin:3px 0 0!important;font-size:8px!important}}

/* ===== css/v146244-dungeon-exchange-infection-leaders.css ===== */
/* Aldos RPG v1.146.244 — dungeon infection, final exchange and sacrifice leaders */
html body.v146244-ui button.v14643-infection{appearance:none;margin:0;padding:3px;border:0;background:transparent;color:inherit;cursor:pointer}
html body.v146244-ui button.v14643-infection:focus-visible{outline:2px solid #b8d86a;outline-offset:2px;border-radius:10px}
html body.v146244-ui .v146244-cleanse{display:grid;gap:10px;margin:8px 0 10px;padding:12px;border:1px solid rgba(166,222,105,.34);border-radius:16px;background:linear-gradient(145deg,rgba(8,31,28,.96),rgba(5,17,20,.98));box-shadow:inset 0 1px rgba(255,255,255,.05),0 12px 30px rgba(0,0,0,.24)}
html body.v146244-ui .v146244-cleanse>header{display:grid;grid-template-columns:64px minmax(0,1fr) 34px;gap:9px;align-items:center}
html body.v146244-ui .v146244-cleanse>header>img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 0 15px rgba(142,242,99,.26))}
html body.v146244-ui .v146244-cleanse>header>div{display:grid;gap:2px;min-width:0}.v146244-cleanse>header small{font:850 7px/1 system-ui;letter-spacing:.12em;color:#9dd66f}.v146244-cleanse>header b{font:850 13px/1.1 system-ui;color:#f3e8cf}.v146244-cleanse>header p{margin:0;color:#9bab9f;font:650 8px/1.35 system-ui}
html body.v146244-ui .v146244-cleanse>header>button{width:34px;height:34px;min-height:34px;padding:0;border:1px solid rgba(166,222,105,.24);border-radius:10px;background:#102925;color:#d7e9bc;font-size:19px}
html body.v146244-ui .v146244-cleanse>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.v146244-cleanse article{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-areas:"art copy" "action action";gap:6px;padding:7px;border:1px solid rgba(132,184,116,.19);border-radius:12px;background:rgba(5,18,18,.7)}
html body.v146244-ui .v146244-cleanse article>img{grid-area:art;width:42px;height:42px;object-fit:contain}.v146244-cleanse article>span{grid-area:copy;display:grid;align-content:center;gap:3px;min-width:0}.v146244-cleanse article b{font:800 8px/1.15 system-ui;color:#eee6d5}.v146244-cleanse article small{font:650 7px/1.2 system-ui;color:#94aa9d}.v146244-cleanse article>button{grid-area:action;min-height:31px;margin:0;padding:5px;border:1px solid rgba(174,222,93,.38);border-radius:9px;background:linear-gradient(135deg,#315e35,#17382c);color:#e9f3ce;font:850 8px/1 system-ui}.v146244-cleanse article>button:disabled{opacity:.42}

html body.v146244-ui .v146244-exchange{position:relative;overflow:hidden;padding:12px!important;border-color:rgba(197,154,82,.37)!important;background-image:linear-gradient(180deg,rgba(5,14,15,.83),rgba(5,18,17,.97) 42%),var(--v146244-exchange-bg)!important;background-position:center top!important;background-size:cover!important}
html body.v146244-ui .v146244-exchange>header{display:grid!important;grid-template-columns:66px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:3px 3px 12px!important}.v146244-exchange>header>img{width:66px;height:66px;object-fit:contain;filter:drop-shadow(0 0 16px rgba(65,213,143,.25))}.v146244-exchange>header>div{display:grid;gap:3px;min-width:0}.v146244-exchange>header h3{font-family:Georgia,serif!important;color:#f4e5c1!important}.v146244-exchange>header p{font-size:8px!important}
html body.v146244-ui .v146244-exchange .v146194-exchange-art{position:relative}.v146244-exchange .v146194-exchange-art>i{position:absolute;right:2px;bottom:2px;padding:2px 4px;border-radius:6px;background:rgba(3,7,8,.86);color:#f2d58d;font:850 7px/1 system-ui}
html body.v146244-ui .v146244-exchange-filters{display:flex;gap:5px;overflow:auto;padding:1px}.v146244-exchange-filters button{flex:0 0 auto;min-height:30px;margin:0;padding:5px 10px;border:1px solid rgba(128,179,159,.22);border-radius:9px;background:#0a211f;color:#9eb2aa;font:800 7px/1 system-ui}.v146244-exchange-filters button.active{border-color:#b6ce68;background:#1a3326;color:#eef3ce;box-shadow:inset 0 0 0 1px rgba(182,206,104,.16)}
html body.v146244-ui .v146197-exchange-mini{height:auto!important;min-height:92px!important;grid-template-columns:54px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;overflow:visible!important}.v146197-exchange-mini>.art{grid-row:1/3;margin:0;padding:0;border:0;background:rgba(0,0,0,.16)!important}.v146197-exchange-mini>div{grid-column:2;grid-row:1/3}.v146197-exchange-mini>label{display:grid;gap:2px;color:#91a79f;font:700 6px/1 system-ui}.v146197-exchange-mini>label input{box-sizing:border-box;width:58px;height:29px;padding:4px 6px;border:1px solid rgba(170,206,117,.35);border-radius:7px;background:#071714;color:#f1e5c8;font:800 9px/1 system-ui}.v146197-exchange-mini>button.primary{min-height:29px;margin:0;padding:5px 8px;border-radius:8px;font:850 7px/1 system-ui}

html body.v146244-ui .v146244-sacrifice-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 10px}.v146244-sacrifice-tabs button{min-height:36px;margin:0;padding:7px;border:1px solid rgba(223,122,99,.2);border-radius:11px;background:rgba(11,9,14,.7);color:#ad9996;font:850 9px/1 system-ui}.v146244-sacrifice-tabs button.active{border-color:rgba(241,102,85,.6);background:linear-gradient(135deg,rgba(119,15,32,.82),rgba(55,10,21,.86));color:#ffe4d2}.v146244-sacrifice-tabs i{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;border-radius:99px;background:rgba(255,255,255,.08);font:800 7px/1 system-ui}
html body.v146244-ui .v146244-sacrifice-leaders{display:grid;gap:5px;max-height:250px;overflow:auto;margin-bottom:10px;padding:8px;border:1px solid rgba(231,118,91,.18);border-radius:13px;background:rgba(10,5,10,.72)}.v146244-sacrifice-leaders[hidden]{display:none!important}.v146244-leader-head,.v146244-sacrifice-leaders article{display:grid;grid-template-columns:45px minmax(0,1fr) 55px;gap:7px;align-items:center}.v146244-leader-head{padding:0 7px 4px;color:#8e7a78;font:750 7px/1 system-ui;text-transform:uppercase;letter-spacing:.08em}.v146244-leader-head span:last-child{text-align:right}.v146244-sacrifice-leaders article{min-height:35px;padding:5px 7px;border:1px solid rgba(255,255,255,.045);border-radius:9px;background:rgba(255,255,255,.025)}.v146244-sacrifice-leaders article.rank-1{border-color:rgba(236,194,81,.3);background:rgba(118,74,14,.12)}.v146244-sacrifice-leaders article>i{font:800 13px/1 system-ui;color:#bda59d}.v146244-sacrifice-leaders article>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eadbd2;font:800 9px/1 system-ui}.v146244-sacrifice-leaders article>strong{text-align:right;color:#ff8b76;font:900 11px/1 system-ui}.v146244-leader-empty{display:grid;gap:5px;padding:18px;text-align:center}.v146244-leader-empty b{color:#e8d5ca;font:850 11px/1.2 system-ui}.v146244-leader-empty span{color:#96817e;font:650 8px/1.35 system-ui}

@media(max-width:620px){html body.v146244-ui .v146244-cleanse>div{grid-template-columns:1fr}.v146244-cleanse article{grid-template-columns:42px minmax(0,1fr) 72px;grid-template-areas:"art copy action";align-items:center}.v146244-cleanse article>button{grid-area:action}.v146244-exchange>header{grid-template-columns:54px minmax(0,1fr)!important}.v146244-exchange>header>img{width:54px;height:54px}.v146197-exchange-mini{grid-template-columns:50px minmax(0,1fr)!important}.v146197-exchange-mini>label,.v146197-exchange-mini>button.primary{grid-column:2}.v146197-exchange-mini>.art{grid-row:1/4}.v146197-exchange-mini>div{grid-row:1}}
@media(prefers-reduced-motion:reduce){html body.v146244-ui *{scroll-behavior:auto!important}}

/* ===== css/v146245-elite-spawn-attribute-bias.css ===== */
/* Aldos RPG v1.146.245 — authoritative elite arrival and class-weighted attributes. */
body.v146245-ui .v119-monster-card{
  isolation:isolate;
}

body.v146245-ui .v119-monster-card.v146245-elite-arrival-play{
  animation:v146245EliteCardArrival 1.55s cubic-bezier(.18,.82,.25,1) both;
}

body.v146245-ui .v146245-elite-arrival{
  position:absolute;
  inset:0;
  z-index:9;
  overflow:hidden;
  border-radius:inherit;
  pointer-events:none;
  opacity:0;
  animation:v146245EliteOverlay 1.55s ease-out both;
}

body.v146245-ui .v146245-elite-arrival::before{
  content:"";
  position:absolute;
  inset:-12%;
  background:radial-gradient(circle at 35% 50%,rgba(255,255,255,.98) 0 5%,rgba(244,229,174,.72) 10%,rgba(203,235,255,.28) 25%,transparent 54%);
  mix-blend-mode:screen;
  animation:v146245EliteFlash 1.35s ease-out both;
}

body.v146245-ui .v146245-elite-arrival img{
  position:absolute;
  left:0;
  top:50%;
  width:min(58%,230px);
  height:auto;
  transform-origin:center;
  filter:drop-shadow(0 0 10px rgba(255,255,255,.95)) drop-shadow(0 0 22px rgba(226,195,105,.75));
  mix-blend-mode:screen;
}

body.v146245-ui .v146245-elite-sigil{
  animation:v146245EliteSigil 1.5s cubic-bezier(.16,.8,.2,1) both;
}

body.v146245-ui .v146245-elite-particles{
  animation:v146245EliteParticles 1.55s cubic-bezier(.12,.68,.24,1) both;
}

body.v146245-ui .v146245-elite-arrival>i{
  position:absolute;
  left:23%;
  top:50%;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 9px 4px #fff,0 0 26px 12px rgba(247,222,145,.92),0 0 58px 22px rgba(169,220,255,.45);
  animation:v146245EliteCore 1.3s ease-out both;
}

body.v146245-ui .v119-monster-card.v146245-elite-arrival-play .v119-monster-main,
body.v146245-ui .v119-monster-card.v146245-elite-arrival-play .v119-monster-actions{
  position:relative;
  z-index:10;
}

body.v146245-ui .v119-monster-card.v146245-elite-arrival-play .v119-monster-tags .rank-elite{
  animation:v146245EliteBadge 1.65s ease-out both;
}

body.v146245-ui .v146118-attribute-card.v146245-class-preferred{
  position:relative;
  border-color:rgba(220,187,91,.72);
  box-shadow:inset 0 0 0 1px rgba(255,239,171,.1),0 8px 24px rgba(8,6,2,.25);
  background:linear-gradient(145deg,rgba(62,50,23,.48),rgba(14,25,29,.94) 48%,rgba(10,17,22,.98));
}

body.v146245-ui .v146118-attribute-card.v146245-class-preferred .v146118-attribute-copy>small{
  color:#f2d878;
  letter-spacing:.08em;
}

body.v146245-ui .v146118-attribute-card.v146245-class-preferred::after{
  content:"Классовый приоритет";
  position:absolute;
  right:12px;
  bottom:9px;
  color:rgba(247,224,146,.7);
  font-size:9px;
  line-height:1;
  letter-spacing:.04em;
  text-transform:uppercase;
  pointer-events:none;
}

@keyframes v146245EliteCardArrival{
  0%{opacity:.2;transform:scale(.94);filter:brightness(2.5) saturate(.35);box-shadow:0 0 0 rgba(255,255,255,0)}
  18%{opacity:1;transform:scale(1.018);filter:brightness(1.9) saturate(.7);box-shadow:0 0 25px rgba(255,255,255,.72),0 0 48px rgba(217,180,75,.4)}
  52%{transform:scale(.995);filter:brightness(1.15) saturate(1.08)}
  100%{opacity:1;transform:scale(1);filter:none;box-shadow:var(--v119-monster-shadow,0 10px 26px rgba(0,0,0,.28))}
}
@keyframes v146245EliteOverlay{0%,72%{opacity:1}100%{opacity:0}}
@keyframes v146245EliteFlash{0%{opacity:0;transform:scale(.2)}10%{opacity:1}38%{opacity:.72;transform:scale(1.05)}100%{opacity:0;transform:scale(1.35)}}
@keyframes v146245EliteSigil{0%{opacity:0;transform:translate(-15%,-50%) scale(.16) rotate(-24deg)}12%{opacity:1}50%{opacity:.92;transform:translate(0,-50%) scale(.96) rotate(6deg)}100%{opacity:0;transform:translate(5%,-50%) scale(1.32) rotate(15deg)}}
@keyframes v146245EliteParticles{0%{opacity:0;transform:translate(-3%,-50%) scale(.38) rotate(-18deg)}17%{opacity:1}72%{opacity:.75;transform:translate(4%,-50%) scale(1.15) rotate(11deg)}100%{opacity:0;transform:translate(7%,-50%) scale(1.42) rotate(19deg)}}
@keyframes v146245EliteCore{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}12%{opacity:1}35%{opacity:.94;transform:translate(-50%,-50%) scale(1.8)}100%{opacity:0;transform:translate(-50%,-50%) scale(5.8)}}
@keyframes v146245EliteBadge{0%,28%{opacity:0;transform:translateY(5px) scale(.8);filter:brightness(2)}52%{opacity:1;transform:translateY(-1px) scale(1.08)}100%{opacity:1;transform:none;filter:none}}

@media(max-width:620px){
  body.v146245-ui .v146245-elite-arrival img{width:min(72%,220px);left:-4%}
  body.v146245-ui .v146245-elite-arrival>i{left:27%}
  body.v146245-ui .v146118-attribute-card.v146245-class-preferred::after{display:none}
}

@media(prefers-reduced-motion:reduce){
  body.v146245-ui .v119-monster-card.v146245-elite-arrival-play,
  body.v146245-ui .v146245-elite-arrival,
  body.v146245-ui .v146245-elite-arrival *,
  body.v146245-ui .v119-monster-card.v146245-elite-arrival-play .v119-monster-tags .rank-elite{animation:none!important}
  body.v146245-ui .v146245-elite-arrival{display:none}
}

/* ===== css/v146246-expedition-exchange-performance.css ===== */
/* Aldos RPG v1.146.246 — live expedition lobby, compact dungeon exchange and Android 7 recovery. */
html body .v14643-lobby-grid .v14643-member{position:relative}
html body .v14643-lobby-grid .v14643-member>[data-dungeon-kick]{position:absolute!important;z-index:3!important;top:8px!important;right:8px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border-radius:11px!important;font:800 20px/30px system-ui!important;display:grid!important;place-items:center!important}

html body .v146246-exchange{display:grid!important;gap:10px!important;padding:10px!important;overflow:visible!important}
html body .v146246-exchange>header{grid-template-columns:48px minmax(0,1fr)!important;padding:0 0 8px!important;gap:8px!important}
html body .v146246-exchange>header>img{width:48px!important;height:48px!important;filter:none!important}
html body .v146246-exchange>header h3{font-size:20px!important}
html body .v146246-exchange>header p{font-size:9px!important;line-height:1.35!important}
html body .v146246-exchange-own,
html body .v146246-exchange-incoming{box-sizing:border-box;display:grid;gap:8px;min-width:0;padding:10px;border:1px solid rgba(114,179,139,.27);border-radius:14px;background:rgba(5,22,20,.86)}
html body .v146246-exchange-own>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body .v146246-exchange-own>div:first-child b,
html body .v146246-exchange-incoming h4{margin:0;color:#e8e4d8;font:800 12px/1.2 system-ui}
html body .v146246-exchange-own>div:first-child small{padding:3px 7px;border-radius:99px;background:rgba(111,196,149,.12);color:#8ed5b0;font:800 8px/1 system-ui}
html body .v146246-exchange-own>p{margin:0;color:#8da29a;font:500 9px/1.35 system-ui}
html body .v146246-exchange-add{width:100%;min-height:40px!important;margin:0!important;padding:8px 12px!important;border-radius:11px!important;font-size:10px!important}
html body .v146246-exchange-offers{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;min-width:0!important}
html body .v146246-exchange-offers .v146194-exchange-slot{height:76px!important;min-height:76px!important;max-height:76px!important}
html body .v146246-exchange-picker{display:grid;gap:9px;min-width:0;padding:9px;border:1px solid rgba(204,168,89,.33);border-radius:12px;background:#071916}
html body .v146246-exchange-picker>header{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:8px;align-items:center}
html body .v146246-exchange-picker>header>div{display:grid;gap:2px;min-width:0}
html body .v146246-exchange-picker>header small{color:#8ecab0;font:800 7px/1 system-ui;letter-spacing:.08em}
html body .v146246-exchange-picker>header b{color:#ece7da;font:750 10px/1.25 system-ui}
html body .v146246-exchange-picker>header>button{width:30px!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border-radius:9px!important;font:800 18px/1 system-ui!important}
html body .v146246-exchange-targets{display:flex;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}
html body .v146246-exchange-target{box-sizing:border-box;display:grid!important;grid-template-columns:30px minmax(55px,1fr)!important;align-items:center!important;gap:5px!important;flex:1 0 92px!important;min-height:42px!important;margin:0!important;padding:5px!important;border-radius:10px!important;text-align:left!important}
html body .v146246-exchange-target.selected{border-color:#a7cf70!important;background:#173326!important;color:#f1eccf!important}
html body .v146246-exchange-target>span{width:30px;height:32px;display:grid;place-items:center;overflow:hidden;border-radius:8px}
html body .v146246-exchange-target>span :where(img,.class-asset-image){width:100%;height:100%;object-fit:contain}
html body .v146246-exchange-target>b{min-width:0;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .v146246-exchange-items{display:grid;gap:5px;max-height:43dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
html body .v146246-exchange-item{box-sizing:border-box;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;min-height:62px;padding:6px;border:1px solid rgba(118,166,148,.2);border-radius:10px;background:#0b211e}
html body .v146246-exchange-item>.art{position:relative;display:grid;place-items:center;width:48px;height:50px;margin:0;padding:2px;border:0;background:rgba(0,0,0,.16);overflow:hidden}
html body .v146246-exchange-item>.art :where(img,.v146194-exchange-item-image){width:100%;height:100%;object-fit:contain}
html body .v146246-exchange-item>.art>i{position:absolute;right:1px;bottom:1px;padding:2px 4px;border-radius:5px;background:#050b0b;color:#efd584;font:800 7px/1 system-ui}
html body .v146246-exchange-item>div{display:grid;gap:3px;min-width:0}
html body .v146246-exchange-item>div b{font:750 9px/1.2 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .v146246-exchange-item>div small{font:600 7px/1.2 system-ui;color:#8da39a}
html body .v146246-exchange-item>input{box-sizing:border-box;width:45px;height:32px;padding:4px;border:1px solid rgba(173,204,116,.34);border-radius:8px;background:#061412;color:#efe5c8;text-align:center;font:800 9px/1 system-ui}
html body .v146246-exchange-item>button.primary{min-height:32px!important;margin:0!important;padding:5px 8px!important;border-radius:8px!important;font-size:8px!important}
html body .v146246-exchange-picker .empty{margin:2px 0;padding:12px;border:1px dashed rgba(132,157,148,.25);border-radius:10px;color:#91a099;text-align:center;font-size:9px}

html.aldos-apk-root body :where(.modal-back,.side-overlay,.v146238-ritual-card){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.aldos-android-legacy *,html.aldos-android-legacy *::before,html.aldos-android-legacy *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
html.aldos-android-legacy body :where([style*="filter"],.location-hero,.v14643-scene,.v146245-elite-arrival){filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
html body .v146246-android-recovery{box-sizing:border-box;display:grid;gap:14px;width:min(430px,calc(100vw - 32px));margin:18vh auto 0;padding:24px;border:1px solid #4d6b61;border-radius:18px;background:#0b1d1d;color:#e9e5d9;text-align:center;font-family:system-ui}
html body .v146246-android-recovery h1,html body .v146246-android-recovery p{margin:0}
html body .v146246-android-recovery p{color:#9fb2ac;line-height:1.45}
html body .v146246-android-recovery button{min-height:44px;border:1px solid #b9cf70;border-radius:12px;background:#315d25;color:#fff;font-weight:800}

@media(max-width:620px){
  html body .v146246-exchange-offers{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body .v146246-exchange-item{grid-template-columns:44px minmax(0,1fr) auto}
  html body .v146246-exchange-item>.art{width:44px;height:48px}
  html body .v146246-exchange-item>input{grid-column:2;width:52px}
  html body .v146246-exchange-item>button.primary{grid-column:3;grid-row:1/3}
}

/* ===== css/v146247-android7-exchange-soul-order.css ===== */
/* Aldos RPG v1.146.247 — Android 7 boot recovery, persistent dungeon picker and soul skill order. */
html body.v146247-ui .v146246-exchange-picker{position:relative;z-index:4;isolation:isolate;animation:none!important;transition:none!important}
html body.v146247-ui .v146246-exchange-items{max-height:360px;max-height:43dvh}
html body.v146247-ui .v146247-soul-skill-locked{border-style:dashed!important;border-color:rgba(155,172,163,.28)!important;background:linear-gradient(145deg,rgba(15,28,29,.9),rgba(8,17,20,.96))!important;opacity:.78}
html body.v146247-ui .v146247-soul-skill-locked header>span{color:#9aa9a4!important;border-color:rgba(154,169,164,.28)!important}
html body.v146247-ui .v146247-soul-skill-locked header small{color:#a8b4af!important}
html body.v146247-ui .v146247-soul-skill-locked header b{color:#d3d9d5!important}
html body.v146247-ui .v146247-soul-skill-locked p{color:#899a94!important}
html.aldos-android-legacy body.v146247-ui .v146246-exchange-picker,
html.aldos-android-legacy body.v146247-ui .v146195-soul-detail-skill{contain:none!important;box-shadow:none!important;filter:none!important}

/* ===== css/v146250-necromancer-cooldown-dungeon-picker.css ===== */
/* Aldos RPG v1.146.250 — effective puppet cooldown and stable dungeon transfer picker. */
html body.v146250-exchange-picker-open{overflow:hidden!important;touch-action:none}
html body .v146250-exchange-portal{position:fixed!important;z-index:2147481000!important;inset:0!important;display:grid!important;align-items:end!important;padding:0!important;background:transparent!important;pointer-events:auto!important}
html body .v146250-exchange-backdrop{position:absolute!important;z-index:0!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(1,8,8,.78)!important}
html body .v146250-exchange-sheet{position:relative;z-index:1;box-sizing:border-box;width:min(620px,100%);max-height:min(78vh,720px);margin:0 auto;padding:10px max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:hidden;border:1px solid rgba(192,167,94,.45);border-bottom:0;border-radius:20px 20px 0 0;background:linear-gradient(165deg,#102724 0%,#061514 58%,#050d0e 100%);box-shadow:0 -18px 54px rgba(0,0,0,.5)}
html body .v146250-exchange-picker{display:grid!important;grid-template-rows:auto auto minmax(0,1fr);gap:10px!important;max-height:calc(min(78vh,720px) - 24px);padding:4px!important;border:0!important;background:transparent!important}
html body .v146250-exchange-picker>header{display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;align-items:center!important;gap:8px!important;padding:2px 2px 8px!important;border-bottom:1px solid rgba(139,181,150,.18)}
html body .v146250-exchange-picker.item-step>header{grid-template-columns:38px minmax(0,1fr) 38px!important}
html body .v146250-exchange-picker>header>div{display:grid;gap:4px;min-width:0}
html body .v146250-exchange-picker>header small{color:#a9d49a!important;font:800 9px/1.1 system-ui!important;letter-spacing:.1em!important}
html body .v146250-exchange-picker>header b{color:#f4eedf!important;font:800 16px/1.2 system-ui!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .v146250-exchange-picker>header>button{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:1px solid rgba(213,183,103,.5)!important;border-radius:12px!important;background:#102b27!important;color:#efd487!important;font:800 23px/1 system-ui!important}
html body .v146250-exchange-picker .v146250-picker-back{font-size:29px!important}
html body .v146250-picker-note{margin:0!important;padding:0 3px;color:#8fa59e;font:550 10px/1.4 system-ui}
html body .v146250-exchange-picker .v146246-exchange-targets{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;overflow:visible!important}
html body .v146250-exchange-picker .v146246-exchange-target{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;min-height:60px!important;padding:7px!important;border:1px solid rgba(119,174,146,.3)!important;border-radius:13px!important;background:#0b211e!important}
html body .v146250-exchange-picker .v146246-exchange-target>span{width:46px!important;height:46px!important;border-radius:10px!important;background:rgba(0,0,0,.2)}
html body .v146250-exchange-picker .v146246-exchange-target>b{font-size:11px!important;color:#e8eadf!important}
html body .v146250-exchange-picker .v146246-exchange-items{min-height:0;max-height:none!important;padding:1px 2px 6px;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html body .v146250-exchange-picker .v146246-exchange-item{grid-template-columns:54px minmax(0,1fr) auto!important;min-height:70px!important;padding:7px!important;border-color:rgba(118,166,148,.24)!important;border-radius:12px!important;background:rgba(9,30,27,.96)!important}
html body .v146250-exchange-picker .v146246-exchange-item>.art{width:54px!important;height:56px!important;border-radius:10px!important}
html body .v146250-exchange-picker .v146246-exchange-item>div b{font-size:11px!important}
html body .v146250-exchange-picker .v146246-exchange-item>div small{font-size:9px!important}
html body .v146250-exchange-picker .v146246-exchange-item>button.primary{min-height:38px!important;padding:7px 10px!important;font-size:10px!important}
html body .v146250-exchange-picker .v146246-exchange-item>input{height:38px!important;font-size:11px!important}
html body .v146181-puppet-skill em .v146250-effective-cd,html body .v146177-puppet-history .v146250-effective-cd{color:#a9d77d;font-weight:800}

@media(max-width:460px){
  html body .v146250-exchange-sheet{max-height:82vh}
  html body .v146250-exchange-picker{max-height:calc(82vh - 24px)}
  html body .v146250-exchange-picker .v146246-exchange-targets{grid-template-columns:1fr}
  html body .v146250-exchange-picker .v146246-exchange-item{grid-template-columns:48px minmax(0,1fr) auto!important}
  html body .v146250-exchange-picker .v146246-exchange-item>.art{width:48px!important;height:52px!important}
  html body .v146250-exchange-picker .v146246-exchange-item>input{grid-column:2!important;width:58px!important}
  html body .v146250-exchange-picker .v146246-exchange-item>button.primary{grid-column:3!important;grid-row:1/3!important}
}

html.aldos-android-legacy body .v146250-exchange-portal,html.aldos-android-legacy body .v146250-exchange-sheet{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important;transition:none!important}

/* ===== css/v146251-tiered-global-notices.css ===== */
/* v1.146.251 — server-authoritative top notices with generated rarity frames. */
html body.v146251-ui #v1410-global-notices{
  width:min(520px,calc(100vw - 18px))!important;
  max-width:520px!important;
  gap:8px!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice{
  position:relative!important;
  isolation:isolate!important;
  width:100%!important;
  max-width:100%!important;
  min-height:76px!important;
  padding:13px 14px!important;
  grid-template-columns:48px minmax(0,1fr) 34px!important;
  gap:11px!important;
  border:1px solid var(--v146251-border,rgba(89,214,228,.66))!important;
  border-radius:17px!important;
  background-color:#061316!important;
  background-image:linear-gradient(90deg,rgba(2,11,14,.42),rgba(3,11,14,.70) 36%,rgba(2,8,11,.48)),var(--v146251-panel)!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  box-shadow:0 14px 38px rgba(0,0,0,.65),0 0 26px var(--v146251-glow,rgba(50,196,216,.16)),inset 0 0 0 1px rgba(255,255,255,.05)!important;
  overflow:hidden!important;
  animation:v146251NoticeEnter .28s cubic-bezier(.18,.8,.22,1) both!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 7%,rgba(255,255,255,.075) 29%,transparent 48%);
  transform:translateX(-115%);
  animation:v146251NoticeShimmer 1.05s .18s ease-out 1;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.notice-system{
  --v146251-panel:url("../assets/v146251/notifications/system-panel.webp");
  --v146251-border:rgba(72,212,231,.72);
  --v146251-glow:rgba(38,196,220,.18);
  --v146251-accent:#72e6f1;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.notice-admin{
  --v146251-panel:url("../assets/v146251/notifications/admin-panel.webp");
  --v146251-border:rgba(243,202,101,.82);
  --v146251-glow:rgba(79,132,237,.21);
  --v146251-accent:#ffe19a;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.notice-epic{
  --v146251-panel:url("../assets/v146251/notifications/epic-loot-panel.webp");
  --v146251-border:rgba(187,102,255,.88);
  --v146251-glow:rgba(157,57,255,.29);
  --v146251-accent:#e0aaff;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.notice-legendary{
  --v146251-panel:url("../assets/v146251/notifications/legendary-loot-panel.webp");
  --v146251-border:rgba(255,196,66,.94);
  --v146251-glow:rgba(255,153,28,.34);
  --v146251-accent:#ffe08a;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.notice-mythic{
  --v146251-panel:url("../assets/v146251/notifications/mythic-loot-panel.webp");
  --v146251-border:rgba(255,73,137,.94);
  --v146251-glow:rgba(239,23,102,.36);
  --v146251-accent:#ff9bc4;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice .v1410-notice-mark{
  width:46px!important;
  height:46px!important;
  border:1px solid var(--v146251-border,rgba(89,214,228,.66))!important;
  border-radius:13px!important;
  background:rgba(2,10,13,.78)!important;
  box-shadow:0 0 18px var(--v146251-glow,rgba(38,196,220,.18)),inset 0 0 12px rgba(255,255,255,.04)!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice .v1410-notice-mark img{
  width:38px!important;
  height:38px!important;
  max-width:38px!important;
  max-height:38px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 3px 7px rgba(0,0,0,.72));
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice>div{
  min-width:0!important;
  text-align:left!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice small{
  margin:0 0 4px!important;
  color:var(--v146251-accent,#72e6f1)!important;
  font:900 9px/1.1 system-ui,sans-serif!important;
  letter-spacing:.13em!important;
  text-shadow:0 1px 8px #000!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice b{
  color:#fff9ec!important;
  font:800 13px/1.3 system-ui,sans-serif!important;
  text-shadow:0 2px 8px #000!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice p{
  margin:4px 0 0!important;
  color:rgba(233,240,237,.76)!important;
  font:650 10px/1.25 system-ui,sans-serif!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice>button{
  width:30px!important;
  height:30px!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:10px!important;
  background:rgba(1,8,11,.62)!important;
  color:#f8efdf!important;
  font:800 18px/1 system-ui!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice>button:active{transform:scale(.93)}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.notice-legendary,
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.notice-mythic{
  animation:v146251NoticeEnter .28s cubic-bezier(.18,.8,.22,1) both,v146251RarePulse 2.7s .35s ease-in-out infinite!important;
}
html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice.leaving{
  opacity:0!important;
  transform:translateY(-10px) scale(.985)!important;
  transition:opacity .25s ease,transform .25s ease!important;
}
@keyframes v146251NoticeEnter{from{opacity:0;transform:translateY(-16px) scale(.97)}to{opacity:1;transform:none}}
@keyframes v146251NoticeShimmer{to{transform:translateX(125%)}}
@keyframes v146251RarePulse{50%{box-shadow:0 15px 40px rgba(0,0,0,.68),0 0 34px var(--v146251-glow),inset 0 0 0 1px rgba(255,255,255,.07)}}
@media(max-width:600px){
  html body.v146251-ui #v1410-global-notices{top:calc(65px + env(safe-area-inset-top))!important;width:calc(100vw - 12px)!important}
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice{min-height:68px!important;padding:10px!important;grid-template-columns:42px minmax(0,1fr) 30px!important;gap:8px!important;border-radius:15px!important}
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice .v1410-notice-mark{width:40px!important;height:40px!important;border-radius:11px!important}
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice .v1410-notice-mark img{width:33px!important;height:33px!important;max-width:33px!important;max-height:33px!important}
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice b{font-size:11px!important}
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice small{font-size:7px!important}
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice p{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice,
  html body.v146251-ui #v1410-global-notices>.v146251-tiered-notice::after{animation:none!important}
}
html.aldos-android-legacy body.v146251-ui #v1410-global-notices>.v146251-tiered-notice{
  animation:none!important;
  box-shadow:0 8px 22px rgba(0,0,0,.58)!important;
}
html.aldos-android-legacy body.v146251-ui #v1410-global-notices>.v146251-tiered-notice::after{display:none!important}

/* ===== css/v146252-potion-aggro-visibility-fix.css ===== */
/* Aldos RPG v1.146.252 — authoritative potion availability and visible-only aggro. */

html body.v146252-ui.v111-battle-active .v81-potion-card:not(:disabled):not(.disabled):not(.request-pending){
  opacity:1!important;
  filter:none!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(113,210,164,.12),0 8px 18px rgba(0,0,0,.24)!important
}

html body.v146252-ui.v111-battle-active .v81-potion-card.disabled,
html body.v146252-ui.v111-battle-active .v81-potion-card:disabled:not(.request-pending){
  opacity:.40!important;
  filter:grayscale(.72) saturate(.48)!important;
  cursor:default!important;
  pointer-events:none!important
}

html body.v146252-ui.v111-battle-active [data-potion-availability]{
  padding:4px 7px!important;
  border:1px solid transparent!important;
  border-radius:999px!important
}

html body.v146252-ui.v111-battle-active [data-potion-availability="ready"]{
  color:#8fe0b6!important;
  border-color:rgba(112,219,164,.30)!important;
  background:rgba(54,137,96,.13)!important
}

html body.v146252-ui.v111-battle-active [data-potion-availability="blocked"]{
  color:#d2b98c!important
}

/* ===== css/v146253-elite-mage-effects-clarity.css ===== */
/* Aldos RPG v1.146.253 — elite/mage clarity and compact battle effect rails. */

/* Leave a small breathing space at the right edge of both player and monster
   cards. The rail remains left-aligned and horizontally scrollable. */
html body.v146253-ui.v146221-ui.v111-battle-active main.v146200-battle :is(.v101-player-card,.v101-monster-card)>.v101-unit-effects{
  width:calc(100% - 8px)!important;
  max-width:calc(100% - 8px)!important;
  justify-self:start!important;
  margin:0 8px 0 0!important;
}

/* Contextual MP discounts are authoritative battle state, not decorative text. */
html body.v146253-ui.v111-battle-active .v102-skill-card .v59-skill-slot-main{
  position:relative!important;
}
html body.v146253-ui.v111-battle-active .v146253-skill-mana-badge{
  position:absolute!important;
  right:1px!important;
  bottom:1px!important;
  z-index:7!important;
  display:block!important;
  min-width:22px!important;
  max-width:calc(100% - 2px)!important;
  padding:2px 3px!important;
  border:1px solid rgba(110,235,181,.78)!important;
  border-radius:6px!important;
  background:rgba(4,35,28,.94)!important;
  box-shadow:0 1px 4px rgba(0,0,0,.5)!important;
  color:#b9ffe0!important;
  font:900 7px/1 system-ui,sans-serif!important;
  letter-spacing:.01em!important;
  text-align:center!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}
html body.v146253-ui.v111-battle-active .v146253-mana-cost.discounted{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
}
html body.v146253-ui.v111-battle-active .v146253-mana-cost.discounted s{
  color:#84908d!important;
  font-weight:700!important;
}
html body.v146253-ui.v111-battle-active .v146253-mana-cost.discounted strong{
  color:#8df5c5!important;
}
html body.v146253-ui.v111-battle-active .v146253-mana-reason{
  display:block!important;
  margin-top:2px!important;
  color:#8fdabb!important;
  font:700 8px/1.2 system-ui,sans-serif!important;
}

@media (max-width:390px){
  html body.v146253-ui.v146221-ui.v111-battle-active main.v146200-battle :is(.v101-player-card,.v101-monster-card)>.v101-unit-effects{
    width:calc(100% - 6px)!important;
    max-width:calc(100% - 6px)!important;
    margin-right:6px!important;
  }
}

/* ===== css/v146255-puppet-cooldown-notice-card.css ===== */
/* v1.146.255 — zero-round puppet cooldown, low/wide notices and compact selected skill card. */

html body.v146255-ui #v1410-global-notices>.v146251-tiered-notice{
  min-height:72px!important;
  aspect-ratio:1600/228!important;
  background-size:100% 100%!important;
}
html body.v146255-ui #v1410-global-notices>.v146251-tiered-notice.notice-system{
  --v146251-panel:url("../assets/v146255/notifications/system-panel.webp");
}
html body.v146255-ui #v1410-global-notices>.v146251-tiered-notice.notice-admin{
  --v146251-panel:url("../assets/v146255/notifications/admin-panel.webp");
}
html body.v146255-ui #v1410-global-notices>.v146251-tiered-notice.notice-epic{
  --v146251-panel:url("../assets/v146255/notifications/epic-loot-panel.webp");
}
html body.v146255-ui #v1410-global-notices>.v146251-tiered-notice.notice-legendary{
  --v146251-panel:url("../assets/v146255/notifications/legendary-loot-panel.webp");
}
html body.v146255-ui #v1410-global-notices>.v146251-tiered-notice.notice-mythic{
  --v146251-panel:url("../assets/v146255/notifications/mythic-loot-panel.webp");
}

html body.v146255-ui.v111-battle-active #v1281-skill-detail-slot{
  box-sizing:border-box!important;
  min-height:0!important;
  height:auto!important;
  max-height:min(52dvh,430px)!important;
  padding-bottom:4px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
html body.v146255-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail{
  box-sizing:border-box!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-content:start!important;
  justify-content:start!important;
  padding-bottom:11px!important;
}
html body.v146255-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-target{
  margin-top:0!important;
}
html body.v146255-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-cast{
  margin-top:0!important;
}
html body.v146255-ui .v146255-puppet-stat-note{
  margin:10px 2px 0!important;
  color:#91a49e!important;
  font:600 10px/1.4 system-ui,sans-serif!important;
}
html body.v146255-ui .v146255-summon-stats{
  margin:4px 0!important;
  color:#d8c88f!important;
  font-weight:800!important;
}
html body.v146255-ui .v146255-summon-skills{
  display:grid!important;
  gap:2px!important;
  margin:5px 0 7px!important;
  color:#9eb7ae!important;
  font:650 10px/1.3 system-ui,sans-serif!important;
}
html body.v146255-ui .v146255-summon-skills>span{
  display:block!important;
  white-space:normal!important;
}

html body.v146255-ui .v146255-battle-notice-settings{
  position:relative!important;
  overflow:hidden!important;
  border-color:rgba(106,202,182,.38)!important;
  background:radial-gradient(circle at 100% 0,rgba(67,175,143,.14),transparent 36%),linear-gradient(150deg,rgba(7,33,31,.97),rgba(3,15,18,.99))!important;
}
html body.v146255-ui .v146255-battle-notice-settings::before{
  content:"";position:absolute;inset:0 0 auto 0;height:2px;pointer-events:none;background:linear-gradient(90deg,transparent,#68d8b5,transparent);opacity:.62;
}
html body.v146255-ui .v146255-battle-notice-settings>header{
  grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;
}
html body.v146255-ui .v146255-battle-notice-settings>header>span{display:grid!important;gap:2px!important;min-width:0!important}
html body.v146255-ui .v146255-battle-notice-settings>header>em{
  padding:4px 8px!important;border:1px solid rgba(95,220,181,.34)!important;border-radius:999px!important;background:rgba(46,138,110,.18)!important;color:#9eefd4!important;font:800 8px/1 system-ui,sans-serif!important;font-style:normal!important;text-transform:uppercase!important;letter-spacing:.08em!important;
}
html body.v146255-ui .v146255-battle-notice-settings.is-muted>header>em{border-color:rgba(180,105,105,.3)!important;background:rgba(104,38,45,.22)!important;color:#d69b9f!important}
html body.v146255-ui .v146255-notice-master{border-color:rgba(213,176,89,.32)!important;background:linear-gradient(135deg,rgba(61,48,23,.38),rgba(5,20,21,.92))!important}
html body.v146255-ui .v146255-notice-category-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
html body.v146255-ui .v146255-notice-category-grid>.v127-setting-row{grid-template-columns:34px minmax(0,1fr) 38px!important;gap:7px!important;min-height:66px!important;padding:7px!important}
html body.v146255-ui .v146255-notice-category-grid .v127-setting-icon{width:34px!important;height:34px!important;padding:6px!important}
html body.v146255-ui .v146255-notice-category-grid .v92-switch{width:38px!important;min-width:38px!important;height:23px!important;min-height:23px!important;padding:3px!important}
html body.v146255-ui .v146255-notice-category-grid .v92-switch i{width:17px!important;height:17px!important}
html body.v146255-ui .v146255-notice-category-grid .v92-switch.active i{transform:translateX(15px)!important}
html body.v146255-ui .v146255-battle-notice-settings.is-muted .v146255-notice-category-grid{opacity:.56}
html body.v146255-ui .v146255-notice-footnote{margin:1px 3px 0!important;color:rgba(190,210,202,.55)!important;font:600 8px/1.35 system-ui,sans-serif!important}

@media(max-width:600px){
  html body.v146255-ui #v1410-global-notices>.v146251-tiered-notice{
    min-height:62px!important;
    aspect-ratio:auto!important;
    padding:8px 9px!important;
  }
  html body.v146255-ui.v111-battle-active #v1281-skill-detail-slot{
    max-height:min(48dvh,390px)!important;
  }
  html body.v146255-ui.v111-battle-active #v1281-skill-detail-slot .v102-skill-detail{
    min-height:0!important;
  }
  html body.v146255-ui .v146255-notice-category-grid{grid-template-columns:1fr!important}
  html body.v146255-ui .v146255-notice-category-grid>.v127-setting-row{min-height:58px!important}
}

/* ===== css/v146256-dungeon-potion-mana-hotfix.css ===== */
/* Aldos RPG v1.146.256 — dungeon exchange, potion state and compact MP badge. */

/* Old skill-card rules style every direct child <span> as a square icon.
   The mana quote is metadata, so reset every inherited size/grid constraint. */
html body.v146256-ui.v111-battle-active .v102-skill-card .v59-skill-slot-main>.v146253-skill-mana-badge{
  position:absolute!important;
  inset:auto 2px 2px auto!important;
  z-index:8!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  grid-row:auto!important;
  grid-column:auto!important;
  place-items:initial!important;
  box-sizing:border-box!important;
  width:auto!important;
  min-width:0!important;
  max-width:calc(100% - 4px)!important;
  height:13px!important;
  min-height:13px!important;
  max-height:13px!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:0 3px!important;
  overflow:hidden!important;
  transform:none!important;
  border:1px solid rgba(110,235,181,.72)!important;
  border-radius:4px!important;
  background:rgba(4,29,24,.96)!important;
  box-shadow:0 1px 3px rgba(0,0,0,.58)!important;
  color:#c9ffe7!important;
  font:850 7px/11px system-ui,sans-serif!important;
  letter-spacing:0!important;
  text-align:center!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}

@media (max-width:390px){
  html body.v146256-ui.v111-battle-active .v102-skill-card .v59-skill-slot-main>.v146253-skill-mana-badge{
    right:1px!important;
    bottom:1px!important;
    height:12px!important;
    min-height:12px!important;
    max-height:12px!important;
    padding-inline:2px!important;
    font-size:6.5px!important;
    line-height:10px!important;
  }
}

/* ===== css/v146257-attack-target-hotfix.css ===== */
/* Aldos RPG v1.146.257 — authoritative target selection and attack control. */

html body.v146257-ui.v111-battle-active .v101-monster-card.selected-target > .v106-monster-action-overlay {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 12 !important;
}

html body.v146257-ui.v111-battle-active .v101-monster-card.selected-target .v106-round-attack:not(:disabled) {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 13 !important;
}

/* ===== css/v146258-dungeon-loot-altar-hotfix.css ===== */
html body.v146258-ui .v146258-cleanse-launcher{
  width:100%;min-height:54px;margin:8px 0 10px;padding:7px 10px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;align-items:center;text-align:left;
  border:1px solid rgba(166,222,105,.34);border-radius:15px;background:linear-gradient(145deg,rgba(8,31,28,.97),rgba(5,17,20,.99));color:#efe8d6;box-shadow:inset 0 1px rgba(255,255,255,.05),0 9px 22px rgba(0,0,0,.2)
}
html body.v146258-ui .v146258-cleanse-launcher>img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(142,242,99,.24))}
html body.v146258-ui .v146258-cleanse-launcher>span{display:grid;gap:3px;min-width:0}
html body.v146258-ui .v146258-cleanse-launcher small{font:850 7px/1 system-ui;letter-spacing:.12em;color:#9dd66f}
html body.v146258-ui .v146258-cleanse-launcher b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:850 12px/1.1 system-ui;color:#f3e8cf}
html body.v146258-ui .v146258-cleanse-launcher em{font:750 8px/1.1 system-ui;color:#aec49e;white-space:nowrap}
html body.v146258-ui .v146244-cleanse article>img{content:normal}
@media(max-width:430px){html body.v146258-ui .v146258-cleanse-launcher{grid-template-columns:38px minmax(0,1fr);padding:6px 8px}html body.v146258-ui .v146258-cleanse-launcher>img{width:38px;height:38px}html body.v146258-ui .v146258-cleanse-launcher>em{grid-column:2;white-space:normal}}

/* ===== css/v146261-dungeon-risk-rework.css ===== */
/* Aldos RPG v1.146.261 — infection risk/reward dungeon pass */
.v146261-risk-launcher em{white-space:nowrap}
.v146261-risk-altar header p{max-width:760px;line-height:1.4}
.v146261-risk-actions{display:grid;gap:10px}
.v146261-risk-actions article{min-width:0}
.v146261-embrace-card{border:1px solid rgba(255,173,54,.42)!important;background:linear-gradient(135deg,rgba(95,36,19,.28),rgba(26,15,12,.14))!important}
.v146261-embrace-card button:not(:disabled){font-weight:800}
.v14643-infection small{max-width:150px;white-space:normal;line-height:1.1;text-align:center}
@media(max-width:720px){.v146261-risk-altar header p{font-size:12px}.v146261-risk-actions article{grid-template-columns:54px minmax(0,1fr);}.v146261-risk-actions article button{grid-column:1/-1;width:100%}}

/* ===== css/v146259-character-skin.css ===== */
/* v1.146.259 — server-selected character skins across battle, profile, chat and account UI. */
.v146259-character-skin{display:block;max-width:100%;max-height:100%;margin:0;padding:0;pointer-events:none;user-select:none}
.v146259-character-skin-full,.v146259-character-skin-battle,.v146259-character-skin-profile{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.v146259-character-skin-face,.v146259-character-skin-chat,.v146259-character-skin-icon{width:100%;height:100%;object-fit:contain;object-position:center}

.v146259-character-skin-battle-art{overflow:visible!important;background:radial-gradient(circle at 50% 62%,rgba(139,31,29,.2),transparent 68%)!important}
.v146259-character-skin-battle-art>.v146259-character-skin{width:100%!important;height:112%!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 7px 10px rgba(0,0,0,.5))}
.v146259-character-skin-player{isolation:isolate}
.v146259-character-skin-player .v101-unit-body,.v146259-character-skin-player .v101-unit-effects{position:relative;z-index:2}

.v146259-character-skin-profile-portrait{overflow:hidden!important;background:radial-gradient(circle at 50% 36%,rgba(89,34,32,.42),rgba(3,10,12,.88) 72%)!important}
.v146259-character-skin-profile-portrait>.v146259-character-skin-profile{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 9px 12px rgba(0,0,0,.58))}
.v146259-character-skin-profile-card{--v146259-skin-gold:rgba(224,179,76,.48)}
.v146259-character-skin-profile-card .v125-player-portrait{box-shadow:inset 0 0 0 1px var(--v146259-skin-gold),0 12px 26px rgba(0,0,0,.3)}

.v146259-character-skin-chat-face{object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.48))}
.v146259-character-skin-location-player .v119-location-player-art>.v146259-character-skin-face{width:115%!important;height:115%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center bottom!important;transform:translate(-6%,-2%)}
.v146259-character-skin-row .v125-character-art>.v146259-character-skin-profile{width:100%!important;height:112%!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 5px 7px rgba(0,0,0,.5))}

.v146259-admin-character-skin{grid-template-columns:68px minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;padding:12px!important;background:linear-gradient(135deg,rgba(16,34,34,.92),rgba(32,16,20,.9))!important;border-color:rgba(225,181,78,.5)!important}
.v146259-admin-character-skin>img{width:68px;height:68px;display:block;object-fit:contain;border-radius:15px;border:1px solid rgba(225,181,78,.45);background:radial-gradient(circle,rgba(130,39,35,.34),rgba(3,11,13,.92));box-shadow:0 7px 16px rgba(0,0,0,.3)}
.v146259-admin-character-skin-copy{display:grid;gap:5px;min-width:0}
.v146259-admin-character-skin-copy>b{color:#f4e6be!important;font-size:14px!important}
.v146259-admin-character-skin-copy label{display:grid;gap:3px;margin:0!important}
.v146259-admin-character-skin-copy label>span{font-size:9px;color:#9cb6b1;letter-spacing:.08em;text-transform:uppercase}
.v146259-admin-character-skin-copy select{width:100%;min-height:38px;border-radius:10px;border:1px solid rgba(213,178,89,.38);background:rgba(3,13,15,.9);color:#f4ead0;padding:7px 32px 7px 10px}
.v146259-admin-character-skin-copy small{color:#9bb0ad!important;font-size:10px!important;line-height:1.35!important}
.v146259-admin-character-skin>#adm-character-skin-apply{min-width:112px;min-height:42px;border-color:rgba(92,221,157,.56);background:linear-gradient(180deg,rgba(31,111,73,.7),rgba(17,70,49,.74));color:#c7f4d8}

@media(max-width:760px){
  .v146259-admin-character-skin{grid-template-columns:58px minmax(0,1fr)!important}
  .v146259-admin-character-skin>img{width:58px;height:58px}
  .v146259-admin-character-skin>#adm-character-skin-apply{grid-column:1/-1;width:100%}
  .v146259-character-skin-battle-art>.v146259-character-skin{height:108%!important}
}

@media(prefers-reduced-motion:reduce){.v146259-character-skin{transition:none!important;animation:none!important}}


/* v146263 location player skins full body */
.v146263-location-fullbody-skin .v119-location-player-art{
    height:118px!important;
    width:92px!important;
    overflow:hidden!important;
    align-items:flex-end!important;
    display:flex!important;
    justify-content:center!important;
}
.v146263-location-fullbody-skin .v119-location-player-art .v146259-character-skin-face{
    width:150%!important;
    height:150%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:translateY(10px)!important;
}

/* ===== css/v146264-location-admin-android-ip.css ===== */
/* v1.146.264 — location full-body skins + Android admin + chat IP summary. */

/* Only characters that actually have a selected skin switch to full-body art.
   The normal class portraits keep their existing compact geometry. */
html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player.v146264-location-character-fullbody{
  grid-template-columns:58px minmax(0,1fr) 30px!important;
  min-height:76px!important;
  height:76px!important;
  padding:6px 8px!important;
  overflow:visible!important;
}
html body.v127-ui.v134-location-screen .v119-location-player.v146264-location-character-fullbody .v119-location-player-art{
  width:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  height:64px!important;
  min-height:64px!important;
  max-height:64px!important;
  border-radius:11px!important;
  overflow:visible!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  padding:0!important;
  background:radial-gradient(circle at 50% 58%,rgba(70,104,103,.24),rgba(3,14,17,.72) 72%)!important;
}
html body.v127-ui.v134-location-screen .v119-location-player.v146264-location-character-fullbody .v119-location-player-art>.v146264-location-fullbody-art{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  border-radius:0!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:none!important;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.55))!important;
}
html body.v127-ui.v134-location-screen .v119-location-player.v146264-location-character-fullbody .v119-location-player-art>b{
  right:-4px!important;
  bottom:-2px!important;
  z-index:8!important;
}
html body.v127-ui.v134-location-screen .v119-location-player.v146264-location-character-fullbody .v14697-player-mini-frame{
  pointer-events:none!important;
}
@media(max-width:620px){
  html body.v127-ui.v134-location-screen .v119-players-panel .v119-location-player.v146264-location-character-fullbody{
    grid-template-columns:52px minmax(0,1fr) 28px!important;
    min-height:72px!important;
    height:72px!important;
    gap:5px!important;
  }
  html body.v127-ui.v134-location-screen .v119-location-player.v146264-location-character-fullbody .v119-location-player-art{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
  }
}

/* Inline moderator-only network summary inside a chat-opened player profile. */
.v146264-chat-admin-network{
  grid-column:1/-1;
  margin:8px 0 0;
  padding:10px 12px;
  border:1px solid rgba(97,184,190,.28);
  border-radius:13px;
  background:rgba(5,22,26,.72);
  display:grid;
  gap:4px;
}
.v146264-chat-admin-network small{font-size:9px;letter-spacing:.08em;color:#8faeaa}
.v146264-chat-admin-network b{font-size:13px;color:#dff7f0;word-break:break-all}
.v146264-chat-admin-network span{font-size:10px;color:#9fb2af}

/* Android admin page uses existing admin controls, only tightening the custom grids. */
.v146264-android-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.v146264-android-grid label{
  display:grid;
  gap:5px;
}
.v146264-android-status{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.v146264-android-status>span{
  padding:10px;
  border:1px solid rgba(96,140,145,.25);
  border-radius:12px;
  background:rgba(8,24,28,.58);
}
.v146264-android-status small,.v146264-android-status b{display:block}
.v146264-android-status small{font-size:9px;color:#92aaa6}
.v146264-android-status b{margin-top:4px;font-size:13px}
@media(max-width:720px){
  .v146264-android-grid,.v146264-android-status{grid-template-columns:1fr!important}
}

/* ===== css/v146269-sky-rift.css ===== */
/* Aldos RPG v1.146.269 — compact Sky Rift UI */
.v146269-gate,.v146269-rift-head,.v146269-rift-closed{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:11px;margin:10px 0;padding:11px 12px;border:1px solid #6652a5;border-radius:16px;background:linear-gradient(135deg,#081923f5,#12132cf5);box-shadow:inset 0 0 22px #6038a722,0 5px 20px #0005;overflow:hidden}.v146269-gate>img,.v146269-rift-closed>img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 0 10px #7c5cff88)}.v146269-gate div,.v146269-rift-head>div,.v146269-rift-closed>div{min-width:0}.v146269-gate small,.v146269-rift-head small{display:block;color:#aa98ff;font-size:10px;font-weight:800;letter-spacing:.1em}.v146269-gate b,.v146269-rift-head b,.v146269-rift-closed b{display:block;color:#f3f0ff;font-size:16px}.v146269-gate p,.v146269-rift-head p{margin:2px 0 0;color:#9da8b6;font-size:12px}.v146269-gate time,.v146269-rift-head time{color:#d6c5ff;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums}.v146269-gate button,.v146269-rift-head button{grid-column:3;min-width:84px}.v146269-counter{margin:9px 0;border:1px solid #34404c;border-radius:14px;background:#08161eea;overflow:hidden}.v146269-counter summary{display:flex;align-items:center;gap:10px;padding:9px 11px;cursor:pointer}.v146269-counter summary img{width:42px;height:42px;object-fit:contain}.v146269-counter summary div{display:flex;flex:1;min-width:0;flex-direction:column}.v146269-counter summary small{color:#8174be;font-size:9px;letter-spacing:.1em}.v146269-counter summary b{color:#dce2eb;font-size:14px}.v146269-counter summary em{font-style:normal;color:#929da9;font-size:12px}.v146269-counter>p{margin:0 11px 10px;color:#87929e;font-size:12px}.v146269-mini-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:0 10px 9px}.v146269-mini-progress span{padding:7px;border-radius:9px;background:#101728;border:1px solid #2a3148;text-align:center}.v146269-mini-progress small{display:block;color:#8792a2;font-size:10px}.v146269-mini-progress b{color:#cbbaff;font-size:13px}.v146269-rift-head{grid-template-columns:62px minmax(0,1fr) auto}.v146269-crack{width:60px;height:60px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#4730a866,transparent 70%)}.v146269-crack img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 0 10px #765cff)}
.v146269-quest-strip{display:grid;gap:6px;margin:8px 0}.v146269-active-quest{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 10px;border:1px solid #4d4775;border-radius:12px;background:#101424}.v146269-active-quest img{width:34px;height:34px;object-fit:contain}.v146269-active-quest div{min-width:0}.v146269-active-quest small{display:block;color:#a99ae6;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146269-active-quest b{display:block;color:#d8dde6;font-size:12px}.v146269-active-quest time{color:#d7c1ff;font-weight:800;font-variant-numeric:tabular-nums}
.v146269-researcher-window .modal-card,.v146269-stage-window .modal-card{max-width:620px;background:#07141c;border-color:#594a87;padding:10px;overflow:hidden}.v146269-researcher{display:grid;gap:9px}.v146269-researcher>header{display:grid;grid-template-columns:74px 1fr;gap:10px;align-items:center;padding:9px;border-radius:14px;background:linear-gradient(120deg,#11172d,#0a1a23),url('../assets/v146268/rift/researcher-window.webp') center/cover}.v146269-researcher>header img{width:70px;height:70px;border-radius:12px;object-fit:cover;object-position:50% 20%;border:1px solid #8a73c7}.v146269-researcher>header small{color:#a995e7;font-size:9px;letter-spacing:.12em}.v146269-researcher>header h2{margin:1px 0;color:#f3f0ff;font-size:20px;font-family:serif}.v146269-researcher>header p{margin:0;color:#aeb6c2;font-size:12px}.v146269-wallet{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.v146269-wallet>span{display:flex;align-items:center;gap:6px;min-width:0;padding:7px;border:1px solid #304052;border-radius:11px;background:#0a1a26}.v146269-wallet img{width:31px;height:31px;object-fit:contain}.v146269-wallet i{min-width:0;font-style:normal;display:flex;flex-direction:column}.v146269-wallet small{color:#8995a4;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146269-wallet b{color:#eadfff;font-size:16px}.v146269-wallet em{color:#796f91;font-size:8px;font-style:normal}.v146269-summary{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;border:1px solid #4c3f76;background:#15132a}.v146269-summary b{color:#ede7ff;font-size:12px}.v146269-summary span{color:#b5a8d8;font-size:11px;text-align:right}.v146269-modal-quests h3,.v146269-journal h3{margin:2px 0 6px;color:#c9cfd7;font-size:12px}.v146269-journal{max-height:245px;overflow:auto;padding-right:3px}.v146269-species{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:7px;padding:6px 7px;border-bottom:1px solid #1f2b36}.v146269-species img{width:30px;height:30px;object-fit:contain}.v146269-species div{min-width:0}.v146269-species b{display:block;color:#dde2e9;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146269-species small{color:#808c9b;font-size:9px}.v146269-species>span{color:#bba8f4;font-size:11px}
.v146269-monster-research{margin:8px 0;padding:8px;border:1px solid #4e4380;border-radius:12px;background:#0d1425}.v146269-monster-research>header{display:flex;align-items:center;gap:7px}.v146269-monster-research>header img{width:34px;height:34px;object-fit:contain}.v146269-monster-research>header div{display:flex;flex-direction:column}.v146269-monster-research>header small{color:#9b89df;font-size:9px}.v146269-monster-research>header b{color:#e5e4ed;font-size:12px}.v146269-mechanic{display:flex;align-items:flex-start;gap:7px;margin-top:7px;padding:7px;border-radius:9px;background:#091620;border:1px solid #293849}.v146269-mechanic img{width:34px;height:34px;object-fit:contain}.v146269-mechanic div{min-width:0}.v146269-mechanic small{display:block;color:#8c7fd0;font-size:8px}.v146269-mechanic b{display:block;color:#dce1e8;font-size:11px}.v146269-mechanic p{margin:2px 0 0;color:#8e9aa8;font-size:10px;line-height:1.35}.v146269-mechanic.open{border-color:#674fa8;background:#14132a}.v146269-done{margin-top:7px;padding:6px 8px;border-radius:8px;color:#cdbdff;background:#17132c;font-size:11px}.v146269-learn{width:100%}
.v146269-stage{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:start;padding:5px}.v146269-stage>img{width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 0 8px #7157c6)}.v146269-stage-copy small{color:#9f8bdf;font-size:9px;letter-spacing:.08em}.v146269-stage-copy h2{margin:2px 0 5px;color:#f0edf8;font-size:18px}.v146269-stage-copy p{margin:0;color:#aeb6c2;font-size:12px;line-height:1.4}.v146269-stage-copy time{display:inline-block;margin-top:6px;padding:4px 7px;border-radius:7px;background:#17132d;color:#d1c0ff;font-weight:800}.v146269-stage-actions{grid-column:1/-1;display:flex;gap:7px}.v146269-stage-actions button{flex:1}
.v146269-rift-monster-card{position:relative!important;border-color:#6d55ba!important;box-shadow:0 0 18px #6747d844,inset 0 0 15px #53339d22!important}.v146269-rift-monster-card:before{content:'';position:absolute;inset:-2px;pointer-events:none;border-radius:inherit;background:radial-gradient(circle at 22% 40%,#7555ff33,transparent 40%),linear-gradient(90deg,transparent,#8b5dff22,transparent);animation:v146269-rift-breathe 2.4s ease-in-out infinite}.v146269-rift-badge{position:absolute;z-index:8;left:7px;top:7px;padding:3px 6px;border-radius:7px;background:#26184be8;border:1px solid #8f6eff;color:#ded1ff;font-size:8px;font-weight:900;letter-spacing:.08em}.v146269-rift-sigil{position:absolute;z-index:2;left:4px;bottom:3px;width:62px;height:62px;object-fit:contain;opacity:.34;pointer-events:none;animation:v146269-rift-spin 12s linear infinite}.v146269-rift-battle-monster{position:relative;box-shadow:0 0 20px #6948cf55,inset 0 0 16px #5532a83a!important}.v146269-rift-battle-monster .v146269-rift-badge{left:6px;top:6px}.v146269-rift-trait{display:grid!important;place-items:center;background:#26194b!important;border-color:#775de0!important;color:#d8cbff!important;font-size:12px!important}
.v146269-rift-notice{position:fixed;z-index:100000;left:50%;top:74px;width:min(660px,calc(100vw - 22px));transform:translate(-50%,-25px);opacity:0;display:grid;grid-template-columns:64px 1fr auto 34px;gap:10px;align-items:center;padding:10px 11px;border:1px solid #8d71e7;border-radius:17px;background:linear-gradient(125deg,#071821f7,#17102df7);box-shadow:0 16px 45px #000b,0 0 28px #6f4fe75c;transition:.28s ease}.v146269-rift-notice.show{transform:translate(-50%,0);opacity:1}.v146269-rift-notice>img{width:62px;height:62px;object-fit:contain;filter:drop-shadow(0 0 9px #7b5cff)}.v146269-rift-notice small{display:block;color:#9f8fe0;font-size:9px;letter-spacing:.12em}.v146269-rift-notice b{display:block;color:#fff;font-size:16px}.v146269-rift-notice p{margin:2px 0;color:#b5beca;font-size:11px}.v146269-rift-notice time{color:#d4c3ff;font-size:12px;font-weight:800}.v146269-notice-go{border:1px solid #8b72d9;border-radius:10px;background:#241946;color:#eee6ff;padding:8px}.v146269-notice-x{border:0;background:transparent;color:#a9a1b8;font-size:23px}
@keyframes v146269-rift-breathe{50%{opacity:.35}}@keyframes v146269-rift-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.v146269-gate,.v146269-rift-head{grid-template-columns:52px 1fr auto;gap:7px}.v146269-gate>img,.v146269-crack{width:48px;height:48px}.v146269-gate p,.v146269-rift-head p{display:none}.v146269-gate time,.v146269-rift-head time{font-size:15px}.v146269-gate button,.v146269-rift-head button{grid-column:2/-1;width:100%;min-height:36px}.v146269-wallet{grid-template-columns:repeat(3,minmax(0,1fr))}.v146269-wallet>span{padding:5px;gap:4px}.v146269-wallet img{width:26px;height:26px}.v146269-summary{flex-direction:column;gap:2px}.v146269-summary span{text-align:left}.v146269-researcher>header{grid-template-columns:60px 1fr}.v146269-researcher>header img{width:56px;height:56px}.v146269-researcher>header h2{font-size:17px}.v146269-rift-notice{top:62px;grid-template-columns:48px 1fr 30px}.v146269-rift-notice>img{width:46px;height:46px}.v146269-notice-go{grid-column:2}.v146269-notice-x{grid-column:3;grid-row:1}.v146269-stage{grid-template-columns:54px 1fr}.v146269-stage>img{width:52px;height:52px}}

.v146268-rift-chance{display:block;color:#ae9def;font-size:10px;margin-top:2px}

/* ===== css/v146270-sky-rift.css ===== */
/* Aldos RPG v1.146.270 · Sky Rift rebuild */
.v146270-gate-panel{position:relative;margin:12px 0;padding:18px;border:1px solid #7b5fc4;border-radius:22px;overflow:hidden;background:#07131ee8 url('../assets/v146270/rift/world-gate-progress-panel.webp') center/100% 100% no-repeat;box-shadow:0 12px 34px #0008,inset 0 0 28px #5a42b62d;min-height:230px}.v146270-gate-panel:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#05131dea 0 42%,#05131d77 70%,#05131daa)}.v146270-gate-panel>*{position:relative;z-index:1}.v146270-gate-copy{max-width:72%}.v146270-gate-copy small,.v146270-rift-head small,.v146270-researcher small,.v146270-stage small{display:block;color:#aa97ec;font-size:10px;font-weight:800;letter-spacing:.12em}.v146270-gate-copy h2,.v146270-rift-head h2,.v146270-researcher h2,.v146270-stage h2{margin:2px 0 6px;font:700 27px/1.05 Georgia,serif;color:#f5f0ff}.v146270-gate-copy p,.v146270-rift-head p{margin:0;color:#aeb9c8;line-height:1.45}.v146270-gate-panel.open time{display:inline-block;margin:15px 0 8px;padding:7px 12px;border:1px solid #7159c2;border-radius:12px;background:#12142bdd;color:#e0d4ff;font-size:23px;font-weight:900;font-variant-numeric:tabular-nums}.v146270-enter{display:block;min-width:220px;margin-top:7px}.v146270-gate-bars{display:grid;gap:9px;margin-top:18px;max-width:620px}.v146270-gate-bars>div>span{display:flex;justify-content:space-between;color:#d9dce6;font-size:12px}.v146270-gate-bars em{font-style:normal;color:#c0aff7}.v146270-gate-bars i{display:block;height:11px;margin-top:4px;border:1px solid #2c3a4d;border-radius:8px;background:#07121e;overflow:hidden}.v146270-gate-bars u{display:block;height:100%;background:linear-gradient(90deg,#5be0ff,#765dff,#c45cff);box-shadow:0 0 12px #725cff;text-decoration:none;transition:width .4s}.v146270-gate-foot{margin-top:14px;color:#98a3b2;font-size:12px}.v146270-rift-head{display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:12px;margin:10px 0;padding:12px 14px;border:1px solid #6653a4;border-radius:17px;background:linear-gradient(135deg,#071720f5,#11132bf5);box-shadow:0 7px 22px #0006,inset 0 0 22px #674ed22a}.v146270-rift-head>img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 0 9px #795dff)}.v146270-rift-head>div{min-width:0}.v146270-rift-head h2{font-size:18px}.v146270-rift-head time{color:#dbcfff;font-size:17px;font-weight:900;font-variant-numeric:tabular-nums}.v146270-rift-head button{grid-column:3}.v146270-quest-card{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px;border:1px solid #55468c;border-radius:15px;background:#0b1522 url('../assets/v146270/rift/rift-quest-panel.webp') center/100% 100% no-repeat;overflow:hidden}.v146270-quest-card:after{content:'';position:absolute;inset:0;background:#08131ac9;z-index:0}.v146270-quest-card>*{position:relative;z-index:1}.v146270-quest-card>img{width:42px;height:42px;object-fit:contain}.v146270-quest-card div{min-width:0}.v146270-quest-card small{color:#9e8ddb;font-size:9px}.v146270-quest-card h3{margin:2px 0;color:#ece9f6;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146270-quest-card p{margin:0;color:#b5bdc8;font-size:12px}.v146270-quest-card time{color:#d9c8ff;font-weight:900;font-variant-numeric:tabular-nums}.v146270-researcher-window .modal-card,.v146270-stage-window .modal-card{max-width:580px;padding:10px;border-color:#62509b;background:#06141b;overflow:hidden}.v146270-researcher{display:grid;gap:10px}.v146270-researcher>header{display:grid;grid-template-columns:68px 1fr;gap:10px;align-items:center;padding:10px;border-radius:15px;background:linear-gradient(110deg,#12132b,#071821)}.v146270-researcher>header img{width:66px;height:66px;object-fit:cover;object-position:50% 20%;border:1px solid #826cc8;border-radius:12px}.v146270-researcher h2{font-size:20px}.v146270-researcher header p{margin:0;color:#abb5c1;font-size:12px}.v146270-researcher-guide{display:grid;grid-template-columns:1fr 1fr;gap:6px}.v146270-researcher-guide>div{display:grid;grid-template-columns:32px 1fr;gap:7px;align-items:center;padding:8px;border:1px solid #2a3747;border-radius:11px;background:#091922}.v146270-researcher-guide b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid #6953ad;background:#17132e;color:#d6c8ff}.v146270-researcher-guide strong{display:block;color:#dfe4eb;font-size:11px}.v146270-researcher-guide small{color:#8794a4;font-size:9px;line-height:1.3}.v146270-wallet{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.v146270-wallet>span{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;align-items:center;gap:0 6px;padding:8px;border:1px solid #354153;border-radius:11px;background:#0a1823}.v146270-wallet img{grid-row:1/3;width:32px;height:32px;object-fit:contain}.v146270-wallet b{color:#ecedfa;font-size:18px}.v146270-wallet small{color:#84909f;font-size:9px}.v146270-researcher>footer{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #46396e;border-radius:10px;background:#141229;color:#b9acd9;font-size:11px}.v146270-researcher>footer b{color:#ebe6fb}.v146270-monster-research{margin:7px 0;padding:8px 9px;border:1px solid #4e4380;border-radius:11px;background:#0d1425}.v146270-monster-research header{display:flex;align-items:center;gap:7px}.v146270-monster-research header img{width:30px;height:30px;object-fit:contain}.v146270-monster-research header b{display:block;color:#e2e4eb;font-size:11px}.v146270-monster-research p{margin:7px 0 0;color:#98a3b1;font-size:10px;line-height:1.4}.v146270-monster-research p strong{color:#d7ccfa}.v146270-monster-research em{display:block;margin-top:6px;color:#cbbaff;font-size:10px;font-style:normal}.v146270-learn{width:100%}.v146270-stage{display:grid;grid-template-columns:58px minmax(0,1fr);gap:9px;padding:7px}.v146270-stage>img{width:56px;height:56px;object-fit:contain}.v146270-stage h2{font-size:18px}.v146270-stage p{margin:0;color:#aeb7c3;font-size:12px;line-height:1.4}.v146270-stage time{display:inline-block;margin-top:6px;color:#d7c7ff;font-weight:900}.v146270-stage footer{grid-column:1/-1;display:flex;gap:7px}.v146270-stage footer button{flex:1}.v146270-rift-notice{position:fixed;z-index:100000;left:50%;top:72px;width:min(700px,calc(100vw - 18px));transform:translate(-50%,-26px);opacity:0;display:grid;grid-template-columns:55px minmax(0,1fr) auto auto 34px;gap:9px;align-items:center;padding:11px 13px;border:1px solid #9676ef;border-radius:18px;background:#07131df5 url('../assets/v146270/rift/rift-notice.webp') center/100% 100% no-repeat;box-shadow:0 18px 48px #000b,0 0 28px #7055df55;transition:.28s}.v146270-rift-notice:after{content:'';position:absolute;inset:0;border-radius:inherit;background:#07131dc9;z-index:0}.v146270-rift-notice>*{position:relative;z-index:1}.v146270-rift-notice.show{opacity:1;transform:translate(-50%,0)}.v146270-rift-notice>img{width:52px;height:52px;object-fit:contain}.v146270-rift-notice small{color:#a993ec;font-size:9px;letter-spacing:.1em}.v146270-rift-notice b{display:block;color:#fff;font-size:16px}.v146270-rift-notice p{margin:2px 0;color:#bdc4cf;font-size:11px}.v146270-rift-notice time{color:#ddceff;font-weight:900}.v146270-notice-x{border:0;background:transparent;color:#d1c6e8;font-size:23px}.v146270-rift-trait{display:grid!important;place-items:center!important;padding:0!important;background:#16142d!important;border-color:#7057c7!important}.v146270-rift-trait img{width:100%!important;height:100%!important;object-fit:contain!important}.v146270-rift-monster-card{position:relative!important;border-color:#6451ad!important;box-shadow:0 0 14px #6348c83c,inset 0 0 12px #5e44bc20!important}.v146270-rift-monster-card:before{content:'';position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 14px #6b4fe244;animation:v146270-rift-pulse 2.6s ease-in-out infinite}.v146270-rift-battle-monster{box-shadow:0 0 16px #654acf48,inset 0 0 13px #563cb52e!important}.v146270-rift-battle-monster .v146270-rift-trait{width:24px;height:24px}.v146270-rift-quest-list{display:grid;gap:8px}.v146270-quest-heading{margin:6px 0;color:#c7bbea;font-size:12px}.v146270-location-quest-dot{display:inline-flex;align-items:center;gap:5px;margin:5px 0;padding:4px 7px;border:1px solid #413a63;border-radius:8px;background:#111524;color:#a99be0;font-size:10px}@keyframes v146270-rift-pulse{50%{opacity:.4}}
@media(max-width:700px){.v146270-gate-panel{min-height:205px;padding:14px}.v146270-gate-copy{max-width:100%}.v146270-gate-copy h2{font-size:22px}.v146270-gate-panel:after{background:#06131ddc}.v146270-rift-head{grid-template-columns:48px minmax(0,1fr) auto;gap:7px}.v146270-rift-head>img{width:45px;height:45px}.v146270-rift-head p{display:none}.v146270-rift-head h2{font-size:15px}.v146270-rift-head time{font-size:14px}.v146270-rift-head button{grid-column:2/-1;width:100%;min-height:36px}.v146270-researcher-guide{grid-template-columns:1fr}.v146270-wallet>span{grid-template-columns:28px 1fr}.v146270-wallet img{width:27px;height:27px}.v146270-researcher>footer{flex-direction:column}.v146270-rift-notice{top:60px;grid-template-columns:42px 1fr 30px}.v146270-rift-notice>img{width:40px;height:40px}.v146270-rift-notice time{grid-column:2}.v146270-rift-notice .primary{grid-column:2}.v146270-notice-x{grid-column:3;grid-row:1}.v146270-quest-card{grid-template-columns:38px minmax(0,1fr) auto;padding:9px}.v146270-quest-card>img{width:35px;height:35px}.v146270-quest-card h3{font-size:12px}.v146270-quest-card p{font-size:10px}}

/* ===== css/v146270-necromancer.css ===== */
/* v1.146.270 — composed/corrupted soul vault selector */
.v146270-vault-shell .v146270-soul-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 12px 12px;padding:7px;border:1px solid rgba(192,152,83,.38);border-radius:18px;background:linear-gradient(90deg,rgba(3,33,37,.9),rgba(35,8,50,.9));box-shadow:inset 0 0 26px rgba(34,198,203,.07),inset 0 0 30px rgba(153,70,255,.08)}
.v146270-vault-shell .v146270-soul-tabs button{min-height:50px;border:1px solid rgba(148,167,175,.22);border-radius:13px;color:#cdd8d9;background:rgba(3,20,24,.86);display:flex;align-items:center;justify-content:center;gap:8px;font:700 14px/1.1 inherit;transition:.15s transform,.15s border-color,.15s box-shadow}
.v146270-vault-shell .v146270-soul-tabs button:last-child{background:linear-gradient(135deg,rgba(28,8,45,.93),rgba(13,14,39,.94))}
.v146270-vault-shell .v146270-soul-tabs button b{min-width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.07);font-size:12px}
.v146270-vault-shell .v146270-soul-tabs button.active{border-color:rgba(218,179,95,.76);color:#fff8df;box-shadow:0 0 0 1px rgba(218,179,95,.16),0 0 20px rgba(116,69,210,.18);transform:translateY(-1px)}
.v146270-vault-shell .v146270-soul-tabs button:first-child.active{box-shadow:0 0 0 1px rgba(218,179,95,.16),0 0 20px rgba(33,194,190,.15)}
.v146270-vault-shell .v146270-soul-tabs button:last-child.active{box-shadow:0 0 0 1px rgba(218,179,95,.16),0 0 24px rgba(140,66,245,.25)}
.v146270-soul-empty{padding:28px 16px;text-align:center;color:#9eaaac;font-size:13px}
.v146270-vault-shell .v146181-soul-card[data-v146195-soul-detail^="v146268_rift_"]{border-color:rgba(133,73,213,.55);box-shadow:inset 0 0 28px rgba(85,37,145,.1)}
.v146270-vault-shell .v146181-soul-card[data-v146195-soul-detail^="v146268_rift_"] .v146181-soul-copy>small{color:#bf8cff}

/* ===== css/v146271-battle-hud.css ===== */
/* v1.146.270 touch HUD editor + rendering fast path */
.v146271-hud-hammer{position:fixed;z-index:94000;right:10px;top:76px;width:46px;height:46px;display:none;place-items:center;border:1px solid #987737;border-radius:13px;background:linear-gradient(#18201d,#0a1112);box-shadow:0 4px 16px #0009;color:#f5d889;font-size:21px}.v109-battle-active .v146271-hud-hammer,.v110-battle-active .v146271-hud-hammer,.v111-battle-active .v146271-hud-hammer{display:grid}.v146271-hud-toolbar{position:fixed;z-index:96000;left:50%;bottom:14px;transform:translateX(-50%);width:min(680px,calc(100vw - 18px));padding:10px 12px;border:1px solid #8a6c37;border-radius:15px;background:#071318f5;box-shadow:0 14px 40px #000c;display:grid;gap:7px;color:#ede5d5}.v146271-hud-toolbar>b{font:700 17px Georgia,serif}.v146271-hud-toolbar>small{color:#9ba8aa}.v146271-hud-toolbar>div{display:flex;gap:6px;flex-wrap:wrap}.v146271-hud-toolbar button{flex:1;min-width:100px;min-height:36px}.v146271-hud-editing:before{content:'';position:fixed;z-index:90000;inset:0;pointer-events:none;background-image:linear-gradient(#9d83df14 1px,transparent 1px),linear-gradient(90deg,#9d83df14 1px,transparent 1px);background-size:20px 20px}.v146271-hud-editing .v146271-hud-widget{outline:1px dashed #d4af62!important;box-shadow:0 0 0 2px #7b5acf2e,0 0 18px #0008!important;touch-action:none!important;cursor:move!important;overflow:visible!important}.v146271-hud-widget.v146271-hud-selected{outline:2px solid #b99aff!important}.v146271-hud-resize{display:none;position:absolute!important;z-index:9999!important;right:-8px!important;bottom:-8px!important;width:30px!important;height:30px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:1px solid #e0bd74!important;border-radius:9px!important;background:#17142ced!important;color:#f1d690!important;font-size:14px!important;line-height:28px!important;touch-action:none!important}.v146271-hud-editing .v146271-hud-resize{display:block}.v146271-hud-custom .v101-player-roster,.v146271-hud-custom .v101-monster-roster,.v146271-hud-custom .v101-battle-log,.v146271-hud-custom .v79-turn{overflow:hidden!important}.v146271-hud-custom .v101-roster-scroll{height:calc(100% - 48px)!important;max-height:none!important;overflow:auto!important}.v146271-hud-custom .v101-battle-log .battle-log-scroll{height:calc(100% - 50px)!important;max-height:none!important;overflow:auto!important}
/* Rendering performance: isolate heavy widgets so card/FX changes do not invalidate the entire battle page. */
.v146200-battle .v101-player-roster,.v146200-battle .v101-monster-roster,.v146200-battle .v101-battle-log,.v146200-battle .v79-turn,.v146200-battle .v109-skill-drawer,.v146200-battle .v109-chat-drawer{contain:layout paint style}.v146200-battle img{content-visibility:auto}.v146200-battle .v101-roster-card,.v146200-battle .v101-monster-card{contain:layout paint}.v146200-battle .v146269-rift-monster-card:before{animation:none!important}.v146200-battle .v146271-rift-monster-card:before{animation-duration:3.5s!important}.v146271-hud-editing .v146200-battle *{animation-play-state:paused!important}
@media(max-width:700px){.v146271-hud-hammer{top:64px;right:8px;width:42px;height:42px}.v146271-hud-toolbar{bottom:8px;padding:8px}.v146271-hud-toolbar>small{font-size:10px}.v146271-hud-toolbar button{min-height:34px;font-size:11px}}

/* level-40 transparent art: corrected cutouts */
.v146271-ui img[src*="/v146271/skills/"]{object-fit:contain!important;background:transparent!important}

/* v1.146.271 Rift/UI rebuild safety layer */
.v146271-hud-widget{box-sizing:border-box;max-width:100vw;max-height:100vh}
.v146271-hud-toolbar{contain:layout paint}
.v146271-hud-editing .v146271-hud-widget{overflow:hidden!important}
.v146271-gate-panel{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;max-width:560px}
.v146271-gate-panel time{white-space:nowrap;font-weight:700}
.v146271-quest-card{display:flex;gap:8px;align-items:center;padding:8px;max-width:520px}

/* ===== css/v146272-ui-event.css ===== */
/* Aldos RPG v1.146.272 — HUD recovery, Rift polish, Soul Vault tabs, Eliyar event */
:root{--v272-navy:#08131e;--v272-navy2:#111b31;--v272-gold:#d5ae5b;--v272-blue:#5f8edc;--v272-red:#b43d45;--v272-ink:#050b10}

/* The v271 JS uses a new prefix; give it the complete visual contract. */
.v146271-gate-panel{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center;max-width:none!important;margin:12px 0;padding:17px 18px;border:1px solid #7b5fc4;border-radius:20px;overflow:hidden;background:#07131eea url('../assets/v146270/rift/world-gate-progress-panel.webp') center/cover no-repeat;box-shadow:0 12px 34px #0009,inset 0 0 28px #5a42b62d}.v146271-gate-panel:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#05131def 0 43%,#05131d80 72%,#05131dcc);pointer-events:none}.v146271-gate-panel>*{position:relative;z-index:1}.v146271-gate-copy{min-width:0}.v146271-gate-copy small,.v146271-rift-head small,.v146271-researcher small,.v146271-stage small{display:block;color:#b8a4f6;font-size:10px;font-weight:800;letter-spacing:.12em}.v146271-gate-copy h2,.v146271-rift-head h2,.v146271-researcher h2,.v146271-stage h2{margin:3px 0 7px;font:700 25px/1.05 Georgia,serif;color:#f7f2ff}.v146271-gate-copy p,.v146271-rift-head p{margin:0;color:#b1bbc8;line-height:1.42}.v146271-gate-panel time,.v146271-rift-head time{padding:7px 11px;border:1px solid #7059bd;border-radius:11px;background:#10162ddd;color:#e1d6ff;font-weight:900;font-variant-numeric:tabular-nums}.v146271-gate-panel .v146271-enter{grid-column:1/-1;justify-self:start;min-width:220px;background:#10162d url('../assets/v146270/rift/rift-button.webp') center/cover no-repeat!important;border-color:#8267cd!important;color:#fff!important;box-shadow:0 7px 20px #0008!important}.v146271-gate-bars{grid-column:1/-1;display:grid;gap:8px}.v146271-gate-bars span{display:flex;justify-content:space-between;color:#dce1ea}.v146271-gate-bars em{font-style:normal;color:#c9b7ff}.v146271-gate-bars i{display:block;height:10px;border:1px solid #35445c;border-radius:8px;background:#07111b;overflow:hidden}.v146271-gate-bars u{display:block;height:100%;background:linear-gradient(90deg,#5ddfff,#775eff,#bd5dff);text-decoration:none}.v146271-gate-foot{grid-column:1/-1;color:#9ca8b5}
.v146271-rift-head{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:center;margin:10px 0;padding:12px 14px;border:1px solid #6653a4;border-radius:16px;background:linear-gradient(135deg,#071720f5,#11132bf5);box-shadow:0 8px 23px #0007,inset 0 0 22px #674ed22a}.v146271-rift-head>img{width:54px;height:54px;object-fit:contain}.v146271-rift-head>div{min-width:0}.v146271-rift-head h2{font-size:18px}.v146271-rift-head button{grid-column:3;background:#10162d url('../assets/v146270/rift/rift-button.webp') center/cover no-repeat!important;border-color:#8267cd!important;color:#fff!important}
.v146271-quest-card{position:relative;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;max-width:none!important;padding:12px 14px!important;border:1px solid #67519d!important;border-radius:16px!important;background:#09131f url('../assets/v146270/rift/rift-quest-panel.webp') center/cover no-repeat!important;overflow:hidden;box-shadow:0 8px 22px #0007!important}.v146271-quest-card:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#061119ef,#09131fc0);z-index:0}.v146271-quest-card>*{position:relative;z-index:1}.v146271-quest-card>img{width:44px!important;height:44px!important;object-fit:contain}.v146271-quest-card>div{min-width:0}.v146271-quest-card small{color:#b39fec;font-size:9px}.v146271-quest-card h3{margin:2px 0;color:#f3efff;font:700 16px/1.1 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v146271-quest-card p{margin:0;color:#bec5d0;font-size:12px}.v146271-quest-card time{min-width:74px;padding:7px 8px;border:1px solid #735ab7;border-radius:10px;background:#10152ddd;color:#e2d6ff;text-align:center;font-weight:900;font-variant-numeric:tabular-nums}
.v146271-rift-notice{position:fixed;z-index:100000;left:50%;top:72px;width:min(720px,calc(100vw - 18px));transform:translate(-50%,-24px);opacity:0;display:grid;grid-template-columns:54px minmax(0,1fr) auto auto 34px;gap:10px;align-items:center;padding:12px 13px;border:1px solid #9174e1;border-radius:18px;background:#07131df5 url('../assets/v146270/rift/rift-notice.webp') center/cover no-repeat;box-shadow:0 18px 48px #000c,0 0 28px #7055df55;transition:.25s}.v146271-rift-notice:after{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#06121dec,#08131dcc);z-index:0}.v146271-rift-notice>*{position:relative;z-index:1}.v146271-rift-notice.show{opacity:1;transform:translate(-50%,0)}.v146271-rift-notice>img{width:50px;height:50px;object-fit:contain}.v146271-rift-notice small{color:#b29bf2;font-size:9px;letter-spacing:.1em}.v146271-rift-notice b{display:block;color:#fff;font-size:16px}.v146271-rift-notice p{margin:2px 0;color:#c4cad3;font-size:11px}.v146271-rift-notice time{padding:6px 8px;border:1px solid #745bbd;border-radius:9px;background:#11142c;color:#e3d7ff;font-weight:900}.v146271-rift-notice .primary{background:#11152d url('../assets/v146270/rift/rift-button.webp') center/cover!important;border-color:#8267cd!important;color:#fff!important}.v146271-notice-x{border:0!important;background:transparent!important;color:#ded5f3!important;font-size:22px!important}

/* Soul type selectors are a first-class toolbar above the soul rows. */
.v146270-vault-shell .v146270-soul-tabs{position:relative;z-index:8;order:-1;margin:8px 12px 10px!important;padding:7px!important;background:#07161be8 url('../assets/v146270/rift/soul-tabs.webp') center/cover no-repeat!important;box-shadow:0 9px 24px #000b,inset 0 0 24px #6546b526!important}.v146270-vault-shell .v146270-soul-tabs button{position:relative;min-height:52px!important;overflow:hidden;border-color:#7e6a46!important;background:linear-gradient(135deg,#0d2627e8,#091419f2)!important;color:#dce8e4!important}.v146270-vault-shell .v146270-soul-tabs button:last-child{background:linear-gradient(135deg,#21102fe8,#0e1229f2)!important}.v146270-vault-shell .v146270-soul-tabs button.active{border-color:#e1ba68!important;color:#fff8e6!important;box-shadow:inset 0 0 20px #d4a74b20,0 0 18px #654ed350!important}.v146270-vault-shell .v146181-prepared{position:relative;z-index:3}.v146270-vault-shell .v146181-catalog{position:relative;z-index:2}.v146270-vault-shell .v146181-vault-actions{z-index:12!important}

/* HUD: fixed coordinates prevent transformed battle containers from sending panels below the viewport. */
.v146272-hud-hammer{position:fixed;z-index:94000;right:10px;top:76px;width:46px;height:46px;display:none;place-items:center;border:1px solid #a6823f;border-radius:13px;background:linear-gradient(#18201d,#0a1112);box-shadow:0 5px 17px #000b;color:#f5d889;font-size:21px}.v109-battle-active .v146272-hud-hammer,.v110-battle-active .v146272-hud-hammer,.v111-battle-active .v146272-hud-hammer{display:grid}.v146272-hud-editing:before{content:'';position:fixed;z-index:93900;inset:0;pointer-events:none;background-color:#050b10;background-image:linear-gradient(#8770cc18 1px,transparent 1px),linear-gradient(90deg,#8770cc18 1px,transparent 1px);background-size:20px 20px}.v146272-hud-editing .v146272-hud-widget{outline:1px dashed #e0bc6d!important;box-shadow:0 0 0 2px #7658bf40,0 0 20px #000b!important;touch-action:none!important;cursor:move!important;overflow:visible!important}.v146272-hud-widget.v146272-hud-selected{outline:2px solid #c0a3ff!important}.v146272-hud-resize{display:none;position:absolute!important;right:-7px!important;bottom:-7px!important;z-index:99999!important;width:31px!important;height:31px!important;min-width:0!important;min-height:0!important;padding:0!important;border:1px solid #e0bd74!important;border-radius:9px!important;background:#18142fed!important;color:#f4dc9a!important}.v146272-hud-editing .v146272-hud-resize{display:block}.v146272-hud-toolbar{position:fixed;z-index:96000;left:50%;bottom:10px;transform:translateX(-50%);width:min(700px,calc(100vw - 18px));padding:11px;border:1px solid #9b793d;border-radius:17px;background:#071319f8;box-shadow:0 16px 44px #000d;display:grid;gap:8px;color:#efe7d7}.v146272-hud-toolbar header{display:flex;justify-content:space-between;gap:10px;align-items:end}.v146272-hud-toolbar header b{font:700 18px Georgia,serif}.v146272-hud-toolbar header small{color:#99a8ac}.v146272-hud-toolbar>div{display:flex;gap:7px}.v146272-hud-toolbar button{flex:1;min-height:37px}
.v146272-hud-editor-modal .modal-card{max-width:700px!important;padding:10px!important;background:#061218!important}.v146272-hud-settings-modal{display:grid;gap:10px}.v146272-hud-settings-modal>header small{color:#b99fea;letter-spacing:.12em}.v146272-hud-settings-modal>header h2{margin:2px 0;font:700 25px Georgia,serif}.v146272-hud-settings-modal>header p{margin:0;color:#9caaaf}.v146272-hud-preview-stage{position:relative;width:min(100%,390px);aspect-ratio:9/16;justify-self:center;overflow:hidden;border:1px solid #9b7b42;border-radius:18px;background:#040b10;background-image:linear-gradient(#7f68c916 1px,transparent 1px),linear-gradient(90deg,#7f68c916 1px,transparent 1px);background-size:18px 18px;box-shadow:inset 0 0 42px #000,0 10px 30px #0009;touch-action:none}.v146272-hud-preview-widget{position:absolute;box-sizing:border-box;min-width:38px;min-height:28px;padding:7px;border:1px dashed #d7b665;border-radius:9px;background:linear-gradient(145deg,#102127ed,#091216f2);box-shadow:0 5px 13px #0009;color:#f1e8d5;overflow:visible;touch-action:none}.v146272-hud-preview-widget b{display:block;font-size:11px}.v146272-hud-preview-widget span{color:#90a0a6;font-size:8px}.v146272-hud-preview-widget.widget-timer{border-color:#d25b4c}.v146272-hud-preview-widget.widget-skills,.v146272-hud-preview-widget.widget-chat{display:grid;place-items:center;padding:2px}.v146272-preview-resize{position:absolute;right:-5px;bottom:-5px;width:23px!important;height:23px!important;min-width:0!important;min-height:0!important;padding:0!important;border:1px solid #d8b765!important;border-radius:7px!important;background:#19142f!important;color:#f0d68f!important;font-size:10px!important}.v146272-hud-preview-presets,.v146272-hud-settings-modal>footer{display:flex;gap:7px}.v146272-hud-preview-presets button,.v146272-hud-settings-modal>footer button{flex:1}.v146272-hud-settings-open{min-width:100px;padding:8px 10px;border:1px solid #a9813f;border-radius:11px;background:linear-gradient(135deg,#213344,#0e1a24);color:#f0db9c;font-weight:800}

/* Professor Eliyar event surfaces. */
.v146272-eliyar-location{position:relative;min-height:330px;margin:10px 0;padding:18px;overflow:hidden;border:1px solid #b28a45;border-radius:22px;background:#07111a url('../assets/v146272/eliyar/higher-type-location.webp') center/cover no-repeat;box-shadow:0 15px 38px #000a,inset 0 0 44px #24437738}.v146272-eliyar-location:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#05101beb 0 45%,#06111a73 77%,#07111bcc)}.v146272-eliyar-location>*{position:relative;z-index:1;max-width:560px}.v146272-eliyar-location small{color:#d4b566;font-size:10px;font-weight:900;letter-spacing:.13em}.v146272-eliyar-location h2{margin:4px 0 7px;color:#fff6df;font:700 30px/1.02 Georgia,serif}.v146272-eliyar-location p{color:#c0c7ce;line-height:1.45}.v146272-eliyar-location time{display:inline-grid;place-items:center;min-width:112px;min-height:60px;margin:10px 0;padding:5px 13px;background:url('../assets/v146272/eliyar/ui/timer-badge.webp') center/contain no-repeat;color:#d9f0ff;font-size:20px;font-weight:900}.v146272-eliyar-location .primary,.v146272-eliyar-notice .primary,.v146272-exam-answer{background:#111c30 url('../assets/v146272/eliyar/ui/primary-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#fff2c9!important;box-shadow:none!important}.v146272-eliyar-notice{position:fixed;z-index:100001;left:50%;top:68px;width:min(730px,calc(100vw - 18px));transform:translateX(-50%);display:grid;grid-template-columns:70px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:13px 14px;border:1px solid #b28b4d;border-radius:18px;background:#07121ef4 url('../assets/v146272/eliyar/event-banner.webp') center/cover no-repeat;box-shadow:0 18px 48px #000d}.v146272-eliyar-notice>img{width:68px;height:68px;object-fit:cover;border-radius:12px}.v146272-eliyar-notice small{color:#e1bd69;letter-spacing:.12em}.v146272-eliyar-notice b{display:block;color:#fff4da;font:700 18px Georgia,serif}.v146272-eliyar-notice p{margin:2px 0;color:#c6ccd3;font-size:11px}.v146272-eliyar-notice time{color:#e9d18a;font-weight:900}.v146272-exam-window .modal-card{max-width:560px!important;border-color:#ba914e!important;background:#07111b url('../assets/v146272/eliyar/exam-panel.webp') center/100% 100% no-repeat!important}.v146272-exam{padding:28px 22px;display:grid;gap:12px;text-align:center}.v146272-exam header img{width:58px;height:58px}.v146272-exam small{color:#9e7842;letter-spacing:.12em}.v146272-exam h2{margin:3px 0;color:#24180f;font:700 25px Georgia,serif}.v146272-exam time{justify-self:center;padding:7px 12px;border:1px solid #8a6a35;border-radius:11px;background:#101b2ded;color:#e8d696;font-weight:900}.v146272-exam-options{display:grid;gap:8px}.v146272-exam-answer{min-height:50px;font-size:16px}.v146272-exam-answer.wrong{background:#3a1116 url('../assets/v146272/eliyar/ui/danger-button.webp') center/100% 100% no-repeat!important}.v146272-eliyar-boss .v101-battle-stage,.v146272-eliyar-boss.v146200-battle{background-image:linear-gradient(#0610198c,#03070bbd),url('../assets/v146272/eliyar/exam-battle-background.webp')!important;background-position:center!important;background-size:cover!important}

@media(max-width:700px){.v146271-gate-panel{grid-template-columns:1fr!important;padding:14px}.v146271-gate-panel time{justify-self:start}.v146271-rift-head{grid-template-columns:46px minmax(0,1fr) auto}.v146271-rift-head>img{width:44px;height:44px}.v146271-rift-head p{display:none}.v146271-rift-head h2{font-size:15px}.v146271-rift-head button{grid-column:2/-1}.v146271-rift-notice{top:58px;grid-template-columns:40px minmax(0,1fr) 30px}.v146271-rift-notice>img{width:38px;height:38px}.v146271-rift-notice time,.v146271-rift-notice .primary{grid-column:2}.v146271-notice-x{grid-column:3;grid-row:1}.v146272-hud-hammer{top:64px;right:8px;width:42px;height:42px}.v146272-hud-toolbar{bottom:7px;padding:8px}.v146272-hud-toolbar header{display:block}.v146272-hud-toolbar header small{display:block;font-size:9px}.v146272-hud-toolbar button{font-size:10px}.v146272-eliyar-location{min-height:300px;padding:15px}.v146272-eliyar-location:after{background:#06111bdb}.v146272-eliyar-location h2{font-size:25px}.v146272-eliyar-notice{grid-template-columns:50px minmax(0,1fr) 30px}.v146272-eliyar-notice>img{width:48px;height:48px}.v146272-eliyar-notice time,.v146272-eliyar-notice .primary{grid-column:2}.v146272-exam{padding:24px 13px}.v146270-vault-shell .v146270-soul-tabs{position:sticky;top:0;margin:6px 8px 8px!important}.v146270-vault-shell .v146270-soul-tabs button{min-height:46px!important;font-size:11px!important}}

/* ===== css/v146273-rift-hud-vault.css ===== */
:root{--v146273-rift-ui-ready:1;--v273-ink:#041517;--v273-panel:rgba(5,24,27,.96);--v273-line:#806736;--v273-violet:#9c73ff;--v273-gold:#e2c776}
html,body{max-width:100%;overflow-x:hidden}
.v146273-rift-fab{position:fixed;right:18px;top:128px;z-index:95020;width:76px;height:76px;padding:0;border:0;background:transparent;filter:drop-shadow(0 9px 18px #000c);touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer}
.v146273-rift-fab img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.v146273-rift-fab time{position:absolute;right:-2px;bottom:-3px;min-width:42px;padding:3px 6px;border:1px solid #a888df;border-radius:12px;background:#100b21;color:#e8dcff;font:700 11px/1 system-ui;box-shadow:0 2px 8px #000}
.v146273-rift-fab.dragging{transform:scale(1.07);filter:drop-shadow(0 0 14px #774cff)}
.v146271-rift-notice,.v146270-rift-notice{display:none!important}

.v146270-gate-progress,.v146271-gate-progress,.v146270-gate-open,.v146271-gate-open,.v146271-gate-panel,.v146271-rift-head{position:relative!important;isolation:isolate!important;overflow:hidden!important;border:1px solid #70613d!important;border-radius:28px!important;background:linear-gradient(135deg,rgba(4,22,28,.97),rgba(7,11,24,.96))!important;box-shadow:inset 0 0 0 1px #263e3a,0 16px 36px #0007!important;padding:26px!important;color:#e9edf0!important}
.v146270-gate-progress:before,.v146271-gate-progress:before,.v146270-gate-open:before,.v146271-gate-open:before,.v146271-gate-panel:before,.v146271-rift-head:before{content:"";position:absolute;inset:0;z-index:-1;background:url('../assets/v146273/rift/gate-interface-panel.webp') center/cover no-repeat;opacity:.3}
.v146270-gate-progress h2,.v146271-gate-progress h2,.v146270-gate-open h2,.v146271-gate-open h2{font-size:clamp(30px,7vw,48px)!important;line-height:1.02!important;margin:.2em 0!important;color:#fff!important}
.v146270-gate-progress p,.v146271-gate-progress p,.v146270-gate-open p,.v146271-gate-open p{font-size:clamp(16px,4.2vw,22px)!important;line-height:1.45!important;color:#b7c2c8!important}
.v146270-gate-progress button,.v146271-gate-progress button,.v146270-gate-open button,.v146271-gate-open button,.v146271-enter,[data-v146271-enter-rift],[data-v146271-gate]{min-height:62px!important;border:1px solid #9a76ec!important;border-radius:20px!important;background:#090b1b url('../assets/v146273/rift/rift-action-button.webp') center/100% 100% no-repeat!important;color:#fff!important;text-shadow:0 2px 3px #000!important;font-weight:800!important;box-shadow:0 8px 22px #0009!important}
.v146270-progress-row,.v146271-progress-row{display:grid!important;grid-template-columns:1fr auto!important;gap:7px 14px!important;align-items:center!important;margin:14px 0!important}
.v146270-progress-row progress,.v146271-progress-row progress{grid-column:1/-1!important;width:100%!important}

.v146270-quest-row,.v146271-quest-row,.v146270-quest-card,.v146271-quest-card{min-height:118px!important;padding:18px 18px 18px 118px!important;border:1px solid #745da8!important;border-radius:24px!important;background:#07151b url('../assets/v146273/rift/rift-quest-panel.webp') center/100% 100% no-repeat!important;overflow:hidden!important;color:#eef0f4!important}
.v146270-quest-row h3,.v146271-quest-row h3,.v146270-quest-card h3,.v146271-quest-card h3{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.1!important;margin:0 0 7px!important}
.v146271-quest-card{grid-template-columns:54px minmax(0,1fr) auto!important;padding:15px!important;background-position:center!important}.v146271-quest-card:after{background:linear-gradient(90deg,#061119f5,#09131fba)!important}.v146271-quest-card>img{width:50px!important;height:50px!important}

.v146181-vault-modal .modal-card,.v146181-vault-modal .modal,.v146195-soul-detail-modal .modal-card,.v146195-soul-detail-modal .modal{width:min(720px,96vw)!important;max-height:94dvh!important;overflow:hidden!important}
.v146273-soul-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.55fr) auto;gap:10px;align-items:end;padding:12px 16px;border:1px solid #29433f;border-radius:18px;background:rgba(3,19,22,.94)}
.v146273-soul-tools label{display:grid;gap:5px;min-width:0}.v146273-soul-tools label span{font:700 11px/1.2 system-ui;letter-spacing:.12em;color:#91aaa7;text-transform:uppercase}
.v146273-soul-tools input,.v146273-soul-tools select{box-sizing:border-box;width:100%;height:44px;min-width:0;padding:0 13px;border:1px solid #465452;border-radius:12px;background:#091519;color:#f1f4f3;font:600 14px system-ui;outline:none}
.v146273-soul-tools input:focus,.v146273-soul-tools select:focus{border-color:#b494f6;box-shadow:0 0 0 3px #7d55be33}.v146273-soul-tools output{padding:0 4px 13px;color:#c9b4f2;font:700 13px system-ui;white-space:nowrap}
.v146273-corrupted-summary{display:grid;gap:4px;margin:8px 0;padding:9px 11px;border-left:3px solid #9c73ff;border-radius:8px;background:#20143199}.v146273-corrupted-summary strong{color:#d6c1ff}.v146273-corrupted-summary span{font-size:12px;line-height:1.35;color:#c4bccd}
.v146273-corruption-detail{border-color:#7150a2!important;background:linear-gradient(145deg,#130c20,#071719)!important}.v146273-corruption-detail dl{display:grid;gap:8px}.v146273-corruption-detail dl div{display:grid;grid-template-columns:minmax(110px,.35fr) 1fr;gap:12px;padding:9px;border-bottom:1px solid #ffffff14}.v146273-corruption-detail dt{color:#9aa9a9}.v146273-corruption-detail dd{margin:0;color:#f0edf6}

.v146271-researcher-window .modal,.v146271-wallet-window .modal,.v146271-stage-window .modal,.v146271-monster-research-window .modal{width:min(700px,96vw)!important;max-height:94dvh!important;overflow:auto!important}
.v146271-researcher,.v146271-wallet,.v146271-stage,.v146271-monster-research{max-width:100%!important;overflow-wrap:anywhere!important}
.v146271-researcher img{display:block!important;width:min(180px,38vw)!important;height:auto!important;max-height:280px!important;object-fit:contain!important;margin:auto!important}
.v146271-wallet{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.v146271-wallet img{width:64px!important;height:64px!important;object-fit:contain!important}.v146271-wallet>*{min-width:0!important}
.v146271-stage>img,.v146271-monster-research>img{display:block!important;width:min(170px,35vw)!important;height:auto!important;max-height:190px!important;object-fit:contain!important;margin:0 auto 14px!important}
.v146271-stage h2,.v146271-monster-research h2{overflow-wrap:anywhere!important}.v146271-stage p,.v146271-monster-research p,.v146271-researcher p{line-height:1.5!important}

.v146273-hud-preview-stage{position:relative;width:min(390px,86vw);margin:auto;overflow:hidden;border:1px solid #596d67;border-radius:24px;background:linear-gradient(#071315,#03090c);touch-action:none}
.v146273-hud-widget,.v146273-hud-preview-widget{box-sizing:border-box!important;overflow:hidden!important}
@media(max-width:600px){.v146273-soul-tools{grid-template-columns:1fr}.v146273-soul-tools output{padding:0}.v146273-corruption-detail dl div{grid-template-columns:1fr}.v146271-wallet{grid-template-columns:1fr!important}.v146270-gate-progress,.v146271-gate-progress,.v146270-gate-open,.v146271-gate-open,.v146271-gate-panel,.v146271-rift-head{padding:22px 18px!important}.v146270-quest-row,.v146271-quest-row,.v146270-quest-card{padding:102px 16px 16px!important;background-size:auto 100%!important}.v146271-quest-card{grid-template-columns:46px minmax(0,1fr)!important;padding:13px!important}.v146271-quest-card time{grid-column:2;justify-self:start}.v146271-quest-card>img{width:42px!important;height:42px!important}}

/* ===== css/v146274-ui-recovery.css ===== */
/* Aldos RPG v1.146.274 — mobile recovery for Rift, Eliyar, Soul Vault and HUD editor. */
:root{
  --v274-bg:#061316;
  --v274-panel:#0a1c20;
  --v274-panel2:#11152a;
  --v274-line:#77613a;
  --v274-gold:#e0c176;
  --v274-violet:#a584ff;
  --v274-cyan:#65d8c8;
}

/* Never let a settings row or its action escape the phone viewport. */
html body.v146274-ui .v146272-hud-settings-open{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:auto!important;justify-self:end!important;white-space:nowrap!important}
html body.v146274-ui .v146272-hud-settings-row,
html body.v146274-ui [class*="hud-settings"]>article{min-width:0!important;max-width:100%!important}

/* HUD editor is a compact normalized map; it is not a second full-height game screen. */
html body.v146274-ui .v146274-hud-editor-modal .modal-card,
html body.v146274-ui .modal.v146274-hud-editor-modal{box-sizing:border-box!important;width:min(680px,calc(100vw - 18px))!important;max-width:680px!important;max-height:min(92dvh,760px)!important;padding:0!important;overflow:hidden!important;border:1px solid #7c673e!important;border-radius:22px!important;background:linear-gradient(145deg,#0a2023,#080d17)!important;box-shadow:0 24px 70px #000d,inset 0 0 0 1px #37504a!important}
html body.v146274-ui .v146274-hud-settings-modal{box-sizing:border-box!important;display:grid!important;grid-template-rows:auto minmax(250px,500px) auto auto!important;gap:10px!important;max-height:92dvh!important;padding:16px!important;overflow:auto!important}
html body.v146274-ui .v146274-hud-settings-modal>header{min-width:0!important;padding:0 2px!important}
html body.v146274-ui .v146274-hud-settings-modal>header h2{margin:2px 0 4px!important;font-size:clamp(24px,6vw,34px)!important;line-height:1.05!important}
html body.v146274-ui .v146274-hud-settings-modal>header p{margin:0!important;max-width:65ch!important;font-size:13px!important;line-height:1.35!important;color:#a9b7b8!important}
html body.v146274-ui .v146274-hud-preview-stage{box-sizing:border-box!important;position:relative!important;width:auto!important;max-width:100%!important;height:min(52dvh,500px)!important;min-height:250px!important;aspect-ratio:var(--v146274-preview-aspect,.5)!important;justify-self:center!important;margin:0!important;border:1px solid #8f7544!important;border-radius:17px!important;overflow:hidden!important;background-color:#071419!important;background-image:linear-gradient(#7f68c916 1px,transparent 1px),linear-gradient(90deg,#7f68c916 1px,transparent 1px),radial-gradient(circle at 50% 30%,#384f4927,transparent 60%)!important;background-size:16px 16px,16px 16px,100% 100%!important;box-shadow:inset 0 0 34px #000b!important}
html body.v146274-ui .v146274-hud-preview-stage .v146272-hud-preview-widget{box-sizing:border-box!important;min-width:26px!important;min-height:21px!important;padding:5px!important;border-width:1px!important;border-style:solid!important;border-color:#c7a966!important;border-radius:8px!important;overflow:hidden!important;background:linear-gradient(145deg,#153036f2,#0a161cf5)!important;box-shadow:0 3px 9px #0008!important}
html body.v146274-ui .v146274-hud-preview-stage .v146272-hud-preview-widget.widget-timer{border-color:#dd6658!important;background:linear-gradient(145deg,#32191bf2,#10171cf5)!important}
html body.v146274-ui .v146274-hud-preview-stage .v146272-hud-preview-widget.widget-enemies{border-color:#9b6767!important;background:linear-gradient(145deg,#25191cf2,#10171cf5)!important}
html body.v146274-ui .v146274-hud-preview-stage .v146272-hud-preview-widget.widget-log{border-color:#9b80db!important;background:linear-gradient(145deg,#211b35f2,#0c151cf5)!important}
html body.v146274-ui .v146274-hud-preview-stage .v146272-hud-preview-widget b{font-size:clamp(8px,2.7vw,11px)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146274-ui .v146274-hud-preview-stage .v146272-hud-preview-widget span{display:none!important}
html body.v146274-ui .v146274-hud-preview-stage .v146272-preview-resize{right:-1px!important;bottom:-1px!important;width:24px!important;height:24px!important;border-radius:7px 0 7px 0!important}
html body.v146274-ui .v146274-hud-settings-modal .v146272-hud-preview-presets{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
html body.v146274-ui .v146274-hud-settings-modal .v146272-hud-preview-presets button{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;min-height:42px!important;padding:7px 8px!important;border:1px solid #405653!important;border-radius:12px!important;background:linear-gradient(145deg,#14262a,#0b151b)!important;color:#dde7e3!important;font-size:12px!important;line-height:1.1!important}
html body.v146274-ui .v146274-hud-settings-modal .v146272-hud-preview-presets button span{color:var(--v274-gold)!important;font-size:17px!important}
html body.v146274-ui .v146274-hud-settings-modal>footer{display:grid!important;grid-template-columns:1fr 1fr 1.25fr!important;gap:8px!important;position:sticky!important;bottom:-16px!important;padding:8px 0 0!important;background:linear-gradient(transparent,#081419 22%)!important}
html body.v146274-ui .v146274-hud-settings-modal>footer button{box-sizing:border-box!important;min-width:0!important;min-height:44px!important;padding:8px!important;border-radius:12px!important}

/* Soul Vault: six DOM sections receive six explicit rows. Old four-row rules caused overlap. */
html body.v146274-ui .modal.v146181-vault-modal,
html body.v146274-ui .v146181-vault-modal .modal-card{box-sizing:border-box!important;width:min(720px,96vw)!important;height:min(92dvh,820px)!important;max-height:min(92dvh,820px)!important;overflow:hidden!important}
html body.v146274-ui .v146181-vault-shell{box-sizing:border-box!important;display:grid!important;grid-template-rows:auto auto auto auto minmax(0,1fr) auto!important;gap:8px!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:14px!important;overflow:hidden!important;border-radius:20px!important;background:linear-gradient(180deg,#071a1df5,#080d15fa)!important}
html body.v146274-ui .v146181-vault-shell::before{opacity:.09!important;background-size:cover!important}
html body.v146274-ui .v146181-vault-shell::after{inset:5px!important;border:1px solid #35524d!important;border-radius:17px!important;background:none!important;pointer-events:none!important}
html body.v146274-ui .v146181-vault-shell>*{box-sizing:border-box!important;position:relative!important;inset:auto!important;z-index:2!important;min-width:0!important;margin:0!important;transform:none!important}
html body.v146274-ui .v146181-vault-header{min-height:0!important;padding:9px 12px!important;border:1px solid #29423f!important;border-radius:14px!important;background:linear-gradient(90deg,#092326e8,#071519e8)!important}
html body.v146274-ui .v146181-vault-header h2{margin:2px 0!important;font-size:clamp(24px,5.5vw,34px)!important;line-height:1!important}
html body.v146274-ui .v146181-vault-header p{margin:3px 0 0!important;font-size:11px!important;line-height:1.2!important;color:#91a4a3!important}

/* Asset-free type tabs: distinct composed/corrupted materials, no wrong reused banner. */
html body.v146274-ui .v146270-vault-shell .v146270-soul-tabs{box-sizing:border-box!important;position:relative!important;order:initial!important;top:auto!important;z-index:3!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;min-height:0!important;margin:0!important;padding:5px!important;border:1px solid #4a4d4c!important;border-radius:15px!important;background-image:none!important;background:linear-gradient(90deg,#092628,#181126)!important;box-shadow:inset 0 0 18px #0008!important}
html body.v146274-ui .v146270-vault-shell .v146270-soul-tabs button{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;align-items:center!important;min-width:0!important;min-height:42px!important;padding:7px 9px!important;border:1px solid #3d5e59!important;border-radius:11px!important;background-image:none!important;background:linear-gradient(145deg,#123134,#08191e)!important;color:#d9ece7!important;font-size:12px!important;line-height:1.05!important;box-shadow:inset 0 0 18px #6ed9c30b!important}
html body.v146274-ui .v146270-vault-shell .v146270-soul-tabs button:last-child{border-color:#54416f!important;background:linear-gradient(145deg,#28183a,#101329)!important;color:#e4d8ff!important;box-shadow:inset 0 0 18px #a276ff12!important}
html body.v146274-ui .v146270-vault-shell .v146270-soul-tabs button.active{border-color:#e1c26f!important;color:#fff8dd!important;box-shadow:inset 0 0 16px #d6b86a19,0 0 0 1px #dfbd632b!important;transform:none!important}
html body.v146274-ui .v146270-vault-shell .v146270-soul-tabs button b{min-width:24px!important;height:24px!important;font-size:11px!important}

html body.v146274-ui .v146273-soul-tools{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(122px,.42fr) minmax(130px,.46fr) auto!important;gap:7px!important;align-items:end!important;min-height:0!important;padding:8px 10px!important;border:1px solid #304a46!important;border-radius:13px!important;background:linear-gradient(145deg,#0b2225e8,#09151ae8)!important}
html body.v146274-ui .v146273-soul-tools label{gap:3px!important}
html body.v146274-ui .v146273-soul-tools label span{font-size:9px!important}
html body.v146274-ui .v146273-soul-tools input,
html body.v146274-ui .v146273-soul-tools select{height:36px!important;padding:0 10px!important;border-radius:9px!important;font-size:12px!important;background:#07151a!important}
html body.v146274-ui .v146273-soul-tools output{padding:0 2px 10px!important;font-size:11px!important}

html body.v146274-ui .v146181-prepared{box-sizing:border-box!important;min-height:0!important;padding:6px 9px!important;border:1px solid #2a4943!important;border-radius:13px!important;background:linear-gradient(90deg,#061719e8,#0a1b1ee8)!important}
html body.v146274-ui .v146181-prepared .v146181-section-head{min-height:0!important;margin:0 0 5px!important}
html body.v146274-ui .v146181-prepared .v146181-section-head small{font-size:8px!important}
html body.v146274-ui .v146181-prepared .v146181-section-head b{font-size:11px!important}
html body.v146274-ui .v146181-prepared .v146181-section-head em{display:none!important}
html body.v146274-ui .v146181-prepared-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
html body.v146274-ui .v146181-prepared-slot{box-sizing:border-box!important;display:grid!important;place-items:center!important;min-width:0!important;width:100%!important;height:54px!important;min-height:54px!important;padding:2px!important;border-radius:10px!important;overflow:hidden!important}
html body.v146274-ui .v146181-prepared-slot>span{width:48px!important;height:48px!important;max-width:100%!important}

html body.v146274-ui .v146181-catalog{box-sizing:border-box!important;display:block!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;background:transparent!important}
html body.v146274-ui .v146181-soul-grid{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:2px 3px 10px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important}
html body.v146274-ui .v146181-soul-card{box-sizing:border-box!important;position:relative!important;display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;gap:8px!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:136px!important;margin:0!important;padding:7px!important;overflow:hidden!important;contain:none!important;border-radius:14px!important}
html body.v146274-ui .v146181-soul-card .v146185-soul-frame{align-self:start!important;width:66px!important;height:82px!important;min-width:66px!important;min-height:82px!important}
html body.v146274-ui .v146181-soul-copy{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:3px!important;min-width:0!important;min-height:0!important;height:auto!important;overflow:visible!important}
html body.v146274-ui .v146181-soul-copy>b{font-size:14px!important;line-height:1.1!important}
html body.v146274-ui .v146181-soul-copy>p{display:block!important;margin:0!important;font-size:10px!important;line-height:1.25!important;color:#aab5b6!important}
html body.v146274-ui .v146201-soul-stages{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;font-size:9px!important}
html body.v146274-ui .v146181-soul-copy footer{font-size:9px!important}
html body.v146274-ui .v146181-soul-select{position:static!important;width:100%!important;min-height:28px!important;margin:3px 0 0!important;padding:4px 8px!important;border-radius:8px!important;font-size:10px!important}

html body.v146274-ui .v146274-corrupted-summary{box-sizing:border-box!important;margin:3px 0!important;border:1px solid #5e477c!important;border-radius:9px!important;background:linear-gradient(135deg,#211532,#111326)!important;overflow:hidden!important}
html body.v146274-ui .v146274-corrupted-summary summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:center!important;padding:6px 8px!important;cursor:pointer!important;list-style:none!important}
html body.v146274-ui .v146274-corrupted-summary summary::-webkit-details-marker{display:none!important}
html body.v146274-ui .v146274-corrupted-summary summary span{min-width:0!important;color:#dac7ff!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146274-ui .v146274-corrupted-summary summary em{color:#bba4e8!important;font-size:9px!important;font-style:normal!important}
html body.v146274-ui .v146274-corrupted-summary[open] summary em::after{content:' ↑'!important}
html body.v146274-ui .v146274-corrupted-summary:not([open]) summary em::after{content:' ↓'!important}
html body.v146274-ui .v146274-corrupted-summary>p{margin:0!important;padding:0 8px 7px!important;color:#bdb6c7!important;font-size:10px!important;line-height:1.3!important}

html body.v146274-ui .v146274-corruption-detail{box-sizing:border-box!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #61457f!important;border-radius:15px!important;background:linear-gradient(145deg,#171024,#071719)!important}
html body.v146274-ui .v146274-corruption-detail>summary{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding:12px 14px!important;cursor:pointer!important;list-style:none!important}
html body.v146274-ui .v146274-corruption-detail>summary::-webkit-details-marker{display:none!important}
html body.v146274-ui .v146274-corruption-detail>summary span{display:grid!important;gap:2px!important;min-width:0!important}
html body.v146274-ui .v146274-corruption-detail>summary small{color:#a78bdc!important;font-size:9px!important;letter-spacing:.12em!important}
html body.v146274-ui .v146274-corruption-detail>summary b{font-size:15px!important;color:#eadfff!important}
html body.v146274-ui .v146274-corruption-detail>summary em{color:#c3b0e9!important;font-size:11px!important;font-style:normal!important;white-space:nowrap!important}
html body.v146274-ui .v146274-corruption-detail[open]>summary em{font-size:0!important}
html body.v146274-ui .v146274-corruption-detail[open]>summary em::after{content:'Скрыть';font-size:11px!important}
html body.v146274-ui .v146274-corruption-body{padding:0 12px 12px!important;border-top:1px solid #ffffff12!important}
html body.v146274-ui .v146274-corruption-detail dl{gap:0!important;margin:4px 0!important}
html body.v146274-ui .v146274-corruption-detail dl div{grid-template-columns:minmax(90px,.28fr) 1fr!important;gap:10px!important;padding:7px 3px!important}
html body.v146274-ui .v146274-corruption-detail dt,
html body.v146274-ui .v146274-corruption-detail dd{font-size:12px!important;line-height:1.3!important}
html body.v146274-ui .v146274-corruption-body>p{margin:7px 0 0!important;font-size:12px!important;line-height:1.35!important;color:#aebaba!important}

html body.v146274-ui .v146181-vault-actions{box-sizing:border-box!important;position:relative!important;z-index:5!important;min-height:0!important;padding:0!important;background:none!important}
html body.v146274-ui .v146181-vault-actions button{min-height:42px!important;border:1px solid #5b826f!important;border-radius:12px!important;background:linear-gradient(145deg,#145244,#0a312c)!important;box-shadow:inset 0 0 18px #72e6bc12!important}

/* Rift panels: compact authored surfaces with controlled type scale. */
html body.v146274-ui .v146270-gate-progress,
html body.v146274-ui .v146271-gate-progress,
html body.v146274-ui .v146270-gate-open,
html body.v146274-ui .v146271-gate-open,
html body.v146274-ui .v146271-gate-panel,
html body.v146274-ui .v146271-rift-head{box-sizing:border-box!important;margin:10px 0!important;padding:15px 16px!important;border-radius:18px!important;box-shadow:inset 0 0 0 1px #233d3b,0 10px 25px #0008!important}
html body.v146274-ui .v146271-gate-panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px 12px!important}
html body.v146274-ui .v146270-gate-progress h2,
html body.v146274-ui .v146271-gate-progress h2,
html body.v146274-ui .v146270-gate-open h2,
html body.v146274-ui .v146271-gate-open h2,
html body.v146274-ui .v146271-gate-panel h2{font-size:clamp(25px,6vw,34px)!important;line-height:1.02!important;margin:3px 0 6px!important}
html body.v146274-ui .v146270-gate-progress p,
html body.v146274-ui .v146271-gate-progress p,
html body.v146274-ui .v146270-gate-open p,
html body.v146274-ui .v146271-gate-open p,
html body.v146274-ui .v146271-gate-panel p{font-size:14px!important;line-height:1.38!important;margin:0!important}
html body.v146274-ui .v146270-gate-progress button,
html body.v146274-ui .v146271-gate-progress button,
html body.v146274-ui .v146270-gate-open button,
html body.v146274-ui .v146271-gate-open button,
html body.v146274-ui .v146271-enter,
html body.v146274-ui [data-v146271-enter-rift],
html body.v146274-ui [data-v146271-gate]{box-sizing:border-box!important;min-height:48px!important;border-radius:14px!important;font-size:14px!important}
html body.v146274-ui .v146271-gate-bars{gap:6px!important}
html body.v146274-ui .v146271-gate-bars span{font-size:12px!important}
html body.v146274-ui .v146271-gate-bars i{height:8px!important}
html body.v146274-ui .v146271-gate-foot{font-size:12px!important;line-height:1.35!important}
html body.v146274-ui .v146271-rift-head{grid-template-columns:44px minmax(0,1fr) auto!important;gap:8px!important;padding:11px 12px!important}
html body.v146274-ui .v146271-rift-head>img{width:42px!important;height:42px!important}
html body.v146274-ui .v146271-rift-head h2{font-size:16px!important;line-height:1.1!important;margin:2px 0!important}
html body.v146274-ui .v146271-rift-head p{font-size:11px!important;line-height:1.3!important}
html body.v146274-ui .v146271-rift-head button{min-height:42px!important;border-radius:12px!important}
html body.v146274-ui .v146271-quest-card{box-sizing:border-box!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:8px!important;min-height:78px!important;padding:10px 11px!important;border-radius:14px!important}
html body.v146274-ui .v146271-quest-card>img{width:40px!important;height:40px!important}
html body.v146274-ui .v146271-quest-card h3{font-size:14px!important;line-height:1.12!important;margin:1px 0 3px!important}
html body.v146274-ui .v146271-quest-card p{font-size:10px!important}
html body.v146274-ui .v146271-quest-card time{min-width:66px!important;padding:6px!important;font-size:12px!important}

/* Eliyar portal/lobby: image-backed, compact, and never an empty 300px slab. */
html body.v146274-ui .v146272-eliyar-location{box-sizing:border-box!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px 12px!important;align-items:center!important;min-height:0!important;margin:10px 0!important;padding:14px!important;border-radius:18px!important;background-position:center!important;box-shadow:0 12px 28px #0009,inset 0 0 0 1px #6d542e55!important}
html body.v146274-ui .v146272-eliyar-location:after{background:linear-gradient(90deg,#07121af4,#07121ad8 62%,#121127d9)!important}
html body.v146274-ui .v146272-eliyar-location>img{grid-row:1/3;width:58px!important;height:58px!important;border:1px solid #bd9756!important;border-radius:14px!important;object-fit:cover!important;background:#111a27!important;box-shadow:0 6px 14px #0008!important}
html body.v146274-ui .v146272-eliyar-location>div{min-width:0!important}
html body.v146274-ui .v146272-eliyar-location h2{margin:2px 0 3px!important;font-size:clamp(22px,5vw,29px)!important;line-height:1!important}
html body.v146274-ui .v146272-eliyar-location p{margin:0!important;font-size:12px!important;line-height:1.3!important}
html body.v146274-ui .v146272-eliyar-location time{grid-column:3!important;grid-row:1!important;min-width:82px!important;min-height:42px!important;margin:0!important;padding:4px 8px!important;font-size:15px!important}
html body.v146274-ui .v146272-eliyar-location button,
html body.v146274-ui .v146272-eliyar-location .v146274-eliyar-locked{grid-column:2/4!important;grid-row:2!important;box-sizing:border-box!important;justify-self:stretch!important;min-height:44px!important;margin:0!important;border-radius:13px!important;text-align:center!important}
html body.v146274-ui .v146272-eliyar-location button{background:#111c30 url('../assets/v146272/eliyar/ui/primary-button.webp') center/100% 100% no-repeat!important;color:#fff0c9!important;text-shadow:0 2px 3px #000!important;font-size:14px!important}
html body.v146274-ui .v146274-eliyar-locked{display:grid!important;place-items:center!important;border:1px solid #6e5c3e!important;background:linear-gradient(145deg,#29221a,#111924)!important;color:#c7b998!important;font-size:12px!important}
html body.v146274-ui .v146274-eliyar-lobby>img{width:58px!important;height:74px!important}
html body.v146274-ui .v146272-exam-window .modal-card{box-sizing:border-box!important;width:min(540px,94vw)!important;max-height:88dvh!important;overflow:auto!important;border-radius:20px!important}
html body.v146274-ui .v146272-exam{gap:10px!important;padding:18px 15px!important}
html body.v146274-ui .v146272-exam{position:relative!important;overflow:hidden!important}
html body.v146274-ui .v146272-exam header img{width:66px!important;height:66px!important;object-fit:contain!important;filter:drop-shadow(0 5px 8px #0008)!important}
html body.v146274-ui .v146272-exam h2{font-size:clamp(20px,5.5vw,27px)!important;line-height:1.12!important}
html body.v146274-ui .v146272-exam-answer{min-height:44px!important;border-radius:12px!important}
html body.v146274-ui .v146272-exam-answer.correct{filter:drop-shadow(0 0 8px #65daa4)!important}
html body.v146274-ui .v146274-exam-result{position:absolute!important;z-index:6!important;left:50%!important;top:50%!important;width:150px!important;height:150px!important;object-fit:contain!important;transform:translate(-50%,-50%) scale(.65)!important;animation:v146274ExamStamp .32s ease-out forwards!important;filter:drop-shadow(0 12px 22px #000b)!important;pointer-events:none!important}
@keyframes v146274ExamStamp{to{transform:translate(-50%,-50%) scale(1)}}
html body.v146274-ui.v146272-eliyar-boss .v101-monster-card{border-color:#b38c50!important;box-shadow:inset 0 0 0 1px #e6c97842,0 0 24px #7754b445!important}

/* Legendary/event skill cards get their own violet-gold identity. */
html body.v146274-ui .v101-skill-card.upgraded,
html body.v146274-ui .v101-skill-card.v146274-event-skill,
html body.v146274-ui .v101-skill-card:has([data-ability-toggle^="eliyar_"]){position:relative!important;isolation:isolate!important;border-color:#b890ed!important;background:radial-gradient(circle at 50% 38%,#492e7c88,#101626 72%)!important;box-shadow:inset 0 0 0 1px #e0c17755,0 0 14px #7e4dc943!important}
html body.v146274-ui .v101-skill-card.upgraded::after,
html body.v146274-ui .v101-skill-card.v146274-event-skill::after,
html body.v146274-ui .v101-skill-card:has([data-ability-toggle^="eliyar_"])::after{content:''!important;position:absolute!important;inset:2px!important;z-index:-1!important;border:1px solid #d9bb6c55!important;border-radius:inherit!important;pointer-events:none!important}
html body.v146274-ui .v101-skill-card.v146274-event-skill .v101-skill-art,
html body.v146274-ui .v101-skill-card:has([data-ability-toggle^="eliyar_"]) .v101-skill-art{filter:drop-shadow(0 0 7px #bd8cff)!important}

@media(max-width:600px){
  html body.v146274-ui .v146274-hud-settings-modal{grid-template-rows:auto minmax(250px,46dvh) auto auto!important;padding:12px!important}
  html body.v146274-ui .v146274-hud-preview-stage{height:46dvh!important}
  html body.v146274-ui .v146274-hud-settings-modal>header p{font-size:11px!important}
  html body.v146274-ui .v146274-hud-settings-modal .v146272-hud-preview-presets button{font-size:10px!important;padding:6px 4px!important}
  html body.v146274-ui .v146181-vault-shell{padding:10px 8px 8px!important;gap:6px!important}
  html body.v146274-ui .v146181-vault-header{padding:7px 10px!important}
  html body.v146274-ui .v146181-vault-header p{display:none!important}
  html body.v146274-ui .v146273-soul-tools{grid-template-columns:1fr 1fr!important;padding:7px!important}
  html body.v146274-ui .v146273-soul-tools .v146274-soul-search{grid-column:1/-1!important}
  html body.v146274-ui .v146273-soul-tools output{display:none!important}
  html body.v146274-ui .v146273-soul-tools label span{display:none!important}
  html body.v146274-ui .v146181-prepared{padding:5px 7px!important}
  html body.v146274-ui .v146181-prepared-slot{height:48px!important;min-height:48px!important}
  html body.v146274-ui .v146181-prepared-slot>span{width:43px!important;height:43px!important}
  html body.v146274-ui .v146181-soul-card{grid-template-columns:58px minmax(0,1fr)!important;min-height:124px!important;padding:6px!important}
  html body.v146274-ui .v146181-soul-card .v146185-soul-frame{width:56px!important;height:72px!important;min-width:56px!important;min-height:72px!important}
  html body.v146274-ui .v146201-soul-stages{grid-template-columns:1fr!important;gap:1px!important}
  html body.v146274-ui .v146270-vault-shell .v146270-soul-tabs button{min-height:39px!important;padding:6px!important;font-size:11px!important}
  html body.v146274-ui .v146271-gate-panel{grid-template-columns:1fr auto!important;padding:13px!important}
  html body.v146274-ui .v146271-gate-panel time{justify-self:end!important}
  html body.v146274-ui .v146271-rift-head{grid-template-columns:40px minmax(0,1fr) auto!important}
  html body.v146274-ui .v146271-rift-head p{display:none!important}
  html body.v146274-ui .v146271-rift-head button{grid-column:2/4!important}
  html body.v146274-ui .v146271-quest-card{grid-template-columns:38px minmax(0,1fr) auto!important;padding:9px!important}
  html body.v146274-ui .v146271-quest-card>img{width:36px!important;height:36px!important}
  html body.v146274-ui .v146272-eliyar-location{grid-template-columns:48px minmax(0,1fr) auto!important;padding:11px!important;gap:7px 9px!important}
  html body.v146274-ui .v146272-eliyar-location>img{width:48px!important;height:48px!important}
  html body.v146274-ui .v146272-eliyar-location h2{font-size:21px!important}
  html body.v146274-ui .v146272-eliyar-location p{font-size:10px!important}
  html body.v146274-ui .v146272-eliyar-location time{min-width:70px!important;font-size:13px!important}
  html body.v146274-ui .v146274-corruption-detail>summary{grid-template-columns:1fr!important;gap:4px!important}
  html body.v146274-ui .v146274-corruption-detail>summary em{justify-self:start!important}
  html body.v146274-ui .v146274-corruption-detail dl div{grid-template-columns:1fr!important;gap:2px!important}
}

@media(max-width:390px){
  html body.v146274-ui .v146273-soul-tools{grid-template-columns:1fr 1fr!important}
  html body.v146274-ui .v146273-soul-tools .v146274-soul-search{grid-column:1/-1!important}
  html body.v146274-ui .v146270-vault-shell .v146270-soul-tabs button span{max-width:90px!important;white-space:normal!important}
  html body.v146274-ui .v146272-eliyar-location{grid-template-columns:42px minmax(0,1fr)!important}
  html body.v146274-ui .v146272-eliyar-location>img{width:42px!important;height:42px!important}
  html body.v146274-ui .v146272-eliyar-location time{grid-column:1!important;grid-row:2!important;width:70px!important}
  html body.v146274-ui .v146272-eliyar-location button,
  html body.v146274-ui .v146272-eliyar-location .v146274-eliyar-locked{grid-column:2!important;grid-row:2!important}
}

/* ===== css/v146275-performance-recovery.css ===== */
/* v1.146.275: lightweight Soul Vault and compositor-only HUD dragging. */
html body.v146275-ui .v146181-soul-card{content-visibility:auto;contain:layout paint style;contain-intrinsic-size:132px}
html body.v146275-ui .v146181-soul-card img{content-visibility:auto}
html body.v146275-ui .v146275-soul-more{grid-column:1/-1;display:grid;place-items:center;gap:3px;min-height:52px;margin:5px 2px 10px;border:1px solid #9f78db;border-radius:14px;background:radial-gradient(circle at 50% 0,#4a2b7655,transparent 68%),linear-gradient(145deg,#16172b,#09151c);box-shadow:inset 0 0 0 1px #d9bd7140,0 6px 16px #0008;color:#f0e5ff;font-weight:800}
html body.v146275-ui .v146275-soul-more small{color:#b8a8d3;font-size:10px;font-weight:500}
.v146275-vault-loading{display:grid;place-items:center;gap:7px;min-height:270px;padding:28px;text-align:center;background:radial-gradient(circle at 50% 34%,#58348e33,transparent 46%)}
.v146275-vault-loading>span{width:68px;height:68px;border:2px solid #a984e0;border-top-color:#f0ce72;border-radius:50%;box-shadow:0 0 28px #8654d070,inset 0 0 18px #8654d050;animation:v146275VaultSpin 1s linear infinite}
.v146275-vault-loading small{color:#c8a8f3;letter-spacing:.15em}.v146275-vault-loading h2{margin:0;font:700 clamp(22px,6vw,30px) Georgia,serif;color:#f3ead9}.v146275-vault-loading p{max-width:360px;margin:0;color:#aab6ba;font-size:12px;line-height:1.45}
@keyframes v146275VaultSpin{to{transform:rotate(360deg)}}
.v146275-hud-ghost{position:fixed;z-index:97000;box-sizing:border-box;display:grid;place-content:center;pointer-events:none;will-change:transform,width,height;contain:strict;border:2px solid #efca73;border-radius:14px;background:linear-gradient(145deg,#1c2731f2,#0b1119f5);box-shadow:0 10px 30px #000c,inset 0 0 0 1px #a77ce96b;color:#fff3ce;text-align:center;transform:translate3d(0,0,0)}
.v146275-hud-ghost b{font:700 15px Georgia,serif}.v146275-hud-ghost small{color:#b8a5dc;font-size:9px;letter-spacing:.08em}.v146275-hud-drag-source{opacity:.28!important;filter:none!important;box-shadow:none!important}
html body.v146275-ui.v146272-hud-editing .v146200-battle *,html body.v146275-ui.v146272-hud-editing .v146200-battle *::before,html body.v146275-ui.v146272-hud-editing .v146200-battle *::after{animation:none!important;transition:none!important}
@media(max-width:600px){html body.v146275-ui .v146181-soul-card{contain-intrinsic-size:124px}.v146275-vault-loading{min-height:230px;padding:20px}.v146275-hud-ghost b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.v146275-vault-loading>span{animation-duration:2s}}

/* ===== css/v146276-ui-integrity.css ===== */
/* Aldos RPG v1.146.276 — mobile UI integrity and one shared HUD geometry. */
:root{--v146276-gold:#d6b66c;--v146276-violet:#9c7bea;--v146276-ink:#061318;--v146276-line:#33504b}

/* The saved HUD is installed before the first visible battle frame. */
body.v146276-hud-rendering #app>*{opacity:0!important}

/* Settings: the action may wrap, but never escapes its card. */
html body.v146276-ui .v146276-hud-setting-row{box-sizing:border-box!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) minmax(116px,auto)!important;gap:12px!important;align-items:center!important;overflow:hidden!important}
html body.v146276-ui .v146276-hud-setting-row>div{min-width:0!important}
html body.v146276-ui .v146276-hud-setting-row>div :is(b,small){display:block!important;max-width:100%!important;overflow-wrap:anywhere!important}
html body.v146276-ui .v146272-hud-settings-open{box-sizing:border-box!important;width:auto!important;min-width:116px!important;max-width:100%!important;min-height:46px!important;padding:8px 14px!important;white-space:normal!important;line-height:1.15!important;overflow-wrap:anywhere!important;background:#101928 url('../assets/v146276/rift/rift-action-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#f5deb0!important;text-shadow:0 2px 3px #000!important}
html body.v146276-ui .v146272-hud-hammer img{display:block!important;width:27px!important;height:27px!important;object-fit:contain!important}
html body.v146276-ui :is(.v146272-hud-resize,.v146272-preview-resize) img{display:block!important;width:15px!important;height:15px!important;margin:auto!important;object-fit:contain!important;transform:rotate(45deg)!important}

/* Settings preview uses the same visual viewport ratio as the real battle. */
html body.v146276-ui #modal-root .modal.v146272-hud-editor-modal{box-sizing:border-box!important;width:min(720px,calc(100vw - 16px))!important;max-height:calc(100dvh - 16px)!important;padding:12px!important;overflow:auto!important}
html body.v146276-ui .v146272-hud-settings-modal{box-sizing:border-box!important;display:grid!important;gap:12px!important;min-width:0!important}
html body.v146276-ui .v146272-hud-settings-modal>header{padding-right:46px!important}
html body.v146276-ui .v146272-hud-settings-modal>header :is(h2,p){overflow-wrap:anywhere!important}
html body.v146276-ui .v146272-hud-preview-stage{box-sizing:border-box!important;width:min(100%,calc(55dvh * var(--v146276-preview-ratio)))!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:var(--v146274-preview-aspect)!important;overflow:hidden!important;isolation:isolate!important}
html body.v146276-ui .v146272-hud-preview-widget{box-sizing:border-box!important;min-width:0!important;min-height:0!important;padding:clamp(3px,1vw,7px)!important;overflow:hidden!important}
html body.v146276-ui .v146272-hud-preview-widget>b{font-size:clamp(8px,2.2vw,12px)!important;line-height:1.05!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.v146276-ui .v146272-hud-preview-widget>span{font-size:clamp(6px,1.7vw,9px)!important;line-height:1.05!important}
html body.v146276-ui .v146272-hud-preview-presets button{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;background:#101928 url('../assets/v146276/rift/rift-action-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#f3e4c4!important}
html body.v146276-ui .v146272-hud-preview-presets button img{display:block!important;width:20px!important;height:20px!important;object-fit:contain!important;flex:0 0 auto!important}
html body.v146276-ui .v146272-hud-settings-modal>footer .primary{background:#11192a url('../assets/v146276/eliyar/eliyar-primary-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#fff1cd!important}

/* The in-battle editor has a movable two-action toolbox. */
html body.v146276-ui .v146276-hud-toolbar{box-sizing:border-box!important;left:12px!important;top:calc(100dvh - 126px)!important;right:auto!important;bottom:auto!important;transform:none!important;width:min(320px,calc(100vw - 24px))!important;padding:9px!important;border-color:#b89450!important;border-radius:16px!important;background:#07151df5 url('../assets/v146273/rift/gate-interface-panel.webp') center/cover no-repeat!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;touch-action:none!important}
html body.v146276-ui .v146276-hud-toolbar>header{display:block!important;min-width:0!important;cursor:move!important;touch-action:none!important}
html body.v146276-ui .v146276-hud-toolbar>header b{display:block!important;font-size:16px!important}
html body.v146276-ui .v146276-hud-toolbar>header small{display:block!important;font-size:9px!important}
html body.v146276-ui .v146276-hud-toolbar-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
html body.v146276-ui .v146276-hud-toolbar-actions button{box-sizing:border-box!important;width:92px!important;min-height:42px!important;padding:6px 8px!important;font-size:12px!important;background:#111a28 url('../assets/v146276/rift/rift-action-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#f5dfb0!important}
html body.v146276-ui .v146276-hud-toolbar-actions .primary{background-image:url('../assets/v146276/eliyar/eliyar-primary-button.webp')!important;color:#fff1cc!important}

/* Battle panels fill their resized windows; unit cards keep their own size. */
html body.v146276-ui .v146200-battle .v101-roster{box-sizing:border-box!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
html body.v146276-ui .v146200-battle .v101-roster-head{min-width:0!important;padding:8px 12px!important}
html body.v146276-ui .v146200-battle .v101-roster-head :is(h2,span){min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146276-ui .v146200-battle .v101-roster-scroll{box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(138px,1fr))!important;grid-auto-rows:max-content!important;align-content:start!important;gap:8px!important;width:100%!important;height:100%!important;min-height:0!important;padding:8px!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
html body.v146276-ui .v146200-battle .v101-unit-card{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;min-height:210px!important;align-self:start!important;overflow:hidden!important}
html body.v146276-ui .v146200-battle .v101-monster-card{min-height:220px!important;max-height:none!important}
html body.v146276-ui .v146200-battle .v101-unit-card :is(h3,h4,p,small,b,span){overflow-wrap:anywhere!important}
html body.v146276-ui .v146272-hud-widget :is(.v79-turn-copy,.v79-section-head,.v79-log-head){min-width:0!important;overflow:hidden!important}
html body.v146276-ui .v146272-hud-widget :is(.v79-turn-copy b,.v79-turn-copy p,.v79-section-head h2,.v79-section-head span,.v79-log-head h3){max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Floating Rift button: clean medallion, reliable touch target, below modals. */
html body.v146276-ui .v146276-rift-fab{box-sizing:border-box!important;z-index:93950!important;width:74px!important;height:82px!important;padding:0 0 8px!important;border:1px solid #8d7140!important;border-radius:24px!important;background:radial-gradient(circle at 50% 35%,#25175c,#09131d 70%)!important;box-shadow:inset 0 0 0 1px #bea25c45,0 10px 24px #000c,0 0 20px #6d43c640!important;filter:none!important;overflow:visible!important;touch-action:none!important;-webkit-tap-highlight-color:transparent!important}
html body.v146276-ui .v146276-rift-fab>span{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;overflow:hidden!important;border-radius:23px!important}
html body.v146276-ui .v146276-rift-fab img{width:66px!important;height:66px!important;object-fit:contain!important;pointer-events:none!important;filter:drop-shadow(0 0 7px #8564ff)!important}
html body.v146276-ui .v146276-rift-fab time{right:-4px!important;bottom:-5px!important;min-width:48px!important;padding:4px 7px!important;border-color:#b894ef!important;background:#130d28f2!important;color:#eee5ff!important;font-size:11px!important}
html body.v146276-ui .v146276-rift-fab.dragging{transform:scale(1.04)!important;box-shadow:inset 0 0 0 1px #e6ce8c88,0 0 24px #8c61ff!important}
html body.v146276-ui.v146139-modal-open .v146276-rift-fab,
html body.v146276-ui.v146272-hud-editing .v146276-rift-fab{visibility:hidden!important;pointer-events:none!important}

/* Soul Vault: fixed visual hierarchy, in-game choices, aligned prepared slots. */
html body.v146276-ui #modal-root>.modal-back.has-v146181-vault-modal>.modal{box-sizing:border-box!important;width:min(760px,100vw)!important;height:min(96dvh,940px)!important;max-height:96dvh!important;padding:0!important;overflow:hidden!important;border:1px solid #58706a!important;border-radius:24px!important;background:#061318 url('../assets/v146181/necromancer/vault_panel.webp') center/cover no-repeat!important}
html body.v146276-ui .v146181-vault-shell{box-sizing:border-box!important;display:grid!important;grid-template-rows:auto auto auto auto minmax(0,1fr) auto!important;gap:8px!important;width:100%!important;height:100%!important;min-height:0!important;padding:16px!important;overflow:hidden!important;background:linear-gradient(180deg,#06181bef,#071016f7)!important}
html body.v146276-ui .v146181-vault-shell>*{position:relative!important;inset:auto!important;min-width:0!important;margin:0!important;transform:none!important}
html body.v146276-ui .v146181-vault-header{padding-right:48px!important}
html body.v146276-ui .v146181-vault-header h2{margin:2px 0!important;font-size:clamp(28px,6vw,42px)!important;line-height:1!important}
html body.v146276-ui .v146181-vault-header p{margin:4px 0 0!important;font-size:11px!important;color:#91a4a3!important}
html body.v146276-ui .v146270-soul-tabs{position:relative!important;top:auto!important;z-index:4!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:6px!important;border:1px solid #41544f!important;border-radius:17px!important;background:#07141af2 url('../assets/v146273/rift/rift-quest-panel.webp') center/100% 100% no-repeat!important}
html body.v146276-ui .v146270-soul-tabs button{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;min-height:54px!important;padding:8px 12px!important;border:1px solid #47685f!important;border-radius:13px!important;background:#071b1fe6!important;color:#dbe6e2!important}
html body.v146276-ui .v146270-soul-tabs button:last-child{border-color:#65508c!important;background:#160f2ae8!important}
html body.v146276-ui .v146270-soul-tabs button.active{border-color:#ddbd72!important;box-shadow:inset 0 0 0 1px #ead08c55,0 0 12px #8d6ed844!important}
html body.v146276-ui .v146270-soul-tabs button span{min-width:0!important;overflow-wrap:anywhere!important}
html body.v146276-ui .v146276-soul-tools{z-index:6!important;display:grid!important;grid-template-columns:minmax(180px,1.5fr) minmax(138px,1fr) minmax(138px,1fr) auto!important;gap:8px!important;align-items:end!important;padding:10px!important;border:1px solid #38504c!important;border-radius:16px!important;background:#07171bf3!important}
html body.v146276-ui .v146276-soul-tools>output{align-self:center!important;white-space:nowrap!important;color:#a9b8b3!important;font-size:11px!important}
html body.v146276-ui .v146274-soul-search{display:grid!important;gap:5px!important;min-width:0!important}
html body.v146276-ui .v146274-soul-search>span,
html body.v146276-ui .v146276-soul-choice>span{display:block!important;color:#9eaaa8!important;font-size:9px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase!important}
html body.v146276-ui .v146274-soul-search input,
html body.v146276-ui .v146276-soul-choice-trigger{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:46px!important;padding:9px 12px!important;border:1px solid #344843!important;border-radius:13px!important;background:#08141bf5!important;color:#e6ece8!important}
html body.v146276-ui .v146276-soul-choice{position:relative!important;display:grid!important;gap:5px!important;min-width:0!important}
html body.v146276-ui .v146276-soul-choice-trigger{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;text-align:left!important}
html body.v146276-ui .v146276-soul-choice-trigger b{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important}
html body.v146276-ui .v146276-soul-choice-trigger img{display:block!important;width:18px!important;height:18px!important;object-fit:contain!important;opacity:.86!important;transition:transform .16s ease!important}
html body.v146276-ui .v146276-soul-choice-trigger[aria-expanded="true"] img{transform:rotate(180deg)!important}
html body.v146276-ui .v146276-soul-choice-menu{position:absolute!important;z-index:100!important;left:0!important;right:0!important;top:calc(100% + 5px)!important;box-sizing:border-box!important;padding:6px!important;border:1px solid #a78648!important;border-radius:14px!important;background:#07151cfb url('../assets/v146273/rift/gate-interface-panel.webp') center/cover no-repeat!important;box-shadow:0 18px 38px #000e!important}
html body.v146276-ui .v146276-soul-choice-menu[hidden]{display:none!important}
html body.v146276-ui .v146276-soul-choice-menu button{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:42px!important;padding:8px 10px!important;border:0!important;border-bottom:1px solid #2e3d3b!important;border-radius:8px!important;background:#08161cdf!important;color:#e4e8e5!important;text-align:left!important}
html body.v146276-ui .v146276-soul-choice-menu button[aria-selected="true"]{background:#201838ef!important;color:#f1dda6!important}
html body.v146276-ui .v146181-prepared{z-index:3!important;padding:9px 10px!important;border:1px solid #35504a!important;border-radius:16px!important;background:#07171bea!important;overflow:hidden!important}
html body.v146276-ui .v146181-section-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:8px!important;margin-bottom:7px!important}
html body.v146276-ui .v146181-prepared-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
html body.v146276-ui .v146181-prepared-slot{box-sizing:border-box!important;display:grid!important;place-items:center!important;min-width:0!important;width:100%!important;aspect-ratio:1!important;min-height:0!important;padding:3px!important;border:0!important;background:transparent!important;overflow:visible!important}
html body.v146276-ui .v146181-prepared-slot>span{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-width:0!important;background:url('../assets/v146181/necromancer/prepared_slot.webp') center/contain no-repeat!important}
html body.v146276-ui .v146181-prepared-slot img{display:block!important;width:68%!important;height:68%!important;object-fit:contain!important;object-position:center!important}
html body.v146276-ui .v146181-catalog{min-height:0!important;overflow:hidden!important}
html body.v146276-ui .v146181-soul-grid{box-sizing:border-box!important;display:grid!important;grid-template-columns:1fr!important;align-content:start!important;gap:10px!important;width:100%!important;height:100%!important;min-height:0!important;padding:2px 3px 14px!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
html body.v146276-ui .v146181-soul-card{box-sizing:border-box!important;display:grid!important;grid-template-columns:104px minmax(0,1fr)!important;gap:12px!important;min-width:0!important;min-height:156px!important;padding:12px!important;overflow:hidden!important}
html body.v146276-ui .v146185-soul-frame{box-sizing:border-box!important;display:grid!important;place-items:center!important;width:100%!important;max-width:104px!important;aspect-ratio:4/5!important;align-self:start!important;background:var(--v185-soul-frame) center/contain no-repeat!important}
html body.v146276-ui .v146185-soul-frame>span{display:grid!important;place-items:center!important;width:72%!important;height:72%!important;overflow:hidden!important}
html body.v146276-ui .v146185-soul-frame img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
html body.v146276-ui .v146181-soul-copy{min-width:0!important;overflow:hidden!important}
html body.v146276-ui .v146181-soul-copy>b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.v146276-ui .v146274-corrupted-summary{margin:7px 0!important;border:1px solid #6f55a1!important;border-radius:12px!important;background:#171128d9!important;overflow:hidden!important}
html body.v146276-ui .v146274-corrupted-summary>summary{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:42px!important;padding:8px 10px!important;cursor:pointer!important}
html body.v146276-ui .v146274-corrupted-summary>summary span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#dacaff!important}
html body.v146276-ui .v146274-corrupted-summary>p{margin:0!important;padding:0 10px 10px!important;font-size:11px!important;line-height:1.4!important;color:#c6bfd1!important}
html body.v146276-ui .v146181-vault-actions{z-index:8!important}
html body.v146276-ui .v146181-vault-actions .primary{width:100%!important;min-height:50px!important;background:#0c2630 url('../assets/v146181/necromancer/vault_open_button.webp') center/100% 100% no-repeat!important;border:0!important;color:#ecf2e9!important}

/* Soul details stay readable and long distortion text starts collapsed. */
html body.v146276-ui #modal-root .modal.v146195-soul-detail-modal{box-sizing:border-box!important;width:min(720px,calc(100vw - 14px))!important;max-height:calc(100dvh - 14px)!important;padding:10px!important;overflow:auto!important}
html body.v146276-ui .v146195-soul-detail{display:grid!important;gap:12px!important;min-width:0!important}
html body.v146276-ui .v146195-soul-detail-head{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:12px!important;min-width:0!important}
html body.v146276-ui .v146273-corruption-detail{border:1px solid #7257a2!important;border-radius:14px!important;background:#151126e8!important;overflow:hidden!important}
html body.v146276-ui .v146273-corruption-detail>summary{box-sizing:border-box!important;display:flex!important;justify-content:space-between!important;gap:10px!important;padding:12px!important;cursor:pointer!important}
html body.v146276-ui .v146274-corruption-body{padding:0 12px 12px!important}
html body.v146276-ui .v146274-corruption-body dl{display:grid!important;gap:0!important}
html body.v146276-ui .v146274-corruption-body dl>div{display:grid!important;grid-template-columns:minmax(110px,.42fr) minmax(0,1fr)!important;gap:12px!important;padding:10px 0!important;border-bottom:1px solid #39403f!important}
html body.v146276-ui .v146195-soul-detail-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
html body.v146276-ui .v146195-soul-detail-stats>div{box-sizing:border-box!important;display:flex!important;justify-content:space-between!important;gap:10px!important;min-width:0!important;padding:9px 10px!important}
html body.v146276-ui .v146195-soul-detail-stats :is(dt,dd){min-width:0!important;overflow-wrap:anywhere!important}

/* Rift cards, researcher and monster research: compact, framed and asset-led. */
html body.v146276-ui .v146271-gate-panel,
html body.v146276-ui .v146271-rift-head{border-color:#8d6e3c!important;background:#07131d url('../assets/v146273/rift/gate-interface-panel.webp') center/100% 100% no-repeat!important;box-shadow:inset 0 0 0 1px #473b5f66,0 12px 28px #000a!important}
html body.v146276-ui .v146271-gate-panel:before,
html body.v146276-ui .v146271-rift-head:before{display:none!important}
html body.v146276-ui .v146271-gate-panel .primary,
html body.v146276-ui .v146271-rift-head .primary{background:#12142b url('../assets/v146276/rift/rift-action-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#fff1dc!important;text-shadow:0 2px 4px #000!important}
html body.v146276-ui :is([data-v146271-enter-rift],[data-v146271-gate],.v146271-enter,.v146271-return-gate){background:#0b1b24 url('../assets/v146276/rift/gate-travel-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#f6ead0!important;text-shadow:0 2px 4px #000!important}
html body.v146276-ui #modal-root .modal.v146271-researcher-window{box-sizing:border-box!important;width:min(680px,calc(100vw - 14px))!important;max-height:calc(100dvh - 14px)!important;padding:10px!important;overflow:auto!important;border-color:#8067b4!important;background:#06141b url('../assets/v146273/rift/gate-interface-panel.webp') center/cover no-repeat!important}
html body.v146276-ui .v146271-researcher{display:grid!important;gap:10px!important;min-width:0!important}
html body.v146276-ui .v146271-researcher>header{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;padding:10px!important;border:1px solid #50416d!important;border-radius:15px!important;background:#091722e8!important}
html body.v146276-ui .v146271-researcher>header img{box-sizing:border-box!important;width:90px!important;height:110px!important;max-height:none!important;margin:0!important;border:1px solid #9274cd!important;border-radius:12px!important;object-fit:cover!important;object-position:50% 18%!important}
html body.v146276-ui .v146271-researcher-guide{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
html body.v146276-ui .v146271-researcher-guide>div{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;padding:9px!important;border:1px solid #39475a!important;border-radius:12px!important;background:#091821e8!important}
html body.v146276-ui .v146271-researcher-guide>div>b{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border:1px solid #7d63bd!important;border-radius:50%!important;background:#17132d!important;color:#e3d6ff!important}
html body.v146276-ui .v146271-researcher-guide span{min-width:0!important}
html body.v146276-ui .v146271-researcher-guide :is(strong,small){display:block!important;overflow-wrap:anywhere!important}
html body.v146276-ui .v146271-wallet{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important}
html body.v146276-ui .v146271-wallet>span{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:0 7px!important;align-items:center!important;padding:8px!important;border:1px solid #39475b!important;border-radius:12px!important;background:#081721e8!important}
html body.v146276-ui .v146271-wallet img{grid-row:1/3!important;width:40px!important;height:40px!important;max-height:none!important;margin:0!important;object-fit:contain!important}
html body.v146276-ui .v146271-monster-research{box-sizing:border-box!important;display:grid!important;gap:8px!important;margin:10px 0!important;padding:11px!important;border:1px solid #67518f!important;border-radius:13px!important;background:#0d1424ed!important}
html body.v146276-ui .v146271-monster-research header{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
html body.v146276-ui .v146271-monster-research header img{width:36px!important;height:36px!important;max-height:none!important;margin:0!important;object-fit:contain!important}
html body.v146276-ui .v146271-monster-research p{margin:0!important;font-size:11px!important;line-height:1.45!important}

/* Eliyar event cards use their authored background without the narrow-column collapse. */
html body.v146276-ui .v146272-eliyar-location{box-sizing:border-box!important;display:grid!important;grid-template-columns:76px minmax(0,1fr) 92px!important;grid-template-rows:auto auto!important;gap:10px 12px!important;align-items:center!important;min-height:190px!important;padding:18px!important;border:0!important;border-radius:20px!important;background:#07111a url('../assets/v146276/eliyar/eliyar-location-frame.webp') center/100% 100% no-repeat!important;overflow:hidden!important;box-shadow:0 14px 34px #000b!important}
html body.v146276-ui .v146272-eliyar-location:after{background:linear-gradient(90deg,#06121bf4,#091522df 66%,#18152ac8)!important}
html body.v146276-ui .v146272-eliyar-location>img{grid-column:1!important;grid-row:1!important;box-sizing:border-box!important;width:74px!important;height:74px!important;border:1px solid #c09b59!important;border-radius:16px!important;object-fit:cover!important;object-position:center!important}
html body.v146276-ui .v146272-eliyar-location>div{grid-column:2!important;grid-row:1!important;min-width:0!important}
html body.v146276-ui .v146272-eliyar-location h2{margin:2px 0 4px!important;font-size:clamp(24px,5vw,34px)!important;line-height:1!important}
html body.v146276-ui .v146272-eliyar-location p{margin:0!important;font-size:13px!important;line-height:1.35!important}
html body.v146276-ui .v146272-eliyar-location>time{grid-column:3!important;grid-row:1!important;box-sizing:border-box!important;width:90px!important;min-width:90px!important;min-height:54px!important;margin:0!important;padding:5px!important;font-size:17px!important}
html body.v146276-ui .v146272-eliyar-location>:is(button,.v146274-eliyar-locked){grid-column:2/4!important;grid-row:2!important;box-sizing:border-box!important;width:100%!important;min-height:50px!important;margin:0!important}
html body.v146276-ui .v146272-eliyar-location button,
html body.v146276-ui .v146272-eliyar-notice .primary,
html body.v146276-ui .v146272-exam-answer{background:#10192b url('../assets/v146276/eliyar/eliyar-primary-button.webp') center/100% 100% no-repeat!important;border:0!important;color:#fff0ca!important;text-shadow:0 2px 3px #000!important}
html body.v146276-ui .v146272-eliyar-notice{border:0!important;background:#07111a url('../assets/v146276/eliyar/eliyar-location-frame.webp') center/100% 100% no-repeat!important;box-shadow:0 18px 46px #000d!important}
html body.v146276-ui .v146272-exam-window .modal-card{border:0!important;background:#07111a url('../assets/v146276/eliyar/eliyar-event-frame.webp') center/100% 100% no-repeat!important;box-shadow:0 18px 46px #000d!important}

/* New skill art remains inside the class card and never stretches the card. */
html body.v146276-ui .v101-skill-card:has([data-ability-toggle^="eliyar_"]) .v101-skill-art,
html body.v146276-ui .v102-skill-card:has([data-ability-id^="eliyar_"]) img{box-sizing:border-box!important;width:64px!important;height:64px!important;object-fit:contain!important;object-position:center!important;border-radius:14px!important}

@media(max-width:620px){
  html body.v146276-ui .v146276-hud-setting-row{grid-template-columns:48px minmax(0,1fr)!important}
  html body.v146276-ui .v146276-hud-setting-row>.v146272-hud-settings-open{grid-column:1/-1!important;width:100%!important;justify-self:stretch!important}
  html body.v146276-ui .v146272-hud-preview-presets,
  html body.v146276-ui .v146272-hud-settings-modal>footer{display:grid!important;grid-template-columns:1fr 1fr!important}
  html body.v146276-ui .v146272-hud-settings-modal>footer .primary{grid-column:1/-1!important}
  html body.v146276-ui .v146276-hud-toolbar{top:calc(100dvh - 114px)!important;width:min(300px,calc(100vw - 20px))!important;grid-template-columns:minmax(0,1fr) auto!important}
  html body.v146276-ui .v146276-hud-toolbar-actions button{width:76px!important;font-size:11px!important}
  html body.v146276-ui .v146200-battle .v101-roster-scroll{grid-template-columns:1fr!important}
  html body.v146276-ui .v146200-battle .v101-unit-card{min-height:190px!important}
  html body.v146276-ui #modal-root>.modal-back.has-v146181-vault-modal>.modal{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
  html body.v146276-ui .v146181-vault-shell{padding:10px 8px 8px!important;gap:6px!important}
  html body.v146276-ui .v146181-vault-header p{display:none!important}
  html body.v146276-ui .v146270-soul-tabs button{min-height:48px!important;padding:7px 9px!important;font-size:12px!important}
  html body.v146276-ui .v146276-soul-tools{grid-template-columns:1fr 1fr!important;padding:8px!important}
  html body.v146276-ui .v146274-soul-search{grid-column:1/-1!important}
  html body.v146276-ui .v146276-soul-tools>output{grid-column:1/-1!important}
  html body.v146276-ui .v146181-section-head em{display:none!important}
  html body.v146276-ui .v146181-prepared-grid{gap:4px!important}
  html body.v146276-ui .v146181-soul-card{grid-template-columns:76px minmax(0,1fr)!important;gap:9px!important;min-height:142px!important;padding:9px!important}
  html body.v146276-ui .v146185-soul-frame{max-width:76px!important}
  html body.v146276-ui .v146195-soul-detail-stats{grid-template-columns:1fr!important}
  html body.v146276-ui .v146274-corruption-body dl>div{grid-template-columns:1fr!important;gap:4px!important}
  html body.v146276-ui .v146271-researcher>header{grid-template-columns:72px minmax(0,1fr)!important}
  html body.v146276-ui .v146271-researcher>header img{width:70px!important;height:88px!important}
  html body.v146276-ui .v146271-researcher-guide{grid-template-columns:1fr!important}
  html body.v146276-ui .v146271-wallet{grid-template-columns:1fr!important}
  html body.v146276-ui .v146272-eliyar-location{grid-template-columns:58px minmax(0,1fr) 76px!important;min-height:174px!important;padding:12px!important;gap:8px!important}
  html body.v146276-ui .v146272-eliyar-location>img{width:56px!important;height:56px!important}
  html body.v146276-ui .v146272-eliyar-location h2{font-size:24px!important}
  html body.v146276-ui .v146272-eliyar-location p{font-size:11px!important}
  html body.v146276-ui .v146272-eliyar-location>time{width:74px!important;min-width:74px!important;font-size:14px!important}
}

@media(max-width:390px){
  html body.v146276-ui .v146276-soul-tools{grid-template-columns:1fr!important}
  html body.v146276-ui .v146274-soul-search,
  html body.v146276-ui .v146276-soul-tools>output{grid-column:auto!important}
  html body.v146276-ui .v146270-soul-tabs button span{font-size:11px!important}
  html body.v146276-ui .v146272-eliyar-location{grid-template-columns:50px minmax(0,1fr)!important}
  html body.v146276-ui .v146272-eliyar-location>time{grid-column:1!important;grid-row:2!important;width:68px!important;min-width:68px!important}
  html body.v146276-ui .v146272-eliyar-location>:is(button,.v146274-eliyar-locked){grid-column:2!important;grid-row:2!important}
}

/* ===== css/v146277-ui-foundation.css ===== */
/* Aldos RPG v1.146.277 — component geometry, layered themes and safe mobile layout. */
:root{--v277-gold:#d6bb78;--v277-gold-soft:#8e7644;--v277-rift:#8467de;--v277-rift-blue:#2d78b7;--v277-ink:#071319;--v277-panel:#0a1b20f2;--v277-line:#3d5d58}
html,body,#app{max-width:100%;overflow-x:hidden}
body.v146277-hud-rendering #app>*{opacity:0!important}
body.v146277-ui button,body.v146277-ui input{box-sizing:border-box}

/* Account security and the settings HUD entry always remain inside their cards. */
html body.v146277-ui .v146276-hud-setting-row{grid-template-columns:52px minmax(0,1fr)!important;align-items:center!important}
html body.v146277-ui .v146276-hud-setting-row>.v146272-hud-settings-open{grid-column:1/-1!important;width:100%!important;min-width:0!important;min-height:48px!important;padding:9px 44px!important;border:0!important;background-color:#0c1a27!important;background-image:url('../assets/v146277/rift/rift-action-frame.webp')!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;color:#f7e8c7!important;font-size:clamp(13px,3.5vw,16px)!important;line-height:1.15!important;text-shadow:0 2px 4px #000!important;overflow:hidden!important}
html body.v146277-ui .v146277-security-settings{overflow:hidden!important}
html body.v146277-ui .v146277-security-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
html body.v146277-ui .v146277-security-actions>button{display:grid!important;gap:4px!important;min-width:0!important;min-height:70px!important;padding:12px!important;border:1px solid #516e67!important;border-radius:14px!important;background:linear-gradient(145deg,#10282a,#09161d)!important;color:#e8eee8!important;text-align:left!important}
html body.v146277-ui .v146277-security-actions span{font-weight:800!important;overflow-wrap:anywhere!important}
html body.v146277-ui .v146277-security-actions small{color:#9db0ac!important;line-height:1.3!important}
html body.v146277-ui #modal-root .modal.v146277-password-modal{width:min(520px,calc(100vw - 18px))!important;padding:16px!important;border:1px solid #89713e!important;background:linear-gradient(160deg,#10262a,#07141a 72%)!important}
html body.v146277-ui .v146277-password-dialog{display:grid!important;gap:12px!important}
html body.v146277-ui .v146277-password-dialog>p{margin:0!important;color:#a9b8b4!important}
html body.v146277-ui .v146277-password-dialog label{display:grid!important;gap:5px!important}
html body.v146277-ui .v146277-password-dialog input{width:100%!important;min-height:48px!important;padding:10px 12px!important;border:1px solid #405b55!important;border-radius:12px!important;background:#07151c!important;color:#edf1eb!important}
html body.v146277-ui .v146277-password-dialog>div{display:grid!important;grid-template-columns:1fr 1.35fr!important;gap:8px!important}

/* Exact HUD preview and restrained in-battle editor. */
html body.v146277-ui #modal-root .modal.v146277-hud-editor-modal{width:min(620px,calc(100vw - 14px))!important;max-height:calc(100dvh - 14px)!important;padding:14px!important;overflow:auto!important;border:1px solid #8d7746!important;background:linear-gradient(165deg,#0d2528,#071319 62%,#10142a)!important}
html body.v146277-ui .v146277-hud-settings-modal{gap:10px!important}
html body.v146277-ui .v146277-hud-settings-modal>header{padding-right:42px!important}
html body.v146277-ui .v146277-hud-settings-modal>header h2{font-size:clamp(26px,7vw,38px)!important;line-height:1!important}
html body.v146277-ui .v146277-hud-settings-modal>header p{font-size:13px!important;line-height:1.35!important}
html body.v146277-ui .v146277-hud-preview-stage{width:min(100%,360px)!important;max-height:58dvh!important;margin-inline:auto!important;border:1px solid #9e844c!important;border-radius:17px!important;background-color:#061117!important;background-image:linear-gradient(#66828918 1px,transparent 1px),linear-gradient(90deg,#66828918 1px,transparent 1px)!important;background-size:20px 20px!important;overflow:hidden!important;isolation:isolate!important}
html body.v146277-ui .v146272-hud-preview-widget{min-width:0!important;min-height:0!important;padding:5px!important;border:1px solid #c6a75e!important;border-radius:8px!important;background:linear-gradient(145deg,#10262bf2,#09151bf4)!important;box-shadow:0 4px 12px #0008!important;overflow:hidden!important}
html body.v146277-ui .v146272-hud-preview-widget.widget-timer{border-color:#c76559!important;background:linear-gradient(145deg,#321b1df2,#10171cf4)!important}
html body.v146277-ui .v146272-hud-preview-widget.widget-enemies{border-color:#8d5f64!important;background:linear-gradient(145deg,#28191df2,#10171cf4)!important}
html body.v146277-ui .v146272-hud-preview-widget.widget-log{border-color:#8d70d0!important;background:linear-gradient(145deg,#201a32f2,#0c151cf4)!important}
html body.v146277-ui .v146272-hud-preview-widget>b{display:block!important;max-width:calc(100% - 15px)!important;font-size:clamp(7px,2.5vw,11px)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146277-ui :is(.v146272-preview-resize,.v146272-hud-resize){display:grid!important;place-items:center!important;padding:0!important;border:1px solid #d1b269!important;border-radius:7px!important;background:#17142be8!important;color:#f2dc9d!important}
html body.v146277-ui .v146272-preview-resize{right:2px!important;bottom:2px!important;width:21px!important;height:21px!important}
html body.v146277-ui .v146272-preview-resize span{font-size:12px!important;line-height:1!important}
html body.v146277-ui .v146272-hud-preview-presets{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
html body.v146277-ui .v146272-hud-preview-presets button{min-width:0!important;min-height:44px!important;padding:7px!important;border:1px solid #5c685d!important;border-radius:12px!important;background:linear-gradient(145deg,#13282b,#0a161c)!important;color:#e7e8df!important;font-size:12px!important}
html body.v146277-ui .v146277-hud-settings-modal>footer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
html body.v146277-ui .v146277-hud-settings-modal>footer .primary{grid-column:1/-1!important;min-height:48px!important;padding:8px 44px!important;border:0!important;background:#0c1a27 url('../assets/v146277/rift/rift-action-frame.webp') center/100% 100% no-repeat!important;color:#f9eccc!important;text-shadow:0 2px 4px #000!important}
html body.v146277-ui .v146277-hud-toolbar{z-index:9350!important;left:10px!important;top:calc(100dvh - 112px)!important;width:min(310px,calc(100vw - 20px))!important;padding:9px!important;border:1px solid #987d45!important;border-radius:15px!important;background:linear-gradient(155deg,#10282bf2,#07141af5)!important;box-shadow:0 12px 32px #000d!important}
html body.v146277-ui .v146277-hud-toolbar-actions button{width:86px!important;min-height:40px!important;border:1px solid #566a62!important;background:linear-gradient(#17272b,#0c171d)!important;color:#e9e7dc!important}
html body.v146277-ui .v146277-hud-toolbar-actions .primary{border:0!important;background:#0c1a27 url('../assets/v146277/rift/rift-action-frame.webp') center/100% 100% no-repeat!important;color:#faebc8!important}

/* Resized panels grow their scroll viewport; player and monster cards remain stable. */
html body.v146277-ui .v146200-battle .v146277-hud-widget{container-type:size!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
html body.v146277-ui .v146200-battle :is(.v101-player-roster,.v101-monster-roster){display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
html body.v146277-ui .v146200-battle .v101-roster-scroll{display:grid!important;grid-template-columns:repeat(auto-fill,146px)!important;grid-auto-rows:max-content!important;align-content:start!important;justify-content:start!important;width:100%!important;height:100%!important;min-height:0!important;padding:8px!important;overflow:auto!important;overscroll-behavior:contain!important}
html body.v146277-ui .v146200-battle .v101-unit-card{width:146px!important;min-width:146px!important;max-width:146px!important;min-height:206px!important;height:auto!important;align-self:start!important}
html body.v146277-ui .v146200-battle .v101-monster-card{min-height:214px!important}
html body.v146277-ui .v146200-battle .v146277-hud-widget :is(h2,h3,h4,b,p,small,span){max-width:100%!important;overflow-wrap:anywhere!important}
html body.v146277-ui .v146200-battle .v146277-hud-widget :is(.v101-roster-head h2,.v79-log-head h3){font-size:clamp(15px,5cqw,28px)!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Compact Rift shortcut: below overlays, never over battle/editor content. */
html body.v146277-ui .v146277-rift-fab{z-index:9100!important;width:62px!important;height:70px!important;padding:0 0 7px!important;border:1px solid #b69a58!important;border-radius:19px!important;background:radial-gradient(circle at 50% 34%,#251b56,#0b1720 72%)!important;box-shadow:inset 0 0 0 1px #6c8d9b44,0 8px 20px #000c,0 0 14px #7857d644!important;filter:none!important}
html body.v146277-ui .v146277-rift-fab[hidden]{display:none!important}
html body.v146277-ui .v146277-rift-fab>span{height:62px!important;border-radius:18px!important}
html body.v146277-ui .v146277-rift-fab img{width:54px!important;height:54px!important;filter:drop-shadow(0 0 6px #8064eb)!important}
html body.v146277-ui .v146277-rift-fab time{right:-3px!important;bottom:-4px!important;min-width:43px!important;padding:3px 6px!important;font-size:10px!important}

/* Soul Vault keeps controls above the prepared souls and aligns every image. */
html body.v146277-ui #modal-root>.modal-back.has-v146181-vault-modal>.modal{width:min(720px,100vw)!important;height:min(94dvh,900px)!important;max-height:94dvh!important;border:1px solid #5d7770!important;background:linear-gradient(180deg,#0a2022,#071419 70%)!important}
html body.v146277-ui .v146181-vault-shell{grid-template-rows:auto auto auto auto minmax(0,1fr) auto!important;padding:14px!important;background:linear-gradient(180deg,#071b1dee,#071117f8)!important}
html body.v146277-ui .v146270-soul-tabs{order:2!important;background:linear-gradient(145deg,#0b2023,#0b1421)!important;border:1px solid #53685f!important}
html body.v146277-ui .v146276-soul-tools{order:3!important;position:relative!important;z-index:30!important;background:linear-gradient(155deg,#0c2224,#08161c)!important}
html body.v146277-ui .v146181-prepared{order:4!important;position:relative!important;z-index:10!important;min-height:96px!important;padding-top:10px!important}
html body.v146277-ui .v146181-catalog{order:5!important;position:relative!important;z-index:1!important}
html body.v146277-ui .v146181-vault-actions{order:6!important}
html body.v146277-ui .v146181-prepared-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;gap:5px!important}
html body.v146277-ui .v146181-prepared-slot{width:100%!important;max-width:92px!important;aspect-ratio:1!important;justify-self:center!important}
html body.v146277-ui .v146181-prepared-slot>span{width:100%!important;height:100%!important}
html body.v146277-ui .v146181-prepared-slot img{width:66%!important;height:66%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
html body.v146277-ui .v146181-soul-card{grid-template-columns:88px minmax(0,1fr)!important;gap:10px!important;min-height:148px!important;background:linear-gradient(145deg,#0b1c20ed,#08141af3)!important}
html body.v146277-ui .v146181-soul-card.corrupted{background:linear-gradient(145deg,#171129ee,#0b1520f3)!important}
html body.v146277-ui .v146185-soul-frame{width:88px!important;max-width:88px!important}
html body.v146277-ui .v146185-soul-frame img{object-fit:contain!important;object-position:center!important;transform:none!important}
html body.v146277-ui .v146274-corrupted-summary>p{max-height:132px!important;overflow:auto!important}

/* Rift and event surfaces use bounded art and components instead of stretched pictures. */
html body.v146277-ui :is(.v146271-gate-panel,.v146271-rift-head){border:1px solid #75634b!important;background-color:#0a1720!important;background-image:linear-gradient(110deg,#0a1923f7,#10132af0),url('../assets/v146273/rift/gate-interface-panel.webp')!important;background-position:center!important;background-repeat:no-repeat!important;background-size:cover!important;overflow:hidden!important}
html body.v146277-ui :is(.v146271-gate-panel,.v146271-rift-head,.v146271-researcher,.v146271-monster-research)>*{min-width:0!important}
html body.v146277-ui :is(.v146271-gate-panel,.v146271-rift-head) :is(h2,p,small,b,strong){max-width:100%!important;overflow-wrap:anywhere!important}
html body.v146277-ui :is(.v146271-gate-panel,.v146271-rift-head) .primary,
html body.v146277-ui :is([data-v146271-enter-rift],[data-v146271-gate],.v146271-enter,.v146271-return-gate){width:min(100%,520px)!important;min-height:48px!important;padding:8px 56px!important;border:0!important;background:#10192a url('../assets/v146277/rift/rift-action-frame.webp') center/100% 100% no-repeat!important;color:#fff0d1!important;text-shadow:0 2px 4px #000!important;overflow:hidden!important}
html body.v146277-ui #modal-root .modal.v146271-researcher-window{width:min(660px,calc(100vw - 12px))!important;max-height:calc(100dvh - 12px)!important;overflow:auto!important;overflow-x:hidden!important;background:linear-gradient(160deg,#0c1c2a,#09151e 60%,#17142c)!important}
html body.v146277-ui .v146271-researcher{width:100%!important;max-width:100%!important;overflow:hidden!important}
html body.v146277-ui .v146271-wallet>span{min-width:0!important;overflow:hidden!important}
html body.v146277-ui .v146271-wallet img{max-width:40px!important;max-height:40px!important}
html body.v146277-ui .v146272-eliyar-location{grid-template-columns:72px minmax(0,1fr) 84px!important;min-height:176px!important;padding:16px!important;border:1px solid #80683c!important;background-color:#0a1721!important;background-image:linear-gradient(90deg,#0a1723f3,#11162cf0),url('../assets/v146276/eliyar/eliyar-location-frame.webp')!important;background-size:cover!important;background-position:center!important}
html body.v146277-ui .v146272-eliyar-location:after{background:linear-gradient(90deg,#07151df1,#11172bce)!important}
html body.v146277-ui .v146272-eliyar-location>img{width:68px!important;height:68px!important;object-fit:cover!important}
html body.v146277-ui .v146272-eliyar-location>time{width:82px!important;min-width:82px!important}
html body.v146277-ui .v146272-eliyar-location>:is(button,.v146274-eliyar-locked){min-width:0!important;min-height:48px!important;padding:8px 58px!important;border:0!important;background:#10192a url('../assets/v146277/eliyar/eliyar-action-frame.webp') center/100% 100% no-repeat!important;color:#fff0cf!important;text-shadow:0 2px 4px #000!important;overflow:hidden!important}
html body.v146277-ui .v146272-eliyar-location :is(h2,p,small,b){max-width:100%!important;overflow-wrap:anywhere!important}
html body.v146277-ui .v146272-exam-answer{min-height:48px!important;border:1px solid #816a40!important;background:linear-gradient(145deg,#173147,#10172a)!important;color:#f6e7c6!important}

/* Rift quest cards and information dialogs stay compact and readable. */
html body.v146277-ui :is(.v146271-rift-quest,.v146271-quest-card,.v146271-rift-card){box-sizing:border-box!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;background-size:cover!important;background-position:center!important}
html body.v146277-ui :is(.v146271-rift-quest,.v146271-quest-card,.v146271-rift-card) img{max-width:76px!important;max-height:76px!important;object-fit:contain!important}
html body.v146277-ui #modal-root .modal{max-width:calc(100vw - 10px);overflow-x:hidden}

@media(max-width:620px){
  html body.v146277-ui .v146277-security-actions{grid-template-columns:1fr!important}
  html body.v146277-ui .v146277-hud-preview-stage{width:min(100%,330px)!important;max-height:56dvh!important}
  html body.v146277-ui .v146277-hud-toolbar{top:calc(100dvh - 108px)!important;width:min(292px,calc(100vw - 16px))!important}
  html body.v146277-ui .v146200-battle .v101-roster-scroll{grid-template-columns:repeat(auto-fill,138px)!important}
  html body.v146277-ui .v146200-battle .v101-unit-card{width:138px!important;min-width:138px!important;max-width:138px!important}
  html body.v146277-ui #modal-root>.modal-back.has-v146181-vault-modal>.modal{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
  html body.v146277-ui .v146181-vault-shell{padding:9px 7px 7px!important}
  html body.v146277-ui .v146276-soul-tools{grid-template-columns:1fr 1fr!important}
  html body.v146277-ui .v146274-soul-search{grid-column:1/-1!important}
  html body.v146277-ui .v146276-soul-tools>output{grid-column:1/-1!important}
  html body.v146277-ui .v146181-soul-card{grid-template-columns:70px minmax(0,1fr)!important;padding:9px!important}
  html body.v146277-ui .v146185-soul-frame{width:70px!important;max-width:70px!important}
  html body.v146277-ui .v146272-eliyar-location{grid-template-columns:56px minmax(0,1fr) 72px!important;padding:12px!important;gap:8px!important}
  html body.v146277-ui .v146272-eliyar-location>img{width:54px!important;height:54px!important}
  html body.v146277-ui .v146272-eliyar-location>time{width:70px!important;min-width:70px!important;font-size:13px!important}
  html body.v146277-ui .v146272-eliyar-location>:is(button,.v146274-eliyar-locked){padding-inline:44px!important}
  html body.v146277-ui .v146271-researcher-guide{grid-template-columns:1fr!important}
  html body.v146277-ui .v146271-wallet{grid-template-columns:1fr!important}
}
@media(max-width:390px){
  html body.v146277-ui .v146276-soul-tools{grid-template-columns:1fr!important}
  html body.v146277-ui .v146274-soul-search,html body.v146277-ui .v146276-soul-tools>output{grid-column:auto!important}
  html body.v146277-ui .v146272-eliyar-location{grid-template-columns:50px minmax(0,1fr)!important}
  html body.v146277-ui .v146272-eliyar-location>time{grid-column:1!important;grid-row:2!important;width:64px!important;min-width:64px!important}
  html body.v146277-ui .v146272-eliyar-location>:is(button,.v146274-eliyar-locked){grid-column:2!important;grid-row:2!important;padding-inline:36px!important}
}

/* ===== css/v146278-ui-recovery.css ===== */
/* Aldos RPG v1.146.278 — soul-frame geometry, compact Rift progress and render recovery. */
body.v146278-ui.v131-admin-open #app{visibility:visible!important;opacity:1!important}

/* One frame owns the prepared-soul slot. The monster art never paints another frame layer. */
html body.v146278-ui .v146181-prepared-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:start!important;justify-items:center!important;gap:4px!important;width:100%!important}
html body.v146278-ui .v146181-prepared-slot,
html body.v146278-ui .v146181-prepared-slot:nth-child(5){box-sizing:border-box!important;position:relative!important;display:grid!important;place-items:center!important;width:min(100%,68px)!important;max-width:68px!important;height:auto!important;min-height:0!important;aspect-ratio:271/301!important;margin:0!important;padding:8%!important;border:0!important;border-radius:0!important;background-color:transparent!important;background-image:url('../assets/v146181/necromancer/prepared_slot.webp')!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;overflow:hidden!important;transform:none!important}
html body.v146278-ui .v146181-prepared-slot.filled{background-image:url('../assets/v146181/necromancer/prepared_slot_selected.webp')!important}
html body.v146278-ui .v146181-prepared-slot:before{display:none!important;content:none!important}
html body.v146278-ui .v146181-prepared-slot>span{display:grid!important;place-items:center!important;width:72%!important;height:72%!important;min-width:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;overflow:hidden!important;transform:none!important;color:#79d9c9!important;font-size:clamp(18px,6vw,28px)!important}
html body.v146278-ui .v146181-prepared-slot img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:drop-shadow(0 2px 3px #000b)!important}

/* The closed gate is a compact themed component, not a large unframed text card. */
html body.v146278-ui .v146271-gate-panel.v146278-gate-panel.closed{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:12px 0!important;padding:14px!important;border:1px solid #8468bf!important;border-radius:20px!important;background-color:#081521!important;background-image:linear-gradient(100deg,#071520f7 0 52%,#10152ae7),url('../assets/v146270/rift/world-gate-progress-panel.webp')!important;background-position:center!important;background-size:cover!important;box-shadow:inset 0 0 0 1px #b99cef25,0 12px 28px #0009!important}
html body.v146278-ui .v146271-gate-panel.v146278-gate-panel.closed:before{content:""!important;display:block!important;position:absolute!important;inset:0!important;background:url('../assets/v146273/rift/gate-interface-panel.webp') center/cover no-repeat!important;opacity:.18!important;pointer-events:none!important}
html body.v146278-ui .v146271-gate-panel.v146278-gate-panel.closed:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(100deg,#06141def 0 58%,#15152b9c)!important;pointer-events:none!important}
html body.v146278-ui .v146278-gate-intro{position:relative!important;z-index:2!important;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;min-width:0!important;padding:10px!important;border:1px solid #7963a566!important;border-radius:14px!important;background:linear-gradient(135deg,#0a2028dc,#11162add)!important}
html body.v146278-ui .v146278-gate-intro>img{display:block!important;width:58px!important;height:58px!important;object-fit:contain!important;filter:drop-shadow(0 0 8px #7c5ee8aa)!important}
html body.v146278-ui .v146278-gate-intro h2{margin:2px 0 4px!important;font-size:clamp(23px,6.5vw,32px)!important;line-height:1!important;color:#f4edf9!important}
html body.v146278-ui .v146278-gate-intro small{font-size:9px!important;letter-spacing:.13em!important;color:#c7b5fb!important}
html body.v146278-ui .v146278-gate-intro p{margin:0!important;font-size:12px!important;line-height:1.35!important;color:#aebcc7!important}
html body.v146278-ui .v146278-gate-bars{position:relative!important;z-index:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
html body.v146278-ui .v146278-gate-bars article{display:grid!important;grid-template-columns:27px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-width:0!important;padding:8px!important;border:1px solid #51608099!important;border-radius:12px!important;background:#07131dde!important}
html body.v146278-ui .v146278-gate-bars article>strong{display:grid!important;place-items:center!important;width:27px!important;height:27px!important;border:1px solid #8d72c7!important;border-radius:50%!important;background:#19183a!important;color:#e4d8ff!important;font:800 11px/1 Georgia,serif!important}
html body.v146278-ui .v146278-gate-bars article>div{min-width:0!important}
html body.v146278-ui .v146278-gate-bars span{gap:4px!important;font-size:10px!important}
html body.v146278-ui .v146278-gate-bars span b{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146278-ui .v146278-gate-bars i{height:6px!important;margin-top:4px!important}
html body.v146278-ui .v146271-gate-foot{position:relative!important;z-index:2!important;padding:8px 10px!important;border-left:2px solid #8567cf!important;background:#091620bb!important;color:#9eacb8!important;font-size:11px!important;line-height:1.35!important}
html body.v146278-ui .v146271-gate-foot b{color:#d8cdf1!important}

@media(max-width:430px){
  html body.v146278-ui .v146181-prepared-slot,html body.v146278-ui .v146181-prepared-slot:nth-child(5){width:min(100%,60px)!important;max-width:60px!important}
  html body.v146278-ui .v146278-gate-bars{grid-template-columns:1fr!important}
  html body.v146278-ui .v146278-gate-bars article{grid-template-columns:25px minmax(0,1fr)!important;padding:6px 8px!important}
}

/* ===== css/v146279-eliyar-rift-hotfix.css ===== */
/* Aldos RPG v1.146.279 · Professor Eliyar card and event input recovery */
html body.v146279-ui .v146272-eliyar-location.v146279-eliyar-card{
  position:relative!important;isolation:isolate!important;box-sizing:border-box!important;
  display:grid!important;grid-template-columns:88px minmax(0,1fr) 98px!important;
  grid-template-rows:minmax(112px,auto) 62px!important;gap:10px 14px!important;align-items:center!important;
  width:100%!important;min-height:232px!important;margin:14px 0!important;padding:30px 34px 28px!important;
  border:0!important;border-radius:24px!important;overflow:hidden!important;
  background-color:#07141f!important;
  background-image:url('../assets/v146276/eliyar/eliyar-location-frame.webp')!important;
  background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;
  box-shadow:0 16px 38px #000b!important;color:#eef4f8!important;
}
html body.v146279-ui .v146272-eliyar-location.v146279-eliyar-card:before{
  content:""!important;position:absolute!important;inset:17px 22px!important;z-index:-1!important;
  border-radius:16px!important;background:linear-gradient(90deg,#06131ce8 0 48%,#07131bc0 70%,#0b1326b8)!important;
  pointer-events:none!important;
}
html body.v146279-ui .v146272-eliyar-location.v146279-eliyar-card:after{content:none!important;display:none!important}
html body.v146279-ui .v146279-eliyar-card>.v146279-eliyar-cutout{
  grid-column:1!important;grid-row:1!important;align-self:start!important;box-sizing:border-box!important;
  width:84px!important;height:84px!important;margin-top:2px!important;padding:0!important;
  border:2px solid #c5a763!important;border-radius:22px!important;background:radial-gradient(circle at 50% 28%,#31445d,#0c1624 72%)!important;
  object-fit:cover!important;object-position:50% 4%!important;filter:drop-shadow(0 8px 8px #0009)!important;
}
html body.v146279-ui .v146279-eliyar-card>.v146279-eliyar-copy{
  grid-column:2!important;grid-row:1!important;align-self:center!important;min-width:0!important;padding:2px 0!important;
}
html body.v146279-ui .v146279-eliyar-card .v146279-eliyar-copy small{
  display:block!important;color:#aeb9c4!important;font-size:11px!important;font-weight:850!important;letter-spacing:.12em!important;
}
html body.v146279-ui .v146279-eliyar-card .v146279-eliyar-copy h2{
  margin:5px 0 7px!important;color:#fff8e7!important;font:700 clamp(27px,5vw,38px)/1 Georgia,serif!important;
  text-shadow:0 3px 7px #000!important;
}
html body.v146279-ui .v146279-eliyar-card .v146279-eliyar-copy p{
  margin:0!important;color:#bbc5ce!important;font-size:14px!important;line-height:1.38!important;
}
html body.v146279-ui .v146279-eliyar-card>time{
  grid-column:1!important;grid-row:2!important;place-self:center!important;box-sizing:border-box!important;
  width:86px!important;min-width:86px!important;min-height:58px!important;margin:0!important;padding:7px 6px!important;
  border:0!important;border-radius:0!important;background:transparent url('../assets/v146272/eliyar/ui/timer-badge.webp') center/contain no-repeat!important;
  color:#eef7ff!important;font-size:17px!important;font-weight:900!important;text-shadow:0 2px 4px #000!important;
}
html body.v146279-ui .v146279-eliyar-card>:is(button,.v146274-eliyar-locked){
  position:relative!important;z-index:3!important;grid-column:2/4!important;grid-row:2!important;align-self:center!important;
  box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:58px!important;margin:0!important;padding:10px 72px!important;
  border:0!important;border-radius:0!important;background:#17100e url('../assets/v146277/eliyar/eliyar-action-frame.webp') center/100% 100% no-repeat!important;
  color:#fff1d4!important;font-size:16px!important;font-weight:850!important;text-shadow:0 2px 4px #000!important;
  box-shadow:none!important;cursor:pointer!important;touch-action:manipulation!important;pointer-events:auto!important;
}
html body.v146279-ui .v146279-eliyar-card>button:disabled{cursor:wait!important;filter:saturate(.7) brightness(.8)!important}
html body.v146279-ui .v146279-eliyar-card>.v146274-eliyar-locked{display:grid!important;place-items:center!important;color:#cfc2a2!important;cursor:default!important}
html body.v146279-ui .v146279-eliyar-card.upcoming{grid-template-rows:minmax(126px,auto)!important}
html body.v146279-ui .v146279-eliyar-card.upcoming>time{grid-column:3!important;grid-row:1!important}
html body.v146279-ui .v146272-exam header img[src*="professor-eliyar-cutout"]{
  box-sizing:border-box!important;width:76px!important;height:76px!important;padding:0!important;
  border:1px solid #b99652!important;border-radius:20px!important;
  background:radial-gradient(circle at 50% 28%,#35475f,#0c1624 72%)!important;
  object-fit:cover!important;object-position:50% 4%!important;
}

@media(max-width:650px){
  html body.v146279-ui .v146272-eliyar-location.v146279-eliyar-card{
    grid-template-columns:66px minmax(0,1fr)!important;grid-template-rows:auto 58px!important;
    min-height:214px!important;padding:25px 24px 24px!important;gap:9px 11px!important;
  }
  html body.v146279-ui .v146279-eliyar-card>.v146279-eliyar-cutout{width:64px!important;height:64px!important;border-radius:18px!important}
  html body.v146279-ui .v146279-eliyar-card .v146279-eliyar-copy h2{font-size:clamp(24px,8vw,31px)!important}
  html body.v146279-ui .v146279-eliyar-card .v146279-eliyar-copy p{font-size:12px!important}
  html body.v146279-ui .v146279-eliyar-card .v146279-eliyar-copy small{font-size:9px!important;letter-spacing:.1em!important}
  html body.v146279-ui .v146279-eliyar-card>time{width:66px!important;min-width:66px!important;font-size:13px!important}
  html body.v146279-ui .v146279-eliyar-card>:is(button,.v146274-eliyar-locked){grid-column:2!important;padding:9px 42px!important;font-size:13px!important}
  html body.v146279-ui .v146279-eliyar-card.upcoming{grid-template-rows:auto 52px!important}
  html body.v146279-ui .v146279-eliyar-card.upcoming>time{grid-column:1!important;grid-row:2!important}
}

@media(max-width:390px){
  html body.v146279-ui .v146272-eliyar-location.v146279-eliyar-card{padding:22px 20px!important}
  html body.v146279-ui .v146279-eliyar-card>:is(button,.v146274-eliyar-locked){padding-inline:34px!important;font-size:12px!important}
}

/* ===== css/v146280-event-combat-rebuild.css ===== */
/* Aldos RPG v1.146.280 · Eliyar/Rift lifecycle and event combat rebuild */
html body.v146280-ui .v146280-eliyar-card{position:relative;isolation:isolate;box-sizing:border-box;display:grid;grid-template-columns:96px minmax(0,1fr) 112px;grid-template-rows:minmax(118px,auto) 58px;align-items:center;gap:10px 16px;width:100%;min-height:232px;margin:14px 0;padding:34px 38px 30px;overflow:hidden;border:0;border-radius:24px;background:#071321 url('../assets/v146276/eliyar/eliyar-location-frame.webp') center/cover no-repeat;box-shadow:0 18px 42px #000b;contain:layout paint}
html body.v146280-ui .v146280-eliyar-card:before{content:"";position:absolute;z-index:-1;inset:12px 14px;border-radius:18px;background:linear-gradient(90deg,#071321f2 0%,#09192bea 55%,#11182ed0 100%);pointer-events:none}
html body.v146280-ui .v146280-eliyar-portrait{grid-column:1;grid-row:1;align-self:start;box-sizing:border-box;width:92px;height:92px;overflow:hidden;border:2px solid #c6a15c;border-radius:26px;background:radial-gradient(circle at 50% 25%,#4f6383,#101a2b 72%);box-shadow:0 0 0 4px #07101dbd,0 8px 24px #0009}
html body.v146280-ui .v146280-eliyar-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 4%;filter:none}
html body.v146280-ui .v146280-eliyar-copy{grid-column:2;grid-row:1;min-width:0;align-self:center}
html body.v146280-ui .v146280-eliyar-copy small{display:block;margin:0 0 6px;color:#b6c0ca;font:800 11px/1.2 system-ui;letter-spacing:.13em;overflow-wrap:anywhere}
html body.v146280-ui .v146280-eliyar-copy h2{margin:0;color:#fff9e9;font:700 clamp(31px,5vw,47px)/.98 Georgia,serif;text-shadow:0 3px 5px #000}
html body.v146280-ui .v146280-eliyar-copy p{margin:10px 0 0;max-width:660px;color:#c7cdd5;font:500 15px/1.42 system-ui;overflow-wrap:anywhere}
html body.v146280-ui .v146280-eliyar-time{grid-column:3;grid-row:1;display:grid;place-items:center;box-sizing:border-box;width:108px;min-width:108px;min-height:74px;padding:12px 7px;color:#fff5d4;font:900 17px/1 system-ui;font-variant-numeric:tabular-nums;text-align:center;text-shadow:0 2px 3px #000;background:url('../assets/v146272/eliyar/ui/timer-badge.webp') center/contain no-repeat;transition:color .15s linear}
html body.v146280-ui .v146280-eliyar-time.is-urgent{color:#ffce6c}
html body.v146280-ui .v146280-eliyar-action,html body.v146280-ui .v146280-eliyar-locked{grid-column:2/4;grid-row:2;box-sizing:border-box;width:100%;min-height:54px;margin:0;padding:10px 68px;border:0;border-radius:0;background:#17100e url('../assets/v146277/eliyar/eliyar-action-frame.webp') center/100% 100% no-repeat;color:#fff0cf;font:800 17px/1.15 system-ui;text-align:center;text-shadow:0 2px 4px #000;box-shadow:none}
html body.v146280-ui button.v146280-eliyar-action{cursor:pointer;transition:filter .14s ease,transform .14s ease}
html body.v146280-ui button.v146280-eliyar-action:hover{filter:brightness(1.12)}
html body.v146280-ui button.v146280-eliyar-action:active{transform:translateY(1px)}
html body.v146280-ui button.v146280-eliyar-action:disabled{cursor:wait;filter:saturate(.55) brightness(.72)}
html body.v146280-ui .v146280-eliyar-locked{display:grid;place-items:center;color:#b9b0a2;cursor:default}
html body.v146280-ui .v146280-eliyar-card.is-joined:before{background:linear-gradient(90deg,#071824f5,#0a1b2cec 55%,#15223ad5)}
html body.v146280-ui .v146280-eliyar-card.is-upcoming{grid-template-rows:minmax(128px,auto)}

/* Dedicated event combat. Saved freeform HUD coordinates never apply here. */
html body.v146280-ui.v111-battle-active main.v146280-eliyar-battle{position:relative!important;isolation:isolate!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"event" "turn" "board" "log" "support"!important;gap:12px!important;width:min(1180px,calc(100vw - 18px))!important;max-width:1180px!important;min-height:calc(100dvh - 18px)!important;margin:9px auto!important;padding:14px!important;overflow:visible!important;background:linear-gradient(#030a10d9,#02070cf3),url('../assets/v146272/eliyar/exam-battle-background.webp') top center/cover no-repeat!important;border:1px solid #7f683f!important;border-radius:24px!important;box-shadow:0 18px 46px #000d!important;contain:layout style!important}
html body.v146280-ui main.v146280-eliyar-battle>.v146280-eliyar-battle-head{grid-area:event!important;position:relative;box-sizing:border-box;display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:86px;padding:11px 18px;overflow:hidden;border:0;border-radius:18px;background:#071321 url('../assets/v146276/eliyar/eliyar-event-frame.webp') center/100% 100% no-repeat;contain:layout paint}
html body.v146280-ui .v146280-eliyar-battle-head>img{display:block;box-sizing:border-box;width:64px;height:64px;object-fit:cover;object-position:50% 4%;border:1px solid #c4a25e;border-radius:18px;background:#132238}
html body.v146280-ui .v146280-eliyar-battle-head>span{min-width:0}
html body.v146280-ui .v146280-eliyar-battle-head small{display:block;color:#b7c4d4;font:800 9px/1.1 system-ui;letter-spacing:.13em}
html body.v146280-ui .v146280-eliyar-battle-head b{display:block;margin-top:3px;color:#fff7df;font:700 22px/1.05 Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.v146280-ui .v146280-eliyar-battle-head em{display:block;margin-top:4px;color:#aab7c4;font:500 10px/1.2 system-ui;font-style:normal}
html body.v146280-ui .v146280-eliyar-battle-head>strong{color:#f2d384;font:800 13px/1 system-ui;white-space:nowrap}
html body.v146280-ui main.v146280-eliyar-battle>.battle-timer{grid-area:turn!important;position:relative!important;inset:auto!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:82px!important;margin:0!important;padding:12px 18px 18px!important;border:1px solid #739049!important;border-radius:18px!important;background:linear-gradient(105deg,#10221ef2,#091419f5)!important;box-shadow:0 10px 26px #0007!important;overflow:hidden!important;contain:layout paint!important}
html body.v146280-ui main.v146280-eliyar-battle>.battle-timer.intro-turn{border-color:#b49351!important;background:linear-gradient(105deg,#17243af2,#0b1525f5)!important}
html body.v146280-ui main.v146280-eliyar-battle>.battle-timer .v79-turn-copy b{color:#fff9e9!important;font-size:clamp(18px,3vw,27px)!important;white-space:normal!important}
html body.v146280-ui main.v146280-eliyar-battle>.battle-timer .v79-turn-copy p{margin-top:4px!important;color:#aeb9bd!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146280-ui main.v146280-eliyar-battle>.battle-timer .v79-turn-meta span{color:#f1d77f!important;font-size:clamp(20px,4vw,31px)!important;font-variant-numeric:tabular-nums!important}
html body.v146280-ui main.v146280-eliyar-battle>.v101-combat-board{grid-area:board!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;gap:12px!important;width:100%!important;min-height:430px!important;margin:0!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-roster{position:relative!important;inset:auto!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-width:0!important;min-height:430px!important;max-width:none!important;max-height:none!important;margin:0!important;overflow:hidden!important;border-radius:20px!important;background:linear-gradient(180deg,#0b171bf2,#060d12f5)!important;box-shadow:0 12px 28px #0008!important;contain:layout paint!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-player-roster{border:1px solid #397c70!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-roster{border:1px solid #8a594e!important;background:linear-gradient(180deg,#1b1114f2,#090b10f7)!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-roster-head{box-sizing:border-box!important;min-height:52px!important;padding:12px 14px!important;border-bottom:1px solid #ffffff12!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-roster-head h2{color:#fff8e7!important;font:700 clamp(20px,3vw,30px)/1 Georgia,serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-roster-scroll{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;height:calc(100% - 52px)!important;max-height:520px!important;padding:10px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(250px,1fr) auto auto!important;gap:6px!important;box-sizing:border-box!important;width:100%!important;min-height:390px!important;margin:0!important;padding:12px!important;overflow:hidden!important;border:1px solid #b39252!important;border-radius:20px!important;background:radial-gradient(circle at 50% 42%,#22314b9c,#130d12 72%)!important;box-shadow:inset 0 0 0 3px #03080a8c!important;contain:layout paint!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-unit-body{grid-column:1!important;grid-row:1!important;min-width:0!important;padding:0 2px!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card .v101-unit-name h2{display:-webkit-box!important;margin:0!important;color:#fff7e6!important;font:700 clamp(16px,2.5vw,22px)/1.1 system-ui!important;text-align:center!important;overflow:hidden!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-unit-art{grid-column:1!important;grid-row:2!important;display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-height:250px!important;overflow:hidden!important;background:radial-gradient(ellipse at 50% 75%,#6b51212e,transparent 62%)!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-unit-art img{display:block!important;width:100%!important;height:100%!important;max-width:280px!important;max-height:290px!important;margin:auto!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 10px 12px #000b)!important;opacity:1!important;transform:none!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-resource{grid-column:1!important;grid-row:3!important;margin:0!important}
html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-unit-effects{grid-column:1!important;grid-row:4!important;min-height:34px!important;max-height:42px!important;overflow-x:auto!important;overflow-y:hidden!important}
html body.v146280-ui main.v146280-eliyar-battle>.v101-battle-log{grid-area:log!important;position:relative!important;inset:auto!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:190px!important;max-height:300px!important;margin:0!important;overflow:hidden!important;border:1px solid #51615b!important;border-radius:20px!important;background:#071115f1!important;contain:layout paint!important}
html body.v146280-ui main.v146280-eliyar-battle>.v101-battle-log .battle-log-scroll{height:auto!important;max-height:230px!important;overflow-y:auto!important;overscroll-behavior:contain!important}
html body.v146280-ui main.v146280-eliyar-battle>#support-drawer-open{grid-area:support!important;position:relative!important;inset:auto!important;box-sizing:border-box!important;width:min(620px,100%)!important;min-height:58px!important;margin:0 auto!important;transform:none!important}
html body.v146280-ui.v146280-eliyar-boss .v146272-hud-hammer,html body.v146280-ui.v146280-eliyar-boss .v146276-rift-fab{display:none!important}

/* Intro and exam overlays. */
html body.v146280-ui .v146280-eliyar-intro-window .modal-card,html body.v146280-ui .v146280-eliyar-exam-window .modal-card{box-sizing:border-box!important;width:min(680px,calc(100vw - 18px))!important;max-height:calc(100dvh - 18px)!important;padding:0!important;overflow:auto!important;border:0!important;border-radius:24px!important;background:#071321!important;box-shadow:0 22px 70px #000f!important}
html body.v146280-ui .v146280-eliyar-intro{position:relative;box-sizing:border-box;display:grid;gap:20px;min-height:min(760px,calc(100dvh - 24px));padding:74px 56px 48px;color:#f8f3e7;text-align:center;background:linear-gradient(#06121bd9,#06121bf2),url('../assets/v146272/eliyar/exam-battle-background.webp') center/cover no-repeat;border:1px solid #a78a4f;border-radius:24px;contain:layout paint}
html body.v146280-ui .v146280-eliyar-intro header{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:18px;text-align:left}
html body.v146280-ui .v146280-eliyar-intro header img{display:block;width:108px;height:108px;object-fit:cover;object-position:50% 4%;border:2px solid #c3a05b;border-radius:28px;background:#15243a}
html body.v146280-ui .v146280-eliyar-intro small,html body.v146280-ui .v146280-eliyar-exam small{color:#b6c0ca;font:800 11px/1.2 system-ui;letter-spacing:.16em}
html body.v146280-ui .v146280-eliyar-intro h2{margin:7px 0 0;color:#fff8e7;font:700 clamp(33px,7vw,56px)/.98 Georgia,serif;text-shadow:0 3px 6px #000}
html body.v146280-ui .v146280-eliyar-intro>p{align-self:center;margin:18px auto;color:#f4f0e7;font:500 clamp(18px,3.8vw,27px)/1.38 system-ui}
html body.v146280-ui .v146280-eliyar-intro>time{justify-self:center;min-width:108px;padding:12px 18px;border:1px solid #a78950;border-radius:16px;background:#111c2edb;color:#f4dda0;font:900 22px/1 system-ui;font-variant-numeric:tabular-nums}
html body.v146280-ui .v146280-eliyar-intro>.v146280-eliyar-action{grid-column:auto;grid-row:auto}
html body.v146280-ui .v146280-eliyar-modal-close{position:absolute;z-index:3;top:18px;right:18px;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #a78950;border-radius:15px;background:#0c1824e8;color:#f4d987;font:300 39px/1 system-ui}
html body.v146280-ui .v146280-eliyar-exam{position:relative;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;min-height:620px;padding:84px 72px 78px;color:#281b18;background:#e4d3ae url('../assets/v146272/eliyar/exam-panel.webp') center/100% 100% no-repeat;border-radius:24px;contain:layout paint}
html body.v146280-ui .v146280-eliyar-exam header{grid-column:1;display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:14px;text-align:left}
html body.v146280-ui .v146280-eliyar-exam header img{display:block;width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 4px 5px #0005)}
html body.v146280-ui .v146280-eliyar-exam header small{color:#6f5033}
html body.v146280-ui .v146280-eliyar-exam h2{margin:5px 0 0;color:#2b1b19;font:700 clamp(25px,5vw,38px)/1.08 Georgia,serif}
html body.v146280-ui .v146280-eliyar-exam>time{grid-column:2;grid-row:1;align-self:center;min-width:82px;padding:11px 12px;border:1px solid #7c5d32;border-radius:13px;background:#f4e4b8;color:#4c331f;font:900 18px/1 system-ui;text-align:center;font-variant-numeric:tabular-nums}
html body.v146280-ui .v146280-eliyar-exam>time.is-urgent{color:#9d271f;border-color:#9d271f}
html body.v146280-ui .v146280-eliyar-exam-options{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:10px}
html body.v146280-ui .v146280-eliyar-answer{box-sizing:border-box;width:100%;min-height:54px;padding:11px 22px;border:1px solid #775b35;border-radius:14px;background:linear-gradient(#fff0ca,#dec38f);color:#2f2119;font:800 16px/1.2 system-ui;text-align:left;box-shadow:0 5px 10px #3b27152e}
html body.v146280-ui .v146280-eliyar-answer.correct{border-color:#46833d;background:#cce7ab}
html body.v146280-ui .v146280-eliyar-answer.wrong{border-color:#a33e34;background:#efb0a0}
html body.v146280-ui .v146280-eliyar-exam-note{grid-column:1/-1!important;color:#72583d!important;letter-spacing:0!important;text-align:center}
html body.v146280-ui .v146280-eliyar-exam-result{position:absolute;z-index:4;right:26px;bottom:26px;width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 6px 8px #0005);pointer-events:none}

@media(max-width:700px){
  html body.v146280-ui .v146280-eliyar-card{grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto 64px;gap:10px 12px;min-height:286px;padding:34px 26px 30px;background-position:center}
  html body.v146280-ui .v146280-eliyar-card:before{inset:13px}
  html body.v146280-ui .v146280-eliyar-portrait{width:70px;height:70px;border-radius:20px}
  html body.v146280-ui .v146280-eliyar-copy small{font-size:9px;letter-spacing:.1em}
  html body.v146280-ui .v146280-eliyar-copy h2{font-size:clamp(30px,9vw,40px)}
  html body.v146280-ui .v146280-eliyar-copy p{font-size:12px;line-height:1.35}
  html body.v146280-ui .v146280-eliyar-time{grid-column:1;grid-row:2;width:70px;min-width:70px;min-height:62px;padding:7px 3px;font-size:12px}
  html body.v146280-ui .v146280-eliyar-action,html body.v146280-ui .v146280-eliyar-locked{grid-column:2;grid-row:2;min-height:58px;padding:9px 34px;font-size:13px}
  html body.v146280-ui .v146280-eliyar-card.is-upcoming{grid-template-rows:auto 64px}
  html body.v146280-ui.v111-battle-active main.v146280-eliyar-battle{gap:9px!important;width:calc(100vw - 10px)!important;min-height:100dvh!important;margin:5px!important;padding:8px!important;border-radius:18px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.v146280-eliyar-battle-head{grid-template-columns:48px minmax(0,1fr) auto;min-height:70px;padding:9px 11px;gap:8px;border-radius:15px}
  html body.v146280-ui .v146280-eliyar-battle-head>img{width:46px;height:46px;border-radius:13px}
  html body.v146280-ui .v146280-eliyar-battle-head small{font-size:7px}
  html body.v146280-ui .v146280-eliyar-battle-head b{font-size:15px}
  html body.v146280-ui .v146280-eliyar-battle-head em{font-size:8px}
  html body.v146280-ui .v146280-eliyar-battle-head>strong{font-size:10px}
  html body.v146280-ui main.v146280-eliyar-battle>.battle-timer{grid-template-columns:42px minmax(0,1fr) 74px!important;min-height:88px!important;padding:11px 12px 17px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.battle-timer .v79-turn-copy b{font-size:16px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.battle-timer .v79-turn-copy p{font-size:8px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.battle-timer .v79-turn-meta{width:72px!important;min-width:72px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.battle-timer .v79-turn-meta span{font-size:21px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.v101-combat-board{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)!important;gap:7px!important;min-height:410px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-roster{min-height:410px!important;border-radius:16px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-roster-head{min-height:44px!important;padding:10px 8px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-roster-head h2{font-size:18px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-roster-head span{font-size:7px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-roster-scroll{height:calc(100% - 44px)!important;max-height:470px!important;padding:6px!important;gap:6px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card{grid-template-rows:auto minmax(205px,1fr) auto auto!important;min-height:350px!important;padding:8px!important;border-radius:15px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card .v101-unit-name h2{font-size:12px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-unit-art{min-height:205px!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-unit-art img{max-height:230px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.v101-battle-log{min-height:190px!important;max-height:260px!important;border-radius:16px!important}
  html body.v146280-ui main.v146280-eliyar-battle>.v101-battle-log .battle-log-scroll{max-height:200px!important}
  html body.v146280-ui .v146280-eliyar-intro{gap:15px;min-height:calc(100dvh - 18px);padding:70px 28px 32px}
  html body.v146280-ui .v146280-eliyar-intro header{grid-template-columns:82px minmax(0,1fr);gap:12px}
  html body.v146280-ui .v146280-eliyar-intro header img{width:78px;height:78px;border-radius:22px}
  html body.v146280-ui .v146280-eliyar-intro h2{font-size:33px}
  html body.v146280-ui .v146280-eliyar-intro>p{font-size:18px}
  html body.v146280-ui .v146280-eliyar-exam{grid-template-columns:minmax(0,1fr) 68px;gap:12px;min-height:580px;padding:68px 34px 58px}
  html body.v146280-ui .v146280-eliyar-exam header{grid-template-columns:58px minmax(0,1fr);gap:9px}
  html body.v146280-ui .v146280-eliyar-exam header img{width:54px;height:54px}
  html body.v146280-ui .v146280-eliyar-exam h2{font-size:24px}
  html body.v146280-ui .v146280-eliyar-exam>time{min-width:60px;padding:9px 5px;font-size:15px}
  html body.v146280-ui .v146280-eliyar-answer{min-height:50px;padding:10px 14px;font-size:14px}
}

@media(max-width:390px){
  html body.v146280-ui .v146280-eliyar-card{padding:31px 21px 27px}
  html body.v146280-ui main.v146280-eliyar-battle>.v101-combat-board{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important}
  html body.v146280-ui main.v146280-eliyar-battle .v101-monster-card>.v101-unit-art img{max-width:170px!important}
  html body.v146280-ui .v146280-eliyar-exam{padding-inline:25px}
}

/* Stable Sky Rift panels. One authoritative layer replaces conflicting legacy overrides. */
html body.v146280-ui .v146271-gate-panel,html body.v146280-ui .v146271-rift-head{position:relative!important;isolation:isolate!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:12px 0!important;overflow:hidden!important;border:1px solid #7d68b5!important;border-radius:22px!important;background-color:#07131f!important;background-image:linear-gradient(105deg,#06141df5 0 54%,#11142bdc),url('../assets/v146270/rift/world-gate-progress-panel.webp')!important;background-position:center!important;background-size:cover!important;box-shadow:inset 0 0 0 1px #9d86d028,0 14px 32px #0009!important;color:#eef1f7!important;contain:layout paint!important}
html body.v146280-ui .v146271-gate-panel:before,html body.v146280-ui .v146271-rift-head:before{content:none!important;display:none!important}
html body.v146280-ui .v146271-gate-panel:after,html body.v146280-ui .v146271-rift-head:after{content:""!important;position:absolute!important;z-index:0!important;inset:0!important;background:linear-gradient(90deg,#041219e8,transparent 72%)!important;pointer-events:none!important}
html body.v146280-ui .v146271-gate-panel>* ,html body.v146280-ui .v146271-rift-head>*{position:relative!important;z-index:1!important;min-width:0!important}
html body.v146280-ui .v146271-gate-panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px 16px!important;padding:22px 24px!important}
html body.v146280-ui .v146271-gate-panel.v146278-gate-panel.closed{grid-template-columns:minmax(0,1fr)!important;padding:19px 22px!important}
html body.v146280-ui .v146271-gate-panel h2,html body.v146280-ui .v146271-rift-head h2{margin:4px 0 7px!important;color:#fff9ec!important;font:700 clamp(21px,4vw,31px)/1.05 Georgia,serif!important}
html body.v146280-ui .v146271-gate-panel p,html body.v146280-ui .v146271-rift-head p{margin:0!important;color:#b9c3ce!important;font:500 13px/1.4 system-ui!important}
html body.v146280-ui .v146271-gate-panel time,html body.v146280-ui .v146271-rift-head time{box-sizing:border-box!important;min-width:96px!important;padding:10px 13px!important;border:1px solid #927bd0!important;border-radius:13px!important;background:#0e1930e8!important;color:#e9ddff!important;font:900 15px/1 system-ui!important;text-align:center!important;font-variant-numeric:tabular-nums!important}
html body.v146280-ui [data-v146271-countdown].is-expired{color:#9da4ad!important;border-color:#58616d!important}
html body.v146280-ui .v146271-gate-panel .primary,html body.v146280-ui .v146271-rift-head .primary,html body.v146280-ui .v146271-rift-head .ghost{box-sizing:border-box!important;min-height:48px!important;padding:10px 58px!important;border:0!important;border-radius:0!important;background:#11152c url('../assets/v146277/rift/rift-action-frame.webp') center/100% 100% no-repeat!important;color:#fff2dc!important;font:800 14px/1.15 system-ui!important;text-shadow:0 2px 4px #000!important;box-shadow:none!important}
html body.v146280-ui .v146271-gate-panel .v146271-enter{grid-column:1/-1!important;justify-self:start!important;width:min(360px,100%)!important}
html body.v146280-ui .v146271-rift-head{display:grid!important;grid-template-columns:60px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;padding:16px 18px!important}
html body.v146280-ui .v146271-rift-head>img{display:block!important;width:58px!important;height:58px!important;object-fit:contain!important}
html body.v146280-ui .v146271-gate-bars{display:grid!important;gap:8px!important}
html body.v146280-ui .v146271-gate-bars article{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:9px!important}
html body.v146280-ui .v146271-gate-bars article>strong{display:grid!important;place-items:center!important;width:31px!important;height:31px!important;border:1px solid #8d78c6!important;border-radius:50%!important;background:#101a31!important;color:#e9dcff!important}
html body.v146280-ui .v146271-gate-bars i{height:8px!important;border:1px solid #46536c!important;background:#060d16!important}
html body.v146280-ui .v146271-gate-bars u{background:linear-gradient(90deg,#43d6ef,#715cf5,#bd5dec)!important}

@media(max-width:700px){
  html body.v146280-ui .v146271-gate-panel{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:17px!important}
  html body.v146280-ui .v146271-gate-panel time{justify-self:end!important;min-width:82px!important;font-size:13px!important}
  html body.v146280-ui .v146271-rift-head{grid-template-columns:45px minmax(0,1fr) auto!important;padding:12px!important;gap:8px!important}
  html body.v146280-ui .v146271-rift-head>img{width:43px!important;height:43px!important}
  html body.v146280-ui .v146271-rift-head p{display:none!important}
  html body.v146280-ui .v146271-rift-head h2{font-size:16px!important}
  html body.v146280-ui .v146271-rift-head time{grid-column:2!important;justify-self:start!important}
  html body.v146280-ui .v146271-rift-head button{grid-column:2/4!important;width:100%!important;padding-inline:44px!important}
}

@media(prefers-reduced-motion:reduce){html body.v146280-ui .v146280-eliyar-card *,html body.v146280-ui main.v146280-eliyar-battle *{animation:none!important;transition:none!important}}

/* ===== css/v146281-event-interface.css ===== */
/* Aldos RPG v1.146.281 · rebuilt Eliyar surfaces and editable event combat */
:root{--v281-gold:#d8bd78;--v281-gold-soft:#8d7441;--v281-blue:#182b55;--v281-ink:#031016;--v281-panel:#07151df4}

/* One card component for every event state. */
html body.v146281-ui .v146281-eliyar-card{position:relative;isolation:isolate;box-sizing:border-box;display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:minmax(126px,auto) 72px;align-items:center;gap:10px 22px;width:100%;min-height:270px;margin:16px 0;padding:44px 58px 40px;overflow:hidden;border:0;border-radius:28px;background-color:#071523;background-image:url('../assets/v146281/eliyar/event-card-frame.webp');background-position:center;background-repeat:no-repeat;background-size:100% 100%;box-shadow:0 18px 46px #000c;contain:layout paint}
html body.v146281-ui .v146281-eliyar-card:before{content:"";position:absolute;z-index:-1;inset:25px 30px;border-radius:20px;background:linear-gradient(100deg,#05131df7 0 42%,#0a1b31e8 72%,#101a39cf);pointer-events:none}
html body.v146281-ui .v146281-eliyar-card>*{min-width:0}
html body.v146281-ui .v146281-eliyar-portrait{grid-column:1;grid-row:1;align-self:center;box-sizing:border-box;width:108px;height:108px;overflow:hidden;border:2px solid #d2b46e;border-radius:30px;background:radial-gradient(circle at 50% 25%,#526889,#111a31 74%);box-shadow:0 0 0 4px #07111ddd,0 9px 24px #000b}
html body.v146281-ui .v146281-eliyar-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 4%;filter:none}
html body.v146281-ui .v146281-eliyar-copy{grid-column:2;grid-row:1;align-self:center;padding-right:4px}
html body.v146281-ui .v146281-eliyar-copy small{display:block;margin:0 0 6px;color:#b8c3d2!important;font:800 11px/1.25 system-ui!important;letter-spacing:.13em;overflow-wrap:anywhere}
html body.v146281-ui .v146281-eliyar-copy h2{margin:0;color:#fff9e9!important;font:700 clamp(32px,5vw,48px)/.98 Georgia,serif!important;text-shadow:0 3px 6px #000}
html body.v146281-ui .v146281-eliyar-copy p{margin:9px 0 0;max-width:680px;color:#c5ced8!important;font:500 15px/1.42 system-ui!important;overflow-wrap:anywhere}
html body.v146281-ui .v146281-eliyar-controls{grid-column:1/3;grid-row:2;display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:16px;min-width:0}
html body.v146281-ui .v146281-eliyar-controls.timer-only{grid-template-columns:112px;justify-content:start}
html body.v146281-ui .v146281-eliyar-time{display:grid;place-content:center;gap:2px;box-sizing:border-box;width:112px;height:72px;padding:17px 13px 8px;background:url('../assets/v146281/eliyar/timer-badge-frame.webp') center/contain no-repeat;color:#fff4ce!important;text-align:center;text-shadow:0 2px 3px #000;font-variant-numeric:tabular-nums}
html body.v146281-ui .v146281-eliyar-time span{font:900 16px/1 system-ui;white-space:nowrap}
html body.v146281-ui .v146281-eliyar-time small{color:#b9c6df!important;font:800 7px/1 system-ui!important;letter-spacing:.11em}
html body.v146281-ui .v146281-eliyar-time.is-urgent span{color:#ffd36f}
html body.v146281-ui :is(.v146281-eliyar-action,.v146281-eliyar-locked){box-sizing:border-box;display:grid;place-items:center;width:100%;min-width:0;min-height:62px;padding:11px 76px;border:0;border-radius:0;background-color:transparent;background-image:url('../assets/v146281/eliyar/action-button-frame.webp');background-position:center;background-repeat:no-repeat;background-size:100% 100%;color:#fff2d1!important;font:800 17px/1.15 system-ui!important;text-align:center;text-shadow:0 2px 4px #000;box-shadow:none;overflow:hidden}
html body.v146281-ui button.v146281-eliyar-action{cursor:pointer;touch-action:manipulation;transition:filter .14s ease,transform .14s ease}
html body.v146281-ui button.v146281-eliyar-action:is(:hover,:focus-visible){filter:brightness(1.14);outline:0}
html body.v146281-ui button.v146281-eliyar-action:active{transform:translateY(1px) scale(.995)}
html body.v146281-ui button.v146281-eliyar-action[aria-busy]{cursor:wait;filter:saturate(.55) brightness(.72)}
html body.v146281-ui .v146281-eliyar-locked{color:#b9b5aa!important;filter:saturate(.4) brightness(.72)}
html body.v146281-ui .v146281-eliyar-card.is-joined:before{background:linear-gradient(100deg,#061923f8,#0b2030ed 58%,#122846d8)}

/* Intro: content-sized controls; no stretched timer or empty button panel. */
html body.v146281-ui #modal-root>.modal-back.has-v146281-eliyar-intro-window{align-items:center!important;padding:8px!important;background:#01070cda!important;backdrop-filter:blur(8px)!important}
html body.v146281-ui #modal-root .modal.v146281-eliyar-intro-window{box-sizing:border-box!important;width:min(650px,calc(100vw - 16px))!important;max-height:calc(100dvh - 16px)!important;padding:0!important;overflow:auto!important;border:0!important;border-radius:26px!important;background:#06121d!important;box-shadow:0 24px 72px #000f!important}
html body.v146281-ui .v146281-eliyar-intro-window>.modal-close{z-index:8!important;top:16px!important;right:16px!important;width:44px!important;height:44px!important;border:1px solid #b69a56!important;border-radius:14px!important;background:#081827ee!important;color:#f6d77e!important}
html body.v146281-ui .v146281-eliyar-intro{position:relative;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(120px,1fr) auto;gap:24px;min-height:min(720px,calc(100dvh - 16px));padding:72px 58px 46px;color:#f8f2e5;background-image:linear-gradient(#04111ada,#06131cf4),url('../assets/v146272/eliyar/exam-battle-background.webp'),url('../assets/v146281/eliyar/event-card-frame.webp');background-position:center,center,center;background-repeat:no-repeat;background-size:cover,cover,100% 100%;border-radius:25px;contain:layout paint}
html body.v146281-ui .v146281-eliyar-intro header{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:center;gap:18px;text-align:left}
html body.v146281-ui .v146281-eliyar-intro header .v146281-eliyar-portrait{grid-column:auto;grid-row:auto}
html body.v146281-ui .v146281-eliyar-intro header small{display:block;color:#b9c5d3!important;font:800 11px/1.3 system-ui!important;letter-spacing:.16em}
html body.v146281-ui .v146281-eliyar-intro h2{margin:7px 0 0;color:#fff8e6!important;font:700 clamp(34px,7vw,55px)/.98 Georgia,serif!important;overflow-wrap:anywhere;text-shadow:0 3px 7px #000}
html body.v146281-ui .v146281-eliyar-intro blockquote{align-self:center;margin:0;padding:20px 22px;border-left:2px solid #c7a85d;background:linear-gradient(90deg,#0c1a29d9,#0a1422a6);color:#f1eee7;font:500 clamp(18px,3.5vw,25px)/1.42 system-ui;text-align:center}
html body.v146281-ui .v146281-eliyar-intro footer{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:center;gap:16px}
html body.v146281-ui .v146281-eliyar-intro footer time{display:grid;place-items:center;box-sizing:border-box;width:108px;height:72px;padding-top:9px;background:url('../assets/v146281/eliyar/timer-badge-frame.webp') center/contain no-repeat;color:#ffe7a4;font:900 19px/1 system-ui;font-variant-numeric:tabular-nums;text-shadow:0 2px 3px #000}
html body.v146281-ui .v146281-eliyar-intro footer .v146281-eliyar-action{min-height:62px}

/* Exam: the question owns a full row and can never collide with its clock. */
html body.v146281-ui #modal-root>.modal-back.has-v146281-eliyar-exam-window{align-items:center!important;padding:5px!important;background:#01070ce8!important;backdrop-filter:blur(7px)!important}
html body.v146281-ui #modal-root .modal.v146281-eliyar-exam-window{box-sizing:border-box!important;width:min(560px,calc(100vw - 10px))!important;max-height:calc(100dvh - 10px)!important;padding:0!important;overflow:auto!important;border:0!important;border-radius:24px!important;background:transparent!important;box-shadow:0 25px 70px #000f!important}
html body.v146281-ui .v146281-eliyar-exam-window>.modal-close{display:none!important}
html body.v146281-ui .v146281-eliyar-exam{position:relative;isolation:isolate;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;width:100%;min-height:min(760px,calc(100dvh - 10px));padding:95px 70px 86px;color:#2c211b;background:#ead9ae url('../assets/v146281/eliyar/exam-sheet-frame.webp') center/100% 100% no-repeat;border-radius:23px;contain:layout paint}
html body.v146281-ui .v146281-eliyar-exam>header{display:grid;grid-template-columns:minmax(0,1fr) 94px;align-items:center;gap:12px}
html body.v146281-ui .v146281-eliyar-exam>header>span{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:9px;min-width:0}
html body.v146281-ui .v146281-eliyar-exam>header img{display:block;width:50px;height:50px;object-fit:contain;filter:drop-shadow(0 4px 5px #0004)}
html body.v146281-ui .v146281-eliyar-exam>header small{color:#735536!important;font:800 10px/1.25 system-ui!important;letter-spacing:.11em;overflow-wrap:anywhere}
html body.v146281-ui .v146281-eliyar-exam>header time{box-sizing:border-box;min-width:90px;padding:12px 9px;border:1px solid #76582e;border-radius:15px;background:#f6e8bd;color:#4b3420;font:900 18px/1 system-ui;text-align:center;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 2px #fff4d36b}
html body.v146281-ui .v146281-eliyar-exam>header time.is-urgent{border-color:#a42d28;color:#a42d28;animation:v281-exam-urgent .7s ease-in-out infinite alternate}
html body.v146281-ui .v146281-eliyar-exam-body{display:grid;grid-template-rows:auto auto auto;align-content:center;gap:18px;min-height:0}
html body.v146281-ui .v146281-eliyar-exam h2{margin:0;color:#2a1c19!important;font:700 clamp(25px,5vw,38px)/1.08 Georgia,serif!important;overflow-wrap:anywhere;text-wrap:balance}
html body.v146281-ui .v146281-eliyar-exam-options{display:grid;grid-template-columns:1fr;gap:10px}
html body.v146281-ui .v146281-eliyar-answer{box-sizing:border-box;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:11px;width:100%;min-height:58px;padding:9px 15px;border:1px solid #5d4b36;border-radius:15px;background:linear-gradient(160deg,#17202a,#0b1118);color:#f7efe2;font:700 16px/1.25 system-ui;text-align:left;box-shadow:0 5px 11px #3b27153d;touch-action:manipulation}
html body.v146281-ui .v146281-eliyar-answer i{display:grid;place-items:center;width:32px;height:32px;border:1px solid #b69453;border-radius:10px;background:#0d1b2b;color:#f2d58d;font:800 14px/1 system-ui;font-style:normal}
html body.v146281-ui .v146281-eliyar-answer:is(:hover,:focus-visible){border-color:#c3a15a;outline:0;filter:brightness(1.08)}
html body.v146281-ui .v146281-eliyar-answer:disabled{cursor:wait;opacity:.72}
html body.v146281-ui .v146281-eliyar-answer.correct{border-color:#4b8f54;background:linear-gradient(160deg,#173620,#0a1b11);color:#dff4d8}
html body.v146281-ui .v146281-eliyar-answer.wrong{border-color:#a64b42;background:linear-gradient(160deg,#431e1c,#200e10);color:#ffd9d1}
html body.v146281-ui .v146281-eliyar-exam-note{display:block;color:#72583d!important;font:700 11px/1.35 system-ui!important;letter-spacing:0!important;text-align:center}
html body.v146281-ui .v146281-eliyar-exam-result{position:absolute;z-index:4;right:28px;bottom:28px;width:92px;height:92px;object-fit:contain;filter:drop-shadow(0 7px 9px #0006);pointer-events:none}
@keyframes v281-exam-urgent{to{box-shadow:0 0 16px #b92e285e,inset 0 0 0 2px #fff4d36b}}

/* Eliyar battle fallback. The editor converts these same components to fixed widgets before paint. */
html body.v146281-ui.v111-battle-active main.v146281-eliyar-battle{position:relative!important;isolation:isolate!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"event" "timer" "board" "log" "support"!important;gap:11px!important;width:min(1180px,calc(100vw - 12px))!important;max-width:1180px!important;min-height:calc(100dvh - 12px)!important;margin:6px auto!important;padding:12px!important;overflow:visible!important;border:1px solid #8f7441!important;border-radius:24px!important;background:linear-gradient(#02090fd9,#02070cf1),url('../assets/v146272/eliyar/exam-battle-background.webp') top center/cover no-repeat!important;box-shadow:0 18px 48px #000d!important;contain:layout style!important}
html body.v146281-ui main.v146281-eliyar-battle>.v146281-eliyar-battle-head{grid-area:event;position:relative;box-sizing:border-box;display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:13px;min-height:82px;padding:10px 25px;overflow:hidden;border:0;border-radius:18px;background:#07142a url('../assets/v146281/eliyar/battle-banner-frame.webp') center/100% 100% no-repeat;box-shadow:0 10px 26px #0009;contain:layout paint}
html body.v146281-ui .v146281-eliyar-battle-head>img{display:block;box-sizing:border-box;width:62px;height:62px;object-fit:cover;object-position:50% 4%;border:1px solid #d1b36a;border-radius:19px;background:#14243c}
html body.v146281-ui .v146281-eliyar-battle-head>span{min-width:0}
html body.v146281-ui .v146281-eliyar-battle-head small{display:block;color:#b8c5d8!important;font:800 9px/1.1 system-ui!important;letter-spacing:.13em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.v146281-ui .v146281-eliyar-battle-head b{display:block;margin-top:3px;color:#fff7df!important;font:700 clamp(17px,3vw,23px)/1.05 Georgia,serif!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.v146281-ui .v146281-eliyar-battle-head em{display:block;margin-top:4px;color:#abb9c9;font:500 10px/1.2 system-ui;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.v146281-ui main.v146281-eliyar-battle>.battle-timer{grid-area:timer!important;border-color:#7f9c57!important;background:linear-gradient(105deg,#10241ff3,#08141af6)!important;box-shadow:0 9px 24px #0008!important}
html body.v146281-ui main.v146281-eliyar-battle>.battle-timer.intro-turn{border-color:#b69652!important;background:linear-gradient(105deg,#17243af3,#091523f6)!important}
html body.v146281-ui main.v146281-eliyar-battle>.battle-timer .v79-turn-copy b{color:#fff9e9!important;white-space:normal!important}
html body.v146281-ui main.v146281-eliyar-battle>.battle-timer .v79-turn-meta span{color:#f2d47e!important;font-variant-numeric:tabular-nums!important}
html body.v146281-ui main.v146281-eliyar-battle>.v101-combat-board{grid-area:board!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;min-height:400px!important}
html body.v146281-ui main.v146281-eliyar-battle :is(.v101-player-roster,.v101-monster-roster){box-sizing:border-box!important;min-width:0!important;min-height:0!important;overflow:hidden!important;border-radius:19px!important;background:linear-gradient(180deg,#0a171df5,#050d13f8)!important;box-shadow:0 11px 28px #0009!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-player-roster{border:1px solid #417c71!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-monster-roster{border:1px solid #8d594f!important;background:linear-gradient(180deg,#1a1116f5,#080b10f9)!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-roster-head{box-sizing:border-box!important;min-height:46px!important;padding:9px 11px!important;border-bottom:1px solid #ffffff14!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-roster-scroll{box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(132px,1fr))!important;grid-auto-rows:max-content!important;align-content:start!important;gap:7px!important;width:100%!important;height:100%!important;min-height:0!important;padding:7px!important;overflow:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-unit-card{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:198px!important;overflow:hidden!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-monster-card{display:grid!important;grid-template-rows:auto minmax(112px,1fr) auto auto!important;min-height:208px!important;padding:8px!important;background:radial-gradient(ellipse at 50% 63%,#2836519c,#120d12 74%)!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-monster-card>.v101-unit-art{display:grid!important;place-items:center!important;min-height:112px!important;overflow:hidden!important}
html body.v146281-ui main.v146281-eliyar-battle .v101-monster-card>.v101-unit-art img{display:block!important;width:100%!important;height:100%!important;max-width:190px!important;max-height:175px!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 9px 10px #000c)!important;opacity:1!important;transform:none!important}
html body.v146281-ui main.v146281-eliyar-battle>.v101-battle-log{grid-area:log!important;box-sizing:border-box!important;min-height:170px!important;overflow:hidden!important;border:1px solid #536963!important;border-radius:19px!important;background:#071217f4!important}
html body.v146281-ui main.v146281-eliyar-battle>.v101-battle-log .battle-log-scroll{height:100%!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important}
html body.v146281-ui main.v146281-eliyar-battle>#support-drawer-open{grid-area:support!important;box-sizing:border-box!important;width:min(620px,100%)!important;min-height:58px!important;margin:0 auto!important}

/* The restored editor uses a dedicated Eliyar profile, including the event banner. */
html body.v146281-ui.v146272-hud-custom main.v146281-eliyar-battle{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:linear-gradient(#01080dc9,#02070cf0),url('../assets/v146272/eliyar/exam-battle-background.webp') center/cover no-repeat!important;box-shadow:none!important;overflow:visible!important}
html body.v146281-ui.v146272-hud-custom main.v146281-eliyar-battle>.v101-combat-board{display:contents!important}
html body.v146281-ui main.v146281-eliyar-battle .v146277-hud-widget{container-type:size!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
html body.v146281-ui main.v146281-eliyar-battle .v146281-eliyar-battle-head.v146277-hud-widget{grid-template-columns:min(15cqh,66px) minmax(0,1fr)!important;gap:clamp(7px,2cqw,13px)!important;padding:clamp(6px,1.5cqh,10px) clamp(13px,3cqw,25px)!important}
html body.v146281-ui main.v146281-eliyar-battle .v146281-eliyar-battle-head.v146277-hud-widget>img{width:min(14cqh,62px)!important;height:min(14cqh,62px)!important;min-width:42px!important;min-height:42px!important}
html body.v146281-ui main.v146281-eliyar-battle .v146281-eliyar-battle-head.v146277-hud-widget small{font-size:clamp(7px,2.2cqh,10px)!important}
html body.v146281-ui main.v146281-eliyar-battle .v146281-eliyar-battle-head.v146277-hud-widget b{font-size:clamp(15px,5cqh,24px)!important}
html body.v146281-ui main.v146281-eliyar-battle .v146281-eliyar-battle-head.v146277-hud-widget em{font-size:clamp(8px,2.4cqh,11px)!important}
html body.v146281-ui.v146281-eliyar-boss .v146272-hud-hammer{display:grid!important;visibility:visible!important;pointer-events:auto!important;z-index:9390!important}
html body.v146281-ui.v146281-eliyar-boss .v146276-rift-fab{visibility:hidden!important;pointer-events:none!important}

/* New admin launch protocol. */
html body.v146281-ui .v146281-rift-launch{display:grid!important;gap:10px!important;padding:13px!important;border:1px solid #6d5da2!important;border-radius:16px!important;background:linear-gradient(145deg,#0c1a29,#15112b)!important}
html body.v146281-ui .v146281-rift-launch>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
html body.v146281-ui .v146281-rift-launch>header b{color:#f4e5be!important}
html body.v146281-ui .v146281-rift-launch>header span{padding:5px 8px!important;border:1px solid #6e61a0!important;border-radius:999px!important;color:#cfc2f3!important;font-size:10px!important}
html body.v146281-ui .v146281-rift-launch button{min-height:48px!important;background:#10192a url('../assets/v146277/rift/rift-action-frame.webp') center/100% 100% no-repeat!important;color:#fff0d2!important}

@media(max-width:620px){
  html body.v146281-ui .v146281-eliyar-card{grid-template-columns:78px minmax(0,1fr);grid-template-rows:minmax(128px,auto) 66px;gap:9px 12px;min-height:258px;padding:36px 27px 31px;border-radius:24px}
  html body.v146281-ui .v146281-eliyar-card:before{inset:19px 18px}
  html body.v146281-ui .v146281-eliyar-portrait{width:76px;height:76px;border-radius:22px}
  html body.v146281-ui .v146281-eliyar-copy small{margin-bottom:4px;font-size:8px!important;letter-spacing:.09em}
  html body.v146281-ui .v146281-eliyar-copy h2{font-size:clamp(29px,9vw,39px)!important}
  html body.v146281-ui .v146281-eliyar-copy p{margin-top:7px;font-size:12px!important;line-height:1.34!important}
  html body.v146281-ui .v146281-eliyar-controls{grid-template-columns:78px minmax(0,1fr);gap:9px}
  html body.v146281-ui .v146281-eliyar-controls.timer-only{grid-template-columns:78px}
  html body.v146281-ui .v146281-eliyar-time{width:78px;height:58px;padding:15px 8px 7px}
  html body.v146281-ui .v146281-eliyar-time span{font-size:12px}
  html body.v146281-ui .v146281-eliyar-time small{font-size:5.5px!important}
  html body.v146281-ui :is(.v146281-eliyar-action,.v146281-eliyar-locked){min-height:56px;padding:9px 34px;font-size:13px!important}
  html body.v146281-ui .v146281-eliyar-intro{grid-template-rows:auto minmax(100px,1fr) auto;gap:18px;min-height:calc(100dvh - 12px);padding:64px 28px 30px}
  html body.v146281-ui .v146281-eliyar-intro header{grid-template-columns:78px minmax(0,1fr);gap:12px}
  html body.v146281-ui .v146281-eliyar-intro header .v146281-eliyar-portrait{width:76px;height:76px}
  html body.v146281-ui .v146281-eliyar-intro header small{font-size:8px!important;letter-spacing:.1em}
  html body.v146281-ui .v146281-eliyar-intro h2{font-size:clamp(30px,10vw,42px)!important}
  html body.v146281-ui .v146281-eliyar-intro blockquote{padding:15px 12px;font-size:17px}
  html body.v146281-ui .v146281-eliyar-intro footer{grid-template-columns:78px minmax(0,1fr);gap:9px}
  html body.v146281-ui .v146281-eliyar-intro footer time{width:78px;height:58px;font-size:14px}
  html body.v146281-ui .v146281-eliyar-intro footer .v146281-eliyar-action{min-height:56px;padding-inline:32px}
  html body.v146281-ui .v146281-eliyar-exam{min-height:calc(100dvh - 10px);padding:76px 37px 66px;gap:10px}
  html body.v146281-ui .v146281-eliyar-exam>header{grid-template-columns:minmax(0,1fr) 72px;gap:8px}
  html body.v146281-ui .v146281-eliyar-exam>header>span{grid-template-columns:38px minmax(0,1fr);gap:7px}
  html body.v146281-ui .v146281-eliyar-exam>header img{width:37px;height:37px}
  html body.v146281-ui .v146281-eliyar-exam>header small{font-size:7.5px!important}
  html body.v146281-ui .v146281-eliyar-exam>header time{min-width:70px;padding:10px 5px;font-size:14px}
  html body.v146281-ui .v146281-eliyar-exam-body{gap:13px}
  html body.v146281-ui .v146281-eliyar-exam h2{font-size:clamp(22px,7vw,29px)!important}
  html body.v146281-ui .v146281-eliyar-answer{grid-template-columns:29px minmax(0,1fr);gap:8px;min-height:52px;padding:8px 11px;font-size:13px}
  html body.v146281-ui .v146281-eliyar-answer i{width:27px;height:27px;font-size:12px}
  html body.v146281-ui .v146281-eliyar-exam-note{font-size:9px!important}
  html body.v146281-ui.v111-battle-active main.v146281-eliyar-battle{gap:8px!important;width:calc(100vw - 6px)!important;min-height:100dvh!important;margin:3px!important;padding:6px!important;border-radius:17px!important}
  html body.v146281-ui main.v146281-eliyar-battle>.v146281-eliyar-battle-head{grid-template-columns:50px minmax(0,1fr);min-height:70px;padding:8px 16px;gap:8px;border-radius:14px}
  html body.v146281-ui .v146281-eliyar-battle-head>img{width:48px;height:48px;border-radius:14px}
  html body.v146281-ui .v146281-eliyar-battle-head small{font-size:7px!important}
  html body.v146281-ui .v146281-eliyar-battle-head b{font-size:16px!important}
  html body.v146281-ui .v146281-eliyar-battle-head em{font-size:8px}
  html body.v146281-ui main.v146281-eliyar-battle>.v101-combat-board{grid-template-columns:minmax(0,.47fr) minmax(0,.53fr)!important;gap:6px!important;min-height:340px!important}
  html body.v146281-ui main.v146281-eliyar-battle .v101-roster-head{min-height:42px!important;padding:8px 7px!important}
  html body.v146281-ui main.v146281-eliyar-battle .v101-roster-head h2{font-size:16px!important}
  html body.v146281-ui main.v146281-eliyar-battle .v101-roster-head span{font-size:7px!important}
  html body.v146281-ui main.v146281-eliyar-battle .v101-roster-scroll{grid-template-columns:1fr!important;padding:5px!important;gap:5px!important}
  html body.v146281-ui main.v146281-eliyar-battle .v101-unit-card{min-height:188px!important}
  html body.v146281-ui main.v146281-eliyar-battle .v101-monster-card{min-height:196px!important}
}

@media(max-width:370px){
  html body.v146281-ui .v146281-eliyar-card{padding-inline:22px}
  html body.v146281-ui .v146281-eliyar-exam{padding-inline:29px}
  html body.v146281-ui .v146281-eliyar-exam h2{font-size:21px!important}
}

@media(prefers-reduced-motion:reduce){html body.v146281-ui .v146281-eliyar-card *,html body.v146281-ui .v146281-eliyar-intro *,html body.v146281-ui .v146281-eliyar-exam *,html body.v146281-ui main.v146281-eliyar-battle *{animation:none!important;transition:none!important}}
